@obb871001/api-integration-sdk 1.0.394 → 1.0.396

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,4 +1,4 @@
1
- import fe, { createContext as jt, useContext as _i, useState as et, useMemo as Ba, useCallback as H, useRef as te, useEffect as ue } from "react";
1
+ import fe, { createContext as jt, useContext as _i, useState as et, useMemo as Ba, useCallback as H, useRef as te, useEffect as pe } from "react";
2
2
  import { useQueries as In, useQuery as j, useQueryClient as xa, useMutation as ee, QueryClient as Wr, QueryClientProvider as zr } from "@tanstack/react-query";
3
3
  import Ir from "axios";
4
4
  import { get as Q, isEmpty as Ge, find as Ve, entries as Vn, forEach as Vr, map as xe, isArray as aa, toLower as Ni, omit as Jr, keyBy as Zr, replace as rt, includes as Kr, isObject as Yt, flatMap as Xt, values as qr, keys as Li } from "lodash";
@@ -269,14 +269,14 @@ function Yr() {
269
269
  } catch (Ie) {
270
270
  if (Ie && Y && typeof Ie.stack == "string") {
271
271
  for (var ie = Ie.stack.split(`
272
- `), He = Y.stack.split(`
273
- `), ve = ie.length - 1, Te = He.length - 1; ve >= 1 && Te >= 0 && ie[ve] !== He[Te]; )
272
+ `), We = Y.stack.split(`
273
+ `), ve = ie.length - 1, Te = We.length - 1; ve >= 1 && Te >= 0 && ie[ve] !== We[Te]; )
274
274
  Te--;
275
275
  for (; ve >= 1 && Te >= 0; ve--, Te--)
276
- if (ie[ve] !== He[Te]) {
276
+ if (ie[ve] !== We[Te]) {
277
277
  if (ve !== 1 || Te !== 1)
278
278
  do
279
- if (ve--, Te--, Te < 0 || ie[ve] !== He[Te]) {
279
+ if (ve--, Te--, Te < 0 || ie[ve] !== We[Te]) {
280
280
  var Qe = `
281
281
  ` + ie[ve].replace(" at new ", " at ");
282
282
  return k.displayName && Qe.includes("<anonymous>") && (Qe = Qe.replace("<anonymous>", k.displayName)), typeof k == "function" && re.set(k, Qe), Qe;
@@ -291,7 +291,7 @@ function Yr() {
291
291
  var Pa = k ? k.displayName || k.name : "", ba = Pa ? K(Pa) : "";
292
292
  return typeof k == "function" && re.set(k, ba), ba;
293
293
  }
294
- function pe(k, I, q) {
294
+ function ge(k, I, q) {
295
295
  return be(k, !1);
296
296
  }
297
297
  function _e(k) {
@@ -314,7 +314,7 @@ function Yr() {
314
314
  if (typeof k == "object")
315
315
  switch (k.$$typeof) {
316
316
  case l:
317
- return pe(k.render);
317
+ return ge(k.render);
318
318
  case o:
319
319
  return Se(k.type, I, q);
320
320
  case s: {
@@ -327,7 +327,7 @@ function Yr() {
327
327
  }
328
328
  return "";
329
329
  }
330
- var ge = Object.prototype.hasOwnProperty, We = {}, ce = y.ReactDebugCurrentFrame;
330
+ var ue = Object.prototype.hasOwnProperty, we = {}, ce = y.ReactDebugCurrentFrame;
331
331
  function Ce(k) {
332
332
  if (k) {
333
333
  var I = k._owner, q = Se(k.type, k._source, I ? I.type : null);
@@ -337,26 +337,26 @@ function Yr() {
337
337
  }
338
338
  function Je(k, I, q, Y, me) {
339
339
  {
340
- var de = Function.call.bind(ge);
340
+ var de = Function.call.bind(ue);
341
341
  for (var oe in k)
342
342
  if (de(k, oe)) {
343
343
  var ie = void 0;
344
344
  try {
345
345
  if (typeof k[oe] != "function") {
346
- var He = Error((Y || "React class") + ": " + q + " type `" + oe + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof k[oe] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
347
- throw He.name = "Invariant Violation", He;
346
+ var We = Error((Y || "React class") + ": " + q + " type `" + oe + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof k[oe] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
347
+ throw We.name = "Invariant Violation", We;
348
348
  }
349
349
  ie = k[oe](I, oe, Y, q, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
350
350
  } catch (ve) {
351
351
  ie = ve;
352
352
  }
353
- ie && !(ie instanceof Error) && (Ce(me), f("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", Y || "React class", q, oe, typeof ie), Ce(null)), ie instanceof Error && !(ie.message in We) && (We[ie.message] = !0, Ce(me), f("Failed %s type: %s", q, ie.message), Ce(null));
353
+ ie && !(ie instanceof Error) && (Ce(me), f("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", Y || "React class", q, oe, typeof ie), Ce(null)), ie instanceof Error && !(ie.message in we) && (we[ie.message] = !0, Ce(me), f("Failed %s type: %s", q, ie.message), Ce(null));
354
354
  }
355
355
  }
356
356
  }
357
- var we = Array.isArray;
357
+ var Fe = Array.isArray;
358
358
  function he(k) {
359
- return we(k);
359
+ return Fe(k);
360
360
  }
361
361
  function ze(k) {
362
362
  {
@@ -378,14 +378,14 @@ function Yr() {
378
378
  if (ta(k))
379
379
  return f("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", ze(k)), ia(k);
380
380
  }
381
- var Fe = y.ReactCurrentOwner, Ye = {
381
+ var Ae = y.ReactCurrentOwner, Ye = {
382
382
  key: !0,
383
383
  ref: !0,
384
384
  __self: !0,
385
385
  __source: !0
386
386
  }, oa, ga;
387
387
  function Ze(k) {
388
- if (ge.call(k, "ref")) {
388
+ if (ue.call(k, "ref")) {
389
389
  var I = Object.getOwnPropertyDescriptor(k, "ref").get;
390
390
  if (I && I.isReactWarning)
391
391
  return !1;
@@ -393,7 +393,7 @@ function Yr() {
393
393
  return k.ref !== void 0;
394
394
  }
395
395
  function Xe(k) {
396
- if (ge.call(k, "key")) {
396
+ if (ue.call(k, "key")) {
397
397
  var I = Object.getOwnPropertyDescriptor(k, "key").get;
398
398
  if (I && I.isReactWarning)
399
399
  return !1;
@@ -401,7 +401,7 @@ function Yr() {
401
401
  return k.key !== void 0;
402
402
  }
403
403
  function Va(k, I) {
404
- typeof k.ref == "string" && Fe.current;
404
+ typeof k.ref == "string" && Ae.current;
405
405
  }
406
406
  function Ea(k, I) {
407
407
  {
@@ -456,20 +456,20 @@ function Yr() {
456
456
  };
457
457
  function Za(k, I, q, Y, me) {
458
458
  {
459
- var de, oe = {}, ie = null, He = null;
460
- q !== void 0 && (De(q), ie = "" + q), Xe(I) && (De(I.key), ie = "" + I.key), Ze(I) && (He = I.ref, Va(I, me));
459
+ var de, oe = {}, ie = null, We = null;
460
+ q !== void 0 && (De(q), ie = "" + q), Xe(I) && (De(I.key), ie = "" + I.key), Ze(I) && (We = I.ref, Va(I, me));
461
461
  for (de in I)
462
- ge.call(I, de) && !Ye.hasOwnProperty(de) && (oe[de] = I[de]);
462
+ ue.call(I, de) && !Ye.hasOwnProperty(de) && (oe[de] = I[de]);
463
463
  if (k && k.defaultProps) {
464
464
  var ve = k.defaultProps;
465
465
  for (de in ve)
466
466
  oe[de] === void 0 && (oe[de] = ve[de]);
467
467
  }
468
- if (ie || He) {
468
+ if (ie || We) {
469
469
  var Te = typeof k == "function" ? k.displayName || k.name || "Unknown" : k;
470
- ie && Ea(oe, Te), He && Na(oe, Te);
470
+ ie && Ea(oe, Te), We && Na(oe, Te);
471
471
  }
472
- return Ja(k, ie, He, me, Y, Fe.current, oe);
472
+ return Ja(k, ie, We, me, Y, Ae.current, oe);
473
473
  }
474
474
  }
475
475
  var da = y.ReactCurrentOwner, ya = y.ReactDebugCurrentFrame;
@@ -583,14 +583,14 @@ Check the top-level render call using <` + q + ">.");
583
583
  }
584
584
  }
585
585
  var na = {};
586
- function Ae(k, I, q, Y, me, de) {
586
+ function Oe(k, I, q, Y, me, de) {
587
587
  {
588
588
  var oe = T(k);
589
589
  if (!oe) {
590
590
  var ie = "";
591
591
  (k === void 0 || typeof k == "object" && k !== null && Object.keys(k).length === 0) && (ie += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
592
- var He = Ga();
593
- He ? ie += He : ie += La();
592
+ var We = Ga();
593
+ We ? ie += We : ie += La();
594
594
  var ve;
595
595
  k === null ? ve = "null" : he(k) ? ve = "array" : k !== void 0 && k.$$typeof === n ? (ve = "<" + (P(k.type) || "Unknown") + " />", ie = " Did you accidentally export a JSX literal instead of a component?") : ve = typeof k, f("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", ve, ie);
596
596
  }
@@ -610,7 +610,7 @@ Check the top-level render call using <` + q + ">.");
610
610
  else
611
611
  Ee(Qe, k);
612
612
  }
613
- if (ge.call(I, "key")) {
613
+ if (ue.call(I, "key")) {
614
614
  var ba = P(k), Ie = Object.keys(I).filter(function(Hr) {
615
615
  return Hr !== "key";
616
616
  }), ti = Ie.length > 0 ? "{key: someKey, " + Ie.join(": ..., ") + ": ...}" : "{key: someKey}";
@@ -628,10 +628,10 @@ React keys must be passed directly to JSX without using spread:
628
628
  }
629
629
  }
630
630
  function ra(k, I, q) {
631
- return Ae(k, I, q, !0);
631
+ return Oe(k, I, q, !0);
632
632
  }
633
633
  function nt(k, I, q) {
634
- return Ae(k, I, q, !1);
634
+ return Oe(k, I, q, !1);
635
635
  }
636
636
  var ai = nt, Or = ra;
637
637
  qa.Fragment = r, qa.jsx = ai, qa.jsxs = Or;
@@ -641,7 +641,7 @@ var Ri;
641
641
  function Xr() {
642
642
  return Ri || (Ri = 1, process.env.NODE_ENV === "production" ? lt.exports = jr() : lt.exports = Yr()), lt.exports;
643
643
  }
644
- var Be = Xr();
644
+ var He = Xr();
645
645
  const Jn = jt(null), se = () => {
646
646
  const e = _i(Jn);
647
647
  if (!e)
@@ -662,7 +662,7 @@ const Jn = jt(null), se = () => {
662
662
  setAsPending: () => a($a.PENDING)
663
663
  };
664
664
  }, [n]);
665
- return /* @__PURE__ */ Be.jsx(Zn.Provider, { value: r, children: e });
665
+ return /* @__PURE__ */ He.jsx(Zn.Provider, { value: r, children: e });
666
666
  }, Kn = () => {
667
667
  const e = _i(Zn);
668
668
  if (!e)
@@ -753,7 +753,7 @@ function Pi({
753
753
  }
754
754
  ), t;
755
755
  }
756
- const jn = jt(null), Nm = () => {
756
+ const jn = jt(null), Lm = () => {
757
757
  const e = _i(jn);
758
758
  if (!e)
759
759
  throw new Error(
@@ -779,7 +779,7 @@ const jn = jt(null), Nm = () => {
779
779
  default:
780
780
  return "Tw";
781
781
  }
782
- }, Lm = () => {
782
+ }, Gm = () => {
783
783
  const e = (r, p) => !r && !p, n = (r) => r.startsWith("pc.");
784
784
  return {
785
785
  executeLogout: ({
@@ -798,7 +798,7 @@ const jn = jt(null), Nm = () => {
798
798
  shouldShowErrorNotice: e,
799
799
  isMachineDomain: n
800
800
  };
801
- }, Gm = (e) => {
801
+ }, Mm = (e) => {
802
802
  let n = Number(e);
803
803
  return isNaN(n) ? e : new Intl.NumberFormat("en-US", {
804
804
  style: "decimal",
@@ -984,13 +984,13 @@ function ol() {
984
984
  }, R.format = function(L) {
985
985
  var B = this, O = this.$locale();
986
986
  if (!this.isValid()) return O.invalidDate || _;
987
- var W = L || "YYYY-MM-DDTHH:mm:ssZ", z = S.z(this), G = this.$H, h = this.$m, E = this.$M, N = O.weekdays, V = O.months, $ = O.meridiem, Z = function(re, Ue, be, pe) {
988
- return re && (re[Ue] || re(B, W)) || be[Ue].slice(0, pe);
987
+ var W = L || "YYYY-MM-DDTHH:mm:ssZ", z = S.z(this), G = this.$H, h = this.$m, E = this.$M, N = O.weekdays, V = O.months, $ = O.meridiem, Z = function(re, Ue, be, ge) {
988
+ return re && (re[Ue] || re(B, W)) || be[Ue].slice(0, ge);
989
989
  }, K = function(re) {
990
990
  return S.s(G % 12 || 12, re, "0");
991
991
  }, X = $ || function(re, Ue, be) {
992
- var pe = re < 12 ? "AM" : "PM";
993
- return be ? pe.toLowerCase() : pe;
992
+ var ge = re < 12 ? "AM" : "PM";
993
+ return be ? ge.toLowerCase() : ge;
994
994
  };
995
995
  return W.replace(y, (function(re, Ue) {
996
996
  return Ue || (function(be) {
@@ -2432,18 +2432,18 @@ function ir() {
2432
2432
  ]);
2433
2433
  },
2434
2434
  _doProcessBlock: function(m, _) {
2435
- for (var c = this._hash.words, y = c[0], f = c[1], b = c[2], C = c[3], v = c[4], x = c[5], D = c[6], M = c[7], A = y.high, T = y.low, S = f.high, F = f.low, P = b.high, w = b.low, R = C.high, L = C.low, B = v.high, O = v.low, W = x.high, z = x.low, G = D.high, h = D.low, E = M.high, N = M.low, V = A, $ = T, Z = S, K = F, X = P, re = w, Ue = R, be = L, pe = B, _e = O, Se = W, ge = z, We = G, ce = h, Ce = E, Je = N, we = 0; we < 80; we++) {
2436
- var he, ze, ta = s[we];
2437
- if (we < 16)
2438
- ze = ta.high = m[_ + we * 2] | 0, he = ta.low = m[_ + we * 2 + 1] | 0;
2435
+ for (var c = this._hash.words, y = c[0], f = c[1], b = c[2], C = c[3], v = c[4], x = c[5], D = c[6], M = c[7], A = y.high, T = y.low, S = f.high, F = f.low, P = b.high, w = b.low, R = C.high, L = C.low, B = v.high, O = v.low, W = x.high, z = x.low, G = D.high, h = D.low, E = M.high, N = M.low, V = A, $ = T, Z = S, K = F, X = P, re = w, Ue = R, be = L, ge = B, _e = O, Se = W, ue = z, we = G, ce = h, Ce = E, Je = N, Fe = 0; Fe < 80; Fe++) {
2436
+ var he, ze, ta = s[Fe];
2437
+ if (Fe < 16)
2438
+ ze = ta.high = m[_ + Fe * 2] | 0, he = ta.low = m[_ + Fe * 2 + 1] | 0;
2439
2439
  else {
2440
- var ia = s[we - 15], De = ia.high, Fe = ia.low, Ye = (De >>> 1 | Fe << 31) ^ (De >>> 8 | Fe << 24) ^ De >>> 7, oa = (Fe >>> 1 | De << 31) ^ (Fe >>> 8 | De << 24) ^ (Fe >>> 7 | De << 25), ga = s[we - 2], Ze = ga.high, Xe = ga.low, Va = (Ze >>> 19 | Xe << 13) ^ (Ze << 3 | Xe >>> 29) ^ Ze >>> 6, Ea = (Xe >>> 19 | Ze << 13) ^ (Xe << 3 | Ze >>> 29) ^ (Xe >>> 6 | Ze << 26), Na = s[we - 7], Ja = Na.high, Za = Na.low, da = s[we - 16], ya = da.high, $e = da.low;
2440
+ var ia = s[Fe - 15], De = ia.high, Ae = ia.low, Ye = (De >>> 1 | Ae << 31) ^ (De >>> 8 | Ae << 24) ^ De >>> 7, oa = (Ae >>> 1 | De << 31) ^ (Ae >>> 8 | De << 24) ^ (Ae >>> 7 | De << 25), ga = s[Fe - 2], Ze = ga.high, Xe = ga.low, Va = (Ze >>> 19 | Xe << 13) ^ (Ze << 3 | Xe >>> 29) ^ Ze >>> 6, Ea = (Xe >>> 19 | Ze << 13) ^ (Xe << 3 | Ze >>> 29) ^ (Xe >>> 6 | Ze << 26), Na = s[Fe - 7], Ja = Na.high, Za = Na.low, da = s[Fe - 16], ya = da.high, $e = da.low;
2441
2441
  he = oa + Za, ze = Ye + Ja + (he >>> 0 < oa >>> 0 ? 1 : 0), he = he + Ea, ze = ze + Va + (he >>> 0 < Ea >>> 0 ? 1 : 0), he = he + $e, ze = ze + ya + (he >>> 0 < $e >>> 0 ? 1 : 0), ta.high = ze, ta.low = he;
2442
2442
  }
2443
- var ca = pe & Se ^ ~pe & We, fa = _e & ge ^ ~_e & ce, La = V & Z ^ V & X ^ Z & X, Ga = $ & K ^ $ & re ^ K & re, Ua = (V >>> 28 | $ << 4) ^ (V << 30 | $ >>> 2) ^ (V << 25 | $ >>> 7), Ma = ($ >>> 28 | V << 4) ^ ($ << 30 | V >>> 2) ^ ($ << 25 | V >>> 7), Ra = (pe >>> 14 | _e << 18) ^ (pe >>> 18 | _e << 14) ^ (pe << 23 | _e >>> 9), Ee = (_e >>> 14 | pe << 18) ^ (_e >>> 18 | pe << 14) ^ (_e << 23 | pe >>> 9), J = o[we], Ne = J.high, na = J.low, Ae = Je + Ee, ra = Ce + Ra + (Ae >>> 0 < Je >>> 0 ? 1 : 0), Ae = Ae + fa, ra = ra + ca + (Ae >>> 0 < fa >>> 0 ? 1 : 0), Ae = Ae + na, ra = ra + Ne + (Ae >>> 0 < na >>> 0 ? 1 : 0), Ae = Ae + he, ra = ra + ze + (Ae >>> 0 < he >>> 0 ? 1 : 0), nt = Ma + Ga, ai = Ua + La + (nt >>> 0 < Ma >>> 0 ? 1 : 0);
2444
- Ce = We, Je = ce, We = Se, ce = ge, Se = pe, ge = _e, _e = be + Ae | 0, pe = Ue + ra + (_e >>> 0 < be >>> 0 ? 1 : 0) | 0, Ue = X, be = re, X = Z, re = K, Z = V, K = $, $ = Ae + nt | 0, V = ra + ai + ($ >>> 0 < Ae >>> 0 ? 1 : 0) | 0;
2443
+ var ca = ge & Se ^ ~ge & we, fa = _e & ue ^ ~_e & ce, La = V & Z ^ V & X ^ Z & X, Ga = $ & K ^ $ & re ^ K & re, Ua = (V >>> 28 | $ << 4) ^ (V << 30 | $ >>> 2) ^ (V << 25 | $ >>> 7), Ma = ($ >>> 28 | V << 4) ^ ($ << 30 | V >>> 2) ^ ($ << 25 | V >>> 7), Ra = (ge >>> 14 | _e << 18) ^ (ge >>> 18 | _e << 14) ^ (ge << 23 | _e >>> 9), Ee = (_e >>> 14 | ge << 18) ^ (_e >>> 18 | ge << 14) ^ (_e << 23 | ge >>> 9), J = o[Fe], Ne = J.high, na = J.low, Oe = Je + Ee, ra = Ce + Ra + (Oe >>> 0 < Je >>> 0 ? 1 : 0), Oe = Oe + fa, ra = ra + ca + (Oe >>> 0 < fa >>> 0 ? 1 : 0), Oe = Oe + na, ra = ra + Ne + (Oe >>> 0 < na >>> 0 ? 1 : 0), Oe = Oe + he, ra = ra + ze + (Oe >>> 0 < he >>> 0 ? 1 : 0), nt = Ma + Ga, ai = Ua + La + (nt >>> 0 < Ma >>> 0 ? 1 : 0);
2444
+ Ce = we, Je = ce, we = Se, ce = ue, Se = ge, ue = _e, _e = be + Oe | 0, ge = Ue + ra + (_e >>> 0 < be >>> 0 ? 1 : 0) | 0, Ue = X, be = re, X = Z, re = K, Z = V, K = $, $ = Oe + nt | 0, V = ra + ai + ($ >>> 0 < Oe >>> 0 ? 1 : 0) | 0;
2445
2445
  }
2446
- T = y.low = T + $, y.high = A + V + (T >>> 0 < $ >>> 0 ? 1 : 0), F = f.low = F + K, f.high = S + Z + (F >>> 0 < K >>> 0 ? 1 : 0), w = b.low = w + re, b.high = P + X + (w >>> 0 < re >>> 0 ? 1 : 0), L = C.low = L + be, C.high = R + Ue + (L >>> 0 < be >>> 0 ? 1 : 0), O = v.low = O + _e, v.high = B + pe + (O >>> 0 < _e >>> 0 ? 1 : 0), z = x.low = z + ge, x.high = W + Se + (z >>> 0 < ge >>> 0 ? 1 : 0), h = D.low = h + ce, D.high = G + We + (h >>> 0 < ce >>> 0 ? 1 : 0), N = M.low = N + Je, M.high = E + Ce + (N >>> 0 < Je >>> 0 ? 1 : 0);
2446
+ T = y.low = T + $, y.high = A + V + (T >>> 0 < $ >>> 0 ? 1 : 0), F = f.low = F + K, f.high = S + Z + (F >>> 0 < K >>> 0 ? 1 : 0), w = b.low = w + re, b.high = P + X + (w >>> 0 < re >>> 0 ? 1 : 0), L = C.low = L + be, C.high = R + Ue + (L >>> 0 < be >>> 0 ? 1 : 0), O = v.low = O + _e, v.high = B + ge + (O >>> 0 < _e >>> 0 ? 1 : 0), z = x.low = z + ue, x.high = W + Se + (z >>> 0 < ue >>> 0 ? 1 : 0), h = D.low = h + ce, D.high = G + we + (h >>> 0 < ce >>> 0 ? 1 : 0), N = M.low = N + Je, M.high = E + Ce + (N >>> 0 < Je >>> 0 ? 1 : 0);
2447
2447
  },
2448
2448
  _doFinalize: function() {
2449
2449
  var m = this._data, _ = m.words, c = this._nDataBytes * 8, y = m.sigBytes * 8;
@@ -6408,7 +6408,7 @@ const Ca = /* @__PURE__ */ yi(Xa), wa = (e) => {
6408
6408
  getUserAvatarListApi: W,
6409
6409
  updateUserAvatarApi: z
6410
6410
  };
6411
- }, Mm = ({ otherQueryKey: e = [], options: n = {} } = {}) => {
6411
+ }, Rm = ({ otherQueryKey: e = [], options: n = {} } = {}) => {
6412
6412
  const { userCurrencyExchangeApi: a } = ne(), { getToken: r } = se(), { enabled: p, ...g } = n, d = !!r?.() && (p ? p.every((l) => l) : !0);
6413
6413
  return In({
6414
6414
  queries: [
@@ -6422,7 +6422,7 @@ const Ca = /* @__PURE__ */ yi(Xa), wa = (e) => {
6422
6422
  }
6423
6423
  ]
6424
6424
  });
6425
- }, Rm = ({
6425
+ }, Pm = ({
6426
6426
  refetchInterval: e = 5e4,
6427
6427
  trigger: n = [],
6428
6428
  enabled: a = !0
@@ -6438,7 +6438,7 @@ const Ca = /* @__PURE__ */ yi(Xa), wa = (e) => {
6438
6438
  }
6439
6439
  ]
6440
6440
  });
6441
- }, Pm = ({ enabled: e = !0 } = {}) => {
6441
+ }, wm = ({ enabled: e = !0 } = {}) => {
6442
6442
  const {
6443
6443
  userInfoApi: n,
6444
6444
  userFavoriteGameApi: a,
@@ -6551,7 +6551,7 @@ const Ca = /* @__PURE__ */ yi(Xa), wa = (e) => {
6551
6551
  queryFn: async () => await a(n),
6552
6552
  ...e
6553
6553
  });
6554
- }, wm = ({
6554
+ }, Fm = ({
6555
6555
  options: e = {
6556
6556
  betRecord: {},
6557
6557
  betRecordDetail: {}
@@ -7497,7 +7497,7 @@ const Po = /* @__PURE__ */ yi(Ro), wo = ({
7497
7497
  },
7498
7498
  ...e
7499
7499
  });
7500
- }, Fm = ({
7500
+ }, Am = ({
7501
7501
  options: e = {
7502
7502
  monthCardInfo: {},
7503
7503
  withdrawMonthCard: {}
@@ -7634,7 +7634,7 @@ const Po = /* @__PURE__ */ yi(Ro), wo = ({
7634
7634
  retry: !1,
7635
7635
  ...e
7636
7636
  });
7637
- }, Am = ({ options: e } = {}) => {
7637
+ }, Om = ({ options: e } = {}) => {
7638
7638
  const { currency: n } = se(), { pointTransferApi: a } = ne();
7639
7639
  return ee({
7640
7640
  mutationKey: ["pointTransfer"],
@@ -7644,7 +7644,7 @@ const Po = /* @__PURE__ */ yi(Ro), wo = ({
7644
7644
  }),
7645
7645
  ...e
7646
7646
  });
7647
- }, Om = ({ options: e } = {}) => {
7647
+ }, Bm = ({ options: e } = {}) => {
7648
7648
  const { currency: n } = se(), { checkUserWagerApi: a } = ne();
7649
7649
  return j({
7650
7650
  queryKey: ["checkUserWager"],
@@ -7657,7 +7657,7 @@ const Po = /* @__PURE__ */ yi(Ro), wo = ({
7657
7657
  },
7658
7658
  ...e
7659
7659
  });
7660
- }, Bm = ({ options: e } = {}) => {
7660
+ }, Hm = ({ options: e } = {}) => {
7661
7661
  const n = xa(), { abandonPointsApi: a } = ne();
7662
7662
  return ee({
7663
7663
  mutationKey: ["abandonPoint"],
@@ -7683,7 +7683,7 @@ const Po = /* @__PURE__ */ yi(Ro), wo = ({
7683
7683
  mutationFn: async (a) => n(a),
7684
7684
  ...e
7685
7685
  });
7686
- }, Hm = ({ options: e } = {}) => {
7686
+ }, Wm = ({ options: e } = {}) => {
7687
7687
  const { machineLoginApi: n } = ne();
7688
7688
  return ee({
7689
7689
  mutationKey: ["machineLogin"],
@@ -7697,28 +7697,28 @@ const Po = /* @__PURE__ */ yi(Ro), wo = ({
7697
7697
  queryFn: async () => a(n),
7698
7698
  ...e
7699
7699
  });
7700
- }, Wm = ({ options: e } = {}) => {
7700
+ }, zm = ({ options: e } = {}) => {
7701
7701
  const { currency: n } = se(), { memberTransferApi: a } = ne();
7702
7702
  return ee({
7703
7703
  mutationKey: ["memberTransfer"],
7704
7704
  mutationFn: async (r) => a({ ...r, currency: n }),
7705
7705
  ...e
7706
7706
  });
7707
- }, zm = ({ options: e } = {}) => {
7707
+ }, Im = ({ options: e } = {}) => {
7708
7708
  const { mobileLoginApi: n } = ne();
7709
7709
  return ee({
7710
7710
  mutationKey: ["mobileLogin"],
7711
7711
  mutationFn: async (a) => n(a),
7712
7712
  ...e
7713
7713
  });
7714
- }, Im = ({ options: e } = {}) => {
7714
+ }, Vm = ({ options: e } = {}) => {
7715
7715
  const { mobileLoginApiV2: n } = ne();
7716
7716
  return ee({
7717
7717
  mutationKey: ["mobileLoginV2"],
7718
7718
  mutationFn: async (a) => n(a),
7719
7719
  ...e
7720
7720
  });
7721
- }, Vm = ({ options: e } = {}) => {
7721
+ }, Jm = ({ options: e } = {}) => {
7722
7722
  const { mobileRegisterApi: n } = ne();
7723
7723
  return ee({
7724
7724
  mutationKey: ["mobileRegister"],
@@ -7732,42 +7732,42 @@ const Po = /* @__PURE__ */ yi(Ro), wo = ({
7732
7732
  mutationFn: async (a) => n(a),
7733
7733
  ...e
7734
7734
  });
7735
- }, Jm = ({ options: e } = {}) => {
7735
+ }, Zm = ({ options: e } = {}) => {
7736
7736
  const { sendMobileVerifyCodeApi: n } = ne();
7737
7737
  return ee({
7738
7738
  mutationKey: ["sendMobileVerifyCode"],
7739
7739
  mutationFn: async (a) => n(a),
7740
7740
  ...e
7741
7741
  });
7742
- }, Zm = ({ options: e, paramsData: n } = {}) => {
7742
+ }, Km = ({ options: e, paramsData: n } = {}) => {
7743
7743
  const { verifyPhoneBarApi: a } = za();
7744
7744
  return j({
7745
7745
  queryKey: ["verifyPhoneBar", n],
7746
7746
  queryFn: async () => a(n),
7747
7747
  ...e
7748
7748
  });
7749
- }, Km = ({ options: e, paramsData: n } = {}) => {
7749
+ }, qm = ({ options: e, paramsData: n } = {}) => {
7750
7750
  const { verifyDonationCodeApi: a } = za();
7751
7751
  return j({
7752
7752
  queryKey: ["verifyDonationCode", n],
7753
7753
  queryFn: async () => a(n),
7754
7754
  ...e
7755
7755
  });
7756
- }, qm = ({ options: e } = {}) => {
7756
+ }, $m = ({ options: e } = {}) => {
7757
7757
  const { createMachineApi: n } = ne();
7758
7758
  return ee({
7759
7759
  mutationKey: ["createMachine"],
7760
7760
  mutationFn: async (a) => n({ formData: a }),
7761
7761
  ...e
7762
7762
  });
7763
- }, $m = ({ options: e } = {}) => {
7763
+ }, Qm = ({ options: e } = {}) => {
7764
7764
  const { verifyResetActionApi: n } = ne();
7765
7765
  return ee({
7766
7766
  mutationKey: ["verifyResetAction"],
7767
7767
  mutationFn: async (a) => n(a),
7768
7768
  ...e
7769
7769
  });
7770
- }, Qm = ({ options: e, bonusData: n } = {}) => {
7770
+ }, jm = ({ options: e, bonusData: n } = {}) => {
7771
7771
  const { getJackpotApi: a } = ne();
7772
7772
  return j({
7773
7773
  queryKey: ["getJackpotData"],
@@ -7786,14 +7786,14 @@ const Po = /* @__PURE__ */ yi(Ro), wo = ({
7786
7786
  },
7787
7787
  ...e
7788
7788
  });
7789
- }, jm = ({ options: e } = {}) => {
7789
+ }, Ym = ({ options: e } = {}) => {
7790
7790
  const { getBetRankingApi: n } = ne();
7791
7791
  return j({
7792
7792
  queryKey: ["getBetRankingData"],
7793
7793
  queryFn: async () => n(),
7794
7794
  ...e
7795
7795
  });
7796
- }, Ym = ({ options: e } = {}) => {
7796
+ }, Xm = ({ options: e } = {}) => {
7797
7797
  const { getUserAvatarListApi: n } = ne();
7798
7798
  return j({
7799
7799
  queryKey: ["getAvatarList"],
@@ -7803,14 +7803,14 @@ const Po = /* @__PURE__ */ yi(Ro), wo = ({
7803
7803
  // },
7804
7804
  ...e
7805
7805
  });
7806
- }, Xm = ({ options: e } = {}) => {
7806
+ }, eu = ({ options: e } = {}) => {
7807
7807
  const { updateUserAvatarApi: n } = ne();
7808
7808
  return ee({
7809
7809
  mutationKey: ["updateAvatar"],
7810
7810
  mutationFn: async (a) => n(a),
7811
7811
  ...e
7812
7812
  });
7813
- }, eu = ({
7813
+ }, au = ({
7814
7814
  options: e = {
7815
7815
  login: {},
7816
7816
  logout: {},
@@ -7848,7 +7848,7 @@ const Po = /* @__PURE__ */ yi(Ro), wo = ({
7848
7848
  userRebate: i,
7849
7849
  userBindCard: o
7850
7850
  };
7851
- }, Oe = {
7851
+ }, Be = {
7852
7852
  DEPOSIT: "deposit",
7853
7853
  TRANS_CODE: "transCode",
7854
7854
  ERROR: "error",
@@ -7864,7 +7864,21 @@ const Po = /* @__PURE__ */ yi(Ro), wo = ({
7864
7864
  LINE_LOGIN: "line_login",
7865
7865
  UPDATE_EVENT_WALLET: "update_event_wallet",
7866
7866
  MONTHLY_CARD_ISSUE_POINT: "monthly_card_issue_point"
7867
- }, Xo = 3e4, au = ({
7867
+ }, Xo = 3e4, es = ({
7868
+ maintainList: e,
7869
+ isInGameBox: n,
7870
+ currentGamePlatform: a
7871
+ }) => {
7872
+ if (!n)
7873
+ return { show: !0, reason: "不在 gamebox → 照原本邏輯顯示" };
7874
+ const r = a != null && Array.isArray(e) && e.some(
7875
+ (p) => String(p?.platform) === String(a)
7876
+ );
7877
+ return {
7878
+ show: r,
7879
+ reason: r ? `在 gamebox 且當前廠商「${a}」在維護清單 → 顯示` : `在 gamebox 但當前廠商「${a ?? "(無)"}」不在維護清單 → 靜默`
7880
+ };
7881
+ }, tu = ({
7868
7882
  socketUrl: e,
7869
7883
  socketHandlers: n = {},
7870
7884
  options: a = {},
@@ -7932,7 +7946,7 @@ const Po = /* @__PURE__ */ yi(Ro), wo = ({
7932
7946
  return null;
7933
7947
  }
7934
7948
  }, [S]);
7935
- ue(() => {
7949
+ pe(() => {
7936
7950
  const L = setInterval(
7937
7951
  () => A("ping"),
7938
7952
  Xo
@@ -7953,11 +7967,11 @@ const Po = /* @__PURE__ */ yi(Ro), wo = ({
7953
7967
  },
7954
7968
  [g, l, _]
7955
7969
  );
7956
- ue(() => {
7970
+ pe(() => {
7957
7971
  y.current = n;
7958
7972
  }, [n]);
7959
7973
  const R = te(null);
7960
- return ue(() => {
7974
+ return pe(() => {
7961
7975
  if (!P || R.current === P)
7962
7976
  return;
7963
7977
  R.current = P;
@@ -7978,43 +7992,43 @@ const Po = /* @__PURE__ */ yi(Ro), wo = ({
7978
7992
  memo: Q(P, "memo", null),
7979
7993
  amount: Q(P, "amount", null),
7980
7994
  limitAmount: Q(P, "limit_amount", null)
7981
- }, K = Number(Z.memberInfoUid) === f, X = Z.data, re = Z.amount, Ue = Z.limitAmount, be = C.get("mac") || pi.get("machine_mac_address") || "", pe = Q(P, "data.line_id", null), _e = Q(P, "data.line_name", null), Se = Q(P, "member_info_uid", null);
7995
+ }, K = Number(Z.memberInfoUid) === f, X = Z.data, re = Z.amount, Ue = Z.limitAmount, be = C.get("mac") || pi.get("machine_mac_address") || "", ge = Q(P, "data.line_id", null), _e = Q(P, "data.line_name", null), Se = Q(P, "member_info_uid", null);
7982
7996
  switch ($) {
7983
- case Oe.DEPOSIT:
7997
+ case Be.DEPOSIT:
7984
7998
  K && (M(), L?.(Z));
7985
7999
  break;
7986
- case Oe.TRANS_CODE:
8000
+ case Be.TRANS_CODE:
7987
8001
  B?.(Z);
7988
8002
  break;
7989
- case Oe.ERROR:
8003
+ case Be.ERROR:
7990
8004
  if (K) {
7991
- const ge = Q(P, "open_game_modal", 0) === 1;
8005
+ const ue = Q(P, "open_game_modal", 0) === 1;
7992
8006
  w(X, {
7993
- notificationType: ge ? "gamingNotice" : void 0
8007
+ notificationType: ue ? "gamingNotice" : void 0
7994
8008
  }), O?.(Z);
7995
8009
  }
7996
8010
  break;
7997
- case Oe.UPDATE_MEMBER:
8011
+ case Be.UPDATE_MEMBER:
7998
8012
  f && (i.invalidateQueries({
7999
8013
  queryKey: ["getMemberInfo"]
8000
8014
  }), W?.(Z));
8001
8015
  break;
8002
- case Oe.MAINTAIN_NOTICE:
8016
+ case Be.MAINTAIN_NOTICE:
8003
8017
  w(X, {
8004
8018
  notificationType: "maintainNotice"
8005
8019
  }), z?.(Z);
8006
8020
  break;
8007
- case Oe.MAINTAIN_NOTICE_MEMBER: {
8008
- const ge = Z.data?.cagent_uid ?? null;
8009
- if (ge != null) {
8010
- String(b) === String(ge) && (w(Z.data?.msg, { rawMessage: !0 }), G?.(Z), setTimeout(() => {
8021
+ case Be.MAINTAIN_NOTICE_MEMBER: {
8022
+ const ue = Z.data?.cagent_uid ?? null;
8023
+ if (ue != null) {
8024
+ String(b) === String(ue) && (w(Z.data?.msg, { rawMessage: !0 }), G?.(Z), setTimeout(() => {
8011
8025
  d?.("/");
8012
8026
  }, 5e3));
8013
8027
  return;
8014
8028
  } else if (K) {
8015
- const We = l.getState()?.game?.currentGameData?.gameUid ?? null, ce = Z.data?.game_id;
8029
+ const we = l.getState()?.game?.currentGameData?.gameUid ?? null, ce = Z.data?.game_id;
8016
8030
  if (ce != null) {
8017
- Array.isArray(ce) && ce.some((Ce) => String(Ce) === String(We)) && (w(Z.data?.msg, { rawMessage: !0 }), G?.(Z), setTimeout(() => {
8031
+ Array.isArray(ce) && ce.some((Ce) => String(Ce) === String(we)) && (w(Z.data?.msg, { rawMessage: !0 }), G?.(Z), setTimeout(() => {
8018
8032
  d?.("/");
8019
8033
  }, 5e3));
8020
8034
  return;
@@ -8025,19 +8039,19 @@ const Po = /* @__PURE__ */ yi(Ro), wo = ({
8025
8039
  }
8026
8040
  break;
8027
8041
  }
8028
- case Oe.RELOAD:
8042
+ case Be.RELOAD:
8029
8043
  window.location.reload();
8030
8044
  break;
8031
- case Oe.TRANSFER_IN_GAME:
8032
- case Oe.CHECK_REQUEST:
8045
+ case Be.TRANSFER_IN_GAME:
8046
+ case Be.CHECK_REQUEST:
8033
8047
  if (K && v) {
8034
- const { request_id: ge, amount: We, platform: ce, status: Ce } = Q(Z, "data", {}) || {}, Je = localStorage.getItem(
8048
+ const { request_id: ue, amount: we, platform: ce, status: Ce } = Q(Z, "data", {}) || {}, Je = localStorage.getItem(
8035
8049
  "transfer_in_game_request_id"
8036
8050
  );
8037
8051
  if (Ce === "pending") {
8038
- localStorage.setItem("transfer_in_game_request_id", ge);
8052
+ localStorage.setItem("transfer_in_game_request_id", ue);
8039
8053
  return;
8040
- } else if (Je && Je === ge) {
8054
+ } else if (Je && Je === ue) {
8041
8055
  if (Ce === "rollback") {
8042
8056
  M();
8043
8057
  return;
@@ -8046,7 +8060,7 @@ const Po = /* @__PURE__ */ yi(Ro), wo = ({
8046
8060
  type: "ui/showToast",
8047
8061
  payload: {
8048
8062
  title: Ha[_] || "System Prompt",
8049
- description: `您於${ce}存入的${We}元已經處理完成了,請確認遊戲餘額`,
8063
+ description: `您於${ce}存入的${we}元已經處理完成了,請確認遊戲餘額`,
8050
8064
  status: "success"
8051
8065
  }
8052
8066
  }), s();
@@ -8054,33 +8068,41 @@ const Po = /* @__PURE__ */ yi(Ro), wo = ({
8054
8068
  h?.(Z);
8055
8069
  }
8056
8070
  break;
8057
- case Oe.CASH_REGISTER_LIMIT:
8071
+ case Be.CASH_REGISTER_LIMIT:
8058
8072
  w(X, {
8059
8073
  notificationType: "cashRegisterLimit",
8060
8074
  amount: re,
8061
8075
  limitAmount: Ue
8062
8076
  }), E?.(Z);
8063
8077
  break;
8064
- case Oe.UPDATE_ONLY_ONE_MEMBER:
8078
+ case Be.UPDATE_ONLY_ONE_MEMBER:
8065
8079
  K && (i.invalidateQueries({
8066
8080
  queryKey: ["getMemberInfo"]
8067
8081
  }), W?.(Z));
8068
8082
  break;
8069
- case Oe.GAME_MAINTAIN:
8070
- w(X, {
8083
+ case Be.GAME_MAINTAIN: {
8084
+ const ue = Z.data, { show: we } = es({
8085
+ maintainList: ue,
8086
+ // 直接用當前路由判斷是否在 gamebox(不依賴 transferInGamingConfig,
8087
+ // 因為不是每隻遊戲都會帶入該設定)
8088
+ isInGameBox: window.location.pathname.includes("gamebox"),
8089
+ currentGamePlatform: l.getState()?.game?.currentGameData?.gamePlatform ?? null
8090
+ });
8091
+ we && w(X, {
8071
8092
  notificationType: "gameMaintain"
8072
8093
  });
8073
8094
  break;
8074
- case Oe.LINE_LOGIN:
8095
+ }
8096
+ case Be.LINE_LOGIN:
8075
8097
  Se === be && x({
8076
- line_id: pe,
8098
+ line_id: ge,
8077
8099
  line_name: _e
8078
8100
  });
8079
8101
  break;
8080
- case Oe.UPDATE_EVENT_WALLET:
8102
+ case Be.UPDATE_EVENT_WALLET:
8081
8103
  K && (i.invalidateQueries({ queryKey: ["getEventWalletList"] }), i.invalidateQueries({ queryKey: ["evaluateEventWallet"] }));
8082
8104
  return;
8083
- case Oe.MONTHLY_CARD_ISSUE_POINT:
8105
+ case Be.MONTHLY_CARD_ISSUE_POINT:
8084
8106
  K && (i.invalidateQueries({ queryKey: Si }), V?.(Z));
8085
8107
  return;
8086
8108
  default:
@@ -8100,22 +8122,22 @@ const Po = /* @__PURE__ */ yi(Ro), wo = ({
8100
8122
  s,
8101
8123
  C,
8102
8124
  x
8103
- ]), ue(() => () => c.current = !0, []), ue(() => {
8125
+ ]), pe(() => () => c.current = !0, []), pe(() => {
8104
8126
  localStorage.getItem(
8105
8127
  "transfer_in_game_request_id"
8106
8128
  ) && m();
8107
- }, [m]), ue(() => {
8129
+ }, [m]), pe(() => {
8108
8130
  if (v) {
8109
8131
  const L = localStorage.getItem(
8110
8132
  "transfer_in_game_request_id"
8111
8133
  );
8112
8134
  L && f && u && T({
8113
- type: Oe.CHECK_REQUEST,
8135
+ type: Be.CHECK_REQUEST,
8114
8136
  request_id: L,
8115
8137
  member_info_uid: f
8116
8138
  });
8117
8139
  }
8118
- }, [f, u, T, v]), ue(() => {
8140
+ }, [f, u, T, v]), pe(() => {
8119
8141
  u ? l.dispatch({
8120
8142
  type: "ui/showToast",
8121
8143
  payload: {
@@ -8180,7 +8202,7 @@ const Po = /* @__PURE__ */ yi(Ro), wo = ({
8180
8202
  redeemEventRewardApi: r,
8181
8203
  settleEventApi: g
8182
8204
  };
8183
- }, es = ({ paramsData: e, options: n } = {}) => {
8205
+ }, as = ({ paramsData: e, options: n } = {}) => {
8184
8206
  const { store: a, lng: r, data2URL: p } = se(), { eventListApi: g } = at(), U = a?.getState()?.isWalletCurrency || a?.getState()?.currency?.currentCurrency || "TWD", d = je(r);
8185
8207
  return j({
8186
8208
  queryKey: ["eventList", e],
@@ -8318,21 +8340,21 @@ const Po = /* @__PURE__ */ yi(Ro), wo = ({
8318
8340
  },
8319
8341
  ...n
8320
8342
  });
8321
- }, tu = ({ options: e } = {}) => {
8343
+ }, iu = ({ options: e } = {}) => {
8322
8344
  const { redeemEventRewardApi: n } = at();
8323
8345
  return ee({
8324
8346
  mutationKey: ["redeemEventReward"],
8325
8347
  mutationFn: async (a) => n(a),
8326
8348
  ...e
8327
8349
  });
8328
- }, as = ({ options: e, formData: n } = {}) => {
8350
+ }, ts = ({ options: e, formData: n } = {}) => {
8329
8351
  const { checkCurrentEventProgessApi: a } = at();
8330
8352
  return j({
8331
8353
  queryKey: ["checkEventProgress"],
8332
8354
  queryFn: async () => a(n),
8333
8355
  ...e
8334
8356
  });
8335
- }, ts = ({ options: e, formData: n } = {}) => {
8357
+ }, is = ({ options: e, formData: n } = {}) => {
8336
8358
  const { checkEventStatusApi: a } = at();
8337
8359
  return j({
8338
8360
  queryKey: ["checkEventStatus"],
@@ -8340,23 +8362,23 @@ const Po = /* @__PURE__ */ yi(Ro), wo = ({
8340
8362
  select: (r) => r.data.event_status,
8341
8363
  ...e
8342
8364
  });
8343
- }, iu = ({ options: e } = {}) => {
8365
+ }, nu = ({ options: e } = {}) => {
8344
8366
  const { settleEventApi: n } = at();
8345
8367
  return ee({
8346
8368
  mutationKey: ["settleEvent"],
8347
8369
  mutationFn: async (a) => n(a),
8348
8370
  ...e
8349
8371
  });
8350
- }, nu = ({
8372
+ }, ru = ({
8351
8373
  options: e = {
8352
8374
  eventList: {},
8353
8375
  checkEventProgress: {},
8354
8376
  checkEventStatus: {}
8355
8377
  }
8356
8378
  } = {}) => {
8357
- const n = es({ options: e.eventList }), a = as({
8379
+ const n = as({ options: e.eventList }), a = ts({
8358
8380
  options: e.checkEventProgress
8359
- }), r = ts({
8381
+ }), r = is({
8360
8382
  options: e.checkEventStatus
8361
8383
  });
8362
8384
  return {
@@ -8397,7 +8419,7 @@ const Po = /* @__PURE__ */ yi(Ro), wo = ({
8397
8419
  settleEventWalletApi: p,
8398
8420
  abandonEventWalletApi: g
8399
8421
  };
8400
- }, ru = ({ gamePlatform: e, params: n } = {}) => {
8422
+ }, lu = ({ gamePlatform: e, params: n } = {}) => {
8401
8423
  const { eventWalletListApi: a } = tt();
8402
8424
  return j({
8403
8425
  queryKey: ["getEventWalletList", e, n],
@@ -8438,7 +8460,7 @@ const Po = /* @__PURE__ */ yi(Ro), wo = ({
8438
8460
  };
8439
8461
  }
8440
8462
  });
8441
- }, lu = () => {
8463
+ }, ou = () => {
8442
8464
  const e = xa(), { enabledEventWalletApi: n } = tt();
8443
8465
  return ee({
8444
8466
  mutationKey: ["enabledEventWallet"],
@@ -8447,7 +8469,7 @@ const Po = /* @__PURE__ */ yi(Ro), wo = ({
8447
8469
  e.invalidateQueries({ queryKey: ["evaluateEventWallet"] });
8448
8470
  }
8449
8471
  });
8450
- }, ou = ({ gamePlatform: e = "", options: n = {} } = {}) => {
8472
+ }, su = ({ gamePlatform: e = "", options: n = {} } = {}) => {
8451
8473
  const { evaluateEventWalletApi: a } = tt();
8452
8474
  return j({
8453
8475
  queryKey: ["evaluateEventWallet", e],
@@ -8463,7 +8485,7 @@ const Po = /* @__PURE__ */ yi(Ro), wo = ({
8463
8485
  },
8464
8486
  ...n
8465
8487
  });
8466
- }, su = () => {
8488
+ }, mu = () => {
8467
8489
  const e = xa(), { settleEventWalletApi: n } = tt();
8468
8490
  return ee({
8469
8491
  mutationKey: ["settleEventWallet"],
@@ -8472,7 +8494,7 @@ const Po = /* @__PURE__ */ yi(Ro), wo = ({
8472
8494
  e.invalidateQueries({ queryKey: ["getEventWalletList"] }), e.invalidateQueries({ queryKey: ["evaluateEventWallet"] }), e.invalidateQueries({ queryKey: ["playGame"] });
8473
8495
  }
8474
8496
  });
8475
- }, mu = () => {
8497
+ }, uu = () => {
8476
8498
  const e = xa(), { abandonEventWalletApi: n } = tt();
8477
8499
  return ee({
8478
8500
  mutationKey: ["abandonEventWallet"],
@@ -8481,7 +8503,7 @@ const Po = /* @__PURE__ */ yi(Ro), wo = ({
8481
8503
  e.invalidateQueries({ queryKey: ["getEventWalletList"] }), e.invalidateQueries({ queryKey: ["evaluateEventWallet"] }), e.invalidateQueries({ queryKey: ["playGame"] });
8482
8504
  }
8483
8505
  });
8484
- }, uu = ({ skipPreload: e = !1 } = {}) => {
8506
+ }, pu = ({ skipPreload: e = !1 } = {}) => {
8485
8507
  const { lng: n, data2URL: a } = se(), { commonCarouselApi: r } = za(), p = je(n);
8486
8508
  return j({
8487
8509
  queryKey: ["getCarouselList", e],
@@ -8509,7 +8531,7 @@ const Po = /* @__PURE__ */ yi(Ro), wo = ({
8509
8531
  };
8510
8532
  })
8511
8533
  });
8512
- }, pu = () => {
8534
+ }, gu = () => {
8513
8535
  const { lng: e, getToken: n } = se(), a = n?.(), { commonMarqueeApi: r } = za(), p = je(e);
8514
8536
  return j({
8515
8537
  queryKey: ["getMarqueeList", a],
@@ -8525,7 +8547,7 @@ const Po = /* @__PURE__ */ yi(Ro), wo = ({
8525
8547
  };
8526
8548
  }
8527
8549
  });
8528
- }, gu = ({ options: e } = {}) => {
8550
+ }, du = ({ options: e } = {}) => {
8529
8551
  const { rankingGameApi: n } = ne();
8530
8552
  return j({
8531
8553
  queryKey: ["rankingGame"],
@@ -8567,10 +8589,10 @@ const Po = /* @__PURE__ */ yi(Ro), wo = ({
8567
8589
  ...e
8568
8590
  });
8569
8591
  };
8570
- var is = Object.create, or = Object.defineProperty, ns = Object.getOwnPropertyDescriptor, rs = Object.getOwnPropertyNames, ls = Object.getPrototypeOf, os = Object.prototype.hasOwnProperty, ss = (e, n) => () => (n || e((n = { exports: {} }).exports, n), n.exports), ms = (e, n, a, r) => {
8571
- if (n && typeof n == "object" || typeof n == "function") for (let p of rs(n)) !os.call(e, p) && p !== a && or(e, p, { get: () => n[p], enumerable: !(r = ns(n, p)) || r.enumerable });
8592
+ var ns = Object.create, or = Object.defineProperty, rs = Object.getOwnPropertyDescriptor, ls = Object.getOwnPropertyNames, os = Object.getPrototypeOf, ss = Object.prototype.hasOwnProperty, ms = (e, n) => () => (n || e((n = { exports: {} }).exports, n), n.exports), us = (e, n, a, r) => {
8593
+ if (n && typeof n == "object" || typeof n == "function") for (let p of ls(n)) !ss.call(e, p) && p !== a && or(e, p, { get: () => n[p], enumerable: !(r = rs(n, p)) || r.enumerable });
8572
8594
  return e;
8573
- }, us = (e, n, a) => (a = e != null ? is(ls(e)) : {}, ms(!e || !e.__esModule ? or(a, "default", { value: e, enumerable: !0 }) : a, e)), ps = ss((e, n) => {
8595
+ }, ps = (e, n, a) => (a = e != null ? ns(os(e)) : {}, us(!e || !e.__esModule ? or(a, "default", { value: e, enumerable: !0 }) : a, e)), gs = ms((e, n) => {
8574
8596
  (function(a, r) {
8575
8597
  typeof e == "object" && typeof n < "u" ? r(e) : typeof define == "function" && define.amd ? define(["exports"], r) : (a = typeof globalThis < "u" ? globalThis : a || self, r(a.fastUniqueNumbers = {}));
8576
8598
  })(e, function(a) {
@@ -8599,12 +8621,12 @@ var is = Object.create, or = Object.defineProperty, ns = Object.getOwnPropertyDe
8599
8621
  a.addUniqueNumber = s, a.generateUniqueNumber = o;
8600
8622
  });
8601
8623
  });
8602
- us(ps());
8624
+ ps(gs());
8603
8625
  var pa = (typeof window > "u" ? "undefined" : typeof window) == "object", ea = { setTimeout: pa ? setTimeout.bind(window) : setTimeout, clearTimeout: pa ? clearTimeout.bind(window) : clearTimeout, setInterval: pa ? setInterval.bind(window) : setInterval, clearInterval: pa ? clearInterval.bind(window) : clearInterval };
8604
- function gs(e) {
8626
+ function ds(e) {
8605
8627
  ea.setTimeout = e.setTimeout, ea.clearTimeout = e.clearTimeout, ea.setInterval = e.setInterval, ea.clearInterval = e.clearInterval;
8606
8628
  }
8607
- var Fa = {}, ds = class {
8629
+ var Fa = {}, cs = class {
8608
8630
  name;
8609
8631
  closed = !1;
8610
8632
  mc = new MessageChannel();
@@ -8652,14 +8674,14 @@ var Fa = {}, ds = class {
8652
8674
  dispatchEvent(e) {
8653
8675
  return this.mc.port1.dispatchEvent(e);
8654
8676
  }
8655
- }, cs = typeof window > "u" ? void 0 : typeof window.BroadcastChannel == "function" ? window.BroadcastChannel : ds;
8656
- function fs(e = 0) {
8677
+ }, fs = typeof window > "u" ? void 0 : typeof window.BroadcastChannel == "function" ? window.BroadcastChannel : cs;
8678
+ function _s(e = 0) {
8657
8679
  return new Promise((n) => ea.setTimeout(n, e));
8658
8680
  }
8659
8681
  function sr() {
8660
8682
  return Math.random().toString(36).substring(2);
8661
8683
  }
8662
- var _s = class {
8684
+ var ys = class {
8663
8685
  options;
8664
8686
  channel;
8665
8687
  token = sr();
@@ -8683,7 +8705,7 @@ var _s = class {
8683
8705
  };
8684
8706
  this.channel.addEventListener("message", n);
8685
8707
  try {
8686
- return this.sendAction(0), await fs(this.options.responseTime), this.channel.removeEventListener("message", n), this.isApplying = !1, e ? this.reApply ? this.apply() : !1 : (this.assumeLead(), !0);
8708
+ return this.sendAction(0), await _s(this.options.responseTime), this.channel.removeEventListener("message", n), this.isApplying = !1, e ? this.reApply ? this.apply() : !1 : (this.assumeLead(), !0);
8687
8709
  } catch {
8688
8710
  return !1;
8689
8711
  }
@@ -8739,7 +8761,7 @@ var _s = class {
8739
8761
  }
8740
8762
  }
8741
8763
  }
8742
- }, ys = class {
8764
+ }, Us = class {
8743
8765
  channel;
8744
8766
  options;
8745
8767
  elector;
@@ -8749,9 +8771,9 @@ var _s = class {
8749
8771
  isLastActive = !1;
8750
8772
  constructor(e) {
8751
8773
  let { channelName: n } = e;
8752
- if (this.options = e, this.channel = new cs(n), this.registry.set(this.token, 1), e.leaderElection) {
8774
+ if (this.options = e, this.channel = new fs(n), this.registry.set(this.token, 1), e.leaderElection) {
8753
8775
  let a = { fallbackInterval: 2e3, responseTime: 100 };
8754
- this.elector = new _s(this.channel, a), this.elector.waitForLeadership();
8776
+ this.elector = new ys(this.channel, a), this.elector.waitForLeadership();
8755
8777
  }
8756
8778
  this.channel.addEventListener("message", (a) => {
8757
8779
  let { action: r, token: p, data: g } = a.data;
@@ -8841,8 +8863,8 @@ var _s = class {
8841
8863
  close() {
8842
8864
  this.options.leaderElection && this.elector.close(), this.send(4), this.channel.close();
8843
8865
  }
8844
- }, Us = pa ? document : null, bs = ["mousemove", "keydown", "wheel", "DOMMouseScroll", "mousewheel", "mousedown", "touchstart", "touchmove", "MSPointerDown", "MSPointerMove", "visibilitychange", "focus"];
8845
- function Cs(e, n) {
8866
+ }, bs = pa ? document : null, Cs = ["mousemove", "keydown", "wheel", "DOMMouseScroll", "mousewheel", "mousedown", "touchstart", "touchmove", "MSPointerDown", "MSPointerMove", "visibilitychange", "focus"];
8867
+ function vs(e, n) {
8846
8868
  let a;
8847
8869
  function r(...p) {
8848
8870
  a && clearTimeout(a), a = setTimeout(() => {
@@ -8861,7 +8883,7 @@ function mi(e, n) {
8861
8883
  };
8862
8884
  }
8863
8885
  var ke = () => Date.now(), Aa = 2147483647;
8864
- function vs({ timeout: e = 1e3 * 60 * 20, promptTimeout: n = 0, promptBeforeIdle: a = 0, element: r = Us, events: p = bs, timers: g = void 0, immediateEvents: U = [], onPresenceChange: d = () => {
8886
+ function hs({ timeout: e = 1e3 * 60 * 20, promptTimeout: n = 0, promptBeforeIdle: a = 0, element: r = bs, events: p = Cs, timers: g = void 0, immediateEvents: U = [], onPresenceChange: d = () => {
8865
8887
  }, onPrompt: l = () => {
8866
8888
  }, onIdle: t = () => {
8867
8889
  }, onActive: i = () => {
@@ -8869,7 +8891,7 @@ function vs({ timeout: e = 1e3 * 60 * 20, promptTimeout: n = 0, promptBeforeIdle
8869
8891
  }, onMessage: s = () => {
8870
8892
  }, debounce: u = 0, throttle: m = 0, eventsThrottle: _ = 200, startOnMount: c = !0, startManually: y = !1, stopOnIdle: f = !1, crossTab: b = !1, name: C = "idle-timer", syncTimers: v = 0, leaderElection: x = !1, disabled: D = !1 } = {}) {
8871
8893
  let M = te(ke()), A = te(ke()), T = te(null), S = te(null), F = te(0), P = te(0), w = te(0), R = te(0), L = te(!1), B = te(!1), O = te(!1), W = te(!0), z = te(!1), G = te(null), h = te(null), E = te(e), N = te(0);
8872
- ue(() => {
8894
+ pe(() => {
8873
8895
  if (n && console.warn("⚠️ IdleTimer -- The `promptTimeout` property has been deprecated in favor of `promptBeforeIdle`. It will be removed in the next major release."), a && n) throw new Error("❌ Both promptTimeout and promptBeforeIdle can not be set. The promptTimeout property will be deprecated in a future version.");
8874
8896
  if (e >= Aa) throw new Error(`❌ The value for the timeout property must fit in a 32 bit signed integer, ${Aa}.`);
8875
8897
  if (n >= Aa) throw new Error(`❌ The value for the promptTimeout property must fit in a 32 bit signed integer, ${Aa}.`);
@@ -8877,47 +8899,47 @@ function vs({ timeout: e = 1e3 * 60 * 20, promptTimeout: n = 0, promptBeforeIdle
8877
8899
  if (a >= e) throw new Error(`❌ The value for the promptBeforeIdle property must be less than the timeout property, ${e}.`);
8878
8900
  if (a ? (E.current = e - a, N.current = a) : (E.current = e, N.current = n), !W.current) {
8879
8901
  if (y || D) return;
8880
- L.current && (pe.current(null, Ee), h.current && h.current.active()), Ye();
8902
+ L.current && (ge.current(null, Ee), h.current && h.current.active()), Ye();
8881
8903
  }
8882
8904
  }, [e, n, a, y, D]);
8883
8905
  let V = te(f);
8884
- ue(() => {
8906
+ pe(() => {
8885
8907
  V.current = f;
8886
8908
  }, [f]);
8887
8909
  let $ = te(U), Z = te(r), K = te([...(/* @__PURE__ */ new Set([...p, ...U])).values()]), X = te(D);
8888
- ue(() => {
8910
+ pe(() => {
8889
8911
  X.current = D, !W.current && (D ? Ze() : y || Ye());
8890
8912
  }, [D]);
8891
8913
  let re = te(d);
8892
- ue(() => {
8914
+ pe(() => {
8893
8915
  re.current = d;
8894
8916
  }, [d]);
8895
8917
  let Ue = te(l);
8896
- ue(() => {
8918
+ pe(() => {
8897
8919
  Ue.current = l;
8898
8920
  }, [l]);
8899
8921
  let be = te(t);
8900
- ue(() => {
8922
+ pe(() => {
8901
8923
  be.current = t;
8902
8924
  }, [t]);
8903
- let pe = te(i);
8904
- ue(() => {
8905
- pe.current = i;
8925
+ let ge = te(i);
8926
+ pe(() => {
8927
+ ge.current = i;
8906
8928
  }, [i]);
8907
8929
  let _e = te(o);
8908
- ue(() => {
8930
+ pe(() => {
8909
8931
  _e.current = o;
8910
8932
  }, [o]);
8911
8933
  let Se = te(s);
8912
- ue(() => {
8934
+ pe(() => {
8913
8935
  Se.current = s;
8914
8936
  }, [s]);
8915
- let ge = Ba(() => {
8937
+ let ue = Ba(() => {
8916
8938
  let J = (Ne, na) => _e.current(Ne, na);
8917
- return u > 0 ? Cs(J, u) : m > 0 ? mi(J, m) : J;
8918
- }, [m, u]), We = te();
8919
- ue(() => {
8920
- b && v && (We.current = mi(() => {
8939
+ return u > 0 ? vs(J, u) : m > 0 ? mi(J, m) : J;
8940
+ }, [m, u]), we = te();
8941
+ pe(() => {
8942
+ b && v && (we.current = mi(() => {
8921
8943
  h.current.active();
8922
8944
  }, v));
8923
8945
  }, [b, v]);
@@ -8927,24 +8949,24 @@ function vs({ timeout: e = 1e3 * 60 * 20, promptTimeout: n = 0, promptBeforeIdle
8927
8949
  ce(), G.current = ea.setTimeout(ze, J || E.current), Ne && (S.current = ke());
8928
8950
  }, Je = (J) => {
8929
8951
  !B.current && !L.current && (Ue.current(J, Ee), re.current({ type: "active", prompted: !0 }, Ee)), R.current = 0, w.current = ke(), B.current = !0, Ce(N.current, !1);
8930
- }, we = () => {
8931
- ce(), L.current || (be.current(null, Ee), re.current({ type: "idle" }, Ee)), L.current = !0, T.current = ke(), V.current ? Fe() : B.current && (w.current = 0, B.current = !1);
8952
+ }, Fe = () => {
8953
+ ce(), L.current || (be.current(null, Ee), re.current({ type: "idle" }, Ee)), L.current = !0, T.current = ke(), V.current ? Ae() : B.current && (w.current = 0, B.current = !1);
8932
8954
  }, he = (J) => {
8933
- ce(), (L.current || B.current) && (pe.current(J, Ee), re.current({ type: "active", prompted: !1 }, Ee)), B.current = !1, w.current = 0, L.current = !1, F.current += ke() - T.current, P.current += ke() - T.current, De(), Ce();
8955
+ ce(), (L.current || B.current) && (ge.current(J, Ee), re.current({ type: "active", prompted: !1 }, Ee)), B.current = !1, w.current = 0, L.current = !1, F.current += ke() - T.current, P.current += ke() - T.current, De(), Ce();
8934
8956
  }, ze = (J) => {
8935
8957
  if (!L.current) {
8936
- ge.cancel && ge.cancel();
8958
+ ue.cancel && ue.cancel();
8937
8959
  let Ne = ke() - S.current;
8938
8960
  if (!(E.current + N.current < Ne) && N.current > 0 && !B.current) {
8939
8961
  h.current ? h.current.prompt() : Je(J);
8940
8962
  return;
8941
8963
  }
8942
- h.current ? h.current.idle() : we();
8964
+ h.current ? h.current.idle() : Fe();
8943
8965
  return;
8944
8966
  }
8945
8967
  h.current ? h.current.active() : he(J);
8946
8968
  }, ta = (J) => {
8947
- if (!c && !S.current && (S.current = ke(), pe.current(null, Ee)), ge(J, Ee), B.current) return;
8969
+ if (!c && !S.current && (S.current = ke(), ge.current(null, Ee)), ue(J, Ee), B.current) return;
8948
8970
  if (ce(), !L.current && $.current.includes(J.type)) {
8949
8971
  ze(J);
8950
8972
  return;
@@ -8954,21 +8976,21 @@ function vs({ timeout: e = 1e3 * 60 * 20, promptTimeout: n = 0, promptBeforeIdle
8954
8976
  ze(J);
8955
8977
  return;
8956
8978
  }
8957
- O.current = !1, R.current = 0, w.current = 0, Ce(), b && v && We.current();
8979
+ O.current = !1, R.current = 0, w.current = 0, Ce(), b && v && we.current();
8958
8980
  }, ia = te(ta);
8959
- ue(() => {
8981
+ pe(() => {
8960
8982
  let J = z.current;
8961
- J && Fe(), _ > 0 ? ia.current = mi(ta, _) : ia.current = ta, J && De();
8983
+ J && Ae(), _ > 0 ? ia.current = mi(ta, _) : ia.current = ta, J && De();
8962
8984
  }, [_, m, u, _e, b, v]);
8963
8985
  let De = () => {
8964
8986
  pa && Z.current && (z.current || (K.current.forEach((J) => {
8965
8987
  Z.current.addEventListener(J, ia.current, { capture: !0, passive: !0 });
8966
8988
  }), z.current = !0));
8967
- }, Fe = (J = !1) => {
8989
+ }, Ae = (J = !1) => {
8968
8990
  pa && Z.current && (z.current || J) && (K.current.forEach((Ne) => {
8969
8991
  Z.current.removeEventListener(Ne, ia.current, { capture: !0 });
8970
8992
  }), z.current = !1);
8971
- }, Ye = H((J) => X.current ? !1 : (ce(), De(), L.current = !1, B.current = !1, O.current = !1, R.current = 0, w.current = 0, h.current && !J && h.current.start(), Ce(), !0), [G, L, X, E, h]), oa = H((J) => X.current ? !1 : (ce(), De(), A.current = ke(), F.current += ke() - T.current, P.current += ke() - T.current, F.current = 0, L.current = !1, B.current = !1, O.current = !1, R.current = 0, w.current = 0, h.current && !J && h.current.reset(), y || Ce(), !0), [G, L, E, y, X, h]), ga = H((J) => X.current ? !1 : (ce(), De(), (L.current || B.current) && he(), L.current = !1, B.current = !1, O.current = !1, R.current = 0, w.current = 0, A.current = ke(), h.current && !J && h.current.activate(), Ce(), !0), [G, L, B, X, E, h]), Ze = H((J = !1) => X.current || O.current ? !1 : (R.current = ya(), O.current = !0, Fe(), ce(), h.current && !J && h.current.pause(), !0), [G, X, h]), Xe = H((J = !1) => X.current || !O.current ? !1 : (O.current = !1, B.current || De(), L.current || Ce(R.current), w.current && (w.current = ke()), h.current && !J && h.current.resume(), !0), [G, E, X, R, h]), Va = H((J, Ne) => (h.current ? (Ne && Se.current(J, Ee), h.current.message(J)) : Ne && Se.current(J, Ee), !0), [s]), Ea = H(() => L.current, [L]), Na = H(() => B.current, [B]), Ja = H(() => h.current ? h.current.isLeader : null, [h]), Za = H(() => h.current ? h.current.isLastActive : null, [h]), da = H(() => h.current ? h.current.token : null, [h]), ya = H(() => {
8993
+ }, Ye = H((J) => X.current ? !1 : (ce(), De(), L.current = !1, B.current = !1, O.current = !1, R.current = 0, w.current = 0, h.current && !J && h.current.start(), Ce(), !0), [G, L, X, E, h]), oa = H((J) => X.current ? !1 : (ce(), De(), A.current = ke(), F.current += ke() - T.current, P.current += ke() - T.current, F.current = 0, L.current = !1, B.current = !1, O.current = !1, R.current = 0, w.current = 0, h.current && !J && h.current.reset(), y || Ce(), !0), [G, L, E, y, X, h]), ga = H((J) => X.current ? !1 : (ce(), De(), (L.current || B.current) && he(), L.current = !1, B.current = !1, O.current = !1, R.current = 0, w.current = 0, A.current = ke(), h.current && !J && h.current.activate(), Ce(), !0), [G, L, B, X, E, h]), Ze = H((J = !1) => X.current || O.current ? !1 : (R.current = ya(), O.current = !0, Ae(), ce(), h.current && !J && h.current.pause(), !0), [G, X, h]), Xe = H((J = !1) => X.current || !O.current ? !1 : (O.current = !1, B.current || De(), L.current || Ce(R.current), w.current && (w.current = ke()), h.current && !J && h.current.resume(), !0), [G, E, X, R, h]), Va = H((J, Ne) => (h.current ? (Ne && Se.current(J, Ee), h.current.message(J)) : Ne && Se.current(J, Ee), !0), [s]), Ea = H(() => L.current, [L]), Na = H(() => B.current, [B]), Ja = H(() => h.current ? h.current.isLeader : null, [h]), Za = H(() => h.current ? h.current.isLastActive : null, [h]), da = H(() => h.current ? h.current.token : null, [h]), ya = H(() => {
8972
8994
  if (O.current) return R.current;
8973
8995
  let J = R.current ? R.current : N.current + E.current, Ne = S.current ? ke() - S.current : 0, na = Math.floor(J - Ne);
8974
8996
  return na < 0 ? 0 : Math.abs(na);
@@ -8979,34 +9001,34 @@ function vs({ timeout: e = 1e3 * 60 * 20, promptTimeout: n = 0, promptBeforeIdle
8979
9001
  let J = Math.round(ca() - Ua());
8980
9002
  return J >= 0 ? J : 0;
8981
9003
  }, [T, F]);
8982
- ue(() => {
9004
+ pe(() => {
8983
9005
  if (u > 0 && m > 0) throw new Error("❌ onAction can either be throttled or debounced, not both.");
8984
- g && gs(g);
9006
+ g && ds(g);
8985
9007
  let J = () => {
8986
- h.current && h.current.close(), ge.cancel && ge.cancel(), ce(), Fe(!0);
9008
+ h.current && h.current.close(), ue.cancel && ue.cancel(), ce(), Ae(!0);
8987
9009
  };
8988
9010
  return pa && window.addEventListener("beforeunload", J), () => {
8989
- pa && window.removeEventListener("beforeunload", J), h.current && h.current.close(), ge.cancel && ge.cancel(), ce(), Fe(!0);
9011
+ pa && window.removeEventListener("beforeunload", J), h.current && h.current.close(), ue.cancel && ue.cancel(), ce(), Ae(!0);
8990
9012
  };
8991
- }, []), ue(() => {
8992
- h.current && h.current.close(), b ? h.current = new ys({ channelName: C, leaderElection: x, onPrompt: () => {
9013
+ }, []), pe(() => {
9014
+ h.current && h.current.close(), b ? h.current = new Us({ channelName: C, leaderElection: x, onPrompt: () => {
8993
9015
  Je();
8994
9016
  }, onIdle: () => {
8995
- we();
9017
+ Fe();
8996
9018
  }, onActive: () => {
8997
9019
  he();
8998
9020
  }, onMessage: (J) => {
8999
9021
  Se.current(J, Ee);
9000
9022
  }, start: Ye, reset: oa, activate: ga, pause: Ze, resume: Xe }) : h.current = null;
9001
- }, [b, C, x, Ue, be, pe, Se, Ye, oa, Ze, Xe]), ue(() => {
9002
- W.current || (ce(), Fe(!0)), !(y || D) && (c ? Ye() : De());
9003
- }, [y, c, D, W]), ue(() => {
9023
+ }, [b, C, x, Ue, be, ge, Se, Ye, oa, Ze, Xe]), pe(() => {
9024
+ W.current || (ce(), Ae(!0)), !(y || D) && (c ? Ye() : De());
9025
+ }, [y, c, D, W]), pe(() => {
9004
9026
  if (!W.current) {
9005
9027
  let J = [...(/* @__PURE__ */ new Set([...p, ...U])).values()];
9006
- if (Fe(), K.current = J, Z.current = r, $.current = U, y || D) return;
9028
+ if (Ae(), K.current = J, Z.current = r, $.current = U, y || D) return;
9007
9029
  c ? Ye() : De();
9008
9030
  }
9009
- }, [r, JSON.stringify(p), JSON.stringify(U), W, D, y, c]), ue(() => {
9031
+ }, [r, JSON.stringify(p), JSON.stringify(U), W, D, y, c]), pe(() => {
9010
9032
  W.current && (W.current = !1);
9011
9033
  }, [W]);
9012
9034
  let Ee = { message: Va, start: Ye, reset: oa, activate: ga, pause: Ze, resume: Xe, isIdle: Ea, isPrompted: Na, isLeader: Ja, isLastActiveTab: Za, getTabId: da, getRemainingTime: ya, getElapsedTime: $e, getTotalElapsedTime: ca, getLastIdleTime: fa, getLastActiveTime: La, getIdleTime: Ga, getTotalIdleTime: Ua, getActiveTime: Ma, getTotalActiveTime: Ra, setOnPresenceChange: (J) => {
@@ -9016,7 +9038,7 @@ function vs({ timeout: e = 1e3 * 60 * 20, promptTimeout: n = 0, promptBeforeIdle
9016
9038
  }, setOnIdle: (J) => {
9017
9039
  t = J, be.current = J;
9018
9040
  }, setOnActive: (J) => {
9019
- i = J, pe.current = J;
9041
+ i = J, ge.current = J;
9020
9042
  }, setOnAction: (J) => {
9021
9043
  o = J, _e.current = J;
9022
9044
  }, setOnMessage: (J) => {
@@ -9024,15 +9046,15 @@ function vs({ timeout: e = 1e3 * 60 * 20, promptTimeout: n = 0, promptBeforeIdle
9024
9046
  } };
9025
9047
  return Ee;
9026
9048
  }
9027
- var hs = jt(null);
9028
- hs.Consumer;
9029
- const du = ({ onIdle: e, onActive: n, onAction: a, timeout: r = 6e5 }) => vs({
9049
+ var Ts = jt(null);
9050
+ Ts.Consumer;
9051
+ const cu = ({ onIdle: e, onActive: n, onAction: a, timeout: r = 6e5 }) => hs({
9030
9052
  onIdle: e,
9031
9053
  onActive: n,
9032
9054
  onAction: a,
9033
9055
  timeout: r,
9034
9056
  throttle: 500
9035
- }), Ts = ({ options: e } = {}) => {
9057
+ }), ks = ({ options: e } = {}) => {
9036
9058
  const { commonInboxApi: n } = za(), { getToken: a, lng: r } = se(), p = a?.(), g = je(r);
9037
9059
  return j({
9038
9060
  queryKey: ["inboxList"],
@@ -9053,20 +9075,20 @@ const du = ({ onIdle: e, onActive: n, onAction: a, timeout: r = 6e5 }) => vs({
9053
9075
  enabled: !!p,
9054
9076
  ...e
9055
9077
  });
9056
- }, ks = ({ options: e } = {}) => {
9078
+ }, xs = ({ options: e } = {}) => {
9057
9079
  const { commonReadInboxApi: n } = za();
9058
9080
  return ee({
9059
9081
  mutationKey: ["readInbox"],
9060
9082
  mutationFn: async (a) => await n(a),
9061
9083
  ...e
9062
9084
  });
9063
- }, cu = ({
9085
+ }, fu = ({
9064
9086
  options: e = {
9065
9087
  inboxList: {},
9066
9088
  readInbox: {}
9067
9089
  }
9068
9090
  } = {}) => {
9069
- const n = Ts({ options: e.inboxList }), a = ks({ options: e.readInbox });
9091
+ const n = ks({ options: e.inboxList }), a = xs({ options: e.readInbox });
9070
9092
  return {
9071
9093
  inboxListQuery: n,
9072
9094
  readInboxMutation: a
@@ -9081,7 +9103,7 @@ const du = ({ onIdle: e, onActive: n, onAction: a, timeout: r = 6e5 }) => vs({
9081
9103
  [e]
9082
9104
  )
9083
9105
  };
9084
- }, xs = ({
9106
+ }, Ss = ({
9085
9107
  typeConfig: e = {
9086
9108
  all: {},
9087
9109
  crypto: {},
@@ -9127,7 +9149,7 @@ const du = ({ onIdle: e, onActive: n, onAction: a, timeout: r = 6e5 }) => vs({
9127
9149
  value: "other",
9128
9150
  ...e.other
9129
9151
  }
9130
- ], fu = ({ options: e, formData: n } = {}) => {
9152
+ ], _u = ({ options: e, formData: n } = {}) => {
9131
9153
  const { lng: a } = se(), { newsListApi: r } = mr(), p = je(a);
9132
9154
  return j({
9133
9155
  queryKey: ["newsList"],
@@ -9148,12 +9170,12 @@ const du = ({ onIdle: e, onActive: n, onAction: a, timeout: r = 6e5 }) => vs({
9148
9170
  return {
9149
9171
  ...g.data,
9150
9172
  data: l,
9151
- blogType: xs({ typeConfig: e?.typeConfig })
9173
+ blogType: Ss({ typeConfig: e?.typeConfig })
9152
9174
  };
9153
9175
  },
9154
9176
  ...e
9155
9177
  });
9156
- }, _u = ({ options: e, formData: n } = {}) => {
9178
+ }, yu = ({ options: e, formData: n } = {}) => {
9157
9179
  const { lng: a } = se(), { newsListApi: r } = mr(), p = je(a);
9158
9180
  return j({
9159
9181
  queryKey: ["newsList"],
@@ -9377,14 +9399,14 @@ const du = ({ onIdle: e, onActive: n, onAction: a, timeout: r = 6e5 }) => vs({
9377
9399
  snCashRecordApi: _,
9378
9400
  otherTransactionApi: t
9379
9401
  };
9380
- }, Ss = ({ options: e } = {}) => {
9402
+ }, Ds = ({ options: e } = {}) => {
9381
9403
  const { depositApiV1: n } = Re();
9382
9404
  return j({
9383
9405
  queryKey: ["depositV1"],
9384
9406
  queryFn: n,
9385
9407
  ...e
9386
9408
  });
9387
- }, Ds = ({ paramsData: e, options: n } = {}) => {
9409
+ }, Es = ({ paramsData: e, options: n } = {}) => {
9388
9410
  const { depositApiV2: a } = Re();
9389
9411
  return j({
9390
9412
  queryKey: ["depositV2", e],
@@ -9409,119 +9431,119 @@ const du = ({ onIdle: e, onActive: n, onAction: a, timeout: r = 6e5 }) => vs({
9409
9431
  },
9410
9432
  ...n
9411
9433
  });
9412
- }, Es = ({ options: e } = {}) => {
9434
+ }, Ns = ({ options: e } = {}) => {
9413
9435
  const { depositApi: n } = Re();
9414
9436
  return ee({
9415
9437
  mutationKey: ["depositAction"],
9416
9438
  mutationFn: async (a) => n(a),
9417
9439
  ...e
9418
9440
  });
9419
- }, Ns = ({ options: e } = {}) => {
9441
+ }, Ls = ({ options: e } = {}) => {
9420
9442
  const { withdrawApi: n } = Re();
9421
9443
  return ee({
9422
9444
  mutationKey: ["withdrawAction"],
9423
9445
  mutationFn: async (a) => n(a),
9424
9446
  ...e
9425
9447
  });
9426
- }, Ls = ({ paramsData: e, options: n } = {}) => {
9448
+ }, Gs = ({ paramsData: e, options: n } = {}) => {
9427
9449
  const { depositTransactionApi: a } = Re();
9428
9450
  return j({
9429
9451
  queryKey: ["depositTransaction", e],
9430
9452
  queryFn: () => a({ paramsData: e }),
9431
9453
  ...n
9432
9454
  });
9433
- }, Gs = ({ paramsData: e, options: n } = {}) => {
9455
+ }, Ms = ({ paramsData: e, options: n } = {}) => {
9434
9456
  const { eventTransactionApi: a } = Re();
9435
9457
  return j({
9436
9458
  queryKey: ["eventTransaction", e],
9437
9459
  queryFn: () => a({ paramsData: e }),
9438
9460
  ...n
9439
9461
  });
9440
- }, Ms = ({ options: e } = {}) => {
9462
+ }, Rs = ({ options: e } = {}) => {
9441
9463
  const { bankDepositApi: n } = Re();
9442
9464
  return ee({
9443
9465
  mutationKey: ["bankDeposit"],
9444
9466
  mutationFn: async (a) => n(a),
9445
9467
  ...e
9446
9468
  });
9447
- }, Rs = ({ paramsData: e, options: n } = {}) => {
9469
+ }, Ps = ({ paramsData: e, options: n } = {}) => {
9448
9470
  const { withdrawTransactionApi: a } = Re();
9449
9471
  return j({
9450
9472
  queryKey: ["withdrawTransaction", e],
9451
9473
  queryFn: () => a({ paramsData: e }),
9452
9474
  ...n
9453
9475
  });
9454
- }, yu = ({ options: e } = {}) => {
9476
+ }, Uu = ({ options: e } = {}) => {
9455
9477
  const { redeemCodeDepositApi: n } = Re();
9456
9478
  return ee({
9457
9479
  mutationKey: ["redeemCodeDeposit"],
9458
9480
  mutationFn: async (a) => n(a),
9459
9481
  ...e
9460
9482
  });
9461
- }, Uu = ({ options: e } = {}) => {
9483
+ }, bu = ({ options: e } = {}) => {
9462
9484
  const { invoiceApi: n } = Re();
9463
9485
  return ee({
9464
9486
  mutationKey: ["invoiceAction"],
9465
9487
  mutationFn: async (a) => n(a),
9466
9488
  ...e
9467
9489
  });
9468
- }, bu = ({ options: e } = {}) => {
9490
+ }, Cu = ({ options: e } = {}) => {
9469
9491
  const { updateInvoiceApi: n } = Re();
9470
9492
  return ee({
9471
9493
  mutationKey: ["updateInvoiceAction"],
9472
9494
  mutationFn: async (a) => n(a),
9473
9495
  ...e
9474
9496
  });
9475
- }, Cu = ({ options: e, paramsData: n } = {}) => {
9497
+ }, vu = ({ options: e, paramsData: n } = {}) => {
9476
9498
  const { transactionRecordApi: a } = Re();
9477
9499
  return j({
9478
9500
  queryKey: ["transactionRecord", "deposit"],
9479
9501
  queryFn: () => a(n, "deposit"),
9480
9502
  ...e
9481
9503
  });
9482
- }, vu = ({ options: e, paramsData: n } = {}) => {
9504
+ }, hu = ({ options: e, paramsData: n } = {}) => {
9483
9505
  const { transactionRecordApi: a } = Re();
9484
9506
  return j({
9485
9507
  queryKey: ["transactionRecord", "withdraw"],
9486
9508
  queryFn: () => a(n, "withdraw"),
9487
9509
  ...e
9488
9510
  });
9489
- }, hu = ({ options: e, paramsData: n } = {}) => {
9511
+ }, Tu = ({ options: e, paramsData: n } = {}) => {
9490
9512
  const { transactionRecordApi: a } = Re();
9491
9513
  return j({
9492
9514
  queryKey: ["transactionRecord", "event"],
9493
9515
  queryFn: () => a(n, "event"),
9494
9516
  ...e
9495
9517
  });
9496
- }, Tu = ({ options: e, paramsData: n } = {}) => {
9518
+ }, ku = ({ options: e, paramsData: n } = {}) => {
9497
9519
  const { transactionRecordApi: a } = Re();
9498
9520
  return j({
9499
9521
  queryKey: ["transactionRecord", "rebate"],
9500
9522
  queryFn: () => a(n, "rebate"),
9501
9523
  ...e
9502
9524
  });
9503
- }, ku = ({ options: e, paramsData: n } = {}) => {
9525
+ }, xu = ({ options: e, paramsData: n } = {}) => {
9504
9526
  const { treasureRecordApi: a } = Re();
9505
9527
  return j({
9506
9528
  queryKey: ["treasureRecord", n],
9507
9529
  queryFn: () => a(n),
9508
9530
  ...e
9509
9531
  });
9510
- }, xu = ({ options: e, paramsData: n } = {}) => {
9532
+ }, Su = ({ options: e, paramsData: n } = {}) => {
9511
9533
  const { snCashRecordApi: a } = Re();
9512
9534
  return j({
9513
9535
  queryKey: ["snCashRecord", n],
9514
9536
  queryFn: () => a(n),
9515
9537
  ...e
9516
9538
  });
9517
- }, Su = ({ options: e, paramsData: n } = {}) => {
9539
+ }, Du = ({ options: e, paramsData: n } = {}) => {
9518
9540
  const { otherTransactionApi: a } = Re();
9519
9541
  return j({
9520
9542
  queryKey: ["otherTransaction", n],
9521
9543
  queryFn: () => a({ paramsData: n }),
9522
9544
  ...e
9523
9545
  });
9524
- }, Du = ({
9546
+ }, Eu = ({
9525
9547
  depositV1: e = {},
9526
9548
  depositV2: n = {},
9527
9549
  depositTransaction: a = {},
@@ -9531,7 +9553,7 @@ const du = ({ onIdle: e, onActive: n, onAction: a, timeout: r = 6e5 }) => vs({
9531
9553
  eventTransaction: U = {},
9532
9554
  withdrawTransaction: d = {}
9533
9555
  } = {}) => {
9534
- const l = Ss(e), t = Ds(n), i = Ls(a), o = Es(r), s = Ns(p), u = Ms(g), m = Gs(U), _ = Rs(
9556
+ const l = Ds(e), t = Es(n), i = Gs(a), o = Ns(r), s = Ls(p), u = Rs(g), m = Ms(U), _ = Ps(
9535
9557
  d
9536
9558
  );
9537
9559
  return {
@@ -9544,10 +9566,10 @@ const du = ({ onIdle: e, onActive: n, onAction: a, timeout: r = 6e5 }) => vs({
9544
9566
  eventTransaction: m,
9545
9567
  withdrawTransaction: _
9546
9568
  };
9547
- }, ur = "3.8.0", Ps = ur, Ia = typeof Buffer == "function", wn = typeof TextDecoder == "function" ? new TextDecoder("utf-8", { ignoreBOM: !0 }) : void 0, Fn = typeof TextEncoder == "function" ? new TextEncoder() : void 0, ws = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=", Ya = Array.prototype.slice.call(ws), ut = ((e) => {
9569
+ }, ur = "3.8.0", ws = ur, Ia = typeof Buffer == "function", wn = typeof TextDecoder == "function" ? new TextDecoder("utf-8", { ignoreBOM: !0 }) : void 0, Fn = typeof TextEncoder == "function" ? new TextEncoder() : void 0, Fs = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=", Ya = Array.prototype.slice.call(Fs), ut = ((e) => {
9548
9570
  let n = {};
9549
9571
  return e.forEach((a, r) => n[a] = r), n;
9550
- })(Ya), Fs = /^(?:[A-Za-z\d+\/]{4})*?(?:[A-Za-z\d+\/]{2}(?:==)?|[A-Za-z\d+\/]{3}=?)?$/, Pe = String.fromCharCode.bind(String), An = typeof Uint8Array.from == "function" ? Uint8Array.from.bind(Uint8Array) : (e) => new Uint8Array(Array.prototype.slice.call(e, 0)), pr = (e) => e.replace(/=/g, "").replace(/[+\/]/g, (n) => n == "+" ? "-" : "_"), gr = (e) => e.replace(/[^A-Za-z0-9\+\/]/g, ""), dr = (e) => {
9572
+ })(Ya), As = /^(?:[A-Za-z\d+\/]{4})*?(?:[A-Za-z\d+\/]{2}(?:==)?|[A-Za-z\d+\/]{3}=?)?$/, Pe = String.fromCharCode.bind(String), An = typeof Uint8Array.from == "function" ? Uint8Array.from.bind(Uint8Array) : (e) => new Uint8Array(Array.prototype.slice.call(e, 0)), pr = (e) => e.replace(/=/g, "").replace(/[+\/]/g, (n) => n == "+" ? "-" : "_"), gr = (e) => e.replace(/[^A-Za-z0-9\+\/]/g, ""), dr = (e) => {
9551
9573
  let n, a, r, p, g = "";
9552
9574
  const U = e.length % 3;
9553
9575
  for (let d = 0; d < e.length; ) {
@@ -9561,7 +9583,7 @@ const du = ({ onIdle: e, onActive: n, onAction: a, timeout: r = 6e5 }) => vs({
9561
9583
  for (let r = 0, p = e.length; r < p; r += 4096)
9562
9584
  a.push(Pe.apply(null, e.subarray(r, r + 4096)));
9563
9585
  return Di(a.join(""));
9564
- }, $t = (e, n = !1) => n ? pr(gi(e)) : gi(e), As = (e) => {
9586
+ }, $t = (e, n = !1) => n ? pr(gi(e)) : gi(e), Os = (e) => {
9565
9587
  if (e.length < 2) {
9566
9588
  var n = e.charCodeAt(0);
9567
9589
  return n < 128 ? e : n < 2048 ? Pe(192 | n >>> 6) + Pe(128 | n & 63) : Pe(224 | n >>> 12 & 15) + Pe(128 | n >>> 6 & 63) + Pe(128 | n & 63);
@@ -9569,7 +9591,7 @@ const du = ({ onIdle: e, onActive: n, onAction: a, timeout: r = 6e5 }) => vs({
9569
9591
  var n = 65536 + (e.charCodeAt(0) - 55296) * 1024 + (e.charCodeAt(1) - 56320);
9570
9592
  return Pe(240 | n >>> 18 & 7) + Pe(128 | n >>> 12 & 63) + Pe(128 | n >>> 6 & 63) + Pe(128 | n & 63);
9571
9593
  }
9572
- }, Os = /[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g, cr = (e) => e.replace(Os, As), On = Ia ? (e) => Buffer.from(e, "utf8").toString("base64") : Fn ? (e) => gi(Fn.encode(e)) : (e) => Di(cr(e)), Wa = (e, n = !1) => n ? pr(On(e)) : On(e), Bn = (e) => Wa(e, !0), Bs = /[\xC0-\xDF][\x80-\xBF]|[\xE0-\xEF][\x80-\xBF]{2}|[\xF0-\xF7][\x80-\xBF]{3}/g, Hs = (e) => {
9594
+ }, Bs = /[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g, cr = (e) => e.replace(Bs, Os), On = Ia ? (e) => Buffer.from(e, "utf8").toString("base64") : Fn ? (e) => gi(Fn.encode(e)) : (e) => Di(cr(e)), Wa = (e, n = !1) => n ? pr(On(e)) : On(e), Bn = (e) => Wa(e, !0), Hs = /[\xC0-\xDF][\x80-\xBF]|[\xE0-\xEF][\x80-\xBF]{2}|[\xF0-\xF7][\x80-\xBF]{3}/g, Ws = (e) => {
9573
9595
  switch (e.length) {
9574
9596
  case 4:
9575
9597
  var n = (7 & e.charCodeAt(0)) << 18 | (63 & e.charCodeAt(1)) << 12 | (63 & e.charCodeAt(2)) << 6 | 63 & e.charCodeAt(3), a = n - 65536;
@@ -9579,15 +9601,15 @@ const du = ({ onIdle: e, onActive: n, onAction: a, timeout: r = 6e5 }) => vs({
9579
9601
  default:
9580
9602
  return Pe((31 & e.charCodeAt(0)) << 6 | 63 & e.charCodeAt(1));
9581
9603
  }
9582
- }, fr = (e) => e.replace(Bs, Hs), _r = (e) => {
9583
- if (e = e.replace(/\s+/g, ""), !Fs.test(e))
9604
+ }, fr = (e) => e.replace(Hs, Ws), _r = (e) => {
9605
+ if (e = e.replace(/\s+/g, ""), !As.test(e))
9584
9606
  throw new TypeError("malformed base64.");
9585
9607
  e += "==".slice(2 - (e.length & 3));
9586
9608
  let n, a, r, p = [];
9587
9609
  for (let g = 0; g < e.length; )
9588
9610
  n = ut[e.charAt(g++)] << 18 | ut[e.charAt(g++)] << 12 | (a = ut[e.charAt(g++)]) << 6 | (r = ut[e.charAt(g++)]), a === 64 ? p.push(Pe(n >> 16 & 255)) : r === 64 ? p.push(Pe(n >> 16 & 255, n >> 8 & 255)) : p.push(Pe(n >> 16 & 255, n >> 8 & 255, n & 255));
9589
9611
  return p.join("");
9590
- }, Ei = typeof atob == "function" ? (e) => atob(gr(e)) : Ia ? (e) => Buffer.from(e, "base64").toString("binary") : _r, yr = Ia ? (e) => An(Buffer.from(e, "base64")) : (e) => An(Ei(e).split("").map((n) => n.charCodeAt(0))), Ur = (e) => yr(br(e)), Ws = Ia ? (e) => Buffer.from(e, "base64").toString("utf8") : wn ? (e) => wn.decode(yr(e)) : (e) => fr(Ei(e)), br = (e) => gr(e.replace(/[-_]/g, (n) => n == "-" ? "+" : "/")), di = (e) => Ws(br(e)), zs = (e) => {
9612
+ }, Ei = typeof atob == "function" ? (e) => atob(gr(e)) : Ia ? (e) => Buffer.from(e, "base64").toString("binary") : _r, yr = Ia ? (e) => An(Buffer.from(e, "base64")) : (e) => An(Ei(e).split("").map((n) => n.charCodeAt(0))), Ur = (e) => yr(br(e)), zs = Ia ? (e) => Buffer.from(e, "base64").toString("utf8") : wn ? (e) => wn.decode(yr(e)) : (e) => fr(Ei(e)), br = (e) => gr(e.replace(/[-_]/g, (n) => n == "-" ? "+" : "/")), di = (e) => zs(br(e)), Is = (e) => {
9591
9613
  if (typeof e != "string")
9592
9614
  return !1;
9593
9615
  const n = e.replace(/\s+/g, "").replace(/={0,2}$/, "");
@@ -9619,11 +9641,11 @@ const du = ({ onIdle: e, onActive: n, onAction: a, timeout: r = 6e5 }) => vs({
9619
9641
  }), e("toBase64URL", function() {
9620
9642
  return $t(this, !0);
9621
9643
  });
9622
- }, Is = () => {
9644
+ }, Vs = () => {
9623
9645
  vr(), hr();
9624
- }, Vs = {
9646
+ }, Js = {
9625
9647
  version: ur,
9626
- VERSION: Ps,
9648
+ VERSION: ws,
9627
9649
  atob: Ei,
9628
9650
  atobPolyfill: _r,
9629
9651
  btoa: Di,
@@ -9636,13 +9658,13 @@ const du = ({ onIdle: e, onActive: n, onAction: a, timeout: r = 6e5 }) => vs({
9636
9658
  utob: cr,
9637
9659
  btou: fr,
9638
9660
  decode: di,
9639
- isValid: zs,
9661
+ isValid: Is,
9640
9662
  fromUint8Array: $t,
9641
9663
  toUint8Array: Ur,
9642
9664
  extendString: vr,
9643
9665
  extendUint8Array: hr,
9644
- extendBuiltins: Is
9645
- }, Eu = (e, n) => {
9666
+ extendBuiltins: Vs
9667
+ }, Nu = (e, n) => {
9646
9668
  const { playGameApi: a } = Ci();
9647
9669
  return j({
9648
9670
  queryKey: ["playGame"],
@@ -9670,7 +9692,7 @@ const du = ({ onIdle: e, onActive: n, onAction: a, timeout: r = 6e5 }) => vs({
9670
9692
  supportPortrait: s,
9671
9693
  isHtmlCode: m,
9672
9694
  gameUrl: u,
9673
- decodeGameUrl: Vs.decode(u),
9695
+ decodeGameUrl: Js.decode(u),
9674
9696
  message: _,
9675
9697
  betLimitInfo: c
9676
9698
  };
@@ -9684,7 +9706,7 @@ const du = ({ onIdle: e, onActive: n, onAction: a, timeout: r = 6e5 }) => vs({
9684
9706
  currentRebateApi: n,
9685
9707
  receiveRebateApi: a
9686
9708
  };
9687
- }, Js = ({ options: e } = {}) => {
9709
+ }, Zs = ({ options: e } = {}) => {
9688
9710
  const { currentRebateApi: n } = Tr();
9689
9711
  return j({
9690
9712
  queryKey: ["currentRebate"],
@@ -9692,20 +9714,20 @@ const du = ({ onIdle: e, onActive: n, onAction: a, timeout: r = 6e5 }) => vs({
9692
9714
  select: (a) => Jr(a, ["code", "status"]),
9693
9715
  ...e
9694
9716
  });
9695
- }, Zs = ({ options: e } = {}) => {
9717
+ }, Ks = ({ options: e } = {}) => {
9696
9718
  const { receiveRebateApi: n } = Tr();
9697
9719
  return ee({
9698
9720
  mutationKey: ["receiveRebate"],
9699
9721
  mutationFn: async () => n(),
9700
9722
  ...e
9701
9723
  });
9702
- }, Nu = ({
9724
+ }, Lu = ({
9703
9725
  options: e = {
9704
9726
  currentRebate: {},
9705
9727
  receiveRebate: {}
9706
9728
  }
9707
9729
  } = {}) => {
9708
- const n = Js({ options: e.currentRebate }), a = Zs({ options: e.receiveRebate });
9730
+ const n = Zs({ options: e.currentRebate }), a = Ks({ options: e.receiveRebate });
9709
9731
  return {
9710
9732
  currentRebate: n,
9711
9733
  receiveRebate: a
@@ -9729,7 +9751,7 @@ const du = ({ onIdle: e, onActive: n, onAction: a, timeout: r = 6e5 }) => vs({
9729
9751
  redeemRewardApi: p,
9730
9752
  historyRewardApi: g
9731
9753
  };
9732
- }, Ks = ({ options: e, formData: n } = {}) => {
9754
+ }, qs = ({ options: e, formData: n } = {}) => {
9733
9755
  const { rewardListApi: a } = it();
9734
9756
  return j({
9735
9757
  queryKey: ["rewardsList"],
@@ -9776,35 +9798,35 @@ const du = ({ onIdle: e, onActive: n, onAction: a, timeout: r = 6e5 }) => vs({
9776
9798
  },
9777
9799
  ...e
9778
9800
  });
9779
- }, qs = ({ options: e } = {}) => {
9801
+ }, $s = ({ options: e } = {}) => {
9780
9802
  const { redeemRewardApi: n } = it();
9781
9803
  return ee({
9782
9804
  mutationKey: ["redeemReward"],
9783
9805
  mutationFn: async (a) => await n(a),
9784
9806
  ...e
9785
9807
  });
9786
- }, $s = ({ options: e } = {}) => {
9808
+ }, Qs = ({ options: e } = {}) => {
9787
9809
  const { unUsedRewardListApi: n } = it();
9788
9810
  return j({
9789
9811
  queryKey: ["unUsedRewardsList"],
9790
9812
  queryFn: n,
9791
9813
  ...e
9792
9814
  });
9793
- }, Qs = ({ options: e } = {}) => {
9815
+ }, js = ({ options: e } = {}) => {
9794
9816
  const { expiredRewardListApi: n } = it();
9795
9817
  return j({
9796
9818
  queryKey: ["expiredRewardsList"],
9797
9819
  queryFn: n,
9798
9820
  ...e
9799
9821
  });
9800
- }, js = ({ options: e } = {}) => {
9822
+ }, Ys = ({ options: e } = {}) => {
9801
9823
  const { historyRewardApi: n } = it();
9802
9824
  return j({
9803
9825
  queryKey: ["historyRewardsList"],
9804
9826
  queryFn: n,
9805
9827
  ...e
9806
9828
  });
9807
- }, Lu = ({
9829
+ }, Gu = ({
9808
9830
  options: e = {
9809
9831
  rewardsList: {},
9810
9832
  redeemReward: {},
@@ -9813,13 +9835,13 @@ const du = ({ onIdle: e, onActive: n, onAction: a, timeout: r = 6e5 }) => vs({
9813
9835
  historyRewardsList: {}
9814
9836
  }
9815
9837
  } = {}) => {
9816
- const n = Ks({ options: e.rewardsList }), a = qs({
9838
+ const n = qs({ options: e.rewardsList }), a = $s({
9817
9839
  options: e.redeemReward
9818
- }), r = $s({
9840
+ }), r = Qs({
9819
9841
  options: e.unUsedRewardsList
9820
- }), p = Qs({
9842
+ }), p = js({
9821
9843
  options: e.expiredRewardsList
9822
- }), g = js({
9844
+ }), g = Ys({
9823
9845
  options: e.historyRewardsList
9824
9846
  });
9825
9847
  return {
@@ -9864,7 +9886,7 @@ const du = ({ onIdle: e, onActive: n, onAction: a, timeout: r = 6e5 }) => vs({
9864
9886
  treasureListApi: n,
9865
9887
  redeemTreasureApi: a
9866
9888
  };
9867
- }, Gu = ({ paramsData: e, options: n } = {}) => {
9889
+ }, Mu = ({ paramsData: e, options: n } = {}) => {
9868
9890
  const { client: a, lng: r } = se(), p = je(r || "tw"), { treasureListApi: g } = kr();
9869
9891
  return j({
9870
9892
  queryKey: ["treasureList", e],
@@ -9892,7 +9914,7 @@ const du = ({ onIdle: e, onActive: n, onAction: a, timeout: r = 6e5 }) => vs({
9892
9914
  },
9893
9915
  ...n
9894
9916
  });
9895
- }, Mu = ({ options: e } = {}) => {
9917
+ }, Ru = ({ options: e } = {}) => {
9896
9918
  const { redeemTreasureApi: n } = kr();
9897
9919
  return ee({
9898
9920
  mutationKey: ["redeemTreasure"],
@@ -9905,7 +9927,7 @@ const du = ({ onIdle: e, onActive: n, onAction: a, timeout: r = 6e5 }) => vs({
9905
9927
  vipListApi: n,
9906
9928
  vipInfoApi: a
9907
9929
  };
9908
- }, Ru = ({ options: e } = {}) => {
9930
+ }, Pu = ({ options: e } = {}) => {
9909
9931
  const { store: n } = se(), a = n?.getState()?.isMemberInfo || n?.getState()?.member?.member || {}, { vipInfoApi: r } = xr();
9910
9932
  return j({
9911
9933
  queryKey: ["vipInfo"],
@@ -9930,7 +9952,7 @@ const du = ({ onIdle: e, onActive: n, onAction: a, timeout: r = 6e5 }) => vs({
9930
9952
  },
9931
9953
  ...e
9932
9954
  });
9933
- }, Ys = ({ options: e } = {}) => {
9955
+ }, Xs = ({ options: e } = {}) => {
9934
9956
  const { store: n } = se(), a = n?.getState()?.isWalletCurrency || n?.getState()?.currency?.currentCurrency || "TWD", { vipListApi: r } = xr();
9935
9957
  return j({
9936
9958
  queryKey: ["vipList"],
@@ -9967,18 +9989,18 @@ const du = ({ onIdle: e, onActive: n, onAction: a, timeout: r = 6e5 }) => vs({
9967
9989
  },
9968
9990
  ...e
9969
9991
  });
9970
- }, Pu = ({ options: e } = {
9992
+ }, wu = ({ options: e } = {
9971
9993
  vipList: {}
9972
9994
  }) => ({
9973
- vipList: Ys({ options: e.vipList })
9974
- }), wu = ({ onMessage: e } = {}) => {
9995
+ vipList: Xs({ options: e.vipList })
9996
+ }), Fu = ({ onMessage: e } = {}) => {
9975
9997
  const [n, a] = et(!1), [r, p] = et([]), g = te(e);
9976
9998
  g.current = e;
9977
9999
  const U = H((o) => {
9978
10000
  const s = (/* @__PURE__ */ new Date()).toLocaleTimeString("zh-TW");
9979
10001
  p((u) => [...u, { time: s, message: o }]);
9980
10002
  }, []);
9981
- ue(() => {
10003
+ pe(() => {
9982
10004
  if (window.chrome && window.chrome.webview) {
9983
10005
  a(!0), U("WebView2 環境已就緒");
9984
10006
  const o = (s) => {
@@ -10019,7 +10041,7 @@ const du = ({ onIdle: e, onActive: n, onAction: a, timeout: r = 6e5 }) => vs({
10019
10041
  webViewRestartMoneyMachine: i,
10020
10042
  logs: r
10021
10043
  };
10022
- }, pt = "game-icon-ds88", Fu = ({ gameData: e = {} } = {}) => {
10044
+ }, pt = "game-icon-ds88", Au = ({ gameData: e = {} } = {}) => {
10023
10045
  const { lng: n } = se(), a = tl(n), {
10024
10046
  gameCode: r,
10025
10047
  // 遊戲代碼
@@ -10092,7 +10114,7 @@ const du = ({ onIdle: e, onActive: n, onAction: a, timeout: r = 6e5 }) => vs({
10092
10114
  isInvalidBet: y,
10093
10115
  haveJackpot: f
10094
10116
  };
10095
- }, Xs = (e, n = !1) => Kr([
10117
+ }, em = (e, n = !1) => Kr([
10096
10118
  "EVO",
10097
10119
  "IMSPRIBE",
10098
10120
  "SABA",
@@ -10103,7 +10125,7 @@ const du = ({ onIdle: e, onActive: n, onAction: a, timeout: r = 6e5 }) => vs({
10103
10125
  "HACK",
10104
10126
  "NAGA",
10105
10127
  "RSG"
10106
- ], e) && n ? `${e}_dark` : e, Au = ({ platformData: e, darkMode: n } = {}) => {
10128
+ ], e) && n ? `${e}_dark` : e, Ou = ({ platformData: e, darkMode: n } = {}) => {
10107
10129
  const {
10108
10130
  SubPlatformEnum: a,
10109
10131
  // 子平台枚舉
@@ -10125,7 +10147,7 @@ const du = ({ onIdle: e, onActive: n, onAction: a, timeout: r = 6e5 }) => vs({
10125
10147
  // 臨時維護開始時間
10126
10148
  temp_maintenance_end_time: o
10127
10149
  // 臨時維護結束時間
10128
- } = e || {}, s = `${qe}/${Qn}/${Xs(r, n)}.png`;
10150
+ } = e || {}, s = `${qe}/${Qn}/${em(r, n)}.png`;
10129
10151
  return {
10130
10152
  subPlatformEnum: a,
10131
10153
  platformEnum: r,
@@ -10139,12 +10161,12 @@ const du = ({ onIdle: e, onActive: n, onAction: a, timeout: r = 6e5 }) => vs({
10139
10161
  tempMaintenanceEndTime: o,
10140
10162
  platformImageUrl: s
10141
10163
  };
10142
- }, em = (e = {}) => !Yt(e) || Ge(e) ? [] : Xt(e), Hn = (e = []) => !aa(e) || Ge(e) ? [] : xe(e, "platform"), am = (e = []) => !aa(e) || Ge(e) ? [] : xe(e, "gameTypeName"), tm = (e = []) => !aa(e) || Ge(e) ? [] : xe(e, "game_subtype"), im = (e = {}) => !Yt(e) || Ge(e) ? [] : Xt(e), nm = (e = [], n = []) => !aa(e) || Ge(e) ? {} : !aa(n) || Ge(n) ? {} : e.reduce((a, r) => {
10164
+ }, am = (e = {}) => !Yt(e) || Ge(e) ? [] : Xt(e), Hn = (e = []) => !aa(e) || Ge(e) ? [] : xe(e, "platform"), tm = (e = []) => !aa(e) || Ge(e) ? [] : xe(e, "gameTypeName"), im = (e = []) => !aa(e) || Ge(e) ? [] : xe(e, "game_subtype"), nm = (e = {}) => !Yt(e) || Ge(e) ? [] : Xt(e), rm = (e = [], n = []) => !aa(e) || Ge(e) ? {} : !aa(n) || Ge(n) ? {} : e.reduce((a, r) => {
10143
10165
  const p = n.map((g) => g.game_subtype);
10144
10166
  return p.forEach((g) => {
10145
10167
  a[g] = a[g] || [];
10146
10168
  }), p.includes(r.game_subtype) && a[r.game_subtype].push(r), a;
10147
- }, {}), rm = ({
10169
+ }, {}), lm = ({
10148
10170
  gameTypes: e = [],
10149
10171
  platforms: n = [],
10150
10172
  gameList: a = {},
@@ -10159,7 +10181,7 @@ const du = ({ onIdle: e, onActive: n, onAction: a, timeout: r = 6e5 }) => vs({
10159
10181
  allPlatforms: p
10160
10182
  });
10161
10183
  return Ge(d) || (g[U] = d), g;
10162
- }, {}), Ou = ({
10184
+ }, {}), Bu = ({
10163
10185
  types: e = [],
10164
10186
  platforms: n = [],
10165
10187
  allGameType: a = [],
@@ -10177,9 +10199,9 @@ const du = ({ onIdle: e, onActive: n, onAction: a, timeout: r = 6e5 }) => vs({
10177
10199
  return Ge(s) ? i : { ...i, [o]: s };
10178
10200
  }, {});
10179
10201
  return Ge(t) || (g[U] = t), g;
10180
- }, {}), lm = (e = {}) => !Yt(e) || Ge(e) ? {} : Object.values(e).reduce((a, r) => (Object.entries(r).forEach(([p, g]) => {
10202
+ }, {}), om = (e = {}) => !Yt(e) || Ge(e) ? {} : Object.values(e).reduce((a, r) => (Object.entries(r).forEach(([p, g]) => {
10181
10203
  a[p] ? a[p] = [...a[p], ...g] : a[p] = g;
10182
- }), a), {}), om = (e = {}) => {
10204
+ }), a), {}), sm = (e = {}) => {
10183
10205
  if (!Yt(e) || Ge(e)) return {};
10184
10206
  const n = {};
10185
10207
  for (const [a, r] of Object.entries(e)) {
@@ -10190,7 +10212,7 @@ const du = ({ onIdle: e, onActive: n, onAction: a, timeout: r = 6e5 }) => vs({
10190
10212
  }
10191
10213
  }
10192
10214
  return n;
10193
- }, sm = ({
10215
+ }, mm = ({
10194
10216
  allGameList: e = {},
10195
10217
  allGamePlatform: n = [],
10196
10218
  allGameType: a = [],
@@ -10203,7 +10225,7 @@ const du = ({ onIdle: e, onActive: n, onAction: a, timeout: r = 6e5 }) => vs({
10203
10225
  highlightGames: t = [],
10204
10226
  originPlatform: i = []
10205
10227
  }) => {
10206
- const o = em(e), s = Hn(n), u = am(a), m = tm(r), _ = Hn(i), c = im(d), y = rm({
10228
+ const o = am(e), s = Hn(n), u = tm(a), m = im(r), _ = Hn(i), c = nm(d), y = lm({
10207
10229
  gameTypes: u,
10208
10230
  platforms: s,
10209
10231
  gameList: e,
@@ -10215,7 +10237,7 @@ const du = ({ onIdle: e, onActive: n, onAction: a, timeout: r = 6e5 }) => vs({
10215
10237
  ...M,
10216
10238
  platformImageUrl: A
10217
10239
  };
10218
- }), b = nm(o, r), C = lm(y), v = om(C), x = Vn(y).reduce(
10240
+ }), b = rm(o, r), C = om(y), v = sm(C), x = Vn(y).reduce(
10219
10241
  (M, [A, T]) => {
10220
10242
  const S = Xt(qr(T));
10221
10243
  return M[A] = S, M;
@@ -10258,12 +10280,12 @@ const du = ({ onIdle: e, onActive: n, onAction: a, timeout: r = 6e5 }) => vs({
10258
10280
  favorite: c
10259
10281
  }
10260
10282
  };
10261
- }, Bu = (e = []) => !aa(e) || Ge(e) ? [] : Xt(e, (n) => Ge(n.SubPlatformEnum) ? n : n.SubPlatformEnum.map((a) => ({
10283
+ }, Hu = (e = []) => !aa(e) || Ge(e) ? [] : Xt(e, (n) => Ge(n.SubPlatformEnum) ? n : n.SubPlatformEnum.map((a) => ({
10262
10284
  ...n,
10263
10285
  ...a,
10264
10286
  platform: a.SubPlatformEnum,
10265
10287
  platformEnum: a.SubPlatformEnum
10266
- }))), mm = {
10288
+ }))), um = {
10267
10289
  platform: { all: [], origin: [], originPlatform: [], byGameType: {} },
10268
10290
  type: { main: [], sub: [], originMain: [], originSub: [] },
10269
10291
  gameList: {
@@ -10283,7 +10305,7 @@ const du = ({ onIdle: e, onActive: n, onAction: a, timeout: r = 6e5 }) => vs({
10283
10305
  byGameType: {}
10284
10306
  },
10285
10307
  user: { favorite: [] }
10286
- }, um = ({ enabled: e = !0 } = {}) => {
10308
+ }, pm = ({ enabled: e = !0 } = {}) => {
10287
10309
  const { getToken: n } = se(), { userFavoriteGameApi: a, userGameListApi: r } = ne(), { data: p, isLoading: g, error: U, refetch: d } = j({
10288
10310
  queryKey: ["gamesInfo"],
10289
10311
  queryFn: async () => {
@@ -10293,7 +10315,7 @@ const du = ({ onIdle: e, onActive: n, onAction: a, timeout: r = 6e5 }) => vs({
10293
10315
  } catch (i) {
10294
10316
  console.warn("Failed to fetch favorite games:", i);
10295
10317
  }
10296
- return sm({
10318
+ return mm({
10297
10319
  allGameList: t.gameTypeGroup || window.gameTypeGroup || {},
10298
10320
  allGamePlatform: t.platforms || window.platforms || [],
10299
10321
  allGameType: t.gameType || window.gameType || [],
@@ -10316,12 +10338,12 @@ const du = ({ onIdle: e, onActive: n, onAction: a, timeout: r = 6e5 }) => vs({
10316
10338
  refetchOnWindowFocus: !1
10317
10339
  });
10318
10340
  return {
10319
- gamesInfo: p || mm,
10341
+ gamesInfo: p || um,
10320
10342
  isLoading: g,
10321
10343
  error: U,
10322
10344
  refetch: d
10323
10345
  };
10324
- }, pm = (e = !1) => {
10346
+ }, gm = (e = !1) => {
10325
10347
  if (!e && window.gameTypeGroup) {
10326
10348
  console.log("window.gameTypeGroup 已存在,跳過初始化 mock 資料");
10327
10349
  return;
@@ -36848,18 +36870,18 @@ const du = ({ onIdle: e, onActive: n, onAction: a, timeout: r = 6e5 }) => vs({
36848
36870
  is_invalid_bet: 0
36849
36871
  }
36850
36872
  });
36851
- }, gm = ({
36873
+ }, dm = ({
36852
36874
  children: e,
36853
36875
  autoFetch: n = !1,
36854
36876
  mockData: a = !1
36855
36877
  }) => {
36856
- ue(() => {
36857
- a && pm(!0);
36878
+ pe(() => {
36879
+ a && gm(!0);
36858
36880
  }, [a]);
36859
- const r = um({ enabled: n });
36860
- return /* @__PURE__ */ Be.jsx(jn.Provider, { value: r, children: e });
36881
+ const r = pm({ enabled: n });
36882
+ return /* @__PURE__ */ He.jsx(jn.Provider, { value: r, children: e });
36861
36883
  };
36862
- function Hu({
36884
+ function Wu({
36863
36885
  children: e,
36864
36886
  autoFetchGamesInfo: n = !1,
36865
36887
  useMockData: a = !1,
@@ -36880,8 +36902,8 @@ function Hu({
36880
36902
  }),
36881
36903
  []
36882
36904
  ), l = r || d;
36883
- return /* @__PURE__ */ Be.jsx(zr, { client: l, children: /* @__PURE__ */ Be.jsx(Jn.Provider, { value: { client: g, formDataClient: U, ...p }, children: /* @__PURE__ */ Be.jsx(el, { children: /* @__PURE__ */ Be.jsx(
36884
- gm,
36905
+ return /* @__PURE__ */ He.jsx(zr, { client: l, children: /* @__PURE__ */ He.jsx(Jn.Provider, { value: { client: g, formDataClient: U, ...p }, children: /* @__PURE__ */ He.jsx(el, { children: /* @__PURE__ */ He.jsx(
36906
+ dm,
36885
36907
  {
36886
36908
  autoFetch: n,
36887
36909
  mockData: a,
@@ -36889,7 +36911,7 @@ function Hu({
36889
36911
  }
36890
36912
  ) }) }) });
36891
36913
  }
36892
- const Wu = ({ onFunction: e = () => {
36914
+ const zu = ({ onFunction: e = () => {
36893
36915
  }, buttonProps: n = {} } = {}) => {
36894
36916
  const { lineConfig: a } = se(), r = te(!1), p = Q(a, "liffId", ""), g = new URLSearchParams(window.location.search), U = g.get("line_login"), d = g.get("trans_code"), l = g.get("line_id"), t = g.get("line_name"), i = g.get("invite_code"), { mutate: o, isPending: s } = lr({
36895
36917
  options: {
@@ -36899,7 +36921,7 @@ const Wu = ({ onFunction: e = () => {
36899
36921
  retry: !1
36900
36922
  }
36901
36923
  });
36902
- ue(() => {
36924
+ pe(() => {
36903
36925
  r.current || U === "true" && l && t && (o({
36904
36926
  trans_code: d,
36905
36927
  line_id: l,
@@ -36918,7 +36940,7 @@ const Wu = ({ onFunction: e = () => {
36918
36940
  const u = () => {
36919
36941
  window.location.href = `https://liff.line.me/${p}`;
36920
36942
  };
36921
- return p ? /* @__PURE__ */ Be.jsx(
36943
+ return p ? /* @__PURE__ */ He.jsx(
36922
36944
  "button",
36923
36945
  {
36924
36946
  className: "line-login-btn",
@@ -36929,7 +36951,7 @@ const Wu = ({ onFunction: e = () => {
36929
36951
  }
36930
36952
  ) : null;
36931
36953
  };
36932
- var dm = Object.defineProperty, Qt = Object.getOwnPropertySymbols, Sr = Object.prototype.hasOwnProperty, Dr = Object.prototype.propertyIsEnumerable, Wn = (e, n, a) => n in e ? dm(e, n, { enumerable: !0, configurable: !0, writable: !0, value: a }) : e[n] = a, ci = (e, n) => {
36954
+ var cm = Object.defineProperty, Qt = Object.getOwnPropertySymbols, Sr = Object.prototype.hasOwnProperty, Dr = Object.prototype.propertyIsEnumerable, Wn = (e, n, a) => n in e ? cm(e, n, { enumerable: !0, configurable: !0, writable: !0, value: a }) : e[n] = a, ci = (e, n) => {
36933
36955
  for (var a in n || (n = {}))
36934
36956
  Sr.call(n, a) && Wn(e, a, n[a]);
36935
36957
  if (Qt)
@@ -37481,12 +37503,12 @@ var ka;
37481
37503
  })(e.QrSegment || (e.QrSegment = {}));
37482
37504
  })(ka || (ka = {}));
37483
37505
  var Oa = ka;
37484
- var cm = {
37506
+ var fm = {
37485
37507
  L: Oa.QrCode.Ecc.LOW,
37486
37508
  M: Oa.QrCode.Ecc.MEDIUM,
37487
37509
  Q: Oa.QrCode.Ecc.QUARTILE,
37488
37510
  H: Oa.QrCode.Ecc.HIGH
37489
- }, Er = 128, Nr = "L", Lr = "#FFFFFF", Gr = "#000000", Mr = !1, Rr = 1, fm = 4, _m = 0, ym = 0.1;
37511
+ }, Er = 128, Nr = "L", Lr = "#FFFFFF", Gr = "#000000", Mr = !1, Rr = 1, _m = 4, ym = 0, Um = 0.1;
37490
37512
  function Pr(e, n = 0) {
37491
37513
  const a = [];
37492
37514
  return e.forEach(function(r, p) {
@@ -37513,10 +37535,10 @@ function Pr(e, n = 0) {
37513
37535
  function wr(e, n) {
37514
37536
  return e.slice().map((a, r) => r < n.y || r >= n.y + n.h ? a : a.map((p, g) => g < n.x || g >= n.x + n.w ? p : !1));
37515
37537
  }
37516
- function Um(e, n, a, r) {
37538
+ function bm(e, n, a, r) {
37517
37539
  if (r == null)
37518
37540
  return null;
37519
- const p = e.length + a * 2, g = Math.floor(n * ym), U = p / n, d = (r.width || g) * U, l = (r.height || g) * U, t = r.x == null ? e.length / 2 - d / 2 : r.x * U, i = r.y == null ? e.length / 2 - l / 2 : r.y * U, o = r.opacity == null ? 1 : r.opacity;
37541
+ const p = e.length + a * 2, g = Math.floor(n * Um), U = p / n, d = (r.width || g) * U, l = (r.height || g) * U, t = r.x == null ? e.length / 2 - d / 2 : r.x * U, i = r.y == null ? e.length / 2 - l / 2 : r.y * U, o = r.opacity == null ? 1 : r.opacity;
37520
37542
  let s = null;
37521
37543
  if (r.excavate) {
37522
37544
  let m = Math.floor(t), _ = Math.floor(i), c = Math.ceil(d + t - m), y = Math.ceil(l + i - _);
@@ -37525,8 +37547,8 @@ function Um(e, n, a, r) {
37525
37547
  const u = r.crossOrigin;
37526
37548
  return { x: t, y: i, h: l, w: d, excavation: s, opacity: o, crossOrigin: u };
37527
37549
  }
37528
- function bm(e, n) {
37529
- return n != null ? Math.max(Math.floor(n), 0) : e ? fm : _m;
37550
+ function Cm(e, n) {
37551
+ return n != null ? Math.max(Math.floor(n), 0) : e ? _m : ym;
37530
37552
  }
37531
37553
  function Fr({
37532
37554
  value: e,
@@ -37542,7 +37564,7 @@ function Fr({
37542
37564
  const m = (Array.isArray(e) ? e : [e]).reduce((_, c) => (_.push(...Oa.QrSegment.makeSegments(c)), _), []);
37543
37565
  return Oa.QrCode.encodeSegments(
37544
37566
  m,
37545
- cm[n],
37567
+ fm[n],
37546
37568
  a,
37547
37569
  void 0,
37548
37570
  void 0,
@@ -37551,7 +37573,7 @@ function Fr({
37551
37573
  }, [e, n, a, d]);
37552
37574
  const { cells: t, margin: i, numCells: o, calculatedImageSettings: s } = fe.useMemo(() => {
37553
37575
  let u = l.getModules();
37554
- const m = bm(r, p), _ = u.length + m * 2, c = Um(
37576
+ const m = Cm(r, p), _ = u.length + m * 2, c = bm(
37555
37577
  u,
37556
37578
  U,
37557
37579
  m,
@@ -37572,14 +37594,14 @@ function Fr({
37572
37594
  calculatedImageSettings: s
37573
37595
  };
37574
37596
  }
37575
- var Cm = (function() {
37597
+ var vm = (function() {
37576
37598
  try {
37577
37599
  new Path2D().addPath(new Path2D());
37578
37600
  } catch {
37579
37601
  return !1;
37580
37602
  }
37581
37603
  return !0;
37582
- })(), vm = fe.forwardRef(
37604
+ })(), hm = fe.forwardRef(
37583
37605
  function(n, a) {
37584
37606
  const r = n, {
37585
37607
  value: p,
@@ -37632,7 +37654,7 @@ var Cm = (function() {
37632
37654
  const W = window.devicePixelRatio || 1;
37633
37655
  w.height = w.width = g * W;
37634
37656
  const z = g / T * W;
37635
- R.scale(z, z), R.fillStyle = d, R.fillRect(0, 0, T, T), R.fillStyle = l, Cm ? R.fill(new Path2D(Pr(L, M))) : A.forEach(function(G, h) {
37657
+ R.scale(z, z), R.fillStyle = d, R.fillRect(0, 0, T, T), R.fillStyle = l, vm ? R.fill(new Path2D(Pr(L, M))) : A.forEach(function(G, h) {
37636
37658
  G.forEach(function(E, N) {
37637
37659
  E && R.fillRect(N + M, h + M, 1, 1);
37638
37660
  });
@@ -37673,7 +37695,7 @@ var Cm = (function() {
37673
37695
  ), P);
37674
37696
  }
37675
37697
  );
37676
- vm.displayName = "QRCodeCanvas";
37698
+ hm.displayName = "QRCodeCanvas";
37677
37699
  var Ar = fe.forwardRef(
37678
37700
  function(n, a) {
37679
37701
  const r = n, {
@@ -37752,7 +37774,7 @@ var Ar = fe.forwardRef(
37752
37774
  }
37753
37775
  );
37754
37776
  Ar.displayName = "QRCodeSVG";
37755
- const hm = {
37777
+ const Tm = {
37756
37778
  position: "fixed",
37757
37779
  top: 0,
37758
37780
  left: 0,
@@ -37765,7 +37787,7 @@ const hm = {
37765
37787
  justifyContent: "center",
37766
37788
  zIndex: 1e4,
37767
37789
  gap: "2em"
37768
- }, Tm = {
37790
+ }, km = {
37769
37791
  position: "absolute",
37770
37792
  top: "20px",
37771
37793
  right: "20px",
@@ -37796,7 +37818,7 @@ const hm = {
37796
37818
  title: "Silakan gunakan LINE untuk memindai Kode QR untuk masuk",
37797
37819
  expired: "Kode QR telah kedaluwarsa"
37798
37820
  }
37799
- }, Vu = ({ forcedShow: e = !1, isVisible: n, setIsVisible: a } = {}) => {
37821
+ }, Ju = ({ forcedShow: e = !1, isVisible: n, setIsVisible: a } = {}) => {
37800
37822
  const { lng: r, getToken: p, lineConfig: g } = se(), [U, d] = et(300), [l, t] = et(!1), i = te(null), o = Q(g, "liffId", ""), s = je(r), u = p?.(), _ = new URLSearchParams(window.location.search).get("mac") || pi.get("machine_mac_address") || "", { data: c, isFetching: y } = jo({
37801
37823
  formData: {
37802
37824
  mac_address: _
@@ -37805,9 +37827,9 @@ const hm = {
37805
37827
  enabled: e ? !0 : !!_ && !u
37806
37828
  }
37807
37829
  }), f = Q(c, "liff_url", "") || `https://liff.line.me/${o}`;
37808
- ue(() => {
37830
+ pe(() => {
37809
37831
  _ && pi.set("machine_mac_address", _, { expires: 365 });
37810
- }, [_]), ue(() => (f && (d(300), t(!1), i.current && clearInterval(i.current), i.current = setInterval(() => {
37832
+ }, [_]), pe(() => (f && (d(300), t(!1), i.current && clearInterval(i.current), i.current = setInterval(() => {
37811
37833
  d((v) => v <= 1 ? (clearInterval(i.current), t(!0), 0) : v - 1);
37812
37834
  }, 1e3)), () => {
37813
37835
  i.current && clearInterval(i.current);
@@ -37818,20 +37840,20 @@ const hm = {
37818
37840
  };
37819
37841
  if (!e && (!_ || u)) return null;
37820
37842
  const C = zn[s] || zn.en_US;
37821
- return n && /* @__PURE__ */ Be.jsxs("div", { style: hm, children: [
37822
- /* @__PURE__ */ Be.jsx(
37843
+ return n && /* @__PURE__ */ He.jsxs("div", { style: Tm, children: [
37844
+ /* @__PURE__ */ He.jsx(
37823
37845
  "div",
37824
37846
  {
37825
- style: Tm,
37847
+ style: km,
37826
37848
  onClick: () => a(!1),
37827
37849
  role: "button",
37828
37850
  "aria-label": "Close",
37829
37851
  children: "✕"
37830
37852
  }
37831
37853
  ),
37832
- l ? /* @__PURE__ */ Be.jsx("p", { style: { fontWeight: "bold" }, children: C.expired }) : /* @__PURE__ */ Be.jsxs(Be.Fragment, { children: [
37833
- /* @__PURE__ */ Be.jsx("p", { style: { fontWeight: "bold", fontSize: "3em" }, children: C.title }),
37834
- /* @__PURE__ */ Be.jsx(
37854
+ l ? /* @__PURE__ */ He.jsx("p", { style: { fontWeight: "bold" }, children: C.expired }) : /* @__PURE__ */ He.jsxs(He.Fragment, { children: [
37855
+ /* @__PURE__ */ He.jsx("p", { style: { fontWeight: "bold", fontSize: "3em" }, children: C.title }),
37856
+ /* @__PURE__ */ He.jsx(
37835
37857
  "div",
37836
37858
  {
37837
37859
  style: {
@@ -37845,10 +37867,10 @@ const hm = {
37845
37867
  boxSizing: "border-box",
37846
37868
  color: "black"
37847
37869
  },
37848
- children: y ? "Loading..." : /* @__PURE__ */ Be.jsx(Ar, { width: "100%", height: "100%", value: f })
37870
+ children: y ? "Loading..." : /* @__PURE__ */ He.jsx(Ar, { width: "100%", height: "100%", value: f })
37849
37871
  }
37850
37872
  ),
37851
- !y && /* @__PURE__ */ Be.jsx(
37873
+ !y && /* @__PURE__ */ He.jsx(
37852
37874
  "p",
37853
37875
  {
37854
37876
  style: {
@@ -37861,7 +37883,7 @@ const hm = {
37861
37883
  )
37862
37884
  ] })
37863
37885
  ] });
37864
- }, Ju = () => {
37886
+ }, Zu = () => {
37865
37887
  const e = xa(), {
37866
37888
  mutate: n,
37867
37889
  isPending: a,
@@ -37877,7 +37899,7 @@ const hm = {
37877
37899
  }
37878
37900
  }
37879
37901
  }), U = te(!1);
37880
- return ue(() => {
37902
+ return pe(() => {
37881
37903
  if (U.current) return;
37882
37904
  const d = new URLSearchParams(window.location.search), l = d.get("bind_type"), t = d.get("bind_id");
37883
37905
  l && t && (U.current = !0, l === "line" ? n({ bindType: l, bindId: t }) : console.warn(`Unsupported bind type: ${l}`));
@@ -37885,142 +37907,144 @@ const hm = {
37885
37907
  };
37886
37908
  export {
37887
37909
  Jn as ApiCtx,
37888
- Hu as ApiProvider,
37889
- Ju as Bind,
37910
+ Wu as ApiProvider,
37911
+ Zu as Bind,
37890
37912
  jn as GamesInfoCtx,
37891
- Wu as LineLogin,
37892
- Vu as LineQrCode,
37913
+ zu as LineLogin,
37914
+ Ju as LineQrCode,
37893
37915
  Si as MONTH_CARD_QUERY_KEY,
37916
+ Be as SOCKET_TYPE,
37894
37917
  $a as STATUS_TYPES,
37895
37918
  Zn as StatusContext,
37896
37919
  el as StatusProvider,
37897
- rm as buildMultiTypes,
37898
- Ou as buildMultiTypesWithSubTypes,
37920
+ lm as buildMultiTypes,
37921
+ Bu as buildMultiTypesWithSubTypes,
37899
37922
  rl as buildSinglePlatformWithSubTypes,
37900
37923
  nl as buildSingleType,
37901
- nm as categorizeGames,
37924
+ rm as categorizeGames,
37902
37925
  je as convertLanguageCode,
37903
37926
  tl as convertLanguageGameCode,
37904
- Lm as createLogoutHandler,
37905
- tm as extractGameSubTypeNames,
37906
- am as extractGameTypeNames,
37927
+ Gm as createLogoutHandler,
37928
+ im as extractGameSubTypeNames,
37929
+ tm as extractGameTypeNames,
37907
37930
  Hn as extractPlatformNames,
37908
37931
  ar as filterGamesByPlatform,
37909
37932
  Yn as findGameTypeUid,
37910
37933
  Xn as findPlatformUid,
37911
37934
  er as findSubPlatform,
37912
- em as flattenAllGames,
37913
- im as flattenFavoriteGames,
37914
- Gm as formatNumber,
37915
- lm as groupGamesByPlatform,
37916
- om as groupGamesByPlatformAndSubType,
37935
+ am as flattenAllGames,
37936
+ nm as flattenFavoriteGames,
37937
+ Mm as formatNumber,
37938
+ om as groupGamesByPlatform,
37939
+ sm as groupGamesByPlatformAndSubType,
37917
37940
  il as groupGamesBySubType,
37918
- Xs as handleDarkImage,
37919
- pm as initMockWindowData,
37920
- sm as processGameInfo,
37921
- Bu as processPlatformData,
37922
- mu as useAbandonEventWallet,
37923
- Bm as useAbandonPoint,
37941
+ em as handleDarkImage,
37942
+ gm as initMockWindowData,
37943
+ mm as processGameInfo,
37944
+ Hu as processPlatformData,
37945
+ es as resolveGameMaintainDisplay,
37946
+ uu as useAbandonEventWallet,
37947
+ Hm as useAbandonPoint,
37924
37948
  se as useApiContext,
37925
- Ym as useAvatarList,
37926
- Mm as useBalanceGetter,
37927
- wm as useBet,
37928
- jm as useBetRankingData,
37949
+ Xm as useAvatarList,
37950
+ Rm as useBalanceGetter,
37951
+ Fm as useBet,
37952
+ Ym as useBetRankingData,
37929
37953
  ho as useBetRecord,
37930
37954
  To as useBetRecordDetail,
37931
37955
  Yo as useBindAccount,
37932
- as as useCheckCurrentEventProgress,
37933
- ts as useCheckEventStatus,
37934
- Om as useCheckPlayerWager,
37935
- au as useClientWebSocket,
37936
- qm as useCreateMachine,
37937
- Js as useCurrentRebate,
37938
- Es as useDepositAction,
37939
- Ls as useDepositTransaction,
37940
- Ss as useDepositV1,
37941
- Ds as useDepositV2,
37942
- Cu as useDepositWalletLog,
37943
- lu as useEnabledEventWallet,
37944
- ou as useEvaluateEventWallet,
37945
- nu as useEvent,
37946
- es as useEventList,
37947
- Gs as useEventTransaction,
37948
- hu as useEventWalletLog,
37949
- Qs as useExpiredRewardsList,
37950
- Fu as useGameConfig,
37951
- Nm as useGameInfoContext,
37952
- um as useGamesInfo,
37953
- uu as useGetCarouseList,
37954
- ru as useGetEventWalletList,
37956
+ ts as useCheckCurrentEventProgress,
37957
+ is as useCheckEventStatus,
37958
+ Bm as useCheckPlayerWager,
37959
+ tu as useClientWebSocket,
37960
+ $m as useCreateMachine,
37961
+ Zs as useCurrentRebate,
37962
+ Ns as useDepositAction,
37963
+ Gs as useDepositTransaction,
37964
+ Ds as useDepositV1,
37965
+ Es as useDepositV2,
37966
+ vu as useDepositWalletLog,
37967
+ ou as useEnabledEventWallet,
37968
+ su as useEvaluateEventWallet,
37969
+ ru as useEvent,
37970
+ as as useEventList,
37971
+ Ms as useEventTransaction,
37972
+ Tu as useEventWalletLog,
37973
+ js as useExpiredRewardsList,
37974
+ Au as useGameConfig,
37975
+ Lm as useGameInfoContext,
37976
+ pm as useGamesInfo,
37977
+ pu as useGetCarouseList,
37978
+ lu as useGetEventWalletList,
37955
37979
  jo as useGetMachineLoginCode,
37956
- pu as useGetMarquee,
37957
- Rm as useGetMemberInfo,
37958
- gu as useGetRankingGame,
37959
- js as useHistoryRewardsList,
37960
- du as useIdleTimeout,
37961
- cu as useInbox,
37962
- Ts as useInboxList,
37963
- Pm as useInitializeWithToken,
37964
- Uu as useInvoiceAction,
37965
- Qm as useJackpotData,
37980
+ gu as useGetMarquee,
37981
+ Pm as useGetMemberInfo,
37982
+ du as useGetRankingGame,
37983
+ Ys as useHistoryRewardsList,
37984
+ cu as useIdleTimeout,
37985
+ fu as useInbox,
37986
+ ks as useInboxList,
37987
+ wm as useInitializeWithToken,
37988
+ bu as useInvoiceAction,
37989
+ jm as useJackpotData,
37966
37990
  lr as useLineLogin,
37967
37991
  Qo as useLineLogin2,
37968
37992
  Oo as useLogin,
37969
37993
  Bo as useLogout,
37970
- Hm as useMachineLogin,
37994
+ Wm as useMachineLogin,
37971
37995
  Vo as useMemberInitSet,
37972
- Wm as useMemberTransfer,
37973
- zm as useMobileLogin,
37974
- Im as useMobileLoginV2,
37975
- Vm as useMobileRegister,
37976
- Fm as useMonthCard,
37996
+ zm as useMemberTransfer,
37997
+ Im as useMobileLogin,
37998
+ Vm as useMobileLoginV2,
37999
+ Jm as useMobileRegister,
38000
+ Am as useMonthCard,
37977
38001
  Fo as useMonthCardInfo,
37978
- _u as useNewsDetail,
37979
- fu as useNewsList,
37980
- Su as useOtherTransaction,
37981
- Du as usePayment,
37982
- Au as usePlatformConfig,
37983
- Eu as usePlayGame,
37984
- Am as usePointTransfer,
37985
- ks as useReadInbox,
37986
- Nu as useRebate,
37987
- Tu as useRebateWalletLog,
37988
- Zs as useReceiveRebate,
37989
- yu as useRedeemCodeDeposit,
37990
- tu as useRedeemEventReward,
37991
- qs as useRedeemReward,
37992
- Mu as useRedeemTreasure,
38002
+ yu as useNewsDetail,
38003
+ _u as useNewsList,
38004
+ Du as useOtherTransaction,
38005
+ Eu as usePayment,
38006
+ Ou as usePlatformConfig,
38007
+ Nu as usePlayGame,
38008
+ Om as usePointTransfer,
38009
+ xs as useReadInbox,
38010
+ Lu as useRebate,
38011
+ ku as useRebateWalletLog,
38012
+ Ks as useReceiveRebate,
38013
+ Uu as useRedeemCodeDeposit,
38014
+ iu as useRedeemEventReward,
38015
+ $s as useRedeemReward,
38016
+ Ru as useRedeemTreasure,
37993
38017
  Io as useResetUserPassword,
37994
38018
  Zo as useResetUserTransactionPassword,
37995
- Lu as useRewards,
37996
- Ks as useRewardsList,
37997
- Jm as useSendMobileVerifyCode,
38019
+ Gu as useRewards,
38020
+ qs as useRewardsList,
38021
+ Zm as useSendMobileVerifyCode,
37998
38022
  Jo as useSetUserTransactionPassword,
37999
- iu as useSettleEvent,
38000
- su as useSettleEventWallet,
38023
+ nu as useSettleEvent,
38024
+ mu as useSettleEventWallet,
38001
38025
  Ho as useSignUp,
38002
- xu as useSnCashRecord,
38026
+ Su as useSnCashRecord,
38003
38027
  Kn as useStatus,
38004
38028
  Wo as useToggleFavoriteGame,
38005
38029
  $o as useTransferInGame,
38006
- Gu as useTreasureList,
38007
- ku as useTreasureWalletLog,
38008
- $s as useUnUsedRewardsList,
38009
- Xm as useUpdateAvatar,
38010
- bu as useUpdateInvoiceAction,
38030
+ Mu as useTreasureList,
38031
+ xu as useTreasureWalletLog,
38032
+ Qs as useUnUsedRewardsList,
38033
+ eu as useUpdateAvatar,
38034
+ Cu as useUpdateInvoiceAction,
38011
38035
  zo as useUpdateUserInfo,
38012
- eu as useUser,
38036
+ au as useUser,
38013
38037
  qo as useUserBindCard,
38014
38038
  Ko as useUserRebate,
38015
- Km as useVerifyDonationCode,
38016
- Zm as useVerifyPhoneBar,
38017
- $m as useVerifyResetAction,
38018
- Pu as useVip,
38019
- Ru as useVipInfo,
38020
- Ys as useVipList,
38021
- wu as useWebView2,
38022
- Ns as useWithdrawAction,
38039
+ qm as useVerifyDonationCode,
38040
+ Km as useVerifyPhoneBar,
38041
+ Qm as useVerifyResetAction,
38042
+ wu as useVip,
38043
+ Pu as useVipInfo,
38044
+ Xs as useVipList,
38045
+ Fu as useWebView2,
38046
+ Ls as useWithdrawAction,
38023
38047
  Ao as useWithdrawMonthCard,
38024
- Rs as useWithdrawTransaction,
38025
- vu as useWithdrawWalletLog
38048
+ Ps as useWithdrawTransaction,
38049
+ hu as useWithdrawWalletLog
38026
38050
  };