@edgex-web/components 0.2.0-beta.17 → 0.2.0-beta.18

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.
@@ -2,7 +2,7 @@ var t1 = Object.defineProperty;
2
2
  var n1 = (e, t, n) => t in e ? t1(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
3
3
  var _r = (e, t, n) => n1(e, typeof t != "symbol" ? t + "" : t, n);
4
4
  import * as U from "react";
5
- import Z, { createContext as De, useContext as Ee, useMemo as te, useCallback as X, forwardRef as Tc, createElement as ms, useRef as ce, useEffect as Pe, useState as oe, useLayoutEffect as ks, Fragment as Nt, isValidElement as Rc, cloneElement as rd, useId as Qn, useSyncExternalStore as r1, useImperativeHandle as od } from "react";
5
+ import Z, { createContext as De, useContext as Ee, useMemo as te, useCallback as X, forwardRef as Tc, createElement as ms, useRef as ce, useEffect as Pe, useState as oe, useLayoutEffect as ks, Fragment as Ot, isValidElement as Rc, cloneElement as rd, useId as Qn, useSyncExternalStore as r1, useImperativeHandle as od } from "react";
6
6
  import * as eo from "react-dom";
7
7
  import sd, { flushSync as bs, createPortal as id } from "react-dom";
8
8
  function o1(e) {
@@ -79,7 +79,7 @@ function i1() {
79
79
  // with.
80
80
  k.$$typeof === g || k.getModuleId !== void 0));
81
81
  }
82
- function N(k, G, Y) {
82
+ function O(k, G, Y) {
83
83
  var re = k.displayName;
84
84
  if (re)
85
85
  return re;
@@ -89,7 +89,7 @@ function i1() {
89
89
  function T(k) {
90
90
  return k.displayName || "Context";
91
91
  }
92
- function O(k) {
92
+ function N(k) {
93
93
  if (k == null)
94
94
  return null;
95
95
  if (typeof k.tag == "number" && x("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof k == "function")
@@ -119,14 +119,14 @@ function i1() {
119
119
  var Y = k;
120
120
  return T(Y._context) + ".Provider";
121
121
  case a:
122
- return N(k, k.render, "ForwardRef");
122
+ return O(k, k.render, "ForwardRef");
123
123
  case f:
124
124
  var re = k.displayName || null;
125
- return re !== null ? re : O(k.type) || "Memo";
125
+ return re !== null ? re : N(k.type) || "Memo";
126
126
  case p: {
127
127
  var ge = k, we = ge._payload, de = ge._init;
128
128
  try {
129
- return O(de(we));
129
+ return N(de(we));
130
130
  } catch {
131
131
  return null;
132
132
  }
@@ -265,18 +265,18 @@ function i1() {
265
265
  if (Ve && re && typeof Ve.stack == "string") {
266
266
  for (var fe = Ve.stack.split(`
267
267
  `), Ue = re.stack.split(`
268
- `), Re = fe.length - 1, Oe = Ue.length - 1; Re >= 1 && Oe >= 0 && fe[Re] !== Ue[Oe]; )
269
- Oe--;
270
- for (; Re >= 1 && Oe >= 0; Re--, Oe--)
271
- if (fe[Re] !== Ue[Oe]) {
272
- if (Re !== 1 || Oe !== 1)
268
+ `), Re = fe.length - 1, Ne = Ue.length - 1; Re >= 1 && Ne >= 0 && fe[Re] !== Ue[Ne]; )
269
+ Ne--;
270
+ for (; Re >= 1 && Ne >= 0; Re--, Ne--)
271
+ if (fe[Re] !== Ue[Ne]) {
272
+ if (Re !== 1 || Ne !== 1)
273
273
  do
274
- if (Re--, Oe--, Oe < 0 || fe[Re] !== Ue[Oe]) {
274
+ if (Re--, Ne--, Ne < 0 || fe[Re] !== Ue[Ne]) {
275
275
  var lt = `
276
276
  ` + fe[Re].replace(" at new ", " at ");
277
277
  return k.displayName && lt.includes("<anonymous>") && (lt = lt.replace("<anonymous>", k.displayName)), typeof k == "function" && ye.set(k, lt), lt;
278
278
  }
279
- while (Re >= 1 && Oe >= 0);
279
+ while (Re >= 1 && Ne >= 0);
280
280
  break;
281
281
  }
282
282
  }
@@ -461,8 +461,8 @@ function i1() {
461
461
  de[we] === void 0 && (de[we] = Re[we]);
462
462
  }
463
463
  if (fe || Ue) {
464
- var Oe = typeof k == "function" ? k.displayName || k.name || "Unknown" : k;
465
- fe && Um(de, Oe), Ue && zm(de, Oe);
464
+ var Ne = typeof k == "function" ? k.displayName || k.name || "Unknown" : k;
465
+ fe && Um(de, Ne), Ue && zm(de, Ne);
466
466
  }
467
467
  return Hm(k, fe, Ue, ge, re, Hu.current, de);
468
468
  }
@@ -483,7 +483,7 @@ function i1() {
483
483
  function qu() {
484
484
  {
485
485
  if (xi.current) {
486
- var k = O(xi.current.type);
486
+ var k = N(xi.current.type);
487
487
  if (k)
488
488
  return `
489
489
 
@@ -518,7 +518,7 @@ Check the top-level render call using <` + Y + ">.");
518
518
  return;
519
519
  Zu[Y] = !0;
520
520
  var re = "";
521
- k && k._owner && k._owner !== xi.current && (re = " It was passed a child from " + O(k._owner.type) + "."), sr(k), x('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', Y, re), sr(null);
521
+ k && k._owner && k._owner !== xi.current && (re = " It was passed a child from " + N(k._owner.type) + "."), sr(k), x('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', Y, re), sr(null);
522
522
  }
523
523
  }
524
524
  function Ku(k, G) {
@@ -555,11 +555,11 @@ Check the top-level render call using <` + Y + ">.");
555
555
  else
556
556
  return;
557
557
  if (Y) {
558
- var re = O(G);
558
+ var re = N(G);
559
559
  Bm(Y, k.props, "prop", re, k);
560
560
  } else if (G.PropTypes !== void 0 && !Ei) {
561
561
  Ei = !0;
562
- var ge = O(G);
562
+ var ge = N(G);
563
563
  x("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", ge || "Unknown");
564
564
  }
565
565
  typeof G.getDefaultProps == "function" && !G.getDefaultProps.isReactClassApproved && x("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
@@ -587,11 +587,11 @@ Check the top-level render call using <` + Y + ">.");
587
587
  var Ue = Vm();
588
588
  Ue ? fe += Ue : fe += qu();
589
589
  var Re;
590
- k === null ? Re = "null" : vi(k) ? Re = "array" : k !== void 0 && k.$$typeof === t ? (Re = "<" + (O(k.type) || "Unknown") + " />", fe = " Did you accidentally export a JSX literal instead of a component?") : Re = typeof k, x("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", Re, fe);
590
+ k === null ? Re = "null" : vi(k) ? Re = "array" : k !== void 0 && k.$$typeof === t ? (Re = "<" + (N(k.type) || "Unknown") + " />", fe = " Did you accidentally export a JSX literal instead of a component?") : Re = typeof k, x("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", Re, fe);
591
591
  }
592
- var Oe = Wm(k, G, Y, ge, we);
593
- if (Oe == null)
594
- return Oe;
592
+ var Ne = Wm(k, G, Y, ge, we);
593
+ if (Ne == null)
594
+ return Ne;
595
595
  if (de) {
596
596
  var lt = G.children;
597
597
  if (lt !== void 0)
@@ -606,7 +606,7 @@ Check the top-level render call using <` + Y + ">.");
606
606
  Ku(lt, k);
607
607
  }
608
608
  if (Te.call(G, "key")) {
609
- var Mn = O(k), Ve = Object.keys(G).filter(function(e1) {
609
+ var Mn = N(k), Ve = Object.keys(G).filter(function(e1) {
610
610
  return e1 !== "key";
611
611
  }), Si = Ve.length > 0 ? "{key: someKey, " + Ve.join(": ..., ") + ": ...}" : "{key: someKey}";
612
612
  if (!Xu[Mn + Si]) {
@@ -619,7 +619,7 @@ React keys must be passed directly to JSX without using spread:
619
619
  <%s key={someKey} {...props} />`, Si, Mn, Jm, Mn), Xu[Mn + Si] = !0;
620
620
  }
621
621
  }
622
- return k === r ? Zm(Oe) : qm(Oe), Oe;
622
+ return k === r ? Zm(Ne) : qm(Ne), Ne;
623
623
  }
624
624
  }
625
625
  function Ym(k, G, Y) {
@@ -1025,7 +1025,7 @@ function ud(e) {
1025
1025
  suffix: ""
1026
1026
  }, w = "0123456789abcdefghijklmnopqrstuvwxyz", S = !0;
1027
1027
  function x(b, g) {
1028
- var v, N, T, O, I, y, A, $, P = this;
1028
+ var v, O, T, N, I, y, A, $, P = this;
1029
1029
  if (!(P instanceof x)) return new x(b, g);
1030
1030
  if (g == null) {
1031
1031
  if (b && b._isBigNumber === !0) {
@@ -1034,8 +1034,8 @@ function ud(e) {
1034
1034
  }
1035
1035
  if ((y = typeof b == "number") && b * 0 == 0) {
1036
1036
  if (P.s = 1 / b < 0 ? (b = -b, -1) : 1, b === ~~b) {
1037
- for (O = 0, I = b; I >= 10; I /= 10, O++) ;
1038
- O > f ? P.c = P.e = null : (P.e = O, P.c = [b]);
1037
+ for (N = 0, I = b; I >= 10; I /= 10, N++) ;
1038
+ N > f ? P.c = P.e = null : (P.e = N, P.c = [b]);
1039
1039
  return;
1040
1040
  }
1041
1041
  $ = String(b);
@@ -1043,7 +1043,7 @@ function ud(e) {
1043
1043
  if (!m1.test($ = String(b))) return r(P, $, y);
1044
1044
  P.s = $.charCodeAt(0) == 45 ? ($ = $.slice(1), -1) : 1;
1045
1045
  }
1046
- (O = $.indexOf(".")) > -1 && ($ = $.replace(".", "")), (I = $.search(/e/i)) > 0 ? (O < 0 && (O = I), O += +$.slice(I + 1), $ = $.substring(0, I)) : O < 0 && (O = $.length);
1046
+ (N = $.indexOf(".")) > -1 && ($ = $.replace(".", "")), (I = $.search(/e/i)) > 0 ? (N < 0 && (N = I), N += +$.slice(I + 1), $ = $.substring(0, I)) : N < 0 && (N = $.length);
1047
1047
  } else {
1048
1048
  if (xe(g, 2, w.length, "Base"), g == 10 && S)
1049
1049
  return P = new x(b), F(P, i + P.e + 1, c);
@@ -1053,32 +1053,32 @@ function ud(e) {
1053
1053
  throw Error(nl + b);
1054
1054
  } else
1055
1055
  P.s = $.charCodeAt(0) === 45 ? ($ = $.slice(1), -1) : 1;
1056
- for (v = w.slice(0, g), O = I = 0, A = $.length; I < A; I++)
1057
- if (v.indexOf(N = $.charAt(I)) < 0) {
1058
- if (N == ".") {
1059
- if (I > O) {
1060
- O = A;
1056
+ for (v = w.slice(0, g), N = I = 0, A = $.length; I < A; I++)
1057
+ if (v.indexOf(O = $.charAt(I)) < 0) {
1058
+ if (O == ".") {
1059
+ if (I > N) {
1060
+ N = A;
1061
1061
  continue;
1062
1062
  }
1063
1063
  } else if (!T && ($ == $.toUpperCase() && ($ = $.toLowerCase()) || $ == $.toLowerCase() && ($ = $.toUpperCase()))) {
1064
- T = !0, I = -1, O = 0;
1064
+ T = !0, I = -1, N = 0;
1065
1065
  continue;
1066
1066
  }
1067
1067
  return r(P, String(b), y, g);
1068
1068
  }
1069
- y = !1, $ = n($, g, 10, P.s), (O = $.indexOf(".")) > -1 ? $ = $.replace(".", "") : O = $.length;
1069
+ y = !1, $ = n($, g, 10, P.s), (N = $.indexOf(".")) > -1 ? $ = $.replace(".", "") : N = $.length;
1070
1070
  }
1071
1071
  for (I = 0; $.charCodeAt(I) === 48; I++) ;
1072
1072
  for (A = $.length; $.charCodeAt(--A) === 48; ) ;
1073
1073
  if ($ = $.slice(I, ++A)) {
1074
1074
  if (A -= I, y && x.DEBUG && A > 15 && (b > Ai || b !== ht(b)))
1075
1075
  throw Error(nl + P.s * b);
1076
- if ((O = O - I - 1) > f)
1076
+ if ((N = N - I - 1) > f)
1077
1077
  P.c = P.e = null;
1078
- else if (O < l)
1078
+ else if (N < l)
1079
1079
  P.c = [P.e = 0];
1080
1080
  else {
1081
- if (P.e = O, P.c = [], I = (O + 1) % se, O < 0 && (I += se), I < A) {
1081
+ if (P.e = N, P.c = [], I = (N + 1) % se, N < 0 && (I += se), I < A) {
1082
1082
  for (I && P.c.push(+$.slice(0, I)), A -= se; I < A; )
1083
1083
  P.c.push(+$.slice(I, I += se));
1084
1084
  I = se - ($ = $.slice(I)).length;
@@ -1136,20 +1136,20 @@ function ud(e) {
1136
1136
  }, x.isBigNumber = function(b) {
1137
1137
  if (!b || b._isBigNumber !== !0) return !1;
1138
1138
  if (!x.DEBUG) return !0;
1139
- var g, v, N = b.c, T = b.e, O = b.s;
1140
- e: if ({}.toString.call(N) == "[object Array]") {
1141
- if ((O === 1 || O === -1) && T >= -Ce && T <= Ce && T === ht(T)) {
1142
- if (N[0] === 0) {
1143
- if (T === 0 && N.length === 1) return !0;
1139
+ var g, v, O = b.c, T = b.e, N = b.s;
1140
+ e: if ({}.toString.call(O) == "[object Array]") {
1141
+ if ((N === 1 || N === -1) && T >= -Ce && T <= Ce && T === ht(T)) {
1142
+ if (O[0] === 0) {
1143
+ if (T === 0 && O.length === 1) return !0;
1144
1144
  break e;
1145
1145
  }
1146
- if (g = (T + 1) % se, g < 1 && (g += se), String(N[0]).length == g) {
1147
- for (g = 0; g < N.length; g++)
1148
- if (v = N[g], v < 0 || v >= St || v !== ht(v)) break e;
1146
+ if (g = (T + 1) % se, g < 1 && (g += se), String(O[0]).length == g) {
1147
+ for (g = 0; g < O.length; g++)
1148
+ if (v = O[g], v < 0 || v >= St || v !== ht(v)) break e;
1149
1149
  if (v !== 0) return !0;
1150
1150
  }
1151
1151
  }
1152
- } else if (N === null && T === null && (O === null || O === 1 || O === -1))
1152
+ } else if (O === null && T === null && (N === null || N === 1 || N === -1))
1153
1153
  return !0;
1154
1154
  throw Error(Ge + "Invalid BigNumber: " + b);
1155
1155
  }, x.maximum = x.max = function() {
@@ -1163,15 +1163,15 @@ function ud(e) {
1163
1163
  return (Math.random() * 1073741824 | 0) * 8388608 + (Math.random() * 8388608 | 0);
1164
1164
  };
1165
1165
  return function(v) {
1166
- var N, T, O, I, y, A = 0, $ = [], P = new x(s);
1166
+ var O, T, N, I, y, A = 0, $ = [], P = new x(s);
1167
1167
  if (v == null ? v = i : xe(v, 0, Ce), I = $i(v / se), p)
1168
1168
  if (crypto.getRandomValues) {
1169
- for (N = crypto.getRandomValues(new Uint32Array(I *= 2)); A < I; )
1170
- y = N[A] * 131072 + (N[A + 1] >>> 11), y >= 9e15 ? (T = crypto.getRandomValues(new Uint32Array(2)), N[A] = T[0], N[A + 1] = T[1]) : ($.push(y % 1e14), A += 2);
1169
+ for (O = crypto.getRandomValues(new Uint32Array(I *= 2)); A < I; )
1170
+ y = O[A] * 131072 + (O[A + 1] >>> 11), y >= 9e15 ? (T = crypto.getRandomValues(new Uint32Array(2)), O[A] = T[0], O[A + 1] = T[1]) : ($.push(y % 1e14), A += 2);
1171
1171
  A = I / 2;
1172
1172
  } else if (crypto.randomBytes) {
1173
- for (N = crypto.randomBytes(I *= 7); A < I; )
1174
- y = (N[A] & 31) * 281474976710656 + N[A + 1] * 1099511627776 + N[A + 2] * 4294967296 + N[A + 3] * 16777216 + (N[A + 4] << 16) + (N[A + 5] << 8) + N[A + 6], y >= 9e15 ? crypto.randomBytes(7).copy(N, A) : ($.push(y % 1e14), A += 7);
1173
+ for (O = crypto.randomBytes(I *= 7); A < I; )
1174
+ y = (O[A] & 31) * 281474976710656 + O[A + 1] * 1099511627776 + O[A + 2] * 4294967296 + O[A + 3] * 16777216 + (O[A + 4] << 16) + (O[A + 5] << 8) + O[A + 6], y >= 9e15 ? crypto.randomBytes(7).copy(O, A) : ($.push(y % 1e14), A += 7);
1175
1175
  A = I / 7;
1176
1176
  } else
1177
1177
  throw p = !1, Error(Ge + "crypto unavailable");
@@ -1180,37 +1180,37 @@ function ud(e) {
1180
1180
  y = g(), y < 9e15 && ($[A++] = y % 1e14);
1181
1181
  for (I = $[--A], v %= se, I && v && (y = Ti[se - v], $[A] = ht(I / y) * y); $[A] === 0; $.pop(), A--) ;
1182
1182
  if (A < 0)
1183
- $ = [O = 0];
1183
+ $ = [N = 0];
1184
1184
  else {
1185
- for (O = -1; $[0] === 0; $.splice(0, 1), O -= se) ;
1185
+ for (N = -1; $[0] === 0; $.splice(0, 1), N -= se) ;
1186
1186
  for (A = 1, y = $[0]; y >= 10; y /= 10, A++) ;
1187
- A < se && (O -= se - A);
1187
+ A < se && (N -= se - A);
1188
1188
  }
1189
- return P.e = O, P.c = $, P;
1189
+ return P.e = N, P.c = $, P;
1190
1190
  };
1191
1191
  }(), x.sum = function() {
1192
1192
  for (var b = 1, g = arguments, v = new x(g[0]); b < g.length; ) v = v.plus(g[b++]);
1193
1193
  return v;
1194
1194
  }, n = /* @__PURE__ */ function() {
1195
1195
  var b = "0123456789";
1196
- function g(v, N, T, O) {
1196
+ function g(v, O, T, N) {
1197
1197
  for (var I, y = [0], A, $ = 0, P = v.length; $ < P; ) {
1198
- for (A = y.length; A--; y[A] *= N) ;
1199
- for (y[0] += O.indexOf(v.charAt($++)), I = 0; I < y.length; I++)
1198
+ for (A = y.length; A--; y[A] *= O) ;
1199
+ for (y[0] += N.indexOf(v.charAt($++)), I = 0; I < y.length; I++)
1200
1200
  y[I] > T - 1 && (y[I + 1] == null && (y[I + 1] = 0), y[I + 1] += y[I] / T | 0, y[I] %= T);
1201
1201
  }
1202
1202
  return y.reverse();
1203
1203
  }
1204
- return function(v, N, T, O, I) {
1204
+ return function(v, O, T, N, I) {
1205
1205
  var y, A, $, P, M, D, _, j, H = v.indexOf("."), K = i, V = c;
1206
- for (H >= 0 && (P = h, h = 0, v = v.replace(".", ""), j = new x(N), D = j.pow(v.length - H), h = P, j.c = g(
1206
+ for (H >= 0 && (P = h, h = 0, v = v.replace(".", ""), j = new x(O), D = j.pow(v.length - H), h = P, j.c = g(
1207
1207
  Xt(ft(D.c), D.e, "0"),
1208
1208
  10,
1209
1209
  T,
1210
1210
  b
1211
- ), j.e = j.c.length), _ = g(v, N, T, I ? (y = w, b) : (y = b, w)), $ = P = _.length; _[--P] == 0; _.pop()) ;
1211
+ ), j.e = j.c.length), _ = g(v, O, T, I ? (y = w, b) : (y = b, w)), $ = P = _.length; _[--P] == 0; _.pop()) ;
1212
1212
  if (!_[0]) return y.charAt(0);
1213
- if (H < 0 ? --$ : (D.c = _, D.e = $, D.s = O, D = t(D, j, K, V, T), _ = D.c, M = D.r, $ = D.e), A = $ + K + 1, H = _[A], P = T / 2, M = M || A < 0 || _[A + 1] != null, M = V < 4 ? (H != null || M) && (V == 0 || V == (D.s < 0 ? 3 : 2)) : H > P || H == P && (V == 4 || M || V == 6 && _[A - 1] & 1 || V == (D.s < 0 ? 8 : 7)), A < 1 || !_[0])
1213
+ if (H < 0 ? --$ : (D.c = _, D.e = $, D.s = N, D = t(D, j, K, V, T), _ = D.c, M = D.r, $ = D.e), A = $ + K + 1, H = _[A], P = T / 2, M = M || A < 0 || _[A + 1] != null, M = V < 4 ? (H != null || M) && (V == 0 || V == (D.s < 0 ? 3 : 2)) : H > P || H == P && (V == 4 || M || V == 6 && _[A - 1] & 1 || V == (D.s < 0 ? 8 : 7)), A < 1 || !_[0])
1214
1214
  v = M ? Xt(y.charAt(1), -K, y.charAt(0)) : y.charAt(0);
1215
1215
  else {
1216
1216
  if (_.length = A, M)
@@ -1223,40 +1223,40 @@ function ud(e) {
1223
1223
  return v;
1224
1224
  };
1225
1225
  }(), t = /* @__PURE__ */ function() {
1226
- function b(N, T, O) {
1227
- var I, y, A, $, P = 0, M = N.length, D = T % yn, _ = T / yn | 0;
1228
- for (N = N.slice(); M--; )
1229
- A = N[M] % yn, $ = N[M] / yn | 0, I = _ * A + $ * D, y = D * A + I % yn * yn + P, P = (y / O | 0) + (I / yn | 0) + _ * $, N[M] = y % O;
1230
- return P && (N = [P].concat(N)), N;
1226
+ function b(O, T, N) {
1227
+ var I, y, A, $, P = 0, M = O.length, D = T % yn, _ = T / yn | 0;
1228
+ for (O = O.slice(); M--; )
1229
+ A = O[M] % yn, $ = O[M] / yn | 0, I = _ * A + $ * D, y = D * A + I % yn * yn + P, P = (y / N | 0) + (I / yn | 0) + _ * $, O[M] = y % N;
1230
+ return P && (O = [P].concat(O)), O;
1231
1231
  }
1232
- function g(N, T, O, I) {
1232
+ function g(O, T, N, I) {
1233
1233
  var y, A;
1234
- if (O != I)
1235
- A = O > I ? 1 : -1;
1234
+ if (N != I)
1235
+ A = N > I ? 1 : -1;
1236
1236
  else
1237
- for (y = A = 0; y < O; y++)
1238
- if (N[y] != T[y]) {
1239
- A = N[y] > T[y] ? 1 : -1;
1237
+ for (y = A = 0; y < N; y++)
1238
+ if (O[y] != T[y]) {
1239
+ A = O[y] > T[y] ? 1 : -1;
1240
1240
  break;
1241
1241
  }
1242
1242
  return A;
1243
1243
  }
1244
- function v(N, T, O, I) {
1245
- for (var y = 0; O--; )
1246
- N[O] -= y, y = N[O] < T[O] ? 1 : 0, N[O] = y * I + N[O] - T[O];
1247
- for (; !N[0] && N.length > 1; N.splice(0, 1)) ;
1244
+ function v(O, T, N, I) {
1245
+ for (var y = 0; N--; )
1246
+ O[N] -= y, y = O[N] < T[N] ? 1 : 0, O[N] = y * I + O[N] - T[N];
1247
+ for (; !O[0] && O.length > 1; O.splice(0, 1)) ;
1248
1248
  }
1249
- return function(N, T, O, I, y) {
1250
- var A, $, P, M, D, _, j, H, K, V, z, q, ee, ie, ye, ve, he, ae = N.s == T.s ? 1 : -1, me = N.c, ne = T.c;
1249
+ return function(O, T, N, I, y) {
1250
+ var A, $, P, M, D, _, j, H, K, V, z, q, ee, ie, ye, ve, he, ae = O.s == T.s ? 1 : -1, me = O.c, ne = T.c;
1251
1251
  if (!me || !me[0] || !ne || !ne[0])
1252
1252
  return new x(
1253
1253
  // Return NaN if either NaN, or both Infinity or 0.
1254
- !N.s || !T.s || (me ? ne && me[0] == ne[0] : !ne) ? NaN : (
1254
+ !O.s || !T.s || (me ? ne && me[0] == ne[0] : !ne) ? NaN : (
1255
1255
  // Return ±0 if x is ±0 or y is ±Infinity, or return ±Infinity as y is ±0.
1256
1256
  me && me[0] == 0 || !ne ? ae * 0 : ae / 0
1257
1257
  )
1258
1258
  );
1259
- for (H = new x(ae), K = H.c = [], $ = N.e - T.e, ae = O + $ + 1, y || (y = St, $ = mt(N.e / se) - mt(T.e / se), ae = ae / se | 0), P = 0; ne[P] == (me[P] || 0); P++) ;
1259
+ for (H = new x(ae), K = H.c = [], $ = O.e - T.e, ae = N + $ + 1, y || (y = St, $ = mt(O.e / se) - mt(T.e / se), ae = ae / se | 0), P = 0; ne[P] == (me[P] || 0); P++) ;
1260
1260
  if (ne[P] > (me[P] || 0) && $--, ae < 0)
1261
1261
  K.push(1), M = !0;
1262
1262
  else {
@@ -1279,42 +1279,42 @@ function ud(e) {
1279
1279
  }
1280
1280
  if (y == St) {
1281
1281
  for (P = 1, ae = K[0]; ae >= 10; ae /= 10, P++) ;
1282
- F(H, O + (H.e = P + $ * se - 1) + 1, I, M);
1282
+ F(H, N + (H.e = P + $ * se - 1) + 1, I, M);
1283
1283
  } else
1284
1284
  H.e = $, H.r = +M;
1285
1285
  return H;
1286
1286
  };
1287
1287
  }();
1288
- function E(b, g, v, N) {
1289
- var T, O, I, y, A;
1288
+ function E(b, g, v, O) {
1289
+ var T, N, I, y, A;
1290
1290
  if (v == null ? v = c : xe(v, 0, 8), !b.c) return b.toString();
1291
1291
  if (T = b.c[0], I = b.e, g == null)
1292
- A = ft(b.c), A = N == 1 || N == 2 && (I <= a || I >= u) ? Xo(A, I) : Xt(A, I, "0");
1293
- else if (b = F(new x(b), g, v), O = b.e, A = ft(b.c), y = A.length, N == 1 || N == 2 && (g <= O || O <= a)) {
1292
+ A = ft(b.c), A = O == 1 || O == 2 && (I <= a || I >= u) ? Xo(A, I) : Xt(A, I, "0");
1293
+ else if (b = F(new x(b), g, v), N = b.e, A = ft(b.c), y = A.length, O == 1 || O == 2 && (g <= N || N <= a)) {
1294
1294
  for (; y < g; A += "0", y++) ;
1295
- A = Xo(A, O);
1296
- } else if (g -= I + (N === 2 && O > I), A = Xt(A, O, "0"), O + 1 > y) {
1295
+ A = Xo(A, N);
1296
+ } else if (g -= I + (O === 2 && N > I), A = Xt(A, N, "0"), N + 1 > y) {
1297
1297
  if (--g > 0) for (A += "."; g--; A += "0") ;
1298
- } else if (g += O - y, g > 0)
1299
- for (O + 1 == y && (A += "."); g--; A += "0") ;
1298
+ } else if (g += N - y, g > 0)
1299
+ for (N + 1 == y && (A += "."); g--; A += "0") ;
1300
1300
  return b.s < 0 && T ? "-" + A : A;
1301
1301
  }
1302
1302
  function R(b, g) {
1303
- for (var v, N, T = 1, O = new x(b[0]); T < b.length; T++)
1304
- N = new x(b[T]), (!N.s || (v = Fn(O, N)) === g || v === 0 && O.s === g) && (O = N);
1305
- return O;
1303
+ for (var v, O, T = 1, N = new x(b[0]); T < b.length; T++)
1304
+ O = new x(b[T]), (!O.s || (v = Fn(N, O)) === g || v === 0 && N.s === g) && (N = O);
1305
+ return N;
1306
1306
  }
1307
1307
  function B(b, g, v) {
1308
- for (var N = 1, T = g.length; !g[--T]; g.pop()) ;
1309
- for (T = g[0]; T >= 10; T /= 10, N++) ;
1310
- return (v = N + v * se - 1) > f ? b.c = b.e = null : v < l ? b.c = [b.e = 0] : (b.e = v, b.c = g), b;
1308
+ for (var O = 1, T = g.length; !g[--T]; g.pop()) ;
1309
+ for (T = g[0]; T >= 10; T /= 10, O++) ;
1310
+ return (v = O + v * se - 1) > f ? b.c = b.e = null : v < l ? b.c = [b.e = 0] : (b.e = v, b.c = g), b;
1311
1311
  }
1312
1312
  r = /* @__PURE__ */ function() {
1313
- var b = /^(-?)0([xbo])(?=\w[\w.]*$)/i, g = /^([^.]+)\.$/, v = /^\.([^.]+)$/, N = /^-?(Infinity|NaN)$/, T = /^\s*\+(?=[\w.])|^\s+|\s+$/g;
1314
- return function(O, I, y, A) {
1313
+ var b = /^(-?)0([xbo])(?=\w[\w.]*$)/i, g = /^([^.]+)\.$/, v = /^\.([^.]+)$/, O = /^-?(Infinity|NaN)$/, T = /^\s*\+(?=[\w.])|^\s+|\s+$/g;
1314
+ return function(N, I, y, A) {
1315
1315
  var $, P = y ? I : I.replace(T, "");
1316
- if (N.test(P))
1317
- O.s = isNaN(P) ? null : P < 0 ? -1 : 1;
1316
+ if (O.test(P))
1317
+ N.s = isNaN(P) ? null : P < 0 ? -1 : 1;
1318
1318
  else {
1319
1319
  if (!y && (P = P.replace(b, function(M, D, _) {
1320
1320
  return $ = (_ = _.toLowerCase()) == "x" ? 16 : _ == "b" ? 2 : 8, !A || A == $ ? D : M;
@@ -1322,46 +1322,46 @@ function ud(e) {
1322
1322
  return new x(P, $);
1323
1323
  if (x.DEBUG)
1324
1324
  throw Error(Ge + "Not a" + (A ? " base " + A : "") + " number: " + I);
1325
- O.s = null;
1325
+ N.s = null;
1326
1326
  }
1327
- O.c = O.e = null;
1327
+ N.c = N.e = null;
1328
1328
  };
1329
1329
  }();
1330
- function F(b, g, v, N) {
1331
- var T, O, I, y, A, $, P, M = b.c, D = Ti;
1330
+ function F(b, g, v, O) {
1331
+ var T, N, I, y, A, $, P, M = b.c, D = Ti;
1332
1332
  if (M) {
1333
1333
  e: {
1334
1334
  for (T = 1, y = M[0]; y >= 10; y /= 10, T++) ;
1335
- if (O = g - T, O < 0)
1336
- O += se, I = g, A = M[$ = 0], P = ht(A / D[T - I - 1] % 10);
1337
- else if ($ = $i((O + 1) / se), $ >= M.length)
1338
- if (N) {
1335
+ if (N = g - T, N < 0)
1336
+ N += se, I = g, A = M[$ = 0], P = ht(A / D[T - I - 1] % 10);
1337
+ else if ($ = $i((N + 1) / se), $ >= M.length)
1338
+ if (O) {
1339
1339
  for (; M.length <= $; M.push(0)) ;
1340
- A = P = 0, T = 1, O %= se, I = O - se + 1;
1340
+ A = P = 0, T = 1, N %= se, I = N - se + 1;
1341
1341
  } else
1342
1342
  break e;
1343
1343
  else {
1344
1344
  for (A = y = M[$], T = 1; y >= 10; y /= 10, T++) ;
1345
- O %= se, I = O - se + T, P = I < 0 ? 0 : ht(A / D[T - I - 1] % 10);
1345
+ N %= se, I = N - se + T, P = I < 0 ? 0 : ht(A / D[T - I - 1] % 10);
1346
1346
  }
1347
- if (N = N || g < 0 || // Are there any non-zero digits after the rounding digit?
1347
+ if (O = O || g < 0 || // Are there any non-zero digits after the rounding digit?
1348
1348
  // The expression n % pows10[d - j - 1] returns all digits of n to the right
1349
1349
  // of the digit at j, e.g. if n is 908714 and j is 2, the expression gives 714.
1350
- M[$ + 1] != null || (I < 0 ? A : A % D[T - I - 1]), N = v < 4 ? (P || N) && (v == 0 || v == (b.s < 0 ? 3 : 2)) : P > 5 || P == 5 && (v == 4 || N || v == 6 && // Check whether the digit to the left of the rounding digit is odd.
1351
- (O > 0 ? I > 0 ? A / D[T - I] : 0 : M[$ - 1]) % 10 & 1 || v == (b.s < 0 ? 8 : 7)), g < 1 || !M[0])
1352
- return M.length = 0, N ? (g -= b.e + 1, M[0] = D[(se - g % se) % se], b.e = -g || 0) : M[0] = b.e = 0, b;
1353
- if (O == 0 ? (M.length = $, y = 1, $--) : (M.length = $ + 1, y = D[se - O], M[$] = I > 0 ? ht(A / D[T - I] % D[I]) * y : 0), N)
1350
+ M[$ + 1] != null || (I < 0 ? A : A % D[T - I - 1]), O = v < 4 ? (P || O) && (v == 0 || v == (b.s < 0 ? 3 : 2)) : P > 5 || P == 5 && (v == 4 || O || v == 6 && // Check whether the digit to the left of the rounding digit is odd.
1351
+ (N > 0 ? I > 0 ? A / D[T - I] : 0 : M[$ - 1]) % 10 & 1 || v == (b.s < 0 ? 8 : 7)), g < 1 || !M[0])
1352
+ return M.length = 0, O ? (g -= b.e + 1, M[0] = D[(se - g % se) % se], b.e = -g || 0) : M[0] = b.e = 0, b;
1353
+ if (N == 0 ? (M.length = $, y = 1, $--) : (M.length = $ + 1, y = D[se - N], M[$] = I > 0 ? ht(A / D[T - I] % D[I]) * y : 0), O)
1354
1354
  for (; ; )
1355
1355
  if ($ == 0) {
1356
- for (O = 1, I = M[0]; I >= 10; I /= 10, O++) ;
1356
+ for (N = 1, I = M[0]; I >= 10; I /= 10, N++) ;
1357
1357
  for (I = M[0] += y, y = 1; I >= 10; I /= 10, y++) ;
1358
- O != y && (b.e++, M[0] == St && (M[0] = 1));
1358
+ N != y && (b.e++, M[0] == St && (M[0] = 1));
1359
1359
  break;
1360
1360
  } else {
1361
1361
  if (M[$] += y, M[$] != St) break;
1362
1362
  M[$--] = 0, y = 1;
1363
1363
  }
1364
- for (O = M.length; M[--O] === 0; M.pop()) ;
1364
+ for (N = M.length; M[--N] === 0; M.pop()) ;
1365
1365
  }
1366
1366
  b.e > f ? b.c = b.e = null : b.e < l && (b.c = [b.e = 0]);
1367
1367
  }
@@ -1377,34 +1377,34 @@ function ud(e) {
1377
1377
  }, o.comparedTo = function(b, g) {
1378
1378
  return Fn(this, new x(b, g));
1379
1379
  }, o.decimalPlaces = o.dp = function(b, g) {
1380
- var v, N, T, O = this;
1380
+ var v, O, T, N = this;
1381
1381
  if (b != null)
1382
- return xe(b, 0, Ce), g == null ? g = c : xe(g, 0, 8), F(new x(O), b + O.e + 1, g);
1383
- if (!(v = O.c)) return null;
1384
- if (N = ((T = v.length - 1) - mt(this.e / se)) * se, T = v[T]) for (; T % 10 == 0; T /= 10, N--) ;
1385
- return N < 0 && (N = 0), N;
1382
+ return xe(b, 0, Ce), g == null ? g = c : xe(g, 0, 8), F(new x(N), b + N.e + 1, g);
1383
+ if (!(v = N.c)) return null;
1384
+ if (O = ((T = v.length - 1) - mt(this.e / se)) * se, T = v[T]) for (; T % 10 == 0; T /= 10, O--) ;
1385
+ return O < 0 && (O = 0), O;
1386
1386
  }, o.dividedBy = o.div = function(b, g) {
1387
1387
  return t(this, new x(b, g), i, c);
1388
1388
  }, o.dividedToIntegerBy = o.idiv = function(b, g) {
1389
1389
  return t(this, new x(b, g), 0, 1);
1390
1390
  }, o.exponentiatedBy = o.pow = function(b, g) {
1391
- var v, N, T, O, I, y, A, $, P, M = this;
1391
+ var v, O, T, N, I, y, A, $, P, M = this;
1392
1392
  if (b = new x(b), b.c && !b.isInteger())
1393
1393
  throw Error(Ge + "Exponent not an integer: " + L(b));
1394
1394
  if (g != null && (g = new x(g)), y = b.e > 14, !M.c || !M.c[0] || M.c[0] == 1 && !M.e && M.c.length == 1 || !b.c || !b.c[0])
1395
1395
  return P = new x(Math.pow(+L(M), y ? b.s * (2 - Ko(b)) : +L(b))), g ? P.mod(g) : P;
1396
1396
  if (A = b.s < 0, g) {
1397
1397
  if (g.c ? !g.c[0] : !g.s) return new x(NaN);
1398
- N = !A && M.isInteger() && g.isInteger(), N && (M = M.mod(g));
1398
+ O = !A && M.isInteger() && g.isInteger(), O && (M = M.mod(g));
1399
1399
  } else {
1400
1400
  if (b.e > 9 && (M.e > 0 || M.e < -1 || (M.e == 0 ? M.c[0] > 1 || y && M.c[1] >= 24e7 : M.c[0] < 8e13 || y && M.c[0] <= 9999975e7)))
1401
- return O = M.s < 0 && Ko(b) ? -0 : 0, M.e > -1 && (O = 1 / O), new x(A ? 1 / O : O);
1402
- h && (O = $i(h / se + 2));
1401
+ return N = M.s < 0 && Ko(b) ? -0 : 0, M.e > -1 && (N = 1 / N), new x(A ? 1 / N : N);
1402
+ h && (N = $i(h / se + 2));
1403
1403
  }
1404
1404
  for (y ? (v = new x(0.5), A && (b.s = 1), $ = Ko(b)) : (T = Math.abs(+L(b)), $ = T % 2), P = new x(s); ; ) {
1405
1405
  if ($) {
1406
1406
  if (P = P.times(M), !P.c) break;
1407
- O ? P.c.length > O && (P.c.length = O) : N && (P = P.mod(g));
1407
+ N ? P.c.length > N && (P.c.length = N) : O && (P = P.mod(g));
1408
1408
  }
1409
1409
  if (T) {
1410
1410
  if (T = ht(T / 2), T === 0) break;
@@ -1415,9 +1415,9 @@ function ud(e) {
1415
1415
  if (T = +L(b), T === 0) break;
1416
1416
  $ = T % 2;
1417
1417
  }
1418
- M = M.times(M), O ? M.c && M.c.length > O && (M.c.length = O) : N && (M = M.mod(g));
1418
+ M = M.times(M), N ? M.c && M.c.length > N && (M.c.length = N) : O && (M = M.mod(g));
1419
1419
  }
1420
- return N ? P : (A && (P = s.div(P)), g ? P.mod(g) : O ? F(P, h, c, I) : P);
1420
+ return O ? P : (A && (P = s.div(P)), g ? P.mod(g) : N ? F(P, h, c, I) : P);
1421
1421
  }, o.integerValue = function(b) {
1422
1422
  var g = new x(this);
1423
1423
  return b == null ? b = c : xe(b, 0, 8), F(g, g.e + 1, b);
@@ -1444,7 +1444,7 @@ function ud(e) {
1444
1444
  }, o.isZero = function() {
1445
1445
  return !!this.c && this.c[0] == 0;
1446
1446
  }, o.minus = function(b, g) {
1447
- var v, N, T, O, I = this, y = I.s;
1447
+ var v, O, T, N, I = this, y = I.s;
1448
1448
  if (b = new x(b, g), g = b.s, !y || !g) return new x(NaN);
1449
1449
  if (y != g)
1450
1450
  return b.s = -g, I.plus(b);
@@ -1458,85 +1458,85 @@ function ud(e) {
1458
1458
  ));
1459
1459
  }
1460
1460
  if (A = mt(A), $ = mt($), P = P.slice(), y = A - $) {
1461
- for ((O = y < 0) ? (y = -y, T = P) : ($ = A, T = M), T.reverse(), g = y; g--; T.push(0)) ;
1461
+ for ((N = y < 0) ? (y = -y, T = P) : ($ = A, T = M), T.reverse(), g = y; g--; T.push(0)) ;
1462
1462
  T.reverse();
1463
1463
  } else
1464
- for (N = (O = (y = P.length) < (g = M.length)) ? y : g, y = g = 0; g < N; g++)
1464
+ for (O = (N = (y = P.length) < (g = M.length)) ? y : g, y = g = 0; g < O; g++)
1465
1465
  if (P[g] != M[g]) {
1466
- O = P[g] < M[g];
1466
+ N = P[g] < M[g];
1467
1467
  break;
1468
1468
  }
1469
- if (O && (T = P, P = M, M = T, b.s = -b.s), g = (N = M.length) - (v = P.length), g > 0) for (; g--; P[v++] = 0) ;
1470
- for (g = St - 1; N > y; ) {
1471
- if (P[--N] < M[N]) {
1472
- for (v = N; v && !P[--v]; P[v] = g) ;
1473
- --P[v], P[N] += St;
1469
+ if (N && (T = P, P = M, M = T, b.s = -b.s), g = (O = M.length) - (v = P.length), g > 0) for (; g--; P[v++] = 0) ;
1470
+ for (g = St - 1; O > y; ) {
1471
+ if (P[--O] < M[O]) {
1472
+ for (v = O; v && !P[--v]; P[v] = g) ;
1473
+ --P[v], P[O] += St;
1474
1474
  }
1475
- P[N] -= M[N];
1475
+ P[O] -= M[O];
1476
1476
  }
1477
1477
  for (; P[0] == 0; P.splice(0, 1), --$) ;
1478
1478
  return P[0] ? B(b, P, $) : (b.s = c == 3 ? -1 : 1, b.c = [b.e = 0], b);
1479
1479
  }, o.modulo = o.mod = function(b, g) {
1480
- var v, N, T = this;
1481
- return b = new x(b, g), !T.c || !b.s || b.c && !b.c[0] ? new x(NaN) : !b.c || T.c && !T.c[0] ? new x(T) : (d == 9 ? (N = b.s, b.s = 1, v = t(T, b, 0, 3), b.s = N, v.s *= N) : v = t(T, b, 0, d), b = T.minus(v.times(b)), !b.c[0] && d == 1 && (b.s = T.s), b);
1480
+ var v, O, T = this;
1481
+ return b = new x(b, g), !T.c || !b.s || b.c && !b.c[0] ? new x(NaN) : !b.c || T.c && !T.c[0] ? new x(T) : (d == 9 ? (O = b.s, b.s = 1, v = t(T, b, 0, 3), b.s = O, v.s *= O) : v = t(T, b, 0, d), b = T.minus(v.times(b)), !b.c[0] && d == 1 && (b.s = T.s), b);
1482
1482
  }, o.multipliedBy = o.times = function(b, g) {
1483
- var v, N, T, O, I, y, A, $, P, M, D, _, j, H, K, V = this, z = V.c, q = (b = new x(b, g)).c;
1483
+ var v, O, T, N, I, y, A, $, P, M, D, _, j, H, K, V = this, z = V.c, q = (b = new x(b, g)).c;
1484
1484
  if (!z || !q || !z[0] || !q[0])
1485
1485
  return !V.s || !b.s || z && !z[0] && !q || q && !q[0] && !z ? b.c = b.e = b.s = null : (b.s *= V.s, !z || !q ? b.c = b.e = null : (b.c = [0], b.e = 0)), b;
1486
- for (N = mt(V.e / se) + mt(b.e / se), b.s *= V.s, A = z.length, M = q.length, A < M && (j = z, z = q, q = j, T = A, A = M, M = T), T = A + M, j = []; T--; j.push(0)) ;
1486
+ for (O = mt(V.e / se) + mt(b.e / se), b.s *= V.s, A = z.length, M = q.length, A < M && (j = z, z = q, q = j, T = A, A = M, M = T), T = A + M, j = []; T--; j.push(0)) ;
1487
1487
  for (H = St, K = yn, T = M; --T >= 0; ) {
1488
- for (v = 0, D = q[T] % K, _ = q[T] / K | 0, I = A, O = T + I; O > T; )
1489
- $ = z[--I] % K, P = z[I] / K | 0, y = _ * $ + P * D, $ = D * $ + y % K * K + j[O] + v, v = ($ / H | 0) + (y / K | 0) + _ * P, j[O--] = $ % H;
1490
- j[O] = v;
1488
+ for (v = 0, D = q[T] % K, _ = q[T] / K | 0, I = A, N = T + I; N > T; )
1489
+ $ = z[--I] % K, P = z[I] / K | 0, y = _ * $ + P * D, $ = D * $ + y % K * K + j[N] + v, v = ($ / H | 0) + (y / K | 0) + _ * P, j[N--] = $ % H;
1490
+ j[N] = v;
1491
1491
  }
1492
- return v ? ++N : j.splice(0, 1), B(b, j, N);
1492
+ return v ? ++O : j.splice(0, 1), B(b, j, O);
1493
1493
  }, o.negated = function() {
1494
1494
  var b = new x(this);
1495
1495
  return b.s = -b.s || null, b;
1496
1496
  }, o.plus = function(b, g) {
1497
- var v, N = this, T = N.s;
1497
+ var v, O = this, T = O.s;
1498
1498
  if (b = new x(b, g), g = b.s, !T || !g) return new x(NaN);
1499
1499
  if (T != g)
1500
- return b.s = -g, N.minus(b);
1501
- var O = N.e / se, I = b.e / se, y = N.c, A = b.c;
1502
- if (!O || !I) {
1500
+ return b.s = -g, O.minus(b);
1501
+ var N = O.e / se, I = b.e / se, y = O.c, A = b.c;
1502
+ if (!N || !I) {
1503
1503
  if (!y || !A) return new x(T / 0);
1504
- if (!y[0] || !A[0]) return A[0] ? b : new x(y[0] ? N : T * 0);
1504
+ if (!y[0] || !A[0]) return A[0] ? b : new x(y[0] ? O : T * 0);
1505
1505
  }
1506
- if (O = mt(O), I = mt(I), y = y.slice(), T = O - I) {
1507
- for (T > 0 ? (I = O, v = A) : (T = -T, v = y), v.reverse(); T--; v.push(0)) ;
1506
+ if (N = mt(N), I = mt(I), y = y.slice(), T = N - I) {
1507
+ for (T > 0 ? (I = N, v = A) : (T = -T, v = y), v.reverse(); T--; v.push(0)) ;
1508
1508
  v.reverse();
1509
1509
  }
1510
1510
  for (T = y.length, g = A.length, T - g < 0 && (v = A, A = y, y = v, g = T), T = 0; g; )
1511
1511
  T = (y[--g] = y[g] + A[g] + T) / St | 0, y[g] = St === y[g] ? 0 : y[g] % St;
1512
1512
  return T && (y = [T].concat(y), ++I), B(b, y, I);
1513
1513
  }, o.precision = o.sd = function(b, g) {
1514
- var v, N, T, O = this;
1514
+ var v, O, T, N = this;
1515
1515
  if (b != null && b !== !!b)
1516
- return xe(b, 1, Ce), g == null ? g = c : xe(g, 0, 8), F(new x(O), b, g);
1517
- if (!(v = O.c)) return null;
1518
- if (T = v.length - 1, N = T * se + 1, T = v[T]) {
1519
- for (; T % 10 == 0; T /= 10, N--) ;
1520
- for (T = v[0]; T >= 10; T /= 10, N++) ;
1516
+ return xe(b, 1, Ce), g == null ? g = c : xe(g, 0, 8), F(new x(N), b, g);
1517
+ if (!(v = N.c)) return null;
1518
+ if (T = v.length - 1, O = T * se + 1, T = v[T]) {
1519
+ for (; T % 10 == 0; T /= 10, O--) ;
1520
+ for (T = v[0]; T >= 10; T /= 10, O++) ;
1521
1521
  }
1522
- return b && O.e + 1 > N && (N = O.e + 1), N;
1522
+ return b && N.e + 1 > O && (O = N.e + 1), O;
1523
1523
  }, o.shiftedBy = function(b) {
1524
1524
  return xe(b, -Ai, Ai), this.times("1e" + b);
1525
1525
  }, o.squareRoot = o.sqrt = function() {
1526
- var b, g, v, N, T, O = this, I = O.c, y = O.s, A = O.e, $ = i + 4, P = new x("0.5");
1526
+ var b, g, v, O, T, N = this, I = N.c, y = N.s, A = N.e, $ = i + 4, P = new x("0.5");
1527
1527
  if (y !== 1 || !I || !I[0])
1528
- return new x(!y || y < 0 && (!I || I[0]) ? NaN : I ? O : 1 / 0);
1529
- if (y = Math.sqrt(+L(O)), y == 0 || y == 1 / 0 ? (g = ft(I), (g.length + A) % 2 == 0 && (g += "0"), y = Math.sqrt(+g), A = mt((A + 1) / 2) - (A < 0 || A % 2), y == 1 / 0 ? g = "5e" + A : (g = y.toExponential(), g = g.slice(0, g.indexOf("e") + 1) + A), v = new x(g)) : v = new x(y + ""), v.c[0]) {
1528
+ return new x(!y || y < 0 && (!I || I[0]) ? NaN : I ? N : 1 / 0);
1529
+ if (y = Math.sqrt(+L(N)), y == 0 || y == 1 / 0 ? (g = ft(I), (g.length + A) % 2 == 0 && (g += "0"), y = Math.sqrt(+g), A = mt((A + 1) / 2) - (A < 0 || A % 2), y == 1 / 0 ? g = "5e" + A : (g = y.toExponential(), g = g.slice(0, g.indexOf("e") + 1) + A), v = new x(g)) : v = new x(y + ""), v.c[0]) {
1530
1530
  for (A = v.e, y = A + $, y < 3 && (y = 0); ; )
1531
- if (T = v, v = P.times(T.plus(t(O, T, $, 1))), ft(T.c).slice(0, y) === (g = ft(v.c)).slice(0, y))
1532
- if (v.e < A && --y, g = g.slice(y - 3, y + 1), g == "9999" || !N && g == "4999") {
1533
- if (!N && (F(T, T.e + i + 2, 0), T.times(T).eq(O))) {
1531
+ if (T = v, v = P.times(T.plus(t(N, T, $, 1))), ft(T.c).slice(0, y) === (g = ft(v.c)).slice(0, y))
1532
+ if (v.e < A && --y, g = g.slice(y - 3, y + 1), g == "9999" || !O && g == "4999") {
1533
+ if (!O && (F(T, T.e + i + 2, 0), T.times(T).eq(N))) {
1534
1534
  v = T;
1535
1535
  break;
1536
1536
  }
1537
- $ += 4, y += 4, N = 1;
1537
+ $ += 4, y += 4, O = 1;
1538
1538
  } else {
1539
- (!+g || !+g.slice(1) && g.charAt(0) == "5") && (F(v, v.e + i + 2, 1), b = !v.times(v).eq(O));
1539
+ (!+g || !+g.slice(1) && g.charAt(0) == "5") && (F(v, v.e + i + 2, 1), b = !v.times(v).eq(N));
1540
1540
  break;
1541
1541
  }
1542
1542
  }
@@ -1546,40 +1546,40 @@ function ud(e) {
1546
1546
  }, o.toFixed = function(b, g) {
1547
1547
  return b != null && (xe(b, 0, Ce), b = b + this.e + 1), E(this, b, g);
1548
1548
  }, o.toFormat = function(b, g, v) {
1549
- var N, T = this;
1549
+ var O, T = this;
1550
1550
  if (v == null)
1551
1551
  b != null && g && typeof g == "object" ? (v = g, g = null) : b && typeof b == "object" ? (v = b, b = g = null) : v = m;
1552
1552
  else if (typeof v != "object")
1553
1553
  throw Error(Ge + "Argument not an object: " + v);
1554
- if (N = T.toFixed(b, g), T.c) {
1555
- var O, I = N.split("."), y = +v.groupSize, A = +v.secondaryGroupSize, $ = v.groupSeparator || "", P = I[0], M = I[1], D = T.s < 0, _ = D ? P.slice(1) : P, j = _.length;
1556
- if (A && (O = y, y = A, A = O, j -= O), y > 0 && j > 0) {
1557
- for (O = j % y || y, P = _.substr(0, O); O < j; O += y) P += $ + _.substr(O, y);
1558
- A > 0 && (P += $ + _.slice(O)), D && (P = "-" + P);
1554
+ if (O = T.toFixed(b, g), T.c) {
1555
+ var N, I = O.split("."), y = +v.groupSize, A = +v.secondaryGroupSize, $ = v.groupSeparator || "", P = I[0], M = I[1], D = T.s < 0, _ = D ? P.slice(1) : P, j = _.length;
1556
+ if (A && (N = y, y = A, A = N, j -= N), y > 0 && j > 0) {
1557
+ for (N = j % y || y, P = _.substr(0, N); N < j; N += y) P += $ + _.substr(N, y);
1558
+ A > 0 && (P += $ + _.slice(N)), D && (P = "-" + P);
1559
1559
  }
1560
- N = M ? P + (v.decimalSeparator || "") + ((A = +v.fractionGroupSize) ? M.replace(
1560
+ O = M ? P + (v.decimalSeparator || "") + ((A = +v.fractionGroupSize) ? M.replace(
1561
1561
  new RegExp("\\d{" + A + "}\\B", "g"),
1562
1562
  "$&" + (v.fractionGroupSeparator || "")
1563
1563
  ) : M) : P;
1564
1564
  }
1565
- return (v.prefix || "") + N + (v.suffix || "");
1565
+ return (v.prefix || "") + O + (v.suffix || "");
1566
1566
  }, o.toFraction = function(b) {
1567
- var g, v, N, T, O, I, y, A, $, P, M, D, _ = this, j = _.c;
1567
+ var g, v, O, T, N, I, y, A, $, P, M, D, _ = this, j = _.c;
1568
1568
  if (b != null && (y = new x(b), !y.isInteger() && (y.c || y.s !== 1) || y.lt(s)))
1569
1569
  throw Error(Ge + "Argument " + (y.isInteger() ? "out of range: " : "not an integer: ") + L(y));
1570
1570
  if (!j) return new x(_);
1571
- for (g = new x(s), $ = v = new x(s), N = A = new x(s), D = ft(j), O = g.e = D.length - _.e - 1, g.c[0] = Ti[(I = O % se) < 0 ? se + I : I], b = !b || y.comparedTo(g) > 0 ? O > 0 ? g : $ : y, I = f, f = 1 / 0, y = new x(D), A.c[0] = 0; P = t(y, g, 0, 1), T = v.plus(P.times(N)), T.comparedTo(b) != 1; )
1572
- v = N, N = T, $ = A.plus(P.times(T = $)), A = T, g = y.minus(P.times(T = g)), y = T;
1573
- return T = t(b.minus(v), N, 0, 1), A = A.plus(T.times($)), v = v.plus(T.times(N)), A.s = $.s = _.s, O = O * 2, M = t($, N, O, c).minus(_).abs().comparedTo(
1574
- t(A, v, O, c).minus(_).abs()
1575
- ) < 1 ? [$, N] : [A, v], f = I, M;
1571
+ for (g = new x(s), $ = v = new x(s), O = A = new x(s), D = ft(j), N = g.e = D.length - _.e - 1, g.c[0] = Ti[(I = N % se) < 0 ? se + I : I], b = !b || y.comparedTo(g) > 0 ? N > 0 ? g : $ : y, I = f, f = 1 / 0, y = new x(D), A.c[0] = 0; P = t(y, g, 0, 1), T = v.plus(P.times(O)), T.comparedTo(b) != 1; )
1572
+ v = O, O = T, $ = A.plus(P.times(T = $)), A = T, g = y.minus(P.times(T = g)), y = T;
1573
+ return T = t(b.minus(v), O, 0, 1), A = A.plus(T.times($)), v = v.plus(T.times(O)), A.s = $.s = _.s, N = N * 2, M = t($, O, N, c).minus(_).abs().comparedTo(
1574
+ t(A, v, N, c).minus(_).abs()
1575
+ ) < 1 ? [$, O] : [A, v], f = I, M;
1576
1576
  }, o.toNumber = function() {
1577
1577
  return +L(this);
1578
1578
  }, o.toPrecision = function(b, g) {
1579
1579
  return b != null && xe(b, 1, Ce), E(this, b, g, 2);
1580
1580
  }, o.toString = function(b) {
1581
- var g, v = this, N = v.s, T = v.e;
1582
- return T === null ? N ? (g = "Infinity", N < 0 && (g = "-" + g)) : g = "NaN" : (b == null ? g = T <= a || T >= u ? Xo(ft(v.c), T) : Xt(ft(v.c), T, "0") : b === 10 && S ? (v = F(new x(v), i + T + 1, c), g = Xt(ft(v.c), v.e, "0")) : (xe(b, 2, w.length, "Base"), g = n(Xt(ft(v.c), T, "0"), 10, b, N, !0)), N < 0 && v.c[0] && (g = "-" + g)), g;
1581
+ var g, v = this, O = v.s, T = v.e;
1582
+ return T === null ? O ? (g = "Infinity", O < 0 && (g = "-" + g)) : g = "NaN" : (b == null ? g = T <= a || T >= u ? Xo(ft(v.c), T) : Xt(ft(v.c), T, "0") : b === 10 && S ? (v = F(new x(v), i + T + 1, c), g = Xt(ft(v.c), v.e, "0")) : (xe(b, 2, w.length, "Base"), g = n(Xt(ft(v.c), T, "0"), 10, b, O, !0)), O < 0 && v.c[0] && (g = "-" + g)), g;
1583
1583
  }, o.valueOf = o.toJSON = function() {
1584
1584
  return L(this);
1585
1585
  }, o._isBigNumber = !0, o[Symbol.toStringTag] = "BigNumber", o[Symbol.for("nodejs.util.inspect.custom")] = o.valueOf, e != null && x.set(e), x;
@@ -1817,7 +1817,7 @@ function T1(e) {
1817
1817
  return hn(yd, e);
1818
1818
  }
1819
1819
  const R1 = /^receive\(\) external payable$/;
1820
- function N1(e) {
1820
+ function O1(e) {
1821
1821
  return R1.test(e);
1822
1822
  }
1823
1823
  const ol = /* @__PURE__ */ new Set([
@@ -1825,7 +1825,7 @@ const ol = /* @__PURE__ */ new Set([
1825
1825
  "indexed",
1826
1826
  "storage",
1827
1827
  "calldata"
1828
- ]), O1 = /* @__PURE__ */ new Set(["indexed"]), ya = /* @__PURE__ */ new Set([
1828
+ ]), N1 = /* @__PURE__ */ new Set(["indexed"]), ya = /* @__PURE__ */ new Set([
1829
1829
  "calldata",
1830
1830
  "memory",
1831
1831
  "storage"
@@ -2095,7 +2095,7 @@ function wa(e, t = {}) {
2095
2095
  return Z1(e, t);
2096
2096
  if (A1(e))
2097
2097
  return Y1(e);
2098
- if (N1(e))
2098
+ if (O1(e))
2099
2099
  return {
2100
2100
  type: "receive",
2101
2101
  stateMutability: "payable"
@@ -2138,7 +2138,7 @@ function G1(e, t = {}) {
2138
2138
  const r = rt(n.parameters), o = [], s = r.length;
2139
2139
  for (let i = 0; i < s; i++)
2140
2140
  o.push(un(r[i], {
2141
- modifiers: O1,
2141
+ modifiers: N1,
2142
2142
  structs: t,
2143
2143
  type: "event"
2144
2144
  }));
@@ -2255,7 +2255,7 @@ function eb(e) {
2255
2255
  function tb(e, t) {
2256
2256
  return t || e === "bytes" || e === "string" || e === "tuple";
2257
2257
  }
2258
- function Nc(e) {
2258
+ function Oc(e) {
2259
2259
  const t = {}, n = e.length;
2260
2260
  for (let i = 0; i < n; i++) {
2261
2261
  const c = e[i];
@@ -2314,7 +2314,7 @@ function vd(e, t, n = /* @__PURE__ */ new Set()) {
2314
2314
  return r;
2315
2315
  }
2316
2316
  function xd(e) {
2317
- const t = Nc(e), n = [], r = e.length;
2317
+ const t = Oc(e), n = [], r = e.length;
2318
2318
  for (let o = 0; o < r; o++) {
2319
2319
  const s = e[o];
2320
2320
  Ds(s) || n.push(wa(s, t));
@@ -2326,7 +2326,7 @@ function sl(e) {
2326
2326
  if (typeof e == "string")
2327
2327
  t = wa(e);
2328
2328
  else {
2329
- const n = Nc(e), r = e.length;
2329
+ const n = Oc(e), r = e.length;
2330
2330
  for (let o = 0; o < r; o++) {
2331
2331
  const s = e[o];
2332
2332
  if (!Ds(s)) {
@@ -2346,7 +2346,7 @@ function il(e) {
2346
2346
  for (let o = 0; o < r; o++)
2347
2347
  t.push(un(n[o], { modifiers: ol }));
2348
2348
  } else {
2349
- const n = Nc(e), r = e.length;
2349
+ const n = Oc(e), r = e.length;
2350
2350
  for (let o = 0; o < r; o++) {
2351
2351
  const s = e[o];
2352
2352
  if (Ds(s))
@@ -2367,7 +2367,7 @@ function Q(e, t, n) {
2367
2367
  const o = e[n];
2368
2368
  return typeof o == "function" ? o : (s) => t(e, s);
2369
2369
  }
2370
- function Ot(e, { includeName: t = !1 } = {}) {
2370
+ function Nt(e, { includeName: t = !1 } = {}) {
2371
2371
  if (e.type !== "function" && e.type !== "event" && e.type !== "error")
2372
2372
  throw new bb(e.type);
2373
2373
  return `${e.name}(${js(e.inputs, { includeName: t })})`;
@@ -2643,8 +2643,8 @@ class db extends W {
2643
2643
  constructor(t, n) {
2644
2644
  super("Found ambiguous types in overloaded ABI items.", {
2645
2645
  metaMessages: [
2646
- `\`${t.type}\` in \`${Ot(t.abiItem)}\`, and`,
2647
- `\`${n.type}\` in \`${Ot(n.abiItem)}\``,
2646
+ `\`${t.type}\` in \`${Nt(t.abiItem)}\`, and`,
2647
+ `\`${n.type}\` in \`${Nt(n.abiItem)}\``,
2648
2648
  "",
2649
2649
  "These types encode differently and cannot be distinguished at runtime.",
2650
2650
  "Remove one of the ambiguous items in the ABI."
@@ -2694,10 +2694,10 @@ class ys extends W {
2694
2694
  }), this.abiItem = t, this.data = n, this.params = r, this.size = o;
2695
2695
  }
2696
2696
  }
2697
- class Oc extends W {
2697
+ class Nc extends W {
2698
2698
  constructor({ abiItem: t, param: n }) {
2699
2699
  super([
2700
- `Expected a topic for indexed event parameter${n.name ? ` "${n.name}"` : ""} on event "${Ot(t, { includeName: !0 })}".`
2700
+ `Expected a topic for indexed event parameter${n.name ? ` "${n.name}"` : ""} on event "${Nt(t, { includeName: !0 })}".`
2701
2701
  ].join(`
2702
2702
  `), { name: "DecodeLogTopicsMismatch" }), Object.defineProperty(this, "abiItem", {
2703
2703
  enumerable: !0,
@@ -2753,7 +2753,7 @@ let Rd = class extends W {
2753
2753
  constructor({ offset: t, position: n, size: r }) {
2754
2754
  super(`Slice ${n === "start" ? "starting" : "ending"} at offset "${t}" is out-of-bounds (size: ${r}).`, { name: "SliceOffsetOutOfBoundsError" });
2755
2755
  }
2756
- }, Nd = class extends W {
2756
+ }, Od = class extends W {
2757
2757
  constructor({ size: t, targetSize: n, type: r }) {
2758
2758
  super(`${r.charAt(0).toUpperCase()}${r.slice(1).toLowerCase()} size (${t}) exceeds padding size (${n}).`, { name: "SizeExceedsPaddingSizeError" });
2759
2759
  }
@@ -2771,7 +2771,7 @@ function Sn(e, { dir: t, size: n = 32 } = {}) {
2771
2771
  return e;
2772
2772
  const r = e.replace("0x", "");
2773
2773
  if (r.length > n * 2)
2774
- throw new Nd({
2774
+ throw new Od({
2775
2775
  size: Math.ceil(r.length / 2),
2776
2776
  targetSize: n,
2777
2777
  type: "hex"
@@ -2782,7 +2782,7 @@ function yb(e, { dir: t, size: n = 32 } = {}) {
2782
2782
  if (n === null)
2783
2783
  return e;
2784
2784
  if (e.length > n)
2785
- throw new Nd({
2785
+ throw new Od({
2786
2786
  size: e.length,
2787
2787
  targetSize: n,
2788
2788
  type: "bytes"
@@ -2794,7 +2794,7 @@ function yb(e, { dir: t, size: n = 32 } = {}) {
2794
2794
  }
2795
2795
  return r;
2796
2796
  }
2797
- let Od = class extends W {
2797
+ let Nd = class extends W {
2798
2798
  constructor({ max: t, min: n, signed: r, size: o, value: s }) {
2799
2799
  super(`Number "${s}" is not in safe ${o ? `${o * 8}-bit ${r ? "signed" : "unsigned"} ` : ""}integer range ${t ? `(${n} to ${t})` : `(above ${n})`}`, { name: "IntegerOutOfRangeError" });
2800
2800
  }
@@ -2870,7 +2870,7 @@ function J(e, t = {}) {
2870
2870
  const i = typeof s == "bigint" && n ? -s - 1n : 0;
2871
2871
  if (s && o > s || o < i) {
2872
2872
  const a = typeof e == "bigint" ? "n" : "";
2873
- throw new Od({
2873
+ throw new Nd({
2874
2874
  max: s ? `${s}${a}` : void 0,
2875
2875
  min: `${i}${a}`,
2876
2876
  signed: n,
@@ -2936,7 +2936,7 @@ const Qo = /* @__PURE__ */ BigInt(2 ** 32 - 1), dl = /* @__PURE__ */ BigInt(32);
2936
2936
  function Rb(e, t = !1) {
2937
2937
  return t ? { h: Number(e & Qo), l: Number(e >> dl & Qo) } : { h: Number(e >> dl & Qo) | 0, l: Number(e & Qo) | 0 };
2938
2938
  }
2939
- function Nb(e, t = !1) {
2939
+ function Ob(e, t = !1) {
2940
2940
  const n = e.length;
2941
2941
  let r = new Uint32Array(n), o = new Uint32Array(n);
2942
2942
  for (let s = 0; s < n; s++) {
@@ -2945,7 +2945,7 @@ function Nb(e, t = !1) {
2945
2945
  }
2946
2946
  return [r, o];
2947
2947
  }
2948
- const Ob = (e, t, n) => e << n | t >>> 32 - n, Ib = (e, t, n) => t << n | e >>> 32 - n, Cb = (e, t, n) => t << n - 32 | e >>> 64 - n, Bb = (e, t, n) => e << n - 32 | t >>> 64 - n, ar = typeof globalThis == "object" && "crypto" in globalThis ? globalThis.crypto : void 0;
2948
+ const Nb = (e, t, n) => e << n | t >>> 32 - n, Ib = (e, t, n) => t << n | e >>> 32 - n, Cb = (e, t, n) => t << n - 32 | e >>> 64 - n, Bb = (e, t, n) => e << n - 32 | t >>> 64 - n, ar = typeof globalThis == "object" && "crypto" in globalThis ? globalThis.crypto : void 0;
2949
2949
  /*! noble-hashes - MIT License (c) 2022 Paul Miller (paulmillr.com) */
2950
2950
  function Mb(e) {
2951
2951
  return e instanceof Uint8Array || ArrayBuffer.isView(e) && e.constructor.name === "Uint8Array";
@@ -2984,7 +2984,7 @@ function Ar(...e) {
2984
2984
  for (let t = 0; t < e.length; t++)
2985
2985
  e[t].fill(0);
2986
2986
  }
2987
- function Ni(e) {
2987
+ function Oi(e) {
2988
2988
  return new DataView(e.buffer, e.byteOffset, e.byteLength);
2989
2989
  }
2990
2990
  function Lt(e, t) {
@@ -3042,7 +3042,7 @@ for (let e = 0, t = Wr, n = 1, r = 0; e < 24; e++) {
3042
3042
  t = (t << Wr ^ (t >> Vb) * qb) % Gb, t & Wb && (o ^= Wr << (Wr << /* @__PURE__ */ BigInt(s)) - Wr);
3043
3043
  Ld.push(o);
3044
3044
  }
3045
- const kd = Nb(Ld, !0), Zb = kd[0], Yb = kd[1], hl = (e, t, n) => n > 32 ? Cb(e, t, n) : Ob(e, t, n), ml = (e, t, n) => n > 32 ? Bb(e, t, n) : Ib(e, t, n);
3045
+ const kd = Ob(Ld, !0), Zb = kd[0], Yb = kd[1], hl = (e, t, n) => n > 32 ? Cb(e, t, n) : Nb(e, t, n), ml = (e, t, n) => n > 32 ? Bb(e, t, n) : Ib(e, t, n);
3046
3046
  function Kb(e, t = 24) {
3047
3047
  const n = new Uint32Array(10);
3048
3048
  for (let r = 24 - t; r < 24; r++) {
@@ -3206,15 +3206,15 @@ let Rn = class extends W {
3206
3206
  return this;
3207
3207
  }
3208
3208
  };
3209
- const Oi = /* @__PURE__ */ new zs(8192);
3209
+ const Ni = /* @__PURE__ */ new zs(8192);
3210
3210
  function Hs(e, t) {
3211
- if (Oi.has(`${e}.${t}`))
3212
- return Oi.get(`${e}.${t}`);
3211
+ if (Ni.has(`${e}.${t}`))
3212
+ return Ni.get(`${e}.${t}`);
3213
3213
  const n = e.substring(2).toLowerCase(), r = Le(Un(n), "bytes"), o = n.split("");
3214
3214
  for (let i = 0; i < 40; i += 2)
3215
3215
  r[i >> 1] >> 4 >= 8 && o[i] && (o[i] = o[i].toUpperCase()), (r[i >> 1] & 15) >= 8 && o[i + 1] && (o[i + 1] = o[i + 1].toUpperCase());
3216
3216
  const s = `0x${o.join("")}`;
3217
- return Oi.set(`${e}.${t}`, s), s;
3217
+ return Ni.set(`${e}.${t}`, s), s;
3218
3218
  }
3219
3219
  function $n(e, t) {
3220
3220
  if (!vt(e, { strict: !1 }))
@@ -3406,7 +3406,7 @@ function fg(e, { signed: t, size: n = 256 }) {
3406
3406
  if (typeof n == "number") {
3407
3407
  const r = 2n ** (BigInt(n) - (t ? 1n : 0n)) - 1n, o = t ? -r - 1n : 0n;
3408
3408
  if (e > r || e < o)
3409
- throw new Od({
3409
+ throw new Nd({
3410
3410
  max: r.toString(),
3411
3411
  min: o.toString(),
3412
3412
  signed: t,
@@ -3538,7 +3538,7 @@ function Fo(e) {
3538
3538
  }
3539
3539
  if (o.type !== "event")
3540
3540
  throw new ul(void 0, { docsPath: bl });
3541
- const s = Ot(o), i = Us(s);
3541
+ const s = Nt(o), i = Us(s);
3542
3542
  let c = [];
3543
3543
  if (r && "inputs" in o) {
3544
3544
  const u = (a = o.inputs) == null ? void 0 : a.filter((f) => "indexed" in f && f.indexed), l = Array.isArray(r) ? r : Object.values(r).length > 0 ? (u == null ? void 0 : u.map((f) => r[f.name])) ?? [] : [];
@@ -3609,7 +3609,7 @@ function hg(e) {
3609
3609
  throw new Sr(void 0, { docsPath: yl });
3610
3610
  return {
3611
3611
  abi: [o],
3612
- functionName: Mo(Ot(o))
3612
+ functionName: Mo(Nt(o))
3613
3613
  };
3614
3614
  }
3615
3615
  function Ft(e) {
@@ -3960,11 +3960,11 @@ function ro(e) {
3960
3960
  const n = Fc(e.type);
3961
3961
  return !!(n && ro({ ...e, type: n[1] }));
3962
3962
  }
3963
- function Ng(e) {
3963
+ function Og(e) {
3964
3964
  const { abi: t, data: n } = e, r = Tr(n, 0, 4);
3965
3965
  if (r === "0x")
3966
3966
  throw new Bo();
3967
- const s = [...t || [], Gd, bg].find((i) => i.type === "error" && r === Mo(Ot(i)));
3967
+ const s = [...t || [], Gd, bg].find((i) => i.type === "error" && r === Mo(Nt(i)));
3968
3968
  if (!s)
3969
3969
  throw new $d(r, {
3970
3970
  docsPath: "/docs/contract/decodeErrorResult"
@@ -3980,7 +3980,7 @@ function Zd({ abiItem: e, args: t, includeFunctionName: n = !0, includeName: r =
3980
3980
  if ("name" in e && "inputs" in e && e.inputs)
3981
3981
  return `${n ? e.name : ""}(${e.inputs.map((o, s) => `${r && o.name ? `${o.name}: ` : ""}${typeof t[s] == "object" ? ke(t[s]) : t[s]}`).join(", ")})`;
3982
3982
  }
3983
- const Og = {
3983
+ const Ng = {
3984
3984
  gwei: 9,
3985
3985
  wei: 18
3986
3986
  }, Ig = {
@@ -3998,7 +3998,7 @@ function kc(e, t) {
3998
3998
  return s = s.replace(/(0+)$/, ""), `${r ? "-" : ""}${o || "0"}${s ? `.${s}` : ""}`;
3999
3999
  }
4000
4000
  function Dc(e, t = "wei") {
4001
- return kc(e, Og[t]);
4001
+ return kc(e, Ng[t]);
4002
4002
  }
4003
4003
  function Ke(e, t = "wei") {
4004
4004
  return kc(e, Ig[t]);
@@ -4172,7 +4172,7 @@ class Qd extends W {
4172
4172
  args: r,
4173
4173
  includeFunctionName: !1,
4174
4174
  includeName: !1
4175
- }) : void 0, l = a ? Ot(a, { includeName: !0 }) : void 0, f = ko({
4175
+ }) : void 0, l = a ? Nt(a, { includeName: !0 }) : void 0, f = ko({
4176
4176
  address: o && jg(o),
4177
4177
  function: l,
4178
4178
  args: u && u !== "()" && `${[...Array((i == null ? void 0 : i.length) ?? 0).keys()].map(() => " ").join("")}${u}`,
@@ -4230,7 +4230,7 @@ class Pa extends W {
4230
4230
  let s, i, c, a;
4231
4231
  if (n && n !== "0x")
4232
4232
  try {
4233
- i = Ng({ abi: t, data: n });
4233
+ i = Og({ abi: t, data: n });
4234
4234
  const { abiItem: l, errorName: f, args: p } = i;
4235
4235
  if (f === "Error")
4236
4236
  a = p[0];
@@ -4238,7 +4238,7 @@ class Pa extends W {
4238
4238
  const [d] = p;
4239
4239
  a = mg[d];
4240
4240
  } else {
4241
- const d = l ? Ot(l, { includeName: !0 }) : void 0, h = l && p ? Zd({
4241
+ const d = l ? Nt(l, { includeName: !0 }) : void 0, h = l && p ? Zd({
4242
4242
  abiItem: l,
4243
4243
  args: p,
4244
4244
  includeFunctionName: !1,
@@ -4507,10 +4507,10 @@ Object.defineProperty(Vn, "code", {
4507
4507
  writable: !0,
4508
4508
  value: -32603
4509
4509
  });
4510
- class Nn extends tt {
4510
+ class On extends tt {
4511
4511
  constructor(t) {
4512
4512
  super(t, {
4513
- code: Nn.code,
4513
+ code: On.code,
4514
4514
  name: "InvalidInputRpcError",
4515
4515
  shortMessage: [
4516
4516
  "Missing or invalid parameters.",
@@ -4520,7 +4520,7 @@ class Nn extends tt {
4520
4520
  });
4521
4521
  }
4522
4522
  }
4523
- Object.defineProperty(Nn, "code", {
4523
+ Object.defineProperty(On, "code", {
4524
4524
  enumerable: !0,
4525
4525
  configurable: !0,
4526
4526
  writable: !0,
@@ -4825,8 +4825,8 @@ class Hg extends tt {
4825
4825
  }
4826
4826
  }
4827
4827
  const Wg = 3;
4828
- function Nr(e, { abi: t, address: n, args: r, docsPath: o, functionName: s, sender: i }) {
4829
- const c = e instanceof Vs ? e : e instanceof W ? e.walk((h) => "data" in h) || e.walk() : {}, { code: a, data: u, details: l, message: f, shortMessage: p } = c, d = e instanceof Bo ? new _g({ functionName: s }) : [Wg, Vn.code].includes(a) && (u || l || f || p) || a === Nn.code && l === "execution reverted" && u ? new Pa({
4828
+ function Or(e, { abi: t, address: n, args: r, docsPath: o, functionName: s, sender: i }) {
4829
+ const c = e instanceof Vs ? e : e instanceof W ? e.walk((h) => "data" in h) || e.walk() : {}, { code: a, data: u, details: l, message: f, shortMessage: p } = c, d = e instanceof Bo ? new _g({ functionName: s }) : [Wg, Vn.code].includes(a) && (u || l || f || p) || a === On.code && l === "execution reverted" && u ? new Pa({
4830
4830
  abi: t,
4831
4831
  data: typeof u == "object" ? u.data : u,
4832
4832
  functionName: s,
@@ -5072,7 +5072,7 @@ Object.defineProperty(Ra, "nodeMessage", {
5072
5072
  writable: !0,
5073
5073
  value: /insufficient funds|exceeds transaction sender account balance/
5074
5074
  });
5075
- class Na extends W {
5075
+ class Oa extends W {
5076
5076
  constructor({ cause: t, gas: n } = {}) {
5077
5077
  super(`The amount of gas ${n ? `(${n}) ` : ""}provided for the transaction exceeds the limit allowed for the block.`, {
5078
5078
  cause: t,
@@ -5080,13 +5080,13 @@ class Na extends W {
5080
5080
  });
5081
5081
  }
5082
5082
  }
5083
- Object.defineProperty(Na, "nodeMessage", {
5083
+ Object.defineProperty(Oa, "nodeMessage", {
5084
5084
  enumerable: !0,
5085
5085
  configurable: !0,
5086
5086
  writable: !0,
5087
5087
  value: /intrinsic gas too high|gas limit reached/
5088
5088
  });
5089
- class Oa extends W {
5089
+ class Na extends W {
5090
5090
  constructor({ cause: t, gas: n } = {}) {
5091
5091
  super(`The amount of gas ${n ? `(${n}) ` : ""}provided for the transaction is too low.`, {
5092
5092
  cause: t,
@@ -5094,7 +5094,7 @@ class Oa extends W {
5094
5094
  });
5095
5095
  }
5096
5096
  }
5097
- Object.defineProperty(Oa, "nodeMessage", {
5097
+ Object.defineProperty(Na, "nodeMessage", {
5098
5098
  enumerable: !0,
5099
5099
  configurable: !0,
5100
5100
  writable: !0,
@@ -5153,7 +5153,7 @@ function Gs(e, t) {
5153
5153
  }) : Sa.nodeMessage.test(n) ? new Sa({
5154
5154
  cause: e,
5155
5155
  maxFeePerGas: t == null ? void 0 : t.maxFeePerGas
5156
- }) : $a.nodeMessage.test(n) ? new $a({ cause: e, nonce: t == null ? void 0 : t.nonce }) : Aa.nodeMessage.test(n) ? new Aa({ cause: e, nonce: t == null ? void 0 : t.nonce }) : Ta.nodeMessage.test(n) ? new Ta({ cause: e, nonce: t == null ? void 0 : t.nonce }) : Ra.nodeMessage.test(n) ? new Ra({ cause: e }) : Na.nodeMessage.test(n) ? new Na({ cause: e, gas: t == null ? void 0 : t.gas }) : Oa.nodeMessage.test(n) ? new Oa({ cause: e, gas: t == null ? void 0 : t.gas }) : Ia.nodeMessage.test(n) ? new Ia({ cause: e }) : vs.nodeMessage.test(n) ? new vs({
5156
+ }) : $a.nodeMessage.test(n) ? new $a({ cause: e, nonce: t == null ? void 0 : t.nonce }) : Aa.nodeMessage.test(n) ? new Aa({ cause: e, nonce: t == null ? void 0 : t.nonce }) : Ta.nodeMessage.test(n) ? new Ta({ cause: e, nonce: t == null ? void 0 : t.nonce }) : Ra.nodeMessage.test(n) ? new Ra({ cause: e }) : Oa.nodeMessage.test(n) ? new Oa({ cause: e, gas: t == null ? void 0 : t.gas }) : Na.nodeMessage.test(n) ? new Na({ cause: e, gas: t == null ? void 0 : t.gas }) : Ia.nodeMessage.test(n) ? new Ia({ cause: e }) : vs.nodeMessage.test(n) ? new vs({
5157
5157
  cause: e,
5158
5158
  maxFeePerGas: t == null ? void 0 : t.maxFeePerGas,
5159
5159
  maxPriorityFeePerGas: t == null ? void 0 : t.maxPriorityFeePerGas
@@ -5490,7 +5490,7 @@ function cy(e, t, n) {
5490
5490
  }
5491
5491
  class uy extends Ic {
5492
5492
  constructor(t, n, r, o) {
5493
- super(), this.finished = !1, this.length = 0, this.pos = 0, this.destroyed = !1, this.blockLen = t, this.outputLen = n, this.padOffset = r, this.isLE = o, this.buffer = new Uint8Array(t), this.view = Ni(this.buffer);
5493
+ super(), this.finished = !1, this.length = 0, this.pos = 0, this.destroyed = !1, this.blockLen = t, this.outputLen = n, this.padOffset = r, this.isLE = o, this.buffer = new Uint8Array(t), this.view = Oi(this.buffer);
5494
5494
  }
5495
5495
  update(t) {
5496
5496
  $r(this), t = _s(t), Wn(t);
@@ -5498,7 +5498,7 @@ class uy extends Ic {
5498
5498
  for (let i = 0; i < s; ) {
5499
5499
  const c = Math.min(o - this.pos, s - i);
5500
5500
  if (c === o) {
5501
- const a = Ni(t);
5501
+ const a = Oi(t);
5502
5502
  for (; o <= s - i; i += o)
5503
5503
  this.process(a, i);
5504
5504
  continue;
@@ -5515,7 +5515,7 @@ class uy extends Ic {
5515
5515
  for (let f = i; f < o; f++)
5516
5516
  n[f] = 0;
5517
5517
  iy(r, o - 8, BigInt(this.length * 8), s), this.process(r, 0);
5518
- const c = Ni(t), a = this.outputLen;
5518
+ const c = Oi(t), a = this.outputLen;
5519
5519
  if (a % 4)
5520
5520
  throw new Error("_sha2: outputLen should be aligned to 32bit");
5521
5521
  const u = a / 4, l = this.get();
@@ -5747,13 +5747,13 @@ async function Gc(e) {
5747
5747
  return ln(t);
5748
5748
  }
5749
5749
  async function m0(e, t) {
5750
- var b, g, v, N, T;
5750
+ var b, g, v, O, T;
5751
5751
  const { account: n = e.account, accessList: r, authorizationList: o, chain: s = e.chain, blobVersionedHashes: i, blobs: c, data: a, gas: u, gasPrice: l, maxFeePerBlobGas: f, maxFeePerGas: p, maxPriorityFeePerGas: d, nonce: h, nonceManager: m, to: w, type: S, value: x, ...E } = t, R = await (async () => {
5752
5752
  if (!n || !m || typeof h < "u")
5753
5753
  return h;
5754
- const O = ot(n), I = s ? s.id : await Q(e, Gc, "getChainId")({});
5754
+ const N = ot(n), I = s ? s.id : await Q(e, Gc, "getChainId")({});
5755
5755
  return await m.consume({
5756
- address: O.address,
5756
+ address: N.address,
5757
5757
  chainId: I,
5758
5758
  client: e
5759
5759
  });
@@ -5779,10 +5779,10 @@ async function m0(e, t) {
5779
5779
  value: x
5780
5780
  }, "fillTransaction");
5781
5781
  try {
5782
- const O = await e.request({
5782
+ const N = await e.request({
5783
5783
  method: "eth_fillTransaction",
5784
5784
  params: [L]
5785
- }), y = (((N = (v = s == null ? void 0 : s.formatters) == null ? void 0 : v.transaction) == null ? void 0 : N.format) || Hc)(O.tx);
5785
+ }), y = (((O = (v = s == null ? void 0 : s.formatters) == null ? void 0 : v.transaction) == null ? void 0 : O.format) || Hc)(N.tx);
5786
5786
  delete y.blockHash, delete y.blockNumber, delete y.r, delete y.s, delete y.transactionIndex, delete y.v, delete y.yParity, y.data = y.input, y.gas && (y.gas = t.gas ?? y.gas), y.gasPrice && (y.gasPrice = t.gasPrice ?? y.gasPrice), y.maxFeePerBlobGas && (y.maxFeePerBlobGas = t.maxFeePerBlobGas ?? y.maxFeePerBlobGas), y.maxFeePerGas && (y.maxFeePerGas = t.maxFeePerGas ?? y.maxFeePerGas), y.maxPriorityFeePerGas && (y.maxPriorityFeePerGas = t.maxPriorityFeePerGas ?? y.maxPriorityFeePerGas), y.nonce && (y.nonce = t.nonce ?? y.nonce);
5787
5787
  const A = await (async () => {
5788
5788
  var D, _;
@@ -5800,14 +5800,14 @@ async function m0(e, t) {
5800
5800
  throw new o0();
5801
5801
  const P = 10 ** (((T = A.toString().split(".")[1]) == null ? void 0 : T.length) ?? 0), M = (D) => D * BigInt(Math.ceil(A * P)) / BigInt(P);
5802
5802
  return y.maxFeePerGas && !t.maxFeePerGas && (y.maxFeePerGas = M(y.maxFeePerGas)), y.gasPrice && !t.gasPrice && (y.gasPrice = M(y.gasPrice)), {
5803
- raw: O.raw,
5803
+ raw: N.raw,
5804
5804
  transaction: {
5805
5805
  from: L.from,
5806
5806
  ...y
5807
5807
  }
5808
5808
  };
5809
- } catch (O) {
5810
- throw xy(O, {
5809
+ } catch (N) {
5810
+ throw xy(N, {
5811
5811
  ...t,
5812
5812
  chain: e.chain
5813
5813
  });
@@ -5854,16 +5854,16 @@ async function b0(e, t) {
5854
5854
  phase: "beforeFillTransaction"
5855
5855
  }), f ?? (f = n.nonce));
5856
5856
  const d = ((i.includes("blobVersionedHashes") || i.includes("sidecars")) && n.kzg && n.blobs || Ci.get(e.uid) === !1 || !["fees", "gas"].some((b) => i.includes(b)) ? !1 : !!(i.includes("chainId") && typeof n.chainId != "number" || i.includes("nonce") && typeof f != "number" || i.includes("fees") && typeof n.gasPrice != "bigint" && (typeof n.maxFeePerGas != "bigint" || typeof n.maxPriorityFeePerGas != "bigint") || i.includes("gas") && typeof n.gas != "bigint")) ? await Q(e, m0, "fillTransaction")({ ...n, nonce: f }).then((L) => {
5857
- const { chainId: b, from: g, gas: v, gasPrice: N, nonce: T, maxFeePerBlobGas: O, maxFeePerGas: I, maxPriorityFeePerGas: y, type: A, ...$ } = L.transaction;
5857
+ const { chainId: b, from: g, gas: v, gasPrice: O, nonce: T, maxFeePerBlobGas: N, maxFeePerGas: I, maxPriorityFeePerGas: y, type: A, ...$ } = L.transaction;
5858
5858
  return Ci.set(e.uid, !0), {
5859
5859
  ...n,
5860
5860
  ...g ? { from: g } : {},
5861
5861
  ...A ? { type: A } : {},
5862
5862
  ...typeof b < "u" ? { chainId: b } : {},
5863
5863
  ...typeof v < "u" ? { gas: v } : {},
5864
- ...typeof N < "u" ? { gasPrice: N } : {},
5864
+ ...typeof O < "u" ? { gasPrice: O } : {},
5865
5865
  ...typeof T < "u" ? { nonce: T } : {},
5866
- ...typeof O < "u" ? { maxFeePerBlobGas: O } : {},
5866
+ ...typeof N < "u" ? { maxFeePerBlobGas: N } : {},
5867
5867
  ...typeof I < "u" ? { maxFeePerGas: I } : {},
5868
5868
  ...typeof y < "u" ? { maxPriorityFeePerGas: y } : {},
5869
5869
  ..."nonceKey" in $ && typeof $.nonceKey < "u" ? { nonceKey: $.nonceKey } : {}
@@ -5871,8 +5871,8 @@ async function b0(e, t) {
5871
5871
  }).catch((L) => {
5872
5872
  var v;
5873
5873
  const b = L;
5874
- return ((v = b.walk) == null ? void 0 : v.call(b, (N) => {
5875
- const T = N;
5874
+ return ((v = b.walk) == null ? void 0 : v.call(b, (O) => {
5875
+ const T = O;
5876
5876
  return T.name === "MethodNotFoundRpcError" || T.name === "MethodNotSupportedRpcError";
5877
5877
  })) && Ci.set(e.uid, !1), n;
5878
5878
  }) : n;
@@ -5982,11 +5982,11 @@ async function qc(e, t) {
5982
5982
  }) : t;
5983
5983
  if (S && t.gas !== S)
5984
5984
  return S;
5985
- const N = (typeof h == "bigint" ? J(h) : void 0) || m, T = Uc(b);
5985
+ const O = (typeof h == "bigint" ? J(h) : void 0) || m, T = Uc(b);
5986
5986
  Fr(t);
5987
- const O = (a = (c = (i = e.chain) == null ? void 0 : i.formatters) == null ? void 0 : c.transactionRequest) == null ? void 0 : a.format, y = (O || jo)({
5987
+ const N = (a = (c = (i = e.chain) == null ? void 0 : i.formatters) == null ? void 0 : c.transactionRequest) == null ? void 0 : a.format, y = (N || jo)({
5988
5988
  // Pick out extra data that might exist on the chain's transaction request type.
5989
- ...qs(g, { format: O }),
5989
+ ...qs(g, { format: N }),
5990
5990
  account: o,
5991
5991
  accessList: l,
5992
5992
  authorizationList: f,
@@ -6005,9 +6005,9 @@ async function qc(e, t) {
6005
6005
  method: "eth_estimateGas",
6006
6006
  params: T ? [
6007
6007
  y,
6008
- N ?? e.experimental_blockTag ?? "latest",
6008
+ O ?? e.experimental_blockTag ?? "latest",
6009
6009
  T
6010
- ] : N ? [y, N] : [y]
6010
+ ] : O ? [y, O] : [y]
6011
6011
  }));
6012
6012
  } catch (u) {
6013
6013
  throw Qg(u, {
@@ -6031,7 +6031,7 @@ async function Py(e, t) {
6031
6031
  });
6032
6032
  } catch (u) {
6033
6033
  const l = c.account ? ot(c.account) : void 0;
6034
- throw Nr(u, {
6034
+ throw Or(u, {
6035
6035
  abi: n,
6036
6036
  address: r,
6037
6037
  args: o,
@@ -6053,14 +6053,14 @@ function xs(e) {
6053
6053
  const { abi: t, data: n, strict: r, topics: o } = e, s = r ?? !0, [i, ...c] = o;
6054
6054
  if (!i)
6055
6055
  throw new ub({ docsPath: Rl });
6056
- const a = t.find((m) => m.type === "event" && i === Us(Ot(m)));
6056
+ const a = t.find((m) => m.type === "event" && i === Us(Nt(m)));
6057
6057
  if (!(a && "name" in a) || a.type !== "event")
6058
6058
  throw new lb(i, { docsPath: Rl });
6059
6059
  const { name: u, inputs: l } = a, f = l == null ? void 0 : l.some((m) => !("name" in m && m.name)), p = f ? [] : {}, d = l.map((m, w) => [m, w]).filter(([m]) => "indexed" in m && m.indexed);
6060
6060
  for (let m = 0; m < d.length; m++) {
6061
6061
  const [w, S] = d[m], x = c[m];
6062
6062
  if (!x)
6063
- throw new Oc({
6063
+ throw new Nc({
6064
6064
  abiItem: a,
6065
6065
  param: w
6066
6066
  });
@@ -6287,7 +6287,7 @@ function Ao(e) {
6287
6287
  return t;
6288
6288
  }
6289
6289
  const Jt = { _0: 48, _9: 57, A: 65, F: 70, a: 97, f: 102 };
6290
- function Nl(e) {
6290
+ function Ol(e) {
6291
6291
  if (e >= Jt._0 && e <= Jt._9)
6292
6292
  return e - Jt._0;
6293
6293
  if (e >= Jt.A && e <= Jt.F)
@@ -6305,7 +6305,7 @@ function Es(e) {
6305
6305
  throw new Error("hex string expected, got unpadded hex of length " + t);
6306
6306
  const r = new Uint8Array(n);
6307
6307
  for (let o = 0, s = 0; o < n; o++, s += 2) {
6308
- const i = Nl(e.charCodeAt(s)), c = Nl(e.charCodeAt(s + 1));
6308
+ const i = Ol(e.charCodeAt(s)), c = Ol(e.charCodeAt(s + 1));
6309
6309
  if (i === void 0 || c === void 0) {
6310
6310
  const a = e[s] + e[s + 1];
6311
6311
  throw new Error('hex string expected, got non-hex character "' + a + '" at index ' + s);
@@ -6370,7 +6370,7 @@ function Ty(e) {
6370
6370
  ;
6371
6371
  return t;
6372
6372
  }
6373
- const Ys = (e) => (Ba << BigInt(e)) - Ba, Fi = (e) => new Uint8Array(e), Ol = (e) => Uint8Array.from(e);
6373
+ const Ys = (e) => (Ba << BigInt(e)) - Ba, Fi = (e) => new Uint8Array(e), Nl = (e) => Uint8Array.from(e);
6374
6374
  function Ry(e, t, n) {
6375
6375
  if (typeof e != "number" || e < 2)
6376
6376
  throw new Error("hashLen must be a number");
@@ -6382,7 +6382,7 @@ function Ry(e, t, n) {
6382
6382
  const i = () => {
6383
6383
  r.fill(1), o.fill(0), s = 0;
6384
6384
  }, c = (...f) => n(o, r, ...f), a = (f = Fi(0)) => {
6385
- o = c(Ol([0]), f), r = c(), f.length !== 0 && (o = c(Ol([1]), f), r = c());
6385
+ o = c(Nl([0]), f), r = c(), f.length !== 0 && (o = c(Nl([1]), f), r = c());
6386
6386
  }, u = () => {
6387
6387
  if (s++ >= 1e3)
6388
6388
  throw new Error("drbg: tried 1000 values");
@@ -6403,7 +6403,7 @@ function Ry(e, t, n) {
6403
6403
  return i(), d;
6404
6404
  };
6405
6405
  }
6406
- const Ny = {
6406
+ const Oy = {
6407
6407
  bigint: (e) => typeof e == "bigint",
6408
6408
  function: (e) => typeof e == "function",
6409
6409
  boolean: (e) => typeof e == "boolean",
@@ -6416,7 +6416,7 @@ const Ny = {
6416
6416
  };
6417
6417
  function Ks(e, t, n = {}) {
6418
6418
  const r = (o, s, i) => {
6419
- const c = Ny[s];
6419
+ const c = Oy[s];
6420
6420
  if (typeof c != "function")
6421
6421
  throw new Error("invalid validator function");
6422
6422
  const a = e[o];
@@ -6439,9 +6439,9 @@ function Il(e) {
6439
6439
  return t.set(n, s), s;
6440
6440
  };
6441
6441
  }
6442
- const Oy = "0.1.1";
6442
+ const Ny = "0.1.1";
6443
6443
  function Iy() {
6444
- return Oy;
6444
+ return Ny;
6445
6445
  }
6446
6446
  class ue extends Error {
6447
6447
  constructor(t, n = {}) {
@@ -6635,7 +6635,7 @@ function Hy(e, t = {}) {
6635
6635
  const { size: n } = t;
6636
6636
  typeof n < "u" && zo(e, n);
6637
6637
  const r = Ct(e, t);
6638
- return N0(r, t);
6638
+ return O0(r, t);
6639
6639
  }
6640
6640
  function Wy(e, t = {}) {
6641
6641
  const { size: n } = t;
@@ -6648,7 +6648,7 @@ function an(e, t = {}) {
6648
6648
  const { size: n } = t;
6649
6649
  typeof n < "u" && zo(e, n);
6650
6650
  const r = Ct(e, t);
6651
- return O0(r, t);
6651
+ return N0(r, t);
6652
6652
  }
6653
6653
  function Vy(e, t = {}) {
6654
6654
  const { size: n } = t;
@@ -6759,7 +6759,7 @@ function Ut(e, t, n, r = {}) {
6759
6759
  function st(e) {
6760
6760
  return Math.ceil((e.length - 2) / 2);
6761
6761
  }
6762
- function N0(e, t = {}) {
6762
+ function O0(e, t = {}) {
6763
6763
  const { signed: n } = t;
6764
6764
  t.size && Xs(e, t.size);
6765
6765
  const r = BigInt(e);
@@ -6768,9 +6768,9 @@ function N0(e, t = {}) {
6768
6768
  const o = (e.length - 2) / 2, s = (1n << BigInt(o) * 8n) - 1n, i = s >> 1n;
6769
6769
  return r <= i ? r : r - s - 1n;
6770
6770
  }
6771
- function O0(e, t = {}) {
6771
+ function N0(e, t = {}) {
6772
6772
  const { signed: n, size: r } = t;
6773
- return Number(!n && !r ? e : N0(e, t));
6773
+ return Number(!n && !r ? e : O0(e, t));
6774
6774
  }
6775
6775
  function ew(e, t = {}) {
6776
6776
  const { strict: n = !1 } = t;
@@ -7497,13 +7497,13 @@ function U0({ fn: e, id: t, shouldSplitBatch: n, wait: r = 0, sort: o }) {
7497
7497
  };
7498
7498
  }
7499
7499
  async function Qs(e, t) {
7500
- var O, I, y, A;
7501
- const { account: n = e.account, authorizationList: r, batch: o = !!((O = e.batch) != null && O.multicall), blockNumber: s, blockTag: i = e.experimental_blockTag ?? "latest", accessList: c, blobs: a, blockOverrides: u, code: l, data: f, factory: p, factoryData: d, gas: h, gasPrice: m, maxFeePerBlobGas: w, maxFeePerGas: S, maxPriorityFeePerGas: x, nonce: E, to: R, value: B, stateOverride: F, ...L } = t, b = n ? ot(n) : void 0;
7500
+ var N, I, y, A;
7501
+ const { account: n = e.account, authorizationList: r, batch: o = !!((N = e.batch) != null && N.multicall), blockNumber: s, blockTag: i = e.experimental_blockTag ?? "latest", accessList: c, blobs: a, blockOverrides: u, code: l, data: f, factory: p, factoryData: d, gas: h, gasPrice: m, maxFeePerBlobGas: w, maxFeePerGas: S, maxPriorityFeePerGas: x, nonce: E, to: R, value: B, stateOverride: F, ...L } = t, b = n ? ot(n) : void 0;
7502
7502
  if (l && (p || d))
7503
7503
  throw new W("Cannot provide both `code` & `factory`/`factoryData` as parameters.");
7504
7504
  if (l && R)
7505
7505
  throw new W("Cannot provide both `code` & `to` as parameters.");
7506
- const g = l && f, v = p && d && R && f, N = g || v, T = g ? z0({
7506
+ const g = l && f, v = p && d && R && f, O = g || v, T = g ? z0({
7507
7507
  code: l,
7508
7508
  data: f
7509
7509
  }) : v ? lw({
@@ -7528,7 +7528,7 @@ async function Qs(e, t) {
7528
7528
  maxFeePerGas: S,
7529
7529
  maxPriorityFeePerGas: x,
7530
7530
  nonce: E,
7531
- to: N ? void 0 : R,
7531
+ to: O ? void 0 : R,
7532
7532
  value: B
7533
7533
  }, "call");
7534
7534
  if (o && cw({ request: H }) && !D && !M)
@@ -7554,10 +7554,10 @@ async function Qs(e, t) {
7554
7554
  });
7555
7555
  return V === "0x" ? { data: void 0 } : { data: V };
7556
7556
  } catch ($) {
7557
- const P = fw($), { offchainLookup: M, offchainLookupSignature: D } = await import("./ccip-b8Cqywm8.mjs");
7557
+ const P = fw($), { offchainLookup: M, offchainLookupSignature: D } = await import("./ccip-BlKAu0JD.mjs");
7558
7558
  if (e.ccipRead !== !1 && (P == null ? void 0 : P.slice(0, 10)) === D && R)
7559
7559
  return { data: await M(e, { data: P, to: R }) };
7560
- throw N && (P == null ? void 0 : P.slice(0, 10)) === "0x101bb98d" ? new Ug({ factory: p }) : j0($, {
7560
+ throw O && (P == null ? void 0 : P.slice(0, 10)) === "0x101bb98d" ? new Ug({ factory: p }) : j0($, {
7561
7561
  ...t,
7562
7562
  account: b,
7563
7563
  chain: e.chain
@@ -7665,7 +7665,7 @@ async function Bt(e, t) {
7665
7665
  data: a || "0x"
7666
7666
  });
7667
7667
  } catch (a) {
7668
- throw Nr(a, {
7668
+ throw Or(a, {
7669
7669
  abi: n,
7670
7670
  address: r,
7671
7671
  args: o,
@@ -7702,7 +7702,7 @@ async function dw(e, t) {
7702
7702
  }
7703
7703
  };
7704
7704
  } catch (l) {
7705
- throw Nr(l, {
7705
+ throw Or(l, {
7706
7706
  abi: n,
7707
7707
  address: r,
7708
7708
  args: o,
@@ -7714,7 +7714,7 @@ async function dw(e, t) {
7714
7714
  }
7715
7715
  const Di = /* @__PURE__ */ new Map(), Dl = /* @__PURE__ */ new Map();
7716
7716
  let pw = 0;
7717
- function On(e, t, n) {
7717
+ function Nn(e, t, n) {
7718
7718
  const r = ++pw, o = () => Di.get(e) || [], s = () => {
7719
7719
  const l = o();
7720
7720
  Di.set(e, l.filter((f) => f.id !== r));
@@ -7833,7 +7833,7 @@ function ww(e, t) {
7833
7833
  w,
7834
7834
  c
7835
7835
  ]);
7836
- return On(S, { onLogs: u, onError: a }, (x) => {
7836
+ return Nn(S, { onLogs: u, onError: a }, (x) => {
7837
7837
  let E;
7838
7838
  c !== void 0 && (E = c - 1n);
7839
7839
  let R, B = !1;
@@ -7878,7 +7878,7 @@ function ww(e, t) {
7878
7878
  for (const g of b)
7879
7879
  x.onLogs([g]);
7880
7880
  } catch (b) {
7881
- R && b instanceof Nn && (B = !1), (L = x.onError) == null || L.call(x, b);
7881
+ R && b instanceof On && (B = !1), (L = x.onError) == null || L.call(x, b);
7882
7882
  }
7883
7883
  }, {
7884
7884
  emitOnBegin: !0,
@@ -7900,7 +7900,7 @@ function ww(e, t) {
7900
7900
  w
7901
7901
  ]);
7902
7902
  let x = !0, E = () => x = !1;
7903
- return On(S, { onLogs: u, onError: a }, (R) => ((async () => {
7903
+ return Nn(S, { onLogs: u, onError: a }, (R) => ((async () => {
7904
7904
  try {
7905
7905
  const B = (() => {
7906
7906
  if (e.transport.type === "fallback") {
@@ -7920,25 +7920,25 @@ function ww(e, t) {
7920
7920
  return;
7921
7921
  const g = b.result;
7922
7922
  try {
7923
- const { eventName: N, args: T } = xs({
7923
+ const { eventName: O, args: T } = xs({
7924
7924
  abi: n,
7925
7925
  data: g.data,
7926
7926
  topics: g.topics,
7927
7927
  strict: p
7928
- }), O = fn(g, {
7928
+ }), N = fn(g, {
7929
7929
  args: T,
7930
- eventName: N
7930
+ eventName: O
7931
7931
  });
7932
- R.onLogs([O]);
7933
- } catch (N) {
7934
- let T, O;
7935
- if (N instanceof ys || N instanceof Oc) {
7932
+ R.onLogs([N]);
7933
+ } catch (O) {
7934
+ let T, N;
7935
+ if (O instanceof ys || O instanceof Nc) {
7936
7936
  if (p)
7937
7937
  return;
7938
- T = N.abiItem.name, O = (v = N.abiItem.inputs) == null ? void 0 : v.some((y) => !("name" in y && y.name));
7938
+ T = O.abiItem.name, N = (v = O.abiItem.inputs) == null ? void 0 : v.some((y) => !("name" in y && y.name));
7939
7939
  }
7940
7940
  const I = fn(g, {
7941
- args: O ? [] : {},
7941
+ args: N ? [] : {},
7942
7942
  eventName: T
7943
7943
  });
7944
7944
  R.onLogs([I]);
@@ -8050,7 +8050,7 @@ function nu(e) {
8050
8050
  return t instanceof Pa ? ((n = t.data) == null ? void 0 : n.errorName) === "HttpError" || ((r = t.data) == null ? void 0 : r.errorName) === "ResolverError" || ((o = t.data) == null ? void 0 : o.errorName) === "ResolverNotContract" || ((s = t.data) == null ? void 0 : s.errorName) === "ResolverNotFound" || ((i = t.data) == null ? void 0 : i.errorName) === "ReverseAddressMismatch" || ((c = t.data) == null ? void 0 : c.errorName) === "UnsupportedResolverProfile" : !1;
8051
8051
  }
8052
8052
  function Pw(e) {
8053
- const { abi: t, data: n } = e, r = Tr(n, 0, 4), o = t.find((s) => s.type === "function" && r === Mo(Ot(s)));
8053
+ const { abi: t, data: n } = e, r = Tr(n, 0, 4), o = t.find((s) => s.type === "function" && r === Mo(Nt(s)));
8054
8054
  if (!o)
8055
8055
  throw new fb(r, {
8056
8056
  docsPath: "/docs/contract/decodeFunctionData"
@@ -8072,7 +8072,7 @@ function jl(e) {
8072
8072
  }
8073
8073
  if (o.type !== "error")
8074
8074
  throw new cl(void 0, { docsPath: ji });
8075
- const s = Ot(o), i = Mo(s);
8075
+ const s = Nt(o), i = Mo(s);
8076
8076
  let c = "0x";
8077
8077
  if (r && r.length > 0) {
8078
8078
  if (!o.inputs)
@@ -8169,7 +8169,7 @@ function ru(e) {
8169
8169
  }
8170
8170
  return n.byteLength !== r + 1 ? n.slice(0, r + 1) : n;
8171
8171
  }
8172
- async function Nw(e, t) {
8172
+ async function Ow(e, t) {
8173
8173
  const { blockNumber: n, blockTag: r, coinType: o, name: s, gatewayUrls: i, strict: c } = t, { chain: a } = e, u = (() => {
8174
8174
  if (t.universalResolverAddress)
8175
8175
  return t.universalResolverAddress;
@@ -8218,7 +8218,7 @@ async function Nw(e, t) {
8218
8218
  throw p;
8219
8219
  }
8220
8220
  }
8221
- class Ow extends W {
8221
+ class Nw extends W {
8222
8222
  constructor({ data: t }) {
8223
8223
  super("Unable to extract image from metadata. The metadata may be malformed or invalid.", {
8224
8224
  metaMessages: [
@@ -8302,7 +8302,7 @@ function G0({ uri: e, gatewayUrls: t }) {
8302
8302
  }
8303
8303
  function q0(e) {
8304
8304
  if (typeof e != "object" || !("image" in e) && !("image_url" in e) && !("image_data" in e))
8305
- throw new Ow({ data: e });
8305
+ throw new Nw({ data: e });
8306
8306
  return e.image || e.image_url || e.image_data;
8307
8307
  }
8308
8308
  async function kw({ gatewayUrls: e, uri: t }) {
@@ -8782,8 +8782,8 @@ function rv(e, t = {}) {
8782
8782
  throw new ao(d);
8783
8783
  case Vn.code:
8784
8784
  throw new Vn(d);
8785
- case Nn.code:
8786
- throw new Nn(d);
8785
+ case On.code:
8786
+ throw new On(d);
8787
8787
  case co.code:
8788
8788
  throw new co(d);
8789
8789
  case uo.code:
@@ -9236,7 +9236,7 @@ function xr(e, t, n) {
9236
9236
  const { checksumAddress: r, staticPosition: o } = n, s = cu(t.type);
9237
9237
  if (s) {
9238
9238
  const [i, c] = s;
9239
- return Nv(e, { ...t, type: c }, { checksumAddress: r, length: i, staticPosition: o });
9239
+ return Ov(e, { ...t, type: c }, { checksumAddress: r, length: i, staticPosition: o });
9240
9240
  }
9241
9241
  if (t.type === "tuple")
9242
9242
  return Bv(e, t, {
@@ -9246,7 +9246,7 @@ function xr(e, t, n) {
9246
9246
  if (t.type === "address")
9247
9247
  return Rv(e, { checksum: r });
9248
9248
  if (t.type === "bool")
9249
- return Ov(e);
9249
+ return Nv(e);
9250
9250
  if (t.type.startsWith("bytes"))
9251
9251
  return Iv(e, t, { staticPosition: o });
9252
9252
  if (t.type.startsWith("uint") || t.type.startsWith("int"))
@@ -9260,7 +9260,7 @@ function Rv(e, t = {}) {
9260
9260
  const { checksum: n = !1 } = t, r = e.readBytes(32);
9261
9261
  return [((s) => n ? op(s) : s)(Ct(zy(r, -20))), 32];
9262
9262
  }
9263
- function Nv(e, t, n) {
9263
+ function Ov(e, t, n) {
9264
9264
  const { checksumAddress: r, length: o, staticPosition: s } = n;
9265
9265
  if (!o) {
9266
9266
  const a = an(e.readBytes(za)), u = s + a, l = u + Wl;
@@ -9301,7 +9301,7 @@ function Nv(e, t, n) {
9301
9301
  }
9302
9302
  return [c, i];
9303
9303
  }
9304
- function Ov(e) {
9304
+ function Nv(e) {
9305
9305
  return [Wy(e.readBytes(32), { size: 32 }), 32];
9306
9306
  }
9307
9307
  function Iv(e, t, { staticPosition: n }) {
@@ -10467,10 +10467,10 @@ function p6(e) {
10467
10467
  return { x: B, y: F };
10468
10468
  const b = E.is0();
10469
10469
  R == null && (R = b ? n.ONE : n.inv(L));
10470
- const g = n.mul(B, R), v = n.mul(F, R), N = n.mul(L, R);
10470
+ const g = n.mul(B, R), v = n.mul(F, R), O = n.mul(L, R);
10471
10471
  if (b)
10472
10472
  return { x: n.ZERO, y: n.ZERO };
10473
- if (!n.eql(N, n.ONE))
10473
+ if (!n.eql(O, n.ONE))
10474
10474
  throw new Error("invZ was invalid");
10475
10475
  return { x: g, y: v };
10476
10476
  }), h = Il((E) => {
@@ -10560,8 +10560,8 @@ function p6(e) {
10560
10560
  */
10561
10561
  equals(R) {
10562
10562
  p(R);
10563
- const { px: B, py: F, pz: L } = this, { px: b, py: g, pz: v } = R, N = n.eql(n.mul(B, v), n.mul(b, L)), T = n.eql(n.mul(F, v), n.mul(g, L));
10564
- return N && T;
10563
+ const { px: B, py: F, pz: L } = this, { px: b, py: g, pz: v } = R, O = n.eql(n.mul(B, v), n.mul(b, L)), T = n.eql(n.mul(F, v), n.mul(g, L));
10564
+ return O && T;
10565
10565
  }
10566
10566
  /**
10567
10567
  * Flips point to one corresponding to (x, -y) in Affine coordinates.
@@ -10575,8 +10575,8 @@ function p6(e) {
10575
10575
  // Cost: 8M + 3S + 3*a + 2*b3 + 15add.
10576
10576
  double() {
10577
10577
  const { a: R, b: B } = t, F = n.mul(B, qi), { px: L, py: b, pz: g } = this;
10578
- let v = n.ZERO, N = n.ZERO, T = n.ZERO, O = n.mul(L, L), I = n.mul(b, b), y = n.mul(g, g), A = n.mul(L, b);
10579
- return A = n.add(A, A), T = n.mul(L, g), T = n.add(T, T), v = n.mul(R, T), N = n.mul(F, y), N = n.add(v, N), v = n.sub(I, N), N = n.add(I, N), N = n.mul(v, N), v = n.mul(A, v), T = n.mul(F, T), y = n.mul(R, y), A = n.sub(O, y), A = n.mul(R, A), A = n.add(A, T), T = n.add(O, O), O = n.add(T, O), O = n.add(O, y), O = n.mul(O, A), N = n.add(N, O), y = n.mul(b, g), y = n.add(y, y), O = n.mul(y, A), v = n.sub(v, O), T = n.mul(y, I), T = n.add(T, T), T = n.add(T, T), new m(v, N, T);
10578
+ let v = n.ZERO, O = n.ZERO, T = n.ZERO, N = n.mul(L, L), I = n.mul(b, b), y = n.mul(g, g), A = n.mul(L, b);
10579
+ return A = n.add(A, A), T = n.mul(L, g), T = n.add(T, T), v = n.mul(R, T), O = n.mul(F, y), O = n.add(v, O), v = n.sub(I, O), O = n.add(I, O), O = n.mul(v, O), v = n.mul(A, v), T = n.mul(F, T), y = n.mul(R, y), A = n.sub(N, y), A = n.mul(R, A), A = n.add(A, T), T = n.add(N, N), N = n.add(T, N), N = n.add(N, y), N = n.mul(N, A), O = n.add(O, N), y = n.mul(b, g), y = n.add(y, y), N = n.mul(y, A), v = n.sub(v, N), T = n.mul(y, I), T = n.add(T, T), T = n.add(T, T), new m(v, O, T);
10580
10580
  }
10581
10581
  // Renes-Costello-Batina exception-free addition formula.
10582
10582
  // There is 30% faster Jacobian formula, but it is not complete.
@@ -10585,12 +10585,12 @@ function p6(e) {
10585
10585
  add(R) {
10586
10586
  p(R);
10587
10587
  const { px: B, py: F, pz: L } = this, { px: b, py: g, pz: v } = R;
10588
- let N = n.ZERO, T = n.ZERO, O = n.ZERO;
10588
+ let O = n.ZERO, T = n.ZERO, N = n.ZERO;
10589
10589
  const I = t.a, y = n.mul(t.b, qi);
10590
10590
  let A = n.mul(B, b), $ = n.mul(F, g), P = n.mul(L, v), M = n.add(B, F), D = n.add(b, g);
10591
10591
  M = n.mul(M, D), D = n.add(A, $), M = n.sub(M, D), D = n.add(B, L);
10592
10592
  let _ = n.add(b, v);
10593
- return D = n.mul(D, _), _ = n.add(A, P), D = n.sub(D, _), _ = n.add(F, L), N = n.add(g, v), _ = n.mul(_, N), N = n.add($, P), _ = n.sub(_, N), O = n.mul(I, D), N = n.mul(y, P), O = n.add(N, O), N = n.sub($, O), O = n.add($, O), T = n.mul(N, O), $ = n.add(A, A), $ = n.add($, A), P = n.mul(I, P), D = n.mul(y, D), $ = n.add($, P), P = n.sub(A, P), P = n.mul(I, P), D = n.add(D, P), A = n.mul($, D), T = n.add(T, A), A = n.mul(_, D), N = n.mul(M, N), N = n.sub(N, A), A = n.mul(M, $), O = n.mul(_, O), O = n.add(O, A), new m(N, T, O);
10593
+ return D = n.mul(D, _), _ = n.add(A, P), D = n.sub(D, _), _ = n.add(F, L), O = n.add(g, v), _ = n.mul(_, O), O = n.add($, P), _ = n.sub(_, O), N = n.mul(I, D), O = n.mul(y, P), N = n.add(O, N), O = n.sub($, N), N = n.add($, N), T = n.mul(O, N), $ = n.add(A, A), $ = n.add($, A), P = n.mul(I, P), D = n.mul(y, D), $ = n.add($, P), P = n.sub(A, P), P = n.mul(I, P), D = n.add(D, P), A = n.mul($, D), T = n.add(T, A), A = n.mul(_, D), O = n.mul(M, O), O = n.sub(O, A), A = n.mul(M, $), N = n.mul(_, N), N = n.add(N, A), new m(O, T, N);
10594
10594
  }
10595
10595
  subtract(R) {
10596
10596
  return this.add(R.negate());
@@ -10616,10 +10616,10 @@ function p6(e) {
10616
10616
  return this;
10617
10617
  if (!B || x.hasPrecomputes(this))
10618
10618
  return x.wNAFCachedUnsafe(this, R, m.normalizeZ);
10619
- let { k1neg: b, k1: g, k2neg: v, k2: N } = B.splitScalar(R), T = L, O = L, I = this;
10620
- for (; g > rn || N > rn; )
10621
- g & Me && (T = T.add(I)), N & Me && (O = O.add(I)), I = I.double(), g >>= Me, N >>= Me;
10622
- return b && (T = T.negate()), v && (O = O.negate()), O = new m(n.mul(O.px, B.beta), O.py, O.pz), T.add(O);
10619
+ let { k1neg: b, k1: g, k2neg: v, k2: O } = B.splitScalar(R), T = L, N = L, I = this;
10620
+ for (; g > rn || O > rn; )
10621
+ g & Me && (T = T.add(I)), O & Me && (N = N.add(I)), I = I.double(), g >>= Me, O >>= Me;
10622
+ return b && (T = T.negate()), v && (N = N.negate()), N = new m(n.mul(N.px, B.beta), N.py, N.pz), T.add(N);
10623
10623
  }
10624
10624
  /**
10625
10625
  * Constant time multiplication.
@@ -10635,9 +10635,9 @@ function p6(e) {
10635
10635
  wr("scalar", R, Me, F);
10636
10636
  let L, b;
10637
10637
  if (B) {
10638
- const { k1neg: g, k1: v, k2neg: N, k2: T } = B.splitScalar(R);
10639
- let { p: O, f: I } = this.wNAF(v), { p: y, f: A } = this.wNAF(T);
10640
- O = x.constTimeNegate(g, O), y = x.constTimeNegate(N, y), y = new m(n.mul(y.px, B.beta), y.py, y.pz), L = O.add(y), b = I.add(A);
10638
+ const { k1neg: g, k1: v, k2neg: O, k2: T } = B.splitScalar(R);
10639
+ let { p: N, f: I } = this.wNAF(v), { p: y, f: A } = this.wNAF(T);
10640
+ N = x.constTimeNegate(g, N), y = x.constTimeNegate(O, y), y = new m(n.mul(y.px, B.beta), y.py, y.pz), L = N.add(y), b = I.add(A);
10641
10641
  } else {
10642
10642
  const { p: g, f: v } = this.wNAF(R);
10643
10643
  L = g, b = v;
@@ -10651,7 +10651,7 @@ function p6(e) {
10651
10651
  * @returns non-zero affine point
10652
10652
  */
10653
10653
  multiplyAndAddUnsafe(R, B, F) {
10654
- const L = m.BASE, b = (v, N) => N === rn || N === Me || !v.equals(L) ? v.multiplyUnsafe(N) : v.multiply(N), g = b(this, B).add(b(R, F));
10654
+ const L = m.BASE, b = (v, O) => O === rn || O === Me || !v.equals(L) ? v.multiplyUnsafe(O) : v.multiply(O), g = b(this, B).add(b(R, F));
10655
10655
  return g.is0() ? void 0 : g;
10656
10656
  }
10657
10657
  // Converts Projective point to affine (x, y) coordinates.
@@ -10866,7 +10866,7 @@ function m6(e) {
10866
10866
  function g(y) {
10867
10867
  return wr("num < 2^" + s, y, rn, b), Uo(y, o);
10868
10868
  }
10869
- function v(y, A, $ = N) {
10869
+ function v(y, A, $ = O) {
10870
10870
  if (["recovered", "canonical"].some((ie) => ie in $))
10871
10871
  throw new Error("sign() legacy options not supported");
10872
10872
  const { hash: P, randomBytes: M } = t;
@@ -10893,8 +10893,8 @@ function m6(e) {
10893
10893
  }
10894
10894
  return { seed: z, k2sig: ee };
10895
10895
  }
10896
- const N = { lowS: t.lowS, prehash: !1 }, T = { lowS: t.lowS, prehash: !1 };
10897
- function O(y, A, $ = N) {
10896
+ const O = { lowS: t.lowS, prehash: !1 }, T = { lowS: t.lowS, prehash: !1 };
10897
+ function N(y, A, $ = O) {
10898
10898
  const { seed: P, k2sig: M } = v(y, A, $), D = t;
10899
10899
  return Ry(D.hash.outputLen, D.nByteLength, D.hmac)(P, M);
10900
10900
  }
@@ -10936,7 +10936,7 @@ function m6(e) {
10936
10936
  CURVE: t,
10937
10937
  getPublicKey: E,
10938
10938
  getSharedSecret: B,
10939
- sign: O,
10939
+ sign: N,
10940
10940
  verify: I,
10941
10941
  ProjectivePoint: l,
10942
10942
  Signature: S,
@@ -11000,7 +11000,7 @@ function Sp(e, t = {}) {
11000
11000
  if (e.r < 0n || e.r > Hl)
11001
11001
  throw new R6({ value: e.r });
11002
11002
  if (e.s < 0n || e.s > Hl)
11003
- throw new N6({ value: e.s });
11003
+ throw new O6({ value: e.s });
11004
11004
  if (typeof e.yParity == "number" && e.yParity !== 0 && e.yParity !== 1)
11005
11005
  throw new pu({ value: e.yParity });
11006
11006
  }
@@ -11068,7 +11068,7 @@ function du(e) {
11068
11068
  return 1;
11069
11069
  if (e >= 35)
11070
11070
  return e % 2 === 0 ? 1 : 0;
11071
- throw new O6({ value: e });
11071
+ throw new N6({ value: e });
11072
11072
  }
11073
11073
  class T6 extends ue {
11074
11074
  constructor({ signature: t }) {
@@ -11105,7 +11105,7 @@ class R6 extends ue {
11105
11105
  });
11106
11106
  }
11107
11107
  }
11108
- class N6 extends ue {
11108
+ class O6 extends ue {
11109
11109
  constructor({ value: t }) {
11110
11110
  super(`Value \`${t}\` is an invalid s value. s must be a positive integer less than 2^256.`), Object.defineProperty(this, "name", {
11111
11111
  enumerable: !0,
@@ -11125,7 +11125,7 @@ class pu extends ue {
11125
11125
  });
11126
11126
  }
11127
11127
  }
11128
- class O6 extends ue {
11128
+ class N6 extends ue {
11129
11129
  constructor({ value: t }) {
11130
11130
  super(`Value \`${t}\` is an invalid v value. v must be 27, 28 or >=35.`), Object.defineProperty(this, "name", {
11131
11131
  enumerable: !0,
@@ -11157,7 +11157,7 @@ function Ap(e) {
11157
11157
  }
11158
11158
  function F6(e) {
11159
11159
  Ap(e);
11160
- const t = O0(Ut(e, -64, -32)), n = Ut(e, -t - 64, -64), r = Ut(e, 0, -t - 64), [o, s, i] = qv(M6, n);
11160
+ const t = N0(Ut(e, -64, -32)), n = Ut(e, -t - 64, -64), r = Ut(e, 0, -t - 64), [o, s, i] = qv(M6, n);
11161
11161
  return {
11162
11162
  authorization: I6({
11163
11163
  address: o.delegation,
@@ -11316,7 +11316,7 @@ async function V6(e, t) {
11316
11316
  }
11317
11317
  ];
11318
11318
  } catch (b) {
11319
- const g = Nr(b, {
11319
+ const g = Or(b, {
11320
11320
  abi: R,
11321
11321
  address: B,
11322
11322
  args: F,
@@ -11363,7 +11363,7 @@ async function V6(e, t) {
11363
11363
  }
11364
11364
  const B = R.value;
11365
11365
  for (let F = 0; F < B.length; F++) {
11366
- const { returnData: L, success: b } = B[F], { callData: g } = d[E][F], { abi: v, address: N, functionName: T, args: O } = u[S.length];
11366
+ const { returnData: L, success: b } = B[F], { callData: g } = d[E][F], { abi: v, address: O, functionName: T, args: N } = u[S.length];
11367
11367
  try {
11368
11368
  if (g === "0x")
11369
11369
  throw new Bo();
@@ -11371,16 +11371,16 @@ async function V6(e, t) {
11371
11371
  throw new Vs({ data: L });
11372
11372
  const I = tr({
11373
11373
  abi: v,
11374
- args: O,
11374
+ args: N,
11375
11375
  data: L,
11376
11376
  functionName: T
11377
11377
  });
11378
11378
  S.push(o ? { result: I, status: "success" } : I);
11379
11379
  } catch (I) {
11380
- const y = Nr(I, {
11380
+ const y = Or(I, {
11381
11381
  abi: v,
11382
- address: N,
11383
- args: O,
11382
+ address: O,
11383
+ args: N,
11384
11384
  docsPath: "/docs/contract/multicall",
11385
11385
  functionName: T
11386
11386
  });
@@ -11424,18 +11424,18 @@ async function Za(e, t) {
11424
11424
  })).map((p, d) => ({
11425
11425
  ...a0(p),
11426
11426
  calls: p.calls.map((h, m) => {
11427
- var v, N;
11428
- const { abi: w, args: S, functionName: x, to: E } = o[d].calls[m], R = ((v = h.error) == null ? void 0 : v.data) ?? h.returnData, B = BigInt(h.gasUsed), F = (N = h.logs) == null ? void 0 : N.map((T) => fn(T)), L = h.status === "0x1" ? "success" : "failure", b = w && L === "success" && R !== "0x" ? tr({
11427
+ var v, O;
11428
+ const { abi: w, args: S, functionName: x, to: E } = o[d].calls[m], R = ((v = h.error) == null ? void 0 : v.data) ?? h.returnData, B = BigInt(h.gasUsed), F = (O = h.logs) == null ? void 0 : O.map((T) => fn(T)), L = h.status === "0x1" ? "success" : "failure", b = w && L === "success" && R !== "0x" ? tr({
11429
11429
  abi: w,
11430
11430
  data: R,
11431
11431
  functionName: x
11432
11432
  }) : null, g = (() => {
11433
- var O;
11433
+ var N;
11434
11434
  if (L === "success")
11435
11435
  return;
11436
11436
  let T;
11437
- if (((O = h.error) == null ? void 0 : O.data) === "0x" ? T = new Bo() : h.error && (T = new Vs(h.error)), !!T)
11438
- return Nr(T, {
11437
+ if (((N = h.error) == null ? void 0 : N.data) === "0x" ? T = new Bo() : h.error && (T = new Vs(h.error)), !!T)
11438
+ return Or(T, {
11439
11439
  abi: w ?? [],
11440
11440
  address: E ?? "0x",
11441
11441
  args: S,
@@ -11526,7 +11526,7 @@ function Rp(e, t = {}) {
11526
11526
  };
11527
11527
  }
11528
11528
  function ri(e, t, n) {
11529
- const { args: r = [], prepare: o = !0 } = n ?? {}, s = ew(t, { strict: !1 }), i = e.filter((u) => s ? u.type === "function" || u.type === "error" ? Np(u) === Ut(t, 0, 4) : u.type === "event" ? pr(u) === t : !1 : "name" in u && u.name === t);
11529
+ const { args: r = [], prepare: o = !0 } = n ?? {}, s = ew(t, { strict: !1 }), i = e.filter((u) => s ? u.type === "function" || u.type === "error" ? Op(u) === Ut(t, 0, 4) : u.type === "event" ? pr(u) === t : !1 : "name" in u && u.name === t);
11530
11530
  if (i.length === 0)
11531
11531
  throw new $s({ name: t });
11532
11532
  if (i.length === 1)
@@ -11579,7 +11579,7 @@ function ri(e, t, n) {
11579
11579
  ...o ? { hash: pr(a) } : {}
11580
11580
  };
11581
11581
  }
11582
- function Np(...e) {
11582
+ function Op(...e) {
11583
11583
  const t = (() => {
11584
11584
  if (Array.isArray(e[0])) {
11585
11585
  const [n, r] = e;
@@ -11682,7 +11682,7 @@ function Ql(e, t, n) {
11682
11682
  return r;
11683
11683
  }
11684
11684
  function Q6(e) {
11685
- return Np(e);
11685
+ return Op(e);
11686
11686
  }
11687
11687
  const J6 = "0xeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee", kt = "0x0000000000000000000000000000000000000000", e5 = "0x6080604052348015600e575f80fd5b5061016d8061001c5f395ff3fe608060405234801561000f575f80fd5b5060043610610029575f3560e01c8063f8b2cb4f1461002d575b5f80fd5b610047600480360381019061004291906100db565b61005d565b604051610054919061011e565b60405180910390f35b5f8173ffffffffffffffffffffffffffffffffffffffff16319050919050565b5f80fd5b5f73ffffffffffffffffffffffffffffffffffffffff82169050919050565b5f6100aa82610081565b9050919050565b6100ba816100a0565b81146100c4575f80fd5b50565b5f813590506100d5816100b1565b92915050565b5f602082840312156100f0576100ef61007d565b5b5f6100fd848285016100c7565b91505092915050565b5f819050919050565b61011881610106565b82525050565b5f6020820190506101315f83018461010f565b9291505056fea26469706673582212203b9fe929fe995c7cf9887f0bdba8a36dd78e8b73f149b17d2d9ad7cd09d2dc6264736f6c634300081a0033";
11688
11688
  async function t5(e, t) {
@@ -11822,8 +11822,8 @@ async function t5(e, t) {
11822
11822
  ],
11823
11823
  traceTransfers: c,
11824
11824
  validation: a
11825
- }), d = i ? p[2] : p[0], [h, m, , w, S, x, E, R] = i ? p : [], { calls: B, ...F } = d, L = B.slice(0, -1) ?? [], b = (h == null ? void 0 : h.calls) ?? [], g = (m == null ? void 0 : m.calls) ?? [], v = [...b, ...g].map((P) => P.status === "success" ? Gt(P.data) : null), N = (w == null ? void 0 : w.calls) ?? [], T = (S == null ? void 0 : S.calls) ?? [], O = [...N, ...T].map((P) => P.status === "success" ? Gt(P.data) : null), I = ((x == null ? void 0 : x.calls) ?? []).map((P) => P.status === "success" ? P.result : null), y = ((R == null ? void 0 : R.calls) ?? []).map((P) => P.status === "success" ? P.result : null), A = ((E == null ? void 0 : E.calls) ?? []).map((P) => P.status === "success" ? P.result : null), $ = [];
11826
- for (const [P, M] of O.entries()) {
11825
+ }), d = i ? p[2] : p[0], [h, m, , w, S, x, E, R] = i ? p : [], { calls: B, ...F } = d, L = B.slice(0, -1) ?? [], b = (h == null ? void 0 : h.calls) ?? [], g = (m == null ? void 0 : m.calls) ?? [], v = [...b, ...g].map((P) => P.status === "success" ? Gt(P.data) : null), O = (w == null ? void 0 : w.calls) ?? [], T = (S == null ? void 0 : S.calls) ?? [], N = [...O, ...T].map((P) => P.status === "success" ? Gt(P.data) : null), I = ((x == null ? void 0 : x.calls) ?? []).map((P) => P.status === "success" ? P.result : null), y = ((R == null ? void 0 : R.calls) ?? []).map((P) => P.status === "success" ? P.result : null), A = ((E == null ? void 0 : E.calls) ?? []).map((P) => P.status === "success" ? P.result : null), $ = [];
11826
+ for (const [P, M] of N.entries()) {
11827
11827
  const D = v[P];
11828
11828
  if (typeof M != "bigint" || typeof D != "bigint")
11829
11829
  continue;
@@ -11851,9 +11851,9 @@ async function t5(e, t) {
11851
11851
  results: L
11852
11852
  };
11853
11853
  }
11854
- const Op = "0x6492649264926492649264926492649264926492649264926492649264926492";
11854
+ const Np = "0x6492649264926492649264926492649264926492649264926492649264926492";
11855
11855
  function n5(e) {
11856
- if (Ut(e, -32) !== Op)
11856
+ if (Ut(e, -32) !== Np)
11857
11857
  throw new s5(e);
11858
11858
  }
11859
11859
  function r5(e) {
@@ -11862,7 +11862,7 @@ function r5(e) {
11862
11862
  r,
11863
11863
  t,
11864
11864
  n
11865
- ]), Op);
11865
+ ]), Np);
11866
11866
  }
11867
11867
  function o5(e) {
11868
11868
  try {
@@ -12055,7 +12055,7 @@ function Ip(e, { emitOnBegin: t = !1, emitMissed: n = !1, onBlockNumber: r, onEr
12055
12055
  n,
12056
12056
  i
12057
12057
  ]);
12058
- return On(f, { onBlockNumber: r, onError: o }, (p) => Ho(async () => {
12058
+ return Nn(f, { onBlockNumber: r, onError: o }, (p) => Ho(async () => {
12059
12059
  var d;
12060
12060
  try {
12061
12061
  const h = await Q(e, Wo, "getBlockNumber")({ cacheTime: 0 });
@@ -12081,7 +12081,7 @@ function Ip(e, { emitOnBegin: t = !1, emitMissed: n = !1, onBlockNumber: r, onEr
12081
12081
  t,
12082
12082
  n
12083
12083
  ]);
12084
- return On(f, { onBlockNumber: r, onError: o }, (p) => {
12084
+ return Nn(f, { onBlockNumber: r, onError: o }, (p) => {
12085
12085
  let d = !0, h = () => d = !1;
12086
12086
  return (async () => {
12087
12087
  try {
@@ -12131,7 +12131,7 @@ async function d5(e, t) {
12131
12131
  const { promise: S, resolve: x, reject: E } = _0(), R = a ? setTimeout(() => {
12132
12132
  w == null || w(), m == null || m(), E(new Dg({ hash: o }));
12133
12133
  }, a) : void 0;
12134
- return m = On(u, { onReplaced: s, resolve: x, reject: E }, async (B) => {
12134
+ return m = Nn(u, { onReplaced: s, resolve: x, reject: E }, async (B) => {
12135
12135
  if (d = await Q(e, ls, "getTransactionReceipt")({ hash: o }).catch(() => {
12136
12136
  }), d && r <= 1) {
12137
12137
  clearTimeout(R), B.resolve(d), m == null || m();
@@ -12177,21 +12177,21 @@ async function d5(e, t) {
12177
12177
  }), {
12178
12178
  delay: c,
12179
12179
  retryCount: i,
12180
- shouldRetry: ({ error: O }) => O instanceof s0
12180
+ shouldRetry: ({ error: N }) => N instanceof s0
12181
12181
  });
12182
12182
  h = !1;
12183
- const N = v.transactions.find(({ from: O, nonce: I }) => O === p.from && I === p.nonce);
12184
- if (!N || (d = await Q(e, ls, "getTransactionReceipt")({
12185
- hash: N.hash
12183
+ const O = v.transactions.find(({ from: N, nonce: I }) => N === p.from && I === p.nonce);
12184
+ if (!O || (d = await Q(e, ls, "getTransactionReceipt")({
12185
+ hash: O.hash
12186
12186
  }), r > 1 && (!d.blockNumber || b - d.blockNumber + 1n < r)))
12187
12187
  return;
12188
12188
  let T = "replaced";
12189
- N.to === p.to && N.value === p.value && N.input === p.input ? T = "repriced" : N.from === N.to && N.value === 0n && (T = "cancelled"), L(() => {
12190
- var O;
12191
- (O = B.onReplaced) == null || O.call(B, {
12189
+ O.to === p.to && O.value === p.value && O.input === p.input ? T = "repriced" : O.from === O.to && O.value === 0n && (T = "cancelled"), L(() => {
12190
+ var N;
12191
+ (N = B.onReplaced) == null || N.call(B, {
12192
12192
  reason: T,
12193
12193
  replacedTransaction: p,
12194
- transaction: N,
12194
+ transaction: O,
12195
12195
  transactionReceipt: d
12196
12196
  }), B.resolve(d);
12197
12197
  });
@@ -12218,7 +12218,7 @@ function p5(e, { blockTag: t = e.experimental_blockTag ?? "latest", emitMissed:
12218
12218
  l,
12219
12219
  a
12220
12220
  ]);
12221
- return On(h, { onBlock: o, onError: s }, (m) => Ho(async () => {
12221
+ return Nn(h, { onBlock: o, onError: s }, (m) => Ho(async () => {
12222
12222
  var w;
12223
12223
  try {
12224
12224
  const S = await Q(e, At, "getBlock")({
@@ -12302,7 +12302,7 @@ function h5(e, { address: t, args: n, batch: r = !0, event: o, events: s, fromBl
12302
12302
  l,
12303
12303
  i
12304
12304
  ]);
12305
- return On(w, { onLogs: a, onError: c }, (S) => {
12305
+ return Nn(w, { onLogs: a, onError: c }, (S) => {
12306
12306
  let x;
12307
12307
  i !== void 0 && (x = i - 1n);
12308
12308
  let E, R = !1;
@@ -12346,7 +12346,7 @@ function h5(e, { address: t, args: n, batch: r = !0, event: o, events: s, fromBl
12346
12346
  for (const b of L)
12347
12347
  S.onLogs([b]);
12348
12348
  } catch (L) {
12349
- E && L instanceof Nn && (R = !1), (F = S.onError) == null || F.call(S, L);
12349
+ E && L instanceof On && (R = !1), (F = S.onError) == null || F.call(S, L);
12350
12350
  }
12351
12351
  }, {
12352
12352
  emitOnBegin: !0,
@@ -12386,17 +12386,17 @@ function h5(e, { address: t, args: n, batch: r = !0, event: o, events: s, fromBl
12386
12386
  data: L.data,
12387
12387
  topics: L.topics,
12388
12388
  strict: d
12389
- }), N = fn(L, { args: v, eventName: g });
12390
- a([N]);
12389
+ }), O = fn(L, { args: v, eventName: g });
12390
+ a([O]);
12391
12391
  } catch (g) {
12392
- let v, N;
12393
- if (g instanceof ys || g instanceof Oc) {
12392
+ let v, O;
12393
+ if (g instanceof ys || g instanceof Nc) {
12394
12394
  if (f)
12395
12395
  return;
12396
- v = g.abiItem.name, N = (b = g.abiItem.inputs) == null ? void 0 : b.some((O) => !("name" in O && O.name));
12396
+ v = g.abiItem.name, O = (b = g.abiItem.inputs) == null ? void 0 : b.some((N) => !("name" in N && N.name));
12397
12397
  }
12398
12398
  const T = fn(L, {
12399
- args: N ? [] : {},
12399
+ args: O ? [] : {},
12400
12400
  eventName: v
12401
12401
  });
12402
12402
  a([T]);
@@ -12421,7 +12421,7 @@ function m5(e, { batch: t = !0, onError: n, onTransactions: r, poll: o, pollingI
12421
12421
  t,
12422
12422
  s
12423
12423
  ]);
12424
- return On(u, { onTransactions: r, onError: n }, (l) => {
12424
+ return Nn(u, { onTransactions: r, onError: n }, (l) => {
12425
12425
  let f;
12426
12426
  const p = Ho(async () => {
12427
12427
  var d;
@@ -12554,7 +12554,7 @@ function E5(e) {
12554
12554
  getCode: (t) => _a(e, t),
12555
12555
  getContractEvents: (t) => g0(e, t),
12556
12556
  getEip712Domain: (t) => Kw(e, t),
12557
- getEnsAddress: (t) => Nw(e, t),
12557
+ getEnsAddress: (t) => Ow(e, t),
12558
12558
  getEnsAvatar: (t) => zw(e, t),
12559
12559
  getEnsName: (t) => Hw(e, t),
12560
12560
  getEnsResolver: (t) => Ww(e, t),
@@ -12656,21 +12656,21 @@ function A5(e, t = {}) {
12656
12656
  fn: (T) => R.request({
12657
12657
  body: T
12658
12658
  }),
12659
- sort: (T, O) => T.id - O.id
12659
+ sort: (T, N) => T.id - N.id
12660
12660
  }), g = async (T) => n ? b(T) : [
12661
12661
  await R.request({
12662
12662
  body: T
12663
12663
  })
12664
- ], [{ error: v, result: N }] = await g(L);
12664
+ ], [{ error: v, result: O }] = await g(L);
12665
12665
  if (f)
12666
- return { error: v, result: N };
12666
+ return { error: v, result: O };
12667
12667
  if (v)
12668
12668
  throw new _c({
12669
12669
  body: L,
12670
12670
  error: v,
12671
12671
  url: E
12672
12672
  });
12673
- return N;
12673
+ return O;
12674
12674
  },
12675
12675
  retryCount: S,
12676
12676
  retryDelay: l,
@@ -12769,14 +12769,14 @@ function R5({
12769
12769
  }
12770
12770
  const _P = () => ({ openDeposit: X((t) => {
12771
12771
  }, []) }), UP = () => ({ openWithdraw: X((t) => {
12772
- }, []) }), Hn = "MPC", mu = "EVM", N5 = "spot", Jl = "perpetual";
12772
+ }, []) }), Hn = "MPC", mu = "EVM", O5 = "spot", Jl = "perpetual";
12773
12773
  /**
12774
12774
  * @license lucide-react v0.540.0 - ISC
12775
12775
  *
12776
12776
  * This source code is licensed under the ISC license.
12777
12777
  * See the LICENSE file in the root directory of this source tree.
12778
12778
  */
12779
- const O5 = (e) => e.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase(), I5 = (e) => e.replace(
12779
+ const N5 = (e) => e.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase(), I5 = (e) => e.replace(
12780
12780
  /^([A-Z])|[\s-_]+(\w)/g,
12781
12781
  (t, n, r) => r ? r.toUpperCase() : n.toLowerCase()
12782
12782
  ), ef = (e) => {
@@ -12851,7 +12851,7 @@ const F5 = (e, t) => {
12851
12851
  ref: s,
12852
12852
  iconNode: t,
12853
12853
  className: Cp(
12854
- `lucide-${O5(ef(e))}`,
12854
+ `lucide-${N5(ef(e))}`,
12855
12855
  `lucide-${e}`,
12856
12856
  r
12857
12857
  ),
@@ -13400,12 +13400,12 @@ function nr() {
13400
13400
  let [e] = oe(at);
13401
13401
  return Pe(() => () => e.dispose(), [e]), e;
13402
13402
  }
13403
- let Ne = (e, t) => {
13403
+ let Oe = (e, t) => {
13404
13404
  zt.isServer ? Pe(e, t) : ks(e, t);
13405
13405
  };
13406
13406
  function rr(e) {
13407
13407
  let t = ce(e);
13408
- return Ne(() => {
13408
+ return Oe(() => {
13409
13409
  t.current = e;
13410
13410
  }, [e]), t;
13411
13411
  }
@@ -13457,7 +13457,7 @@ function xt(e, t, ...n) {
13457
13457
  let r = new Error(`Tried to handle "${e}" but there is no handler defined. Only defined handlers are: ${Object.keys(t).map((o) => `"${o}"`).join(", ")}.`);
13458
13458
  throw Error.captureStackTrace && Error.captureStackTrace(r, xt), r;
13459
13459
  }
13460
- var Ns = ((e) => (e[e.None = 0] = "None", e[e.RenderStrategy = 1] = "RenderStrategy", e[e.Static = 2] = "Static", e))(Ns || {}), En = ((e) => (e[e.Unmount = 0] = "Unmount", e[e.Hidden = 1] = "Hidden", e))(En || {});
13460
+ var Os = ((e) => (e[e.None = 0] = "None", e[e.RenderStrategy = 1] = "RenderStrategy", e[e.Static = 2] = "Static", e))(Os || {}), En = ((e) => (e[e.Unmount = 0] = "Unmount", e[e.Hidden = 1] = "Hidden", e))(En || {});
13461
13461
  function ct() {
13462
13462
  let e = bx();
13463
13463
  return X((t) => mx({ mergeRefs: e, ...t }), [e]);
@@ -13565,7 +13565,7 @@ function yx(e) {
13565
13565
  return Z.version.split(".")[0] >= "19" ? e.props.ref : e.ref;
13566
13566
  }
13567
13567
  function Xr(e) {
13568
- return e === Nt || e === Symbol.for("react.fragment");
13568
+ return e === Ot || e === Symbol.for("react.fragment");
13569
13569
  }
13570
13570
  function wx(e) {
13571
13571
  return Xr(e.type);
@@ -13623,9 +13623,9 @@ function Rx({ data: e, form: t, disabled: n, onReset: r, overrides: o }) {
13623
13623
  let [s, i] = oe(null), c = nr();
13624
13624
  return Pe(() => {
13625
13625
  if (r && s) return c.addEventListener(s, "reset", r);
13626
- }, [s, t, r]), Z.createElement(Tx, null, Z.createElement(Nx, { setForm: i, formId: t }), Yp(e).map(([a, u]) => Z.createElement(Qp, { features: xu.Hidden, ...xn({ key: a, as: "input", type: "hidden", hidden: !0, readOnly: !0, form: t, disabled: n, name: a, value: u, ...o }) })));
13626
+ }, [s, t, r]), Z.createElement(Tx, null, Z.createElement(Ox, { setForm: i, formId: t }), Yp(e).map(([a, u]) => Z.createElement(Qp, { features: xu.Hidden, ...xn({ key: a, as: "input", type: "hidden", hidden: !0, readOnly: !0, form: t, disabled: n, name: a, value: u, ...o }) })));
13627
13627
  }
13628
- function Nx({ setForm: e, formId: t }) {
13628
+ function Ox({ setForm: e, formId: t }) {
13629
13629
  return Pe(() => {
13630
13630
  if (t) {
13631
13631
  let n = document.getElementById(t);
@@ -13637,9 +13637,9 @@ function Nx({ setForm: e, formId: t }) {
13637
13637
  r && e(r);
13638
13638
  } });
13639
13639
  }
13640
- let Ox = De(void 0);
13640
+ let Nx = De(void 0);
13641
13641
  function Jp() {
13642
- return Ee(Ox);
13642
+ return Ee(Nx);
13643
13643
  }
13644
13644
  function eh(e) {
13645
13645
  return typeof e != "object" || e === null ? !1 : "nodeType" in e;
@@ -13720,7 +13720,7 @@ function kx() {
13720
13720
  let Dx = "p";
13721
13721
  function jx(e, t) {
13722
13722
  let n = Qn(), r = vu(), { id: o = `headlessui-description-${n}`, ...s } = e, i = oh(), c = Pt(t);
13723
- Ne(() => i.register(o), [o, i.register]);
13723
+ Oe(() => i.register(o), [o, i.register]);
13724
13724
  let a = In({ ...i.slot, disabled: r || !1 }), u = { ref: c, ...i.props, id: o };
13725
13725
  return ct()({ ourProps: u, theirProps: s, slot: a, defaultTag: Dx, name: i.name || "Description" });
13726
13726
  }
@@ -13756,7 +13756,7 @@ let zx = "label";
13756
13756
  function Hx(e, t) {
13757
13757
  var n;
13758
13758
  let r = Qn(), o = sh(), s = Jp(), i = vu(), { id: c = `headlessui-label-${r}`, htmlFor: a = s ?? ((n = o.props) == null ? void 0 : n.htmlFor), passive: u = !1, ...l } = e, f = Pt(t);
13759
- Ne(() => o.register(c), [c, o.register]);
13759
+ Oe(() => o.register(c), [c, o.register]);
13760
13760
  let p = pe((m) => {
13761
13761
  let w = m.currentTarget;
13762
13762
  if (!(m.target !== m.currentTarget && Mx(m.target)) && (nf(w) && m.preventDefault(), o.props && "onClick" in o.props && typeof o.props.onClick == "function" && o.props.onClick(m), nf(w))) {
@@ -13792,7 +13792,7 @@ function of(e) {
13792
13792
  }
13793
13793
  function Zx(e, t, n = !1) {
13794
13794
  let [r, o] = oe(() => of(t));
13795
- return Ne(() => {
13795
+ return Oe(() => {
13796
13796
  if (!t || !e) return;
13797
13797
  let s = at();
13798
13798
  return s.requestAnimationFrame(function i() {
@@ -14047,7 +14047,7 @@ function i2(e) {
14047
14047
  }
14048
14048
  function hh(e, t) {
14049
14049
  let n = Qn(), r = Pu.get(t), [o, s] = Ze(r, X((i) => [r.selectors.isTop(i, n), r.selectors.inStack(i, n)], [r, n]));
14050
- return Ne(() => {
14050
+ return Oe(() => {
14051
14051
  if (e) return r.actions.push(n), () => r.actions.pop(n);
14052
14052
  }, [r, e, n]), e ? s ? o : !0 : !1;
14053
14053
  }
@@ -14066,7 +14066,7 @@ function df(e) {
14066
14066
  }
14067
14067
  function a2(e, { allowed: t, disallowed: n } = {}) {
14068
14068
  let r = hh(e, "inert-others");
14069
- Ne(() => {
14069
+ Oe(() => {
14070
14070
  var o, s;
14071
14071
  if (!r) return;
14072
14072
  let i = at();
@@ -14340,7 +14340,7 @@ function R2() {
14340
14340
  });
14341
14341
  } } : {};
14342
14342
  }
14343
- function N2() {
14343
+ function O2() {
14344
14344
  return { before({ doc: e, d: t }) {
14345
14345
  t.style(e.documentElement, "overflow", "hidden");
14346
14346
  } };
@@ -14360,7 +14360,7 @@ let jn = A2(() => /* @__PURE__ */ new Map(), { PUSH(e, t) {
14360
14360
  }, SCROLL_PREVENT(e) {
14361
14361
  let t = { doc: e.doc, d: e.d, meta() {
14362
14362
  return e.computedMeta;
14363
- } }, n = [R2(), T2(), N2()];
14363
+ } }, n = [R2(), T2(), O2()];
14364
14364
  n.forEach(({ before: r }) => r == null ? void 0 : r(t)), n.forEach(({ after: r }) => r == null ? void 0 : r(t));
14365
14365
  }, SCROLL_ALLOW({ d: e }) {
14366
14366
  e.dispose();
@@ -14375,15 +14375,15 @@ jn.subscribe(() => {
14375
14375
  (o && !r || !o && r) && jn.dispatch(n.count > 0 ? "SCROLL_PREVENT" : "SCROLL_ALLOW", n), n.count === 0 && jn.dispatch("TEARDOWN", n);
14376
14376
  }
14377
14377
  });
14378
- function O2(e, t, n = () => ({ containers: [] })) {
14378
+ function N2(e, t, n = () => ({ containers: [] })) {
14379
14379
  let r = $2(jn), o = t ? r.get(t) : void 0, s = o ? o.count > 0 : !1;
14380
- return Ne(() => {
14380
+ return Oe(() => {
14381
14381
  if (!(!t || !e)) return jn.dispatch("PUSH", t, n), () => jn.dispatch("POP", t, n);
14382
14382
  }, [e, t]), s;
14383
14383
  }
14384
14384
  function I2(e, t, n = () => [document.body]) {
14385
14385
  let r = hh(e, "scroll-lock");
14386
- O2(r, t, (o) => {
14386
+ N2(r, t, (o) => {
14387
14387
  var s;
14388
14388
  return { containers: [...(s = o.containers) != null ? s : [], n] };
14389
14389
  });
@@ -14417,7 +14417,7 @@ function wh(e) {
14417
14417
  }
14418
14418
  function vh(e, t, n, r) {
14419
14419
  let [o, s] = oe(n), { hasFlag: i, addFlag: c, removeFlag: a } = B2(e && o ? 3 : 0), u = ce(!1), l = ce(!1), f = nr();
14420
- return Ne(() => {
14420
+ return Oe(() => {
14421
14421
  var p;
14422
14422
  if (e) {
14423
14423
  if (n && s(!0), !t) {
@@ -14633,10 +14633,10 @@ function Q2(e, t, n) {
14633
14633
  n === void 0 && (n = !1);
14634
14634
  const r = Dr(e), o = Ru(e), s = Tu(o);
14635
14635
  let i = o === "x" ? r === (n ? "end" : "start") ? "right" : "left" : r === "start" ? "bottom" : "top";
14636
- return t.reference[s] > t.floating[s] && (i = Os(i)), [i, Os(i)];
14636
+ return t.reference[s] > t.floating[s] && (i = Ns(i)), [i, Ns(i)];
14637
14637
  }
14638
14638
  function J2(e) {
14639
- const t = Os(e);
14639
+ const t = Ns(e);
14640
14640
  return [fc(e), t, fc(t)];
14641
14641
  }
14642
14642
  function fc(e) {
@@ -14660,7 +14660,7 @@ function rE(e, t, n, r) {
14660
14660
  let s = nE(Cn(e), n === "start", r);
14661
14661
  return o && (s = s.map((i) => i + "-" + o), t && (s = s.concat(s.map(fc)))), s;
14662
14662
  }
14663
- function Os(e) {
14663
+ function Ns(e) {
14664
14664
  return e.replace(/left|right|bottom|top/g, (t) => Y2[t]);
14665
14665
  }
14666
14666
  function oE(e) {
@@ -14702,29 +14702,29 @@ function Is(e) {
14702
14702
  * tabbable 6.3.0
14703
14703
  * @license MIT, https://github.com/focus-trap/tabbable/blob/master/LICENSE
14704
14704
  */
14705
- var sE = ["input:not([inert])", "select:not([inert])", "textarea:not([inert])", "a[href]:not([inert])", "button:not([inert])", "[tabindex]:not(slot):not([inert])", "audio[controls]:not([inert])", "video[controls]:not([inert])", '[contenteditable]:not([contenteditable="false"]):not([inert])', "details>summary:first-of-type:not([inert])", "details:not([inert])"], dc = /* @__PURE__ */ sE.join(","), Sh = typeof Element > "u", No = Sh ? function() {
14705
+ var sE = ["input:not([inert])", "select:not([inert])", "textarea:not([inert])", "a[href]:not([inert])", "button:not([inert])", "[tabindex]:not(slot):not([inert])", "audio[controls]:not([inert])", "video[controls]:not([inert])", '[contenteditable]:not([contenteditable="false"]):not([inert])', "details>summary:first-of-type:not([inert])", "details:not([inert])"], dc = /* @__PURE__ */ sE.join(","), Sh = typeof Element > "u", Oo = Sh ? function() {
14706
14706
  } : Element.prototype.matches || Element.prototype.msMatchesSelector || Element.prototype.webkitMatchesSelector, Cs = !Sh && Element.prototype.getRootNode ? function(e) {
14707
14707
  var t;
14708
14708
  return e == null || (t = e.getRootNode) === null || t === void 0 ? void 0 : t.call(e);
14709
14709
  } : function(e) {
14710
14710
  return e == null ? void 0 : e.ownerDocument;
14711
- }, Oo = function(t, n) {
14711
+ }, No = function(t, n) {
14712
14712
  var r;
14713
14713
  n === void 0 && (n = !0);
14714
- var o = t == null || (r = t.getAttribute) === null || r === void 0 ? void 0 : r.call(t, "inert"), s = o === "" || o === "true", i = s || n && t && Oo(t.parentNode);
14714
+ var o = t == null || (r = t.getAttribute) === null || r === void 0 ? void 0 : r.call(t, "inert"), s = o === "" || o === "true", i = s || n && t && No(t.parentNode);
14715
14715
  return i;
14716
14716
  }, iE = function(t) {
14717
14717
  var n, r = t == null || (n = t.getAttribute) === null || n === void 0 ? void 0 : n.call(t, "contenteditable");
14718
14718
  return r === "" || r === "true";
14719
14719
  }, aE = function(t, n, r) {
14720
- if (Oo(t))
14720
+ if (No(t))
14721
14721
  return [];
14722
14722
  var o = Array.prototype.slice.apply(t.querySelectorAll(dc));
14723
- return n && No.call(t, dc) && o.unshift(t), o = o.filter(r), o;
14723
+ return n && Oo.call(t, dc) && o.unshift(t), o = o.filter(r), o;
14724
14724
  }, pc = function(t, n, r) {
14725
14725
  for (var o = [], s = Array.from(t); s.length; ) {
14726
14726
  var i = s.shift();
14727
- if (!Oo(i, !1))
14727
+ if (!No(i, !1))
14728
14728
  if (i.tagName === "SLOT") {
14729
14729
  var c = i.assignedElements(), a = c.length ? c : i.children, u = pc(a, !0, r);
14730
14730
  r.flatten ? o.push.apply(o, u) : o.push({
@@ -14732,10 +14732,10 @@ var sE = ["input:not([inert])", "select:not([inert])", "textarea:not([inert])",
14732
14732
  candidates: u
14733
14733
  });
14734
14734
  } else {
14735
- var l = No.call(i, dc);
14735
+ var l = Oo.call(i, dc);
14736
14736
  l && r.filter(i) && (n || !t.includes(i)) && o.push(i);
14737
14737
  var f = i.shadowRoot || // check for an undisclosed shadow
14738
- typeof r.getShadowRoot == "function" && r.getShadowRoot(i), p = !Oo(f, !1) && (!r.shadowRootFilter || r.shadowRootFilter(i));
14738
+ typeof r.getShadowRoot == "function" && r.getShadowRoot(i), p = !No(f, !1) && (!r.shadowRootFilter || r.shadowRootFilter(i));
14739
14739
  if (f && p) {
14740
14740
  var d = pc(f === !0 ? i.children : f.children, !0, r);
14741
14741
  r.flatten ? o.push.apply(o, d) : o.push({
@@ -14824,8 +14824,8 @@ var sE = ["input:not([inert])", "select:not([inert])", "textarea:not([inert])",
14824
14824
  }
14825
14825
  if (getComputedStyle(t).visibility === "hidden")
14826
14826
  return !0;
14827
- var i = No.call(t, "details>summary:first-of-type"), c = i ? t.parentElement : t;
14828
- if (No.call(c, "details:not([open]) *"))
14827
+ var i = Oo.call(t, "details>summary:first-of-type"), c = i ? t.parentElement : t;
14828
+ if (Oo.call(c, "details:not([open]) *"))
14829
14829
  return !0;
14830
14830
  if (!r || r === "full" || // full-native can run this branch when it falls through in case
14831
14831
  // Element#checkVisibility is unsupported
@@ -14853,7 +14853,7 @@ var sE = ["input:not([inert])", "select:not([inert])", "textarea:not([inert])",
14853
14853
  for (var r = 0; r < n.children.length; r++) {
14854
14854
  var o = n.children.item(r);
14855
14855
  if (o.tagName === "LEGEND")
14856
- return No.call(n, "fieldset[disabled] *") ? !0 : !o.contains(t);
14856
+ return Oo.call(n, "fieldset[disabled] *") ? !0 : !o.contains(t);
14857
14857
  }
14858
14858
  return !0;
14859
14859
  }
@@ -14864,7 +14864,7 @@ var sE = ["input:not([inert])", "select:not([inert])", "textarea:not([inert])",
14864
14864
  return !(n.disabled || // we must do an inert look up to filter out any elements inside an inert ancestor
14865
14865
  // because we're limited in the type of selectors we can use in JSDom (see related
14866
14866
  // note related to `candidateSelectors`)
14867
- Oo(n) || lE(n) || gE(n, t) || // For a details element with a summary, the summary element gets the focus
14867
+ No(n) || lE(n) || gE(n, t) || // For a details element with a summary, the summary element gets the focus
14868
14868
  fE(n) || yE(n));
14869
14869
  }, Pf = function(t, n) {
14870
14870
  return !(mE(n) || Ah(n) < 0 || !wE(t, n));
@@ -14885,7 +14885,7 @@ var sE = ["input:not([inert])", "select:not([inert])", "textarea:not([inert])",
14885
14885
  }), r.sort(uE).reduce(function(o, s) {
14886
14886
  return s.isScope ? o.push.apply(o, s.content) : o.push(s.content), o;
14887
14887
  }, []).concat(n);
14888
- }, Nh = function(t, n) {
14888
+ }, Oh = function(t, n) {
14889
14889
  n = n || {};
14890
14890
  var r;
14891
14891
  return n.getShadowRoot ? r = pc([t], n.includeContainer, {
@@ -15073,7 +15073,7 @@ const EE = (e) => ({
15073
15073
  }, d = Ru(o), h = Tu(d), m = await i.getDimensions(u), w = d === "y", S = w ? "top" : "left", x = w ? "bottom" : "right", E = w ? "clientHeight" : "clientWidth", R = s.reference[h] + s.reference[d] - p[d] - s.floating[h], B = p[d] - s.reference[d], F = await (i.getOffsetParent == null ? void 0 : i.getOffsetParent(u));
15074
15074
  let L = F ? F[E] : 0;
15075
15075
  (!L || !await (i.isElement == null ? void 0 : i.isElement(F))) && (L = c.floating[E] || s.floating[h]);
15076
- const b = R / 2 - B / 2, g = L / 2 - m[h] / 2 - 1, v = pn(f[S], g), N = pn(f[x], g), T = v, O = L - m[h] - N, I = L / 2 - m[h] / 2 + b, y = lc(T, I, O), A = !a.arrow && Dr(o) != null && I !== y && s.reference[h] / 2 - (I < T ? v : N) - m[h] / 2 < 0, $ = A ? I < T ? I - T : I - O : 0;
15076
+ const b = R / 2 - B / 2, g = L / 2 - m[h] / 2 - 1, v = pn(f[S], g), O = pn(f[x], g), T = v, N = L - m[h] - O, I = L / 2 - m[h] / 2 + b, y = lc(T, I, N), A = !a.arrow && Dr(o) != null && I !== y && s.reference[h] / 2 - (I < T ? v : O) - m[h] / 2 < 0, $ = A ? I < T ? I - T : I - N : 0;
15077
15077
  return {
15078
15078
  [d]: p[d] + $,
15079
15079
  data: {
@@ -15110,7 +15110,7 @@ const EE = (e) => ({
15110
15110
  } = or(e, t);
15111
15111
  if ((n = s.arrow) != null && n.alignmentOffset)
15112
15112
  return {};
15113
- const S = Cn(o), x = on(c), E = Cn(c) === c, R = await (a.isRTL == null ? void 0 : a.isRTL(u.floating)), B = p || (E || !m ? [Os(c)] : J2(c)), F = h !== "none";
15113
+ const S = Cn(o), x = on(c), E = Cn(c) === c, R = await (a.isRTL == null ? void 0 : a.isRTL(u.floating)), B = p || (E || !m ? [Ns(c)] : J2(c)), F = h !== "none";
15114
15114
  !p && F && B.push(...rE(c, m, h, R));
15115
15115
  const L = [c, ...B], b = await pi(t, w), g = [];
15116
15116
  let v = ((r = s.flip) == null ? void 0 : r.overflows) || [];
@@ -15122,8 +15122,8 @@ const EE = (e) => ({
15122
15122
  placement: o,
15123
15123
  overflows: g
15124
15124
  }], !g.every((I) => I <= 0)) {
15125
- var N, T;
15126
- const I = (((N = s.flip) == null ? void 0 : N.index) || 0) + 1, y = L[I];
15125
+ var O, T;
15126
+ const I = (((O = s.flip) == null ? void 0 : O.index) || 0) + 1, y = L[I];
15127
15127
  if (y && (!(f === "alignment" ? x !== on(y) : !1) || // We leave the current main axis only if every placement on that axis
15128
15128
  // overflows the main axis.
15129
15129
  v.every((P) => on(P.placement) === x ? P.overflows[0] > 0 : !0)))
@@ -15140,8 +15140,8 @@ const EE = (e) => ({
15140
15140
  if (!A)
15141
15141
  switch (d) {
15142
15142
  case "bestFit": {
15143
- var O;
15144
- const $ = (O = v.filter((P) => {
15143
+ var N;
15144
+ const $ = (N = v.filter((P) => {
15145
15145
  if (F) {
15146
15146
  const M = on(P.placement);
15147
15147
  return M === x || // Create a bias to the `y` side axis due to horizontal
@@ -15149,7 +15149,7 @@ const EE = (e) => ({
15149
15149
  M === "y";
15150
15150
  }
15151
15151
  return !0;
15152
- }).map((P) => [P.placement, P.overflows.filter((M) => M > 0).reduce((M, D) => M + D, 0)]).sort((P, M) => P[1] - M[1])[0]) == null ? void 0 : O[0];
15152
+ }).map((P) => [P.placement, P.overflows.filter((M) => M > 0).reduce((M, D) => M + D, 0)]).sort((P, M) => P[1] - M[1])[0]) == null ? void 0 : N[0];
15153
15153
  $ && (A = $);
15154
15154
  break;
15155
15155
  }
@@ -15297,8 +15297,8 @@ const AE = function(e) {
15297
15297
  const x = m - l.top - l.bottom, E = h - l.left - l.right, R = pn(m - l[w], x), B = pn(h - l[S], E), F = !t.middlewareData.shift;
15298
15298
  let L = R, b = B;
15299
15299
  if ((n = t.middlewareData.shift) != null && n.enabled.x && (b = E), (r = t.middlewareData.shift) != null && r.enabled.y && (L = x), F && !p) {
15300
- const v = je(l.left, 0), N = je(l.right, 0), T = je(l.top, 0), O = je(l.bottom, 0);
15301
- d ? b = h - 2 * (v !== 0 || N !== 0 ? v + N : je(l.left, l.right)) : L = m - 2 * (T !== 0 || O !== 0 ? T + O : je(l.top, l.bottom));
15300
+ const v = je(l.left, 0), O = je(l.right, 0), T = je(l.top, 0), N = je(l.bottom, 0);
15301
+ d ? b = h - 2 * (v !== 0 || O !== 0 ? v + O : je(l.left, l.right)) : L = m - 2 * (T !== 0 || N !== 0 ? T + N : je(l.top, l.bottom));
15302
15302
  }
15303
15303
  await a({
15304
15304
  ...t,
@@ -15314,7 +15314,7 @@ const AE = function(e) {
15314
15314
  }
15315
15315
  };
15316
15316
  };
15317
- function Oh(e) {
15317
+ function Nh(e) {
15318
15318
  const t = Et(e);
15319
15319
  let n = parseFloat(t.width) || 0, r = parseFloat(t.height) || 0;
15320
15320
  const o = We(e), s = o ? e.offsetWidth : n, i = o ? e.offsetHeight : r, c = Ro(n) !== s || Ro(r) !== i;
@@ -15324,41 +15324,41 @@ function Oh(e) {
15324
15324
  $: c
15325
15325
  };
15326
15326
  }
15327
- function Nu(e) {
15327
+ function Ou(e) {
15328
15328
  return be(e) ? e : e.contextElement;
15329
15329
  }
15330
15330
  function Er(e) {
15331
- const t = Nu(e);
15331
+ const t = Ou(e);
15332
15332
  if (!We(t))
15333
15333
  return Ht(1);
15334
15334
  const n = t.getBoundingClientRect(), {
15335
15335
  width: r,
15336
15336
  height: o,
15337
15337
  $: s
15338
- } = Oh(t);
15338
+ } = Nh(t);
15339
15339
  let i = (s ? Ro(n.width) : n.width) / r, c = (s ? Ro(n.height) : n.height) / o;
15340
15340
  return (!i || !Number.isFinite(i)) && (i = 1), (!c || !Number.isFinite(c)) && (c = 1), {
15341
15341
  x: i,
15342
15342
  y: c
15343
15343
  };
15344
15344
  }
15345
- const NE = /* @__PURE__ */ Ht(0);
15345
+ const OE = /* @__PURE__ */ Ht(0);
15346
15346
  function Ih(e) {
15347
15347
  const t = Xe(e);
15348
- return !fi() || !t.visualViewport ? NE : {
15348
+ return !fi() || !t.visualViewport ? OE : {
15349
15349
  x: t.visualViewport.offsetLeft,
15350
15350
  y: t.visualViewport.offsetTop
15351
15351
  };
15352
15352
  }
15353
- function OE(e, t, n) {
15353
+ function NE(e, t, n) {
15354
15354
  return t === void 0 && (t = !1), !n || t && n !== Xe(e) ? !1 : t;
15355
15355
  }
15356
15356
  function Kn(e, t, n, r) {
15357
15357
  t === void 0 && (t = !1), n === void 0 && (n = !1);
15358
- const o = e.getBoundingClientRect(), s = Nu(e);
15358
+ const o = e.getBoundingClientRect(), s = Ou(e);
15359
15359
  let i = Ht(1);
15360
15360
  t && (r ? be(r) && (i = Er(r)) : i = Er(e));
15361
- const c = OE(s, n, r) ? Ih(s) : Ht(0);
15361
+ const c = NE(s, n, r) ? Ih(s) : Ht(0);
15362
15362
  let a = (o.left + c.x) / i.x, u = (o.top + c.y) / i.y, l = o.width / i.x, f = o.height / i.y;
15363
15363
  if (s) {
15364
15364
  const p = Xe(s), d = r && be(r) ? Xe(r) : r;
@@ -15516,7 +15516,7 @@ function jE(e) {
15516
15516
  const {
15517
15517
  width: t,
15518
15518
  height: n
15519
- } = Oh(e);
15519
+ } = Nh(e);
15520
15520
  return {
15521
15521
  width: t,
15522
15522
  height: n
@@ -15659,7 +15659,7 @@ function Lh(e, t, n, r) {
15659
15659
  elementResize: i = typeof ResizeObserver == "function",
15660
15660
  layoutShift: c = typeof IntersectionObserver == "function",
15661
15661
  animationFrame: a = !1
15662
- } = r, u = Nu(e), l = o || s ? [...u ? An(u) : [], ...An(t)] : [];
15662
+ } = r, u = Ou(e), l = o || s ? [...u ? An(u) : [], ...An(t)] : [];
15663
15663
  l.forEach((S) => {
15664
15664
  o && S.addEventListener("scroll", n, {
15665
15665
  passive: !0
@@ -15735,7 +15735,7 @@ function Bs(e, t) {
15735
15735
  function kh(e) {
15736
15736
  return typeof window > "u" ? 1 : (e.ownerDocument.defaultView || window).devicePixelRatio || 1;
15737
15737
  }
15738
- function Nf(e, t) {
15738
+ function Of(e, t) {
15739
15739
  const n = kh(e);
15740
15740
  return Math.round(t * n) / n;
15741
15741
  }
@@ -15772,7 +15772,7 @@ function Dh(e) {
15772
15772
  P !== F.current && (F.current = P, m(P));
15773
15773
  }, []), E = U.useCallback((P) => {
15774
15774
  P !== L.current && (L.current = P, S(P));
15775
- }, []), R = s || h, B = i || w, F = U.useRef(null), L = U.useRef(null), b = U.useRef(l), g = a != null, v = sa(a), N = sa(o), T = sa(u), O = U.useCallback(() => {
15775
+ }, []), R = s || h, B = i || w, F = U.useRef(null), L = U.useRef(null), b = U.useRef(l), g = a != null, v = sa(a), O = sa(o), T = sa(u), N = U.useCallback(() => {
15776
15776
  if (!F.current || !L.current)
15777
15777
  return;
15778
15778
  const P = {
@@ -15780,7 +15780,7 @@ function Dh(e) {
15780
15780
  strategy: n,
15781
15781
  middleware: p
15782
15782
  };
15783
- N.current && (P.platform = N.current), YE(F.current, L.current, P).then((M) => {
15783
+ O.current && (P.platform = O.current), YE(F.current, L.current, P).then((M) => {
15784
15784
  const D = {
15785
15785
  ...M,
15786
15786
  // The floating element's position may be recomputed while it's closed
@@ -15793,7 +15793,7 @@ function Dh(e) {
15793
15793
  f(D);
15794
15794
  }));
15795
15795
  });
15796
- }, [p, t, n, N, T]);
15796
+ }, [p, t, n, O, T]);
15797
15797
  fs(() => {
15798
15798
  u === !1 && b.current.isPositioned && (b.current.isPositioned = !1, f((P) => ({
15799
15799
  ...P,
@@ -15806,10 +15806,10 @@ function Dh(e) {
15806
15806
  }), []), fs(() => {
15807
15807
  if (R && (F.current = R), B && (L.current = B), R && B) {
15808
15808
  if (v.current)
15809
- return v.current(R, B, O);
15810
- O();
15809
+ return v.current(R, B, N);
15810
+ N();
15811
15811
  }
15812
- }, [R, B, O, v, g]);
15812
+ }, [R, B, N, v, g]);
15813
15813
  const y = U.useMemo(() => ({
15814
15814
  reference: F,
15815
15815
  floating: L,
@@ -15826,7 +15826,7 @@ function Dh(e) {
15826
15826
  };
15827
15827
  if (!A.floating)
15828
15828
  return P;
15829
- const M = Nf(A.floating, l.x), D = Nf(A.floating, l.y);
15829
+ const M = Of(A.floating, l.x), D = Of(A.floating, l.y);
15830
15830
  return c ? {
15831
15831
  ...P,
15832
15832
  transform: "translate(" + M + "px, " + D + "px)",
@@ -15841,11 +15841,11 @@ function Dh(e) {
15841
15841
  }, [n, c, A.floating, l.x, l.y]);
15842
15842
  return U.useMemo(() => ({
15843
15843
  ...l,
15844
- update: O,
15844
+ update: N,
15845
15845
  refs: y,
15846
15846
  elements: A,
15847
15847
  floatingStyles: $
15848
- }), [l, O, y, A, $]);
15848
+ }), [l, N, y, A, $]);
15849
15849
  }
15850
15850
  const QE = (e) => {
15851
15851
  function t(n) {
@@ -15868,7 +15868,7 @@ const QE = (e) => {
15868
15868
  }).fn(n) : {};
15869
15869
  }
15870
15870
  };
15871
- }, Ou = (e, t) => ({
15871
+ }, Nu = (e, t) => ({
15872
15872
  ...VE(e),
15873
15873
  options: [e, t]
15874
15874
  }), jh = (e, t) => ({
@@ -15900,18 +15900,18 @@ function zh(e) {
15900
15900
  }, []);
15901
15901
  }
15902
15902
  var hc = typeof document < "u" ? ks : Pe;
15903
- let Of = !1, r8 = 0;
15903
+ let Nf = !1, r8 = 0;
15904
15904
  const If = () => (
15905
15905
  // Ensure the id is unique with multiple independent versions of Floating UI
15906
15906
  // on <React 18
15907
15907
  "floating-ui-" + Math.random().toString(36).slice(2, 6) + r8++
15908
15908
  );
15909
15909
  function o8() {
15910
- const [e, t] = U.useState(() => Of ? If() : void 0);
15910
+ const [e, t] = U.useState(() => Nf ? If() : void 0);
15911
15911
  return hc(() => {
15912
15912
  e == null && t(If());
15913
15913
  }, []), U.useEffect(() => {
15914
- Of = !0;
15914
+ Nf = !0;
15915
15915
  }, []), e;
15916
15916
  }
15917
15917
  const s8 = Uh.useId, i8 = s8 || o8;
@@ -16144,14 +16144,14 @@ const y8 = (e) => ({
16144
16144
  return {};
16145
16145
  const E = {
16146
16146
  ...t,
16147
- ...await Ou(-d.offsetTop - p.clientTop - f.reference.height / 2 - d.offsetHeight / 2 - s).fn(t)
16147
+ ...await Nu(-d.offsetTop - p.clientTop - f.reference.height / 2 - d.offsetHeight / 2 - s).fn(t)
16148
16148
  }, R = await oa(Mf(E, h.scrollHeight + m + p.clientTop), l), B = await oa(E, {
16149
16149
  ...l,
16150
16150
  elementContext: "reference"
16151
- }), F = je(0, R.top), L = E.y + F, v = (h.scrollHeight > h.clientHeight ? (N) => N : Ro)(je(0, h.scrollHeight + (w && x || S ? m * 2 : 0) - F - je(0, R.bottom)));
16151
+ }), F = je(0, R.top), L = E.y + F, v = (h.scrollHeight > h.clientHeight ? (O) => O : Ro)(je(0, h.scrollHeight + (w && x || S ? m * 2 : 0) - F - je(0, R.bottom)));
16152
16152
  if (h.style.maxHeight = v + "px", h.scrollTop = F, o) {
16153
- const N = h.offsetHeight < d.offsetHeight * pn(c, n.current.length) - 1 || B.top >= -a || B.bottom >= -a;
16154
- eo.flushSync(() => o(N));
16153
+ const O = h.offsetHeight < d.offsetHeight * pn(c, n.current.length) - 1 || B.top >= -a || B.bottom >= -a;
16154
+ eo.flushSync(() => o(O));
16155
16155
  }
16156
16156
  return r && (r.current = await oa(Mf({
16157
16157
  ...E,
@@ -16243,7 +16243,7 @@ function S8(e = null) {
16243
16243
  var i;
16244
16244
  return (i = s == null ? void 0 : s.outerHTML) != null ? i : s;
16245
16245
  })]);
16246
- Ne(() => {
16246
+ Oe(() => {
16247
16247
  t == null || t(n ?? null);
16248
16248
  }, [t, n]);
16249
16249
  let r = Ee(jr);
@@ -16254,16 +16254,16 @@ function $8({ children: e, enabled: t = !0 }) {
16254
16254
  let [n, r] = oe(null), [o, s] = oe(0), i = ce(null), [c, a] = oe(null);
16255
16255
  A8(c);
16256
16256
  let u = t && n !== null && c !== null, { to: l = "bottom", gap: f = 0, offset: p = 0, padding: d = 0, inner: h } = T8(n, c), [m, w = "center"] = l.split(" ");
16257
- Ne(() => {
16257
+ Oe(() => {
16258
16258
  u && s(0);
16259
16259
  }, [u]);
16260
- let { refs: S, floatingStyles: x, context: E } = b8({ open: u, placement: m === "selection" ? w === "center" ? "bottom" : `bottom-${w}` : w === "center" ? `${m}` : `${m}-${w}`, strategy: "absolute", transform: !1, middleware: [Ou({ mainAxis: m === "selection" ? 0 : f, crossAxis: p }), jh({ padding: d }), m !== "selection" && _h({ padding: d }), m === "selection" && h ? y8({ ...h, padding: d, overflowRef: i, offset: o, minItemsVisible: Ff, referenceOverflowThreshold: d, onFallbackChange(N) {
16261
- var T, O;
16262
- if (!N) return;
16260
+ let { refs: S, floatingStyles: x, context: E } = b8({ open: u, placement: m === "selection" ? w === "center" ? "bottom" : `bottom-${w}` : w === "center" ? `${m}` : `${m}-${w}`, strategy: "absolute", transform: !1, middleware: [Nu({ mainAxis: m === "selection" ? 0 : f, crossAxis: p }), jh({ padding: d }), m !== "selection" && _h({ padding: d }), m === "selection" && h ? y8({ ...h, padding: d, overflowRef: i, offset: o, minItemsVisible: Ff, referenceOverflowThreshold: d, onFallbackChange(O) {
16261
+ var T, N;
16262
+ if (!O) return;
16263
16263
  let I = E.elements.floating;
16264
16264
  if (!I) return;
16265
16265
  let y = parseFloat(getComputedStyle(I).scrollPaddingBottom) || 0, A = Math.min(Ff, I.childElementCount), $ = 0, P = 0;
16266
- for (let M of (O = (T = E.elements.floating) == null ? void 0 : T.childNodes) != null ? O : []) if (bn(M)) {
16266
+ for (let M of (N = (T = E.elements.floating) == null ? void 0 : T.childNodes) != null ? N : []) if (bn(M)) {
16267
16267
  let D = M.offsetTop, _ = D + M.clientHeight + y, j = I.scrollTop, H = j + I.clientHeight;
16268
16268
  if (D >= j && _ <= H) A--;
16269
16269
  else {
@@ -16275,17 +16275,17 @@ function $8({ children: e, enabled: t = !0 }) {
16275
16275
  let D = $ * A - P + y;
16276
16276
  return M >= D ? M : D;
16277
16277
  });
16278
- } }) : null, JE({ padding: d, apply({ availableWidth: N, availableHeight: T, elements: O }) {
16279
- Object.assign(O.floating.style, { overflow: "auto", maxWidth: `${N}px`, maxHeight: `min(var(--anchor-max-height, 100vh), ${T}px)` });
16278
+ } }) : null, JE({ padding: d, apply({ availableWidth: O, availableHeight: T, elements: N }) {
16279
+ Object.assign(N.floating.style, { overflow: "auto", maxWidth: `${O}px`, maxHeight: `min(var(--anchor-max-height, 100vh), ${T}px)` });
16280
16280
  } })].filter(Boolean), whileElementsMounted: Lh }), [R = m, B = w] = E.placement.split("-");
16281
16281
  m === "selection" && (R = "selection");
16282
- let F = te(() => ({ anchor: [R, B].filter(Boolean).join(" ") }), [R, B]), L = w8(E, { overflowRef: i, onChange: s }), { getReferenceProps: b, getFloatingProps: g } = g8([L]), v = pe((N) => {
16283
- a(N), S.setFloating(N);
16282
+ let F = te(() => ({ anchor: [R, B].filter(Boolean).join(" ") }), [R, B]), L = w8(E, { overflowRef: i, onChange: s }), { getReferenceProps: b, getFloatingProps: g } = g8([L]), v = pe((O) => {
16283
+ a(O), S.setFloating(O);
16284
16284
  });
16285
16285
  return U.createElement(Iu.Provider, { value: r }, U.createElement(jr.Provider, { value: { setFloating: v, setReference: S.setReference, styles: x, getReferenceProps: b, getFloatingProps: g, slot: F } }, e));
16286
16286
  }
16287
16287
  function A8(e) {
16288
- Ne(() => {
16288
+ Oe(() => {
16289
16289
  if (!e) return;
16290
16290
  let t = new MutationObserver(() => {
16291
16291
  let n = window.getComputedStyle(e).maxHeight, r = parseFloat(n);
@@ -16334,7 +16334,7 @@ function aa(e, t, n = void 0) {
16334
16334
  }
16335
16335
  return [n, null];
16336
16336
  }), s = te(() => o(e, t)[0], [e, t]), [i = s, c] = oe();
16337
- return Ne(() => {
16337
+ return Oe(() => {
16338
16338
  let [a, u] = o(e, t);
16339
16339
  if (c(a), !!u) return u(c);
16340
16340
  }, [e, t]), i;
@@ -16373,7 +16373,7 @@ function Bu() {
16373
16373
  function Vh({ value: e, children: t }) {
16374
16374
  return Z.createElement(Cu.Provider, { value: e }, t);
16375
16375
  }
16376
- function N8(e) {
16376
+ function O8(e) {
16377
16377
  throw new Error("Unexpected object: " + e);
16378
16378
  }
16379
16379
  var $e = ((e) => (e[e.First = 0] = "First", e[e.Previous = 1] = "Previous", e[e.Next = 2] = "Next", e[e.Last = 3] = "Last", e[e.Specific = 4] = "Specific", e[e.Nothing = 5] = "Nothing", e))($e || {});
@@ -16406,7 +16406,7 @@ function as(e, t) {
16406
16406
  case 5:
16407
16407
  return null;
16408
16408
  default:
16409
- N8(e);
16409
+ O8(e);
16410
16410
  }
16411
16411
  }
16412
16412
  function Gh(e) {
@@ -16417,9 +16417,9 @@ function Gh(e) {
16417
16417
  });
16418
16418
  }), [t]);
16419
16419
  }
16420
- let O8 = De(!1);
16420
+ let N8 = De(!1);
16421
16421
  function I8() {
16422
- return Ee(O8);
16422
+ return Ee(N8);
16423
16423
  }
16424
16424
  function C8(e) {
16425
16425
  let t = I8(), n = Ee(Zh), [r, o] = oe(() => {
@@ -16438,7 +16438,7 @@ function C8(e) {
16438
16438
  t || n !== null && o(n.current);
16439
16439
  }, [n, o, t]), r;
16440
16440
  }
16441
- let qh = Nt, B8 = nt(function(e, t) {
16441
+ let qh = Ot, B8 = nt(function(e, t) {
16442
16442
  let { ownerDocument: n = null, ...r } = e, o = ce(null), s = Pt(Lx((p) => {
16443
16443
  o.current = p;
16444
16444
  }), t), i = ac(o.current), c = n ?? i, a = C8(c), u = Ee(k8), l = nr(), f = ct();
@@ -16453,7 +16453,7 @@ function M8(e, t) {
16453
16453
  let n = Pt(t), { enabled: r = !0, ownerDocument: o, ...s } = e, i = ct();
16454
16454
  return r ? Z.createElement(B8, { ...s, ownerDocument: o, ref: n }) : i({ ourProps: { ref: n }, theirProps: s, slot: {}, defaultTag: qh, name: "Portal" });
16455
16455
  }
16456
- let F8 = Nt, Zh = De(null);
16456
+ let F8 = Ot, Zh = De(null);
16457
16457
  function L8(e, t) {
16458
16458
  let { target: n, ...r } = e, o = { ref: Pt(t) }, s = ct();
16459
16459
  return Z.createElement(Zh.Provider, { value: n }, s({ ourProps: o, theirProps: r, defaultTag: F8, name: "Popover.Group" }));
@@ -16487,7 +16487,7 @@ function Kh() {
16487
16487
  }
16488
16488
  function H8() {
16489
16489
  let e = ce(!1);
16490
- return Ne(() => (e.current = !0, () => {
16490
+ return Oe(() => (e.current = !0, () => {
16491
16491
  e.current = !1;
16492
16492
  }), []), e;
16493
16493
  }
@@ -16541,25 +16541,25 @@ function Qh(e, t) {
16541
16541
  });
16542
16542
  return te(() => ({ children: r, register: c, unregister: i, onStart: f, onStop: p, wait: u, chains: l }), [c, i, r, f, p, l, u]);
16543
16543
  }
16544
- let Jh = Nt, em = Ns.RenderStrategy;
16544
+ let Jh = Ot, em = Os.RenderStrategy;
16545
16545
  function q8(e, t) {
16546
16546
  var n, r;
16547
- let { transition: o = !0, beforeEnter: s, afterEnter: i, beforeLeave: c, afterLeave: a, enter: u, enterFrom: l, enterTo: f, entered: p, leave: d, leaveFrom: h, leaveTo: m, ...w } = e, [S, x] = oe(null), E = ce(null), R = Xh(e), B = Pt(...R ? [E, t, x] : t === null ? [] : [t]), F = (n = w.unmount) == null || n ? En.Unmount : En.Hidden, { show: L, appear: b, initial: g } = V8(), [v, N] = oe(L ? "visible" : "hidden"), T = G8(), { register: O, unregister: I } = T;
16548
- Ne(() => O(E), [O, E]), Ne(() => {
16547
+ let { transition: o = !0, beforeEnter: s, afterEnter: i, beforeLeave: c, afterLeave: a, enter: u, enterFrom: l, enterTo: f, entered: p, leave: d, leaveFrom: h, leaveTo: m, ...w } = e, [S, x] = oe(null), E = ce(null), R = Xh(e), B = Pt(...R ? [E, t, x] : t === null ? [] : [t]), F = (n = w.unmount) == null || n ? En.Unmount : En.Hidden, { show: L, appear: b, initial: g } = V8(), [v, O] = oe(L ? "visible" : "hidden"), T = G8(), { register: N, unregister: I } = T;
16548
+ Oe(() => N(E), [N, E]), Oe(() => {
16549
16549
  if (F === En.Hidden && E.current) {
16550
16550
  if (L && v !== "visible") {
16551
- N("visible");
16551
+ O("visible");
16552
16552
  return;
16553
16553
  }
16554
- return xt(v, { hidden: () => I(E), visible: () => O(E) });
16554
+ return xt(v, { hidden: () => I(E), visible: () => N(E) });
16555
16555
  }
16556
- }, [v, E, O, I, L, F]);
16556
+ }, [v, E, N, I, L, F]);
16557
16557
  let y = Kh();
16558
- Ne(() => {
16558
+ Oe(() => {
16559
16559
  if (R && y && v === "visible" && E.current === null) throw new Error("Did you forget to passthrough the `ref` to the actual DOM node?");
16560
16560
  }, [E, v, y, R]);
16561
16561
  let A = g && !b, $ = b && L && g, P = ce(!1), M = Qh(() => {
16562
- P.current || (N("hidden"), I(E));
16562
+ P.current || (O("hidden"), I(E));
16563
16563
  }, T), D = pe((q) => {
16564
16564
  P.current = !0;
16565
16565
  let ee = q ? "enter" : "leave";
@@ -16570,7 +16570,7 @@ function q8(e, t) {
16570
16570
  let ee = q ? "enter" : "leave";
16571
16571
  P.current = !1, M.onStop(E, ee, (ie) => {
16572
16572
  ie === "enter" ? i == null || i() : ie === "leave" && (a == null || a());
16573
- }), ee === "leave" && !gi(M) && (N("hidden"), I(E));
16573
+ }), ee === "leave" && !gi(M) && (O("hidden"), I(E));
16574
16574
  });
16575
16575
  Pe(() => {
16576
16576
  R && o || (D(L), _(L));
@@ -16588,11 +16588,11 @@ function Z8(e, t) {
16588
16588
  let [l, f] = oe(n ? "visible" : "hidden"), p = Qh(() => {
16589
16589
  n || f("hidden");
16590
16590
  }), [d, h] = oe(!0), m = ce([n]);
16591
- Ne(() => {
16591
+ Oe(() => {
16592
16592
  d !== !1 && m.current[m.current.length - 1] !== n && (m.current.push(n), h(!1));
16593
16593
  }, [m, n]);
16594
16594
  let w = te(() => ({ show: n, appear: r, initial: d }), [n, r, d]);
16595
- Ne(() => {
16595
+ Oe(() => {
16596
16596
  n ? f("visible") : !gi(p) && i.current !== null && f("hidden");
16597
16597
  }, [n, p]);
16598
16598
  let S = { unmount: o }, x = pe(() => {
@@ -16602,7 +16602,7 @@ function Z8(e, t) {
16602
16602
  var B;
16603
16603
  d && h(!1), (B = e.beforeLeave) == null || B.call(e);
16604
16604
  }), R = ct();
16605
- return Z.createElement(bi.Provider, { value: p }, Z.createElement(mi.Provider, { value: w }, R({ ourProps: { ...S, as: Nt, children: Z.createElement(tm, { ref: a, ...S, ...s, beforeEnter: x, beforeLeave: E }) }, theirProps: {}, defaultTag: Nt, features: em, visible: l === "visible", name: "Transition" })));
16605
+ return Z.createElement(bi.Provider, { value: p }, Z.createElement(mi.Provider, { value: w }, R({ ourProps: { ...S, as: Ot, children: Z.createElement(tm, { ref: a, ...S, ...s, beforeEnter: x, beforeLeave: E }) }, theirProps: {}, defaultTag: Ot, features: em, visible: l === "visible", name: "Transition" })));
16606
16606
  }
16607
16607
  function Y8(e, t) {
16608
16608
  let n = Ee(mi) !== null, r = Bu() !== null;
@@ -16827,22 +16827,22 @@ function qo(e) {
16827
16827
  }
16828
16828
  return t;
16829
16829
  }
16830
- let n3 = Nt;
16830
+ let n3 = Ot;
16831
16831
  function r3(e, t) {
16832
16832
  let n = Qn(), r = vu(), { value: o, defaultValue: s, form: i, name: c, onChange: a, by: u, invalid: l = !1, disabled: f = r || !1, horizontal: p = !1, multiple: d = !1, __demoMode: h = !1, ...m } = e;
16833
16833
  const w = p ? "horizontal" : "vertical";
16834
16834
  let S = Pt(t), x = xx(s), [E = d ? [] : void 0, R] = vx(o, a, x), B = om({ id: n, __demoMode: h }), F = ce({ static: !1, hold: !1 }), L = ce(/* @__PURE__ */ new Map()), b = qx(u), g = X((j) => xt(v.mode, { [Pn.Multi]: () => E.some((H) => b(H, j)), [Pn.Single]: () => b(E, j) }), [E]), v = In({ value: E, disabled: f, invalid: l, mode: d ? Pn.Multi : Pn.Single, orientation: w, onChange: R, compare: b, isSelected: g, optionsPropsRef: F, listRef: L });
16835
- Ne(() => {
16835
+ Oe(() => {
16836
16836
  B.state.dataRef.current = v;
16837
16837
  }, [v]);
16838
- let N = Ze(B, (j) => j.listboxState), T = Pu.get(null), O = Ze(T, X((j) => T.selectors.isTop(j, n), [T, n])), [I, y] = Ze(B, (j) => [j.buttonElement, j.optionsElement]);
16839
- v2(O, [I, y], (j, H) => {
16838
+ let O = Ze(B, (j) => j.listboxState), T = Pu.get(null), N = Ze(T, X((j) => T.selectors.isTop(j, n), [T, n])), [I, y] = Ze(B, (j) => [j.buttonElement, j.optionsElement]);
16839
+ v2(N, [I, y], (j, H) => {
16840
16840
  B.send({ type: nm.CloseListbox }), bh(H, Su.Loose) || (j.preventDefault(), I == null || I.focus());
16841
16841
  });
16842
- let A = In({ open: N === _e.Open, disabled: f, invalid: l, value: E }), [$, P] = Ux({ inherit: !0 }), M = { ref: S }, D = X(() => {
16842
+ let A = In({ open: O === _e.Open, disabled: f, invalid: l, value: E }), [$, P] = Ux({ inherit: !0 }), M = { ref: S }, D = X(() => {
16843
16843
  if (x !== void 0) return R == null ? void 0 : R(x);
16844
16844
  }, [R, x]), _ = ct();
16845
- return Z.createElement(P, { value: $, props: { htmlFor: I == null ? void 0 : I.id }, slot: { open: N === _e.Open, disabled: f } }, Z.createElement($8, null, Z.createElement(rm.Provider, { value: B }, Z.createElement(yi.Provider, { value: v }, Z.createElement(Vh, { value: xt(N, { [_e.Open]: Tt.Open, [_e.Closed]: Tt.Closed }) }, c != null && E != null && Z.createElement(Rx, { disabled: f, data: { [c]: E }, form: i, onReset: D }), _({ ourProps: M, theirProps: m, slot: A, defaultTag: n3, name: "Listbox" }))))));
16845
+ return Z.createElement(P, { value: $, props: { htmlFor: I == null ? void 0 : I.id }, slot: { open: O === _e.Open, disabled: f } }, Z.createElement($8, null, Z.createElement(rm.Provider, { value: B }, Z.createElement(yi.Provider, { value: v }, Z.createElement(Vh, { value: xt(O, { [_e.Open]: Tt.Open, [_e.Closed]: Tt.Closed }) }, c != null && E != null && Z.createElement(Rx, { disabled: f, data: { [c]: E }, form: i, onReset: D }), _({ ourProps: M, theirProps: m, slot: A, defaultTag: n3, name: "Listbox" }))))));
16846
16846
  }
16847
16847
  let o3 = "button";
16848
16848
  function s3(e, t) {
@@ -16874,10 +16874,10 @@ function s3(e, t) {
16874
16874
  }), x = Yx((y) => {
16875
16875
  var A;
16876
16876
  s.state.listboxState === _e.Open ? (bs(() => s.actions.closeListbox()), (A = s.state.buttonElement) == null || A.focus({ preventScroll: !0 })) : (y.preventDefault(), s.actions.openListbox({ focus: $e.Nothing }));
16877
- }), E = pe((y) => y.preventDefault()), R = ih([i]), B = kx(), { isFocusVisible: F, focusProps: L } = ix({ autoFocus: a }), { isHovered: b, hoverProps: g } = sx({ isDisabled: c }), { pressed: v, pressProps: N } = px({ disabled: c }), T = In({ open: p === _e.Open, active: v || p === _e.Open, disabled: c, invalid: o.invalid, value: o.value, hover: b, focus: F, autofocus: a }), O = Ze(s, (y) => y.listboxState === _e.Open), I = Zp(f(), { ref: l, id: i, type: S2(e, d), "aria-haspopup": "listbox", "aria-controls": h == null ? void 0 : h.id, "aria-expanded": O, "aria-labelledby": R, "aria-describedby": B, disabled: c || void 0, autoFocus: a, onKeyDown: w, onKeyUp: S, onKeyPress: E }, x, L, g, N);
16877
+ }), E = pe((y) => y.preventDefault()), R = ih([i]), B = kx(), { isFocusVisible: F, focusProps: L } = ix({ autoFocus: a }), { isHovered: b, hoverProps: g } = sx({ isDisabled: c }), { pressed: v, pressProps: O } = px({ disabled: c }), T = In({ open: p === _e.Open, active: v || p === _e.Open, disabled: c, invalid: o.invalid, value: o.value, hover: b, focus: F, autofocus: a }), N = Ze(s, (y) => y.listboxState === _e.Open), I = Zp(f(), { ref: l, id: i, type: S2(e, d), "aria-haspopup": "listbox", "aria-controls": h == null ? void 0 : h.id, "aria-expanded": N, "aria-labelledby": R, "aria-describedby": B, disabled: c || void 0, autoFocus: a, onKeyDown: w, onKeyUp: S, onKeyPress: E }, x, L, g, O);
16878
16878
  return ct()({ ourProps: I, theirProps: u, slot: T, defaultTag: o3, name: "Listbox.Button" });
16879
16879
  }
16880
- let sm = De(!1), i3 = "div", a3 = Ns.RenderStrategy | Ns.Static;
16880
+ let sm = De(!1), i3 = "div", a3 = Os.RenderStrategy | Os.Static;
16881
16881
  function c3(e, t) {
16882
16882
  let n = Qn(), { id: r = `headlessui-listbox-options-${n}`, anchor: o, portal: s = !1, modal: i = !0, transition: c = !1, ...a } = e, u = v8(o), [l, f] = oe(null);
16883
16883
  u && (s = !0);
@@ -16887,16 +16887,16 @@ function c3(e, t) {
16887
16887
  I2(L, E);
16888
16888
  let b = S ? !1 : i && h === _e.Open;
16889
16889
  a2(b, { allowed: X(() => [m, w], [m, w]) });
16890
- let g = Ze(d, d.selectors.didButtonMove) ? !1 : B, v = Ze(d, d.selectors.hasFrozenValue) && !e.static, N = Wh(v, p.value), T = X((z) => p.compare(N, z), [p.compare, N]), O = Ze(d, (z) => {
16890
+ let g = Ze(d, d.selectors.didButtonMove) ? !1 : B, v = Ze(d, d.selectors.hasFrozenValue) && !e.static, O = Wh(v, p.value), T = X((z) => p.compare(O, z), [p.compare, O]), N = Ze(d, (z) => {
16891
16891
  var q;
16892
16892
  if (u == null || !((q = u == null ? void 0 : u.to) != null && q.includes("selection"))) return null;
16893
16893
  let ee = z.options.findIndex((ie) => T(ie.dataRef.current.value));
16894
16894
  return ee === -1 && (ee = 0), ee;
16895
16895
  }), I = (() => {
16896
16896
  if (u == null) return;
16897
- if (O === null) return { ...u, inner: void 0 };
16897
+ if (N === null) return { ...u, inner: void 0 };
16898
16898
  let z = Array.from(p.listRef.current.values());
16899
- return { ...u, inner: { listRef: { current: z }, index: O } };
16899
+ return { ...u, inner: { listRef: { current: z }, index: N } };
16900
16900
  })(), [y, A] = S8(I), $ = P8(), P = Pt(t, u ? y : null, d.actions.setOptionsElement, f), M = nr();
16901
16901
  Pe(() => {
16902
16902
  let z = w;
@@ -16943,12 +16943,12 @@ function l3(e, t) {
16943
16943
  } }), m = Pt(t, p, (v) => {
16944
16944
  v ? a.listRef.current.set(r, v) : a.listRef.current.delete(r);
16945
16945
  }), w = Ze(u, (v) => u.selectors.shouldScrollIntoView(v, r));
16946
- Ne(() => {
16946
+ Oe(() => {
16947
16947
  if (w) return at().requestAnimationFrame(() => {
16948
- var v, N;
16949
- (N = (v = p.current) == null ? void 0 : v.scrollIntoView) == null || N.call(v, { block: "nearest" });
16948
+ var v, O;
16949
+ (O = (v = p.current) == null ? void 0 : v.scrollIntoView) == null || O.call(v, { block: "nearest" });
16950
16950
  });
16951
- }, [w, p]), Ne(() => {
16951
+ }, [w, p]), Oe(() => {
16952
16952
  if (!c) return u.actions.registerOption(r, h), () => u.actions.unregisterOption(r);
16953
16953
  }, [h, r, c]);
16954
16954
  let S = pe((v) => {
@@ -16964,7 +16964,7 @@ function l3(e, t) {
16964
16964
  }), L = In({ active: l, focus: l, selected: f, disabled: o, selectedOption: f && c }), b = c ? {} : { id: r, ref: m, role: "option", tabIndex: o === !0 ? void 0 : -1, "aria-disabled": o === !0 ? !0 : void 0, "aria-selected": f, disabled: void 0, onClick: S, onFocus: x, onPointerEnter: R, onMouseEnter: R, onPointerMove: B, onMouseMove: B, onPointerLeave: F, onMouseLeave: F }, g = ct();
16965
16965
  return !f && c ? null : g({ ourProps: b, theirProps: i, slot: L, defaultTag: u3, name: "Listbox.Option" });
16966
16966
  }
16967
- let f3 = Nt;
16967
+ let f3 = Ot;
16968
16968
  function d3(e, t) {
16969
16969
  let { options: n, placeholder: r, ...o } = e, s = { ref: Pt(t) }, i = qo("ListboxSelectedOption"), c = In({}), a = i.value === void 0 || i.value === null || i.mode === Pn.Multi && Array.isArray(i.value) && i.value.length === 0, u = ct();
16970
16970
  return Z.createElement(sm.Provider, { value: !0 }, u({ ourProps: s, theirProps: { ...o, children: Z.createElement(Z.Fragment, null, r && a ? r : n) }, slot: c, defaultTag: f3, name: "ListboxSelectedOption" }));
@@ -17126,7 +17126,7 @@ const x3 = {
17126
17126
  /* @__PURE__ */ C.jsx(
17127
17127
  Mu,
17128
17128
  {
17129
- as: Nt,
17129
+ as: Ot,
17130
17130
  enter: "transition ease-out duration-100",
17131
17131
  enterFrom: "transform opacity-0 scale-95",
17132
17132
  enterTo: "transform opacity-100 scale-100",
@@ -17256,7 +17256,7 @@ const x3 = {
17256
17256
  /* @__PURE__ */ C.jsx(
17257
17257
  Mu,
17258
17258
  {
17259
- as: Nt,
17259
+ as: Ot,
17260
17260
  enter: "transition ease-out duration-100",
17261
17261
  enterFrom: "transform opacity-0 scale-95",
17262
17262
  enterTo: "transform opacity-100 scale-100",
@@ -17498,7 +17498,7 @@ const x3 = {
17498
17498
  /* @__PURE__ */ C.jsx(
17499
17499
  Mu,
17500
17500
  {
17501
- as: Nt,
17501
+ as: Ot,
17502
17502
  enter: "transition ease-out duration-100",
17503
17503
  enterFrom: "transform opacity-0 scale-95",
17504
17504
  enterTo: "transform opacity-100 scale-100",
@@ -17545,8 +17545,8 @@ var wi = {}, T3 = function() {
17545
17545
  "text/plain": "Text",
17546
17546
  "text/html": "Url",
17547
17547
  default: "Text"
17548
- }, N3 = "Copy to clipboard: #{key}, Enter";
17549
- function O3(e) {
17548
+ }, O3 = "Copy to clipboard: #{key}, Enter";
17549
+ function N3(e) {
17550
17550
  var t = (/mac os x/i.test(navigator.userAgent) ? "⌘" : "Ctrl") + "+C";
17551
17551
  return e.replace(/#{\s*key\s*}/g, t);
17552
17552
  }
@@ -17573,7 +17573,7 @@ function I3(e, t) {
17573
17573
  try {
17574
17574
  window.clipboardData.setData(t.format || "text", e), t.onCopy && t.onCopy(window.clipboardData), a = !0;
17575
17575
  } catch (f) {
17576
- n && console.error("unable to copy using clipboardData: ", f), n && console.error("falling back to prompt"), r = O3("message" in t ? t.message : N3), window.prompt(r, e);
17576
+ n && console.error("unable to copy using clipboardData: ", f), n && console.error("falling back to prompt"), r = N3("message" in t ? t.message : O3), window.prompt(r, e);
17577
17577
  }
17578
17578
  } finally {
17579
17579
  i && (typeof i.removeRange == "function" ? i.removeRange(s) : i.removeAllRanges()), c && document.body.removeChild(c), o();
@@ -18423,7 +18423,7 @@ var e4 = function() {
18423
18423
  E.current = I, typeof n == "function" ? n(I) : n && (n.current = I);
18424
18424
  },
18425
18425
  [n]
18426
- ), [F, L] = Z.useState(!1), { margin: b, cells: g, numCells: v, calculatedImageSettings: N } = Em({
18426
+ ), [F, L] = Z.useState(!1), { margin: b, cells: g, numCells: v, calculatedImageSettings: O } = Em({
18427
18427
  value: o,
18428
18428
  level: i,
18429
18429
  minVersion: l,
@@ -18439,10 +18439,10 @@ var e4 = function() {
18439
18439
  if (!y)
18440
18440
  return;
18441
18441
  let A = g;
18442
- const $ = R.current, P = N != null && $ !== null && $.complete && $.naturalHeight !== 0 && $.naturalWidth !== 0;
18443
- P && N.excavation != null && (A = xm(
18442
+ const $ = R.current, P = O != null && $ !== null && $.complete && $.naturalHeight !== 0 && $.naturalWidth !== 0;
18443
+ P && O.excavation != null && (A = xm(
18444
18444
  g,
18445
- N.excavation
18445
+ O.excavation
18446
18446
  ));
18447
18447
  const M = window.devicePixelRatio || 1;
18448
18448
  I.height = I.width = s * M;
@@ -18451,20 +18451,20 @@ var e4 = function() {
18451
18451
  _.forEach(function(H, K) {
18452
18452
  H && y.fillRect(K + b, j + b, 1, 1);
18453
18453
  });
18454
- }), N && (y.globalAlpha = N.opacity), P && y.drawImage(
18454
+ }), O && (y.globalAlpha = O.opacity), P && y.drawImage(
18455
18455
  $,
18456
- N.x + b,
18457
- N.y + b,
18458
- N.w,
18459
- N.h
18456
+ O.x + b,
18457
+ O.y + b,
18458
+ O.w,
18459
+ O.h
18460
18460
  );
18461
18461
  }
18462
18462
  }), Z.useEffect(() => {
18463
18463
  L(!1);
18464
18464
  }, [x]);
18465
18465
  const T = wc({ height: s, width: s }, w);
18466
- let O = null;
18467
- return x != null && (O = /* @__PURE__ */ Z.createElement(
18466
+ let N = null;
18467
+ return x != null && (N = /* @__PURE__ */ Z.createElement(
18468
18468
  "img",
18469
18469
  {
18470
18470
  src: x,
@@ -18474,7 +18474,7 @@ var e4 = function() {
18474
18474
  L(!0);
18475
18475
  },
18476
18476
  ref: R,
18477
- crossOrigin: N == null ? void 0 : N.crossOrigin
18477
+ crossOrigin: O == null ? void 0 : O.crossOrigin
18478
18478
  }
18479
18479
  )), /* @__PURE__ */ Z.createElement(Z.Fragment, null, /* @__PURE__ */ Z.createElement(
18480
18480
  "canvas",
@@ -18485,7 +18485,7 @@ var e4 = function() {
18485
18485
  ref: B,
18486
18486
  role: "img"
18487
18487
  }, S)
18488
- ), O);
18488
+ ), N);
18489
18489
  }
18490
18490
  );
18491
18491
  t4.displayName = "QRCodeCanvas";
@@ -18599,7 +18599,7 @@ function xc(e) {
18599
18599
  }
18600
18600
  return t;
18601
18601
  }
18602
- function Or(e, t) {
18602
+ function Nr(e, t) {
18603
18603
  if (!e || !t)
18604
18604
  return !1;
18605
18605
  const n = t.getRootNode == null ? void 0 : t.getRootNode();
@@ -18694,7 +18694,7 @@ const Am = () => ({
18694
18694
  )
18695
18695
  });
18696
18696
  function Tm(e, t) {
18697
- const n = Nh(e, Am()), r = n.length;
18697
+ const n = Oh(e, Am()), r = n.length;
18698
18698
  if (r === 0) return;
18699
18699
  const o = xc(_t(e)), s = n.indexOf(o), i = s === -1 ? t === 1 ? 0 : r - 1 : s + t;
18700
18700
  return n[i];
@@ -18707,10 +18707,10 @@ function g4(e) {
18707
18707
  }
18708
18708
  function ua(e, t) {
18709
18709
  const n = t || e.currentTarget, r = e.relatedTarget;
18710
- return !r || !Or(n, r);
18710
+ return !r || !Nr(n, r);
18711
18711
  }
18712
18712
  function y4(e) {
18713
- Nh(e, Am()).forEach((n) => {
18713
+ Oh(e, Am()).forEach((n) => {
18714
18714
  n.dataset.tabindex = n.getAttribute("tabindex") || "", n.setAttribute("tabindex", "-1");
18715
18715
  });
18716
18716
  }
@@ -18806,7 +18806,7 @@ function R4(e, t) {
18806
18806
  restMs: f = 0,
18807
18807
  move: p = !0
18808
18808
  } = t, d = _u(), h = ju(), m = us(u), w = us(a), S = us(n), x = us(f), E = U.useRef(), R = U.useRef(-1), B = U.useRef(), F = U.useRef(-1), L = U.useRef(!0), b = U.useRef(!1), g = U.useRef(() => {
18809
- }), v = U.useRef(!1), N = jt(() => {
18809
+ }), v = U.useRef(!1), O = jt(() => {
18810
18810
  var $;
18811
18811
  const P = ($ = o.current.openEvent) == null ? void 0 : $.type;
18812
18812
  return (P == null ? void 0 : P.includes("mouse")) && P !== "mousedown";
@@ -18825,18 +18825,18 @@ function R4(e, t) {
18825
18825
  }, [c, s]), U.useEffect(() => {
18826
18826
  if (!c || !m.current || !n) return;
18827
18827
  function $(M) {
18828
- N() && r(!1, M, "hover");
18828
+ O() && r(!1, M, "hover");
18829
18829
  }
18830
18830
  const P = _t(i.floating).documentElement;
18831
18831
  return P.addEventListener("mouseleave", $), () => {
18832
18832
  P.removeEventListener("mouseleave", $);
18833
18833
  };
18834
- }, [i.floating, n, r, c, m, N]);
18834
+ }, [i.floating, n, r, c, m, O]);
18835
18835
  const T = U.useCallback(function($, P, M) {
18836
18836
  P === void 0 && (P = !0), M === void 0 && (M = "hover");
18837
18837
  const D = la(w.current, "close", E.current);
18838
18838
  D && !B.current ? (bt(R), R.current = window.setTimeout(() => r(!1, $, M), D)) : P && (bt(R), r(!1, $, M));
18839
- }, [w, r]), O = jt(() => {
18839
+ }, [w, r]), N = jt(() => {
18840
18840
  g.current(), B.current = void 0;
18841
18841
  }), I = jt(() => {
18842
18842
  if (b.current) {
@@ -18868,7 +18868,7 @@ function R4(e, t) {
18868
18868
  x: j.clientX,
18869
18869
  y: j.clientY,
18870
18870
  onClose() {
18871
- I(), O(), y() || T(j, !0, "safe-polygon");
18871
+ I(), N(), y() || T(j, !0, "safe-polygon");
18872
18872
  }
18873
18873
  });
18874
18874
  const V = B.current;
@@ -18877,7 +18877,7 @@ function R4(e, t) {
18877
18877
  };
18878
18878
  return;
18879
18879
  }
18880
- (E.current === "touch" ? !Or(i.floating, j.relatedTarget) : !0) && T(j);
18880
+ (E.current === "touch" ? !Nr(i.floating, j.relatedTarget) : !0) && T(j);
18881
18881
  }
18882
18882
  function M(j) {
18883
18883
  y() || o.current.floatingContext && (m.current == null || m.current({
@@ -18886,7 +18886,7 @@ function R4(e, t) {
18886
18886
  x: j.clientX,
18887
18887
  y: j.clientY,
18888
18888
  onClose() {
18889
- I(), O(), y() || T(j);
18889
+ I(), N(), y() || T(j);
18890
18890
  }
18891
18891
  })(j));
18892
18892
  }
@@ -18904,9 +18904,9 @@ function R4(e, t) {
18904
18904
  n && j.removeEventListener("mouseleave", M), p && j.removeEventListener("mousemove", $), j.removeEventListener("mouseenter", $), j.removeEventListener("mouseleave", P), H && (H.removeEventListener("mouseleave", M), H.removeEventListener("mouseenter", D), H.removeEventListener("mouseleave", _));
18905
18905
  };
18906
18906
  }
18907
- }, [i, c, e, l, p, T, O, I, r, n, S, d, w, m, o, y, x]), Wt(() => {
18907
+ }, [i, c, e, l, p, T, N, I, r, n, S, d, w, m, o, y, x]), Wt(() => {
18908
18908
  var $;
18909
- if (c && n && ($ = m.current) != null && ($ = $.__options) != null && $.blockPointerEvents && N()) {
18909
+ if (c && n && ($ = m.current) != null && ($ = $.__options) != null && $.blockPointerEvents && O()) {
18910
18910
  b.current = !0;
18911
18911
  const M = i.floating;
18912
18912
  if (be(i.domReference) && M) {
@@ -18919,11 +18919,11 @@ function R4(e, t) {
18919
18919
  };
18920
18920
  }
18921
18921
  }
18922
- }, [c, n, h, i, d, m, N]), Wt(() => {
18923
- n || (E.current = void 0, v.current = !1, O(), I());
18924
- }, [n, O, I]), U.useEffect(() => () => {
18925
- O(), bt(R), bt(F), I();
18926
- }, [c, i.domReference, O, I]);
18922
+ }, [c, n, h, i, d, m, O]), Wt(() => {
18923
+ n || (E.current = void 0, v.current = !1, N(), I());
18924
+ }, [n, N, I]), U.useEffect(() => () => {
18925
+ N(), bt(R), bt(F), I();
18926
+ }, [c, i.domReference, N, I]);
18927
18927
  const A = U.useMemo(() => {
18928
18928
  function $(P) {
18929
18929
  E.current = P.pointerType;
@@ -18976,8 +18976,8 @@ const Rm = {
18976
18976
  ...t,
18977
18977
  ...s
18978
18978
  });
18979
- }), Nm = /* @__PURE__ */ U.createContext(null), Jf = /* @__PURE__ */ Zo("portal");
18980
- function N4(e) {
18979
+ }), Om = /* @__PURE__ */ U.createContext(null), Jf = /* @__PURE__ */ Zo("portal");
18980
+ function O4(e) {
18981
18981
  e === void 0 && (e = {});
18982
18982
  const {
18983
18983
  id: t,
@@ -19003,13 +19003,13 @@ function N4(e) {
19003
19003
  l.id = r, l.setAttribute(Jf, ""), a = u || a, a.appendChild(l), c.current = l, i(l);
19004
19004
  }, [t, n, r, o]), s;
19005
19005
  }
19006
- function O4(e) {
19006
+ function N4(e) {
19007
19007
  const {
19008
19008
  children: t,
19009
19009
  id: n,
19010
19010
  root: r,
19011
19011
  preserveTabOrder: o = !0
19012
- } = e, s = N4({
19012
+ } = e, s = O4({
19013
19013
  id: n,
19014
19014
  root: r
19015
19015
  }), [i, c] = U.useState(null), a = U.useRef(null), u = U.useRef(null), l = U.useRef(null), f = U.useRef(null), p = i == null ? void 0 : i.modal, d = i == null ? void 0 : i.open, h = (
@@ -19030,7 +19030,7 @@ function O4(e) {
19030
19030
  };
19031
19031
  }, [s, o, p]), U.useEffect(() => {
19032
19032
  s && (d || Gf(s));
19033
- }, [d, s]), /* @__PURE__ */ C.jsxs(Nm.Provider, {
19033
+ }, [d, s]), /* @__PURE__ */ C.jsxs(Om.Provider, {
19034
19034
  value: U.useMemo(() => ({
19035
19035
  preserveTabOrder: o,
19036
19036
  beforeOutsideRef: a,
@@ -19070,7 +19070,7 @@ function O4(e) {
19070
19070
  })]
19071
19071
  });
19072
19072
  }
19073
- const I4 = () => U.useContext(Nm);
19073
+ const I4 = () => U.useContext(Om);
19074
19074
  function ed(e) {
19075
19075
  return We(e.target) && e.target.tagName === "BUTTON";
19076
19076
  }
@@ -19201,11 +19201,11 @@ function L4(e, t) {
19201
19201
  _ = V;
19202
19202
  }
19203
19203
  if (D.length && be(P) && !a4(P) && // Clicked on a direct ancestor (e.g. FloatingOverlay).
19204
- !Or(P, o.floating) && // If the target root element contains none of the markers, then the
19204
+ !Nr(P, o.floating) && // If the target root element contains none of the markers, then the
19205
19205
  // element was injected after the floating element rendered.
19206
- Array.from(D).every((V) => !Or(_, V)))
19206
+ Array.from(D).every((V) => !Nr(_, V)))
19207
19207
  return;
19208
- if (We(P) && O) {
19208
+ if (We(P) && N) {
19209
19209
  const V = cn(P), z = Et(P), q = /auto|scroll/, ee = V || q.test(z.overflowX), ie = V || q.test(z.overflowY), ye = ee && P.clientWidth > 0 && P.scrollWidth > P.clientWidth, ve = ie && P.clientHeight > 0 && P.scrollHeight > P.clientHeight, he = z.direction === "rtl", ae = ve && (he ? I.offsetX <= P.offsetWidth - P.clientWidth : I.offsetX > P.clientWidth), me = ye && I.offsetY > P.clientHeight;
19210
19210
  if (ae || me)
19211
19211
  return;
@@ -19229,7 +19229,7 @@ function L4(e, t) {
19229
19229
  return;
19230
19230
  }
19231
19231
  r(!1, I, "outside-press");
19232
- }), N = jt((I) => {
19232
+ }), O = jt((I) => {
19233
19233
  var y;
19234
19234
  const A = () => {
19235
19235
  var $;
@@ -19259,7 +19259,7 @@ function L4(e, t) {
19259
19259
  );
19260
19260
  }
19261
19261
  const P = _t(o.floating);
19262
- c && (P.addEventListener("keydown", B ? g : b, B), P.addEventListener("compositionstart", A), P.addEventListener("compositionend", $)), S && P.addEventListener(u, F ? N : v, F);
19262
+ c && (P.addEventListener("keydown", B ? g : b, B), P.addEventListener("compositionstart", A), P.addEventListener("compositionend", $)), S && P.addEventListener(u, F ? O : v, F);
19263
19263
  let M = [];
19264
19264
  return p && (be(o.domReference) && (M = An(o.domReference)), be(o.floating) && (M = M.concat(An(o.floating))), !be(o.reference) && o.reference && o.reference.contextElement && (M = M.concat(An(o.reference.contextElement)))), M = M.filter((D) => {
19265
19265
  var _;
@@ -19269,11 +19269,11 @@ function L4(e, t) {
19269
19269
  passive: !0
19270
19270
  });
19271
19271
  }), () => {
19272
- c && (P.removeEventListener("keydown", B ? g : b, B), P.removeEventListener("compositionstart", A), P.removeEventListener("compositionend", $)), S && P.removeEventListener(u, F ? N : v, F), M.forEach((D) => {
19272
+ c && (P.removeEventListener("keydown", B ? g : b, B), P.removeEventListener("compositionstart", A), P.removeEventListener("compositionend", $)), S && P.removeEventListener(u, F ? O : v, F), M.forEach((D) => {
19273
19273
  D.removeEventListener("scroll", y);
19274
19274
  }), window.clearTimeout(I);
19275
19275
  };
19276
- }, [s, o, c, S, u, n, r, p, i, E, R, b, B, g, v, F, N]), U.useEffect(() => {
19276
+ }, [s, o, c, S, u, n, r, p, i, E, R, b, B, g, v, F, O]), U.useEffect(() => {
19277
19277
  s.current.insideReactTree = !1;
19278
19278
  }, [s, S, u]);
19279
19279
  const T = U.useMemo(() => ({
@@ -19288,7 +19288,7 @@ function L4(e, t) {
19288
19288
  }
19289
19289
  }
19290
19290
  }
19291
- }), [b, r, l, f]), O = U.useMemo(() => ({
19291
+ }), [b, r, l, f]), N = U.useMemo(() => ({
19292
19292
  onKeyDown: b,
19293
19293
  onMouseDown() {
19294
19294
  x.current = !0;
@@ -19302,8 +19302,8 @@ function L4(e, t) {
19302
19302
  }), [b, u, s]);
19303
19303
  return U.useMemo(() => i ? {
19304
19304
  reference: T,
19305
- floating: O
19306
- } : {}, [i, T, O]);
19305
+ floating: N
19306
+ } : {}, [i, T, N]);
19307
19307
  }
19308
19308
  function k4(e) {
19309
19309
  const {
@@ -19466,7 +19466,7 @@ function j4(e, t) {
19466
19466
  l.current = window.setTimeout(() => {
19467
19467
  var S;
19468
19468
  const x = xc(i.domReference ? i.domReference.ownerDocument : document);
19469
- !h && x === i.domReference || Or((S = s.current.floatingContext) == null ? void 0 : S.refs.floating.current, x) || Or(i.domReference, x) || w || r(!1, m, "focus");
19469
+ !h && x === i.domReference || Nr((S = s.current.floatingContext) == null ? void 0 : S.refs.floating.current, x) || Nr(i.domReference, x) || w || r(!1, m, "focus");
19470
19470
  });
19471
19471
  }
19472
19472
  }), [s, i.domReference, r, a]);
@@ -19607,7 +19607,7 @@ function z4(e, t) {
19607
19607
  item: S
19608
19608
  } : {}, [c, m, w, S]);
19609
19609
  }
19610
- const Om = Z.forwardRef(
19610
+ const Nm = Z.forwardRef(
19611
19611
  ({ placement: e, className: t = "" }, n) => {
19612
19612
  const o = ((s) => {
19613
19613
  switch (s.split("-")[0]) {
@@ -19662,7 +19662,7 @@ const Om = Z.forwardRef(
19662
19662
  );
19663
19663
  }
19664
19664
  );
19665
- Om.displayName = "TooltipArrow";
19665
+ Nm.displayName = "TooltipArrow";
19666
19666
  const Pr = ({
19667
19667
  children: e,
19668
19668
  content: t,
@@ -19680,7 +19680,7 @@ const Pr = ({
19680
19680
  placement: n,
19681
19681
  whileElementsMounted: Lh,
19682
19682
  middleware: [
19683
- Ou(o ? 12 : 8),
19683
+ Nu(o ? 12 : 8),
19684
19684
  // 如果有箭头,增加距离
19685
19685
  _h({
19686
19686
  fallbackAxisSideDirection: "start",
@@ -19713,7 +19713,7 @@ const Pr = ({
19713
19713
  children: e
19714
19714
  }
19715
19715
  ),
19716
- u && /* @__PURE__ */ C.jsx(O4, { children: /* @__PURE__ */ C.jsxs(
19716
+ u && /* @__PURE__ */ C.jsx(N4, { children: /* @__PURE__ */ C.jsxs(
19717
19717
  "div",
19718
19718
  {
19719
19719
  ref: p.setFloating,
@@ -19731,7 +19731,7 @@ const Pr = ({
19731
19731
  children: [
19732
19732
  t,
19733
19733
  o && /* @__PURE__ */ C.jsx(
19734
- Om,
19734
+ Nm,
19735
19735
  {
19736
19736
  ref: f,
19737
19737
  placement: h.placement || n
@@ -19750,11 +19750,7 @@ const Pr = ({
19750
19750
  onCopy: s,
19751
19751
  onClose: i
19752
19752
  }) => {
19753
- const { t: c } = Yt(), a = te(() => {
19754
- if (!e) return !1;
19755
- const f = r === N5, p = Number(e.chainId), d = !Number.isNaN(p) && (p === 42161 || p === 421614), h = (t || "").toUpperCase() === "ETH";
19756
- return f && d && h;
19757
- }, [r, e, t]), u = te(
19753
+ const { t: c } = Yt(), a = te(() => r === O5, [r]), u = te(
19758
19754
  () => {
19759
19755
  var f;
19760
19756
  return (f = e == null ? void 0 : e.tokenList) == null ? void 0 : f.find(
@@ -20405,7 +20401,7 @@ const rP = ({
20405
20401
  tokenInfo: f,
20406
20402
  amount: d,
20407
20403
  wagmiHooks: i
20408
- }), N = X(async () => {
20404
+ }), O = X(async () => {
20409
20405
  if (!L)
20410
20406
  try {
20411
20407
  b(!0), await v();
@@ -20414,12 +20410,12 @@ const rP = ({
20414
20410
  } finally {
20415
20411
  b(!1);
20416
20412
  }
20417
- }, [L, v]), T = te(() => +l.chainId != +t.chainId, [l.chainId, t.chainId]), O = X(async () => {
20413
+ }, [L, v]), T = te(() => +l.chainId != +t.chainId, [l.chainId, t.chainId]), N = X(async () => {
20418
20414
  c && c(p);
20419
20415
  }, [c, p]);
20420
20416
  Pe(() => {
20421
- T && O();
20422
- }, [T, O]);
20417
+ T && N();
20418
+ }, [T, N]);
20423
20419
  const { showLayerZeroTip: I, layerZeroTipKey: y } = te(() => {
20424
20420
  const j = +t.chainId == 42161 || +t.chainId == 421614, H = (n == null ? void 0 : n.toUpperCase()) === "USDT", K = new Fe(d || "0"), V = new Fe("200000");
20425
20421
  let z = !1, q;
@@ -20539,7 +20535,7 @@ const rP = ({
20539
20535
  "button",
20540
20536
  {
20541
20537
  className: "w-[180px] h-8 bg-fill-btn-primary hover:bg-fill-btn-primary-hover text-text-on-sec-btn rounded-xl text-sm font-medium transition-colors my-4 disabled:opacity-50 disabled:cursor-not-allowed flex items-center justify-center",
20542
- onClick: N,
20538
+ onClick: O,
20543
20539
  disabled: L,
20544
20540
  children: L ? /* @__PURE__ */ C.jsx(Pc, { size: "xs", inline: !0 }) : u("deposit.enableWithToken", {
20545
20541
  token: n
@@ -20655,7 +20651,7 @@ const rP = ({
20655
20651
  B($), d == null || d($);
20656
20652
  },
20657
20653
  [d]
20658
- ), N = X(
20654
+ ), O = X(
20659
20655
  ($) => {
20660
20656
  g($), h == null || h($);
20661
20657
  },
@@ -20665,10 +20661,10 @@ const rP = ({
20665
20661
  if (!$) return "0";
20666
20662
  const P = w === "spot" ? u == null ? void 0 : u.spot : u == null ? void 0 : u.perpetual, M = P == null ? void 0 : P[$];
20667
20663
  return typeof M == "string" && M.length > 0 ? M : "0";
20668
- }, [u, w, b]), [O, I] = oe(!1), y = ($) => {
20664
+ }, [u, w, b]), [N, I] = oe(!1), y = ($) => {
20669
20665
  $.target === $.currentTarget ? I(!0) : I(!1);
20670
20666
  }, A = ($) => {
20671
- O && $.target === $.currentTarget && n(), I(!1);
20667
+ N && $.target === $.currentTarget && n(), I(!1);
20672
20668
  };
20673
20669
  return e ? sd.createPortal(
20674
20670
  /* @__PURE__ */ C.jsx(
@@ -20741,7 +20737,7 @@ const rP = ({
20741
20737
  chainList: F,
20742
20738
  onChainChange: v,
20743
20739
  curSelectToken: b,
20744
- onTokenChange: N,
20740
+ onTokenChange: O,
20745
20741
  walletType: $c(r) ? Hn : mu,
20746
20742
  accountType: w
20747
20743
  }
@@ -21195,16 +21191,16 @@ const dP = (e) => {
21195
21191
  return { chainId: ye.chainId, tokenSymbol: ve };
21196
21192
  }, [F, r, o]), [b, g] = oe(
21197
21193
  () => L.chainId
21198
- ), [v, N] = oe(
21194
+ ), [v, O] = oe(
21199
21195
  () => L.tokenSymbol
21200
- ), [T, O] = oe(s), [I, y] = oe(""), A = X(
21196
+ ), [T, N] = oe(s), [I, y] = oe(""), A = X(
21201
21197
  (q) => {
21202
21198
  g(q), h == null || h(q);
21203
21199
  },
21204
21200
  [h]
21205
21201
  ), $ = X(
21206
21202
  (q) => {
21207
- N(q), m == null || m(q);
21203
+ O(q), m == null || m(q);
21208
21204
  },
21209
21205
  [m]
21210
21206
  ), P = Z.useRef(!0), M = Z.useRef(v), D = Z.useRef(b);
@@ -21213,7 +21209,7 @@ const dP = (e) => {
21213
21209
  P.current = !1, M.current = v, D.current = b;
21214
21210
  return;
21215
21211
  }
21216
- (M.current !== v || D.current !== b) && (O(""), M.current = v, D.current = b);
21212
+ (M.current !== v || D.current !== b) && (N(""), M.current = v, D.current = b);
21217
21213
  }, [v, b]);
21218
21214
  const _ = F && F.length > 0 ? F.find((q) => q.chainId === b) || F[0] : null, j = (z = _ == null ? void 0 : _.tokenList) == null ? void 0 : z.find(
21219
21215
  (q) => q.token === v
@@ -21295,7 +21291,7 @@ const dP = (e) => {
21295
21291
  ), ae = (he == null ? void 0 : he.tokenList) || [], ne = ae.some(
21296
21292
  (ut) => (ut.symbol || ut.token) === v
21297
21293
  ) ? v : ((Te = ae[0]) == null ? void 0 : Te.symbol) || ((gn = ae[0]) == null ? void 0 : gn.token) || "";
21298
- ne && (N(ne), m == null || m(ne));
21294
+ ne && (O(ne), m == null || m(ne));
21299
21295
  },
21300
21296
  className: "w-full"
21301
21297
  }
@@ -21330,7 +21326,7 @@ const dP = (e) => {
21330
21326
  walletType: e,
21331
21327
  accountType: E,
21332
21328
  receiverAddress: I,
21333
- onWithdrawAmountChange: O,
21329
+ onWithdrawAmountChange: N,
21334
21330
  onReceiverAddressChange: y,
21335
21331
  onAmountChanged: w
21336
21332
  }
@@ -21468,7 +21464,7 @@ export {
21468
21464
  $w as a,
21469
21465
  Zt as b,
21470
21466
  Qs as c,
21471
- Ng as d,
21467
+ Og as d,
21472
21468
  Jn as e,
21473
21469
  Vt as f,
21474
21470
  jc as g,
@@ -21492,4 +21488,4 @@ export {
21492
21488
  fP as y,
21493
21489
  dP as z
21494
21490
  };
21495
- //# sourceMappingURL=index-Bs_1Js5W.mjs.map
21491
+ //# sourceMappingURL=index-Bw9HFK0l.mjs.map