@dhedge/trading-widget 1.0.2 → 1.0.3

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.
@@ -1,5 +1,5 @@
1
1
  import * as Me from "react";
2
- import ft, { createContext as ar, useContext as Vn, useState as qn, useEffect as mt, useReducer as Oy, useCallback as Zt, useMemo as qe, useLayoutEffect as D5, useRef as Vt, forwardRef as R5, Fragment as bs, isValidElement as iA, cloneElement as A5, createElement as O5, createRef as GR, Children as k5 } from "react";
2
+ import ft, { createContext as ar, useContext as Vn, useState as qn, useEffect as pt, useReducer as Oy, useCallback as Zt, useMemo as qe, useLayoutEffect as D5, useRef as Vt, forwardRef as R5, Fragment as bs, isValidElement as iA, cloneElement as A5, createElement as O5, createRef as GR, Children as k5 } from "react";
3
3
  import { getAddress as ew, UserRejectedRequestError as gc, ResourceUnavailableRpcError as m1, withRetry as _5, withTimeout as M5, SwitchChainError as YR, numberToHex as qR, erc20Abi as vp, decodeErrorResult as N5, hexToString as L5, trim as P5, encodeFunctionData as Fw, formatUnits as Ty, formatEther as U5 } from "viem";
4
4
  import { useAccount as oA, useConfig as F5, useSwitchChain as I5, useReadContract as Sy, useBalance as z5, useWalletClient as j5, usePublicClient as ix, useWriteContract as B5, useEstimateFeesPerGas as $5, useBlockNumber as ox, useConnect as lA, useReadContracts as Zo, useWaitForTransactionReceipt as sA, useSendTransaction as H5 } from "wagmi";
5
5
  import { useQuery as V5, useQueryClient as uA } from "@tanstack/react-query";
@@ -7332,7 +7332,7 @@ const Dw = {
7332
7332
  }
7333
7333
  }), H9 = () => {
7334
7334
  const { account: n } = ii(), [r, o] = qn(!1);
7335
- return mt(() => {
7335
+ return pt(() => {
7336
7336
  o(!!n);
7337
7337
  }, [n]), r;
7338
7338
  }, y3 = (n) => z5({
@@ -8774,7 +8774,7 @@ const Ny = (n) => p3.some(
8774
8774
  }) => {
8775
8775
  if (!r)
8776
8776
  return null;
8777
- const d = new Q3(), p = (await import("./pyth-adapter-ee71d19b.js")).PythAdapter, v = new q3(
8777
+ const d = new Q3(), p = (await import("./pyth-adapter-e9d05252.js")).PythAdapter, v = new q3(
8778
8778
  // Check compatibility
8779
8779
  // Remove casting after viem update https://github.com/Synthetixio/erc7412/blob/main/package.json#L30
8780
8780
  [new p(m3)],
@@ -8965,7 +8965,7 @@ const Ny = (n) => p3.some(
8965
8965
  staleTime: 3e4
8966
8966
  }
8967
8967
  }), mm = (n) => {
8968
- mt(() => {
8968
+ pt(() => {
8969
8969
  n && n.forEach(({ error: r, status: o }) => {
8970
8970
  o === "failure" && console.warn(r == null ? void 0 : r.message);
8971
8971
  });
@@ -8974,7 +8974,7 @@ const Ny = (n) => p3.some(
8974
8974
  error: n,
8975
8975
  status: r
8976
8976
  }) => {
8977
- mt(() => {
8977
+ pt(() => {
8978
8978
  n && r === "failure" && console.warn(n == null ? void 0 : n.message);
8979
8979
  }, [n, r]);
8980
8980
  }, vO = ({
@@ -9012,7 +9012,7 @@ const Ny = (n) => p3.some(
9012
9012
  refetchInterval: wx
9013
9013
  }
9014
9014
  });
9015
- mt(() => {
9015
+ pt(() => {
9016
9016
  r && o.refetchQueries({ queryKey: n, stale: !0 });
9017
9017
  }, [r, u]);
9018
9018
  }, ez = [
@@ -9182,12 +9182,12 @@ const Ny = (n) => p3.some(
9182
9182
  };
9183
9183
  }, sz = ({ children: n }) => {
9184
9184
  const [r, o] = lz(), [{ isOpen: u }] = Dc(), { standalone: d } = na();
9185
- return mt(() => {
9185
+ return pt(() => {
9186
9186
  d && u && !r.TRADING.isOpen && o({
9187
9187
  type: "MERGE_OVERLAY",
9188
9188
  payload: { type: Gi.TRADING, isOpen: u }
9189
9189
  });
9190
- }, [u, r.TRADING.isOpen, o, d]), mt(() => {
9190
+ }, [u, r.TRADING.isOpen, o, d]), pt(() => {
9191
9191
  d && !u && r.TRADING.isOpen && o({
9192
9192
  type: "MERGE_OVERLAY",
9193
9193
  payload: { type: Gi.TRADING, isOpen: u }
@@ -9244,7 +9244,7 @@ const Ny = (n) => p3.some(
9244
9244
  children: n,
9245
9245
  config: r
9246
9246
  }) => {
9247
- var o, u, d, p, v, g, b, x, E, R, k, N, I, q, $, ee, z, ae, ce, fe, ie, le, D, M, L, j, G, H, X, B, U, K, V, re, me, xe, Oe, ct, rt, Je, Xe, Nt, et, wn, cr, kt, Nn, Mt, Lt, gt, Pn, Un, Mr, Vr, ir, Sr, Nr, dr, Lr, fr, Pr, bn, pr, Ia, xa, Ne, Ge, Dt, Jt, fn, Fn, Rn, xr, Pt, Qn, ln, sn, Yi, qi, Co, el, Do, Ea, Ci, ra, Di, Ur, Ri, Wr, Ca, Ai, Q, Se, _e, Ke, st, Ft, bt, nt, Xn, gn, jt, Er, Oi, Fl, Bt, Rc, or, Ot, ki, Tu, Cs, tl, Cr, Su, aa, za, xu, Ac, Il, Ro, Qi, Da, Ao, nl, Ds, zl, rl, Xi, Oc, al, en, Rs, Eu, jl, un, Cu, As, ht, Oo, In, Gr, ia, il, An, rn, ko, Kn, vr, oi, ol, _o, Os, Du, Mo, No, Lo, ja, _i, Bl, Po, Uo, ll, li, Ba, sl, Fo, ul, si, Mi, $l, Yr, Ni, Hl, Io, Vl, Wl, ks, cl, A, Y, ye, De, ot, Ue, It, Yt, tn, Ln, Tn, Sn, xn, qr, Qr, ui, Ra, Dr, Ru, zo, Ki, kc, xp, Au, Jd, oa, Zi, Zn, ci, dl, Ou, ef, Gl, tf, nf, ku, Yl, Ep, Cp, rf, af, of, _s, ql, Ql, Xl, lf, _c, Mc, Nc, sf, uf, cf, Dp, Rp, Ap, df, Op, $a, Ms, ff, pf, vf, _u, Ji, Mu, mf, di, Lc, Ns, Pc, hf, Nu, fl, Uc, Fc, mr, Ic, yf, gf, wf, bf, Tf, eo, Ls, pl, kp, Ps, Us, _p, Sf, Lu, vn, jo, to, Kl, xf, Pu, Fs, Is, vl, zc, jc, Mp, Bc, Uu, Fu, $c, ml, zs, hl, Ef, Hc, Vc, Np, Bo, fi, js, $o, Li, yl, no, Wc, Lp, Gc, Ha, Bs, Zl, tt, Ho, En, Tt, nn, an, Pi, pt, zn, la, Va, On, Wa, Vo, $s, Iu, Cf, Aa, hr, Hs, Yc, qc, sa;
9247
+ var o, u, d, p, v, g, b, x, E, R, k, N, I, q, $, ee, z, ae, ce, fe, ie, le, D, M, L, j, G, H, X, B, U, K, V, re, me, xe, Oe, ct, rt, Je, Xe, Nt, et, wn, cr, kt, Nn, Mt, Lt, gt, Pn, Un, Mr, Vr, ir, Sr, Nr, dr, Lr, fr, Pr, bn, pr, Ia, xa, Ne, Ge, Dt, Jt, fn, Fn, Rn, xr, Pt, Qn, ln, sn, Yi, qi, Co, el, Do, Ea, Ci, ra, Di, Ur, Ri, Wr, Ca, Ai, Q, Se, _e, Ke, st, Ft, bt, nt, Xn, gn, jt, Er, Oi, Fl, Bt, Rc, or, Ot, ki, Tu, Cs, tl, Cr, Su, aa, za, xu, Ac, Il, Ro, Qi, Da, Ao, nl, Ds, zl, rl, Xi, Oc, al, en, Rs, Eu, jl, un, Cu, As, ht, Oo, In, Gr, ia, il, An, rn, ko, Kn, vr, oi, ol, _o, Os, Du, Mo, No, Lo, ja, _i, Bl, Po, Uo, ll, li, Ba, sl, Fo, ul, si, Mi, $l, Yr, Ni, Hl, Io, Vl, Wl, ks, cl, A, Y, ye, De, ot, Ue, It, Yt, tn, Ln, Tn, Sn, xn, qr, Qr, ui, Ra, Dr, Ru, zo, Ki, kc, xp, Au, Jd, oa, Zi, Zn, ci, dl, Ou, ef, Gl, tf, nf, ku, Yl, Ep, Cp, rf, af, of, _s, ql, Ql, Xl, lf, _c, Mc, Nc, sf, uf, cf, Dp, Rp, Ap, df, Op, $a, Ms, ff, pf, vf, _u, Ji, Mu, mf, di, Lc, Ns, Pc, hf, Nu, fl, Uc, Fc, mr, Ic, yf, gf, wf, bf, Tf, eo, Ls, pl, kp, Ps, Us, _p, Sf, Lu, vn, jo, to, Kl, xf, Pu, Fs, Is, vl, zc, jc, Mp, Bc, Uu, Fu, $c, ml, zs, hl, Ef, Hc, Vc, Np, Bo, fi, js, $o, Li, yl, no, Wc, Lp, Gc, Ha, Bs, Zl, tt, Ho, En, Tt, nn, an, Pi, vt, zn, la, Va, On, Wa, Vo, $s, Iu, Cf, Aa, hr, Hs, Yc, qc, sa;
9248
9248
  return /* @__PURE__ */ _.jsx(
9249
9249
  "div",
9250
9250
  {
@@ -9413,7 +9413,7 @@ const Ny = (n) => p3.some(
9413
9413
  //meta
9414
9414
  //meta-spacing
9415
9415
  "--panel-meta-group-gap": `${((nn = (Tt = (En = r == null ? void 0 : r.component) == null ? void 0 : En.meta) == null ? void 0 : Tt.size) == null ? void 0 : nn.gap) ?? "var(--panel-gap)"}`,
9416
- "--panel-meta-group-px": `${((pt = (Pi = (an = r == null ? void 0 : r.component) == null ? void 0 : an.meta) == null ? void 0 : Pi.size) == null ? void 0 : pt.px) ?? "calc(var(--panel-spacer) * 3)"}`,
9416
+ "--panel-meta-group-px": `${((vt = (Pi = (an = r == null ? void 0 : r.component) == null ? void 0 : an.meta) == null ? void 0 : Pi.size) == null ? void 0 : vt.px) ?? "calc(var(--panel-spacer) * 3)"}`,
9417
9417
  //meta-color
9418
9418
  "--panel-meta-link-color": `${((Va = (la = (zn = r == null ? void 0 : r.component) == null ? void 0 : zn.meta) == null ? void 0 : la.color) == null ? void 0 : Va.linkTextColor) ?? "var(--panel-accent-from-color)"}`,
9419
9419
  "--panel-meta-hover-bg": `${((Vo = (Wa = (On = r == null ? void 0 : r.component) == null ? void 0 : On.meta) == null ? void 0 : Wa.color) == null ? void 0 : Vo.panelBgHover) ?? "var(--panel-neutral-color)"}`,
@@ -12006,7 +12006,7 @@ function vz() {
12006
12006
  function an(a, i) {
12007
12007
  En++, Ho[En] = a.current, a.current = i;
12008
12008
  }
12009
- var Pi = {}, pt = Tt(Pi), zn = Tt(!1), la = Pi;
12009
+ var Pi = {}, vt = Tt(Pi), zn = Tt(!1), la = Pi;
12010
12010
  function Va(a, i) {
12011
12011
  var c = a.type.contextTypes;
12012
12012
  if (!c)
@@ -12023,12 +12023,12 @@ function vz() {
12023
12023
  return a = a.childContextTypes, a != null;
12024
12024
  }
12025
12025
  function Wa() {
12026
- nn(zn), nn(pt);
12026
+ nn(zn), nn(vt);
12027
12027
  }
12028
12028
  function Vo(a, i, c) {
12029
- if (pt.current !== Pi)
12029
+ if (vt.current !== Pi)
12030
12030
  throw Error(o(168));
12031
- an(pt, i), an(zn, c);
12031
+ an(vt, i), an(zn, c);
12032
12032
  }
12033
12033
  function $s(a, i, c) {
12034
12034
  var m = a.stateNode;
@@ -12041,13 +12041,13 @@ function vz() {
12041
12041
  return me({}, c, m);
12042
12042
  }
12043
12043
  function Iu(a) {
12044
- return a = (a = a.stateNode) && a.__reactInternalMemoizedMergedChildContext || Pi, la = pt.current, an(pt, a), an(zn, zn.current), !0;
12044
+ return a = (a = a.stateNode) && a.__reactInternalMemoizedMergedChildContext || Pi, la = vt.current, an(vt, a), an(zn, zn.current), !0;
12045
12045
  }
12046
12046
  function Cf(a, i, c) {
12047
12047
  var m = a.stateNode;
12048
12048
  if (!m)
12049
12049
  throw Error(o(169));
12050
- c ? (a = $s(a, i, la), m.__reactInternalMemoizedMergedChildContext = a, nn(zn), nn(pt), an(pt, a)) : nn(zn), an(zn, c);
12050
+ c ? (a = $s(a, i, la), m.__reactInternalMemoizedMergedChildContext = a, nn(zn), nn(vt), an(vt, a)) : nn(zn), an(zn, c);
12051
12051
  }
12052
12052
  var Aa = null, hr = !1, Hs = !1;
12053
12053
  function Yc(a) {
@@ -12392,7 +12392,7 @@ function vz() {
12392
12392
  }
12393
12393
  function Xy(a, i, c) {
12394
12394
  var m = !1, y = Pi, T = i.contextType;
12395
- return typeof T == "object" && T !== null ? T = yr(T) : (y = On(i) ? la : pt.current, m = i.contextTypes, T = (m = m != null) ? Va(a, y) : Pi), i = new i(c, T), a.memoizedState = i.state !== null && i.state !== void 0 ? i.state : null, i.updater = $p, a.stateNode = i, i._reactInternals = a, m && (a = a.stateNode, a.__reactInternalMemoizedUnmaskedChildContext = y, a.__reactInternalMemoizedMaskedChildContext = T), i;
12395
+ return typeof T == "object" && T !== null ? T = yr(T) : (y = On(i) ? la : vt.current, m = i.contextTypes, T = (m = m != null) ? Va(a, y) : Pi), i = new i(c, T), a.memoizedState = i.state !== null && i.state !== void 0 ? i.state : null, i.updater = $p, a.stateNode = i, i._reactInternals = a, m && (a = a.stateNode, a.__reactInternalMemoizedUnmaskedChildContext = y, a.__reactInternalMemoizedMaskedChildContext = T), i;
12396
12396
  }
12397
12397
  function Ky(a, i, c, m) {
12398
12398
  a = i.state, typeof i.componentWillReceiveProps == "function" && i.componentWillReceiveProps(c, m), typeof i.UNSAFE_componentWillReceiveProps == "function" && i.UNSAFE_componentWillReceiveProps(c, m), i.state !== a && $p.enqueueReplaceState(i, i.state, null);
@@ -12401,7 +12401,7 @@ function vz() {
12401
12401
  var y = a.stateNode;
12402
12402
  y.props = c, y.state = a.memoizedState, y.refs = qy, Pm(a);
12403
12403
  var T = i.contextType;
12404
- typeof T == "object" && T !== null ? y.context = yr(T) : (T = On(i) ? la : pt.current, y.context = Va(a, T)), y.state = a.memoizedState, T = i.getDerivedStateFromProps, typeof T == "function" && (Fm(a, i, T, c), y.state = a.memoizedState), typeof i.getDerivedStateFromProps == "function" || typeof y.getSnapshotBeforeUpdate == "function" || typeof y.UNSAFE_componentWillMount != "function" && typeof y.componentWillMount != "function" || (i = y.state, typeof y.componentWillMount == "function" && y.componentWillMount(), typeof y.UNSAFE_componentWillMount == "function" && y.UNSAFE_componentWillMount(), i !== y.state && $p.enqueueReplaceState(y, y.state, null), Qs(a, c, y, m), y.state = a.memoizedState), typeof y.componentDidMount == "function" && (a.flags |= 4194308);
12404
+ typeof T == "object" && T !== null ? y.context = yr(T) : (T = On(i) ? la : vt.current, y.context = Va(a, T)), y.state = a.memoizedState, T = i.getDerivedStateFromProps, typeof T == "function" && (Fm(a, i, T, c), y.state = a.memoizedState), typeof i.getDerivedStateFromProps == "function" || typeof y.getSnapshotBeforeUpdate == "function" || typeof y.UNSAFE_componentWillMount != "function" && typeof y.componentWillMount != "function" || (i = y.state, typeof y.componentWillMount == "function" && y.componentWillMount(), typeof y.UNSAFE_componentWillMount == "function" && y.UNSAFE_componentWillMount(), i !== y.state && $p.enqueueReplaceState(y, y.state, null), Qs(a, c, y, m), y.state = a.memoizedState), typeof y.componentDidMount == "function" && (a.flags |= 4194308);
12405
12405
  }
12406
12406
  function Xc(a, i, c) {
12407
12407
  if (a = c.ref, a !== null && typeof a != "function" && typeof a != "object") {
@@ -12705,7 +12705,7 @@ function vz() {
12705
12705
  io[a]._workInProgressVersionPrimary = null;
12706
12706
  io.length = 0;
12707
12707
  }
12708
- var Gp = ce.ReactCurrentDispatcher, zm = ce.ReactCurrentBatchConfig, $u = 0, Bn = null, be = null, Qt = null, vt = !1, wl = !1, zi = 0, Hu = 0;
12708
+ var Gp = ce.ReactCurrentDispatcher, zm = ce.ReactCurrentBatchConfig, $u = 0, Bn = null, be = null, Qt = null, mt = !1, wl = !1, zi = 0, Hu = 0;
12709
12709
  function $n() {
12710
12710
  throw Error(o(321));
12711
12711
  }
@@ -12726,7 +12726,7 @@ function vz() {
12726
12726
  T += 1, Qt = be = null, i.updateQueue = null, Gp.current = Bm, a = c(m, y);
12727
12727
  } while (wl);
12728
12728
  }
12729
- if (Gp.current = sv, i = be !== null && be.next !== null, $u = 0, Qt = be = Bn = null, vt = !1, i)
12729
+ if (Gp.current = sv, i = be !== null && be.next !== null, $u = 0, Qt = be = Bn = null, mt = !1, i)
12730
12730
  throw Error(o(300));
12731
12731
  return a;
12732
12732
  }
@@ -12969,7 +12969,7 @@ function vz() {
12969
12969
  return a === Bn || i !== null && i === Bn;
12970
12970
  }
12971
12971
  function _f(a, i) {
12972
- wl = vt = !0;
12972
+ wl = mt = !0;
12973
12973
  var c = a.pending;
12974
12974
  c === null ? i.next = i : (i.next = c.next, c.next = i), a.pending = i;
12975
12975
  }
@@ -13195,7 +13195,7 @@ Error generating stack: ` + T.message + `
13195
13195
  (a === null && c !== null || a !== null && a.ref !== c) && (i.flags |= 512, i.flags |= 2097152);
13196
13196
  }
13197
13197
  function rd(a, i, c, m, y) {
13198
- var T = On(c) ? la : pt.current;
13198
+ var T = On(c) ? la : vt.current;
13199
13199
  return T = Va(i, T), Le(i, y), c = Ks(a, i, c, m, T, y), m = Wu(), a !== null && !Rr ? (i.updateQueue = a.updateQueue, i.flags &= -2053, a.lanes &= ~y, da(a, i, y)) : (jn && m && Pp(i), i.flags |= 1, Ir(a, i, c, y), i.child);
13200
13200
  }
13201
13201
  function Vm(a, i, c, m, y) {
@@ -13210,13 +13210,13 @@ Error generating stack: ` + T.message + `
13210
13210
  var O = i.stateNode, W = i.memoizedProps;
13211
13211
  O.props = W;
13212
13212
  var Z = O.context, he = c.contextType;
13213
- typeof he == "object" && he !== null ? he = yr(he) : (he = On(c) ? la : pt.current, he = Va(i, he));
13213
+ typeof he == "object" && he !== null ? he = yr(he) : (he = On(c) ? la : vt.current, he = Va(i, he));
13214
13214
  var Ce = c.getDerivedStateFromProps, Re = typeof Ce == "function" || typeof O.getSnapshotBeforeUpdate == "function";
13215
13215
  Re || typeof O.UNSAFE_componentWillReceiveProps != "function" && typeof O.componentWillReceiveProps != "function" || (W !== m || Z !== he) && Ky(i, O, m, he), Ys = !1;
13216
13216
  var Ee = i.memoizedState;
13217
13217
  O.state = Ee, Qs(i, m, O, y), Z = i.memoizedState, W !== m || Ee !== Z || zn.current || Ys ? (typeof Ce == "function" && (Fm(i, c, Ce, m), Z = i.memoizedState), (W = Ys || Qy(i, c, W, m, Ee, Z, he)) ? (Re || typeof O.UNSAFE_componentWillMount != "function" && typeof O.componentWillMount != "function" || (typeof O.componentWillMount == "function" && O.componentWillMount(), typeof O.UNSAFE_componentWillMount == "function" && O.UNSAFE_componentWillMount()), typeof O.componentDidMount == "function" && (i.flags |= 4194308)) : (typeof O.componentDidMount == "function" && (i.flags |= 4194308), i.memoizedProps = m, i.memoizedState = Z), O.props = m, O.state = Z, O.context = he, m = W) : (typeof O.componentDidMount == "function" && (i.flags |= 4194308), m = !1);
13218
13218
  } else {
13219
- O = i.stateNode, Fr(a, i), W = i.memoizedProps, he = i.type === i.elementType ? W : Ii(i.type, W), O.props = he, Re = i.pendingProps, Ee = O.context, Z = c.contextType, typeof Z == "object" && Z !== null ? Z = yr(Z) : (Z = On(c) ? la : pt.current, Z = Va(i, Z));
13219
+ O = i.stateNode, Fr(a, i), W = i.memoizedProps, he = i.type === i.elementType ? W : Ii(i.type, W), O.props = he, Re = i.pendingProps, Ee = O.context, Z = c.contextType, typeof Z == "object" && Z !== null ? Z = yr(Z) : (Z = On(c) ? la : vt.current, Z = Va(i, Z));
13220
13220
  var Ie = c.getDerivedStateFromProps;
13221
13221
  (Ce = typeof Ie == "function" || typeof O.getSnapshotBeforeUpdate == "function") || typeof O.UNSAFE_componentWillReceiveProps != "function" && typeof O.componentWillReceiveProps != "function" || (W !== Re || Ee !== Z) && Ky(i, O, m, Z), Ys = !1, Ee = i.memoizedState, O.state = Ee, Qs(i, m, O, y);
13222
13222
  var He = i.memoizedState;
@@ -13548,7 +13548,7 @@ Error generating stack: ` + T.message + `
13548
13548
  case 1:
13549
13549
  return On(i.type) && Wa(), _a(i), null;
13550
13550
  case 3:
13551
- return m = i.stateNode, Xs(), nn(zn), nn(pt), Wp(), m.pendingContext && (m.context = m.pendingContext, m.pendingContext = null), (a === null || a.child === null) && (Ip(i) ? i.flags |= 4 : a === null || a.memoizedState.isDehydrated && !(i.flags & 256) || (i.flags |= 1024, ao !== null && ($f(ao), ao = null))), Ku(a, i), _a(i), null;
13551
+ return m = i.stateNode, Xs(), nn(zn), nn(vt), Wp(), m.pendingContext && (m.context = m.pendingContext, m.pendingContext = null), (a === null || a.child === null) && (Ip(i) ? i.flags |= 4 : a === null || a.memoizedState.isDehydrated && !(i.flags & 256) || (i.flags |= 1024, ao !== null && ($f(ao), ao = null))), Ku(a, i), _a(i), null;
13552
13552
  case 5:
13553
13553
  Ut(i);
13554
13554
  var y = Bu(Zc.current);
@@ -13806,7 +13806,7 @@ Error generating stack: ` + T.message + `
13806
13806
  case 1:
13807
13807
  return On(i.type) && Wa(), a = i.flags, a & 65536 ? (i.flags = a & -65537 | 128, i) : null;
13808
13808
  case 3:
13809
- return Xs(), nn(zn), nn(pt), Wp(), a = i.flags, a & 65536 && !(a & 128) ? (i.flags = a & -65537 | 128, i) : null;
13809
+ return Xs(), nn(zn), nn(vt), Wp(), a = i.flags, a & 65536 && !(a & 128) ? (i.flags = a & -65537 | 128, i) : null;
13810
13810
  case 5:
13811
13811
  return Ut(i), null;
13812
13812
  case 13:
@@ -14739,7 +14739,7 @@ Error generating stack: ` + T.message + `
14739
14739
  m = m.type.childContextTypes, m != null && Wa();
14740
14740
  break;
14741
14741
  case 3:
14742
- Xs(), nn(zn), nn(pt), Wp();
14742
+ Xs(), nn(zn), nn(vt), Wp();
14743
14743
  break;
14744
14744
  case 5:
14745
14745
  Ut(m);
@@ -14781,12 +14781,12 @@ Error generating stack: ` + T.message + `
14781
14781
  do {
14782
14782
  var c = lr;
14783
14783
  try {
14784
- if (Nm(), Gp.current = sv, vt) {
14784
+ if (Nm(), Gp.current = sv, mt) {
14785
14785
  for (var m = Bn.memoizedState; m !== null; ) {
14786
14786
  var y = m.queue;
14787
14787
  y !== null && (y.pending = null), m = m.next;
14788
14788
  }
14789
- vt = !1;
14789
+ mt = !1;
14790
14790
  }
14791
14791
  if ($u = 0, Qt = be = Bn = null, wl = !1, zi = 0, eh.current = null, c === null || c.return === null) {
14792
14792
  Br = 1, Bf = i, lr = null;
@@ -15145,7 +15145,7 @@ Error generating stack: ` + T.message + `
15145
15145
  case 2:
15146
15146
  var m = i.type;
15147
15147
  ka(a, i), a = i.pendingProps;
15148
- var y = Va(i, pt.current);
15148
+ var y = Va(i, vt.current);
15149
15149
  Le(i, c), y = Ks(null, i, m, a, y, c);
15150
15150
  var T = Wu();
15151
15151
  return i.flags |= 1, typeof y == "object" && y !== null && typeof y.render == "function" && y.$$typeof === void 0 ? (i.tag = 1, i.memoizedState = null, i.updateQueue = null, On(m) ? (T = !0, Iu(i)) : T = !1, i.memoizedState = y.state !== null && y.state !== void 0 ? y.state : null, Pm(i), y.updater = $p, i.stateNode = y, y._reactInternals = i, Hp(i, m, a, c), i = ag(null, i, m, !0, T, c)) : (i.tag = 0, jn && T && Pp(i), Ir(null, i, y, c), i = i.child), i;
@@ -18069,7 +18069,7 @@ Check the render method of \`` + e + "`." : "";
18069
18069
  ), Pi = (
18070
18070
  /* */
18071
18071
  64
18072
- ), pt = (
18072
+ ), vt = (
18073
18073
  /* */
18074
18074
  128
18075
18075
  ), zn = (
@@ -18304,7 +18304,7 @@ Check the render method of \`` + e + "`." : "";
18304
18304
  function es(e, t) {
18305
18305
  if (Xr && typeof Xr.onCommitFiberRoot == "function")
18306
18306
  try {
18307
- var l = (e.current.flags & pt) === pt;
18307
+ var l = (e.current.flags & vt) === vt;
18308
18308
  if (Xe) {
18309
18309
  var s;
18310
18310
  switch (t) {
@@ -18464,7 +18464,7 @@ Check the render method of \`` + e + "`." : "";
18464
18464
  ), Qt = (
18465
18465
  /* */
18466
18466
  0
18467
- ), vt = (
18467
+ ), mt = (
18468
18468
  /* */
18469
18469
  1
18470
18470
  ), wl = (
@@ -18569,7 +18569,7 @@ Check the render method of \`` + e + "`." : "";
18569
18569
  );
18570
18570
  function ib(e) {
18571
18571
  {
18572
- if (e & vt)
18572
+ if (e & mt)
18573
18573
  return "Sync";
18574
18574
  if (e & wl)
18575
18575
  return "InputContinuousHydration";
@@ -18598,8 +18598,8 @@ Check the render method of \`` + e + "`." : "";
18598
18598
  var kn = -1, ov = Wu, lv = ns;
18599
18599
  function td(e) {
18600
18600
  switch (Rr(e)) {
18601
- case vt:
18602
- return vt;
18601
+ case mt:
18602
+ return mt;
18603
18603
  case wl:
18604
18604
  return wl;
18605
18605
  case zi:
@@ -18696,7 +18696,7 @@ Check the render method of \`` + e + "`." : "";
18696
18696
  }
18697
18697
  function sv(e, t) {
18698
18698
  switch (e) {
18699
- case vt:
18699
+ case mt:
18700
18700
  case wl:
18701
18701
  case zi:
18702
18702
  return t + 250;
@@ -18749,7 +18749,7 @@ Check the render method of \`` + e + "`." : "";
18749
18749
  return t !== be ? t : t & yi ? yi : be;
18750
18750
  }
18751
18751
  function nd(e) {
18752
- return (e & vt) !== be;
18752
+ return (e & mt) !== be;
18753
18753
  }
18754
18754
  function Mf(e) {
18755
18755
  return (e & iv) !== be;
@@ -18758,7 +18758,7 @@ Check the render method of \`` + e + "`." : "";
18758
18758
  return (e & qu) === e;
18759
18759
  }
18760
18760
  function sb(e) {
18761
- var t = vt | zi | $n;
18761
+ var t = mt | zi | $n;
18762
18762
  return (e & t) === be;
18763
18763
  }
18764
18764
  function ng(e) {
@@ -18912,7 +18912,7 @@ Check the render method of \`` + e + "`." : "";
18912
18912
  function Qm(e, t) {
18913
18913
  return null;
18914
18914
  }
18915
- var ka = vt, da = zi, rs = $n, Lf = Zs, Ku = Qt;
18915
+ var ka = mt, da = zi, rs = $n, Lf = Zs, Ku = Qt;
18916
18916
  function lo() {
18917
18917
  return Ku;
18918
18918
  }
@@ -21840,7 +21840,7 @@ Check the render method of \`` + e + "`." : "";
21840
21840
  }
21841
21841
  }
21842
21842
  function nT(e) {
21843
- return (e.mode & Ut) !== ut && (e.flags & pt) === tt;
21843
+ return (e.mode & Ut) !== ut && (e.flags & vt) === tt;
21844
21844
  }
21845
21845
  function rT(e) {
21846
21846
  throw new Error("Hydration failed because the initial UI does not match what was rendered on the server.");
@@ -22390,7 +22390,7 @@ Learn more about this warning here: https://reactjs.org/link/legacy-context`, f)
22390
22390
  return w;
22391
22391
  }
22392
22392
  case fT:
22393
- e.flags = e.flags & ~hr | pt;
22393
+ e.flags = e.flags & ~hr | vt;
22394
22394
  case uC: {
22395
22395
  var C = l.payload, P;
22396
22396
  if (typeof C == "function") {
@@ -23273,7 +23273,7 @@ See https://reactjs.org/link/refs-must-have-owner for more information.`);
23273
23273
  } else if (t.tag === j && // revealOrder undefined can't be trusted because it don't
23274
23274
  // keep track of whether it suspended or not.
23275
23275
  t.memoizedProps.revealOrder !== void 0) {
23276
- var f = (t.flags & pt) !== tt;
23276
+ var f = (t.flags & vt) !== tt;
23277
23277
  if (f)
23278
23278
  return t;
23279
23279
  } else if (t.child !== null) {
@@ -23633,8 +23633,8 @@ Incoming: %s`, Te, "[" + t.join(", ") + "]", "[" + e.join(", ") + "]");
23633
23633
  }
23634
23634
  }
23635
23635
  function UC(e) {
23636
- var t = po(e, vt);
23637
- t !== null && wa(t, e, vt, kn);
23636
+ var t = po(e, mt);
23637
+ t !== null && wa(t, e, mt, kn);
23638
23638
  }
23639
23639
  function h0(e) {
23640
23640
  var t = su();
@@ -24640,7 +24640,7 @@ Visit https://reactjs.org/link/error-boundaries to learn more about error bounda
24640
24640
  var C = t.value, P = t.stack;
24641
24641
  this.componentDidCatch(C, {
24642
24642
  componentStack: P !== null ? P : ""
24643
- }), typeof f != "function" && (gi(e.lanes, vt) || v("%s: Error boundaries should implement getDerivedStateFromError(). In that method, return a state update to display an error message or fallback UI.", ht(e) || "Unknown"));
24643
+ }), typeof f != "function" && (gi(e.lanes, mt) || v("%s: Error boundaries should implement getDerivedStateFromError(). In that method, return a state update to display an error message or fallback UI.", ht(e) || "Unknown"));
24644
24644
  }), s;
24645
24645
  }
24646
24646
  function aD(e, t, l) {
@@ -24680,16 +24680,16 @@ Visit https://reactjs.org/link/error-boundaries to learn more about error bounda
24680
24680
  if (e === t)
24681
24681
  e.flags |= hr;
24682
24682
  else {
24683
- if (e.flags |= pt, l.flags |= Hs, l.flags &= ~(Iu | Aa), l.tag === x) {
24683
+ if (e.flags |= vt, l.flags |= Hs, l.flags &= ~(Iu | Aa), l.tag === x) {
24684
24684
  var h = l.alternate;
24685
24685
  if (h === null)
24686
24686
  l.tag = M;
24687
24687
  else {
24688
- var w = dc(kn, vt);
24689
- w.tag = n0, Ed(l, w, vt);
24688
+ var w = dc(kn, mt);
24689
+ w.tag = n0, Ed(l, w, mt);
24690
24690
  }
24691
24691
  }
24692
- l.lanes = Rt(l.lanes, vt);
24692
+ l.lanes = Rt(l.lanes, mt);
24693
24693
  }
24694
24694
  return e;
24695
24695
  }
@@ -24734,7 +24734,7 @@ Visit https://reactjs.org/link/error-boundaries to learn more about error bounda
24734
24734
  }
24735
24735
  case x:
24736
24736
  var pe = s, ve = P.type, ge = P.stateNode;
24737
- if ((P.flags & pt) === tt && (typeof ve.getDerivedStateFromError == "function" || ge !== null && typeof ge.componentDidCatch == "function" && !iR(ge))) {
24737
+ if ((P.flags & vt) === tt && (typeof ve.getDerivedStateFromError == "function" || ge !== null && typeof ge.componentDidCatch == "function" && !iR(ge))) {
24738
24738
  P.flags |= hr;
24739
24739
  var je = Ir(f);
24740
24740
  P.lanes = Rt(P.lanes, je);
@@ -24959,7 +24959,7 @@ Visit https://reactjs.org/link/error-boundaries to learn more about error bounda
24959
24959
  break;
24960
24960
  }
24961
24961
  case !0: {
24962
- t.flags |= pt, t.flags |= hr;
24962
+ t.flags |= vt, t.flags |= hr;
24963
24963
  var P = new Error("Simulated error coming from DevTools"), F = Ir(f);
24964
24964
  t.lanes = Rt(t.lanes, F);
24965
24965
  var ne = pS(t, rp(P, t), F);
@@ -24991,7 +24991,7 @@ Visit https://reactjs.org/link/error-boundaries to learn more about error bounda
24991
24991
  }
24992
24992
  function bS(e, t, l, s, f, h) {
24993
24993
  dD(e, t);
24994
- var w = (t.flags & pt) !== tt;
24994
+ var w = (t.flags & vt) !== tt;
24995
24995
  if (!s && !w)
24996
24996
  return f && GE(t, l, !1), fc(e, t, h);
24997
24997
  var S = t.stateNode;
@@ -25206,9 +25206,9 @@ Check the render method of \`` + s + "`.");
25206
25206
  }
25207
25207
  function mD(e, t, l) {
25208
25208
  var s = t.pendingProps;
25209
- n5(t) && (t.flags |= pt);
25210
- var f = fs.current, h = !1, w = (t.flags & pt) !== tt;
25211
- if (w || GN(f, e) ? (h = !0, t.flags &= ~pt) : (e === null || e.memoizedState !== null) && (f = mN(f, AC)), f = Vv(f), Dd(t, f), e === null) {
25209
+ n5(t) && (t.flags |= vt);
25210
+ var f = fs.current, h = !1, w = (t.flags & vt) !== tt;
25211
+ if (w || GN(f, e) ? (h = !0, t.flags &= ~vt) : (e === null || e.memoizedState !== null) && (f = mN(f, AC)), f = Vv(f), Dd(t, f), e === null) {
25212
25212
  aT(t);
25213
25213
  var S = t.memoizedState;
25214
25214
  if (S !== null) {
@@ -25305,7 +25305,7 @@ Check the render method of \`` + s + "`.");
25305
25305
  return C.flags |= En, S.return = t, C.return = t, S.sibling = C, t.child = S, (t.mode & Ut) !== ut && $v(t, e.child, null, f), C;
25306
25306
  }
25307
25307
  function ZN(e, t, l) {
25308
- return (e.mode & Ut) === ut ? (v("Cannot hydrate Suspense in legacy mode. Switch from ReactDOM.hydrate(element, container) to ReactDOMClient.hydrateRoot(container, <App />).render(element) or remove the Suspense components from the server rendered components."), e.lanes = vt) : Hb(t) ? e.lanes = Hu : e.lanes = yi, null;
25308
+ return (e.mode & Ut) === ut ? (v("Cannot hydrate Suspense in legacy mode. Switch from ReactDOM.hydrate(element, container) to ReactDOMClient.hydrateRoot(container, <App />).render(element) or remove the Suspense components from the server rendered components."), e.lanes = mt) : Hb(t) ? e.lanes = Hu : e.lanes = yi, null;
25309
25309
  }
25310
25310
  function JN(e, t, l, s, f, h, w) {
25311
25311
  if (l)
@@ -25315,7 +25315,7 @@ Check the render method of \`` + s + "`.");
25315
25315
  return L0(e, t, w, se);
25316
25316
  } else {
25317
25317
  if (t.memoizedState !== null)
25318
- return t.child = e.child, t.flags |= pt, null;
25318
+ return t.child = e.child, t.flags |= vt, null;
25319
25319
  var we = s.children, ue = s.fallback, Ae = KN(e, t, we, ue, w), Be = t.child;
25320
25320
  return Be.memoizedState = xS(w), t.memoizedState = SS, Ae;
25321
25321
  }
@@ -25356,7 +25356,7 @@ Check the render method of \`` + s + "`.");
25356
25356
  var lt = dS(new Error("This Suspense boundary received an update before it finished hydrating. This caused the boundary to switch to client rendering. The usual way to fix this is to wrap the original update in startTransition."));
25357
25357
  return L0(e, t, w, lt);
25358
25358
  } else if (IE(f)) {
25359
- t.flags |= pt, t.child = e.child;
25359
+ t.flags |= vt, t.child = e.child;
25360
25360
  var Ze = EP.bind(null, e);
25361
25361
  return iM(f, Ze), null;
25362
25362
  } else {
@@ -25470,9 +25470,9 @@ Check the render method of \`` + s + "`.");
25470
25470
  nL(f), rL(h, f), aL(w, f), Bi(e, t, w, l);
25471
25471
  var S = fs.current, C = UT(S, Uh);
25472
25472
  if (C)
25473
- S = FT(S, Uh), t.flags |= pt;
25473
+ S = FT(S, Uh), t.flags |= vt;
25474
25474
  else {
25475
- var P = e !== null && (e.flags & pt) !== tt;
25475
+ var P = e !== null && (e.flags & vt) !== tt;
25476
25476
  P && eL(t, t.child, l), S = Vv(S);
25477
25477
  }
25478
25478
  if (Dd(t, S), (t.mode & Ut) === ut)
@@ -25634,7 +25634,7 @@ Check the render method of \`` + s + "`.");
25634
25634
  var C = t.memoizedState;
25635
25635
  if (C !== null) {
25636
25636
  if (C.dehydrated !== null)
25637
- return Dd(t, Vv(fs.current)), t.flags |= pt, null;
25637
+ return Dd(t, Vv(fs.current)), t.flags |= vt, null;
25638
25638
  var P = t.child, F = P.childLanes;
25639
25639
  if (gi(l, F))
25640
25640
  return mD(e, t, l);
@@ -25646,11 +25646,11 @@ Check the render method of \`` + s + "`.");
25646
25646
  break;
25647
25647
  }
25648
25648
  case j: {
25649
- var J = (e.flags & pt) !== tt, pe = gi(l, t.childLanes);
25649
+ var J = (e.flags & vt) !== tt, pe = gi(l, t.childLanes);
25650
25650
  if (J) {
25651
25651
  if (pe)
25652
25652
  return wD(e, t, l);
25653
- t.flags |= pt;
25653
+ t.flags |= vt;
25654
25654
  }
25655
25655
  var ve = t.memoizedState;
25656
25656
  if (ve !== null && (ve.rendering = null, ve.tail = null, ve.lastEffect = null), Dd(t, fs.current), pe)
@@ -25675,7 +25675,7 @@ Check the render method of \`` + s + "`.");
25675
25675
  var h = RS(e, l);
25676
25676
  if (!h && // If this is the second pass of an error or suspense boundary, there
25677
25677
  // may not be work scheduled on `current`, so we check for this flag.
25678
- (t.flags & pt) === tt)
25678
+ (t.flags & vt) === tt)
25679
25679
  return vs = !1, uL(e, t, l);
25680
25680
  (e.flags & Hs) !== tt ? vs = !0 : vs = !1;
25681
25681
  }
@@ -25828,7 +25828,7 @@ Check the render method of \`` + s + "`.");
25828
25828
  return e.childLanes = l, t;
25829
25829
  }
25830
25830
  function cL(e, t, l) {
25831
- if (QM() && (t.mode & Ut) !== ut && (t.flags & pt) === tt)
25831
+ if (QM() && (t.mode & Ut) !== ut && (t.flags & vt) === tt)
25832
25832
  return nC(t), zv(), t.flags |= zn | Aa | hr, !1;
25833
25833
  var s = Xg(t);
25834
25834
  if (l !== null && l.dehydrated !== null)
@@ -25844,7 +25844,7 @@ Check the render method of \`` + s + "`.");
25844
25844
  }
25845
25845
  return !1;
25846
25846
  } else {
25847
- if (zv(), (t.flags & pt) === tt && (t.memoizedState = null), t.flags |= Tt, Xa(t), (t.mode & dt) !== ut) {
25847
+ if (zv(), (t.flags & vt) === tt && (t.memoizedState = null), t.flags |= Tt, Xa(t), (t.mode & dt) !== ut) {
25848
25848
  var w = l !== null;
25849
25849
  if (w) {
25850
25850
  var S = t.child;
@@ -25932,7 +25932,7 @@ Check the render method of \`` + s + "`.");
25932
25932
  if (!Kt)
25933
25933
  return t.flags & hr ? t : null;
25934
25934
  }
25935
- if ((t.flags & pt) !== tt)
25935
+ if ((t.flags & vt) !== tt)
25936
25936
  return t.lanes = l, (t.mode & dt) !== ut && cS(t), t;
25937
25937
  var Ht = Ze !== null, se = e !== null && e.memoizedState !== null;
25938
25938
  if (Ht !== se && Ht) {
@@ -25963,29 +25963,29 @@ Check the render method of \`` + s + "`.");
25963
25963
  var xt = t.memoizedState;
25964
25964
  if (xt === null)
25965
25965
  return Xa(t), null;
25966
- var Dn = (t.flags & pt) !== tt, cn = xt.rendering;
25966
+ var Dn = (t.flags & vt) !== tt, cn = xt.rendering;
25967
25967
  if (cn === null)
25968
25968
  if (Dn)
25969
25969
  Yh(xt, !1);
25970
25970
  else {
25971
- var $r = pP() && (e === null || (e.flags & pt) === tt);
25971
+ var $r = pP() && (e === null || (e.flags & vt) === tt);
25972
25972
  if (!$r)
25973
25973
  for (var dn = t.child; dn !== null; ) {
25974
25974
  var Or = p0(dn);
25975
25975
  if (Or !== null) {
25976
- Dn = !0, t.flags |= pt, Yh(xt, !1);
25976
+ Dn = !0, t.flags |= vt, Yh(xt, !1);
25977
25977
  var Si = Or.updateQueue;
25978
25978
  return Si !== null && (t.updateQueue = Si, t.flags |= Tt), t.subtreeFlags = tt, pN(t, l), Dd(t, FT(fs.current, Uh)), t.child;
25979
25979
  }
25980
25980
  dn = dn.sibling;
25981
25981
  }
25982
- xt.tail !== null && Jn() > qD() && (t.flags |= pt, Dn = !0, Yh(xt, !1), t.lanes = jm);
25982
+ xt.tail !== null && Jn() > qD() && (t.flags |= vt, Dn = !0, Yh(xt, !1), t.lanes = jm);
25983
25983
  }
25984
25984
  else {
25985
25985
  if (!Dn) {
25986
25986
  var ti = p0(cn);
25987
25987
  if (ti !== null) {
25988
- t.flags |= pt, Dn = !0;
25988
+ t.flags |= vt, Dn = !0;
25989
25989
  var Qo = ti.updateQueue;
25990
25990
  if (Qo !== null && (t.updateQueue = Qo, t.flags |= Tt), Yh(xt, !0), xt.tail === null && xt.tailMode === "hidden" && !cn.alternate && !qa())
25991
25991
  return Xa(t), null;
@@ -25993,7 +25993,7 @@ Check the render method of \`` + s + "`.");
25993
25993
  // The time it took to render last row is greater than the remaining
25994
25994
  // time we have to render. So rendering one more row would likely
25995
25995
  // exceed it.
25996
- Jn() * 2 - xt.renderingStartTime > qD() && l !== yi && (t.flags |= pt, Dn = !0, Yh(xt, !1), t.lanes = jm);
25996
+ Jn() * 2 - xt.renderingStartTime > qD() && l !== yi && (t.flags |= vt, Dn = !0, Yh(xt, !1), t.lanes = jm);
25997
25997
  }
25998
25998
  if (xt.isBackwards)
25999
25999
  cn.sibling = t.child, t.child = cn;
@@ -26036,12 +26036,12 @@ Check the render method of \`` + s + "`.");
26036
26036
  var s = t.type;
26037
26037
  ou(s) && Vg(t);
26038
26038
  var f = t.flags;
26039
- return f & hr ? (t.flags = f & ~hr | pt, (t.mode & dt) !== ut && cS(t), t) : null;
26039
+ return f & hr ? (t.flags = f & ~hr | vt, (t.mode & dt) !== ut && cS(t), t) : null;
26040
26040
  }
26041
26041
  case R: {
26042
26042
  t.stateNode, Hv(t), Xb(t), zT();
26043
26043
  var h = t.flags;
26044
- return (h & hr) !== tt && (h & pt) === tt ? (t.flags = h & ~hr | pt, t) : null;
26044
+ return (h & hr) !== tt && (h & vt) === tt ? (t.flags = h & ~hr | vt, t) : null;
26045
26045
  }
26046
26046
  case N:
26047
26047
  return PT(t), null;
@@ -26054,7 +26054,7 @@ Check the render method of \`` + s + "`.");
26054
26054
  zv();
26055
26055
  }
26056
26056
  var S = t.flags;
26057
- return S & hr ? (t.flags = S & ~hr | pt, (t.mode & dt) !== ut && cS(t), t) : null;
26057
+ return S & hr ? (t.flags = S & ~hr | vt, (t.mode & dt) !== ut && cS(t), t) : null;
26058
26058
  }
26059
26059
  case j:
26060
26060
  return Wv(t), null;
@@ -27333,7 +27333,7 @@ Learn more about data fetching with Hooks: https://reactjs.org/link/hooks-data-f
27333
27333
  function Md(e) {
27334
27334
  var t = e.mode;
27335
27335
  if ((t & Ut) === ut)
27336
- return vt;
27336
+ return mt;
27337
27337
  if ((Xt & ei) !== ha && ya !== be)
27338
27338
  return Ir(ya);
27339
27339
  var l = ZM() !== KM;
@@ -27352,10 +27352,10 @@ Learn more about data fetching with Hooks: https://reactjs.org/link/hooks-data-f
27352
27352
  }
27353
27353
  function rP(e) {
27354
27354
  var t = e.mode;
27355
- return (t & Ut) === ut ? vt : ub();
27355
+ return (t & Ut) === ut ? mt : ub();
27356
27356
  }
27357
27357
  function wa(e, t, l, s) {
27358
- RP(), QD && v("useInsertionEffect must not schedule updates."), $S && ($0 = !0), Xu(e, l, s), (Xt & ei) !== be && e === $i ? kP(t) : (ca && qm(e, t, l), _P(t), e === $i && ((Xt & ei) === ha && (Zh = Rt(Zh, l)), ga === Xh && Nd(e, ya)), ho(e, s), l === vt && Xt === ha && (t.mode & Ut) === ut && // Treat `act` as if it's inside `batchedUpdates`, even in legacy mode.
27358
+ RP(), QD && v("useInsertionEffect must not schedule updates."), $S && ($0 = !0), Xu(e, l, s), (Xt & ei) !== be && e === $i ? kP(t) : (ca && qm(e, t, l), _P(t), e === $i && ((Xt & ei) === ha && (Zh = Rt(Zh, l)), ga === Xh && Nd(e, ya)), ho(e, s), l === mt && Xt === ha && (t.mode & Ut) === ut && // Treat `act` as if it's inside `batchedUpdates`, even in legacy mode.
27359
27359
  !gs.isBatchingLegacy && (ey(), qE()));
27360
27360
  }
27361
27361
  function aP(e, t, l) {
@@ -27382,12 +27382,12 @@ Learn more about data fetching with Hooks: https://reactjs.org/link/hooks-data-f
27382
27382
  // Scheduler task, rather than an `act` task, cancel it and re-scheduled
27383
27383
  // on the `act` queue.
27384
27384
  !(gs.current !== null && l !== QS)) {
27385
- l == null && h !== vt && v("Expected scheduled callback to exist. This error is likely caused by a bug in React. Please file an issue.");
27385
+ l == null && h !== mt && v("Expected scheduled callback to exist. This error is likely caused by a bug in React. Please file an issue.");
27386
27386
  return;
27387
27387
  }
27388
27388
  l != null && dR(l);
27389
27389
  var w;
27390
- if (f === vt)
27390
+ if (f === mt)
27391
27391
  e.tag === Td ? (gs.isBatchingLegacy !== null && (gs.didScheduleLegacyUpdate = !0), LM(ZD.bind(null, e))) : YE(ZD.bind(null, e)), gs.current !== null ? gs.current.push(Sd) : I_(function() {
27392
27392
  (Xt & (ei | Al)) === ha && Sd();
27393
27393
  }), w = null;
@@ -27560,7 +27560,7 @@ Learn more about data fetching with Hooks: https://reactjs.org/link/hooks-data-f
27560
27560
  throw new Error("Should not already be working.");
27561
27561
  hc();
27562
27562
  var t = _f(e, be);
27563
- if (!gi(t, vt))
27563
+ if (!gi(t, mt))
27564
27564
  return ho(e, Jn()), null;
27565
27565
  var l = Y0(e, t);
27566
27566
  if (e.tag !== Td && l === ip) {
@@ -27577,7 +27577,7 @@ Learn more about data fetching with Hooks: https://reactjs.org/link/hooks-data-f
27577
27577
  return e.finishedWork = h, e.finishedLanes = t, sp(e, mo, vc), ho(e, Jn()), null;
27578
27578
  }
27579
27579
  function sP(e, t) {
27580
- t !== be && (ad(e, Rt(t, vt)), ho(e, Jn()), (Xt & (ei | Al)) === ha && (ey(), Sd()));
27580
+ t !== be && (ad(e, Rt(t, mt)), ho(e, Jn()), (Xt & (ei | Al)) === ha && (ey(), Sd()));
27581
27581
  }
27582
27582
  function VS(e, t) {
27583
27583
  var l = Xt;
@@ -27824,7 +27824,7 @@ Learn more about data fetching with Hooks: https://reactjs.org/link/hooks-data-f
27824
27824
  var Ze = IS;
27825
27825
  throw IS = null, Ze;
27826
27826
  }
27827
- return gi(ty, vt) && e.tag !== Td && hc(), w = e.pendingLanes, gi(w, vt) ? (DN(), e === BS ? ny++ : (ny = 0, BS = e)) : ny = 0, Sd(), Um(), null;
27827
+ return gi(ty, mt) && e.tag !== Td && hc(), w = e.pendingLanes, gi(w, mt) ? (DN(), e === BS ? ny++ : (ny = 0, BS = e)) : ny = 0, Sd(), Um(), null;
27828
27828
  }
27829
27829
  function hc() {
27830
27830
  if (_d !== null) {
@@ -27879,8 +27879,8 @@ Learn more about data fetching with Hooks: https://reactjs.org/link/hooks-data-f
27879
27879
  }
27880
27880
  var SP = TP;
27881
27881
  function oR(e, t, l) {
27882
- var s = rp(l, t), f = rD(e, s, vt), h = Ed(e, f, vt), w = Hi();
27883
- h !== null && (Xu(h, vt, w), ho(h, w));
27882
+ var s = rp(l, t), f = rD(e, s, mt), h = Ed(e, f, mt), w = Hi();
27883
+ h !== null && (Xu(h, mt, w), ho(h, w));
27884
27884
  }
27885
27885
  function Hn(e, t, l) {
27886
27886
  if (pL(l), oy(!1), e.tag === R) {
@@ -27895,8 +27895,8 @@ Learn more about data fetching with Hooks: https://reactjs.org/link/hooks-data-f
27895
27895
  } else if (s.tag === x) {
27896
27896
  var f = s.type, h = s.stateNode;
27897
27897
  if (typeof f.getDerivedStateFromError == "function" || typeof h.componentDidCatch == "function" && !iR(h)) {
27898
- var w = rp(l, e), S = pS(s, w, vt), C = Ed(s, S, vt), P = Hi();
27899
- C !== null && (Xu(C, vt, P), ho(C, P));
27898
+ var w = rp(l, e), S = pS(s, w, mt), C = Ed(s, S, mt), P = Hi();
27899
+ C !== null && (Xu(C, mt, P), ho(C, P));
27900
27900
  return;
27901
27901
  }
27902
27902
  }
@@ -28200,8 +28200,8 @@ This ensures that you're testing the behavior the user would see in the browser.
28200
28200
  ne !== void 0 && (l.has(ne) ? F = !0 : t.has(ne) && (w === x ? F = !0 : P = !0));
28201
28201
  }
28202
28202
  if (nm !== null && (nm.has(e) || s !== null && nm.has(s)) && (F = !0), F && (e._debugNeedsRemount = !0), F || P) {
28203
- var J = po(e, vt);
28204
- J !== null && wa(J, e, vt, kn);
28203
+ var J = po(e, mt);
28204
+ J !== null && wa(J, e, mt, kn);
28205
28205
  }
28206
28206
  f !== null && !F && JS(f, t, l), h !== null && JS(h, t, l);
28207
28207
  }
@@ -28598,13 +28598,13 @@ Check the render method of %s.`, ht(In) || "Unknown"));
28598
28598
  }
28599
28599
  case fe: {
28600
28600
  mc(function() {
28601
- var f = po(e, vt);
28601
+ var f = po(e, mt);
28602
28602
  if (f !== null) {
28603
28603
  var h = Hi();
28604
- wa(f, e, vt, h);
28604
+ wa(f, e, mt, h);
28605
28605
  }
28606
28606
  });
28607
- var s = vt;
28607
+ var s = mt;
28608
28608
  c1(e, s);
28609
28609
  break;
28610
28610
  }
@@ -28704,40 +28704,40 @@ Check the render method of %s.`, ht(In) || "Unknown"));
28704
28704
  if (f !== null) {
28705
28705
  var h = jR(f.memoizedState, l, s);
28706
28706
  f.memoizedState = h, f.baseState = h, e.memoizedProps = Ot({}, e.memoizedProps);
28707
- var w = po(e, vt);
28708
- w !== null && wa(w, e, vt, kn);
28707
+ var w = po(e, mt);
28708
+ w !== null && wa(w, e, mt, kn);
28709
28709
  }
28710
28710
  }, RR = function(e, t, l) {
28711
28711
  var s = d1(e, t);
28712
28712
  if (s !== null) {
28713
28713
  var f = UR(s.memoizedState, l);
28714
28714
  s.memoizedState = f, s.baseState = f, e.memoizedProps = Ot({}, e.memoizedProps);
28715
- var h = po(e, vt);
28716
- h !== null && wa(h, e, vt, kn);
28715
+ var h = po(e, mt);
28716
+ h !== null && wa(h, e, mt, kn);
28717
28717
  }
28718
28718
  }, AR = function(e, t, l, s) {
28719
28719
  var f = d1(e, t);
28720
28720
  if (f !== null) {
28721
28721
  var h = IR(f.memoizedState, l, s);
28722
28722
  f.memoizedState = h, f.baseState = h, e.memoizedProps = Ot({}, e.memoizedProps);
28723
- var w = po(e, vt);
28724
- w !== null && wa(w, e, vt, kn);
28723
+ var w = po(e, mt);
28724
+ w !== null && wa(w, e, mt, kn);
28725
28725
  }
28726
28726
  }, OR = function(e, t, l) {
28727
28727
  e.pendingProps = jR(e.memoizedProps, t, l), e.alternate && (e.alternate.pendingProps = e.pendingProps);
28728
- var s = po(e, vt);
28729
- s !== null && wa(s, e, vt, kn);
28728
+ var s = po(e, mt);
28729
+ s !== null && wa(s, e, mt, kn);
28730
28730
  }, kR = function(e, t) {
28731
28731
  e.pendingProps = UR(e.memoizedProps, t), e.alternate && (e.alternate.pendingProps = e.pendingProps);
28732
- var l = po(e, vt);
28733
- l !== null && wa(l, e, vt, kn);
28732
+ var l = po(e, mt);
28733
+ l !== null && wa(l, e, mt, kn);
28734
28734
  }, _R = function(e, t, l) {
28735
28735
  e.pendingProps = IR(e.memoizedProps, t, l), e.alternate && (e.alternate.pendingProps = e.pendingProps);
28736
- var s = po(e, vt);
28737
- s !== null && wa(s, e, vt, kn);
28736
+ var s = po(e, mt);
28737
+ s !== null && wa(s, e, mt, kn);
28738
28738
  }, MR = function(e) {
28739
- var t = po(e, vt);
28740
- t !== null && wa(t, e, vt, kn);
28739
+ var t = po(e, mt);
28740
+ t !== null && wa(t, e, mt, kn);
28741
28741
  }, NR = function(e) {
28742
28742
  ER = e;
28743
28743
  }, LR = function(e) {
@@ -29097,7 +29097,7 @@ let gz = class {
29097
29097
  return this.handoffState === "complete";
29098
29098
  }
29099
29099
  }, xc = new gz(), ri = (n, r) => {
29100
- xc.isServer ? mt(n, r) : D5(n, r);
29100
+ xc.isServer ? pt(n, r) : D5(n, r);
29101
29101
  };
29102
29102
  function To(n) {
29103
29103
  let r = Vt(n);
@@ -29159,7 +29159,7 @@ function Uy() {
29159
29159
  }
29160
29160
  function Ax() {
29161
29161
  let [n] = qn(Uy);
29162
- return mt(() => () => n.dispose(), [n]), n;
29162
+ return pt(() => () => n.dispose(), [n]), n;
29163
29163
  }
29164
29164
  function bz() {
29165
29165
  let n = typeof document > "u";
@@ -29277,7 +29277,7 @@ function Rz() {
29277
29277
  }
29278
29278
  function uw(n, r, o) {
29279
29279
  let u = To(r);
29280
- mt(() => {
29280
+ pt(() => {
29281
29281
  function d(p) {
29282
29282
  u.current(p);
29283
29283
  }
@@ -29286,7 +29286,7 @@ function uw(n, r, o) {
29286
29286
  }
29287
29287
  function OO(n, r, o) {
29288
29288
  let u = To(r);
29289
- mt(() => {
29289
+ pt(() => {
29290
29290
  function d(p) {
29291
29291
  u.current(p);
29292
29292
  }
@@ -29295,7 +29295,7 @@ function OO(n, r, o) {
29295
29295
  }
29296
29296
  function Az(n, r, o = !0) {
29297
29297
  let u = Vt(!1);
29298
- mt(() => {
29298
+ pt(() => {
29299
29299
  requestAnimationFrame(() => {
29300
29300
  u.current = o;
29301
29301
  });
@@ -29354,7 +29354,7 @@ function kx(n, r = !0) {
29354
29354
  }
29355
29355
  function Hr(...n) {
29356
29356
  let r = Vt(n);
29357
- mt(() => {
29357
+ pt(() => {
29358
29358
  r.current = n;
29359
29359
  }, [n]);
29360
29360
  let o = Ct((u) => {
@@ -29512,7 +29512,7 @@ function Nz(n) {
29512
29512
  var rr = ((n) => (n.Space = " ", n.Enter = "Enter", n.Escape = "Escape", n.Backspace = "Backspace", n.Delete = "Delete", n.ArrowLeft = "ArrowLeft", n.ArrowUp = "ArrowUp", n.ArrowRight = "ArrowRight", n.ArrowDown = "ArrowDown", n.Home = "Home", n.End = "End", n.PageUp = "PageUp", n.PageDown = "PageDown", n.Tab = "Tab", n))(rr || {});
29513
29513
  function Lz(n, r, o, u) {
29514
29514
  let d = To(o);
29515
- mt(() => {
29515
+ pt(() => {
29516
29516
  n = n ?? window;
29517
29517
  function p(v) {
29518
29518
  d.current(v);
@@ -29528,7 +29528,7 @@ function Qw() {
29528
29528
  }
29529
29529
  function Pz(n) {
29530
29530
  let r = Ct(n), o = Vt(!1);
29531
- mt(() => (o.current = !1, () => {
29531
+ pt(() => (o.current = !1, () => {
29532
29532
  o.current = !0, Rx(() => {
29533
29533
  o.current && r();
29534
29534
  });
@@ -29557,9 +29557,9 @@ function Iz(n) {
29557
29557
  let g = u.createElement("div");
29558
29558
  return g.setAttribute("id", "headlessui-portal-root"), u.body.appendChild(g);
29559
29559
  });
29560
- return mt(() => {
29560
+ return pt(() => {
29561
29561
  d !== null && (u != null && u.body.contains(d) || u == null || u.body.appendChild(d));
29562
- }, [d, u]), mt(() => {
29562
+ }, [d, u]), pt(() => {
29563
29563
  r || o !== null && p(o.current);
29564
29564
  }, [o, p, r]), d;
29565
29565
  }
@@ -29707,7 +29707,7 @@ function oj(n, r) {
29707
29707
  let lj = "button";
29708
29708
  function sj(n, r) {
29709
29709
  let o = Ko(), { id: u = `headlessui-disclosure-button-${o}`, ...d } = n, [p, v] = Px("Disclosure.Button"), g = rj(), b = g === null ? !1 : g === p.panelId, x = Vt(null), E = Hr(x, r, b ? null : p.buttonRef), R = _x();
29710
- mt(() => {
29710
+ pt(() => {
29711
29711
  if (!b)
29712
29712
  return v({ type: 2, buttonId: u }), () => {
29713
29713
  v({ type: 2, buttonId: null });
@@ -29748,7 +29748,7 @@ function dj(n, r) {
29748
29748
  let o = Ko(), { id: u = `headlessui-disclosure-panel-${o}`, ...d } = n, [p, v] = Px("Disclosure.Panel"), { close: g } = UO("Disclosure.Panel"), b = _x(), x = Hr(r, p.panelRef, (I) => {
29749
29749
  Jz(() => v({ type: I ? 4 : 5 }));
29750
29750
  });
29751
- mt(() => (v({ type: 3, panelId: u }), () => {
29751
+ pt(() => (v({ type: 3, panelId: u }), () => {
29752
29752
  v({ type: 3, panelId: null });
29753
29753
  }), [u, v]);
29754
29754
  let E = Iy(), R = (() => E !== null ? (E & Ta.Open) === Ta.Open : p.disclosureState === 0)(), k = qe(() => ({ open: p.disclosureState === 0, close: g }), [p, g]), N = { ref: x, id: u };
@@ -29819,7 +29819,7 @@ function Tj(n, r) {
29819
29819
  var U;
29820
29820
  return (U = ie == null ? void 0 : ie.isFocusWithinPopoverGroup()) != null ? U : (ee == null ? void 0 : ee.activeElement) && ((E == null ? void 0 : E.contains(ee.activeElement)) || (k == null ? void 0 : k.contains(ee.activeElement)));
29821
29821
  });
29822
- mt(() => le == null ? void 0 : le(fe), [le, fe]);
29822
+ pt(() => le == null ? void 0 : le(fe), [le, fe]);
29823
29823
  let [M, L] = Hz(), j = Gz({ mainTreeNodeRef: ie == null ? void 0 : ie.mainTreeNodeRef, portals: M, defaultContainers: [E, k] });
29824
29824
  Lz(ee == null ? void 0 : ee.defaultView, "focus", (U) => {
29825
29825
  var K, V, re, me;
@@ -29837,7 +29837,7 @@ function Tj(n, r) {
29837
29837
  let Sj = "button";
29838
29838
  function xj(n, r) {
29839
29839
  let o = Ko(), { id: u = `headlessui-popover-button-${o}`, ...d } = n, [p, v] = Xw("Popover.Button"), { isPortalled: g } = jx("Popover.Button"), b = Vt(null), x = `headlessui-focus-sentinel-${Ko()}`, E = FO(), R = E == null ? void 0 : E.closeOthers, k = gj() !== null;
29840
- mt(() => {
29840
+ pt(() => {
29841
29841
  if (!k)
29842
29842
  return v({ type: 3, buttonId: u }), () => {
29843
29843
  v({ type: 3, buttonId: null });
@@ -29921,10 +29921,10 @@ function Oj(n, r) {
29921
29921
  break;
29922
29922
  }
29923
29923
  });
29924
- mt(() => {
29924
+ pt(() => {
29925
29925
  var D;
29926
29926
  n.static || v.popoverState === 1 && ((D = n.unmount) == null || D) && g({ type: 4, panel: null });
29927
- }, [v.popoverState, n.unmount, n.static, g]), mt(() => {
29927
+ }, [v.popoverState, n.unmount, n.static, g]), pt(() => {
29928
29928
  if (v.__demoMode || !d || v.popoverState !== 0 || !k.current)
29929
29929
  return;
29930
29930
  let D = I == null ? void 0 : I.activeElement;
@@ -30056,7 +30056,7 @@ function Gj(n, r) {
30056
30056
  }), z = Ct((le) => {
30057
30057
  le.key === rr.Space ? (le.preventDefault(), $()) : le.key === rr.Enter && Nz(le.currentTarget);
30058
30058
  }), ae = Ct((le) => le.preventDefault()), ce = qe(() => ({ checked: I }), [I]), fe = { id: u, ref: N, role: "switch", type: Yw(n, k), tabIndex: 0, "aria-checked": I, "aria-labelledby": R == null ? void 0 : R.labelledby, "aria-describedby": R == null ? void 0 : R.describedby, onClick: ee, onKeyUp: z, onKeyPress: ae }, ie = Ax();
30059
- return mt(() => {
30059
+ return pt(() => {
30060
30060
  var le;
30061
30061
  let D = (le = k.current) == null ? void 0 : le.closest("form");
30062
30062
  D && p !== void 0 && ie.addEventListener(D, "reset", () => {
@@ -30390,7 +30390,7 @@ function M2(n) {
30390
30390
  }
30391
30391
  function OB(n) {
30392
30392
  let r = Vt(M2(n));
30393
- return mt(() => {
30393
+ return pt(() => {
30394
30394
  r.current = M2(n);
30395
30395
  }, [n]), r;
30396
30396
  }
@@ -30398,7 +30398,7 @@ let kB = "div", HO = wu.RenderStrategy;
30398
30398
  function _B(n, r) {
30399
30399
  var o, u;
30400
30400
  let { beforeEnter: d, afterEnter: p, beforeLeave: v, afterLeave: g, enter: b, enterFrom: x, enterTo: E, entered: R, leave: k, leaveFrom: N, leaveTo: I, ...q } = n, $ = Vt(null), ee = Hr($, r), z = (o = q.unmount) == null || o ? $d.Unmount : $d.Hidden, { show: ae, appear: ce, initial: fe } = CB(), [ie, le] = qn(ae ? "visible" : "hidden"), D = DB(), { register: M, unregister: L } = D;
30401
- mt(() => M($), [M, $]), mt(() => {
30401
+ pt(() => M($), [M, $]), pt(() => {
30402
30402
  if (z === $d.Hidden && $.current) {
30403
30403
  if (ae && ie !== "visible") {
30404
30404
  le("visible");
@@ -30408,7 +30408,7 @@ function _B(n, r) {
30408
30408
  }
30409
30409
  }, [ie, $, M, L, ae, z]);
30410
30410
  let j = To({ base: zd(q.className), enter: zd(b), enterFrom: zd(x), enterTo: zd(E), entered: zd(R), leave: zd(k), leaveFrom: zd(N), leaveTo: zd(I) }), G = OB({ beforeEnter: d, afterEnter: p, beforeLeave: v, afterLeave: g }), H = Ww();
30411
- mt(() => {
30411
+ pt(() => {
30412
30412
  if (H && ie === "visible" && $.current === null)
30413
30413
  throw new Error("Did you forget to passthrough the `ref` to the actual DOM node?");
30414
30414
  }, [$, ie, H]);
@@ -30446,7 +30446,7 @@ function MB(n, r) {
30446
30446
  k !== !1 && I.current[I.current.length - 1] !== o && (I.current.push(o), N(!1));
30447
30447
  }, [I, o]);
30448
30448
  let q = qe(() => ({ show: o, appear: u, initial: k }), [o, u, k]);
30449
- mt(() => {
30449
+ pt(() => {
30450
30450
  if (o)
30451
30451
  E("visible");
30452
30452
  else if (!eb(R))
@@ -32995,7 +32995,7 @@ const X2 = (n) => n ? `https://raw.githubusercontent.com/dhedge/crypto-icons/mai
32995
32995
  }
32996
32996
  }, AH = (n = []) => {
32997
32997
  const [r, o] = qn([]), [u, d] = qn([]);
32998
- return mt(() => {
32998
+ return pt(() => {
32999
32999
  if (n.every((v) => u.includes(v)))
33000
33000
  return;
33001
33001
  (async () => {
@@ -33447,7 +33447,7 @@ const HH = Me.forwardRef($H), VH = HH, yk = ({
33447
33447
  vertical: d = !1
33448
33448
  }) => {
33449
33449
  const [p, v] = qn(n);
33450
- mt(() => {
33450
+ pt(() => {
33451
33451
  v(n);
33452
33452
  }, [n]);
33453
33453
  const g = (b) => {
@@ -33946,7 +33946,7 @@ const m8 = Me.forwardRef(v8), xk = m8, h8 = ({
33946
33946
  chainId: E,
33947
33947
  pollingInterval: 15e3
33948
33948
  });
33949
- mt(() => {
33949
+ pt(() => {
33950
33950
  if (N) {
33951
33951
  x && o({ approvingStatus: "success" });
33952
33952
  const q = N.transactionHash;
@@ -33967,7 +33967,7 @@ const m8 = Me.forwardRef(v8), xk = m8, h8 = ({
33967
33967
  o,
33968
33968
  k,
33969
33969
  R
33970
- ]), mt(() => {
33970
+ ]), pt(() => {
33971
33971
  I && (x && o({ approvingStatus: void 0 }), u({
33972
33972
  isOpen: !1,
33973
33973
  status: "None",
@@ -33998,9 +33998,9 @@ const m8 = Me.forwardRef(v8), xk = m8, h8 = ({
33998
33998
  address: n,
33999
33999
  chainId: r
34000
34000
  }), p = $y(), [v, g] = Sx(), b = oO()[1];
34001
- mt(() => {
34001
+ pt(() => {
34002
34002
  p && d && g({ address: n, method: "depositWithCustomCooldown" });
34003
- }, [p, d, n, g]), mt(() => {
34003
+ }, [p, d, n, g]), pt(() => {
34004
34004
  T2(u) && T2(o) && d && v === "depositWithCustomCooldown" && b({
34005
34005
  depositWithCustomCooldown: cO(
34006
34006
  Number(u),
@@ -34230,7 +34230,7 @@ const E8 = () => {
34230
34230
  hash: r,
34231
34231
  chainId: n
34232
34232
  });
34233
- return mt(() => {
34233
+ return pt(() => {
34234
34234
  if (p) {
34235
34235
  const g = p == null ? void 0 : p.transactionHash;
34236
34236
  if (g) {
@@ -34238,7 +34238,7 @@ const E8 = () => {
34238
34238
  u({ isOpen: !0, status: "Success", link: b });
34239
34239
  }
34240
34240
  }
34241
- }, [p, n, u]), mt(() => {
34241
+ }, [p, n, u]), pt(() => {
34242
34242
  v && (u({
34243
34243
  isOpen: !1,
34244
34244
  status: "None",
@@ -34253,7 +34253,7 @@ const E8 = () => {
34253
34253
  const { account: r } = ii(), { address: o, chainId: u } = At(), d = Ny(o), p = ix({ chainId: u }), [v, g] = qn(null), { data: b } = ox({
34254
34254
  query: { enabled: !n, refetchInterval: gx }
34255
34255
  }), x = Dc()[1], { sendTransaction: E } = D8({ chainId: u });
34256
- mt(() => {
34256
+ pt(() => {
34257
34257
  n || !d || (async () => {
34258
34258
  try {
34259
34259
  if (p) {
@@ -34511,7 +34511,7 @@ const E8 = () => {
34511
34511
  rawTokenAmount: p,
34512
34512
  spenderAddress: v
34513
34513
  });
34514
- return mt(() => {
34514
+ return pt(() => {
34515
34515
  u(g ? "success" : void 0);
34516
34516
  }, [u, g]), { approve: b, canSpend: g };
34517
34517
  };
@@ -34526,7 +34526,7 @@ function Z2(n, r, o) {
34526
34526
  },
34527
34527
  [r, p]
34528
34528
  );
34529
- return mt(() => {
34529
+ return pt(() => {
34530
34530
  try {
34531
34531
  const g = p == null ? void 0 : p.getItem(r);
34532
34532
  g && d(JSON.parse(g));
@@ -34537,7 +34537,7 @@ function Z2(n, r, o) {
34537
34537
  }
34538
34538
  const Nk = (n, r) => {
34539
34539
  const [o, u] = qn(n);
34540
- return mt(() => {
34540
+ return pt(() => {
34541
34541
  const d = setTimeout(() => {
34542
34542
  u(n);
34543
34543
  }, r);
@@ -34551,7 +34551,7 @@ const Nk = (n, r) => {
34551
34551
  sendAssetAddress: o.address,
34552
34552
  receiveAssetValue: n
34553
34553
  }), p = Nk(d, 100);
34554
- mt(() => {
34554
+ pt(() => {
34555
34555
  r && u({ minSlippage: Math.abs(p) });
34556
34556
  }, [u, r, p]);
34557
34557
  }, P8 = () => {
@@ -34623,7 +34623,7 @@ const Nk = (n, r) => {
34623
34623
  refetchInterval: wx
34624
34624
  }
34625
34625
  }), z = (ae = ee == null ? void 0 : ee[0]) == null ? void 0 : ae.result;
34626
- mm(ee), mt(() => {
34626
+ mm(ee), pt(() => {
34627
34627
  if (!g || !b)
34628
34628
  return;
34629
34629
  const ce = I || !z && q;
@@ -34643,7 +34643,7 @@ const Nk = (n, r) => {
34643
34643
  N,
34644
34644
  I,
34645
34645
  p
34646
- ]), mt(() => {
34646
+ ]), pt(() => {
34647
34647
  !g || b || !q || p({
34648
34648
  value: new it($).shiftedBy(-u.decimals).multipliedBy(E).dividedBy(x).toFixed(d.decimals)
34649
34649
  });
@@ -34657,7 +34657,7 @@ const Nk = (n, r) => {
34657
34657
  u.decimals,
34658
34658
  d.decimals,
34659
34659
  q
34660
- ]), mt(() => {
34660
+ ]), pt(() => {
34661
34661
  u.value || (p({ value: "0" }), v({ minSlippage: 0 }));
34662
34662
  }, [p, v, u.value]);
34663
34663
  }, I8 = [
@@ -35432,7 +35432,7 @@ const B8 = /* @__PURE__ */ Sm(j8), cE = () => {
35432
35432
  ]);
35433
35433
  }, $8 = () => {
35434
35434
  const n = At(), [r] = cE(), o = Wn()[1], [u] = Es();
35435
- mt(() => {
35435
+ pt(() => {
35436
35436
  u === "deposit" && (r != null && r.symbol) && o({
35437
35437
  address: r == null ? void 0 : r.address,
35438
35438
  symbol: r.symbol,
@@ -36513,7 +36513,7 @@ const X7 = /* @__PURE__ */ Sm(Q7), K7 = () => {
36513
36513
  const { address: u, chainId: d } = At(), { cooldownActive: p } = Kd({ address: u, chainId: d }), [v] = Wn(), [g] = Sa(), [{ slippage: b }, x] = Fa(), [{ approvingStatus: E }] = xx(), R = E === "success", k = tE(), { data: N } = ox({
36514
36514
  query: { refetchInterval: wx }
36515
36515
  }), I = Vt(K7);
36516
- mt(() => {
36516
+ pt(() => {
36517
36517
  I.current = X7(
36518
36518
  async () => {
36519
36519
  if (r.isZero() || !R || p)
@@ -36535,7 +36535,7 @@ const X7 = /* @__PURE__ */ Sm(Q7), K7 = () => {
36535
36535
  p,
36536
36536
  // added receiveTokenSymbol to update debouncedEstimateSell func on token change
36537
36537
  g.symbol
36538
- ]), mt(() => {
36538
+ ]), pt(() => {
36539
36539
  if (o) {
36540
36540
  x({ minSlippage: 0 });
36541
36541
  return;
@@ -36640,7 +36640,7 @@ const X7 = /* @__PURE__ */ Sm(Q7), K7 = () => {
36640
36640
  chainId: d,
36641
36641
  skip: r || p === "0"
36642
36642
  });
36643
- mt(() => {
36643
+ pt(() => {
36644
36644
  u(g ? "success" : void 0);
36645
36645
  }, [u, g]);
36646
36646
  const b = _k({
@@ -36651,7 +36651,7 @@ const X7 = /* @__PURE__ */ Sm(Q7), K7 = () => {
36651
36651
  return { canSpend: g, approve: b };
36652
36652
  }, aV = () => {
36653
36653
  const [n, r] = Fa(), o = Bw(), u = $y();
36654
- mt(() => {
36654
+ pt(() => {
36655
36655
  u && r({ isMultiAssetWithdrawalEnabled: !1 });
36656
36656
  }, [u, r]);
36657
36657
  const d = Zt(
@@ -36684,7 +36684,7 @@ const X7 = /* @__PURE__ */ Sm(Q7), K7 = () => {
36684
36684
  address: o.address,
36685
36685
  chainId: n.chainId
36686
36686
  }) ?? "";
36687
- mt(() => {
36687
+ pt(() => {
36688
36688
  if (!r.value || r.value === "0") {
36689
36689
  u({ value: "0" });
36690
36690
  return;
@@ -37031,8 +37031,10 @@ const X7 = /* @__PURE__ */ Sm(Q7), K7 = () => {
37031
37031
  const v = x9[p];
37032
37032
  v && u(v);
37033
37033
  };
37034
- return mt(() => {
37035
- u(o ? n : "deposit");
37034
+ return pt(() => {
37035
+ o || u("deposit");
37036
+ }, [r.address, o]), pt(() => {
37037
+ o && u(n);
37036
37038
  }, [r.address, o, n]), {
37037
37039
  type: n,
37038
37040
  onTabChange: d
@@ -37069,9 +37071,9 @@ const X7 = /* @__PURE__ */ Sm(Q7), K7 = () => {
37069
37071
  aA,
37070
37072
  ""
37071
37073
  ), [g, b] = Z2("localStorage", D9, ""), x = o[R9];
37072
- mt(() => {
37074
+ pt(() => {
37073
37075
  !x || typeof x != "string" || localStorage.getItem(aA) || (u == null || u(), v(x), b(n));
37074
- }, [n, x, b, v, u]), mt(() => {
37076
+ }, [n, x, b, v, u]), pt(() => {
37075
37077
  if (!r || !p || g !== n)
37076
37078
  return;
37077
37079
  (async () => {