@rishabh_7775/react-component-library 0.1.0 → 0.1.1

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,17 +1,17 @@
1
1
  import { jsxs as L, jsx as g } from "react/jsx-runtime";
2
- import Dt, { forwardRef as B, useId as re, useContext as ge, createContext as Me, useState as ce, useRef as ve, useEffect as ne, isValidElement as jt, cloneElement as zt, useCallback as Lt } from "react";
2
+ import nt, { forwardRef as B, useId as re, useContext as ge, useState as se, createContext as Me, useRef as ve, useEffect as ne, isValidElement as jt, cloneElement as zt, useCallback as Lt } from "react";
3
3
  import { createPortal as _t } from "react-dom";
4
- function nt(t) {
4
+ function st(t) {
5
5
  var e, r, a = "";
6
6
  if (typeof t == "string" || typeof t == "number") a += t;
7
7
  else if (typeof t == "object") if (Array.isArray(t)) {
8
8
  var n = t.length;
9
- for (e = 0; e < n; e++) t[e] && (r = nt(t[e])) && (a && (a += " "), a += r);
9
+ for (e = 0; e < n; e++) t[e] && (r = st(t[e])) && (a && (a += " "), a += r);
10
10
  } else for (r in t) t[r] && (a && (a += " "), a += r);
11
11
  return a;
12
12
  }
13
- function st() {
14
- for (var t, e, r = 0, a = "", n = arguments.length; r < n; r++) (t = arguments[r]) && (e = nt(t)) && (a && (a += " "), a += e);
13
+ function it() {
14
+ for (var t, e, r = 0, a = "", n = arguments.length; r < n; r++) (t = arguments[r]) && (e = st(t)) && (a && (a += " "), a += e);
15
15
  return a;
16
16
  }
17
17
  const Mt = (t, e) => {
@@ -24,7 +24,7 @@ const Mt = (t, e) => {
24
24
  }, Bt = (t, e) => ({
25
25
  classGroupId: t,
26
26
  validator: e
27
- }), it = (t = /* @__PURE__ */ new Map(), e = null, r) => ({
27
+ }), lt = (t = /* @__PURE__ */ new Map(), e = null, r) => ({
28
28
  nextPart: t,
29
29
  validators: e,
30
30
  classGroupId: r
@@ -38,7 +38,7 @@ const Mt = (t, e) => {
38
38
  if (o.startsWith("[") && o.endsWith("]"))
39
39
  return $t(o);
40
40
  const i = o.split(Ee), f = i[0] === "" && i.length > 1 ? 1 : 0;
41
- return lt(i, f, e);
41
+ return ct(i, f, e);
42
42
  },
43
43
  getConflictingClassGroupIds: (o, i) => {
44
44
  if (i) {
@@ -48,12 +48,12 @@ const Mt = (t, e) => {
48
48
  return r[o] || $e;
49
49
  }
50
50
  };
51
- }, lt = (t, e, r) => {
51
+ }, ct = (t, e, r) => {
52
52
  if (t.length - e === 0)
53
53
  return r.classGroupId;
54
54
  const n = t[e], s = r.nextPart.get(n);
55
55
  if (s) {
56
- const u = lt(t, e + 1, s);
56
+ const u = ct(t, e + 1, s);
57
57
  if (u) return u;
58
58
  }
59
59
  const o = r.validators;
@@ -61,9 +61,9 @@ const Mt = (t, e) => {
61
61
  return;
62
62
  const i = e === 0 ? t.join(Ee) : t.slice(e).join(Ee), f = o.length;
63
63
  for (let u = 0; u < f; u++) {
64
- const m = o[u];
65
- if (m.validator(i))
66
- return m.classGroupId;
64
+ const p = o[u];
65
+ if (p.validator(i))
66
+ return p.classGroupId;
67
67
  }
68
68
  }, $t = (t) => t.slice(1, -1).indexOf(":") === -1 ? void 0 : (() => {
69
69
  const e = t.slice(1, -1), r = e.indexOf(":"), a = e.slice(0, r);
@@ -75,7 +75,7 @@ const Mt = (t, e) => {
75
75
  } = t;
76
76
  return Wt(r, e);
77
77
  }, Wt = (t, e) => {
78
- const r = it();
78
+ const r = lt();
79
79
  for (const a in t) {
80
80
  const n = t[a];
81
81
  Be(n, r, a, e);
@@ -98,7 +98,7 @@ const Mt = (t, e) => {
98
98
  }
99
99
  Yt(t, e, r, a);
100
100
  }, qt = (t, e, r) => {
101
- const a = t === "" ? e : ct(e, t);
101
+ const a = t === "" ? e : dt(e, t);
102
102
  a.classGroupId = r;
103
103
  }, Ht = (t, e, r, a) => {
104
104
  if (Xt(t)) {
@@ -110,15 +110,15 @@ const Mt = (t, e) => {
110
110
  const n = Object.entries(t), s = n.length;
111
111
  for (let o = 0; o < s; o++) {
112
112
  const [i, f] = n[o];
113
- Be(f, ct(e, i), r, a);
113
+ Be(f, dt(e, i), r, a);
114
114
  }
115
- }, ct = (t, e) => {
115
+ }, dt = (t, e) => {
116
116
  let r = t;
117
117
  const a = e.split(Ee), n = a.length;
118
118
  for (let s = 0; s < n; s++) {
119
119
  const o = a[s];
120
120
  let i = r.nextPart.get(o);
121
- i || (i = it(), r.nextPart.set(o, i)), r = i;
121
+ i || (i = lt(), r.nextPart.set(o, i)), r = i;
122
122
  }
123
123
  return r;
124
124
  }, Xt = (t) => "isThemeGetter" in t && t.isThemeGetter === !0, Zt = (t) => {
@@ -159,32 +159,32 @@ const Mt = (t, e) => {
159
159
  let a = (n) => {
160
160
  const s = [];
161
161
  let o = 0, i = 0, f = 0, u;
162
- const m = n.length;
163
- for (let F = 0; F < m; F++) {
164
- const A = n[F];
162
+ const p = n.length;
163
+ for (let O = 0; O < p; O++) {
164
+ const A = n[O];
165
165
  if (o === 0 && i === 0) {
166
166
  if (A === Ke) {
167
- s.push(n.slice(f, F)), f = F + 1;
167
+ s.push(n.slice(f, O)), f = O + 1;
168
168
  continue;
169
169
  }
170
170
  if (A === "/") {
171
- u = F;
171
+ u = O;
172
172
  continue;
173
173
  }
174
174
  }
175
175
  A === "[" ? o++ : A === "]" ? o-- : A === "(" ? i++ : A === ")" && i--;
176
176
  }
177
- const p = s.length === 0 ? n : n.slice(f);
178
- let h = p, T = !1;
179
- p.endsWith(ze) ? (h = p.slice(0, -1), T = !0) : (
177
+ const m = s.length === 0 ? n : n.slice(f);
178
+ let v = m, T = !1;
179
+ m.endsWith(ze) ? (v = m.slice(0, -1), T = !0) : (
180
180
  /**
181
181
  * In Tailwind CSS v3 the important modifier was at the start of the base class name. This is still supported for legacy reasons.
182
182
  * @see https://github.com/dcastil/tailwind-merge/issues/513#issuecomment-2614029864
183
183
  */
184
- p.startsWith(ze) && (h = p.slice(1), T = !0)
184
+ m.startsWith(ze) && (v = m.slice(1), T = !0)
185
185
  );
186
- const O = u && u > f ? u - f : void 0;
187
- return We(s, T, h, O);
186
+ const F = u && u > f ? u - f : void 0;
187
+ return We(s, T, v, F);
188
188
  };
189
189
  if (e) {
190
190
  const n = e + Ke, s = a;
@@ -232,38 +232,38 @@ const Mt = (t, e) => {
232
232
  postfixLookupClassGroupIds: o
233
233
  } = e, i = [], f = t.trim().split(ar);
234
234
  let u = "";
235
- for (let m = f.length - 1; m >= 0; m -= 1) {
236
- const p = f[m], {
237
- isExternal: h,
235
+ for (let p = f.length - 1; p >= 0; p -= 1) {
236
+ const m = f[p], {
237
+ isExternal: v,
238
238
  modifiers: T,
239
- hasImportantModifier: O,
240
- baseClassName: F,
239
+ hasImportantModifier: F,
240
+ baseClassName: O,
241
241
  maybePostfixModifierPosition: A
242
- } = r(p);
243
- if (h) {
244
- u = p + (u.length > 0 ? " " + u : u);
242
+ } = r(m);
243
+ if (v) {
244
+ u = m + (u.length > 0 ? " " + u : u);
245
245
  continue;
246
246
  }
247
247
  let W = !!A, V;
248
248
  if (W) {
249
- const w = F.substring(0, A);
249
+ const w = O.substring(0, A);
250
250
  V = a(w);
251
- const d = V && o[V] ? a(F) : void 0;
251
+ const d = V && o[V] ? a(O) : void 0;
252
252
  d && d !== V && (V = d, W = !1);
253
253
  } else
254
- V = a(F);
254
+ V = a(O);
255
255
  if (!V) {
256
256
  if (!W) {
257
- u = p + (u.length > 0 ? " " + u : u);
257
+ u = m + (u.length > 0 ? " " + u : u);
258
258
  continue;
259
259
  }
260
- if (V = a(F), !V) {
261
- u = p + (u.length > 0 ? " " + u : u);
260
+ if (V = a(O), !V) {
261
+ u = m + (u.length > 0 ? " " + u : u);
262
262
  continue;
263
263
  }
264
264
  W = !1;
265
265
  }
266
- const Q = T.length === 0 ? "" : T.length === 1 ? T[0] : s(T).join(":"), X = O ? Q + ze : Q, Z = X + V;
266
+ const Q = T.length === 0 ? "" : T.length === 1 ? T[0] : s(T).join(":"), X = F ? Q + ze : Q, Z = X + V;
267
267
  if (i.indexOf(Z) > -1)
268
268
  continue;
269
269
  i.push(Z);
@@ -272,50 +272,50 @@ const Mt = (t, e) => {
272
272
  const d = H[w];
273
273
  i.push(X + d);
274
274
  }
275
- u = p + (u.length > 0 ? " " + u : u);
275
+ u = m + (u.length > 0 ? " " + u : u);
276
276
  }
277
277
  return u;
278
278
  }, nr = (...t) => {
279
279
  let e = 0, r, a, n = "";
280
280
  for (; e < t.length; )
281
- (r = t[e++]) && (a = dt(r)) && (n && (n += " "), n += a);
281
+ (r = t[e++]) && (a = ut(r)) && (n && (n += " "), n += a);
282
282
  return n;
283
- }, dt = (t) => {
283
+ }, ut = (t) => {
284
284
  if (typeof t == "string")
285
285
  return t;
286
286
  let e, r = "";
287
287
  for (let a = 0; a < t.length; a++)
288
- t[a] && (e = dt(t[a])) && (r && (r += " "), r += e);
288
+ t[a] && (e = ut(t[a])) && (r && (r += " "), r += e);
289
289
  return r;
290
290
  }, sr = (t, ...e) => {
291
291
  let r, a, n, s;
292
292
  const o = (f) => {
293
- const u = e.reduce((m, p) => p(m), t());
293
+ const u = e.reduce((p, m) => m(p), t());
294
294
  return r = tr(u), a = r.cache.get, n = r.cache.set, s = i, i(f);
295
295
  }, i = (f) => {
296
296
  const u = a(f);
297
297
  if (u)
298
298
  return u;
299
- const m = or(f, r);
300
- return n(f, m), m;
299
+ const p = or(f, r);
300
+ return n(f, p), p;
301
301
  };
302
302
  return s = o, (...f) => s(nr(...f));
303
303
  }, ir = [], U = (t) => {
304
304
  const e = (r) => r[t] || ir;
305
305
  return e.isThemeGetter = !0, e;
306
- }, ut = /^\[(?:(\w[\w-]*):)?(.+)\]$/i, ft = /^\((?:(\w[\w-]*):)?(.+)\)$/i, lr = /^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/, cr = /^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/, dr = /\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/, ur = /^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/, fr = /^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/, br = /^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/, ae = (t) => lr.test(t), P = (t) => !!t && !Number.isNaN(Number(t)), J = (t) => !!t && Number.isInteger(Number(t)), je = (t) => t.endsWith("%") && P(t.slice(0, -1)), ee = (t) => cr.test(t), bt = () => !0, mr = (t) => (
306
+ }, ft = /^\[(?:(\w[\w-]*):)?(.+)\]$/i, bt = /^\((?:(\w[\w-]*):)?(.+)\)$/i, lr = /^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/, cr = /^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/, dr = /\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/, ur = /^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/, fr = /^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/, br = /^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/, ae = (t) => lr.test(t), P = (t) => !!t && !Number.isNaN(Number(t)), J = (t) => !!t && Number.isInteger(Number(t)), je = (t) => t.endsWith("%") && P(t.slice(0, -1)), ee = (t) => cr.test(t), mt = () => !0, mr = (t) => (
307
307
  // `colorFunctionRegex` check is necessary because color functions can have percentages in them which which would be incorrectly classified as lengths.
308
308
  // For example, `hsl(0 0% 0%)` would be classified as a length without this check.
309
309
  // I could also use lookbehind assertion in `lengthUnitRegex` but that isn't supported widely enough.
310
310
  dr.test(t) && !ur.test(t)
311
- ), Ge = () => !1, pr = (t) => fr.test(t), vr = (t) => br.test(t), hr = (t) => !k(t) && !x(t), gr = (t) => t.startsWith("@container") && (t[10] === "/" && t[11] !== void 0 || t[11] === "s" && t[16] !== void 0 && t.startsWith("-size/", 10) || t[11] === "n" && t[18] !== void 0 && t.startsWith("-normal/", 10)), yr = (t) => se(t, vt, Ge), k = (t) => ut.test(t), ie = (t) => se(t, ht, mr), Ue = (t) => se(t, Er, P), kr = (t) => se(t, yt, bt), xr = (t) => se(t, gt, Ge), qe = (t) => se(t, mt, Ge), wr = (t) => se(t, pt, vr), we = (t) => se(t, kt, pr), x = (t) => ft.test(t), me = (t) => ue(t, ht), Tr = (t) => ue(t, gt), He = (t) => ue(t, mt), Nr = (t) => ue(t, vt), Sr = (t) => ue(t, pt), Te = (t) => ue(t, kt, !0), Cr = (t) => ue(t, yt, !0), se = (t, e, r) => {
312
- const a = ut.exec(t);
311
+ ), Ge = () => !1, pr = (t) => fr.test(t), vr = (t) => br.test(t), hr = (t) => !k(t) && !x(t), gr = (t) => t.startsWith("@container") && (t[10] === "/" && t[11] !== void 0 || t[11] === "s" && t[16] !== void 0 && t.startsWith("-size/", 10) || t[11] === "n" && t[18] !== void 0 && t.startsWith("-normal/", 10)), yr = (t) => ie(t, ht, Ge), k = (t) => ft.test(t), le = (t) => ie(t, gt, mr), Ue = (t) => ie(t, Er, P), kr = (t) => ie(t, kt, mt), xr = (t) => ie(t, yt, Ge), qe = (t) => ie(t, pt, Ge), wr = (t) => ie(t, vt, vr), we = (t) => ie(t, xt, pr), x = (t) => bt.test(t), me = (t) => ue(t, gt), Tr = (t) => ue(t, yt), He = (t) => ue(t, pt), Nr = (t) => ue(t, ht), Sr = (t) => ue(t, vt), Te = (t) => ue(t, xt, !0), Cr = (t) => ue(t, kt, !0), ie = (t, e, r) => {
312
+ const a = ft.exec(t);
313
313
  return a ? a[1] ? e(a[1]) : r(a[2]) : !1;
314
314
  }, ue = (t, e, r = !1) => {
315
- const a = ft.exec(t);
315
+ const a = bt.exec(t);
316
316
  return a ? a[1] ? e(a[1]) : r : !1;
317
- }, mt = (t) => t === "position" || t === "percentage", pt = (t) => t === "image" || t === "url", vt = (t) => t === "length" || t === "size" || t === "bg-size", ht = (t) => t === "length", Er = (t) => t === "number", gt = (t) => t === "family-name", yt = (t) => t === "number" || t === "weight", kt = (t) => t === "shadow", Or = () => {
318
- const t = U("color"), e = U("font"), r = U("text"), a = U("font-weight"), n = U("tracking"), s = U("leading"), o = U("breakpoint"), i = U("container"), f = U("spacing"), u = U("radius"), m = U("shadow"), p = U("inset-shadow"), h = U("text-shadow"), T = U("drop-shadow"), O = U("blur"), F = U("perspective"), A = U("aspect"), W = U("ease"), V = U("animate"), Q = () => ["auto", "avoid", "all", "avoid-page", "page", "left", "right", "column"], X = () => [
317
+ }, pt = (t) => t === "position" || t === "percentage", vt = (t) => t === "image" || t === "url", ht = (t) => t === "length" || t === "size" || t === "bg-size", gt = (t) => t === "length", Er = (t) => t === "number", yt = (t) => t === "family-name", kt = (t) => t === "number" || t === "weight", xt = (t) => t === "shadow", Or = () => {
318
+ const t = U("color"), e = U("font"), r = U("text"), a = U("font-weight"), n = U("tracking"), s = U("leading"), o = U("breakpoint"), i = U("container"), f = U("spacing"), u = U("radius"), p = U("shadow"), m = U("inset-shadow"), v = U("text-shadow"), T = U("drop-shadow"), F = U("blur"), O = U("perspective"), A = U("aspect"), W = U("ease"), V = U("animate"), Q = () => ["auto", "avoid", "all", "avoid-page", "page", "left", "right", "column"], X = () => [
319
319
  "center",
320
320
  "top",
321
321
  "bottom",
@@ -335,13 +335,13 @@ const Mt = (t, e) => {
335
335
  "left-bottom"
336
336
  ], Z = () => [...X(), x, k], H = () => ["auto", "hidden", "clip", "visible", "scroll"], w = () => ["auto", "contain", "none"], d = () => [x, k, f], N = () => [ae, "full", "auto", ...d()], y = () => [J, "none", "subgrid", x, k], z = () => ["auto", {
337
337
  span: ["full", J, x, k]
338
- }, J, x, k], M = () => [J, "auto", x, k], E = () => ["auto", "min", "max", "fr", x, k], c = () => ["start", "end", "center", "between", "around", "evenly", "stretch", "baseline", "center-safe", "end-safe"], l = () => ["start", "end", "center", "stretch", "center-safe", "end-safe"], v = () => ["auto", ...d()], C = () => [ae, "auto", "full", "dvw", "dvh", "lvw", "lvh", "svw", "svh", "min", "max", "fit", ...d()], S = () => [ae, "screen", "full", "dvw", "lvw", "svw", "min", "max", "fit", ...d()], R = () => [ae, "screen", "full", "lh", "dvh", "lvh", "svh", "min", "max", "fit", ...d()], b = () => [t, x, k], j = () => [...X(), He, qe, {
338
+ }, J, x, k], M = () => [J, "auto", x, k], E = () => ["auto", "min", "max", "fr", x, k], c = () => ["start", "end", "center", "between", "around", "evenly", "stretch", "baseline", "center-safe", "end-safe"], l = () => ["start", "end", "center", "stretch", "center-safe", "end-safe"], h = () => ["auto", ...d()], C = () => [ae, "auto", "full", "dvw", "dvh", "lvw", "lvh", "svw", "svh", "min", "max", "fit", ...d()], S = () => [ae, "screen", "full", "dvw", "lvw", "svw", "min", "max", "fit", ...d()], R = () => [ae, "screen", "full", "lh", "dvh", "lvh", "svh", "min", "max", "fit", ...d()], b = () => [t, x, k], j = () => [...X(), He, qe, {
339
339
  position: [x, k]
340
340
  }], I = () => ["no-repeat", {
341
341
  repeat: ["", "x", "y", "space", "round"]
342
342
  }], $ = () => ["auto", "cover", "contain", Nr, yr, {
343
343
  size: [x, k]
344
- }], q = () => [je, me, ie], _ = () => [
344
+ }], q = () => [je, me, le], _ = () => [
345
345
  // Deprecated since Tailwind CSS v4.0.0
346
346
  "",
347
347
  "none",
@@ -349,11 +349,11 @@ const Mt = (t, e) => {
349
349
  u,
350
350
  x,
351
351
  k
352
- ], G = () => ["", P, me, ie], Y = () => ["solid", "dashed", "dotted", "double"], fe = () => ["normal", "multiply", "screen", "overlay", "darken", "lighten", "color-dodge", "color-burn", "hard-light", "soft-light", "difference", "exclusion", "hue", "saturation", "color", "luminosity"], K = () => [P, je, He, qe], Ve = () => [
352
+ ], G = () => ["", P, me, le], Y = () => ["solid", "dashed", "dotted", "double"], fe = () => ["normal", "multiply", "screen", "overlay", "darken", "lighten", "color-dodge", "color-burn", "hard-light", "soft-light", "difference", "exclusion", "hue", "saturation", "color", "luminosity"], K = () => [P, je, He, qe], Ve = () => [
353
353
  // Deprecated since Tailwind CSS v4.0.0
354
354
  "",
355
355
  "none",
356
- O,
356
+ F,
357
357
  x,
358
358
  k
359
359
  ], ye = () => ["none", P, x, k], ke = () => ["none", P, x, k], De = () => [P, x, k], xe = () => [ae, "full", ...d()];
@@ -364,7 +364,7 @@ const Mt = (t, e) => {
364
364
  aspect: ["video"],
365
365
  blur: [ee],
366
366
  breakpoint: [ee],
367
- color: [bt],
367
+ color: [mt],
368
368
  container: [ee],
369
369
  "drop-shadow": [ee],
370
370
  ease: ["in", "out", "in-out"],
@@ -942,77 +942,77 @@ const Mt = (t, e) => {
942
942
  * @see https://tailwindcss.com/docs/margin
943
943
  */
944
944
  m: [{
945
- m: v()
945
+ m: h()
946
946
  }],
947
947
  /**
948
948
  * Margin Inline
949
949
  * @see https://tailwindcss.com/docs/margin
950
950
  */
951
951
  mx: [{
952
- mx: v()
952
+ mx: h()
953
953
  }],
954
954
  /**
955
955
  * Margin Block
956
956
  * @see https://tailwindcss.com/docs/margin
957
957
  */
958
958
  my: [{
959
- my: v()
959
+ my: h()
960
960
  }],
961
961
  /**
962
962
  * Margin Inline Start
963
963
  * @see https://tailwindcss.com/docs/margin
964
964
  */
965
965
  ms: [{
966
- ms: v()
966
+ ms: h()
967
967
  }],
968
968
  /**
969
969
  * Margin Inline End
970
970
  * @see https://tailwindcss.com/docs/margin
971
971
  */
972
972
  me: [{
973
- me: v()
973
+ me: h()
974
974
  }],
975
975
  /**
976
976
  * Margin Block Start
977
977
  * @see https://tailwindcss.com/docs/margin
978
978
  */
979
979
  mbs: [{
980
- mbs: v()
980
+ mbs: h()
981
981
  }],
982
982
  /**
983
983
  * Margin Block End
984
984
  * @see https://tailwindcss.com/docs/margin
985
985
  */
986
986
  mbe: [{
987
- mbe: v()
987
+ mbe: h()
988
988
  }],
989
989
  /**
990
990
  * Margin Top
991
991
  * @see https://tailwindcss.com/docs/margin
992
992
  */
993
993
  mt: [{
994
- mt: v()
994
+ mt: h()
995
995
  }],
996
996
  /**
997
997
  * Margin Right
998
998
  * @see https://tailwindcss.com/docs/margin
999
999
  */
1000
1000
  mr: [{
1001
- mr: v()
1001
+ mr: h()
1002
1002
  }],
1003
1003
  /**
1004
1004
  * Margin Bottom
1005
1005
  * @see https://tailwindcss.com/docs/margin
1006
1006
  */
1007
1007
  mb: [{
1008
- mb: v()
1008
+ mb: h()
1009
1009
  }],
1010
1010
  /**
1011
1011
  * Margin Left
1012
1012
  * @see https://tailwindcss.com/docs/margin
1013
1013
  */
1014
1014
  ml: [{
1015
- ml: v()
1015
+ ml: h()
1016
1016
  }],
1017
1017
  /**
1018
1018
  * Space Between X
@@ -1157,7 +1157,7 @@ const Mt = (t, e) => {
1157
1157
  * @see https://tailwindcss.com/docs/font-size
1158
1158
  */
1159
1159
  "font-size": [{
1160
- text: ["base", r, me, ie]
1160
+ text: ["base", r, me, le]
1161
1161
  }],
1162
1162
  /**
1163
1163
  * Font Smoothing
@@ -1312,7 +1312,7 @@ const Mt = (t, e) => {
1312
1312
  * @see https://tailwindcss.com/docs/text-decoration-thickness
1313
1313
  */
1314
1314
  "text-decoration-thickness": [{
1315
- decoration: [P, "from-font", "auto", x, ie]
1315
+ decoration: [P, "from-font", "auto", x, le]
1316
1316
  }],
1317
1317
  /**
1318
1318
  * Text Decoration Color
@@ -1834,7 +1834,7 @@ const Mt = (t, e) => {
1834
1834
  * @see https://tailwindcss.com/docs/outline-width
1835
1835
  */
1836
1836
  "outline-w": [{
1837
- outline: ["", P, me, ie]
1837
+ outline: ["", P, me, le]
1838
1838
  }],
1839
1839
  /**
1840
1840
  * Outline Color
@@ -1855,7 +1855,7 @@ const Mt = (t, e) => {
1855
1855
  // Deprecated since Tailwind CSS v4.0.0
1856
1856
  "",
1857
1857
  "none",
1858
- m,
1858
+ p,
1859
1859
  Te,
1860
1860
  we
1861
1861
  ]
@@ -1872,7 +1872,7 @@ const Mt = (t, e) => {
1872
1872
  * @see https://tailwindcss.com/docs/box-shadow#adding-an-inset-shadow
1873
1873
  */
1874
1874
  "inset-shadow": [{
1875
- "inset-shadow": ["none", p, Te, we]
1875
+ "inset-shadow": ["none", m, Te, we]
1876
1876
  }],
1877
1877
  /**
1878
1878
  * Inset Box Shadow Color
@@ -1909,7 +1909,7 @@ const Mt = (t, e) => {
1909
1909
  * @see https://github.com/tailwindlabs/tailwindcss/blob/v4.0.0/packages/tailwindcss/src/utilities.ts#L4158
1910
1910
  */
1911
1911
  "ring-offset-w": [{
1912
- "ring-offset": [P, ie]
1912
+ "ring-offset": [P, le]
1913
1913
  }],
1914
1914
  /**
1915
1915
  * Ring Offset Color
@@ -1939,7 +1939,7 @@ const Mt = (t, e) => {
1939
1939
  * @see https://tailwindcss.com/docs/text-shadow
1940
1940
  */
1941
1941
  "text-shadow": [{
1942
- "text-shadow": ["none", h, Te, we]
1942
+ "text-shadow": ["none", v, Te, we]
1943
1943
  }],
1944
1944
  /**
1945
1945
  * Text Shadow Color
@@ -2439,7 +2439,7 @@ const Mt = (t, e) => {
2439
2439
  * @see https://tailwindcss.com/docs/perspective
2440
2440
  */
2441
2441
  perspective: [{
2442
- perspective: [F, x, k]
2442
+ perspective: [O, x, k]
2443
2443
  }],
2444
2444
  /**
2445
2445
  * Perspective Origin
@@ -2922,7 +2922,7 @@ const Mt = (t, e) => {
2922
2922
  * @see https://tailwindcss.com/docs/stroke-width
2923
2923
  */
2924
2924
  "stroke-w": [{
2925
- stroke: [P, me, ie, Ue]
2925
+ stroke: [P, me, le, Ue]
2926
2926
  }],
2927
2927
  /**
2928
2928
  * Stroke
@@ -3001,10 +3001,10 @@ const Mt = (t, e) => {
3001
3001
  };
3002
3002
  }, Fr = /* @__PURE__ */ sr(Or);
3003
3003
  function D(...t) {
3004
- return Fr(st(t));
3004
+ return Fr(it(t));
3005
3005
  }
3006
3006
  const Ua = ({
3007
- title: t = "@rishabh/ui Component Library",
3007
+ title: t = "React Component Library",
3008
3008
  description: e = "Phase 0 setup complete. Ready for Phase 1 & Phase 2 components.",
3009
3009
  className: r,
3010
3010
  ...a
@@ -3042,32 +3042,32 @@ const Ua = ({
3042
3042
  ),
3043
3043
  o && e && /* @__PURE__ */ g("span", { className: "sr-only", children: e })
3044
3044
  ] });
3045
- }, Ye = (t) => typeof t == "boolean" ? `${t}` : t === 0 ? "0" : t, Xe = st, be = (t, e) => (r) => {
3045
+ }, Ye = (t) => typeof t == "boolean" ? `${t}` : t === 0 ? "0" : t, Xe = it, be = (t, e) => (r) => {
3046
3046
  var a;
3047
3047
  if ((e == null ? void 0 : e.variants) == null) return Xe(t, r == null ? void 0 : r.class, r == null ? void 0 : r.className);
3048
3048
  const { variants: n, defaultVariants: s } = e, o = Object.keys(n).map((u) => {
3049
- const m = r == null ? void 0 : r[u], p = s == null ? void 0 : s[u];
3050
- if (m === null) return null;
3051
- const h = Ye(m) || Ye(p);
3052
- return n[u][h];
3053
- }), i = r && Object.entries(r).reduce((u, m) => {
3054
- let [p, h] = m;
3055
- return h === void 0 || (u[p] = h), u;
3056
- }, {}), f = e == null || (a = e.compoundVariants) === null || a === void 0 ? void 0 : a.reduce((u, m) => {
3057
- let { class: p, className: h, ...T } = m;
3058
- return Object.entries(T).every((O) => {
3059
- let [F, A] = O;
3049
+ const p = r == null ? void 0 : r[u], m = s == null ? void 0 : s[u];
3050
+ if (p === null) return null;
3051
+ const v = Ye(p) || Ye(m);
3052
+ return n[u][v];
3053
+ }), i = r && Object.entries(r).reduce((u, p) => {
3054
+ let [m, v] = p;
3055
+ return v === void 0 || (u[m] = v), u;
3056
+ }, {}), f = e == null || (a = e.compoundVariants) === null || a === void 0 ? void 0 : a.reduce((u, p) => {
3057
+ let { class: m, className: v, ...T } = p;
3058
+ return Object.entries(T).every((F) => {
3059
+ let [O, A] = F;
3060
3060
  return Array.isArray(A) ? A.includes({
3061
3061
  ...s,
3062
3062
  ...i
3063
- }[F]) : {
3063
+ }[O]) : {
3064
3064
  ...s,
3065
3065
  ...i
3066
- }[F] === A;
3066
+ }[O] === A;
3067
3067
  }) ? [
3068
3068
  ...u,
3069
- p,
3070
- h
3069
+ m,
3070
+ v
3071
3071
  ] : u;
3072
3072
  }, []);
3073
3073
  return Xe(t, o, f, r == null ? void 0 : r.class, r == null ? void 0 : r.className);
@@ -3130,12 +3130,12 @@ const Ar = be(
3130
3130
  }
3131
3131
  ), Dr = B(
3132
3132
  ({ className: t, size: e, label: r, error: a, helperText: n, id: s, disabled: o, required: i, ...f }, u) => {
3133
- const m = re(), p = s || m, h = `${p}-error`, T = `${p}-helper`, O = !!a, F = typeof a == "string" ? a : void 0, A = [
3134
- O && F ? h : null,
3133
+ const p = re(), m = s || p, v = `${m}-error`, T = `${m}-helper`, F = !!a, O = typeof a == "string" ? a : void 0, A = [
3134
+ F && O ? v : null,
3135
3135
  n ? T : null
3136
3136
  ].filter(Boolean).join(" ") || void 0;
3137
3137
  return /* @__PURE__ */ L("div", { className: "flex flex-col gap-1.5 w-full font-sans", children: [
3138
- r && /* @__PURE__ */ L("label", { htmlFor: p, className: "text-label-caps text-text font-medium dark:text-text-dark", children: [
3138
+ r && /* @__PURE__ */ L("label", { htmlFor: m, className: "text-label-caps text-text font-medium dark:text-text-dark", children: [
3139
3139
  r,
3140
3140
  i && /* @__PURE__ */ g("span", { className: "text-danger dark:text-danger-dark ml-1", children: "*" })
3141
3141
  ] }),
@@ -3143,17 +3143,17 @@ const Ar = be(
3143
3143
  "input",
3144
3144
  {
3145
3145
  ref: u,
3146
- id: p,
3146
+ id: m,
3147
3147
  disabled: o,
3148
3148
  required: i,
3149
- "aria-invalid": O || void 0,
3149
+ "aria-invalid": F || void 0,
3150
3150
  "aria-describedby": A,
3151
- className: D(Ar({ size: e, error: O }), t),
3151
+ className: D(Ar({ size: e, error: F }), t),
3152
3152
  ...f
3153
3153
  }
3154
3154
  ),
3155
- O && F && /* @__PURE__ */ g("p", { id: h, className: "text-body-md text-danger dark:text-danger-dark", children: F }),
3156
- !O && n && /* @__PURE__ */ g("p", { id: T, className: "text-body-md text-text-muted dark:text-text-dark-muted", children: n })
3155
+ F && O && /* @__PURE__ */ g("p", { id: v, className: "text-body-md text-danger dark:text-danger-dark", children: O }),
3156
+ !F && n && /* @__PURE__ */ g("p", { id: T, className: "text-body-md text-text-muted dark:text-text-dark-muted", children: n })
3157
3157
  ] });
3158
3158
  }
3159
3159
  );
@@ -3188,7 +3188,7 @@ const jr = B(
3188
3188
  "div",
3189
3189
  {
3190
3190
  className: D(
3191
- "w-4 h-4 rounded border transition-colors focus-ring flex items-center justify-center border-border bg-surface-lowest text-white peer-checked:bg-accent peer-checked:border-accent peer-focus-visible:ring-2 peer-focus-visible:ring-accent peer-focus-visible:ring-offset-2 dark:border-border-dark dark:bg-surface-dark-lowest dark:peer-checked:bg-accent-dark dark:peer-checked:border-accent-dark",
3191
+ "w-4 h-4 rounded border transition-colors focus-ring flex items-center justify-center border-border bg-surface-lowest text-white peer-checked:bg-accent peer-checked:border-accent peer-checked:[&_svg]:opacity-100 peer-focus-visible:ring-2 peer-focus-visible:ring-accent peer-focus-visible:ring-offset-2 dark:border-border-dark dark:bg-surface-dark-lowest dark:peer-checked:bg-accent-dark dark:peer-checked:border-accent-dark",
3192
3192
  a && "border-danger dark:border-danger-dark"
3193
3193
  ),
3194
3194
  children: /* @__PURE__ */ g(
@@ -3212,33 +3212,36 @@ const jr = B(
3212
3212
  }
3213
3213
  );
3214
3214
  jr.displayName = "Checkbox";
3215
- const xt = Me(null);
3215
+ const wt = Me(null);
3216
3216
  function qa({
3217
3217
  className: t,
3218
3218
  legend: e,
3219
3219
  name: r,
3220
3220
  value: a,
3221
- onChange: n,
3222
- disabled: s,
3223
- children: o,
3224
- ...i
3221
+ defaultValue: n,
3222
+ onChange: s,
3223
+ disabled: o,
3224
+ children: i,
3225
+ ...f
3225
3226
  }) {
3226
- const f = re(), u = r || f;
3227
- return /* @__PURE__ */ g(xt.Provider, { value: { name: u, value: a, onChange: n, disabled: s }, children: /* @__PURE__ */ L("fieldset", { className: D("flex flex-col gap-2 font-sans border-none p-0 m-0", t), ...i, children: [
3227
+ const u = re(), p = r || u, [m, v] = se(n || ""), T = a !== void 0 ? a : m, F = (O) => {
3228
+ a === void 0 && v(O.target.value), s == null || s(O);
3229
+ };
3230
+ return /* @__PURE__ */ g(wt.Provider, { value: { name: p, value: T, onChange: F, disabled: o }, children: /* @__PURE__ */ L("fieldset", { className: D("flex flex-col gap-2 font-sans border-none p-0 m-0", t), ...f, children: [
3228
3231
  e && /* @__PURE__ */ g("legend", { className: "text-label-caps font-semibold text-text dark:text-text-dark mb-1", children: e }),
3229
- o
3232
+ i
3230
3233
  ] }) });
3231
3234
  }
3232
3235
  const zr = B(
3233
3236
  ({ className: t, label: e, description: r, value: a, id: n, disabled: s, checked: o, onChange: i, ...f }, u) => {
3234
- const m = ge(xt), p = re(), h = n || p, T = f.name || (m == null ? void 0 : m.name), O = o !== void 0 ? o : (m == null ? void 0 : m.value) !== void 0 ? m.value === a : f.defaultChecked, F = s || (m == null ? void 0 : m.disabled), A = i || (m == null ? void 0 : m.onChange);
3237
+ const p = ge(wt), m = re(), v = n || m, T = f.name || (p == null ? void 0 : p.name), F = o !== void 0 ? o : (p == null ? void 0 : p.value) !== void 0 ? p.value === a : f.defaultChecked, O = s || (p == null ? void 0 : p.disabled), A = i || (p == null ? void 0 : p.onChange);
3235
3238
  return /* @__PURE__ */ L(
3236
3239
  "label",
3237
3240
  {
3238
- htmlFor: h,
3241
+ htmlFor: v,
3239
3242
  className: D(
3240
3243
  "inline-flex items-start gap-3 cursor-pointer select-none font-sans",
3241
- F && "opacity-50 cursor-not-allowed",
3244
+ O && "opacity-50 cursor-not-allowed",
3242
3245
  t
3243
3246
  ),
3244
3247
  children: [
@@ -3248,11 +3251,11 @@ const zr = B(
3248
3251
  {
3249
3252
  ref: u,
3250
3253
  type: "radio",
3251
- id: h,
3254
+ id: v,
3252
3255
  name: T,
3253
3256
  value: a,
3254
- checked: O,
3255
- disabled: F,
3257
+ checked: F,
3258
+ disabled: O,
3256
3259
  onChange: A || (() => {
3257
3260
  }),
3258
3261
  className: "peer sr-only",
@@ -3270,7 +3273,7 @@ const zr = B(
3270
3273
  {
3271
3274
  className: D(
3272
3275
  "w-2 h-2 rounded-full bg-accent dark:bg-accent-dark scale-0 peer-checked:scale-100 transition-transform",
3273
- O && "scale-100"
3276
+ F && "scale-100"
3274
3277
  )
3275
3278
  }
3276
3279
  )
@@ -3307,13 +3310,13 @@ const Lr = be(
3307
3310
  }
3308
3311
  }
3309
3312
  ), _r = B(
3310
- ({ className: t, size: e, label: r, error: a, helperText: n, id: s, disabled: o, required: i, children: f, ...u }, m) => {
3311
- const p = re(), h = s || p, T = `${h}-error`, O = `${h}-helper`, F = !!a, A = typeof a == "string" ? a : void 0, W = [
3312
- F && A ? T : null,
3313
- n ? O : null
3313
+ ({ className: t, size: e, label: r, error: a, helperText: n, id: s, disabled: o, required: i, children: f, ...u }, p) => {
3314
+ const m = re(), v = s || m, T = `${v}-error`, F = `${v}-helper`, O = !!a, A = typeof a == "string" ? a : void 0, W = [
3315
+ O && A ? T : null,
3316
+ n ? F : null
3314
3317
  ].filter(Boolean).join(" ") || void 0;
3315
3318
  return /* @__PURE__ */ L("div", { className: "flex flex-col gap-1.5 w-full font-sans", children: [
3316
- r && /* @__PURE__ */ L("label", { htmlFor: h, className: "text-label-caps text-text font-medium dark:text-text-dark", children: [
3319
+ r && /* @__PURE__ */ L("label", { htmlFor: v, className: "text-label-caps text-text font-medium dark:text-text-dark", children: [
3317
3320
  r,
3318
3321
  i && /* @__PURE__ */ g("span", { className: "text-danger dark:text-danger-dark ml-1", children: "*" })
3319
3322
  ] }),
@@ -3321,21 +3324,21 @@ const Lr = be(
3321
3324
  /* @__PURE__ */ g(
3322
3325
  "select",
3323
3326
  {
3324
- ref: m,
3325
- id: h,
3327
+ ref: p,
3328
+ id: v,
3326
3329
  disabled: o,
3327
3330
  required: i,
3328
- "aria-invalid": F || void 0,
3331
+ "aria-invalid": O || void 0,
3329
3332
  "aria-describedby": W,
3330
- className: D(Lr({ size: e, error: F }), t),
3333
+ className: D(Lr({ size: e, error: O }), t),
3331
3334
  ...u,
3332
3335
  children: f
3333
3336
  }
3334
3337
  ),
3335
3338
  /* @__PURE__ */ g("div", { className: "absolute right-3 top-1/2 -translate-y-1/2 pointer-events-none text-text-muted dark:text-text-dark-muted", children: /* @__PURE__ */ g("svg", { className: "w-4 h-4 fill-none stroke-current stroke-2", viewBox: "0 0 24 24", children: /* @__PURE__ */ g("polyline", { points: "6 9 12 15 18 9" }) }) })
3336
3339
  ] }),
3337
- F && A && /* @__PURE__ */ g("p", { id: T, className: "text-body-md text-danger dark:text-danger-dark", children: A }),
3338
- !F && n && /* @__PURE__ */ g("p", { id: O, className: "text-body-md text-text-muted dark:text-text-dark-muted", children: n })
3340
+ O && A && /* @__PURE__ */ g("p", { id: T, className: "text-body-md text-danger dark:text-danger-dark", children: A }),
3341
+ !O && n && /* @__PURE__ */ g("p", { id: F, className: "text-body-md text-text-muted dark:text-text-dark-muted", children: n })
3339
3342
  ] });
3340
3343
  }
3341
3344
  );
@@ -3352,11 +3355,11 @@ const Mr = B(
3352
3355
  id: i,
3353
3356
  "aria-labelledby": f,
3354
3357
  ...u
3355
- }, m) => {
3356
- const p = re(), h = i || p, T = `${h}-label`, [O, F] = ce(n), A = a !== void 0 ? a : O, W = () => {
3358
+ }, p) => {
3359
+ const m = re(), v = i || m, T = `${v}-label`, [F, O] = se(n), A = a !== void 0 ? a : F, W = () => {
3357
3360
  if (o) return;
3358
3361
  const V = !A;
3359
- a === void 0 && F(V), s == null || s(V);
3362
+ a === void 0 && O(V), s == null || s(V);
3360
3363
  };
3361
3364
  return /* @__PURE__ */ L(
3362
3365
  "div",
@@ -3371,10 +3374,10 @@ const Mr = B(
3371
3374
  /* @__PURE__ */ g(
3372
3375
  "button",
3373
3376
  {
3374
- ref: m,
3377
+ ref: p,
3375
3378
  type: "button",
3376
3379
  role: "switch",
3377
- id: h,
3380
+ id: v,
3378
3381
  "aria-checked": A,
3379
3382
  "aria-labelledby": e ? T : f,
3380
3383
  disabled: o,
@@ -3494,24 +3497,24 @@ const Kr = be(
3494
3497
  }
3495
3498
  ), Wr = B(
3496
3499
  ({ className: t, variant: e, title: r, duration: a = 5e3, onDismiss: n, children: s, ...o }, i) => {
3497
- const f = ve(null), u = ve(Date.now()), m = ve(a), p = () => {
3498
- !n || m.current <= 0 || (u.current = Date.now(), f.current = setTimeout(() => {
3500
+ const f = ve(null), u = ve(Date.now()), p = ve(a), m = () => {
3501
+ !n || p.current <= 0 || (u.current = Date.now(), f.current = setTimeout(() => {
3499
3502
  n();
3500
- }, m.current));
3501
- }, h = () => {
3502
- f.current && (clearTimeout(f.current), f.current = null, m.current -= Date.now() - u.current);
3503
+ }, p.current));
3504
+ }, v = () => {
3505
+ f.current && (clearTimeout(f.current), f.current = null, p.current -= Date.now() - u.current);
3503
3506
  };
3504
- return ne(() => (p(), () => {
3507
+ return ne(() => (m(), () => {
3505
3508
  f.current && clearTimeout(f.current);
3506
3509
  }), []), /* @__PURE__ */ L(
3507
3510
  "div",
3508
3511
  {
3509
3512
  ref: i,
3510
3513
  role: "status",
3511
- onMouseEnter: h,
3512
- onMouseLeave: p,
3513
- onFocus: h,
3514
- onBlur: p,
3514
+ onMouseEnter: v,
3515
+ onMouseLeave: m,
3516
+ onFocus: v,
3517
+ onBlur: m,
3515
3518
  className: D(Kr({ variant: e }), t),
3516
3519
  ...o,
3517
3520
  children: [
@@ -3541,7 +3544,7 @@ Wr.displayName = "Toast";
3541
3544
  function Ur(t) {
3542
3545
  return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t;
3543
3546
  }
3544
- function wt(t) {
3547
+ function Tt(t) {
3545
3548
  if (Object.prototype.hasOwnProperty.call(t, "__esModule")) return t;
3546
3549
  var e = t.default;
3547
3550
  if (typeof e == "function") {
@@ -3565,8 +3568,8 @@ var Ne = { exports: {} };
3565
3568
  * tabbable 6.5.0
3566
3569
  * @license MIT, https://github.com/focus-trap/tabbable/blob/master/LICENSE
3567
3570
  */
3568
- var Tt = ["input:not([inert]):not([inert] *)", "select:not([inert]):not([inert] *)", "textarea:not([inert]):not([inert] *)", "a[href]:not([inert]):not([inert] *)", "area[href]:not([inert]):not([inert] *)", "button:not([inert]):not([inert] *)", "[tabindex]:not(slot):not([inert]):not([inert] *)", "audio[controls]:not([inert]):not([inert] *)", "video[controls]:not([inert]):not([inert] *)", '[contenteditable]:not([contenteditable="false"]):not([inert]):not([inert] *)', "details>summary:first-of-type:not([inert]):not([inert] *)", "details:not([inert]):not([inert] *)"], Oe = /* @__PURE__ */ Tt.join(","), Nt = typeof Element > "u", de = Nt ? function() {
3569
- } : Element.prototype.matches || Element.prototype.msMatchesSelector || Element.prototype.webkitMatchesSelector, Fe = !Nt && Element.prototype.getRootNode ? function(t) {
3571
+ var Nt = ["input:not([inert]):not([inert] *)", "select:not([inert]):not([inert] *)", "textarea:not([inert]):not([inert] *)", "a[href]:not([inert]):not([inert] *)", "area[href]:not([inert]):not([inert] *)", "button:not([inert]):not([inert] *)", "[tabindex]:not(slot):not([inert]):not([inert] *)", "audio[controls]:not([inert]):not([inert] *)", "video[controls]:not([inert]):not([inert] *)", '[contenteditable]:not([contenteditable="false"]):not([inert]):not([inert] *)', "details>summary:first-of-type:not([inert]):not([inert] *)", "details:not([inert]):not([inert] *)"], Oe = /* @__PURE__ */ Nt.join(","), St = typeof Element > "u", de = St ? function() {
3572
+ } : Element.prototype.matches || Element.prototype.msMatchesSelector || Element.prototype.webkitMatchesSelector, Fe = !St && Element.prototype.getRootNode ? function(t) {
3570
3573
  var e;
3571
3574
  return t == null || (e = t.getRootNode) === null || e === void 0 ? void 0 : e.call(t);
3572
3575
  } : function(t) {
@@ -3581,7 +3584,7 @@ var Tt = ["input:not([inert]):not([inert] *)", "select:not([inert]):not([inert]
3581
3584
  }, qr = function(e) {
3582
3585
  var r, a = e == null || (r = e.getAttribute) === null || r === void 0 ? void 0 : r.call(e, "contenteditable");
3583
3586
  return a === "" || a === "true";
3584
- }, St = function(e, r, a) {
3587
+ }, Ct = function(e, r, a) {
3585
3588
  if (Re(e))
3586
3589
  return [];
3587
3590
  var n = Array.prototype.slice.apply(e.querySelectorAll(Oe));
@@ -3597,12 +3600,12 @@ var Tt = ["input:not([inert]):not([inert] *)", "select:not([inert]):not([inert]
3597
3600
  candidates: u
3598
3601
  });
3599
3602
  } else {
3600
- var m = de.call(o, Oe);
3601
- m && a.filter(o) && (r || !e.includes(o)) && n.push(o);
3602
- var p = o.shadowRoot || // check for an undisclosed shadow
3603
- typeof a.getShadowRoot == "function" && a.getShadowRoot(o), h = !Re(p, !1) && (!a.shadowRootFilter || a.shadowRootFilter(o));
3604
- if (p && h) {
3605
- var T = Ie(p === !0 ? o.children : p.children, !0, a);
3603
+ var p = de.call(o, Oe);
3604
+ p && a.filter(o) && (r || !e.includes(o)) && n.push(o);
3605
+ var m = o.shadowRoot || // check for an undisclosed shadow
3606
+ typeof a.getShadowRoot == "function" && a.getShadowRoot(o), v = !Re(m, !1) && (!a.shadowRootFilter || a.shadowRootFilter(o));
3607
+ if (m && v) {
3608
+ var T = Ie(m === !0 ? o.children : m.children, !0, a);
3606
3609
  a.flatten ? n.push.apply(n, T) : n.push({
3607
3610
  scopeParent: o,
3608
3611
  candidates: T
@@ -3612,21 +3615,21 @@ var Tt = ["input:not([inert]):not([inert] *)", "select:not([inert]):not([inert]
3612
3615
  }
3613
3616
  }
3614
3617
  return n;
3615
- }, Ct = function(e) {
3618
+ }, Et = function(e) {
3616
3619
  return !isNaN(parseInt(e.getAttribute("tabindex"), 10));
3617
3620
  }, oe = function(e) {
3618
3621
  if (!e)
3619
3622
  throw new Error("No node provided");
3620
- return e.tabIndex < 0 && (/^(AUDIO|VIDEO|DETAILS)$/.test(e.tagName) || qr(e)) && !Ct(e) ? 0 : e.tabIndex;
3623
+ return e.tabIndex < 0 && (/^(AUDIO|VIDEO|DETAILS)$/.test(e.tagName) || qr(e)) && !Et(e) ? 0 : e.tabIndex;
3621
3624
  }, Hr = function(e, r) {
3622
3625
  var a = oe(e);
3623
- return a < 0 && r && !Ct(e) ? 0 : a;
3626
+ return a < 0 && r && !Et(e) ? 0 : a;
3624
3627
  }, Yr = function(e, r) {
3625
3628
  return e.tabIndex === r.tabIndex ? e.documentOrder - r.documentOrder : e.tabIndex - r.tabIndex;
3626
- }, Et = function(e) {
3629
+ }, Ot = function(e) {
3627
3630
  return e.tagName === "INPUT";
3628
3631
  }, Xr = function(e) {
3629
- return Et(e) && e.type === "hidden";
3632
+ return Ot(e) && e.type === "hidden";
3630
3633
  }, Zr = function(e) {
3631
3634
  var r = e.tagName === "DETAILS" && Array.prototype.slice.apply(e.children).some(function(a) {
3632
3635
  return a.tagName === "SUMMARY";
@@ -3653,7 +3656,7 @@ var Tt = ["input:not([inert]):not([inert] *)", "select:not([inert]):not([inert]
3653
3656
  var s = Jr(n, e.form);
3654
3657
  return !s || s === e;
3655
3658
  }, ea = function(e) {
3656
- return Et(e) && e.type === "radio";
3659
+ return Ot(e) && e.type === "radio";
3657
3660
  }, ta = function(e) {
3658
3661
  return ea(e) && !Qr(e);
3659
3662
  }, ra = function(e) {
@@ -3661,8 +3664,8 @@ var Tt = ["input:not([inert]):not([inert] *)", "select:not([inert]):not([inert]
3661
3664
  if (a && a !== e) {
3662
3665
  var o, i, f;
3663
3666
  for (s = !!((o = n) !== null && o !== void 0 && (i = o.ownerDocument) !== null && i !== void 0 && i.contains(n) || e != null && (f = e.ownerDocument) !== null && f !== void 0 && f.contains(e)); !s && n; ) {
3664
- var u, m, p;
3665
- a = Fe(n), n = (u = a) === null || u === void 0 ? void 0 : u.host, s = !!((m = n) !== null && m !== void 0 && (p = m.ownerDocument) !== null && p !== void 0 && p.contains(n));
3667
+ var u, p, m;
3668
+ a = Fe(n), n = (u = a) === null || u === void 0 ? void 0 : u.host, s = !!((p = n) !== null && p !== void 0 && (m = p.ownerDocument) !== null && m !== void 0 && m.contains(n));
3666
3669
  }
3667
3670
  }
3668
3671
  return s;
@@ -3697,13 +3700,13 @@ var Tt = ["input:not([inert]):not([inert] *)", "select:not([inert]):not([inert]
3697
3700
  // Element#checkVisibility is unsupported
3698
3701
  a === "full-native" || a === "legacy-full") {
3699
3702
  if (typeof n == "function") {
3700
- for (var m = e; e; ) {
3701
- var p = e.parentElement, h = Fe(e);
3702
- if (p && !p.shadowRoot && n(p) === !0)
3703
+ for (var p = e; e; ) {
3704
+ var m = e.parentElement, v = Fe(e);
3705
+ if (m && !m.shadowRoot && n(m) === !0)
3703
3706
  return Ze(e);
3704
- e.assignedSlot ? e = e.assignedSlot : !p && h !== e.ownerDocument ? e = h.host : e = p;
3707
+ e.assignedSlot ? e = e.assignedSlot : !m && v !== e.ownerDocument ? e = v.host : e = m;
3705
3708
  }
3706
- e = m;
3709
+ e = p;
3707
3710
  }
3708
3711
  if (ra(e))
3709
3712
  return !e.getClientRects().length;
@@ -3734,10 +3737,10 @@ var Tt = ["input:not([inert]):not([inert] *)", "select:not([inert]):not([inert]
3734
3737
  }, na = function(e) {
3735
3738
  var r = parseInt(e.getAttribute("tabindex"), 10);
3736
3739
  return !!(isNaN(r) || r >= 0);
3737
- }, Ot = function(e) {
3740
+ }, Ft = function(e) {
3738
3741
  var r = [], a = [];
3739
3742
  return e.forEach(function(n, s) {
3740
- var o = !!n.scopeParent, i = o ? n.scopeParent : n, f = Hr(i, o), u = o ? Ot(n.candidates) : i;
3743
+ var o = !!n.scopeParent, i = o ? n.scopeParent : n, f = Hr(i, o), u = o ? Ft(n.candidates) : i;
3741
3744
  f === 0 ? o ? r.push.apply(r, u) : r.push(i) : a.push({
3742
3745
  documentOrder: s,
3743
3746
  tabIndex: f,
@@ -3748,7 +3751,7 @@ var Tt = ["input:not([inert]):not([inert] *)", "select:not([inert]):not([inert]
3748
3751
  }), a.sort(Yr).reduce(function(n, s) {
3749
3752
  return s.isScope ? n.push.apply(n, s.content) : n.push(s.content), n;
3750
3753
  }, []).concat(r);
3751
- }, Ft = function(e, r) {
3754
+ }, Rt = function(e, r) {
3752
3755
  r = r || {};
3753
3756
  var a;
3754
3757
  return r.getShadowRoot ? a = Ie([e], r.includeContainer, {
@@ -3756,31 +3759,31 @@ var Tt = ["input:not([inert]):not([inert] *)", "select:not([inert]):not([inert]
3756
3759
  flatten: !1,
3757
3760
  getShadowRoot: r.getShadowRoot,
3758
3761
  shadowRootFilter: na
3759
- }) : a = St(e, r.includeContainer, Le.bind(null, r)), Ot(a);
3760
- }, Rt = function(e, r) {
3762
+ }) : a = Ct(e, r.includeContainer, Le.bind(null, r)), Ft(a);
3763
+ }, It = function(e, r) {
3761
3764
  r = r || {};
3762
3765
  var a;
3763
3766
  return r.getShadowRoot ? a = Ie([e], r.includeContainer, {
3764
3767
  filter: Pe.bind(null, r),
3765
3768
  flatten: !0,
3766
3769
  getShadowRoot: r.getShadowRoot
3767
- }) : a = St(e, r.includeContainer, Pe.bind(null, r)), a;
3768
- }, le = function(e, r) {
3770
+ }) : a = Ct(e, r.includeContainer, Pe.bind(null, r)), a;
3771
+ }, ce = function(e, r) {
3769
3772
  if (r = r || {}, !e)
3770
3773
  throw new Error("No node provided");
3771
3774
  return de.call(e, Oe) === !1 ? !1 : Le(r, e);
3772
- }, sa = /* @__PURE__ */ Tt.concat("iframe:not([inert]):not([inert] *)").join(","), Ce = function(e, r) {
3775
+ }, sa = /* @__PURE__ */ Nt.concat("iframe:not([inert]):not([inert] *)").join(","), Ce = function(e, r) {
3773
3776
  if (r = r || {}, !e)
3774
3777
  throw new Error("No node provided");
3775
3778
  return de.call(e, sa) === !1 ? !1 : Pe(r, e);
3776
3779
  };
3777
3780
  const ia = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
3778
3781
  __proto__: null,
3779
- focusable: Rt,
3782
+ focusable: It,
3780
3783
  getTabIndex: oe,
3781
3784
  isFocusable: Ce,
3782
- isTabbable: le,
3783
- tabbable: Ft
3785
+ isTabbable: ce,
3786
+ tabbable: Rt
3784
3787
  }, Symbol.toStringTag, { value: "Module" }));
3785
3788
  /*!
3786
3789
  * focus-trap 8.2.2
@@ -3797,7 +3800,7 @@ function la(t) {
3797
3800
  function Je(t, e) {
3798
3801
  var r = typeof Symbol < "u" && t[Symbol.iterator] || t["@@iterator"];
3799
3802
  if (!r) {
3800
- if (Array.isArray(t) || (r = It(t)) || e) {
3803
+ if (Array.isArray(t) || (r = Pt(t)) || e) {
3801
3804
  r && (t = r);
3802
3805
  var a = 0, n = function() {
3803
3806
  };
@@ -3878,7 +3881,7 @@ function et(t) {
3878
3881
  return t;
3879
3882
  }
3880
3883
  function fa(t) {
3881
- return la(t) || da(t) || It(t) || ua();
3884
+ return la(t) || da(t) || Pt(t) || ua();
3882
3885
  }
3883
3886
  function ba(t, e) {
3884
3887
  if (typeof t != "object" || !t) return t;
@@ -3894,7 +3897,7 @@ function ma(t) {
3894
3897
  var e = ba(t, "string");
3895
3898
  return typeof e == "symbol" ? e : e + "";
3896
3899
  }
3897
- function It(t, e) {
3900
+ function Pt(t, e) {
3898
3901
  if (t) {
3899
3902
  if (typeof t == "string") return _e(t, e);
3900
3903
  var r = {}.toString.call(t).slice(8, -1);
@@ -3999,22 +4002,22 @@ var te = {
3999
4002
  delayInitialFocusTimer: void 0,
4000
4003
  // the most recent KeyboardEvent for the configured nav key (typically [SHIFT+]TAB), if any
4001
4004
  recentNavEvent: void 0
4002
- }, i, f = function(c, l, v) {
4003
- return c && c[l] !== void 0 ? c[l] : s[v || l];
4005
+ }, i, f = function(c, l, h) {
4006
+ return c && c[l] !== void 0 ? c[l] : s[h || l];
4004
4007
  }, u = function(c, l) {
4005
- var v = typeof (l == null ? void 0 : l.composedPath) == "function" ? l.composedPath() : void 0;
4008
+ var h = typeof (l == null ? void 0 : l.composedPath) == "function" ? l.composedPath() : void 0;
4006
4009
  return o.containerGroups.findIndex(function(C) {
4007
4010
  var S = C.container, R = C.tabbableNodes;
4008
4011
  return S.contains(c) || // fall back to explicit tabbable search which will take into consideration any
4009
4012
  // web components if the `tabbableOptions.getShadowRoot` option was used for
4010
4013
  // the trap, enabling shadow DOM support in tabbable (`Node.contains()` doesn't
4011
4014
  // look inside web components even if open)
4012
- (v == null ? void 0 : v.includes(S)) || R.find(function(b) {
4015
+ (h == null ? void 0 : h.includes(S)) || R.find(function(b) {
4013
4016
  return b === c;
4014
4017
  });
4015
4018
  });
4016
- }, m = function(c) {
4017
- var l = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, v = l.hasFallback, C = v === void 0 ? !1 : v, S = l.params, R = S === void 0 ? [] : S, b = s[c];
4019
+ }, p = function(c) {
4020
+ var l = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, h = l.hasFallback, C = h === void 0 ? !1 : h, S = l.params, R = S === void 0 ? [] : S, b = s[c];
4018
4021
  if (typeof b == "function" && (b = b.apply(void 0, fa(R))), b === !0 && (b = void 0), !b) {
4019
4022
  if (b === void 0 || b === !1)
4020
4023
  return b;
@@ -4031,40 +4034,40 @@ var te = {
4031
4034
  throw new Error("`".concat(c, "` as selector refers to no known node"));
4032
4035
  }
4033
4036
  return j;
4034
- }, p = function(c) {
4037
+ }, m = function(c) {
4035
4038
  var l = c.activeElement;
4036
- return l ? l.shadowRoot && l.shadowRoot.activeElement !== null ? p(l.shadowRoot) : l : null;
4037
- }, h = function() {
4038
- var c = m("initialFocus", {
4039
+ return l ? l.shadowRoot && l.shadowRoot.activeElement !== null ? m(l.shadowRoot) : l : null;
4040
+ }, v = function() {
4041
+ var c = p("initialFocus", {
4039
4042
  hasFallback: !0
4040
4043
  });
4041
4044
  if (c === !1)
4042
4045
  return !1;
4043
4046
  if (c === void 0 || c && !Ce(c, s.tabbableOptions)) {
4044
- var l = p(a);
4047
+ var l = m(a);
4045
4048
  if (u(l) >= 0)
4046
4049
  c = l;
4047
4050
  else {
4048
- var v = o.tabbableGroups[0], C = v && v.firstTabbableNode;
4049
- c = C || m("fallbackFocus");
4051
+ var h = o.tabbableGroups[0], C = h && h.firstTabbableNode;
4052
+ c = C || p("fallbackFocus");
4050
4053
  }
4051
- } else c === null && (c = m("fallbackFocus"));
4054
+ } else c === null && (c = p("fallbackFocus"));
4052
4055
  if (!c)
4053
4056
  throw new Error("Your focus-trap needs to have at least one focusable element");
4054
4057
  return c;
4055
4058
  }, T = function() {
4056
4059
  if (o.containerGroups = o.containers.map(function(c) {
4057
- var l = Ft(c, s.tabbableOptions), v = Rt(c, s.tabbableOptions), C = l.length > 0 ? l[0] : void 0, S = l.length > 0 ? l[l.length - 1] : void 0, R = v.find(function(I) {
4058
- return le(I);
4059
- }), b = v.slice().reverse().find(function(I) {
4060
- return le(I);
4060
+ var l = Rt(c, s.tabbableOptions), h = It(c, s.tabbableOptions), C = l.length > 0 ? l[0] : void 0, S = l.length > 0 ? l[l.length - 1] : void 0, R = h.find(function(I) {
4061
+ return ce(I);
4062
+ }), b = h.slice().reverse().find(function(I) {
4063
+ return ce(I);
4061
4064
  }), j = !!l.find(function(I) {
4062
4065
  return oe(I) > 0;
4063
4066
  });
4064
4067
  return {
4065
4068
  container: c,
4066
4069
  tabbableNodes: l,
4067
- focusableNodes: v,
4070
+ focusableNodes: h,
4068
4071
  /** True if at least one node with positive `tabindex` was found in this container. */
4069
4072
  posTabIndexesFound: j,
4070
4073
  /** First tabbable node in container, __tabindex__ order; `undefined` if none. */
@@ -4092,42 +4095,42 @@ var te = {
4092
4095
  */
4093
4096
  nextTabbableNode: function($) {
4094
4097
  var q = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !0, _ = l.indexOf($);
4095
- return _ < 0 ? q ? v.slice(v.indexOf($) + 1).find(function(G) {
4096
- return le(G);
4097
- }) : v.slice(0, v.indexOf($)).reverse().find(function(G) {
4098
- return le(G);
4098
+ return _ < 0 ? q ? h.slice(h.indexOf($) + 1).find(function(G) {
4099
+ return ce(G);
4100
+ }) : h.slice(0, h.indexOf($)).reverse().find(function(G) {
4101
+ return ce(G);
4099
4102
  }) : l[_ + (q ? 1 : -1)];
4100
4103
  }
4101
4104
  };
4102
4105
  }), o.tabbableGroups = o.containerGroups.filter(function(c) {
4103
4106
  return c.tabbableNodes.length > 0;
4104
- }), o.tabbableGroups.length <= 0 && !m("fallbackFocus"))
4107
+ }), o.tabbableGroups.length <= 0 && !p("fallbackFocus"))
4105
4108
  throw new Error("Your focus-trap must have at least one container with at least one tabbable node in it at all times");
4106
4109
  if (o.containerGroups.find(function(c) {
4107
4110
  return c.posTabIndexesFound;
4108
4111
  }) && o.containerGroups.length > 1)
4109
4112
  throw new Error("At least one node with a positive tabindex was found in one of your focus-trap's multiple containers. Positive tabindexes are only supported in single-container focus-traps.");
4110
- }, O = function(c) {
4111
- if (c !== !1 && c !== p(document)) {
4113
+ }, F = function(c) {
4114
+ if (c !== !1 && c !== m(document)) {
4112
4115
  if (!c || !c.focus) {
4113
- O(h());
4116
+ F(v());
4114
4117
  return;
4115
4118
  }
4116
4119
  c.focus({
4117
4120
  preventScroll: !!s.preventScroll
4118
4121
  }), o.mostRecentlyFocusedNode = c, pa(c) && c.select();
4119
4122
  }
4120
- }, F = function(c) {
4121
- var l = m("setReturnFocus", {
4123
+ }, O = function(c) {
4124
+ var l = p("setReturnFocus", {
4122
4125
  params: [c]
4123
4126
  });
4124
4127
  return l || (l === !1 ? !1 : c);
4125
4128
  }, A = function(c) {
4126
- var l = c.target, v = c.event, C = c.isBackward, S = C === void 0 ? !1 : C;
4127
- l = l || Se(v), T();
4129
+ var l = c.target, h = c.event, C = c.isBackward, S = C === void 0 ? !1 : C;
4130
+ l = l || Se(h), T();
4128
4131
  var R = null;
4129
4132
  if (o.tabbableGroups.length > 0) {
4130
- var b = u(l, v), j = b >= 0 ? o.containerGroups[b] : void 0;
4133
+ var b = u(l, h), j = b >= 0 ? o.containerGroups[b] : void 0;
4131
4134
  if (b < 0)
4132
4135
  S ? R = o.tabbableGroups[o.tabbableGroups.length - 1].lastTabbableNode : R = o.tabbableGroups[0].firstTabbableNode;
4133
4136
  else if (S) {
@@ -4135,22 +4138,22 @@ var te = {
4135
4138
  var K = fe.firstTabbableNode;
4136
4139
  return l === K;
4137
4140
  });
4138
- if (I < 0 && (j.container === l || Ce(l, s.tabbableOptions) && !le(l, s.tabbableOptions) && !j.nextTabbableNode(l, !1)) && (I = b), I >= 0) {
4141
+ if (I < 0 && (j.container === l || Ce(l, s.tabbableOptions) && !ce(l, s.tabbableOptions) && !j.nextTabbableNode(l, !1)) && (I = b), I >= 0) {
4139
4142
  var $ = I === 0 ? o.tabbableGroups.length - 1 : I - 1, q = o.tabbableGroups[$];
4140
4143
  R = oe(l) >= 0 ? q.lastTabbableNode : q.lastDomTabbableNode;
4141
- } else he(v) || (R = j.nextTabbableNode(l, !1));
4144
+ } else he(h) || (R = j.nextTabbableNode(l, !1));
4142
4145
  } else {
4143
4146
  var _ = o.tabbableGroups.findIndex(function(fe) {
4144
4147
  var K = fe.lastTabbableNode;
4145
4148
  return l === K;
4146
4149
  });
4147
- if (_ < 0 && (j.container === l || Ce(l, s.tabbableOptions) && !le(l, s.tabbableOptions) && !j.nextTabbableNode(l)) && (_ = b), _ >= 0) {
4150
+ if (_ < 0 && (j.container === l || Ce(l, s.tabbableOptions) && !ce(l, s.tabbableOptions) && !j.nextTabbableNode(l)) && (_ = b), _ >= 0) {
4148
4151
  var G = _ === o.tabbableGroups.length - 1 ? 0 : _ + 1, Y = o.tabbableGroups[G];
4149
4152
  R = oe(l) >= 0 ? Y.firstTabbableNode : Y.firstDomTabbableNode;
4150
- } else he(v) || (R = j.nextTabbableNode(l));
4153
+ } else he(h) || (R = j.nextTabbableNode(l));
4151
4154
  }
4152
4155
  } else
4153
- R = m("fallbackFocus");
4156
+ R = p("fallbackFocus");
4154
4157
  return R;
4155
4158
  }, W = function(c) {
4156
4159
  var l = Se(c);
@@ -4170,9 +4173,9 @@ var te = {
4170
4173
  pe(s.allowOutsideClick, c) || c.preventDefault();
4171
4174
  }
4172
4175
  }, V = function(c) {
4173
- var l = Se(c), v = u(l, c) >= 0;
4174
- if (v || l instanceof Document)
4175
- v && (o.mostRecentlyFocusedNode = l);
4176
+ var l = Se(c), h = u(l, c) >= 0;
4177
+ if (h || l instanceof Document)
4178
+ h && (o.mostRecentlyFocusedNode = l);
4176
4179
  else {
4177
4180
  c.stopImmediatePropagation();
4178
4181
  var C, S = !0;
@@ -4198,17 +4201,17 @@ var te = {
4198
4201
  // outside the trap causing the focus escape we're trying to fix)
4199
4202
  target: o.mostRecentlyFocusedNode,
4200
4203
  isBackward: s.isKeyBackward(o.recentNavEvent)
4201
- })), O(C || o.mostRecentlyFocusedNode || h());
4204
+ })), F(C || o.mostRecentlyFocusedNode || v());
4202
4205
  }
4203
4206
  o.recentNavEvent = void 0;
4204
4207
  }, Q = function(c) {
4205
4208
  var l = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !1;
4206
4209
  o.recentNavEvent = c;
4207
- var v = A({
4210
+ var h = A({
4208
4211
  event: c,
4209
4212
  isBackward: l
4210
4213
  });
4211
- v && (he(c) && c.preventDefault(), O(v));
4214
+ h && (he(c) && c.preventDefault(), F(h));
4212
4215
  }, X = function(c) {
4213
4216
  (s.isKeyForward(c) || s.isKeyBackward(c)) && Q(c, s.isKeyBackward(c));
4214
4217
  }, Z = function(c) {
@@ -4222,9 +4225,9 @@ var te = {
4222
4225
  var c;
4223
4226
  return s.delayInitialFocus ? c = new Promise(function(l) {
4224
4227
  o.delayInitialFocusTimer = tt(function() {
4225
- O(h()), l();
4228
+ F(v()), l();
4226
4229
  });
4227
- }) : O(h()), a.addEventListener("focusin", V, !0), a.addEventListener("mousedown", W, {
4230
+ }) : F(v()), a.addEventListener("focusin", V, !0), a.addEventListener("mousedown", W, {
4228
4231
  capture: !0,
4229
4232
  passive: !1
4230
4233
  }), a.addEventListener("touchstart", W, {
@@ -4240,7 +4243,7 @@ var te = {
4240
4243
  }
4241
4244
  }, d = function(c) {
4242
4245
  o.active && !o.paused && i._setSubtreeIsolation(!1), o.adjacentElements.clear(), o.alreadySilent.clear();
4243
- var l = /* @__PURE__ */ new Set(), v = /* @__PURE__ */ new Set(), C = Je(c), S;
4246
+ var l = /* @__PURE__ */ new Set(), h = /* @__PURE__ */ new Set(), C = Je(c), S;
4244
4247
  try {
4245
4248
  for (C.s(); !(S = C.n()).done; ) {
4246
4249
  var R = S.value;
@@ -4253,7 +4256,7 @@ var te = {
4253
4256
  try {
4254
4257
  for (q.s(); !(_ = q.n()).done; ) {
4255
4258
  var G = _.value;
4256
- v.add(G);
4259
+ h.add(G);
4257
4260
  }
4258
4261
  } catch (Y) {
4259
4262
  q.e(Y);
@@ -4269,26 +4272,26 @@ var te = {
4269
4272
  C.f();
4270
4273
  }
4271
4274
  l.forEach(function(Y) {
4272
- v.delete(Y);
4273
- }), o.adjacentElements = v;
4275
+ h.delete(Y);
4276
+ }), o.adjacentElements = h;
4274
4277
  }, N = function() {
4275
4278
  if (o.active)
4276
4279
  return a.removeEventListener("focusin", V, !0), a.removeEventListener("mousedown", W, !0), a.removeEventListener("touchstart", W, !0), a.removeEventListener("click", H, !0), a.removeEventListener("keydown", X, !0), a.removeEventListener("keydown", Z), i;
4277
4280
  }, y = function(c) {
4278
4281
  var l = o.mostRecentlyFocusedNode;
4279
4282
  if (l) {
4280
- var v = c.some(function(S) {
4283
+ var h = c.some(function(S) {
4281
4284
  var R = Array.from(S.removedNodes);
4282
4285
  return R.some(function(b) {
4283
4286
  return b === l || typeof b.contains == "function" && b.contains(l);
4284
4287
  });
4285
4288
  });
4286
- if (v && o.containers.some(function(S) {
4289
+ if (h && o.containers.some(function(S) {
4287
4290
  return S == null ? void 0 : S.isConnected;
4288
4291
  })) {
4289
4292
  T();
4290
- var C = h();
4291
- O(C);
4293
+ var C = v();
4294
+ F(C);
4292
4295
  }
4293
4296
  }
4294
4297
  }, z = typeof window < "u" && "MutationObserver" in window ? new MutationObserver(y) : void 0, M = function() {
@@ -4309,19 +4312,19 @@ var te = {
4309
4312
  activate: function(c) {
4310
4313
  if (o.active)
4311
4314
  return this;
4312
- var l = f(c, "onActivate"), v = f(c, "onPostActivate"), C = f(c, "checkCanFocusTrap"), S = te.getActiveTrap(n), R = !1;
4315
+ var l = f(c, "onActivate"), h = f(c, "onPostActivate"), C = f(c, "checkCanFocusTrap"), S = te.getActiveTrap(n), R = !1;
4313
4316
  if (S && !S.paused) {
4314
4317
  var b;
4315
4318
  (b = S._setSubtreeIsolation) === null || b === void 0 || b.call(S, !1), R = !0;
4316
4319
  }
4317
4320
  try {
4318
- C || T(), o.active = !0, o.paused = !1, o.nodeFocusedBeforeActivation = p(a), l == null || l({
4321
+ C || T(), o.active = !0, o.paused = !1, o.nodeFocusedBeforeActivation = m(a), l == null || l({
4319
4322
  trap: i
4320
4323
  });
4321
4324
  var j = function() {
4322
4325
  C && T();
4323
4326
  var q = function() {
4324
- i._setSubtreeIsolation(!0), M(), v == null || v({
4327
+ i._setSubtreeIsolation(!0), M(), h == null || h({
4325
4328
  trap: i
4326
4329
  });
4327
4330
  }, _ = w();
@@ -4348,18 +4351,18 @@ var te = {
4348
4351
  checkCanReturnFocus: s.checkCanReturnFocus
4349
4352
  }, c);
4350
4353
  clearTimeout(o.delayInitialFocusTimer), o.delayInitialFocusTimer = void 0, o.paused || i._setSubtreeIsolation(!1), o.alreadySilent.clear(), N(), o.active = !1, o.paused = !1, M(), te.deactivateTrap(n, i);
4351
- var v = f(l, "onDeactivate"), C = f(l, "onPostDeactivate"), S = f(l, "checkCanReturnFocus"), R = f(l, "delayReturnFocus"), b = f(l, "returnFocus", "returnFocusOnDeactivate");
4352
- v == null || v({
4354
+ var h = f(l, "onDeactivate"), C = f(l, "onPostDeactivate"), S = f(l, "checkCanReturnFocus"), R = f(l, "delayReturnFocus"), b = f(l, "returnFocus", "returnFocusOnDeactivate");
4355
+ h == null || h({
4353
4356
  trap: i
4354
4357
  });
4355
4358
  var j = function() {
4356
- b && O(F(o.nodeFocusedBeforeActivation)), C == null || C({
4359
+ b && F(O(o.nodeFocusedBeforeActivation)), C == null || C({
4357
4360
  trap: i
4358
4361
  });
4359
4362
  }, I = function() {
4360
4363
  R && b ? tt(j) : j();
4361
4364
  };
4362
- return b && S ? (S(F(o.nodeFocusedBeforeActivation)).then(I, I), this) : (I(), this);
4365
+ return b && S ? (S(O(o.nodeFocusedBeforeActivation)).then(I, I), this) : (I(), this);
4363
4366
  },
4364
4367
  pause: function(c) {
4365
4368
  return o.active ? (o.manuallyPaused = !0, this._setPausedState(!0, c)) : this;
@@ -4369,8 +4372,8 @@ var te = {
4369
4372
  },
4370
4373
  updateContainerElements: function(c) {
4371
4374
  var l = [].concat(c).filter(Boolean);
4372
- return o.containers = l.map(function(v) {
4373
- return typeof v == "string" ? a.querySelector(v) : v;
4375
+ return o.containers = l.map(function(h) {
4376
+ return typeof h == "string" ? a.querySelector(h) : h;
4374
4377
  }), s.isolateSubtrees && d(o.containers), o.active && (T(), o.paused || i._setSubtreeIsolation(!0)), M(), this;
4375
4378
  }
4376
4379
  }, Object.defineProperties(i, {
@@ -4384,8 +4387,8 @@ var te = {
4384
4387
  if (o.paused === c)
4385
4388
  return this;
4386
4389
  if (o.paused = c, c) {
4387
- var v = f(l, "onPause"), C = f(l, "onPostPause");
4388
- v == null || v({
4390
+ var h = f(l, "onPause"), C = f(l, "onPostPause");
4391
+ h == null || h({
4389
4392
  trap: i
4390
4393
  }), N(), i._setSubtreeIsolation(!1), M(), C == null || C({
4391
4394
  trap: i
@@ -4412,11 +4415,11 @@ var te = {
4412
4415
  _setSubtreeIsolation: {
4413
4416
  value: function(c) {
4414
4417
  s.isolateSubtrees && o.adjacentElements.forEach(function(l) {
4415
- var v;
4418
+ var h;
4416
4419
  if (c)
4417
4420
  switch (s.isolateSubtrees) {
4418
4421
  case "aria-hidden":
4419
- (l.ariaHidden === "true" || ((v = l.getAttribute("aria-hidden")) === null || v === void 0 ? void 0 : v.toLowerCase()) === "true") && o.alreadySilent.add(l), l.setAttribute("aria-hidden", "true");
4422
+ (l.ariaHidden === "true" || ((h = l.getAttribute("aria-hidden")) === null || h === void 0 ? void 0 : h.toLowerCase()) === "true") && o.alreadySilent.add(l), l.setAttribute("aria-hidden", "true");
4420
4423
  break;
4421
4424
  default:
4422
4425
  (l.inert || l.hasAttribute("inert")) && o.alreadySilent.add(l), l.setAttribute("inert", !0);
@@ -4438,7 +4441,7 @@ var te = {
4438
4441
  const xa = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
4439
4442
  __proto__: null,
4440
4443
  createFocusTrap: ka
4441
- }, Symbol.toStringTag, { value: "Module" })), wa = /* @__PURE__ */ wt(xa), Ta = /* @__PURE__ */ wt(ia);
4444
+ }, Symbol.toStringTag, { value: "Module" })), wa = /* @__PURE__ */ Tt(xa), Ta = /* @__PURE__ */ Tt(ia);
4442
4445
  var rt;
4443
4446
  function Na() {
4444
4447
  if (rt) return Ne.exports;
@@ -4458,14 +4461,14 @@ function Na() {
4458
4461
  function n(w, d) {
4459
4462
  for (var N = 0; N < d.length; N++) {
4460
4463
  var y = d[N];
4461
- y.enumerable = y.enumerable || !1, y.configurable = !0, "value" in y && (y.writable = !0), Object.defineProperty(w, O(y.key), y);
4464
+ y.enumerable = y.enumerable || !1, y.configurable = !0, "value" in y && (y.writable = !0), Object.defineProperty(w, F(y.key), y);
4462
4465
  }
4463
4466
  }
4464
4467
  function s(w, d, N) {
4465
4468
  return d && n(w.prototype, d), Object.defineProperty(w, "prototype", { writable: !1 }), w;
4466
4469
  }
4467
4470
  function o(w, d, N) {
4468
- return d = m(d), i(w, u() ? Reflect.construct(d, N || [], m(w).constructor) : d.apply(w, N));
4471
+ return d = p(d), i(w, u() ? Reflect.construct(d, N || [], p(w).constructor) : d.apply(w, N));
4469
4472
  }
4470
4473
  function i(w, d) {
4471
4474
  if (d && (t(d) == "object" || typeof d == "function")) return d;
@@ -4486,28 +4489,28 @@ function Na() {
4486
4489
  return !!w;
4487
4490
  })();
4488
4491
  }
4489
- function m(w) {
4490
- return m = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function(d) {
4492
+ function p(w) {
4493
+ return p = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function(d) {
4491
4494
  return d.__proto__ || Object.getPrototypeOf(d);
4492
- }, m(w);
4495
+ }, p(w);
4493
4496
  }
4494
- function p(w, d) {
4497
+ function m(w, d) {
4495
4498
  if (typeof d != "function" && d !== null) throw new TypeError("Super expression must either be null or a function");
4496
- w.prototype = Object.create(d && d.prototype, { constructor: { value: w, writable: !0, configurable: !0 } }), Object.defineProperty(w, "prototype", { writable: !1 }), d && h(w, d);
4499
+ w.prototype = Object.create(d && d.prototype, { constructor: { value: w, writable: !0, configurable: !0 } }), Object.defineProperty(w, "prototype", { writable: !1 }), d && v(w, d);
4497
4500
  }
4498
- function h(w, d) {
4499
- return h = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(N, y) {
4501
+ function v(w, d) {
4502
+ return v = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(N, y) {
4500
4503
  return N.__proto__ = y, N;
4501
- }, h(w, d);
4504
+ }, v(w, d);
4502
4505
  }
4503
4506
  function T(w, d, N) {
4504
- return (d = O(d)) in w ? Object.defineProperty(w, d, { value: N, enumerable: !0, configurable: !0, writable: !0 }) : w[d] = N, w;
4507
+ return (d = F(d)) in w ? Object.defineProperty(w, d, { value: N, enumerable: !0, configurable: !0, writable: !0 }) : w[d] = N, w;
4505
4508
  }
4506
- function O(w) {
4507
- var d = F(w, "string");
4509
+ function F(w) {
4510
+ var d = O(w, "string");
4508
4511
  return t(d) == "symbol" ? d : d + "";
4509
4512
  }
4510
- function F(w, d) {
4513
+ function O(w, d) {
4511
4514
  if (t(w) != "object" || !w) return w;
4512
4515
  var N = w[Symbol.toPrimitive];
4513
4516
  if (N !== void 0) {
@@ -4517,13 +4520,13 @@ function Na() {
4517
4520
  }
4518
4521
  return (d === "string" ? String : Number)(w);
4519
4522
  }
4520
- var A = Dt, W = wa, V = W.createFocusTrap, Q = Ta, X = Q.isFocusable, Z = parseInt((e = (r = /^(\d+)\./.exec(A.version)) === null || r === void 0 ? void 0 : r[1]) !== null && e !== void 0 ? e : 0, 10), H = /* @__PURE__ */ (function(w) {
4523
+ var A = nt, W = wa, V = W.createFocusTrap, Q = Ta, X = Q.isFocusable, Z = parseInt((e = (r = /^(\d+)\./.exec(A.version)) === null || r === void 0 ? void 0 : r[1]) !== null && e !== void 0 ? e : 0, 10), H = /* @__PURE__ */ (function(w) {
4521
4524
  function d(N) {
4522
4525
  var y;
4523
4526
  a(this, d), y = o(this, d, [N]), T(y, "getNodeForOption", function(E) {
4524
4527
  var c, l = (c = this.internalOptions[E]) !== null && c !== void 0 ? c : this.originalOptions[E];
4525
4528
  if (typeof l == "function") {
4526
- for (var v = arguments.length, C = new Array(v > 1 ? v - 1 : 0), S = 1; S < v; S++)
4529
+ for (var h = arguments.length, C = new Array(h > 1 ? h - 1 : 0), S = 1; S < h; S++)
4527
4530
  C[S - 1] = arguments[S];
4528
4531
  l = l.apply(void 0, C);
4529
4532
  }
@@ -4580,7 +4583,7 @@ function Na() {
4580
4583
  }
4581
4584
  return y.outsideClick = null, y.focusTrapElements = N.containerElements || [], y.updatePreviousElement(), y;
4582
4585
  }
4583
- return p(d, w), s(d, [{
4586
+ return m(d, w), s(d, [{
4584
4587
  key: "getDocument",
4585
4588
  value: function() {
4586
4589
  return this.props.focusTrapOptions.document || (typeof document < "u" ? document : void 0);
@@ -4643,9 +4646,9 @@ function Na() {
4643
4646
  y.outsideClick.allowDeactivation && // is the outside node NOT focusable (implying that it did NOT receive focus
4644
4647
  // as a result of the click-through) -- in which case do NOT restore focus
4645
4648
  // to `returnFocusNode` because focus should remain on the outside node
4646
- !X(y.outsideClick.target, y.internalOptions.tabbableOptions))), l = y.internalOptions.preventScroll, v = l === void 0 ? !1 : l;
4649
+ !X(y.outsideClick.target, y.internalOptions.tabbableOptions))), l = y.internalOptions.preventScroll, h = l === void 0 ? !1 : l;
4647
4650
  c && E.focus({
4648
- preventScroll: v
4651
+ preventScroll: h
4649
4652
  }), y.originalOptions.onPostDeactivate && y.originalOptions.onPostDeactivate.call(null), y.outsideClick = null;
4650
4653
  };
4651
4654
  this.originalOptions.checkCanReturnFocus ? this.originalOptions.checkCanReturnFocus.call(null, this.getReturnFocusNode()).then(z, z) : z();
@@ -4692,8 +4695,8 @@ function Na() {
4692
4695
  if (z.type && z.type === A.Fragment)
4693
4696
  throw new Error("A focus-trap cannot use a Fragment as its child container. Try replacing it with a <div> element.");
4694
4697
  var M = function(l) {
4695
- var v = y.props.containerElements;
4696
- z && (Z >= 19 ? typeof z.props.ref == "function" ? z.props.ref(l) : z.props.ref && (z.props.ref.current = l) : typeof z.ref == "function" ? z.ref(l) : z.ref && (z.ref.current = l)), y.focusTrapElements = v || [l];
4698
+ var h = y.props.containerElements;
4699
+ z && (Z >= 19 ? typeof z.props.ref == "function" ? z.props.ref(l) : z.props.ref && (z.props.ref.current = l) : typeof z.ref == "function" ? z.ref(l) : z.ref && (z.ref.current = l)), y.focusTrapElements = h || [l];
4697
4700
  }, E = A.cloneElement(z, {
4698
4701
  ref: M
4699
4702
  });
@@ -4717,10 +4720,10 @@ function Ha({ open: t, onClose: e, title: r, description: a, children: n, classN
4717
4720
  return ne(() => (t ? (u.current = document.activeElement, document.body.style.overflow = "hidden") : (document.body.style.overflow = "", u.current && typeof u.current.focus == "function" && u.current.focus()), () => {
4718
4721
  document.body.style.overflow = "";
4719
4722
  }), [t]), ne(() => {
4720
- const m = (p) => {
4721
- p.key === "Escape" && t && e();
4723
+ const p = (m) => {
4724
+ m.key === "Escape" && t && e();
4722
4725
  };
4723
- return window.addEventListener("keydown", m), () => window.removeEventListener("keydown", m);
4726
+ return window.addEventListener("keydown", p), () => window.removeEventListener("keydown", p);
4724
4727
  }, [t, e]), !t || typeof document > "u" ? null : _t(
4725
4728
  /* @__PURE__ */ g(Ca, { focusTrapOptions: { allowOutsideClick: !0, fallbackFocus: "div" }, children: /* @__PURE__ */ L("div", { className: "fixed inset-0 z-50 flex items-center justify-center p-4", children: [
4726
4729
  /* @__PURE__ */ g(
@@ -4771,32 +4774,40 @@ function Ha({ open: t, onClose: e, title: r, description: a, children: n, classN
4771
4774
  );
4772
4775
  }
4773
4776
  function Ya({ content: t, children: e, className: r, position: a = "top" }) {
4774
- const [n, s] = ce(!1), o = re(), i = () => s(!0), f = () => s(!1), u = {
4777
+ const [n, s] = se(!1), o = re(), i = () => s(!0), f = () => s(!1);
4778
+ nt.useEffect(() => {
4779
+ if (!n) return;
4780
+ const m = (v) => {
4781
+ v.key === "Escape" && s(!1);
4782
+ };
4783
+ return window.addEventListener("keydown", m), () => window.removeEventListener("keydown", m);
4784
+ }, [n]);
4785
+ const u = {
4775
4786
  top: "bottom-full mb-2 left-1/2 -translate-x-1/2",
4776
4787
  bottom: "top-full mt-2 left-1/2 -translate-x-1/2",
4777
4788
  left: "right-full mr-2 top-1/2 -translate-y-1/2",
4778
4789
  right: "left-full ml-2 top-1/2 -translate-y-1/2"
4779
- }, m = jt(e) ? zt(e, {
4790
+ }, p = jt(e) ? zt(e, {
4780
4791
  "aria-describedby": n ? o : void 0,
4781
- onMouseEnter: (p) => {
4782
- var h, T;
4783
- (T = (h = e.props) == null ? void 0 : h.onMouseEnter) == null || T.call(h, p), i();
4792
+ onMouseEnter: (m) => {
4793
+ var v, T;
4794
+ (T = (v = e.props) == null ? void 0 : v.onMouseEnter) == null || T.call(v, m), i();
4784
4795
  },
4785
- onMouseLeave: (p) => {
4786
- var h, T;
4787
- (T = (h = e.props) == null ? void 0 : h.onMouseLeave) == null || T.call(h, p), f();
4796
+ onMouseLeave: (m) => {
4797
+ var v, T;
4798
+ (T = (v = e.props) == null ? void 0 : v.onMouseLeave) == null || T.call(v, m), f();
4788
4799
  },
4789
- onFocus: (p) => {
4790
- var h, T;
4791
- (T = (h = e.props) == null ? void 0 : h.onFocus) == null || T.call(h, p), i();
4800
+ onFocus: (m) => {
4801
+ var v, T;
4802
+ (T = (v = e.props) == null ? void 0 : v.onFocus) == null || T.call(v, m), i();
4792
4803
  },
4793
- onBlur: (p) => {
4794
- var h, T;
4795
- (T = (h = e.props) == null ? void 0 : h.onBlur) == null || T.call(h, p), f();
4804
+ onBlur: (m) => {
4805
+ var v, T;
4806
+ (T = (v = e.props) == null ? void 0 : v.onBlur) == null || T.call(v, m), f();
4796
4807
  }
4797
4808
  }) : e;
4798
4809
  return /* @__PURE__ */ L("div", { className: "relative inline-block", children: [
4799
- m,
4810
+ p,
4800
4811
  n && /* @__PURE__ */ g(
4801
4812
  "div",
4802
4813
  {
@@ -4813,7 +4824,7 @@ function Ya({ content: t, children: e, className: r, position: a = "top" }) {
4813
4824
  ] });
4814
4825
  }
4815
4826
  function Xa({ content: t, children: e, className: r }) {
4816
- const [a, n] = ce(!1), s = ve(null), o = () => n((i) => !i);
4827
+ const [a, n] = se(!1), s = ve(null), o = () => n((i) => !i);
4817
4828
  return ne(() => {
4818
4829
  const i = (u) => {
4819
4830
  u.key === "Escape" && a && n(!1);
@@ -4927,12 +4938,12 @@ const Ma = B(
4927
4938
  Ma.displayName = "TableCell";
4928
4939
  const Ae = Me(null);
4929
4940
  function Za({ className: t, value: e, defaultValue: r, onValueChange: a, children: n, ...s }) {
4930
- const [o, i] = ce(r || ""), [f, u] = ce([]), m = re(), p = e !== void 0 ? e : o, h = (O) => {
4931
- e === void 0 && i(O), a == null || a(O);
4932
- }, T = (O) => {
4933
- u((F) => F.includes(O) ? F : [...F, O]), !p && !r && h(O);
4941
+ const [o, i] = se(r || ""), [f, u] = se([]), p = re(), m = e !== void 0 ? e : o, v = (F) => {
4942
+ e === void 0 && i(F), a == null || a(F);
4943
+ }, T = (F) => {
4944
+ u((O) => O.includes(F) ? O : [...O, F]), !m && !r && v(F);
4934
4945
  };
4935
- return /* @__PURE__ */ g(Ae.Provider, { value: { activeTab: p, setActiveTab: h, baseId: m, tabs: f, registerTab: T }, children: /* @__PURE__ */ g("div", { className: D("flex flex-col gap-4 font-sans", t), ...s, children: n }) });
4946
+ return /* @__PURE__ */ g(Ae.Provider, { value: { activeTab: m, setActiveTab: v, baseId: p, tabs: f, registerTab: T }, children: /* @__PURE__ */ g("div", { className: D("flex flex-col gap-4 font-sans", t), ...s, children: n }) });
4936
4947
  }
4937
4948
  const Ba = B(
4938
4949
  ({ className: t, children: e, ...r }, a) => {
@@ -4944,12 +4955,12 @@ const Ba = B(
4944
4955
  role: "tablist",
4945
4956
  onKeyDown: (o) => {
4946
4957
  if (!n || !n.tabs.length) return;
4947
- const { tabs: i, activeTab: f, setActiveTab: u } = n, m = i.indexOf(f);
4948
- let p = m;
4949
- if (o.key === "ArrowRight" ? (o.preventDefault(), p = (m + 1) % i.length) : o.key === "ArrowLeft" ? (o.preventDefault(), p = (m - 1 + i.length) % i.length) : o.key === "Home" ? (o.preventDefault(), p = 0) : o.key === "End" && (o.preventDefault(), p = i.length - 1), p !== m && i[p]) {
4950
- u(i[p]);
4951
- const h = document.getElementById(`${n.baseId}-tab-${i[p]}`);
4952
- h == null || h.focus();
4958
+ const { tabs: i, activeTab: f, setActiveTab: u } = n, p = i.indexOf(f);
4959
+ let m = p;
4960
+ if (o.key === "ArrowRight" ? (o.preventDefault(), m = (p + 1) % i.length) : o.key === "ArrowLeft" ? (o.preventDefault(), m = (p - 1 + i.length) % i.length) : o.key === "Home" ? (o.preventDefault(), m = 0) : o.key === "End" && (o.preventDefault(), m = i.length - 1), m !== p && i[m]) {
4961
+ u(i[m]);
4962
+ const v = document.getElementById(`${n.baseId}-tab-${i[m]}`);
4963
+ v == null || v.focus();
4953
4964
  }
4954
4965
  },
4955
4966
  className: D(
@@ -4971,21 +4982,21 @@ const Ga = B(
4971
4982
  ne(() => {
4972
4983
  u(e);
4973
4984
  }, [e, u]);
4974
- const m = o === e, p = `${f}-tab-${e}`, h = `${f}-panel-${e}`;
4985
+ const p = o === e, m = `${f}-tab-${e}`, v = `${f}-panel-${e}`;
4975
4986
  return /* @__PURE__ */ g(
4976
4987
  "button",
4977
4988
  {
4978
4989
  ref: n,
4979
4990
  type: "button",
4980
4991
  role: "tab",
4981
- id: p,
4982
- "aria-selected": m,
4983
- "aria-controls": h,
4984
- tabIndex: m ? 0 : -1,
4992
+ id: m,
4993
+ "aria-selected": p,
4994
+ "aria-controls": v,
4995
+ tabIndex: p ? 0 : -1,
4985
4996
  onClick: () => i(e),
4986
4997
  className: D(
4987
4998
  "inline-flex items-center justify-center whitespace-nowrap rounded px-3 py-1.5 text-body-md font-medium transition-colors focus-ring",
4988
- m ? "bg-surface-lowest text-text shadow-sm dark:bg-surface-dark-lowest dark:text-text-dark font-semibold" : "text-text-muted hover:text-text dark:text-text-dark-muted dark:hover:text-text-dark",
4999
+ p ? "bg-surface-lowest text-text shadow-sm dark:bg-surface-dark-lowest dark:text-text-dark font-semibold" : "text-text-muted hover:text-text dark:text-text-dark-muted dark:hover:text-text-dark",
4989
5000
  t
4990
5001
  ),
4991
5002
  ...a,
@@ -4999,13 +5010,13 @@ const Va = B(
4999
5010
  ({ className: t, value: e, children: r, ...a }, n) => {
5000
5011
  const s = ge(Ae);
5001
5012
  if (!s) throw new Error("TabsContent must be used inside Tabs");
5002
- const { activeTab: o, baseId: i } = s, f = o === e, u = `${i}-tab-${e}`, m = `${i}-panel-${e}`;
5013
+ const { activeTab: o, baseId: i } = s, f = o === e, u = `${i}-tab-${e}`, p = `${i}-panel-${e}`;
5003
5014
  return f ? /* @__PURE__ */ g(
5004
5015
  "div",
5005
5016
  {
5006
5017
  ref: n,
5007
5018
  role: "tabpanel",
5008
- id: m,
5019
+ id: p,
5009
5020
  "aria-labelledby": u,
5010
5021
  className: D("focus-ring rounded p-1 text-text dark:text-text-dark", t),
5011
5022
  ...a,
@@ -5015,31 +5026,31 @@ const Va = B(
5015
5026
  }
5016
5027
  );
5017
5028
  Va.displayName = "TabsContent";
5018
- const Pt = Me(null), at = "ui-theme-preference";
5019
- function At() {
5029
+ const At = Me(null), at = "ui-theme-preference";
5030
+ function Dt() {
5020
5031
  return typeof window > "u" ? "light" : window.matchMedia("(prefers-color-scheme: dark)").matches ? "dark" : "light";
5021
5032
  }
5022
5033
  function ot(t) {
5023
- return t === "system" ? At() : t;
5034
+ return t === "system" ? Dt() : t;
5024
5035
  }
5025
5036
  function Ja({ children: t, defaultPreference: e = "system" }) {
5026
- const [r, a] = ce(() => typeof window > "u" ? e : window.localStorage.getItem(at) ?? e), [n, s] = ce(() => ot(r)), o = Lt((i) => {
5037
+ const [r, a] = se(() => typeof window > "u" ? e : window.localStorage.getItem(at) ?? e), [n, s] = se(() => ot(r)), o = Lt((i) => {
5027
5038
  a(i), typeof window < "u" && window.localStorage.setItem(at, i);
5028
5039
  }, []);
5029
5040
  return ne(() => {
5030
5041
  s(ot(r));
5031
5042
  }, [r]), ne(() => {
5032
5043
  if (r !== "system" || typeof window > "u") return;
5033
- const i = window.matchMedia("(prefers-color-scheme: dark)"), f = () => s(At());
5044
+ const i = window.matchMedia("(prefers-color-scheme: dark)"), f = () => s(Dt());
5034
5045
  return i.addEventListener("change", f), () => i.removeEventListener("change", f);
5035
5046
  }, [r]), ne(() => {
5036
5047
  if (typeof document > "u") return;
5037
5048
  const i = document.documentElement;
5038
5049
  i.classList.toggle("dark", n === "dark"), i.setAttribute("data-theme", n);
5039
- }, [n]), /* @__PURE__ */ g(Pt.Provider, { value: { theme: n, preference: r, setPreference: o }, children: t });
5050
+ }, [n]), /* @__PURE__ */ g(At.Provider, { value: { theme: n, preference: r, setPreference: o }, children: t });
5040
5051
  }
5041
5052
  function Qa() {
5042
- const t = ge(Pt);
5053
+ const t = ge(At);
5043
5054
  if (!t)
5044
5055
  throw new Error("useTheme must be used within a ThemeProvider");
5045
5056
  return t;