@tempots/beatui 0.51.3 → 0.51.5

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.
Files changed (74) hide show
  1. package/dist/{2019-BQcD9URE.cjs → 2019-BiSy3dQP.cjs} +1 -1
  2. package/dist/{2019-UNku578Y.js → 2019-Djx2f_nO.js} +2 -2
  3. package/dist/{2020-Btv5q4dj.cjs → 2020-BgJxYgaO.cjs} +1 -1
  4. package/dist/{2020-D87xb4CE.js → 2020-C1wOj1GM.js} +2 -2
  5. package/dist/{ar-_jjzLBRv.cjs → ar-BEbbig_x.cjs} +1 -1
  6. package/dist/{ar-DAGDMYsi.js → ar-Djuleurf.js} +1 -1
  7. package/dist/auth/index.cjs.js +1 -1
  8. package/dist/auth/index.es.js +4 -4
  9. package/dist/beatui.css +1 -1
  10. package/dist/beatui.tailwind.css +1 -1
  11. package/dist/{de-_2pLrwuX.cjs → de-Br3MCGtv.cjs} +1 -1
  12. package/dist/{de-DS5xkBOE.js → de-E8u7Hbc0.js} +1 -1
  13. package/dist/{es-zBeNuQ7P.js → es-BN0iaBgJ.js} +1 -1
  14. package/dist/{es-DmmDzy9i.cjs → es-CAwGEj_N.cjs} +1 -1
  15. package/dist/{fa-B57RDheU.js → fa-3Qfo8ZXh.js} +1 -1
  16. package/dist/{fa-D0N2XVAF.cjs → fa-CEz8tGnY.cjs} +1 -1
  17. package/dist/{fr-7mBncT_E.js → fr-D1ndk0A5.js} +1 -1
  18. package/dist/{fr-Cvk838Y0.cjs → fr-Dbn62iEL.cjs} +1 -1
  19. package/dist/{he-DNStLLNe.js → he-CIV7rntE.js} +1 -1
  20. package/dist/{he-BDL3nmBq.cjs → he-OtaTg9wg.cjs} +1 -1
  21. package/dist/{hi-CkFz9jGl.cjs → hi-CnbarThz.cjs} +1 -1
  22. package/dist/{hi-BQ88kfgL.js → hi-tzWREPMb.js} +1 -1
  23. package/dist/{index-CyvVZ2rs.js → index-B9y4N11q.js} +5 -5
  24. package/dist/{index-XcBgidt4.cjs → index-BjQW8AsK.cjs} +1 -1
  25. package/dist/{index-Bw768GSN.cjs → index-ClqyVDXY.cjs} +2 -2
  26. package/dist/{index-MhPczVFS.js → index-DDhLWdaz.js} +1 -1
  27. package/dist/{index-8IRe4UrJ.cjs → index-TiMfhF1U.cjs} +1 -1
  28. package/dist/{index-CNQHiywh.js → index-UMbs0jPr.js} +3 -3
  29. package/dist/{index-CMBub3gr.cjs → index-nRXzduHm.cjs} +1 -1
  30. package/dist/{index-Bpj8_mas.js → index-qWS4IYZX.js} +1 -1
  31. package/dist/index.cjs.js +4 -4
  32. package/dist/index.es.js +1540 -1525
  33. package/dist/{it-CQvxjtzH.js → it-1Hy_Ay2j.js} +1 -1
  34. package/dist/{it-xfHAbJDL.cjs → it-FOaX_rku.cjs} +1 -1
  35. package/dist/{ja-rPw4r19j.js → ja-C7_PK2VE.js} +1 -1
  36. package/dist/{ja-dK2EaYnl.cjs → ja-DW4_3EWp.cjs} +1 -1
  37. package/dist/json-schema/index.cjs.js +1 -1
  38. package/dist/json-schema/index.es.js +1 -1
  39. package/dist/{ko-Bsr9oDRH.js → ko-BDOp6dFE.js} +1 -1
  40. package/dist/{ko-B8bU3qEd.cjs → ko-C-jXKweM.cjs} +1 -1
  41. package/dist/{modal-Dx7nHv_u.js → modal-BBaPJhi-.js} +2 -2
  42. package/dist/{modal-CwLXTMFb.cjs → modal-O7QoP7Zv.cjs} +1 -1
  43. package/dist/{nl-OFrzDTyj.js → nl-CF5W2Rt4.js} +1 -1
  44. package/dist/{nl-fbSaW0ms.cjs → nl-Ui8TT45t.cjs} +1 -1
  45. package/dist/{notice-CNrZMX-r.cjs → notice-DLDzwKkw.cjs} +1 -1
  46. package/dist/{notice-Dgv1Puqy.js → notice-DTTyRbwh.js} +1 -1
  47. package/dist/{pl-Bv1VbtHi.cjs → pl-8PM7rn2L.cjs} +1 -1
  48. package/dist/{pl-BtomlJ-P.js → pl-oLzT5Ole.js} +1 -1
  49. package/dist/prosemirror/index.cjs.js +1 -1
  50. package/dist/prosemirror/index.es.js +1 -1
  51. package/dist/{pt-CoPyxcp2.js → pt-Bb0T3Cx1.js} +1 -1
  52. package/dist/{pt-DVofofnR.cjs → pt-kRRsG9-4.cjs} +1 -1
  53. package/dist/{ru-YnWlhmAf.cjs → ru-C5AMF9a6.cjs} +1 -1
  54. package/dist/{ru-CRAfa4QI.js → ru-DwLv1myc.js} +1 -1
  55. package/dist/{toolbar-Df75r-Ze.cjs → toolbar-D6_MB1QI.cjs} +1 -1
  56. package/dist/{toolbar-QlXtHTq2.js → toolbar-D_LSJCtv.js} +1 -1
  57. package/dist/{tr-B89mpvcb.cjs → tr-BwgU2BAj.cjs} +1 -1
  58. package/dist/{tr-BZ7okqf-.js → tr-DBQNjaPN.js} +1 -1
  59. package/dist/{translations-0qZADR5l.cjs → translations-BAk3j4bi.cjs} +1 -1
  60. package/dist/{translations-DoBmuZ5v.js → translations-CG5-f9U8.js} +64 -62
  61. package/dist/{translations-Cd5YXXFP.cjs → translations-D77sU1Wl.cjs} +1 -1
  62. package/dist/{translations-BaKCl3Vc.js → translations-t57jdjWu.js} +1 -1
  63. package/dist/types/components/form/input/input-options.d.ts +2 -1
  64. package/dist/types/components/form/input/switch.d.ts +2 -1
  65. package/dist/{ur-CbkIhLJD.js → ur-BmK_ieRn.js} +1 -1
  66. package/dist/{ur-DE8WBz8k.cjs → ur-s32jv4mP.cjs} +1 -1
  67. package/dist/{utils-D2igg-30.js → utils-CYMdxKSM.js} +426 -422
  68. package/dist/utils-DI_H4_Gm.cjs +1 -0
  69. package/dist/{vi-CFBgyXOQ.cjs → vi-B4qRKlRd.cjs} +1 -1
  70. package/dist/{vi-DlZVO9A1.js → vi-DK0Fj95H.js} +1 -1
  71. package/dist/{zh-BYu5DfDF.cjs → zh-CUEpc9yf.cjs} +1 -1
  72. package/dist/{zh-BZVkFK1T.js → zh-Db8COSme.js} +1 -1
  73. package/package.json +1 -1
  74. package/dist/utils-ifLLdUuV.cjs +0 -1
@@ -1,9 +1,9 @@
1
- import { Use as W, Value as p, prop as et, html as C, OnDispose as z, attr as i, on as k, WithElement as ut, aria as U, bind as $t, computedOf as L, style as ft, When as E, NotEmpty as Qt, Fragment as B, ForEach as mt, svg as At, svgAttr as gt, Empty as T, emitValue as j, coalesce as Jt, Ensure as Kt, OneOfType as te, Repeat as Pt, signal as Ft, input as K, emitValueAsNullableDate as ee, emitValueAsNullableDateTime as ne, emitValueAsNumber as G, emit as se, Task as Bt } from "@tempots/dom";
1
+ import { Use as W, Value as p, prop as et, html as C, OnDispose as z, attr as i, on as k, WithElement as ut, aria as U, bind as $t, computedOf as V, style as ft, When as E, NotEmpty as Qt, Fragment as B, ForEach as mt, svg as At, svgAttr as gt, Empty as T, emitValue as j, coalesce as Jt, Ensure as Kt, OneOfType as te, Repeat as Pt, signal as Ft, input as K, emitValueAsNullableDate as ee, emitValueAsNullableDateTime as ne, emitValueAsNumber as G, emit as se, Task as Bt } from "@tempots/dom";
2
2
  import { f as re } from "./colors-BW19rWA1.js";
3
3
  import { g as ae } from "./timer-DzWb416P.js";
4
4
  import { ElementRect as jt, AutoSelect as le } from "@tempots/ui";
5
- import { a as X, b as P, f as oe, I as O, C as H, c as ce, d as yt, T as ie, g as ue, L as pe, e as Vt, h as de, B as bt } from "./translations-DoBmuZ5v.js";
6
- import { C as It, m as fe, d as me, I as Ht, E as he, P as ge, S as ct, s as be, e as vt, O as at, f as Lt } from "./notice-Dgv1Puqy.js";
5
+ import { a as X, b as P, f as oe, I as O, C as H, c as ce, d as yt, T as ie, g as ue, L as pe, e as Vt, h as de, B as bt } from "./translations-CG5-f9U8.js";
6
+ import { C as It, m as fe, d as me, I as Ht, E as he, P as ge, S as ct, s as be, e as vt, O as at, f as Lt } from "./notice-DTTyRbwh.js";
7
7
  function Wt(t) {
8
8
  if (typeof t != "string") return !1;
9
9
  const e = t.startsWith("#") ? t.slice(1) : t;
@@ -58,9 +58,9 @@ function it(t) {
58
58
  function vn(t, e) {
59
59
  const s = it(t), n = it(e);
60
60
  if (!s || !n) return null;
61
- const r = (c, f, b) => {
62
- const [h, d, x] = [c, f, b].map((m) => (m = m / 255, m <= 0.03928 ? m / 12.92 : Math.pow((m + 0.055) / 1.055, 2.4)));
63
- return 0.2126 * h + 0.7152 * d + 0.0722 * x;
61
+ const r = (c, f, g) => {
62
+ const [h, d, v] = [c, f, g].map((w) => (w = w / 255, w <= 0.03928 ? w / 12.92 : Math.pow((w + 0.055) / 1.055, 2.4)));
63
+ return 0.2126 * h + 0.7152 * d + 0.0722 * v;
64
64
  }, o = r(s.r, s.g, s.b), a = r(n.r, n.g, n.b), u = Math.max(o, a), l = Math.min(o, a);
65
65
  return (u + 0.05) / (l + 0.05);
66
66
  }
@@ -72,8 +72,8 @@ function $e(t) {
72
72
  if (s) {
73
73
  const c = s[1];
74
74
  if (c.length === 8) {
75
- const f = parseInt(c.slice(0, 2), 16), b = parseInt(c.slice(2, 4), 16), h = parseInt(c.slice(4, 6), 16), d = parseInt(c.slice(6, 8), 16) / 255;
76
- return [f, b, h, d];
75
+ const f = parseInt(c.slice(0, 2), 16), g = parseInt(c.slice(2, 4), 16), h = parseInt(c.slice(4, 6), 16), d = parseInt(c.slice(6, 8), 16) / 255;
76
+ return [f, g, h, d];
77
77
  }
78
78
  if (c.length === 6)
79
79
  return [
@@ -83,12 +83,12 @@ function $e(t) {
83
83
  1
84
84
  ];
85
85
  if (c.length === 4) {
86
- const f = parseInt(c[0] + c[0], 16), b = parseInt(c[1] + c[1], 16), h = parseInt(c[2] + c[2], 16), d = parseInt(c[3] + c[3], 16) / 255;
87
- return [f, b, h, d];
86
+ const f = parseInt(c[0] + c[0], 16), g = parseInt(c[1] + c[1], 16), h = parseInt(c[2] + c[2], 16), d = parseInt(c[3] + c[3], 16) / 255;
87
+ return [f, g, h, d];
88
88
  }
89
89
  if (c.length === 3) {
90
- const f = parseInt(c[0] + c[0], 16), b = parseInt(c[1] + c[1], 16), h = parseInt(c[2] + c[2], 16);
91
- return [f, b, h, 1];
90
+ const f = parseInt(c[0] + c[0], 16), g = parseInt(c[1] + c[1], 16), h = parseInt(c[2] + c[2], 16);
91
+ return [f, g, h, 1];
92
92
  }
93
93
  }
94
94
  const n = t.match(
@@ -110,22 +110,22 @@ function $e(t) {
110
110
  /^hsla?\(\s*([+-]?[\d.]+)(?:deg)?\s*[ ,]?\s*([\d.]+)%\s*[ ,]?\s*([\d.]+)%\s*(?:[/,]\s*(\d?(?:\.\d+)?))?\s*\)$/i
111
111
  );
112
112
  if (o) {
113
- const c = parseFloat(o[1]), f = parseFloat(o[2]), b = parseFloat(o[3]), h = o[4] != null ? parseFloat(o[4]) : 1, [d, x, m] = Zt(c, f / 100, b / 100);
114
- return [d, x, m, h];
113
+ const c = parseFloat(o[1]), f = parseFloat(o[2]), g = parseFloat(o[3]), h = o[4] != null ? parseFloat(o[4]) : 1, [d, v, w] = Zt(c, f / 100, g / 100);
114
+ return [d, v, w, h];
115
115
  }
116
116
  const a = t.match(
117
117
  /^hwb\(\s*([+-]?[\d.]+)(?:deg)?\s*[, ]\s*([\d.]+)%\s*[, ]\s*([\d.]+)%\s*(?:[/]\s*(\d?(?:\.\d+)?))?\s*\)$/i
118
118
  );
119
119
  if (a) {
120
- const c = parseFloat(a[1]), f = parseFloat(a[2]) / 100, b = parseFloat(a[3]) / 100, h = a[4] != null ? parseFloat(a[4]) : 1, [d, x, m] = Ce(c, f, b);
121
- return [d, x, m, h];
120
+ const c = parseFloat(a[1]), f = parseFloat(a[2]) / 100, g = parseFloat(a[3]) / 100, h = a[4] != null ? parseFloat(a[4]) : 1, [d, v, w] = Ce(c, f, g);
121
+ return [d, v, w, h];
122
122
  }
123
123
  const u = t.match(
124
124
  /^oklch\(\s*([+-]?[\d.]+%?)\s+([\d.]+)\s+([+-]?[\d.]+)(?:deg)?(?:\s*\/\s*(\d?(?:\.\d+)?))?\s*\)$/i
125
125
  );
126
126
  if (u) {
127
- const c = u[1], f = parseFloat(u[2]), b = parseFloat(u[3]), h = u[4] != null ? parseFloat(u[4]) : 1, d = c.endsWith("%") ? Math.max(0, Math.min(1, parseFloat(c) / 100)) : Math.max(0, Math.min(1, parseFloat(c))), [x, m, $] = Me(d, f, b);
128
- return [x, m, $, h];
127
+ const c = u[1], f = parseFloat(u[2]), g = parseFloat(u[3]), h = u[4] != null ? parseFloat(u[4]) : 1, d = c.endsWith("%") ? Math.max(0, Math.min(1, parseFloat(c) / 100)) : Math.max(0, Math.min(1, parseFloat(c))), [v, w, _] = Me(d, f, g);
128
+ return [v, w, _, h];
129
129
  }
130
130
  const l = it(t);
131
131
  return l ? [l.r, l.g, l.b, 1] : [0, 0, 0, 1];
@@ -156,7 +156,7 @@ function Ce(t, e, s) {
156
156
  t = (t % 360 + 360) % 360;
157
157
  const n = e + s;
158
158
  n > 1 && (e /= n, s /= n);
159
- const [r, o, a] = Zt(t, 1, 0.5).map((b) => b / 255), u = 1 - e - s, l = r * u + e, c = o * u + e, f = a * u + e;
159
+ const [r, o, a] = Zt(t, 1, 0.5).map((g) => g / 255), u = 1 - e - s, l = r * u + e, c = o * u + e, f = a * u + e;
160
160
  return [Math.round(l * 255), Math.round(c * 255), Math.round(f * 255)];
161
161
  }
162
162
  function kt(t, e, s) {
@@ -192,13 +192,13 @@ function wt(t) {
192
192
  return Math.round(Math.max(0, Math.min(1, e)) * 255);
193
193
  }
194
194
  function Me(t, e, s) {
195
- const n = s * Math.PI / 180, r = Math.cos(n) * e, o = Math.sin(n) * e, a = t + 0.3963377774 * r + 0.2158037573 * o, u = t - 0.1055613458 * r - 0.0638541728 * o, l = t - 0.0894841775 * r - 1.291485548 * o, c = a * a * a, f = u * u * u, b = l * l * l, h = 4.0767416621 * c - 3.3077115913 * f + 0.2309699292 * b, d = -1.2684380046 * c + 2.6097574011 * f - 0.3413193965 * b, x = -0.0041960863 * c - 0.7034186147 * f + 1.707614701 * b;
196
- return [wt(h), wt(d), wt(x)];
195
+ const n = s * Math.PI / 180, r = Math.cos(n) * e, o = Math.sin(n) * e, a = t + 0.3963377774 * r + 0.2158037573 * o, u = t - 0.1055613458 * r - 0.0638541728 * o, l = t - 0.0894841775 * r - 1.291485548 * o, c = a * a * a, f = u * u * u, g = l * l * l, h = 4.0767416621 * c - 3.3077115913 * f + 0.2309699292 * g, d = -1.2684380046 * c + 2.6097574011 * f - 0.3413193965 * g, v = -0.0041960863 * c - 0.7034186147 * f + 1.707614701 * g;
196
+ return [wt(h), wt(d), wt(v)];
197
197
  }
198
198
  function De(t, e, s) {
199
- const n = xt(t), r = xt(e), o = xt(s), a = 0.4122214708 * n + 0.5363325363 * r + 0.0514459929 * o, u = 0.2119034982 * n + 0.6806995451 * r + 0.1073969566 * o, l = 0.0883024619 * n + 0.2817188376 * r + 0.6299787005 * o, c = Math.cbrt(a), f = Math.cbrt(u), b = Math.cbrt(l), h = 0.2104542553 * c + 0.793617785 * f - 0.0040720468 * b, d = 1.9779984951 * c - 2.428592205 * f + 0.4505937099 * b, x = 0.0259040371 * c + 0.7827717662 * f - 0.808675766 * b, m = Math.sqrt(d * d + x * x);
200
- let $ = Math.atan2(x, d) * 180 / Math.PI;
201
- return $ < 0 && ($ += 360), [h, m, $];
199
+ const n = xt(t), r = xt(e), o = xt(s), a = 0.4122214708 * n + 0.5363325363 * r + 0.0514459929 * o, u = 0.2119034982 * n + 0.6806995451 * r + 0.1073969566 * o, l = 0.0883024619 * n + 0.2817188376 * r + 0.6299787005 * o, c = Math.cbrt(a), f = Math.cbrt(u), g = Math.cbrt(l), h = 0.2104542553 * c + 0.793617785 * f - 0.0040720468 * g, d = 1.9779984951 * c - 2.428592205 * f + 0.4505937099 * g, v = 0.0259040371 * c + 0.7827717662 * f - 0.808675766 * g, w = Math.sqrt(d * d + v * v);
200
+ let _ = Math.atan2(v, d) * 180 / Math.PI;
201
+ return _ < 0 && (_ += 360), [h, w, _];
202
202
  }
203
203
  function lt(t, e, s, n, r, o) {
204
204
  switch (r) {
@@ -225,8 +225,8 @@ function lt(t, e, s, n, r, o) {
225
225
  return n < 1 ? `hwb(${a} ${u}% ${l}% / ${Math.round(n * 100) / 100})` : `hwb(${a} ${u}% ${l}%)`;
226
226
  }
227
227
  case "oklch": {
228
- const [a, u, l] = De(t, e, s), c = (Math.round(a * 1e3) / 1e3).toFixed(3), f = (Math.round(u * 1e3) / 1e3).toFixed(3), b = (Math.round(l * 10) / 10).toFixed(1), h = Math.round(n * 100) / 100;
229
- return o || n < 1 ? `oklch(${c} ${f} ${b} / ${h})` : `oklch(${c} ${f} ${b})`;
228
+ const [a, u, l] = De(t, e, s), c = (Math.round(a * 1e3) / 1e3).toFixed(3), f = (Math.round(u * 1e3) / 1e3).toFixed(3), g = (Math.round(l * 10) / 10).toFixed(1), h = Math.round(n * 100) / 100;
229
+ return o || n < 1 ? `oklch(${c} ${f} ${g} / ${h})` : `oklch(${c} ${f} ${g})`;
230
230
  }
231
231
  }
232
232
  }
@@ -257,39 +257,39 @@ function Et({
257
257
  allowMultiple: a
258
258
  }) {
259
259
  return W(X, (u) => {
260
- const l = p.deriveProp(e ?? []), c = et(!1), f = (v) => {
261
- v.preventDefault(), v.stopPropagation(), c.value = !0;
262
- }, b = (v) => {
263
- v.preventDefault(), v.stopPropagation(), (!v.currentTarget || !v.currentTarget.contains(v.relatedTarget)) && (c.value = !1);
264
- }, h = (v) => {
265
- v.preventDefault(), v.stopPropagation(), c.value = !1;
266
- const g = Array.from(v.dataTransfer?.files || []);
267
- g.length > 0 && (l.value = g, t(g));
268
- }, d = (v) => {
269
- p.get(n) && v.currentTarget.querySelector(
260
+ const l = p.deriveProp(e ?? []), c = et(!1), f = (b) => {
261
+ b.preventDefault(), b.stopPropagation(), c.value = !0;
262
+ }, g = (b) => {
263
+ b.preventDefault(), b.stopPropagation(), (!b.currentTarget || !b.currentTarget.contains(b.relatedTarget)) && (c.value = !1);
264
+ }, h = (b) => {
265
+ b.preventDefault(), b.stopPropagation(), c.value = !1;
266
+ const m = Array.from(b.dataTransfer?.files || []);
267
+ m.length > 0 && (l.value = m, t(m));
268
+ }, d = (b) => {
269
+ p.get(n) && b.currentTarget.querySelector(
270
270
  'input[type="file"]'
271
271
  )?.click();
272
272
  };
273
- let x = null;
274
- const m = () => {
275
- if (x == null) return;
276
- const v = Array.from(x.files ?? []);
277
- v.length > 0 && (l.value = v, t(v)), x.value = "";
278
- }, $ = (v) => {
279
- p.get(n) && (v.key === "Enter" || v.key === " ") && (v.preventDefault(), d(v));
273
+ let v = null;
274
+ const w = () => {
275
+ if (v == null) return;
276
+ const b = Array.from(v.files ?? []);
277
+ b.length > 0 && (l.value = b, t(b)), v.value = "";
278
+ }, _ = (b) => {
279
+ p.get(n) && (b.key === "Enter" || b.key === " ") && (b.preventDefault(), d(b));
280
280
  };
281
281
  return C.div(
282
282
  z(() => p.dispose(l), c),
283
283
  i.role("button"),
284
284
  i.tabindex(
285
- p.map(n, (v) => v ? 0 : -1)
285
+ p.map(n, (b) => b ? 0 : -1)
286
286
  ),
287
287
  i.style("position: relative;"),
288
288
  k.dragover(f),
289
- k.dragleave(b),
289
+ k.dragleave(g),
290
290
  k.drop(h),
291
291
  k.click(d),
292
- k.keydown($),
292
+ k.keydown(_),
293
293
  // Hidden file input
294
294
  C.input(
295
295
  i.type("file"),
@@ -299,13 +299,13 @@ function Et({
299
299
  i.style(
300
300
  "position: absolute; left: -9999px; opacity: 0; pointer-events: none;"
301
301
  ),
302
- k.change(m),
303
- ut((v) => (x = v, z(
304
- l.on((g) => {
305
- const D = globalThis.DataTransfer;
306
- if (D != null) {
307
- const I = new D();
308
- g.forEach((_) => I.items.add(_)), v.files = I.files;
302
+ k.change(w),
303
+ ut((b) => (v = b, z(
304
+ l.on((m) => {
305
+ const M = globalThis.DataTransfer;
306
+ if (M != null) {
307
+ const I = new M();
308
+ m.forEach(($) => I.items.add($)), b.files = I.files;
309
309
  }
310
310
  })
311
311
  )))
@@ -345,7 +345,7 @@ function _n({
345
345
  return C.div(
346
346
  z(l),
347
347
  i.class(
348
- L(
348
+ V(
349
349
  n,
350
350
  r
351
351
  )(
@@ -357,26 +357,26 @@ function _n({
357
357
  C.div(
358
358
  i.class("bc-segmented-control__indicator"),
359
359
  ft.width(
360
- L(
360
+ V(
361
361
  e,
362
362
  l
363
363
  )((c, f) => {
364
- const { width: b } = f[u[c] ?? 0];
365
- return `${b}px`;
364
+ const { width: g } = f[u[c] ?? 0];
365
+ return `${g}px`;
366
366
  })
367
367
  ),
368
368
  ft.left(
369
- L(
369
+ V(
370
370
  e,
371
371
  l
372
372
  )((c, f) => {
373
- const { left: b } = f[u[c] ?? 0];
374
- return `${b}px`;
373
+ const { left: g } = f[u[c] ?? 0];
374
+ return `${g}px`;
375
375
  })
376
376
  )
377
377
  ),
378
378
  // clickable buttons
379
- a.map(({ label: c, key: f }, b) => C.button(
379
+ a.map(({ label: c, key: f }, g) => C.button(
380
380
  i.type("button"),
381
381
  k.click((h) => {
382
382
  h.preventDefault(), p.get(r) || s?.(f);
@@ -388,16 +388,16 @@ function _n({
388
388
  ),
389
389
  jt((h) => {
390
390
  function d() {
391
- l.update((m) => {
392
- const $ = [...m];
393
- return $[b] = {
391
+ l.update((w) => {
392
+ const _ = [...w];
393
+ return _[g] = {
394
394
  width: h.value.width,
395
395
  left: h.value.localLeft
396
- }, $;
396
+ }, _;
397
397
  });
398
398
  }
399
- const x = ae(d);
400
- return z(x, h.on(d));
399
+ const v = ae(d);
400
+ return z(v, h.on(d));
401
401
  }),
402
402
  c
403
403
  ))
@@ -449,28 +449,28 @@ const Ee = (t, ...e) => {
449
449
  disabled: l,
450
450
  hasError: c,
451
451
  mode: f = "default",
452
- showFileList: b = !0,
452
+ showFileList: g = !0,
453
453
  ...h
454
- } = t, d = s, x = p.map(f, (I) => I === "compact"), m = (I) => {
455
- let _ = I;
454
+ } = t, d = s, v = p.map(f, (I) => I === "compact"), w = (I) => {
455
+ let $ = I;
456
456
  if (r != null) {
457
- const w = p.get(r);
458
- _ = _.slice(0, w);
457
+ const x = p.get(r);
458
+ $ = $.slice(0, x);
459
459
  }
460
460
  if (o) {
461
- const w = p.get(o);
462
- _ = _.filter((y) => y.size <= w);
461
+ const x = p.get(o);
462
+ $ = $.filter((y) => y.size <= x);
463
463
  }
464
- a?.(_);
465
- }, $ = (I) => {
466
- const w = d.value.filter((y, M) => M !== I);
467
- a?.(w);
468
- }, v = () => {
464
+ a?.($);
465
+ }, _ = (I) => {
466
+ const x = d.value.filter((y, D) => D !== I);
467
+ a?.(x);
468
+ }, b = () => {
469
469
  a?.([]);
470
- }, g = ({
470
+ }, m = ({
471
471
  files: I,
472
- clear: _,
473
- change: w
472
+ clear: $,
473
+ change: x
474
474
  }) => W(
475
475
  X,
476
476
  (y) => C.div(
@@ -490,24 +490,24 @@ const Ee = (t, ...e) => {
490
490
  )
491
491
  )
492
492
  )
493
- ), D = ({
493
+ ), M = ({
494
494
  files: I
495
495
  }) => W(
496
496
  X,
497
- (_) => C.div(
497
+ ($) => C.div(
498
498
  i.class("bc-file-input__compact-input"),
499
499
  E(
500
- I.map((w) => w.length > 0),
500
+ I.map((x) => x.length > 0),
501
501
  () => C.span(
502
502
  i.class("bc-file-input__compact-value"),
503
503
  mt(
504
504
  I,
505
- (w) => C.span(
505
+ (x) => C.span(
506
506
  i.class("bc-file-input__compact-value-item"),
507
- Rt(w),
507
+ Rt(x),
508
508
  C.span(
509
509
  i.class("bc-file-input__compact-value-item-name"),
510
- w.$.name
510
+ x.$.name
511
511
  )
512
512
  )
513
513
  )
@@ -516,10 +516,10 @@ const Ee = (t, ...e) => {
516
516
  i.class("bc-file-input__compact-placeholder"),
517
517
  O({ icon: "mdi:cloud-upload-outline", size: "md" }),
518
518
  " ",
519
- $t(_.$.filesInputInstructions)(
519
+ $t($.$.filesInputInstructions)(
520
520
  r,
521
521
  o,
522
- _.$.fileSizeUnits.value
522
+ $.$.fileSizeUnits.value
523
523
  )
524
524
  )
525
525
  )
@@ -529,19 +529,19 @@ const Ee = (t, ...e) => {
529
529
  X,
530
530
  (I) => P(
531
531
  {
532
- baseContainer: p.map(x, (_) => !_),
532
+ baseContainer: p.map(v, ($) => !$),
533
533
  disabled: l,
534
534
  hasError: c,
535
535
  after: E(
536
- x,
536
+ v,
537
537
  () => E(
538
- d.map(({ length: _ }) => _ > 0),
538
+ d.map(({ length: $ }) => $ > 0),
539
539
  () => It(
540
540
  {
541
541
  size: "sm",
542
542
  label: I.$.clearAllFiles,
543
543
  disabled: l,
544
- onClick: v
544
+ onClick: b
545
545
  },
546
546
  i.class("bc-file-input__compact-clear")
547
547
  )
@@ -549,17 +549,17 @@ const Ee = (t, ...e) => {
549
549
  ),
550
550
  ...h,
551
551
  input: E(
552
- x,
552
+ v,
553
553
  () => C.div(
554
554
  i.class("bc-file-input bc-file-input--compact"),
555
555
  Et({
556
556
  value: d,
557
557
  accept: n,
558
558
  enableClick: !0,
559
- allowMultiple: p.map(r ?? 1 / 0, (_) => _ > 1),
559
+ allowMultiple: p.map(r ?? 1 / 0, ($) => $ > 1),
560
560
  disabled: l,
561
- onChange: m,
562
- content: D
561
+ onChange: w,
562
+ content: M
563
563
  })
564
564
  ),
565
565
  () => C.div(
@@ -568,46 +568,46 @@ const Ee = (t, ...e) => {
568
568
  value: d,
569
569
  accept: n,
570
570
  enableClick: !0,
571
- allowMultiple: p.map(r ?? 1 / 0, (_) => _ > 1),
571
+ allowMultiple: p.map(r ?? 1 / 0, ($) => $ > 1),
572
572
  disabled: l,
573
- onChange: m,
574
- content: g
573
+ onChange: w,
574
+ content: m
575
575
  }),
576
576
  E(
577
- b,
577
+ g,
578
578
  () => Qt(
579
579
  d,
580
580
  () => B(
581
581
  C.div(
582
582
  i.class("bc-file-input__file-list"),
583
- mt(d, (_, w) => {
584
- const y = w.index;
583
+ mt(d, ($, x) => {
584
+ const y = x.index;
585
585
  return C.div(
586
586
  i.class("bc-file-input__file-item"),
587
587
  C.div(
588
588
  i.class("bc-file-input__file-icon"),
589
- Rt(_)
589
+ Rt($)
590
590
  ),
591
591
  C.div(
592
592
  i.class("bc-file-input__file-info"),
593
593
  C.div(
594
594
  i.class("bc-file-input__file-name"),
595
- i.title(_.$.name),
596
- _.$.name
595
+ i.title($.$.name),
596
+ $.$.name
597
597
  ),
598
598
  C.div(
599
599
  i.class("bc-file-input__file-meta"),
600
- L(
601
- _.$.size,
600
+ V(
601
+ $.$.size,
602
602
  I.$.fileSizeUnits
603
603
  )(
604
- (M, A) => oe(M, { units: A })
604
+ (D, A) => oe(D, { units: A })
605
605
  ),
606
606
  " • ",
607
- L(
608
- _.$.type,
607
+ V(
608
+ $.$.type,
609
609
  I.$.unknownType
610
- )((M, A) => M || A)
610
+ )((D, A) => D || A)
611
611
  )
612
612
  ),
613
613
  It(
@@ -615,7 +615,7 @@ const Ee = (t, ...e) => {
615
615
  size: "sm",
616
616
  label: I.$.removeFile,
617
617
  disabled: l,
618
- onClick: () => $(y)
618
+ onClick: () => _(y)
619
619
  },
620
620
  i.class("bc-file-input__remove-button")
621
621
  )
@@ -623,7 +623,7 @@ const Ee = (t, ...e) => {
623
623
  })
624
624
  ),
625
625
  E(
626
- d.map(({ length: _ }) => _ > 1),
626
+ d.map(({ length: $ }) => $ > 1),
627
627
  () => C.div(
628
628
  i.class(
629
629
  "bc-file-input__clear-all-button-container"
@@ -633,8 +633,8 @@ const Ee = (t, ...e) => {
633
633
  i.class("bc-file-input__clear-all-button"),
634
634
  i.disabled(l),
635
635
  I.$.clearAllFiles,
636
- k.click((_) => {
637
- _.preventDefault(), _.stopPropagation(), v();
636
+ k.click(($) => {
637
+ $.preventDefault(), $.stopPropagation(), b();
638
638
  })
639
639
  )
640
640
  )
@@ -688,16 +688,16 @@ function Oe(t) {
688
688
  onChange: s,
689
689
  onInput: n,
690
690
  ...r
691
- } = t, o = /* @__PURE__ */ new Map(), a = p.toSignal(e).map((f) => f.map((b, h) => {
692
- const d = o.get(b), x = Ne(b ?? ""), m = d?.type || Ue(x), $ = d?.name ?? `file-${h}`, v = x.buffer.slice(
693
- x.byteOffset,
694
- x.byteOffset + x.byteLength
695
- ), g = new Blob([v], { type: m });
696
- return new File([g], $, { type: m });
697
- })), u = (f) => (b) => {
698
- f && ze(b).then((h) => {
699
- for (const [d, x] of h.entries())
700
- o.set(x, { name: b[d].name, type: b[d].type });
691
+ } = t, o = /* @__PURE__ */ new Map(), a = p.toSignal(e).map((f) => f.map((g, h) => {
692
+ const d = o.get(g), v = Ne(g ?? ""), w = d?.type || Ue(v), _ = d?.name ?? `file-${h}`, b = v.buffer.slice(
693
+ v.byteOffset,
694
+ v.byteOffset + v.byteLength
695
+ ), m = new Blob([b], { type: w });
696
+ return new File([m], _, { type: w });
697
+ })), u = (f) => (g) => {
698
+ f && ze(g).then((h) => {
699
+ for (const [d, v] of h.entries())
700
+ o.set(v, { name: g[d].name, type: g[d].type });
701
701
  f(h);
702
702
  });
703
703
  }, l = u(s), c = u(n);
@@ -730,90 +730,90 @@ function $n(t) {
730
730
  function Pe(t, e) {
731
731
  const [s, n, r] = t, o = s << 16 ^ n << 8 ^ r, a = Ie(o), u = 6 + Math.floor(a() * 5), l = 0.18 + a() * 0.06, c = [];
732
732
  for (let d = 0; d < u; d++) {
733
- const x = d / u * Math.PI * 2, m = e * (1 + (a() * 2 - 1) * l), $ = Math.cos(x) * m, v = Math.sin(x) * m;
734
- c.push({ x: $, y: v });
733
+ const v = d / u * Math.PI * 2, w = e * (1 + (a() * 2 - 1) * l), _ = Math.cos(v) * w, b = Math.sin(v) * w;
734
+ c.push({ x: _, y: b });
735
735
  }
736
- const f = (c[0].x + c[u - 1].x) / 2, b = (c[0].y + c[u - 1].y) / 2;
737
- let h = `M ${f.toFixed(3)} ${b.toFixed(3)}`;
736
+ const f = (c[0].x + c[u - 1].x) / 2, g = (c[0].y + c[u - 1].y) / 2;
737
+ let h = `M ${f.toFixed(3)} ${g.toFixed(3)}`;
738
738
  for (let d = 0; d < u; d++) {
739
- const x = c[d], m = c[(d + 1) % u], $ = (x.x + m.x) / 2, v = (x.y + m.y) / 2;
740
- h += ` Q ${x.x.toFixed(3)} ${x.y.toFixed(3)} ${$.toFixed(3)} ${v.toFixed(3)}`;
739
+ const v = c[d], w = c[(d + 1) % u], _ = (v.x + w.x) / 2, b = (v.y + w.y) / 2;
740
+ h += ` Q ${v.x.toFixed(3)} ${v.y.toFixed(3)} ${_.toFixed(3)} ${b.toFixed(3)}`;
741
741
  }
742
742
  return h += " Z", h;
743
743
  }
744
744
  const yn = (t) => {
745
- const { value: e, onBlur: s, onChange: n, onInput: r, displayValue: o, size: a, withAlpha: u } = t, l = p.map(a ?? 32, (w) => w), c = p.map(e, (w) => $e(w ?? "#000000")), f = p.map(
745
+ const { value: e, onBlur: s, onChange: n, onInput: r, displayValue: o, size: a, withAlpha: u } = t, l = p.map(a ?? 32, (x) => x), c = p.map(e, (x) => $e(x ?? "#000000")), f = p.map(
746
746
  c,
747
- ([w, y, M]) => [w, y, M]
748
- ), b = p.map(c, ([, , , w]) => w), h = et(p.get(b) ?? 1), d = p.map(u ?? !1, (w) => w), x = p.map(
747
+ ([x, y, D]) => [x, y, D]
748
+ ), g = p.map(c, ([, , , x]) => x), h = et(p.get(g) ?? 1), d = p.map(u ?? !1, (x) => x), v = p.map(
749
749
  t.colorTextFormat ?? "rgb",
750
- (w) => w
751
- ), m = L(
750
+ (x) => x
751
+ ), w = V(
752
752
  f,
753
753
  h,
754
- x,
754
+ v,
755
755
  d
756
756
  )(
757
- ([w, y, M], A, F, S) => lt(w, y, M, A ?? 1, ot(F, S), S)
758
- ), $ = p.map(
757
+ ([x, y, D], A, F, S) => lt(x, y, D, A ?? 1, ot(F, S), S)
758
+ ), _ = p.map(
759
759
  t.colorTextFormat ?? "hex",
760
- (w) => w
761
- ), v = p.map(l, (w) => `${-w / 2} ${-w / 2} ${w} ${w}`), g = L(
760
+ (x) => x
761
+ ), b = p.map(l, (x) => `${-x / 2} ${-x / 2} ${x} ${x}`), m = V(
762
762
  f,
763
763
  l
764
- )((w, y) => Pe(w, y / 2)), D = L(
764
+ )((x, y) => Pe(x, y / 2)), M = V(
765
765
  f,
766
766
  h,
767
767
  d
768
768
  )(
769
- ([w, y, M], A, F) => F || A < 1 ? ye(w, y, M, A) : Ct(w, y, M)
769
+ ([x, y, D], A, F) => F || A < 1 ? ye(x, y, D, A) : Ct(x, y, D)
770
770
  ), I = C.div(
771
771
  i.class("bc-color-swatch-input__control"),
772
772
  i.class(
773
773
  p.map(
774
774
  d,
775
- (w) => w ? "bc-color-swatch-input__control--alpha" : ""
775
+ (x) => x ? "bc-color-swatch-input__control--alpha" : ""
776
776
  )
777
777
  ),
778
778
  i.style(
779
- L(l)((w) => `min-width:${w + 2}px;height:${w + 2}px`)
779
+ V(l)((x) => `min-width:${x + 2}px;height:${x + 2}px`)
780
780
  ),
781
781
  // The SVG blob preview
782
782
  At.svg(
783
783
  i.class("bc-color-swatch-input__svg"),
784
- gt.viewBox(v),
785
- At.path(gt.d(g), gt.fill(D))
784
+ gt.viewBox(b),
785
+ At.path(gt.d(m), gt.fill(M))
786
786
  ),
787
787
  // Invisible native input overlays the blob for picker and accessibility
788
788
  C.input(
789
789
  i.type("color"),
790
790
  H(t),
791
791
  // Native color input needs hex without alpha
792
- i.value(p.map(f, ([w, y, M]) => Ct(w, y, M))),
792
+ i.value(p.map(f, ([x, y, D]) => Ct(x, y, D))),
793
793
  i.class(
794
794
  "bc-input bc-color-swatch-input bc-color-swatch-input__native"
795
795
  ),
796
796
  s != null ? k.blur(s) : T,
797
- n != null ? k.change((w) => {
798
- const y = w.target.value;
797
+ n != null ? k.change((x) => {
798
+ const y = x.target.value;
799
799
  if (!n) return;
800
- const { r: M, g: A, b: F } = it(y) ?? { r: 0, g: 0, b: 0 }, S = p.get(h) ?? 1, V = ot(
801
- p.get($),
800
+ const { r: D, g: A, b: F } = it(y) ?? { r: 0, g: 0, b: 0 }, S = p.get(h) ?? 1, L = ot(
801
+ p.get(_),
802
802
  p.get(d)
803
- ), N = lt(M, A, F, S, V, p.get(d));
803
+ ), N = lt(D, A, F, S, L, p.get(d));
804
804
  n(N);
805
805
  }) : T,
806
- r != null ? k.input((w) => {
807
- const y = w.target.value;
806
+ r != null ? k.input((x) => {
807
+ const y = x.target.value;
808
808
  if (!r) return;
809
- const { r: M, g: A, b: F } = it(y) ?? { r: 0, g: 0, b: 0 }, S = p.get(h) ?? 1, V = ot(
810
- p.get($),
809
+ const { r: D, g: A, b: F } = it(y) ?? { r: 0, g: 0, b: 0 }, S = p.get(h) ?? 1, L = ot(
810
+ p.get(_),
811
811
  p.get(d)
812
- ), N = lt(M, A, F, S, V, p.get(d));
812
+ ), N = lt(D, A, F, S, L, p.get(d));
813
813
  r(N);
814
814
  }) : T
815
815
  )
816
- ), _ = E(
816
+ ), $ = E(
817
817
  d,
818
818
  () => C.input(
819
819
  i.type("range"),
@@ -821,25 +821,25 @@ const yn = (t) => {
821
821
  i.min(0),
822
822
  i.max(1),
823
823
  i.step(0.01),
824
- i.value(p.map(h, (w) => String(w ?? 1))),
824
+ i.value(p.map(h, (x) => String(x ?? 1))),
825
825
  i.disabled(t.disabled),
826
- k.input((w) => {
827
- const y = parseFloat(w.target.value);
826
+ k.input((x) => {
827
+ const y = parseFloat(x.target.value);
828
828
  h.set(y);
829
- const [M, A, F] = p.get(f), S = ot(
830
- p.get($),
829
+ const [D, A, F] = p.get(f), S = ot(
830
+ p.get(_),
831
831
  p.get(d)
832
- ), V = lt(M, A, F, y, S, p.get(d));
833
- r?.(V);
832
+ ), L = lt(D, A, F, y, S, p.get(d));
833
+ r?.(L);
834
834
  }),
835
- k.change((w) => {
836
- const y = parseFloat(w.target.value);
835
+ k.change((x) => {
836
+ const y = parseFloat(x.target.value);
837
837
  h.set(y);
838
- const [M, A, F] = p.get(f), S = ot(
839
- p.get($),
838
+ const [D, A, F] = p.get(f), S = ot(
839
+ p.get(_),
840
840
  p.get(d)
841
- ), V = lt(M, A, F, y, S, p.get(d));
842
- n?.(V);
841
+ ), L = lt(D, A, F, y, S, p.get(d));
842
+ n?.(L);
843
843
  })
844
844
  )
845
845
  );
@@ -853,9 +853,9 @@ const yn = (t) => {
853
853
  after: B(
854
854
  E(
855
855
  o ?? !1,
856
- () => C.span(i.class("bc-color-swatch-input__rgb"), m)
856
+ () => C.span(i.class("bc-color-swatch-input__rgb"), w)
857
857
  ),
858
- _,
858
+ $,
859
859
  t.after
860
860
  )
861
861
  });
@@ -881,7 +881,7 @@ function We(t, e, s) {
881
881
  function Cn({ variant: t = "default", size: e = "md", roundedness: s = "lg" } = {}, ...n) {
882
882
  return C.div(
883
883
  i.class(
884
- L(
884
+ V(
885
885
  t,
886
886
  e,
887
887
  s
@@ -967,7 +967,7 @@ const kn = ({
967
967
  t,
968
968
  (n) => te(n, {
969
969
  value: (r) => {
970
- const o = L(
970
+ const o = V(
971
971
  r,
972
972
  s
973
973
  )((a, u) => e(a.value, u));
@@ -1016,8 +1016,8 @@ const kn = ({
1016
1016
  input: C.select(
1017
1017
  ut((c) => {
1018
1018
  l = c;
1019
- const f = new MutationObserver((b) => {
1020
- const { removedNodes: h } = b[0];
1019
+ const f = new MutationObserver((g) => {
1020
+ const { removedNodes: h } = g[0];
1021
1021
  h.length > 0 && (l.selectedIndex = 0);
1022
1022
  });
1023
1023
  return f.observe(c, { childList: !0 }), z(() => f.disconnect());
@@ -1167,48 +1167,48 @@ function Ut(t, e, s, n, r, o) {
1167
1167
  l,
1168
1168
  u,
1169
1169
  n.useDefaultDefinitions ?? !0
1170
- ), f = Ge(n.allowMode, n.allow), b = /* @__PURE__ */ new Set();
1171
- for (const S of c) S.type === "literal" && b.add(S.char);
1172
- if (n.prefix) for (const S of n.prefix) b.add(S);
1173
- if (n.suffix) for (const S of n.suffix) b.add(S);
1174
- const h = Array.from(t).filter((S) => f(S) && !b.has(S));
1170
+ ), f = Ge(n.allowMode, n.allow), g = /* @__PURE__ */ new Set();
1171
+ for (const S of c) S.type === "literal" && g.add(S.char);
1172
+ if (n.prefix) for (const S of n.prefix) g.add(S);
1173
+ if (n.suffix) for (const S of n.suffix) g.add(S);
1174
+ const h = Array.from(t).filter((S) => f(S) && !g.has(S));
1175
1175
  if (h.length === 0) return { value: "", cursor: 0, completed: !1 };
1176
- const d = [], x = [];
1177
- let m = 0, $ = 0, v = 0, g = -1;
1176
+ const d = [], v = [];
1177
+ let w = 0, _ = 0, b = 0, m = -1;
1178
1178
  for (const S of c) {
1179
1179
  if (S.type === "literal") {
1180
- d.push(S.char), x.push({ kind: "literal", filled: !0 });
1180
+ d.push(S.char), v.push({ kind: "literal", filled: !0 });
1181
1181
  continue;
1182
1182
  }
1183
- $ += S.optional ? 0 : 1;
1184
- const V = h[m];
1185
- if (V == null)
1183
+ _ += S.optional ? 0 : 1;
1184
+ const L = h[w];
1185
+ if (L == null)
1186
1186
  break;
1187
1187
  if (S.type === "any") {
1188
- v++, d.push(S.transform ? S.transform(V) : V), x.push({ kind: "slot", filled: !0 }), g = x.length - 1, m++;
1188
+ b++, d.push(S.transform ? S.transform(L) : L), v.push({ kind: "slot", filled: !0 }), m = v.length - 1, w++;
1189
1189
  continue;
1190
1190
  }
1191
1191
  if (S.type === "pattern")
1192
- if (S.pattern.test(V)) {
1193
- v++;
1194
- const N = S.transform ? S.transform(V) : V;
1195
- d.push(N), x.push({ kind: "slot", filled: !0 }), g = x.length - 1, m++;
1192
+ if (S.pattern.test(L)) {
1193
+ b++;
1194
+ const N = S.transform ? S.transform(L) : L;
1195
+ d.push(N), v.push({ kind: "slot", filled: !0 }), m = v.length - 1, w++;
1196
1196
  } else {
1197
- m++;
1197
+ w++;
1198
1198
  continue;
1199
1199
  }
1200
1200
  }
1201
- const D = d.join(""), I = (n.prefix ?? "") + D + (n.suffix ?? "");
1202
- let w = (n.prefix ?? "").length;
1203
- if (g >= 0) {
1204
- let S = g + 1;
1201
+ const M = d.join(""), I = (n.prefix ?? "") + M + (n.suffix ?? "");
1202
+ let x = (n.prefix ?? "").length;
1203
+ if (m >= 0) {
1204
+ let S = m + 1;
1205
1205
  if ((o?.policy ?? "smart") !== "sticky")
1206
- for (; S < x.length && x[S].kind === "literal"; ) S++;
1207
- w += S;
1206
+ for (; S < v.length && v[S].kind === "literal"; ) S++;
1207
+ x += S;
1208
1208
  }
1209
- const y = n.completion?.mode === "min" ? (n.completion.minChars ?? 0) <= v : n.completion?.mode === "custom" ? !!n.completion.isComplete?.(I) : $ > 0 && v >= $, M = n.pipe?.(I, { ...a, completed: y });
1210
- let A, F = w;
1211
- return M === !1 ? (A = e, F = e.length) : typeof M == "string" ? (A = M, F = M.length) : typeof M == "object" && M ? (A = M.value, F = M.cursor ?? M.value.length) : A = I, { value: A, cursor: F, completed: y };
1209
+ const y = n.completion?.mode === "min" ? (n.completion.minChars ?? 0) <= b : n.completion?.mode === "custom" ? !!n.completion.isComplete?.(I) : _ > 0 && b >= _, D = n.pipe?.(I, { ...a, completed: y });
1210
+ let A, F = x;
1211
+ return D === !1 ? (A = e, F = e.length) : typeof D == "string" ? (A = D, F = D.length) : typeof D == "object" && D ? (A = D.value, F = D.cursor ?? D.value.length) : A = I, { value: A, cursor: F, completed: y };
1212
1212
  }
1213
1213
  function Qe(t, e) {
1214
1214
  const s = e?.strategy ?? "none";
@@ -1226,44 +1226,44 @@ const qt = (t) => {
1226
1226
  definitions: l,
1227
1227
  useDefaultDefinitions: c,
1228
1228
  extraLiterals: f,
1229
- prefix: b,
1229
+ prefix: g,
1230
1230
  suffix: h,
1231
1231
  autofix: d,
1232
- pipe: x,
1233
- completion: m,
1234
- unmask: $,
1235
- allowMode: v,
1236
- allow: g,
1237
- placeholder: D,
1232
+ pipe: v,
1233
+ completion: w,
1234
+ unmask: _,
1235
+ allowMode: b,
1236
+ allow: m,
1237
+ placeholder: M,
1238
1238
  placeholderOptions: I
1239
- } = t, _ = L(
1239
+ } = t, $ = V(
1240
1240
  e,
1241
1241
  u,
1242
1242
  l,
1243
1243
  c,
1244
1244
  f,
1245
- b,
1245
+ g,
1246
1246
  h,
1247
1247
  d,
1248
- m,
1249
- $,
1250
- v,
1251
- D,
1248
+ w,
1249
+ _,
1250
+ b,
1251
+ M,
1252
1252
  I
1253
- )((y, M, A, F, S, V, N, st, rt, tt, Q, pt, q) => M ? Ut(y ?? "", "", M, {
1253
+ )((y, D, A, F, S, L, N, st, rt, tt, Q, pt, q) => D ? Ut(y ?? "", "", D, {
1254
1254
  definitions: A ?? {},
1255
1255
  useDefaultDefinitions: F ?? !0,
1256
1256
  extraLiterals: S ?? [],
1257
1257
  autofix: st ?? "none",
1258
1258
  completion: rt ?? { mode: "mask" },
1259
- pipe: x ?? ((R) => R),
1259
+ pipe: v ?? ((R) => R),
1260
1260
  unmask: tt ?? { strategy: "none" },
1261
1261
  allowMode: Q ?? "all",
1262
- allow: g,
1263
- prefix: V,
1262
+ allow: m,
1263
+ prefix: L,
1264
1264
  suffix: N
1265
- }).value : y ?? ""), w = (y, M) => {
1266
- const A = y.value ?? "", F = p.get(e) ?? "", S = u != null ? p.get(u) : null, V = l != null ? p.get(l) : void 0, N = c != null ? p.get(c) : void 0, st = f != null ? p.get(f) : void 0, rt = d != null ? p.get(d) : void 0, tt = m != null ? p.get(m) : void 0, Q = $ != null ? p.get($) : void 0, pt = v != null ? p.get(v) : void 0, q = b != null ? p.get(b) : void 0, R = h != null ? p.get(h) : void 0, {
1265
+ }).value : y ?? ""), x = (y, D) => {
1266
+ const A = y.value ?? "", F = p.get(e) ?? "", S = u != null ? p.get(u) : null, L = l != null ? p.get(l) : void 0, N = c != null ? p.get(c) : void 0, st = f != null ? p.get(f) : void 0, rt = d != null ? p.get(d) : void 0, tt = w != null ? p.get(w) : void 0, Q = _ != null ? p.get(_) : void 0, pt = b != null ? p.get(b) : void 0, q = g != null ? p.get(g) : void 0, R = h != null ? p.get(h) : void 0, {
1267
1267
  value: J,
1268
1268
  cursor: ht,
1269
1269
  completed: St
@@ -1272,15 +1272,15 @@ const qt = (t) => {
1272
1272
  F,
1273
1273
  S,
1274
1274
  {
1275
- definitions: V ?? {},
1275
+ definitions: L ?? {},
1276
1276
  useDefaultDefinitions: N ?? !0,
1277
1277
  extraLiterals: st ?? [],
1278
1278
  autofix: rt ?? "none",
1279
1279
  completion: tt ?? { mode: "mask" },
1280
- pipe: x ?? ((Gt) => Gt),
1280
+ pipe: v ?? ((Gt) => Gt),
1281
1281
  unmask: Q ?? { strategy: "none" },
1282
1282
  allowMode: pt ?? "all",
1283
- allow: g,
1283
+ allow: m,
1284
1284
  prefix: q,
1285
1285
  suffix: R
1286
1286
  },
@@ -1300,31 +1300,31 @@ const qt = (t) => {
1300
1300
  conformed: J,
1301
1301
  completed: St,
1302
1302
  cursor: ht
1303
- }), M === "input" ? r?.(J) : (n?.(J), St && a?.({ raw: Tt, conformed: J }));
1303
+ }), D === "input" ? r?.(J) : (n?.(J), St && a?.({ raw: Tt, conformed: J }));
1304
1304
  };
1305
1305
  return B(
1306
- z(_),
1306
+ z($),
1307
1307
  P({
1308
1308
  ...t,
1309
1309
  input: K.text(
1310
1310
  H(t),
1311
- i.value(_),
1311
+ i.value($),
1312
1312
  i.class("bc-input"),
1313
1313
  s != null ? k.blur(s) : T,
1314
1314
  ut(
1315
1315
  (y) => y instanceof HTMLInputElement ? B(
1316
- k.input(() => w(y, "input")),
1317
- k.change(() => w(y, "change")),
1318
- k.keydown((M) => {
1319
- if (M.key !== "Backspace" || !(t.cursor ? p.get(t.cursor)?.backspaceRubberBand ?? !0 : !0)) return;
1316
+ k.input(() => x(y, "input")),
1317
+ k.change(() => x(y, "change")),
1318
+ k.keydown((D) => {
1319
+ if (D.key !== "Backspace" || !(t.cursor ? p.get(t.cursor)?.backspaceRubberBand ?? !0 : !0)) return;
1320
1320
  const F = y.selectionStart ?? 0, S = y.selectionEnd ?? F;
1321
1321
  if (F !== S || F <= 0) return;
1322
- const V = y.value ?? "", N = u != null ? p.get(u) : null;
1322
+ const L = y.value ?? "", N = u != null ? p.get(u) : null;
1323
1323
  if (!N) return;
1324
- const st = l != null ? p.get(l) : void 0, rt = c != null ? p.get(c) : !0, tt = b != null ? p.get(b) : void 0, Q = h != null ? p.get(h) : void 0, pt = Xt(
1325
- typeof N == "function" ? N(V, {
1326
- raw: V,
1327
- previousConformed: V,
1324
+ const st = l != null ? p.get(l) : void 0, rt = c != null ? p.get(c) : !0, tt = g != null ? p.get(g) : void 0, Q = h != null ? p.get(h) : void 0, pt = Xt(
1325
+ typeof N == "function" ? N(L, {
1326
+ raw: L,
1327
+ previousConformed: L,
1328
1328
  cursor: F,
1329
1329
  completed: !1
1330
1330
  }) : N,
@@ -1335,10 +1335,10 @@ const qt = (t) => {
1335
1335
  R.type === "literal" && q.add(R.char);
1336
1336
  if (tt) for (const R of tt) q.add(R);
1337
1337
  if (Q) for (const R of Q) q.add(R);
1338
- if (q.has(V[F - 1])) {
1338
+ if (q.has(L[F - 1])) {
1339
1339
  let R = F - 1;
1340
- for (; R >= 0 && q.has(V[R]); ) R--;
1341
- R >= 0 && (M.preventDefault(), M.stopPropagation(), y.value = V.slice(0, R) + V.slice(R + 1), w(y, "input"));
1340
+ for (; R >= 0 && q.has(L[R]); ) R--;
1341
+ R >= 0 && (D.preventDefault(), D.stopPropagation(), y.value = L.slice(0, R) + L.slice(R + 1), x(y, "input"));
1342
1342
  }
1343
1343
  })
1344
1344
  ) : T
@@ -1433,7 +1433,7 @@ const Dn = (t) => {
1433
1433
  ...t,
1434
1434
  input: C.textarea(
1435
1435
  i.class(
1436
- L(t.size ?? "md")(
1436
+ V(t.size ?? "md")(
1437
1437
  (a) => ue(
1438
1438
  !1,
1439
1439
  a ?? "md"
@@ -1461,27 +1461,27 @@ const Dn = (t) => {
1461
1461
  });
1462
1462
  }, Vn = (t) => {
1463
1463
  const { value: e, step: s, min: n, max: r, onBlur: o, onChange: a, onInput: u, after: l } = t, c = (h) => {
1464
- const d = n != null ? p.get(n) : void 0, x = r != null ? p.get(r) : void 0;
1465
- return d != null && h < d ? d : x != null && h > x ? x : h;
1464
+ const d = n != null ? p.get(n) : void 0, v = r != null ? p.get(r) : void 0;
1465
+ return d != null && h < d ? d : v != null && h > v ? v : h;
1466
1466
  }, f = s != null ? W(X, (h) => {
1467
- const d = L(
1467
+ const d = V(
1468
1468
  e,
1469
1469
  n
1470
- )((v, g) => g == null ? !0 : (v ?? 0) > g), x = L(
1470
+ )((b, m) => m == null ? !0 : (b ?? 0) > m), v = V(
1471
1471
  e,
1472
1472
  r
1473
- )((v, g) => g == null ? !0 : (v ?? 0) < g), m = (v) => {
1474
- const g = p.get(e) ?? 0, D = p.get(s), I = v?.shiftKey ? 10 : 1, _ = g - D * I, w = n != null ? p.get(n) : void 0;
1475
- if (w != null && _ < w)
1473
+ )((b, m) => m == null ? !0 : (b ?? 0) < m), w = (b) => {
1474
+ const m = p.get(e) ?? 0, M = p.get(s), I = b?.shiftKey ? 10 : 1, $ = m - M * I, x = n != null ? p.get(n) : void 0;
1475
+ if (x != null && $ < x)
1476
1476
  return;
1477
- const y = c(_);
1478
- y !== g && a && a(y);
1479
- }, $ = (v) => {
1480
- const g = p.get(e) ?? 0, D = p.get(s), I = v?.shiftKey ? 10 : 1, _ = g + D * I, w = r != null ? p.get(r) : void 0;
1481
- if (w != null && _ > w)
1477
+ const y = c($);
1478
+ y !== m && a && a(y);
1479
+ }, _ = (b) => {
1480
+ const m = p.get(e) ?? 0, M = p.get(s), I = b?.shiftKey ? 10 : 1, $ = m + M * I, x = r != null ? p.get(r) : void 0;
1481
+ if (x != null && $ > x)
1482
1482
  return;
1483
- const y = c(_);
1484
- y !== g && a && a(y);
1483
+ const y = c($);
1484
+ y !== m && a && a(y);
1485
1485
  };
1486
1486
  return ct(
1487
1487
  i.class("bc-number-input-steppers"),
@@ -1492,12 +1492,12 @@ const Dn = (t) => {
1492
1492
  "bc-button bc-number-input-steppers-button bc-number-input-steppers-button--increment"
1493
1493
  ),
1494
1494
  i.disabled(
1495
- L(
1496
- x,
1495
+ V(
1496
+ v,
1497
1497
  t.disabled ?? !1
1498
- )((v, g) => !v || g)
1498
+ )((b, m) => !b || m)
1499
1499
  ),
1500
- k.click((v) => $(v)),
1500
+ k.click((b) => _(b)),
1501
1501
  U.label(h.$.incrementValue),
1502
1502
  O({ icon: "line-md:plus", size: "xs" })
1503
1503
  ),
@@ -1508,17 +1508,17 @@ const Dn = (t) => {
1508
1508
  "bc-button bc-number-input-steppers-button bc-number-input-steppers-button--decrement"
1509
1509
  ),
1510
1510
  i.disabled(
1511
- L(
1511
+ V(
1512
1512
  d,
1513
1513
  t.disabled ?? !1
1514
- )((v, g) => !v || g)
1514
+ )((b, m) => !b || m)
1515
1515
  ),
1516
- k.click((v) => m(v)),
1516
+ k.click((b) => w(b)),
1517
1517
  U.label(h.$.decrementValue),
1518
1518
  O({ icon: "line-md:minus", size: "xs" })
1519
1519
  )
1520
1520
  );
1521
- }) : null, b = l != null && f != null ? B(f, l) : l ?? f;
1521
+ }) : null, g = l != null && f != null ? B(f, l) : l ?? f;
1522
1522
  return P({
1523
1523
  ...t,
1524
1524
  input: K.number(
@@ -1548,11 +1548,11 @@ const Dn = (t) => {
1548
1548
  // Add wheel event support when step is defined
1549
1549
  s != null ? k.wheel((h) => {
1550
1550
  h.preventDefault();
1551
- const d = p.get(e) ?? 0, x = p.get(s), m = h.shiftKey ? 10 : 1, $ = h.deltaY < 0 ? x * m : -x * m, v = c(d + $);
1552
- v !== d && a && a(v);
1551
+ const d = p.get(e) ?? 0, v = p.get(s), w = h.shiftKey ? 10 : 1, _ = h.deltaY < 0 ? v * w : -v * w, b = c(d + _);
1552
+ b !== d && a && a(b);
1553
1553
  }) : T
1554
1554
  ),
1555
- after: b
1555
+ after: g
1556
1556
  });
1557
1557
  }, Nt = (t) => {
1558
1558
  if (t == null || t === "") return null;
@@ -1560,34 +1560,34 @@ const Dn = (t) => {
1560
1560
  return Number.isNaN(e) ? null : e;
1561
1561
  }, Ln = (t) => {
1562
1562
  const { value: e, step: s, min: n, max: r, onBlur: o, onChange: a, onInput: u, after: l } = t, c = (d) => {
1563
- const x = n != null ? p.get(n) : void 0, m = r != null ? p.get(r) : void 0;
1564
- return x != null && d < x ? x : m != null && d > m ? m : d;
1563
+ const v = n != null ? p.get(n) : void 0, w = r != null ? p.get(r) : void 0;
1564
+ return v != null && d < v ? v : w != null && d > w ? w : d;
1565
1565
  }, f = (() => {
1566
1566
  if (s == null) return null;
1567
- const d = L(
1567
+ const d = V(
1568
1568
  e,
1569
1569
  n
1570
- )((g, D) => {
1571
- const I = g ?? 0;
1572
- return D == null ? !0 : I > D;
1573
- }), x = L(
1570
+ )((m, M) => {
1571
+ const I = m ?? 0;
1572
+ return M == null ? !0 : I > M;
1573
+ }), v = V(
1574
1574
  e,
1575
1575
  r
1576
- )((g, D) => {
1577
- const I = g ?? 0;
1578
- return D == null ? !0 : I < D;
1579
- }), m = (g) => {
1580
- const D = p.get(e) ?? 0, I = p.get(s), _ = g?.shiftKey ? 10 : 1, w = D - I * _, y = n != null ? p.get(n) : void 0;
1581
- if (y != null && w < y) return;
1582
- const M = c(w);
1583
- M !== D && a && a(M);
1584
- }, $ = (g) => {
1585
- const D = p.get(e) ?? 0, I = p.get(s), _ = g?.shiftKey ? 10 : 1, w = D + I * _, y = r != null ? p.get(r) : void 0;
1586
- if (y != null && w > y) return;
1587
- const M = c(w);
1588
- M !== D && a && a(M);
1576
+ )((m, M) => {
1577
+ const I = m ?? 0;
1578
+ return M == null ? !0 : I < M;
1579
+ }), w = (m) => {
1580
+ const M = p.get(e) ?? 0, I = p.get(s), $ = m?.shiftKey ? 10 : 1, x = M - I * $, y = n != null ? p.get(n) : void 0;
1581
+ if (y != null && x < y) return;
1582
+ const D = c(x);
1583
+ D !== M && a && a(D);
1584
+ }, _ = (m) => {
1585
+ const M = p.get(e) ?? 0, I = p.get(s), $ = m?.shiftKey ? 10 : 1, x = M + I * $, y = r != null ? p.get(r) : void 0;
1586
+ if (y != null && x > y) return;
1587
+ const D = c(x);
1588
+ D !== M && a && a(D);
1589
1589
  };
1590
- return ((g, D) => ct(
1590
+ return ((m, M) => ct(
1591
1591
  i.class("bc-number-input-steppers"),
1592
1592
  C.button(
1593
1593
  i.type("button"),
@@ -1595,13 +1595,13 @@ const Dn = (t) => {
1595
1595
  "bc-button bc-number-input-steppers-button bc-number-input-steppers-button--increment"
1596
1596
  ),
1597
1597
  i.disabled(
1598
- L(
1599
- x,
1598
+ V(
1599
+ v,
1600
1600
  t.disabled ?? !1
1601
- )((I, _) => !I || _)
1601
+ )((I, $) => !I || $)
1602
1602
  ),
1603
- k.click((I) => $(I)),
1604
- U.label(g),
1603
+ k.click((I) => _(I)),
1604
+ U.label(m),
1605
1605
  O({ icon: "line-md:plus", size: "xs" })
1606
1606
  ),
1607
1607
  C.button(
@@ -1610,20 +1610,20 @@ const Dn = (t) => {
1610
1610
  "bc-button bc-number-input-steppers-button bc-number-input-steppers-button--decrement"
1611
1611
  ),
1612
1612
  i.disabled(
1613
- L(
1613
+ V(
1614
1614
  d,
1615
1615
  t.disabled ?? !1
1616
- )((I, _) => !I || _)
1616
+ )((I, $) => !I || $)
1617
1617
  ),
1618
- k.click((I) => m(I)),
1619
- U.label(D),
1618
+ k.click((I) => w(I)),
1619
+ U.label(M),
1620
1620
  O({ icon: "line-md:minus", size: "xs" })
1621
1621
  )
1622
1622
  ))(
1623
1623
  yt.incrementValue,
1624
1624
  yt.decrementValue
1625
1625
  );
1626
- })(), b = Y(e, t.disabled, a), h = l != null && f != null ? B(f, b, l) : l != null ? B(b, l) : f != null ? B(f, b) : b;
1626
+ })(), g = Y(e, t.disabled, a), h = l != null && f != null ? B(f, g, l) : l != null ? B(g, l) : f != null ? B(f, g) : g;
1627
1627
  return P({
1628
1628
  ...t,
1629
1629
  input: K.number(
@@ -1650,21 +1650,21 @@ const Dn = (t) => {
1650
1650
  o != null ? k.blur(j(o)) : T,
1651
1651
  a != null ? k.change(
1652
1652
  j((d) => {
1653
- const x = Nt(d);
1654
- a(x);
1653
+ const v = Nt(d);
1654
+ a(v);
1655
1655
  })
1656
1656
  ) : T,
1657
1657
  u != null ? k.input(
1658
1658
  j((d) => {
1659
- const x = Nt(d);
1660
- u(x);
1659
+ const v = Nt(d);
1660
+ u(v);
1661
1661
  })
1662
1662
  ) : T,
1663
1663
  // Wheel support when step is defined
1664
1664
  s != null ? k.wheel((d) => {
1665
1665
  d.preventDefault();
1666
- const x = p.get(e) ?? 0, m = p.get(s), $ = d.shiftKey ? 10 : 1, v = d.deltaY < 0 ? m * $ : -m * $, g = c(x + v);
1667
- g !== x && a && a(g);
1666
+ const v = p.get(e) ?? 0, w = p.get(s), _ = d.shiftKey ? 10 : 1, b = d.deltaY < 0 ? w * _ : -w * _, m = c(v + b);
1667
+ m !== v && a && a(m);
1668
1668
  }) : T
1669
1669
  ),
1670
1670
  after: h
@@ -1679,59 +1679,63 @@ const Dn = (t) => {
1679
1679
  disabled: a = !1,
1680
1680
  size: u = "md",
1681
1681
  id: l,
1682
- color: c = "primary"
1682
+ color: c = "primary",
1683
+ tabIndex: f = 0
1683
1684
  }) => {
1684
- const f = l ?? be("switch");
1685
- function b(m, $) {
1686
- const v = [
1685
+ const g = l ?? be("switch");
1686
+ function h(_, b) {
1687
+ const m = [
1687
1688
  "bc-switch",
1688
- `bc-switch--size-${$}`,
1689
- `bc-switch--${$}`
1689
+ `bc-switch--size-${b}`,
1690
+ `bc-switch--${b}`
1690
1691
  ];
1691
- return m && v.push("bc-switch--disabled"), v.join(" ");
1692
+ return _ && m.push("bc-switch--disabled"), m.join(" ");
1692
1693
  }
1693
- function h(m) {
1694
- const $ = m ?? "primary", v = /* @__PURE__ */ new Map(), g = Vt($, "solid", "light"), D = Vt($, "solid", "dark");
1695
- return v.set("--switch-track-on-bg", g.backgroundColor), v.set("--switch-track-on-label", g.textColor), v.set("--switch-track-on-bg-dark", D.backgroundColor), v.set("--switch-track-on-label-dark", D.textColor), v.set(
1694
+ function d(_) {
1695
+ const b = _ ?? "primary", m = /* @__PURE__ */ new Map(), M = Vt(b, "solid", "light"), I = Vt(b, "solid", "dark");
1696
+ return m.set("--switch-track-on-bg", M.backgroundColor), m.set("--switch-track-on-label", M.textColor), m.set("--switch-track-on-bg-dark", I.backgroundColor), m.set("--switch-track-on-label-dark", I.textColor), m.set(
1696
1697
  "--switch-track-on-border-dark",
1697
- de($, "dark")
1698
- ), Array.from(v.entries()).map(([I, _]) => `${I}: ${_}`).join("; ");
1698
+ de(b, "dark")
1699
+ ), Array.from(m.entries()).map(([$, x]) => `${$}: ${x}`).join("; ");
1699
1700
  }
1700
- const d = () => {
1701
+ const v = () => {
1701
1702
  p.get(a) || (e?.(!p.get(t)), s?.(!p.get(t)));
1702
- }, x = (m) => {
1703
- p.get(a) || (m.key === " " || m.key === "Enter") && (m.preventDefault(), d());
1703
+ }, w = (_) => {
1704
+ p.get(a) || (_.key === " " || _.key === "Enter") && (_.preventDefault(), v());
1704
1705
  };
1705
1706
  return C.div(
1706
1707
  i.class(
1707
- L(
1708
+ V(
1708
1709
  a ?? !1,
1709
1710
  u
1710
1711
  )(
1711
- (m, $) => b(m ?? !1, $ ?? "md")
1712
+ (_, b) => h(_ ?? !1, b ?? "md")
1712
1713
  )
1713
1714
  ),
1714
1715
  i.style(
1715
- L(c)(
1716
- (m) => h(m)
1716
+ V(c)(
1717
+ (_) => d(_)
1717
1718
  )
1718
1719
  ),
1719
- i.id(f),
1720
+ i.id(g),
1720
1721
  i.role("switch"),
1721
1722
  i.tabindex(
1722
- p.map(a, (m) => m ? -1 : 0)
1723
+ V(
1724
+ a ?? !1,
1725
+ f
1726
+ )((_, b) => _ ? -1 : b ?? 0)
1723
1727
  ),
1724
1728
  U.checked(t),
1725
1729
  U.disabled(a),
1726
- k.click(d),
1727
- k.keydown(x),
1730
+ k.click(v),
1731
+ k.keydown(w),
1728
1732
  n != null ? k.blur(n) : null,
1729
1733
  C.div(
1730
1734
  i.class("bc-switch__track"),
1731
1735
  i.class(
1732
1736
  p.map(
1733
1737
  t,
1734
- (m) => m ? "bc-switch__track--on" : "bc-switch__track--off"
1738
+ (_) => _ ? "bc-switch__track--on" : "bc-switch__track--off"
1735
1739
  )
1736
1740
  ),
1737
1741
  r != null ? C.div(
@@ -1740,7 +1744,7 @@ const Dn = (t) => {
1740
1744
  i.class(
1741
1745
  p.map(
1742
1746
  t,
1743
- (m) => m ? "bc-switch__track-label--hidden" : "bc-switch__track-label--visible"
1747
+ (_) => _ ? "bc-switch__track-label--hidden" : "bc-switch__track-label--visible"
1744
1748
  )
1745
1749
  ),
1746
1750
  r
@@ -1750,31 +1754,31 @@ const Dn = (t) => {
1750
1754
  i.class(
1751
1755
  p.map(
1752
1756
  t,
1753
- (m) => m ? "bc-switch__track-label--visible" : "bc-switch__track-label--hidden"
1757
+ (_) => _ ? "bc-switch__track-label--visible" : "bc-switch__track-label--hidden"
1754
1758
  )
1755
1759
  ),
1756
1760
  o
1757
1761
  ) : null,
1758
1762
  jt(
1759
- (m) => W(
1763
+ (_) => W(
1760
1764
  pe,
1761
- ({ direction: $ }) => C.div(
1765
+ ({ direction: b }) => C.div(
1762
1766
  i.class("bc-switch__thumb"),
1763
1767
  i.class(
1764
1768
  p.map(
1765
1769
  t,
1766
- (v) => v ? "bc-switch__thumb--on" : "bc-switch__thumb--off"
1770
+ (m) => m ? "bc-switch__thumb--on" : "bc-switch__thumb--off"
1767
1771
  )
1768
1772
  ),
1769
1773
  ft.transform(
1770
- L(
1774
+ V(
1771
1775
  t,
1772
- m,
1776
+ _,
1773
1777
  u,
1774
- $
1775
- )((v, { width: g }, D, I) => {
1776
- const _ = (() => {
1777
- switch (D) {
1778
+ b
1779
+ )((m, { width: M }, I, $) => {
1780
+ const x = (() => {
1781
+ switch (I) {
1778
1782
  case "xs":
1779
1783
  return 5;
1780
1784
  case "sm":
@@ -1786,8 +1790,8 @@ const Dn = (t) => {
1786
1790
  case "xl":
1787
1791
  return 8;
1788
1792
  }
1789
- })(), w = I === "rtl" ? `calc((var(--spacing-base) * ${_}) - ${g}px)` : `calc(${g}px - (var(--spacing-base) * ${_}))`;
1790
- return v ? `translateX(${w})` : "translateX(0)";
1793
+ })(), y = $ === "rtl" ? `calc((var(--spacing-base) * ${x}) - ${M}px)` : `calc(${M}px - (var(--spacing-base) * ${x}))`;
1794
+ return m ? `translateX(${y})` : "translateX(0)";
1791
1795
  })
1792
1796
  )
1793
1797
  )
@@ -1866,51 +1870,51 @@ const Dn = (t) => {
1866
1870
  emptyIcon: l = nn,
1867
1871
  size: c = "md",
1868
1872
  onBlur: f,
1869
- rounding: b = 1
1873
+ rounding: g = 1
1870
1874
  } = t, h = () => {
1871
- const g = p.get(b);
1872
- return g > 0 ? g : 1;
1873
- }, d = (g) => Math.min(Math.max(g, 0), p.get(r)), x = (g, D) => {
1875
+ const m = p.get(g);
1876
+ return m > 0 ? m : 1;
1877
+ }, d = (m) => Math.min(Math.max(m, 0), p.get(r)), v = (m, M) => {
1874
1878
  if (p.get(n ?? !1)) return;
1875
- const _ = g.currentTarget.getBoundingClientRect(), w = (g.clientX - _.left) / _.width, y = D - 1 + w, M = h(), A = Math.ceil(y / M) * M, F = d(A);
1879
+ const $ = m.currentTarget.getBoundingClientRect(), x = (m.clientX - $.left) / $.width, y = M - 1 + x, D = h(), A = Math.ceil(y / D) * D, F = d(A);
1876
1880
  s?.(F);
1877
- }, m = (g) => {
1881
+ }, w = (m) => {
1878
1882
  if (p.get(n ?? !1)) return;
1879
- const D = h(), I = p.get(e) ?? 0;
1880
- let _;
1881
- switch (g.key) {
1883
+ const M = h(), I = p.get(e) ?? 0;
1884
+ let $;
1885
+ switch (m.key) {
1882
1886
  case "ArrowRight":
1883
1887
  case "ArrowUp":
1884
- _ = d(I + D);
1888
+ $ = d(I + M);
1885
1889
  break;
1886
1890
  case "ArrowLeft":
1887
1891
  case "ArrowDown":
1888
- _ = d(I - D);
1892
+ $ = d(I - M);
1889
1893
  break;
1890
1894
  case "Home":
1891
- _ = 0;
1895
+ $ = 0;
1892
1896
  break;
1893
1897
  case "End":
1894
- _ = p.get(r);
1898
+ $ = p.get(r);
1895
1899
  break;
1896
1900
  default:
1897
1901
  return;
1898
1902
  }
1899
- g.preventDefault(), s?.(_);
1900
- }, $ = p.map(c, (g) => `bc-icon--${g}`), v = ({ index: g, counter: D }) => C.span(
1903
+ m.preventDefault(), s?.($);
1904
+ }, _ = p.map(c, (m) => `bc-icon--${m}`), b = ({ index: m, counter: M }) => C.span(
1901
1905
  i.class("bc-rating-input__icon-container"),
1902
- i.class($),
1906
+ i.class(_),
1903
1907
  O(
1904
1908
  { icon: l, size: c, color: a, tone: "soft" },
1905
1909
  i.class("bc-rating-input__icon-empty")
1906
1910
  ),
1907
1911
  C.span(
1908
1912
  i.class("bc-rating-input__icon-clipper"),
1909
- i.class($),
1913
+ i.class(_),
1910
1914
  ft.width(
1911
1915
  p.map(e, (I) => {
1912
- const _ = Math.floor(I);
1913
- return _ > g ? "100%" : _ < g ? "0%" : `${(I - g) * 100}%`;
1916
+ const $ = Math.floor(I);
1917
+ return $ > m ? "100%" : $ < m ? "0%" : `${(I - m) * 100}%`;
1914
1918
  })
1915
1919
  ),
1916
1920
  O(
@@ -1919,7 +1923,7 @@ const Dn = (t) => {
1919
1923
  )
1920
1924
  ),
1921
1925
  k.click(
1922
- se((I) => x(I, D), {
1926
+ se((I) => v(I, M), {
1923
1927
  preventDefault: !0,
1924
1928
  stopPropagation: !0
1925
1929
  })
@@ -1936,24 +1940,24 @@ const Dn = (t) => {
1936
1940
  i.class("bc-rating-input"),
1937
1941
  // ARIA slider semantics
1938
1942
  i.role("slider"),
1939
- i.tabindex(p.map(n ?? !1, (g) => g ? -1 : 0)),
1943
+ i.tabindex(p.map(n ?? !1, (m) => m ? -1 : 0)),
1940
1944
  U.disabled(n ?? !1),
1941
1945
  U.valuemin(0),
1942
- U.valuemax(p.map(r, (g) => g ?? 0)),
1943
- U.valuenow(p.map(e, (g) => g ?? 0)),
1946
+ U.valuemax(p.map(r, (m) => m ?? 0)),
1947
+ U.valuenow(p.map(e, (m) => m ?? 0)),
1944
1948
  U.valuetext(
1945
- L(
1949
+ V(
1946
1950
  e,
1947
1951
  r
1948
- )((g, D) => {
1949
- const I = g ?? 0, _ = D ?? 0;
1950
- return `${String(I)} / ${String(_)}`;
1952
+ )((m, M) => {
1953
+ const I = m ?? 0, $ = M ?? 0;
1954
+ return `${String(I)} / ${String($)}`;
1951
1955
  })
1952
1956
  ),
1953
1957
  // Keyboard & focus handlers
1954
- k.keydown(m),
1958
+ k.keydown(w),
1955
1959
  f != null ? k.blur(f) : null,
1956
- Pt(r, v)
1960
+ Pt(r, b)
1957
1961
  )
1958
1962
  });
1959
1963
  }, zn = (t) => {
@@ -1990,8 +1994,8 @@ const Dn = (t) => {
1990
1994
  }, Nn = (t) => {
1991
1995
  const { value: e, step: s, min: n, max: r, onBlur: o, onChange: a, onInput: u } = t, l = p.map(e, (f) => {
1992
1996
  if (f != null) return f;
1993
- const b = n != null ? p.get(n) : void 0;
1994
- return typeof b == "number" ? b : 0;
1997
+ const g = n != null ? p.get(n) : void 0;
1998
+ return typeof g == "number" ? g : 0;
1995
1999
  }), c = Y(e, t.disabled, (f) => {
1996
2000
  a?.(f);
1997
2001
  });
@@ -2092,19 +2096,19 @@ const Ot = (t, e) => {
2092
2096
  u,
2093
2097
  o != null ? k.blur(() => o()) : T,
2094
2098
  s != null ? k.change((c) => {
2095
- const b = c.currentTarget?.value ?? "";
2096
- if (b === "") {
2099
+ const g = c.currentTarget?.value ?? "";
2100
+ if (g === "") {
2097
2101
  s(null);
2098
2102
  return;
2099
2103
  }
2100
- const h = globalThis.Temporal, d = Ot(h, b);
2104
+ const h = globalThis.Temporal, d = Ot(h, g);
2101
2105
  if (d != null) {
2102
2106
  s(d);
2103
2107
  return;
2104
2108
  }
2105
- Mt().then((x) => {
2106
- const m = Ot(x, b);
2107
- m != null && s(m);
2109
+ Mt().then((v) => {
2110
+ const w = Ot(v, g);
2111
+ w != null && s(w);
2108
2112
  }).catch(() => {
2109
2113
  });
2110
2114
  }) : T
@@ -2147,15 +2151,15 @@ const Ot = (t, e) => {
2147
2151
  addLabel: l,
2148
2152
  controlsLayout: c = "aside",
2149
2153
  removeDisabled: f,
2150
- addDisabled: b
2151
- } = t, h = p.toSignal(c).map((m) => m === "aside"), d = (m) => {
2152
- const $ = E(
2154
+ addDisabled: g
2155
+ } = t, h = p.toSignal(c).map((w) => w === "aside"), d = (w) => {
2156
+ const _ = E(
2153
2157
  r ?? !1,
2154
2158
  () => C.div(
2155
2159
  i.class("bc-group--align-center"),
2156
2160
  i.class(
2157
2161
  h.map(
2158
- (g) => g ? "bc-group--direction-column bc-group--gap-1" : "bc-group--direction-row bc-group--gap-1"
2162
+ (m) => m ? "bc-group--direction-column bc-group--gap-1" : "bc-group--direction-row bc-group--gap-1"
2159
2163
  )
2160
2164
  ),
2161
2165
  bt(
@@ -2163,15 +2167,15 @@ const Ot = (t, e) => {
2163
2167
  size: "xs",
2164
2168
  roundedness: "full",
2165
2169
  variant: "text",
2166
- onClick: () => m.move("up"),
2167
- disabled: m.cannotMove("up")
2170
+ onClick: () => w.move("up"),
2171
+ disabled: w.cannotMove("up")
2168
2172
  },
2169
2173
  W(
2170
2174
  X,
2171
- (g) => O({
2175
+ (m) => O({
2172
2176
  size: "xs",
2173
2177
  icon: "line-md:arrow-up",
2174
- title: g.$.incrementValue
2178
+ title: m.$.incrementValue
2175
2179
  })
2176
2180
  )
2177
2181
  ),
@@ -2180,63 +2184,63 @@ const Ot = (t, e) => {
2180
2184
  size: "xs",
2181
2185
  roundedness: "full",
2182
2186
  variant: "text",
2183
- onClick: () => m.move("down"),
2184
- disabled: m.cannotMove("down")
2187
+ onClick: () => w.move("down"),
2188
+ disabled: w.cannotMove("down")
2185
2189
  },
2186
2190
  W(
2187
2191
  X,
2188
- (g) => O({
2192
+ (m) => O({
2189
2193
  size: "xs",
2190
2194
  icon: "line-md:arrow-down",
2191
- title: g.$.decrementValue
2195
+ title: m.$.decrementValue
2192
2196
  })
2193
2197
  )
2194
2198
  )
2195
2199
  )
2196
- ), v = E(
2200
+ ), b = E(
2197
2201
  o,
2198
2202
  () => W(
2199
2203
  X,
2200
- (g) => It({
2204
+ (m) => It({
2201
2205
  size: "xs",
2202
2206
  // Use a lowercase label to satisfy tests that query with [aria-label*="remove"]
2203
- label: p.map(g.$.removeItem, (D) => D.toLowerCase()),
2207
+ label: p.map(m.$.removeItem, (M) => M.toLowerCase()),
2204
2208
  color: "danger",
2205
2209
  disabled: f,
2206
- onClick: m.remove
2210
+ onClick: w.remove
2207
2211
  })
2208
2212
  )
2209
2213
  );
2210
- return (g) => E(
2214
+ return (m) => E(
2211
2215
  h,
2212
2216
  () => dt(
2213
2217
  i.class("bc-group--gap-1 bc-group--align-center"),
2214
- ct(i.class("bc-stack--grow"), g),
2218
+ ct(i.class("bc-stack--grow"), m),
2215
2219
  ct(
2216
2220
  i.class("bc-stack--align-center"),
2217
2221
  E(
2218
- e.signal.map((D) => D.length > 1),
2219
- () => $
2222
+ e.signal.map((M) => M.length > 1),
2223
+ () => _
2220
2224
  ),
2221
- v
2225
+ b
2222
2226
  )
2223
2227
  ),
2224
2228
  () => ct(
2225
2229
  i.class("bc-stack--gap-2"),
2226
- g,
2230
+ m,
2227
2231
  dt(
2228
2232
  i.class("bc-group--gap-2 bc-group--justify-between"),
2229
2233
  E(
2230
- e.signal.map((D) => D.length > 1),
2231
- () => $,
2234
+ e.signal.map((M) => M.length > 1),
2235
+ () => _,
2232
2236
  () => C.div()
2233
2237
  ),
2234
- v
2238
+ b
2235
2239
  )
2236
2240
  )
2237
2241
  );
2238
- }, x = E(
2239
- L(a, u)((m, $) => m && $ != null),
2242
+ }, v = E(
2243
+ V(a, u)((w, _) => w && _ != null),
2240
2244
  () => dt(
2241
2245
  i.class(
2242
2246
  "bc-group--gap-2 bc-group--align-center bc-group--justify-center"
@@ -2246,19 +2250,19 @@ const Ot = (t, e) => {
2246
2250
  size: "sm",
2247
2251
  variant: "filled",
2248
2252
  onClick: () => e.push(u()),
2249
- disabled: L(
2253
+ disabled: V(
2250
2254
  e.disabled,
2251
- b ?? !1
2255
+ g ?? !1
2252
2256
  )(
2253
- (m, $) => m || $
2257
+ (w, _) => w || _
2254
2258
  )
2255
2259
  },
2256
2260
  W(
2257
2261
  X,
2258
- (m) => dt(
2262
+ (w) => dt(
2259
2263
  i.class("bc-group--gap-2"),
2260
2264
  O({ icon: "line-md:plus" }),
2261
- l ?? m.$.addLabel
2265
+ l ?? w.$.addLabel
2262
2266
  )
2263
2267
  )
2264
2268
  )
@@ -2267,10 +2271,10 @@ const Ot = (t, e) => {
2267
2271
  return B(
2268
2272
  Xe(
2269
2273
  e,
2270
- (m) => d(m)(s(m)),
2274
+ (w) => d(w)(s(w)),
2271
2275
  n
2272
2276
  ),
2273
- x
2277
+ v
2274
2278
  );
2275
2279
  }, jn = (t, ...e) => {
2276
2280
  const {
@@ -2283,7 +2287,7 @@ const Ot = (t, e) => {
2283
2287
  createItem: l,
2284
2288
  addLabel: c,
2285
2289
  controlsLayout: f,
2286
- removeDisabled: b,
2290
+ removeDisabled: g,
2287
2291
  addDisabled: h,
2288
2292
  ...d
2289
2293
  } = t;
@@ -2300,7 +2304,7 @@ const Ot = (t, e) => {
2300
2304
  createItem: l,
2301
2305
  addLabel: c,
2302
2306
  controlsLayout: f,
2303
- removeDisabled: b,
2307
+ removeDisabled: g,
2304
2308
  addDisabled: h
2305
2309
  })
2306
2310
  },
@@ -2315,17 +2319,17 @@ class Hn extends vt {
2315
2319
  constructor(e, s, n, r, o, a, u = at) {
2316
2320
  super(e, s, n, r, o, u), this.branches = a;
2317
2321
  const l = (f) => {
2318
- for (const b of a)
2319
- if (b.detect(f))
2320
- return b.key;
2322
+ for (const g of a)
2323
+ if (g.detect(f))
2324
+ return g.key;
2321
2325
  return a[0]?.key ?? "unknown";
2322
2326
  };
2323
2327
  this.activeBranch = n.map(l, at);
2324
2328
  const c = (f) => {
2325
2329
  if (this.#t.has(f))
2326
2330
  return this.#t.get(f);
2327
- const b = a.find((d) => d.key === f);
2328
- if (!b)
2331
+ const g = a.find((d) => d.key === f);
2332
+ if (!g)
2329
2333
  throw new Error(`Unknown branch: ${f}`);
2330
2334
  const h = new vt(
2331
2335
  [...e, f],
@@ -2333,7 +2337,7 @@ class Hn extends vt {
2333
2337
  this.change(d);
2334
2338
  },
2335
2339
  this.signal.map(
2336
- (d) => b.detect(d) ? d : b.defaultValue(),
2340
+ (d) => g.detect(d) ? d : g.defaultValue(),
2337
2341
  u
2338
2342
  ),
2339
2343
  r.map(Lt([f])),