@workokay/atom 0.2.35 → 0.2.37

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import * as g from "react";
2
- import j, { createContext as ct, useContext as we, useCallback as ce, useRef as ue, useLayoutEffect as Cs, useState as me, useEffect as de, useMemo as Ce, forwardRef as ve, createElement as Tr, isValidElement as Xc, useImperativeHandle as Vm, useId as dn, useInsertionEffect as ks, Children as Fm, Fragment as Zc, Component as Ss, Suspense as Qc } from "react";
2
+ import j, { createContext as ct, useContext as we, useCallback as ce, useRef as de, useLayoutEffect as Cs, useState as fe, useEffect as ue, useMemo as Ce, forwardRef as ve, createElement as Tr, isValidElement as Xc, useImperativeHandle as Vm, useId as dn, useInsertionEffect as ks, Children as Fm, Fragment as Zc, Component as Ss, Suspense as Qc } from "react";
3
3
  import * as Jc from "react-dom";
4
4
  import Lm, { createPortal as Ds } from "react-dom";
5
5
  var ir = { exports: {} }, kn = {};
@@ -45,7 +45,7 @@ function Bm() {
45
45
  return "Suspense";
46
46
  case T:
47
47
  return "SuspenseList";
48
- case P:
48
+ case M:
49
49
  return "Activity";
50
50
  }
51
51
  if (typeof E == "object")
@@ -54,11 +54,11 @@ function Bm() {
54
54
  ), E.$$typeof) {
55
55
  case p:
56
56
  return "Portal";
57
- case C:
57
+ case k:
58
58
  return E.displayName || "Context";
59
59
  case x:
60
60
  return (E._context.displayName || "Context") + ".Consumer";
61
- case k:
61
+ case C:
62
62
  var Y = E.render;
63
63
  return E = E.displayName, E || (E = Y.displayName || Y.name || "", E = E !== "" ? "ForwardRef(" + E + ")" : "ForwardRef"), E;
64
64
  case S:
@@ -111,7 +111,7 @@ function Bm() {
111
111
  return Error("react-stack-top-frame");
112
112
  }
113
113
  function i(E) {
114
- if (B.call(E, "key")) {
114
+ if (L.call(E, "key")) {
115
115
  var Y = Object.getOwnPropertyDescriptor(E, "key").get;
116
116
  if (Y && Y.isReactWarning) return !1;
117
117
  }
@@ -119,7 +119,7 @@ function Bm() {
119
119
  }
120
120
  function a(E, Y) {
121
121
  function U() {
122
- $ || ($ = !0, console.error(
122
+ z || (z = !0, console.error(
123
123
  "%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",
124
124
  Y
125
125
  ));
@@ -131,7 +131,7 @@ function Bm() {
131
131
  }
132
132
  function c() {
133
133
  var E = e(this.type);
134
- return W[E] || (W[E] = !0, console.error(
134
+ return $[E] || ($[E] = !0, console.error(
135
135
  "Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release."
136
136
  )), E = this.props.ref, E !== void 0 ? E : null;
137
137
  }
@@ -172,7 +172,7 @@ function Bm() {
172
172
  var A = Y.children;
173
173
  if (A !== void 0)
174
174
  if (X)
175
- if (z(A)) {
175
+ if (W(A)) {
176
176
  for (X = 0; X < A.length; X++)
177
177
  d(A[X]);
178
178
  Object.freeze && Object.freeze(A);
@@ -181,7 +181,7 @@ function Bm() {
181
181
  "React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead."
182
182
  );
183
183
  else d(A);
184
- if (B.call(Y, "key")) {
184
+ if (L.call(Y, "key")) {
185
185
  A = e(E);
186
186
  var G = Object.keys(Y).filter(function(Z) {
187
187
  return Z !== "key";
@@ -222,7 +222,7 @@ React keys must be passed directly to JSX without using spread:
222
222
  function f(E) {
223
223
  return typeof E == "object" && E !== null && E.$$typeof === b;
224
224
  }
225
- var m = j, b = Symbol.for("react.transitional.element"), p = Symbol.for("react.portal"), y = Symbol.for("react.fragment"), v = Symbol.for("react.strict_mode"), w = Symbol.for("react.profiler"), x = Symbol.for("react.consumer"), C = Symbol.for("react.context"), k = Symbol.for("react.forward_ref"), D = Symbol.for("react.suspense"), T = Symbol.for("react.suspense_list"), S = Symbol.for("react.memo"), N = Symbol.for("react.lazy"), P = Symbol.for("react.activity"), O = Symbol.for("react.client.reference"), _ = m.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, B = Object.prototype.hasOwnProperty, z = Array.isArray, K = console.createTask ? console.createTask : function() {
225
+ var m = j, b = Symbol.for("react.transitional.element"), p = Symbol.for("react.portal"), y = Symbol.for("react.fragment"), v = Symbol.for("react.strict_mode"), w = Symbol.for("react.profiler"), x = Symbol.for("react.consumer"), k = Symbol.for("react.context"), C = Symbol.for("react.forward_ref"), D = Symbol.for("react.suspense"), T = Symbol.for("react.suspense_list"), S = Symbol.for("react.memo"), N = Symbol.for("react.lazy"), M = Symbol.for("react.activity"), O = Symbol.for("react.client.reference"), _ = m.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, L = Object.prototype.hasOwnProperty, W = Array.isArray, K = console.createTask ? console.createTask : function() {
226
226
  return null;
227
227
  };
228
228
  m = {
@@ -230,7 +230,7 @@ React keys must be passed directly to JSX without using spread:
230
230
  return E();
231
231
  }
232
232
  };
233
- var $, W = {}, R = m.react_stack_bottom_frame.bind(
233
+ var z, $ = {}, R = m.react_stack_bottom_frame.bind(
234
234
  m,
235
235
  s
236
236
  )(), H = K(r(s)), ee = {};
@@ -616,13 +616,13 @@ const Zm = (e, t) => {
616
616
  }
617
617
  y = !1;
618
618
  }
619
- const w = f.length === 0 ? "" : f.length === 1 ? f[0] : s(f).join(":"), x = m ? w + zo : w, C = x + v;
620
- if (i.indexOf(C) > -1)
619
+ const w = f.length === 0 ? "" : f.length === 1 ? f[0] : s(f).join(":"), x = m ? w + zo : w, k = x + v;
620
+ if (i.indexOf(k) > -1)
621
621
  continue;
622
- i.push(C);
623
- const k = o(v, y);
624
- for (let D = 0; D < k.length; ++D) {
625
- const T = k[D];
622
+ i.push(k);
623
+ const C = o(v, y);
624
+ for (let D = 0; D < C.length; ++D) {
625
+ const T = C[D];
626
626
  i.push(x + T);
627
627
  }
628
628
  c = u + (c.length > 0 ? " " + c : c);
@@ -668,7 +668,7 @@ const Zm = (e, t) => {
668
668
  const r = cl.exec(e);
669
669
  return r ? r[1] ? t(r[1]) : n : !1;
670
670
  }, ul = (e) => e === "position" || e === "percentage", dl = (e) => e === "image" || e === "url", fl = (e) => e === "length" || e === "size" || e === "bg-size", ml = (e) => e === "length", _h = (e) => e === "number", Ih = (e) => e === "family-name", hl = (e) => e === "shadow", Vh = () => {
671
- const e = De("color"), t = De("font"), n = De("text"), r = De("font-weight"), o = De("tracking"), s = De("leading"), i = De("breakpoint"), a = De("container"), c = De("spacing"), l = De("radius"), u = De("shadow"), d = De("inset-shadow"), f = De("text-shadow"), m = De("drop-shadow"), b = De("blur"), p = De("perspective"), y = De("aspect"), v = De("ease"), w = De("animate"), x = () => ["auto", "avoid", "all", "avoid-page", "page", "left", "right", "column"], C = () => [
671
+ const e = De("color"), t = De("font"), n = De("text"), r = De("font-weight"), o = De("tracking"), s = De("leading"), i = De("breakpoint"), a = De("container"), c = De("spacing"), l = De("radius"), u = De("shadow"), d = De("inset-shadow"), f = De("text-shadow"), m = De("drop-shadow"), b = De("blur"), p = De("perspective"), y = De("aspect"), v = De("ease"), w = De("animate"), x = () => ["auto", "avoid", "all", "avoid-page", "page", "left", "right", "column"], k = () => [
672
672
  "center",
673
673
  "top",
674
674
  "bottom",
@@ -686,9 +686,9 @@ const Zm = (e, t) => {
686
686
  "bottom-left",
687
687
  // Deprecated since Tailwind CSS v4.1.0, see https://github.com/tailwindlabs/tailwindcss/pull/17378
688
688
  "left-bottom"
689
- ], k = () => [...C(), F, V], D = () => ["auto", "hidden", "clip", "visible", "scroll"], T = () => ["auto", "contain", "none"], S = () => [F, V, c], N = () => [Yt, "full", "auto", ...S()], P = () => [bt, "none", "subgrid", F, V], O = () => ["auto", {
689
+ ], C = () => [...k(), F, V], D = () => ["auto", "hidden", "clip", "visible", "scroll"], T = () => ["auto", "contain", "none"], S = () => [F, V, c], N = () => [Yt, "full", "auto", ...S()], M = () => [bt, "none", "subgrid", F, V], O = () => ["auto", {
690
690
  span: ["full", bt, F, V]
691
- }, bt, F, V], _ = () => [bt, "auto", F, V], B = () => ["auto", "min", "max", "fr", F, V], z = () => ["start", "end", "center", "between", "around", "evenly", "stretch", "baseline", "center-safe", "end-safe"], K = () => ["start", "end", "center", "stretch", "center-safe", "end-safe"], $ = () => ["auto", ...S()], W = () => [Yt, "auto", "full", "dvw", "dvh", "lvw", "lvh", "svw", "svh", "min", "max", "fit", ...S()], R = () => [e, F, V], H = () => [...C(), Gi, Ui, {
691
+ }, bt, F, V], _ = () => [bt, "auto", F, V], L = () => ["auto", "min", "max", "fr", F, V], W = () => ["start", "end", "center", "between", "around", "evenly", "stretch", "baseline", "center-safe", "end-safe"], K = () => ["start", "end", "center", "stretch", "center-safe", "end-safe"], z = () => ["auto", ...S()], $ = () => [Yt, "auto", "full", "dvw", "dvh", "lvw", "lvh", "svw", "svh", "min", "max", "fit", ...S()], R = () => [e, F, V], H = () => [...k(), Gi, Ui, {
692
692
  position: [F, V]
693
693
  }], ee = () => ["no-repeat", {
694
694
  repeat: ["", "x", "y", "space", "round"]
@@ -833,7 +833,7 @@ const Zm = (e, t) => {
833
833
  * @see https://tailwindcss.com/docs/object-position
834
834
  */
835
835
  "object-position": [{
836
- object: k()
836
+ object: C()
837
837
  }],
838
838
  /**
839
839
  * Overflow
@@ -1014,7 +1014,7 @@ const Zm = (e, t) => {
1014
1014
  * @see https://tailwindcss.com/docs/grid-template-columns
1015
1015
  */
1016
1016
  "grid-cols": [{
1017
- "grid-cols": P()
1017
+ "grid-cols": M()
1018
1018
  }],
1019
1019
  /**
1020
1020
  * Grid Column Start / End
@@ -1042,7 +1042,7 @@ const Zm = (e, t) => {
1042
1042
  * @see https://tailwindcss.com/docs/grid-template-rows
1043
1043
  */
1044
1044
  "grid-rows": [{
1045
- "grid-rows": P()
1045
+ "grid-rows": M()
1046
1046
  }],
1047
1047
  /**
1048
1048
  * Grid Row Start / End
@@ -1077,14 +1077,14 @@ const Zm = (e, t) => {
1077
1077
  * @see https://tailwindcss.com/docs/grid-auto-columns
1078
1078
  */
1079
1079
  "auto-cols": [{
1080
- "auto-cols": B()
1080
+ "auto-cols": L()
1081
1081
  }],
1082
1082
  /**
1083
1083
  * Grid Auto Rows
1084
1084
  * @see https://tailwindcss.com/docs/grid-auto-rows
1085
1085
  */
1086
1086
  "auto-rows": [{
1087
- "auto-rows": B()
1087
+ "auto-rows": L()
1088
1088
  }],
1089
1089
  /**
1090
1090
  * Gap
@@ -1112,7 +1112,7 @@ const Zm = (e, t) => {
1112
1112
  * @see https://tailwindcss.com/docs/justify-content
1113
1113
  */
1114
1114
  "justify-content": [{
1115
- justify: [...z(), "normal"]
1115
+ justify: [...W(), "normal"]
1116
1116
  }],
1117
1117
  /**
1118
1118
  * Justify Items
@@ -1133,7 +1133,7 @@ const Zm = (e, t) => {
1133
1133
  * @see https://tailwindcss.com/docs/align-content
1134
1134
  */
1135
1135
  "align-content": [{
1136
- content: ["normal", ...z()]
1136
+ content: ["normal", ...W()]
1137
1137
  }],
1138
1138
  /**
1139
1139
  * Align Items
@@ -1158,7 +1158,7 @@ const Zm = (e, t) => {
1158
1158
  * @see https://tailwindcss.com/docs/place-content
1159
1159
  */
1160
1160
  "place-content": [{
1161
- "place-content": z()
1161
+ "place-content": W()
1162
1162
  }],
1163
1163
  /**
1164
1164
  * Place Items
@@ -1243,63 +1243,63 @@ const Zm = (e, t) => {
1243
1243
  * @see https://tailwindcss.com/docs/margin
1244
1244
  */
1245
1245
  m: [{
1246
- m: $()
1246
+ m: z()
1247
1247
  }],
1248
1248
  /**
1249
1249
  * Margin X
1250
1250
  * @see https://tailwindcss.com/docs/margin
1251
1251
  */
1252
1252
  mx: [{
1253
- mx: $()
1253
+ mx: z()
1254
1254
  }],
1255
1255
  /**
1256
1256
  * Margin Y
1257
1257
  * @see https://tailwindcss.com/docs/margin
1258
1258
  */
1259
1259
  my: [{
1260
- my: $()
1260
+ my: z()
1261
1261
  }],
1262
1262
  /**
1263
1263
  * Margin Start
1264
1264
  * @see https://tailwindcss.com/docs/margin
1265
1265
  */
1266
1266
  ms: [{
1267
- ms: $()
1267
+ ms: z()
1268
1268
  }],
1269
1269
  /**
1270
1270
  * Margin End
1271
1271
  * @see https://tailwindcss.com/docs/margin
1272
1272
  */
1273
1273
  me: [{
1274
- me: $()
1274
+ me: z()
1275
1275
  }],
1276
1276
  /**
1277
1277
  * Margin Top
1278
1278
  * @see https://tailwindcss.com/docs/margin
1279
1279
  */
1280
1280
  mt: [{
1281
- mt: $()
1281
+ mt: z()
1282
1282
  }],
1283
1283
  /**
1284
1284
  * Margin Right
1285
1285
  * @see https://tailwindcss.com/docs/margin
1286
1286
  */
1287
1287
  mr: [{
1288
- mr: $()
1288
+ mr: z()
1289
1289
  }],
1290
1290
  /**
1291
1291
  * Margin Bottom
1292
1292
  * @see https://tailwindcss.com/docs/margin
1293
1293
  */
1294
1294
  mb: [{
1295
- mb: $()
1295
+ mb: z()
1296
1296
  }],
1297
1297
  /**
1298
1298
  * Margin Left
1299
1299
  * @see https://tailwindcss.com/docs/margin
1300
1300
  */
1301
1301
  ml: [{
1302
- ml: $()
1302
+ ml: z()
1303
1303
  }],
1304
1304
  /**
1305
1305
  * Space Between X
@@ -1333,14 +1333,14 @@ const Zm = (e, t) => {
1333
1333
  * @see https://tailwindcss.com/docs/width#setting-both-width-and-height
1334
1334
  */
1335
1335
  size: [{
1336
- size: W()
1336
+ size: $()
1337
1337
  }],
1338
1338
  /**
1339
1339
  * Width
1340
1340
  * @see https://tailwindcss.com/docs/width
1341
1341
  */
1342
1342
  w: [{
1343
- w: [a, "screen", ...W()]
1343
+ w: [a, "screen", ...$()]
1344
1344
  }],
1345
1345
  /**
1346
1346
  * Min-Width
@@ -1352,7 +1352,7 @@ const Zm = (e, t) => {
1352
1352
  "screen",
1353
1353
  /** Deprecated. @see https://github.com/tailwindlabs/tailwindcss.com/issues/2027#issuecomment-2620152757 */
1354
1354
  "none",
1355
- ...W()
1355
+ ...$()
1356
1356
  ]
1357
1357
  }],
1358
1358
  /**
@@ -1370,7 +1370,7 @@ const Zm = (e, t) => {
1370
1370
  {
1371
1371
  screen: [i]
1372
1372
  },
1373
- ...W()
1373
+ ...$()
1374
1374
  ]
1375
1375
  }],
1376
1376
  /**
@@ -1378,21 +1378,21 @@ const Zm = (e, t) => {
1378
1378
  * @see https://tailwindcss.com/docs/height
1379
1379
  */
1380
1380
  h: [{
1381
- h: ["screen", "lh", ...W()]
1381
+ h: ["screen", "lh", ...$()]
1382
1382
  }],
1383
1383
  /**
1384
1384
  * Min-Height
1385
1385
  * @see https://tailwindcss.com/docs/min-height
1386
1386
  */
1387
1387
  "min-h": [{
1388
- "min-h": ["screen", "lh", "none", ...W()]
1388
+ "min-h": ["screen", "lh", "none", ...$()]
1389
1389
  }],
1390
1390
  /**
1391
1391
  * Max-Height
1392
1392
  * @see https://tailwindcss.com/docs/max-height
1393
1393
  */
1394
1394
  "max-h": [{
1395
- "max-h": ["screen", "lh", ...W()]
1395
+ "max-h": ["screen", "lh", ...$()]
1396
1396
  }],
1397
1397
  // ------------------
1398
1398
  // --- Typography ---
@@ -2302,7 +2302,7 @@ const Zm = (e, t) => {
2302
2302
  }]
2303
2303
  }],
2304
2304
  "mask-image-radial-pos": [{
2305
- "mask-radial-at": C()
2305
+ "mask-radial-at": k()
2306
2306
  }],
2307
2307
  "mask-image-conic-pos": [{
2308
2308
  "mask-conic": [J]
@@ -2649,7 +2649,7 @@ const Zm = (e, t) => {
2649
2649
  * @see https://tailwindcss.com/docs/perspective-origin
2650
2650
  */
2651
2651
  "perspective-origin": [{
2652
- "perspective-origin": k()
2652
+ "perspective-origin": C()
2653
2653
  }],
2654
2654
  /**
2655
2655
  * Rotate
@@ -2745,7 +2745,7 @@ const Zm = (e, t) => {
2745
2745
  * @see https://tailwindcss.com/docs/transform-origin
2746
2746
  */
2747
2747
  "transform-origin": [{
2748
- origin: k()
2748
+ origin: C()
2749
2749
  }],
2750
2750
  /**
2751
2751
  * Transform Style
@@ -3138,7 +3138,7 @@ const Zm = (e, t) => {
3138
3138
  orderSensitiveModifiers: ["*", "**", "after", "backdrop", "before", "details-content", "file", "first-letter", "first-line", "marker", "placeholder", "selection"]
3139
3139
  };
3140
3140
  }, Fh = /* @__PURE__ */ yh(Vh);
3141
- function M(...e) {
3141
+ function P(...e) {
3142
3142
  return Fh(tl(e));
3143
3143
  }
3144
3144
  const Lh = te(
@@ -3208,8 +3208,8 @@ const Lh = te(
3208
3208
  if (!w) return;
3209
3209
  const x = w.getBoundingClientRect(), D = Math.max(x.width, x.height) * (n === "sm" ? 0.5 : n === "lg" ? 0.7 : 0.6), T = v.clientX - x.left - D, S = v.clientY - x.top - D, N = document.createElement("span");
3210
3210
  N.className = "atom-ripple", N.style.width = `${D * 2}px`, N.style.height = `${D * 2}px`, N.style.left = `${T}px`, N.style.top = `${S}px`;
3211
- const P = (t ?? "primary") === "ghost" || t === "icon" || t === "iconGhost" || t === "iconSquare" || t === "iconSquareGhost" || t === "secondary", O = getComputedStyle(w).getPropertyValue(
3212
- P ? "--atom-ripple-color-ghost" : "--atom-ripple-color-solid"
3211
+ const M = (t ?? "primary") === "ghost" || t === "icon" || t === "iconGhost" || t === "iconSquare" || t === "iconSquareGhost" || t === "secondary", O = getComputedStyle(w).getPropertyValue(
3212
+ M ? "--atom-ripple-color-ghost" : "--atom-ripple-color-solid"
3213
3213
  ).trim();
3214
3214
  N.style.background = O || "currentColor", w.appendChild(N), N.addEventListener("animationend", () => N.remove(), { once: !0 });
3215
3215
  };
@@ -3224,7 +3224,7 @@ const Lh = te(
3224
3224
  m.current = v, typeof u == "function" ? u(v) : u && (u.current = v);
3225
3225
  },
3226
3226
  onPointerDown: y,
3227
- className: M(Lh({ variant: t, size: n, fullWidth: r }), e),
3227
+ className: P(Lh({ variant: t, size: n, fullWidth: r }), e),
3228
3228
  disabled: d ? void 0 : a
3229
3229
  }
3230
3230
  );
@@ -3301,7 +3301,7 @@ function fE({
3301
3301
  s,
3302
3302
  {
3303
3303
  "data-slot": "badge",
3304
- className: M(Wh({ variant: t, tone: n }), e),
3304
+ className: P(Wh({ variant: t, tone: n }), e),
3305
3305
  ...o
3306
3306
  }
3307
3307
  );
@@ -3443,28 +3443,28 @@ const Bh = te(
3443
3443
  }, [r]);
3444
3444
  const v = g.useCallback(() => {
3445
3445
  y(!0);
3446
- }, []), w = !!r && !p && !i, x = !w && !i && !!n, C = f["aria-label"] ?? void 0, k = s ? "" : o || C || n || "AZ", D = i || (w ? /* @__PURE__ */ h.jsx(
3446
+ }, []), w = !!r && !p && !i, x = !w && !i && !!n, k = f["aria-label"] ?? void 0, C = s ? "" : o || k || n || "AZ", D = i || (w ? /* @__PURE__ */ h.jsx(
3447
3447
  "img",
3448
3448
  {
3449
3449
  src: r,
3450
- alt: k,
3450
+ alt: C,
3451
3451
  className: "h-full w-full object-cover",
3452
3452
  onError: v,
3453
3453
  "aria-hidden": s || void 0
3454
3454
  }
3455
- ) : x ? /* @__PURE__ */ h.jsx("span", { "aria-hidden": s || void 0, children: n }) : null), T = s ? { "aria-hidden": !0 } : x && !C && !o ? {
3455
+ ) : x ? /* @__PURE__ */ h.jsx("span", { "aria-hidden": s || void 0, children: n }) : null), T = s ? { "aria-hidden": !0 } : x && !k && !o ? {
3456
3456
  role: "img",
3457
3457
  "aria-label": n
3458
- } : C && !r ? {
3458
+ } : k && !r ? {
3459
3459
  role: "img",
3460
- "aria-label": C
3460
+ "aria-label": k
3461
3461
  } : {};
3462
3462
  return /* @__PURE__ */ h.jsx(
3463
3463
  b,
3464
3464
  {
3465
3465
  ref: m,
3466
3466
  "data-slot": "avatar",
3467
- className: M(
3467
+ className: P(
3468
3468
  Bh({
3469
3469
  variant: a,
3470
3470
  appearance: c,
@@ -3570,8 +3570,8 @@ function gl(e) {
3570
3570
  const f = It(e.timeZone, e), m = f > 0 ? Math.floor(f) : Math.ceil(f), p = -(/* @__PURE__ */ new Date(+e)).getTimezoneOffset() - m, y = m !== n, v = p - c;
3571
3571
  if (y && v) {
3572
3572
  Date.prototype.setUTCMinutes.call(e, Date.prototype.getUTCMinutes.call(e) + v);
3573
- const w = It(e.timeZone, e), x = w > 0 ? Math.floor(w) : Math.ceil(w), C = m - x;
3574
- C && (e.internal.setUTCMinutes(e.internal.getUTCMinutes() + C), Date.prototype.setUTCMinutes.call(e, Date.prototype.getUTCMinutes.call(e) + C));
3573
+ const w = It(e.timeZone, e), x = w > 0 ? Math.floor(w) : Math.ceil(w), k = m - x;
3574
+ k && (e.internal.setUTCMinutes(e.internal.getUTCMinutes() + k), Date.prototype.setUTCMinutes.call(e, Date.prototype.getUTCMinutes.call(e) + k));
3575
3575
  }
3576
3576
  }
3577
3577
  class Ae extends tt {
@@ -5245,10 +5245,10 @@ function wg(e) {
5245
5245
  n.focused && o.current?.focus();
5246
5246
  }, [n.focused]), j.createElement("button", { ref: o, ...r });
5247
5247
  }
5248
- var L;
5248
+ var B;
5249
5249
  (function(e) {
5250
5250
  e.Root = "root", e.Chevron = "chevron", e.Day = "day", e.DayButton = "day_button", e.CaptionLabel = "caption_label", e.Dropdowns = "dropdowns", e.Dropdown = "dropdown", e.DropdownRoot = "dropdown_root", e.Footer = "footer", e.MonthGrid = "month_grid", e.MonthCaption = "month_caption", e.MonthsDropdown = "months_dropdown", e.Month = "month", e.Months = "months", e.Nav = "nav", e.NextMonthButton = "button_next", e.PreviousMonthButton = "button_previous", e.Week = "week", e.Weeks = "weeks", e.Weekday = "weekday", e.Weekdays = "weekdays", e.WeekNumber = "week_number", e.WeekNumberHeader = "week_number_header", e.YearsDropdown = "years_dropdown";
5251
- })(L || (L = {}));
5251
+ })(B || (B = {}));
5252
5252
  var ge;
5253
5253
  (function(e) {
5254
5254
  e.disabled = "disabled", e.hidden = "hidden", e.outside = "outside", e.focused = "focused", e.today = "today";
@@ -5262,16 +5262,16 @@ var Fe;
5262
5262
  e.weeks_before_enter = "weeks_before_enter", e.weeks_before_exit = "weeks_before_exit", e.weeks_after_enter = "weeks_after_enter", e.weeks_after_exit = "weeks_after_exit", e.caption_after_enter = "caption_after_enter", e.caption_after_exit = "caption_after_exit", e.caption_before_enter = "caption_before_enter", e.caption_before_exit = "caption_before_exit";
5263
5263
  })(Fe || (Fe = {}));
5264
5264
  function Cg(e) {
5265
- const { options: t, className: n, components: r, classNames: o, ...s } = e, i = [o[L.Dropdown], n].join(" "), a = t?.find(({ value: c }) => c === s.value);
5265
+ const { options: t, className: n, components: r, classNames: o, ...s } = e, i = [o[B.Dropdown], n].join(" "), a = t?.find(({ value: c }) => c === s.value);
5266
5266
  return j.createElement(
5267
5267
  "span",
5268
- { "data-disabled": s.disabled, className: o[L.DropdownRoot] },
5268
+ { "data-disabled": s.disabled, className: o[B.DropdownRoot] },
5269
5269
  j.createElement(r.Select, { className: i, ...s }, t?.map(({ value: c, label: l, disabled: u }) => j.createElement(r.Option, { key: c, value: c, disabled: u }, l))),
5270
5270
  j.createElement(
5271
5271
  "span",
5272
- { className: o[L.CaptionLabel], "aria-hidden": !0 },
5272
+ { className: o[B.CaptionLabel], "aria-hidden": !0 },
5273
5273
  a?.label,
5274
- j.createElement(r.Chevron, { orientation: "down", size: 18, className: o[L.Chevron] })
5274
+ j.createElement(r.Chevron, { orientation: "down", size: 18, className: o[B.Chevron] })
5275
5275
  )
5276
5276
  );
5277
5277
  }
@@ -5317,13 +5317,13 @@ function Ng(e) {
5317
5317
  { ...s },
5318
5318
  j.createElement(
5319
5319
  i.PreviousMonthButton,
5320
- { type: "button", className: a[L.PreviousMonthButton], tabIndex: r ? void 0 : -1, "aria-disabled": r ? void 0 : !0, "aria-label": c(r), onClick: d },
5321
- j.createElement(i.Chevron, { disabled: r ? void 0 : !0, className: a[L.Chevron], orientation: "left" })
5320
+ { type: "button", className: a[B.PreviousMonthButton], tabIndex: r ? void 0 : -1, "aria-disabled": r ? void 0 : !0, "aria-label": c(r), onClick: d },
5321
+ j.createElement(i.Chevron, { disabled: r ? void 0 : !0, className: a[B.Chevron], orientation: "left" })
5322
5322
  ),
5323
5323
  j.createElement(
5324
5324
  i.NextMonthButton,
5325
- { type: "button", className: a[L.NextMonthButton], tabIndex: o ? void 0 : -1, "aria-disabled": o ? void 0 : !0, "aria-label": l(o), onClick: u },
5326
- j.createElement(i.Chevron, { disabled: o ? void 0 : !0, orientation: "right", className: a[L.Chevron] })
5325
+ { type: "button", className: a[B.NextMonthButton], tabIndex: o ? void 0 : -1, "aria-disabled": o ? void 0 : !0, "aria-label": l(o), onClick: u },
5326
+ j.createElement(i.Chevron, { disabled: o ? void 0 : !0, orientation: "right", className: a[B.Chevron] })
5327
5327
  )
5328
5328
  );
5329
5329
  }
@@ -5452,16 +5452,16 @@ function Yg(e, t, n, r, o) {
5452
5452
  [ge.disabled]: [],
5453
5453
  [ge.hidden]: [],
5454
5454
  [ge.today]: []
5455
- }, C = {};
5456
- for (const k of e) {
5457
- const { date: D, displayMonth: T } = k, S = !!(T && !f(D, T)), N = !!(v && b(D, v)), P = !!(w && y(D, w)), O = !!(s && mt(D, s, o)), _ = !!(i && mt(D, i, o)) || N || P || // Broadcast calendar will show outside days as default
5458
- !l && !c && S || l && c === !1 && S, B = d(D, u);
5459
- S && x.outside.push(k), O && x.disabled.push(k), _ && x.hidden.push(k), B && x.today.push(k), a && Object.keys(a).forEach((z) => {
5460
- const K = a?.[z];
5461
- K && mt(D, K, o) && (C[z] ? C[z].push(k) : C[z] = [k]);
5455
+ }, k = {};
5456
+ for (const C of e) {
5457
+ const { date: D, displayMonth: T } = C, S = !!(T && !f(D, T)), N = !!(v && b(D, v)), M = !!(w && y(D, w)), O = !!(s && mt(D, s, o)), _ = !!(i && mt(D, i, o)) || N || M || // Broadcast calendar will show outside days as default
5458
+ !l && !c && S || l && c === !1 && S, L = d(D, u);
5459
+ S && x.outside.push(C), O && x.disabled.push(C), _ && x.hidden.push(C), L && x.today.push(C), a && Object.keys(a).forEach((W) => {
5460
+ const K = a?.[W];
5461
+ K && mt(D, K, o) && (k[W] ? k[W].push(C) : k[W] = [C]);
5462
5462
  });
5463
5463
  }
5464
- return (k) => {
5464
+ return (C) => {
5465
5465
  const D = {
5466
5466
  [ge.focused]: !1,
5467
5467
  [ge.disabled]: !1,
@@ -5471,10 +5471,10 @@ function Yg(e, t, n, r, o) {
5471
5471
  }, T = {};
5472
5472
  for (const S in x) {
5473
5473
  const N = x[S];
5474
- D[S] = N.some((P) => P === k);
5474
+ D[S] = N.some((M) => M === C);
5475
5475
  }
5476
- for (const S in C)
5477
- T[S] = C[S].some((N) => N === k);
5476
+ for (const S in k)
5477
+ T[S] = k[S].some((N) => N === C);
5478
5478
  return {
5479
5479
  ...D,
5480
5480
  // custom modifiers should override all the previous ones
@@ -5483,7 +5483,7 @@ function Yg(e, t, n, r, o) {
5483
5483
  };
5484
5484
  }
5485
5485
  function Hg(e, t, n = {}) {
5486
- return Object.entries(e).filter(([, o]) => o === !0).reduce((o, [s]) => (n[s] ? o.push(n[s]) : t[ge[s]] ? o.push(t[ge[s]]) : t[Ke[s]] && o.push(t[Ke[s]]), o), [t[L.Day]]);
5486
+ return Object.entries(e).filter(([, o]) => o === !0).reduce((o, [s]) => (n[s] ? o.push(n[s]) : t[ge[s]] ? o.push(t[ge[s]]) : t[Ke[s]] && o.push(t[Ke[s]]), o), [t[B.Day]]);
5487
5487
  }
5488
5488
  function Ug(e) {
5489
5489
  return {
@@ -5506,8 +5506,8 @@ function Gg(e) {
5506
5506
  }
5507
5507
  function jl() {
5508
5508
  const e = {};
5509
- for (const t in L)
5510
- e[L[t]] = `rdp-${L[t]}`;
5509
+ for (const t in B)
5510
+ e[B[t]] = `rdp-${B[t]}`;
5511
5511
  for (const t in ge)
5512
5512
  e[ge[t]] = `rdp-${ge[t]}`;
5513
5513
  for (const t in Ke)
@@ -5639,7 +5639,7 @@ function cy(e, t, n, r, o) {
5639
5639
  });
5640
5640
  }
5641
5641
  function ly(e, t = {}, n = {}) {
5642
- let r = { ...t?.[L.Day] };
5642
+ let r = { ...t?.[B.Day] };
5643
5643
  return Object.entries(e).filter(([, o]) => o === !0).forEach(([o]) => {
5644
5644
  r = {
5645
5645
  ...r,
@@ -5767,7 +5767,7 @@ const Xn = (e) => e instanceof HTMLElement ? e : null, fo = (e) => [
5767
5767
  ...e.querySelectorAll("[data-animated-month]") ?? []
5768
5768
  ], my = (e) => Xn(e.querySelector("[data-animated-month]")), mo = (e) => Xn(e.querySelector("[data-animated-caption]")), ho = (e) => Xn(e.querySelector("[data-animated-weeks]")), hy = (e) => Xn(e.querySelector("[data-animated-nav]")), py = (e) => Xn(e.querySelector("[data-animated-weekdays]"));
5769
5769
  function gy(e, t, { classNames: n, months: r, focused: o, dateLib: s }) {
5770
- const i = ue(null), a = ue(r), c = ue(!1);
5770
+ const i = de(null), a = de(r), c = de(!1);
5771
5771
  Cs(() => {
5772
5772
  const l = a.current;
5773
5773
  if (a.current = r, !t || !e.current || // safety check because the ref can be set to anything by consumers
@@ -5778,10 +5778,10 @@ function gy(e, t, { classNames: n, months: r, focused: o, dateLib: s }) {
5778
5778
  if (p instanceof HTMLElement ? (fo(p).forEach((x) => {
5779
5779
  if (!(x instanceof HTMLElement))
5780
5780
  return;
5781
- const C = my(x);
5782
- C && x.contains(C) && x.removeChild(C);
5783
- const k = mo(x);
5784
- k && k.classList.remove(f);
5781
+ const k = my(x);
5782
+ k && x.contains(k) && x.removeChild(k);
5783
+ const C = mo(x);
5784
+ C && C.classList.remove(f);
5785
5785
  const D = ho(x);
5786
5786
  D && D.classList.remove(m);
5787
5787
  }), i.current = p) : i.current = null, c.current || u || // skip animation if a day is focused because it can cause issues to the animation and is better for a11y
@@ -5791,9 +5791,9 @@ function gy(e, t, { classNames: n, months: r, focused: o, dateLib: s }) {
5791
5791
  if (v?.every((w) => w instanceof HTMLElement) && y && y.every((w) => w instanceof HTMLElement)) {
5792
5792
  c.current = !0, e.current.style.isolation = "isolate";
5793
5793
  const w = hy(e.current);
5794
- w && (w.style.zIndex = "1"), v.forEach((x, C) => {
5795
- const k = y[C];
5796
- if (!k)
5794
+ w && (w.style.zIndex = "1"), v.forEach((x, k) => {
5795
+ const C = y[k];
5796
+ if (!C)
5797
5797
  return;
5798
5798
  x.style.position = "relative", x.style.overflow = "hidden";
5799
5799
  const D = mo(x);
@@ -5801,34 +5801,34 @@ function gy(e, t, { classNames: n, months: r, focused: o, dateLib: s }) {
5801
5801
  const T = ho(x);
5802
5802
  T && T.classList.add(m);
5803
5803
  const S = () => {
5804
- c.current = !1, e.current && (e.current.style.isolation = ""), w && (w.style.zIndex = ""), D && D.classList.remove(f), T && T.classList.remove(m), x.style.position = "", x.style.overflow = "", x.contains(k) && x.removeChild(k);
5804
+ c.current = !1, e.current && (e.current.style.isolation = ""), w && (w.style.zIndex = ""), D && D.classList.remove(f), T && T.classList.remove(m), x.style.position = "", x.style.overflow = "", x.contains(C) && x.removeChild(C);
5805
5805
  };
5806
- k.style.pointerEvents = "none", k.style.position = "absolute", k.style.overflow = "hidden", k.setAttribute("aria-hidden", "true");
5807
- const N = py(k);
5806
+ C.style.pointerEvents = "none", C.style.position = "absolute", C.style.overflow = "hidden", C.setAttribute("aria-hidden", "true");
5807
+ const N = py(C);
5808
5808
  N && (N.style.opacity = "0");
5809
- const P = mo(k);
5810
- P && (P.classList.add(d ? n[Fe.caption_before_exit] : n[Fe.caption_after_exit]), P.addEventListener("animationend", S));
5811
- const O = ho(k);
5812
- O && O.classList.add(d ? n[Fe.weeks_before_exit] : n[Fe.weeks_after_exit]), x.insertBefore(k, x.firstChild);
5809
+ const M = mo(C);
5810
+ M && (M.classList.add(d ? n[Fe.caption_before_exit] : n[Fe.caption_after_exit]), M.addEventListener("animationend", S));
5811
+ const O = ho(C);
5812
+ O && O.classList.add(d ? n[Fe.weeks_before_exit] : n[Fe.weeks_after_exit]), x.insertBefore(C, x.firstChild);
5813
5813
  });
5814
5814
  }
5815
5815
  });
5816
5816
  }
5817
5817
  function yy(e, t, n, r) {
5818
- const o = e[0], s = e[e.length - 1], { ISOWeek: i, fixedWeeks: a, broadcastCalendar: c } = n ?? {}, { addDays: l, differenceInCalendarDays: u, differenceInCalendarMonths: d, endOfBroadcastWeek: f, endOfISOWeek: m, endOfMonth: b, endOfWeek: p, isAfter: y, startOfBroadcastWeek: v, startOfISOWeek: w, startOfWeek: x } = r, C = c ? v(o, r) : i ? w(o) : x(o), k = c ? f(s) : i ? m(b(s)) : p(b(s)), D = t && (c ? f(t) : i ? m(t) : p(t)), T = D && y(k, D) ? D : k, S = u(T, C), N = d(s, o) + 1, P = [];
5819
- for (let B = 0; B <= S; B++) {
5820
- const z = l(C, B);
5821
- P.push(z);
5818
+ const o = e[0], s = e[e.length - 1], { ISOWeek: i, fixedWeeks: a, broadcastCalendar: c } = n ?? {}, { addDays: l, differenceInCalendarDays: u, differenceInCalendarMonths: d, endOfBroadcastWeek: f, endOfISOWeek: m, endOfMonth: b, endOfWeek: p, isAfter: y, startOfBroadcastWeek: v, startOfISOWeek: w, startOfWeek: x } = r, k = c ? v(o, r) : i ? w(o) : x(o), C = c ? f(s) : i ? m(b(s)) : p(b(s)), D = t && (c ? f(t) : i ? m(t) : p(t)), T = D && y(C, D) ? D : C, S = u(T, k), N = d(s, o) + 1, M = [];
5819
+ for (let L = 0; L <= S; L++) {
5820
+ const W = l(k, L);
5821
+ M.push(W);
5822
5822
  }
5823
5823
  const _ = (c ? 35 : 42) * N;
5824
- if (a && P.length < _) {
5825
- const B = _ - P.length;
5826
- for (let z = 0; z < B; z++) {
5827
- const K = l(P[P.length - 1], 1);
5828
- P.push(K);
5824
+ if (a && M.length < _) {
5825
+ const L = _ - M.length;
5826
+ for (let W = 0; W < L; W++) {
5827
+ const K = l(M[M.length - 1], 1);
5828
+ M.push(K);
5829
5829
  }
5830
5830
  }
5831
- return P;
5831
+ return M;
5832
5832
  }
5833
5833
  function by(e) {
5834
5834
  const t = [];
@@ -5859,18 +5859,18 @@ function ra(e, t, n, r) {
5859
5859
  }
5860
5860
  function xy(e, t, n, r) {
5861
5861
  const { addDays: o, endOfBroadcastWeek: s, endOfISOWeek: i, endOfMonth: a, endOfWeek: c, getISOWeek: l, getWeek: u, startOfBroadcastWeek: d, startOfISOWeek: f, startOfWeek: m } = r, b = e.reduce((p, y) => {
5862
- const v = n.broadcastCalendar ? d(y, r) : n.ISOWeek ? f(y) : m(y), w = n.broadcastCalendar ? s(y) : n.ISOWeek ? i(a(y)) : c(a(y)), x = t.filter((T) => T >= v && T <= w), C = n.broadcastCalendar ? 35 : 42;
5863
- if (n.fixedWeeks && x.length < C) {
5862
+ const v = n.broadcastCalendar ? d(y, r) : n.ISOWeek ? f(y) : m(y), w = n.broadcastCalendar ? s(y) : n.ISOWeek ? i(a(y)) : c(a(y)), x = t.filter((T) => T >= v && T <= w), k = n.broadcastCalendar ? 35 : 42;
5863
+ if (n.fixedWeeks && x.length < k) {
5864
5864
  const T = t.filter((S) => {
5865
- const N = C - x.length;
5865
+ const N = k - x.length;
5866
5866
  return S > w && S <= o(w, N);
5867
5867
  });
5868
5868
  x.push(...T);
5869
5869
  }
5870
- const k = x.reduce((T, S) => {
5871
- const N = n.ISOWeek ? l(S) : u(S), P = T.find((_) => _.weekNumber === N), O = new Nl(S, y, r);
5872
- return P ? P.days.push(O) : T.push(new gg(N, [O])), T;
5873
- }, []), D = new pg(y, k);
5870
+ const C = x.reduce((T, S) => {
5871
+ const N = n.ISOWeek ? l(S) : u(S), M = T.find((_) => _.weekNumber === N), O = new Nl(S, y, r);
5872
+ return M ? M.days.push(O) : T.push(new gg(N, [O])), T;
5873
+ }, []), D = new pg(y, C);
5874
5874
  return p.push(D), p;
5875
5875
  }, []);
5876
5876
  return n.reverseMonths ? b.reverse() : b;
@@ -5908,7 +5908,7 @@ function Sy(e) {
5908
5908
  return e.reduce((n, r) => n.concat(r.weeks.slice()), t.slice());
5909
5909
  }
5910
5910
  function Br(e, t) {
5911
- const [n, r] = me(e);
5911
+ const [n, r] = fe(e);
5912
5912
  return [t === void 0 ? n : t, r];
5913
5913
  }
5914
5914
  function Dy(e, t) {
@@ -5917,27 +5917,27 @@ function Dy(e, t) {
5917
5917
  // initialMonth is always computed from props.month if provided
5918
5918
  e.month ? i : void 0
5919
5919
  );
5920
- de(() => {
5921
- const C = ra(e, n, r, t);
5922
- c(C);
5920
+ ue(() => {
5921
+ const k = ra(e, n, r, t);
5922
+ c(k);
5923
5923
  }, [e.timeZone]);
5924
5924
  const { months: l, weeks: u, days: d, previousMonth: f, nextMonth: m } = Ce(() => {
5925
- const C = vy(a, r, { numberOfMonths: e.numberOfMonths }, t), k = yy(C, e.endMonth ? s(e.endMonth) : void 0, {
5925
+ const k = vy(a, r, { numberOfMonths: e.numberOfMonths }, t), C = yy(k, e.endMonth ? s(e.endMonth) : void 0, {
5926
5926
  ISOWeek: e.ISOWeek,
5927
5927
  fixedWeeks: e.fixedWeeks,
5928
5928
  broadcastCalendar: e.broadcastCalendar
5929
- }, t), D = xy(C, k, {
5929
+ }, t), D = xy(k, C, {
5930
5930
  broadcastCalendar: e.broadcastCalendar,
5931
5931
  fixedWeeks: e.fixedWeeks,
5932
5932
  ISOWeek: e.ISOWeek,
5933
5933
  reverseMonths: e.reverseMonths
5934
- }, t), T = Sy(D), S = by(D), N = ky(a, n, e, t), P = Cy(a, r, e, t);
5934
+ }, t), T = Sy(D), S = by(D), N = ky(a, n, e, t), M = Cy(a, r, e, t);
5935
5935
  return {
5936
5936
  months: D,
5937
5937
  weeks: T,
5938
5938
  days: S,
5939
5939
  previousMonth: N,
5940
- nextMonth: P
5940
+ nextMonth: M
5941
5941
  };
5942
5942
  }, [
5943
5943
  t,
@@ -5952,11 +5952,11 @@ function Dy(e, t) {
5952
5952
  e.numberOfMonths,
5953
5953
  e.pagedNavigation,
5954
5954
  e.reverseMonths
5955
- ]), { disableNavigation: b, onMonthChange: p } = e, y = (C) => u.some((k) => k.days.some((D) => D.isEqualTo(C))), v = (C) => {
5955
+ ]), { disableNavigation: b, onMonthChange: p } = e, y = (k) => u.some((C) => C.days.some((D) => D.isEqualTo(k))), v = (k) => {
5956
5956
  if (b)
5957
5957
  return;
5958
- let k = o(C);
5959
- n && k < o(n) && (k = o(n)), r && k > o(r) && (k = o(r)), c(k), p?.(k);
5958
+ let C = o(k);
5959
+ n && C < o(n) && (C = o(n)), r && C > o(r) && (C = o(r)), c(C), p?.(C);
5960
5960
  };
5961
5961
  return {
5962
5962
  months: l,
@@ -5967,8 +5967,8 @@ function Dy(e, t) {
5967
5967
  previousMonth: f,
5968
5968
  nextMonth: m,
5969
5969
  goToMonth: v,
5970
- goToDay: (C) => {
5971
- y(C) || v(C.date);
5970
+ goToDay: (k) => {
5971
+ y(k) || v(k.date);
5972
5972
  }
5973
5973
  };
5974
5974
  }
@@ -5988,13 +5988,13 @@ function Ty(e, t, n, r) {
5988
5988
  return o || (o = e.find((i) => oa(t(i)))), o;
5989
5989
  }
5990
5990
  function Ey(e, t, n, r, o, s, i) {
5991
- const { ISOWeek: a, broadcastCalendar: c } = s, { addDays: l, addMonths: u, addWeeks: d, addYears: f, endOfBroadcastWeek: m, endOfISOWeek: b, endOfWeek: p, max: y, min: v, startOfBroadcastWeek: w, startOfISOWeek: x, startOfWeek: C } = i;
5991
+ const { ISOWeek: a, broadcastCalendar: c } = s, { addDays: l, addMonths: u, addWeeks: d, addYears: f, endOfBroadcastWeek: m, endOfISOWeek: b, endOfWeek: p, max: y, min: v, startOfBroadcastWeek: w, startOfISOWeek: x, startOfWeek: k } = i;
5992
5992
  let D = {
5993
5993
  day: l,
5994
5994
  week: d,
5995
5995
  month: u,
5996
5996
  year: f,
5997
- startOfWeek: (T) => c ? w(T, i) : a ? x(T) : C(T),
5997
+ startOfWeek: (T) => c ? w(T, i) : a ? x(T) : k(T),
5998
5998
  endOfWeek: (T) => c ? m(T) : a ? b(T) : p(T)
5999
5999
  }[e](n, t === "after" ? 1 : -1);
6000
6000
  return t === "before" && r ? D = y([r, D]) : t === "after" && o && (D = v([o, D])), D;
@@ -6006,7 +6006,7 @@ function Ul(e, t, n, r, o, s, i, a = 0) {
6006
6006
  return !l && !u ? f : Ul(e, t, f, r, o, s, i, a + 1);
6007
6007
  }
6008
6008
  function Py(e, t, n, r, o) {
6009
- const { autoFocus: s } = e, [i, a] = me(), c = Ty(t.days, n, r || (() => !1), i), [l, u] = me(s ? c : void 0);
6009
+ const { autoFocus: s } = e, [i, a] = fe(), c = Ty(t.days, n, r || (() => !1), i), [l, u] = fe(s ? c : void 0);
6010
6010
  return {
6011
6011
  isFocusTarget: (p) => !!c?.isEqualTo(p),
6012
6012
  setFocused: u,
@@ -6211,9 +6211,9 @@ function Iy(e) {
6211
6211
  t.classNames
6212
6212
  ]);
6213
6213
  t.today || (t = { ...t, today: i.today() });
6214
- const { captionLayout: l, mode: u, navLayout: d, numberOfMonths: f = 1, onDayBlur: m, onDayClick: b, onDayFocus: p, onDayKeyDown: y, onDayMouseEnter: v, onDayMouseLeave: w, onNextClick: x, onPrevClick: C, showWeekNumber: k, styles: D } = t, { formatCaption: T, formatDay: S, formatMonthDropdown: N, formatWeekNumber: P, formatWeekNumberHeader: O, formatWeekdayName: _, formatYearDropdown: B } = o, z = Dy(t, i), { days: K, months: $, navStart: W, navEnd: R, previousMonth: H, nextMonth: ee, goToMonth: E } = z, Y = Yg(K, t, W, R, i), { isSelected: U, select: X, selected: Pe } = _y(t, i) ?? {}, { blur: _e, focused: A, isFocusTarget: G, moveFocus: ne, setFocused: Z } = Py(t, z, Y, U ?? (() => !1), i), { labelDayButton: re, labelGridcell: Se, labelGrid: Me, labelMonthDropdown: At, labelNav: Cn, labelPrevious: sr, labelNext: ro, labelWeekday: ym, labelWeekNumber: bm, labelWeekNumberHeader: vm, labelYearDropdown: xm } = s, wm = Ce(() => uy(i, t.ISOWeek, t.broadcastCalendar, t.today), [i, t.ISOWeek, t.broadcastCalendar, t.today]), _i = u !== void 0 || b !== void 0, oo = ce(() => {
6215
- H && (E(H), C?.(H));
6216
- }, [H, E, C]), so = ce(() => {
6214
+ const { captionLayout: l, mode: u, navLayout: d, numberOfMonths: f = 1, onDayBlur: m, onDayClick: b, onDayFocus: p, onDayKeyDown: y, onDayMouseEnter: v, onDayMouseLeave: w, onNextClick: x, onPrevClick: k, showWeekNumber: C, styles: D } = t, { formatCaption: T, formatDay: S, formatMonthDropdown: N, formatWeekNumber: M, formatWeekNumberHeader: O, formatWeekdayName: _, formatYearDropdown: L } = o, W = Dy(t, i), { days: K, months: z, navStart: $, navEnd: R, previousMonth: H, nextMonth: ee, goToMonth: E } = W, Y = Yg(K, t, $, R, i), { isSelected: U, select: X, selected: Pe } = _y(t, i) ?? {}, { blur: _e, focused: A, isFocusTarget: G, moveFocus: ne, setFocused: Z } = Py(t, W, Y, U ?? (() => !1), i), { labelDayButton: re, labelGridcell: Se, labelGrid: Me, labelMonthDropdown: At, labelNav: Cn, labelPrevious: sr, labelNext: ro, labelWeekday: ym, labelWeekNumber: bm, labelWeekNumberHeader: vm, labelYearDropdown: xm } = s, wm = Ce(() => uy(i, t.ISOWeek, t.broadcastCalendar, t.today), [i, t.ISOWeek, t.broadcastCalendar, t.today]), _i = u !== void 0 || b !== void 0, oo = ce(() => {
6215
+ H && (E(H), k?.(H));
6216
+ }, [H, E, k]), so = ce(() => {
6217
6217
  ee && (E(ee), x?.(ee));
6218
6218
  }, [E, ee, x]), Cm = ce((Q, ie) => (q) => {
6219
6219
  q.preventDefault(), q.stopPropagation(), Z(Q), !ie.disabled && (X?.(Q.date, ie, q), b?.(Q.date, ie, q));
@@ -6255,12 +6255,12 @@ function Iy(e) {
6255
6255
  const q = Number(ie.target.value), se = i.setYear(i.startOfMonth(Q), q);
6256
6256
  E(se);
6257
6257
  }, [i, E]), { className: Nm, style: Am } = Ce(() => ({
6258
- className: [c[L.Root], t.className].filter(Boolean).join(" "),
6259
- style: { ...D?.[L.Root], ...t.style }
6260
- }), [c, t.className, t.style, D]), Rm = Gg(t), Ii = ue(null);
6258
+ className: [c[B.Root], t.className].filter(Boolean).join(" "),
6259
+ style: { ...D?.[B.Root], ...t.style }
6260
+ }), [c, t.className, t.style, D]), Rm = Gg(t), Ii = de(null);
6261
6261
  gy(Ii, !!t.animate, {
6262
6262
  classNames: c,
6263
- months: $,
6263
+ months: z,
6264
6264
  focused: A,
6265
6265
  dateLib: i
6266
6266
  });
@@ -6269,7 +6269,7 @@ function Iy(e) {
6269
6269
  selected: Pe,
6270
6270
  select: X,
6271
6271
  isSelected: U,
6272
- months: $,
6272
+ months: z,
6273
6273
  nextMonth: ee,
6274
6274
  previousMonth: H,
6275
6275
  goToMonth: E,
@@ -6288,14 +6288,14 @@ function Iy(e) {
6288
6288
  { rootRef: t.animate ? Ii : void 0, className: Nm, style: Am, dir: t.dir, id: t.id, lang: t.lang, nonce: t.nonce, title: t.title, role: t.role, "aria-label": t["aria-label"], "aria-labelledby": t["aria-labelledby"], ...Rm },
6289
6289
  j.createElement(
6290
6290
  r.Months,
6291
- { className: c[L.Months], style: D?.[L.Months] },
6292
- !t.hideNavigation && !d && j.createElement(r.Nav, { "data-animated-nav": t.animate ? "true" : void 0, className: c[L.Nav], style: D?.[L.Nav], "aria-label": Cn(), onPreviousClick: oo, onNextClick: so, previousMonth: H, nextMonth: ee }),
6293
- $.map((Q, ie) => j.createElement(
6291
+ { className: c[B.Months], style: D?.[B.Months] },
6292
+ !t.hideNavigation && !d && j.createElement(r.Nav, { "data-animated-nav": t.animate ? "true" : void 0, className: c[B.Nav], style: D?.[B.Nav], "aria-label": Cn(), onPreviousClick: oo, onNextClick: so, previousMonth: H, nextMonth: ee }),
6293
+ z.map((Q, ie) => j.createElement(
6294
6294
  r.Month,
6295
6295
  {
6296
6296
  "data-animated-month": t.animate ? "true" : void 0,
6297
- className: c[L.Month],
6298
- style: D?.[L.Month],
6297
+ className: c[B.Month],
6298
+ style: D?.[B.Month],
6299
6299
  // biome-ignore lint/suspicious/noArrayIndexKey: breaks animation
6300
6300
  key: ie,
6301
6301
  displayIndex: ie,
@@ -6303,14 +6303,14 @@ function Iy(e) {
6303
6303
  },
6304
6304
  d === "around" && !t.hideNavigation && ie === 0 && j.createElement(
6305
6305
  r.PreviousMonthButton,
6306
- { type: "button", className: c[L.PreviousMonthButton], tabIndex: H ? void 0 : -1, "aria-disabled": H ? void 0 : !0, "aria-label": sr(H), onClick: oo, "data-animated-button": t.animate ? "true" : void 0 },
6307
- j.createElement(r.Chevron, { disabled: H ? void 0 : !0, className: c[L.Chevron], orientation: t.dir === "rtl" ? "right" : "left" })
6306
+ { type: "button", className: c[B.PreviousMonthButton], tabIndex: H ? void 0 : -1, "aria-disabled": H ? void 0 : !0, "aria-label": sr(H), onClick: oo, "data-animated-button": t.animate ? "true" : void 0 },
6307
+ j.createElement(r.Chevron, { disabled: H ? void 0 : !0, className: c[B.Chevron], orientation: t.dir === "rtl" ? "right" : "left" })
6308
6308
  ),
6309
- j.createElement(r.MonthCaption, { "data-animated-caption": t.animate ? "true" : void 0, className: c[L.MonthCaption], style: D?.[L.MonthCaption], calendarMonth: Q, displayIndex: ie }, l?.startsWith("dropdown") ? j.createElement(
6309
+ j.createElement(r.MonthCaption, { "data-animated-caption": t.animate ? "true" : void 0, className: c[B.MonthCaption], style: D?.[B.MonthCaption], calendarMonth: Q, displayIndex: ie }, l?.startsWith("dropdown") ? j.createElement(
6310
6310
  r.DropdownNav,
6311
- { className: c[L.Dropdowns], style: D?.[L.Dropdowns] },
6311
+ { className: c[B.Dropdowns], style: D?.[B.Dropdowns] },
6312
6312
  (() => {
6313
- const q = l === "dropdown" || l === "dropdown-months" ? j.createElement(r.MonthsDropdown, { key: "month", className: c[L.MonthsDropdown], "aria-label": At(), classNames: c, components: r, disabled: !!t.disableNavigation, onChange: Pm(Q.date), options: cy(Q.date, W, R, o, i), style: D?.[L.Dropdown], value: i.getMonth(Q.date) }) : j.createElement("span", { key: "month" }, N(Q.date, i)), se = l === "dropdown" || l === "dropdown-years" ? j.createElement(r.YearsDropdown, { key: "year", className: c[L.YearsDropdown], "aria-label": xm(i.options), classNames: c, components: r, disabled: !!t.disableNavigation, onChange: Mm(Q.date), options: dy(W, R, o, i, !!t.reverseYears), style: D?.[L.Dropdown], value: i.getYear(Q.date) }) : j.createElement("span", { key: "year" }, B(Q.date, i));
6313
+ const q = l === "dropdown" || l === "dropdown-months" ? j.createElement(r.MonthsDropdown, { key: "month", className: c[B.MonthsDropdown], "aria-label": At(), classNames: c, components: r, disabled: !!t.disableNavigation, onChange: Pm(Q.date), options: cy(Q.date, $, R, o, i), style: D?.[B.Dropdown], value: i.getMonth(Q.date) }) : j.createElement("span", { key: "month" }, N(Q.date, i)), se = l === "dropdown" || l === "dropdown-years" ? j.createElement(r.YearsDropdown, { key: "year", className: c[B.YearsDropdown], "aria-label": xm(i.options), classNames: c, components: r, disabled: !!t.disableNavigation, onChange: Mm(Q.date), options: dy($, R, o, i, !!t.reverseYears), style: D?.[B.Dropdown], value: i.getYear(Q.date) }) : j.createElement("span", { key: "year" }, L(Q.date, i));
6314
6314
  return i.getMonthYearOrder() === "year-first" ? [se, q] : [q, se];
6315
6315
  })(),
6316
6316
  j.createElement("span", { role: "status", "aria-live": "polite", style: {
@@ -6325,28 +6325,28 @@ function Iy(e) {
6325
6325
  whiteSpace: "nowrap",
6326
6326
  wordWrap: "normal"
6327
6327
  } }, T(Q.date, i.options, i))
6328
- ) : j.createElement(r.CaptionLabel, { className: c[L.CaptionLabel], role: "status", "aria-live": "polite" }, T(Q.date, i.options, i))),
6328
+ ) : j.createElement(r.CaptionLabel, { className: c[B.CaptionLabel], role: "status", "aria-live": "polite" }, T(Q.date, i.options, i))),
6329
6329
  d === "around" && !t.hideNavigation && ie === f - 1 && j.createElement(
6330
6330
  r.NextMonthButton,
6331
- { type: "button", className: c[L.NextMonthButton], tabIndex: ee ? void 0 : -1, "aria-disabled": ee ? void 0 : !0, "aria-label": ro(ee), onClick: so, "data-animated-button": t.animate ? "true" : void 0 },
6332
- j.createElement(r.Chevron, { disabled: ee ? void 0 : !0, className: c[L.Chevron], orientation: t.dir === "rtl" ? "left" : "right" })
6331
+ { type: "button", className: c[B.NextMonthButton], tabIndex: ee ? void 0 : -1, "aria-disabled": ee ? void 0 : !0, "aria-label": ro(ee), onClick: so, "data-animated-button": t.animate ? "true" : void 0 },
6332
+ j.createElement(r.Chevron, { disabled: ee ? void 0 : !0, className: c[B.Chevron], orientation: t.dir === "rtl" ? "left" : "right" })
6333
6333
  ),
6334
- ie === f - 1 && d === "after" && !t.hideNavigation && j.createElement(r.Nav, { "data-animated-nav": t.animate ? "true" : void 0, className: c[L.Nav], style: D?.[L.Nav], "aria-label": Cn(), onPreviousClick: oo, onNextClick: so, previousMonth: H, nextMonth: ee }),
6334
+ ie === f - 1 && d === "after" && !t.hideNavigation && j.createElement(r.Nav, { "data-animated-nav": t.animate ? "true" : void 0, className: c[B.Nav], style: D?.[B.Nav], "aria-label": Cn(), onPreviousClick: oo, onNextClick: so, previousMonth: H, nextMonth: ee }),
6335
6335
  j.createElement(
6336
6336
  r.MonthGrid,
6337
- { role: "grid", "aria-multiselectable": u === "multiple" || u === "range", "aria-label": Me(Q.date, i.options, i) || void 0, className: c[L.MonthGrid], style: D?.[L.MonthGrid] },
6337
+ { role: "grid", "aria-multiselectable": u === "multiple" || u === "range", "aria-label": Me(Q.date, i.options, i) || void 0, className: c[B.MonthGrid], style: D?.[B.MonthGrid] },
6338
6338
  !t.hideWeekdays && j.createElement(
6339
6339
  r.Weekdays,
6340
- { "data-animated-weekdays": t.animate ? "true" : void 0, className: c[L.Weekdays], style: D?.[L.Weekdays] },
6341
- k && j.createElement(r.WeekNumberHeader, { "aria-label": vm(i.options), className: c[L.WeekNumberHeader], style: D?.[L.WeekNumberHeader], scope: "col" }, O()),
6342
- wm.map((q) => j.createElement(r.Weekday, { "aria-label": ym(q, i.options, i), className: c[L.Weekday], key: String(q), style: D?.[L.Weekday], scope: "col" }, _(q, i.options, i)))
6340
+ { "data-animated-weekdays": t.animate ? "true" : void 0, className: c[B.Weekdays], style: D?.[B.Weekdays] },
6341
+ C && j.createElement(r.WeekNumberHeader, { "aria-label": vm(i.options), className: c[B.WeekNumberHeader], style: D?.[B.WeekNumberHeader], scope: "col" }, O()),
6342
+ wm.map((q) => j.createElement(r.Weekday, { "aria-label": ym(q, i.options, i), className: c[B.Weekday], key: String(q), style: D?.[B.Weekday], scope: "col" }, _(q, i.options, i)))
6343
6343
  ),
6344
- j.createElement(r.Weeks, { "data-animated-weeks": t.animate ? "true" : void 0, className: c[L.Weeks], style: D?.[L.Weeks] }, Q.weeks.map((q) => j.createElement(
6344
+ j.createElement(r.Weeks, { "data-animated-weeks": t.animate ? "true" : void 0, className: c[B.Weeks], style: D?.[B.Weeks] }, Q.weeks.map((q) => j.createElement(
6345
6345
  r.Week,
6346
- { className: c[L.Week], key: q.weekNumber, style: D?.[L.Week], week: q },
6347
- k && j.createElement(r.WeekNumber, { week: q, style: D?.[L.WeekNumber], "aria-label": bm(q.weekNumber, {
6346
+ { className: c[B.Week], key: q.weekNumber, style: D?.[B.Week], week: q },
6347
+ C && j.createElement(r.WeekNumber, { week: q, style: D?.[B.WeekNumber], "aria-label": bm(q.weekNumber, {
6348
6348
  locale: a
6349
- }), className: c[L.WeekNumber], scope: "row", role: "rowheader" }, P(q.weekNumber, i)),
6349
+ }), className: c[B.WeekNumber], scope: "row", role: "rowheader" }, M(q.weekNumber, i)),
6350
6350
  q.days.map((se) => {
6351
6351
  const { date: Ve } = se, oe = Y(se);
6352
6352
  if (oe[ge.focused] = !oe.hidden && !!A?.isEqualTo(se), oe[Ke.selected] = U?.(Ve) || oe.selected, Wr(Pe)) {
@@ -6354,13 +6354,13 @@ function Iy(e) {
6354
6354
  oe[Ke.range_start] = !!(io && ao && i.isSameDay(Ve, io)), oe[Ke.range_end] = !!(io && ao && i.isSameDay(Ve, ao)), oe[Ke.range_middle] = ft(Pe, Ve, !0, i);
6355
6355
  }
6356
6356
  const jm = ly(oe, D, t.modifiersStyles), _m = Hg(oe, c, t.modifiersClassNames), Im = !_i && !oe.hidden ? Se(Ve, oe, i.options, i) : void 0;
6357
- return j.createElement(r.Day, { key: `${se.isoDate}_${se.displayMonthId}`, day: se, modifiers: oe, className: _m.join(" "), style: jm, role: "gridcell", "aria-selected": oe.selected || void 0, "aria-label": Im, "data-day": se.isoDate, "data-month": se.outside ? se.dateMonthId : void 0, "data-selected": oe.selected || void 0, "data-disabled": oe.disabled || void 0, "data-hidden": oe.hidden || void 0, "data-outside": se.outside || void 0, "data-focused": oe.focused || void 0, "data-today": oe.today || void 0 }, !oe.hidden && _i ? j.createElement(r.DayButton, { className: c[L.DayButton], style: D?.[L.DayButton], type: "button", day: se, modifiers: oe, disabled: !oe.focused && oe.disabled || void 0, "aria-disabled": oe.focused && oe.disabled || void 0, tabIndex: G(se) ? 0 : -1, "aria-label": re(Ve, oe, i.options, i), onClick: Cm(se, oe), onBlur: Sm(se, oe), onFocus: km(se, oe), onKeyDown: Dm(se, oe), onMouseEnter: Tm(se, oe), onMouseLeave: Em(se, oe) }, S(Ve, i.options, i)) : !oe.hidden && S(se.date, i.options, i));
6357
+ return j.createElement(r.Day, { key: `${se.isoDate}_${se.displayMonthId}`, day: se, modifiers: oe, className: _m.join(" "), style: jm, role: "gridcell", "aria-selected": oe.selected || void 0, "aria-label": Im, "data-day": se.isoDate, "data-month": se.outside ? se.dateMonthId : void 0, "data-selected": oe.selected || void 0, "data-disabled": oe.disabled || void 0, "data-hidden": oe.hidden || void 0, "data-outside": se.outside || void 0, "data-focused": oe.focused || void 0, "data-today": oe.today || void 0 }, !oe.hidden && _i ? j.createElement(r.DayButton, { className: c[B.DayButton], style: D?.[B.DayButton], type: "button", day: se, modifiers: oe, disabled: !oe.focused && oe.disabled || void 0, "aria-disabled": oe.focused && oe.disabled || void 0, tabIndex: G(se) ? 0 : -1, "aria-label": re(Ve, oe, i.options, i), onClick: Cm(se, oe), onBlur: Sm(se, oe), onFocus: km(se, oe), onKeyDown: Dm(se, oe), onMouseEnter: Tm(se, oe), onMouseLeave: Em(se, oe) }, S(Ve, i.options, i)) : !oe.hidden && S(se.date, i.options, i));
6358
6358
  })
6359
6359
  )))
6360
6360
  )
6361
6361
  ))
6362
6362
  ),
6363
- t.footer && j.createElement(r.Footer, { className: c[L.Footer], style: D?.[L.Footer], role: "status", "aria-live": "polite" }, t.footer)
6363
+ t.footer && j.createElement(r.Footer, { className: c[B.Footer], style: D?.[B.Footer], role: "status", "aria-live": "polite" }, t.footer)
6364
6364
  )
6365
6365
  );
6366
6366
  }
@@ -6459,21 +6459,21 @@ function mE({
6459
6459
  formatMonthDropdown: (u) => u.toLocaleString("default", { month: "short" }),
6460
6460
  ...o
6461
6461
  },
6462
- className: M(
6462
+ className: P(
6463
6463
  "p-3 rounded-md border border-[var(--atom-border)]",
6464
6464
  "bg-[var(--atom-bg)] text-[var(--atom-text)]",
6465
6465
  "shadow-[var(--atom-shadow-sm)] w-fit",
6466
6466
  e
6467
6467
  ),
6468
6468
  classNames: {
6469
- root: M("w-fit", c.root),
6470
- months: M("relative flex flex-col gap-4 md:flex-row", c.months),
6471
- month: M("flex w-full flex-col gap-4", c.month),
6472
- nav: M(
6469
+ root: P("w-fit", c.root),
6470
+ months: P("relative flex flex-col gap-4 md:flex-row", c.months),
6471
+ month: P("flex w-full flex-col gap-4", c.month),
6472
+ nav: P(
6473
6473
  "absolute inset-x-0 top-0 flex items-center justify-between px-1",
6474
6474
  c.nav
6475
6475
  ),
6476
- button_previous: M(
6476
+ button_previous: P(
6477
6477
  // Base button look
6478
6478
  "inline-flex items-center justify-center",
6479
6479
  "h-7 w-7 rounded-md",
@@ -6489,7 +6489,7 @@ function mE({
6489
6489
  "cursor-pointer",
6490
6490
  c.button_previous
6491
6491
  ),
6492
- button_next: M(
6492
+ button_next: P(
6493
6493
  "inline-flex items-center justify-center",
6494
6494
  "h-7 w-7 rounded-md",
6495
6495
  "bg-[var(--atom-card-bg)]",
@@ -6500,45 +6500,45 @@ function mE({
6500
6500
  "cursor-pointer",
6501
6501
  c.button_next
6502
6502
  ),
6503
- month_caption: M(
6503
+ month_caption: P(
6504
6504
  "flex h-7 w-full items-center justify-center gap-2",
6505
6505
  c.month_caption
6506
6506
  ),
6507
- dropdowns: M(
6507
+ dropdowns: P(
6508
6508
  "flex items-center gap-2 text-sm font-medium",
6509
6509
  c.dropdowns
6510
6510
  ),
6511
- dropdown_root: M(
6511
+ dropdown_root: P(
6512
6512
  "relative flex items-center rounded-md border border-[var(--atom-border)]",
6513
6513
  "bg-[var(--atom-bg)] px-2 py-1 shadow-xs",
6514
6514
  c.dropdown_root
6515
6515
  ),
6516
- dropdown: M(
6516
+ dropdown: P(
6517
6517
  "absolute inset-0 opacity-0 cursor-pointer",
6518
6518
  c.dropdown
6519
6519
  ),
6520
- caption_label: M(
6520
+ caption_label: P(
6521
6521
  "inline-flex items-center gap-2 select-none text-md font-medium",
6522
6522
  c.caption_label
6523
6523
  ),
6524
- month_grid: M("w-full border-collapse", c.month_grid),
6525
- weekdays: M("flex", c.weekdays),
6526
- weekday: M(
6524
+ month_grid: P("w-full border-collapse", c.month_grid),
6525
+ weekdays: P("flex", c.weekdays),
6526
+ weekday: P(
6527
6527
  "flex-1 select-none text-[0.75rem] font-normal opacity-60 text-center",
6528
6528
  c.weekday
6529
6529
  ),
6530
- week: M("mt-2 flex w-full", c.week),
6531
- day: M(
6530
+ week: P("mt-2 flex w-full", c.week),
6531
+ day: P(
6532
6532
  "relative aspect-square w-8 h-8 p-0 text-center",
6533
6533
  c.day
6534
6534
  ),
6535
- outside: M("opacity-40", c.outside),
6536
- disabled: M("opacity-30 pointer-events-none", c.disabled),
6537
- hidden: M("invisible", c.hidden),
6538
- range_start: M("rounded-l-md", c.range_start),
6539
- range_end: M("rounded-r-md", c.range_end),
6540
- range_middle: M("rounded-none", c.range_middle),
6541
- today: M(
6535
+ outside: P("opacity-40", c.outside),
6536
+ disabled: P("opacity-30 pointer-events-none", c.disabled),
6537
+ hidden: P("invisible", c.hidden),
6538
+ range_start: P("rounded-l-md", c.range_start),
6539
+ range_end: P("rounded-r-md", c.range_end),
6540
+ range_middle: P("rounded-none", c.range_middle),
6541
+ today: P(
6542
6542
  // "relative",
6543
6543
  "rounded-md",
6544
6544
  "bg-[var(--atom-primary-100)]",
@@ -6552,11 +6552,11 @@ function mE({
6552
6552
  {
6553
6553
  "data-slot": "calendar",
6554
6554
  ref: d,
6555
- className: M(u),
6555
+ className: P(u),
6556
6556
  ...f
6557
6557
  }
6558
6558
  ),
6559
- Chevron: ({ className: u, orientation: d, ...f }) => d === "left" ? /* @__PURE__ */ h.jsx(Yy, { className: M("size-4", u), ...f }) : d === "right" ? /* @__PURE__ */ h.jsx(Uy, { className: M("size-4", u), ...f }) : /* @__PURE__ */ h.jsx(ql, { className: M("size-4", u), ...f }),
6559
+ Chevron: ({ className: u, orientation: d, ...f }) => d === "left" ? /* @__PURE__ */ h.jsx(Yy, { className: P("size-4", u), ...f }) : d === "right" ? /* @__PURE__ */ h.jsx(Uy, { className: P("size-4", u), ...f }) : /* @__PURE__ */ h.jsx(ql, { className: P("size-4", u), ...f }),
6560
6560
  DayButton: (u) => /* @__PURE__ */ h.jsx(l, { ...u }),
6561
6561
  WeekNumber: ({ children: u, ...d }) => /* @__PURE__ */ h.jsx("td", { ...d, children: /* @__PURE__ */ h.jsx("div", { className: "flex items-center justify-center text-xs opacity-60", children: u }) }),
6562
6562
  ...s
@@ -6587,7 +6587,7 @@ function mE({
6587
6587
  "data-range-end": f.range_end || void 0,
6588
6588
  "data-range-middle": f.range_middle || void 0,
6589
6589
  disabled: f.disabled,
6590
- className: M(
6590
+ className: P(
6591
6591
  "!px-0 !py-0 w-full h-full",
6592
6592
  // Selected single
6593
6593
  "data-[selected-single=true]:bg-[var(--atom-primary)]",
@@ -6641,7 +6641,7 @@ const Jy = te(
6641
6641
  "div",
6642
6642
  {
6643
6643
  ref: s,
6644
- className: M(Jy({ variant: t, hoverable: n, clickable: r }), e),
6644
+ className: P(Jy({ variant: t, hoverable: n, clickable: r }), e),
6645
6645
  tabIndex: r ? 0 : void 0,
6646
6646
  ...o
6647
6647
  }
@@ -6669,7 +6669,7 @@ const ca = te("px-6 pt-6", {
6669
6669
  "div",
6670
6670
  {
6671
6671
  ref: a,
6672
- className: M(ca({ divider: t }), e),
6672
+ className: P(ca({ divider: t }), e),
6673
6673
  ...i,
6674
6674
  children: /* @__PURE__ */ h.jsxs("div", { className: "flex items-start gap-4", children: [
6675
6675
  r && /* @__PURE__ */ h.jsx("div", { className: "shrink-0", children: r }),
@@ -6681,7 +6681,7 @@ const ca = te("px-6 pt-6", {
6681
6681
  "div",
6682
6682
  {
6683
6683
  ref: a,
6684
- className: M(ca({ divider: t, align: n }), e),
6684
+ className: P(ca({ divider: t, align: n }), e),
6685
6685
  ...i,
6686
6686
  children: s
6687
6687
  }
@@ -6692,7 +6692,7 @@ const nb = g.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ h.jsx(
6692
6692
  "h3",
6693
6693
  {
6694
6694
  ref: n,
6695
- className: M(
6695
+ className: P(
6696
6696
  "text-lg font-semibold leading-none tracking-tight",
6697
6697
  "text-[var(--atom-theme-text-primary)]",
6698
6698
  e
@@ -6705,7 +6705,7 @@ const rb = g.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ h.jsx(
6705
6705
  "p",
6706
6706
  {
6707
6707
  ref: n,
6708
- className: M(
6708
+ className: P(
6709
6709
  "mt-1 text-sm text-[var(--atom-text-muted)]",
6710
6710
  e
6711
6711
  ),
@@ -6728,7 +6728,7 @@ const ob = te("", {
6728
6728
  "div",
6729
6729
  {
6730
6730
  ref: r,
6731
- className: M(ob({ noPadding: t }), e),
6731
+ className: P(ob({ noPadding: t }), e),
6732
6732
  ...n
6733
6733
  }
6734
6734
  )
@@ -6756,7 +6756,7 @@ const ib = te("flex items-center gap-3 px-6 pb-6", {
6756
6756
  "div",
6757
6757
  {
6758
6758
  ref: o,
6759
- className: M(ib({ divider: t, align: n }), e),
6759
+ className: P(ib({ divider: t, align: n }), e),
6760
6760
  ...r
6761
6761
  }
6762
6762
  )
@@ -6787,7 +6787,7 @@ const cb = te("w-full", {
6787
6787
  "img",
6788
6788
  {
6789
6789
  ref: o,
6790
- className: M(cb({ size: t, objectFit: n }), e),
6790
+ className: P(cb({ size: t, objectFit: n }), e),
6791
6791
  ...r
6792
6792
  }
6793
6793
  )
@@ -6833,7 +6833,7 @@ const ub = te(
6833
6833
  const u = g.useId(), d = n ?? u, f = g.useRef(null);
6834
6834
  return g.useImperativeHandle(l, () => f.current, []), g.useEffect(() => {
6835
6835
  f.current && (f.current.indeterminate = o);
6836
- }, [o]), /* @__PURE__ */ h.jsxs("div", { className: M("inline-flex items-center gap-2", s), children: [
6836
+ }, [o]), /* @__PURE__ */ h.jsxs("div", { className: P("inline-flex items-center gap-2", s), children: [
6837
6837
  /* @__PURE__ */ h.jsx(
6838
6838
  "input",
6839
6839
  {
@@ -6841,7 +6841,7 @@ const ub = te(
6841
6841
  id: d,
6842
6842
  type: "checkbox",
6843
6843
  "data-slot": "checkbox",
6844
- className: M(ub({ size: t }), e),
6844
+ className: P(ub({ size: t }), e),
6845
6845
  disabled: a,
6846
6846
  ...c
6847
6847
  }
@@ -6850,7 +6850,7 @@ const ub = te(
6850
6850
  "label",
6851
6851
  {
6852
6852
  htmlFor: d,
6853
- className: M(
6853
+ className: P(
6854
6854
  "select-none text-sm font-medium",
6855
6855
  "text-[var(--atom-text)]",
6856
6856
  a ? "cursor-not-allowed opacity-50" : "cursor-pointer",
@@ -6902,7 +6902,7 @@ const fb = te(
6902
6902
  role: "region",
6903
6903
  "aria-live": l,
6904
6904
  "data-slot": "content-card",
6905
- className: M(fb({ variant: t, size: n }), e),
6905
+ className: P(fb({ variant: t, size: n }), e),
6906
6906
  ...a,
6907
6907
  children: [
6908
6908
  (r || o) && /* @__PURE__ */ h.jsxs("div", { className: "flex items-start gap-2", children: [
@@ -6910,7 +6910,7 @@ const fb = te(
6910
6910
  "span",
6911
6911
  {
6912
6912
  "aria-hidden": "true",
6913
- className: M(
6913
+ className: P(
6914
6914
  "shrink-0 mt-0.5",
6915
6915
  t === "info" && "text-[var(--atom-info)]",
6916
6916
  t === "success" && "text-[var(--atom-success)]",
@@ -7156,12 +7156,12 @@ var Nb = "DismissableLayer", Ho = "dismissableLayer.update", Ab = "dismissableLa
7156
7156
  onInteractOutside: i,
7157
7157
  onDismiss: a,
7158
7158
  ...c
7159
- } = e, l = g.useContext(Kl), [u, d] = g.useState(null), f = u?.ownerDocument ?? globalThis?.document, [, m] = g.useState({}), b = Ee(t, (T) => d(T)), p = Array.from(l.layers), [y] = [...l.layersWithOutsidePointerEventsDisabled].slice(-1), v = p.indexOf(y), w = u ? p.indexOf(u) : -1, x = l.layersWithOutsidePointerEventsDisabled.size > 0, C = w >= v, k = _b((T) => {
7160
- const S = T.target, N = [...l.branches].some((P) => P.contains(S));
7161
- !C || N || (o?.(T), i?.(T), T.defaultPrevented || a?.());
7159
+ } = e, l = g.useContext(Kl), [u, d] = g.useState(null), f = u?.ownerDocument ?? globalThis?.document, [, m] = g.useState({}), b = Ee(t, (T) => d(T)), p = Array.from(l.layers), [y] = [...l.layersWithOutsidePointerEventsDisabled].slice(-1), v = p.indexOf(y), w = u ? p.indexOf(u) : -1, x = l.layersWithOutsidePointerEventsDisabled.size > 0, k = w >= v, C = _b((T) => {
7160
+ const S = T.target, N = [...l.branches].some((M) => M.contains(S));
7161
+ !k || N || (o?.(T), i?.(T), T.defaultPrevented || a?.());
7162
7162
  }, f), D = Ib((T) => {
7163
7163
  const S = T.target;
7164
- [...l.branches].some((P) => P.contains(S)) || (s?.(T), i?.(T), T.defaultPrevented || a?.());
7164
+ [...l.branches].some((M) => M.contains(S)) || (s?.(T), i?.(T), T.defaultPrevented || a?.());
7165
7165
  }, f);
7166
7166
  return Mb((T) => {
7167
7167
  w === l.layers.size - 1 && (r?.(T), !T.defaultPrevented && a && (T.preventDefault(), a()));
@@ -7181,14 +7181,14 @@ var Nb = "DismissableLayer", Ho = "dismissableLayer.update", Ab = "dismissableLa
7181
7181
  ...c,
7182
7182
  ref: b,
7183
7183
  style: {
7184
- pointerEvents: x ? C ? "auto" : "none" : void 0,
7184
+ pointerEvents: x ? k ? "auto" : "none" : void 0,
7185
7185
  ...e.style
7186
7186
  },
7187
7187
  onFocusCapture: he(e.onFocusCapture, D.onFocusCapture),
7188
7188
  onBlurCapture: he(e.onBlurCapture, D.onBlurCapture),
7189
7189
  onPointerDownCapture: he(
7190
7190
  e.onPointerDownCapture,
7191
- k.onPointerDownCapture
7191
+ C.onPointerDownCapture
7192
7192
  )
7193
7193
  }
7194
7194
  );
@@ -7278,16 +7278,16 @@ var go = "focusScope.autoFocusOnMount", yo = "focusScope.autoFocusOnUnmount", da
7278
7278
  if (r) {
7279
7279
  let p = function(x) {
7280
7280
  if (m.paused || !a) return;
7281
- const C = x.target;
7282
- a.contains(C) ? d.current = C : xt(d.current, { select: !0 });
7281
+ const k = x.target;
7282
+ a.contains(k) ? d.current = k : xt(d.current, { select: !0 });
7283
7283
  }, y = function(x) {
7284
7284
  if (m.paused || !a) return;
7285
- const C = x.relatedTarget;
7286
- C !== null && (a.contains(C) || xt(d.current, { select: !0 }));
7285
+ const k = x.relatedTarget;
7286
+ k !== null && (a.contains(k) || xt(d.current, { select: !0 }));
7287
7287
  }, v = function(x) {
7288
7288
  if (document.activeElement === document.body)
7289
- for (const k of x)
7290
- k.removedNodes.length > 0 && xt(a);
7289
+ for (const C of x)
7290
+ C.removedNodes.length > 0 && xt(a);
7291
7291
  };
7292
7292
  document.addEventListener("focusin", p), document.addEventListener("focusout", y);
7293
7293
  const w = new MutationObserver(v);
@@ -7316,8 +7316,8 @@ var go = "focusScope.autoFocusOnMount", yo = "focusScope.autoFocusOnUnmount", da
7316
7316
  if (!n && !r || m.paused) return;
7317
7317
  const y = p.key === "Tab" && !p.altKey && !p.ctrlKey && !p.metaKey, v = document.activeElement;
7318
7318
  if (y && v) {
7319
- const w = p.currentTarget, [x, C] = Lb(w);
7320
- x && C ? !p.shiftKey && v === C ? (p.preventDefault(), n && xt(x, { select: !0 })) : p.shiftKey && v === x && (p.preventDefault(), n && xt(C, { select: !0 })) : v === w && p.preventDefault();
7319
+ const w = p.currentTarget, [x, k] = Lb(w);
7320
+ x && k ? !p.shiftKey && v === k ? (p.preventDefault(), n && xt(x, { select: !0 })) : p.shiftKey && v === x && (p.preventDefault(), n && xt(k, { select: !0 })) : v === w && p.preventDefault();
7321
7321
  }
7322
7322
  },
7323
7323
  [n, r, m.paused]
@@ -7497,7 +7497,7 @@ function vo(e, t) {
7497
7497
  return typeof e == "function" ? e(t) : e && (e.current = t), e;
7498
7498
  }
7499
7499
  function Qb(e, t) {
7500
- var n = me(function() {
7500
+ var n = fe(function() {
7501
7501
  return {
7502
7502
  // value
7503
7503
  value: e,
@@ -7619,11 +7619,11 @@ var tu = rv(), xo = function() {
7619
7619
  onScrollCapture: xo,
7620
7620
  onWheelCapture: xo,
7621
7621
  onTouchMoveCapture: xo
7622
- }), o = r[0], s = r[1], i = e.forwardProps, a = e.children, c = e.className, l = e.removeScrollBar, u = e.enabled, d = e.shards, f = e.sideCar, m = e.noRelative, b = e.noIsolation, p = e.inert, y = e.allowPinchZoom, v = e.as, w = v === void 0 ? "div" : v, x = e.gapMode, C = Jl(e, ["forwardProps", "children", "className", "removeScrollBar", "enabled", "shards", "sideCar", "noRelative", "noIsolation", "inert", "allowPinchZoom", "as", "gapMode"]), k = f, D = ev([n, t]), T = et(et({}, C), o);
7622
+ }), o = r[0], s = r[1], i = e.forwardProps, a = e.children, c = e.className, l = e.removeScrollBar, u = e.enabled, d = e.shards, f = e.sideCar, m = e.noRelative, b = e.noIsolation, p = e.inert, y = e.allowPinchZoom, v = e.as, w = v === void 0 ? "div" : v, x = e.gapMode, k = Jl(e, ["forwardProps", "children", "className", "removeScrollBar", "enabled", "shards", "sideCar", "noRelative", "noIsolation", "inert", "allowPinchZoom", "as", "gapMode"]), C = f, D = ev([n, t]), T = et(et({}, k), o);
7623
7623
  return g.createElement(
7624
7624
  g.Fragment,
7625
7625
  null,
7626
- u && g.createElement(k, { sideCar: tu, removeScrollBar: l, shards: d, noRelative: m, noIsolation: b, inert: p, setCallbacks: s, allowPinchZoom: !!y, lockRef: n, gapMode: x }),
7626
+ u && g.createElement(C, { sideCar: tu, removeScrollBar: l, shards: d, noRelative: m, noIsolation: b, inert: p, setCallbacks: s, allowPinchZoom: !!y, lockRef: n, gapMode: x }),
7627
7627
  i ? g.cloneElement(g.Children.only(a), et(et({}, T), { ref: D })) : g.createElement(w, et({}, T, { className: c, ref: D }), a)
7628
7628
  );
7629
7629
  });
@@ -7870,43 +7870,43 @@ function Pv(e) {
7870
7870
  var a = g.useCallback(function(p, y) {
7871
7871
  if ("touches" in p && p.touches.length === 2 || p.type === "wheel" && p.ctrlKey)
7872
7872
  return !i.current.allowPinchZoom;
7873
- var v = dr(p), w = n.current, x = "deltaX" in p ? p.deltaX : w[0] - v[0], C = "deltaY" in p ? p.deltaY : w[1] - v[1], k, D = p.target, T = Math.abs(x) > Math.abs(C) ? "h" : "v";
7873
+ var v = dr(p), w = n.current, x = "deltaX" in p ? p.deltaX : w[0] - v[0], k = "deltaY" in p ? p.deltaY : w[1] - v[1], C, D = p.target, T = Math.abs(x) > Math.abs(k) ? "h" : "v";
7874
7874
  if ("touches" in p && T === "h" && D.type === "range")
7875
7875
  return !1;
7876
- var S = window.getSelection(), N = S && S.anchorNode, P = N ? N === D || N.contains(D) : !1;
7877
- if (P)
7876
+ var S = window.getSelection(), N = S && S.anchorNode, M = N ? N === D || N.contains(D) : !1;
7877
+ if (M)
7878
7878
  return !1;
7879
7879
  var O = ba(T, D);
7880
7880
  if (!O)
7881
7881
  return !0;
7882
- if (O ? k = T : (k = T === "v" ? "h" : "v", O = ba(T, D)), !O)
7882
+ if (O ? C = T : (C = T === "v" ? "h" : "v", O = ba(T, D)), !O)
7883
7883
  return !1;
7884
- if (!r.current && "changedTouches" in p && (x || C) && (r.current = k), !k)
7884
+ if (!r.current && "changedTouches" in p && (x || k) && (r.current = C), !C)
7885
7885
  return !0;
7886
- var _ = r.current || k;
7887
- return Sv(_, y, p, _ === "h" ? x : C);
7886
+ var _ = r.current || C;
7887
+ return Sv(_, y, p, _ === "h" ? x : k);
7888
7888
  }, []), c = g.useCallback(function(p) {
7889
7889
  var y = p;
7890
7890
  if (!(!qt.length || qt[qt.length - 1] !== s)) {
7891
- var v = "deltaY" in y ? va(y) : dr(y), w = t.current.filter(function(k) {
7892
- return k.name === y.type && (k.target === y.target || y.target === k.shadowParent) && Dv(k.delta, v);
7891
+ var v = "deltaY" in y ? va(y) : dr(y), w = t.current.filter(function(C) {
7892
+ return C.name === y.type && (C.target === y.target || y.target === C.shadowParent) && Dv(C.delta, v);
7893
7893
  })[0];
7894
7894
  if (w && w.should) {
7895
7895
  y.cancelable && y.preventDefault();
7896
7896
  return;
7897
7897
  }
7898
7898
  if (!w) {
7899
- var x = (i.current.shards || []).map(xa).filter(Boolean).filter(function(k) {
7900
- return k.contains(y.target);
7901
- }), C = x.length > 0 ? a(y, x[0]) : !i.current.noIsolation;
7902
- C && y.cancelable && y.preventDefault();
7899
+ var x = (i.current.shards || []).map(xa).filter(Boolean).filter(function(C) {
7900
+ return C.contains(y.target);
7901
+ }), k = x.length > 0 ? a(y, x[0]) : !i.current.noIsolation;
7902
+ k && y.cancelable && y.preventDefault();
7903
7903
  }
7904
7904
  }
7905
7905
  }, []), l = g.useCallback(function(p, y, v, w) {
7906
7906
  var x = { name: p, delta: y, target: v, should: w, shadowParent: Mv(v) };
7907
7907
  t.current.push(x), setTimeout(function() {
7908
- t.current = t.current.filter(function(C) {
7909
- return C !== x;
7908
+ t.current = t.current.filter(function(k) {
7909
+ return k !== x;
7910
7910
  });
7911
7911
  }, 1);
7912
7912
  }, []), u = g.useCallback(function(p) {
@@ -8298,7 +8298,7 @@ const Mu = g.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ h.jsx(
8298
8298
  Su,
8299
8299
  {
8300
8300
  ref: n,
8301
- className: M(ex(), e),
8301
+ className: P(ex(), e),
8302
8302
  ...t
8303
8303
  }
8304
8304
  ));
@@ -8310,7 +8310,7 @@ const nx = g.forwardRef(({ className: e, children: t, showClose: n = !0, ...r },
8310
8310
  {
8311
8311
  ref: o,
8312
8312
  role: "dialog",
8313
- className: M(tx(), e),
8313
+ className: P(tx(), e),
8314
8314
  ...r,
8315
8315
  children: [
8316
8316
  t,
@@ -8318,7 +8318,7 @@ const nx = g.forwardRef(({ className: e, children: t, showClose: n = !0, ...r },
8318
8318
  Jv,
8319
8319
  {
8320
8320
  "aria-label": "Close",
8321
- className: M(
8321
+ className: P(
8322
8322
  "absolute right-4 top-4",
8323
8323
  "inline-flex h-8 w-8 items-center justify-center rounded-md",
8324
8324
  "text-[var(--atom-text-muted)]",
@@ -8342,7 +8342,7 @@ const rx = ({
8342
8342
  }) => /* @__PURE__ */ h.jsx(
8343
8343
  "div",
8344
8344
  {
8345
- className: M(
8345
+ className: P(
8346
8346
  "flex flex-col space-y-1.5 px-6 pt-6 text-center sm:text-left",
8347
8347
  e
8348
8348
  ),
@@ -8356,7 +8356,7 @@ const ox = ({
8356
8356
  }) => /* @__PURE__ */ h.jsx(
8357
8357
  "div",
8358
8358
  {
8359
- className: M("px-6 py-4 text-[var(--atom-card-fg)]", e),
8359
+ className: P("px-6 py-4 text-[var(--atom-card-fg)]", e),
8360
8360
  ...t
8361
8361
  }
8362
8362
  );
@@ -8367,7 +8367,7 @@ const sx = ({
8367
8367
  }) => /* @__PURE__ */ h.jsx(
8368
8368
  "div",
8369
8369
  {
8370
- className: M(
8370
+ className: P(
8371
8371
  "flex flex-col-reverse gap-2 px-6 pb-6 sm:flex-row sm:justify-end",
8372
8372
  e
8373
8373
  ),
@@ -8379,7 +8379,7 @@ const ix = g.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ h.jsx(
8379
8379
  Tu,
8380
8380
  {
8381
8381
  ref: n,
8382
- className: M(
8382
+ className: P(
8383
8383
  "text-lg font-semibold leading-tight tracking-tight",
8384
8384
  "text-[var(--atom-card-fg)]",
8385
8385
  e
@@ -8392,14 +8392,14 @@ const ax = g.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ h.jsx(
8392
8392
  Eu,
8393
8393
  {
8394
8394
  ref: n,
8395
- className: M("text-sm text-[var(--atom-text-muted)]", e),
8395
+ className: P("text-sm text-[var(--atom-text-muted)]", e),
8396
8396
  ...t
8397
8397
  }
8398
8398
  ));
8399
8399
  ax.displayName = Eu.displayName;
8400
8400
  function Yr() {
8401
- const [e, t] = me(null);
8402
- return de(() => {
8401
+ const [e, t] = fe(null);
8402
+ return ue(() => {
8403
8403
  document.getElementById("app-root") && t(document.getElementById("app-root"));
8404
8404
  }, []), e;
8405
8405
  }
@@ -8469,42 +8469,42 @@ const cx = te(
8469
8469
  g.useImperativeHandle(m, () => y.current), g.useEffect(() => {
8470
8470
  if (!r) return;
8471
8471
  v.current = document.activeElement;
8472
- const C = y.current;
8473
- if (!C) return;
8474
- const k = C.querySelectorAll(
8472
+ const k = y.current;
8473
+ if (!k) return;
8474
+ const C = k.querySelectorAll(
8475
8475
  'button, [href], input, select, textarea, [tabindex]:not([tabindex="-1"])'
8476
8476
  );
8477
- k.length > 0 ? k[0].focus() : (C.setAttribute("tabindex", "-1"), C.focus());
8477
+ C.length > 0 ? C[0].focus() : (k.setAttribute("tabindex", "-1"), k.focus());
8478
8478
  const D = (T) => {
8479
8479
  if (T.key !== "Tab") return;
8480
- const S = C.querySelectorAll(
8480
+ const S = k.querySelectorAll(
8481
8481
  'button, [href], input, select, textarea, [tabindex]:not([tabindex="-1"])'
8482
8482
  );
8483
8483
  if (S.length === 0) return;
8484
- const N = S[0], P = S[S.length - 1];
8485
- T.shiftKey ? document.activeElement === N && (P.focus(), T.preventDefault()) : document.activeElement === P && (N.focus(), T.preventDefault());
8484
+ const N = S[0], M = S[S.length - 1];
8485
+ T.shiftKey ? document.activeElement === N && (M.focus(), T.preventDefault()) : document.activeElement === M && (N.focus(), T.preventDefault());
8486
8486
  };
8487
8487
  return document.addEventListener("keydown", D), () => {
8488
8488
  document.removeEventListener("keydown", D), v.current && v.current.focus();
8489
8489
  };
8490
8490
  }, [r]), g.useEffect(() => {
8491
8491
  if (!r || !c || !o) return;
8492
- const C = (k) => {
8493
- k.key === "Escape" && o(!1);
8492
+ const k = (C) => {
8493
+ C.key === "Escape" && o(!1);
8494
8494
  };
8495
- return document.addEventListener("keydown", C), () => document.removeEventListener("keydown", C);
8495
+ return document.addEventListener("keydown", k), () => document.removeEventListener("keydown", k);
8496
8496
  }, [r, c, o]), g.useEffect(() => {
8497
8497
  if (r) {
8498
- const C = window.innerWidth - document.documentElement.clientWidth;
8499
- document.body.style.overflow = "hidden", document.body.style.paddingRight = `${C}px`;
8498
+ const k = window.innerWidth - document.documentElement.clientWidth;
8499
+ document.body.style.overflow = "hidden", document.body.style.paddingRight = `${k}px`;
8500
8500
  } else
8501
8501
  document.body.style.overflow = "", document.body.style.paddingRight = "";
8502
8502
  return () => {
8503
8503
  document.body.style.overflow = "", document.body.style.paddingRight = "";
8504
8504
  };
8505
8505
  }, [r]);
8506
- const w = (C) => {
8507
- a && o && (C.stopPropagation(), o(!1));
8506
+ const w = (k) => {
8507
+ a && o && (k.stopPropagation(), o(!1));
8508
8508
  }, x = /* @__PURE__ */ h.jsxs(h.Fragment, { children: [
8509
8509
  l && r && /* @__PURE__ */ h.jsx(
8510
8510
  "div",
@@ -8520,7 +8520,7 @@ const cx = te(
8520
8520
  ref: y,
8521
8521
  "data-state": r ? "open" : "closed",
8522
8522
  "data-variant": t,
8523
- className: M(
8523
+ className: P(
8524
8524
  cx({ variant: t, size: n }),
8525
8525
  lx(t, r),
8526
8526
  e
@@ -8544,7 +8544,7 @@ const dx = g.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ h.jsx(
8544
8544
  "div",
8545
8545
  {
8546
8546
  ref: n,
8547
- className: M("flex flex-col space-y-1.5 p-6", e),
8547
+ className: P("flex flex-col space-y-1.5 p-6", e),
8548
8548
  ...t
8549
8549
  }
8550
8550
  ));
@@ -8554,7 +8554,7 @@ const fx = g.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ h.jsx(
8554
8554
  {
8555
8555
  ref: n,
8556
8556
  id: "drawer-title",
8557
- className: M(
8557
+ className: P(
8558
8558
  "text-lg font-semibold leading-none tracking-tight",
8559
8559
  e
8560
8560
  ),
@@ -8567,7 +8567,7 @@ const mx = g.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ h.jsx(
8567
8567
  {
8568
8568
  ref: n,
8569
8569
  id: "drawer-description",
8570
- className: M("text-sm text-[var(--atom-text)]", e),
8570
+ className: P("text-sm text-[var(--atom-text)]", e),
8571
8571
  ...t
8572
8572
  }
8573
8573
  ));
@@ -8576,7 +8576,7 @@ const hx = g.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ h.jsx(
8576
8576
  "div",
8577
8577
  {
8578
8578
  ref: n,
8579
- className: M("flex-1 overflow-auto p-6 pt-0", e),
8579
+ className: P("flex-1 overflow-auto p-6 pt-0", e),
8580
8580
  ...t
8581
8581
  }
8582
8582
  ));
@@ -8585,7 +8585,7 @@ const px = g.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ h.jsx(
8585
8585
  "div",
8586
8586
  {
8587
8587
  ref: n,
8588
- className: M("flex items-center justify-end gap-2 p-6 pt-0", e),
8588
+ className: P("flex items-center justify-end gap-2 p-6 pt-0", e),
8589
8589
  ...t
8590
8590
  }
8591
8591
  ));
@@ -8595,7 +8595,7 @@ const gx = g.forwardRef(({ className: e, children: t, ...n }, r) => /* @__PURE__
8595
8595
  {
8596
8596
  ref: r,
8597
8597
  type: "button",
8598
- className: M(
8598
+ className: P(
8599
8599
  "absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none",
8600
8600
  e
8601
8601
  ),
@@ -8669,7 +8669,7 @@ const yx = te(
8669
8669
  {
8670
8670
  ref: i,
8671
8671
  "data-slot": "heading",
8672
- className: M(
8672
+ className: P(
8673
8673
  yx({ size: c, weight: o }),
8674
8674
  e
8675
8675
  ),
@@ -8734,7 +8734,7 @@ const xx = te(
8734
8734
  {
8735
8735
  ref: a,
8736
8736
  "data-slot": "paper",
8737
- className: M(
8737
+ className: P(
8738
8738
  xx({
8739
8739
  variant: t,
8740
8740
  size: n,
@@ -8821,7 +8821,7 @@ const Cx = te(
8821
8821
  "aria-valuenow": n ? void 0 : u,
8822
8822
  "aria-valuetext": n ? void 0 : `${u}%`,
8823
8823
  "aria-busy": n || void 0,
8824
- className: M(
8824
+ className: P(
8825
8825
  Cx({
8826
8826
  trackVariant: s,
8827
8827
  size: i,
@@ -8835,7 +8835,7 @@ const Cx = te(
8835
8835
  {
8836
8836
  "data-slot": "progress-indicator",
8837
8837
  "data-testid": "progress-indicator",
8838
- className: M(
8838
+ className: P(
8839
8839
  kx({
8840
8840
  indicatorVariant: d
8841
8841
  }),
@@ -8906,15 +8906,15 @@ function Nx(e) {
8906
8906
  i.displayName = t;
8907
8907
  const a = e + "CollectionSlot", c = /* @__PURE__ */ wa(a), l = j.forwardRef(
8908
8908
  (p, y) => {
8909
- const { scope: v, children: w } = p, x = s(a, v), C = Ee(y, x.collectionRef);
8910
- return /* @__PURE__ */ h.jsx(c, { ref: C, children: w });
8909
+ const { scope: v, children: w } = p, x = s(a, v), k = Ee(y, x.collectionRef);
8910
+ return /* @__PURE__ */ h.jsx(c, { ref: k, children: w });
8911
8911
  }
8912
8912
  );
8913
8913
  l.displayName = a;
8914
8914
  const u = e + "CollectionItemSlot", d = "data-radix-collection-item", f = /* @__PURE__ */ wa(u), m = j.forwardRef(
8915
8915
  (p, y) => {
8916
- const { scope: v, children: w, ...x } = p, C = j.useRef(null), k = Ee(y, C), D = s(u, v);
8917
- return j.useEffect(() => (D.itemMap.set(C, { ref: C, ...x }), () => void D.itemMap.delete(C))), /* @__PURE__ */ h.jsx(f, { [d]: "", ref: k, children: w });
8916
+ const { scope: v, children: w, ...x } = p, k = j.useRef(null), C = Ee(y, k), D = s(u, v);
8917
+ return j.useEffect(() => (D.itemMap.set(k, { ref: k, ...x }), () => void D.itemMap.delete(k))), /* @__PURE__ */ h.jsx(f, { [d]: "", ref: C, children: w });
8918
8918
  }
8919
8919
  );
8920
8920
  m.displayName = u;
@@ -8964,7 +8964,7 @@ var Vx = g.forwardRef((e, t) => {
8964
8964
  defaultProp: a ?? null,
8965
8965
  onChange: c,
8966
8966
  caller: Qn
8967
- }), [v, w] = g.useState(!1), x = Wt(l), C = Au(n), k = g.useRef(!1), [D, T] = g.useState(0);
8967
+ }), [v, w] = g.useState(!1), x = Wt(l), k = Au(n), C = g.useRef(!1), [D, T] = g.useState(0);
8968
8968
  return g.useEffect(() => {
8969
8969
  const S = f.current;
8970
8970
  if (S)
@@ -8999,20 +8999,20 @@ var Vx = g.forwardRef((e, t) => {
8999
8999
  ref: m,
9000
9000
  style: { outline: "none", ...e.style },
9001
9001
  onMouseDown: he(e.onMouseDown, () => {
9002
- k.current = !0;
9002
+ C.current = !0;
9003
9003
  }),
9004
9004
  onFocus: he(e.onFocus, (S) => {
9005
- const N = !k.current;
9005
+ const N = !C.current;
9006
9006
  if (S.target === S.currentTarget && N && !v) {
9007
- const P = new CustomEvent(ko, Rx);
9008
- if (S.currentTarget.dispatchEvent(P), !P.defaultPrevented) {
9009
- const O = C().filter(($) => $.focusable), _ = O.find(($) => $.active), B = O.find(($) => $.id === p), K = [_, B, ...O].filter(
9007
+ const M = new CustomEvent(ko, Rx);
9008
+ if (S.currentTarget.dispatchEvent(M), !M.defaultPrevented) {
9009
+ const O = k().filter((z) => z.focusable), _ = O.find((z) => z.active), L = O.find((z) => z.id === p), K = [_, L, ...O].filter(
9010
9010
  Boolean
9011
- ).map(($) => $.ref.current);
9011
+ ).map((z) => z.ref.current);
9012
9012
  Iu(K, u);
9013
9013
  }
9014
9014
  }
9015
- k.current = !1;
9015
+ C.current = !1;
9016
9016
  }),
9017
9017
  onBlur: he(e.onBlur, () => w(!1))
9018
9018
  }
@@ -9060,12 +9060,12 @@ var Vx = g.forwardRef((e, t) => {
9060
9060
  if (v !== void 0) {
9061
9061
  if (y.metaKey || y.ctrlKey || y.altKey || y.shiftKey) return;
9062
9062
  y.preventDefault();
9063
- let x = f().filter((C) => C.focusable).map((C) => C.ref.current);
9063
+ let x = f().filter((k) => k.focusable).map((k) => k.ref.current);
9064
9064
  if (v === "last") x.reverse();
9065
9065
  else if (v === "prev" || v === "next") {
9066
9066
  v === "prev" && x.reverse();
9067
- const C = x.indexOf(y.currentTarget);
9068
- x = u.loop ? Bx(x, C + 1) : x.slice(C + 1);
9067
+ const k = x.indexOf(y.currentTarget);
9068
+ x = u.loop ? Bx(x, k + 1) : x.slice(k + 1);
9069
9069
  }
9070
9070
  setTimeout(() => Iu(x));
9071
9071
  }
@@ -9373,7 +9373,7 @@ const nw = te("flex gap-2", {
9373
9373
  ew,
9374
9374
  {
9375
9375
  ref: n,
9376
- className: M(rw(), e),
9376
+ className: P(rw(), e),
9377
9377
  ...t,
9378
9378
  children: /* @__PURE__ */ h.jsx(tw, { className: "flex items-center justify-center", children: /* @__PURE__ */ h.jsx(Xy, { className: "h-2.5 w-2.5 fill-current" }) })
9379
9379
  }
@@ -9383,7 +9383,7 @@ const sw = g.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ h.jsx(
9383
9383
  "label",
9384
9384
  {
9385
9385
  ref: n,
9386
- className: M(
9386
+ className: P(
9387
9387
  "text-sm font-medium text-[var(--atom-card-fg)] cursor-pointer",
9388
9388
  e
9389
9389
  ),
@@ -9395,7 +9395,7 @@ const iw = g.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ h.jsx(
9395
9395
  "div",
9396
9396
  {
9397
9397
  ref: n,
9398
- className: M("flex items-center gap-2", e),
9398
+ className: P("flex items-center gap-2", e),
9399
9399
  ...t
9400
9400
  }
9401
9401
  ));
@@ -9404,7 +9404,7 @@ const aw = g.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ h.jsx(
9404
9404
  "p",
9405
9405
  {
9406
9406
  ref: n,
9407
- className: M("text-sm text-[var(--atom-text-muted)]", e),
9407
+ className: P("text-sm text-[var(--atom-text-muted)]", e),
9408
9408
  ...t
9409
9409
  }
9410
9410
  ));
@@ -9413,7 +9413,7 @@ const cw = g.forwardRef(({ className: e, direction: t, ...n }, r) => /* @__PURE_
9413
9413
  Jx,
9414
9414
  {
9415
9415
  ref: r,
9416
- className: M(nw({ direction: t }), e),
9416
+ className: P(nw({ direction: t }), e),
9417
9417
  ...n
9418
9418
  }
9419
9419
  ));
@@ -9480,7 +9480,7 @@ const lw = te(
9480
9480
  {
9481
9481
  ref: l,
9482
9482
  "data-slot": "stat-card",
9483
- className: M(lw({ order: t, size: n }), i),
9483
+ className: P(lw({ order: t, size: n }), i),
9484
9484
  ...c,
9485
9485
  children: a ?? /* @__PURE__ */ h.jsxs(h.Fragment, { children: [
9486
9486
  /* @__PURE__ */ h.jsx("div", { className: uw({ variant: e }), children: o }),
@@ -9573,7 +9573,7 @@ const mw = te(
9573
9573
  {
9574
9574
  ref: u,
9575
9575
  "data-slot": "stat-card",
9576
- className: M(
9576
+ className: P(
9577
9577
  mw({ variant: t, size: n, appearance: r, fullWidth: o }),
9578
9578
  e
9579
9579
  ),
@@ -9656,7 +9656,7 @@ const pw = te(
9656
9656
  {
9657
9657
  ref: l,
9658
9658
  "data-slot": "stat-card-priority",
9659
- className: M(
9659
+ className: P(
9660
9660
  pw({ variant: t, size: n, appearance: r }),
9661
9661
  e
9662
9662
  ),
@@ -9666,7 +9666,7 @@ const pw = te(
9666
9666
  /* @__PURE__ */ h.jsxs(
9667
9667
  "span",
9668
9668
  {
9669
- className: M(
9669
+ className: P(
9670
9670
  "inline-flex items-center justify-center rounded-md px-2.5 py-1 text-xs font-medium",
9671
9671
  // match priority variant colors for the pill
9672
9672
  t === "high" && "bg-[color-mix(in_srgb,var(--atom-error)_15%,transparent)] text-(--atom-error) border-[color-mix(in_srgb,var(--atom-error)_40%,var(--atom-card-border))] border",
@@ -9771,7 +9771,7 @@ function Sw({ columnKey: e, sortConfig: t, onSortChange: n }) {
9771
9771
  "button",
9772
9772
  {
9773
9773
  onClick: s,
9774
- className: M(
9774
+ className: P(
9775
9775
  "w-4 h-3 p-0 flex items-center justify-center rounded-sm transition-colors duration-200 hover:bg-blue-50 hover:opacity-100 opacity-60",
9776
9776
  r && o === "asc" && "opacity-100 bg-blue-50 border border-blue-300 text-blue-600 scale-110"
9777
9777
  ),
@@ -9794,7 +9794,7 @@ function Sw({ columnKey: e, sortConfig: t, onSortChange: n }) {
9794
9794
  "button",
9795
9795
  {
9796
9796
  onClick: i,
9797
- className: M(
9797
+ className: P(
9798
9798
  "w-4 h-3 p-0 flex items-center justify-center rounded-sm transition-colors duration-200 hover:bg-blue-50 hover:opacity-100 opacity-60 -mt-0.5",
9799
9799
  r && o === "desc" && "opacity-100 bg-blue-50 border border-blue-300 text-blue-600 scale-110"
9800
9800
  ),
@@ -9850,7 +9850,7 @@ hover:text-[color-mix(in_oklab,var(--atom-theme-surface-secondary)_85%,black)] f
9850
9850
  return /* @__PURE__ */ h.jsxs(
9851
9851
  "label",
9852
9852
  {
9853
- className: M(
9853
+ className: P(
9854
9854
  "flex items-center gap-3 px-3 py-2.5 text-sm rounded-md cursor-pointer transition-colors text-(--atom-theme-text-primary) font-medium hover:text-[color-mix(in_oklab,var(--atom-theme-surface-secondary)_85%,black)]",
9855
9855
  a && "opacity-50 cursor-not-allowed"
9856
9856
  ),
@@ -9883,7 +9883,7 @@ function Tw({
9883
9883
  filters: n,
9884
9884
  onFilterChange: r
9885
9885
  }) {
9886
- const [o, s] = me(null), i = Ce(() => {
9886
+ const [o, s] = fe(null), i = Ce(() => {
9887
9887
  const u = {};
9888
9888
  t.forEach((f) => {
9889
9889
  e.forEach((m) => {
@@ -10059,8 +10059,8 @@ function Pw(e) {
10059
10059
  columnVisibility: p,
10060
10060
  onColumnVisibilityChange: y,
10061
10061
  handleDownload: v
10062
- } = e, w = ue(null), x = ue(null), C = t || n || r || o;
10063
- if (de(() => {
10062
+ } = e, w = de(null), x = de(null), k = t || n || r || o;
10063
+ if (ue(() => {
10064
10064
  const D = (T) => {
10065
10065
  a && w.current && !w.current.contains(T.target) && c(!1), l && x.current && !x.current.contains(T.target) && u(!1);
10066
10066
  };
@@ -10070,8 +10070,8 @@ function Pw(e) {
10070
10070
  l,
10071
10071
  c,
10072
10072
  u
10073
- ]), !C) return null;
10074
- const k = Object.values(m).reduce(
10073
+ ]), !k) return null;
10074
+ const C = Object.values(m).reduce(
10075
10075
  (D, T) => D + T.length,
10076
10076
  0
10077
10077
  );
@@ -10098,7 +10098,7 @@ function Pw(e) {
10098
10098
  filters: m,
10099
10099
  columns: d,
10100
10100
  onFilterChange: b,
10101
- activeFilterCount: k
10101
+ activeFilterCount: C
10102
10102
  }
10103
10103
  ),
10104
10104
  /* @__PURE__ */ h.jsxs("div", { className: "relative", ref: w, children: [
@@ -10107,7 +10107,7 @@ function Pw(e) {
10107
10107
  {
10108
10108
  type: "button",
10109
10109
  onClick: () => c(!a),
10110
- className: M(
10110
+ className: P(
10111
10111
  "flex h-8 items-center gap-2 rounded-md border px-3 text-xs font-medium transition-colors border-(--atom-theme-border-primary) hover:bg-[color-mix(in_oklab,var(--atom-theme-surface-primary)_97%,black)] dark:hover:bg-[color-mix(in_oklab,var(--atom-theme-surface-primary)_85%,black)] bg-(--atom-theme-surface-primary) cursor-pointer ",
10112
10112
  ""
10113
10113
  ),
@@ -10116,12 +10116,12 @@ function Pw(e) {
10116
10116
  "aria-haspopup": "true",
10117
10117
  children: [
10118
10118
  /* @__PURE__ */ h.jsx(yw, { className: "h-4 w-4" }),
10119
- k > 0 && /* @__PURE__ */ h.jsx("span", { className: `bg-(--atom-theme-surface-secondary) \r
10119
+ C > 0 && /* @__PURE__ */ h.jsx("span", { className: `bg-(--atom-theme-surface-secondary) \r
10120
10120
  text-white text-xs \r
10121
10121
  px-1.5 py-1.5 \r
10122
10122
  rounded-full \r
10123
10123
  inline-flex items-center justify-center \r
10124
- leading-none text-center`, children: k })
10124
+ leading-none text-center`, children: C })
10125
10125
  ]
10126
10126
  }
10127
10127
  ),
@@ -10142,7 +10142,7 @@ function Pw(e) {
10142
10142
  {
10143
10143
  type: "button",
10144
10144
  onClick: () => u(!l),
10145
- className: M(
10145
+ className: P(
10146
10146
  "flex h-8 items-center gap-2 rounded-md border px-3 text-xs font-medium transition-colors border-(--atom-theme-border-primary) hover:bg-[color-mix(in_oklab,var(--atom-theme-surface-primary)_97%,black)] dark:hover:bg-[color-mix(in_oklab,var(--atom-theme-surface-primary)_85%,black)] bg-(--atom-theme-surface-primary) cursor-pointer",
10147
10147
  ""
10148
10148
  ),
@@ -10212,7 +10212,7 @@ function Mw(e) {
10212
10212
  {
10213
10213
  onClick: () => i(o - 1),
10214
10214
  disabled: o === 1,
10215
- className: M(
10215
+ className: P(
10216
10216
  "flex h-9 w-9 items-center justify-center rounded-full border transition-colors",
10217
10217
  o === 1 ? "bg-gray-100 text-gray-400 cursor-not-allowed border-gray-200" : "bg-white hover:bg-gray-50 text-(--atom-text-primary,#0f172a) border-(--atom-border-subtle,#e2e8f0) hover:border-gray-300 cursor-pointer"
10218
10218
  ),
@@ -10224,7 +10224,7 @@ function Mw(e) {
10224
10224
  "button",
10225
10225
  {
10226
10226
  onClick: () => i(a),
10227
- className: M(
10227
+ className: P(
10228
10228
  "min-w-9 h-9 rounded-md text-sm font-medium flex items-center justify-center border transition-colors px-2 cursor-pointer",
10229
10229
  o === a ? "bg-(--atom-primary,#3b82f6) text-white border-(--atom-primary,#3b82f6)" : "bg-white hover:bg-gray-50 text-(--atom-text-primary,#0f172a) border-(--atom-border-subtle,#e2e8f0) hover:border-gray-300"
10230
10230
  ),
@@ -10239,7 +10239,7 @@ function Mw(e) {
10239
10239
  {
10240
10240
  onClick: () => i(o + 1),
10241
10241
  disabled: o === s,
10242
- className: M(
10242
+ className: P(
10243
10243
  "flex h-9 w-9 items-center justify-center rounded-full border transition-colors",
10244
10244
  o === s ? "bg-gray-100 text-gray-400 cursor-not-allowed border-gray-200" : "bg-white hover:bg-gray-50 text-(--atom-text-primary,#0f172a) border-(--atom-border-subtle,#e2e8f0) hover:border-gray-300 cursor-pointer"
10245
10245
  ),
@@ -10257,25 +10257,25 @@ function yE({
10257
10257
  className: r,
10258
10258
  options: o
10259
10259
  }) {
10260
- const [s, i] = me(1), [a, c] = me(""), [l, u] = me(!1), [d, f] = me(!1), [m, b] = me({}), [p, y] = me({ key: null, direction: "asc" }), [v, w] = me(() => e.reduce((A, G) => ({ ...A, [G.key]: !0 }), {})), x = 10, {
10261
- search: C = !1,
10262
- download: k = !1,
10260
+ const [s, i] = fe(1), [a, c] = fe(""), [l, u] = fe(!1), [d, f] = fe(!1), [m, b] = fe({}), [p, y] = fe({ key: null, direction: "asc" }), [v, w] = fe(() => e.reduce((A, G) => ({ ...A, [G.key]: !0 }), {})), x = 10, {
10261
+ search: k = !1,
10262
+ download: C = !1,
10263
10263
  viewColumns: D = !1,
10264
10264
  filter: T = !1,
10265
10265
  filterType: S = "dropdown",
10266
10266
  tableBodyHeight: N,
10267
- tableBodyMaxHeight: P
10267
+ tableBodyMaxHeight: M
10268
10268
  } = o || {}, O = Ce(
10269
10269
  () => e.filter((A) => v[A.key]),
10270
10270
  [e, v]
10271
- ), _ = (A) => A == null ? "" : String(A).toLowerCase().replace(/[^a-z0-9\s]/g, ""), B = _(a.trim()), z = Ce(
10272
- () => !C || !B ? t : t.filter(
10271
+ ), _ = (A) => A == null ? "" : String(A).toLowerCase().replace(/[^a-z0-9\s]/g, ""), L = _(a.trim()), W = Ce(
10272
+ () => !k || !L ? t : t.filter(
10273
10273
  (A) => e.some((G) => {
10274
10274
  const ne = G.selector ? G.selector(A) : A[G.key];
10275
- return _(ne).includes(B);
10275
+ return _(ne).includes(L);
10276
10276
  })
10277
10277
  ),
10278
- [t, e, C, B]
10278
+ [t, e, k, L]
10279
10279
  ), K = ce(
10280
10280
  (A) => p.key ? [...A].sort((G, ne) => {
10281
10281
  const Z = e.find((ro) => ro.key === p.key);
@@ -10291,8 +10291,8 @@ function yE({
10291
10291
  return Cn < sr ? p.direction === "asc" ? -1 : 1 : Cn > sr ? p.direction === "asc" ? 1 : -1 : 0;
10292
10292
  }) : A,
10293
10293
  [p.key, p.direction, e]
10294
- ), $ = Ce(() => {
10295
- let A = z;
10294
+ ), z = Ce(() => {
10295
+ let A = W;
10296
10296
  return Object.entries(m).forEach(([G, ne]) => {
10297
10297
  ne.length > 0 && (A = A.filter((Z) => {
10298
10298
  const re = e.find((Me) => Me.key === G);
@@ -10301,7 +10301,7 @@ function yE({
10301
10301
  return ne.includes(String(Se));
10302
10302
  }));
10303
10303
  }), K(A);
10304
- }, [z, m, e, K]), W = ce(
10304
+ }, [W, m, e, K]), $ = ce(
10305
10305
  (A) => {
10306
10306
  if (A.length === 0) return "";
10307
10307
  const G = O.map((Z) => `"${Z.name.replace(/"/g, '""')}"`).join(","), ne = A.map(
@@ -10315,15 +10315,15 @@ function yE({
10315
10315
  },
10316
10316
  [O]
10317
10317
  ), R = ce(() => {
10318
- if (!k) return;
10319
- const A = W($), G = new Blob([`\uFEFF${A}`], {
10318
+ if (!C) return;
10319
+ const A = $(z), G = new Blob([`\uFEFF${A}`], {
10320
10320
  type: "text/csv;charset=utf-8"
10321
10321
  }), ne = window.URL.createObjectURL(G), Z = document.createElement("a");
10322
10322
  Z.href = ne, Z.download = `table-export-${(/* @__PURE__ */ new Date()).toISOString().slice(0, 10)}.csv`, document.body.appendChild(Z), Z.click(), document.body.removeChild(Z), window.URL.revokeObjectURL(ne);
10323
- }, [k, $, W]), H = Math.ceil($.length / x), ee = n ? $.slice(
10323
+ }, [C, z, $]), H = Math.ceil(z.length / x), ee = n ? z.slice(
10324
10324
  (s - 1) * x,
10325
10325
  s * x
10326
- ) : $, E = ce(
10326
+ ) : z, E = ce(
10327
10327
  (A, G) => {
10328
10328
  y({ key: A, direction: G }), i(1);
10329
10329
  },
@@ -10344,9 +10344,9 @@ function yE({
10344
10344
  },
10345
10345
  [H]
10346
10346
  );
10347
- de(() => {
10347
+ ue(() => {
10348
10348
  i(1);
10349
- }, [a, m, p]), de(() => {
10349
+ }, [a, m, p]), ue(() => {
10350
10350
  w(
10351
10351
  e.reduce((A, G) => ({ ...A, [G.key]: !0 }), {})
10352
10352
  );
@@ -10355,7 +10355,7 @@ function yE({
10355
10355
  return /* @__PURE__ */ h.jsxs(
10356
10356
  "div",
10357
10357
  {
10358
- className: M(
10358
+ className: P(
10359
10359
  "w-full overflow-hidden min-h-[60vh] rounded-md border border-(--atom-theme-border-primary) bg-(--atom-theme-surface-primary) ",
10360
10360
  r
10361
10361
  ),
@@ -10363,8 +10363,8 @@ function yE({
10363
10363
  /* @__PURE__ */ h.jsx(
10364
10364
  Pw,
10365
10365
  {
10366
- search: C,
10367
- download: k,
10366
+ search: k,
10367
+ download: C,
10368
10368
  viewColumns: D,
10369
10369
  filter: T,
10370
10370
  filterType: S,
@@ -10387,14 +10387,14 @@ function yE({
10387
10387
  "div",
10388
10388
  {
10389
10389
  className: "overflow-x-auto",
10390
- style: { height: N, maxHeight: P },
10390
+ style: { height: N, maxHeight: M },
10391
10391
  children: /* @__PURE__ */ h.jsxs(
10392
10392
  "table",
10393
10393
  {
10394
10394
  className: "w-full border-collapse text-left text-sm rounded-md",
10395
10395
  role: "table",
10396
10396
  "aria-label": "Data table",
10397
- "aria-rowcount": $.length,
10397
+ "aria-rowcount": z.length,
10398
10398
  "aria-colcount": O.length,
10399
10399
  children: [
10400
10400
  /* @__PURE__ */ h.jsx("thead", { className: "bg-[color-mix(in_oklab,var(--atom-theme-surface-tertiary)_50%,transparent)] border-b border-(--atom-theme-border-primary)", children: /* @__PURE__ */ h.jsx("tr", { role: "row", children: O.map((A, G) => {
@@ -10481,7 +10481,7 @@ function yE({
10481
10481
  Mw,
10482
10482
  {
10483
10483
  pagination: n,
10484
- dataLength: $.length,
10484
+ dataLength: z.length,
10485
10485
  rowsPerPage: x,
10486
10486
  currentPage: s,
10487
10487
  totalPages: H,
@@ -10573,7 +10573,7 @@ const Nw = te(
10573
10573
  children: i,
10574
10574
  ...a
10575
10575
  }, c) => {
10576
- const [l, u] = me(e), d = t !== void 0, f = d ? t : l, m = ce(
10576
+ const [l, u] = fe(e), d = t !== void 0, f = d ? t : l, m = ce(
10577
10577
  (p) => {
10578
10578
  d || u(p), n?.(p);
10579
10579
  },
@@ -10592,7 +10592,7 @@ const Nw = te(
10592
10592
  {
10593
10593
  ref: c,
10594
10594
  "data-orientation": o,
10595
- className: M("w-full ", s),
10595
+ className: P("w-full ", s),
10596
10596
  ...a,
10597
10597
  children: i
10598
10598
  }
@@ -10610,7 +10610,7 @@ const jw = ve(
10610
10610
  role: "tablist",
10611
10611
  "aria-label": n,
10612
10612
  "aria-orientation": s,
10613
- className: M(Nw({ variant: i, orientation: s }), e),
10613
+ className: P(Nw({ variant: i, orientation: s }), e),
10614
10614
  ...r,
10615
10615
  children: t
10616
10616
  }
@@ -10620,8 +10620,8 @@ const jw = ve(
10620
10620
  jw.displayName = "TabsList";
10621
10621
  const _w = ve(
10622
10622
  ({ className: e, value: t, disabled: n, asChild: r = !1, children: o, ...s }, i) => {
10623
- const { activeTab: a, setActiveTab: c, variant: l, orientation: u } = $s(), d = a === t, f = ue(null), m = ue(null);
10624
- Vm(i, () => m.current, []), de(() => {
10623
+ const { activeTab: a, setActiveTab: c, variant: l, orientation: u } = $s(), d = a === t, f = de(null), m = de(null);
10624
+ Vm(i, () => m.current, []), ue(() => {
10625
10625
  m.current && (f.current = m.current.closest('[role="tablist"]'));
10626
10626
  }, []);
10627
10627
  const b = (y) => {
@@ -10632,19 +10632,19 @@ const _w = ve(
10632
10632
  )
10633
10633
  ), w = v.indexOf(m.current);
10634
10634
  let x = -1;
10635
- const C = u === "horizontal";
10635
+ const k = u === "horizontal";
10636
10636
  switch (y.key) {
10637
10637
  case "ArrowLeft":
10638
- C && (y.preventDefault(), x = w - 1, x < 0 && (x = v.length - 1));
10638
+ k && (y.preventDefault(), x = w - 1, x < 0 && (x = v.length - 1));
10639
10639
  break;
10640
10640
  case "ArrowRight":
10641
- C && (y.preventDefault(), x = (w + 1) % v.length);
10641
+ k && (y.preventDefault(), x = (w + 1) % v.length);
10642
10642
  break;
10643
10643
  case "ArrowUp":
10644
- C || (y.preventDefault(), x = w - 1, x < 0 && (x = v.length - 1));
10644
+ k || (y.preventDefault(), x = w - 1, x < 0 && (x = v.length - 1));
10645
10645
  break;
10646
10646
  case "ArrowDown":
10647
- C || (y.preventDefault(), x = (w + 1) % v.length);
10647
+ k || (y.preventDefault(), x = (w + 1) % v.length);
10648
10648
  break;
10649
10649
  case "Home":
10650
10650
  y.preventDefault(), x = 0;
@@ -10655,8 +10655,8 @@ const _w = ve(
10655
10655
  }
10656
10656
  if (x !== -1 && v[x]) {
10657
10657
  v[x].focus();
10658
- const k = v[x].getAttribute("data-value");
10659
- k && c(k);
10658
+ const C = v[x].getAttribute("data-value");
10659
+ C && c(C);
10660
10660
  }
10661
10661
  }, p = r ? Ie : "button";
10662
10662
  return /* @__PURE__ */ h.jsx(
@@ -10672,7 +10672,7 @@ const _w = ve(
10672
10672
  "data-value": t,
10673
10673
  tabIndex: d ? 0 : -1,
10674
10674
  disabled: n,
10675
- className: M(Aw({ variant: l }), e),
10675
+ className: P(Aw({ variant: l }), e),
10676
10676
  onClick: () => c(t),
10677
10677
  onKeyDown: b,
10678
10678
  ...s,
@@ -10693,7 +10693,7 @@ const Iw = ve(
10693
10693
  id: `tabpanel-${t}`,
10694
10694
  "aria-labelledby": `tab-${t}`,
10695
10695
  tabIndex: 0,
10696
- className: M(Rw({ orientation: i }), e),
10696
+ className: P(Rw({ orientation: i }), e),
10697
10697
  ...r,
10698
10698
  children: n
10699
10699
  }
@@ -10747,7 +10747,7 @@ const Vw = te(
10747
10747
  {
10748
10748
  ref: i,
10749
10749
  "data-slot": "text",
10750
- className: M(Vw({ size: n, weight: r, variant: o }), e),
10750
+ className: P(Vw({ size: n, weight: r, variant: o }), e),
10751
10751
  ...s
10752
10752
  }
10753
10753
  );
@@ -10807,7 +10807,7 @@ const Lw = te(
10807
10807
  ref: s,
10808
10808
  "data-slot": "textArea",
10809
10809
  placeholder: r ?? " ",
10810
- className: M(Lw({ variant: t, size: n }), e),
10810
+ className: P(Lw({ variant: t, size: n }), e),
10811
10811
  ...o
10812
10812
  }
10813
10813
  )
@@ -10989,8 +10989,8 @@ const Qw = async (e, t, n) => {
10989
10989
  } = a[p], {
10990
10990
  x: w,
10991
10991
  y: x,
10992
- data: C,
10993
- reset: k
10992
+ data: k,
10993
+ reset: C
10994
10994
  } = await v({
10995
10995
  x: u,
10996
10996
  y: d,
@@ -11009,13 +11009,13 @@ const Qw = async (e, t, n) => {
11009
11009
  ...m,
11010
11010
  [y]: {
11011
11011
  ...m[y],
11012
- ...C
11012
+ ...k
11013
11013
  }
11014
- }, k && b <= 50 && (b++, typeof k == "object" && (k.placement && (f = k.placement), k.rects && (l = k.rects === !0 ? await i.getElementRects({
11014
+ }, C && b <= 50 && (b++, typeof C == "object" && (C.placement && (f = C.placement), C.rects && (l = C.rects === !0 ? await i.getElementRects({
11015
11015
  reference: e,
11016
11016
  floating: t,
11017
11017
  strategy: o
11018
- }) : k.rects), {
11018
+ }) : C.rects), {
11019
11019
  x: u,
11020
11020
  y: d
11021
11021
  } = Sa(l, f, c)), p = -1);
@@ -11054,23 +11054,23 @@ async function Ln(e, t) {
11054
11054
  y: o,
11055
11055
  width: i.floating.width,
11056
11056
  height: i.floating.height
11057
- } : i.reference, x = await (s.getOffsetParent == null ? void 0 : s.getOffsetParent(a.floating)), C = await (s.isElement == null ? void 0 : s.isElement(x)) ? await (s.getScale == null ? void 0 : s.getScale(x)) || {
11057
+ } : i.reference, x = await (s.getOffsetParent == null ? void 0 : s.getOffsetParent(a.floating)), k = await (s.isElement == null ? void 0 : s.isElement(x)) ? await (s.getScale == null ? void 0 : s.getScale(x)) || {
11058
11058
  x: 1,
11059
11059
  y: 1
11060
11060
  } : {
11061
11061
  x: 1,
11062
11062
  y: 1
11063
- }, k = Rr(s.convertOffsetParentRelativeRectToViewportRelativeRect ? await s.convertOffsetParentRelativeRectToViewportRelativeRect({
11063
+ }, C = Rr(s.convertOffsetParentRelativeRectToViewportRelativeRect ? await s.convertOffsetParentRelativeRectToViewportRelativeRect({
11064
11064
  elements: a,
11065
11065
  rect: w,
11066
11066
  offsetParent: x,
11067
11067
  strategy: c
11068
11068
  }) : w);
11069
11069
  return {
11070
- top: (v.top - k.top + b.top) / C.y,
11071
- bottom: (k.bottom - v.bottom + b.bottom) / C.y,
11072
- left: (v.left - k.left + b.left) / C.x,
11073
- right: (k.right - v.right + b.right) / C.x
11070
+ top: (v.top - C.top + b.top) / k.y,
11071
+ bottom: (C.bottom - v.bottom + b.bottom) / k.y,
11072
+ left: (v.left - C.left + b.left) / k.x,
11073
+ right: (C.right - v.right + b.right) / k.x
11074
11074
  };
11075
11075
  }
11076
11076
  const Jw = (e) => ({
@@ -11094,20 +11094,20 @@ const Jw = (e) => ({
11094
11094
  const d = Zu(u), f = {
11095
11095
  x: n,
11096
11096
  y: r
11097
- }, m = Hs(o), b = Ys(m), p = await i.getDimensions(l), y = m === "y", v = y ? "top" : "left", w = y ? "bottom" : "right", x = y ? "clientHeight" : "clientWidth", C = s.reference[b] + s.reference[m] - f[m] - s.floating[b], k = f[m] - s.reference[m], D = await (i.getOffsetParent == null ? void 0 : i.getOffsetParent(l));
11097
+ }, m = Hs(o), b = Ys(m), p = await i.getDimensions(l), y = m === "y", v = y ? "top" : "left", w = y ? "bottom" : "right", x = y ? "clientHeight" : "clientWidth", k = s.reference[b] + s.reference[m] - f[m] - s.floating[b], C = f[m] - s.reference[m], D = await (i.getOffsetParent == null ? void 0 : i.getOffsetParent(l));
11098
11098
  let T = D ? D[x] : 0;
11099
11099
  (!T || !await (i.isElement == null ? void 0 : i.isElement(D))) && (T = a.floating[x] || s.floating[b]);
11100
- const S = C / 2 - k / 2, N = T / 2 - p[b] / 2 - 1, P = Dt(d[v], N), O = Dt(d[w], N), _ = P, B = T - p[b] - O, z = T / 2 - p[b] / 2 + S, K = qo(_, z, B), $ = !c.arrow && gn(o) != null && z !== K && s.reference[b] / 2 - (z < _ ? P : O) - p[b] / 2 < 0, W = $ ? z < _ ? z - _ : z - B : 0;
11100
+ const S = k / 2 - C / 2, N = T / 2 - p[b] / 2 - 1, M = Dt(d[v], N), O = Dt(d[w], N), _ = M, L = T - p[b] - O, W = T / 2 - p[b] / 2 + S, K = qo(_, W, L), z = !c.arrow && gn(o) != null && W !== K && s.reference[b] / 2 - (W < _ ? M : O) - p[b] / 2 < 0, $ = z ? W < _ ? W - _ : W - L : 0;
11101
11101
  return {
11102
- [m]: f[m] + W,
11102
+ [m]: f[m] + $,
11103
11103
  data: {
11104
11104
  [m]: K,
11105
- centerOffset: z - K - W,
11106
- ...$ && {
11107
- alignmentOffset: W
11105
+ centerOffset: W - K - $,
11106
+ ...z && {
11107
+ alignmentOffset: $
11108
11108
  }
11109
11109
  },
11110
- reset: $
11110
+ reset: z
11111
11111
  };
11112
11112
  }
11113
11113
  }), e0 = function(e) {
@@ -11134,38 +11134,38 @@ const Jw = (e) => ({
11134
11134
  } = ht(e, t);
11135
11135
  if ((n = s.arrow) != null && n.alignmentOffset)
11136
11136
  return {};
11137
- const v = pt(o), w = nt(a), x = pt(a) === a, C = await (c.isRTL == null ? void 0 : c.isRTL(l.floating)), k = f || (x || !p ? [Ar(a)] : Uw(a)), D = b !== "none";
11138
- !f && D && k.push(...Xw(a, p, b, C));
11139
- const T = [a, ...k], S = await Ln(t, y), N = [];
11140
- let P = ((r = s.flip) == null ? void 0 : r.overflows) || [];
11137
+ const v = pt(o), w = nt(a), x = pt(a) === a, k = await (c.isRTL == null ? void 0 : c.isRTL(l.floating)), C = f || (x || !p ? [Ar(a)] : Uw(a)), D = b !== "none";
11138
+ !f && D && C.push(...Xw(a, p, b, k));
11139
+ const T = [a, ...C], S = await Ln(t, y), N = [];
11140
+ let M = ((r = s.flip) == null ? void 0 : r.overflows) || [];
11141
11141
  if (u && N.push(S[v]), d) {
11142
- const z = Hw(o, i, C);
11143
- N.push(S[z[0]], S[z[1]]);
11142
+ const W = Hw(o, i, k);
11143
+ N.push(S[W[0]], S[W[1]]);
11144
11144
  }
11145
- if (P = [...P, {
11145
+ if (M = [...M, {
11146
11146
  placement: o,
11147
11147
  overflows: N
11148
- }], !N.every((z) => z <= 0)) {
11148
+ }], !N.every((W) => W <= 0)) {
11149
11149
  var O, _;
11150
- const z = (((O = s.flip) == null ? void 0 : O.index) || 0) + 1, K = T[z];
11150
+ const W = (((O = s.flip) == null ? void 0 : O.index) || 0) + 1, K = T[W];
11151
11151
  if (K && (!(d === "alignment" ? w !== nt(K) : !1) || // We leave the current main axis only if every placement on that axis
11152
11152
  // overflows the main axis.
11153
- P.every((R) => nt(R.placement) === w ? R.overflows[0] > 0 : !0)))
11153
+ M.every((R) => nt(R.placement) === w ? R.overflows[0] > 0 : !0)))
11154
11154
  return {
11155
11155
  data: {
11156
- index: z,
11157
- overflows: P
11156
+ index: W,
11157
+ overflows: M
11158
11158
  },
11159
11159
  reset: {
11160
11160
  placement: K
11161
11161
  }
11162
11162
  };
11163
- let $ = (_ = P.filter((W) => W.overflows[0] <= 0).sort((W, R) => W.overflows[1] - R.overflows[1])[0]) == null ? void 0 : _.placement;
11164
- if (!$)
11163
+ let z = (_ = M.filter(($) => $.overflows[0] <= 0).sort(($, R) => $.overflows[1] - R.overflows[1])[0]) == null ? void 0 : _.placement;
11164
+ if (!z)
11165
11165
  switch (m) {
11166
11166
  case "bestFit": {
11167
- var B;
11168
- const W = (B = P.filter((R) => {
11167
+ var L;
11168
+ const $ = (L = M.filter((R) => {
11169
11169
  if (D) {
11170
11170
  const H = nt(R.placement);
11171
11171
  return H === w || // Create a bias to the `y` side axis due to horizontal
@@ -11173,18 +11173,18 @@ const Jw = (e) => ({
11173
11173
  H === "y";
11174
11174
  }
11175
11175
  return !0;
11176
- }).map((R) => [R.placement, R.overflows.filter((H) => H > 0).reduce((H, ee) => H + ee, 0)]).sort((R, H) => R[1] - H[1])[0]) == null ? void 0 : B[0];
11177
- W && ($ = W);
11176
+ }).map((R) => [R.placement, R.overflows.filter((H) => H > 0).reduce((H, ee) => H + ee, 0)]).sort((R, H) => R[1] - H[1])[0]) == null ? void 0 : L[0];
11177
+ $ && (z = $);
11178
11178
  break;
11179
11179
  }
11180
11180
  case "initialPlacement":
11181
- $ = a;
11181
+ z = a;
11182
11182
  break;
11183
11183
  }
11184
- if (o !== $)
11184
+ if (o !== z)
11185
11185
  return {
11186
11186
  reset: {
11187
- placement: $
11187
+ placement: z
11188
11188
  }
11189
11189
  };
11190
11190
  }
@@ -11378,13 +11378,13 @@ const r0 = function(e) {
11378
11378
  ...p
11379
11379
  };
11380
11380
  if (c) {
11381
- const x = f === "y" ? "height" : "width", C = s.reference[f] - s.floating[x] + y.mainAxis, k = s.reference[f] + s.reference[x] - y.mainAxis;
11382
- m < C ? m = C : m > k && (m = k);
11381
+ const x = f === "y" ? "height" : "width", k = s.reference[f] - s.floating[x] + y.mainAxis, C = s.reference[f] + s.reference[x] - y.mainAxis;
11382
+ m < k ? m = k : m > C && (m = C);
11383
11383
  }
11384
11384
  if (l) {
11385
11385
  var v, w;
11386
- const x = f === "y" ? "width" : "height", C = Qu.has(pt(o)), k = s.reference[d] - s.floating[x] + (C && ((v = i.offset) == null ? void 0 : v[d]) || 0) + (C ? 0 : y.crossAxis), D = s.reference[d] + s.reference[x] + (C ? 0 : ((w = i.offset) == null ? void 0 : w[d]) || 0) - (C ? y.crossAxis : 0);
11387
- b < k ? b = k : b > D && (b = D);
11386
+ const x = f === "y" ? "width" : "height", k = Qu.has(pt(o)), C = s.reference[d] - s.floating[x] + (k && ((v = i.offset) == null ? void 0 : v[d]) || 0) + (k ? 0 : y.crossAxis), D = s.reference[d] + s.reference[x] + (k ? 0 : ((w = i.offset) == null ? void 0 : w[d]) || 0) - (k ? y.crossAxis : 0);
11387
+ b < C ? b = C : b > D && (b = D);
11388
11388
  }
11389
11389
  return {
11390
11390
  [f]: m,
@@ -11413,11 +11413,11 @@ const r0 = function(e) {
11413
11413
  } = s.floating;
11414
11414
  let y, v;
11415
11415
  d === "top" || d === "bottom" ? (y = d, v = f === (await (i.isRTL == null ? void 0 : i.isRTL(a.floating)) ? "start" : "end") ? "left" : "right") : (v = d, y = f === "end" ? "top" : "bottom");
11416
- const w = p - u.top - u.bottom, x = b - u.left - u.right, C = Dt(p - u[y], w), k = Dt(b - u[v], x), D = !t.middlewareData.shift;
11417
- let T = C, S = k;
11416
+ const w = p - u.top - u.bottom, x = b - u.left - u.right, k = Dt(p - u[y], w), C = Dt(b - u[v], x), D = !t.middlewareData.shift;
11417
+ let T = k, S = C;
11418
11418
  if ((n = t.middlewareData.shift) != null && n.enabled.x && (S = x), (r = t.middlewareData.shift) != null && r.enabled.y && (T = w), D && !f) {
11419
- const P = Le(u.left, 0), O = Le(u.right, 0), _ = Le(u.top, 0), B = Le(u.bottom, 0);
11420
- m ? S = b - 2 * (P !== 0 || O !== 0 ? P + O : Le(u.left, u.right)) : T = p - 2 * (_ !== 0 || B !== 0 ? _ + B : Le(u.top, u.bottom));
11419
+ const M = Le(u.left, 0), O = Le(u.right, 0), _ = Le(u.top, 0), L = Le(u.bottom, 0);
11420
+ m ? S = b - 2 * (M !== 0 || O !== 0 ? M + O : Le(u.left, u.right)) : T = p - 2 * (_ !== 0 || L !== 0 ? _ + L : Le(u.top, u.bottom));
11421
11421
  }
11422
11422
  await c({
11423
11423
  ...t,
@@ -11597,8 +11597,8 @@ function $t(e, t, n, r) {
11597
11597
  const f = We(s), m = r && Xe(r) ? We(r) : r;
11598
11598
  let b = f, p = Xo(b);
11599
11599
  for (; p && r && m !== b; ) {
11600
- const y = rn(p), v = p.getBoundingClientRect(), w = Ze(p), x = v.left + (p.clientLeft + parseFloat(w.paddingLeft)) * y.x, C = v.top + (p.clientTop + parseFloat(w.paddingTop)) * y.y;
11601
- c *= y.x, l *= y.y, u *= y.x, d *= y.y, c += x, l += C, b = We(p), p = Xo(b);
11600
+ const y = rn(p), v = p.getBoundingClientRect(), w = Ze(p), x = v.left + (p.clientLeft + parseFloat(w.paddingLeft)) * y.x, k = v.top + (p.clientTop + parseFloat(w.paddingTop)) * y.y;
11601
+ c *= y.x, l *= y.y, u *= y.x, d *= y.y, c += x, l += k, b = We(p), p = Xo(b);
11602
11602
  }
11603
11603
  }
11604
11604
  return Rr({
@@ -11859,26 +11859,26 @@ function A0(e, t) {
11859
11859
  rootMargin: -b + "px " + -p + "px " + -y + "px " + -v + "px",
11860
11860
  threshold: Le(0, Dt(1, c)) || 1
11861
11861
  };
11862
- let C = !0;
11863
- function k(D) {
11862
+ let k = !0;
11863
+ function C(D) {
11864
11864
  const T = D[0].intersectionRatio;
11865
11865
  if (T !== c) {
11866
- if (!C)
11866
+ if (!k)
11867
11867
  return i();
11868
11868
  T ? i(!1, T) : r = setTimeout(() => {
11869
11869
  i(!1, 1e-7);
11870
11870
  }, 1e3);
11871
11871
  }
11872
- T === 1 && !id(l, e.getBoundingClientRect()) && i(), C = !1;
11872
+ T === 1 && !id(l, e.getBoundingClientRect()) && i(), k = !1;
11873
11873
  }
11874
11874
  try {
11875
- n = new IntersectionObserver(k, {
11875
+ n = new IntersectionObserver(C, {
11876
11876
  ...x,
11877
11877
  // Handle <iframe>s
11878
11878
  root: o.ownerDocument
11879
11879
  });
11880
11880
  } catch {
11881
- n = new IntersectionObserver(k, x);
11881
+ n = new IntersectionObserver(C, x);
11882
11882
  }
11883
11883
  n.observe(e);
11884
11884
  }
@@ -12005,7 +12005,7 @@ function $0(e) {
12005
12005
  R !== D.current && (D.current = R, p(R));
12006
12006
  }, []), x = g.useCallback((R) => {
12007
12007
  R !== T.current && (T.current = R, v(R));
12008
- }, []), C = s || b, k = i || y, D = g.useRef(null), T = g.useRef(null), S = g.useRef(u), N = c != null, P = Do(c), O = Do(o), _ = Do(l), B = g.useCallback(() => {
12008
+ }, []), k = s || b, C = i || y, D = g.useRef(null), T = g.useRef(null), S = g.useRef(u), N = c != null, M = Do(c), O = Do(o), _ = Do(l), L = g.useCallback(() => {
12009
12009
  if (!D.current || !T.current)
12010
12010
  return;
12011
12011
  const R = {
@@ -12022,7 +12022,7 @@ function $0(e) {
12022
12022
  // setting it to `true` when `open === false` (must be specified).
12023
12023
  isPositioned: _.current !== !1
12024
12024
  };
12025
- z.current && !Or(S.current, ee) && (S.current = ee, Jc.flushSync(() => {
12025
+ W.current && !Or(S.current, ee) && (S.current = ee, Jc.flushSync(() => {
12026
12026
  d(ee);
12027
12027
  }));
12028
12028
  });
@@ -12033,37 +12033,37 @@ function $0(e) {
12033
12033
  isPositioned: !1
12034
12034
  })));
12035
12035
  }, [l]);
12036
- const z = g.useRef(!1);
12037
- wr(() => (z.current = !0, () => {
12038
- z.current = !1;
12036
+ const W = g.useRef(!1);
12037
+ wr(() => (W.current = !0, () => {
12038
+ W.current = !1;
12039
12039
  }), []), wr(() => {
12040
- if (C && (D.current = C), k && (T.current = k), C && k) {
12041
- if (P.current)
12042
- return P.current(C, k, B);
12043
- B();
12040
+ if (k && (D.current = k), C && (T.current = C), k && C) {
12041
+ if (M.current)
12042
+ return M.current(k, C, L);
12043
+ L();
12044
12044
  }
12045
- }, [C, k, B, P, N]);
12045
+ }, [k, C, L, M, N]);
12046
12046
  const K = g.useMemo(() => ({
12047
12047
  reference: D,
12048
12048
  floating: T,
12049
12049
  setReference: w,
12050
12050
  setFloating: x
12051
- }), [w, x]), $ = g.useMemo(() => ({
12052
- reference: C,
12053
- floating: k
12054
- }), [C, k]), W = g.useMemo(() => {
12051
+ }), [w, x]), z = g.useMemo(() => ({
12052
+ reference: k,
12053
+ floating: C
12054
+ }), [k, C]), $ = g.useMemo(() => {
12055
12055
  const R = {
12056
12056
  position: n,
12057
12057
  left: 0,
12058
12058
  top: 0
12059
12059
  };
12060
- if (!$.floating)
12060
+ if (!z.floating)
12061
12061
  return R;
12062
- const H = Ra($.floating, u.x), ee = Ra($.floating, u.y);
12062
+ const H = Ra(z.floating, u.x), ee = Ra(z.floating, u.y);
12063
12063
  return a ? {
12064
12064
  ...R,
12065
12065
  transform: "translate(" + H + "px, " + ee + "px)",
12066
- ...ad($.floating) >= 1.5 && {
12066
+ ...ad(z.floating) >= 1.5 && {
12067
12067
  willChange: "transform"
12068
12068
  }
12069
12069
  } : {
@@ -12071,14 +12071,14 @@ function $0(e) {
12071
12071
  left: H,
12072
12072
  top: ee
12073
12073
  };
12074
- }, [n, a, $.floating, u.x, u.y]);
12074
+ }, [n, a, z.floating, u.x, u.y]);
12075
12075
  return g.useMemo(() => ({
12076
12076
  ...u,
12077
- update: B,
12077
+ update: L,
12078
12078
  refs: K,
12079
- elements: $,
12080
- floatingStyles: W
12081
- }), [u, B, K, $, W]);
12079
+ elements: z,
12080
+ floatingStyles: $
12081
+ }), [u, L, K, z, $]);
12082
12082
  }
12083
12083
  const z0 = (e) => {
12084
12084
  function t(n) {
@@ -12171,12 +12171,12 @@ var Xs = "PopperContent", [eC, tC] = ld(Xs), pd = g.forwardRef(
12171
12171
  updatePositionStrategy: m = "optimized",
12172
12172
  onPlaced: b,
12173
12173
  ...p
12174
- } = e, y = dd(Xs, n), [v, w] = g.useState(null), x = Ee(t, (A) => w(A)), [C, k] = g.useState(null), D = Ws(C), T = D?.width ?? 0, S = D?.height ?? 0, N = r + (s !== "center" ? "-" + s : ""), P = typeof u == "number" ? u : { top: 0, right: 0, bottom: 0, left: 0, ...u }, O = Array.isArray(l) ? l : [l], _ = O.length > 0, B = {
12175
- padding: P,
12174
+ } = e, y = dd(Xs, n), [v, w] = g.useState(null), x = Ee(t, (A) => w(A)), [k, C] = g.useState(null), D = Ws(k), T = D?.width ?? 0, S = D?.height ?? 0, N = r + (s !== "center" ? "-" + s : ""), M = typeof u == "number" ? u : { top: 0, right: 0, bottom: 0, left: 0, ...u }, O = Array.isArray(l) ? l : [l], _ = O.length > 0, L = {
12175
+ padding: M,
12176
12176
  boundary: O.filter(rC),
12177
12177
  // with `strategy: 'fixed'`, this is the only way to get it to respect boundaries
12178
12178
  altBoundary: _
12179
- }, { refs: z, floatingStyles: K, placement: $, isPositioned: W, middlewareData: R } = $0({
12179
+ }, { refs: W, floatingStyles: K, placement: z, isPositioned: $, middlewareData: R } = $0({
12180
12180
  // default to `fixed` strategy so users don't have to pick and we also avoid focus scroll issues
12181
12181
  strategy: "fixed",
12182
12182
  placement: N,
@@ -12192,35 +12192,35 @@ var Xs = "PopperContent", [eC, tC] = ld(Xs), pd = g.forwardRef(
12192
12192
  mainAxis: !0,
12193
12193
  crossAxis: !1,
12194
12194
  limiter: d === "partial" ? U0() : void 0,
12195
- ...B
12195
+ ...L
12196
12196
  }),
12197
- c && G0({ ...B }),
12197
+ c && G0({ ...L }),
12198
12198
  q0({
12199
- ...B,
12199
+ ...L,
12200
12200
  apply: ({ elements: A, rects: G, availableWidth: ne, availableHeight: Z }) => {
12201
12201
  const { width: re, height: Se } = G.reference, Me = A.floating.style;
12202
12202
  Me.setProperty("--radix-popper-available-width", `${ne}px`), Me.setProperty("--radix-popper-available-height", `${Z}px`), Me.setProperty("--radix-popper-anchor-width", `${re}px`), Me.setProperty("--radix-popper-anchor-height", `${Se}px`);
12203
12203
  }
12204
12204
  }),
12205
- C && X0({ element: C, padding: a }),
12205
+ k && X0({ element: k, padding: a }),
12206
12206
  oC({ arrowWidth: T, arrowHeight: S }),
12207
- f && K0({ strategy: "referenceHidden", ...B })
12207
+ f && K0({ strategy: "referenceHidden", ...L })
12208
12208
  ]
12209
- }), [H, ee] = bd($), E = Wt(b);
12209
+ }), [H, ee] = bd(z), E = Wt(b);
12210
12210
  St(() => {
12211
- W && E?.();
12212
- }, [W, E]);
12211
+ $ && E?.();
12212
+ }, [$, E]);
12213
12213
  const Y = R.arrow?.x, U = R.arrow?.y, X = R.arrow?.centerOffset !== 0, [Pe, _e] = g.useState();
12214
12214
  return St(() => {
12215
12215
  v && _e(window.getComputedStyle(v).zIndex);
12216
12216
  }, [v]), /* @__PURE__ */ h.jsx(
12217
12217
  "div",
12218
12218
  {
12219
- ref: z.setFloating,
12219
+ ref: W.setFloating,
12220
12220
  "data-radix-popper-content-wrapper": "",
12221
12221
  style: {
12222
12222
  ...K,
12223
- transform: W ? K.transform : "translate(0, -200%)",
12223
+ transform: $ ? K.transform : "translate(0, -200%)",
12224
12224
  // keep off the page when measuring
12225
12225
  minWidth: "max-content",
12226
12226
  zIndex: Pe,
@@ -12242,7 +12242,7 @@ var Xs = "PopperContent", [eC, tC] = ld(Xs), pd = g.forwardRef(
12242
12242
  {
12243
12243
  scope: n,
12244
12244
  placedSide: H,
12245
- onArrowChange: k,
12245
+ onArrowChange: C,
12246
12246
  arrowX: Y,
12247
12247
  arrowY: U,
12248
12248
  shouldHideArrow: X,
@@ -12257,7 +12257,7 @@ var Xs = "PopperContent", [eC, tC] = ld(Xs), pd = g.forwardRef(
12257
12257
  ...p.style,
12258
12258
  // if the PopperContent hasn't been placed yet (not all measurements done)
12259
12259
  // we prevent animations so that users's animation don't kick in too early referring wrong sides
12260
- animation: W ? void 0 : "none"
12260
+ animation: $ ? void 0 : "none"
12261
12261
  }
12262
12262
  }
12263
12263
  )
@@ -12418,9 +12418,9 @@ var Bn = "Tooltip", [gC, er] = Xr(Bn), Cd = (e) => {
12418
12418
  T ? (c.onOpen(), document.dispatchEvent(new CustomEvent(Zo))) : c.onClose(), s?.(T);
12419
12419
  },
12420
12420
  caller: Bn
12421
- }), x = g.useMemo(() => v ? y.current ? "delayed-open" : "instant-open" : "closed", [v]), C = g.useCallback(() => {
12421
+ }), x = g.useMemo(() => v ? y.current ? "delayed-open" : "instant-open" : "closed", [v]), k = g.useCallback(() => {
12422
12422
  window.clearTimeout(m.current), m.current = 0, y.current = !1, w(!0);
12423
- }, [w]), k = g.useCallback(() => {
12423
+ }, [w]), C = g.useCallback(() => {
12424
12424
  window.clearTimeout(m.current), m.current = 0, w(!1);
12425
12425
  }, [w]), D = g.useCallback(() => {
12426
12426
  window.clearTimeout(m.current), m.current = window.setTimeout(() => {
@@ -12439,13 +12439,13 @@ var Bn = "Tooltip", [gC, er] = Xr(Bn), Cd = (e) => {
12439
12439
  trigger: u,
12440
12440
  onTriggerChange: d,
12441
12441
  onTriggerEnter: g.useCallback(() => {
12442
- c.isOpenDelayedRef.current ? D() : C();
12443
- }, [c.isOpenDelayedRef, D, C]),
12442
+ c.isOpenDelayedRef.current ? D() : k();
12443
+ }, [c.isOpenDelayedRef, D, k]),
12444
12444
  onTriggerLeave: g.useCallback(() => {
12445
- b ? k() : (window.clearTimeout(m.current), m.current = 0);
12446
- }, [k, b]),
12447
- onOpen: C,
12448
- onClose: k,
12445
+ b ? C() : (window.clearTimeout(m.current), m.current = 0);
12446
+ }, [C, b]),
12447
+ onOpen: k,
12448
+ onClose: C,
12449
12449
  disableHoverableContent: b,
12450
12450
  children: n
12451
12451
  }
@@ -12498,8 +12498,8 @@ var cn = "TooltipContent", Dd = g.forwardRef(
12498
12498
  a(null), d(!1);
12499
12499
  }, [d]), m = g.useCallback(
12500
12500
  (b, p) => {
12501
- const y = b.currentTarget, v = { x: b.clientX, y: b.clientY }, w = kC(v, y.getBoundingClientRect()), x = SC(v, w), C = DC(p.getBoundingClientRect()), k = EC([...x, ...C]);
12502
- a(k), d(!0);
12501
+ const y = b.currentTarget, v = { x: b.clientX, y: b.clientY }, w = kC(v, y.getBoundingClientRect()), x = SC(v, w), k = DC(p.getBoundingClientRect()), C = EC([...x, ...k]);
12502
+ a(C), d(!0);
12503
12503
  },
12504
12504
  [d]
12505
12505
  );
@@ -12722,7 +12722,7 @@ function IC({
12722
12722
  side: i,
12723
12723
  align: a,
12724
12724
  sideOffset: c,
12725
- className: M(
12725
+ className: P(
12726
12726
  _C({ variant: n, size: r, showArrow: o }),
12727
12727
  s
12728
12728
  ),
@@ -12864,53 +12864,53 @@ const Oa = te(
12864
12864
  }, m) => {
12865
12865
  const b = g.useCallback(() => {
12866
12866
  if (l) return;
12867
- const C = String(r ?? "");
12867
+ const k = String(r ?? "");
12868
12868
  if (t === "numeric") {
12869
- const D = (parseFloat(C) || 0) + a, T = i !== void 0 ? Math.min(D, i) : D, S = To(String(T), d);
12869
+ const D = (parseFloat(k) || 0) + a, T = i !== void 0 ? Math.min(D, i) : D, S = To(String(T), d);
12870
12870
  o?.(S);
12871
12871
  } else if (t === "alphanumeric") {
12872
- const k = LC(C);
12873
- o?.(k);
12872
+ const C = LC(k);
12873
+ o?.(C);
12874
12874
  } else if (t === "alpha") {
12875
- const k = VC(C);
12876
- o?.(k);
12875
+ const C = VC(k);
12876
+ o?.(C);
12877
12877
  }
12878
12878
  }, [l, r, t, a, i, d, o]), p = g.useCallback(() => {
12879
12879
  if (l) return;
12880
- const C = String(r ?? "");
12880
+ const k = String(r ?? "");
12881
12881
  if (t === "numeric") {
12882
- const D = (parseFloat(C) || 0) - a, T = s !== void 0 ? Math.max(D, s) : D, S = To(String(T), d);
12882
+ const D = (parseFloat(k) || 0) - a, T = s !== void 0 ? Math.max(D, s) : D, S = To(String(T), d);
12883
12883
  o?.(S);
12884
12884
  } else if (t === "alphanumeric") {
12885
- const k = WC(C);
12886
- o?.(k);
12885
+ const C = WC(k);
12886
+ o?.(C);
12887
12887
  } else if (t === "alpha") {
12888
- const k = FC(C);
12889
- o?.(k);
12888
+ const C = FC(k);
12889
+ o?.(C);
12890
12890
  }
12891
12891
  }, [l, r, t, a, s, d, o]), y = g.useCallback(
12892
- (C) => {
12892
+ (k) => {
12893
12893
  if (!l) {
12894
- if (C.key === "ArrowUp") {
12895
- C.preventDefault(), b();
12894
+ if (k.key === "ArrowUp") {
12895
+ k.preventDefault(), b();
12896
12896
  return;
12897
- } else if (C.key === "ArrowDown") {
12898
- C.preventDefault(), p();
12897
+ } else if (k.key === "ArrowDown") {
12898
+ k.preventDefault(), p();
12899
12899
  return;
12900
12900
  }
12901
- f.onKeyDown?.(C);
12901
+ f.onKeyDown?.(k);
12902
12902
  }
12903
12903
  },
12904
12904
  [l, b, p, f]
12905
12905
  ), v = g.useCallback(
12906
- (C) => {
12907
- const k = C.target.value;
12906
+ (k) => {
12907
+ const C = k.target.value;
12908
12908
  if (t === "numeric") {
12909
- if (k === "" || /^-?\d*\.?\d*$/.test(k)) {
12910
- const D = To(k, d);
12909
+ if (C === "" || /^-?\d*\.?\d*$/.test(C)) {
12910
+ const D = To(C, d);
12911
12911
  o?.(D);
12912
12912
  }
12913
- } else t === "alphanumeric" ? (k === "" || /^[A-Za-z0-9]*$/.test(k)) && o?.(k.toUpperCase()) : t === "alpha" && (k === "" || /^[A-Za-z]*$/.test(k)) && o?.(k.toUpperCase());
12913
+ } else t === "alphanumeric" ? (C === "" || /^[A-Za-z0-9]*$/.test(C)) && o?.(C.toUpperCase()) : t === "alpha" && (C === "" || /^[A-Za-z]*$/.test(C)) && o?.(C.toUpperCase());
12914
12914
  },
12915
12915
  [t, d, o]
12916
12916
  ), w = g.useMemo(() => {
@@ -12952,7 +12952,7 @@ const Oa = te(
12952
12952
  "aria-valuemin": s,
12953
12953
  "aria-valuemax": i,
12954
12954
  role: "spinbutton",
12955
- className: M(
12955
+ className: P(
12956
12956
  Oa({ variant: t, size: n }),
12957
12957
  w.inputPadding,
12958
12958
  e
@@ -12963,7 +12963,7 @@ const Oa = te(
12963
12963
  /* @__PURE__ */ h.jsxs(
12964
12964
  "div",
12965
12965
  {
12966
- className: M(
12966
+ className: P(
12967
12967
  "absolute top-px right-px bottom-px flex flex-col",
12968
12968
  "border-l border-(--atom-theme-border-primary)",
12969
12969
  "rounded-r-[calc(0.375rem-1px)] overflow-hidden",
@@ -12980,7 +12980,7 @@ const Oa = te(
12980
12980
  disabled: l || i !== void 0 && Number(r) >= i,
12981
12981
  "aria-label": "Increment value",
12982
12982
  tabIndex: -1,
12983
- className: M(
12983
+ className: P(
12984
12984
  "flex items-center justify-center flex-1",
12985
12985
  "hover:bg-[color-mix(in_srgb,var(--atom-theme-border-primary)_10%,transparent)]",
12986
12986
  "active:bg-[color-mix(in_srgb,var(--atom-theme-border-primary)_20%,transparent)]",
@@ -13008,7 +13008,7 @@ const Oa = te(
13008
13008
  disabled: l || s !== void 0 && Number(r) <= s,
13009
13009
  "aria-label": "Decrement value",
13010
13010
  tabIndex: -1,
13011
- className: M(
13011
+ className: P(
13012
13012
  "flex items-center justify-center flex-1",
13013
13013
  "hover:bg-[color-mix(in_srgb,var(--atom-theme-border-primary)_10%,transparent)]",
13014
13014
  "active:bg-[color-mix(in_srgb,var(--atom-theme-border-primary)_20%,transparent)]",
@@ -13046,7 +13046,7 @@ const Oa = te(
13046
13046
  disabled: l,
13047
13047
  "aria-valuemin": s,
13048
13048
  "aria-valuemax": i,
13049
- className: M(Oa({ variant: t, size: n }), e),
13049
+ className: P(Oa({ variant: t, size: n }), e),
13050
13050
  ...f
13051
13051
  }
13052
13052
  );
@@ -13055,10 +13055,10 @@ const Oa = te(
13055
13055
  BC.displayName = "NumberInput";
13056
13056
  const Js = ct({});
13057
13057
  function ei(e) {
13058
- const t = ue(null);
13058
+ const t = de(null);
13059
13059
  return t.current === null && (t.current = e()), t.current;
13060
13060
  }
13061
- const ti = typeof window < "u", Md = ti ? Cs : de, Qr = /* @__PURE__ */ ct(null);
13061
+ const ti = typeof window < "u", Md = ti ? Cs : ue, Qr = /* @__PURE__ */ ct(null);
13062
13062
  function ni(e, t) {
13063
13063
  e.indexOf(t) === -1 && e.push(t);
13064
13064
  }
@@ -13223,21 +13223,21 @@ function Yd(e, t) {
13223
13223
  delta: 0,
13224
13224
  timestamp: 0,
13225
13225
  isProcessing: !1
13226
- }, s = () => n = !0, i = pr.reduce((x, C) => (x[C] = XC(s), x), {}), { setup: a, read: c, resolveKeyframes: l, preUpdate: u, update: d, preRender: f, render: m, postRender: b } = i, p = () => {
13226
+ }, s = () => n = !0, i = pr.reduce((x, k) => (x[k] = XC(s), x), {}), { setup: a, read: c, resolveKeyframes: l, preUpdate: u, update: d, preRender: f, render: m, postRender: b } = i, p = () => {
13227
13227
  const x = yt.useManualTiming ? o.timestamp : performance.now();
13228
13228
  n = !1, yt.useManualTiming || (o.delta = r ? 1e3 / 60 : Math.max(Math.min(x - o.timestamp, ZC), 1)), o.timestamp = x, o.isProcessing = !0, a.process(o), c.process(o), l.process(o), u.process(o), d.process(o), f.process(o), m.process(o), b.process(o), o.isProcessing = !1, n && t && (r = !1, e(p));
13229
13229
  }, y = () => {
13230
13230
  n = !0, r = !0, o.isProcessing || e(p);
13231
13231
  };
13232
- return { schedule: pr.reduce((x, C) => {
13233
- const k = i[C];
13234
- return x[C] = (D, T = !1, S = !1) => (n || y(), k.schedule(D, T, S)), x;
13232
+ return { schedule: pr.reduce((x, k) => {
13233
+ const C = i[k];
13234
+ return x[k] = (D, T = !1, S = !1) => (n || y(), C.schedule(D, T, S)), x;
13235
13235
  }, {}), cancel: (x) => {
13236
- for (let C = 0; C < pr.length; C++)
13237
- i[pr[C]].cancel(x);
13236
+ for (let k = 0; k < pr.length; k++)
13237
+ i[pr[k]].cancel(x);
13238
13238
  }, state: o, steps: i };
13239
13239
  }
13240
- const { schedule: fe, cancel: Et, state: Ne, steps: Eo } = /* @__PURE__ */ Yd(typeof requestAnimationFrame < "u" ? requestAnimationFrame : He, !0);
13240
+ const { schedule: me, cancel: Et, state: Ne, steps: Eo } = /* @__PURE__ */ Yd(typeof requestAnimationFrame < "u" ? requestAnimationFrame : He, !0);
13241
13241
  let Cr;
13242
13242
  function QC() {
13243
13243
  Cr = void 0;
@@ -13442,7 +13442,7 @@ function Jd(e, t, n) {
13442
13442
  const Ck = (e) => {
13443
13443
  const t = ({ timestamp: n }) => e(n);
13444
13444
  return {
13445
- start: (n = !0) => fe.update(t, n),
13445
+ start: (n = !0) => me.update(t, n),
13446
13446
  stop: () => Et(t),
13447
13447
  /**
13448
13448
  * If we're processing this frame we can use the
@@ -13596,42 +13596,42 @@ function Ir(e = pe.visualDuration, t = pe.bounce) {
13596
13596
  r || (r = w ? pe.restSpeed.granular : pe.restSpeed.default), o || (o = w ? pe.restDelta.granular : pe.restDelta.default);
13597
13597
  let x;
13598
13598
  if (p < 1) {
13599
- const k = ns(v, p);
13599
+ const C = ns(v, p);
13600
13600
  x = (D) => {
13601
13601
  const T = Math.exp(-p * v * D);
13602
- return i - T * ((b + p * v * y) / k * Math.sin(k * D) + y * Math.cos(k * D));
13602
+ return i - T * ((b + p * v * y) / C * Math.sin(C * D) + y * Math.cos(C * D));
13603
13603
  };
13604
13604
  } else if (p === 1)
13605
- x = (k) => i - Math.exp(-v * k) * (y + (b + v * y) * k);
13605
+ x = (C) => i - Math.exp(-v * C) * (y + (b + v * y) * C);
13606
13606
  else {
13607
- const k = v * Math.sqrt(p * p - 1);
13607
+ const C = v * Math.sqrt(p * p - 1);
13608
13608
  x = (D) => {
13609
- const T = Math.exp(-p * v * D), S = Math.min(k * D, 300);
13610
- return i - T * ((b + p * v * y) * Math.sinh(S) + k * y * Math.cosh(S)) / k;
13609
+ const T = Math.exp(-p * v * D), S = Math.min(C * D, 300);
13610
+ return i - T * ((b + p * v * y) * Math.sinh(S) + C * y * Math.cosh(S)) / C;
13611
13611
  };
13612
13612
  }
13613
- const C = {
13613
+ const k = {
13614
13614
  calculatedDuration: m && d || null,
13615
- next: (k) => {
13616
- const D = x(k);
13615
+ next: (C) => {
13616
+ const D = x(C);
13617
13617
  if (m)
13618
- a.done = k >= d;
13618
+ a.done = C >= d;
13619
13619
  else {
13620
- let T = k === 0 ? b : 0;
13621
- p < 1 && (T = k === 0 ? /* @__PURE__ */ ot(b) : tf(x, k, D));
13620
+ let T = C === 0 ? b : 0;
13621
+ p < 1 && (T = C === 0 ? /* @__PURE__ */ ot(b) : tf(x, C, D));
13622
13622
  const S = Math.abs(T) <= r, N = Math.abs(i - D) <= o;
13623
13623
  a.done = S && N;
13624
13624
  }
13625
13625
  return a.value = a.done ? i : D, a;
13626
13626
  },
13627
13627
  toString: () => {
13628
- const k = Math.min(mi(C), _r), D = ef((T) => C.next(k * T).value, k, 30);
13629
- return k + "ms " + D;
13628
+ const C = Math.min(mi(k), _r), D = ef((T) => k.next(C * T).value, C, 30);
13629
+ return C + "ms " + D;
13630
13630
  },
13631
13631
  toTransition: () => {
13632
13632
  }
13633
13633
  };
13634
- return C;
13634
+ return k;
13635
13635
  }
13636
13636
  Ir.applyToOptions = (e) => {
13637
13637
  const t = kk(e, 100, Ir);
@@ -13645,13 +13645,13 @@ function rs({ keyframes: e, velocity: t = 0, power: n = 0.8, timeConstant: r = 3
13645
13645
  let p = n * t;
13646
13646
  const y = d + p, v = i === void 0 ? y : i(y);
13647
13647
  v !== y && (p = v - d);
13648
- const w = (S) => -p * Math.exp(-S / r), x = (S) => v + w(S), C = (S) => {
13649
- const N = w(S), P = x(S);
13650
- f.done = Math.abs(N) <= l, f.value = f.done ? v : P;
13648
+ const w = (S) => -p * Math.exp(-S / r), x = (S) => v + w(S), k = (S) => {
13649
+ const N = w(S), M = x(S);
13650
+ f.done = Math.abs(N) <= l, f.value = f.done ? v : M;
13651
13651
  };
13652
- let k, D;
13652
+ let C, D;
13653
13653
  const T = (S) => {
13654
- m(f.value) && (k = S, D = Ir({
13654
+ m(f.value) && (C = S, D = Ir({
13655
13655
  keyframes: [f.value, b(f.value)],
13656
13656
  velocity: tf(x, S, f.value),
13657
13657
  // TODO: This should be passing * 1000
@@ -13665,7 +13665,7 @@ function rs({ keyframes: e, velocity: t = 0, power: n = 0.8, timeConstant: r = 3
13665
13665
  calculatedDuration: null,
13666
13666
  next: (S) => {
13667
13667
  let N = !1;
13668
- return !D && k === void 0 && (N = !0, C(S), T(S)), k !== void 0 && S >= k ? D.next(S - k) : (!N && C(S), f);
13668
+ return !D && C === void 0 && (N = !0, k(S), T(S)), C !== void 0 && S >= C ? D.next(S - C) : (!N && k(S), f);
13669
13669
  }
13670
13670
  };
13671
13671
  }
@@ -13810,18 +13810,18 @@ class gi extends pi {
13810
13810
  this.speed > 0 ? this.startTime = Math.min(this.startTime, t) : this.speed < 0 && (this.startTime = Math.min(t - o / this.speed, this.startTime)), n ? this.currentTime = t : this.updateTime(t);
13811
13811
  const v = this.currentTime - l * (this.playbackSpeed >= 0 ? 1 : -1), w = this.playbackSpeed >= 0 ? v < 0 : v > o;
13812
13812
  this.currentTime = Math.max(v, 0), this.state === "finished" && this.holdTime === null && (this.currentTime = o);
13813
- let x = this.currentTime, C = r;
13813
+ let x = this.currentTime, k = r;
13814
13814
  if (d) {
13815
13815
  const S = Math.min(this.currentTime, o) / a;
13816
- let N = Math.floor(S), P = S % 1;
13817
- !P && S >= 1 && (P = 1), P === 1 && N--, N = Math.min(N, d + 1), !!(N % 2) && (f === "reverse" ? (P = 1 - P, m && (P -= m / a)) : f === "mirror" && (C = i)), x = at(0, 1, P) * a;
13816
+ let N = Math.floor(S), M = S % 1;
13817
+ !M && S >= 1 && (M = 1), M === 1 && N--, N = Math.min(N, d + 1), !!(N % 2) && (f === "reverse" ? (M = 1 - M, m && (M -= m / a)) : f === "mirror" && (k = i)), x = at(0, 1, M) * a;
13818
13818
  }
13819
- const k = w ? { done: !1, value: u[0] } : C.next(x);
13820
- s && (k.value = s(k.value));
13821
- let { done: D } = k;
13819
+ const C = w ? { done: !1, value: u[0] } : k.next(x);
13820
+ s && (C.value = s(C.value));
13821
+ let { done: D } = C;
13822
13822
  !w && c !== null && (D = this.playbackSpeed >= 0 ? this.currentTime >= o : this.currentTime <= 0);
13823
13823
  const T = this.holdTime === null && (this.state === "finished" || this.state === "running" && D);
13824
- return T && b !== rs && (k.value = hi(u, this.options, y, this.speed)), p && p(k.value), T && this.finish(), k;
13824
+ return T && b !== rs && (C.value = hi(u, this.options, y, this.speed)), p && p(C.value), T && this.finish(), C;
13825
13825
  }
13826
13826
  /**
13827
13827
  * Allows the returned animation to be awaited or promise-chained. Currently
@@ -14022,7 +14022,7 @@ class yi {
14022
14022
  this.state = "pending", this.isAsync = !1, this.needsMeasurement = !1, this.unresolvedKeyframes = [...t], this.onComplete = n, this.name = r, this.motionValue = o, this.element = s, this.isAsync = i;
14023
14023
  }
14024
14024
  scheduleResolve() {
14025
- this.state = "scheduled", this.isAsync ? (Lt.add(this), cs || (cs = !0, fe.read(of), fe.resolveKeyframes(rf))) : (this.readKeyframes(), this.complete());
14025
+ this.state = "scheduled", this.isAsync ? (Lt.add(this), cs || (cs = !0, me.read(of), me.resolveKeyframes(rf))) : (this.readKeyframes(), this.complete());
14026
14026
  }
14027
14027
  readKeyframes() {
14028
14028
  const { unresolvedKeyframes: t, name: n, element: r, motionValue: o } = this;
@@ -14689,7 +14689,7 @@ class P1 {
14689
14689
  this.events[t] || (this.events[t] = new si());
14690
14690
  const r = this.events[t].add(n);
14691
14691
  return t === "change" ? () => {
14692
- r(), fe.read(() => {
14692
+ r(), me.read(() => {
14693
14693
  this.events.change.getSize() || this.stop();
14694
14694
  });
14695
14695
  } : r;
@@ -14974,7 +14974,7 @@ class L1 extends g.Component {
14974
14974
  }
14975
14975
  }
14976
14976
  function W1({ children: e, isPresent: t, anchorX: n, root: r }) {
14977
- const o = dn(), s = ue(null), i = ue({
14977
+ const o = dn(), s = de(null), i = de({
14978
14978
  width: 0,
14979
14979
  height: 0,
14980
14980
  top: 0,
@@ -15033,7 +15033,7 @@ function kf(e = !0) {
15033
15033
  if (t === null)
15034
15034
  return [!0, null];
15035
15035
  const { isPresent: n, onExitComplete: r, register: o } = t, s = dn();
15036
- de(() => {
15036
+ ue(() => {
15037
15037
  if (e)
15038
15038
  return o(s);
15039
15039
  }, [e]);
@@ -15048,7 +15048,7 @@ function nc(e) {
15048
15048
  }), t;
15049
15049
  }
15050
15050
  const ki = ({ children: e, custom: t, initial: n = !0, onExitComplete: r, presenceAffectsLayout: o = !0, mode: s = "sync", propagate: i = !1, anchorX: a = "left", root: c }) => {
15051
- const [l, u] = kf(i), d = Ce(() => nc(e), [e]), f = i && !l ? [] : d.map(yr), m = ue(!0), b = ue(d), p = ei(() => /* @__PURE__ */ new Map()), y = ue(/* @__PURE__ */ new Set()), [v, w] = me(d), [x, C] = me(d);
15051
+ const [l, u] = kf(i), d = Ce(() => nc(e), [e]), f = i && !l ? [] : d.map(yr), m = de(!0), b = de(d), p = ei(() => /* @__PURE__ */ new Map()), y = de(/* @__PURE__ */ new Set()), [v, w] = fe(d), [x, k] = fe(d);
15052
15052
  Md(() => {
15053
15053
  m.current = !1, b.current = d;
15054
15054
  for (let T = 0; T < x.length; T++) {
@@ -15056,19 +15056,19 @@ const ki = ({ children: e, custom: t, initial: n = !0, onExitComplete: r, presen
15056
15056
  f.includes(S) ? (p.delete(S), y.current.delete(S)) : p.get(S) !== !0 && p.set(S, !1);
15057
15057
  }
15058
15058
  }, [x, f.length, f.join("-")]);
15059
- const k = [];
15059
+ const C = [];
15060
15060
  if (d !== v) {
15061
15061
  let T = [...d];
15062
15062
  for (let S = 0; S < x.length; S++) {
15063
- const N = x[S], P = yr(N);
15064
- f.includes(P) || (T.splice(S, 0, N), k.push(N));
15063
+ const N = x[S], M = yr(N);
15064
+ f.includes(M) || (T.splice(S, 0, N), C.push(N));
15065
15065
  }
15066
- return s === "wait" && k.length && (T = k), C(nc(T)), w(d), null;
15066
+ return s === "wait" && C.length && (T = C), k(nc(T)), w(d), null;
15067
15067
  }
15068
15068
  process.env.NODE_ENV !== "production" && s === "wait" && x.length > 1 && console.warn(`You're attempting to animate multiple children within AnimatePresence, but its mode is set to "wait". This will lead to odd visual behaviour.`);
15069
15069
  const { forceRender: D } = we(Js);
15070
15070
  return h.jsx(h.Fragment, { children: x.map((T) => {
15071
- const S = yr(T), N = i && !l ? !1 : d === x || f.includes(S), P = () => {
15071
+ const S = yr(T), N = i && !l ? !1 : d === x || f.includes(S), M = () => {
15072
15072
  if (y.current.has(S))
15073
15073
  return;
15074
15074
  if (y.current.add(S), p.has(S))
@@ -15078,9 +15078,9 @@ const ki = ({ children: e, custom: t, initial: n = !0, onExitComplete: r, presen
15078
15078
  let O = !0;
15079
15079
  p.forEach((_) => {
15080
15080
  _ || (O = !1);
15081
- }), O && (D?.(), C(b.current), i && u?.(), r && r());
15081
+ }), O && (D?.(), k(b.current), i && u?.(), r && r());
15082
15082
  };
15083
- return h.jsx(B1, { isPresent: N, initial: !m.current || n ? void 0 : !1, custom: t, presenceAffectsLayout: o, mode: s, root: c, onExitComplete: N ? void 0 : P, anchorX: a, children: T }, S);
15083
+ return h.jsx(B1, { isPresent: N, initial: !m.current || n ? void 0 : !1, custom: t, presenceAffectsLayout: o, mode: s, root: c, onExitComplete: N ? void 0 : M, anchorX: a, children: T }, S);
15084
15084
  }) });
15085
15085
  }, Sf = ct({ strict: !1 }), rc = {
15086
15086
  animation: [
@@ -15474,8 +15474,8 @@ function uS(e, t, n, r) {
15474
15474
  for (const w in v) {
15475
15475
  let x = v[w];
15476
15476
  if (Array.isArray(x)) {
15477
- const C = u ? x.length - 1 : 0;
15478
- x = x[C];
15477
+ const k = u ? x.length - 1 : 0;
15478
+ x = x[k];
15479
15479
  }
15480
15480
  x !== null && (o[w] = x);
15481
15481
  }
@@ -15514,11 +15514,11 @@ const fS = /* @__PURE__ */ Rf({
15514
15514
  createRenderState: Nf
15515
15515
  }), mS = Symbol.for("motionComponentSymbol");
15516
15516
  function hS(e, t, n) {
15517
- const r = ue(n);
15517
+ const r = de(n);
15518
15518
  ks(() => {
15519
15519
  r.current = n;
15520
15520
  });
15521
- const o = ue(null);
15521
+ const o = de(null);
15522
15522
  return ce((s) => {
15523
15523
  s && e.onMount?.(s), t && (s ? t.mount(s) : t.unmount());
15524
15524
  const i = r.current;
@@ -15535,7 +15535,7 @@ function Rn(e) {
15535
15535
  return e && typeof e == "object" && Object.prototype.hasOwnProperty.call(e, "current");
15536
15536
  }
15537
15537
  function gS(e, t, n, r, o, s) {
15538
- const { visualElement: i } = we(Jr), a = we(Sf), c = we(Qr), l = we(Ci).reducedMotion, u = ue(null);
15538
+ const { visualElement: i } = we(Jr), a = we(Sf), c = we(Qr), l = we(Ci).reducedMotion, u = de(null);
15539
15539
  r = r || a.renderer, !u.current && r && (u.current = r(e, {
15540
15540
  visualState: t,
15541
15541
  parent: i,
@@ -15547,14 +15547,14 @@ function gS(e, t, n, r, o, s) {
15547
15547
  }));
15548
15548
  const d = u.current, f = we(_f);
15549
15549
  d && !d.projection && o && (d.type === "html" || d.type === "svg") && yS(u.current, n, o, f);
15550
- const m = ue(!1);
15550
+ const m = de(!1);
15551
15551
  ks(() => {
15552
15552
  d && m.current && d.update(n, c);
15553
15553
  });
15554
- const b = n[jf], p = ue(!!b && !window.MotionHandoffIsComplete?.(b) && window.MotionHasOptimisedAnimation?.(b));
15554
+ const b = n[jf], p = de(!!b && !window.MotionHandoffIsComplete?.(b) && window.MotionHasOptimisedAnimation?.(b));
15555
15555
  return Md(() => {
15556
15556
  d && (m.current = !0, window.MotionIsMounted = !0, d.updateFeatures(), d.scheduleRenderMicrotask(), p.current && d.animationState && d.animationState.animateChanges());
15557
- }), de(() => {
15557
+ }), ue(() => {
15558
15558
  d && (!p.current && d.animationState && d.animationState.animateChanges(), p.current && (queueMicrotask(() => {
15559
15559
  window.MotionHandoffMarkAsComplete?.(b);
15560
15560
  }), p.current = !1), d.enteringChildren = void 0);
@@ -15788,7 +15788,7 @@ class MS {
15788
15788
  this.current && (this.triggerBuild(), this.renderInstance(this.current, this.renderState, this.props.style, this.projection));
15789
15789
  }, this.renderScheduledAt = 0, this.scheduleRender = () => {
15790
15790
  const f = Oe.now();
15791
- this.renderScheduledAt < f && (this.renderScheduledAt = f, fe.render(this.render, !1, !0));
15791
+ this.renderScheduledAt < f && (this.renderScheduledAt = f, me.render(this.render, !1, !0));
15792
15792
  };
15793
15793
  const { latestValues: c, renderState: l } = i;
15794
15794
  this.latestValues = c, this.baseTarget = { ...c }, this.initialValues = n.initial ? { ...c } : {}, this.renderState = l, this.parent = t, this.props = n, this.presenceContext = r, this.depth = t ? t.depth + 1 : 0, this.reducedMotionConfig = o, this.options = a, this.blockInitialAnimation = !!s, this.isControllingVariants = to(n), this.isVariantNode = Tf(n), this.isVariantNode && (this.variantChildren = /* @__PURE__ */ new Set()), this.manuallyAnimateOnMount = !!(t && t.current);
@@ -15822,7 +15822,7 @@ class MS {
15822
15822
  const r = wn.has(t);
15823
15823
  r && this.onBindTransform && this.onBindTransform();
15824
15824
  const o = n.on("change", (i) => {
15825
- this.latestValues[t] = i, this.props.onUpdate && fe.preRender(this.notifyUpdate), r && this.projection && (this.projection.isTransformDirty = !0), this.scheduleRender();
15825
+ this.latestValues[t] = i, this.props.onUpdate && me.preRender(this.notifyUpdate), r && this.projection && (this.projection.isTransformDirty = !0), this.scheduleRender();
15826
15826
  });
15827
15827
  let s;
15828
15828
  window.MotionCheckAppearSync && (s = window.MotionCheckAppearSync(this, t, n)), this.valueSubscriptions.set(t, () => {
@@ -16175,7 +16175,7 @@ const Ri = (e, t, n, r = {}, o, s) => (i) => {
16175
16175
  if ((u.type === !1 || u.duration === 0 && !u.repeatDelay) && (ds(u), u.delay === 0 && (d = !0)), (yt.instantAnimations || yt.skipAnimations) && (d = !0, ds(u), u.delay = 0), u.allowFlatten = !a.type && !a.ease, d && !s && t.get() !== void 0) {
16176
16176
  const f = WS(u.keyframes, a);
16177
16177
  if (f !== void 0) {
16178
- fe.update(() => {
16178
+ me.update(() => {
16179
16179
  u.onUpdate(f), u.onComplete();
16180
16180
  });
16181
16181
  return;
@@ -16205,7 +16205,7 @@ function Uf(e, t, { delay: n = 0, transitionOverride: r, type: o } = {}) {
16205
16205
  if (window.MotionHandoffAnimation) {
16206
16206
  const v = Hf(e);
16207
16207
  if (v) {
16208
- const w = window.MotionHandoffAnimation(v, u, fe);
16208
+ const w = window.MotionHandoffAnimation(v, u, me);
16209
16209
  w !== null && (m.startTime = w, p = !0);
16210
16210
  }
16211
16211
  }
@@ -16214,7 +16214,7 @@ function Uf(e, t, { delay: n = 0, transitionOverride: r, type: o } = {}) {
16214
16214
  y && c.push(y);
16215
16215
  }
16216
16216
  return i && Promise.all(c).then(() => {
16217
- fe.update(() => {
16217
+ me.update(() => {
16218
16218
  i && VS(e, i);
16219
16219
  });
16220
16220
  }), c;
@@ -16309,49 +16309,49 @@ function eD(e) {
16309
16309
  const { props: l } = e, u = Kf(e.parent) || {}, d = [], f = /* @__PURE__ */ new Set();
16310
16310
  let m = {}, b = 1 / 0;
16311
16311
  for (let y = 0; y < QS; y++) {
16312
- const v = ZS[y], w = n[v], x = l[v] !== void 0 ? l[v] : u[v], C = Hn(x), k = v === c ? w.isActive : null;
16313
- k === !1 && (b = y);
16314
- let D = x === u[v] && x !== l[v] && C;
16312
+ const v = ZS[y], w = n[v], x = l[v] !== void 0 ? l[v] : u[v], k = Hn(x), C = v === c ? w.isActive : null;
16313
+ C === !1 && (b = y);
16314
+ let D = x === u[v] && x !== l[v] && k;
16315
16315
  if (D && r && e.manuallyAnimateOnMount && (D = !1), w.protectedKeys = { ...m }, // If it isn't active and hasn't *just* been set as inactive
16316
- !w.isActive && k === null || // If we didn't and don't have any defined prop for this animation type
16316
+ !w.isActive && C === null || // If we didn't and don't have any defined prop for this animation type
16317
16317
  !x && !w.prevProp || // Or if the prop doesn't define an animation
16318
16318
  eo(x) || typeof x == "boolean")
16319
16319
  continue;
16320
16320
  const T = tD(w.prevProp, x);
16321
16321
  let S = T || // If we're making this variant active, we want to always make it active
16322
- v === c && w.isActive && !D && C || // If we removed a higher-priority variant (i is in reverse order)
16323
- y > b && C, N = !1;
16324
- const P = Array.isArray(x) ? x : [x];
16325
- let O = P.reduce(o(v), {});
16326
- k === !1 && (O = {});
16327
- const { prevResolvedValues: _ = {} } = w, B = {
16322
+ v === c && w.isActive && !D && k || // If we removed a higher-priority variant (i is in reverse order)
16323
+ y > b && k, N = !1;
16324
+ const M = Array.isArray(x) ? x : [x];
16325
+ let O = M.reduce(o(v), {});
16326
+ C === !1 && (O = {});
16327
+ const { prevResolvedValues: _ = {} } = w, L = {
16328
16328
  ..._,
16329
16329
  ...O
16330
- }, z = (W) => {
16331
- S = !0, f.has(W) && (N = !0, f.delete(W)), w.needsAnimating[W] = !0;
16332
- const R = e.getValue(W);
16330
+ }, W = ($) => {
16331
+ S = !0, f.has($) && (N = !0, f.delete($)), w.needsAnimating[$] = !0;
16332
+ const R = e.getValue($);
16333
16333
  R && (R.liveStyle = !1);
16334
16334
  };
16335
- for (const W in B) {
16336
- const R = O[W], H = _[W];
16337
- if (m.hasOwnProperty(W))
16335
+ for (const $ in L) {
16336
+ const R = O[$], H = _[$];
16337
+ if (m.hasOwnProperty($))
16338
16338
  continue;
16339
16339
  let ee = !1;
16340
- ys(R) && ys(H) ? ee = !qf(R, H) : ee = R !== H, ee ? R != null ? z(W) : f.add(W) : R !== void 0 && f.has(W) ? z(W) : w.protectedKeys[W] = !0;
16340
+ ys(R) && ys(H) ? ee = !qf(R, H) : ee = R !== H, ee ? R != null ? W($) : f.add($) : R !== void 0 && f.has($) ? W($) : w.protectedKeys[$] = !0;
16341
16341
  }
16342
16342
  w.prevProp = x, w.prevResolvedValues = O, w.isActive && (m = { ...m, ...O }), r && e.blockInitialAnimation && (S = !1);
16343
16343
  const K = D && T;
16344
- S && (!K || N) && d.push(...P.map((W) => {
16344
+ S && (!K || N) && d.push(...M.map(($) => {
16345
16345
  const R = { type: v };
16346
- if (typeof W == "string" && r && !K && e.manuallyAnimateOnMount && e.parent) {
16347
- const { parent: H } = e, ee = on(H, W);
16346
+ if (typeof $ == "string" && r && !K && e.manuallyAnimateOnMount && e.parent) {
16347
+ const { parent: H } = e, ee = on(H, $);
16348
16348
  if (H.enteringChildren && ee) {
16349
16349
  const { delayChildren: E } = ee.transition || {};
16350
16350
  R.delay = Gf(H.enteringChildren, e, E);
16351
16351
  }
16352
16352
  }
16353
16353
  return {
16354
- animation: W,
16354
+ animation: $,
16355
16355
  options: R
16356
16356
  };
16357
16357
  }));
@@ -16542,7 +16542,7 @@ class Jf {
16542
16542
  const { onStart: w, onMove: x } = this.handlers;
16543
16543
  b || (w && w(this.lastMoveEvent, m), this.startEvent = this.lastMoveEvent), x && x(this.lastMoveEvent, m);
16544
16544
  }, this.handlePointerMove = (m, b) => {
16545
- this.lastMoveEvent = m, this.lastMoveEventInfo = Io(b, this.transformPagePoint), fe.update(this.updatePoint, !0);
16545
+ this.lastMoveEvent = m, this.lastMoveEventInfo = Io(b, this.transformPagePoint), me.update(this.updatePoint, !0);
16546
16546
  }, this.handlePointerUp = (m, b) => {
16547
16547
  this.end();
16548
16548
  const { onEnd: p, onSessionEnd: y, resumeAnimation: v } = this.handlers;
@@ -16598,7 +16598,7 @@ class Jf {
16598
16598
  x: t.scrollLeft,
16599
16599
  y: t.scrollTop
16600
16600
  }, s = { x: o.x - n.x, y: o.y - n.y };
16601
- s.x === 0 && s.y === 0 || (r ? this.lastMoveEventInfo && (this.lastMoveEventInfo.point.x += s.x, this.lastMoveEventInfo.point.y += s.y) : this.history.length > 0 && (this.history[0].x -= s.x, this.history[0].y -= s.y), this.scrollPositions.set(t, o), fe.update(this.updatePoint, !0));
16601
+ s.x === 0 && s.y === 0 || (r ? this.lastMoveEventInfo && (this.lastMoveEventInfo.point.x += s.x, this.lastMoveEventInfo.point.y += s.y) : this.history.length > 0 && (this.history[0].x -= s.x, this.history[0].y -= s.y), this.scrollPositions.set(t, o), me.update(this.updatePoint, !0));
16602
16602
  }
16603
16603
  updateHandlers(t) {
16604
16604
  this.handlers = t;
@@ -16716,12 +16716,12 @@ class kD {
16716
16716
  if (st.test(w)) {
16717
16717
  const { projection: x } = this.visualElement;
16718
16718
  if (x && x.layout) {
16719
- const C = x.layout.layoutBox[v];
16720
- C && (w = je(C) * (parseFloat(w) / 100));
16719
+ const k = x.layout.layoutBox[v];
16720
+ k && (w = je(k) * (parseFloat(w) / 100));
16721
16721
  }
16722
16722
  }
16723
16723
  this.originPoint[v] = w;
16724
- }), p && fe.postRender(() => p(d, f)), bs(this.visualElement, "transform");
16724
+ }), p && me.postRender(() => p(d, f)), bs(this.visualElement, "transform");
16725
16725
  const { animationState: y } = this.visualElement;
16726
16726
  y && y.setActive("whileDrag", !0);
16727
16727
  }, a = (d, f) => {
@@ -16762,7 +16762,7 @@ class kD {
16762
16762
  const { velocity: i } = o;
16763
16763
  this.startAnimation(i);
16764
16764
  const { onDragEnd: a } = this.getProps();
16765
- a && fe.postRender(() => a(r, o));
16765
+ a && me.postRender(() => a(r, o));
16766
16766
  }
16767
16767
  /**
16768
16768
  * @internal
@@ -16900,7 +16900,7 @@ class kD {
16900
16900
  const { dragConstraints: c } = this.getProps();
16901
16901
  Rn(c) && c.current && (this.constraints = this.resolveRefConstraints());
16902
16902
  }, { projection: o } = this.visualElement, s = o.addEventListener("measure", r);
16903
- o && !o.layout && (o.root && o.root.updateScroll(), o.updateLayout()), fe.read(r);
16903
+ o && !o.layout && (o.root && o.root.updateScroll(), o.updateLayout()), me.read(r);
16904
16904
  const i = Un(window, "resize", () => this.scalePositionWithinConstraints()), a = o.addEventListener("didUpdate", (({ delta: c, hasLayoutChanged: l }) => {
16905
16905
  this.isDragging && l && ($e((u) => {
16906
16906
  const d = this.getAxisMotionValue(u);
@@ -16948,7 +16948,7 @@ class DD extends Nt {
16948
16948
  }
16949
16949
  }
16950
16950
  const Tc = (e) => (t, n) => {
16951
- e && fe.postRender(() => e(t, n));
16951
+ e && me.postRender(() => e(t, n));
16952
16952
  };
16953
16953
  class TD extends Nt {
16954
16954
  constructor() {
@@ -16967,7 +16967,7 @@ class TD extends Nt {
16967
16967
  onStart: Tc(n),
16968
16968
  onMove: r,
16969
16969
  onEnd: (s, i) => {
16970
- delete this.session, o && fe.postRender(() => o(s, i));
16970
+ delete this.session, o && me.postRender(() => o(s, i));
16971
16971
  }
16972
16972
  };
16973
16973
  }
@@ -17011,7 +17011,7 @@ class ED extends Ss {
17011
17011
  }
17012
17012
  getSnapshotBeforeUpdate(t) {
17013
17013
  const { layoutDependency: n, visualElement: r, drag: o, isPresent: s } = this.props, { projection: i } = r;
17014
- return i && (i.isPresent = s, Fo = !0, o || t.layoutDependency !== n || n === void 0 || t.isPresent !== s ? i.willUpdate() : this.safeToRemove(), t.isPresent !== s && (s ? i.promote() : i.relegate() || fe.postRender(() => {
17014
+ return i && (i.isPresent = s, Fo = !0, o || t.layoutDependency !== n || n === void 0 || t.isPresent !== s ? i.willUpdate() : this.safeToRemove(), t.isPresent !== s && (s ? i.promote() : i.relegate() || me.postRender(() => {
17015
17015
  const a = i.getStack();
17016
17016
  (!a || !a.members.length) && this.safeToRemove();
17017
17017
  }))), null;
@@ -17062,7 +17062,7 @@ function AD(e, t) {
17062
17062
  const s = o - n;
17063
17063
  s >= t && (Et(r), e(s - t));
17064
17064
  };
17065
- return fe.setup(r, !0), () => Et(r);
17065
+ return me.setup(r, !0), () => Et(r);
17066
17066
  }
17067
17067
  const nm = ["TopLeft", "TopRight", "BottomLeft", "BottomRight"], RD = nm.length, Ec = (e) => typeof e == "string" ? parseFloat(e) : e, Pc = (e) => typeof e == "number" || I.test(e);
17068
17068
  function OD(e, t, n, r, o, s) {
@@ -17211,7 +17211,7 @@ function im(e) {
17211
17211
  const n = Hf(t);
17212
17212
  if (window.MotionHasOptimisedAnimation(n, "transform")) {
17213
17213
  const { layout: o, layoutId: s } = e.options;
17214
- window.MotionCancelOptimisedAnimation(n, "transform", fe, !(o || s));
17214
+ window.MotionCancelOptimisedAnimation(n, "transform", me, !(o || s));
17215
17215
  }
17216
17216
  const { parent: r } = e;
17217
17217
  r && !r.hasCheckedOptimisedAppear && im(r);
@@ -17249,7 +17249,7 @@ function am({ attachResizeListener: e, defaultParent: t, measureScroll: n, check
17249
17249
  if (l && !l.current && l.mount(i), this.root.nodes.add(this), this.parent && this.parent.children.add(this), this.root.hasTreeAnimated && (c || a) && (this.isLayoutDirty = !0), e) {
17250
17250
  let u, d = 0;
17251
17251
  const f = () => this.root.updateBlockedByResize = !1;
17252
- fe.read(() => {
17252
+ me.read(() => {
17253
17253
  d = window.innerWidth;
17254
17254
  }), e(i, () => {
17255
17255
  const m = window.innerWidth;
@@ -17339,10 +17339,10 @@ function am({ attachResizeListener: e, defaultParent: t, measureScroll: n, check
17339
17339
  this.nodes.forEach(qD), this.sharedNodes.forEach(JD);
17340
17340
  }
17341
17341
  scheduleUpdateProjection() {
17342
- this.projectionUpdateScheduled || (this.projectionUpdateScheduled = !0, fe.preRender(this.updateProjection, !1, !0));
17342
+ this.projectionUpdateScheduled || (this.projectionUpdateScheduled = !0, me.preRender(this.updateProjection, !1, !0));
17343
17343
  }
17344
17344
  scheduleCheckAfterUnmount() {
17345
- fe.postRender(() => {
17345
+ me.postRender(() => {
17346
17346
  this.isLayoutDirty ? this.root.didUpdate() : this.root.checkUpdateFailed();
17347
17347
  });
17348
17348
  }
@@ -17521,13 +17521,13 @@ function am({ attachResizeListener: e, defaultParent: t, measureScroll: n, check
17521
17521
  const f = Te(), m = c ? c.source : void 0, b = this.layout ? this.layout.source : void 0, p = m !== b, y = this.getStack(), v = !y || y.members.length <= 1, w = !!(p && !v && this.options.crossfade === !0 && !this.path.some(tT));
17522
17522
  this.animationProgress = 0;
17523
17523
  let x;
17524
- this.mixTargetDelta = (C) => {
17525
- const k = C / 1e3;
17526
- zc(d.x, i.x, k), zc(d.y, i.y, k), this.setTargetDelta(d), this.relativeTarget && this.relativeTargetOrigin && this.layout && this.relativeParent && this.relativeParent.layout && (Lr(f, this.layout.layoutBox, this.relativeParent.layout.layoutBox), eT(this.relativeTarget, this.relativeTargetOrigin, f, k), x && LD(this.relativeTarget, x) && (this.isProjectionDirty = !1), x || (x = Te()), Ge(x, this.relativeTarget)), p && (this.animationValues = u, OD(u, l, this.latestValues, k, w, v)), this.root.scheduleUpdateProjection(), this.scheduleRender(), this.animationProgress = k;
17524
+ this.mixTargetDelta = (k) => {
17525
+ const C = k / 1e3;
17526
+ zc(d.x, i.x, C), zc(d.y, i.y, C), this.setTargetDelta(d), this.relativeTarget && this.relativeTargetOrigin && this.layout && this.relativeParent && this.relativeParent.layout && (Lr(f, this.layout.layoutBox, this.relativeParent.layout.layoutBox), eT(this.relativeTarget, this.relativeTargetOrigin, f, C), x && LD(this.relativeTarget, x) && (this.isProjectionDirty = !1), x || (x = Te()), Ge(x, this.relativeTarget)), p && (this.animationValues = u, OD(u, l, this.latestValues, C, w, v)), this.root.scheduleUpdateProjection(), this.scheduleRender(), this.animationProgress = C;
17527
17527
  }, this.mixTargetDelta(this.options.layoutRoot ? 1e3 : 0);
17528
17528
  }
17529
17529
  startAnimation(i) {
17530
- this.notifyListeners("animationStart"), this.currentAnimation?.stop(), this.resumingFrom?.currentAnimation?.stop(), this.pendingAnimation && (Et(this.pendingAnimation), this.pendingAnimation = void 0), this.pendingAnimation = fe.update(() => {
17530
+ this.notifyListeners("animationStart"), this.currentAnimation?.stop(), this.resumingFrom?.currentAnimation?.stop(), this.pendingAnimation && (Et(this.pendingAnimation), this.pendingAnimation = void 0), this.pendingAnimation = me.update(() => {
17531
17531
  Dr.hasAnimatedSinceResize = !0, this.motionValue || (this.motionValue = ln(0)), this.currentAnimation = PD(this.motionValue, [0, 1e3], {
17532
17532
  ...i,
17533
17533
  velocity: 0,
@@ -17645,8 +17645,8 @@ function am({ attachResizeListener: e, defaultParent: t, measureScroll: n, check
17645
17645
  const { correct: p, applyTo: y, isCSSVariable: v } = ms[b], w = d === "none" ? u[b] : p(u[b], l);
17646
17646
  if (y) {
17647
17647
  const x = y.length;
17648
- for (let C = 0; C < x; C++)
17649
- i[y[C]] = w;
17648
+ for (let k = 0; k < x; k++)
17649
+ i[y[k]] = w;
17650
17650
  } else
17651
17651
  v ? this.options.visualElement.renderState.vars[b] = w : i[b] = w;
17652
17652
  }
@@ -17808,7 +17808,7 @@ function qc(e, t, n) {
17808
17808
  const { props: r } = e;
17809
17809
  e.animationState && r.whileHover && e.animationState.setActive("whileHover", n === "Start");
17810
17810
  const o = "onHover" + n, s = r[o];
17811
- s && fe.postRender(() => s(t, or(t)));
17811
+ s && me.postRender(() => s(t, or(t)));
17812
17812
  }
17813
17813
  class aT extends Nt {
17814
17814
  mount() {
@@ -17846,7 +17846,7 @@ function Kc(e, t, n) {
17846
17846
  return;
17847
17847
  e.animationState && r.whileTap && e.animationState.setActive("whileTap", n === "Start");
17848
17848
  const o = "onTap" + (n === "End" ? "" : n), s = r[o];
17849
- s && fe.postRender(() => s(t, or(t)));
17849
+ s && me.postRender(() => s(t, or(t)));
17850
17850
  }
17851
17851
  class lT extends Nt {
17852
17852
  mount() {
@@ -18051,7 +18051,7 @@ const wT = te(
18051
18051
  };
18052
18052
  };
18053
18053
  function DT(e, t, n, r = !0) {
18054
- de(() => {
18054
+ ue(() => {
18055
18055
  if (!r || typeof document > "u") return;
18056
18056
  const o = (s) => {
18057
18057
  const i = s.target;
@@ -18063,7 +18063,7 @@ function DT(e, t, n, r = !0) {
18063
18063
  }, [e, t, n, r]);
18064
18064
  }
18065
18065
  function TT(e, t, n, r, o, s, i) {
18066
- const [a, c] = me({ top: 0, left: 0 }), l = ce(() => {
18066
+ const [a, c] = fe({ top: 0, left: 0 }), l = ce(() => {
18067
18067
  if (typeof window > "u" || !n || !e.current || !t.current) return;
18068
18068
  const u = e.current.getBoundingClientRect(), d = t.current.getBoundingClientRect(), f = {
18069
18069
  width: window.innerWidth,
@@ -18117,7 +18117,7 @@ function TT(e, t, n, r, o, s, i) {
18117
18117
  const v = 8;
18118
18118
  y < v && (y = v), y + d.width > f.width - v && (y = f.width - d.width - v), p < m + v && (p = m + v), p + d.height > m + f.height - v && (p = m + f.height - d.height - v), c({ top: p, left: y });
18119
18119
  }, [n, r, o, s, i, t, e]);
18120
- return de(() => {
18120
+ return ue(() => {
18121
18121
  if (typeof window > "u" || !n || !e.current || !t.current) return;
18122
18122
  l();
18123
18123
  let u = null;
@@ -18141,18 +18141,18 @@ const ET = ({
18141
18141
  onError: c,
18142
18142
  children: l
18143
18143
  }) => {
18144
- const [u, d] = me(n), [f, m] = me(r || ""), [b, p] = me(""), [y, v] = me(!1), w = dn(), x = `dropdown-trigger-${w}`, C = `dropdown-content-${w}`, k = e !== void 0, D = s ? !1 : k ? e : u, T = ce(
18145
- (P, O = !1) => {
18146
- s || (v(O), k || d(P), t?.(P));
18144
+ const [u, d] = fe(n), [f, m] = fe(r || ""), [b, p] = fe(""), [y, v] = fe(!1), w = dn(), x = `dropdown-trigger-${w}`, k = `dropdown-content-${w}`, C = e !== void 0, D = s ? !1 : C ? e : u, T = ce(
18145
+ (M, O = !1) => {
18146
+ s || (v(O), C || d(M), t?.(M));
18147
18147
  },
18148
- [k, t, s]
18148
+ [C, t, s]
18149
18149
  ), S = ce(
18150
- (P) => {
18151
- m(P), o?.(P);
18150
+ (M) => {
18151
+ m(M), o?.(M);
18152
18152
  },
18153
18153
  [o]
18154
18154
  );
18155
- de(() => {
18155
+ ue(() => {
18156
18156
  r !== void 0 && m(r);
18157
18157
  }, [r]);
18158
18158
  const N = Ce(
@@ -18160,7 +18160,7 @@ const ET = ({
18160
18160
  open: D,
18161
18161
  setOpen: T,
18162
18162
  triggerId: x,
18163
- contentId: C,
18163
+ contentId: k,
18164
18164
  selectedValue: r || f,
18165
18165
  setSelectedValue: S,
18166
18166
  activeDescendant: b,
@@ -18172,7 +18172,7 @@ const ET = ({
18172
18172
  D,
18173
18173
  T,
18174
18174
  x,
18175
- C,
18175
+ k,
18176
18176
  r,
18177
18177
  f,
18178
18178
  S,
@@ -18208,8 +18208,8 @@ const PT = ve(
18208
18208
  disabled: a,
18209
18209
  ...c
18210
18210
  }, l) => {
18211
- const { open: u, setOpen: d, triggerId: f, contentId: m } = Oi(), b = ue(null);
18212
- de(() => {
18211
+ const { open: u, setOpen: d, triggerId: f, contentId: m } = Oi(), b = de(null);
18212
+ ue(() => {
18213
18213
  l && (typeof l == "function" ? l(b.current) : l.current = b.current);
18214
18214
  }, [l]);
18215
18215
  const p = (x) => {
@@ -18244,7 +18244,7 @@ const PT = ve(
18244
18244
  "aria-controls": u ? m : void 0,
18245
18245
  disabled: a,
18246
18246
  "data-testid": "dropdown-trigger",
18247
- className: i ? e : M(kT({ variant: s }), e),
18247
+ className: i ? e : P(kT({ variant: s }), e),
18248
18248
  onMouseDown: p,
18249
18249
  onClick: y,
18250
18250
  onKeyDown: v,
@@ -18265,92 +18265,99 @@ const MT = ve(
18265
18265
  alignOffset: s = 0,
18266
18266
  container: i,
18267
18267
  preventClose: a = !1,
18268
- ...c
18269
- }, l) => {
18268
+ matchTriggerWidth: c = !1,
18269
+ width: l,
18270
+ ...u
18271
+ }, d) => {
18270
18272
  const {
18271
- open: u,
18272
- setOpen: d,
18273
- triggerId: f,
18274
- contentId: m,
18275
- activeDescendant: b,
18276
- openedViaKeyboard: p
18277
- } = Oi(), y = ue(null), v = ue(null), w = Yr();
18278
- de(() => {
18279
- l && (typeof l == "function" ? l(y.current) : l.current = y.current);
18280
- }, [l]);
18281
- const x = n ?? "bottom", C = r ?? "start", k = TT(
18282
- v,
18283
- y,
18284
- u,
18273
+ open: f,
18274
+ setOpen: m,
18275
+ triggerId: b,
18276
+ contentId: p,
18277
+ activeDescendant: y,
18278
+ openedViaKeyboard: v
18279
+ } = Oi(), w = de(null), x = de(null), k = Yr(), [C, D] = fe(null);
18280
+ ue(() => {
18281
+ d && (typeof d == "function" ? d(w.current) : d.current = w.current);
18282
+ }, [d]), ue(() => {
18283
+ if (!f || !x.current) return;
18284
+ const L = x.current.getBoundingClientRect();
18285
+ D(L.width);
18286
+ }, [f]);
18287
+ const T = n ?? "bottom", S = r ?? "start", N = TT(
18285
18288
  x,
18286
- C,
18289
+ w,
18290
+ f,
18291
+ T,
18292
+ S,
18287
18293
  o,
18288
18294
  s
18289
18295
  );
18290
- de(() => {
18296
+ ue(() => {
18291
18297
  if (typeof document > "u") return;
18292
- const N = document.getElementById(f);
18293
- N && (v.current = N);
18294
- }, [f]), DT(
18295
- y,
18296
- v,
18298
+ const L = document.getElementById(b);
18299
+ L && (x.current = L);
18300
+ }, [b]), DT(
18301
+ w,
18302
+ x,
18297
18303
  () => {
18298
- u && !a && d(!1);
18304
+ f && !a && m(!1);
18299
18305
  },
18300
- u
18301
- ), de(() => {
18302
- if (typeof document > "u" || !u || !y.current) return;
18303
- if (p) {
18304
- const P = y.current.querySelectorAll(
18306
+ f
18307
+ ), ue(() => {
18308
+ if (typeof document > "u" || !f || !w.current) return;
18309
+ if (v) {
18310
+ const W = w.current.querySelectorAll(
18305
18311
  '[role="menuitem"]:not([aria-disabled="true"])'
18306
18312
  );
18307
- P.length > 0 && P[0].focus();
18313
+ W.length > 0 && W[0].focus();
18308
18314
  }
18309
- const N = (P) => {
18310
- P.key === "Escape" && (P.preventDefault(), P.stopPropagation(), d(!1), v.current?.focus());
18315
+ const L = (W) => {
18316
+ W.key === "Escape" && (W.preventDefault(), W.stopPropagation(), m(!1), x.current?.focus());
18311
18317
  };
18312
- return document.addEventListener("keydown", N), () => document.removeEventListener("keydown", N);
18313
- }, [u, d, p]);
18314
- const D = Ce(
18315
- () => ST(x),
18316
- [x]
18317
- ), T = i || w || (typeof document < "u" ? document.body : null);
18318
- if (!T) return null;
18319
- const S = /* @__PURE__ */ h.jsx(ki, { mode: "wait", children: u && /* @__PURE__ */ h.jsx(
18318
+ return document.addEventListener("keydown", L), () => document.removeEventListener("keydown", L);
18319
+ }, [f, m, v]);
18320
+ const M = Ce(
18321
+ () => ST(T),
18322
+ [T]
18323
+ ), O = i || k || (typeof document < "u" ? document.body : null);
18324
+ if (!O) return null;
18325
+ const _ = /* @__PURE__ */ h.jsx(ki, { mode: "wait", children: f && /* @__PURE__ */ h.jsx(
18320
18326
  kt.div,
18321
18327
  {
18322
- ref: y,
18323
- id: m,
18328
+ ref: w,
18329
+ id: p,
18324
18330
  role: "menu",
18325
- "aria-labelledby": f,
18331
+ "aria-labelledby": b,
18326
18332
  "aria-orientation": "vertical",
18327
- "aria-activedescendant": b || void 0,
18333
+ "aria-activedescendant": y || void 0,
18328
18334
  "data-testid": "dropdown-content",
18329
18335
  initial: "initial",
18330
18336
  animate: "animate",
18331
18337
  exit: "exit",
18332
- variants: D,
18338
+ variants: M,
18333
18339
  transition: {
18334
18340
  duration: 0.2,
18335
18341
  ease: [0.16, 1, 0.3, 1]
18336
18342
  },
18337
- className: M(
18338
- wT({ side: x, align: C }),
18343
+ className: P(
18344
+ wT({ side: T, align: S }),
18339
18345
  e
18340
18346
  ),
18341
18347
  style: {
18342
18348
  position: "fixed",
18343
- top: `${k.top}px`,
18344
- left: `${k.left}px`,
18345
- pointerEvents: "auto"
18349
+ top: `${N.top}px`,
18350
+ left: `${N.left}px`,
18351
+ pointerEvents: "auto",
18352
+ width: l ? typeof l == "number" ? `${l}px` : l : c && C ? `${C}px` : void 0
18346
18353
  },
18347
- ...c,
18354
+ ...u,
18348
18355
  children: t
18349
18356
  }
18350
18357
  ) });
18351
18358
  return Ds(
18352
- /* @__PURE__ */ h.jsx(Qc, { fallback: null, children: S }),
18353
- T
18359
+ /* @__PURE__ */ h.jsx(Qc, { fallback: null, children: _ }),
18360
+ O
18354
18361
  );
18355
18362
  }
18356
18363
  );
@@ -18372,67 +18379,65 @@ const NT = ve(
18372
18379
  setSelectedValue: d,
18373
18380
  setActiveDescendant: f,
18374
18381
  animateItems: m
18375
- } = Oi(), b = o !== void 0 && o === u, p = ue(null), v = `dropdown-item-${dn()}`, [w, x] = me(!1);
18376
- de(() => {
18382
+ } = Oi(), b = o !== void 0 && o === u, p = de(null), v = `dropdown-item-${dn()}`, [w, x] = fe(!1);
18383
+ ue(() => {
18377
18384
  c && (typeof c == "function" ? c(p.current) : c.current = p.current);
18378
18385
  }, [c]);
18379
- const C = ce(() => {
18386
+ const k = ce(() => {
18380
18387
  n || w || (x(!0), o !== void 0 && d(o), r || l(!1), setTimeout(() => x(!1), 300));
18381
- }, [n, w, o, d, r, l]), k = (S) => {
18382
- n || w || (S.stopPropagation(), s?.(S), C());
18388
+ }, [n, w, o, d, r, l]), C = (S) => {
18389
+ n || w || (S.stopPropagation(), s?.(S), k());
18383
18390
  }, D = (S) => {
18384
18391
  if (n) return;
18385
18392
  const N = p.current;
18386
18393
  if (!N) return;
18387
- const P = Array.from(
18388
- N.closest('[role="menu"]')?.querySelectorAll(
18389
- '[role="menuitem"]:not([aria-disabled="true"])'
18390
- ) || []
18391
- ), O = P.indexOf(N);
18394
+ const M = Array.from(
18395
+ N.closest('[role="menu"]')?.querySelectorAll('[role="menuitem"]:not([aria-disabled="true"])') || []
18396
+ ), O = M.indexOf(N);
18392
18397
  switch (S.key) {
18393
18398
  case "Enter":
18394
18399
  case " ":
18395
- S.preventDefault(), S.stopPropagation(), i?.(S), C();
18400
+ S.preventDefault(), S.stopPropagation(), i?.(S), k();
18396
18401
  break;
18397
18402
  case "ArrowDown":
18398
- if (S.preventDefault(), S.stopPropagation(), P.length > 0) {
18399
- const _ = (O + 1) % P.length, B = P[_];
18400
- B?.focus(), f(B.id);
18403
+ if (S.preventDefault(), S.stopPropagation(), M.length > 0) {
18404
+ const _ = (O + 1) % M.length, L = M[_];
18405
+ L?.focus(), f(L.id);
18401
18406
  }
18402
18407
  break;
18403
18408
  case "ArrowUp":
18404
- if (S.preventDefault(), S.stopPropagation(), P.length > 0) {
18405
- const _ = O === 0 ? P.length - 1 : O - 1, B = P[_];
18406
- B?.focus(), f(B.id);
18409
+ if (S.preventDefault(), S.stopPropagation(), M.length > 0) {
18410
+ const _ = O === 0 ? M.length - 1 : O - 1, L = M[_];
18411
+ L?.focus(), f(L.id);
18407
18412
  }
18408
18413
  break;
18409
18414
  case "Home":
18410
- if (S.preventDefault(), S.stopPropagation(), P.length > 0) {
18411
- const _ = P[0];
18415
+ if (S.preventDefault(), S.stopPropagation(), M.length > 0) {
18416
+ const _ = M[0];
18412
18417
  _?.focus(), f(_.id);
18413
18418
  }
18414
18419
  break;
18415
18420
  case "End":
18416
- if (S.preventDefault(), S.stopPropagation(), P.length > 0) {
18417
- const _ = P[P.length - 1];
18421
+ if (S.preventDefault(), S.stopPropagation(), M.length > 0) {
18422
+ const _ = M[M.length - 1];
18418
18423
  _?.focus(), f(_.id);
18419
18424
  }
18420
18425
  break;
18421
18426
  case "Tab":
18422
- if (P.length > 0)
18427
+ if (M.length > 0)
18423
18428
  if (S.shiftKey)
18424
18429
  if (O === 0)
18425
18430
  l(!1);
18426
18431
  else {
18427
18432
  S.preventDefault();
18428
- const _ = P[O - 1];
18433
+ const _ = M[O - 1];
18429
18434
  _?.focus(), f(_.id);
18430
18435
  }
18431
- else if (O === P.length - 1)
18436
+ else if (O === M.length - 1)
18432
18437
  l(!1);
18433
18438
  else {
18434
18439
  S.preventDefault();
18435
- const _ = P[O + 1];
18440
+ const _ = M[O + 1];
18436
18441
  _?.focus(), f(_.id);
18437
18442
  }
18438
18443
  break;
@@ -18453,8 +18458,8 @@ const NT = ve(
18453
18458
  "data-disabled": n ? "" : void 0,
18454
18459
  "data-selected": b ? "" : void 0,
18455
18460
  "data-testid": `dropdown-item-${o || v}`,
18456
- className: M(CT(), e),
18457
- onClick: k,
18461
+ className: P(CT(), e),
18462
+ onClick: C,
18458
18463
  onKeyDown: D,
18459
18464
  onFocus: T,
18460
18465
  whileHover: n || !m ? void 0 : { scale: 1.01 },
@@ -18473,10 +18478,7 @@ const AT = ve(({ className: e, ...t }, n) => /* @__PURE__ */ h.jsx(
18473
18478
  role: "separator",
18474
18479
  "aria-orientation": "horizontal",
18475
18480
  "data-testid": "dropdown-separator",
18476
- className: M(
18477
- "my-1 h-px bg-(--atom-theme-border-primary)",
18478
- e
18479
- ),
18481
+ className: P("my-1 h-px bg-(--atom-theme-border-primary)", e),
18480
18482
  ...t
18481
18483
  }
18482
18484
  ));
@@ -18488,7 +18490,7 @@ const RT = ve(
18488
18490
  ref: n,
18489
18491
  role: "presentation",
18490
18492
  "data-testid": "dropdown-label",
18491
- className: M(
18493
+ className: P(
18492
18494
  "px-3 py-1.5 text-xs font-semibold text-(--atom-text-secondary)",
18493
18495
  e
18494
18496
  ),
@@ -18504,7 +18506,7 @@ const OT = ve(
18504
18506
  ref: r,
18505
18507
  role: "group",
18506
18508
  "data-testid": "dropdown-group",
18507
- className: M("py-1", e),
18509
+ className: P("py-1", e),
18508
18510
  ...n,
18509
18511
  children: t
18510
18512
  }
@@ -18602,7 +18604,7 @@ const _T = te(
18602
18604
  };
18603
18605
  };
18604
18606
  function FT(e, t, n, r = !0) {
18605
- de(() => {
18607
+ ue(() => {
18606
18608
  if (!r || typeof document > "u") return;
18607
18609
  const o = (s) => {
18608
18610
  const i = s.target;
@@ -18614,7 +18616,7 @@ function FT(e, t, n, r = !0) {
18614
18616
  }, [e, t, n, r]);
18615
18617
  }
18616
18618
  function LT(e, t, n, r, o, s, i) {
18617
- const [a, c] = me({ top: 0, left: 0 }), l = ce(() => {
18619
+ const [a, c] = fe({ top: 0, left: 0 }), l = ce(() => {
18618
18620
  if (typeof window > "u" || !n || !e.current || !t.current) return;
18619
18621
  const u = e.current.getBoundingClientRect(), d = t.current.getBoundingClientRect(), f = {
18620
18622
  width: window.innerWidth,
@@ -18668,7 +18670,7 @@ function LT(e, t, n, r, o, s, i) {
18668
18670
  const v = 8;
18669
18671
  y < v && (y = v), y + d.width > f.width - v && (y = f.width - d.width - v), p < m + v && (p = m + v), p + d.height > m + f.height - v && (p = m + f.height - d.height - v), c({ top: p, left: y });
18670
18672
  }, [n, r, o, s, i, t, e]);
18671
- return de(() => {
18673
+ return ue(() => {
18672
18674
  if (typeof window > "u" || !n || !e.current || !t.current) return;
18673
18675
  l();
18674
18676
  let u = null;
@@ -18689,7 +18691,7 @@ const WT = ({
18689
18691
  onError: s,
18690
18692
  children: i
18691
18693
  }) => {
18692
- const [a, c] = me(n), l = dn(), u = `popover-trigger-${l}`, d = `popover-content-${l}`, f = e !== void 0, m = f ? e : a, b = ce(
18694
+ const [a, c] = fe(n), l = dn(), u = `popover-trigger-${l}`, d = `popover-content-${l}`, f = e !== void 0, m = f ? e : a, b = ce(
18693
18695
  (y) => {
18694
18696
  f || c(y), t?.(y);
18695
18697
  },
@@ -18717,8 +18719,8 @@ const BT = ve(
18717
18719
  disabled: s,
18718
18720
  ...i
18719
18721
  }, a) => {
18720
- const { open: c, setOpen: l, triggerId: u, contentId: d } = ji(), f = ue(null);
18721
- de(() => {
18722
+ const { open: c, setOpen: l, triggerId: u, contentId: d } = ji(), f = de(null);
18723
+ ue(() => {
18722
18724
  a && (typeof a == "function" ? a(f.current) : a.current = f.current);
18723
18725
  }, [a]);
18724
18726
  const m = (y) => {
@@ -18738,7 +18740,7 @@ const BT = ve(
18738
18740
  disabled: s,
18739
18741
  "data-state": c ? "open" : "closed",
18740
18742
  "data-testid": "popover-trigger",
18741
- className: o ? e : M(IT(), e),
18743
+ className: o ? e : P(IT(), e),
18742
18744
  onClick: m,
18743
18745
  onKeyDown: b,
18744
18746
  ...i,
@@ -18763,11 +18765,11 @@ const $T = ve(
18763
18765
  showArrow: u = !1,
18764
18766
  ...d
18765
18767
  }, f) => {
18766
- const { open: m, setOpen: b, triggerId: p, contentId: y, modal: v } = ji(), w = ue(null), x = ue(null), C = Yr();
18767
- de(() => {
18768
+ const { open: m, setOpen: b, triggerId: p, contentId: y, modal: v } = ji(), w = de(null), x = de(null), k = Yr();
18769
+ ue(() => {
18768
18770
  f && (typeof f == "function" ? f(w.current) : f.current = w.current);
18769
18771
  }, [f]);
18770
- const k = LT(
18772
+ const C = LT(
18771
18773
  x,
18772
18774
  w,
18773
18775
  m,
@@ -18776,7 +18778,7 @@ const $T = ve(
18776
18778
  s,
18777
18779
  i
18778
18780
  );
18779
- de(() => {
18781
+ ue(() => {
18780
18782
  if (typeof document > "u") return;
18781
18783
  const O = document.getElementById(p);
18782
18784
  O && (x.current = O);
@@ -18787,38 +18789,38 @@ const $T = ve(
18787
18789
  m && !c && !l && b(!1);
18788
18790
  },
18789
18791
  m
18790
- ), de(() => {
18792
+ ), ue(() => {
18791
18793
  if (typeof document > "u" || !m) return;
18792
18794
  const O = (_) => {
18793
18795
  _.key === "Escape" && (_.preventDefault(), _.stopPropagation(), b(!1), x.current?.focus());
18794
18796
  };
18795
18797
  return document.addEventListener("keydown", O), () => document.removeEventListener("keydown", O);
18796
- }, [m, b]), de(() => {
18798
+ }, [m, b]), ue(() => {
18797
18799
  if (typeof document > "u" || !m || !v) return;
18798
18800
  const O = window.getComputedStyle(document.body).overflow;
18799
18801
  return document.body.style.overflow = "hidden", () => {
18800
18802
  document.body.style.overflow = O;
18801
18803
  };
18802
- }, [m, v]), de(() => {
18804
+ }, [m, v]), ue(() => {
18803
18805
  if (typeof document > "u" || !m || !v || !w.current) return;
18804
18806
  const O = w.current.querySelectorAll(
18805
18807
  'button, [href], input, select, textarea, [tabindex]:not([tabindex="-1"])'
18806
- ), _ = O[0], B = O[O.length - 1], z = (K) => {
18807
- K.key === "Tab" && (K.shiftKey ? document.activeElement === _ && (K.preventDefault(), B?.focus()) : document.activeElement === B && (K.preventDefault(), _?.focus()));
18808
+ ), _ = O[0], L = O[O.length - 1], W = (K) => {
18809
+ K.key === "Tab" && (K.shiftKey ? document.activeElement === _ && (K.preventDefault(), L?.focus()) : document.activeElement === L && (K.preventDefault(), _?.focus()));
18808
18810
  };
18809
- return _?.focus(), document.addEventListener("keydown", z), () => document.removeEventListener("keydown", z);
18811
+ return _?.focus(), document.addEventListener("keydown", W), () => document.removeEventListener("keydown", W);
18810
18812
  }, [m, v]);
18811
18813
  const D = Ce(
18812
18814
  () => VT(n ?? "bottom"),
18813
18815
  [n]
18814
- ), T = a || C || (typeof document < "u" ? document.body : null);
18816
+ ), T = a || k || (typeof document < "u" ? document.body : null);
18815
18817
  if (!T) return null;
18816
- const S = () => M("absolute h-2 w-2 rotate-45 bg-[var(--atom-theme-surface-primary)] border-[var(--atom-theme-border-primary)]", {
18818
+ const S = () => P("absolute h-2 w-2 rotate-45 bg-[var(--atom-theme-surface-primary)] border-[var(--atom-theme-border-primary)]", {
18817
18819
  top: "bottom-[-5px] border-r border-b",
18818
18820
  bottom: "top-[-5px] border-l border-t",
18819
18821
  left: "right-[-5px] border-t border-r",
18820
18822
  right: "left-[-5px] border-b border-l"
18821
- }[n ?? "bottom"]), N = () => r === "center" ? { left: "calc(50% - 4px)" } : r === "start" ? { left: "16px" } : r === "end" ? { right: "16px" } : {}, P = /* @__PURE__ */ h.jsx(ki, { mode: "wait", children: m && /* @__PURE__ */ h.jsxs(h.Fragment, { children: [
18823
+ }[n ?? "bottom"]), N = () => r === "center" ? { left: "calc(50% - 4px)" } : r === "start" ? { left: "16px" } : r === "end" ? { right: "16px" } : {}, M = /* @__PURE__ */ h.jsx(ki, { mode: "wait", children: m && /* @__PURE__ */ h.jsxs(h.Fragment, { children: [
18822
18824
  v && /* @__PURE__ */ h.jsx(
18823
18825
  kt.div,
18824
18826
  {
@@ -18850,14 +18852,14 @@ const $T = ve(
18850
18852
  duration: 0.2,
18851
18853
  ease: [0.16, 1, 0.3, 1]
18852
18854
  },
18853
- className: M(
18855
+ className: P(
18854
18856
  _T({ side: n, align: r, size: o }),
18855
18857
  e
18856
18858
  ),
18857
18859
  style: {
18858
18860
  position: "fixed",
18859
- top: `${k.top}px`,
18860
- left: `${k.left}px`,
18861
+ top: `${C.top}px`,
18862
+ left: `${C.left}px`,
18861
18863
  pointerEvents: "auto"
18862
18864
  },
18863
18865
  ...d,
@@ -18876,7 +18878,7 @@ const $T = ve(
18876
18878
  )
18877
18879
  ] }) });
18878
18880
  return Ds(
18879
- /* @__PURE__ */ h.jsx(Qc, { fallback: null, children: P }),
18881
+ /* @__PURE__ */ h.jsx(Qc, { fallback: null, children: M }),
18880
18882
  T
18881
18883
  );
18882
18884
  }
@@ -18888,7 +18890,7 @@ const zT = ve(
18888
18890
  {
18889
18891
  ref: r,
18890
18892
  "data-testid": "popover-header",
18891
- className: M(
18893
+ className: P(
18892
18894
  "flex items-center justify-between px-4 py-3 border-b border-(--atom-theme-border-primary)",
18893
18895
  e
18894
18896
  ),
@@ -18904,7 +18906,7 @@ const YT = ve(
18904
18906
  {
18905
18907
  ref: r,
18906
18908
  "data-testid": "popover-body",
18907
- className: M("px-4 py-3", e),
18909
+ className: P("px-4 py-3", e),
18908
18910
  ...n,
18909
18911
  children: t
18910
18912
  }
@@ -18917,7 +18919,7 @@ const HT = ve(
18917
18919
  {
18918
18920
  ref: r,
18919
18921
  "data-testid": "popover-footer",
18920
- className: M(
18922
+ className: P(
18921
18923
  "flex items-center justify-end gap-2 px-4 py-3 border-t border-(--atom-theme-border-primary)",
18922
18924
  e
18923
18925
  ),
@@ -18933,7 +18935,7 @@ const UT = ve(
18933
18935
  {
18934
18936
  ref: r,
18935
18937
  "data-testid": "popover-title",
18936
- className: M(
18938
+ className: P(
18937
18939
  "text-lg font-semibold text-(--atom-text)",
18938
18940
  e
18939
18941
  ),
@@ -18948,7 +18950,7 @@ const GT = ve(({ className: e, children: t, ...n }, r) => /* @__PURE__ */ h.jsx(
18948
18950
  {
18949
18951
  ref: r,
18950
18952
  "data-testid": "popover-description",
18951
- className: M(
18953
+ className: P(
18952
18954
  "text-sm text-(--atom-text)",
18953
18955
  e
18954
18956
  ),
@@ -18968,7 +18970,7 @@ const qT = ve(
18968
18970
  ref: s,
18969
18971
  type: r ? void 0 : "button",
18970
18972
  "data-testid": "popover-close",
18971
- className: r ? e : M(
18973
+ className: r ? e : P(
18972
18974
  "inline-flex items-center justify-center rounded-md text-sm font-medium transition-colors",
18973
18975
  "focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-(--atom-primary)",
18974
18976
  "disabled:pointer-events-none disabled:opacity-50",
@@ -19057,7 +19059,7 @@ const KT = te(
19057
19059
  onBlur: b,
19058
19060
  ...p
19059
19061
  }, y) => {
19060
- const v = g.useId(), w = c ?? `inp_${v}`, [x, C] = g.useState(!1), k = !!r, D = !!o || a, S = i ?? (d && x && !i && (m === "" || m === void 0) ? f : void 0), N = s ? `${w}__hint` : void 0, P = S ? `${w}__err` : void 0, O = [N, P].filter(Boolean).join(" ") || void 0, _ = n === "invalid" || !!S;
19062
+ const v = g.useId(), w = c ?? `inp_${v}`, [x, k] = g.useState(!1), C = !!r, D = !!o || a, S = i ?? (d && x && !i && (m === "" || m === void 0) ? f : void 0), N = s ? `${w}__hint` : void 0, M = S ? `${w}__err` : void 0, O = [N, M].filter(Boolean).join(" ") || void 0, _ = n === "invalid" || !!S;
19061
19063
  return /* @__PURE__ */ h.jsxs("div", { className: "w-full", children: [
19062
19064
  u && /* @__PURE__ */ h.jsxs(
19063
19065
  "label",
@@ -19071,7 +19073,7 @@ const KT = te(
19071
19073
  }
19072
19074
  ),
19073
19075
  /* @__PURE__ */ h.jsxs("div", { className: "relative", children: [
19074
- k && /* @__PURE__ */ h.jsx("span", { className: "pointer-events-none absolute left-0 top-1/2 -translate-y-1/2 flex w-9 items-center justify-center", children: r }),
19076
+ C && /* @__PURE__ */ h.jsx("span", { className: "pointer-events-none absolute left-0 top-1/2 -translate-y-1/2 flex w-9 items-center justify-center", children: r }),
19075
19077
  D && /* @__PURE__ */ h.jsx("span", { className: "absolute right-0 top-1/2 -translate-y-1/2 flex w-9 items-center justify-center", children: a ? /* @__PURE__ */ h.jsxs(
19076
19078
  "svg",
19077
19079
  {
@@ -19097,8 +19099,8 @@ const KT = te(
19097
19099
  {
19098
19100
  ref: y,
19099
19101
  id: w,
19100
- className: M(
19101
- KT({ size: t, tone: n, hasLeft: k, hasRight: D }),
19102
+ className: P(
19103
+ KT({ size: t, tone: n, hasLeft: C, hasRight: D }),
19102
19104
  _ && "border-[var(--atom-error)]",
19103
19105
  e
19104
19106
  ),
@@ -19106,17 +19108,17 @@ const KT = te(
19106
19108
  placeholder: l ?? " ",
19107
19109
  "aria-required": d || void 0,
19108
19110
  "aria-invalid": _ || void 0,
19109
- "aria-errormessage": P,
19111
+ "aria-errormessage": M,
19110
19112
  "aria-describedby": O,
19111
- onBlur: (B) => {
19112
- C(!0), b?.(B);
19113
+ onBlur: (L) => {
19114
+ k(!0), b?.(L);
19113
19115
  },
19114
19116
  ...p
19115
19117
  }
19116
19118
  )
19117
19119
  ] }),
19118
19120
  (s || S) && /* @__PURE__ */ h.jsxs("div", { className: "mt-1 text-xs leading-snug", children: [
19119
- S && /* @__PURE__ */ h.jsx("p", { id: P, className: "text-[var(--atom-error)]", children: S }),
19121
+ S && /* @__PURE__ */ h.jsx("p", { id: M, className: "text-[var(--atom-error)]", children: S }),
19120
19122
  s && !S && /* @__PURE__ */ h.jsx("p", { id: N, className: "text-[var(--atom-text-muted)]", children: s })
19121
19123
  ] })
19122
19124
  ] });
@@ -19157,7 +19159,7 @@ var no = "Switch", [ZT] = Mt(no), [QT, JT] = ZT(no), fm = g.forwardRef(
19157
19159
  ...d,
19158
19160
  ref: b,
19159
19161
  onClick: he(e.onClick, (x) => {
19160
- w((C) => !C), y && (p.current = x.isPropagationStopped(), p.current || x.stopPropagation());
19162
+ w((k) => !k), y && (p.current = x.isPropagationStopped(), p.current || x.stopPropagation());
19161
19163
  })
19162
19164
  }
19163
19165
  ),
@@ -19299,7 +19301,7 @@ const rE = te(
19299
19301
  {
19300
19302
  ref: a,
19301
19303
  "data-slot": "switch",
19302
- className: M(
19304
+ className: P(
19303
19305
  rE({ variant: t, size: f, fullWidth: r }),
19304
19306
  e
19305
19307
  ),
@@ -19358,7 +19360,7 @@ const rE = te(
19358
19360
  sE,
19359
19361
  {
19360
19362
  "data-slot": "switch-thumb",
19361
- className: M(
19363
+ className: P(
19362
19364
  m.size,
19363
19365
  "block rounded-full bg-white relative z-10 "
19364
19366
  ),