@dhedge/trading-widget 2.0.9 → 2.0.11

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 we from "react";
2
- import Le, { useRef as Ot, useCallback as _t, useEffect as vt, useState as Yt, useMemo as He, useLayoutEffect as cE, createContext as wn, useContext as Jt, forwardRef as p3, Fragment as $l, isValidElement as PO, cloneElement as m3, createElement as h3, useId as tl, useReducer as zh, useSyncExternalStore as v3, createRef as hx, Children as y3 } from "react";
2
+ import Le, { useRef as Ot, useCallback as _t, useEffect as ht, useState as Yt, useMemo as He, useLayoutEffect as cE, createContext as wn, useContext as Jt, forwardRef as p3, Fragment as $l, isValidElement as PO, cloneElement as m3, createElement as h3, useId as tl, useReducer as zh, useSyncExternalStore as v3, createRef as hx, Children as y3 } from "react";
3
3
  import { erc20Abi as kp, stringToHex as g3, encodeFunctionData as Rb, formatUnits as eg, formatEther as w3, getAddress as Iw, UserRejectedRequestError as Ec, ResourceUnavailableRpcError as vx, withRetry as b3, withTimeout as T3, SwitchChainError as aA, numberToHex as iA, isHex as yx, hexToString as S3, trim as x3, decodeErrorResult as oA, getAbiItem as lA } from "viem";
4
4
  import { useAccount as LO, useConfig as E3, useSwitchChain as C3, useReadContract as ef, useBalance as R3, useWalletClient as D3, usePublicClient as dE, useWriteContract as A3, useEstimateFeesPerGas as O3, useBlockNumber as FO, useReadContracts as nl, useConnect as IO, useWaitForTransactionReceipt as UO, useSendTransaction as k3 } from "wagmi";
5
5
  import { useQuery as fE, useQueryClient as $O } from "@tanstack/react-query";
@@ -73,10 +73,10 @@ function M3() {
73
73
  Bt.unshift("Warning: " + Ee), Function.prototype.apply.call(console[ee], console, Bt);
74
74
  }
75
75
  }
76
- var ne = !1, ae = !1, se = !1, ue = !1, O = !1, M;
76
+ var ne = !1, re = !1, se = !1, ue = !1, O = !1, M;
77
77
  M = Symbol.for("react.module.reference");
78
78
  function F(ee) {
79
- return !!(typeof ee == "string" || typeof ee == "function" || ee === s || ee === f || O || ee === c || ee === T || ee === S || ue || ee === C || ne || ae || se || typeof ee == "object" && ee !== null && (ee.$$typeof === A || ee.$$typeof === R || ee.$$typeof === p || ee.$$typeof === y || ee.$$typeof === g || // This needs to include all possible module reference object
79
+ return !!(typeof ee == "string" || typeof ee == "function" || ee === s || ee === f || O || ee === c || ee === T || ee === S || ue || ee === C || ne || re || se || typeof ee == "object" && ee !== null && (ee.$$typeof === A || ee.$$typeof === R || ee.$$typeof === p || ee.$$typeof === y || ee.$$typeof === g || // This needs to include all possible module reference object
80
80
  // types supported by any Flight configuration anywhere since
81
81
  // we don't know which Flight build this will end up being used
82
82
  // with.
@@ -921,13 +921,13 @@ function Q3() {
921
921
  function ne(L) {
922
922
  if ($ = !1, Z(L), !P)
923
923
  if (i(g) !== null)
924
- P = !0, G(ae);
924
+ P = !0, G(re);
925
925
  else {
926
926
  var H = i(T);
927
927
  H !== null && J(ne, H.startTime - L);
928
928
  }
929
929
  }
930
- function ae(L, H) {
930
+ function re(L, H) {
931
931
  P = !1, $ && ($ = !1, Y(O), O = -1), C = !0;
932
932
  var le = A;
933
933
  try {
@@ -994,7 +994,7 @@ function Q3() {
994
994
  t.unstable_IdlePriority = 5, t.unstable_ImmediatePriority = 1, t.unstable_LowPriority = 4, t.unstable_NormalPriority = 3, t.unstable_Profiling = null, t.unstable_UserBlockingPriority = 2, t.unstable_cancelCallback = function(L) {
995
995
  L.callback = null;
996
996
  }, t.unstable_continueExecution = function() {
997
- P || C || (P = !0, G(ae));
997
+ P || C || (P = !0, G(re));
998
998
  }, t.unstable_forceFrameRate = function(L) {
999
999
  0 > L || 125 < L ? console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported") : M = 0 < L ? Math.floor(1e3 / L) : 5;
1000
1000
  }, t.unstable_getCurrentPriorityLevel = function() {
@@ -1056,7 +1056,7 @@ function Q3() {
1056
1056
  default:
1057
1057
  Ce = 5e3;
1058
1058
  }
1059
- return Ce = le + Ce, L = { id: S++, callback: H, priorityLevel: L, startTime: le, expirationTime: Ce, sortIndex: -1 }, le > ye ? (L.sortIndex = le, r(T, L), i(g) === null && L === i(T) && ($ ? (Y(O), O = -1) : $ = !0, J(ne, le - ye))) : (L.sortIndex = Ce, r(g, L), P || C || (P = !0, G(ae))), L;
1059
+ return Ce = le + Ce, L = { id: S++, callback: H, priorityLevel: L, startTime: le, expirationTime: Ce, sortIndex: -1 }, le > ye ? (L.sortIndex = le, r(T, L), i(g) === null && L === i(T) && ($ ? (Y(O), O = -1) : $ = !0, J(ne, le - ye))) : (L.sortIndex = Ce, r(g, L), P || C || (P = !0, G(re))), L;
1060
1060
  }, t.unstable_shouldYield = W, t.unstable_wrapCallback = function(L) {
1061
1061
  var H = A;
1062
1062
  return function() {
@@ -1139,7 +1139,7 @@ function X3() {
1139
1139
  return U.now() - Z;
1140
1140
  };
1141
1141
  }
1142
- var ne = 1073741823, ae = -1, se = 250, ue = 5e3, O = 1e4, M = ne, F = [], W = [], K = 1, V = null, Q = A, z = !1, G = !1, J = !1, L = typeof setTimeout == "function" ? setTimeout : null, H = typeof clearTimeout == "function" ? clearTimeout : null, le = typeof setImmediate < "u" ? setImmediate : null;
1142
+ var ne = 1073741823, re = -1, se = 250, ue = 5e3, O = 1e4, M = ne, F = [], W = [], K = 1, V = null, Q = A, z = !1, G = !1, J = !1, L = typeof setTimeout == "function" ? setTimeout : null, H = typeof clearTimeout == "function" ? clearTimeout : null, le = typeof setImmediate < "u" ? setImmediate : null;
1143
1143
  typeof navigator < "u" && navigator.scheduling !== void 0 && navigator.scheduling.isInputPending !== void 0 && navigator.scheduling.isInputPending.bind(navigator.scheduling);
1144
1144
  function ye(Ne) {
1145
1145
  for (var Ze = f(W); Ze !== null; ) {
@@ -1250,7 +1250,7 @@ function X3() {
1250
1250
  var _n;
1251
1251
  switch (Ne) {
1252
1252
  case S:
1253
- _n = ae;
1253
+ _n = re;
1254
1254
  break;
1255
1255
  case R:
1256
1256
  _n = se;
@@ -1462,7 +1462,7 @@ function K3() {
1462
1462
  var w = B.hasOwnProperty(o) ? B[o] : null;
1463
1463
  (w !== null ? w.type !== 0 : h || !(2 < o.length) || o[0] !== "o" && o[0] !== "O" || o[1] !== "n" && o[1] !== "N") && (P(o, d, w, h) && (d = null), h || w === null ? A(o) && (d === null ? a.removeAttribute(o) : a.setAttribute(o, "" + d)) : w.mustUseProperty ? a[w.propertyName] = d === null ? w.type === 3 ? !1 : "" : d : (o = w.attributeName, h = w.attributeNamespace, d === null ? a.removeAttribute(o) : (w = w.type, d = w === 3 || w === 4 && d === !0 ? "" : "" + d, h ? a.setAttributeNS(h, o, d) : a.setAttribute(o, d))));
1464
1464
  }
1465
- var ne = t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED, ae = Symbol.for("react.element"), se = Symbol.for("react.portal"), ue = Symbol.for("react.fragment"), O = Symbol.for("react.strict_mode"), M = Symbol.for("react.profiler"), F = Symbol.for("react.provider"), W = Symbol.for("react.context"), K = Symbol.for("react.forward_ref"), V = Symbol.for("react.suspense"), Q = Symbol.for("react.suspense_list"), z = Symbol.for("react.memo"), G = Symbol.for("react.lazy"), J = Symbol.for("react.offscreen"), L = Symbol.iterator;
1465
+ var ne = t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED, re = Symbol.for("react.element"), se = Symbol.for("react.portal"), ue = Symbol.for("react.fragment"), O = Symbol.for("react.strict_mode"), M = Symbol.for("react.profiler"), F = Symbol.for("react.provider"), W = Symbol.for("react.context"), K = Symbol.for("react.forward_ref"), V = Symbol.for("react.suspense"), Q = Symbol.for("react.suspense_list"), z = Symbol.for("react.memo"), G = Symbol.for("react.lazy"), J = Symbol.for("react.offscreen"), L = Symbol.iterator;
1466
1466
  function H(a) {
1467
1467
  return a === null || typeof a != "object" ? null : (a = L && a[L] || a["@@iterator"], typeof a == "function" ? a : null);
1468
1468
  }
@@ -3798,7 +3798,7 @@ function K3() {
3798
3798
  return ie = rp("" + ie, ce.mode, pe), ie.return = ce, ie;
3799
3799
  if (typeof ie == "object" && ie !== null) {
3800
3800
  switch (ie.$$typeof) {
3801
- case ae:
3801
+ case re:
3802
3802
  return pe = jm(ie.type, ie.key, ie.props, null, ce.mode, pe), pe.ref = id(ce, null, ie), pe.return = ce, pe;
3803
3803
  case se:
3804
3804
  return ie = dc(ie, ce.mode, pe), ie.return = ce, ie;
@@ -3818,7 +3818,7 @@ function K3() {
3818
3818
  return et !== null ? null : q(ce, ie, "" + pe, _e);
3819
3819
  if (typeof pe == "object" && pe !== null) {
3820
3820
  switch (pe.$$typeof) {
3821
- case ae:
3821
+ case re:
3822
3822
  return pe.key === et ? te(ce, ie, pe, _e) : null;
3823
3823
  case se:
3824
3824
  return pe.key === et ? ve(ce, ie, pe, _e) : null;
@@ -3841,7 +3841,7 @@ function K3() {
3841
3841
  return ce = ce.get(pe) || null, q(ie, ce, "" + _e, et);
3842
3842
  if (typeof _e == "object" && _e !== null) {
3843
3843
  switch (_e.$$typeof) {
3844
- case ae:
3844
+ case re:
3845
3845
  return ce = ce.get(_e.key === null ? pe : _e.key) || null, te(ie, ce, _e, et);
3846
3846
  case se:
3847
3847
  return ce = ce.get(_e.key === null ? pe : _e.key) || null, ve(ie, ce, _e, et);
@@ -3912,7 +3912,7 @@ function K3() {
3912
3912
  function wr(ce, ie, pe, _e) {
3913
3913
  if (typeof pe == "object" && pe !== null && pe.type === ue && pe.key === null && (pe = pe.props.children), typeof pe == "object" && pe !== null) {
3914
3914
  switch (pe.$$typeof) {
3915
- case ae:
3915
+ case re:
3916
3916
  e: {
3917
3917
  for (var et = pe.key, Xe = ie; Xe !== null; ) {
3918
3918
  if (Xe.key === et) {
@@ -7027,7 +7027,7 @@ function Z3() {
7027
7027
  v.unshift("Warning: " + n), Function.prototype.apply.call(console[e], console, v);
7028
7028
  }
7029
7029
  }
7030
- var g = 0, T = 1, S = 2, R = 3, A = 4, C = 5, P = 6, $ = 7, B = 8, Y = 9, U = 10, Z = 11, ne = 12, ae = 13, se = 14, ue = 15, O = 16, M = 17, F = 18, W = 19, K = 21, V = 22, Q = 23, z = 24, G = 25, J = !0, L = !1, H = !1, le = !1, ye = !1, Ce = !0, Ue = !1, Pe = !1, Ye = !0, Ge = !0, Ft = !0, rt = /* @__PURE__ */ new Set(), Sn = {}, dr = {};
7030
+ var g = 0, T = 1, S = 2, R = 3, A = 4, C = 5, P = 6, $ = 7, B = 8, Y = 9, U = 10, Z = 11, ne = 12, re = 13, se = 14, ue = 15, O = 16, M = 17, F = 18, W = 19, K = 21, V = 22, Q = 23, z = 24, G = 25, J = !0, L = !1, H = !1, le = !1, ye = !1, Ce = !0, Ue = !1, Pe = !1, Ye = !0, Ge = !0, Ft = !0, rt = /* @__PURE__ */ new Set(), Sn = {}, dr = {};
7031
7031
  function Nt(e, n) {
7032
7032
  Fn(e, n), Fn(e + "Capture", n);
7033
7033
  }
@@ -7561,8 +7561,8 @@ function Z3() {
7561
7561
  if (l === null)
7562
7562
  e.removeAttribute(I);
7563
7563
  else {
7564
- var oe = m.type, re;
7565
- oe === xn || oe === mr && l === !0 ? re = "" : (Nr(l, I), re = "" + l, m.sanitizeURL && xi(re.toString())), j ? e.setAttributeNS(j, I, re) : e.setAttribute(I, re);
7564
+ var oe = m.type, ae;
7565
+ oe === xn || oe === mr && l === !0 ? ae = "" : (Nr(l, I), ae = "" + l, m.sanitizeURL && xi(ae.toString())), j ? e.setAttributeNS(j, I, ae) : e.setAttribute(I, ae);
7566
7566
  }
7567
7567
  }
7568
7568
  }
@@ -7722,7 +7722,7 @@ function Z3() {
7722
7722
  } finally {
7723
7723
  Ao = !1, Do.current = v, Gl(), Error.prepareStackTrace = m;
7724
7724
  }
7725
- var re = e ? e.displayName || e.name : "", me = re ? Ca(re) : "";
7725
+ var ae = e ? e.displayName || e.name : "", me = ae ? Ca(ae) : "";
7726
7726
  return typeof e == "function" && ol.set(e, me), me;
7727
7727
  }
7728
7728
  function ll(e, n, l) {
@@ -7770,7 +7770,7 @@ function Z3() {
7770
7770
  return Ca(e.type);
7771
7771
  case O:
7772
7772
  return Ca("Lazy");
7773
- case ae:
7773
+ case re:
7774
7774
  return Ca("Suspense");
7775
7775
  case W:
7776
7776
  return Ca("SuspenseList");
@@ -7896,7 +7896,7 @@ Error generating stack: ` + u.message + `
7896
7896
  return "Profiler";
7897
7897
  case K:
7898
7898
  return "Scope";
7899
- case ae:
7899
+ case re:
7900
7900
  return "Suspense";
7901
7901
  case W:
7902
7902
  return "SuspenseList";
@@ -8162,12 +8162,12 @@ Check the render method of \`` + e + "`." : "";
8162
8162
  m[D].selected !== I && (m[D].selected = I), I && u && (m[D].defaultSelected = !0);
8163
8163
  }
8164
8164
  } else {
8165
- for (var j = hr(ii(l)), oe = null, re = 0; re < m.length; re++) {
8166
- if (m[re].value === j) {
8167
- m[re].selected = !0, u && (m[re].defaultSelected = !0);
8165
+ for (var j = hr(ii(l)), oe = null, ae = 0; ae < m.length; ae++) {
8166
+ if (m[ae].value === j) {
8167
+ m[ae].selected = !0, u && (m[ae].defaultSelected = !0);
8168
8168
  return;
8169
8169
  }
8170
- oe === null && !m[re].disabled && (oe = m[re]);
8170
+ oe === null && !m[ae].disabled && (oe = m[ae]);
8171
8171
  }
8172
8172
  oe !== null && (oe.selected = !0);
8173
8173
  }
@@ -9307,13 +9307,13 @@ Check the render method of \`` + e + "`." : "";
9307
9307
  Zc = function(n, l, u, m, v, b, E, D, I) {
9308
9308
  if (typeof document > "u" || document === null)
9309
9309
  throw new Error("The `document` global was defined when React was initialized, but is not defined anymore. This can happen in a test environment if a component schedules an update from an asynchronous callback, but the test has already finished running. To solve this, you can either unmount the component at the end of your test (and ensure that any asynchronous operations get canceled in `componentWillUnmount`), or you can change the test itself to be asynchronous.");
9310
- var j = document.createEvent("Event"), oe = !1, re = !0, me = window.event, he = Object.getOwnPropertyDescriptor(window, "event");
9310
+ var j = document.createEvent("Event"), oe = !1, ae = !0, me = window.event, he = Object.getOwnPropertyDescriptor(window, "event");
9311
9311
  function be() {
9312
9312
  Jc.removeEventListener(Te, ut, !1), typeof window.event < "u" && window.hasOwnProperty("event") && (window.event = me);
9313
9313
  }
9314
9314
  var Ve = Array.prototype.slice.call(arguments, 3);
9315
9315
  function ut() {
9316
- oe = !0, be(), l.apply(u, Ve), re = !1;
9316
+ oe = !0, be(), l.apply(u, Ve), ae = !1;
9317
9317
  }
9318
9318
  var nt, Zt = !1, Gt = !1;
9319
9319
  function de(fe) {
@@ -9324,7 +9324,7 @@ Check the render method of \`` + e + "`." : "";
9324
9324
  }
9325
9325
  }
9326
9326
  var Te = "react-" + (n || "invokeguardedcallback");
9327
- if (window.addEventListener("error", de), Jc.addEventListener(Te, ut, !1), j.initEvent(Te, !1, !1), Jc.dispatchEvent(j), he && Object.defineProperty(window, "event", he), oe && re && (Zt ? Gt && (nt = new Error("A cross-origin error was thrown. React doesn't have access to the actual error object in development. See https://reactjs.org/link/crossorigin-error for more information.")) : nt = new Error(`An error was thrown inside one of your components, but React doesn't know what it was. This is likely due to browser flakiness. React does its best to preserve the "Pause on exceptions" behavior of the DevTools, which requires some DEV-mode only tricks. It's possible that these don't work in your browser. Try triggering the error in production mode, or switching to a modern browser. If you suspect that this is actually an issue with React, please file an issue.`), this.onError(nt)), window.removeEventListener("error", de), !oe)
9327
+ if (window.addEventListener("error", de), Jc.addEventListener(Te, ut, !1), j.initEvent(Te, !1, !1), Jc.dispatchEvent(j), he && Object.defineProperty(window, "event", he), oe && ae && (Zt ? Gt && (nt = new Error("A cross-origin error was thrown. React doesn't have access to the actual error object in development. See https://reactjs.org/link/crossorigin-error for more information.")) : nt = new Error(`An error was thrown inside one of your components, but React doesn't know what it was. This is likely due to browser flakiness. React does its best to preserve the "Pause on exceptions" behavior of the DevTools, which requires some DEV-mode only tricks. It's possible that these don't work in your browser. Try triggering the error in production mode, or switching to a modern browser. If you suspect that this is actually an issue with React, please file an issue.`), this.onError(nt)), window.removeEventListener("error", de), !oe)
9328
9328
  return be(), If.apply(this, arguments);
9329
9329
  };
9330
9330
  }
@@ -9461,7 +9461,7 @@ Check the render method of \`` + e + "`." : "";
9461
9461
  return n.tag === R ? l : null;
9462
9462
  }
9463
9463
  function nv(e) {
9464
- if (e.tag === ae) {
9464
+ if (e.tag === re) {
9465
9465
  var n = e.memoizedState;
9466
9466
  if (n === null) {
9467
9467
  var l = e.alternate;
@@ -9998,9 +9998,9 @@ Check the render method of \`` + e + "`." : "";
9998
9998
  return n;
9999
9999
  }
10000
10000
  (u & Ii) !== Se && (u |= l & Wn);
10001
- var re = e.entangledLanes;
10002
- if (re !== Se)
10003
- for (var me = e.entanglements, he = u & re; he > 0; ) {
10001
+ var ae = e.entangledLanes;
10002
+ if (ae !== Se)
10003
+ for (var me = e.entanglements, he = u & ae; he > 0; ) {
10004
10004
  var be = ou(he), Ve = 1 << be;
10005
10005
  u |= me[be], he &= ~Ve;
10006
10006
  }
@@ -10401,7 +10401,7 @@ Check the render method of \`` + e + "`." : "";
10401
10401
  var l = Pi(n);
10402
10402
  if (l !== null) {
10403
10403
  var u = l.tag;
10404
- if (u === ae) {
10404
+ if (u === re) {
10405
10405
  var m = nv(l);
10406
10406
  if (m !== null) {
10407
10407
  e.blockedOn = m, Rv(e.priority, function() {
@@ -10556,7 +10556,7 @@ Check the render method of \`` + e + "`." : "";
10556
10556
  v = null;
10557
10557
  else {
10558
10558
  var E = b.tag;
10559
- if (E === ae) {
10559
+ if (E === re) {
10560
10560
  var D = nv(b);
10561
10561
  if (D !== null)
10562
10562
  return D;
@@ -11212,26 +11212,26 @@ Check the render method of \`` + e + "`." : "";
11212
11212
  var oe = m.ownerDocument;
11213
11213
  oe ? j = oe.defaultView || oe.parentWindow : j = window;
11214
11214
  }
11215
- var re, me;
11215
+ var ae, me;
11216
11216
  if (D) {
11217
11217
  var he = u.relatedTarget || u.toElement;
11218
- if (re = l, me = he ? lp(he) : null, me !== null) {
11218
+ if (ae = l, me = he ? lp(he) : null, me !== null) {
11219
11219
  var be = Pi(me);
11220
11220
  (me !== be || me.tag !== C && me.tag !== P) && (me = null);
11221
11221
  }
11222
11222
  } else
11223
- re = null, me = l;
11224
- if (re !== me) {
11223
+ ae = null, me = l;
11224
+ if (ae !== me) {
11225
11225
  var Ve = uu, ut = "onMouseLeave", nt = "onMouseEnter", Zt = "mouse";
11226
11226
  (n === "pointerout" || n === "pointerover") && (Ve = Lv, ut = "onPointerLeave", nt = "onPointerEnter", Zt = "pointer");
11227
- var Gt = re == null ? j : Jm(re), de = me == null ? j : Jm(me), Te = new Ve(ut, Zt + "leave", re, u, m);
11227
+ var Gt = ae == null ? j : Jm(ae), de = me == null ? j : Jm(me), Te = new Ve(ut, Zt + "leave", ae, u, m);
11228
11228
  Te.target = Gt, Te.relatedTarget = de;
11229
11229
  var fe = null, ke = lp(m);
11230
11230
  if (ke === l) {
11231
11231
  var We = new Ve(nt, Zt + "enter", me, u, m);
11232
11232
  We.target = de, We.relatedTarget = Gt, fe = We;
11233
11233
  }
11234
- GN(e, Te, fe, re, me);
11234
+ GN(e, Te, fe, ae, me);
11235
11235
  }
11236
11236
  }
11237
11237
  }
@@ -11295,16 +11295,16 @@ Check the render method of \`` + e + "`." : "";
11295
11295
  var v = 0, b = -1, E = -1, D = 0, I = 0, j = e, oe = null;
11296
11296
  e:
11297
11297
  for (; ; ) {
11298
- for (var re = null; j === n && (l === 0 || j.nodeType === to) && (b = v + l), j === u && (m === 0 || j.nodeType === to) && (E = v + m), j.nodeType === to && (v += j.nodeValue.length), (re = j.firstChild) !== null; )
11299
- oe = j, j = re;
11298
+ for (var ae = null; j === n && (l === 0 || j.nodeType === to) && (b = v + l), j === u && (m === 0 || j.nodeType === to) && (E = v + m), j.nodeType === to && (v += j.nodeValue.length), (ae = j.firstChild) !== null; )
11299
+ oe = j, j = ae;
11300
11300
  for (; ; ) {
11301
11301
  if (j === e)
11302
11302
  break e;
11303
- if (oe === n && ++D === l && (b = v), oe === u && ++I === m && (E = v), (re = j.nextSibling) !== null)
11303
+ if (oe === n && ++D === l && (b = v), oe === u && ++I === m && (E = v), (ae = j.nextSibling) !== null)
11304
11304
  break;
11305
11305
  j = oe, oe = j.parentNode;
11306
11306
  }
11307
- j = re;
11307
+ j = ae;
11308
11308
  }
11309
11309
  return b === -1 || E === -1 ? null : {
11310
11310
  start: b,
@@ -11580,12 +11580,12 @@ Check the render method of \`` + e + "`." : "";
11580
11580
  // nonDelegatedEvents list in DOMPluginEventSystem.
11581
11581
  // Then we can remove this special list.
11582
11582
  // This is a breaking change that can wait until React 18.
11583
- n === "scroll", re = VN(l, E, u.type, j, oe);
11584
- if (re.length > 0) {
11583
+ n === "scroll", ae = VN(l, E, u.type, j, oe);
11584
+ if (ae.length > 0) {
11585
11585
  var me = new D(E, I, null, u, m);
11586
11586
  e.push({
11587
11587
  event: me,
11588
- listeners: re
11588
+ listeners: ae
11589
11589
  });
11590
11590
  }
11591
11591
  }
@@ -11613,10 +11613,10 @@ Check the render method of \`` + e + "`." : "";
11613
11613
  }
11614
11614
  else
11615
11615
  for (var I = 0; I < n.length; I++) {
11616
- var j = n[I], oe = j.instance, re = j.currentTarget, me = j.listener;
11616
+ var j = n[I], oe = j.instance, ae = j.currentTarget, me = j.listener;
11617
11617
  if (oe !== u && e.isPropagationStopped())
11618
11618
  return;
11619
- LC(e, me, re), u = oe;
11619
+ LC(e, me, ae), u = oe;
11620
11620
  }
11621
11621
  }
11622
11622
  function FC(e, n) {
@@ -11676,8 +11676,8 @@ Check the render method of \`` + e + "`." : "";
11676
11676
  for (var j = E.return; j !== null; ) {
11677
11677
  var oe = j.tag;
11678
11678
  if (oe === R || oe === A) {
11679
- var re = j.stateNode.containerInfo;
11680
- if (UC(re, b))
11679
+ var ae = j.stateNode.containerInfo;
11680
+ if (UC(ae, b))
11681
11681
  return;
11682
11682
  }
11683
11683
  j = j.return;
@@ -11711,8 +11711,8 @@ Check the render method of \`` + e + "`." : "";
11711
11711
  }
11712
11712
  function VN(e, n, l, u, m, v) {
11713
11713
  for (var b = n !== null ? n + "Capture" : null, E = u ? b : n, D = [], I = e, j = null; I !== null; ) {
11714
- var oe = I, re = oe.stateNode, me = oe.tag;
11715
- if (me === C && re !== null && (j = re, E !== null)) {
11714
+ var oe = I, ae = oe.stateNode, me = oe.tag;
11715
+ if (me === C && ae !== null && (j = ae, E !== null)) {
11716
11716
  var he = wl(I, E);
11717
11717
  he != null && D.push(Vv(I, he, j));
11718
11718
  }
@@ -11765,13 +11765,13 @@ Check the render method of \`` + e + "`." : "";
11765
11765
  if (I !== null && I === u)
11766
11766
  break;
11767
11767
  if (oe === C && j !== null) {
11768
- var re = j;
11768
+ var ae = j;
11769
11769
  if (m) {
11770
11770
  var me = wl(E, v);
11771
- me != null && b.unshift(Vv(E, me, re));
11771
+ me != null && b.unshift(Vv(E, me, ae));
11772
11772
  } else if (!m) {
11773
11773
  var he = wl(E, v);
11774
- he != null && b.push(Vv(E, he, re));
11774
+ he != null && b.push(Vv(E, he, ae));
11775
11775
  }
11776
11776
  }
11777
11777
  E = E.return;
@@ -11981,21 +11981,21 @@ Check the render method of \`` + e + "`." : "";
11981
11981
  } else
11982
11982
  D === Wv || D === ip || D === d0 || D === Dd || D === BC || (Sn.hasOwnProperty(D) ? v || (v = []) : (v = v || []).push(D, null));
11983
11983
  for (D in E) {
11984
- var re = E[D], me = b != null ? b[D] : void 0;
11985
- if (!(!E.hasOwnProperty(D) || re === me || re == null && me == null))
11984
+ var ae = E[D], me = b != null ? b[D] : void 0;
11985
+ if (!(!E.hasOwnProperty(D) || ae === me || ae == null && me == null))
11986
11986
  if (D === op)
11987
- if (re && Object.freeze(re), me) {
11987
+ if (ae && Object.freeze(ae), me) {
11988
11988
  for (I in me)
11989
- me.hasOwnProperty(I) && (!re || !re.hasOwnProperty(I)) && (j || (j = {}), j[I] = "");
11990
- for (I in re)
11991
- re.hasOwnProperty(I) && me[I] !== re[I] && (j || (j = {}), j[I] = re[I]);
11989
+ me.hasOwnProperty(I) && (!ae || !ae.hasOwnProperty(I)) && (j || (j = {}), j[I] = "");
11990
+ for (I in ae)
11991
+ ae.hasOwnProperty(I) && me[I] !== ae[I] && (j || (j = {}), j[I] = ae[I]);
11992
11992
  } else
11993
- j || (v || (v = []), v.push(D, j)), j = re;
11993
+ j || (v || (v = []), v.push(D, j)), j = ae;
11994
11994
  else if (D === Wv) {
11995
- var he = re ? re[f0] : void 0, be = me ? me[f0] : void 0;
11995
+ var he = ae ? ae[f0] : void 0, be = me ? me[f0] : void 0;
11996
11996
  he != null && be !== he && (v = v || []).push(D, he);
11997
11997
  } else
11998
- D === ip ? (typeof re == "string" || typeof re == "number") && (v = v || []).push(D, "" + re) : D === d0 || D === Dd || (Sn.hasOwnProperty(D) ? (re != null && (typeof re != "function" && m0(D, re), D === "onScroll" && nr("scroll", e)), !v && me !== re && (v = [])) : (v = v || []).push(D, re));
11998
+ D === ip ? (typeof ae == "string" || typeof ae == "number") && (v = v || []).push(D, "" + ae) : D === d0 || D === Dd || (Sn.hasOwnProperty(D) ? (ae != null && (typeof ae != "function" && m0(D, ae), D === "onScroll" && nr("scroll", e)), !v && me !== ae && (v = [])) : (v = v || []).push(D, ae));
11999
11999
  }
12000
12000
  return j && (Bs(j, E[op]), (v = v || []).push(op, j)), v;
12001
12001
  }
@@ -12064,8 +12064,8 @@ Check the render method of \`` + e + "`." : "";
12064
12064
  {
12065
12065
  D = /* @__PURE__ */ new Set();
12066
12066
  for (var j = e.attributes, oe = 0; oe < j.length; oe++) {
12067
- var re = j[oe].name.toLowerCase();
12068
- switch (re) {
12067
+ var ae = j[oe].name.toLowerCase();
12068
+ switch (ae) {
12069
12069
  case "value":
12070
12070
  break;
12071
12071
  case "checked":
@@ -12344,8 +12344,8 @@ Check the render method of \`` + e + "`." : "";
12344
12344
  YC[I] = !0;
12345
12345
  var j = e, oe = "";
12346
12346
  if (e === "#text" ? /\S/.test(n) ? j = "Text nodes" : (j = "Whitespace text nodes", oe = " Make sure you don't have any extra whitespace between tags on each line of your source code.") : j = "<" + e + ">", v) {
12347
- var re = "";
12348
- D === "table" && e === "tr" && (re += " Add a <tbody>, <thead> or <tfoot> to your code to match the DOM tree generated by the browser."), p("validateDOMNesting(...): %s cannot appear as a child of <%s>.%s%s", j, D, oe, re);
12347
+ var ae = "";
12348
+ D === "table" && e === "tr" && (ae += " Add a <tbody>, <thead> or <tfoot> to your code to match the DOM tree generated by the browser."), p("validateDOMNesting(...): %s cannot appear as a child of <%s>.%s%s", j, D, oe, ae);
12349
12349
  } else
12350
12350
  p("validateDOMNesting(...): %s cannot appear as a descendant of <%s>.", j, D);
12351
12351
  }
@@ -12742,7 +12742,7 @@ Check the render method of \`` + e + "`." : "";
12742
12742
  }
12743
12743
  function Ad(e) {
12744
12744
  var n = e[Zm] || e[Zv];
12745
- return n && (n.tag === C || n.tag === P || n.tag === ae || n.tag === R) ? n : null;
12745
+ return n && (n.tag === C || n.tag === P || n.tag === re || n.tag === R) ? n : null;
12746
12746
  }
12747
12747
  function Jm(e) {
12748
12748
  if (e.tag === C || e.tag === P)
@@ -12967,7 +12967,7 @@ Check the render method of \`` + e + "`." : "";
12967
12967
  cp(), Al[Ol++] = hc, Al[Ol++] = vc, Al[Ol++] = sp, sp = e;
12968
12968
  var u = hc, m = vc, v = M0(u) - 1, b = u & ~(1 << v), E = l + 1, D = M0(n) + v;
12969
12969
  if (D > 30) {
12970
- var I = v - v % 5, j = (1 << I) - 1, oe = (b & j).toString(32), re = b >> I, me = v - I, he = M0(n) + me, be = E << me, Ve = be | re, ut = oe + m;
12970
+ var I = v - v % 5, j = (1 << I) - 1, oe = (b & j).toString(32), ae = b >> I, me = v - I, he = M0(n) + me, be = E << me, Ve = be | ae, ut = oe + m;
12971
12971
  hc = 1 << he | Ve, vc = ut;
12972
12972
  } else {
12973
12973
  var nt = E << v, Zt = nt | b, Gt = m;
@@ -13041,7 +13041,7 @@ Check the render method of \`` + e + "`." : "";
13041
13041
  );
13042
13042
  break;
13043
13043
  }
13044
- case ae: {
13044
+ case re: {
13045
13045
  var u = e.memoizedState;
13046
13046
  u.dehydrated !== null && oL(u.dehydrated, n);
13047
13047
  break;
@@ -13091,21 +13091,21 @@ Check the render method of \`` + e + "`." : "";
13091
13091
  break;
13092
13092
  }
13093
13093
  case P: {
13094
- var oe = n.pendingProps, re = (e.mode & $t) !== dt;
13094
+ var oe = n.pendingProps, ae = (e.mode & $t) !== dt;
13095
13095
  pL(
13096
13096
  v,
13097
13097
  b,
13098
13098
  E,
13099
13099
  oe,
13100
13100
  // TODO: Delete this argument when we remove the legacy root API.
13101
- re
13101
+ ae
13102
13102
  );
13103
13103
  break;
13104
13104
  }
13105
13105
  }
13106
13106
  break;
13107
13107
  }
13108
- case ae: {
13108
+ case re: {
13109
13109
  var me = e.memoizedState, he = me.dehydrated;
13110
13110
  if (he !== null)
13111
13111
  switch (n.tag) {
@@ -13140,7 +13140,7 @@ Check the render method of \`` + e + "`." : "";
13140
13140
  var m = e.pendingProps, v = HP(n, m);
13141
13141
  return v !== null ? (e.stateNode = v, qa = e, kl = null, !0) : !1;
13142
13142
  }
13143
- case ae: {
13143
+ case re: {
13144
13144
  var b = VP(n);
13145
13145
  if (b !== null) {
13146
13146
  var E = {
@@ -13234,7 +13234,7 @@ Check the render method of \`` + e + "`." : "";
13234
13234
  return JP(l);
13235
13235
  }
13236
13236
  function p2(e) {
13237
- for (var n = e.return; n !== null && n.tag !== C && n.tag !== R && n.tag !== ae; )
13237
+ for (var n = e.return; n !== null && n.tag !== C && n.tag !== R && n.tag !== re; )
13238
13238
  n = n.return;
13239
13239
  qa = n;
13240
13240
  }
@@ -13252,7 +13252,7 @@ Check the render method of \`` + e + "`." : "";
13252
13252
  for (; n; )
13253
13253
  c2(e, n), n = Kv(n);
13254
13254
  }
13255
- return p2(e), e.tag === ae ? kl = LL(e) : kl = qa ? Kv(e.stateNode) : null, !0;
13255
+ return p2(e), e.tag === re ? kl = LL(e) : kl = qa ? Kv(e.stateNode) : null, !0;
13256
13256
  }
13257
13257
  function FL() {
13258
13258
  return ys && kl !== null;
@@ -13305,28 +13305,28 @@ Check the render method of \`` + e + "`." : "";
13305
13305
  n.componentWillMount.__suppressDeprecationWarning !== !0 && ty.push(e), e.mode & er && typeof n.UNSAFE_componentWillMount == "function" && ny.push(e), typeof n.componentWillReceiveProps == "function" && n.componentWillReceiveProps.__suppressDeprecationWarning !== !0 && ry.push(e), e.mode & er && typeof n.UNSAFE_componentWillReceiveProps == "function" && ay.push(e), typeof n.componentWillUpdate == "function" && n.componentWillUpdate.__suppressDeprecationWarning !== !0 && iy.push(e), e.mode & er && typeof n.UNSAFE_componentWillUpdate == "function" && oy.push(e));
13306
13306
  }, gs.flushPendingUnsafeLifecycleWarnings = function() {
13307
13307
  var e = /* @__PURE__ */ new Set();
13308
- ty.length > 0 && (ty.forEach(function(re) {
13309
- e.add(yt(re) || "Component"), pp.add(re.type);
13308
+ ty.length > 0 && (ty.forEach(function(ae) {
13309
+ e.add(yt(ae) || "Component"), pp.add(ae.type);
13310
13310
  }), ty = []);
13311
13311
  var n = /* @__PURE__ */ new Set();
13312
- ny.length > 0 && (ny.forEach(function(re) {
13313
- n.add(yt(re) || "Component"), pp.add(re.type);
13312
+ ny.length > 0 && (ny.forEach(function(ae) {
13313
+ n.add(yt(ae) || "Component"), pp.add(ae.type);
13314
13314
  }), ny = []);
13315
13315
  var l = /* @__PURE__ */ new Set();
13316
- ry.length > 0 && (ry.forEach(function(re) {
13317
- l.add(yt(re) || "Component"), pp.add(re.type);
13316
+ ry.length > 0 && (ry.forEach(function(ae) {
13317
+ l.add(yt(ae) || "Component"), pp.add(ae.type);
13318
13318
  }), ry = []);
13319
13319
  var u = /* @__PURE__ */ new Set();
13320
- ay.length > 0 && (ay.forEach(function(re) {
13321
- u.add(yt(re) || "Component"), pp.add(re.type);
13320
+ ay.length > 0 && (ay.forEach(function(ae) {
13321
+ u.add(yt(ae) || "Component"), pp.add(ae.type);
13322
13322
  }), ay = []);
13323
13323
  var m = /* @__PURE__ */ new Set();
13324
- iy.length > 0 && (iy.forEach(function(re) {
13325
- m.add(yt(re) || "Component"), pp.add(re.type);
13324
+ iy.length > 0 && (iy.forEach(function(ae) {
13325
+ m.add(yt(ae) || "Component"), pp.add(ae.type);
13326
13326
  }), iy = []);
13327
13327
  var v = /* @__PURE__ */ new Set();
13328
- if (oy.length > 0 && (oy.forEach(function(re) {
13329
- v.add(yt(re) || "Component"), pp.add(re.type);
13328
+ if (oy.length > 0 && (oy.forEach(function(ae) {
13329
+ v.add(yt(ae) || "Component"), pp.add(ae.type);
13330
13330
  }), oy = []), n.size > 0) {
13331
13331
  var b = fp(n);
13332
13332
  p(`Using UNSAFE_componentWillMount in strict mode is not recommended and may indicate bugs in your code. See https://reactjs.org/link/unsafe-component-lifecycles for details.
@@ -13475,8 +13475,8 @@ Learn more about this warning here: https://reactjs.org/link/legacy-context`, m)
13475
13475
  }
13476
13476
  }
13477
13477
  u.lanes = kt(u.lanes, l);
13478
- var re = u.alternate;
13479
- re !== null && (re.lanes = kt(re.lanes, l)), cT(u.return, l, e), v.lanes = kt(v.lanes, l);
13478
+ var ae = u.alternate;
13479
+ ae !== null && (ae.lanes = kt(ae.lanes, l)), cT(u.return, l, e), v.lanes = kt(v.lanes, l);
13480
13480
  break;
13481
13481
  }
13482
13482
  b = b.next;
@@ -13744,8 +13744,8 @@ Learn more about this warning here: https://reactjs.org/link/legacy-context`, m)
13744
13744
  D.next = null, b === null ? v = I : b.next = I, b = D;
13745
13745
  var j = e.alternate;
13746
13746
  if (j !== null) {
13747
- var oe = j.updateQueue, re = oe.lastBaseUpdate;
13748
- re !== b && (re === null ? oe.firstBaseUpdate = I : re.next = I, oe.lastBaseUpdate = D);
13747
+ var oe = j.updateQueue, ae = oe.lastBaseUpdate;
13748
+ ae !== b && (ae === null ? oe.firstBaseUpdate = I : ae.next = I, oe.lastBaseUpdate = D);
13749
13749
  }
13750
13750
  }
13751
13751
  if (v !== null) {
@@ -13953,8 +13953,8 @@ Learn more about this warning here: https://reactjs.org/link/legacy-context`, m)
13953
13953
  k2(e, j);
13954
13954
  {
13955
13955
  if (typeof n.getDerivedStateFromProps == "function" && oe === null) {
13956
- var re = dn(n) || "Component";
13957
- gT.has(re) || (gT.add(re), p("`%s` uses `getDerivedStateFromProps` but its initial state is %s. This is not recommended. Instead, define the initial state by assigning an object to `this.state` in the constructor of `%s`. This ensures that `getDerivedStateFromProps` arguments have a consistent shape.", re, j.state === null ? "null" : "undefined", re));
13956
+ var ae = dn(n) || "Component";
13957
+ gT.has(ae) || (gT.add(ae), p("`%s` uses `getDerivedStateFromProps` but its initial state is %s. This is not recommended. Instead, define the initial state by assigning an object to `this.state` in the constructor of `%s`. This ensures that `getDerivedStateFromProps` arguments have a consistent shape.", ae, j.state === null ? "null" : "undefined", ae));
13958
13958
  }
13959
13959
  if (typeof n.getDerivedStateFromProps == "function" || typeof j.getSnapshotBeforeUpdate == "function") {
13960
13960
  var me = null, he = null, be = null;
@@ -14025,8 +14025,8 @@ https://reactjs.org/link/unsafe-component-lifecycles`, Ve, ut, me !== null ? `
14025
14025
  }
14026
14026
  var j = n.getDerivedStateFromProps, oe = typeof j == "function" || typeof m.getSnapshotBeforeUpdate == "function";
14027
14027
  !oe && (typeof m.UNSAFE_componentWillReceiveProps == "function" || typeof m.componentWillReceiveProps == "function") && (v !== l || b !== D) && M2(e, m, l, D), E2();
14028
- var re = e.memoizedState, me = m.state = re;
14029
- if (H0(e, l, m, u), me = e.memoizedState, v === l && re === me && !R0() && !V0()) {
14028
+ var ae = e.memoizedState, me = m.state = ae;
14029
+ if (H0(e, l, m, u), me = e.memoizedState, v === l && ae === me && !R0() && !V0()) {
14030
14030
  if (typeof m.componentDidMount == "function") {
14031
14031
  var he = Et;
14032
14032
  he |= sa, (e.mode & so) !== dt && (he |= ua), e.flags |= he;
@@ -14034,7 +14034,7 @@ https://reactjs.org/link/unsafe-component-lifecycles`, Ve, ut, me !== null ? `
14034
14034
  return !1;
14035
14035
  }
14036
14036
  typeof j == "function" && (CT(e, n, j, l), me = e.memoizedState);
14037
- var be = V0() || O2(e, n, v, l, re, me, D);
14037
+ var be = V0() || O2(e, n, v, l, ae, me, D);
14038
14038
  if (be) {
14039
14039
  if (!oe && (typeof m.UNSAFE_componentWillMount == "function" || typeof m.componentWillMount == "function") && (typeof m.componentWillMount == "function" && m.componentWillMount(), typeof m.UNSAFE_componentWillMount == "function" && m.UNSAFE_componentWillMount()), typeof m.componentDidMount == "function") {
14040
14040
  var Ve = Et;
@@ -14058,8 +14058,8 @@ https://reactjs.org/link/unsafe-component-lifecycles`, Ve, ut, me !== null ? `
14058
14058
  if (typeof j == "object" && j !== null)
14059
14059
  oe = ea(j);
14060
14060
  else {
14061
- var re = eh(n, l, !0);
14062
- oe = th(n, re);
14061
+ var ae = eh(n, l, !0);
14062
+ oe = th(n, ae);
14063
14063
  }
14064
14064
  var me = l.getDerivedStateFromProps, he = typeof me == "function" || typeof v.getSnapshotBeforeUpdate == "function";
14065
14065
  !he && (typeof v.UNSAFE_componentWillReceiveProps == "function" || typeof v.componentWillReceiveProps == "function") && (b !== D || I !== oe) && M2(n, v, u, oe), E2();
@@ -14111,8 +14111,8 @@ https://reactjs.org/link/unsafe-component-lifecycles`, Ve, ut, me !== null ? `
14111
14111
  if (n !== null && n.ref !== null && typeof n.ref == "function" && n.ref._stringRef === I)
14112
14112
  return n.ref;
14113
14113
  var j = function(oe) {
14114
- var re = D.refs;
14115
- re === R2 && (re = D.refs = {}), oe === null ? delete re[I] : re[I] = oe;
14114
+ var ae = D.refs;
14115
+ ae === R2 && (ae = D.refs = {}), oe === null ? delete ae[I] : ae[I] = oe;
14116
14116
  };
14117
14117
  return j._stringRef = I, j;
14118
14118
  } else {
@@ -14251,7 +14251,7 @@ See https://reactjs.org/link/refs-must-have-owner for more information.`);
14251
14251
  }
14252
14252
  return typeof Te == "function" && Y0(de), null;
14253
14253
  }
14254
- function re(de, Te, fe, ke) {
14254
+ function ae(de, Te, fe, ke) {
14255
14255
  var We = Te !== null ? Te.key : null;
14256
14256
  if (typeof fe == "string" && fe !== "" || typeof fe == "number")
14257
14257
  return We !== null ? null : E(de, Te, "" + fe, ke);
@@ -14263,7 +14263,7 @@ See https://reactjs.org/link/refs-must-have-owner for more information.`);
14263
14263
  return fe.key === We ? I(de, Te, fe, ke) : null;
14264
14264
  case ot: {
14265
14265
  var Be = fe._payload, gt = fe._init;
14266
- return re(de, Te, gt(Be), ke);
14266
+ return ae(de, Te, gt(Be), ke);
14267
14267
  }
14268
14268
  }
14269
14269
  if (k(fe) || or(fe))
@@ -14335,7 +14335,7 @@ See https://reactjs.org/link/refs-must-have-owner for more information.`);
14335
14335
  }
14336
14336
  for (var Rt = null, On = null, fn = Te, Hr = 0, pn = 0, kr = null; fn !== null && pn < fe.length; pn++) {
14337
14337
  fn.index > pn ? (kr = fn, fn = null) : kr = fn.sibling;
14338
- var bi = re(de, fn, fe[pn], ke);
14338
+ var bi = ae(de, fn, fe[pn], ke);
14339
14339
  if (bi === null) {
14340
14340
  fn === null && (fn = kr);
14341
14341
  break;
@@ -14391,7 +14391,7 @@ See https://reactjs.org/link/refs-must-have-owner for more information.`);
14391
14391
  throw new Error("An iterable object provided no iterator.");
14392
14392
  for (var Hr = null, pn = null, kr = Te, bi = 0, ni = 0, Xo = null, zi = fn.next(); kr !== null && !zi.done; ni++, zi = fn.next()) {
14393
14393
  kr.index > ni ? (Xo = kr, kr = null) : Xo = kr.sibling;
14394
- var Hi = re(de, kr, zi.value, ke);
14394
+ var Hi = ae(de, kr, zi.value, ke);
14395
14395
  if (Hi === null) {
14396
14396
  kr === null && (kr = Xo);
14397
14397
  break;
@@ -14582,7 +14582,7 @@ See https://reactjs.org/link/refs-must-have-owner for more information.`);
14582
14582
  }
14583
14583
  function X0(e) {
14584
14584
  for (var n = e; n !== null; ) {
14585
- if (n.tag === ae) {
14585
+ if (n.tag === re) {
14586
14586
  var l = n.memoizedState;
14587
14587
  if (l !== null) {
14588
14588
  var u = l.dehydrated;
@@ -14807,7 +14807,7 @@ Incoming: %s`, xe, "[" + n.join(", ") + "]", "[" + e.join(", ") + "]");
14807
14807
  v.baseQueue !== b && p("Internal error: Expected work-in-progress queue to be a clone. This is a bug in React."), v.baseQueue = b = E, m.pending = null;
14808
14808
  }
14809
14809
  if (b !== null) {
14810
- var j = b.next, oe = v.baseState, re = null, me = null, he = null, be = j;
14810
+ var j = b.next, oe = v.baseState, ae = null, me = null, he = null, be = j;
14811
14811
  do {
14812
14812
  var Ve = be.lane;
14813
14813
  if (tc(hp, Ve)) {
@@ -14838,11 +14838,11 @@ Incoming: %s`, xe, "[" + n.join(", ") + "]", "[" + e.join(", ") + "]");
14838
14838
  eagerState: be.eagerState,
14839
14839
  next: null
14840
14840
  };
14841
- he === null ? (me = he = ut, re = oe) : he = he.next = ut, An.lanes = kt(An.lanes, Ve), My(Ve);
14841
+ he === null ? (me = he = ut, ae = oe) : he = he.next = ut, An.lanes = kt(An.lanes, Ve), My(Ve);
14842
14842
  }
14843
14843
  be = be.next;
14844
14844
  } while (be !== null && be !== j);
14845
- he === null ? re = oe : he.next = me, Xe(oe, u.memoizedState) || by(), u.memoizedState = oe, u.baseState = re, u.baseQueue = he, m.lastRenderedState = oe;
14845
+ he === null ? ae = oe : he.next = me, Xe(oe, u.memoizedState) || by(), u.memoizedState = oe, u.baseState = ae, u.baseQueue = he, m.lastRenderedState = oe;
14846
14846
  }
14847
14847
  var Gt = m.interleaved;
14848
14848
  if (Gt !== null) {
@@ -15924,9 +15924,9 @@ Visit https://reactjs.org/link/error-boundaries to learn more about error bounda
15924
15924
 
15925
15925
  ` + ("" + I);
15926
15926
  console.error(oe);
15927
- } catch (re) {
15927
+ } catch (ae) {
15928
15928
  setTimeout(function() {
15929
- throw re;
15929
+ throw ae;
15930
15930
  });
15931
15931
  }
15932
15932
  }
@@ -15988,7 +15988,7 @@ Visit https://reactjs.org/link/error-boundaries to learn more about error bounda
15988
15988
  function yR(e) {
15989
15989
  var n = e;
15990
15990
  do {
15991
- if (n.tag === ae && r5(n))
15991
+ if (n.tag === re && r5(n))
15992
15992
  return n;
15993
15993
  n = n.return;
15994
15994
  } while (n !== null);
@@ -16047,8 +16047,8 @@ Visit https://reactjs.org/link/error-boundaries to learn more about error bounda
16047
16047
  I.flags |= yr;
16048
16048
  var oe = $r(m);
16049
16049
  I.lanes = kt(I.lanes, oe);
16050
- var re = hR(I, j, oe);
16051
- hT(I, re);
16050
+ var ae = hR(I, j, oe);
16051
+ hT(I, ae);
16052
16052
  return;
16053
16053
  }
16054
16054
  case T:
@@ -16134,8 +16134,8 @@ Visit https://reactjs.org/link/error-boundaries to learn more about error bounda
16134
16134
  dn(I)
16135
16135
  );
16136
16136
  }
16137
- var oe = e.child, re = DS(e, m);
16138
- if (!re) {
16137
+ var oe = e.child, ae = DS(e, m);
16138
+ if (!ae) {
16139
16139
  var me = oe.memoizedProps, he = l.compare;
16140
16140
  if (he = he !== null ? he : lt, he(me, u) && e.ref === n.ref)
16141
16141
  return gc(e, n, m);
@@ -16192,8 +16192,8 @@ Visit https://reactjs.org/link/error-boundaries to learn more about error bounda
16192
16192
  transitions: null
16193
16193
  };
16194
16194
  n.memoizedState = oe;
16195
- var re = v !== null ? v.baseLanes : l;
16196
- Ow(n, re);
16195
+ var ae = v !== null ? v.baseLanes : l;
16196
+ Ow(n, ae);
16197
16197
  } else {
16198
16198
  var E = null, D;
16199
16199
  if (v !== null) {
@@ -16287,9 +16287,9 @@ Visit https://reactjs.org/link/error-boundaries to learn more about error bounda
16287
16287
  }
16288
16288
  }
16289
16289
  if (n.type !== n.elementType) {
16290
- var re = l.propTypes;
16291
- re && vs(
16292
- re,
16290
+ var ae = l.propTypes;
16291
+ ae && vs(
16292
+ ae,
16293
16293
  u,
16294
16294
  // Resolved props
16295
16295
  "prop",
@@ -16363,9 +16363,9 @@ Visit https://reactjs.org/link/error-boundaries to learn more about error bounda
16363
16363
  return RR(e, n, E, l, oe);
16364
16364
  } else {
16365
16365
  kL(n);
16366
- var re = F2(n, null, E, l);
16367
- n.child = re;
16368
- for (var me = re; me; )
16366
+ var ae = F2(n, null, E, l);
16367
+ n.child = ae;
16368
+ for (var me = ae; me; )
16369
16369
  me.flags = me.flags & ~Dn | Ga, me = me.sibling;
16370
16370
  }
16371
16371
  } else {
@@ -16400,9 +16400,9 @@ Visit https://reactjs.org/link/error-boundaries to learn more about error bounda
16400
16400
  return n.type = D = ZS(D), oe = wR(null, n, D, j, u), oe;
16401
16401
  case se: {
16402
16402
  if (n.type !== n.elementType) {
16403
- var re = D.propTypes;
16404
- re && vs(
16405
- re,
16403
+ var ae = D.propTypes;
16404
+ ae && vs(
16405
+ ae,
16406
16406
  j,
16407
16407
  // Resolved for outer only
16408
16408
  "prop",
@@ -16458,8 +16458,8 @@ Visit https://reactjs.org/link/error-boundaries to learn more about error bounda
16458
16458
  wy[oe] || (p("The <%s /> component appears to be a function component that returns a class instance. Change %s to a class that extends React.Component instead. If you can't use a class try assigning the prototype on the function as a workaround. `%s.prototype = React.Component.prototype`. Don't use an arrow function since it cannot be called with `new` by React.", oe, oe, oe), wy[oe] = !0);
16459
16459
  }
16460
16460
  n.tag = T, n.memoizedState = null, n.updateQueue = null;
16461
- var re = !1;
16462
- return pu(l) ? (re = !0, A0(n)) : re = !1, n.memoizedState = E.state !== null && E.state !== void 0 ? E.state : null, mT(n), k2(n, E), DT(n, l, m, u), bS(null, n, l, !0, re, u);
16461
+ var ae = !1;
16462
+ return pu(l) ? (ae = !0, A0(n)) : ae = !1, n.memoizedState = E.state !== null && E.state !== void 0 ? E.state : null, mT(n), k2(n, E), DT(n, l, m, u), bS(null, n, l, !0, ae, u);
16463
16463
  } else {
16464
16464
  if (n.tag = g, n.mode & er) {
16465
16465
  Ur(!0);
@@ -16537,8 +16537,8 @@ Check the render method of \`` + u + "`.");
16537
16537
  }
16538
16538
  var I = u.children, j = u.fallback;
16539
16539
  if (v) {
16540
- var oe = L5(n, I, j, l), re = n.child;
16541
- return re.memoizedState = xS(l), n.memoizedState = SS, oe;
16540
+ var oe = L5(n, I, j, l), ae = n.child;
16541
+ return ae.memoizedState = xS(l), n.memoizedState = SS, oe;
16542
16542
  } else
16543
16543
  return ES(n, I);
16544
16544
  } else {
@@ -16657,8 +16657,8 @@ Check the render method of \`` + u + "`.");
16657
16657
  }
16658
16658
  var oe;
16659
16659
  D ? oe = new Error(D) : oe = new Error("The server could not finish this Suspense boundary, likely due to an error during server rendering. Switched to client rendering.");
16660
- var re = dS(oe, E, I);
16661
- return yw(e, n, b, re);
16660
+ var ae = dS(oe, E, I);
16661
+ return yw(e, n, b, ae);
16662
16662
  }
16663
16663
  var me = vi(b, e.childLanes);
16664
16664
  if (Ss || me) {
@@ -16692,7 +16692,7 @@ Check the render method of \`` + u + "`.");
16692
16692
  }
16693
16693
  function j5(e, n, l) {
16694
16694
  for (var u = n; u !== null; ) {
16695
- if (u.tag === ae) {
16695
+ if (u.tag === re) {
16696
16696
  var m = u.memoizedState;
16697
16697
  m !== null && OR(u, l, e);
16698
16698
  } else if (u.tag === W)
@@ -16811,7 +16811,7 @@ Check the render method of \`` + u + "`.");
16811
16811
  break;
16812
16812
  }
16813
16813
  case "backwards": {
16814
- var re = null, me = n.child;
16814
+ var ae = null, me = n.child;
16815
16815
  for (n.child = null; me !== null; ) {
16816
16816
  var he = me.alternate;
16817
16817
  if (he !== null && X0(he) === null) {
@@ -16819,13 +16819,13 @@ Check the render method of \`` + u + "`.");
16819
16819
  break;
16820
16820
  }
16821
16821
  var be = me.sibling;
16822
- me.sibling = re, re = me, me = be;
16822
+ me.sibling = ae, ae = me, me = be;
16823
16823
  }
16824
16824
  RS(
16825
16825
  n,
16826
16826
  !0,
16827
16827
  // isBackwards
16828
- re,
16828
+ ae,
16829
16829
  null,
16830
16830
  // last
16831
16831
  v
@@ -16949,7 +16949,7 @@ Check the render method of \`` + u + "`.");
16949
16949
  }
16950
16950
  }
16951
16951
  break;
16952
- case ae: {
16952
+ case re: {
16953
16953
  var D = n.memoizedState;
16954
16954
  if (D !== null) {
16955
16955
  if (D.dehydrated !== null)
@@ -16965,8 +16965,8 @@ Check the render method of \`` + u + "`.");
16965
16965
  break;
16966
16966
  }
16967
16967
  case W: {
16968
- var re = (e.flags & pt) !== at, me = vi(l, n.childLanes);
16969
- if (re) {
16968
+ var ae = (e.flags & pt) !== at, me = vi(l, n.childLanes);
16969
+ if (ae) {
16970
16970
  if (me)
16971
16971
  return _R(e, n, l);
16972
16972
  n.flags |= pt;
@@ -17014,8 +17014,8 @@ Check the render method of \`` + u + "`.");
17014
17014
  return wS(e, n, I, oe, l);
17015
17015
  }
17016
17016
  case T: {
17017
- var re = n.type, me = n.pendingProps, he = n.elementType === re ? me : ws(re, me);
17018
- return ER(e, n, re, he, l);
17017
+ var ae = n.type, me = n.pendingProps, he = n.elementType === ae ? me : ws(ae, me);
17018
+ return ER(e, n, ae, he, l);
17019
17019
  }
17020
17020
  case R:
17021
17021
  return R5(e, n, l);
@@ -17023,7 +17023,7 @@ Check the render method of \`` + u + "`.");
17023
17023
  return D5(e, n, l);
17024
17024
  case P:
17025
17025
  return A5(e, n);
17026
- case ae:
17026
+ case re:
17027
17027
  return DR(e, n, l);
17028
17028
  case A:
17029
17029
  return G5(e, n, l);
@@ -17223,8 +17223,8 @@ Check the render method of \`` + u + "`.");
17223
17223
  if (oe)
17224
17224
  ML(n, D, j) && hh(n);
17225
17225
  else {
17226
- var re = gP(I, u, D, j, n);
17227
- FR(re, n, !1, !1), n.stateNode = re, bP(re, I, u, D) && hh(n);
17226
+ var ae = gP(I, u, D, j, n);
17227
+ FR(ae, n, !1, !1), n.stateNode = ae, bP(ae, I, u, D) && hh(n);
17228
17228
  }
17229
17229
  n.ref !== null && LR(n);
17230
17230
  }
@@ -17243,7 +17243,7 @@ Check the render method of \`` + u + "`.");
17243
17243
  }
17244
17244
  return Ka(n), null;
17245
17245
  }
17246
- case ae: {
17246
+ case re: {
17247
17247
  ch(n);
17248
17248
  var nt = n.memoizedState;
17249
17249
  if (e === null || e.memoizedState !== null && e.memoizedState.dehydrated !== null) {
@@ -17364,7 +17364,7 @@ Check the render method of \`` + u + "`.");
17364
17364
  }
17365
17365
  case C:
17366
17366
  return LT(n), null;
17367
- case ae: {
17367
+ case re: {
17368
17368
  ch(n);
17369
17369
  var b = n.memoizedState;
17370
17370
  if (b !== null && b.dehydrated !== null) {
@@ -17409,7 +17409,7 @@ Check the render method of \`` + u + "`.");
17409
17409
  case A:
17410
17410
  sh(n);
17411
17411
  break;
17412
- case ae:
17412
+ case re:
17413
17413
  ch(n);
17414
17414
  break;
17415
17415
  case W:
@@ -17706,8 +17706,8 @@ Learn more about data fetching with Hooks: https://reactjs.org/link/hooks-data-f
17706
17706
  case C: {
17707
17707
  var j = l.stateNode;
17708
17708
  if (n === null && l.flags & Et) {
17709
- var oe = l.type, re = l.memoizedProps;
17710
- DP(j, oe, re);
17709
+ var oe = l.type, ae = l.memoizedProps;
17710
+ DP(j, oe, ae);
17711
17711
  }
17712
17712
  break;
17713
17713
  }
@@ -17740,7 +17740,7 @@ Learn more about data fetching with Hooks: https://reactjs.org/link/hooks-data-f
17740
17740
  }
17741
17741
  break;
17742
17742
  }
17743
- case ae: {
17743
+ case re: {
17744
17744
  vF(e, l);
17745
17745
  break;
17746
17746
  }
@@ -18001,8 +18001,8 @@ Learn more about data fetching with Hooks: https://reactjs.org/link/hooks-data-f
18001
18001
  if (D !== null) {
18002
18002
  var I = D.next, j = I;
18003
18003
  do {
18004
- var oe = j, re = oe.destroy, me = oe.tag;
18005
- re !== void 0 && ((me & mu) !== yo ? bw(l, n, re) : (me & ma) !== yo && (sm(l), l.mode & ft ? (gu(), bw(l, n, re), yu(l)) : bw(l, n, re), id())), j = j.next;
18004
+ var oe = j, ae = oe.destroy, me = oe.tag;
18005
+ ae !== void 0 && ((me & mu) !== yo ? bw(l, n, ae) : (me & ma) !== yo && (sm(l), l.mode & ft ? (gu(), bw(l, n, ae), yu(l)) : bw(l, n, ae), id())), j = j.next;
18006
18006
  } while (j !== I);
18007
18007
  }
18008
18008
  }
@@ -18157,9 +18157,9 @@ Learn more about data fetching with Hooks: https://reactjs.org/link/hooks-data-f
18157
18157
  if (Cs(n, e), wu(e), m & Et) {
18158
18158
  if (e.stateNode === null)
18159
18159
  throw new Error("This should have a text node initialized. This error is likely caused by a bug in React. Please file an issue.");
18160
- var oe = e.stateNode, re = e.memoizedProps, me = u !== null ? u.memoizedProps : re;
18160
+ var oe = e.stateNode, ae = e.memoizedProps, me = u !== null ? u.memoizedProps : ae;
18161
18161
  try {
18162
- OP(oe, me, re);
18162
+ OP(oe, me, ae);
18163
18163
  } catch (gt) {
18164
18164
  Gn(e, e.return, gt);
18165
18165
  }
@@ -18182,7 +18182,7 @@ Learn more about data fetching with Hooks: https://reactjs.org/link/hooks-data-f
18182
18182
  Cs(n, e), wu(e);
18183
18183
  return;
18184
18184
  }
18185
- case ae: {
18185
+ case re: {
18186
18186
  Cs(n, e), wu(e);
18187
18187
  var be = e.child;
18188
18188
  if (be.flags & Vo) {
@@ -18259,8 +18259,8 @@ Learn more about data fetching with Hooks: https://reactjs.org/link/hooks-data-f
18259
18259
  MS(e, n, l);
18260
18260
  continue;
18261
18261
  } else {
18262
- var D = m.alternate, I = D !== null && D.memoizedState !== null, j = I || Za, oe = ww, re = Za;
18263
- ww = E, Za = j, Za && !re && (Ke = m, bF(m));
18262
+ var D = m.alternate, I = D !== null && D.memoizedState !== null, j = I || Za, oe = ww, ae = Za;
18263
+ ww = E, Za = j, Za && !ae && (Ke = m, bF(m));
18264
18264
  for (var me = v; me !== null; )
18265
18265
  Ke = me, ZR(
18266
18266
  me,
@@ -18268,7 +18268,7 @@ Learn more about data fetching with Hooks: https://reactjs.org/link/hooks-data-f
18268
18268
  n,
18269
18269
  l
18270
18270
  ), me = me.sibling;
18271
- Ke = m, ww = oe, Za = re, MS(e, n, l);
18271
+ Ke = m, ww = oe, Za = ae, MS(e, n, l);
18272
18272
  continue;
18273
18273
  }
18274
18274
  }
@@ -18762,8 +18762,8 @@ Learn more about data fetching with Hooks: https://reactjs.org/link/hooks-data-f
18762
18762
  oe !== Se && (m = oe, b = HS(e, oe));
18763
18763
  }
18764
18764
  if (b === xy) {
18765
- var re = Cy;
18766
- throw bp(e, Se), zd(e, m), wo(e, Jn()), re;
18765
+ var ae = Cy;
18766
+ throw bp(e, Se), zd(e, m), wo(e, Jn()), ae;
18767
18767
  }
18768
18768
  }
18769
18769
  e.finishedWork = j, e.finishedLanes = m, YF(e, b, m);
@@ -19129,8 +19129,8 @@ Learn more about data fetching with Hooks: https://reactjs.org/link/hooks-data-f
19129
19129
  Kt |= Nl, PS.current = null, rF(e, m), pR(), yF(e, m, v), yP(e.containerInfo), e.current = m, Fg(v), gF(m, e, v), od(), Og(), Kt = oe, Br(j), ei.transition = I;
19130
19130
  } else
19131
19131
  e.current = m, pR();
19132
- var re = wp;
19133
- if (wp ? (wp = !1, Bd = e, Oy = v) : (bh = 0, Rw = null), b = e.pendingLanes, b === Se && (wh = null), re || bD(e.current, !1), ss(m.stateNode, u), da && e.memoizedUpdaters.clear(), IF(), wo(e, Jn()), n !== null)
19132
+ var ae = wp;
19133
+ if (wp ? (wp = !1, Bd = e, Oy = v) : (bh = 0, Rw = null), b = e.pendingLanes, b === Se && (wh = null), ae || bD(e.current, !1), ss(m.stateNode, u), da && e.memoizedUpdaters.clear(), IF(), wo(e, Jn()), n !== null)
19134
19134
  for (var me = e.onRecoverableError, he = 0; he < n.length; he++) {
19135
19135
  var be = n[he], Ve = be.stack, ut = be.digest;
19136
19136
  me(be.value, {
@@ -19245,7 +19245,7 @@ Error message:
19245
19245
  function f6(e, n) {
19246
19246
  var l = Xt, u;
19247
19247
  switch (e.tag) {
19248
- case ae:
19248
+ case re:
19249
19249
  u = e.stateNode;
19250
19250
  var m = e.memoizedState;
19251
19251
  m !== null && (l = m.retryLane);
@@ -19519,8 +19519,8 @@ This ensures that you're testing the behavior the user would see in the browser.
19519
19519
  oe !== void 0 && (l.has(oe) ? j = !0 : n.has(oe) && (b === T ? j = !0 : I = !0));
19520
19520
  }
19521
19521
  if (Th !== null && (Th.has(e) || u !== null && Th.has(u)) && (j = !0), j && (e._debugNeedsRemount = !0), j || I) {
19522
- var re = vo(e, mt);
19523
- re !== null && ba(re, e, mt, Pn);
19522
+ var ae = vo(e, mt);
19523
+ ae !== null && ba(ae, e, mt, Pn);
19524
19524
  }
19525
19525
  m !== null && !j && JS(m, n, l), v !== null && JS(v, n, l);
19526
19526
  }
@@ -19746,7 +19746,7 @@ Check the render method of \`` + I + "`.");
19746
19746
  }, m;
19747
19747
  }
19748
19748
  function M6(e, n, l, u) {
19749
- var m = Qo(ae, e, u, n);
19749
+ var m = Qo(re, e, u, n);
19750
19750
  return m.elementType = ct, m.lanes = l, m;
19751
19751
  }
19752
19752
  function N6(e, n, l, u) {
@@ -19805,7 +19805,7 @@ Check the render method of \`` + I + "`.");
19805
19805
  var j = new F6(e, n, l, E, D), oe = k6(n, v);
19806
19806
  j.current = oe, oe.stateNode = j;
19807
19807
  {
19808
- var re = {
19808
+ var ae = {
19809
19809
  element: u,
19810
19810
  isDehydrated: l,
19811
19811
  cache: null,
@@ -19813,7 +19813,7 @@ Check the render method of \`` + I + "`.");
19813
19813
  transitions: null,
19814
19814
  pendingSuspenseBoundaries: null
19815
19815
  };
19816
- oe.memoizedState = re;
19816
+ oe.memoizedState = ae;
19817
19817
  }
19818
19818
  return mT(oe), j;
19819
19819
  }
@@ -19876,8 +19876,8 @@ Check the render method of \`` + I + "`.");
19876
19876
  function ND(e, n, l, u, m, v, b, E, D, I) {
19877
19877
  var j = !0, oe = kD(l, u, j, e, m, v, b, E, D);
19878
19878
  oe.context = _D(null);
19879
- var re = oe.current, me = ji(), he = jd(re), be = yc(me, he);
19880
- return be.callback = n ?? null, Nd(re, be, he), WF(oe, he, me), oe;
19879
+ var ae = oe.current, me = ji(), he = jd(ae), be = yc(me, he);
19880
+ return be.callback = n ?? null, Nd(ae, be, he), WF(oe, he, me), oe;
19881
19881
  }
19882
19882
  function Ly(e, n, l, u) {
19883
19883
  kg(n, e);
@@ -19915,7 +19915,7 @@ Check the render method of %s.`, yt(jn) || "Unknown"));
19915
19915
  }
19916
19916
  break;
19917
19917
  }
19918
- case ae: {
19918
+ case re: {
19919
19919
  Tc(function() {
19920
19920
  var m = vo(e, mt);
19921
19921
  if (m !== null) {
@@ -19939,7 +19939,7 @@ Check the render method of %s.`, yt(jn) || "Unknown"));
19939
19939
  l && PD(l, n);
19940
19940
  }
19941
19941
  function B6(e) {
19942
- if (e.tag === ae) {
19942
+ if (e.tag === re) {
19943
19943
  var n = sd, l = vo(e, n);
19944
19944
  if (l !== null) {
19945
19945
  var u = ji();
@@ -19949,7 +19949,7 @@ Check the render method of %s.`, yt(jn) || "Unknown"));
19949
19949
  }
19950
19950
  }
19951
19951
  function j6(e) {
19952
- if (e.tag === ae) {
19952
+ if (e.tag === re) {
19953
19953
  var n = jd(e), l = vo(e, n);
19954
19954
  if (l !== null) {
19955
19955
  var u = ji();
@@ -20201,8 +20201,8 @@ Check the render method of %s.`, yt(jn) || "Unknown"));
20201
20201
  if (typeof u == "function") {
20202
20202
  var v = u;
20203
20203
  u = function() {
20204
- var re = Nw(b);
20205
- v.call(re);
20204
+ var ae = Nw(b);
20205
+ v.call(ae);
20206
20206
  };
20207
20207
  }
20208
20208
  var b = ND(
@@ -20229,8 +20229,8 @@ Check the render method of %s.`, yt(jn) || "Unknown"));
20229
20229
  if (typeof u == "function") {
20230
20230
  var I = u;
20231
20231
  u = function() {
20232
- var re = Nw(j);
20233
- I.call(re);
20232
+ var ae = Nw(j);
20233
+ I.call(ae);
20234
20234
  };
20235
20235
  }
20236
20236
  var j = MD(
@@ -20594,7 +20594,7 @@ var yI = function(r, i) {
20594
20594
  function gI(t) {
20595
20595
  var r, i = t.state, s = t.name, c = t.options, f = i.elements.arrow, p = i.modifiersData.popperOffsets, y = xu(i.placement), g = yE(y), T = [Eo, zl].indexOf(y) >= 0, S = T ? "height" : "width";
20596
20596
  if (!(!f || !p)) {
20597
- var R = yI(c.padding, i), A = vE(f), C = g === "y" ? xo : Eo, P = g === "y" ? jl : zl, $ = i.rects.reference[S] + i.rects.reference[g] - p[g] - i.rects.popper[S], B = p[g] - i.rects.reference[g], Y = dg(f), U = Y ? g === "y" ? Y.clientHeight || 0 : Y.clientWidth || 0 : 0, Z = $ / 2 - B / 2, ne = R[C], ae = U - A[S] - R[P], se = U / 2 - A[S] / 2 + Z, ue = Yy(ne, se, ae), O = g;
20597
+ var R = yI(c.padding, i), A = vE(f), C = g === "y" ? xo : Eo, P = g === "y" ? jl : zl, $ = i.rects.reference[S] + i.rects.reference[g] - p[g] - i.rects.popper[S], B = p[g] - i.rects.reference[g], Y = dg(f), U = Y ? g === "y" ? Y.clientHeight || 0 : Y.clientWidth || 0 : 0, Z = $ / 2 - B / 2, ne = R[C], re = U - A[S] - R[P], se = U / 2 - A[S] / 2 + Z, ue = Yy(ne, se, re), O = g;
20598
20598
  i.modifiersData[s] = (r = {}, r[O] = ue, r.centerOffset = ue - se, r);
20599
20599
  }
20600
20600
  }
@@ -20636,12 +20636,12 @@ function wA(t) {
20636
20636
  y: $
20637
20637
  };
20638
20638
  C = B.x, $ = B.y;
20639
- var Y = p.hasOwnProperty("x"), U = p.hasOwnProperty("y"), Z = Eo, ne = xo, ae = window;
20639
+ var Y = p.hasOwnProperty("x"), U = p.hasOwnProperty("y"), Z = Eo, ne = xo, re = window;
20640
20640
  if (T) {
20641
20641
  var se = dg(i), ue = "clientHeight", O = "clientWidth";
20642
20642
  if (se === rl(i) && (se = sf(i), kc(se).position !== "static" && y === "absolute" && (ue = "scrollHeight", O = "scrollWidth")), se = se, c === xo || (c === Eo || c === zl) && f === tg) {
20643
20643
  ne = jl;
20644
- var M = R && se === ae && ae.visualViewport ? ae.visualViewport.height : (
20644
+ var M = R && se === re && re.visualViewport ? re.visualViewport.height : (
20645
20645
  // $FlowFixMe[prop-missing]
20646
20646
  se[ue]
20647
20647
  );
@@ -20649,7 +20649,7 @@ function wA(t) {
20649
20649
  }
20650
20650
  if (c === Eo || (c === xo || c === jl) && f === tg) {
20651
20651
  Z = zl;
20652
- var F = R && se === ae && ae.visualViewport ? ae.visualViewport.width : (
20652
+ var F = R && se === re && re.visualViewport ? re.visualViewport.width : (
20653
20653
  // $FlowFixMe[prop-missing]
20654
20654
  se[O]
20655
20655
  );
@@ -20667,7 +20667,7 @@ function wA(t) {
20667
20667
  };
20668
20668
  if (C = K.x, $ = K.y, g) {
20669
20669
  var V;
20670
- return Object.assign({}, W, (V = {}, V[ne] = U ? "0" : "", V[Z] = Y ? "0" : "", V.transform = (ae.devicePixelRatio || 1) <= 1 ? "translate(" + C + "px, " + $ + "px)" : "translate3d(" + C + "px, " + $ + "px, 0)", V));
20670
+ return Object.assign({}, W, (V = {}, V[ne] = U ? "0" : "", V[Z] = Y ? "0" : "", V.transform = (re.devicePixelRatio || 1) <= 1 ? "translate(" + C + "px, " + $ + "px)" : "translate3d(" + C + "px, " + $ + "px, 0)", V));
20671
20671
  }
20672
20672
  return Object.assign({}, W, (r = {}, r[ne] = U ? $ + "px" : "", r[Z] = Y ? C + "px" : "", r.transform = "", r));
20673
20673
  }
@@ -20869,16 +20869,16 @@ function ZO(t) {
20869
20869
  }
20870
20870
  function ng(t, r) {
20871
20871
  r === void 0 && (r = {});
20872
- var i = r, s = i.placement, c = s === void 0 ? t.placement : s, f = i.strategy, p = f === void 0 ? t.strategy : f, y = i.boundary, g = y === void 0 ? J3 : y, T = i.rootBoundary, S = T === void 0 ? VO : T, R = i.elementContext, A = R === void 0 ? By : R, C = i.altBoundary, P = C === void 0 ? !1 : C, $ = i.padding, B = $ === void 0 ? 0 : $, Y = QO(typeof B != "number" ? B : XO(B, cg)), U = A === By ? eI : By, Z = t.rects.popper, ne = t.elements[P ? U : A], ae = NI(_p(ne) ? ne : ne.contextElement || sf(t.elements.popper), g, S, p), se = Ph(t.elements.reference), ue = ZO({
20872
+ var i = r, s = i.placement, c = s === void 0 ? t.placement : s, f = i.strategy, p = f === void 0 ? t.strategy : f, y = i.boundary, g = y === void 0 ? J3 : y, T = i.rootBoundary, S = T === void 0 ? VO : T, R = i.elementContext, A = R === void 0 ? By : R, C = i.altBoundary, P = C === void 0 ? !1 : C, $ = i.padding, B = $ === void 0 ? 0 : $, Y = QO(typeof B != "number" ? B : XO(B, cg)), U = A === By ? eI : By, Z = t.rects.popper, ne = t.elements[P ? U : A], re = NI(_p(ne) ? ne : ne.contextElement || sf(t.elements.popper), g, S, p), se = Ph(t.elements.reference), ue = ZO({
20873
20873
  reference: se,
20874
20874
  element: Z,
20875
20875
  strategy: "absolute",
20876
20876
  placement: c
20877
20877
  }), O = Wx(Object.assign({}, Z, ue)), M = A === By ? O : se, F = {
20878
- top: ae.top - M.top + Y.top,
20879
- bottom: M.bottom - ae.bottom + Y.bottom,
20880
- left: ae.left - M.left + Y.left,
20881
- right: M.right - ae.right + Y.right
20878
+ top: re.top - M.top + Y.top,
20879
+ bottom: M.bottom - re.bottom + Y.bottom,
20880
+ left: re.left - M.left + Y.left,
20881
+ right: M.right - re.right + Y.right
20882
20882
  }, W = t.modifiersData.offset;
20883
20883
  if (A === By && W) {
20884
20884
  var K = W[c];
@@ -20927,7 +20927,7 @@ function FI(t) {
20927
20927
  flipVariations: P,
20928
20928
  allowedAutoPlacements: $
20929
20929
  }) : Ye);
20930
- }, []), ae = r.rects.reference, se = r.rects.popper, ue = /* @__PURE__ */ new Map(), O = !0, M = ne[0], F = 0; F < ne.length; F++) {
20930
+ }, []), re = r.rects.reference, se = r.rects.popper, ue = /* @__PURE__ */ new Map(), O = !0, M = ne[0], F = 0; F < ne.length; F++) {
20931
20931
  var W = ne[F], K = xu(W), V = Lh(W) === Mh, Q = [xo, jl].indexOf(K) >= 0, z = Q ? "width" : "height", G = ng(r, {
20932
20932
  placement: W,
20933
20933
  boundary: S,
@@ -20935,7 +20935,7 @@ function FI(t) {
20935
20935
  altBoundary: A,
20936
20936
  padding: T
20937
20937
  }), J = Q ? V ? zl : Eo : V ? jl : xo;
20938
- ae[z] > se[z] && (J = Kw(J));
20938
+ re[z] > se[z] && (J = Kw(J));
20939
20939
  var L = Kw(J), H = [];
20940
20940
  if (f && H.push(G[K] <= 0), y && H.push(G[J] <= 0, G[L] <= 0), H.every(function(Pe) {
20941
20941
  return Pe;
@@ -21063,7 +21063,7 @@ function GI(t) {
21063
21063
  rootBoundary: T,
21064
21064
  padding: R,
21065
21065
  altBoundary: S
21066
- }), Y = xu(r.placement), U = Lh(r.placement), Z = !U, ne = yE(Y), ae = WI(ne), se = r.modifiersData.popperOffsets, ue = r.rects.reference, O = r.rects.popper, M = typeof $ == "function" ? $(Object.assign({}, r.rects, {
21066
+ }), Y = xu(r.placement), U = Lh(r.placement), Z = !U, ne = yE(Y), re = WI(ne), se = r.modifiersData.popperOffsets, ue = r.rects.reference, O = r.rects.popper, M = typeof $ == "function" ? $(Object.assign({}, r.rects, {
21067
21067
  placement: r.placement
21068
21068
  })) : $, F = typeof M == "number" ? {
21069
21069
  mainAxis: M,
@@ -21084,8 +21084,8 @@ function GI(t) {
21084
21084
  se[ne] = Un, K[ne] = Un - J;
21085
21085
  }
21086
21086
  if (y) {
21087
- var $n, Nr = ne === "x" ? xo : Eo, Vr = ne === "x" ? jl : zl, ir = se[ae], xr = ae === "y" ? "height" : "width", Pr = ir + B[Nr], fr = ir - B[Vr], Lr = [xo, Eo].indexOf(Y) !== -1, pr = ($n = W == null ? void 0 : W[ae]) != null ? $n : 0, Fr = Lr ? Pr : ir - ue[xr] - O[xr] - pr + F.altAxis, xn = Lr ? ir + ue[xr] + O[xr] - pr - F.altAxis : fr, mr = C && Lr ? vI(Fr, ir, xn) : Yy(C ? Fr : Pr, ir, C ? xn : fr);
21088
- se[ae] = mr, K[ae] = mr - ir;
21087
+ var $n, Nr = ne === "x" ? xo : Eo, Vr = ne === "x" ? jl : zl, ir = se[re], xr = re === "y" ? "height" : "width", Pr = ir + B[Nr], fr = ir - B[Vr], Lr = [xo, Eo].indexOf(Y) !== -1, pr = ($n = W == null ? void 0 : W[re]) != null ? $n : 0, Fr = Lr ? Pr : ir - ue[xr] - O[xr] - pr + F.altAxis, xn = Lr ? ir + ue[xr] + O[xr] - pr - F.altAxis : fr, mr = C && Lr ? vI(Fr, ir, xn) : Yy(C ? Fr : Pr, ir, C ? xn : fr);
21088
+ se[re] = mr, K[re] = mr - ir;
21089
21089
  }
21090
21090
  r.modifiersData[s] = K;
21091
21091
  }
@@ -21237,7 +21237,7 @@ function nU(t) {
21237
21237
  S.reset = !1, ne = -1;
21238
21238
  continue;
21239
21239
  }
21240
- var ae = S.orderedModifiers[ne], se = ae.fn, ue = ae.options, O = ue === void 0 ? {} : ue, M = ae.name;
21240
+ var re = S.orderedModifiers[ne], se = re.fn, ue = re.options, O = ue === void 0 ? {} : ue, M = re.name;
21241
21241
  typeof se == "function" && (S = se({
21242
21242
  state: S,
21243
21243
  options: O,
@@ -21268,14 +21268,14 @@ function nU(t) {
21268
21268
  S.orderedModifiers.forEach(function(B) {
21269
21269
  var Y = B.name, U = B.options, Z = U === void 0 ? {} : U, ne = B.effect;
21270
21270
  if (typeof ne == "function") {
21271
- var ae = ne({
21271
+ var re = ne({
21272
21272
  state: S,
21273
21273
  name: Y,
21274
21274
  instance: C,
21275
21275
  options: Z
21276
21276
  }), se = function() {
21277
21277
  };
21278
- R.push(ae || se);
21278
+ R.push(re || se);
21279
21279
  }
21280
21280
  });
21281
21281
  }
@@ -21514,7 +21514,7 @@ function vU(t, r) {
21514
21514
  return clearTimeout(Y.current);
21515
21515
  };
21516
21516
  }, []);
21517
- var U = fU(f.followCursor ? RA : T, A, y), Z = U.styles, ne = U.attributes, ae = q3(U, hU), se = ae.update, ue = JO({
21517
+ var U = fU(f.followCursor ? RA : T, A, y), Z = U.styles, ne = U.attributes, re = q3(U, hU), se = re.update, ue = JO({
21518
21518
  visible: $,
21519
21519
  triggerRef: T,
21520
21520
  tooltipRef: A,
@@ -21581,7 +21581,7 @@ function vU(t, r) {
21581
21581
  A.removeEventListener("mouseenter", F), A.removeEventListener("mouseleave", M);
21582
21582
  };
21583
21583
  }, [A, O, F, M, ue]);
21584
- var K = ae == null || (i = ae.state) == null || (s = i.modifiersData) == null || (c = s.hide) == null ? void 0 : c.isReferenceHidden;
21584
+ var K = re == null || (i = re.state) == null || (s = i.modifiersData) == null || (c = s.hide) == null ? void 0 : c.isReferenceHidden;
21585
21585
  we.useEffect(function() {
21586
21586
  f.closeOnTriggerHidden && K && M();
21587
21587
  }, [f.closeOnTriggerHidden, M, K]), we.useEffect(function() {
@@ -21622,7 +21622,7 @@ function vU(t, r) {
21622
21622
  tooltipRef: A,
21623
21623
  triggerRef: T,
21624
21624
  visible: $
21625
- }, ae);
21625
+ }, re);
21626
21626
  }
21627
21627
  const yU = ({
21628
21628
  tooltipContent: t,
@@ -21879,7 +21879,7 @@ function kU(t, r, i) {
21879
21879
  return t = t || (i == null ? void 0 : i.target) instanceof c && !OU.has(i == null || (s = i.target) === null || s === void 0 ? void 0 : s.type) || (i == null ? void 0 : i.target) instanceof f || (i == null ? void 0 : i.target) instanceof p && (i == null ? void 0 : i.target.isContentEditable), !(t && r === "keyboard" && i instanceof y && !RU[i.key]);
21880
21880
  }
21881
21881
  function _U(t, r, i) {
21882
- qx(), vt(() => {
21882
+ qx(), ht(() => {
21883
21883
  let s = (c, f) => {
21884
21884
  kU(!!(i != null && i.isTextInput), c, f) && t(uk());
21885
21885
  };
@@ -21939,7 +21939,7 @@ function Ab(t) {
21939
21939
  pointerType: "",
21940
21940
  target: null
21941
21941
  }).current;
21942
- vt(NU, []);
21942
+ ht(NU, []);
21943
21943
  let { hoverProps: g, triggerHoverEnd: T } = He(() => {
21944
21944
  let S = (C, P) => {
21945
21945
  if (y.pointerType = P, c || P === "touch" || y.isHovered || !C.currentTarget.contains(C.target))
@@ -21983,7 +21983,7 @@ function Ab(t) {
21983
21983
  c,
21984
21984
  y
21985
21985
  ]);
21986
- return vt(() => {
21986
+ return ht(() => {
21987
21987
  c && T({
21988
21988
  currentTarget: y.target
21989
21989
  }, y.pointerType);
@@ -22100,10 +22100,10 @@ function Ip() {
22100
22100
  }
22101
22101
  function Vh() {
22102
22102
  let [t] = Yt(Ip);
22103
- return vt(() => () => t.dispose(), [t]), t;
22103
+ return ht(() => () => t.dispose(), [t]), t;
22104
22104
  }
22105
22105
  let qn = (t, r) => {
22106
- Op.isServer ? vt(t, r) : cE(t, r);
22106
+ Op.isServer ? ht(t, r) : cE(t, r);
22107
22107
  };
22108
22108
  function Jo(t) {
22109
22109
  let r = Ot(t);
@@ -22111,7 +22111,7 @@ function Jo(t) {
22111
22111
  r.current = t;
22112
22112
  }, [t]), r;
22113
22113
  }
22114
- let ht = function(t) {
22114
+ let vt = function(t) {
22115
22115
  let r = Jo(t);
22116
22116
  return Le.useCallback((...i) => r.current(...i), [r]);
22117
22117
  };
@@ -22123,9 +22123,9 @@ function UU(t, r) {
22123
22123
  return !(!t || !r || t.right < r.left || t.left > r.right || t.bottom < r.top || t.top > r.bottom);
22124
22124
  }
22125
22125
  function Ob({ disabled: t = !1 } = {}) {
22126
- let r = Ot(null), [i, s] = Yt(!1), c = Vh(), f = ht(() => {
22126
+ let r = Ot(null), [i, s] = Yt(!1), c = Vh(), f = vt(() => {
22127
22127
  r.current = null, s(!1), c.dispose();
22128
- }), p = ht((y) => {
22128
+ }), p = vt((y) => {
22129
22129
  if (c.dispose(), r.current === null) {
22130
22130
  r.current = y.currentTarget, s(!0);
22131
22131
  {
@@ -22287,7 +22287,7 @@ function Sx(t, r = []) {
22287
22287
  }
22288
22288
  function jU(t, r, i) {
22289
22289
  let [s, c] = Yt(i), f = t !== void 0, p = Ot(f), y = Ot(!1), g = Ot(!1);
22290
- return f && !p.current && !y.current ? (y.current = !0, p.current = f, console.error("A component is changing from uncontrolled to controlled. This may be caused by the value changing from undefined to a defined value, which should not happen.")) : !f && p.current && !g.current && (g.current = !0, p.current = f, console.error("A component is changing from controlled to uncontrolled. This may be caused by the value changing from a defined value to undefined, which should not happen.")), [f ? t : s, ht((T) => (f || c(T), r == null ? void 0 : r(T)))];
22290
+ return f && !p.current && !y.current ? (y.current = !0, p.current = f, console.error("A component is changing from uncontrolled to controlled. This may be caused by the value changing from undefined to a defined value, which should not happen.")) : !f && p.current && !g.current && (g.current = !0, p.current = f, console.error("A component is changing from controlled to uncontrolled. This may be caused by the value changing from a defined value to undefined, which should not happen.")), [f ? t : s, vt((T) => (f || c(T), r == null ? void 0 : r(T)))];
22291
22291
  }
22292
22292
  function zU(t) {
22293
22293
  let [r] = Yt(t);
@@ -22341,13 +22341,13 @@ function YU({ children: t }) {
22341
22341
  }
22342
22342
  function qU({ data: t, form: r, disabled: i, onReset: s, overrides: c }) {
22343
22343
  let [f, p] = Yt(null), y = Vh();
22344
- return vt(() => {
22344
+ return ht(() => {
22345
22345
  if (s && f)
22346
22346
  return y.addEventListener(f, "reset", s);
22347
22347
  }, [f, r, s]), Le.createElement(YU, null, Le.createElement(QU, { setForm: p, formId: r }), fk(t).map(([g, T]) => Le.createElement(Mc, { features: _c.Hidden, ...Qd({ key: g, as: "input", type: "hidden", hidden: !0, readOnly: !0, form: r, disabled: i, name: g, value: T, ...c }) })));
22348
22348
  }
22349
22349
  function QU({ setForm: t, formId: r }) {
22350
- return vt(() => {
22350
+ return ht(() => {
22351
22351
  if (r) {
22352
22352
  let i = document.getElementById(r);
22353
22353
  i && t(i);
@@ -22390,10 +22390,10 @@ function CE(t, r = !0) {
22390
22390
  }
22391
22391
  function _r(...t) {
22392
22392
  let r = Ot(t);
22393
- vt(() => {
22393
+ ht(() => {
22394
22394
  r.current = t;
22395
22395
  }, [t]);
22396
- let i = ht((s) => {
22396
+ let i = vt((s) => {
22397
22397
  for (let c of r.current)
22398
22398
  c != null && (typeof c == "function" ? c(s) : c.current = s);
22399
22399
  });
@@ -22416,7 +22416,7 @@ function ZU() {
22416
22416
  function bk() {
22417
22417
  let [t, r] = Yt([]);
22418
22418
  return [t.length > 0 ? t.join(" ") : void 0, He(() => function(i) {
22419
- let s = ht((f) => (r((p) => [...p, f]), () => r((p) => {
22419
+ let s = vt((f) => (r((p) => [...p, f]), () => r((p) => {
22420
22420
  let y = p.slice(), g = y.indexOf(f);
22421
22421
  return g !== -1 && y.splice(g, 1), y;
22422
22422
  }))), c = He(() => ({ register: s, slot: i.slot, name: i.name, props: i.props, value: i.value }), [s, i.slot, i.name, i.props, i.value]);
@@ -22450,7 +22450,7 @@ function Sk(t) {
22450
22450
  function xk({ inherit: t = !1 } = {}) {
22451
22451
  let r = Sk(), [i, s] = Yt([]), c = t ? [r, ...i].filter(Boolean) : i;
22452
22452
  return [c.length > 0 ? c.join(" ") : void 0, He(() => function(f) {
22453
- let p = ht((g) => (s((T) => [...T, g]), () => s((T) => {
22453
+ let p = vt((g) => (s((T) => [...T, g]), () => s((T) => {
22454
22454
  let S = T.slice(), R = S.indexOf(g);
22455
22455
  return R !== -1 && S.splice(R, 1), S;
22456
22456
  }))), y = He(() => ({ register: p, slot: f.slot, name: f.name, props: f.props, value: f.value }), [p, f.slot, f.name, f.props, f.value]);
@@ -22462,7 +22462,7 @@ function a4(t, r) {
22462
22462
  var i;
22463
22463
  let s = tl(), c = Tk(), f = yk(), p = kb(), { id: y = `headlessui-label-${s}`, htmlFor: g = f ?? ((i = c.props) == null ? void 0 : i.htmlFor), passive: T = !1, ...S } = t, R = _r(r);
22464
22464
  qn(() => c.register(y), [y, c.register]);
22465
- let A = ht((B) => {
22465
+ let A = vt((B) => {
22466
22466
  let Y = B.currentTarget;
22467
22467
  if (Y instanceof HTMLLabelElement && B.preventDefault(), c.props && "onClick" in c.props && typeof c.props.onClick == "function" && c.props.onClick(B), Y instanceof HTMLLabelElement) {
22468
22468
  let U = document.getElementById(Y.htmlFor);
@@ -22548,7 +22548,7 @@ function Ok(t, r, i) {
22548
22548
  let f = c.getBoundingClientRect();
22549
22549
  f.x === 0 && f.y === 0 && f.width === 0 && f.height === 0 && i();
22550
22550
  });
22551
- vt(() => {
22551
+ ht(() => {
22552
22552
  if (!t)
22553
22553
  return;
22554
22554
  let c = r === null ? null : r instanceof HTMLElement ? r : r.current;
@@ -22656,7 +22656,7 @@ function g4() {
22656
22656
  }
22657
22657
  function jy(t, r, i, s) {
22658
22658
  let c = Jo(i);
22659
- vt(() => {
22659
+ ht(() => {
22660
22660
  if (!t)
22661
22661
  return;
22662
22662
  function f(p) {
@@ -22667,7 +22667,7 @@ function jy(t, r, i, s) {
22667
22667
  }
22668
22668
  function Mk(t, r, i, s) {
22669
22669
  let c = Jo(i);
22670
- vt(() => {
22670
+ ht(() => {
22671
22671
  if (!t)
22672
22672
  return;
22673
22673
  function f(p) {
@@ -22719,7 +22719,7 @@ function Wh(...t) {
22719
22719
  }
22720
22720
  function b4(t, r, i, s) {
22721
22721
  let c = Jo(i);
22722
- vt(() => {
22722
+ ht(() => {
22723
22723
  t = t ?? window;
22724
22724
  function f(p) {
22725
22725
  c.current(p);
@@ -23222,7 +23222,7 @@ const V4 = async (t, r, i) => {
23222
23222
  x: U,
23223
23223
  y: Z,
23224
23224
  data: ne,
23225
- reset: ae
23225
+ reset: re
23226
23226
  } = await Y({
23227
23227
  x: S,
23228
23228
  y: R,
@@ -23243,11 +23243,11 @@ const V4 = async (t, r, i) => {
23243
23243
  ...C[B],
23244
23244
  ...ne
23245
23245
  }
23246
- }, ae && P <= 50 && (P++, typeof ae == "object" && (ae.placement && (A = ae.placement), ae.rects && (T = ae.rects === !0 ? await p.getElementRects({
23246
+ }, re && P <= 50 && (P++, typeof re == "object" && (re.placement && (A = re.placement), re.rects && (T = re.rects === !0 ? await p.getElementRects({
23247
23247
  reference: t,
23248
23248
  floating: r,
23249
23249
  strategy: c
23250
- }) : ae.rects), {
23250
+ }) : re.rects), {
23251
23251
  x: S,
23252
23252
  y: R
23253
23253
  } = NA(T, A, g)), $ = -1);
@@ -23292,17 +23292,17 @@ async function Bb(t, r) {
23292
23292
  } : {
23293
23293
  x: 1,
23294
23294
  y: 1
23295
- }, ae = cb(f.convertOffsetParentRelativeRectToViewportRelativeRect ? await f.convertOffsetParentRelativeRectToViewportRelativeRect({
23295
+ }, re = cb(f.convertOffsetParentRelativeRectToViewportRelativeRect ? await f.convertOffsetParentRelativeRectToViewportRelativeRect({
23296
23296
  elements: y,
23297
23297
  rect: U,
23298
23298
  offsetParent: Z,
23299
23299
  strategy: g
23300
23300
  }) : U);
23301
23301
  return {
23302
- top: (Y.top - ae.top + P.top) / ne.y,
23303
- bottom: (ae.bottom - Y.bottom + P.bottom) / ne.y,
23304
- left: (Y.left - ae.left + P.left) / ne.x,
23305
- right: (ae.right - Y.right + P.right) / ne.x
23302
+ top: (Y.top - re.top + P.top) / ne.y,
23303
+ bottom: (re.bottom - Y.bottom + P.bottom) / ne.y,
23304
+ left: (Y.left - re.left + P.left) / ne.x,
23305
+ right: (re.right - Y.right + P.right) / ne.x
23306
23306
  };
23307
23307
  }
23308
23308
  const W4 = function(t) {
@@ -23329,9 +23329,9 @@ const W4 = function(t) {
23329
23329
  } = Yh(t, r);
23330
23330
  if ((i = f.arrow) != null && i.alignmentOffset)
23331
23331
  return {};
23332
- const Y = of(c), U = Np(y), Z = of(y) === y, ne = await (g.isRTL == null ? void 0 : g.isRTL(T.floating)), ae = A || (Z || !$ ? [ub(y)] : $4(y)), se = P !== "none";
23333
- !A && se && ae.push(...j4(y, $, P, ne));
23334
- const ue = [y, ...ae], O = await Bb(r, B), M = [];
23332
+ const Y = of(c), U = Np(y), Z = of(y) === y, ne = await (g.isRTL == null ? void 0 : g.isRTL(T.floating)), re = A || (Z || !$ ? [ub(y)] : $4(y)), se = P !== "none";
23333
+ !A && se && re.push(...j4(y, $, P, ne));
23334
+ const ue = [y, ...re], O = await Bb(r, B), M = [];
23335
23335
  let F = ((s = f.flip) == null ? void 0 : s.overflows) || [];
23336
23336
  if (S && M.push(O[Y]), R) {
23337
23337
  const Q = U4(c, p, ne);
@@ -23508,15 +23508,15 @@ const Y4 = function(t) {
23508
23508
  let P, $;
23509
23509
  T === "top" || T === "bottom" ? (P = T, $ = S === (await (c.isRTL == null ? void 0 : c.isRTL(f.floating)) ? "start" : "end") ? "left" : "right") : ($ = T, P = S === "end" ? "top" : "bottom");
23510
23510
  const B = C - g.top - g.bottom, Y = A - g.left - g.right, U = Jd(C - g[P], B), Z = Jd(A - g[$], Y), ne = !r.middlewareData.shift;
23511
- let ae = U, se = Z;
23512
- if (R ? se = S || ne ? Jd(Z, Y) : Y : ae = S || ne ? Jd(U, B) : B, ne && !S) {
23511
+ let re = U, se = Z;
23512
+ if (R ? se = S || ne ? Jd(Z, Y) : Y : re = S || ne ? Jd(U, B) : B, ne && !S) {
23513
23513
  const O = Zo(g.left, 0), M = Zo(g.right, 0), F = Zo(g.top, 0), W = Zo(g.bottom, 0);
23514
- R ? se = A - 2 * (O !== 0 || M !== 0 ? O + M : Zo(g.left, g.right)) : ae = C - 2 * (F !== 0 || W !== 0 ? F + W : Zo(g.top, g.bottom));
23514
+ R ? se = A - 2 * (O !== 0 || M !== 0 ? O + M : Zo(g.left, g.right)) : re = C - 2 * (F !== 0 || W !== 0 ? F + W : Zo(g.top, g.bottom));
23515
23515
  }
23516
23516
  await p({
23517
23517
  ...r,
23518
23518
  availableWidth: se,
23519
- availableHeight: ae
23519
+ availableHeight: re
23520
23520
  });
23521
23521
  const ue = await c.getDimensions(f.floating);
23522
23522
  return A !== ue.width || C !== ue.height ? {
@@ -23812,8 +23812,8 @@ function c$(t, r) {
23812
23812
  threshold: Zo(0, Jd(1, g)) || 1
23813
23813
  };
23814
23814
  let Z = !0;
23815
- function ne(ae) {
23816
- const se = ae[0].intersectionRatio;
23815
+ function ne(re) {
23816
+ const se = re[0].intersectionRatio;
23817
23817
  if (se !== g) {
23818
23818
  if (!Z)
23819
23819
  return p();
@@ -23885,7 +23885,7 @@ const Ex = Bb, f$ = Y4, p$ = q4, m$ = W4, h$ = Q4, v$ = (t, r, i) => {
23885
23885
  platform: f
23886
23886
  });
23887
23887
  };
23888
- var Jw = typeof document < "u" ? cE : vt;
23888
+ var Jw = typeof document < "u" ? cE : ht;
23889
23889
  function db(t, r) {
23890
23890
  if (t === r)
23891
23891
  return !0;
@@ -23957,7 +23957,7 @@ function y$(t) {
23957
23957
  J !== se.current && (se.current = J, $(J));
23958
23958
  }, []), Z = we.useCallback((J) => {
23959
23959
  J !== ue.current && (ue.current = J, Y(J));
23960
- }, []), ne = f || P, ae = p || B, se = we.useRef(null), ue = we.useRef(null), O = we.useRef(S), M = g != null, F = IA(g), W = IA(c), K = we.useCallback(() => {
23960
+ }, []), ne = f || P, re = p || B, se = we.useRef(null), ue = we.useRef(null), O = we.useRef(S), M = g != null, F = IA(g), W = IA(c), K = we.useCallback(() => {
23961
23961
  if (!se.current || !ue.current)
23962
23962
  return;
23963
23963
  const J = {
@@ -23985,12 +23985,12 @@ function y$(t) {
23985
23985
  Jw(() => (V.current = !0, () => {
23986
23986
  V.current = !1;
23987
23987
  }), []), Jw(() => {
23988
- if (ne && (se.current = ne), ae && (ue.current = ae), ne && ae) {
23988
+ if (ne && (se.current = ne), re && (ue.current = re), ne && re) {
23989
23989
  if (F.current)
23990
- return F.current(ne, ae, K);
23990
+ return F.current(ne, re, K);
23991
23991
  K();
23992
23992
  }
23993
- }, [ne, ae, K, F, M]);
23993
+ }, [ne, re, K, F, M]);
23994
23994
  const Q = we.useMemo(() => ({
23995
23995
  reference: se,
23996
23996
  floating: ue,
@@ -23998,8 +23998,8 @@ function y$(t) {
23998
23998
  setFloating: Z
23999
23999
  }), [U, Z]), z = we.useMemo(() => ({
24000
24000
  reference: ne,
24001
- floating: ae
24002
- }), [ne, ae]), G = we.useMemo(() => {
24001
+ floating: re
24002
+ }), [ne, re]), G = we.useMemo(() => {
24003
24003
  const J = {
24004
24004
  position: i,
24005
24005
  left: 0,
@@ -24056,7 +24056,7 @@ function Gk(t) {
24056
24056
  return r.current == null ? void 0 : r.current(...s);
24057
24057
  }, []);
24058
24058
  }
24059
- var eE = typeof document < "u" ? cE : vt;
24059
+ var eE = typeof document < "u" ? cE : ht;
24060
24060
  let UA = !1, x$ = 0;
24061
24061
  const $A = () => (
24062
24062
  // Ensure the id is unique with multiple independent versions of Floating UI
@@ -24329,9 +24329,9 @@ function U$(t, r) {
24329
24329
  function C($) {
24330
24330
  if ($.ctrlKey || !P || f.current == null)
24331
24331
  return;
24332
- const B = $.deltaY, Y = f.current.top >= -0.5, U = f.current.bottom >= -0.5, Z = P.scrollHeight - P.clientHeight, ne = B < 0 ? -1 : 1, ae = B < 0 ? "max" : "min";
24332
+ const B = $.deltaY, Y = f.current.top >= -0.5, U = f.current.bottom >= -0.5, Z = P.scrollHeight - P.clientHeight, ne = B < 0 ? -1 : 1, re = B < 0 ? "max" : "min";
24333
24333
  P.scrollHeight <= P.clientHeight || (!Y && B > 0 || !U && B < 0 ? ($.preventDefault(), tf.flushSync(() => {
24334
- g((se) => se + Math[ae](B, Z * ne));
24334
+ g((se) => se + Math[re](B, Z * ne));
24335
24335
  })) : /firefox/i.test(L4()) && (P.scrollTop += B));
24336
24336
  }
24337
24337
  const P = (p == null ? void 0 : p.current) || s.floating;
@@ -24428,9 +24428,9 @@ function H$({ children: t, enabled: r = !0 }) {
24428
24428
  });
24429
24429
  } }) : null, b$({ padding: C, apply({ availableWidth: W, availableHeight: K, elements: V }) {
24430
24430
  Object.assign(V.floating.style, { overflow: "auto", maxWidth: `${W}px`, maxHeight: `min(var(--anchor-max-height, 100vh), ${K}px)` });
24431
- } })].filter(Boolean), whileElementsMounted: d$ }), [ne = $, ae = B] = Z.placement.split("-");
24431
+ } })].filter(Boolean), whileElementsMounted: d$ }), [ne = $, re = B] = Z.placement.split("-");
24432
24432
  $ === "selection" && (ne = "selection");
24433
- let se = He(() => ({ anchor: [ne, ae].filter(Boolean).join(" ") }), [ne, ae]), ue = U$(Z, { overflowRef: p, onChange: f }), { getReferenceProps: O, getFloatingProps: M } = F$([ue]), F = ht((W) => {
24433
+ let se = He(() => ({ anchor: [ne, re].filter(Boolean).join(" ") }), [ne, re]), ue = U$(Z, { overflowRef: p, onChange: f }), { getReferenceProps: O, getFloatingProps: M } = F$([ue]), F = vt((W) => {
24434
24434
  g(W), Y.setFloating(W);
24435
24435
  });
24436
24436
  return we.createElement(kE.Provider, { value: s }, we.createElement(yg.Provider, { value: { setFloating: F, setReference: Y.setReference, styles: U, getReferenceProps: O, getFloatingProps: M, slot: se } }, t));
@@ -24457,7 +24457,7 @@ function W$(t, r) {
24457
24457
  return { ...t, gap: f, offset: p, padding: y };
24458
24458
  }
24459
24459
  function Rx(t, r, i = void 0) {
24460
- let s = Vh(), c = ht((g, T) => {
24460
+ let s = Vh(), c = vt((g, T) => {
24461
24461
  if (g == null)
24462
24462
  return [i, null];
24463
24463
  if (typeof g == "number")
@@ -24527,8 +24527,8 @@ function qk({ children: t }) {
24527
24527
  return Le.createElement(jb.Provider, { value: null }, t);
24528
24528
  }
24529
24529
  function G$(t) {
24530
- let r = ht(t), i = Ot(!1);
24531
- vt(() => (i.current = !1, () => {
24530
+ let r = vt(t), i = Ot(!1);
24531
+ ht(() => (i.current = !1, () => {
24532
24532
  i.current = !0, xE(() => {
24533
24533
  i.current && r();
24534
24534
  });
@@ -24564,9 +24564,9 @@ function X$(t) {
24564
24564
  let g = s.createElement("div");
24565
24565
  return g.setAttribute("id", "headlessui-portal-root"), s.body.appendChild(g);
24566
24566
  });
24567
- return vt(() => {
24567
+ return ht(() => {
24568
24568
  c !== null && (s != null && s.body.contains(c) || s == null || s.body.appendChild(c));
24569
- }, [c, s]), vt(() => {
24569
+ }, [c, s]), ht(() => {
24570
24570
  r || i !== null && f(i.current);
24571
24571
  }, [i, f, r]), c;
24572
24572
  }
@@ -24598,7 +24598,7 @@ function eB(t, r) {
24598
24598
  }
24599
24599
  let tE = wn(null);
24600
24600
  function tB() {
24601
- let t = Jt(tE), r = Ot([]), i = ht((f) => (r.current.push(f), t && t.register(f), () => s(f))), s = ht((f) => {
24601
+ let t = Jt(tE), r = Ot([]), i = vt((f) => (r.current.push(f), t && t.register(f), () => s(f))), s = vt((f) => {
24602
24602
  let p = r.current.indexOf(f);
24603
24603
  p !== -1 && r.current.splice(p, 1), t && t.unregister(f);
24604
24604
  }), c = He(() => ({ register: i, unregister: s, portals: r }), [i, s, r]);
@@ -24608,7 +24608,7 @@ function tB() {
24608
24608
  }
24609
24609
  let nB = ar(Z$), rB = ar(eB), aB = Object.assign(nB, { Group: rB });
24610
24610
  function iB({ defaultContainers: t = [], portals: r, mainTreeNode: i } = {}) {
24611
- let s = Wh(i), c = ht(() => {
24611
+ let s = Wh(i), c = vt(() => {
24612
24612
  var f, p;
24613
24613
  let y = [];
24614
24614
  for (let g of t)
@@ -24620,7 +24620,7 @@ function iB({ defaultContainers: t = [], portals: r, mainTreeNode: i } = {}) {
24620
24620
  g !== document.body && g !== document.head && g instanceof HTMLElement && g.id !== "headlessui-portal-root" && (i && (g.contains(i) || g.contains((p = i == null ? void 0 : i.getRootNode()) == null ? void 0 : p.host)) || y.some((T) => g.contains(T)) || y.push(g));
24621
24621
  return y;
24622
24622
  });
24623
- return { resolveContainers: c, contains: ht((f) => c().some((p) => p.contains(f))) };
24623
+ return { resolveContainers: c, contains: vt((f) => c().some((p) => p.contains(f))) };
24624
24624
  }
24625
24625
  let Kk = wn(null);
24626
24626
  function Zk({ children: t, node: r }) {
@@ -24678,7 +24678,7 @@ function Vb(t) {
24678
24678
  return "children" in t ? Vb(t.children) : t.current.filter(({ el: r }) => r.current !== null).filter(({ state: r }) => r === "visible").length > 0;
24679
24679
  }
24680
24680
  function r_(t, r) {
24681
- let i = Jo(t), s = Ot([]), c = e_(), f = Vh(), p = ht((C, P = Kd.Hidden) => {
24681
+ let i = Jo(t), s = Ot([]), c = e_(), f = Vh(), p = vt((C, P = Kd.Hidden) => {
24682
24682
  let $ = s.current.findIndex(({ el: B }) => B === C);
24683
24683
  $ !== -1 && (ta(P, { [Kd.Unmount]() {
24684
24684
  s.current.splice($, 1);
@@ -24688,16 +24688,16 @@ function r_(t, r) {
24688
24688
  var B;
24689
24689
  !Vb(s) && c.current && ((B = i.current) == null || B.call(i));
24690
24690
  }));
24691
- }), y = ht((C) => {
24691
+ }), y = vt((C) => {
24692
24692
  let P = s.current.find(({ el: $ }) => $ === C);
24693
24693
  return P ? P.state !== "visible" && (P.state = "visible") : s.current.push({ el: C, state: "visible" }), () => p(C, Kd.Unmount);
24694
- }), g = Ot([]), T = Ot(Promise.resolve()), S = Ot({ enter: [], leave: [] }), R = ht((C, P, $) => {
24694
+ }), g = Ot([]), T = Ot(Promise.resolve()), S = Ot({ enter: [], leave: [] }), R = vt((C, P, $) => {
24695
24695
  g.current.splice(0), r && (r.chains.current[P] = r.chains.current[P].filter(([B]) => B !== C)), r == null || r.chains.current[P].push([C, new Promise((B) => {
24696
24696
  g.current.push(B);
24697
24697
  })]), r == null || r.chains.current[P].push([C, new Promise((B) => {
24698
24698
  Promise.all(S.current[P].map(([Y, U]) => U)).then(() => B());
24699
24699
  })]), P === "enter" ? T.current = T.current.then(() => r == null ? void 0 : r.wait.current).then(() => $(P)) : $(P);
24700
- }), A = ht((C, P, $) => {
24700
+ }), A = vt((C, P, $) => {
24701
24701
  Promise.all(S.current[P].splice(0).map(([B, Y]) => Y)).then(() => {
24702
24702
  var B;
24703
24703
  (B = g.current.shift()) == null || B();
@@ -24708,39 +24708,39 @@ function r_(t, r) {
24708
24708
  let a_ = $l, i_ = Cu.RenderStrategy;
24709
24709
  function uB(t, r) {
24710
24710
  var i, s;
24711
- let { transition: c = !0, beforeEnter: f, afterEnter: p, beforeLeave: y, afterLeave: g, enter: T, enterFrom: S, enterTo: R, entered: A, leave: C, leaveFrom: P, leaveTo: $, ...B } = t, Y = Ot(null), U = n_(t), Z = _r(...U ? [Y, r] : r === null ? [] : [r]), ne = (i = B.unmount) == null || i ? Kd.Unmount : Kd.Hidden, { show: ae, appear: se, initial: ue } = lB(), [O, M] = Yt(ae ? "visible" : "hidden"), F = sB(), { register: W, unregister: K } = F;
24711
+ let { transition: c = !0, beforeEnter: f, afterEnter: p, beforeLeave: y, afterLeave: g, enter: T, enterFrom: S, enterTo: R, entered: A, leave: C, leaveFrom: P, leaveTo: $, ...B } = t, Y = Ot(null), U = n_(t), Z = _r(...U ? [Y, r] : r === null ? [] : [r]), ne = (i = B.unmount) == null || i ? Kd.Unmount : Kd.Hidden, { show: re, appear: se, initial: ue } = lB(), [O, M] = Yt(re ? "visible" : "hidden"), F = sB(), { register: W, unregister: K } = F;
24712
24712
  qn(() => W(Y), [W, Y]), qn(() => {
24713
24713
  if (ne === Kd.Hidden && Y.current) {
24714
- if (ae && O !== "visible") {
24714
+ if (re && O !== "visible") {
24715
24715
  M("visible");
24716
24716
  return;
24717
24717
  }
24718
24718
  return ta(O, { hidden: () => K(Y), visible: () => W(Y) });
24719
24719
  }
24720
- }, [O, Y, W, K, ae, ne]);
24720
+ }, [O, Y, W, K, re, ne]);
24721
24721
  let V = ME();
24722
24722
  qn(() => {
24723
24723
  if (U && V && O === "visible" && Y.current === null)
24724
24724
  throw new Error("Did you forget to passthrough the `ref` to the actual DOM node?");
24725
24725
  }, [Y, O, V, U]);
24726
- let Q = ue && !se, z = se && ae && ue, G = Ot(!1), J = r_(() => {
24726
+ let Q = ue && !se, z = se && re && ue, G = Ot(!1), J = r_(() => {
24727
24727
  G.current || (M("hidden"), K(Y));
24728
- }, F), L = ht((Pe) => {
24728
+ }, F), L = vt((Pe) => {
24729
24729
  G.current = !0;
24730
24730
  let Ye = Pe ? "enter" : "leave";
24731
24731
  J.onStart(Y, Ye, (Ge) => {
24732
24732
  Ge === "enter" ? f == null || f() : Ge === "leave" && (y == null || y());
24733
24733
  });
24734
- }), H = ht((Pe) => {
24734
+ }), H = vt((Pe) => {
24735
24735
  let Ye = Pe ? "enter" : "leave";
24736
24736
  G.current = !1, J.onStop(Y, Ye, (Ge) => {
24737
24737
  Ge === "enter" ? p == null || p() : Ge === "leave" && (g == null || g());
24738
24738
  }), Ye === "leave" && !Vb(J) && (M("hidden"), K(Y));
24739
24739
  });
24740
- vt(() => {
24741
- U && c || (L(ae), H(ae));
24742
- }, [ae, U, c]);
24743
- let le = (() => !(!c || !U || !V || Q))(), [, ye] = Ib(le, Y, ae, { start: L, end: H }), Ce = Qd({ ref: Z, className: ((s = Xx(B.className, z && T, z && S, ye.enter && T, ye.enter && ye.closed && S, ye.enter && !ye.closed && R, ye.leave && C, ye.leave && !ye.closed && P, ye.leave && ye.closed && $, !ye.transition && ae && A)) == null ? void 0 : s.trim()) || void 0, ...Fb(ye) }), Ue = 0;
24740
+ ht(() => {
24741
+ U && c || (L(re), H(re));
24742
+ }, [re, U, c]);
24743
+ let le = (() => !(!c || !U || !V || Q))(), [, ye] = Ib(le, Y, re, { start: L, end: H }), Ce = Qd({ ref: Z, className: ((s = Xx(B.className, z && T, z && S, ye.enter && T, ye.enter && ye.closed && S, ye.enter && !ye.closed && R, ye.leave && C, ye.leave && !ye.closed && P, ye.leave && ye.closed && $, !ye.transition && re && A)) == null ? void 0 : s.trim()) || void 0, ...Fb(ye) }), Ue = 0;
24744
24744
  return O === "visible" && (Ue |= ri.Open), O === "hidden" && (Ue |= ri.Closed), ye.enter && (Ue |= ri.Opening), ye.leave && (Ue |= ri.Closing), Le.createElement(Hb.Provider, { value: J }, Le.createElement(_E, { value: Ue }, ur({ ourProps: Ce, theirProps: B, defaultTag: a_, features: i_, visible: O === "visible", name: "Transition.Child" })));
24745
24745
  }
24746
24746
  function cB(t, r) {
@@ -24759,10 +24759,10 @@ function cB(t, r) {
24759
24759
  Ok(i, p, () => R("hidden")), qn(() => {
24760
24760
  i ? R("visible") : !Vb(A) && p.current !== null && R("hidden");
24761
24761
  }, [i, A]);
24762
- let Y = { unmount: c }, U = ht(() => {
24762
+ let Y = { unmount: c }, U = vt(() => {
24763
24763
  var ne;
24764
24764
  C && P(!1), (ne = t.beforeEnter) == null || ne.call(t);
24765
- }), Z = ht(() => {
24765
+ }), Z = vt(() => {
24766
24766
  var ne;
24767
24767
  C && P(!1), (ne = t.beforeLeave) == null || ne.call(t);
24768
24768
  });
@@ -24818,7 +24818,7 @@ let bB = $l;
24818
24818
  function TB(t, r) {
24819
24819
  let { defaultOpen: i = !1, ...s } = t, c = Ot(null), f = _r(r, CE((B) => {
24820
24820
  c.current = B;
24821
- }, t.as === void 0 || t.as === $l)), p = Ot(null), y = Ot(null), g = zh(wB, { disclosureState: i ? 0 : 1, linkedPanel: !1, buttonRef: y, panelRef: p, buttonId: null, panelId: null }), [{ disclosureState: T, buttonId: S }, R] = g, A = ht((B) => {
24821
+ }, t.as === void 0 || t.as === $l)), p = Ot(null), y = Ot(null), g = zh(wB, { disclosureState: i ? 0 : 1, linkedPanel: !1, buttonRef: y, panelRef: p, buttonId: null, panelId: null }), [{ disclosureState: T, buttonId: S }, R] = g, A = vt((B) => {
24822
24822
  R({ type: 1 });
24823
24823
  let Y = Fp(c);
24824
24824
  if (!Y || !S)
@@ -24831,13 +24831,13 @@ function TB(t, r) {
24831
24831
  let SB = "button";
24832
24832
  function xB(t, r) {
24833
24833
  let i = tl(), { id: s = `headlessui-disclosure-button-${i}`, disabled: c = !1, autoFocus: f = !1, ...p } = t, [y, g] = PE("Disclosure.Button"), T = gB(), S = T === null ? !1 : T === y.panelId, R = Ot(null), A = _r(R, r, S ? null : y.buttonRef), C = EE();
24834
- vt(() => {
24834
+ ht(() => {
24835
24835
  if (!S)
24836
24836
  return g({ type: 2, buttonId: s }), () => {
24837
24837
  g({ type: 2, buttonId: null });
24838
24838
  };
24839
24839
  }, [s, g, S]);
24840
- let P = ht((F) => {
24840
+ let P = vt((F) => {
24841
24841
  var W;
24842
24842
  if (S) {
24843
24843
  if (y.disclosureState === 1)
@@ -24855,16 +24855,16 @@ function xB(t, r) {
24855
24855
  F.preventDefault(), F.stopPropagation(), g({ type: 0 });
24856
24856
  break;
24857
24857
  }
24858
- }), $ = ht((F) => {
24858
+ }), $ = vt((F) => {
24859
24859
  switch (F.key) {
24860
24860
  case rr.Space:
24861
24861
  F.preventDefault();
24862
24862
  break;
24863
24863
  }
24864
- }), B = ht((F) => {
24864
+ }), B = vt((F) => {
24865
24865
  var W;
24866
24866
  _b(F.currentTarget) || c || (S ? (g({ type: 0 }), (W = y.buttonRef.current) == null || W.focus()) : g({ type: 0 }));
24867
- }), { isFocusVisible: Y, focusProps: U } = mg({ autoFocus: f }), { isHovered: Z, hoverProps: ne } = Ab({ isDisabled: c }), { pressed: ae, pressProps: se } = Ob({ disabled: c }), ue = He(() => ({ open: y.disclosureState === 0, hover: Z, active: ae, disabled: c, focus: Y, autofocus: f }), [y, Z, ae, Y, c, f]), O = Lb(t, R), M = nf(S ? { ref: A, type: O, disabled: c || void 0, autoFocus: f, onKeyDown: P, onClick: B } : { ref: A, id: s, type: O, "aria-expanded": y.disclosureState === 0, "aria-controls": y.linkedPanel ? y.panelId : void 0, disabled: c || void 0, autoFocus: f, onKeyDown: P, onKeyUp: $, onClick: B }, U, ne, se);
24867
+ }), { isFocusVisible: Y, focusProps: U } = mg({ autoFocus: f }), { isHovered: Z, hoverProps: ne } = Ab({ isDisabled: c }), { pressed: re, pressProps: se } = Ob({ disabled: c }), ue = He(() => ({ open: y.disclosureState === 0, hover: Z, active: re, disabled: c, focus: Y, autofocus: f }), [y, Z, re, Y, c, f]), O = Lb(t, R), M = nf(S ? { ref: A, type: O, disabled: c || void 0, autoFocus: f, onKeyDown: P, onClick: B } : { ref: A, id: s, type: O, "aria-expanded": y.disclosureState === 0, "aria-controls": y.linkedPanel ? y.panelId : void 0, disabled: c || void 0, autoFocus: f, onKeyDown: P, onKeyUp: $, onClick: B }, U, ne, se);
24868
24868
  return ur({ mergeRefs: C, ourProps: M, theirProps: p, slot: ue, defaultTag: SB, name: "Disclosure.Button" });
24869
24869
  }
24870
24870
  let EB = "div", CB = Cu.RenderStrategy | Cu.Static;
@@ -24872,7 +24872,7 @@ function RB(t, r) {
24872
24872
  let i = tl(), { id: s = `headlessui-disclosure-panel-${i}`, transition: c = !1, ...f } = t, [p, y] = PE("Disclosure.Panel"), { close: g } = l_("Disclosure.Panel"), T = EE(), S = _r(r, p.panelRef, (B) => {
24873
24873
  mB(() => y({ type: B ? 4 : 5 }));
24874
24874
  });
24875
- vt(() => (y({ type: 3, panelId: s }), () => {
24875
+ ht(() => (y({ type: 3, panelId: s }), () => {
24876
24876
  y({ type: 3, panelId: null });
24877
24877
  }), [s, y]);
24878
24878
  let R = gg(), [A, C] = Ib(c, p.panelRef, R !== null ? (R & ri.Open) === ri.Open : p.disclosureState === 0), P = He(() => ({ open: p.disclosureState === 0, close: g }), [p.disclosureState, g]), $ = { ref: S, id: s, ...Fb(C) };
@@ -24941,11 +24941,11 @@ function UB(t, r) {
24941
24941
  return !0;
24942
24942
  let L = Pb(), H = L.indexOf(S), le = (H + L.length - 1) % L.length, ye = (H + 1) % L.length, Ce = L[le], Ue = L[ye];
24943
24943
  return !A.contains(Ce) && !A.contains(Ue);
24944
- }, [S, A]), ne = Jo(R), ae = Jo(C), se = He(() => ({ buttonId: ne, panelId: ae, close: () => Y({ type: 1 }) }), [ne, ae, Y]), ue = c_(), O = ue == null ? void 0 : ue.registerPopover, M = ht(() => {
24944
+ }, [S, A]), ne = Jo(R), re = Jo(C), se = He(() => ({ buttonId: ne, panelId: re, close: () => Y({ type: 1 }) }), [ne, re, Y]), ue = c_(), O = ue == null ? void 0 : ue.registerPopover, M = vt(() => {
24945
24945
  var L;
24946
24946
  return (L = ue == null ? void 0 : ue.isFocusWithinPopoverGroup()) != null ? L : (U == null ? void 0 : U.activeElement) && ((S == null ? void 0 : S.contains(U.activeElement)) || (A == null ? void 0 : A.contains(U.activeElement)));
24947
24947
  });
24948
- vt(() => O == null ? void 0 : O(se), [O, se]);
24948
+ ht(() => O == null ? void 0 : O(se), [O, se]);
24949
24949
  let [F, W] = tB(), K = Jk(S), V = iB({ mainTreeNode: K, portals: F, defaultContainers: [S, A] });
24950
24950
  b4(U == null ? void 0 : U.defaultView, "focus", (L) => {
24951
24951
  var H, le, ye, Ce, Ue, Pe;
@@ -24953,7 +24953,7 @@ function UB(t, r) {
24953
24953
  }, !0), w4(T === 0, V.resolveContainers, (L, H) => {
24954
24954
  Y({ type: 1 }), kk(H, RE.Loose) || (L.preventDefault(), S == null || S.focus());
24955
24955
  });
24956
- let Q = ht((L) => {
24956
+ let Q = vt((L) => {
24957
24957
  Y({ type: 1 });
24958
24958
  let H = (() => L ? L instanceof HTMLElement ? L : "current" in L && L.current instanceof HTMLElement ? L.current : S : S)();
24959
24959
  H == null || H.focus();
@@ -24963,7 +24963,7 @@ function UB(t, r) {
24963
24963
  let $B = "button";
24964
24964
  function BB(t, r) {
24965
24965
  let i = tl(), { id: s = `headlessui-popover-button-${i}`, disabled: c = !1, autoFocus: f = !1, ...p } = t, [y, g] = Wb("Popover.Button"), { isPortalled: T } = UE("Popover.Button"), S = Ot(null), R = `headlessui-focus-sentinel-${tl()}`, A = c_(), C = A == null ? void 0 : A.closeOthers, P = LB() !== null;
24966
- vt(() => {
24966
+ ht(() => {
24967
24967
  if (!P)
24968
24968
  return g({ type: 3, buttonId: s }), () => {
24969
24969
  g({ type: 3, buttonId: null });
@@ -24977,7 +24977,7 @@ function BB(t, r) {
24977
24977
  le !== -1 && y.buttons.current.splice(le, 1);
24978
24978
  }
24979
24979
  y.buttons.current.length > 1 && console.warn("You are already using a <Popover.Button /> but only 1 <Popover.Button /> is supported."), H && g({ type: 2, button: H });
24980
- }), Y = _r(S, r), U = Wh(S), Z = ht((H) => {
24980
+ }), Y = _r(S, r), U = Wh(S), Z = vt((H) => {
24981
24981
  var le, ye, Ce;
24982
24982
  if (P) {
24983
24983
  if (y.popoverState === 1)
@@ -25002,14 +25002,14 @@ function BB(t, r) {
25002
25002
  H.preventDefault(), H.stopPropagation(), g({ type: 1 });
25003
25003
  break;
25004
25004
  }
25005
- }), ne = ht((H) => {
25005
+ }), ne = vt((H) => {
25006
25006
  P || H.key === rr.Space && H.preventDefault();
25007
- }), ae = ht((H) => {
25007
+ }), re = vt((H) => {
25008
25008
  var le, ye;
25009
25009
  _b(H.currentTarget) || c || (P ? (g({ type: 1 }), (le = y.button) == null || le.focus()) : (H.preventDefault(), H.stopPropagation(), y.popoverState === 1 && (C == null || C(y.buttonId)), g({ type: 0 }), (ye = y.button) == null || ye.focus()));
25010
- }), se = ht((H) => {
25010
+ }), se = vt((H) => {
25011
25011
  H.preventDefault(), H.stopPropagation();
25012
- }), { isFocusVisible: ue, focusProps: O } = mg({ autoFocus: f }), { isHovered: M, hoverProps: F } = Ab({ isDisabled: c }), { pressed: W, pressProps: K } = Ob({ disabled: c }), V = y.popoverState === 0, Q = He(() => ({ open: V, active: W || V, disabled: c, hover: M, focus: ue, autofocus: f }), [V, M, ue, W, c, f]), z = Lb(t, S), G = nf(P ? { ref: Y, type: z, onKeyDown: Z, onClick: ae, disabled: c || void 0, autoFocus: f } : { ref: B, id: y.buttonId, type: z, "aria-expanded": y.popoverState === 0, "aria-controls": y.panel ? y.panelId : void 0, disabled: c || void 0, autoFocus: f, onKeyDown: Z, onKeyUp: ne, onClick: ae, onMouseDown: se }, O, F, K), J = t_(), L = ht(() => {
25012
+ }), { isFocusVisible: ue, focusProps: O } = mg({ autoFocus: f }), { isHovered: M, hoverProps: F } = Ab({ isDisabled: c }), { pressed: W, pressProps: K } = Ob({ disabled: c }), V = y.popoverState === 0, Q = He(() => ({ open: V, active: W || V, disabled: c, hover: M, focus: ue, autofocus: f }), [V, M, ue, W, c, f]), z = Lb(t, S), G = nf(P ? { ref: Y, type: z, onKeyDown: Z, onClick: re, disabled: c || void 0, autoFocus: f } : { ref: B, id: y.buttonId, type: z, "aria-expanded": y.popoverState === 0, "aria-controls": y.panel ? y.panelId : void 0, disabled: c || void 0, autoFocus: f, onKeyDown: Z, onKeyUp: ne, onClick: re, onMouseDown: se }, O, F, K), J = t_(), L = vt(() => {
25013
25013
  let H = y.panel;
25014
25014
  if (!H)
25015
25015
  return;
@@ -25022,7 +25022,7 @@ function BB(t, r) {
25022
25022
  }
25023
25023
  let jB = "div", zB = Cu.RenderStrategy | Cu.Static;
25024
25024
  function d_(t, r) {
25025
- let i = tl(), { id: s = `headlessui-popover-backdrop-${i}`, transition: c = !1, ...f } = t, [{ popoverState: p }, y] = Wb("Popover.Backdrop"), g = Ot(null), T = _r(r, g), S = gg(), [R, A] = Ib(c, g, S !== null ? (S & ri.Open) === ri.Open : p === 0), C = ht((B) => {
25025
+ let i = tl(), { id: s = `headlessui-popover-backdrop-${i}`, transition: c = !1, ...f } = t, [{ popoverState: p }, y] = Wb("Popover.Backdrop"), g = Ot(null), T = _r(r, g), S = gg(), [R, A] = Ib(c, g, S !== null ? (S & ri.Open) === ri.Open : p === 0), C = vt((B) => {
25026
25026
  if (_b(B.currentTarget))
25027
25027
  return B.preventDefault();
25028
25028
  y({ type: 1 });
@@ -25033,7 +25033,7 @@ let HB = "div", VB = Cu.RenderStrategy | Cu.Static;
25033
25033
  function WB(t, r) {
25034
25034
  let i = tl(), { id: s = `headlessui-popover-panel-${i}`, focus: c = !1, anchor: f, portal: p = !1, modal: y = !1, transition: g = !1, ...T } = t, [S, R] = Wb("Popover.Panel"), { close: A, isPortalled: C } = UE("Popover.Panel"), P = `headlessui-focus-sentinel-before-${i}`, $ = `headlessui-focus-sentinel-after-${i}`, B = Ot(null), Y = $$(f), [U, Z] = z$(Y), ne = j$();
25035
25035
  Y && (p = !0);
25036
- let ae = _r(B, r, Y ? U : null, (L) => {
25036
+ let re = _r(B, r, Y ? U : null, (L) => {
25037
25037
  R({ type: 4, panel: L });
25038
25038
  }), se = Wh(B), ue = EE();
25039
25039
  qn(() => (R({ type: 5, panelId: s }), () => {
@@ -25045,7 +25045,7 @@ function WB(t, r) {
25045
25045
  });
25046
25046
  let W = S.__demoMode ? !1 : y && M;
25047
25047
  R4(W, se);
25048
- let K = ht((L) => {
25048
+ let K = vt((L) => {
25049
25049
  var H;
25050
25050
  switch (L.key) {
25051
25051
  case rr.Escape:
@@ -25055,20 +25055,20 @@ function WB(t, r) {
25055
25055
  break;
25056
25056
  }
25057
25057
  });
25058
- vt(() => {
25058
+ ht(() => {
25059
25059
  var L;
25060
25060
  t.static || S.popoverState === 1 && ((L = t.unmount) == null || L) && R({ type: 4, panel: null });
25061
- }, [S.popoverState, t.unmount, t.static, R]), vt(() => {
25061
+ }, [S.popoverState, t.unmount, t.static, R]), ht(() => {
25062
25062
  if (S.__demoMode || !c || S.popoverState !== 0 || !B.current)
25063
25063
  return;
25064
25064
  let L = se == null ? void 0 : se.activeElement;
25065
25065
  B.current.contains(L) || Ko(B.current, Ta.First);
25066
25066
  }, [S.__demoMode, c, B.current, S.popoverState]);
25067
- let V = He(() => ({ open: S.popoverState === 0, close: A }), [S.popoverState, A]), Q = nf(Y ? ne() : {}, { ref: ae, id: s, onKeyDown: K, onBlur: c && S.popoverState === 0 ? (L) => {
25067
+ let V = He(() => ({ open: S.popoverState === 0, close: A }), [S.popoverState, A]), Q = nf(Y ? ne() : {}, { ref: re, id: s, onKeyDown: K, onBlur: c && S.popoverState === 0 ? (L) => {
25068
25068
  var H, le, ye, Ce, Ue;
25069
25069
  let Pe = L.relatedTarget;
25070
25070
  Pe && B.current && ((H = B.current) != null && H.contains(Pe) || (R({ type: 1 }), ((ye = (le = S.beforePanelSentinel.current) == null ? void 0 : le.contains) != null && ye.call(le, Pe) || (Ue = (Ce = S.afterPanelSentinel.current) == null ? void 0 : Ce.contains) != null && Ue.call(Ce, Pe)) && Pe.focus({ preventScroll: !0 })));
25071
- } : void 0, tabIndex: -1, style: { ...T.style, ...Z, "--button-width": s4(S.button, !0).width }, ...Fb(F) }), z = t_(), G = ht(() => {
25071
+ } : void 0, tabIndex: -1, style: { ...T.style, ...Z, "--button-width": s4(S.button, !0).width }, ...Fb(F) }), z = t_(), G = vt(() => {
25072
25072
  let L = B.current;
25073
25073
  if (!L)
25074
25074
  return;
@@ -25082,7 +25082,7 @@ function WB(t, r) {
25082
25082
  } });
25083
25083
  }
25084
25084
  H();
25085
- }), J = ht(() => {
25085
+ }), J = vt(() => {
25086
25086
  let L = B.current;
25087
25087
  if (!L)
25088
25088
  return;
@@ -25109,7 +25109,7 @@ function WB(t, r) {
25109
25109
  }
25110
25110
  let GB = "div";
25111
25111
  function YB(t, r) {
25112
- let i = Ot(null), s = _r(i, r), [c, f] = Yt([]), p = ht((P) => {
25112
+ let i = Ot(null), s = _r(i, r), [c, f] = Yt([]), p = vt((P) => {
25113
25113
  f(($) => {
25114
25114
  let B = $.indexOf(P);
25115
25115
  if (B !== -1) {
@@ -25118,7 +25118,7 @@ function YB(t, r) {
25118
25118
  }
25119
25119
  return $;
25120
25120
  });
25121
- }), y = ht((P) => (f(($) => [...$, P]), () => p(P))), g = ht(() => {
25121
+ }), y = vt((P) => (f(($) => [...$, P]), () => p(P))), g = vt(() => {
25122
25122
  var P;
25123
25123
  let $ = Fp(i);
25124
25124
  if (!$)
@@ -25128,7 +25128,7 @@ function YB(t, r) {
25128
25128
  var U, Z;
25129
25129
  return ((U = $.getElementById(Y.buttonId.current)) == null ? void 0 : U.contains(B)) || ((Z = $.getElementById(Y.panelId.current)) == null ? void 0 : Z.contains(B));
25130
25130
  });
25131
- }), T = ht((P) => {
25131
+ }), T = vt((P) => {
25132
25132
  for (let $ of c)
25133
25133
  $.buttonId.current !== P && $.close();
25134
25134
  }), S = He(() => ({ registerPopover: y, unregisterPopover: p, isFocusWithinPopoverGroup: g, closeOthers: T }), [y, p, g, T]), R = He(() => ({}), []), A = t, C = { ref: s };
@@ -25147,20 +25147,20 @@ function JB(t) {
25147
25147
  let ej = "button";
25148
25148
  function tj(t, r) {
25149
25149
  var i;
25150
- let s = tl(), c = yk(), f = kb(), { id: p = c || `headlessui-switch-${s}`, disabled: y = f || !1, checked: g, defaultChecked: T, onChange: S, name: R, value: A, form: C, autoFocus: P = !1, ...$ } = t, B = Jt(BE), Y = Ot(null), U = _r(Y, r, B === null ? null : B.setSwitch), Z = zU(T), [ne, ae] = jU(g, S, Z ?? !1), se = Vh(), [ue, O] = Yt(!1), M = ht(() => {
25151
- O(!0), ae == null || ae(!ne), se.nextFrame(() => {
25150
+ let s = tl(), c = yk(), f = kb(), { id: p = c || `headlessui-switch-${s}`, disabled: y = f || !1, checked: g, defaultChecked: T, onChange: S, name: R, value: A, form: C, autoFocus: P = !1, ...$ } = t, B = Jt(BE), Y = Ot(null), U = _r(Y, r, B === null ? null : B.setSwitch), Z = zU(T), [ne, re] = jU(g, S, Z ?? !1), se = Vh(), [ue, O] = Yt(!1), M = vt(() => {
25151
+ O(!0), re == null || re(!ne), se.nextFrame(() => {
25152
25152
  O(!1);
25153
25153
  });
25154
- }), F = ht((Pe) => {
25154
+ }), F = vt((Pe) => {
25155
25155
  if (_b(Pe.currentTarget))
25156
25156
  return Pe.preventDefault();
25157
25157
  Pe.preventDefault(), M();
25158
- }), W = ht((Pe) => {
25158
+ }), W = vt((Pe) => {
25159
25159
  Pe.key === rr.Space ? (Pe.preventDefault(), M()) : Pe.key === rr.Enter && HU(Pe.currentTarget);
25160
- }), K = ht((Pe) => Pe.preventDefault()), V = Sk(), Q = ZU(), { isFocusVisible: z, focusProps: G } = mg({ autoFocus: P }), { isHovered: J, hoverProps: L } = Ab({ isDisabled: y }), { pressed: H, pressProps: le } = Ob({ disabled: y }), ye = He(() => ({ checked: ne, disabled: y, hover: J, focus: z, active: H, autofocus: P, changing: ue }), [ne, J, z, H, y, ue, P]), Ce = nf({ id: p, ref: U, role: "switch", type: Lb(t, Y), tabIndex: t.tabIndex === -1 ? 0 : (i = t.tabIndex) != null ? i : 0, "aria-checked": ne, "aria-labelledby": V, "aria-describedby": Q, disabled: y || void 0, autoFocus: P, onClick: F, onKeyUp: W, onKeyPress: K }, G, L, le), Ue = _t(() => {
25160
+ }), K = vt((Pe) => Pe.preventDefault()), V = Sk(), Q = ZU(), { isFocusVisible: z, focusProps: G } = mg({ autoFocus: P }), { isHovered: J, hoverProps: L } = Ab({ isDisabled: y }), { pressed: H, pressProps: le } = Ob({ disabled: y }), ye = He(() => ({ checked: ne, disabled: y, hover: J, focus: z, active: H, autofocus: P, changing: ue }), [ne, J, z, H, y, ue, P]), Ce = nf({ id: p, ref: U, role: "switch", type: Lb(t, Y), tabIndex: t.tabIndex === -1 ? 0 : (i = t.tabIndex) != null ? i : 0, "aria-checked": ne, "aria-labelledby": V, "aria-describedby": Q, disabled: y || void 0, autoFocus: P, onClick: F, onKeyUp: W, onKeyPress: K }, G, L, le), Ue = _t(() => {
25161
25161
  if (Z !== void 0)
25162
- return ae == null ? void 0 : ae(Z);
25163
- }, [ae, Z]);
25162
+ return re == null ? void 0 : re(Z);
25163
+ }, [re, Z]);
25164
25164
  return Le.createElement(Le.Fragment, null, R != null && Le.createElement(qU, { disabled: y, data: { [R]: A || "on" }, overrides: { type: "checkbox", checked: ne }, form: C, onReset: Ue }), ur({ ourProps: Ce, theirProps: $, slot: ye, defaultTag: ej, name: "Switch" }));
25165
25165
  }
25166
25166
  let nj = ar(tj), rj = JB, aj = Ek, ij = n4, oj = Object.assign(nj, { Group: rj, Label: aj, Description: ij });
@@ -25270,16 +25270,16 @@ function vj(t, r) {
25270
25270
  let { defaultIndex: i = 0, vertical: s = !1, manual: c = !1, onChange: f, selectedIndex: p = null, ...y } = t;
25271
25271
  const g = s ? "vertical" : "horizontal", T = c ? "manual" : "auto";
25272
25272
  let S = p !== null, R = Jo({ isControlled: S }), A = _r(r), [C, P] = zh(mj, { info: R, selectedIndex: p ?? i, tabs: [], panels: [] }), $ = He(() => ({ selectedIndex: C.selectedIndex }), [C.selectedIndex]), B = Jo(f || (() => {
25273
- })), Y = Jo(C.tabs), U = He(() => ({ orientation: g, activation: T, ...C }), [g, T, C]), Z = ht((M) => (P({ type: 1, tab: M }), () => P({ type: 2, tab: M }))), ne = ht((M) => (P({ type: 3, panel: M }), () => P({ type: 4, panel: M }))), ae = ht((M) => {
25273
+ })), Y = Jo(C.tabs), U = He(() => ({ orientation: g, activation: T, ...C }), [g, T, C]), Z = vt((M) => (P({ type: 1, tab: M }), () => P({ type: 2, tab: M }))), ne = vt((M) => (P({ type: 3, panel: M }), () => P({ type: 4, panel: M }))), re = vt((M) => {
25274
25274
  se.current !== M && B.current(M), S || P({ type: 0, index: M });
25275
- }), se = Jo(S ? t.selectedIndex : C.selectedIndex), ue = He(() => ({ registerTab: Z, registerPanel: ne, change: ae }), []);
25275
+ }), se = Jo(S ? t.selectedIndex : C.selectedIndex), ue = He(() => ({ registerTab: Z, registerPanel: ne, change: re }), []);
25276
25276
  qn(() => {
25277
25277
  P({ type: 0, index: p ?? i });
25278
25278
  }, [p]), qn(() => {
25279
25279
  if (se.current === void 0 || C.tabs.length <= 0)
25280
25280
  return;
25281
25281
  let M = Dh(C.tabs, (F) => F.current);
25282
- M.some((F, W) => C.tabs[W] !== F) && ae(M.indexOf(C.tabs[se.current]));
25282
+ M.some((F, W) => C.tabs[W] !== F) && re(M.indexOf(C.tabs[se.current]));
25283
25283
  });
25284
25284
  let O = { ref: A };
25285
25285
  return Le.createElement(uj, null, Le.createElement(zE.Provider, { value: ue }, Le.createElement(jE.Provider, { value: U }, U.tabs.length <= 0 && Le.createElement(lj, { onFocus: () => {
@@ -25302,7 +25302,7 @@ function bj(t, r) {
25302
25302
  qn(() => P.registerTab(B), [P, B]);
25303
25303
  let U = v_("tabs"), Z = A.indexOf(B);
25304
25304
  Z === -1 && (Z = U);
25305
- let ne = Z === R, ae = ht((L) => {
25305
+ let ne = Z === R, re = vt((L) => {
25306
25306
  var H;
25307
25307
  let le = L();
25308
25308
  if (le === Zd.Success && S === "auto") {
@@ -25310,7 +25310,7 @@ function bj(t, r) {
25310
25310
  Ce !== -1 && P.change(Ce);
25311
25311
  }
25312
25312
  return le;
25313
- }), se = ht((L) => {
25313
+ }), se = vt((L) => {
25314
25314
  let H = A.map((le) => le.current).filter(Boolean);
25315
25315
  if (L.key === rr.Space || L.key === rr.Enter) {
25316
25316
  L.preventDefault(), L.stopPropagation(), P.change(Z);
@@ -25319,23 +25319,23 @@ function bj(t, r) {
25319
25319
  switch (L.key) {
25320
25320
  case rr.Home:
25321
25321
  case rr.PageUp:
25322
- return L.preventDefault(), L.stopPropagation(), ae(() => Ko(H, Ta.First));
25322
+ return L.preventDefault(), L.stopPropagation(), re(() => Ko(H, Ta.First));
25323
25323
  case rr.End:
25324
25324
  case rr.PageDown:
25325
- return L.preventDefault(), L.stopPropagation(), ae(() => Ko(H, Ta.Last));
25325
+ return L.preventDefault(), L.stopPropagation(), re(() => Ko(H, Ta.Last));
25326
25326
  }
25327
- if (ae(() => ta(T, { vertical() {
25327
+ if (re(() => ta(T, { vertical() {
25328
25328
  return L.key === rr.ArrowUp ? Ko(H, Ta.Previous | Ta.WrapAround) : L.key === rr.ArrowDown ? Ko(H, Ta.Next | Ta.WrapAround) : Zd.Error;
25329
25329
  }, horizontal() {
25330
25330
  return L.key === rr.ArrowLeft ? Ko(H, Ta.Previous | Ta.WrapAround) : L.key === rr.ArrowRight ? Ko(H, Ta.Next | Ta.WrapAround) : Zd.Error;
25331
25331
  } })) === Zd.Success)
25332
25332
  return L.preventDefault();
25333
- }), ue = Ot(!1), O = ht(() => {
25333
+ }), ue = Ot(!1), O = vt(() => {
25334
25334
  var L;
25335
25335
  ue.current || (ue.current = !0, (L = B.current) == null || L.focus({ preventScroll: !0 }), P.change(Z), xE(() => {
25336
25336
  ue.current = !1;
25337
25337
  }));
25338
- }), M = ht((L) => {
25338
+ }), M = vt((L) => {
25339
25339
  L.preventDefault();
25340
25340
  }), { isFocusVisible: F, focusProps: W } = mg({ autoFocus: y }), { isHovered: K, hoverProps: V } = Ab({ isDisabled: p }), { pressed: Q, pressProps: z } = Ob({ disabled: p }), G = He(() => ({ selected: ne, hover: K, active: Q, focus: F, autofocus: y, disabled: p }), [ne, K, F, Q, y, p]), J = nf({ ref: Y, onKeyDown: se, onMouseDown: M, onClick: O, id: f, role: "tab", type: Lb(t, B), "aria-controls": (s = (i = C[Z]) == null ? void 0 : i.current) == null ? void 0 : s.id, "aria-selected": ne, tabIndex: ne ? 0 : -1, disabled: p || void 0, autoFocus: y }, W, V, z);
25341
25341
  return ur({ ourProps: J, theirProps: g, slot: G, defaultTag: wj, name: "Tabs.Tab" });
@@ -25352,8 +25352,8 @@ function Cj(t, r) {
25352
25352
  qn(() => C.registerPanel(P), [C, P]);
25353
25353
  let B = v_("panels"), Y = A.indexOf(P);
25354
25354
  Y === -1 && (Y = B);
25355
- let U = Y === S, { isFocusVisible: Z, focusProps: ne } = mg(), ae = He(() => ({ selected: U, focus: Z }), [U, Z]), se = nf({ ref: $, id: y, role: "tabpanel", "aria-labelledby": (s = (i = R[Y]) == null ? void 0 : i.current) == null ? void 0 : s.id, tabIndex: U ? g : -1 }, ne);
25356
- return !U && ((c = T.unmount) == null || c) && !((f = T.static) != null && f) ? Le.createElement(Mc, { "aria-hidden": "true", ...se }) : ur({ ourProps: se, theirProps: T, slot: ae, defaultTag: xj, features: Ej, visible: U, name: "Tabs.Panel" });
25355
+ let U = Y === S, { isFocusVisible: Z, focusProps: ne } = mg(), re = He(() => ({ selected: U, focus: Z }), [U, Z]), se = nf({ ref: $, id: y, role: "tabpanel", "aria-labelledby": (s = (i = R[Y]) == null ? void 0 : i.current) == null ? void 0 : s.id, tabIndex: U ? g : -1 }, ne);
25356
+ return !U && ((c = T.unmount) == null || c) && !((f = T.static) != null && f) ? Le.createElement(Mc, { "aria-hidden": "true", ...se }) : ur({ ourProps: se, theirProps: T, slot: re, defaultTag: xj, features: Ej, visible: U, name: "Tabs.Panel" });
25357
25357
  }
25358
25358
  let Rj = ar(bj), VE = ar(vj), WE = ar(gj), GE = ar(Sj), YE = ar(Cj), y_ = Object.assign(Rj, { Group: VE, List: WE, Panels: GE, Panel: YE });
25359
25359
  function wg(t) {
@@ -26637,13 +26637,13 @@ function Kz(t, r) {
26637
26637
  Hz(t);
26638
26638
  let A = t.blobVersionedHashes, C = t.sidecars;
26639
26639
  if (t.blobs) {
26640
- const Z = typeof t.blobs[0] == "string" ? t.blobs : t.blobs.map((ue) => uf(ue)), ne = t.kzg, ae = $_({
26640
+ const Z = typeof t.blobs[0] == "string" ? t.blobs : t.blobs.map((ue) => uf(ue)), ne = t.kzg, re = $_({
26641
26641
  blobs: Z,
26642
26642
  kzg: ne
26643
- }), se = B_({ blobs: Z, commitments: ae, kzg: ne });
26643
+ }), se = B_({ blobs: Z, commitments: re, kzg: ne });
26644
26644
  A = Qz({
26645
- commitments: ae
26646
- }), C !== !1 && (C = Yz({ blobs: Z, commitments: ae, proofs: se }));
26645
+ commitments: re
26646
+ }), C !== !1 && (C = Yz({ blobs: Z, commitments: re, proofs: se }));
26647
26647
  }
26648
26648
  const P = eC(S), $ = [
26649
26649
  gn(i),
@@ -26661,8 +26661,8 @@ function Kz(t, r) {
26661
26661
  ], B = [], Y = [], U = [];
26662
26662
  if (C)
26663
26663
  for (let Z = 0; Z < C.length; Z++) {
26664
- const { blob: ne, commitment: ae, proof: se } = C[Z];
26665
- B.push(ne), Y.push(ae), U.push(se);
26664
+ const { blob: ne, commitment: re, proof: se } = C[Z];
26665
+ B.push(ne), Y.push(re), U.push(se);
26666
26666
  }
26667
26667
  return qb([
26668
26668
  "0x03",
@@ -31704,7 +31704,7 @@ const pO = {
31704
31704
  Z({ type: "SET_POOL_ADDRESS", payload: Q }), i == null || i(Q);
31705
31705
  },
31706
31706
  [i]
31707
- ), ae = _t(
31707
+ ), re = _t(
31708
31708
  (Q) => {
31709
31709
  Z({ type: "UPDATE_SEND_TOKEN_INPUT", payload: Q }), s == null || s(Q);
31710
31710
  },
@@ -31746,7 +31746,7 @@ const pO = {
31746
31746
  setPoolAddress: ne,
31747
31747
  setTradingType: O,
31748
31748
  updateTradingSettings: ue,
31749
- updateSendTokenInput: ae,
31749
+ updateSendTokenInput: re,
31750
31750
  updateReceiveTokenInput: se,
31751
31751
  updateTradingMeta: M,
31752
31752
  updateTradingModal: F,
@@ -31765,7 +31765,7 @@ const pO = {
31765
31765
  ne,
31766
31766
  O,
31767
31767
  ue,
31768
- ae,
31768
+ re,
31769
31769
  se,
31770
31770
  M,
31771
31771
  F,
@@ -31853,7 +31853,7 @@ const pO = {
31853
31853
  }
31854
31854
  }), Uq = () => {
31855
31855
  const { account: t } = Ia(), [r, i] = Yt(!1);
31856
- return vt(() => {
31856
+ return ht(() => {
31857
31857
  i(!!t);
31858
31858
  }, [t]), r;
31859
31859
  }, e9 = (t) => R3({
@@ -32285,7 +32285,7 @@ function TM(t) {
32285
32285
  W = new U(O[K]), (!W.s || (F = xp(V, W)) === M || F === 0 && V.s === M) && (V = W);
32286
32286
  return V;
32287
32287
  }
32288
- function ae(O, M, F) {
32288
+ function re(O, M, F) {
32289
32289
  for (var W = 1, K = M.length; !M[--K]; M.pop())
32290
32290
  ;
32291
32291
  for (K = M[0]; K >= 10; K /= 10, W++)
@@ -32479,7 +32479,7 @@ function TM(t) {
32479
32479
  }
32480
32480
  for (; L[0] == 0; L.splice(0, 1), --J)
32481
32481
  ;
32482
- return L[0] ? ae(O, L, J) : (O.s = y == 3 ? -1 : 1, O.c = [O.e = 0], O);
32482
+ return L[0] ? re(O, L, J) : (O.s = y == 3 ? -1 : 1, O.c = [O.e = 0], O);
32483
32483
  }, c.modulo = c.mod = function(O, M) {
32484
32484
  var F, W, K = this;
32485
32485
  return O = new U(O, M), !K.c || !O.s || O.c && !O.c[0] ? new U(NaN) : !O.c || K.c && !K.c[0] ? new U(K) : (C == 9 ? (W = O.s, O.s = 1, F = r(K, O, 0, 3), O.s = W, F.s *= W) : F = r(K, O, 0, C), O = K.minus(F.times(O)), !O.c[0] && C == 1 && (O.s = K.s), O);
@@ -32494,7 +32494,7 @@ function TM(t) {
32494
32494
  J = Ge[--Q] % Pe, L = Ge[Q] / Pe | 0, z = ye * J + L * le, J = le * J + z % Pe * Pe + Ce[V] + F, F = (J / Ue | 0) + (z / Pe | 0) + ye * L, Ce[V--] = J % Ue;
32495
32495
  Ce[V] = F;
32496
32496
  }
32497
- return F ? ++W : Ce.splice(0, 1), ae(O, Ce, W);
32497
+ return F ? ++W : Ce.splice(0, 1), re(O, Ce, W);
32498
32498
  }, c.negated = function() {
32499
32499
  var O = new U(this);
32500
32500
  return O.s = -O.s || null, O;
@@ -32518,7 +32518,7 @@ function TM(t) {
32518
32518
  }
32519
32519
  for (K = z.length, M = G.length, K - M < 0 && (F = G, G = z, z = F, M = K), K = 0; M; )
32520
32520
  K = (z[--M] = z[M] + G[M] + K) / Ds | 0, z[M] = Ds === z[M] ? 0 : z[M] % Ds;
32521
- return K && (z = [K].concat(z), ++Q), ae(O, z, Q);
32521
+ return K && (z = [K].concat(z), ++Q), re(O, z, Q);
32522
32522
  }, c.precision = c.sd = function(O, M) {
32523
32523
  var F, W, K, V = this;
32524
32524
  if (O != null && O !== !!O)
@@ -32759,14 +32759,14 @@ const Jb = (t, r) => t / r * 100, Sg = (t, r = St) => new it(t).shiftedBy(-r).to
32759
32759
  async (...B) => {
32760
32760
  var Y, U, Z;
32761
32761
  try {
32762
- const { argumentsWithoutOverrides: ne, transactionOverrides: ae } = Ix(B), se = await (g == null ? void 0 : g.estimateContractGas({
32762
+ const { argumentsWithoutOverrides: ne, transactionOverrides: re } = Ix(B), se = await (g == null ? void 0 : g.estimateContractGas({
32763
32763
  address: S,
32764
32764
  abi: T,
32765
32765
  functionName: t,
32766
32766
  args: ne,
32767
32767
  account: c ?? Tt,
32768
- gas: ae.gas,
32769
- value: ae.value
32768
+ gas: re.gas,
32769
+ value: re.value
32770
32770
  }));
32771
32771
  if (!se || !f || se === BigInt(0))
32772
32772
  return { error: dO, value: BigInt(0) };
@@ -32805,7 +32805,7 @@ const Jb = (t, r) => t / r * 100, Sg = (t, r = St) => new it(t).shiftedBy(-r).to
32805
32805
  args: U
32806
32806
  });
32807
32807
  if (c && ne) {
32808
- const ae = await R({
32808
+ const re = await R({
32809
32809
  chainId: f ?? p,
32810
32810
  from: c,
32811
32811
  to: S,
@@ -32813,7 +32813,7 @@ const Jb = (t, r) => t / r * 100, Sg = (t, r = St) => new it(t).shiftedBy(-r).to
32813
32813
  gas: kx[f ?? p] ?? 0,
32814
32814
  value: (Y = Z.value) == null ? void 0 : Y.toString()
32815
32815
  });
32816
- return { data: ae, error: ae == null ? void 0 : ae.simulation.error_message };
32816
+ return { data: re, error: re == null ? void 0 : re.simulation.error_message };
32817
32817
  }
32818
32818
  return { data: null, error: _x };
32819
32819
  } catch (U) {
@@ -32844,7 +32844,7 @@ const Jb = (t, r) => t / r * 100, Sg = (t, r = St) => new it(t).shiftedBy(-r).to
32844
32844
  });
32845
32845
  const { value: Z, error: ne } = await C(...B);
32846
32846
  if (ne) {
32847
- const { data: ae, error: se } = await Promise.race([
32847
+ const { data: re, error: se } = await Promise.race([
32848
32848
  P(...B),
32849
32849
  new Promise(
32850
32850
  (ue) => setTimeout(ue, B8, {
@@ -32855,7 +32855,7 @@ const Jb = (t, r) => t / r * 100, Sg = (t, r = St) => new it(t).shiftedBy(-r).to
32855
32855
  ]);
32856
32856
  throw new wM({
32857
32857
  message: se === _x ? ne : se ?? ne,
32858
- link: ae == null ? void 0 : ae.link,
32858
+ link: re == null ? void 0 : re.link,
32859
32859
  txArgs: B,
32860
32860
  account: c,
32861
32861
  functionName: t,
@@ -32908,7 +32908,7 @@ const Jb = (t, r) => t / r * 100, Sg = (t, r = St) => new it(t).shiftedBy(-r).to
32908
32908
  staleTime: 3e4
32909
32909
  }
32910
32910
  }), lg = (t) => {
32911
- vt(() => {
32911
+ ht(() => {
32912
32912
  t && t.forEach(({ error: r, status: i }) => {
32913
32913
  i === "failure" && console.warn(r == null ? void 0 : r.message);
32914
32914
  });
@@ -32917,7 +32917,7 @@ const Jb = (t, r) => t / r * 100, Sg = (t, r = St) => new it(t).shiftedBy(-r).to
32917
32917
  error: t,
32918
32918
  status: r
32919
32919
  }) => {
32920
- vt(() => {
32920
+ ht(() => {
32921
32921
  t && r === "failure" && console.warn(t == null ? void 0 : t.message);
32922
32922
  }, [t, r]);
32923
32923
  }, EM = ({
@@ -32955,7 +32955,7 @@ const Jb = (t, r) => t / r * 100, Sg = (t, r = St) => new it(t).shiftedBy(-r).to
32955
32955
  refetchInterval: eM
32956
32956
  }
32957
32957
  });
32958
- vt(() => {
32958
+ ht(() => {
32959
32959
  r && i.refetchQueries({ queryKey: t, stale: !0 });
32960
32960
  }, [r, s]);
32961
32961
  }, E9 = [
@@ -33286,27 +33286,31 @@ const AM = /* @__PURE__ */ Hh(oV), OM = ({
33286
33286
  account: Tt,
33287
33287
  chainId: qi.id,
33288
33288
  address: Tt
33289
- }).length, kM = () => {
33290
- const { account: t = Tt } = Ia(), r = Xb(), i = nl({
33291
- contracts: lV(r.map((s) => ({ ...s, account: t }))),
33289
+ }).length, kM = ({
33290
+ account: t
33291
+ } = {}) => {
33292
+ const { account: r } = Ia(), i = Xb(), s = t ?? r ?? Tt, c = nl({
33293
+ contracts: lV(
33294
+ i.map((f) => ({ ...f, account: s }))
33295
+ ),
33292
33296
  query: {
33293
- select: (s) => AM(s, sV).reduce(
33294
- (c, [f, p, y], g) => {
33295
- var R, A, C, P, $, B, Y, U, Z, ne;
33296
- const T = ((R = r == null ? void 0 : r[g]) == null ? void 0 : R.address) ?? Tt, S = y == null ? void 0 : y.result;
33297
+ select: (f) => AM(f, sV).reduce(
33298
+ (p, [y, g, T], S) => {
33299
+ var C, P, $, B, Y, U, Z, ne, re, se;
33300
+ const R = ((C = i == null ? void 0 : i[S]) == null ? void 0 : C.address) ?? Tt, A = T == null ? void 0 : T.result;
33297
33301
  return {
33298
- ...c,
33299
- [T]: {
33300
- userBalance: (A = f == null ? void 0 : f.result) == null ? void 0 : A.toString(),
33301
- tokenPrice: (C = p == null ? void 0 : p.result) == null ? void 0 : C.toString(),
33302
- totalValue: (P = S == null ? void 0 : S.totalFundValue) == null ? void 0 : P.toString(),
33303
- totalSupply: ($ = S == null ? void 0 : S.totalSupply) == null ? void 0 : $.toString(),
33304
- isPrivateVault: S == null ? void 0 : S.privatePool,
33305
- performanceFee: (B = S == null ? void 0 : S.performanceFeeNumerator) == null ? void 0 : B.toString(),
33306
- streamingFee: (Y = S == null ? void 0 : S.managerFeeNumerator) == null ? void 0 : Y.toString(),
33307
- entryFee: (U = S == null ? void 0 : S.entryFeeNumerator) == null ? void 0 : U.toString(),
33308
- exitFee: (Z = S == null ? void 0 : S.exitFeeNumerator) == null ? void 0 : Z.toString(),
33309
- managerAddress: (ne = S == null ? void 0 : S.manager) == null ? void 0 : ne.toString()
33302
+ ...p,
33303
+ [R]: {
33304
+ userBalance: (P = y == null ? void 0 : y.result) == null ? void 0 : P.toString(),
33305
+ tokenPrice: ($ = g == null ? void 0 : g.result) == null ? void 0 : $.toString(),
33306
+ totalValue: (B = A == null ? void 0 : A.totalFundValue) == null ? void 0 : B.toString(),
33307
+ totalSupply: (Y = A == null ? void 0 : A.totalSupply) == null ? void 0 : Y.toString(),
33308
+ isPrivateVault: A == null ? void 0 : A.privatePool,
33309
+ performanceFee: (U = A == null ? void 0 : A.performanceFeeNumerator) == null ? void 0 : U.toString(),
33310
+ streamingFee: (Z = A == null ? void 0 : A.managerFeeNumerator) == null ? void 0 : Z.toString(),
33311
+ entryFee: (ne = A == null ? void 0 : A.entryFeeNumerator) == null ? void 0 : ne.toString(),
33312
+ exitFee: (re = A == null ? void 0 : A.exitFeeNumerator) == null ? void 0 : re.toString(),
33313
+ managerAddress: (se = A == null ? void 0 : A.manager) == null ? void 0 : se.toString()
33310
33314
  }
33311
33315
  };
33312
33316
  },
@@ -33314,7 +33318,7 @@ const AM = /* @__PURE__ */ Hh(oV), OM = ({
33314
33318
  )
33315
33319
  }
33316
33320
  });
33317
- return ev({ error: i.error, status: i.status }), i;
33321
+ return ev({ error: c.error, status: c.status }), c;
33318
33322
  }, uV = ({
33319
33323
  address: t,
33320
33324
  chainId: r
@@ -33386,17 +33390,17 @@ const AM = /* @__PURE__ */ Hh(oV), OM = ({
33386
33390
  const C = AM(A, 2);
33387
33391
  return f.map(({ asset: P, isDeposit: $ }, B) => {
33388
33392
  var se, ue, O, M, F, W;
33389
- const Y = P.toLowerCase(), U = og(Y), [Z, ne] = C[B] ?? [], ae = M7[Y.toLowerCase()] ?? ((se = Z == null ? void 0 : Z.result) == null ? void 0 : se.toString()) ?? ((ue = c == null ? void 0 : c[Y]) == null ? void 0 : ue.tokenName) ?? o9(Y);
33393
+ const Y = P.toLowerCase(), U = og(Y), [Z, ne] = C[B] ?? [], re = M7[Y.toLowerCase()] ?? ((se = Z == null ? void 0 : Z.result) == null ? void 0 : se.toString()) ?? ((ue = c == null ? void 0 : c[Y]) == null ? void 0 : ue.tokenName) ?? o9(Y);
33390
33394
  return {
33391
33395
  tokenAddress: Y,
33392
33396
  isDeposit: $,
33393
33397
  rate: ((O = y == null ? void 0 : y[B]) == null ? void 0 : O.toString()) ?? "0",
33394
33398
  amount: U && S ? S : ((M = p == null ? void 0 : p[B]) == null ? void 0 : M.toString()) ?? "0",
33395
- tokenName: ae,
33399
+ tokenName: re,
33396
33400
  precision: ne != null && ne.result ? Number(ne.result) : ((F = c == null ? void 0 : c[Y]) == null ? void 0 : F.precision) ?? St,
33397
33401
  asset: {
33398
33402
  iconSymbols: ((W = c == null ? void 0 : c[Y]) == null ? void 0 : W.asset.iconSymbols) ?? [
33399
- ae
33403
+ re
33400
33404
  ]
33401
33405
  }
33402
33406
  };
@@ -34603,7 +34607,7 @@ const SO = (t) => t ? `https://raw.githubusercontent.com/dhedge/crypto-icons/mai
34603
34607
  }
34604
34608
  }, VV = (t = []) => {
34605
34609
  const [r, i] = Yt([]), [s, c] = Yt([]);
34606
- return vt(() => {
34610
+ return ht(() => {
34607
34611
  if (t.every((p) => s.includes(p)))
34608
34612
  return;
34609
34613
  (async () => {
@@ -34912,7 +34916,14 @@ const iW = /* @__PURE__ */ we.forwardRef(aW), oW = iW, qM = ({
34912
34916
  transparent: i = !1,
34913
34917
  centered: s = !0,
34914
34918
  onClose: c
34915
- }) => /* @__PURE__ */ N.jsx("div", { className: "dtw-absolute dtw-top-0 dtw-inset-0 dtw-rounded-xl dtw-backdrop-blur-md dtw-backdrop-brightness-75 dtw-backdrop-filter dtw-p-4", children: /* @__PURE__ */ N.jsxs(
34919
+ }) => (ht(() => {
34920
+ const f = (p) => {
34921
+ p.key === "Escape" && (c == null || c());
34922
+ };
34923
+ return window.addEventListener("keydown", f), () => {
34924
+ window.removeEventListener("keydown", f);
34925
+ };
34926
+ }, [c]), /* @__PURE__ */ N.jsx("div", { className: "dtw-absolute dtw-top-0 dtw-inset-0 dtw-rounded-xl dtw-backdrop-blur-md dtw-backdrop-brightness-75 dtw-backdrop-filter dtw-p-4", children: /* @__PURE__ */ N.jsxs(
34916
34927
  "div",
34917
34928
  {
34918
34929
  className: zt(
@@ -34928,7 +34939,7 @@ const iW = /* @__PURE__ */ we.forwardRef(aW), oW = iW, qM = ({
34928
34939
  !!c && /* @__PURE__ */ N.jsx("div", { className: "dtw-absolute dtw-top-5 dtw-right-5", children: /* @__PURE__ */ N.jsx(qM, { Icon: oW, onClick: c }) })
34929
34940
  ]
34930
34941
  }
34931
- ) }), sW = ({ children: t }) => /* @__PURE__ */ N.jsx(YE, { className: "dtw-pt-[var(--panel-content-pt)] dtw-pb-[var(--panel-content-pb)] dtw-px-[var(--panel-content-px)] dtw-flex dtw-flex-col dtw-gap-[var(--panel-content-gap,var(--panel-gap))]", children: t }), uW = ({
34942
+ ) })), sW = ({ children: t }) => /* @__PURE__ */ N.jsx(YE, { className: "dtw-pt-[var(--panel-content-pt)] dtw-pb-[var(--panel-content-pb)] dtw-px-[var(--panel-content-px)] dtw-flex dtw-flex-col dtw-gap-[var(--panel-content-gap,var(--panel-gap))]", children: t }), uW = ({
34932
34943
  className: t,
34933
34944
  iconClassName: r,
34934
34945
  onClick: i,
@@ -35052,7 +35063,7 @@ const iW = /* @__PURE__ */ we.forwardRef(aW), oW = iW, qM = ({
35052
35063
  vertical: c = !1
35053
35064
  }) => {
35054
35065
  const [f, p] = Yt(t);
35055
- vt(() => {
35066
+ ht(() => {
35056
35067
  p(t);
35057
35068
  }, [t]);
35058
35069
  const y = (g) => {
@@ -35323,12 +35334,12 @@ const iW = /* @__PURE__ */ we.forwardRef(aW), oW = iW, qM = ({
35323
35334
  };
35324
35335
  }, TW = ({ children: t }) => {
35325
35336
  const [r, i] = bW(), [{ isOpen: s }] = Lc(), { standalone: c } = na();
35326
- return vt(() => {
35337
+ return ht(() => {
35327
35338
  c && s && !r.TRADING.isOpen && i({
35328
35339
  type: "MERGE_OVERLAY",
35329
35340
  payload: { type: Wi.TRADING, isOpen: s }
35330
35341
  });
35331
- }, [s, r.TRADING.isOpen, i, c]), vt(() => {
35342
+ }, [s, r.TRADING.isOpen, i, c]), ht(() => {
35332
35343
  c && !s && r.TRADING.isOpen && i({
35333
35344
  type: "MERGE_OVERLAY",
35334
35345
  payload: { type: Wi.TRADING, isOpen: s }
@@ -35338,7 +35349,7 @@ const iW = /* @__PURE__ */ we.forwardRef(aW), oW = iW, qM = ({
35338
35349
  children: t,
35339
35350
  config: r
35340
35351
  }) => {
35341
- var i, s, c, f, p, y, g, T, S, R, A, C, P, $, B, Y, U, Z, ne, ae, se, ue, O, M, F, W, K, V, Q, z, G, J, L, H, le, ye, Ce, Ue, Pe, Ye, Ge, Ft, rt, Sn, dr, Nt, Fn, Lt, It, wt, Un, $n, Nr, Vr, ir, xr, Pr, fr, Lr, pr, Fr, xn, mr, $a, Sa, Ne, Ze, At, en, mn, Bn, _n, Er, Ut, Qn, un, cn, Xi, Ki, Co, al, Ro, xa, xi, ra, Ei, Ir, Ci, Wr, Ea, Ri, ee, Ee, Me, tt, ct, Bt, xt, ot, Xn, bn, Ht, Cr, Di, Wl, Vt, Fc, or, Mt, Ai, Au, Ns, il, Rr, Ou, aa, Ba, ku, Ic, Gl, Do, Zi, Ca, Ao, ol, Ps, Yl, ll, Ji, Uc, sl, tn, Ls, _u, ql, dn, Mu, Fs, yt, Oo, jn, Gr, ia, ul, Mn, an, ko, Kn, hr, ii, cl, _o, Is, Nu, Mo, No, Po, ja, Oi, Ql, Lo, Fo, dl, oi, za, fl, Io, pl, li, ki, Xl, Yr, _i, Kl, Uo, Zl, Jl, Us, ml, k, X, ge, Ae, st, $e, jt, Qt, nn, In, En, Cn, Rn, qr, Qr, si, Ra, Dr, Pu, $o, eo, $c, zp, Lu, pf, oa, to, Zn, ui, hl, Fu, mf, es, hf, vf, Iu, ts, Hp, Vp, yf, gf, wf, $s, ns, rs, as, bf, Bc, jc, zc, Tf, Sf, xf, Wp, Gp, Yp, Ef, qp, Ha, Bs, Cf, Rf, Df, Uu, no, $u, Af, ci, Hc, js, Vc, Of, Bu, vl, Wc, Gc, vr, Yc, kf, _f, Mf, Nf, Pf, ro, zs, yl, Qp, Hs, Vs, Xp, Lf, ju, vn, Bo, ao, is, Ff, zu, Ws, Gs, gl, qc, Qc, Kp, Xc, Hu, Vu, Kc, wl, Ys, bl, If, Zc, Jc, Zp, jo, di, qs, zo, Mi, Tl, io, ed, Jp, td, Va, Qs, os, at, Ho, Dn, Et, rn, on, Ni, pt, zn, la, Wa, Nn, Ga, Vo, Xs, Wu, Uf, Da, yr, Ks, nd, rd, sa, Wo, ua, Sl;
35352
+ var i, s, c, f, p, y, g, T, S, R, A, C, P, $, B, Y, U, Z, ne, re, se, ue, O, M, F, W, K, V, Q, z, G, J, L, H, le, ye, Ce, Ue, Pe, Ye, Ge, Ft, rt, Sn, dr, Nt, Fn, Lt, It, wt, Un, $n, Nr, Vr, ir, xr, Pr, fr, Lr, pr, Fr, xn, mr, $a, Sa, Ne, Ze, At, en, mn, Bn, _n, Er, Ut, Qn, un, cn, Xi, Ki, Co, al, Ro, xa, xi, ra, Ei, Ir, Ci, Wr, Ea, Ri, ee, Ee, Me, tt, ct, Bt, xt, ot, Xn, bn, Ht, Cr, Di, Wl, Vt, Fc, or, Mt, Ai, Au, Ns, il, Rr, Ou, aa, Ba, ku, Ic, Gl, Do, Zi, Ca, Ao, ol, Ps, Yl, ll, Ji, Uc, sl, tn, Ls, _u, ql, dn, Mu, Fs, yt, Oo, jn, Gr, ia, ul, Mn, an, ko, Kn, hr, ii, cl, _o, Is, Nu, Mo, No, Po, ja, Oi, Ql, Lo, Fo, dl, oi, za, fl, Io, pl, li, ki, Xl, Yr, _i, Kl, Uo, Zl, Jl, Us, ml, k, X, ge, Ae, st, $e, jt, Qt, nn, In, En, Cn, Rn, qr, Qr, si, Ra, Dr, Pu, $o, eo, $c, zp, Lu, pf, oa, to, Zn, ui, hl, Fu, mf, es, hf, vf, Iu, ts, Hp, Vp, yf, gf, wf, $s, ns, rs, as, bf, Bc, jc, zc, Tf, Sf, xf, Wp, Gp, Yp, Ef, qp, Ha, Bs, Cf, Rf, Df, Uu, no, $u, Af, ci, Hc, js, Vc, Of, Bu, vl, Wc, Gc, vr, Yc, kf, _f, Mf, Nf, Pf, ro, zs, yl, Qp, Hs, Vs, Xp, Lf, ju, vn, Bo, ao, is, Ff, zu, Ws, Gs, gl, qc, Qc, Kp, Xc, Hu, Vu, Kc, wl, Ys, bl, If, Zc, Jc, Zp, jo, di, qs, zo, Mi, Tl, io, ed, Jp, td, Va, Qs, os, at, Ho, Dn, Et, rn, on, Ni, pt, zn, la, Wa, Nn, Ga, Vo, Xs, Wu, Uf, Da, yr, Ks, nd, rd, sa, Wo, ua, Sl;
35342
35353
  return /* @__PURE__ */ N.jsx(
35343
35354
  "div",
35344
35355
  {
@@ -35359,7 +35370,7 @@ const iW = /* @__PURE__ */ we.forwardRef(aW), oW = iW, qM = ({
35359
35370
  "--panel-content-hover-color": `${(($ = (P = r == null ? void 0 : r.global) == null ? void 0 : P.color) == null ? void 0 : $.colorTextPrimaryHover) ?? `${hn.WHITE.DEFAULT}CC`}`,
35360
35371
  "--panel-secondary-color": `${((Y = (B = r == null ? void 0 : r.global) == null ? void 0 : B.color) == null ? void 0 : Y.colorBgSecondary) ?? hn.GRAY[800]}`,
35361
35372
  "--panel-secondary-content-color": `${((Z = (U = r == null ? void 0 : r.global) == null ? void 0 : U.color) == null ? void 0 : Z.colorTextSecondary) ?? hn.GRAY[600]}`,
35362
- "--panel-accent-from-color": `${((ae = (ne = r == null ? void 0 : r.global) == null ? void 0 : ne.color) == null ? void 0 : ae.colorBgAccentFrom) ?? hn.GREEN.DEFAULT}`,
35373
+ "--panel-accent-from-color": `${((re = (ne = r == null ? void 0 : r.global) == null ? void 0 : ne.color) == null ? void 0 : re.colorBgAccentFrom) ?? hn.GREEN.DEFAULT}`,
35363
35374
  "--panel-accent-to-color": `${((ue = (se = r == null ? void 0 : r.global) == null ? void 0 : se.color) == null ? void 0 : ue.colorBgAccentTo) ?? hn.GREEN[700]}`,
35364
35375
  "--panel-accent-hover-from-color": `${((M = (O = r == null ? void 0 : r.global) == null ? void 0 : O.color) == null ? void 0 : M.colorBgAccentFromHover) ?? `${hn.GREEN.DEFAULT}CC`}`,
35365
35376
  "--panel-accent-hover-to-color": `${((W = (F = r == null ? void 0 : r.global) == null ? void 0 : F.color) == null ? void 0 : W.colorBgAccentToHover) ?? hn.BLUE.dark}`,
@@ -35903,7 +35914,7 @@ const UW = /* @__PURE__ */ we.forwardRef(IW), iN = UW, $W = ({
35903
35914
  chainId: S,
35904
35915
  pollingInterval: 15e3
35905
35916
  });
35906
- vt(() => {
35917
+ ht(() => {
35907
35918
  if (C) {
35908
35919
  T && i({ approvingStatus: "success" });
35909
35920
  const $ = C.transactionHash;
@@ -35924,7 +35935,7 @@ const UW = /* @__PURE__ */ we.forwardRef(IW), iN = UW, $W = ({
35924
35935
  i,
35925
35936
  A,
35926
35937
  R
35927
- ]), vt(() => {
35938
+ ]), ht(() => {
35928
35939
  P && (T && i({ approvingStatus: void 0 }), s({
35929
35940
  isOpen: !1,
35930
35941
  status: "None",
@@ -36261,7 +36272,7 @@ const pN = {
36261
36272
  const { chainId: p, vaultAddress: y, account: g } = f;
36262
36273
  if (!g || !t)
36263
36274
  return pN;
36264
- const T = (await import("./pyth-adapter-eba3a414.js")).PythAdapter, S = Rb({
36275
+ const T = (await import("./pyth-adapter-264be31a.js")).PythAdapter, S = Rb({
36265
36276
  abi: Zb("synthetixV3Core"),
36266
36277
  functionName: "getPositionDebt",
36267
36278
  args: L7[y.toLowerCase()] ?? []
@@ -36308,7 +36319,7 @@ const pN = {
36308
36319
  hash: r,
36309
36320
  chainId: t
36310
36321
  });
36311
- return vt(() => {
36322
+ return ht(() => {
36312
36323
  if (f) {
36313
36324
  const y = f == null ? void 0 : f.transactionHash;
36314
36325
  if (y) {
@@ -36316,7 +36327,7 @@ const pN = {
36316
36327
  s({ isOpen: !0, status: "Success", link: g });
36317
36328
  }
36318
36329
  }
36319
- }, [f, t, s]), vt(() => {
36330
+ }, [f, t, s]), ht(() => {
36320
36331
  p && (s({
36321
36332
  isOpen: !1,
36322
36333
  status: "None",
@@ -36462,7 +36473,7 @@ function CO(t, r, i) {
36462
36473
  },
36463
36474
  [r, f]
36464
36475
  );
36465
- return vt(() => {
36476
+ return ht(() => {
36466
36477
  try {
36467
36478
  const y = f == null ? void 0 : f.getItem(r);
36468
36479
  y && c(JSON.parse(y));
@@ -36473,7 +36484,7 @@ function CO(t, r, i) {
36473
36484
  }
36474
36485
  const aG = (t, r) => {
36475
36486
  const [i, s] = Yt(t);
36476
- return vt(() => {
36487
+ return ht(() => {
36477
36488
  const c = setTimeout(() => {
36478
36489
  s(t);
36479
36490
  }, r);
@@ -36803,7 +36814,7 @@ const aG = (t, r) => {
36803
36814
  rawTokenAmount: f,
36804
36815
  spenderAddress: c
36805
36816
  });
36806
- return vt(() => {
36817
+ return ht(() => {
36807
36818
  s(p ? "success" : void 0);
36808
36819
  }, [s, p]), { approve: y, canSpend: p };
36809
36820
  }, fG = ({
@@ -36827,7 +36838,7 @@ const aG = (t, r) => {
36827
36838
  address: t,
36828
36839
  chainId: r
36829
36840
  }), A = T || R || y;
36830
- vt(() => {
36841
+ ht(() => {
36831
36842
  if (!i || A)
36832
36843
  return;
36833
36844
  const C = S ? new it(S.toString()).shiftedBy(-c.decimals).toFixed(c.decimals) : "";
@@ -36841,9 +36852,9 @@ const aG = (t, r) => {
36841
36852
  A,
36842
36853
  g
36843
36854
  // add debouncedSendTokenValue in order to update receive token value with same quote for the second time
36844
- ]), vt(() => {
36855
+ ]), ht(() => {
36845
36856
  i && f({ isLoading: A });
36846
- }, [i, A, f]), vt(() => {
36857
+ }, [i, A, f]), ht(() => {
36847
36858
  i && (!s.value || s.value === "0") && (f({ value: "0" }), p({ minSlippage: 0 }));
36848
36859
  }, [f, p, s.value, i]);
36849
36860
  }, TN = (t = {}) => {
@@ -36871,7 +36882,7 @@ const aG = (t, r) => {
36871
36882
  const t = Kb(), [r] = Mr(), [, i] = Fa(), { isDebouncing: s } = r1({
36872
36883
  extendedDebounceTime: !0
36873
36884
  }), c = a1(), f = TN({ includesEntryFee: !0 });
36874
- vt(() => {
36885
+ ht(() => {
36875
36886
  if (!t || r.isLoading || s)
36876
36887
  return;
36877
36888
  const p = f - c, y = p < 0 ? Math.abs(Number(p.toFixed(2))) : 0;
@@ -36888,8 +36899,8 @@ const aG = (t, r) => {
36888
36899
  var Eb = { exports: {} };
36889
36900
  Eb.exports;
36890
36901
  (function(t, r) {
36891
- var i = 200, s = "Expected a function", c = "__lodash_hash_undefined__", f = 1, p = 2, y = 1 / 0, g = 9007199254740991, T = "[object Arguments]", S = "[object Array]", R = "[object Boolean]", A = "[object Date]", C = "[object Error]", P = "[object Function]", $ = "[object GeneratorFunction]", B = "[object Map]", Y = "[object Number]", U = "[object Object]", Z = "[object Promise]", ne = "[object RegExp]", ae = "[object Set]", se = "[object String]", ue = "[object Symbol]", O = "[object WeakMap]", M = "[object ArrayBuffer]", F = "[object DataView]", W = "[object Float32Array]", K = "[object Float64Array]", V = "[object Int8Array]", Q = "[object Int16Array]", z = "[object Int32Array]", G = "[object Uint8Array]", J = "[object Uint8ClampedArray]", L = "[object Uint16Array]", H = "[object Uint32Array]", le = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/, ye = /^\w*$/, Ce = /^\./, Ue = /[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g, Pe = /[\\^$.*+?()[\]{}|]/g, Ye = /\\(\\)?/g, Ge = /^\[object .+?Constructor\]$/, Ft = /^(?:0|[1-9]\d*)$/, rt = {};
36892
- rt[W] = rt[K] = rt[V] = rt[Q] = rt[z] = rt[G] = rt[J] = rt[L] = rt[H] = !0, rt[T] = rt[S] = rt[M] = rt[R] = rt[F] = rt[A] = rt[C] = rt[P] = rt[B] = rt[Y] = rt[U] = rt[ne] = rt[ae] = rt[se] = rt[O] = !1;
36902
+ var i = 200, s = "Expected a function", c = "__lodash_hash_undefined__", f = 1, p = 2, y = 1 / 0, g = 9007199254740991, T = "[object Arguments]", S = "[object Array]", R = "[object Boolean]", A = "[object Date]", C = "[object Error]", P = "[object Function]", $ = "[object GeneratorFunction]", B = "[object Map]", Y = "[object Number]", U = "[object Object]", Z = "[object Promise]", ne = "[object RegExp]", re = "[object Set]", se = "[object String]", ue = "[object Symbol]", O = "[object WeakMap]", M = "[object ArrayBuffer]", F = "[object DataView]", W = "[object Float32Array]", K = "[object Float64Array]", V = "[object Int8Array]", Q = "[object Int16Array]", z = "[object Int32Array]", G = "[object Uint8Array]", J = "[object Uint8ClampedArray]", L = "[object Uint16Array]", H = "[object Uint32Array]", le = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/, ye = /^\w*$/, Ce = /^\./, Ue = /[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g, Pe = /[\\^$.*+?()[\]{}|]/g, Ye = /\\(\\)?/g, Ge = /^\[object .+?Constructor\]$/, Ft = /^(?:0|[1-9]\d*)$/, rt = {};
36903
+ rt[W] = rt[K] = rt[V] = rt[Q] = rt[z] = rt[G] = rt[J] = rt[L] = rt[H] = !0, rt[T] = rt[S] = rt[M] = rt[R] = rt[F] = rt[A] = rt[C] = rt[P] = rt[B] = rt[Y] = rt[U] = rt[ne] = rt[re] = rt[se] = rt[O] = !1;
36893
36904
  var Sn = typeof Xd == "object" && Xd && Xd.Object === Object && Xd, dr = typeof self == "object" && self && self.Object === Object && self, Nt = Sn || dr || Function("return this")(), Fn = r && !r.nodeType && r, Lt = Fn && !0 && t && !t.nodeType && t, It = Lt && Lt.exports === Fn, wt = It && Sn.process, Un = function() {
36894
36905
  try {
36895
36906
  return wt && wt.binding("util");
@@ -37300,7 +37311,7 @@ Eb.exports;
37300
37311
  return k == X + "";
37301
37312
  case B:
37302
37313
  var Qt = Sa;
37303
- case ae:
37314
+ case re:
37304
37315
  var nn = $e & p;
37305
37316
  if (Qt || (Qt = Ze), k.size != X.size && !nn)
37306
37317
  return !1;
@@ -37363,7 +37374,7 @@ Eb.exports;
37363
37374
  return sl(ge) ? ge : void 0;
37364
37375
  }
37365
37376
  var Kn = Ps;
37366
- (Ro && Kn(new Ro(new ArrayBuffer(1))) != F || xa && Kn(new xa()) != B || xi && Kn(xi.resolve()) != Z || ra && Kn(new ra()) != ae || Ei && Kn(new Ei()) != O) && (Kn = function(k) {
37377
+ (Ro && Kn(new Ro(new ArrayBuffer(1))) != F || xa && Kn(new xa()) != B || xi && Kn(xi.resolve()) != Z || ra && Kn(new ra()) != re || Ei && Kn(new Ei()) != O) && (Kn = function(k) {
37367
37378
  var X = Qn.call(k), ge = X == U ? k.constructor : void 0, Ae = ge ? Oi(ge) : void 0;
37368
37379
  if (Ae)
37369
37380
  switch (Ae) {
@@ -37374,7 +37385,7 @@ Eb.exports;
37374
37385
  case Ea:
37375
37386
  return Z;
37376
37387
  case Ri:
37377
- return ae;
37388
+ return re;
37378
37389
  case ee:
37379
37390
  return O;
37380
37391
  }
@@ -37548,7 +37559,7 @@ const vG = /* @__PURE__ */ Hh(hG), SC = () => {
37548
37559
  }
37549
37560
  });
37550
37561
  return lg(T), He(() => {
37551
- var C, P, $, B, Y, U, Z, ne, ae, se;
37562
+ var C, P, $, B, Y, U, Z, ne, re, se;
37552
37563
  if (!y)
37553
37564
  return [];
37554
37565
  const S = [];
@@ -37578,7 +37589,7 @@ const vG = /* @__PURE__ */ Hh(hG), SC = () => {
37578
37589
  {
37579
37590
  value: "",
37580
37591
  address: ((ne = kh[r]) == null ? void 0 : ne.address) ?? Tt,
37581
- symbol: ((ae = kh[r]) == null ? void 0 : ae.nativeTokenSymbol) ?? "",
37592
+ symbol: ((re = kh[r]) == null ? void 0 : re.nativeTokenSymbol) ?? "",
37582
37593
  decimals: ((se = kh[r]) == null ? void 0 : se.decimals) ?? St
37583
37594
  }
37584
37595
  ]
@@ -37593,7 +37604,7 @@ const vG = /* @__PURE__ */ Hh(hG), SC = () => {
37593
37604
  ]);
37594
37605
  }, yG = () => {
37595
37606
  const t = Dt(), [r] = SC(), i = sn()[1], [s] = _s();
37596
- vt(() => {
37607
+ ht(() => {
37597
37608
  s === "deposit" && (r != null && r.symbol) && i({
37598
37609
  address: r == null ? void 0 : r.address,
37599
37610
  symbol: r.symbol,
@@ -38421,7 +38432,7 @@ const qG = (t) => {
38421
38432
  tradingType: "deposit",
38422
38433
  slippage: i,
38423
38434
  minSlippage: s
38424
- }), ne = U === kn.DEFAULT ? t.depositSlippageWarning : t.highSlippageWarning, ae = c ? t.infinite : `${new it(T.value || "0").toFixed(4)} ${T.symbol}`, se = sC(
38435
+ }), ne = U === kn.DEFAULT ? t.depositSlippageWarning : t.highSlippageWarning, re = c ? t.infinite : `${new it(T.value || "0").toFixed(4)} ${T.symbol}`, se = sC(
38425
38436
  new it(y).shiftedBy(-St).toFixed(),
38426
38437
  4
38427
38438
  );
@@ -38433,7 +38444,7 @@ const qG = (t) => {
38433
38444
  slippagePlaceholder: Z,
38434
38445
  minReceive: `${se} ${g.symbol.toUpperCase()}`,
38435
38446
  allowanceRequired: !r,
38436
- tokenAllowance: ae,
38447
+ tokenAllowance: re,
38437
38448
  sendTokenSymbol: T.symbol,
38438
38449
  entryFee: A,
38439
38450
  entryFeeTooltipText: t.entryFeeExplanation,
@@ -38631,7 +38642,7 @@ function bY(t, r, i) {
38631
38642
  function ne() {
38632
38643
  return y === void 0 ? p : U(Bx());
38633
38644
  }
38634
- function ae() {
38645
+ function re() {
38635
38646
  var se = Bx(), ue = B(se);
38636
38647
  if (s = arguments, c = this, g = se, ue) {
38637
38648
  if (y === void 0)
@@ -38641,7 +38652,7 @@ function bY(t, r, i) {
38641
38652
  }
38642
38653
  return y === void 0 && (y = setTimeout(Y, r)), p;
38643
38654
  }
38644
- return ae.cancel = Z, ae.flush = ne, ae;
38655
+ return re.cancel = Z, re.flush = ne, re;
38645
38656
  }
38646
38657
  function uE(t) {
38647
38658
  var r = typeof t;
@@ -38678,7 +38689,7 @@ const EY = /* @__PURE__ */ Hh(xY), CY = () => {
38678
38689
  const { address: s, chainId: c } = Dt(), { cooldownActive: f } = Du({ address: s, chainId: c }), [p] = sn(), [y] = Mr(), [{ slippage: g }, T] = Fa(), [{ approvingStatus: S }] = oC(), R = S === "success", A = cC(), { data: C } = FO({
38679
38690
  query: { refetchInterval: eM }
38680
38691
  }), P = Ot(CY);
38681
- vt(() => {
38692
+ ht(() => {
38682
38693
  P.current = EY(
38683
38694
  async () => {
38684
38695
  if (r.isZero() || !R || f)
@@ -38700,7 +38711,7 @@ const EY = /* @__PURE__ */ Hh(xY), CY = () => {
38700
38711
  f,
38701
38712
  // added receiveTokenSymbol to update debouncedEstimateSell func on token change
38702
38713
  y.symbol
38703
- ]), vt(() => {
38714
+ ]), ht(() => {
38704
38715
  if (i) {
38705
38716
  T({ minSlippage: 0 });
38706
38717
  return;
@@ -38773,8 +38784,8 @@ const EY = /* @__PURE__ */ Hh(xY), CY = () => {
38773
38784
  ]
38774
38785
  ), B = _t(async () => {
38775
38786
  const Z = s === "auto" ? S : Array.from(/* @__PURE__ */ new Set([s, ...S])), ne = /* @__PURE__ */ new Map();
38776
- for (let ae = 0; ae < Z.length; ae++) {
38777
- const se = Z[ae] ?? 0, ue = vO($, se), { value: O, error: M } = await P(...ue);
38787
+ for (let re = 0; re < Z.length; re++) {
38788
+ const se = Z[re] ?? 0, ue = vO($, se), { value: O, error: M } = await P(...ue);
38778
38789
  if (!(O === BigInt(0) || M) && (ne.set(se, {
38779
38790
  gas: O,
38780
38791
  argsToUse: ue
@@ -38824,7 +38835,7 @@ const EY = /* @__PURE__ */ Hh(xY), CY = () => {
38824
38835
  chainId: c,
38825
38836
  skip: r || f === "0"
38826
38837
  });
38827
- vt(() => {
38838
+ ht(() => {
38828
38839
  s(y ? "success" : void 0);
38829
38840
  }, [s, y]);
38830
38841
  const g = wN({
@@ -38850,7 +38861,7 @@ const EY = /* @__PURE__ */ Hh(xY), CY = () => {
38850
38861
  address: s.address,
38851
38862
  chainId: t.chainId
38852
38863
  }) ?? "";
38853
- vt(() => {
38864
+ ht(() => {
38854
38865
  if (!r.value || r.value === "0") {
38855
38866
  c({ value: "0" });
38856
38867
  return;
@@ -39069,7 +39080,7 @@ const EY = /* @__PURE__ */ Hh(xY), CY = () => {
39069
39080
  return `${S.value && ue.isFinite() && M ? ue.times(1 - M / 100).toFixed(4) : "0"} ${S.symbol.toUpperCase()}`;
39070
39081
  }, ne = () => {
39071
39082
  $ && T({ slippage: p });
39072
- }, ae = y ? t.infinite : `${new it(R.value || "0").toFixed(4)} ${R.symbol}`, se = $ && p !== f;
39083
+ }, re = y ? t.infinite : `${new it(R.value || "0").toFixed(4)} ${R.symbol}`, se = $ && p !== f;
39073
39084
  return {
39074
39085
  themeType: B,
39075
39086
  slippageTooltipText: U,
@@ -39077,7 +39088,7 @@ const EY = /* @__PURE__ */ Hh(xY), CY = () => {
39077
39088
  slippagePlaceholder: Y,
39078
39089
  minReceive: Z(),
39079
39090
  allowanceRequired: !c,
39080
- tokenAllowance: ae,
39091
+ tokenAllowance: re,
39081
39092
  sendTokenSymbol: R.symbol,
39082
39093
  isAutoSlippage: P,
39083
39094
  minSlippage: p,
@@ -39240,9 +39251,9 @@ const EY = /* @__PURE__ */ Hh(xY), CY = () => {
39240
39251
  const p = JY[f];
39241
39252
  p && s(p);
39242
39253
  };
39243
- return vt(() => {
39254
+ return ht(() => {
39244
39255
  i || s("deposit");
39245
- }, [r.address, i]), vt(() => {
39256
+ }, [r.address, i]), ht(() => {
39246
39257
  i && s(t);
39247
39258
  }, [r.address, i, t]), {
39248
39259
  type: t,
@@ -39280,9 +39291,9 @@ const EY = /* @__PURE__ */ Hh(xY), CY = () => {
39280
39291
  NO,
39281
39292
  ""
39282
39293
  ), [y, g] = CO("localStorage", nq, ""), T = i[rq];
39283
- vt(() => {
39294
+ ht(() => {
39284
39295
  !T || typeof T != "string" || localStorage.getItem(NO) || (s == null || s(), p(T), g(t));
39285
- }, [t, T, g, p, s]), vt(() => {
39296
+ }, [t, T, g, p, s]), ht(() => {
39286
39297
  if (!r || !f || y !== t)
39287
39298
  return;
39288
39299
  (async () => {