@duro-app/ui 0.9.0 → 0.9.2

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
- import { jsx as s, Fragment as D, jsxs as z } from "react/jsx-runtime";
2
- import { useState as G, useCallback as W, useContext as O, createContext as R, useId as _, useMemo as ve, useRef as w, useEffect as H, Children as qe } from "react";
1
+ import { jsx as r, jsxs as z, Fragment as B } from "react/jsx-runtime";
2
+ import { useState as G, useCallback as W, useContext as O, createContext as R, useId as _, useMemo as $e, useRef as w, useEffect as H, Children as qe } from "react";
3
3
  /**
4
4
  * @license react-strict-dom
5
5
  * Copyright (c) Meta Platforms, Inc. and affiliates.
@@ -13,38 +13,38 @@ Object.defineProperty(me, "__esModule", {
13
13
  });
14
14
  var We = me.styleq = void 0, Xe = /* @__PURE__ */ new WeakMap(), Ye = "$$css";
15
15
  function He(e) {
16
- var t, n, r;
17
- return e != null && (t = e.disableCache === !0, n = e.disableMix === !0, r = e.transform), function() {
18
- for (var x = [], i = "", c = null, d = "", a = t ? null : Xe, g = new Array(arguments.length), u = 0; u < arguments.length; u++)
16
+ var t, n, s;
17
+ return e != null && (t = e.disableCache === !0, n = e.disableMix === !0, s = e.transform), function() {
18
+ for (var l = [], i = "", c = null, d = "", k = t ? null : Xe, g = new Array(arguments.length), u = 0; u < arguments.length; u++)
19
19
  g[u] = arguments[u];
20
20
  for (; g.length > 0; ) {
21
- var v = g.pop();
22
- if (!(v == null || v === !1)) {
23
- if (Array.isArray(v)) {
24
- for (var S = 0; S < v.length; S++)
25
- g.push(v[S]);
21
+ var $ = g.pop();
22
+ if (!($ == null || $ === !1)) {
23
+ if (Array.isArray($)) {
24
+ for (var M = 0; M < $.length; M++)
25
+ g.push($[M]);
26
26
  continue;
27
27
  }
28
- var p = r != null ? r(v) : v;
28
+ var p = s != null ? s($) : $;
29
29
  if (p.$$css != null) {
30
30
  var m = "";
31
- if (a != null && a.has(p)) {
32
- var f = a.get(p);
33
- f != null && (m = f[0], d = f[2], x.push.apply(x, f[1]), a = f[3]);
31
+ if (k != null && k.has(p)) {
32
+ var f = k.get(p);
33
+ f != null && (m = f[0], d = f[2], l.push.apply(l, f[1]), k = f[3]);
34
34
  } else {
35
- var $ = [];
35
+ var v = [];
36
36
  for (var h in p) {
37
37
  var b = p[h];
38
38
  if (h === Ye) {
39
- var B = p[h];
40
- B !== !0 && (d = d ? B + "; " + d : B);
39
+ var C = p[h];
40
+ C !== !0 && (d = d ? C + "; " + d : C);
41
41
  continue;
42
42
  }
43
- typeof b == "string" || b === null ? x.includes(h) || (x.push(h), a != null && $.push(h), typeof b == "string" && (m += m ? " " + b : b)) : console.error("styleq: ".concat(h, " typeof ").concat(String(b), ' is not "string" or "null".'));
43
+ typeof b == "string" || b === null ? l.includes(h) || (l.push(h), k != null && v.push(h), typeof b == "string" && (m += m ? " " + b : b)) : console.error("styleq: ".concat(h, " typeof ").concat(String(b), ' is not "string" or "null".'));
44
44
  }
45
- if (a != null) {
45
+ if (k != null) {
46
46
  var Q = /* @__PURE__ */ new WeakMap();
47
- a.set(p, [m, $, d, Q]), a = Q;
47
+ k.set(p, [m, v, d, Q]), k = Q;
48
48
  }
49
49
  }
50
50
  m && (i = i ? m + " " + i : m);
@@ -53,15 +53,15 @@ function He(e) {
53
53
  else {
54
54
  var y = null;
55
55
  for (var I in p) {
56
- var j = p[I];
57
- j !== void 0 && (x.includes(I) || (j != null && (c == null && (c = {}), y == null && (y = {}), y[I] = j), x.push(I), a = null));
56
+ var S = p[I];
57
+ S !== void 0 && (l.includes(I) || (S != null && (c == null && (c = {}), y == null && (y = {}), y[I] = S), l.push(I), k = null));
58
58
  }
59
59
  y != null && (c = Object.assign(y, c));
60
60
  }
61
61
  }
62
62
  }
63
- var M = [i, c, d];
64
- return M;
63
+ var j = [i, c, d];
64
+ return j;
65
65
  };
66
66
  }
67
67
  var Je = We = me.styleq = He();
@@ -69,13 +69,13 @@ Je.factory = He;
69
69
  const Pe = We.factory({
70
70
  disableMix: !0
71
71
  });
72
- function l(...e) {
73
- const [t, n, r] = Pe(e), o = {};
74
- if (t != null && t !== "" && (o.className = t), n != null && (o.style = n), r != null && r !== "") {
75
- const x = r.split(";"), i = {};
76
- for (const c of x) {
77
- const d = c.trim(), [a, g] = d.split(":");
78
- g != null && (i[a] = i[a] != null ? `${i[a]},${g}` : g);
72
+ function x(...e) {
73
+ const [t, n, s] = Pe(e), o = {};
74
+ if (t != null && t !== "" && (o.className = t), n != null && (o.style = n), s != null && s !== "") {
75
+ const l = s.split(";"), i = {};
76
+ for (const c of l) {
77
+ const d = c.trim(), [k, g] = d.split(":");
78
+ g != null && (i[k] = i[k] != null ? `${i[k]},${g}` : g);
79
79
  }
80
80
  o["data-style-src"] = Object.keys(i).map((c) => `${c}:${i[c]}`).join("; ");
81
81
  }
@@ -121,7 +121,7 @@ const A = {
121
121
  kHenm0: "x288g5",
122
122
  $$css: !0
123
123
  }
124
- }, Fe = A.inline, Qe = [A.inlineblock, A.button], Ke = A.block, Z = [A.block, A.heading], Ue = [A.inlineblock, A.input], _e = A.inline, Ze = A.block, et = A.block, tt = A.inline, nt = [A.inlineblock, A.textarea], k = {
124
+ }, Fe = A.inline, Qe = [A.inlineblock, A.button], Ke = A.block, Z = [A.block, A.heading], Ue = [A.inlineblock, A.input], _e = A.inline, Ze = A.block, et = A.block, tt = A.inline, nt = [A.inlineblock, A.textarea], a = {
125
125
  a: Fe,
126
126
  button: Qe,
127
127
  div: Ke,
@@ -138,56 +138,69 @@ const A = {
138
138
  span: tt,
139
139
  textarea: nt
140
140
  }, rt = {
141
- "x-circle": /* @__PURE__ */ z(D, { children: [
142
- /* @__PURE__ */ s("circle", { cx: "12", cy: "12", r: "10" }),
143
- /* @__PURE__ */ s("line", { x1: "15", y1: "9", x2: "9", y2: "15" }),
144
- /* @__PURE__ */ s("line", { x1: "9", y1: "9", x2: "15", y2: "15" })
141
+ "x-circle": /* @__PURE__ */ z(B, { children: [
142
+ /* @__PURE__ */ r("circle", { cx: "12", cy: "12", r: "10" }),
143
+ /* @__PURE__ */ r("line", { x1: "15", y1: "9", x2: "9", y2: "15" }),
144
+ /* @__PURE__ */ r("line", { x1: "9", y1: "9", x2: "15", y2: "15" })
145
145
  ] }),
146
- "check-circle": /* @__PURE__ */ z(D, { children: [
147
- /* @__PURE__ */ s("circle", { cx: "12", cy: "12", r: "10" }),
148
- /* @__PURE__ */ s("polyline", { points: "16 10 11 15 8 12" })
146
+ "check-circle": /* @__PURE__ */ z(B, { children: [
147
+ /* @__PURE__ */ r("circle", { cx: "12", cy: "12", r: "10" }),
148
+ /* @__PURE__ */ r("polyline", { points: "16 10 11 15 8 12" })
149
149
  ] }),
150
- "check-done": /* @__PURE__ */ z(D, { children: [
151
- /* @__PURE__ */ s("path", { d: "M22 11.08V12a10 10 0 1 1-5.93-9.14" }),
152
- /* @__PURE__ */ s("polyline", { points: "22 4 12 14.01 9 11.01" })
150
+ "check-done": /* @__PURE__ */ z(B, { children: [
151
+ /* @__PURE__ */ r("path", { d: "M22 11.08V12a10 10 0 1 1-5.93-9.14" }),
152
+ /* @__PURE__ */ r("polyline", { points: "22 4 12 14.01 9 11.01" })
153
153
  ] }),
154
- clock: /* @__PURE__ */ z(D, { children: [
155
- /* @__PURE__ */ s("circle", { cx: "12", cy: "12", r: "10" }),
156
- /* @__PURE__ */ s("polyline", { points: "12 6 12 12 16 14" })
154
+ clock: /* @__PURE__ */ z(B, { children: [
155
+ /* @__PURE__ */ r("circle", { cx: "12", cy: "12", r: "10" }),
156
+ /* @__PURE__ */ r("polyline", { points: "12 6 12 12 16 14" })
157
157
  ] }),
158
- forbidden: /* @__PURE__ */ z(D, { children: [
159
- /* @__PURE__ */ s("circle", { cx: "12", cy: "12", r: "10" }),
160
- /* @__PURE__ */ s("line", { x1: "4.93", y1: "4.93", x2: "19.07", y2: "19.07" })
158
+ forbidden: /* @__PURE__ */ z(B, { children: [
159
+ /* @__PURE__ */ r("circle", { cx: "12", cy: "12", r: "10" }),
160
+ /* @__PURE__ */ r("line", { x1: "4.93", y1: "4.93", x2: "19.07", y2: "19.07" })
161
161
  ] }),
162
- "info-circle": /* @__PURE__ */ z(D, { children: [
163
- /* @__PURE__ */ s("circle", { cx: "12", cy: "12", r: "10" }),
164
- /* @__PURE__ */ s("line", { x1: "12", y1: "16", x2: "12", y2: "12" }),
165
- /* @__PURE__ */ s("line", { x1: "12", y1: "8", x2: "12.01", y2: "8" })
162
+ "info-circle": /* @__PURE__ */ z(B, { children: [
163
+ /* @__PURE__ */ r("circle", { cx: "12", cy: "12", r: "10" }),
164
+ /* @__PURE__ */ r("line", { x1: "12", y1: "16", x2: "12", y2: "12" }),
165
+ /* @__PURE__ */ r("line", { x1: "12", y1: "8", x2: "12.01", y2: "8" })
166
166
  ] }),
167
- "alert-triangle": /* @__PURE__ */ z(D, { children: [
168
- /* @__PURE__ */ s("path", { d: "M10.29 3.86L1.82 18a2 2 0 0 0 1.71 3h16.94a2 2 0 0 0 1.71-3L13.71 3.86a2 2 0 0 0-3.42 0z" }),
169
- /* @__PURE__ */ s("line", { x1: "12", y1: "9", x2: "12", y2: "13" }),
170
- /* @__PURE__ */ s("line", { x1: "12", y1: "17", x2: "12.01", y2: "17" })
167
+ "alert-triangle": /* @__PURE__ */ z(B, { children: [
168
+ /* @__PURE__ */ r("path", { d: "M10.29 3.86L1.82 18a2 2 0 0 0 1.71 3h16.94a2 2 0 0 0 1.71-3L13.71 3.86a2 2 0 0 0-3.42 0z" }),
169
+ /* @__PURE__ */ r("line", { x1: "12", y1: "9", x2: "12", y2: "13" }),
170
+ /* @__PURE__ */ r("line", { x1: "12", y1: "17", x2: "12.01", y2: "17" })
171
171
  ] }),
172
- shield: /* @__PURE__ */ s("path", { d: "M12 22s8-4 8-10V5l-8-3-8 3v7c0 6 8 10 8 10z" }),
173
- lock: /* @__PURE__ */ z(D, { children: [
174
- /* @__PURE__ */ s("rect", { x: "3", y: "11", width: "18", height: "11", rx: "2", ry: "2" }),
175
- /* @__PURE__ */ s("path", { d: "M7 11V7a5 5 0 0 1 10 0v4" })
172
+ shield: /* @__PURE__ */ r("path", { d: "M12 22s8-4 8-10V5l-8-3-8 3v7c0 6 8 10 8 10z" }),
173
+ lock: /* @__PURE__ */ z(B, { children: [
174
+ /* @__PURE__ */ r("rect", { x: "3", y: "11", width: "18", height: "11", rx: "2", ry: "2" }),
175
+ /* @__PURE__ */ r("path", { d: "M7 11V7a5 5 0 0 1 10 0v4" })
176
176
  ] }),
177
- key: /* @__PURE__ */ s(D, { children: /* @__PURE__ */ s("path", { d: "M21 2l-2 2m-7.61 7.61a5.5 5.5 0 1 1-7.78 7.78 5.5 5.5 0 0 1 7.78-7.78zm0 0L15.5 7.5m0 0l3 3L22 7l-3-3m-3.5 3.5L19 4" }) })
177
+ key: /* @__PURE__ */ r(B, { children: /* @__PURE__ */ r("path", { d: "M21 2l-2 2m-7.61 7.61a5.5 5.5 0 1 1-7.78 7.78 5.5 5.5 0 0 1 7.78-7.78zm0 0L15.5 7.5m0 0l3 3L22 7l-3-3m-3.5 3.5L19 4" }) })
178
+ }, st = {
179
+ // Filled circle with "i" cutout (dot + line)
180
+ "info-circle-filled": /* @__PURE__ */ r("path", { fillRule: "evenodd", d: "M12 2C6.477 2 2 6.477 2 12s4.477 10 10 10 10-4.477 10-10S17.523 2 12 2zm-.75 6a.75.75 0 1 1 1.5 0 .75.75 0 0 1-1.5 0zM11 11a1 1 0 1 1 2 0v5a1 1 0 1 1-2 0v-5z" }),
181
+ // Filled triangle with "!" cutout
182
+ "alert-triangle-filled": /* @__PURE__ */ r("path", { fillRule: "evenodd", d: "M10.29 3.86L1.82 18a2 2 0 0 0 1.71 3h16.94a2 2 0 0 0 1.71-3L13.71 3.86a2 2 0 0 0-3.42 0zM11 10a1 1 0 1 1 2 0v3a1 1 0 1 1-2 0v-3zm.25 6a.75.75 0 1 1 1.5 0 .75.75 0 0 1-1.5 0z" }),
183
+ // Filled circle with checkmark cutout
184
+ "check-circle-filled": /* @__PURE__ */ r("path", { fillRule: "evenodd", d: "M12 2C6.477 2 2 6.477 2 12s4.477 10 10 10 10-4.477 10-10S17.523 2 12 2zm4.707 8.707a1 1 0 0 0-1.414-1.414L11 13.586l-2.293-2.293a1 1 0 0 0-1.414 1.414l3 3a1 1 0 0 0 1.414 0l5-5z" }),
185
+ // Filled circle with X cutout
186
+ "x-circle-filled": /* @__PURE__ */ r("path", { fillRule: "evenodd", d: "M12 2C6.477 2 2 6.477 2 12s4.477 10 10 10 10-4.477 10-10S17.523 2 12 2zM9.707 8.293a1 1 0 0 0-1.414 1.414L10.586 12l-2.293 2.293a1 1 0 1 0 1.414 1.414L12 13.414l2.293 2.293a1 1 0 0 0 1.414-1.414L13.414 12l2.293-2.293a1 1 0 0 0-1.414-1.414L12 10.586 9.707 8.293z" }),
187
+ // Filled shield with checkmark cutout
188
+ "shield-filled": /* @__PURE__ */ r("path", { fillRule: "evenodd", d: "M12 1L3 5v7c0 6.5 8.5 10.5 9 10.73.5-.23 9-4.23 9-10.73V5l-9-4zm3.707 8.707a1 1 0 0 0-1.414-1.414L11 11.586l-1.293-1.293a1 1 0 0 0-1.414 1.414l2 2a1 1 0 0 0 1.414 0l4-4z" }),
189
+ // Filled lock body with stroke shackle
190
+ "lock-filled": /* @__PURE__ */ z(B, { children: [
191
+ /* @__PURE__ */ r("path", { d: "M7 11V7a5 5 0 0 1 10 0v4", fill: "none", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round" }),
192
+ /* @__PURE__ */ r("rect", { x: "3", y: "11", width: "18", height: "11", rx: "2", ry: "2" })
193
+ ] })
178
194
  };
179
- function $e({
195
+ function ve({
180
196
  name: e,
181
197
  size: t = 24
182
198
  }) {
183
- return /* @__PURE__ */ s("svg", { viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: 2, strokeLinecap: "round", strokeLinejoin: "round", width: t, height: t, children: rt[e] });
199
+ const n = st[e];
200
+ return n ? /* @__PURE__ */ r("svg", { viewBox: "0 0 24 24", fill: "currentColor", width: t, height: t, children: n }) : /* @__PURE__ */ r("svg", { viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: 2, strokeLinecap: "round", strokeLinejoin: "round", width: t, height: t, children: rt[e] });
184
201
  }
185
- const ce = {
202
+ const ge = {
186
203
  base: {
187
- k1xSpc: "x78zum5",
188
- kXwgrk: "x1q0g3np",
189
- kGNEyG: "x1cy8zhl",
190
- kOIVth: "x1wyuhvo",
191
204
  kmVPX3: "x16ixvul",
192
205
  kaIpWk: "x1gbengz",
193
206
  kMzoRj: "xmkeg23",
@@ -196,17 +209,13 @@ const ce = {
196
209
  kLWn49: "xi1gl5z",
197
210
  $$css: !0
198
211
  },
199
- iconWrap: {
200
- kmuXW: "x2lah0s",
201
- k1xSpc: "x78zum5",
212
+ icon: {
213
+ kyUFMd: "x1faq86j",
214
+ km5ZXQ: "xxn522s",
215
+ keoZOQ: "xr9ek0c",
216
+ k1xSpc: "x3nfvp2",
202
217
  kGNEyG: "x6s0dn4",
203
218
  kjj79g: "xl56j7k",
204
- kLKAdn: "x4p5aij",
205
- $$css: !0
206
- },
207
- content: {
208
- kUk6DE: "x98rzlu",
209
- k7Eaqz: "xeuugli",
210
219
  $$css: !0
211
220
  },
212
221
  error: {
@@ -233,25 +242,25 @@ const ce = {
233
242
  kMwMTN: "xmooqzt",
234
243
  $$css: !0
235
244
  }
236
- }, st = {
237
- info: "info-circle",
238
- warning: "alert-triangle",
239
- success: "check-circle",
240
- error: "x-circle"
245
+ }, ot = {
246
+ info: "info-circle-filled",
247
+ warning: "alert-triangle-filled",
248
+ success: "check-circle-filled",
249
+ error: "x-circle-filled"
241
250
  };
242
- function ot(e, t) {
243
- return e === !1 ? null : e === void 0 ? /* @__PURE__ */ s($e, { name: st[t], size: 18 }) : typeof e == "string" ? /* @__PURE__ */ s($e, { name: e, size: 18 }) : e;
251
+ function it(e, t) {
252
+ return e === !1 ? null : e === void 0 ? /* @__PURE__ */ r(ve, { name: ot[t], size: 18 }) : typeof e == "string" ? /* @__PURE__ */ r(ve, { name: e, size: 18 }) : e;
244
253
  }
245
- function Mn({
254
+ function zn({
246
255
  variant: e = "info",
247
256
  icon: t,
248
257
  children: n
249
258
  }) {
250
- const r = ot(t, e);
251
- return /* @__PURE__ */ s("div", { role: "alert", ...l(k.div, ce.base, ce[e]), children: r ? /* @__PURE__ */ z(D, { children: [
252
- /* @__PURE__ */ s("div", { ...l(k.div, ce.iconWrap), children: r }),
253
- /* @__PURE__ */ s("div", { ...l(k.div, ce.content), children: n })
254
- ] }) : n });
259
+ const s = it(t, e);
260
+ return /* @__PURE__ */ z("div", { role: "alert", ...x(a.div, ge.base, ge[e]), children: [
261
+ s && /* @__PURE__ */ r("span", { ...x(a.span, ge.icon), children: s }),
262
+ n
263
+ ] });
255
264
  }
256
265
  const le = {
257
266
  base: {
@@ -306,16 +315,16 @@ const le = {
306
315
  kMwMTN: "xmooqzt",
307
316
  $$css: !0
308
317
  }
309
- }, it = {
318
+ }, ct = {
310
319
  sm: le.sizeSm,
311
320
  md: le.sizeMd
312
321
  };
313
- function zn({
322
+ function In({
314
323
  variant: e = "default",
315
324
  size: t = "md",
316
325
  children: n
317
326
  }) {
318
- return /* @__PURE__ */ s("span", { ...l(k.span, le.base, it[t], le[e]), children: n });
327
+ return /* @__PURE__ */ r("span", { ...x(a.span, le.base, ct[t], le[e]), children: n });
319
328
  }
320
329
  const ne = {
321
330
  base: {
@@ -392,20 +401,20 @@ const ne = {
392
401
  kkrTdU: "x1h6gzvc",
393
402
  $$css: !0
394
403
  }
395
- }, ct = {
404
+ }, lt = {
396
405
  default: ne.sizeDefault,
397
406
  small: ne.sizeSmall
398
407
  };
399
- function In({
408
+ function qn({
400
409
  variant: e = "primary",
401
410
  size: t = "default",
402
411
  fullWidth: n = !1,
403
- disabled: r = !1,
412
+ disabled: s = !1,
404
413
  type: o = "button",
405
- onClick: x,
414
+ onClick: l,
406
415
  children: i
407
416
  }) {
408
- return /* @__PURE__ */ s("button", { type: o, disabled: r, onClick: x, ...l(k.button, ne.base, ct[t], ne[e], n && ne.fullWidth, r && ne.disabled), children: i });
417
+ return /* @__PURE__ */ r("button", { type: o, disabled: s, onClick: l, ...x(a.button, ne.base, lt[t], ne[e], n && ne.fullWidth, s && ne.disabled), children: i });
409
418
  }
410
419
  const re = {
411
420
  base: {
@@ -469,15 +478,15 @@ const re = {
469
478
  compact: re.sizeCompact,
470
479
  full: re.sizeFull
471
480
  };
472
- function qn({
481
+ function Wn({
473
482
  variant: e = "outlined",
474
483
  size: t = "default",
475
484
  header: n,
476
- onClick: r,
485
+ onClick: s,
477
486
  children: o
478
487
  }) {
479
- return /* @__PURE__ */ z("div", { onClick: r, ...l(k.div, re.base, re[e], xt[t]), children: [
480
- n && /* @__PURE__ */ s("div", { ...l(k.div, re.header), children: n }),
488
+ return /* @__PURE__ */ z("div", { onClick: s, ...x(a.div, re.base, re[e], xt[t]), children: [
489
+ n && /* @__PURE__ */ r("div", { ...x(a.div, re.header), children: n }),
481
490
  o
482
491
  ] });
483
492
  }
@@ -531,24 +540,24 @@ const ee = {
531
540
  $$css: !0
532
541
  }
533
542
  };
534
- function Wn({
543
+ function Hn({
535
544
  name: e,
536
545
  value: t,
537
546
  checked: n,
538
- defaultChecked: r = !1,
547
+ defaultChecked: s = !1,
539
548
  disabled: o = !1,
540
- onChange: x,
549
+ onChange: l,
541
550
  children: i
542
551
  }) {
543
- const c = n !== void 0, [d, a] = G(r), g = c ? n : d, u = W((v) => {
544
- c || a(v.target.checked), x?.(v);
545
- }, [c, x]);
546
- return /* @__PURE__ */ z("label", { ...l(k.label, ee.root, o && ee.rootDisabled), children: [
547
- /* @__PURE__ */ s("input", { type: "checkbox", name: e, value: t, checked: c ? n : void 0, defaultChecked: c ? void 0 : r, disabled: o, onChange: u, ...l(k.input, ee.input), dir: "auto" }),
548
- /* @__PURE__ */ s("span", { ...l(k.span, ee.box, g ? ee.boxChecked : ee.boxUnchecked), "aria-hidden": !0, children: /* @__PURE__ */ s("svg", { width: 12, height: 12, viewBox: "0 0 12 12", fill: "none", style: {
552
+ const c = n !== void 0, [d, k] = G(s), g = c ? n : d, u = W(($) => {
553
+ c || k($.target.checked), l?.($);
554
+ }, [c, l]);
555
+ return /* @__PURE__ */ z("label", { ...x(a.label, ee.root, o && ee.rootDisabled), children: [
556
+ /* @__PURE__ */ r("input", { type: "checkbox", name: e, value: t, checked: c ? n : void 0, defaultChecked: c ? void 0 : s, disabled: o, onChange: u, ...x(a.input, ee.input), dir: "auto" }),
557
+ /* @__PURE__ */ r("span", { ...x(a.span, ee.box, g ? ee.boxChecked : ee.boxUnchecked), "aria-hidden": !0, children: /* @__PURE__ */ r("svg", { width: 12, height: 12, viewBox: "0 0 12 12", fill: "none", style: {
549
558
  opacity: g ? 1 : 0
550
- }, children: /* @__PURE__ */ s("polyline", { points: "2.5 6 5 8.5 9.5 3.5", stroke: "currentColor", strokeWidth: 1.5, strokeLinecap: "round", strokeLinejoin: "round" }) }) }),
551
- i && /* @__PURE__ */ s("span", { ...l(k.span), children: i })
559
+ }, children: /* @__PURE__ */ r("polyline", { points: "2.5 6 5 8.5 9.5 3.5", stroke: "currentColor", strokeWidth: 1.5, strokeLinecap: "round", strokeLinejoin: "round" }) }) }),
560
+ i && /* @__PURE__ */ r("span", { ...x(a.span), children: i })
552
561
  ] });
553
562
  }
554
563
  const he = {
@@ -574,15 +583,15 @@ const he = {
574
583
  $$css: !0
575
584
  }
576
585
  };
577
- function Hn({
586
+ function Gn({
578
587
  message: e,
579
588
  icon: t,
580
589
  action: n
581
590
  }) {
582
- return /* @__PURE__ */ z("div", { ...l(k.div, he.root), children: [
591
+ return /* @__PURE__ */ z("div", { ...x(a.div, he.root), children: [
583
592
  t,
584
- /* @__PURE__ */ s("p", { ...l(k.p, he.message), children: e }),
585
- n && /* @__PURE__ */ s("div", { ...l(k.div, he.action), children: n })
593
+ /* @__PURE__ */ r("p", { ...x(a.p, he.message), children: e }),
594
+ n && /* @__PURE__ */ r("div", { ...x(a.div, he.action), children: n })
586
595
  ] });
587
596
  }
588
597
  const Ge = {
@@ -699,7 +708,7 @@ const Ge = {
699
708
  kb6lSQ: "xgvl3jc",
700
709
  $$css: !0
701
710
  }
702
- }, xe = {
711
+ }, ce = {
703
712
  default: {
704
713
  kMwMTN: "xg6mlj0",
705
714
  $$css: !0
@@ -724,7 +733,7 @@ const Ge = {
724
733
  k9WMMc: "xp4054r",
725
734
  $$css: !0
726
735
  }
727
- }, lt = {
736
+ }, at = {
728
737
  1: "headingXl",
729
738
  2: "headingLg",
730
739
  3: "headingMd",
@@ -732,25 +741,25 @@ const Ge = {
732
741
  5: "headingSm",
733
742
  6: "headingSm"
734
743
  }, kt = {
735
- start: xe.alignStart,
736
- center: xe.alignCenter,
737
- end: xe.alignEnd
744
+ start: ce.alignStart,
745
+ center: ce.alignCenter,
746
+ end: ce.alignEnd
738
747
  };
739
- function Gn({
748
+ function Ln({
740
749
  level: e,
741
750
  variant: t,
742
751
  color: n = "default",
743
- align: r,
752
+ align: s,
744
753
  children: o
745
754
  }) {
746
- const x = t ?? lt[e], i = [Ge[x], xe[n], r && kt[r]];
747
- return e === 1 ? /* @__PURE__ */ s("h1", { ...l(k.h1, i), children: o }) : e === 2 ? /* @__PURE__ */ s("h2", { ...l(k.h2, i), children: o }) : e === 3 ? /* @__PURE__ */ s("h3", { ...l(k.h3, i), children: o }) : e === 4 ? /* @__PURE__ */ s("h4", { ...l(k.h4, i), children: o }) : e === 5 ? /* @__PURE__ */ s("h5", { ...l(k.h5, i), children: o }) : /* @__PURE__ */ s("h6", { ...l(k.h6, i), children: o });
755
+ const l = t ?? at[e], i = [Ge[l], ce[n], s && kt[s]];
756
+ return e === 1 ? /* @__PURE__ */ r("h1", { ...x(a.h1, i), children: o }) : e === 2 ? /* @__PURE__ */ r("h2", { ...x(a.h2, i), children: o }) : e === 3 ? /* @__PURE__ */ r("h3", { ...x(a.h3, i), children: o }) : e === 4 ? /* @__PURE__ */ r("h4", { ...x(a.h4, i), children: o }) : e === 5 ? /* @__PURE__ */ r("h5", { ...x(a.h5, i), children: o }) : /* @__PURE__ */ r("h6", { ...x(a.h6, i), children: o });
748
757
  }
749
- const Te = R(null);
758
+ const Le = R(null);
750
759
  function ie() {
751
- return O(Te);
760
+ return O(Le);
752
761
  }
753
- const ke = {
762
+ const xe = {
754
763
  root: {
755
764
  k1xSpc: "x78zum5",
756
765
  kXwgrk: "xdt5ytf",
@@ -774,44 +783,44 @@ const ke = {
774
783
  $$css: !0
775
784
  }
776
785
  };
777
- function at({
786
+ function ut({
778
787
  invalid: e = !1,
779
788
  children: t
780
789
  }) {
781
- const n = _(), r = ve(() => ({
790
+ const n = _(), s = $e(() => ({
782
791
  controlId: `${n}-control`,
783
792
  descriptionId: `${n}-description`,
784
793
  errorId: `${n}-error`,
785
794
  invalid: e
786
795
  }), [n, e]);
787
- return /* @__PURE__ */ s(Te.Provider, { value: r, children: /* @__PURE__ */ s("div", { ...l(k.div, ke.root), children: t }) });
796
+ return /* @__PURE__ */ r(Le.Provider, { value: s, children: /* @__PURE__ */ r("div", { ...x(a.div, xe.root), children: t }) });
788
797
  }
789
- function ut({
798
+ function dt({
790
799
  children: e
791
800
  }) {
792
801
  const t = ie();
793
- return /* @__PURE__ */ s("label", { htmlFor: t?.controlId, ...l(k.label, ke.label), children: e });
802
+ return /* @__PURE__ */ r("label", { htmlFor: t?.controlId, ...x(a.label, xe.label), children: e });
794
803
  }
795
- function dt({
804
+ function gt({
796
805
  children: e
797
806
  }) {
798
807
  const t = ie();
799
- return /* @__PURE__ */ s("span", { id: t?.descriptionId, ...l(k.span, ke.description), children: e });
808
+ return /* @__PURE__ */ r("span", { id: t?.descriptionId, ...x(a.span, xe.description), children: e });
800
809
  }
801
- function gt({
810
+ function ht({
802
811
  children: e
803
812
  }) {
804
813
  const t = ie();
805
- return !t?.invalid && !e ? null : /* @__PURE__ */ s("span", { id: t?.errorId, role: "alert", ...l(k.span, ke.error), children: e });
814
+ return !t?.invalid && !e ? null : /* @__PURE__ */ r("span", { id: t?.errorId, role: "alert", ...x(a.span, xe.error), children: e });
806
815
  }
807
816
  const Tn = {
808
- Root: at,
809
- Label: ut,
810
- Description: dt,
811
- Error: gt
812
- }, Ee = R(null);
813
- function ht() {
814
- return O(Ee);
817
+ Root: ut,
818
+ Label: dt,
819
+ Description: gt,
820
+ Error: ht
821
+ }, Te = R(null);
822
+ function pt() {
823
+ return O(Te);
815
824
  }
816
825
  const pe = {
817
826
  base: {
@@ -856,20 +865,20 @@ function En({
856
865
  variant: e = "default",
857
866
  type: t = "text",
858
867
  name: n,
859
- placeholder: r,
868
+ placeholder: s,
860
869
  required: o,
861
- minLength: x,
870
+ minLength: l,
862
871
  pattern: i,
863
872
  autoComplete: c,
864
873
  value: d,
865
- defaultValue: a,
874
+ defaultValue: k,
866
875
  disabled: g,
867
876
  onChange: u
868
877
  }) {
869
- const v = ie(), S = ht(), p = i !== void 0 ? {
878
+ const $ = ie(), M = pt(), p = i !== void 0 ? {
870
879
  pattern: i
871
880
  } : void 0;
872
- return /* @__PURE__ */ s("input", { id: v?.controlId, type: t, name: n, placeholder: r, required: o, minLength: x, autoComplete: c, value: d, defaultValue: a, disabled: g, "aria-describedby": v ? `${v.descriptionId} ${v.invalid ? v.errorId : ""}`.trim() : void 0, "aria-invalid": v?.invalid || e === "error" || void 0, onChange: u, ...l(k.input, pe.base, pe[e], S?.inGroup && pe.inGroup), ...p, dir: "auto" });
881
+ return /* @__PURE__ */ r("input", { id: $?.controlId, type: t, name: n, placeholder: s, required: o, minLength: l, autoComplete: c, value: d, defaultValue: k, disabled: g, "aria-describedby": $ ? `${$.descriptionId} ${$.invalid ? $.errorId : ""}`.trim() : void 0, "aria-invalid": $?.invalid || e === "error" || void 0, onChange: u, ...x(a.input, pe.base, pe[e], M?.inGroup && pe.inGroup), ...p, dir: "auto" });
873
882
  }
874
883
  const te = {
875
884
  wrapper: {
@@ -926,26 +935,26 @@ const te = {
926
935
  $$css: !0
927
936
  }
928
937
  };
929
- function pt({
938
+ function ft({
930
939
  children: e
931
940
  }) {
932
- const t = ve(() => ({
941
+ const t = $e(() => ({
933
942
  inGroup: !0
934
943
  }), []);
935
- return /* @__PURE__ */ s(Ee.Provider, { value: t, children: /* @__PURE__ */ s("div", { ...l(k.div, te.wrapper), children: e }) });
944
+ return /* @__PURE__ */ r(Te.Provider, { value: t, children: /* @__PURE__ */ r("div", { ...x(a.div, te.wrapper), children: e }) });
936
945
  }
937
- function ft({
946
+ function vt({
938
947
  position: e = "end",
939
948
  onClick: t,
940
949
  disabled: n,
941
- children: r
950
+ children: s
942
951
  }) {
943
- const o = e === "start" ? te.addonStart : te.addonEnd, x = [te.addon, o, t && !n && te.addonClickable, n && te.addonDisabled];
944
- return t ? /* @__PURE__ */ s("button", { type: "button", onClick: t, disabled: n, ...l(k.button, x), children: r }) : /* @__PURE__ */ s("span", { ...l(k.span, x), children: r });
952
+ const o = e === "start" ? te.addonStart : te.addonEnd, l = [te.addon, o, t && !n && te.addonClickable, n && te.addonDisabled];
953
+ return t ? /* @__PURE__ */ r("button", { type: "button", onClick: t, disabled: n, ...x(a.button, l), children: s }) : /* @__PURE__ */ r("span", { ...x(a.span, l), children: s });
945
954
  }
946
- const Ln = {
947
- Root: pt,
948
- Addon: ft
955
+ const Vn = {
956
+ Root: ft,
957
+ Addon: vt
949
958
  }, oe = {
950
959
  base: {
951
960
  k1xSpc: "x3nfvp2",
@@ -1000,16 +1009,16 @@ const Ln = {
1000
1009
  default: oe.sizeDefault,
1001
1010
  small: oe.sizeSmall
1002
1011
  };
1003
- function Vn({
1012
+ function An({
1004
1013
  href: e,
1005
1014
  variant: t = "primary",
1006
1015
  size: n = "default",
1007
- fullWidth: r = !1,
1016
+ fullWidth: s = !1,
1008
1017
  target: o,
1009
- rel: x,
1018
+ rel: l,
1010
1019
  children: i
1011
1020
  }) {
1012
- return /* @__PURE__ */ s("a", { href: e, target: o, rel: x, ...l(k.a, oe.base, $t[n], oe[t], r && oe.fullWidth), children: i });
1021
+ return /* @__PURE__ */ r("a", { href: e, target: o, rel: l, ...x(a.a, oe.base, $t[n], oe[t], s && oe.fullWidth), children: i });
1013
1022
  }
1014
1023
  const P = {
1015
1024
  root: {
@@ -1095,69 +1104,69 @@ const P = {
1095
1104
  kMwMTN: "xg6mlj0 x1c35pte",
1096
1105
  $$css: !0
1097
1106
  }
1098
- }, Le = R(null);
1107
+ }, Ee = R(null);
1099
1108
  function ae() {
1100
- const e = O(Le);
1109
+ const e = O(Ee);
1101
1110
  if (!e) throw new Error("Menu compound components must be used within Menu.Root");
1102
1111
  return e;
1103
1112
  }
1104
- function vt() {
1105
- const [e, t] = G(!1), [n, r] = G(null), o = _(), x = w(null), i = w(null), c = w(/* @__PURE__ */ new Map()), d = w([]), a = w(!1), g = W(() => {
1106
- t(!1), r(null), a.current = !1, i.current?.focus();
1113
+ function mt() {
1114
+ const [e, t] = G(!1), [n, s] = G(null), o = _(), l = w(null), i = w(null), c = w(/* @__PURE__ */ new Map()), d = w([]), k = w(!1), g = W(() => {
1115
+ t(!1), s(null), k.current = !1, i.current?.focus();
1107
1116
  }, []), u = W(() => {
1108
- t((p) => (p ? (r(null), a.current = !1) : a.current = !0, !p));
1117
+ t((p) => (p ? (s(null), k.current = !1) : k.current = !0, !p));
1109
1118
  }, []);
1110
1119
  H(() => {
1111
- if (e && a.current) {
1112
- a.current = !1;
1120
+ if (e && k.current) {
1121
+ k.current = !1;
1113
1122
  const p = d.current;
1114
- p.length > 0 && r(p[0]);
1123
+ p.length > 0 && s(p[0]);
1115
1124
  }
1116
1125
  }, [e]);
1117
- const v = W((p, m) => {
1126
+ const $ = W((p, m) => {
1118
1127
  c.current.set(p, m);
1119
- const f = c.current, $ = [...f.keys()];
1120
- return $.sort((h, b) => {
1121
- const B = f.get(h), Q = f.get(b);
1122
- return !B || !Q ? 0 : B.compareDocumentPosition(Q) & Node.DOCUMENT_POSITION_FOLLOWING ? -1 : 1;
1123
- }), d.current = $, () => {
1128
+ const f = c.current, v = [...f.keys()];
1129
+ return v.sort((h, b) => {
1130
+ const C = f.get(h), Q = f.get(b);
1131
+ return !C || !Q ? 0 : C.compareDocumentPosition(Q) & Node.DOCUMENT_POSITION_FOLLOWING ? -1 : 1;
1132
+ }), d.current = v, () => {
1124
1133
  c.current.delete(p), d.current = d.current.filter((h) => h !== p);
1125
1134
  };
1126
1135
  }, []);
1127
1136
  return H(() => {
1128
- const p = x.current;
1137
+ const p = l.current;
1129
1138
  if (!p || !e) return;
1130
1139
  function m(f) {
1131
- const $ = d.current;
1132
- if ($.length !== 0)
1140
+ const v = d.current;
1141
+ if (v.length !== 0)
1133
1142
  switch (f.key) {
1134
1143
  case "ArrowDown": {
1135
- f.preventDefault(), r((h) => {
1136
- const b = h ? $.indexOf(h) : -1;
1137
- return $[(b + 1) % $.length];
1144
+ f.preventDefault(), s((h) => {
1145
+ const b = h ? v.indexOf(h) : -1;
1146
+ return v[(b + 1) % v.length];
1138
1147
  });
1139
1148
  break;
1140
1149
  }
1141
1150
  case "ArrowUp": {
1142
- f.preventDefault(), r((h) => {
1143
- const b = h ? $.indexOf(h) : 0;
1144
- return $[(b - 1 + $.length) % $.length];
1151
+ f.preventDefault(), s((h) => {
1152
+ const b = h ? v.indexOf(h) : 0;
1153
+ return v[(b - 1 + v.length) % v.length];
1145
1154
  });
1146
1155
  break;
1147
1156
  }
1148
1157
  case "Home": {
1149
- f.preventDefault(), r($[0]);
1158
+ f.preventDefault(), s(v[0]);
1150
1159
  break;
1151
1160
  }
1152
1161
  case "End": {
1153
- f.preventDefault(), r($[$.length - 1]);
1162
+ f.preventDefault(), s(v[v.length - 1]);
1154
1163
  break;
1155
1164
  }
1156
1165
  case "Enter":
1157
1166
  case " ": {
1158
1167
  f.preventDefault();
1159
1168
  const h = c.current;
1160
- r((b) => (b && h.get(b)?.click(), b));
1169
+ s((b) => (b && h.get(b)?.click(), b));
1161
1170
  break;
1162
1171
  }
1163
1172
  case "Escape":
@@ -1175,67 +1184,67 @@ function vt() {
1175
1184
  close: g,
1176
1185
  menuId: o,
1177
1186
  highlightedId: n,
1178
- setHighlightedId: r,
1179
- registerItem: v,
1187
+ setHighlightedId: s,
1188
+ registerItem: $,
1180
1189
  triggerRef: i
1181
1190
  },
1182
- rootRef: x
1191
+ rootRef: l
1183
1192
  };
1184
1193
  }
1185
- function mt({
1194
+ function bt({
1186
1195
  children: e
1187
1196
  }) {
1188
1197
  const {
1189
1198
  ctx: t,
1190
1199
  rootRef: n
1191
- } = vt();
1192
- return /* @__PURE__ */ s(Le.Provider, { value: t, children: /* @__PURE__ */ s("div", { ref: n, ...l(k.div, P.root), children: e }) });
1200
+ } = mt();
1201
+ return /* @__PURE__ */ r(Ee.Provider, { value: t, children: /* @__PURE__ */ r("div", { ref: n, ...x(a.div, P.root), children: e }) });
1193
1202
  }
1194
- function bt({
1203
+ function yt({
1195
1204
  children: e
1196
1205
  }) {
1197
1206
  const {
1198
1207
  open: t,
1199
1208
  toggle: n,
1200
- menuId: r,
1209
+ menuId: s,
1201
1210
  triggerRef: o
1202
- } = ae(), x = w(null);
1211
+ } = ae(), l = w(null);
1203
1212
  return H(() => {
1204
- o.current = x.current;
1205
- }), /* @__PURE__ */ s("button", { ref: x, type: "button", onClick: n, "aria-expanded": t, "aria-haspopup": "menu", "aria-controls": t ? r : void 0, ...l(k.button, P.trigger), children: e });
1213
+ o.current = l.current;
1214
+ }), /* @__PURE__ */ r("button", { ref: l, type: "button", onClick: n, "aria-expanded": t, "aria-haspopup": "menu", "aria-controls": t ? s : void 0, ...x(a.button, P.trigger), children: e });
1206
1215
  }
1207
- function yt({
1216
+ function wt({
1208
1217
  children: e,
1209
1218
  align: t = "start"
1210
1219
  }) {
1211
1220
  const {
1212
1221
  open: n,
1213
- close: r,
1222
+ close: s,
1214
1223
  menuId: o,
1215
- highlightedId: x
1224
+ highlightedId: l
1216
1225
  } = ae();
1217
- return n ? /* @__PURE__ */ z(D, { children: [
1218
- /* @__PURE__ */ s("div", { ...l(k.div, P.backdrop), onClick: r }),
1219
- /* @__PURE__ */ s("div", { id: o, role: "menu", "aria-activedescendant": x ?? void 0, ...l(k.div, P.popup, t === "end" && P.popupEnd), children: e })
1226
+ return n ? /* @__PURE__ */ z(B, { children: [
1227
+ /* @__PURE__ */ r("div", { ...x(a.div, P.backdrop), onClick: s }),
1228
+ /* @__PURE__ */ r("div", { id: o, role: "menu", "aria-activedescendant": l ?? void 0, ...x(a.div, P.popup, t === "end" && P.popupEnd), children: e })
1220
1229
  ] }) : null;
1221
1230
  }
1222
- function wt({
1231
+ function Mt({
1223
1232
  onClick: e,
1224
1233
  children: t
1225
1234
  }) {
1226
1235
  const {
1227
1236
  close: n,
1228
- highlightedId: r,
1237
+ highlightedId: s,
1229
1238
  setHighlightedId: o,
1230
- registerItem: x
1231
- } = ae(), i = _(), c = w(null), d = r === i;
1239
+ registerItem: l
1240
+ } = ae(), i = _(), c = w(null), d = s === i;
1232
1241
  return H(() => {
1233
1242
  const g = c.current;
1234
1243
  if (g)
1235
- return x(i, g);
1236
- }, [i, x]), /* @__PURE__ */ s("div", { ref: c, id: i, role: "menuitem", onClick: () => {
1244
+ return l(i, g);
1245
+ }, [i, l]), /* @__PURE__ */ r("div", { ref: c, id: i, role: "menuitem", onClick: () => {
1237
1246
  e?.(), n();
1238
- }, onPointerEnter: () => o(i), ...l(k.div, P.item, d && P.itemHighlighted), children: t });
1247
+ }, onPointerEnter: () => o(i), ...x(a.div, P.item, d && P.itemHighlighted), children: t });
1239
1248
  }
1240
1249
  function St({
1241
1250
  href: e,
@@ -1243,23 +1252,23 @@ function St({
1243
1252
  }) {
1244
1253
  const {
1245
1254
  close: n,
1246
- highlightedId: r,
1255
+ highlightedId: s,
1247
1256
  setHighlightedId: o,
1248
- registerItem: x
1249
- } = ae(), i = _(), c = w(null), d = r === i;
1257
+ registerItem: l
1258
+ } = ae(), i = _(), c = w(null), d = s === i;
1250
1259
  return H(() => {
1251
- const a = c.current;
1252
- if (a)
1253
- return x(i, a);
1254
- }, [i, x]), /* @__PURE__ */ s("a", { ref: c, id: i, href: e, onClick: n, role: "menuitem", onPointerEnter: () => o(i), ...l(k.a, P.item, P.linkItem, d && P.itemHighlighted), children: t });
1255
- }
1256
- const An = {
1257
- Root: mt,
1258
- Trigger: bt,
1259
- Popup: yt,
1260
- Item: wt,
1260
+ const k = c.current;
1261
+ if (k)
1262
+ return l(i, k);
1263
+ }, [i, l]), /* @__PURE__ */ r("a", { ref: c, id: i, href: e, onClick: n, role: "menuitem", onPointerEnter: () => o(i), ...x(a.a, P.item, P.linkItem, d && P.itemHighlighted), children: t });
1264
+ }
1265
+ const Nn = {
1266
+ Root: bt,
1267
+ Trigger: yt,
1268
+ Popup: wt,
1269
+ Item: Mt,
1261
1270
  LinkItem: St
1262
- }, C = {
1271
+ }, D = {
1263
1272
  root: {
1264
1273
  kVAEAm: "x1n2onr6",
1265
1274
  kVQacm: "xb3r6kr",
@@ -1351,30 +1360,30 @@ const An = {
1351
1360
  "--x-transform": t ?? void 0
1352
1361
  }]
1353
1362
  }, Ve = R(null);
1354
- function ue() {
1363
+ function ke() {
1355
1364
  const e = O(Ve);
1356
1365
  if (!e) throw new Error("ScrollArea compound components must be used within ScrollArea.Root");
1357
1366
  return e;
1358
1367
  }
1359
1368
  function jt() {
1360
- const e = w(null), t = w(null), [n, r] = G(0), [o, x] = G(0), [i, c] = G(0), [d, a] = G(0), [g, u] = G(0), [v, S] = G(0), [p, m] = G(!1), f = w(null), $ = W(() => {
1369
+ const e = w(null), t = w(null), [n, s] = G(0), [o, l] = G(0), [i, c] = G(0), [d, k] = G(0), [g, u] = G(0), [$, M] = G(0), [p, m] = G(!1), f = w(null), v = W(() => {
1361
1370
  const h = e.current;
1362
- h && (r(h.scrollTop), x(h.scrollLeft), c(h.scrollHeight), a(h.scrollWidth), u(h.clientHeight), S(h.clientWidth), m(!0), f.current && clearTimeout(f.current), f.current = setTimeout(() => m(!1), 1e3));
1371
+ h && (s(h.scrollTop), l(h.scrollLeft), c(h.scrollHeight), k(h.scrollWidth), u(h.clientHeight), M(h.clientWidth), m(!0), f.current && clearTimeout(f.current), f.current = setTimeout(() => m(!1), 1e3));
1363
1372
  }, []);
1364
1373
  return H(() => {
1365
1374
  const h = e.current;
1366
1375
  if (!h) return;
1367
1376
  const b = new ResizeObserver(() => {
1368
- c(h.scrollHeight), a(h.scrollWidth), u(h.clientHeight), S(h.clientWidth);
1377
+ c(h.scrollHeight), k(h.scrollWidth), u(h.clientHeight), M(h.clientWidth);
1369
1378
  });
1370
- return b.observe(h), c(h.scrollHeight), a(h.scrollWidth), u(h.clientHeight), S(h.clientWidth), () => b.disconnect();
1379
+ return b.observe(h), c(h.scrollHeight), k(h.scrollWidth), u(h.clientHeight), M(h.clientWidth), () => b.disconnect();
1371
1380
  }, []), H(() => {
1372
1381
  const h = e.current;
1373
1382
  if (h)
1374
- return h.addEventListener("scroll", $, {
1383
+ return h.addEventListener("scroll", v, {
1375
1384
  passive: !0
1376
- }), () => h.removeEventListener("scroll", $);
1377
- }, [$]), {
1385
+ }), () => h.removeEventListener("scroll", v);
1386
+ }, [v]), {
1378
1387
  viewportRef: e,
1379
1388
  contentRef: t,
1380
1389
  scrollTop: n,
@@ -1382,76 +1391,76 @@ function jt() {
1382
1391
  scrollHeight: i,
1383
1392
  scrollWidth: d,
1384
1393
  clientHeight: g,
1385
- clientWidth: v,
1394
+ clientWidth: $,
1386
1395
  scrolling: p
1387
1396
  };
1388
1397
  }
1389
- function Mt({
1398
+ function zt({
1390
1399
  children: e
1391
1400
  }) {
1392
1401
  const t = jt();
1393
- return /* @__PURE__ */ s(Ve.Provider, { value: t, children: /* @__PURE__ */ s("div", { ...l(k.div, C.root), children: e }) });
1402
+ return /* @__PURE__ */ r(Ve.Provider, { value: t, children: /* @__PURE__ */ r("div", { ...x(a.div, D.root), children: e }) });
1394
1403
  }
1395
- function zt({
1404
+ function It({
1396
1405
  children: e,
1397
1406
  maxHeight: t
1398
1407
  }) {
1399
1408
  const {
1400
1409
  viewportRef: n
1401
- } = ue();
1402
- return /* @__PURE__ */ s("div", { ref: n, ...l(k.div, C.viewport, t != null && C.viewportMaxHeight(t)), children: e });
1410
+ } = ke();
1411
+ return /* @__PURE__ */ r("div", { ref: n, ...x(a.div, D.viewport, t != null && D.viewportMaxHeight(t)), children: e });
1403
1412
  }
1404
- function It({
1413
+ function qt({
1405
1414
  children: e
1406
1415
  }) {
1407
1416
  const {
1408
1417
  contentRef: t
1409
- } = ue();
1410
- return /* @__PURE__ */ s("div", { ref: t, ...l(k.div, C.content), children: e });
1418
+ } = ke();
1419
+ return /* @__PURE__ */ r("div", { ref: t, ...x(a.div, D.content), children: e });
1411
1420
  }
1412
- function qt({
1421
+ function Wt({
1413
1422
  orientation: e = "vertical",
1414
1423
  children: t
1415
1424
  }) {
1416
1425
  const {
1417
1426
  scrolling: n,
1418
- scrollHeight: r,
1427
+ scrollHeight: s,
1419
1428
  scrollWidth: o,
1420
- clientHeight: x,
1429
+ clientHeight: l,
1421
1430
  clientWidth: i
1422
- } = ue();
1423
- return (e === "vertical" ? r > x : o > i) ? /* @__PURE__ */ s("div", { ...l(k.div, C.scrollbar, e === "vertical" ? C.scrollbarVertical : C.scrollbarHorizontal, n ? C.scrollbarVisible : C.scrollbarHidden), children: t }) : null;
1431
+ } = ke();
1432
+ return (e === "vertical" ? s > l : o > i) ? /* @__PURE__ */ r("div", { ...x(a.div, D.scrollbar, e === "vertical" ? D.scrollbarVertical : D.scrollbarHorizontal, n ? D.scrollbarVisible : D.scrollbarHidden), children: t }) : null;
1424
1433
  }
1425
- function Wt({
1434
+ function Ht({
1426
1435
  orientation: e = "vertical"
1427
1436
  }) {
1428
1437
  const {
1429
1438
  viewportRef: t,
1430
1439
  scrollTop: n,
1431
- scrollLeft: r,
1440
+ scrollLeft: s,
1432
1441
  scrollHeight: o,
1433
- scrollWidth: x,
1442
+ scrollWidth: l,
1434
1443
  clientHeight: i,
1435
1444
  clientWidth: c
1436
- } = ue(), d = w(!1), a = w(0), g = w(0), u = e === "vertical", v = Math.max(u ? i / o * 100 : c / x * 100, 10), S = u ? o - i : x - c, p = u ? i : c, m = v / 100 * p, f = u ? n : r, $ = S > 0 ? f / S * (p - m) : 0, h = u ? C.thumbVertical(`${v}%`, `translateY(${$}px)`) : C.thumbHorizontal(`${v}%`, `translateX(${$}px)`), b = W((y) => {
1437
- y.preventDefault(), d.current = !0, a.current = u ? y.clientY : y.clientX, g.current = u ? t.current?.scrollTop ?? 0 : t.current?.scrollLeft ?? 0, y.target.setPointerCapture(y.pointerId);
1438
- }, [u, t]), B = W((y) => {
1445
+ } = ke(), d = w(!1), k = w(0), g = w(0), u = e === "vertical", $ = Math.max(u ? i / o * 100 : c / l * 100, 10), M = u ? o - i : l - c, p = u ? i : c, m = $ / 100 * p, f = u ? n : s, v = M > 0 ? f / M * (p - m) : 0, h = u ? D.thumbVertical(`${$}%`, `translateY(${v}px)`) : D.thumbHorizontal(`${$}%`, `translateX(${v}px)`), b = W((y) => {
1446
+ y.preventDefault(), d.current = !0, k.current = u ? y.clientY : y.clientX, g.current = u ? t.current?.scrollTop ?? 0 : t.current?.scrollLeft ?? 0, y.target.setPointerCapture(y.pointerId);
1447
+ }, [u, t]), C = W((y) => {
1439
1448
  if (!d.current) return;
1440
1449
  const I = t.current;
1441
1450
  if (!I) return;
1442
- const j = (u ? y.clientY : y.clientX) - a.current, M = S / (p - m), J = j * M;
1451
+ const S = (u ? y.clientY : y.clientX) - k.current, j = M / (p - m), J = S * j;
1443
1452
  u ? I.scrollTop = g.current + J : I.scrollLeft = g.current + J;
1444
- }, [u, S, p, m, t]), Q = W(() => {
1453
+ }, [u, M, p, m, t]), Q = W(() => {
1445
1454
  d.current = !1;
1446
1455
  }, []);
1447
- return /* @__PURE__ */ s("div", { onPointerDown: b, onPointerMove: B, onPointerUp: Q, ...l(k.div, C.thumb, h) });
1456
+ return /* @__PURE__ */ r("div", { onPointerDown: b, onPointerMove: C, onPointerUp: Q, ...x(a.div, D.thumb, h) });
1448
1457
  }
1449
- const Nn = {
1450
- Root: Mt,
1451
- Viewport: zt,
1452
- Content: It,
1453
- Scrollbar: qt,
1454
- Thumb: Wt
1458
+ const On = {
1459
+ Root: zt,
1460
+ Viewport: It,
1461
+ Content: qt,
1462
+ Scrollbar: Wt,
1463
+ Thumb: Ht
1455
1464
  }, Y = {
1456
1465
  root: {
1457
1466
  kVAEAm: "x1n2onr6",
@@ -1551,147 +1560,147 @@ const Nn = {
1551
1560
  $$css: !0
1552
1561
  }
1553
1562
  }, Ae = R(null);
1554
- function de() {
1563
+ function ue() {
1555
1564
  const e = O(Ae);
1556
1565
  if (!e) throw new Error("Select compound components must be used within Select.Root");
1557
1566
  return e;
1558
1567
  }
1559
1568
  function be(e, t, n) {
1560
- const [r, o] = G(t), x = e !== void 0 ? e : r, i = W((c) => {
1569
+ const [s, o] = G(t), l = e !== void 0 ? e : s, i = W((c) => {
1561
1570
  e === void 0 && o(c), n?.(c);
1562
1571
  }, [e, n]);
1563
- return [x, i];
1572
+ return [l, i];
1564
1573
  }
1565
- function Ht({
1574
+ function Gt({
1566
1575
  defaultValue: e,
1567
1576
  value: t,
1568
1577
  onValueChange: n,
1569
- initialLabels: r
1578
+ initialLabels: s
1570
1579
  }) {
1571
- const [o, x] = be(t, e ?? null, n), [i, c] = G(!1), [d, a] = G(r ?? {}), [g, u] = G(null), v = _(), S = w(null), p = w(null), m = w(/* @__PURE__ */ new Map()), f = w([]), $ = W(() => {
1580
+ const [o, l] = be(t, e ?? null, n), [i, c] = G(!1), [d, k] = G(s ?? {}), [g, u] = G(null), $ = _(), M = w(null), p = w(null), m = w(/* @__PURE__ */ new Map()), f = w([]), v = W(() => {
1572
1581
  c(!1), u(null), p.current?.focus();
1573
1582
  }, []), h = W(() => {
1574
1583
  c((y) => {
1575
1584
  if (y)
1576
1585
  u(null);
1577
1586
  else {
1578
- const I = m.current, j = f.current;
1579
- let M = null;
1580
- for (const J of j) {
1581
- const T = I.get(J);
1582
- if (T && T.value === o) {
1583
- M = J;
1587
+ const I = m.current, S = f.current;
1588
+ let j = null;
1589
+ for (const J of S) {
1590
+ const L = I.get(J);
1591
+ if (L && L.value === o) {
1592
+ j = J;
1584
1593
  break;
1585
1594
  }
1586
1595
  }
1587
- u(M ?? (j.length > 0 ? j[0] : null));
1596
+ u(j ?? (S.length > 0 ? S[0] : null));
1588
1597
  }
1589
1598
  return !y;
1590
1599
  });
1591
1600
  }, [o]), b = W((y, I) => {
1592
- a((j) => j[y] === I ? j : {
1593
- ...j,
1601
+ k((S) => S[y] === I ? S : {
1602
+ ...S,
1594
1603
  [y]: I
1595
1604
  });
1596
- }, []), B = W((y, I, j) => {
1605
+ }, []), C = W((y, I, S) => {
1597
1606
  m.current.set(y, {
1598
1607
  value: I,
1599
- element: j
1608
+ element: S
1600
1609
  });
1601
- const M = m.current, J = [...M.keys()];
1602
- return J.sort((T, K) => {
1603
- const je = M.get(T)?.element, Me = M.get(K)?.element;
1604
- return !je || !Me ? 0 : je.compareDocumentPosition(Me) & Node.DOCUMENT_POSITION_FOLLOWING ? -1 : 1;
1610
+ const j = m.current, J = [...j.keys()];
1611
+ return J.sort((L, K) => {
1612
+ const Se = j.get(L)?.element, je = j.get(K)?.element;
1613
+ return !Se || !je ? 0 : Se.compareDocumentPosition(je) & Node.DOCUMENT_POSITION_FOLLOWING ? -1 : 1;
1605
1614
  }), f.current = J, () => {
1606
- m.current.delete(y), f.current = f.current.filter((T) => T !== y);
1615
+ m.current.delete(y), f.current = f.current.filter((L) => L !== y);
1607
1616
  };
1608
1617
  }, []);
1609
1618
  return H(() => {
1610
- const y = S.current;
1619
+ const y = M.current;
1611
1620
  if (!y || !i) return;
1612
- function I(j) {
1613
- const M = f.current, J = m.current;
1614
- if (M.length !== 0)
1615
- switch (j.key) {
1621
+ function I(S) {
1622
+ const j = f.current, J = m.current;
1623
+ if (j.length !== 0)
1624
+ switch (S.key) {
1616
1625
  case "ArrowDown": {
1617
- j.preventDefault(), u((T) => {
1618
- const K = T ? M.indexOf(T) : -1;
1619
- return M[(K + 1) % M.length];
1626
+ S.preventDefault(), u((L) => {
1627
+ const K = L ? j.indexOf(L) : -1;
1628
+ return j[(K + 1) % j.length];
1620
1629
  });
1621
1630
  break;
1622
1631
  }
1623
1632
  case "ArrowUp": {
1624
- j.preventDefault(), u((T) => {
1625
- const K = T ? M.indexOf(T) : 0;
1626
- return M[(K - 1 + M.length) % M.length];
1633
+ S.preventDefault(), u((L) => {
1634
+ const K = L ? j.indexOf(L) : 0;
1635
+ return j[(K - 1 + j.length) % j.length];
1627
1636
  });
1628
1637
  break;
1629
1638
  }
1630
1639
  case "Home": {
1631
- j.preventDefault(), u(M[0]);
1640
+ S.preventDefault(), u(j[0]);
1632
1641
  break;
1633
1642
  }
1634
1643
  case "End": {
1635
- j.preventDefault(), u(M[M.length - 1]);
1644
+ S.preventDefault(), u(j[j.length - 1]);
1636
1645
  break;
1637
1646
  }
1638
1647
  case "Enter":
1639
1648
  case " ": {
1640
- j.preventDefault(), u((T) => {
1641
- if (T) {
1642
- const K = J.get(T);
1643
- K && (x(K.value), $());
1649
+ S.preventDefault(), u((L) => {
1650
+ if (L) {
1651
+ const K = J.get(L);
1652
+ K && (l(K.value), v());
1644
1653
  }
1645
- return T;
1654
+ return L;
1646
1655
  });
1647
1656
  break;
1648
1657
  }
1649
1658
  case "Escape":
1650
1659
  case "Tab": {
1651
- $();
1660
+ v();
1652
1661
  break;
1653
1662
  }
1654
1663
  }
1655
1664
  }
1656
1665
  return y.addEventListener("keydown", I), () => y.removeEventListener("keydown", I);
1657
- }, [i, $, x]), {
1658
- ctx: ve(() => ({
1666
+ }, [i, v, l]), {
1667
+ ctx: $e(() => ({
1659
1668
  open: i,
1660
1669
  toggle: h,
1661
- close: $,
1670
+ close: v,
1662
1671
  value: o,
1663
- setValue: x,
1672
+ setValue: l,
1664
1673
  labels: d,
1665
1674
  registerLabel: b,
1666
- listboxId: v,
1675
+ listboxId: $,
1667
1676
  highlightedId: g,
1668
1677
  setHighlightedId: u,
1669
- registerItem: B,
1678
+ registerItem: C,
1670
1679
  triggerRef: p
1671
- }), [i, h, $, o, x, d, b, v, g, u, B]),
1672
- rootRef: S
1680
+ }), [i, h, v, o, l, d, b, $, g, u, C]),
1681
+ rootRef: M
1673
1682
  };
1674
1683
  }
1675
- function Gt({
1684
+ function Lt({
1676
1685
  name: e,
1677
1686
  defaultValue: t,
1678
1687
  value: n,
1679
- onValueChange: r,
1688
+ onValueChange: s,
1680
1689
  initialLabels: o,
1681
- children: x
1690
+ children: l
1682
1691
  }) {
1683
1692
  const {
1684
1693
  ctx: i,
1685
1694
  rootRef: c
1686
- } = Ht({
1695
+ } = Gt({
1687
1696
  defaultValue: t,
1688
1697
  value: n,
1689
- onValueChange: r,
1698
+ onValueChange: s,
1690
1699
  initialLabels: o
1691
1700
  });
1692
- return /* @__PURE__ */ s(Ae.Provider, { value: i, children: /* @__PURE__ */ z("div", { ref: c, ...l(k.div, Y.root), children: [
1693
- e && /* @__PURE__ */ s("input", { type: "hidden", name: e, value: i.value ?? "", dir: "auto", ...l(k.input) }),
1694
- x
1701
+ return /* @__PURE__ */ r(Ae.Provider, { value: i, children: /* @__PURE__ */ z("div", { ref: c, ...x(a.div, Y.root), children: [
1702
+ e && /* @__PURE__ */ r("input", { type: "hidden", name: e, value: i.value ?? "", dir: "auto", ...x(a.input) }),
1703
+ l
1695
1704
  ] }) });
1696
1705
  }
1697
1706
  function Tt({
@@ -1700,13 +1709,13 @@ function Tt({
1700
1709
  const {
1701
1710
  open: t,
1702
1711
  toggle: n,
1703
- listboxId: r,
1712
+ listboxId: s,
1704
1713
  highlightedId: o,
1705
- triggerRef: x
1706
- } = de(), i = w(null);
1714
+ triggerRef: l
1715
+ } = ue(), i = w(null);
1707
1716
  return H(() => {
1708
- x.current = i.current;
1709
- }), /* @__PURE__ */ s("button", { ref: i, type: "button", role: "combobox", onClick: n, "aria-expanded": t, "aria-haspopup": "listbox", "aria-controls": t ? r : void 0, "aria-activedescendant": o ?? void 0, ...l(k.button, Y.trigger), children: e });
1717
+ l.current = i.current;
1718
+ }), /* @__PURE__ */ r("button", { ref: i, type: "button", role: "combobox", onClick: n, "aria-expanded": t, "aria-haspopup": "listbox", "aria-controls": t ? s : void 0, "aria-activedescendant": o ?? void 0, ...x(a.button, Y.trigger), children: e });
1710
1719
  }
1711
1720
  function Et({
1712
1721
  placeholder: e
@@ -1714,66 +1723,66 @@ function Et({
1714
1723
  const {
1715
1724
  value: t,
1716
1725
  labels: n
1717
- } = de(), r = t ? n[t] ?? t : null;
1718
- return /* @__PURE__ */ s("span", { ...l(k.span, r ? Y.value : Y.placeholder), children: r ?? e });
1726
+ } = ue(), s = t ? n[t] ?? t : null;
1727
+ return /* @__PURE__ */ r("span", { ...x(a.span, s ? Y.value : Y.placeholder), children: s ?? e });
1719
1728
  }
1720
- function Lt({
1729
+ function Vt({
1721
1730
  children: e
1722
1731
  }) {
1723
- return /* @__PURE__ */ s("span", { ...l(k.span, Y.icon), children: e ?? /* @__PURE__ */ s("svg", { width: "12", height: "12", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round", "aria-hidden": "true", children: /* @__PURE__ */ s("path", { d: "M6 9l6 6 6-6" }) }) });
1732
+ return /* @__PURE__ */ r("span", { ...x(a.span, Y.icon), children: e ?? /* @__PURE__ */ r("svg", { width: "12", height: "12", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round", "aria-hidden": "true", children: /* @__PURE__ */ r("path", { d: "M6 9l6 6 6-6" }) }) });
1724
1733
  }
1725
- function Vt({
1734
+ function At({
1726
1735
  children: e
1727
1736
  }) {
1728
1737
  const {
1729
1738
  open: t,
1730
1739
  close: n,
1731
- listboxId: r
1732
- } = de();
1733
- return /* @__PURE__ */ z(D, { children: [
1734
- t && /* @__PURE__ */ s("div", { ...l(k.div, Y.backdrop), onClick: n }),
1735
- /* @__PURE__ */ s("div", { id: r, role: "listbox", "aria-hidden": !t, ...l(k.div, Y.popup, !t && Y.hidden), children: e })
1740
+ listboxId: s
1741
+ } = ue();
1742
+ return /* @__PURE__ */ z(B, { children: [
1743
+ t && /* @__PURE__ */ r("div", { ...x(a.div, Y.backdrop), onClick: n }),
1744
+ /* @__PURE__ */ r("div", { id: s, role: "listbox", "aria-hidden": !t, ...x(a.div, Y.popup, !t && Y.hidden), children: e })
1736
1745
  ] });
1737
1746
  }
1738
- function At({
1747
+ function Nt({
1739
1748
  value: e,
1740
1749
  children: t
1741
1750
  }) {
1742
1751
  const {
1743
1752
  value: n,
1744
- setValue: r,
1753
+ setValue: s,
1745
1754
  close: o,
1746
- registerLabel: x,
1755
+ registerLabel: l,
1747
1756
  highlightedId: i,
1748
1757
  setHighlightedId: c,
1749
1758
  registerItem: d
1750
- } = de(), a = _(), g = w(null), u = n === e, v = i === a;
1759
+ } = ue(), k = _(), g = w(null), u = n === e, $ = i === k;
1751
1760
  return H(() => {
1752
1761
  const p = g.current;
1753
1762
  if (!p) return;
1754
1763
  const m = p.textContent;
1755
- m && x(e, m);
1756
- }, [e, x]), H(() => {
1764
+ m && l(e, m);
1765
+ }, [e, l]), H(() => {
1757
1766
  const p = g.current;
1758
1767
  if (p)
1759
- return d(a, e, p);
1760
- }, [a, e, d]), /* @__PURE__ */ s("div", { ref: g, id: a, role: "option", "aria-selected": u, onClick: () => {
1761
- r(e), o();
1762
- }, onPointerEnter: () => c(a), ...l(k.div, Y.item, u && Y.itemSelected, v && Y.itemHighlighted), children: t });
1768
+ return d(k, e, p);
1769
+ }, [k, e, d]), /* @__PURE__ */ r("div", { ref: g, id: k, role: "option", "aria-selected": u, onClick: () => {
1770
+ s(e), o();
1771
+ }, onPointerEnter: () => c(k), ...x(a.div, Y.item, u && Y.itemSelected, $ && Y.itemHighlighted), children: t });
1763
1772
  }
1764
- function Nt({
1773
+ function Ot({
1765
1774
  children: e
1766
1775
  }) {
1767
- return /* @__PURE__ */ s("span", { ...l(k.span), children: e });
1776
+ return /* @__PURE__ */ r("span", { ...x(a.span), children: e });
1768
1777
  }
1769
- const On = {
1770
- Root: Gt,
1778
+ const Cn = {
1779
+ Root: Lt,
1771
1780
  Trigger: Tt,
1772
1781
  Value: Et,
1773
- Icon: Lt,
1774
- Popup: Vt,
1775
- Item: At,
1776
- ItemText: Nt
1782
+ Icon: Vt,
1783
+ Popup: At,
1784
+ Item: Nt,
1785
+ ItemText: Ot
1777
1786
  }, U = {
1778
1787
  root: {
1779
1788
  k1xSpc: "x78zum5",
@@ -1859,56 +1868,56 @@ function Oe() {
1859
1868
  if (!e) throw new Error("SideNav compound components must be used within SideNav.Root");
1860
1869
  return e;
1861
1870
  }
1862
- function Ot({
1871
+ function Ct({
1863
1872
  children: e,
1864
1873
  value: t,
1865
1874
  defaultValue: n,
1866
- onValueChange: r
1875
+ onValueChange: s
1867
1876
  }) {
1868
- const [o, x] = be(t, n ?? null, r ? (u) => {
1869
- u !== null && r(u);
1870
- } : void 0), [i, c] = G(/* @__PURE__ */ new Set()), d = w([]), a = W((u) => {
1871
- c((v) => {
1872
- const S = new Set(v);
1873
- return S.has(u) ? S.delete(u) : S.add(u), S;
1877
+ const [o, l] = be(t, n ?? null, s ? (u) => {
1878
+ u !== null && s(u);
1879
+ } : void 0), [i, c] = G(/* @__PURE__ */ new Set()), d = w([]), k = W((u) => {
1880
+ c(($) => {
1881
+ const M = new Set($);
1882
+ return M.has(u) ? M.delete(u) : M.add(u), M;
1874
1883
  });
1875
1884
  }, []), g = W((u) => (d.current.includes(u) || d.current.push(u), () => {
1876
- d.current = d.current.filter((v) => v !== u);
1885
+ d.current = d.current.filter(($) => $ !== u);
1877
1886
  }), []);
1878
1887
  return H(() => {
1879
1888
  o && c((u) => u);
1880
- }, [o]), /* @__PURE__ */ s(Ne.Provider, { value: {
1889
+ }, [o]), /* @__PURE__ */ r(Ne.Provider, { value: {
1881
1890
  activeValue: o,
1882
- onSelect: x,
1891
+ onSelect: l,
1883
1892
  expandedGroups: i,
1884
- toggleGroup: a,
1893
+ toggleGroup: k,
1885
1894
  registerItem: g,
1886
1895
  orderRef: d
1887
- }, children: /* @__PURE__ */ s("nav", { role: "navigation", ...l(k.nav, U.root), children: e }) });
1896
+ }, children: /* @__PURE__ */ r("nav", { role: "navigation", ...x(a.nav, U.root), children: e }) });
1888
1897
  }
1889
1898
  function Bt({
1890
1899
  children: e,
1891
1900
  label: t,
1892
1901
  groupKey: n,
1893
- defaultExpanded: r
1902
+ defaultExpanded: s
1894
1903
  }) {
1895
1904
  const o = n ?? t, {
1896
- expandedGroups: x,
1905
+ expandedGroups: l,
1897
1906
  toggleGroup: i,
1898
1907
  activeValue: c
1899
- } = Oe(), d = x.has(o), a = w(null);
1908
+ } = Oe(), d = l.has(o), k = w(null);
1900
1909
  H(() => {
1901
- if (!c || x.has(o)) return;
1902
- const u = a.current;
1910
+ if (!c || l.has(o)) return;
1911
+ const u = k.current;
1903
1912
  if (!u) return;
1904
1913
  u.querySelector(`[data-nav-value="${c}"]`) && i(o);
1905
- }, [c, o, x, i]), H(() => {
1906
- r && !x.has(o) && i(o);
1914
+ }, [c, o, l, i]), H(() => {
1915
+ s && !l.has(o) && i(o);
1907
1916
  }, []);
1908
- const g = !c || !a.current ? !1 : !!a.current.querySelector(`[data-nav-value="${c}"]`);
1909
- return /* @__PURE__ */ z("div", { ref: a, ...l(k.div, U.group), children: [
1910
- /* @__PURE__ */ z("button", { type: "button", onClick: () => i(o), ...l(k.button, U.groupTrigger, g && U.groupTriggerActive), "aria-expanded": d, children: [
1911
- /* @__PURE__ */ s("span", { ...l(k.span, U.chevron, d && U.chevronOpen), children: /* @__PURE__ */ s("svg", { width: 10, height: 10, viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: 2.5, strokeLinecap: "round", strokeLinejoin: "round", children: /* @__PURE__ */ s("path", { d: "M9 18l6-6-6-6" }) }) }),
1917
+ const g = !c || !k.current ? !1 : !!k.current.querySelector(`[data-nav-value="${c}"]`);
1918
+ return /* @__PURE__ */ z("div", { ref: k, ...x(a.div, U.group), children: [
1919
+ /* @__PURE__ */ z("button", { type: "button", onClick: () => i(o), ...x(a.button, U.groupTrigger, g && U.groupTriggerActive), "aria-expanded": d, children: [
1920
+ /* @__PURE__ */ r("span", { ...x(a.span, U.chevron, d && U.chevronOpen), children: /* @__PURE__ */ r("svg", { width: 10, height: 10, viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: 2.5, strokeLinecap: "round", strokeLinejoin: "round", children: /* @__PURE__ */ r("path", { d: "M9 18l6-6-6-6" }) }) }),
1912
1921
  t
1913
1922
  ] }),
1914
1923
  d && e
@@ -1920,13 +1929,13 @@ function Dt({
1920
1929
  }) {
1921
1930
  const {
1922
1931
  activeValue: n,
1923
- onSelect: r,
1932
+ onSelect: s,
1924
1933
  registerItem: o
1925
- } = Oe(), x = n === e;
1926
- return H(() => o(e), [e, o]), /* @__PURE__ */ s("button", { type: "button", "data-nav-value": e, onClick: () => r(e), ...l(k.button, U.item, x && U.itemActive), "aria-current": x ? "page" : void 0, children: t });
1934
+ } = Oe(), l = n === e;
1935
+ return H(() => o(e), [e, o]), /* @__PURE__ */ r("button", { type: "button", "data-nav-value": e, onClick: () => s(e), ...x(a.button, U.item, l && U.itemActive), "aria-current": l ? "page" : void 0, children: t });
1927
1936
  }
1928
1937
  const Bn = {
1929
- Root: Ot,
1938
+ Root: Ct,
1930
1939
  Group: Bt,
1931
1940
  Item: Dt
1932
1941
  }, se = {
@@ -1973,7 +1982,7 @@ const Bn = {
1973
1982
  kMcinP: "xzpqnlu",
1974
1983
  $$css: !0
1975
1984
  }
1976
- }, Ct = {
1985
+ }, Rt = {
1977
1986
  sm: se.sm,
1978
1987
  md: se.md,
1979
1988
  lg: se.lg
@@ -1982,9 +1991,9 @@ function Dn({
1982
1991
  size: e = "md",
1983
1992
  label: t = "Loading"
1984
1993
  }) {
1985
- return /* @__PURE__ */ z("div", { role: "status", ...l(k.div, se.root), children: [
1986
- /* @__PURE__ */ s("div", { ...l(k.div, se.spinner, Ct[e]), "aria-hidden": !0 }),
1987
- /* @__PURE__ */ s("span", { ...l(k.span, se.srOnly), children: t })
1994
+ return /* @__PURE__ */ z("div", { role: "status", ...x(a.div, se.root), children: [
1995
+ /* @__PURE__ */ r("div", { ...x(a.div, se.spinner, Rt[e]), "aria-hidden": !0 }),
1996
+ /* @__PURE__ */ r("span", { ...x(a.span, se.srOnly), children: t })
1988
1997
  ] });
1989
1998
  }
1990
1999
  const ze = {
@@ -2016,14 +2025,14 @@ const ze = {
2016
2025
  $$css: !0
2017
2026
  }
2018
2027
  };
2019
- function Cn({
2028
+ function Rn({
2020
2029
  name: e,
2021
2030
  size: t = 48,
2022
2031
  variant: n = "muted"
2023
2032
  }) {
2024
- return /* @__PURE__ */ s("div", { ...l(k.div, ze.root, ze[n]), children: /* @__PURE__ */ s($e, { name: e, size: t }) });
2033
+ return /* @__PURE__ */ r("div", { ...x(a.div, ze.root, ze[n]), children: /* @__PURE__ */ r(ve, { name: e, size: t }) });
2025
2034
  }
2026
- const Rt = {
2035
+ const Xt = {
2027
2036
  kumcoG: "xqketvx",
2028
2037
  $$css: !0
2029
2038
  }, V = {
@@ -2102,51 +2111,51 @@ const Rt = {
2102
2111
  kWqL5O: "xgfja2r",
2103
2112
  $$css: !0
2104
2113
  },
2105
- gridColumns: (e) => [Rt, {
2114
+ gridColumns: (e) => [Xt, {
2106
2115
  "--x-gridTemplateColumns": `repeat(${e}, 1fr)` != null ? `repeat(${e}, 1fr)` : void 0
2107
2116
  }]
2108
- }, Be = R(null);
2109
- function ge() {
2110
- const e = O(Be);
2117
+ }, Ce = R(null);
2118
+ function de() {
2119
+ const e = O(Ce);
2111
2120
  if (!e) throw new Error("Table compound components must be used within Table.Root");
2112
2121
  return e;
2113
2122
  }
2114
2123
  const ye = R(!1);
2115
- function Xt({
2124
+ function Yt({
2116
2125
  children: e,
2117
2126
  variant: t = "default",
2118
2127
  size: n = "md",
2119
- columns: r
2128
+ columns: s
2120
2129
  }) {
2121
- return /* @__PURE__ */ s(Be.Provider, { value: {
2130
+ return /* @__PURE__ */ r(Ce.Provider, { value: {
2122
2131
  variant: t,
2123
2132
  size: n,
2124
- columns: r,
2133
+ columns: s,
2125
2134
  isHeader: !1
2126
- }, children: /* @__PURE__ */ s("div", { role: "table", ...l(k.div, V.root), children: e }) });
2135
+ }, children: /* @__PURE__ */ r("div", { role: "table", ...x(a.div, V.root), children: e }) });
2127
2136
  }
2128
- function Yt({
2137
+ function Jt({
2129
2138
  children: e
2130
2139
  }) {
2131
- return /* @__PURE__ */ s(ye.Provider, { value: !0, children: /* @__PURE__ */ s("div", { role: "rowgroup", ...l(k.div, V.header), children: e }) });
2140
+ return /* @__PURE__ */ r(ye.Provider, { value: !0, children: /* @__PURE__ */ r("div", { role: "rowgroup", ...x(a.div, V.header), children: e }) });
2132
2141
  }
2133
- function Jt({
2142
+ function Pt({
2134
2143
  children: e
2135
2144
  }) {
2136
2145
  const {
2137
2146
  variant: t
2138
- } = ge(), n = qe.toArray(e);
2139
- return /* @__PURE__ */ s(ye.Provider, { value: !1, children: /* @__PURE__ */ s("div", { role: "rowgroup", ...l(k.div), children: n.map((r, o) => t === "striped" ? /* @__PURE__ */ s(De.Provider, { value: o, children: r }, o) : r) }) });
2147
+ } = de(), n = qe.toArray(e);
2148
+ return /* @__PURE__ */ r(ye.Provider, { value: !1, children: /* @__PURE__ */ r("div", { role: "rowgroup", ...x(a.div), children: n.map((s, o) => t === "striped" ? /* @__PURE__ */ r(Be.Provider, { value: o, children: s }, o) : s) }) });
2140
2149
  }
2141
- const De = R(-1);
2142
- function Pt({
2150
+ const Be = R(-1);
2151
+ function Ft({
2143
2152
  children: e
2144
2153
  }) {
2145
2154
  const {
2146
2155
  variant: t,
2147
2156
  columns: n
2148
- } = ge(), r = O(ye), o = O(De), x = o >= 0 && o % 2 === 1, i = qe.toArray(e);
2149
- return /* @__PURE__ */ s("div", { role: "row", ...l(k.div, V.row, V.gridColumns(n), !r && V.bodyRow, !r && t === "striped" && x && V.stripedEven), children: t === "bordered" ? i.map((c, d) => /* @__PURE__ */ s(we.Provider, { value: {
2157
+ } = de(), s = O(ye), o = O(Be), l = o >= 0 && o % 2 === 1, i = qe.toArray(e);
2158
+ return /* @__PURE__ */ r("div", { role: "row", ...x(a.div, V.row, V.gridColumns(n), !s && V.bodyRow, !s && t === "striped" && l && V.stripedEven), children: t === "bordered" ? i.map((c, d) => /* @__PURE__ */ r(we.Provider, { value: {
2150
2159
  index: d,
2151
2160
  total: i.length
2152
2161
  }, children: c }, d)) : e });
@@ -2155,37 +2164,37 @@ const we = R({
2155
2164
  index: 0,
2156
2165
  total: 0
2157
2166
  });
2158
- function Ft({
2167
+ function Qt({
2159
2168
  children: e
2160
2169
  }) {
2161
2170
  const {
2162
2171
  size: t,
2163
2172
  variant: n
2164
- } = ge(), {
2165
- index: r,
2173
+ } = de(), {
2174
+ index: s,
2166
2175
  total: o
2167
- } = O(we), x = n === "bordered" && r === o - 1;
2168
- return /* @__PURE__ */ s("div", { role: "columnheader", ...l(k.div, V.headerCell, t === "sm" ? V.cellSm : V.cellMd, n === "bordered" && V.borderedCell, x && V.borderedCellLast), children: e });
2176
+ } = O(we), l = n === "bordered" && s === o - 1;
2177
+ return /* @__PURE__ */ r("div", { role: "columnheader", ...x(a.div, V.headerCell, t === "sm" ? V.cellSm : V.cellMd, n === "bordered" && V.borderedCell, l && V.borderedCellLast), children: e });
2169
2178
  }
2170
- function Qt({
2179
+ function Kt({
2171
2180
  children: e
2172
2181
  }) {
2173
2182
  const {
2174
2183
  size: t,
2175
2184
  variant: n
2176
- } = ge(), {
2177
- index: r,
2185
+ } = de(), {
2186
+ index: s,
2178
2187
  total: o
2179
- } = O(we), x = n === "bordered" && r === o - 1;
2180
- return /* @__PURE__ */ s("div", { role: "cell", ...l(k.div, V.cell, t === "sm" ? V.cellSm : V.cellMd, n === "bordered" && V.borderedCell, x && V.borderedCellLast), children: e });
2181
- }
2182
- const Rn = {
2183
- Root: Xt,
2184
- Header: Yt,
2185
- Body: Jt,
2186
- Row: Pt,
2187
- HeaderCell: Ft,
2188
- Cell: Qt
2188
+ } = O(we), l = n === "bordered" && s === o - 1;
2189
+ return /* @__PURE__ */ r("div", { role: "cell", ...x(a.div, V.cell, t === "sm" ? V.cellSm : V.cellMd, n === "bordered" && V.borderedCell, l && V.borderedCellLast), children: e });
2190
+ }
2191
+ const Xn = {
2192
+ Root: Yt,
2193
+ Header: Jt,
2194
+ Body: Pt,
2195
+ Row: Ft,
2196
+ HeaderCell: Qt,
2197
+ Cell: Kt
2189
2198
  }, X = {
2190
2199
  root: {
2191
2200
  k1xSpc: "x78zum5",
@@ -2274,71 +2283,71 @@ const Rn = {
2274
2283
  kE3dHu: "x107tsa6",
2275
2284
  $$css: !0
2276
2285
  }
2277
- }, Ce = R(null);
2278
- function Se() {
2279
- const e = O(Ce);
2286
+ }, De = R(null);
2287
+ function Me() {
2288
+ const e = O(De);
2280
2289
  if (!e) throw new Error("Tabs compound components must be used within Tabs.Root");
2281
2290
  return e;
2282
2291
  }
2283
- function Kt({
2292
+ function Ut({
2284
2293
  value: e,
2285
2294
  defaultValue: t,
2286
2295
  onValueChange: n,
2287
- orientation: r = "horizontal"
2296
+ orientation: s = "horizontal"
2288
2297
  }) {
2289
- const [o, x] = be(e, t ?? null, n ? (a) => {
2290
- a !== null && n(a);
2291
- } : void 0), i = w(/* @__PURE__ */ new Map()), c = w([]), d = W((a, g) => (i.current.set(a, g), c.current.includes(a) || c.current.push(a), () => {
2292
- i.current.delete(a), c.current = c.current.filter((u) => u !== a);
2298
+ const [o, l] = be(e, t ?? null, n ? (k) => {
2299
+ k !== null && n(k);
2300
+ } : void 0), i = w(/* @__PURE__ */ new Map()), c = w([]), d = W((k, g) => (i.current.set(k, g), c.current.includes(k) || c.current.push(k), () => {
2301
+ i.current.delete(k), c.current = c.current.filter((u) => u !== k);
2293
2302
  }), []);
2294
2303
  return {
2295
2304
  activeValue: o,
2296
- onSelect: x,
2297
- orientation: r,
2305
+ onSelect: l,
2306
+ orientation: s,
2298
2307
  registerTab: d,
2299
2308
  tabsRef: i,
2300
2309
  orderRef: c
2301
2310
  };
2302
2311
  }
2303
- function Ut({
2312
+ function _t({
2304
2313
  children: e,
2305
2314
  value: t,
2306
2315
  defaultValue: n,
2307
- onValueChange: r,
2316
+ onValueChange: s,
2308
2317
  orientation: o = "horizontal"
2309
2318
  }) {
2310
- const x = Kt({
2319
+ const l = Ut({
2311
2320
  value: t,
2312
2321
  defaultValue: n,
2313
- onValueChange: r,
2322
+ onValueChange: s,
2314
2323
  orientation: o
2315
2324
  });
2316
- return /* @__PURE__ */ s(Ce.Provider, { value: x, children: /* @__PURE__ */ s("div", { ...l(k.div, X.root, o === "vertical" && X.rootVertical), children: e }) });
2325
+ return /* @__PURE__ */ r(De.Provider, { value: l, children: /* @__PURE__ */ r("div", { ...x(a.div, X.root, o === "vertical" && X.rootVertical), children: e }) });
2317
2326
  }
2318
- function _t({
2327
+ function Zt({
2319
2328
  children: e
2320
2329
  }) {
2321
2330
  const {
2322
2331
  orientation: t,
2323
2332
  activeValue: n,
2324
- onSelect: r,
2333
+ onSelect: s,
2325
2334
  tabsRef: o,
2326
- orderRef: x
2327
- } = Se(), i = w(null);
2335
+ orderRef: l
2336
+ } = Me(), i = w(null);
2328
2337
  return H(() => {
2329
2338
  const c = i.current;
2330
2339
  if (!c) return;
2331
- function d(a) {
2332
- const g = x.current, u = o.current;
2340
+ function d(k) {
2341
+ const g = l.current, u = o.current;
2333
2342
  if (g.length === 0) return;
2334
- const v = this, S = t === "horizontal" ? "ArrowLeft" : "ArrowUp", p = t === "horizontal" ? "ArrowRight" : "ArrowDown";
2343
+ const $ = this, M = t === "horizontal" ? "ArrowLeft" : "ArrowUp", p = t === "horizontal" ? "ArrowRight" : "ArrowDown";
2335
2344
  let m = null;
2336
- switch (a.key) {
2345
+ switch (k.key) {
2337
2346
  case p: {
2338
- a.preventDefault();
2347
+ k.preventDefault();
2339
2348
  const f = n ? g.indexOf(n) : -1;
2340
- for (let $ = 1; $ <= g.length; $++) {
2341
- const h = (f + $) % g.length, b = g[h];
2349
+ for (let v = 1; v <= g.length; v++) {
2350
+ const h = (f + v) % g.length, b = g[h];
2342
2351
  if (!u.get(b)) {
2343
2352
  m = b;
2344
2353
  break;
@@ -2346,11 +2355,11 @@ function _t({
2346
2355
  }
2347
2356
  break;
2348
2357
  }
2349
- case S: {
2350
- a.preventDefault();
2358
+ case M: {
2359
+ k.preventDefault();
2351
2360
  const f = n ? g.indexOf(n) : 0;
2352
- for (let $ = 1; $ <= g.length; $++) {
2353
- const h = (f - $ + g.length) % g.length, b = g[h];
2361
+ for (let v = 1; v <= g.length; v++) {
2362
+ const h = (f - v + g.length) % g.length, b = g[h];
2354
2363
  if (!u.get(b)) {
2355
2364
  m = b;
2356
2365
  break;
@@ -2359,7 +2368,7 @@ function _t({
2359
2368
  break;
2360
2369
  }
2361
2370
  case "Home": {
2362
- a.preventDefault();
2371
+ k.preventDefault();
2363
2372
  for (const f of g)
2364
2373
  if (!u.get(f)) {
2365
2374
  m = f;
@@ -2368,7 +2377,7 @@ function _t({
2368
2377
  break;
2369
2378
  }
2370
2379
  case "End": {
2371
- a.preventDefault();
2380
+ k.preventDefault();
2372
2381
  for (let f = g.length - 1; f >= 0; f--)
2373
2382
  if (!u.get(g[f])) {
2374
2383
  m = g[f];
@@ -2377,41 +2386,41 @@ function _t({
2377
2386
  break;
2378
2387
  }
2379
2388
  }
2380
- m && (r(m), v.querySelector(`[data-tab-value="${m}"]`)?.focus());
2389
+ m && (s(m), $.querySelector(`[data-tab-value="${m}"]`)?.focus());
2381
2390
  }
2382
2391
  return c.addEventListener("keydown", d), () => c.removeEventListener("keydown", d);
2383
- }, [t, n, r, o, x]), /* @__PURE__ */ s("div", { ref: i, role: "tablist", "aria-orientation": t, ...l(k.div, X.list, t === "vertical" && X.listVertical), children: e });
2392
+ }, [t, n, s, o, l]), /* @__PURE__ */ r("div", { ref: i, role: "tablist", "aria-orientation": t, ...x(a.div, X.list, t === "vertical" && X.listVertical), children: e });
2384
2393
  }
2385
- function Zt({
2394
+ function en({
2386
2395
  value: e,
2387
2396
  disabled: t = !1,
2388
2397
  children: n
2389
2398
  }) {
2390
2399
  const {
2391
- activeValue: r,
2400
+ activeValue: s,
2392
2401
  onSelect: o,
2393
- orientation: x,
2402
+ orientation: l,
2394
2403
  registerTab: i
2395
- } = Se(), c = r === e, d = _(), a = `${d}-panel`;
2396
- return H(() => i(e, t), [e, t, i]), /* @__PURE__ */ s("button", { type: "button", role: "tab", id: d, "aria-selected": c, "aria-controls": a, "aria-disabled": t || void 0, "data-tab-value": e, tabIndex: c ? 0 : -1, onClick: () => {
2404
+ } = Me(), c = s === e, d = _(), k = `${d}-panel`;
2405
+ return H(() => i(e, t), [e, t, i]), /* @__PURE__ */ r("button", { type: "button", role: "tab", id: d, "aria-selected": c, "aria-controls": k, "aria-disabled": t || void 0, "data-tab-value": e, tabIndex: c ? 0 : -1, onClick: () => {
2397
2406
  t || o(e);
2398
- }, ...l(k.button, X.tab, x === "vertical" && X.tabVertical, c && (x === "vertical" ? X.tabActiveVertical : X.tabActiveHorizontal), t && X.tabDisabled), children: n });
2407
+ }, ...x(a.button, X.tab, l === "vertical" && X.tabVertical, c && (l === "vertical" ? X.tabActiveVertical : X.tabActiveHorizontal), t && X.tabDisabled), children: n });
2399
2408
  }
2400
- function en({
2409
+ function tn({
2401
2410
  value: e,
2402
2411
  children: t
2403
2412
  }) {
2404
2413
  const {
2405
2414
  activeValue: n,
2406
- orientation: r
2407
- } = Se();
2408
- return n !== e ? null : /* @__PURE__ */ s("div", { role: "tabpanel", ...l(k.div, X.panel, r === "vertical" && X.panelVertical), children: t });
2409
- }
2410
- const Xn = {
2411
- Root: Ut,
2412
- List: _t,
2413
- Tab: Zt,
2414
- Panel: en
2415
+ orientation: s
2416
+ } = Me();
2417
+ return n !== e ? null : /* @__PURE__ */ r("div", { role: "tabpanel", ...x(a.div, X.panel, s === "vertical" && X.panelVertical), children: t });
2418
+ }
2419
+ const Yn = {
2420
+ Root: _t,
2421
+ List: Zt,
2422
+ Tab: en,
2423
+ Panel: tn
2415
2424
  }, Ie = {
2416
2425
  base: {
2417
2426
  kzqmXN: "xh8yej3",
@@ -2446,21 +2455,21 @@ const Xn = {
2446
2455
  $$css: !0
2447
2456
  }
2448
2457
  };
2449
- function Yn({
2458
+ function Jn({
2450
2459
  variant: e = "default",
2451
2460
  name: t,
2452
2461
  placeholder: n,
2453
- required: r,
2462
+ required: s,
2454
2463
  rows: o = 3,
2455
- value: x,
2464
+ value: l,
2456
2465
  defaultValue: i,
2457
2466
  disabled: c,
2458
2467
  onChange: d
2459
2468
  }) {
2460
- const a = ie();
2461
- return /* @__PURE__ */ s("textarea", { id: a?.controlId, name: t, placeholder: n, required: r, rows: o, value: x, defaultValue: i, disabled: c, "aria-describedby": a ? `${a.descriptionId} ${a.invalid ? a.errorId : ""}`.trim() : void 0, "aria-invalid": a?.invalid || e === "error" || void 0, onChange: d, ...l(k.textarea, Ie.base, Ie[e]), dir: "auto" });
2469
+ const k = ie();
2470
+ return /* @__PURE__ */ r("textarea", { id: k?.controlId, name: t, placeholder: n, required: s, rows: o, value: l, defaultValue: i, disabled: c, "aria-describedby": k ? `${k.descriptionId} ${k.invalid ? k.errorId : ""}`.trim() : void 0, "aria-invalid": k?.invalid || e === "error" || void 0, onChange: d, ...x(a.textarea, Ie.base, Ie[e]), dir: "auto" });
2462
2471
  }
2463
- const Jn = {
2472
+ const Pn = {
2464
2473
  bg: "var(--bg-xqkwqtp)",
2465
2474
  bgCard: "var(--bgCard-xj2l5r)",
2466
2475
  bgCardHover: "var(--bgCardHover-xlxk7vw)",
@@ -2489,7 +2498,7 @@ const Jn = {
2489
2498
  infoBorder: "var(--infoBorder-xnevk3x)",
2490
2499
  infoText: "var(--infoText-x19pseus)",
2491
2500
  __varGroupHash__: "xjvd03b"
2492
- }, Pn = {
2501
+ }, Fn = {
2493
2502
  xs: "var(--xs-xxfyjsd)",
2494
2503
  sm: "var(--sm-xbh8y7f)",
2495
2504
  ms: "var(--ms-x13y09zs)",
@@ -2499,13 +2508,13 @@ const Jn = {
2499
2508
  xxl: "var(--xxl-xbe9eha)",
2500
2509
  xxxl: "var(--xxxl-xroalp5)",
2501
2510
  __varGroupHash__: "x6uc9q"
2502
- }, Fn = {
2511
+ }, Qn = {
2503
2512
  sm: "var(--sm-x1bhtfs5)",
2504
2513
  md: "var(--md-xx2g89g)",
2505
2514
  lg: "var(--lg-xwd56yl)",
2506
2515
  full: "var(--full-x9vxdtd)",
2507
2516
  __varGroupHash__: "xw3ffwm"
2508
- }, Qn = {
2517
+ }, Kn = {
2509
2518
  stackXs: "var(--stackXs-x1qfrfo2)",
2510
2519
  stackSm: "var(--stackSm-x2rk1ut)",
2511
2520
  stackMd: "var(--stackMd-xhblkt4)",
@@ -2519,7 +2528,7 @@ const Jn = {
2519
2528
  containerMd: "var(--containerMd-x170dvin)",
2520
2529
  containerLg: "var(--containerLg-x1n6aasq)",
2521
2530
  __varGroupHash__: "x16nfoyr"
2522
- }, Kn = {
2531
+ }, Un = {
2523
2532
  fontFamily: "var(--fontFamily-xvrmnat)",
2524
2533
  fontFamilyMono: "var(--fontFamilyMono-x1bzqfky)",
2525
2534
  fontSizeXs: "var(--fontSizeXs-x1w5m325)",
@@ -2534,7 +2543,7 @@ const Jn = {
2534
2543
  fontWeightBold: "var(--fontWeightBold-x1pjkvwg)",
2535
2544
  lineHeight: "var(--lineHeight-x1gubzd5)",
2536
2545
  __varGroupHash__: "xs62swl"
2537
- }, Un = {
2546
+ }, _n = {
2538
2547
  fontSize1: "var(--fontSize1-xx27tux)",
2539
2548
  fontSize2: "var(--fontSize2-x5hag8h)",
2540
2549
  fontSize3: "var(--fontSize3-x1mf6j39)",
@@ -2560,7 +2569,7 @@ const Jn = {
2560
2569
  letterSpacingNormal: "var(--letterSpacingNormal-x1ih41v1)",
2561
2570
  letterSpacingWide: "var(--letterSpacingWide-xt8z9rj)",
2562
2571
  __varGroupHash__: "x4cj49w"
2563
- }, _n = {
2572
+ }, Zn = {
2564
2573
  bodySm: {
2565
2574
  "fontFamily-kMv6JI": "fontFamily-xce2pww",
2566
2575
  "fontSize-kGuDYH": "fontSize-x1hn3ytp",
@@ -2674,38 +2683,38 @@ const Jn = {
2674
2683
  "letterSpacing-kb6lSQ": "letterSpacing-xql2p2a",
2675
2684
  $$css: "tokens/type-presets.css.ts:104"
2676
2685
  }
2677
- }, Zn = {
2686
+ }, er = {
2678
2687
  sm: "var(--sm-x17hhtln)",
2679
2688
  md: "var(--md-x1oyt0aw)",
2680
2689
  lg: "var(--lg-x1mxd62i)",
2681
2690
  __varGroupHash__: "x13v825q"
2682
- }, tn = {
2691
+ }, nn = {
2683
2692
  xjvd03b: "xrtwk39 xjvd03b",
2684
2693
  $$css: !0
2685
- }, nn = {
2694
+ }, rn = {
2686
2695
  x13v825q: "xv9ibj0 x13v825q",
2687
2696
  $$css: !0
2688
- }, rn = {
2697
+ }, sn = {
2689
2698
  xjvd03b: "xaveibd xjvd03b",
2690
2699
  $$css: !0
2691
- }, sn = {
2700
+ }, on = {
2692
2701
  x13v825q: "x15e39jv x13v825q",
2693
2702
  $$css: !0
2694
- }, on = {
2695
- light: [tn, nn],
2696
- "high-contrast": [rn, sn]
2697
2703
  }, cn = {
2704
+ light: [nn, rn],
2705
+ "high-contrast": [sn, on]
2706
+ }, ln = {
2698
2707
  root: {
2699
2708
  k1xSpc: "xjp7ctv",
2700
2709
  $$css: !0
2701
2710
  }
2702
2711
  };
2703
- function er({
2712
+ function tr({
2704
2713
  theme: e = "dark",
2705
2714
  children: t
2706
2715
  }) {
2707
- const n = on[e], r = [n?.[0], n?.[1], cn.root];
2708
- return /* @__PURE__ */ s("div", { ...l(k.div, r), children: t });
2716
+ const n = cn[e], s = [n?.[0], n?.[1], ln.root];
2717
+ return /* @__PURE__ */ r("div", { ...x(a.div, s), children: t });
2709
2718
  }
2710
2719
  const F = {
2711
2720
  default: {
@@ -2771,22 +2780,22 @@ const F = {
2771
2780
  medium: F.weightMedium,
2772
2781
  semibold: F.weightSemibold,
2773
2782
  bold: F.weightBold
2774
- }, ln = {
2783
+ }, an = {
2775
2784
  start: F.alignStart,
2776
2785
  center: F.alignCenter,
2777
2786
  end: F.alignEnd
2778
2787
  };
2779
- function tr({
2788
+ function nr({
2780
2789
  variant: e = "bodyMd",
2781
2790
  color: t = "default",
2782
2791
  weight: n,
2783
- align: r,
2792
+ align: s,
2784
2793
  truncate: o,
2785
- as: x = "span",
2794
+ as: l = "span",
2786
2795
  children: i
2787
2796
  }) {
2788
- const c = [Ge[e], F[t], n && xn[n], r && ln[r], o && F.truncate];
2789
- return x === "p" ? /* @__PURE__ */ s("p", { ...l(k.p, c), children: i }) : x === "div" ? /* @__PURE__ */ s("div", { ...l(k.div, c), children: i }) : /* @__PURE__ */ s("span", { ...l(k.span, c), children: i });
2797
+ const c = [Ge[e], F[t], n && xn[n], s && an[s], o && F.truncate];
2798
+ return l === "p" ? /* @__PURE__ */ r("p", { ...x(a.p, c), children: i }) : l === "div" ? /* @__PURE__ */ r("div", { ...x(a.div, c), children: i }) : /* @__PURE__ */ r("span", { ...x(a.span, c), children: i });
2790
2799
  }
2791
2800
  const fe = {
2792
2801
  root: {
@@ -2849,42 +2858,42 @@ function kn() {
2849
2858
  if (!e) throw new Error("Tooltip compound components must be used within Tooltip.Root");
2850
2859
  return e;
2851
2860
  }
2852
- function an({
2861
+ function un({
2853
2862
  children: e,
2854
2863
  content: t,
2855
2864
  placement: n = "top",
2856
- delay: r = 300
2865
+ delay: s = 300
2857
2866
  }) {
2858
- const [o, x] = G(!1), i = _(), c = w(null), d = W(() => {
2859
- c.current && clearTimeout(c.current), c.current = setTimeout(() => x(!0), r);
2860
- }, [r]), a = W(() => {
2861
- c.current && clearTimeout(c.current), c.current = null, x(!1);
2867
+ const [o, l] = G(!1), i = _(), c = w(null), d = W(() => {
2868
+ c.current && clearTimeout(c.current), c.current = setTimeout(() => l(!0), s);
2869
+ }, [s]), k = W(() => {
2870
+ c.current && clearTimeout(c.current), c.current = null, l(!1);
2862
2871
  }, []);
2863
- return /* @__PURE__ */ s(Re.Provider, { value: {
2872
+ return /* @__PURE__ */ r(Re.Provider, { value: {
2864
2873
  open: o,
2865
2874
  show: d,
2866
- hide: a,
2875
+ hide: k,
2867
2876
  tooltipId: i,
2868
2877
  placement: n
2869
- }, children: /* @__PURE__ */ z("div", { ...l(k.div, fe.root), children: [
2878
+ }, children: /* @__PURE__ */ z("div", { ...x(a.div, fe.root), children: [
2870
2879
  e,
2871
- o && /* @__PURE__ */ s("div", { id: i, role: "tooltip", ...l(k.div, fe.popup, fe[n]), children: t })
2880
+ o && /* @__PURE__ */ r("div", { id: i, role: "tooltip", ...x(a.div, fe.popup, fe[n]), children: t })
2872
2881
  ] }) });
2873
2882
  }
2874
- function un({
2883
+ function dn({
2875
2884
  children: e
2876
2885
  }) {
2877
2886
  const {
2878
2887
  open: t,
2879
2888
  show: n,
2880
- hide: r,
2889
+ hide: s,
2881
2890
  tooltipId: o
2882
2891
  } = kn();
2883
- return /* @__PURE__ */ s("div", { onPointerEnter: n, onPointerLeave: r, onFocus: n, onBlur: r, "aria-describedby": t ? o : void 0, ...l(k.div), children: e });
2892
+ return /* @__PURE__ */ r("div", { onPointerEnter: n, onPointerLeave: s, onFocus: n, onBlur: s, "aria-describedby": t ? o : void 0, ...x(a.div), children: e });
2884
2893
  }
2885
- const nr = {
2886
- Root: an,
2887
- Trigger: un
2894
+ const rr = {
2895
+ Root: un,
2896
+ Trigger: dn
2888
2897
  }, N = {
2889
2898
  base: {
2890
2899
  k1xSpc: "x78zum5",
@@ -2939,7 +2948,7 @@ const nr = {
2939
2948
  kOIVth: "x281kem",
2940
2949
  $$css: !0
2941
2950
  }
2942
- }, dn = {
2951
+ }, gn = {
2943
2952
  xs: N.gapXs,
2944
2953
  sm: N.gapSm,
2945
2954
  ms: N.gapMs,
@@ -2948,18 +2957,18 @@ const nr = {
2948
2957
  xl: N.gapXl,
2949
2958
  xxl: N.gapXxl,
2950
2959
  xxxl: N.gapXxxl
2951
- }, gn = {
2960
+ }, hn = {
2952
2961
  start: N.alignStart,
2953
2962
  center: N.alignCenter,
2954
2963
  end: N.alignEnd,
2955
2964
  stretch: N.alignStretch
2956
2965
  };
2957
- function rr({
2966
+ function sr({
2958
2967
  gap: e = "md",
2959
2968
  align: t = "stretch",
2960
2969
  children: n
2961
2970
  }) {
2962
- return /* @__PURE__ */ s("div", { ...l(k.div, N.base, dn[e], gn[t]), children: n });
2971
+ return /* @__PURE__ */ r("div", { ...x(a.div, N.base, gn[e], hn[t]), children: n });
2963
2972
  }
2964
2973
  const q = {
2965
2974
  base: {
@@ -3036,7 +3045,7 @@ const q = {
3036
3045
  kOIVth: "x281kem",
3037
3046
  $$css: !0
3038
3047
  }
3039
- }, hn = {
3048
+ }, pn = {
3040
3049
  xs: q.gapXs,
3041
3050
  sm: q.gapSm,
3042
3051
  ms: q.gapMs,
@@ -3045,27 +3054,27 @@ const q = {
3045
3054
  xl: q.gapXl,
3046
3055
  xxl: q.gapXxl,
3047
3056
  xxxl: q.gapXxxl
3048
- }, pn = {
3057
+ }, fn = {
3049
3058
  start: q.alignStart,
3050
3059
  center: q.alignCenter,
3051
3060
  end: q.alignEnd,
3052
3061
  baseline: q.alignBaseline,
3053
3062
  stretch: q.alignStretch
3054
- }, fn = {
3063
+ }, vn = {
3055
3064
  start: q.justifyStart,
3056
3065
  center: q.justifyCenter,
3057
3066
  end: q.justifyEnd,
3058
3067
  between: q.justifyBetween
3059
3068
  };
3060
- function sr({
3069
+ function or({
3061
3070
  gap: e = "sm",
3062
3071
  align: t = "center",
3063
3072
  justify: n = "start",
3064
- children: r
3073
+ children: s
3065
3074
  }) {
3066
- return /* @__PURE__ */ s("div", { ...l(k.div, q.base, hn[e], pn[t], fn[n]), children: r });
3075
+ return /* @__PURE__ */ r("div", { ...x(a.div, q.base, pn[e], fn[t], vn[n]), children: s });
3067
3076
  }
3068
- const E = {
3077
+ const T = {
3069
3078
  base: {
3070
3079
  k1xSpc: "x78zum5",
3071
3080
  kXwgrk: "x1q0g3np",
@@ -3133,36 +3142,36 @@ const E = {
3133
3142
  $$css: !0
3134
3143
  }
3135
3144
  }, $n = {
3136
- xs: E.gapXs,
3137
- sm: E.gapSm,
3138
- ms: E.gapMs,
3139
- md: E.gapMd,
3140
- lg: E.gapLg,
3141
- xl: E.gapXl,
3142
- xxl: E.gapXxl,
3143
- xxxl: E.gapXxxl
3144
- }, vn = {
3145
- start: E.alignStart,
3146
- center: E.alignCenter,
3147
- end: E.alignEnd
3145
+ xs: T.gapXs,
3146
+ sm: T.gapSm,
3147
+ ms: T.gapMs,
3148
+ md: T.gapMd,
3149
+ lg: T.gapLg,
3150
+ xl: T.gapXl,
3151
+ xxl: T.gapXxl,
3152
+ xxxl: T.gapXxxl
3148
3153
  }, mn = {
3149
- start: E.justifyStart,
3150
- center: E.justifyCenter,
3151
- end: E.justifyEnd,
3152
- between: E.justifyBetween
3154
+ start: T.alignStart,
3155
+ center: T.alignCenter,
3156
+ end: T.alignEnd
3157
+ }, bn = {
3158
+ start: T.justifyStart,
3159
+ center: T.justifyCenter,
3160
+ end: T.justifyEnd,
3161
+ between: T.justifyBetween
3153
3162
  };
3154
- function or({
3163
+ function ir({
3155
3164
  gap: e = "sm",
3156
3165
  align: t = "start",
3157
3166
  justify: n = "start",
3158
- children: r
3167
+ children: s
3159
3168
  }) {
3160
- return /* @__PURE__ */ s("div", { ...l(k.div, E.base, $n[e], vn[t], mn[n]), children: r });
3169
+ return /* @__PURE__ */ r("div", { ...x(a.div, T.base, $n[e], mn[t], bn[n]), children: s });
3161
3170
  }
3162
- const bn = {
3171
+ const yn = {
3163
3172
  kumcoG: "xqketvx",
3164
3173
  $$css: !0
3165
- }, L = {
3174
+ }, E = {
3166
3175
  base: {
3167
3176
  k1xSpc: "xrvj5dj",
3168
3177
  $$css: !0
@@ -3191,7 +3200,7 @@ const bn = {
3191
3200
  kumcoG: "xu4o1vd",
3192
3201
  $$css: !0
3193
3202
  },
3194
- autoFit: (e) => [bn, {
3203
+ autoFit: (e) => [yn, {
3195
3204
  "--x-gridTemplateColumns": `repeat(auto-fit, minmax(${e}, 1fr))` != null ? `repeat(auto-fit, minmax(${e}, 1fr))` : void 0
3196
3205
  }],
3197
3206
  gapXs: {
@@ -3226,98 +3235,98 @@ const bn = {
3226
3235
  kOIVth: "x281kem",
3227
3236
  $$css: !0
3228
3237
  }
3229
- }, yn = {
3230
- xs: L.gapXs,
3231
- sm: L.gapSm,
3232
- ms: L.gapMs,
3233
- md: L.gapMd,
3234
- lg: L.gapLg,
3235
- xl: L.gapXl,
3236
- xxl: L.gapXxl,
3237
- xxxl: L.gapXxxl
3238
3238
  }, wn = {
3239
- 1: L.col1,
3240
- 2: L.col2,
3241
- 3: L.col3,
3242
- 4: L.col4,
3243
- 5: L.col5,
3244
- 6: L.col6
3239
+ xs: E.gapXs,
3240
+ sm: E.gapSm,
3241
+ ms: E.gapMs,
3242
+ md: E.gapMd,
3243
+ lg: E.gapLg,
3244
+ xl: E.gapXl,
3245
+ xxl: E.gapXxl,
3246
+ xxxl: E.gapXxxl
3247
+ }, Mn = {
3248
+ 1: E.col1,
3249
+ 2: E.col2,
3250
+ 3: E.col3,
3251
+ 4: E.col4,
3252
+ 5: E.col5,
3253
+ 6: E.col6
3245
3254
  };
3246
- function ir({
3255
+ function cr({
3247
3256
  gap: e = "md",
3248
3257
  columns: t,
3249
3258
  minColumnWidth: n,
3250
- children: r
3259
+ children: s
3251
3260
  }) {
3252
- const o = n ? L.autoFit(n) : t ? wn[t] : void 0;
3253
- return /* @__PURE__ */ s("div", { ...l(k.div, L.base, yn[e], o), children: r });
3261
+ const o = n ? E.autoFit(n) : t ? Mn[t] : void 0;
3262
+ return /* @__PURE__ */ r("div", { ...x(a.div, E.base, wn[e], o), children: s });
3254
3263
  }
3255
- function cr(e = {}) {
3264
+ function lr(e = {}) {
3256
3265
  const {
3257
3266
  compactBelow: t = 480,
3258
3267
  spaciousAbove: n = 768
3259
- } = e, r = w(null), [o, x] = G("default");
3268
+ } = e, s = w(null), [o, l] = G("default");
3260
3269
  return H(() => {
3261
- const i = r.current;
3270
+ const i = s.current;
3262
3271
  if (!i) return;
3263
3272
  let c = null;
3264
- const d = new ResizeObserver((a) => {
3273
+ const d = new ResizeObserver((k) => {
3265
3274
  c !== null && cancelAnimationFrame(c), c = requestAnimationFrame(() => {
3266
- const g = a[0];
3275
+ const g = k[0];
3267
3276
  if (!g) return;
3268
3277
  const u = g.contentBoxSize?.[0]?.inlineSize ?? g.contentRect.width;
3269
- u < t ? x("compact") : u >= n ? x("spacious") : x("default");
3278
+ u < t ? l("compact") : u >= n ? l("spacious") : l("default");
3270
3279
  });
3271
3280
  });
3272
3281
  return d.observe(i), () => {
3273
3282
  d.disconnect(), c !== null && cancelAnimationFrame(c);
3274
3283
  };
3275
3284
  }, [t, n]), {
3276
- ref: r,
3285
+ ref: s,
3277
3286
  size: o
3278
3287
  };
3279
3288
  }
3280
3289
  export {
3281
- Mn as Alert,
3282
- zn as Badge,
3283
- In as Button,
3284
- qn as Card,
3285
- Wn as Checkbox,
3286
- or as Cluster,
3287
- Hn as EmptyState,
3290
+ zn as Alert,
3291
+ In as Badge,
3292
+ qn as Button,
3293
+ Wn as Card,
3294
+ Hn as Checkbox,
3295
+ ir as Cluster,
3296
+ Gn as EmptyState,
3288
3297
  Tn as Field,
3289
- ir as Grid,
3290
- Gn as Heading,
3291
- $e as Icon,
3292
- sr as Inline,
3298
+ cr as Grid,
3299
+ Ln as Heading,
3300
+ ve as Icon,
3301
+ or as Inline,
3293
3302
  En as Input,
3294
- Ln as InputGroup,
3295
- Vn as LinkButton,
3296
- An as Menu,
3297
- Nn as ScrollArea,
3298
- On as Select,
3303
+ Vn as InputGroup,
3304
+ An as LinkButton,
3305
+ Nn as Menu,
3306
+ On as ScrollArea,
3307
+ Cn as Select,
3299
3308
  Bn as SideNav,
3300
3309
  Dn as Spinner,
3301
- rr as Stack,
3302
- Cn as StatusIcon,
3303
- Rn as Table,
3304
- Xn as Tabs,
3305
- tr as Text,
3306
- Yn as Textarea,
3307
- er as ThemeProvider,
3308
- nr as Tooltip,
3309
- Jn as colors,
3310
- sn as highContrastShadows,
3311
- rn as highContrastTheme,
3312
- Qn as layoutSpacing,
3313
- nn as lightShadows,
3314
- tn as lightTheme,
3315
- Fn as radii,
3316
- Zn as shadows,
3317
- Pn as spacing,
3318
- _n as typePresets,
3319
- Un as typeScale,
3320
- Kn as typography,
3321
- cr as useContainerQuery
3310
+ sr as Stack,
3311
+ Rn as StatusIcon,
3312
+ Xn as Table,
3313
+ Yn as Tabs,
3314
+ nr as Text,
3315
+ Jn as Textarea,
3316
+ tr as ThemeProvider,
3317
+ rr as Tooltip,
3318
+ Pn as colors,
3319
+ on as highContrastShadows,
3320
+ sn as highContrastTheme,
3321
+ Kn as layoutSpacing,
3322
+ rn as lightShadows,
3323
+ nn as lightTheme,
3324
+ Qn as radii,
3325
+ er as shadows,
3326
+ Fn as spacing,
3327
+ Zn as typePresets,
3328
+ _n as typeScale,
3329
+ Un as typography,
3330
+ lr as useContainerQuery
3322
3331
  };
3323
3332
  //# sourceMappingURL=index.js.map