@tempots/beatui 0.61.1 → 0.61.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.es.js CHANGED
@@ -1,36 +1,40 @@
1
- import { prop as Z, html as d, attr as r, computedOf as I, Fragment as R, OnDispose as oe, style as S, on as A, WithElement as ne, When as Q, Value as v, Use as ae, Empty as W, input as pe, emitValue as te, aria as M, OneOfValue as bn, Unless as gn, coalesce as Pe, ForEach as Le, Ensure as Ue, OneOfType as Mt, dataAttr as st, NotEmpty as mn, emitValueAsDate as hn, Portal as lt, makeProviderMark as Ot, WithBrowserCtx as vn, renderWithContext as yn, WithProvider as wn, Task as xn, Provide as Nt, MapSignal as Rt, svg as mt, svgAttr as ht, delaySignal as kn } from "@tempots/dom";
2
- import { Use as Po } from "@tempots/dom";
1
+ import { prop as Z, html as d, attr as o, computedOf as I, Fragment as R, OnDispose as oe, style as S, on as A, WithElement as ne, When as Q, Value as v, Use as ae, Empty as W, input as pe, emitValue as te, aria as M, OneOfValue as bn, Unless as gn, coalesce as Le, ForEach as Pe, Ensure as Ue, OneOfType as Mt, dataAttr as st, NotEmpty as mn, emitValueAsDate as hn, Portal as lt, makeProviderMark as Ot, WithBrowserCtx as vn, renderWithContext as yn, WithProvider as wn, Task as xn, Provide as Nt, MapSignal as Rt, svg as mt, svgAttr as ht, delaySignal as kn } from "@tempots/dom";
2
+ import { Use as Lo } from "@tempots/dom";
3
3
  import { PopOver as Sn, ElementRect as Be, WindowSize as Cn, Query as Ut, Location as Ne, NavigationService as Tn, Anchor as it } from "@tempots/ui";
4
4
  import { i as se, t as Se, h as vt, e as ue, a as ie, I as ee, b as ce, C as fe, B as yt, c as Ye, L as ct, j as wt, k as xt } from "./translations-g3qGTkzw.js";
5
5
  import { x as Do, T as Ao, l as Vo, d as Bo, f as Eo, g as Mo, u as Oo, q as No, o as Ro, w as Uo, y as Fo, n as jo, v as Ho, m as Wo, p as zo, r as Yo, s as Go } from "./translations-g3qGTkzw.js";
6
6
  import { g as ut } from "./colors-pQZlNrwM.js";
7
7
  import { b as qo, e as Jo, i as Ko, a as Qo, c as Xo, o as es, l as ts, m as ns, k as as, j as rs, n as os, r as ss, s as ls, d as is, h as cs, t as us } from "./colors-pQZlNrwM.js";
8
8
  import { b as In } from "./index-CpZh_Snx.js";
9
- import { t as ps, am as fs, h as bs, J as gs, c as ms, N as hs, I as vs, K as ys, e as ws, l as xs, d as ks, a as Ss, ab as Cs, o as Ts, a0 as Is, ae as $s, q as _s, H as Ps, A as Ls, al as Ds, g as As, E as Vs, x as Bs, aj as Es, $ as Ms, a4 as Os, k as Ns, j as Rs, i as Us, Y as Fs, X as js, Q as Hs, P as Ws, S as zs, R as Ys, W as Gs, V as Zs, U as qs, T as Js, a8 as Ks, a7 as Qs, aa as Xs, a9 as el, n as tl, m as nl, _ as al, Z as rl, ad as ol, p as sl, G as ll, z as il, ak as cl, D as ul, C as dl, w as pl, v as fl, ai as bl, ah as gl, f as ml, a3 as hl, a2 as vl, M as yl, L as wl, a5 as xl, a6 as kl, r as Sl, O as Cl, ac as Tl, s as Il, F as $l, y as _l, ag as Pl, B as Ll, u as Dl, af as Al, a1 as Vl } from "./index-CpZh_Snx.js";
9
+ import { t as ps, am as fs, h as bs, J as gs, c as ms, N as hs, I as vs, K as ys, e as ws, l as xs, d as ks, a as Ss, ab as Cs, o as Ts, a0 as Is, ae as $s, q as _s, H as Ls, A as Ps, al as Ds, g as As, E as Vs, x as Bs, aj as Es, $ as Ms, a4 as Os, k as Ns, j as Rs, i as Us, Y as Fs, X as js, Q as Hs, P as Ws, S as zs, R as Ys, W as Gs, V as Zs, U as qs, T as Js, a8 as Ks, a7 as Qs, aa as Xs, a9 as el, n as tl, m as nl, _ as al, Z as rl, ad as ol, p as sl, G as ll, z as il, ak as cl, D as ul, C as dl, w as pl, v as fl, ai as bl, ah as gl, f as ml, a3 as hl, a2 as vl, M as yl, L as wl, a5 as xl, a6 as kl, r as Sl, O as Cl, ac as Tl, s as Il, F as $l, y as _l, ag as Ll, B as Pl, u as Dl, af as Al, a1 as Vl } from "./index-CpZh_Snx.js";
10
10
  import { C as Fe, s as he, m as Ft, d as jt, I as dt, B as Ht, c as Wt, S as pt, e as $n } from "./notice-Cpso9PgQ.js";
11
11
  import { A as El, g as Ml, b as Ol, D as Nl, E as Rl, v as Ul, L as Fl, M as jl, x as Hl, N as Wl, i as zl, P as Yl, R as Gl, n as Zl, q as ql, o as Jl, k as Kl, j as Ql, f as Xl, p as ei, h as ti, r as ni, t as ai, l as ri, u as oi, w as si } from "./notice-Cpso9PgQ.js";
12
- import { u as Re, A as ot, a as _n, O as zt, F as Pn } from "./modal-DJDeFIxV.js";
12
+ import { u as Re, A as ot, a as _n, O as zt, F as Ln } from "./modal-DJDeFIxV.js";
13
13
  import { B as ii, C as ci, M as ui, c as di, S as pi, b as fi, d as bi, o as gi, s as mi, f as hi, e as vi, g as yi } from "./modal-DJDeFIxV.js";
14
- import { T as Yt, a as Ln } from "./theme-B5pmbvQ_.js";
14
+ import { T as Yt, a as Pn } from "./theme-B5pmbvQ_.js";
15
15
  import { S as Dn, G as Gt, E as An, F as Vn, N as Zt, a as Ee, M as Me, e as kt, n as Bn, W as ve, d as En, i as Mn, b as St, c as Ve } from "./utils-BRzdi3Gx.js";
16
- import { j as xi, l as ki, B as Si, p as Ci, V as Ti, C as Ii, m as $i, L as _i, o as Pi, q as Li, r as Di, s as Ai, O as Vi, u as Bi, z as Ei, v as Mi, I as Oi, K as Ni, w as Ri, x as Ui, H as Fi, Q as ji, y as Hi, R as Wi, J as zi, A as Yi, T as Gi, D as Zi, f as qi, U as Ji, P as Ki, X as Qi, Y as Xi, ag as ec, k as tc, ae as nc, a2 as ac, a1 as rc, a6 as oc, a7 as sc, $ as lc, Z as ic, _ as cc, ab as uc, a5 as dc, ac as pc, a3 as fc, af as bc, a0 as gc, a8 as mc, a9 as hc, ad as vc, aa as yc, a4 as wc, g as xc, t as kc, h as Sc } from "./utils-BRzdi3Gx.js";
16
+ import { j as xi, l as ki, B as Si, p as Ci, V as Ti, C as Ii, m as $i, L as _i, o as Li, q as Pi, r as Di, s as Ai, O as Vi, u as Bi, z as Ei, v as Mi, I as Oi, K as Ni, w as Ri, x as Ui, H as Fi, Q as ji, y as Hi, R as Wi, J as zi, A as Yi, T as Gi, D as Zi, f as qi, U as Ji, P as Ki, X as Qi, Y as Xi, ag as ec, k as tc, ae as nc, a2 as ac, a1 as rc, a6 as oc, a7 as sc, $ as lc, Z as ic, _ as cc, ab as uc, a5 as dc, ac as pc, a3 as fc, af as bc, a0 as gc, a8 as mc, a9 as hc, ad as vc, aa as yc, a4 as wc, g as xc, t as kc, h as Sc } from "./utils-BRzdi3Gx.js";
17
17
  import { g as Ge, x as Ct } from "./timer-DzWb416P.js";
18
18
  import { L as Tc } from "./link-portal-Cr2l9f3k.js";
19
- import { T as $c, a as _c, c as Pc, b as Lc, d as Dc } from "./toolbar-_yJ-dm-Z.js";
19
+ import { T as $c, a as _c, c as Lc, b as Pc, d as Dc } from "./toolbar-_yJ-dm-Z.js";
20
20
  function cr(e, t = 0, n = () => !0) {
21
- let a = null, o;
22
- const l = Z(e.value);
21
+ let a = null, r;
22
+ const s = Z(e.value);
23
23
  return e.on((i) => {
24
- o = i, n(i) ? a == null && (a = setTimeout(() => {
25
- a = null, l.set(o);
26
- }, t)) : l.set(i);
24
+ r = i, n(i) ? a == null && (a = setTimeout(() => {
25
+ a = null, s.set(r);
26
+ }, t)) : s.set(i);
27
27
  }), e.onDispose(() => {
28
28
  a != null && clearTimeout(a);
29
- }), l;
29
+ }), s;
30
30
  }
31
- const qt = (e, t = "") => {
32
- const n = document.createElement("a");
33
- n.href = e, n.download = t, n.target = "_blank", document.body.appendChild(n), n.click(), document.body.removeChild(n);
31
+ const qt = async (e, t = "") => {
32
+ try {
33
+ const a = await (await fetch(e)).blob(), r = URL.createObjectURL(a), s = document.createElement("a");
34
+ s.href = r, s.download = t, document.body.appendChild(s), s.click(), document.body.removeChild(s), URL.revokeObjectURL(r);
35
+ } catch {
36
+ window.open(e, "_blank");
37
+ }
34
38
  }, ur = (e, t, n = "application/octet-stream") => {
35
39
  const a = new Blob([e], { type: n });
36
40
  qt(URL.createObjectURL(a), t), URL.revokeObjectURL(URL.createObjectURL(a));
@@ -39,17 +43,17 @@ const qt = (e, t = "") => {
39
43
  let a = !1;
40
44
  return (async () => {
41
45
  try {
42
- const o = await fetch(e, { signal: t.signal });
43
- if (!o.ok)
44
- throw new Error(`HTTP error! status: ${o.status}`);
45
- const l = o.headers.get("content-length"), i = l ? parseInt(l, 10) : void 0, c = (async () => {
46
+ const r = await fetch(e, { signal: t.signal });
47
+ if (!r.ok)
48
+ throw new Error(`HTTP error! status: ${r.status}`);
49
+ const s = r.headers.get("content-length"), i = s ? parseInt(s, 10) : void 0, c = (async () => {
46
50
  if (i === void 0 || isNaN(i))
47
- return n.set({ type: "undetermined" }), await o.blob();
51
+ return n.set({ type: "undetermined" }), await r.blob();
48
52
  {
49
53
  const b = new Uint8Array(i);
50
- if (o.body == null)
54
+ if (r.body == null)
51
55
  throw new Error("Response body is null");
52
- const k = o.body.getReader();
56
+ const k = r.body.getReader();
53
57
  let m = 0;
54
58
  for (; ; ) {
55
59
  const { done: y, value: h } = await k.read();
@@ -60,15 +64,15 @@ const qt = (e, t = "") => {
60
64
  });
61
65
  }
62
66
  return new Blob([b], {
63
- type: o.headers.get("content-type") ?? void 0
67
+ type: r.headers.get("content-type") ?? void 0
64
68
  });
65
69
  }
66
- })(), u = e.split("/").pop() || "download", s = await c, f = new File([s], u, {
67
- type: s.type
70
+ })(), u = e.split("/").pop() || "download", l = await c, f = new File([l], u, {
71
+ type: l.type
68
72
  });
69
73
  a = !0, n.set({ type: "done", file: f });
70
- } catch (o) {
71
- n.set({ type: "error", error: o });
74
+ } catch (r) {
75
+ n.set({ type: "error", error: r });
72
76
  } finally {
73
77
  a = !0, n.dispose();
74
78
  }
@@ -81,9 +85,9 @@ const qt = (e, t = "") => {
81
85
  }, pr = (e) => {
82
86
  qt(URL.createObjectURL(e), e.name);
83
87
  }, Tt = (e, t) => e < t ? e : t, je = (e, t) => e > t ? e : t, On = (e, { abortSignal: t } = {}) => new Promise((n, a) => {
84
- const o = setTimeout(n, e);
88
+ const r = setTimeout(n, e);
85
89
  t && t.addEventListener("abort", () => {
86
- clearTimeout(o), a(new DOMException("Aborted", "AbortError"));
90
+ clearTimeout(r), a(new DOMException("Aborted", "AbortError"));
87
91
  });
88
92
  }), Xe = ["xs", "sm", "md", "lg", "xl"];
89
93
  function fr(e, t = 1) {
@@ -94,21 +98,21 @@ function fr(e, t = 1) {
94
98
  return Xe[a];
95
99
  }
96
100
  function Nn(e, t, n, a) {
97
- const o = [
101
+ const r = [
98
102
  "bc-badge",
99
103
  `bc-badge--size-${e}`,
100
104
  `bc-control--rounded-${t}`
101
105
  ];
102
- return n && o.push("bc-badge--circle"), a && o.push("bc-badge--full-width"), o.join(" ");
106
+ return n && r.push("bc-badge--circle"), a && r.push("bc-badge--full-width"), r.join(" ");
103
107
  }
104
108
  function Rn(e, t) {
105
- const n = /* @__PURE__ */ new Map(), a = (o, l, i, c) => {
106
- n.set("--badge-bg-hover", o), n.set("--badge-text-hover", i), n.set("--badge-bg-hover-dark", l), n.set("--badge-text-hover-dark", c);
109
+ const n = /* @__PURE__ */ new Map(), a = (r, s, i, c) => {
110
+ n.set("--badge-bg-hover", r), n.set("--badge-text-hover", i), n.set("--badge-bg-hover-dark", s), n.set("--badge-text-hover-dark", c);
107
111
  };
108
112
  switch (e) {
109
113
  case "filled": {
110
- const o = ue(t, "solid", "light"), l = ue(t, "solid", "dark"), i = se(t, "soft", "light"), c = se(t, "soft", "dark");
111
- n.set("--badge-bg", o.backgroundColor), n.set("--badge-text", o.textColor), n.set("--badge-bg-dark", l.backgroundColor), n.set("--badge-text-dark", l.textColor), n.set("--badge-border", "transparent"), n.set("--badge-border-dark", "transparent"), a(
114
+ const r = ue(t, "solid", "light"), s = ue(t, "solid", "dark"), i = se(t, "soft", "light"), c = se(t, "soft", "dark");
115
+ n.set("--badge-bg", r.backgroundColor), n.set("--badge-text", r.textColor), n.set("--badge-bg-dark", s.backgroundColor), n.set("--badge-text-dark", s.textColor), n.set("--badge-border", "transparent"), n.set("--badge-border-dark", "transparent"), a(
112
116
  i.backgroundColor,
113
117
  c.backgroundColor,
114
118
  i.textColor,
@@ -117,8 +121,8 @@ function Rn(e, t) {
117
121
  break;
118
122
  }
119
123
  case "light": {
120
- const o = ue(t, "light", "light"), l = ue(t, "light", "dark"), i = se(t, "light", "light"), c = se(t, "light", "dark");
121
- n.set("--badge-bg", o.backgroundColor), n.set("--badge-text", o.textColor), n.set("--badge-bg-dark", l.backgroundColor), n.set("--badge-text-dark", l.textColor), n.set("--badge-border", "transparent"), n.set("--badge-border-dark", "transparent"), a(
124
+ const r = ue(t, "light", "light"), s = ue(t, "light", "dark"), i = se(t, "light", "light"), c = se(t, "light", "dark");
125
+ n.set("--badge-bg", r.backgroundColor), n.set("--badge-text", r.textColor), n.set("--badge-bg-dark", s.backgroundColor), n.set("--badge-text-dark", s.textColor), n.set("--badge-border", "transparent"), n.set("--badge-border-dark", "transparent"), a(
122
126
  i.backgroundColor,
123
127
  c.backgroundColor,
124
128
  i.textColor,
@@ -127,18 +131,18 @@ function Rn(e, t) {
127
131
  break;
128
132
  }
129
133
  case "outline": {
130
- const o = Se(t, "light"), l = Se(t, "dark"), i = vt(t, "light"), c = vt(t, "dark"), u = se(t, "light", "light"), s = se(t, "light", "dark");
131
- n.set("--badge-bg", "transparent"), n.set("--badge-text", o), n.set("--badge-bg-dark", "transparent"), n.set("--badge-text-dark", l), n.set("--badge-border", i), n.set("--badge-border-dark", c), a(
134
+ const r = Se(t, "light"), s = Se(t, "dark"), i = vt(t, "light"), c = vt(t, "dark"), u = se(t, "light", "light"), l = se(t, "light", "dark");
135
+ n.set("--badge-bg", "transparent"), n.set("--badge-text", r), n.set("--badge-bg-dark", "transparent"), n.set("--badge-text-dark", s), n.set("--badge-border", i), n.set("--badge-border-dark", c), a(
132
136
  u.backgroundColor,
133
- s.backgroundColor,
137
+ l.backgroundColor,
134
138
  u.textColor,
135
- s.textColor
139
+ l.textColor
136
140
  );
137
141
  break;
138
142
  }
139
143
  case "default": {
140
- const o = Se(t, "light"), l = Se(t, "dark"), i = se(t, "light", "light"), c = se(t, "light", "dark");
141
- n.set("--badge-bg", "var(--bg-background-light)"), n.set("--badge-text", o), n.set("--badge-bg-dark", "var(--bg-background-dark)"), n.set("--badge-text-dark", l), n.set("--badge-border", "var(--border-border-light)"), n.set("--badge-border-dark", "var(--border-border-dark)"), a(
144
+ const r = Se(t, "light"), s = Se(t, "dark"), i = se(t, "light", "light"), c = se(t, "light", "dark");
145
+ n.set("--badge-bg", "var(--bg-background-light)"), n.set("--badge-text", r), n.set("--badge-bg-dark", "var(--bg-background-dark)"), n.set("--badge-text-dark", s), n.set("--badge-border", "var(--border-border-light)"), n.set("--badge-border-dark", "var(--border-border-dark)"), a(
142
146
  i.backgroundColor,
143
147
  c.backgroundColor,
144
148
  i.textColor,
@@ -147,8 +151,8 @@ function Rn(e, t) {
147
151
  break;
148
152
  }
149
153
  case "text": {
150
- const o = Se(t, "light"), l = Se(t, "dark"), i = se(t, "light", "light"), c = se(t, "light", "dark");
151
- n.set("--badge-bg", "transparent"), n.set("--badge-text", o), n.set("--badge-bg-dark", "transparent"), n.set("--badge-text-dark", l), n.set("--badge-border", "transparent"), n.set("--badge-border-dark", "transparent"), a(
154
+ const r = Se(t, "light"), s = Se(t, "dark"), i = se(t, "light", "light"), c = se(t, "light", "dark");
155
+ n.set("--badge-bg", "transparent"), n.set("--badge-text", r), n.set("--badge-bg-dark", "transparent"), n.set("--badge-text-dark", s), n.set("--badge-border", "transparent"), n.set("--badge-border-dark", "transparent"), a(
152
156
  i.backgroundColor,
153
157
  c.backgroundColor,
154
158
  i.textColor,
@@ -157,33 +161,33 @@ function Rn(e, t) {
157
161
  break;
158
162
  }
159
163
  }
160
- return Array.from(n.entries()).map(([o, l]) => `${o}: ${l}`).join("; ");
164
+ return Array.from(n.entries()).map(([r, s]) => `${r}: ${s}`).join("; ");
161
165
  }
162
166
  function br({
163
167
  variant: e = "filled",
164
168
  size: t = "md",
165
169
  color: n = "base",
166
170
  roundedness: a = "full",
167
- circle: o = !1,
168
- fullWidth: l = !1
171
+ circle: r = !1,
172
+ fullWidth: s = !1
169
173
  }, ...i) {
170
174
  return d.span(
171
- r.class(
175
+ o.class(
172
176
  I(
173
177
  t,
174
178
  a,
175
- o,
176
- l
179
+ r,
180
+ s
177
181
  )(
178
- (c, u, s, f) => Nn(
182
+ (c, u, l, f) => Nn(
179
183
  c ?? "md",
180
184
  u ?? "sm",
181
- s ?? !1,
185
+ l ?? !1,
182
186
  f ?? !1
183
187
  )
184
188
  )
185
189
  ),
186
- r.style(
190
+ o.style(
187
191
  I(
188
192
  e,
189
193
  n
@@ -194,7 +198,7 @@ function br({
194
198
  )
195
199
  )
196
200
  ),
197
- d.span(r.class("bc-badge__content"), ...i)
201
+ d.span(o.class("bc-badge__content"), ...i)
198
202
  );
199
203
  }
200
204
  function gr({
@@ -202,40 +206,40 @@ function gr({
202
206
  accept: t = "*/*",
203
207
  onDragContent: n,
204
208
  content: a,
205
- onInvalidSelection: o,
206
- disabled: l = !1
209
+ onInvalidSelection: r,
210
+ disabled: s = !1
207
211
  }) {
208
212
  const i = Z(!1), c = Z([]);
209
- let u = null, s = 0;
210
- const f = (p) => p.dataTransfer?.types.includes("Files") ?? !1, b = (p, C) => C === "*/*" ? !0 : C.split(",").map((L) => L.trim()).some((L) => {
211
- if (L === "*/*") return !0;
212
- if (L.endsWith("/*")) {
213
- const _ = L.slice(0, -2);
213
+ let u = null, l = 0;
214
+ const f = (p) => p.dataTransfer?.types.includes("Files") ?? !1, b = (p, C) => C === "*/*" ? !0 : C.split(",").map((P) => P.trim()).some((P) => {
215
+ if (P === "*/*") return !0;
216
+ if (P.endsWith("/*")) {
217
+ const _ = P.slice(0, -2);
214
218
  return p.type.startsWith(_ + "/");
215
219
  }
216
- return p.type === L || p.name.endsWith(L);
220
+ return p.type === P || p.name.endsWith(P);
217
221
  }), k = (p) => {
218
- v.get(l) || f(p) && (p.preventDefault(), p.stopPropagation(), s++, s === 1 && (i.value = !0));
222
+ v.get(s) || f(p) && (p.preventDefault(), p.stopPropagation(), l++, l === 1 && (i.value = !0));
219
223
  }, m = (p) => {
220
- v.get(l) || f(p) && (p.preventDefault(), p.stopPropagation(), p.dataTransfer != null && (p.dataTransfer.dropEffect = "copy"));
224
+ v.get(s) || f(p) && (p.preventDefault(), p.stopPropagation(), p.dataTransfer != null && (p.dataTransfer.dropEffect = "copy"));
221
225
  }, y = (p) => {
222
- v.get(l) || f(p) && (p.preventDefault(), p.stopPropagation(), s--, s === 0 && (i.value = !1));
226
+ v.get(s) || f(p) && (p.preventDefault(), p.stopPropagation(), l--, l === 0 && (i.value = !1));
223
227
  }, h = (p) => {
224
- if (v.get(l) || !f(p)) return;
225
- p.preventDefault(), p.stopPropagation(), s = 0, i.value = !1;
228
+ if (v.get(s) || !f(p)) return;
229
+ p.preventDefault(), p.stopPropagation(), l = 0, i.value = !1;
226
230
  const C = Array.from(p.dataTransfer?.files ?? []);
227
231
  if (C.length > 0) {
228
- const $ = v.get(t), L = C.filter(
232
+ const $ = v.get(t), P = C.filter(
229
233
  (T) => b(T, $)
230
234
  ), _ = C.filter(
231
- (T) => !L.includes(T)
235
+ (T) => !P.includes(T)
232
236
  );
233
- L.length > 0 && (c.value = L, e(L, "dragdrop")), _.length > 0 && o?.(C);
237
+ P.length > 0 && (c.value = P, e(P, "dragdrop")), _.length > 0 && r?.(C);
234
238
  }
235
239
  };
236
240
  typeof document < "u" && (document.addEventListener("dragenter", k), document.addEventListener("dragover", m), document.addEventListener("dragleave", y), document.addEventListener("drop", h));
237
241
  const x = () => {
238
- typeof document < "u" && (document.removeEventListener("dragenter", k), document.removeEventListener("dragover", m), document.removeEventListener("dragleave", y), document.removeEventListener("drop", h)), s = 0;
242
+ typeof document < "u" && (document.removeEventListener("dragenter", k), document.removeEventListener("dragover", m), document.removeEventListener("dragleave", y), document.removeEventListener("drop", h)), l = 0;
239
243
  }, w = () => {
240
244
  u?.click();
241
245
  }, g = (p) => {
@@ -246,10 +250,10 @@ function gr({
246
250
  oe(x),
247
251
  // Hidden file input for programmatic file selection
248
252
  d.input(
249
- r.type("file"),
250
- r.name("bui-page-drop-zone"),
251
- r.multiple(!0),
252
- r.accept(t),
253
+ o.type("file"),
254
+ o.name("bui-page-drop-zone"),
255
+ o.multiple(!0),
256
+ o.accept(t),
253
257
  S.position("absolute"),
254
258
  S.opacity("0"),
255
259
  S.pointerEvents("none"),
@@ -265,9 +269,9 @@ function gr({
265
269
  a != null ? a({ isDragging: i, files: c, selectFiles: w }) : null
266
270
  );
267
271
  }
268
- function Un(e, t, n, a, o, l) {
272
+ function Un(e, t, n, a, r, s) {
269
273
  const i = ["bc-table"];
270
- return e !== "md" && i.push(`bc-table--size-${e}`), t && i.push("bc-table--hoverable"), n && i.push("bc-table--sticky-header"), a && i.push("bc-table--with-striped-rows"), o && i.push("bc-table--with-column-borders"), l && i.push("bc-table--with-row-borders"), i.join(" ");
274
+ return e !== "md" && i.push(`bc-table--size-${e}`), t && i.push("bc-table--hoverable"), n && i.push("bc-table--sticky-header"), a && i.push("bc-table--with-striped-rows"), r && i.push("bc-table--with-column-borders"), s && i.push("bc-table--with-row-borders"), i.join(" ");
271
275
  }
272
276
  function Fn(e) {
273
277
  if (e != null)
@@ -278,17 +282,17 @@ function mr({
278
282
  hoverable: t = !1,
279
283
  stickyHeader: n = !1,
280
284
  fullWidth: a = !1,
281
- withStripedRows: o = !1,
282
- withTableBorder: l = !0,
285
+ withStripedRows: r = !1,
286
+ withTableBorder: s = !0,
283
287
  withColumnBorders: i = !1,
284
288
  withRowBorders: c = !0,
285
289
  borderRadius: u
286
- } = {}, ...s) {
290
+ } = {}, ...l) {
287
291
  const f = I(
288
292
  e,
289
293
  t,
290
294
  n,
291
- o,
295
+ r,
292
296
  i,
293
297
  c
294
298
  )(
@@ -303,7 +307,7 @@ function mr({
303
307
  ), b = I(
304
308
  n,
305
309
  a,
306
- l
310
+ s
307
311
  )((m, y, h) => {
308
312
  const x = ["bc-table-container"];
309
313
  return m && x.push("bc-table-container--sticky"), y && x.push("bc-table-container--full-width"), h && x.push("bc-table-container--with-table-border"), x.join(" ");
@@ -311,9 +315,9 @@ function mr({
311
315
  (m) => Fn(m)
312
316
  );
313
317
  return d.div(
314
- r.class(b),
315
- r.style(k),
316
- d.table(r.class(f), ...s)
318
+ o.class(b),
319
+ o.style(k),
320
+ d.table(o.class(f), ...l)
317
321
  );
318
322
  }
319
323
  function jn(e, t) {
@@ -321,7 +325,7 @@ function jn(e, t) {
321
325
  return e !== "md" && n.push(`bc-tag--${e}`), t && n.push("bc-tag--disabled"), n.join(" ");
322
326
  }
323
327
  function Hn(e) {
324
- const t = ue(e, "light", "light"), n = ue(e, "light", "dark"), a = se(e, "light", "light"), o = se(e, "light", "dark");
328
+ const t = ue(e, "light", "light"), n = ue(e, "light", "dark"), a = se(e, "light", "light"), r = se(e, "light", "dark");
325
329
  return [
326
330
  `--tag-bg: ${t.backgroundColor}`,
327
331
  `--tag-text: ${t.textColor}`,
@@ -329,8 +333,8 @@ function Hn(e) {
329
333
  `--tag-text-dark: ${n.textColor}`,
330
334
  `--tag-bg-hover: ${a.backgroundColor}`,
331
335
  `--tag-text-hover: ${a.textColor}`,
332
- `--tag-bg-hover-dark: ${o.backgroundColor}`,
333
- `--tag-text-hover-dark: ${o.textColor}`
336
+ `--tag-bg-hover-dark: ${r.backgroundColor}`,
337
+ `--tag-text-hover-dark: ${r.textColor}`
334
338
  ].join("; ");
335
339
  }
336
340
  const Jt = ({
@@ -338,22 +342,22 @@ const Jt = ({
338
342
  color: t = "base",
339
343
  onClose: n,
340
344
  size: a = "md",
341
- class: o,
342
- disabled: l
345
+ class: r,
346
+ disabled: s
343
347
  }) => d.span(
344
- r.class(
348
+ o.class(
345
349
  I(
346
350
  a ?? "md",
347
- l ?? !1
351
+ s ?? !1
348
352
  )((i, c) => jn(i, c))
349
353
  ),
350
- r.style(
354
+ o.style(
351
355
  I(t)(
352
356
  (i) => Hn(i ?? "base")
353
357
  )
354
358
  ),
355
359
  // Allow external classes like bc-tag--disabled to be applied
356
- r.class(o),
360
+ o.class(r),
357
361
  d.span(e),
358
362
  n != null ? ae(
359
363
  ie,
@@ -362,10 +366,10 @@ const Jt = ({
362
366
  size: "xs",
363
367
  label: i.$.removeItem,
364
368
  color: "white",
365
- disabled: l,
369
+ disabled: s,
366
370
  onClick: () => n?.(v.get(e))
367
371
  },
368
- r.class("bc-tag__close")
372
+ o.class("bc-tag__close")
369
373
  )
370
374
  ) : W
371
375
  );
@@ -380,15 +384,15 @@ function Wn({
380
384
  disabled: n,
381
385
  options: {
382
386
  system: d.span(
383
- r.title("System"),
387
+ o.title("System"),
384
388
  ee({ icon: "line-md:laptop", color: "gray" })
385
389
  ),
386
390
  light: d.span(
387
- r.title("Light"),
391
+ o.title("Light"),
388
392
  ee({ icon: "line-md:sunny-twotone-loop", color: "yellow" })
389
393
  ),
390
394
  dark: d.span(
391
- r.title("Dark"),
395
+ o.title("Dark"),
392
396
  ee({
393
397
  icon: "line-md:sunny-outline-to-moon-alt-loop-transition",
394
398
  color: "blue"
@@ -414,36 +418,36 @@ function zn({
414
418
  }) {
415
419
  let a = null;
416
420
  return d.div(
417
- r.class("bc-color-input__swatch-container"),
421
+ o.class("bc-color-input__swatch-container"),
418
422
  d.span(
419
- r.class("bc-color-input__swatch"),
423
+ o.class("bc-color-input__swatch"),
420
424
  A.click(() => a?.showPicker()),
421
425
  pe.color(
422
- ne((o) => (a = o, W)),
423
- r.value(e),
426
+ ne((r) => (a = r, W)),
427
+ o.value(e),
424
428
  S.width("4px"),
425
429
  S.height("4px"),
426
430
  t != null ? A.change(te(t)) : W,
427
431
  n != null ? A.input(te(n)) : W
428
432
  ),
429
- r.style(v.map(e, (o) => `background-color: ${o}`))
433
+ o.style(v.map(e, (r) => `background-color: ${r}`))
430
434
  )
431
435
  );
432
436
  }
433
437
  function vr(e) {
434
- const { value: t, onBlur: n, onChange: a, onInput: o } = e;
438
+ const { value: t, onBlur: n, onChange: a, onInput: r } = e;
435
439
  return ce(
436
440
  {
437
441
  ...e,
438
442
  input: pe.text(
439
443
  fe(e),
440
- r.value(t),
444
+ o.value(t),
441
445
  n != null ? A.blur(te(n)) : W,
442
446
  a != null ? A.change(te(a)) : W,
443
- o != null ? A.input(te(o)) : W
447
+ r != null ? A.input(te(r)) : W
444
448
  )
445
449
  },
446
- r.class("bc-color-input"),
450
+ o.class("bc-color-input"),
447
451
  zn({ value: t, onChange: e.onChange, onInput: e.onInput })
448
452
  );
449
453
  }
@@ -456,12 +460,12 @@ function Ze(e) {
456
460
  content: t,
457
461
  placement: n = "top",
458
462
  showDelay: a = 250,
459
- hideDelay: o = 500,
460
- mainAxisOffset: l = 8,
463
+ hideDelay: r = 500,
464
+ mainAxisOffset: s = 8,
461
465
  crossAxisOffset: i = 0,
462
466
  showOn: c = "hover-focus",
463
467
  closable: u = !0,
464
- arrow: s,
468
+ arrow: l,
465
469
  role: f,
466
470
  hasPopup: b = "dialog"
467
471
  } = e;
@@ -471,19 +475,19 @@ function Ze(e) {
471
475
  }), h = he("flyout"), x = Z(!1);
472
476
  let w = null, g = null, p = !1;
473
477
  function C() {
474
- L != null && (clearTimeout(L), L = null), T != null && (clearTimeout(T), T = null), g && (g(), g = null), w && (document.removeEventListener("keydown", w), w = null), x.set(!1), p = !1;
478
+ P != null && (clearTimeout(P), P = null), T != null && (clearTimeout(T), T = null), g && (g(), g = null), w && (document.removeEventListener("keydown", w), w = null), x.set(!1), p = !1;
475
479
  }
476
480
  function $() {
477
481
  v.get(u) && (w = (O) => {
478
482
  O.key === "Escape" && V();
479
483
  }, document.addEventListener("keydown", w)), p = !0, x.set(!0), k({
480
484
  placement: n ?? "top",
481
- mainAxisOffset: l,
485
+ mainAxisOffset: s,
482
486
  crossAxisOffset: i,
483
487
  onClickOutside: () => {
484
488
  v.get(u) && V();
485
489
  },
486
- arrow: s,
490
+ arrow: l,
487
491
  content: ne((O) => {
488
492
  y.setElement(O), g = Ge(() => {
489
493
  y.open(), g = null;
@@ -495,17 +499,17 @@ function Ze(e) {
495
499
  oe(() => {
496
500
  C(), document.removeEventListener("keydown", B, !0);
497
501
  }),
498
- r.class("bc-flyout-container"),
499
- r.id(h),
500
- r.tabindex(-1),
502
+ o.class("bc-flyout-container"),
503
+ o.id(h),
504
+ o.tabindex(-1),
501
505
  // Make focusable for screen readers
502
506
  d.div(
503
- r.class("bc-flyout"),
507
+ o.class("bc-flyout"),
504
508
  ot({
505
509
  animation: v.map(n, Yn),
506
510
  status: y.status
507
511
  }),
508
- f ? r.role(f) : r.role("dialog"),
512
+ f ? o.role(f) : o.role("dialog"),
509
513
  // Default to dialog role
510
514
  t()
511
515
  )
@@ -513,26 +517,26 @@ function Ze(e) {
513
517
  })
514
518
  });
515
519
  }
516
- let L = null;
520
+ let P = null;
517
521
  function _() {
518
- if (L != null && (clearTimeout(L), L = null), T != null && (clearTimeout(T), T = null), y.isOpened.value || y.isOpening.value || y.isStartOpening.value)
522
+ if (P != null && (clearTimeout(P), P = null), T != null && (clearTimeout(T), T = null), y.isOpened.value || y.isOpening.value || y.isStartOpening.value)
519
523
  return;
520
524
  if (y.isClosing.value || y.isStartClosing.value) {
521
525
  y.open();
522
526
  return;
523
527
  }
524
528
  const O = v.get(a);
525
- L = setTimeout(() => {
526
- L = null, $();
529
+ P = setTimeout(() => {
530
+ P = null, $();
527
531
  }, O);
528
532
  }
529
533
  let T = null;
530
534
  function V() {
531
- if (L != null && (clearTimeout(L), L = null), T != null && (clearTimeout(T), T = null), x.set(!1), g && (g(), g = null, p)) {
535
+ if (P != null && (clearTimeout(P), P = null), T != null && (clearTimeout(T), T = null), x.set(!1), g && (g(), g = null, p)) {
532
536
  m(), C();
533
537
  return;
534
538
  }
535
- const O = v.get(o);
539
+ const O = v.get(r);
536
540
  T = setTimeout(() => {
537
541
  T = null, y.close(), y.listenOnClosed(() => {
538
542
  m(), C();
@@ -596,35 +600,35 @@ function Ze(e) {
596
600
  });
597
601
  }
598
602
  function Gn(e, t, n, a) {
599
- const o = ["bc-action-card"];
600
- return e && o.push("bc-action-card--active"), t && o.push("bc-action-card--disabled"), n !== "md" && o.push(`bc-action-card--${n}`), a && !t && o.push("bc-action-card--clickable"), o.join(" ");
603
+ const r = ["bc-action-card"];
604
+ return e && r.push("bc-action-card--active"), t && r.push("bc-action-card--disabled"), n !== "md" && r.push(`bc-action-card--${n}`), a && !t && r.push("bc-action-card--clickable"), r.join(" ");
601
605
  }
602
606
  function Zn(e, t, n, a) {
603
- const o = /* @__PURE__ */ new Map();
604
- if (e != null && o.set("--action-card-bg", e), t != null && o.set("--action-card-border", t), n != null && o.set("--action-card-title-color", n), a != null && o.set("--action-card-description-color", a), o.size !== 0)
605
- return Array.from(o.entries()).map(([l, i]) => `${l}: ${i}`).join("; ");
607
+ const r = /* @__PURE__ */ new Map();
608
+ if (e != null && r.set("--action-card-bg", e), t != null && r.set("--action-card-border", t), n != null && r.set("--action-card-title-color", n), a != null && r.set("--action-card-description-color", a), r.size !== 0)
609
+ return Array.from(r.entries()).map(([s, i]) => `${s}: ${i}`).join("; ");
606
610
  }
607
611
  function yr({
608
612
  icon: e,
609
613
  title: t,
610
614
  description: n,
611
615
  active: a = !1,
612
- disabled: o = !1,
613
- onClick: l,
616
+ disabled: r = !1,
617
+ onClick: s,
614
618
  size: i = "md",
615
619
  iconColor: c = "primary",
616
620
  iconSize: u = "md",
617
- backgroundColor: s,
621
+ backgroundColor: l,
618
622
  borderColor: f,
619
623
  titleColor: b,
620
624
  descriptionColor: k
621
625
  }) {
622
- const m = l != null;
626
+ const m = s != null;
623
627
  return d.div(
624
- r.class(
628
+ o.class(
625
629
  I(
626
630
  a,
627
- o,
631
+ r,
628
632
  i
629
633
  )(
630
634
  (y, h, x) => Gn(
@@ -635,9 +639,9 @@ function yr({
635
639
  )
636
640
  )
637
641
  ),
638
- r.style(
642
+ o.style(
639
643
  I(
640
- s,
644
+ l,
641
645
  f,
642
646
  b,
643
647
  k
@@ -649,26 +653,26 @@ function yr({
649
653
  m,
650
654
  () => R(
651
655
  gn(
652
- o,
656
+ r,
653
657
  () => R(
654
- A.click(() => l?.()),
655
- r.tabindex(0)
658
+ A.click(() => s?.()),
659
+ o.tabindex(0)
656
660
  )
657
661
  ),
658
- r.role("button")
662
+ o.role("button")
659
663
  )
660
664
  ),
661
- M.disabled(o),
665
+ M.disabled(r),
662
666
  // Icon container
663
667
  d.div(
664
- r.class("bc-action-card__icon"),
668
+ o.class("bc-action-card__icon"),
665
669
  ee({ icon: e, size: u, color: c })
666
670
  ),
667
671
  // Content container
668
672
  d.div(
669
- r.class("bc-action-card__content"),
670
- d.div(r.class("bc-action-card__title"), t),
671
- d.div(r.class("bc-action-card__description"), n)
673
+ o.class("bc-action-card__content"),
674
+ d.div(o.class("bc-action-card__title"), t),
675
+ d.div(o.class("bc-action-card__description"), n)
672
676
  )
673
677
  );
674
678
  }
@@ -680,10 +684,10 @@ function Jn(e) {
680
684
  return ["=", e];
681
685
  }
682
686
  function Kn(e, t, n) {
683
- const [a, o] = Jn(t), l = e.findIndex((u) => u[1] === o);
684
- if (l === -1)
685
- throw new Error(`Breakpoint ${String(o)} not found`);
686
- const i = e[l][0], c = l < e.length - 1 ? e[l + 1][0] : 1 / 0;
687
+ const [a, r] = Jn(t), s = e.findIndex((u) => u[1] === r);
688
+ if (s === -1)
689
+ throw new Error(`Breakpoint ${String(r)} not found`);
690
+ const i = e[s][0], c = s < e.length - 1 ? e[s + 1][0] : 1 / 0;
687
691
  switch (a) {
688
692
  case "=":
689
693
  return n >= i && n < c;
@@ -706,21 +710,21 @@ function wr(e, t) {
706
710
  return n >= 0 ? e[n][1] : (e.length > 0 && t >= e[0][0], e[0][1]);
707
711
  }
708
712
  function Kt(e, { breakpoints: t, mode: n = "viewport" }) {
709
- const o = [...Object.entries(t).map(
713
+ const r = [...Object.entries(t).map(
710
714
  ([i, c]) => [c, i]
711
- )].sort((i, c) => i[0] - c[0]), l = (i) => {
712
- const c = i.map(({ width: s }) => {
713
- const f = o.findIndex((b) => b[0] > s) - 1;
714
- return f >= 0 ? { width: s, breakpoint: o[f][1] } : o.length > 0 && s >= o[0][0] ? { width: s, breakpoint: o[0][1] } : { width: s, breakpoint: o[0][1] };
715
+ )].sort((i, c) => i[0] - c[0]), s = (i) => {
716
+ const c = i.map(({ width: l }) => {
717
+ const f = r.findIndex((b) => b[0] > l) - 1;
718
+ return f >= 0 ? { width: l, breakpoint: r[f][1] } : r.length > 0 && l >= r[0][0] ? { width: l, breakpoint: r[0][1] } : { width: l, breakpoint: r[0][1] };
715
719
  });
716
720
  return e({
717
721
  value: c,
718
722
  breakpoints: t,
719
- asList: o,
720
- is: (s, f) => Kn(o, s, f)
723
+ asList: r,
724
+ is: (l, f) => Kn(r, l, f)
721
725
  });
722
726
  };
723
- return n === "element" ? Be(l) : Cn(l);
727
+ return n === "element" ? Be(s) : Cn(s);
724
728
  }
725
729
  let et = NaN;
726
730
  function Qn(e, t) {
@@ -862,7 +866,7 @@ function It(e, t) {
862
866
  function tt(e) {
863
867
  e = e.filter((t) => t.some((n) => n != null && !n.startsWith("?")));
864
868
  for (let t = 0; t < e[0].length; t++)
865
- e.every((n) => n[t] == null || n[t].startsWith("?")) && (e = e.map((n) => n.filter((a, o) => o !== t)), t--);
869
+ e.every((n) => n[t] == null || n[t].startsWith("?")) && (e = e.map((n) => n.filter((a, r) => r !== t)), t--);
866
870
  return e = e.map((t) => t.map((n) => n?.startsWith("?") ? n.slice(1) : n)), e;
867
871
  }
868
872
  function ea({
@@ -870,10 +874,10 @@ function ea({
870
874
  mediumBreakpoint: t,
871
875
  vertical: n,
872
876
  horizontal: a,
873
- is: o
877
+ is: r
874
878
  }) {
875
- function l(u) {
876
- let s = [
879
+ function s(u) {
880
+ let l = [
877
881
  [null],
878
882
  [null],
879
883
  [null],
@@ -884,12 +888,12 @@ function ea({
884
888
  const f = [];
885
889
  f.push("1fr");
886
890
  const b = [];
887
- return a.banner && (b.push(a.banner[u] + "px"), s[0][1] = "banner"), (a.header || n.menu || n.aside) && (b.push(
891
+ return a.banner && (b.push(a.banner[u] + "px"), l[0][1] = "banner"), (a.header || n.menu || n.aside) && (b.push(
888
892
  (a.header?.[u] ?? me.header[u]) + "px"
889
- ), s[1][1] = "header"), a.mainHeader && (b.push(a.mainHeader[u] + "px"), s[2][1] = "mainHeader"), b.push("1fr"), s[3][1] = "main", a.mainFooter && (b.push(a.mainFooter[u] + "px"), s[4][1] = "mainFooter"), a.footer && (b.push(a.footer[u] + "px"), s[5][1] = "footer"), s = tt(s), {
893
+ ), l[1][1] = "header"), a.mainHeader && (b.push(a.mainHeader[u] + "px"), l[2][1] = "mainHeader"), b.push("1fr"), l[3][1] = "main", a.mainFooter && (b.push(a.mainFooter[u] + "px"), l[4][1] = "mainFooter"), a.footer && (b.push(a.footer[u] + "px"), l[5][1] = "footer"), l = tt(l), {
890
894
  columns: f.join(" "),
891
895
  rows: b.join(" "),
892
- areas: s.map((m) => `"${m.join(" ")}"`).join(`
896
+ areas: l.map((m) => `"${m.join(" ")}"`).join(`
893
897
  `),
894
898
  displayMenu: !1,
895
899
  displayAside: !1,
@@ -898,7 +902,7 @@ function ea({
898
902
  };
899
903
  }
900
904
  function i(u) {
901
- let s = [
905
+ let l = [
902
906
  [null, null],
903
907
  [null, null],
904
908
  [null, null],
@@ -907,14 +911,14 @@ function ea({
907
911
  [null, null]
908
912
  ];
909
913
  const f = [];
910
- n.menu && (f.push(n.menu[u] + "px"), s[2][0] = "?menu", s[3][0] = "menu", s[4][0] = "?menu"), f.push("1fr");
914
+ n.menu && (f.push(n.menu[u] + "px"), l[2][0] = "?menu", l[3][0] = "menu", l[4][0] = "?menu"), f.push("1fr");
911
915
  const b = [];
912
- return a.banner && (b.push(a.banner[u] + "px"), s[0][0] = "?banner", s[0][1] = "banner"), (a.header || n.aside) && (b.push(
916
+ return a.banner && (b.push(a.banner[u] + "px"), l[0][0] = "?banner", l[0][1] = "banner"), (a.header || n.aside) && (b.push(
913
917
  (a.header?.[u] ?? me.header[u]) + "px"
914
- ), s[1][0] = "?header", s[1][1] = "header"), a.mainHeader && (b.push(a.mainHeader[u] + "px"), s[2][1] = "mainHeader"), b.push("1fr"), s[3][1] = "main", a.mainFooter && (b.push(a.mainFooter[u] + "px"), s[4][1] = "mainFooter"), a.footer && (b.push(a.footer[u] + "px"), s[5][0] = "?footer", s[5][1] = "footer"), s = tt(s), {
918
+ ), l[1][0] = "?header", l[1][1] = "header"), a.mainHeader && (b.push(a.mainHeader[u] + "px"), l[2][1] = "mainHeader"), b.push("1fr"), l[3][1] = "main", a.mainFooter && (b.push(a.mainFooter[u] + "px"), l[4][1] = "mainFooter"), a.footer && (b.push(a.footer[u] + "px"), l[5][0] = "?footer", l[5][1] = "footer"), l = tt(l), {
915
919
  columns: f.join(" "),
916
920
  rows: b.join(" "),
917
- areas: s.map((m) => `"${m.join(" ")}"`).join(`
921
+ areas: l.map((m) => `"${m.join(" ")}"`).join(`
918
922
  `),
919
923
  displayMenu: !0,
920
924
  displayAside: !1,
@@ -923,7 +927,7 @@ function ea({
923
927
  };
924
928
  }
925
929
  function c(u) {
926
- let s = [
930
+ let l = [
927
931
  [null, null, null],
928
932
  [null, null, null],
929
933
  [null, null, null],
@@ -932,12 +936,12 @@ function ea({
932
936
  [null, null, null]
933
937
  ];
934
938
  const f = [];
935
- n.menu && (f.push(n.menu[u] + "px"), s[2][0] = "?menu", s[3][0] = "menu", s[4][0] = "?menu"), f.push("1fr"), n.aside && (f.push(n.aside[u] + "px"), s[2][2] = "?aside", s[3][2] = "aside", s[4][2] = "?aside");
939
+ n.menu && (f.push(n.menu[u] + "px"), l[2][0] = "?menu", l[3][0] = "menu", l[4][0] = "?menu"), f.push("1fr"), n.aside && (f.push(n.aside[u] + "px"), l[2][2] = "?aside", l[3][2] = "aside", l[4][2] = "?aside");
936
940
  const b = [];
937
- return a.banner && (b.push(a.banner[u] + "px"), s[0][0] = "?banner", s[0][1] = "banner", s[0][2] = "?banner"), a.header && (b.push(a.header[u] + "px"), s[1][0] = "?header", s[1][1] = "header", s[1][2] = "?header"), a.mainHeader && (b.push(a.mainHeader[u] + "px"), s[2][1] = "mainHeader"), b.push("1fr"), s[3][1] = "main", a.mainFooter && (b.push(a.mainFooter[u] + "px"), s[4][1] = "mainFooter"), a.footer && (b.push(a.footer[u] + "px"), s[5][0] = "?footer", s[5][1] = "footer", s[5][2] = "?footer"), s = tt(s), {
941
+ return a.banner && (b.push(a.banner[u] + "px"), l[0][0] = "?banner", l[0][1] = "banner", l[0][2] = "?banner"), a.header && (b.push(a.header[u] + "px"), l[1][0] = "?header", l[1][1] = "header", l[1][2] = "?header"), a.mainHeader && (b.push(a.mainHeader[u] + "px"), l[2][1] = "mainHeader"), b.push("1fr"), l[3][1] = "main", a.mainFooter && (b.push(a.mainFooter[u] + "px"), l[4][1] = "mainFooter"), a.footer && (b.push(a.footer[u] + "px"), l[5][0] = "?footer", l[5][1] = "footer", l[5][2] = "?footer"), l = tt(l), {
938
942
  columns: f.join(" "),
939
943
  rows: b.join(" "),
940
- areas: s.map((m) => `"${m.join(" ")}"`).join(`
944
+ areas: l.map((m) => `"${m.join(" ")}"`).join(`
941
945
  `),
942
946
  displayMenu: !0,
943
947
  displayAside: !0,
@@ -947,8 +951,8 @@ function ea({
947
951
  }
948
952
  return ({
949
953
  width: u,
950
- breakpoint: s
951
- }) => o(`<=${e}`, u) ? l(s) : o(`<=${t}`, u) ? i(s) : c(s);
954
+ breakpoint: l
955
+ }) => r(`<=${e}`, u) ? s(l) : r(`<=${t}`, u) ? i(l) : c(l);
952
956
  }
953
957
  const ta = ["menu", "aside"], na = [
954
958
  "banner",
@@ -969,55 +973,55 @@ function kr({
969
973
  ...n
970
974
  }) {
971
975
  const a = Object.fromEntries(
972
- ta.filter((l) => n[l]).map(
973
- (l) => [
974
- l,
975
- It(n[l].width ?? {}, me[l])
976
+ ta.filter((s) => n[s]).map(
977
+ (s) => [
978
+ s,
979
+ It(n[s].width ?? {}, me[s])
976
980
  ]
977
981
  )
978
- ), o = Object.fromEntries(
979
- na.filter((l) => n[l]).map(
980
- (l) => [
981
- l,
982
- It(n[l].height ?? {}, me[l])
982
+ ), r = Object.fromEntries(
983
+ na.filter((s) => n[s]).map(
984
+ (s) => [
985
+ s,
986
+ It(n[s].height ?? {}, me[s])
983
987
  ]
984
988
  )
985
989
  );
986
990
  return ae(
987
991
  ie,
988
- (l) => Xn(({ value: i, is: c }) => {
992
+ (s) => Xn(({ value: i, is: c }) => {
989
993
  const u = ea({
990
994
  smallBreakpoint: e,
991
995
  mediumBreakpoint: t,
992
996
  vertical: a,
993
- horizontal: o,
997
+ horizontal: r,
994
998
  is: c
995
- }), s = i.map(u), f = o.header != null || a.menu != null || a.aside != null, b = I(
999
+ }), l = i.map(u), f = r.header != null || a.menu != null || a.aside != null, b = I(
996
1000
  a.aside != null,
997
- s
1001
+ l
998
1002
  )((g, { displayAside: p }) => g && !p), k = I(
999
1003
  a.menu != null,
1000
- s
1004
+ l
1001
1005
  )((g, { displayMenu: p }) => g && !p), m = Re(), y = Re(), h = Z(0), x = I(
1002
1006
  a.menu != null,
1003
- s,
1007
+ l,
1004
1008
  m.display
1005
1009
  )(aa), w = I(
1006
1010
  a.aside != null,
1007
- s,
1011
+ l,
1008
1012
  y.display
1009
1013
  )(ra);
1010
1014
  return d.div(
1011
1015
  S.display("grid"),
1012
1016
  S.height("100%"),
1013
1017
  S.width("100%"),
1014
- S.gridTemplateColumns(s.$.columns),
1015
- S.gridTemplateRows(s.$.rows),
1016
- S.gridTemplateAreas(s.$.areas),
1018
+ S.gridTemplateColumns(l.$.columns),
1019
+ S.gridTemplateRows(l.$.rows),
1020
+ S.gridTemplateAreas(l.$.areas),
1017
1021
  S.gridColumnGap("0"),
1018
1022
  S.gridRowGap("0"),
1019
1023
  n.banner ? d.header(
1020
- r.class(
1024
+ o.class(
1021
1025
  be("none", n.banner.shadow ?? "none")
1022
1026
  ),
1023
1027
  ke(n.banner.color ?? "white"),
@@ -1026,7 +1030,7 @@ function kr({
1026
1030
  n.banner.content
1027
1031
  ) : null,
1028
1032
  d.header(
1029
- r.class(
1033
+ o.class(
1030
1034
  be("bottom", n.header?.shadow ?? "none")
1031
1035
  ),
1032
1036
  ke(n.header?.color ?? "white"),
@@ -1051,7 +1055,7 @@ function kr({
1051
1055
  variant: "light",
1052
1056
  color: "base"
1053
1057
  },
1054
- M.label(l.$.toggleMenu),
1058
+ M.label(s.$.toggleMenu),
1055
1059
  ee({
1056
1060
  icon: m.display.map(
1057
1061
  (g) => g ? "line-md/menu-to-close-alt-transition" : "line-md/close-to-menu-alt-transition"
@@ -1079,11 +1083,11 @@ function kr({
1079
1083
  variant: "light",
1080
1084
  color: "base"
1081
1085
  },
1082
- M.label(l.$.toggleAside),
1086
+ M.label(s.$.toggleAside),
1083
1087
  ee(
1084
1088
  { icon: "line-md/chevron-left" },
1085
- r.style("transition: transform 0.2s ease-in-out"),
1086
- r.style(
1089
+ o.style("transition: transform 0.2s ease-in-out"),
1090
+ o.style(
1087
1091
  y.display.map(
1088
1092
  (g) => `transform: rotate(${g ? 180 : 0}deg)`
1089
1093
  )
@@ -1097,10 +1101,10 @@ function kr({
1097
1101
  ne((g) => m.setElement(g)),
1098
1102
  S.zIndex("10"),
1099
1103
  // Add ARIA attributes for navigation landmark
1100
- M.label(l.$.mainNavigation),
1101
- r.role("navigation"),
1104
+ M.label(s.$.mainNavigation),
1105
+ o.role("navigation"),
1102
1106
  S.overflow("hidden"),
1103
- r.class(
1107
+ o.class(
1104
1108
  x.map(
1105
1109
  (g) => g === "float" ? be(
1106
1110
  "right",
@@ -1139,14 +1143,14 @@ function kr({
1139
1143
  m.status
1140
1144
  )((g, p) => g === "block" ? "opened" : p)
1141
1145
  }),
1142
- S.width(Pe(n.menu?.width, s.$.menuWidth)),
1146
+ S.width(Le(n.menu?.width, l.$.menuWidth)),
1143
1147
  S.bottom("0"),
1144
1148
  n.menu?.content
1145
1149
  ) : null,
1146
1150
  n.mainHeader ? d.header(
1147
1151
  S.height("100%"),
1148
1152
  S.gridArea("mainHeader"),
1149
- r.class(
1153
+ o.class(
1150
1154
  be(
1151
1155
  "none",
1152
1156
  n.mainHeader?.shadow ?? "none"
@@ -1159,7 +1163,7 @@ function kr({
1159
1163
  S.height("100%"),
1160
1164
  S.overflow("hidden"),
1161
1165
  S.gridArea("main"),
1162
- r.class(
1166
+ o.class(
1163
1167
  be("none", n.main?.shadow ?? "none")
1164
1168
  ),
1165
1169
  ke(n.main?.color ?? "white"),
@@ -1168,7 +1172,7 @@ function kr({
1168
1172
  n.mainFooter ? d.footer(
1169
1173
  S.height("100%"),
1170
1174
  S.gridArea("mainFooter"),
1171
- r.class(
1175
+ o.class(
1172
1176
  be(
1173
1177
  "none",
1174
1178
  n.mainFooter?.shadow ?? "none"
@@ -1183,9 +1187,9 @@ function kr({
1183
1187
  }),
1184
1188
  S.zIndex("10"),
1185
1189
  // Add ARIA attributes for aside landmark
1186
- M.label(l.$.sidebar),
1187
- r.role("complementary"),
1188
- r.class(
1190
+ M.label(s.$.sidebar),
1191
+ o.role("complementary"),
1192
+ o.class(
1189
1193
  w.map(
1190
1194
  (g) => g === "float" ? be("left", "md") : be("left", "none")
1191
1195
  )
@@ -1214,13 +1218,13 @@ function kr({
1214
1218
  )((g, p) => g === "block" ? "opened" : p)
1215
1219
  }),
1216
1220
  S.width(
1217
- Pe(n.aside?.width, s.$.asideWidth)
1221
+ Le(n.aside?.width, l.$.asideWidth)
1218
1222
  ),
1219
1223
  S.bottom(h.map((g) => `${g}px`)),
1220
1224
  n.aside.content
1221
1225
  ) : null,
1222
1226
  n.footer ? d.footer(
1223
- r.class(be("top", "none")),
1227
+ o.class(be("top", "none")),
1224
1228
  ke("white"),
1225
1229
  S.height("100%"),
1226
1230
  S.gridArea("footer"),
@@ -1232,8 +1236,8 @@ function kr({
1232
1236
  }
1233
1237
  function Sr(...e) {
1234
1238
  return d.div(
1235
- r.class("bc-center-h"),
1236
- d.div(r.class("bc-center__content"), ...e)
1239
+ o.class("bc-center-h"),
1240
+ d.div(o.class("bc-center__content"), ...e)
1237
1241
  );
1238
1242
  }
1239
1243
  function oa(e) {
@@ -1242,36 +1246,36 @@ function oa(e) {
1242
1246
  }
1243
1247
  function Cr({ gap: e = "lg" } = {}, ...t) {
1244
1248
  return d.div(
1245
- r.class(I(e)((n) => oa(n ?? "lg"))),
1249
+ o.class(I(e)((n) => oa(n ?? "lg"))),
1246
1250
  ...t
1247
1251
  );
1248
1252
  }
1249
1253
  function sa({ open: e }, ...t) {
1250
1254
  return ne((n) => {
1251
- const { status: a, setOpen: o, dispose: l } = Re({
1255
+ const { status: a, setOpen: r, dispose: s } = Re({
1252
1256
  initialStatus: v.get(e) ? "opened" : "closed",
1253
1257
  element: n
1254
1258
  });
1255
- return v.on(e, o), Be((i) => {
1259
+ return v.on(e, r), Be((i) => {
1256
1260
  const c = Z(null);
1257
1261
  return I(
1258
1262
  a,
1259
1263
  i.$.height
1260
- )((s, f) => s === "opened" && f > 0 ? f : null).on((s) => {
1261
- s != null && c.set(s);
1262
- }), a.on((s) => {
1263
- if (n && s === "start-opening") {
1264
+ )((l, f) => l === "opened" && f > 0 ? f : null).on((l) => {
1265
+ l != null && c.set(l);
1266
+ }), a.on((l) => {
1267
+ if (n && l === "start-opening") {
1264
1268
  const f = n.style.height, b = n.style.transition;
1265
1269
  n.style.transition = "none", n.style.height = "auto", n.offsetHeight;
1266
1270
  const k = n.scrollHeight;
1267
1271
  k > 0 && c.set(k), n.style.height = f, n.style.transition = b, n.offsetHeight;
1268
1272
  }
1269
1273
  }), R(
1270
- oe(l),
1271
- r.style(
1272
- c.map((s) => `--collapse-height: ${s != null ? `${s}px` : "auto"}`)
1274
+ oe(s),
1275
+ o.style(
1276
+ c.map((l) => `--collapse-height: ${l != null ? `${l}px` : "auto"}`)
1273
1277
  ),
1274
- r.class(a.map((s) => `bc-collapse bc-collapse--${s}`)),
1278
+ o.class(a.map((l) => `bc-collapse bc-collapse--${l}`)),
1275
1279
  ...t
1276
1280
  );
1277
1281
  });
@@ -1288,12 +1292,12 @@ function Tr({
1288
1292
  contentWidth: t,
1289
1293
  contentHeight: n,
1290
1294
  header: a,
1291
- headerHeight: o = 0,
1292
- topStart: l,
1295
+ headerHeight: r = 0,
1296
+ topStart: s,
1293
1297
  topEnd: i,
1294
1298
  footer: c,
1295
1299
  footerHeight: u = 0,
1296
- bottomStart: s,
1300
+ bottomStart: l,
1297
1301
  bottomEnd: f,
1298
1302
  sidebarStart: b,
1299
1303
  sidebarStartWidth: k = 0,
@@ -1301,26 +1305,26 @@ function Tr({
1301
1305
  sidebarEndWidth: y = 0,
1302
1306
  anchorMode: h = "container-edge"
1303
1307
  }) {
1304
- const x = Z(0n), w = Z(0n), g = $t(o), p = $t(k), C = Z(16);
1308
+ const x = Z(0n), w = Z(0n), g = $t(r), p = $t(k), C = Z(16);
1305
1309
  return d.div(
1306
- r.class("bc-nine-slice-container"),
1310
+ o.class("bc-nine-slice-container"),
1307
1311
  Be(($) => {
1308
- const L = I(
1312
+ const P = I(
1309
1313
  $.$.width,
1310
1314
  k,
1311
1315
  y
1312
1316
  )((D, N, K) => D - N - K), _ = I(
1313
1317
  $.$.height,
1314
- o,
1318
+ r,
1315
1319
  u
1316
1320
  )((D, N, K) => D - N - K), T = I(
1317
1321
  t,
1318
- L
1322
+ P
1319
1323
  )((D, N) => D > BigInt(N)), V = I(
1320
1324
  n,
1321
1325
  _
1322
1326
  )((D, N) => D > BigInt(N)), O = I(
1323
- L,
1327
+ P,
1324
1328
  V,
1325
1329
  C
1326
1330
  )((D, N, K) => N ? D - K : D), B = I(
@@ -1344,9 +1348,9 @@ function Tr({
1344
1348
  t,
1345
1349
  O,
1346
1350
  y
1347
- )((D, N, K, P) => {
1351
+ )((D, N, K, L) => {
1348
1352
  const E = D + Number(N), j = D + K, J = Math.min(E, j);
1349
- return `${Math.max(D + P, J)}px`;
1353
+ return `${Math.max(D + L, J)}px`;
1350
1354
  })
1351
1355
  ),
1352
1356
  () => S.right("0")
@@ -1357,13 +1361,13 @@ function Tr({
1357
1361
  Y,
1358
1362
  () => S.top(
1359
1363
  I(
1360
- o,
1364
+ r,
1361
1365
  n,
1362
1366
  B,
1363
1367
  u
1364
- )((D, N, K, P) => {
1368
+ )((D, N, K, L) => {
1365
1369
  const E = D + Number(N), j = D + K, J = Math.min(E, j);
1366
- return `${Math.max(D + P, J)}px`;
1370
+ return `${Math.max(D + L, J)}px`;
1367
1371
  })
1368
1372
  ),
1369
1373
  () => S.bottom("0")
@@ -1379,8 +1383,8 @@ function Tr({
1379
1383
  x,
1380
1384
  T,
1381
1385
  V
1382
- )((D, N, K, P) => {
1383
- const E = K ? `translateX(-${D}px)` : "", j = P ? `translateY(-${N}px)` : "";
1386
+ )((D, N, K, L) => {
1387
+ const E = K ? `translateX(-${D}px)` : "", j = L ? `translateY(-${N}px)` : "";
1384
1388
  return `${E} ${j}`.trim() || "none";
1385
1389
  })
1386
1390
  ), ye = S.transform(
@@ -1396,7 +1400,7 @@ function Tr({
1396
1400
  )((D, N) => D - BigInt(Math.max(1, N)));
1397
1401
  let z = null, Ie = 0, $e = 0;
1398
1402
  const Ke = () => {
1399
- const D = De.value, N = Ae.value, K = V.value, P = T.value;
1403
+ const D = De.value, N = Ae.value, K = V.value, L = T.value;
1400
1404
  if (K && $e !== 0) {
1401
1405
  const E = Tt(
1402
1406
  je(0n, D),
@@ -1407,7 +1411,7 @@ function Tr({
1407
1411
  );
1408
1412
  x.set(E);
1409
1413
  }
1410
- if (P && Ie !== 0) {
1414
+ if (L && Ie !== 0) {
1411
1415
  const E = Tt(
1412
1416
  je(0n, N),
1413
1417
  je(
@@ -1433,34 +1437,34 @@ function Tr({
1433
1437
  Ie += N, $e += K, z || (z = setTimeout(Ke, 16));
1434
1438
  }),
1435
1439
  d.div(
1436
- r.class("bc-nine-slice-pane-container"),
1440
+ o.class("bc-nine-slice-pane-container"),
1437
1441
  S.right(Te),
1438
1442
  S.bottom(q),
1439
1443
  // top-start corner
1440
- l != null ? d.div(
1441
- r.class("bc-nine-slice-pane bc-nine-slice-top-start"),
1444
+ s != null ? d.div(
1445
+ o.class("bc-nine-slice-pane bc-nine-slice-top-start"),
1442
1446
  S.top("0"),
1443
1447
  S.left("0"),
1444
1448
  // style.height(headerHeightPx),
1445
1449
  // style.width(sidebarStartWidthPx),
1446
- l
1450
+ s
1447
1451
  ) : null,
1448
1452
  // top-center
1449
1453
  a != null ? d.div(
1450
- r.class("bc-nine-slice-pane bc-nine-slice-header"),
1454
+ o.class("bc-nine-slice-pane bc-nine-slice-header"),
1451
1455
  S.top("0"),
1452
1456
  S.left(p),
1453
1457
  // style.height(headerHeightPx),
1454
1458
  // style.width(visibleAreaWidthPx),
1455
1459
  d.div(
1456
- r.class("bc-nine-slice-pane-content"),
1460
+ o.class("bc-nine-slice-pane-content"),
1457
1461
  ye,
1458
1462
  a
1459
1463
  )
1460
1464
  ) : null,
1461
1465
  // top-end corner
1462
1466
  i != null ? d.div(
1463
- r.class("bc-nine-slice-pane bc-nine-slice-top-end"),
1467
+ o.class("bc-nine-slice-pane bc-nine-slice-top-end"),
1464
1468
  S.top("0"),
1465
1469
  U,
1466
1470
  // style.height(headerHeightPx),
@@ -1469,68 +1473,68 @@ function Tr({
1469
1473
  ) : null,
1470
1474
  // middle-start sidebar
1471
1475
  b != null ? d.div(
1472
- r.class("bc-nine-slice-pane bc-nine-slice-sidebar-start"),
1476
+ o.class("bc-nine-slice-pane bc-nine-slice-sidebar-start"),
1473
1477
  S.left("0"),
1474
1478
  S.top(g),
1475
1479
  // style.height(visibleAreaHeightPx),
1476
1480
  // style.width(sidebarStartWidthPx),
1477
1481
  d.div(
1478
- r.class("bc-nine-slice-pane-content"),
1482
+ o.class("bc-nine-slice-pane-content"),
1479
1483
  we,
1480
1484
  b
1481
1485
  )
1482
1486
  ) : null,
1483
1487
  // middle-center (main body)
1484
1488
  d.div(
1485
- r.class("bc-nine-slice-pane bc-nine-slice-body"),
1489
+ o.class("bc-nine-slice-pane bc-nine-slice-body"),
1486
1490
  S.left(p),
1487
1491
  S.top(g),
1488
1492
  // style.width(visibleAreaWidth.map(toPx)),
1489
1493
  // style.height(visibleAreaHeight.map(toPx)),
1490
1494
  d.div(
1491
- r.class("bc-nine-slice-pane-content"),
1495
+ o.class("bc-nine-slice-pane-content"),
1492
1496
  de,
1493
1497
  e
1494
1498
  )
1495
1499
  ),
1496
1500
  // middle-end sidebar
1497
1501
  m != null ? d.div(
1498
- r.class("bc-nine-slice-pane bc-nine-slice-sidebar-end"),
1502
+ o.class("bc-nine-slice-pane bc-nine-slice-sidebar-end"),
1499
1503
  U,
1500
1504
  S.top(g),
1501
1505
  // style.height(visibleAreaHeightPx),
1502
1506
  // style.width(sidebarEndWidthPx),
1503
1507
  d.div(
1504
- r.class("bc-nine-slice-pane-content"),
1508
+ o.class("bc-nine-slice-pane-content"),
1505
1509
  we,
1506
1510
  m
1507
1511
  )
1508
1512
  ) : null,
1509
1513
  // bottom-start corner
1510
- s != null ? d.div(
1511
- r.class("bc-nine-slice-pane bc-nine-slice-bottom-start"),
1514
+ l != null ? d.div(
1515
+ o.class("bc-nine-slice-pane bc-nine-slice-bottom-start"),
1512
1516
  S.left("0"),
1513
1517
  le,
1514
1518
  // style.height(footerHeightPx),
1515
1519
  // style.width(sidebarStartWidthPx),
1516
- s
1520
+ l
1517
1521
  ) : null,
1518
1522
  // bottom-center
1519
1523
  c != null ? d.div(
1520
- r.class("bc-nine-slice-pane bc-nine-slice-footer"),
1524
+ o.class("bc-nine-slice-pane bc-nine-slice-footer"),
1521
1525
  S.left(p),
1522
1526
  le,
1523
1527
  // style.height(footerHeightPx),
1524
1528
  // style.width(visibleAreaWidthPx),
1525
1529
  d.div(
1526
- r.class("bc-nine-slice-pane-content"),
1530
+ o.class("bc-nine-slice-pane-content"),
1527
1531
  ye,
1528
1532
  c
1529
1533
  )
1530
1534
  ) : null,
1531
1535
  // bottom-end corner
1532
1536
  f != null ? d.div(
1533
- r.class("bc-nine-slice-pane bc-nine-slice-bottom-end"),
1537
+ o.class("bc-nine-slice-pane bc-nine-slice-bottom-end"),
1534
1538
  U,
1535
1539
  le,
1536
1540
  // style.height(footerHeightPx),
@@ -1540,7 +1544,7 @@ function Tr({
1540
1544
  ),
1541
1545
  // horizontal scrollbar
1542
1546
  d.div(
1543
- r.class("bc-nine-slice-pane bc-nine-slice-horizontal-scrollbar"),
1547
+ o.class("bc-nine-slice-pane bc-nine-slice-horizontal-scrollbar"),
1544
1548
  S.overflowX("scroll"),
1545
1549
  S.left("0"),
1546
1550
  S.right(
@@ -1556,7 +1560,7 @@ function Tr({
1556
1560
  )
1557
1561
  ),
1558
1562
  d.div(
1559
- r.class(
1563
+ o.class(
1560
1564
  "bc-nine-slice-pane bc-nine-slice-horizontal-scrollbar-thumb"
1561
1565
  ),
1562
1566
  S.width(
@@ -1566,9 +1570,9 @@ function Tr({
1566
1570
  S.backgroundColor("#ff000066")
1567
1571
  ),
1568
1572
  A.scroll((D) => {
1569
- const N = D.target, K = N.scrollLeft, P = N.scrollWidth - N.clientWidth;
1570
- if (P > 0) {
1571
- const E = K / P, j = Ae.value;
1573
+ const N = D.target, K = N.scrollLeft, L = N.scrollWidth - N.clientWidth;
1574
+ if (L > 0) {
1575
+ const E = K / L, j = Ae.value;
1572
1576
  w.set(
1573
1577
  BigInt(Math.round(Number(j) * E))
1574
1578
  );
@@ -1577,7 +1581,7 @@ function Tr({
1577
1581
  ),
1578
1582
  // vertical scrollbar
1579
1583
  d.div(
1580
- r.class("bc-nine-slice-pane bc-nine-slice-vertical-scrollbar"),
1584
+ o.class("bc-nine-slice-pane bc-nine-slice-vertical-scrollbar"),
1581
1585
  S.overflowY("scroll"),
1582
1586
  S.top("0"),
1583
1587
  S.bottom(
@@ -1593,24 +1597,24 @@ function Tr({
1593
1597
  )
1594
1598
  ),
1595
1599
  d.div(
1596
- r.class(
1600
+ o.class(
1597
1601
  "bc-nine-slice-pane bc-nine-slice-vertical-scrollbar-thumb"
1598
1602
  ),
1599
1603
  S.width("100%"),
1600
1604
  S.height(
1601
1605
  I(
1602
- o,
1606
+ r,
1603
1607
  u,
1604
1608
  n,
1605
1609
  X
1606
- )((D, N, K, P) => `${100 / Math.max(1, P)}%`)
1610
+ )((D, N, K, L) => `${100 / Math.max(1, L)}%`)
1607
1611
  ),
1608
1612
  S.backgroundColor("#ff000066")
1609
1613
  ),
1610
1614
  A.scroll((D) => {
1611
- const N = D.target, K = N.scrollTop, P = N.scrollHeight - N.clientHeight;
1612
- if (P > 0) {
1613
- const E = K / P, j = De.value;
1615
+ const N = D.target, K = N.scrollTop, L = N.scrollHeight - N.clientHeight;
1616
+ if (L > 0) {
1617
+ const E = K / L, j = De.value;
1614
1618
  x.set(
1615
1619
  BigInt(Math.round(Number(j) * E))
1616
1620
  );
@@ -1621,20 +1625,20 @@ function Tr({
1621
1625
  })
1622
1626
  );
1623
1627
  }
1624
- function _t({ header: e, footer: t, body: n, shadowOnScroll: a = !0 }, ...o) {
1625
- const l = Z("none");
1628
+ function _t({ header: e, footer: t, body: n, shadowOnScroll: a = !0 }, ...r) {
1629
+ const s = Z("none");
1626
1630
  function i(u) {
1627
- const s = u.scrollTop === 0, f = u.scrollTop + u.clientHeight >= u.scrollHeight - 1;
1628
- s && f ? l.set("none") : s ? l.set("bottom") : f ? l.set("top") : l.set("both");
1631
+ const l = u.scrollTop === 0, f = u.scrollTop + u.clientHeight >= u.scrollHeight - 1;
1632
+ l && f ? s.set("none") : l ? s.set("bottom") : f ? s.set("top") : s.set("both");
1629
1633
  }
1630
1634
  return d.div(
1631
- r.class("bc-scrollable-panel"),
1632
- r.class(
1635
+ o.class("bc-scrollable-panel"),
1636
+ o.class(
1633
1637
  I(
1634
- l,
1638
+ s,
1635
1639
  a
1636
- )((u, s) => {
1637
- if (!s) return "";
1640
+ )((u, l) => {
1641
+ if (!l) return "";
1638
1642
  switch (u) {
1639
1643
  case "both":
1640
1644
  return "bc-scrollable-panel--scrolled-up bc-scrollable-panel--scrolled-down";
@@ -1647,22 +1651,22 @@ function _t({ header: e, footer: t, body: n, shadowOnScroll: a = !0 }, ...o) {
1647
1651
  }
1648
1652
  })
1649
1653
  ),
1650
- e && d.div(r.class("bc-scrollable-panel__header"), e),
1651
- d.div(r.class("bc-scrollable-panel--header-shadow"), d.div()),
1654
+ e && d.div(o.class("bc-scrollable-panel__header"), e),
1655
+ d.div(o.class("bc-scrollable-panel--header-shadow"), d.div()),
1652
1656
  d.div(
1653
- r.class("bc-scrollable-panel__body"),
1657
+ o.class("bc-scrollable-panel__body"),
1654
1658
  ne(
1655
1659
  (u) => oe(Ge(() => i(u)))
1656
1660
  ),
1657
1661
  A.scroll((u) => {
1658
- const s = u.target;
1659
- i(s);
1662
+ const l = u.target;
1663
+ i(l);
1660
1664
  }),
1661
1665
  n
1662
1666
  ),
1663
- d.div(r.class("bc-scrollable-panel--footer-shadow"), d.div()),
1664
- t && d.div(r.class("bc-scrollable-panel__footer"), t),
1665
- ...o
1667
+ d.div(o.class("bc-scrollable-panel--footer-shadow"), d.div()),
1668
+ t && d.div(o.class("bc-scrollable-panel__footer"), t),
1669
+ ...r
1666
1670
  );
1667
1671
  }
1668
1672
  function ia(e, t, n) {
@@ -1671,15 +1675,15 @@ function ia(e, t, n) {
1671
1675
  }
1672
1676
  function Ir({ variant: e = "default", size: t = "md", roundedness: n = "lg" } = {}, ...a) {
1673
1677
  return d.div(
1674
- r.class(
1678
+ o.class(
1675
1679
  I(
1676
1680
  e,
1677
1681
  t,
1678
1682
  n
1679
1683
  )(
1680
- (o, l, i) => ia(
1681
- o ?? "default",
1682
- l ?? "md",
1684
+ (r, s, i) => ia(
1685
+ r ?? "default",
1686
+ s ?? "md",
1683
1687
  i ?? "lg"
1684
1688
  )
1685
1689
  )
@@ -1691,49 +1695,49 @@ const Ce = {
1691
1695
  value: (e, t, {
1692
1696
  disabled: n,
1693
1697
  before: a,
1694
- after: o
1698
+ after: r
1695
1699
  } = {}) => ({
1696
1700
  type: "value",
1697
1701
  value: e,
1698
1702
  label: t,
1699
1703
  disabled: n,
1700
1704
  before: a,
1701
- after: o
1705
+ after: r
1702
1706
  }),
1703
1707
  group: (e, t, {
1704
1708
  disabled: n,
1705
1709
  before: a,
1706
- after: o
1710
+ after: r
1707
1711
  } = {}) => ({
1708
1712
  type: "group",
1709
1713
  group: e,
1710
1714
  options: t,
1711
1715
  disabled: n,
1712
1716
  before: a,
1713
- after: o
1717
+ after: r
1714
1718
  }),
1715
1719
  break: { type: "break" },
1716
1720
  getValues: (e) => e.flatMap(
1717
1721
  (t) => t.type === "group" ? Ce.getValues(t.options) : t.type === "break" ? [] : [t.value]
1718
1722
  ),
1719
- contains: (e, t, n = (a, o) => a === o) => Ce.getValues(e).some((a) => n(a, t))
1723
+ contains: (e, t, n = (a, r) => a === r) => Ce.getValues(e).some((a) => n(a, t))
1720
1724
  }, Qt = (e) => {
1721
1725
  const {
1722
1726
  onChange: t,
1723
1727
  onBlur: n,
1724
1728
  role: a,
1725
- display: o,
1726
- optionsSource: l,
1729
+ display: r,
1730
+ optionsSource: s,
1727
1731
  allowSpaceToggle: i = !1,
1728
1732
  onBeforeOpen: c,
1729
1733
  onAfterOpen: u,
1730
- buildListboxContent: s
1734
+ buildListboxContent: l
1731
1735
  } = e, f = Z(!1), b = Z(-1), k = Z(null), m = he("dropdown"), y = he("listbox");
1732
1736
  let h, x;
1733
1737
  const w = (p) => {
1734
1738
  t?.(p), f.set(!1), b.set(-1), k.set(null), h?.focus();
1735
1739
  }, g = (p) => {
1736
- const C = Ce.getValues(v.get(l));
1740
+ const C = Ce.getValues(v.get(s));
1737
1741
  switch (p.key) {
1738
1742
  case "ArrowDown": {
1739
1743
  if (p.preventDefault(), !f.value)
@@ -1760,7 +1764,7 @@ const Ce = {
1760
1764
  $ != null && w($);
1761
1765
  } else {
1762
1766
  c?.();
1763
- const $ = Ce.getValues(v.get(l));
1767
+ const $ = Ce.getValues(v.get(s));
1764
1768
  f.set(!0), $.length > 0 && (b.set(0), k.set($[0])), setTimeout(() => u?.(), 0);
1765
1769
  }
1766
1770
  break;
@@ -1772,7 +1776,7 @@ const Ce = {
1772
1776
  case " ": {
1773
1777
  if (v.get(i)) {
1774
1778
  p.preventDefault();
1775
- const $ = Ce.getValues(v.get(l));
1779
+ const $ = Ce.getValues(v.get(s));
1776
1780
  f.set(!f.value), f.value && $.length > 0 && (b.set(0), k.set($[0]));
1777
1781
  }
1778
1782
  break;
@@ -1783,11 +1787,11 @@ const Ce = {
1783
1787
  {
1784
1788
  ...e,
1785
1789
  input: Gt(
1786
- r.class("bc-dropdown__trigger"),
1787
- d.span(r.class("bc-dropdown__display"), o),
1790
+ o.class("bc-dropdown__trigger"),
1791
+ d.span(o.class("bc-dropdown__display"), r),
1788
1792
  ee(
1789
1793
  { icon: "ph:caret-up-down-bold", color: "neutral" },
1790
- r.class("bc-dropdown__arrow")
1794
+ o.class("bc-dropdown__arrow")
1791
1795
  )
1792
1796
  )
1793
1797
  },
@@ -1796,12 +1800,12 @@ const Ce = {
1796
1800
  () => C.removeEventListener("keydown", g)
1797
1801
  ))),
1798
1802
  fe(e),
1799
- r.id(m),
1800
- r.tabindex(0),
1803
+ o.id(m),
1804
+ o.tabindex(0),
1801
1805
  M.controls(y),
1802
1806
  M.expanded(f),
1803
- r.class("bc-dropdown"),
1804
- r.role(a),
1807
+ o.class("bc-dropdown"),
1808
+ o.role(a),
1805
1809
  M.activedescendant(
1806
1810
  I(
1807
1811
  f,
@@ -1821,11 +1825,11 @@ const Ce = {
1821
1825
  x = C;
1822
1826
  }),
1823
1827
  S.minWidth(p.$.width.map((C) => `${C - 10}px`)),
1824
- r.class("bc-dropdown__listbox"),
1825
- r.role("listbox"),
1826
- r.id(y),
1828
+ o.class("bc-dropdown__listbox"),
1829
+ o.role("listbox"),
1830
+ o.id(y),
1827
1831
  M.labelledby(m),
1828
- s({
1832
+ l({
1829
1833
  dropdownId: m,
1830
1834
  listboxId: y,
1831
1835
  focusedValue: k,
@@ -1837,16 +1841,16 @@ const Ce = {
1837
1841
  placement: "bottom-start",
1838
1842
  hasPopup: "listbox",
1839
1843
  showOn: (C, $) => {
1840
- const L = $;
1844
+ const P = $;
1841
1845
  $ = () => {
1842
- f.set(!1), b.set(-1), k.set(null), L();
1846
+ f.set(!1), b.set(-1), k.set(null), P();
1843
1847
  };
1844
1848
  const _ = () => {
1845
1849
  if (f.value)
1846
1850
  $();
1847
1851
  else {
1848
1852
  c?.();
1849
- const T = Ce.getValues(v.get(l));
1853
+ const T = Ce.getValues(v.get(s));
1850
1854
  f.set(!0), T.length > 0 && (b.set(0), k.set(T[0])), C(), setTimeout(() => u?.(), 0);
1851
1855
  }
1852
1856
  };
@@ -1858,86 +1862,86 @@ const Ce = {
1858
1862
  })
1859
1863
  ))
1860
1864
  );
1861
- }, Xt = (e, t, n, a, o) => Ue(
1865
+ }, Xt = (e, t, n, a, r) => Ue(
1862
1866
  e,
1863
- (l) => Mt(l, {
1867
+ (s) => Mt(s, {
1864
1868
  value: (i) => {
1865
1869
  const c = I(
1866
1870
  i,
1867
1871
  n
1868
- )((s, f) => t(s.value, f)), u = I(
1872
+ )((l, f) => t(l.value, f)), u = I(
1869
1873
  i,
1870
- o
1871
- )((s, f) => f != null && t(s.value, f));
1874
+ r
1875
+ )((l, f) => f != null && t(l.value, f));
1872
1876
  return d.div(
1873
- r.class("bc-dropdown__option"),
1874
- r.class(
1877
+ o.class("bc-dropdown__option"),
1878
+ o.class(
1875
1879
  I(
1876
1880
  c,
1877
1881
  u,
1878
1882
  i
1879
- )((s, f, b) => {
1883
+ )((l, f, b) => {
1880
1884
  const k = [];
1881
- return s && k.push("bc-dropdown__option--selected"), f && k.push("bc-dropdown__option--focused"), b.disabled && k.push("bc-dropdown__option--disabled"), k.join(" ");
1885
+ return l && k.push("bc-dropdown__option--selected"), f && k.push("bc-dropdown__option--focused"), b.disabled && k.push("bc-dropdown__option--disabled"), k.join(" ");
1882
1886
  })
1883
1887
  ),
1884
- r.role("option"),
1885
- r.id(i.map((s) => `dropdown-option-${String(s.value)}`)),
1888
+ o.role("option"),
1889
+ o.id(i.map((l) => `dropdown-option-${String(l.value)}`)),
1886
1890
  M.selected(c),
1887
1891
  An("value", i.$.value),
1888
1892
  Q(
1889
- i.map((s) => !s.disabled),
1893
+ i.map((l) => !l.disabled),
1890
1894
  () => A.click(() => a(i.value.value)),
1891
1895
  () => W
1892
1896
  ),
1893
1897
  d.div(
1894
- r.class("bc-dropdown__option-content"),
1898
+ o.class("bc-dropdown__option-content"),
1895
1899
  // Before content - simple conditional rendering
1896
1900
  i.value.before && d.span(
1897
- r.class("bc-dropdown__option-before"),
1901
+ o.class("bc-dropdown__option-before"),
1898
1902
  i.value.before
1899
1903
  ),
1900
1904
  // Label
1901
- d.span(r.class("bc-dropdown__option-label"), i.$.label),
1905
+ d.span(o.class("bc-dropdown__option-label"), i.$.label),
1902
1906
  // After content - simple conditional rendering
1903
- i.value.after && d.span(r.class("bc-dropdown__option-after"), i.value.after)
1907
+ i.value.after && d.span(o.class("bc-dropdown__option-after"), i.value.after)
1904
1908
  )
1905
1909
  );
1906
1910
  },
1907
1911
  group: (i) => d.div(
1908
- r.class("bc-dropdown__group"),
1909
- r.role("group"),
1912
+ o.class("bc-dropdown__group"),
1913
+ o.role("group"),
1910
1914
  M.label(i.$.group),
1911
- d.div(r.class("bc-dropdown__group-label"), i.$.group),
1912
- Le(
1915
+ d.div(o.class("bc-dropdown__group-label"), i.$.group),
1916
+ Pe(
1913
1917
  i.$.options,
1914
1918
  (c) => Xt(
1915
1919
  c,
1916
1920
  t,
1917
1921
  n,
1918
1922
  a,
1919
- o
1923
+ r
1920
1924
  )
1921
1925
  )
1922
1926
  ),
1923
- break: () => d.hr(r.class("bc-dropdown__separator"))
1927
+ break: () => d.hr(o.class("bc-dropdown__separator"))
1924
1928
  })
1925
1929
  ), ca = (e) => {
1926
1930
  const {
1927
1931
  value: t,
1928
1932
  options: n,
1929
1933
  unselectedLabel: a,
1930
- equality: o = (s, f) => s === f,
1931
- placeholder: l,
1934
+ equality: r = (l, f) => l === f,
1935
+ placeholder: s,
1932
1936
  searchable: i = !1
1933
1937
  } = e, c = I(
1934
1938
  t,
1935
1939
  n
1936
- )((s, f) => {
1937
- if (s == null) return "";
1940
+ )((l, f) => {
1941
+ if (l == null) return "";
1938
1942
  const b = (k) => {
1939
1943
  for (const m of k) {
1940
- if (m.type === "value" && o(m.value, s))
1944
+ if (m.type === "value" && r(m.value, l))
1941
1945
  return m.label;
1942
1946
  if (m.type === "group") {
1943
1947
  const y = b(m.options);
@@ -1945,30 +1949,30 @@ const Ce = {
1945
1949
  }
1946
1950
  }
1947
1951
  };
1948
- return b(f) || String(s);
1949
- }), u = I(i)((s) => !s);
1952
+ return b(f) || String(l);
1953
+ }), u = I(i)((l) => !l);
1950
1954
  return Qt({
1951
1955
  ...e,
1952
1956
  role: "dropdown",
1953
1957
  display: Q(
1954
- c.map((s) => s.length > 0),
1958
+ c.map((l) => l.length > 0),
1955
1959
  () => c,
1956
1960
  () => ae(
1957
1961
  ie,
1958
- (s) => Pe(l, a, s.$.selectOne)
1962
+ (l) => Le(s, a, l.$.selectOne)
1959
1963
  )
1960
1964
  ),
1961
1965
  optionsSource: n,
1962
1966
  allowSpaceToggle: u,
1963
- buildListboxContent: ({ focusedValue: s, onSelect: f }) => Le(
1967
+ buildListboxContent: ({ focusedValue: l, onSelect: f }) => Pe(
1964
1968
  n,
1965
- (b) => Xt(b, o, t, f, s)
1969
+ (b) => Xt(b, r, t, f, l)
1966
1970
  )
1967
1971
  });
1968
1972
  }, ua = (e) => {
1969
- const { controller: t, onChange: n, onBlur: a, ...o } = e;
1973
+ const { controller: t, onChange: n, onBlur: a, ...r } = e;
1970
1974
  return ca({
1971
- ...o,
1975
+ ...r,
1972
1976
  value: t.signal,
1973
1977
  onChange: jt(t, n),
1974
1978
  onBlur: Ft(t, a)
@@ -1976,33 +1980,33 @@ const Ce = {
1976
1980
  }, $r = (e) => dt({
1977
1981
  ...e,
1978
1982
  content: ua(e)
1979
- }), en = (e, t, n, a, o, l) => Ue(
1983
+ }), en = (e, t, n, a, r, s) => Ue(
1980
1984
  e,
1981
1985
  (i) => Mt(i, {
1982
1986
  value: (c) => {
1983
1987
  const u = I(
1984
1988
  c,
1985
1989
  n
1986
- )((f, b) => t(f.value, b)), s = I(
1990
+ )((f, b) => t(f.value, b)), l = I(
1987
1991
  c,
1988
- o
1992
+ r
1989
1993
  )(
1990
1994
  (f, b) => b != null && t(f.value, b)
1991
1995
  );
1992
1996
  return d.div(
1993
- r.class("bc-dropdown__option"),
1994
- r.class(
1997
+ o.class("bc-dropdown__option"),
1998
+ o.class(
1995
1999
  I(
1996
2000
  u,
1997
- s,
2001
+ l,
1998
2002
  c
1999
2003
  )((f, b, k) => {
2000
2004
  const m = [];
2001
2005
  return f && m.push("bc-dropdown__option--selected"), b && m.push("bc-dropdown__option--focused"), k.disabled && m.push("bc-dropdown__option--disabled"), m.join(" ");
2002
2006
  })
2003
2007
  ),
2004
- r.role("option"),
2005
- r.id(c.map((f) => `dropdown-option-${String(f.value)}`)),
2008
+ o.role("option"),
2009
+ o.id(c.map((f) => `dropdown-option-${String(f.value)}`)),
2006
2010
  M.selected(u),
2007
2011
  Q(
2008
2012
  c.map((f) => !f.disabled),
@@ -2010,54 +2014,54 @@ const Ce = {
2010
2014
  () => W
2011
2015
  ),
2012
2016
  d.div(
2013
- r.class("bc-dropdown__option-content"),
2017
+ o.class("bc-dropdown__option-content"),
2014
2018
  // Before slot
2015
2019
  c.value.before && d.span(
2016
- r.class("bc-dropdown__option-before"),
2020
+ o.class("bc-dropdown__option-before"),
2017
2021
  c.value.before
2018
2022
  ),
2019
2023
  // Custom renderer for the main content
2020
2024
  d.span(
2021
- r.class("bc-dropdown__option-label"),
2022
- l(c.$.value)
2025
+ o.class("bc-dropdown__option-label"),
2026
+ s(c.$.value)
2023
2027
  ),
2024
2028
  // After slot
2025
- c.value.after && d.span(r.class("bc-dropdown__option-after"), c.value.after)
2029
+ c.value.after && d.span(o.class("bc-dropdown__option-after"), c.value.after)
2026
2030
  )
2027
2031
  );
2028
2032
  },
2029
2033
  group: (c) => d.div(
2030
- r.class("bc-dropdown__group"),
2031
- r.role("group"),
2034
+ o.class("bc-dropdown__group"),
2035
+ o.role("group"),
2032
2036
  M.label(c.$.group),
2033
- d.div(r.class("bc-dropdown__group-label"), c.$.group),
2034
- Le(
2037
+ d.div(o.class("bc-dropdown__group-label"), c.$.group),
2038
+ Pe(
2035
2039
  c.$.options,
2036
2040
  (u) => en(
2037
2041
  u,
2038
2042
  t,
2039
2043
  n,
2040
2044
  a,
2041
- o,
2042
- l
2045
+ r,
2046
+ s
2043
2047
  )
2044
2048
  )
2045
2049
  ),
2046
- break: () => d.hr(r.class("bc-dropdown__separator"))
2050
+ break: () => d.hr(o.class("bc-dropdown__separator"))
2047
2051
  })
2048
2052
  ), da = (e) => {
2049
2053
  const {
2050
2054
  value: t,
2051
2055
  loadOptions: n,
2052
2056
  renderOption: a,
2053
- renderValue: o,
2054
- equality: l = (g, p) => g === p,
2057
+ renderValue: r,
2058
+ equality: s = (g, p) => g === p,
2055
2059
  placeholder: i,
2056
2060
  searchPlaceholder: c,
2057
2061
  debounceMs: u = 150
2058
- } = e, s = Z(""), f = Z(!1), b = Z([]);
2062
+ } = e, l = Z(""), f = Z(!1), b = Z([]);
2059
2063
  let k;
2060
- const m = v.toSignal(t), y = () => (o ?? a)(m);
2064
+ const m = v.toSignal(t), y = () => (r ?? a)(m);
2061
2065
  let h = null;
2062
2066
  const x = (g) => {
2063
2067
  f.set(!0), Promise.resolve(n(g)).then((p) => {
@@ -2083,7 +2087,7 @@ const Ce = {
2083
2087
  ),
2084
2088
  optionsSource: b,
2085
2089
  onBeforeOpen: () => {
2086
- const g = v.get(s);
2090
+ const g = v.get(l);
2087
2091
  w(g);
2088
2092
  },
2089
2093
  onAfterOpen: () => {
@@ -2092,21 +2096,21 @@ const Ce = {
2092
2096
  buildListboxContent: ({ focusedValue: g, handleKeyDown: p, onSelect: C }) => R(
2093
2097
  // Search input at the top
2094
2098
  d.div(
2095
- r.class("bc-dropdown__search"),
2099
+ o.class("bc-dropdown__search"),
2096
2100
  d.input(
2097
- r.type("text"),
2098
- r.class("bc-dropdown__search-input"),
2099
- r.placeholder(
2101
+ o.type("text"),
2102
+ o.class("bc-dropdown__search-input"),
2103
+ o.placeholder(
2100
2104
  I(
2101
2105
  c,
2102
2106
  i
2103
- )(($, L) => $ ?? L ?? "Search")
2107
+ )(($, P) => $ ?? P ?? "Search")
2104
2108
  ),
2105
- r.value(s),
2109
+ o.value(l),
2106
2110
  ne(($) => (k = $, W)),
2107
2111
  A.input(($) => {
2108
- const L = $.target;
2109
- s.set(L.value), w(L.value);
2112
+ const P = $.target;
2113
+ l.set(P.value), w(P.value);
2110
2114
  }),
2111
2115
  A.keydown(p)
2112
2116
  )
@@ -2114,14 +2118,14 @@ const Ce = {
2114
2118
  Q(
2115
2119
  f,
2116
2120
  () => d.div(
2117
- r.class("bc-dropdown__loading"),
2121
+ o.class("bc-dropdown__loading"),
2118
2122
  ee({ icon: "ph:spinner-bold", color: "neutral" })
2119
2123
  ),
2120
- () => Le(
2124
+ () => Pe(
2121
2125
  b,
2122
2126
  ($) => en(
2123
2127
  $,
2124
- l,
2128
+ s,
2125
2129
  m,
2126
2130
  C,
2127
2131
  g,
@@ -2132,9 +2136,9 @@ const Ce = {
2132
2136
  )
2133
2137
  });
2134
2138
  }, pa = (e) => {
2135
- const { controller: t, onChange: n, onBlur: a, ...o } = e;
2139
+ const { controller: t, onChange: n, onBlur: a, ...r } = e;
2136
2140
  return da({
2137
- ...o,
2141
+ ...r,
2138
2142
  value: t.signal,
2139
2143
  onChange: jt(t, n),
2140
2144
  onBlur: Ft(t, a)
@@ -2148,12 +2152,12 @@ function tn(e) {
2148
2152
  items: t,
2149
2153
  placement: n = "bottom-start",
2150
2154
  showDelay: a = 0,
2151
- hideDelay: o = 100,
2152
- mainAxisOffset: l = 4,
2155
+ hideDelay: r = 100,
2156
+ mainAxisOffset: s = 4,
2153
2157
  crossAxisOffset: i = 0,
2154
2158
  showOn: c = "click",
2155
2159
  closable: u = !0,
2156
- onClose: s,
2160
+ onClose: l,
2157
2161
  onAction: f,
2158
2162
  ariaLabel: b,
2159
2163
  ariaLabelledBy: k
@@ -2194,11 +2198,11 @@ function tn(e) {
2194
2198
  if (F.getAttribute("aria-disabled") === "true")
2195
2199
  return;
2196
2200
  const X = F.getAttribute("data-key");
2197
- X && f && f(X), F.click(), s?.();
2201
+ X && f && f(X), F.click(), l?.();
2198
2202
  }
2199
2203
  break;
2200
2204
  case "Escape":
2201
- s?.();
2205
+ l?.();
2202
2206
  break;
2203
2207
  case "Home":
2204
2208
  _.preventDefault(), _.stopPropagation(), T.length > 0 && C(0, T);
@@ -2215,7 +2219,7 @@ function tn(e) {
2215
2219
  }
2216
2220
  break;
2217
2221
  case "ArrowLeft":
2218
- _.preventDefault(), _.stopPropagation(), s?.();
2222
+ _.preventDefault(), _.stopPropagation(), l?.();
2219
2223
  break;
2220
2224
  }
2221
2225
  }, C = (_, T) => {
@@ -2232,17 +2236,17 @@ function tn(e) {
2232
2236
  );
2233
2237
  T >= 0 && C(T, _);
2234
2238
  }
2235
- }, L = new MutationObserver($);
2236
- return L.observe(w, { childList: !0, subtree: !0 }), setTimeout(() => {
2239
+ }, P = new MutationObserver($);
2240
+ return P.observe(w, { childList: !0, subtree: !0 }), setTimeout(() => {
2237
2241
  $(), w.focus();
2238
2242
  }, 0), document.addEventListener("keydown", p, !0), R(
2239
2243
  oe(() => {
2240
- L.disconnect(), document.removeEventListener("keydown", p, !0), x && x.focus();
2244
+ P.disconnect(), document.removeEventListener("keydown", p, !0), x && x.focus();
2241
2245
  }),
2242
- r.class("bc-menu"),
2243
- r.id(m),
2244
- r.role("menu"),
2245
- r.tabindex(-1),
2246
+ o.class("bc-menu"),
2247
+ o.id(m),
2248
+ o.role("menu"),
2249
+ o.tabindex(-1),
2246
2250
  M.orientation("vertical"),
2247
2251
  b ? M.label(b) : R(),
2248
2252
  k ? M.labelledby(k) : R(),
@@ -2263,7 +2267,7 @@ function tn(e) {
2263
2267
  }),
2264
2268
  // Live region for screen reader announcements
2265
2269
  d.div(
2266
- r.class("sr-only"),
2270
+ o.class("sr-only"),
2267
2271
  M.live("polite"),
2268
2272
  M.atomic(!0),
2269
2273
  y.map((_) => {
@@ -2280,8 +2284,8 @@ function tn(e) {
2280
2284
  }),
2281
2285
  placement: n,
2282
2286
  showDelay: a,
2283
- hideDelay: o,
2284
- mainAxisOffset: l,
2287
+ hideDelay: r,
2288
+ mainAxisOffset: s,
2285
2289
  crossAxisOffset: i,
2286
2290
  showOn: c,
2287
2291
  closable: u,
@@ -2289,54 +2293,54 @@ function tn(e) {
2289
2293
  })
2290
2294
  );
2291
2295
  }
2292
- function Pr(e) {
2296
+ function Lr(e) {
2293
2297
  const {
2294
2298
  key: t,
2295
2299
  content: n,
2296
2300
  startContent: a,
2297
- endContent: o,
2298
- disabled: l = !1,
2301
+ endContent: r,
2302
+ disabled: s = !1,
2299
2303
  onClick: i,
2300
2304
  ariaLabel: c,
2301
2305
  submenu: u,
2302
- submenuPlacement: s = "right-start"
2306
+ submenuPlacement: l = "right-start"
2303
2307
  } = e, f = t ?? he("menu-item"), b = `menu-item-${f}`, k = u != null;
2304
2308
  return d.div(
2305
- r.class(
2306
- I(l)(
2309
+ o.class(
2310
+ I(s)(
2307
2311
  (m) => `bc-menu-item ${m ? "bc-menu-item--disabled" : ""} ${k ? "bc-menu-item--has-submenu" : ""}`
2308
2312
  )
2309
2313
  ),
2310
- r.id(b),
2311
- r.role("menuitem"),
2312
- r.tabindex(-1),
2314
+ o.id(b),
2315
+ o.role("menuitem"),
2316
+ o.tabindex(-1),
2313
2317
  st.key(f),
2314
- M.disabled(l),
2318
+ M.disabled(s),
2315
2319
  M.selected(!1),
2316
2320
  // Will be updated by focus management
2317
2321
  k ? M.expanded(!1) : R(),
2318
2322
  c ? M.label(c) : R(),
2319
2323
  A.click((m) => {
2320
- if (v.get(l)) {
2324
+ if (v.get(s)) {
2321
2325
  m.preventDefault(), m.stopPropagation();
2322
2326
  return;
2323
2327
  }
2324
2328
  i?.();
2325
2329
  }),
2326
2330
  // Start content
2327
- a && d.span(r.class("bc-menu-item__start"), a),
2331
+ a && d.span(o.class("bc-menu-item__start"), a),
2328
2332
  // Main content
2329
- d.span(r.class("bc-menu-item__content"), n),
2333
+ d.span(o.class("bc-menu-item__content"), n),
2330
2334
  // End content
2331
- o && d.span(r.class("bc-menu-item__end"), o),
2335
+ r && d.span(o.class("bc-menu-item__end"), r),
2332
2336
  // Submenu (if present)
2333
2337
  k && u ? Ze({
2334
2338
  content: () => R(
2335
- r.class("bc-menu bc-submenu"),
2336
- r.role("menu"),
2339
+ o.class("bc-menu bc-submenu"),
2340
+ o.role("menu"),
2337
2341
  ...u()
2338
2342
  ),
2339
- placement: s,
2343
+ placement: l,
2340
2344
  showOn: "hover",
2341
2345
  hasPopup: "menu",
2342
2346
  showDelay: 100,
@@ -2350,14 +2354,14 @@ function Pr(e) {
2350
2354
  function nn(e = {}) {
2351
2355
  const { label: t } = e;
2352
2356
  return d.div(
2353
- r.class("bc-menu-separator"),
2354
- r.role("separator"),
2357
+ o.class("bc-menu-separator"),
2358
+ o.role("separator"),
2355
2359
  M.orientation("horizontal"),
2356
- t && d.span(r.class("bc-menu-separator__label"), t)
2360
+ t && d.span(o.class("bc-menu-separator__label"), t)
2357
2361
  );
2358
2362
  }
2359
2363
  function an(e, t, n) {
2360
- return e.some((o) => n(o, t)) ? e.filter((o) => !n(o, t)) : [...e, t];
2364
+ return e.some((r) => n(r, t)) ? e.filter((r) => !n(r, t)) : [...e, t];
2361
2365
  }
2362
2366
  function rn(e, t, n) {
2363
2367
  return e.filter((a) => !n(a, t));
@@ -2370,95 +2374,95 @@ function sn(e, t, n) {
2370
2374
  if (a.type === "value") {
2371
2375
  if (n(a.value, t)) return { label: a.label };
2372
2376
  } else if (a.type === "group") {
2373
- const o = sn(
2377
+ const r = sn(
2374
2378
  a.options,
2375
2379
  t,
2376
2380
  n
2377
2381
  );
2378
- if (o != null) return o;
2382
+ if (r != null) return r;
2379
2383
  }
2380
2384
  }
2381
2385
  function fa(e, t, n) {
2382
2386
  return sn(e, t, n)?.label ?? String(t);
2383
2387
  }
2384
2388
  function ln(e, t, n) {
2385
- const a = t.trim().toLowerCase(), o = n ?? ((i, c) => c.label.toLowerCase().includes(i));
2389
+ const a = t.trim().toLowerCase(), r = n ?? ((i, c) => c.label.toLowerCase().includes(i));
2386
2390
  if (a === "") return e;
2387
- const l = [];
2391
+ const s = [];
2388
2392
  for (const i of e)
2389
2393
  if (i.type === "value")
2390
- o(a, { label: i.label }) && l.push(i);
2394
+ r(a, { label: i.label }) && s.push(i);
2391
2395
  else if (i.type === "group") {
2392
2396
  const c = ln(
2393
2397
  i.options,
2394
2398
  a,
2395
- o
2399
+ r
2396
2400
  );
2397
- c.length > 0 && l.push({ ...i, options: c });
2401
+ c.length > 0 && s.push({ ...i, options: c });
2398
2402
  }
2399
- return l;
2403
+ return s;
2400
2404
  }
2401
2405
  function cn(e) {
2402
- const { values: t, options: n, equality: a, disabled: o, onRemove: l } = e;
2406
+ const { values: t, options: n, equality: a, disabled: r, onRemove: s } = e;
2403
2407
  return mn(
2404
2408
  t,
2405
- () => Le(
2409
+ () => Pe(
2406
2410
  t,
2407
2411
  (i) => Jt({
2408
2412
  value: I(
2409
2413
  i,
2410
2414
  n
2411
2415
  )((c, u) => fa(u, c, a)),
2412
- onClose: () => l(i.value),
2413
- disabled: o
2416
+ onClose: () => s(i.value),
2417
+ disabled: r
2414
2418
  })
2415
2419
  ),
2416
- () => d.span(r.class("bc-input-container__placeholder"), e.placeholder)
2420
+ () => d.span(o.class("bc-input-container__placeholder"), e.placeholder)
2417
2421
  );
2418
2422
  }
2419
2423
  function un(e) {
2420
2424
  const {
2421
2425
  value: t,
2422
2426
  options: n,
2423
- equality: a = (s, f) => s === f,
2424
- placeholder: o
2425
- } = e, l = (s) => {
2427
+ equality: a = (l, f) => l === f,
2428
+ placeholder: r
2429
+ } = e, s = (l) => {
2426
2430
  const f = v.get(t);
2427
- e.onChange?.(rn(f, s, a));
2428
- }, i = (s) => {
2431
+ e.onChange?.(rn(f, l, a));
2432
+ }, i = (l) => {
2429
2433
  const f = v.get(t);
2430
- e.onChange?.(an(f, s, a));
2431
- }, c = (s) => I(t)((f) => on(f, s, a)), u = tn({
2434
+ e.onChange?.(an(f, l, a));
2435
+ }, c = (l) => I(t)((f) => on(f, l, a)), u = tn({
2432
2436
  items: () => {
2433
- const s = v.get(n), f = [];
2434
- for (const b of s)
2437
+ const l = v.get(n), f = [];
2438
+ for (const b of l)
2435
2439
  if (b.type === "value") {
2436
2440
  const k = c(b.value);
2437
2441
  f.push(
2438
2442
  d.div(
2439
- r.role("menuitem"),
2440
- r.tabindex(-1),
2443
+ o.role("menuitem"),
2444
+ o.tabindex(-1),
2441
2445
  M.disabled(b.disabled === !0),
2442
2446
  M.checked(k),
2443
- r.class("bc-menu-item"),
2444
- d.span(r.class("bc-menu-item__content"), b.label),
2447
+ o.class("bc-menu-item"),
2448
+ d.span(o.class("bc-menu-item__content"), b.label),
2445
2449
  A.click(() => i(b.value))
2446
2450
  )
2447
2451
  );
2448
2452
  } else b.type === "group" ? f.push(
2449
2453
  d.div(
2450
- r.class("bc-menu-group"),
2451
- d.div(r.class("bc-menu-group__label"), b.group),
2454
+ o.class("bc-menu-group"),
2455
+ d.div(o.class("bc-menu-group__label"), b.group),
2452
2456
  ...b.options.map((k) => {
2453
2457
  if (k.type === "value") {
2454
2458
  const m = c(k.value);
2455
2459
  return d.div(
2456
- r.role("menuitem"),
2457
- r.tabindex(-1),
2460
+ o.role("menuitem"),
2461
+ o.tabindex(-1),
2458
2462
  M.disabled(k.disabled === !0),
2459
2463
  M.checked(m),
2460
- r.class("bc-menu-item"),
2461
- d.span(r.class("bc-menu-item__content"), k.label),
2464
+ o.class("bc-menu-item"),
2465
+ d.span(o.class("bc-menu-item__content"), k.label),
2462
2466
  A.click(() => i(k.value))
2463
2467
  );
2464
2468
  }
@@ -2478,15 +2482,15 @@ function un(e) {
2478
2482
  ...e,
2479
2483
  before: e.before ?? Ye({ icon: "tabler:tags", color: "neutral" }),
2480
2484
  input: R(
2481
- r.class("bc-input-container__tags"),
2485
+ o.class("bc-input-container__tags"),
2482
2486
  u,
2483
2487
  cn({
2484
2488
  values: t,
2485
- placeholder: o,
2489
+ placeholder: r,
2486
2490
  options: n,
2487
2491
  equality: a,
2488
2492
  disabled: e.disabled,
2489
- onRemove: l
2493
+ onRemove: s
2490
2494
  })
2491
2495
  // html.div(
2492
2496
  // attr.class('bc-input-container__tags-selector'),
@@ -2505,7 +2509,7 @@ function un(e) {
2505
2509
  })
2506
2510
  });
2507
2511
  }
2508
- function Lr(e) {
2512
+ function Pr(e) {
2509
2513
  return Ht(un, e);
2510
2514
  }
2511
2515
  function Dr(e) {
@@ -2516,13 +2520,13 @@ function dn(e) {
2516
2520
  value: t,
2517
2521
  options: n,
2518
2522
  equality: a = (m, y) => m === y,
2519
- placeholder: o,
2520
- searchPlaceholder: l,
2523
+ placeholder: r,
2524
+ searchPlaceholder: s,
2521
2525
  filter: i
2522
2526
  } = e, c = Z(""), u = (m) => {
2523
2527
  const y = v.get(t);
2524
2528
  e.onChange?.(rn(y, m, a));
2525
- }, s = (m) => {
2529
+ }, l = (m) => {
2526
2530
  const y = v.get(t);
2527
2531
  e.onChange?.(an(y, m, a));
2528
2532
  }, f = (m) => I(t)((y) => on(y, m, a)), b = I(
@@ -2534,7 +2538,7 @@ function dn(e) {
2534
2538
  if (y.length === 0)
2535
2539
  return m.push(
2536
2540
  d.div(
2537
- r.class("bc-dropdown__empty"),
2541
+ o.class("bc-dropdown__empty"),
2538
2542
  ae(ie, (h) => h.$.noResults)
2539
2543
  )
2540
2544
  ), m;
@@ -2543,30 +2547,30 @@ function dn(e) {
2543
2547
  const x = f(h.value);
2544
2548
  m.push(
2545
2549
  d.div(
2546
- r.role("menuitem"),
2547
- r.tabindex(-1),
2550
+ o.role("menuitem"),
2551
+ o.tabindex(-1),
2548
2552
  M.disabled(h.disabled === !0),
2549
2553
  M.checked(x),
2550
- r.class("bc-menu-item"),
2551
- d.span(r.class("bc-menu-item__content"), h.label),
2552
- A.click(() => s(h.value))
2554
+ o.class("bc-menu-item"),
2555
+ d.span(o.class("bc-menu-item__content"), h.label),
2556
+ A.click(() => l(h.value))
2553
2557
  )
2554
2558
  );
2555
2559
  } else h.type === "group" ? m.push(
2556
2560
  d.div(
2557
- r.class("bc-menu-group"),
2558
- d.div(r.class("bc-menu-group__label"), h.group),
2561
+ o.class("bc-menu-group"),
2562
+ d.div(o.class("bc-menu-group__label"), h.group),
2559
2563
  ...h.options.map((x) => {
2560
2564
  if (x.type === "value") {
2561
2565
  const w = f(x.value);
2562
2566
  return d.div(
2563
- r.role("menuitem"),
2564
- r.tabindex(-1),
2567
+ o.role("menuitem"),
2568
+ o.tabindex(-1),
2565
2569
  M.disabled(x.disabled === !0),
2566
2570
  M.checked(w),
2567
- r.class("bc-menu-item"),
2568
- d.span(r.class("bc-menu-item__content"), x.label),
2569
- A.click(() => s(x.value))
2571
+ o.class("bc-menu-item"),
2572
+ d.span(o.class("bc-menu-item__content"), x.label),
2573
+ A.click(() => l(x.value))
2570
2574
  );
2571
2575
  }
2572
2576
  return R();
@@ -2599,28 +2603,28 @@ function dn(e) {
2599
2603
  ...e,
2600
2604
  before: e.before ?? Ye({ icon: "tabler:tags", color: "neutral" }),
2601
2605
  input: R(
2602
- r.class("bc-input-container__tags"),
2606
+ o.class("bc-input-container__tags"),
2603
2607
  cn({
2604
2608
  values: t,
2605
2609
  options: n,
2606
- placeholder: o,
2610
+ placeholder: r,
2607
2611
  equality: a,
2608
2612
  disabled: e.disabled,
2609
2613
  onRemove: u
2610
2614
  }),
2611
2615
  // Always-visible search box replacing the selector button
2612
2616
  d.div(
2613
- r.class("bc-input-container__tags-selector"),
2617
+ o.class("bc-input-container__tags-selector"),
2614
2618
  d.input(
2615
- r.type("text"),
2616
- r.class("bc-dropdown__search-input"),
2617
- r.placeholder(
2619
+ o.type("text"),
2620
+ o.class("bc-dropdown__search-input"),
2621
+ o.placeholder(
2618
2622
  I(
2619
- l,
2620
- o
2623
+ s,
2624
+ r
2621
2625
  )((m, y) => m ?? y ?? "")
2622
2626
  ),
2623
- r.value(c),
2627
+ o.value(c),
2624
2628
  A.input((m) => {
2625
2629
  const y = m.target;
2626
2630
  c.set(y.value);
@@ -2646,25 +2650,25 @@ const Br = (e) => {
2646
2650
  ...e,
2647
2651
  input: pe.date(
2648
2652
  fe(e),
2649
- r.valueAsDate(t),
2650
- r.class("bc-input"),
2653
+ o.valueAsDate(t),
2654
+ o.class("bc-input"),
2651
2655
  n != null ? A.blur(te(n)) : W,
2652
2656
  a != null ? A.change(hn(a)) : W
2653
2657
  )
2654
2658
  });
2655
2659
  }, ba = (e) => {
2656
- const t = e.getFullYear(), n = (e.getMonth() + 1).toString().padStart(2, "0"), a = e.getDate().toString().padStart(2, "0"), o = e.getHours().toString().padStart(2, "0"), l = e.getMinutes().toString().padStart(2, "0");
2657
- return `${t}-${n}-${a}T${o}:${l}`;
2660
+ const t = e.getFullYear(), n = (e.getMonth() + 1).toString().padStart(2, "0"), a = e.getDate().toString().padStart(2, "0"), r = e.getHours().toString().padStart(2, "0"), s = e.getMinutes().toString().padStart(2, "0");
2661
+ return `${t}-${n}-${a}T${r}:${s}`;
2658
2662
  }, Er = (e) => {
2659
2663
  const { value: t, onBlur: n, onChange: a } = e;
2660
2664
  return ce({
2661
2665
  ...e,
2662
2666
  input: pe["datetime-local"](
2663
2667
  fe(e),
2664
- r.value(v.map(t, ba)),
2665
- r.class("bc-input"),
2668
+ o.value(v.map(t, ba)),
2669
+ o.class("bc-input"),
2666
2670
  n != null ? A.blur(te(n)) : W,
2667
- a != null ? A.change(te((o) => a(new Date(o)))) : W
2671
+ a != null ? A.change(te((r) => a(new Date(r)))) : W
2668
2672
  )
2669
2673
  });
2670
2674
  }, Mr = (e) => {
@@ -2672,17 +2676,17 @@ const Br = (e) => {
2672
2676
  value: t,
2673
2677
  onInput: n,
2674
2678
  onChange: a,
2675
- ...o
2679
+ ...r
2676
2680
  } = e;
2677
2681
  return Vn({
2678
- ...o,
2682
+ ...r,
2679
2683
  maxFiles: 1,
2680
- value: v.map(t, (l) => l == null ? [] : [l]),
2681
- onChange: (l) => {
2682
- a?.(l[0]);
2684
+ value: v.map(t, (s) => s == null ? [] : [s]),
2685
+ onChange: (s) => {
2686
+ a?.(s[0]);
2683
2687
  },
2684
- onInput: (l) => {
2685
- n?.(l[0]);
2688
+ onInput: (s) => {
2689
+ n?.(s[0]);
2686
2690
  }
2687
2691
  });
2688
2692
  }, Or = (e) => Ut({
@@ -2691,7 +2695,7 @@ const Br = (e) => {
2691
2695
  convertError: String,
2692
2696
  success: ({ value: t }) => {
2693
2697
  const n = t.map(
2694
- (a) => a.map((o) => typeof o == "object" && "id" in o && "label" in o ? Ce.value(o.id, o.label) : o)
2698
+ (a) => a.map((r) => typeof r == "object" && "id" in r && "label" in r ? Ce.value(r.id, r.label) : r)
2695
2699
  );
2696
2700
  return Zt({
2697
2701
  ...e,
@@ -2710,46 +2714,46 @@ const Br = (e) => {
2710
2714
  )
2711
2715
  )
2712
2716
  }), Nr = (e) => {
2713
- const { value: t, onBlur: n, onChange: a, onInput: o, after: l, disabled: i, ...c } = e, u = Ee(t, i, a);
2717
+ const { value: t, onBlur: n, onChange: a, onInput: r, after: s, disabled: i, ...c } = e, u = Ee(t, i, a);
2714
2718
  return Me({
2715
2719
  ...c,
2716
2720
  value: v.map(t, Bn),
2717
- onChange: a != null ? (s) => a(kt(s)) : void 0,
2718
- onInput: o != null ? (s) => o(kt(s)) : void 0,
2721
+ onChange: a != null ? (l) => a(kt(l)) : void 0,
2722
+ onInput: r != null ? (l) => r(kt(l)) : void 0,
2719
2723
  onBlur: n,
2720
- after: l != null ? R(u, l) : u
2724
+ after: s != null ? R(u, s) : u
2721
2725
  });
2722
- }, Pt = (e) => {
2726
+ }, Lt = (e) => {
2723
2727
  try {
2724
2728
  return BigInt(e);
2725
2729
  } catch {
2726
2730
  return null;
2727
2731
  }
2728
2732
  }, Rr = (e) => {
2729
- const { value: t, step: n, min: a, max: o, onChange: l, onInput: i, after: c } = e, u = (m) => {
2730
- const y = a != null ? v.get(a) : void 0, h = o != null ? v.get(o) : void 0;
2733
+ const { value: t, step: n, min: a, max: r, onChange: s, onInput: i, after: c } = e, u = (m) => {
2734
+ const y = a != null ? v.get(a) : void 0, h = r != null ? v.get(r) : void 0;
2731
2735
  return y != null && m < y ? y : h != null && m > h ? h : m;
2732
- }, s = n != null ? ae(ie, (m) => {
2736
+ }, l = n != null ? ae(ie, (m) => {
2733
2737
  const y = I(
2734
2738
  t,
2735
2739
  a
2736
2740
  )((w, g) => g == null ? !0 : (w ?? 0n) > g), h = I(
2737
2741
  t,
2738
- o
2742
+ r
2739
2743
  )((w, g) => g == null ? !0 : (w ?? 0n) < g), x = (w, g) => {
2740
- const p = v.get(t) ?? 0n, C = v.get(n), $ = g?.shiftKey ? 10n : 1n, L = p + C * $ * w, _ = a != null ? v.get(a) : void 0, T = o != null ? v.get(o) : void 0;
2741
- if (w < 0n && _ != null && L < _ || w > 0n && T != null && L > T) return;
2742
- const V = u(L);
2743
- V !== p && l && l(V);
2744
+ const p = v.get(t) ?? 0n, C = v.get(n), $ = g?.shiftKey ? 10n : 1n, P = p + C * $ * w, _ = a != null ? v.get(a) : void 0, T = r != null ? v.get(r) : void 0;
2745
+ if (w < 0n && _ != null && P < _ || w > 0n && T != null && P > T) return;
2746
+ const V = u(P);
2747
+ V !== p && s && s(V);
2744
2748
  };
2745
2749
  return pt(
2746
- r.class("bc-number-input-steppers"),
2750
+ o.class("bc-number-input-steppers"),
2747
2751
  d.button(
2748
- r.type("button"),
2749
- r.class(
2752
+ o.type("button"),
2753
+ o.class(
2750
2754
  "bc-button bc-number-input-steppers-button bc-number-input-steppers-button--increment"
2751
2755
  ),
2752
- r.disabled(
2756
+ o.disabled(
2753
2757
  I(
2754
2758
  h,
2755
2759
  e.disabled ?? !1
@@ -2760,11 +2764,11 @@ const Br = (e) => {
2760
2764
  ee({ icon: "line-md:plus", size: "xs" })
2761
2765
  ),
2762
2766
  d.button(
2763
- r.type("button"),
2764
- r.class(
2767
+ o.type("button"),
2768
+ o.class(
2765
2769
  "bc-button bc-number-input-steppers-button bc-number-input-steppers-button--decrement"
2766
2770
  ),
2767
- r.disabled(
2771
+ o.disabled(
2768
2772
  I(
2769
2773
  y,
2770
2774
  e.disabled ?? !1
@@ -2775,11 +2779,11 @@ const Br = (e) => {
2775
2779
  ee({ icon: "line-md:minus", size: "xs" })
2776
2780
  )
2777
2781
  );
2778
- }) : null, f = c != null && s != null ? R(s, c) : c ?? s, b = l ? (m) => {
2779
- const y = Pt(m);
2780
- y != null && l(u(y));
2782
+ }) : null, f = c != null && l != null ? R(l, c) : c ?? l, b = s ? (m) => {
2783
+ const y = Lt(m);
2784
+ y != null && s(u(y));
2781
2785
  } : void 0, k = i ? (m) => {
2782
- const y = Pt(m);
2786
+ const y = Lt(m);
2783
2787
  y != null && i(u(y));
2784
2788
  } : void 0;
2785
2789
  return Me({
@@ -2792,7 +2796,7 @@ const Br = (e) => {
2792
2796
  allowMode: "digits",
2793
2797
  class: "bc-number-input"
2794
2798
  });
2795
- }, Lt = (e) => {
2799
+ }, Pt = (e) => {
2796
2800
  if (e == null || e === "") return null;
2797
2801
  try {
2798
2802
  return BigInt(e);
@@ -2800,10 +2804,10 @@ const Br = (e) => {
2800
2804
  return null;
2801
2805
  }
2802
2806
  }, Ur = (e) => {
2803
- const { value: t, step: n, min: a, max: o, onChange: l, onInput: i, after: c } = e, u = (y) => {
2804
- const h = a != null ? v.get(a) : void 0, x = o != null ? v.get(o) : void 0;
2807
+ const { value: t, step: n, min: a, max: r, onChange: s, onInput: i, after: c } = e, u = (y) => {
2808
+ const h = a != null ? v.get(a) : void 0, x = r != null ? v.get(r) : void 0;
2805
2809
  return h != null && y < h ? h : x != null && y > x ? x : y;
2806
- }, s = n != null ? ae(ie, (y) => {
2810
+ }, l = n != null ? ae(ie, (y) => {
2807
2811
  const h = I(
2808
2812
  t,
2809
2813
  a
@@ -2812,24 +2816,24 @@ const Br = (e) => {
2812
2816
  return p == null ? !0 : C > p;
2813
2817
  }), x = I(
2814
2818
  t,
2815
- o
2819
+ r
2816
2820
  )((g, p) => {
2817
2821
  const C = g ?? 0n;
2818
2822
  return p == null ? !0 : C < p;
2819
2823
  }), w = (g, p) => {
2820
- const C = v.get(t) ?? 0n, $ = v.get(n), L = p?.shiftKey ? 10n : 1n, _ = C + $ * L * g, T = a != null ? v.get(a) : void 0, V = o != null ? v.get(o) : void 0;
2824
+ const C = v.get(t) ?? 0n, $ = v.get(n), P = p?.shiftKey ? 10n : 1n, _ = C + $ * P * g, T = a != null ? v.get(a) : void 0, V = r != null ? v.get(r) : void 0;
2821
2825
  if (g < 0n && T != null && _ < T || g > 0n && V != null && _ > V) return;
2822
2826
  const O = u(_);
2823
- O !== C && l && l(O);
2827
+ O !== C && s && s(O);
2824
2828
  };
2825
2829
  return pt(
2826
- r.class("bc-number-input-steppers"),
2827
- r.type("button"),
2830
+ o.class("bc-number-input-steppers"),
2831
+ o.type("button"),
2828
2832
  d.button(
2829
- r.class(
2833
+ o.class(
2830
2834
  "bc-button bc-number-input-steppers-button bc-number-input-steppers-button--increment"
2831
2835
  ),
2832
- r.disabled(
2836
+ o.disabled(
2833
2837
  I(
2834
2838
  x,
2835
2839
  e.disabled ?? !1
@@ -2840,11 +2844,11 @@ const Br = (e) => {
2840
2844
  ee({ icon: "line-md:plus", size: "xs" })
2841
2845
  ),
2842
2846
  d.button(
2843
- r.type("button"),
2844
- r.class(
2847
+ o.type("button"),
2848
+ o.class(
2845
2849
  "bc-button bc-number-input-steppers-button bc-number-input-steppers-button--decrement"
2846
2850
  ),
2847
- r.disabled(
2851
+ o.disabled(
2848
2852
  I(
2849
2853
  h,
2850
2854
  e.disabled ?? !1
@@ -2855,11 +2859,11 @@ const Br = (e) => {
2855
2859
  ee({ icon: "line-md:minus", size: "xs" })
2856
2860
  )
2857
2861
  );
2858
- }) : null, f = Ee(t, e.disabled, l), b = c != null && s != null ? R(s, f, c) : c != null ? R(f, c) : s != null ? R(s, f) : f, k = l ? (y) => {
2859
- const h = Lt(y);
2860
- l(h === null ? null : u(h));
2862
+ }) : null, f = Ee(t, e.disabled, s), b = c != null && l != null ? R(l, f, c) : c != null ? R(f, c) : l != null ? R(l, f) : f, k = s ? (y) => {
2863
+ const h = Pt(y);
2864
+ s(h === null ? null : u(h));
2861
2865
  } : void 0, m = i ? (y) => {
2862
- const h = Lt(y);
2866
+ const h = Pt(y);
2863
2867
  i(h === null ? null : u(h));
2864
2868
  } : void 0;
2865
2869
  return Me({
@@ -2873,22 +2877,22 @@ const Br = (e) => {
2873
2877
  class: "bc-number-input"
2874
2878
  });
2875
2879
  }, Fr = (e) => {
2876
- const { value: t, onChange: n, onBlur: a, before: o } = e, l = Z(""), i = (u) => {
2877
- n?.(v.get(t).filter((s) => s !== u));
2880
+ const { value: t, onChange: n, onBlur: a, before: r } = e, s = Z(""), i = (u) => {
2881
+ n?.(v.get(t).filter((l) => l !== u));
2878
2882
  }, c = () => {
2879
- const u = l.value.trim(), s = v.get(t);
2880
- u === "" || s.includes(u) || (l.set(""), n?.([...s, u]));
2883
+ const u = s.value.trim(), l = v.get(t);
2884
+ u === "" || l.includes(u) || (s.set(""), n?.([...l, u]));
2881
2885
  };
2882
2886
  return ce({
2883
2887
  ...e,
2884
- before: o ?? Ye({
2888
+ before: r ?? Ye({
2885
2889
  icon: "tabler:tag",
2886
2890
  size: e.size,
2887
2891
  color: "neutral"
2888
2892
  }),
2889
2893
  input: R(
2890
- r.class("bc-input-container__tags"),
2891
- Le(
2894
+ o.class("bc-input-container__tags"),
2895
+ Pe(
2892
2896
  t,
2893
2897
  (u) => Jt({
2894
2898
  value: u,
@@ -2898,9 +2902,9 @@ const Br = (e) => {
2898
2902
  ),
2899
2903
  pe.text(
2900
2904
  fe(e),
2901
- r.value(l),
2902
- r.class("bc-input bc-input-container__tags-input"),
2903
- A.input(te(l.set)),
2905
+ o.value(s),
2906
+ o.class("bc-input bc-input-container__tags-input"),
2907
+ A.input(te(s.set)),
2904
2908
  n != null ? A.change(c) : W,
2905
2909
  a != null ? A.blur(a) : W
2906
2910
  )
@@ -2909,16 +2913,16 @@ const Br = (e) => {
2909
2913
  };
2910
2914
  function qe(e) {
2911
2915
  return (t) => {
2912
- const { value: n, onBlur: a, onChange: o } = t;
2916
+ const { value: n, onBlur: a, onChange: r } = t;
2913
2917
  return ve(
2914
- (l) => ce({
2918
+ (s) => ce({
2915
2919
  ...t,
2916
2920
  input: pe[e.inputType](
2917
2921
  fe(t),
2918
- r.value(v.map(n, e.valueToString)),
2919
- r.class("bc-input"),
2922
+ o.value(v.map(n, e.valueToString)),
2923
+ o.class("bc-input"),
2920
2924
  a != null ? A.blur(te(a)) : W,
2921
- o != null ? A.change(te((i) => o(e.parseValue(l, i)))) : W
2925
+ r != null ? A.change(te((i) => r(e.parseValue(s, i)))) : W
2922
2926
  )
2923
2927
  })
2924
2928
  );
@@ -2926,24 +2930,24 @@ function qe(e) {
2926
2930
  }
2927
2931
  function Je(e) {
2928
2932
  return (t) => {
2929
- const { value: n, onBlur: a, onChange: o, after: l, disabled: i } = t, c = Ee(n, i, o);
2933
+ const { value: n, onBlur: a, onChange: r, after: s, disabled: i } = t, c = Ee(n, i, r);
2930
2934
  return ve(
2931
2935
  (u) => ce({
2932
2936
  ...t,
2933
2937
  input: pe[e.inputType](
2934
2938
  fe(t),
2935
- r.value(
2936
- v.map(n, (s) => s == null ? "" : e.valueToString(s))
2939
+ o.value(
2940
+ v.map(n, (l) => l == null ? "" : e.valueToString(l))
2937
2941
  ),
2938
- r.class("bc-input"),
2942
+ o.class("bc-input"),
2939
2943
  a != null ? A.blur(te(a)) : W,
2940
- o != null ? A.change(
2944
+ r != null ? A.change(
2941
2945
  te(
2942
- (s) => o(s === "" ? null : e.parseValue(u, s))
2946
+ (l) => r(l === "" ? null : e.parseValue(u, l))
2943
2947
  )
2944
2948
  ) : W
2945
2949
  ),
2946
- after: l != null ? R(c, l) : c
2950
+ after: s != null ? R(c, s) : c
2947
2951
  })
2948
2952
  );
2949
2953
  };
@@ -2973,45 +2977,45 @@ const jr = qe({
2973
2977
  valueToString: (e) => e.toJSON(),
2974
2978
  parseValue: (e, t) => e.PlainDateTime.from(t)
2975
2979
  }), ga = (e) => {
2976
- const t = new Date(e), n = t.getFullYear().toString().padStart(4, "0"), a = (t.getMonth() + 1).toString().padStart(2, "0"), o = t.getDate().toString().padStart(2, "0"), l = t.getHours().toString().padStart(2, "0"), i = t.getMinutes().toString().padStart(2, "0");
2977
- return `${n}-${a}-${o}T${l}:${i}`;
2980
+ const t = new Date(e), n = t.getFullYear().toString().padStart(4, "0"), a = (t.getMonth() + 1).toString().padStart(2, "0"), r = t.getDate().toString().padStart(2, "0"), s = t.getHours().toString().padStart(2, "0"), i = t.getMinutes().toString().padStart(2, "0");
2981
+ return `${n}-${a}-${r}T${s}:${i}`;
2978
2982
  }, Zr = (e) => {
2979
2983
  const { value: t, onBlur: n, onChange: a } = e;
2980
2984
  return ve(
2981
- (o) => ce({
2985
+ (r) => ce({
2982
2986
  ...e,
2983
2987
  input: pe["datetime-local"](
2984
2988
  fe(e),
2985
- r.value(
2986
- v.map(t, (l) => ga(Number(l.epochMilliseconds)))
2989
+ o.value(
2990
+ v.map(t, (s) => ga(Number(s.epochMilliseconds)))
2987
2991
  ),
2988
- r.class("bc-input"),
2992
+ o.class("bc-input"),
2989
2993
  n != null ? A.blur(te(n)) : W,
2990
2994
  a != null ? A.change(
2991
2995
  te(
2992
- (l) => a(o.Instant.from(new Date(l).toISOString()))
2996
+ (s) => a(r.Instant.from(new Date(s).toISOString()))
2993
2997
  )
2994
2998
  ) : W
2995
2999
  )
2996
3000
  })
2997
3001
  );
2998
3002
  }, ma = (e) => {
2999
- const t = new Date(e), n = t.getFullYear().toString().padStart(4, "0"), a = (t.getMonth() + 1).toString().padStart(2, "0"), o = t.getDate().toString().padStart(2, "0"), l = t.getHours().toString().padStart(2, "0"), i = t.getMinutes().toString().padStart(2, "0");
3000
- return `${n}-${a}-${o}T${l}:${i}`;
3003
+ const t = new Date(e), n = t.getFullYear().toString().padStart(4, "0"), a = (t.getMonth() + 1).toString().padStart(2, "0"), r = t.getDate().toString().padStart(2, "0"), s = t.getHours().toString().padStart(2, "0"), i = t.getMinutes().toString().padStart(2, "0");
3004
+ return `${n}-${a}-${r}T${s}:${i}`;
3001
3005
  }, qr = (e) => {
3002
- const { value: t, onBlur: n, onChange: a, after: o, disabled: l } = e, i = Ee(t, l, a);
3006
+ const { value: t, onBlur: n, onChange: a, after: r, disabled: s } = e, i = Ee(t, s, a);
3003
3007
  return ve(
3004
3008
  (c) => ce({
3005
3009
  ...e,
3006
3010
  input: pe["datetime-local"](
3007
3011
  fe(e),
3008
- r.value(
3012
+ o.value(
3009
3013
  v.map(
3010
3014
  t,
3011
3015
  (u) => u == null ? null : ma(Number(u.epochMilliseconds))
3012
3016
  )
3013
3017
  ),
3014
- r.class("bc-input"),
3018
+ o.class("bc-input"),
3015
3019
  n != null ? A.blur(te(n)) : W,
3016
3020
  a != null ? A.change(
3017
3021
  te(
@@ -3019,47 +3023,47 @@ const jr = qe({
3019
3023
  )
3020
3024
  ) : W
3021
3025
  ),
3022
- after: o != null ? R(i, o) : i
3026
+ after: r != null ? R(i, r) : i
3023
3027
  })
3024
3028
  );
3025
3029
  }, Jr = (e) => {
3026
3030
  const { value: t, onBlur: n, onChange: a } = e;
3027
3031
  return ve(
3028
- (o) => ce({
3032
+ (r) => ce({
3029
3033
  ...e,
3030
3034
  input: pe["datetime-local"](
3031
3035
  fe(e),
3032
- r.value(v.map(t, (l) => l.toJSON())),
3033
- r.class("bc-input"),
3036
+ o.value(v.map(t, (s) => s.toJSON())),
3037
+ o.class("bc-input"),
3034
3038
  n != null ? A.blur(te(n)) : W,
3035
3039
  a != null ? A.change(
3036
- te((l) => {
3037
- const i = o.PlainDateTime.from(l), c = v.get(e.placeholder) ?? Intl.DateTimeFormat().resolvedOptions().timeZone;
3038
- return a(o.ZonedDateTime.from({ ...i, timeZone: c }));
3040
+ te((s) => {
3041
+ const i = r.PlainDateTime.from(s), c = v.get(e.placeholder) ?? Intl.DateTimeFormat().resolvedOptions().timeZone;
3042
+ return a(r.ZonedDateTime.from({ ...i, timeZone: c }));
3039
3043
  })
3040
3044
  ) : W
3041
3045
  )
3042
3046
  })
3043
3047
  );
3044
3048
  }, Kr = (e) => {
3045
- const { value: t, onBlur: n, onChange: a, after: o, disabled: l } = e, i = Ee(t, l, a);
3049
+ const { value: t, onBlur: n, onChange: a, after: r, disabled: s } = e, i = Ee(t, s, a);
3046
3050
  return ve(
3047
3051
  (c) => ce({
3048
3052
  ...e,
3049
3053
  input: pe["datetime-local"](
3050
3054
  fe(e),
3051
- r.value(v.map(t, (u) => u?.toJSON())),
3052
- r.class("bc-input"),
3055
+ o.value(v.map(t, (u) => u?.toJSON())),
3056
+ o.class("bc-input"),
3053
3057
  n != null ? A.blur(te(n)) : W,
3054
3058
  a != null ? A.change(
3055
3059
  te((u) => {
3056
3060
  if (u === "") return a(null);
3057
- const s = c.PlainDateTime.from(u), f = v.get(e.placeholder) ?? Intl.DateTimeFormat().resolvedOptions().timeZone;
3058
- return a(c.ZonedDateTime.from({ ...s, timeZone: f }));
3061
+ const l = c.PlainDateTime.from(u), f = v.get(e.placeholder) ?? Intl.DateTimeFormat().resolvedOptions().timeZone;
3062
+ return a(c.ZonedDateTime.from({ ...l, timeZone: f }));
3059
3063
  })
3060
3064
  ) : W
3061
3065
  ),
3062
- after: o != null ? R(i, o) : i
3066
+ after: r != null ? R(i, r) : i
3063
3067
  })
3064
3068
  );
3065
3069
  }, Qr = qe({
@@ -3076,15 +3080,15 @@ const jr = qe({
3076
3080
  (a) => Me({
3077
3081
  ...e,
3078
3082
  // Map Temporal value to MM-DD string
3079
- value: v.map(t, (o) => o.toString()),
3080
- onChange: n != null ? (o) => n(a.PlainMonthDay.from(`--${o}`)) : void 0,
3083
+ value: v.map(t, (r) => r.toString()),
3084
+ onChange: n != null ? (r) => n(a.PlainMonthDay.from(`--${r}`)) : void 0,
3081
3085
  onInput: void 0,
3082
3086
  mask: "99-99",
3083
3087
  placeholder: "MM-DD"
3084
3088
  })
3085
3089
  );
3086
3090
  }, to = (e) => {
3087
- const { value: t, onChange: n, after: a, disabled: o } = e, l = Ee(t, o, n);
3091
+ const { value: t, onChange: n, after: a, disabled: r } = e, s = Ee(t, r, n);
3088
3092
  return ve(
3089
3093
  (i) => Me({
3090
3094
  ...e,
@@ -3093,7 +3097,7 @@ const jr = qe({
3093
3097
  onInput: void 0,
3094
3098
  mask: "99-99",
3095
3099
  placeholder: "MM-DD",
3096
- after: a != null ? R(l, a) : l
3100
+ after: a != null ? R(s, a) : s
3097
3101
  })
3098
3102
  );
3099
3103
  }, no = (e) => {
@@ -3101,8 +3105,8 @@ const jr = qe({
3101
3105
  return ve(
3102
3106
  (a) => Me({
3103
3107
  ...e,
3104
- value: v.map(t, (o) => o.toString()),
3105
- onChange: n ? (o) => n(a.Duration.from(o)) : void 0,
3108
+ value: v.map(t, (r) => r.toString()),
3109
+ onChange: n ? (r) => n(a.Duration.from(r)) : void 0,
3106
3110
  onInput: void 0,
3107
3111
  ...En(a.Duration.from),
3108
3112
  placeholder: "P0DT0H0M0S"
@@ -3114,8 +3118,8 @@ function ao(e, t, n) {
3114
3118
  e.signal,
3115
3119
  () => {
3116
3120
  const a = e.transform(
3117
- (o) => o,
3118
- (o) => o
3121
+ (r) => r,
3122
+ (r) => r
3119
3123
  );
3120
3124
  return t(a);
3121
3125
  },
@@ -3129,8 +3133,8 @@ const ro = {
3129
3133
  success: { type: "success" }
3130
3134
  };
3131
3135
  class ha extends $n {
3132
- constructor(t, n, a, o, l) {
3133
- super(t, n, a, o, l);
3136
+ constructor(t, n, a, r, s) {
3137
+ super(t, n, a, r, s);
3134
3138
  }
3135
3139
  /**
3136
3140
  * Validates that the current value is a valid color
@@ -3175,11 +3179,11 @@ class ha extends $n {
3175
3179
  * @param b - Blue value (0-255)
3176
3180
  */
3177
3181
  setRgb = (t, n, a) => {
3178
- const o = (i) => {
3182
+ const r = (i) => {
3179
3183
  const c = Math.round(Math.max(0, Math.min(255, i))).toString(16);
3180
3184
  return c.length === 1 ? "0" + c : c;
3181
- }, l = `#${o(t)}${o(n)}${o(a)}`;
3182
- this.change(l);
3185
+ }, s = `#${r(t)}${r(n)}${r(a)}`;
3186
+ this.change(s);
3183
3187
  };
3184
3188
  /**
3185
3189
  * Gets RGB values from the current color
@@ -3201,19 +3205,19 @@ class ha extends $n {
3201
3205
  * @returns A new controller with format transformation
3202
3206
  */
3203
3207
  withFormat = (t) => {
3204
- const n = (o) => {
3208
+ const n = (r) => {
3205
3209
  switch (t) {
3206
3210
  case "hex":
3207
- return Ve(o) ?? o;
3211
+ return Ve(r) ?? r;
3208
3212
  case "rgb":
3209
- const l = this.getRgb();
3210
- return l ? `rgb(${l.r}, ${l.g}, ${l.b})` : o;
3213
+ const s = this.getRgb();
3214
+ return s ? `rgb(${s.r}, ${s.g}, ${s.b})` : r;
3211
3215
  case "hsl":
3212
- return o;
3216
+ return r;
3213
3217
  default:
3214
- return o;
3218
+ return r;
3215
3219
  }
3216
- }, a = (o) => Ve(o) ?? o;
3220
+ }, a = (r) => Ve(r) ?? r;
3217
3221
  return this.transform(n, a, [`format-${t}`]);
3218
3222
  };
3219
3223
  }
@@ -3243,10 +3247,10 @@ function lo({
3243
3247
  }) {
3244
3248
  return ae(
3245
3249
  ie,
3246
- (a) => ae(ct, ({ locale: o, setLocale: l }) => dt({
3250
+ (a) => ae(ct, ({ locale: r, setLocale: s }) => dt({
3247
3251
  layout: "horizontal",
3248
3252
  content: Gt(
3249
- r.class("bc-group--align-center bc-group--gap-2"),
3253
+ o.class("bc-group--align-center bc-group--gap-2"),
3250
3254
  ee({
3251
3255
  icon: "ic:twotone-language",
3252
3256
  size: "lg",
@@ -3261,9 +3265,9 @@ function lo({
3261
3265
  return c.nativeName != null && c.nativeName !== c.name && (u += ` (${c.nativeName})`), Ce.value(c.code, u);
3262
3266
  })
3263
3267
  ),
3264
- value: o,
3268
+ value: r,
3265
3269
  onChange: (i) => {
3266
- n && l(i), t?.(i);
3270
+ n && s(i), t?.(i);
3267
3271
  }
3268
3272
  })
3269
3273
  )
@@ -3272,11 +3276,11 @@ function lo({
3272
3276
  }
3273
3277
  const va = () => ae(
3274
3278
  ct,
3275
- ({ direction: e }) => lt("body", r.class(e.map((t) => `b-${t}`)))
3279
+ ({ direction: e }) => lt("body", o.class(e.map((t) => `b-${t}`)))
3276
3280
  );
3277
- function ya(e, t, n, a, o) {
3278
- const l = ["bc-notification"];
3279
- return e && l.push("bc-notification--bordered"), t && l.push("bc-notification--has-icon"), n && l.push("bc-notification--closable"), a && l.push("bc-notification--loading"), o && o.length > 0 && l.push(o), l.join(" ");
3281
+ function ya(e, t, n, a, r) {
3282
+ const s = ["bc-notification"];
3283
+ return e && s.push("bc-notification--bordered"), t && s.push("bc-notification--has-icon"), n && s.push("bc-notification--closable"), a && s.push("bc-notification--loading"), r && r.length > 0 && s.push(r), s.join(" ");
3280
3284
  }
3281
3285
  function wa(e, t) {
3282
3286
  return [
@@ -3289,15 +3293,15 @@ function xa({
3289
3293
  withCloseButton: t = !1,
3290
3294
  withBorder: n = !1,
3291
3295
  color: a = "primary",
3292
- radius: o = "md",
3293
- title: l,
3296
+ radius: r = "md",
3297
+ title: s,
3294
3298
  icon: i,
3295
3299
  onClose: c,
3296
3300
  class: u
3297
- } = {}, ...s) {
3301
+ } = {}, ...l) {
3298
3302
  const f = v.map(i, (b) => b != null);
3299
3303
  return d.section(
3300
- r.class(
3304
+ o.class(
3301
3305
  I(
3302
3306
  n,
3303
3307
  f,
@@ -3316,10 +3320,10 @@ function xa({
3316
3320
  ].join(" ")
3317
3321
  )
3318
3322
  ),
3319
- r.style(
3323
+ o.style(
3320
3324
  I(
3321
3325
  a,
3322
- o
3326
+ r
3323
3327
  )(
3324
3328
  (b, k) => wa(b, k)
3325
3329
  )
@@ -3329,7 +3333,7 @@ function xa({
3329
3333
  Q(
3330
3334
  e,
3331
3335
  () => d.div(
3332
- r.class("bc-notification__visual bc-notification__loader"),
3336
+ o.class("bc-notification__visual bc-notification__loader"),
3333
3337
  ee({
3334
3338
  icon: "line-md:loading-twotone-loop",
3335
3339
  size: "lg",
@@ -3340,7 +3344,7 @@ function xa({
3340
3344
  () => Q(
3341
3345
  f,
3342
3346
  () => d.div(
3343
- r.class("bc-notification__visual bc-notification__icon"),
3347
+ o.class("bc-notification__visual bc-notification__icon"),
3344
3348
  ee({
3345
3349
  icon: i,
3346
3350
  size: "lg",
@@ -3348,20 +3352,20 @@ function xa({
3348
3352
  })
3349
3353
  ),
3350
3354
  () => d.div(
3351
- r.class("bc-notification__visual bc-notification__accent"),
3355
+ o.class("bc-notification__visual bc-notification__accent"),
3352
3356
  M.hidden(!0)
3353
3357
  )
3354
3358
  )
3355
3359
  ),
3356
3360
  d.div(
3357
- r.class("bc-notification__body"),
3358
- l != null ? d.div(r.class("bc-notification__title"), l) : null,
3359
- d.div(r.class("bc-notification__content"), ...s)
3361
+ o.class("bc-notification__body"),
3362
+ s != null ? d.div(o.class("bc-notification__title"), s) : null,
3363
+ d.div(o.class("bc-notification__content"), ...l)
3360
3364
  ),
3361
3365
  Q(
3362
3366
  t,
3363
3367
  () => d.div(
3364
- r.class("bc-notification__meta"),
3368
+ o.class("bc-notification__meta"),
3365
3369
  Fe({
3366
3370
  size: "sm",
3367
3371
  color: a,
@@ -3401,11 +3405,11 @@ const Sa = new ka(), pn = {
3401
3405
  const t = Z(0), n = [];
3402
3406
  function a(u) {
3403
3407
  return n.push(u), () => {
3404
- const s = n.lastIndexOf(u);
3405
- s >= 0 && n.splice(s, 1);
3408
+ const l = n.lastIndexOf(u);
3409
+ l >= 0 && n.splice(l, 1);
3406
3410
  };
3407
3411
  }
3408
- const o = [], l = ({ dismissAfter: u, onClose: s, animation: f = { fade: !0 }, ...b }, ...k) => {
3412
+ const r = [], s = ({ dismissAfter: u, onClose: l, animation: f = { fade: !0 }, ...b }, ...k) => {
3409
3413
  t.update((h) => h + 1);
3410
3414
  const m = u != null ? typeof u == "number" ? On(u * 1e3) : u : void 0, y = {
3411
3415
  animation: f,
@@ -3420,18 +3424,18 @@ const Sa = new ka(), pn = {
3420
3424
  title: b.title ?? W,
3421
3425
  icon: v.toSignal(b.icon),
3422
3426
  children: k,
3423
- listenRequestClose: (h) => (o.push(h), s?.(), () => {
3427
+ listenRequestClose: (h) => (r.push(h), l?.(), () => {
3424
3428
  }),
3425
3429
  delayedClose: m
3426
3430
  };
3427
3431
  n.forEach((h) => h(y));
3428
3432
  }, i = () => {
3429
- o.forEach((u) => u()), o.length = 0;
3430
- }, c = Sa.attach({ show: l, clear: i });
3433
+ r.forEach((u) => u()), r.length = 0;
3434
+ }, c = Sa.attach({ show: s, clear: i });
3431
3435
  return {
3432
3436
  value: {
3433
3437
  activeNotifications: t,
3434
- show: l,
3438
+ show: s,
3435
3439
  clear: i,
3436
3440
  position: e,
3437
3441
  listenOnShow: a
@@ -3444,19 +3448,19 @@ const Sa = new ka(), pn = {
3444
3448
  };
3445
3449
  function Ca() {
3446
3450
  return ae(pn, ({ listenOnShow: e, position: t }) => d.div(
3447
- r.class("bc-notification-viewport"),
3448
- r.class(`bc-notification-viewport--${t}`),
3451
+ o.class("bc-notification-viewport"),
3452
+ o.class(`bc-notification-viewport--${t}`),
3449
3453
  vn(
3450
3454
  (n) => oe(
3451
3455
  e((a) => {
3452
- const o = [], l = d.div(
3456
+ const r = [], s = d.div(
3453
3457
  _n(
3454
3458
  {
3455
3459
  animation: a.animation,
3456
3460
  initialStatus: "start-opening"
3457
3461
  },
3458
3462
  ({ close: i, listenOnClosed: c }) => (a.delayedClose?.finally(i), c(() => {
3459
- o.forEach((u) => u());
3463
+ r.forEach((u) => u());
3460
3464
  }), xa(
3461
3465
  {
3462
3466
  class: a.class,
@@ -3473,7 +3477,7 @@ function Ca() {
3473
3477
  ))
3474
3478
  )
3475
3479
  );
3476
- o.push(yn(l, n));
3480
+ r.push(yn(s, n));
3477
3481
  })
3478
3482
  )
3479
3483
  )
@@ -3484,24 +3488,24 @@ function io({
3484
3488
  enableAppearance: t = !0,
3485
3489
  defaultAppearance: n = "system",
3486
3490
  appearancePreferenceKey: a = "bui-appearance",
3487
- includeNotifications: o = !0,
3488
- notificationPosition: l = "bottom-end"
3491
+ includeNotifications: r = !0,
3492
+ notificationPosition: s = "bottom-end"
3489
3493
  }, ...i) {
3490
3494
  return wn(({ set: c, use: u }) => {
3491
3495
  c(Ne, {}), c(ct, {}), c(ie, {}), c(Yt, {
3492
3496
  defaultAppearance: t ? n : "light",
3493
3497
  appearancePreferenceKey: a
3494
- }), o && c(pn, { position: l }), Tn.attach(u(Ne));
3495
- const s = R(
3496
- t ? Ln() : W,
3498
+ }), r && c(pn, { position: s }), Tn.attach(u(Ne));
3499
+ const l = R(
3500
+ t ? Pn() : W,
3497
3501
  va(),
3498
- o ? Ca() : W,
3502
+ r ? Ca() : W,
3499
3503
  ...i
3500
3504
  );
3501
3505
  return e ? xn(
3502
3506
  () => import("./translations-ConAsIH1.js"),
3503
- ({ AuthI18n: f }) => Nt(f, {}, () => s)
3504
- ) : s;
3507
+ ({ AuthI18n: f }) => Nt(f, {}, () => l)
3508
+ ) : l;
3505
3509
  });
3506
3510
  }
3507
3511
  function co({
@@ -3509,12 +3513,12 @@ function co({
3509
3513
  toolbar: t = !0,
3510
3514
  page: n,
3511
3515
  zoom: a,
3512
- view: o,
3513
- pagemode: l,
3516
+ view: r,
3517
+ pagemode: s,
3514
3518
  scrollbar: i = !0,
3515
3519
  navpanes: c = !0,
3516
3520
  search: u,
3517
- nameddest: s,
3521
+ nameddest: l,
3518
3522
  viewrect: f,
3519
3523
  highlight: b,
3520
3524
  allowfullscreen: k = !1
@@ -3544,18 +3548,18 @@ function co({
3544
3548
  t,
3545
3549
  n,
3546
3550
  a,
3547
- o,
3548
- l,
3551
+ r,
3552
+ s,
3549
3553
  i,
3550
3554
  c,
3551
3555
  u,
3552
- s,
3556
+ l,
3553
3557
  f,
3554
3558
  b
3555
- )((h, x, w, g, p, C, $, L, _, T, V, O) => {
3559
+ )((h, x, w, g, p, C, $, P, _, T, V, O) => {
3556
3560
  if (h == null) return null;
3557
3561
  const B = [];
3558
- x === !1 && B.push("toolbar=0"), w != null && w > 0 && B.push(`page=${w}`), g != null && g > 0 && B.push(`zoom=${g}`), p != null && B.push(`view=${p}`), C != null && B.push(`pagemode=${C}`), $ === !1 && B.push("scrollbar=0"), L === !1 && B.push("navpanes=0"), _ != null && B.push(`search=${encodeURIComponent(_)}`), T != null && B.push(`nameddest=${encodeURIComponent(T)}`), V != null && B.push(`viewrect=${encodeURIComponent(V)}`), O != null && B.push(`highlight=${encodeURIComponent(O)}`);
3562
+ x === !1 && B.push("toolbar=0"), w != null && w > 0 && B.push(`page=${w}`), g != null && g > 0 && B.push(`zoom=${g}`), p != null && B.push(`view=${p}`), C != null && B.push(`pagemode=${C}`), $ === !1 && B.push("scrollbar=0"), P === !1 && B.push("navpanes=0"), _ != null && B.push(`search=${encodeURIComponent(_)}`), T != null && B.push(`nameddest=${encodeURIComponent(T)}`), V != null && B.push(`viewrect=${encodeURIComponent(V)}`), O != null && B.push(`highlight=${encodeURIComponent(O)}`);
3559
3563
  const F = B.join("&");
3560
3564
  return F ? `${h}#${F}` : h;
3561
3565
  });
@@ -3566,13 +3570,13 @@ function co({
3566
3570
  const h = m.value;
3567
3571
  h != null && URL.revokeObjectURL(h);
3568
3572
  }),
3569
- r.class("h-full w-full"),
3573
+ o.class("h-full w-full"),
3570
3574
  // could also use embed or object. IFrame seems to work on Safari.
3571
3575
  d.iframe(
3572
- r.class("h-full w-full"),
3573
- r.allowfullscreen(k),
3574
- r.title("PDF Preview"),
3575
- r.loading("lazy"),
3576
+ o.class("h-full w-full"),
3577
+ o.allowfullscreen(k),
3578
+ o.title("PDF Preview"),
3579
+ o.loading("lazy"),
3576
3580
  // Force iframe reload when URL changes (including fragment changes)
3577
3581
  // by manually updating src instead of using attr.src
3578
3582
  ne((h) => {
@@ -3592,12 +3596,12 @@ function uo({
3592
3596
  page: t,
3593
3597
  zoom: n,
3594
3598
  pagemode: a,
3595
- nameddest: o,
3596
- search: l,
3599
+ nameddest: r,
3600
+ search: s,
3597
3601
  textLayerMode: i,
3598
3602
  sidebarViewOnLoad: c,
3599
3603
  scrollModeOnLoad: u,
3600
- spreadModeOnLoad: s,
3604
+ spreadModeOnLoad: l,
3601
3605
  enableScripting: f,
3602
3606
  enablePrinting: b,
3603
3607
  viewerUrl: k = null,
@@ -3625,20 +3629,20 @@ function uo({
3625
3629
  t,
3626
3630
  n,
3627
3631
  a,
3628
- o,
3629
- l,
3632
+ r,
3633
+ s,
3630
3634
  i,
3631
3635
  c,
3632
3636
  u,
3633
- s,
3637
+ l,
3634
3638
  f,
3635
3639
  b
3636
- )((w, g, p, C, $, L, _, T, V, O, B, F, X) => {
3640
+ )((w, g, p, C, $, P, _, T, V, O, B, F, X) => {
3637
3641
  if (w == null) return null;
3638
3642
  const H = g ?? "https://mozilla.github.io/pdf.js/web/viewer.html", U = new URLSearchParams();
3639
3643
  U.set("file", encodeURIComponent(w));
3640
3644
  const Y = [];
3641
- p != null && p > 0 && Y.push(`page=${p}`), C != null && (typeof C == "string" ? Y.push(`zoom=${C}`) : Y.push(`zoom=${C}`)), $ != null && Y.push(`pagemode=${$}`), L != null && Y.push(`nameddest=${encodeURIComponent(L)}`), _ != null && Y.push(`search=${encodeURIComponent(_)}`), T != null && Y.push(`textLayer=${T}`), V != null && Y.push(`sidebar=${V}`), O != null && Y.push(`scrollMode=${O}`), B != null && Y.push(`spreadMode=${B}`), F != null && Y.push(`enableScripting=${F ? "1" : "0"}`), X != null && Y.push(`enablePrinting=${X ? "1" : "0"}`);
3645
+ p != null && p > 0 && Y.push(`page=${p}`), C != null && (typeof C == "string" ? Y.push(`zoom=${C}`) : Y.push(`zoom=${C}`)), $ != null && Y.push(`pagemode=${$}`), P != null && Y.push(`nameddest=${encodeURIComponent(P)}`), _ != null && Y.push(`search=${encodeURIComponent(_)}`), T != null && Y.push(`textLayer=${T}`), V != null && Y.push(`sidebar=${V}`), O != null && Y.push(`scrollMode=${O}`), B != null && Y.push(`spreadMode=${B}`), F != null && Y.push(`enableScripting=${F ? "1" : "0"}`), X != null && Y.push(`enablePrinting=${X ? "1" : "0"}`);
3642
3646
  const le = Y.length > 0 ? `#${Y.join("&")}` : "";
3643
3647
  return `${H}?${U.toString()}${le}`;
3644
3648
  });
@@ -3649,32 +3653,32 @@ function uo({
3649
3653
  const w = h.value;
3650
3654
  w != null && w.startsWith("blob:") && URL.revokeObjectURL(w);
3651
3655
  }),
3652
- r.class("bc-pdfjs-preview h-full w-full"),
3653
- r.class(y),
3656
+ o.class("bc-pdfjs-preview h-full w-full"),
3657
+ o.class(y),
3654
3658
  d.iframe(
3655
- r.class("h-full w-full"),
3656
- r.allowfullscreen(m),
3657
- r.title("PDF Preview"),
3658
- r.loading("lazy"),
3659
- r.src(x)
3659
+ o.class("h-full w-full"),
3660
+ o.allowfullscreen(m),
3661
+ o.title("PDF Preview"),
3662
+ o.loading("lazy"),
3663
+ o.src(x)
3660
3664
  )
3661
3665
  );
3662
3666
  }
3663
- const po = ({ id: e, css: t }) => lt("head", d.style(r.id(e), r.innerHTML(t)));
3667
+ const po = ({ id: e, css: t }) => lt("head", d.style(o.id(e), o.innerHTML(t)));
3664
3668
  function ge(e, t) {
3665
3669
  return t == null ? null : d.meta(
3666
- r.name(e),
3667
- r.content(v.map(t, (n) => String(n)))
3670
+ o.name(e),
3671
+ o.content(v.map(t, (n) => String(n)))
3668
3672
  );
3669
3673
  }
3670
3674
  function G(e, t) {
3671
3675
  return t == null ? null : d.meta(
3672
- r.property(e),
3673
- r.content(v.map(t, (n) => String(n)))
3676
+ o.property(e),
3677
+ o.content(v.map(t, (n) => String(n)))
3674
3678
  );
3675
3679
  }
3676
3680
  function ze(e, t) {
3677
- return t == null ? null : Le(t, (n) => G(e, n));
3681
+ return t == null ? null : Pe(t, (n) => G(e, n));
3678
3682
  }
3679
3683
  function Ta(e, t) {
3680
3684
  return t == null ? null : Q(
@@ -3698,28 +3702,28 @@ const fo = (e) => {
3698
3702
  n != null && t.push(n);
3699
3703
  }
3700
3704
  return t.push(G("profile:first_name", e.firstName)), t.push(G("profile:last_name", e.lastName)), t.push(G("profile:username", e.username)), t.push(G("profile:gender", e.gender)), t.push(ge("twitter:card", e.twitterCard)), t.push(ge("twitter:site", e.twitterSite)), t.push(ge("twitter:creator", e.twitterCreator)), t.push(
3701
- ge("twitter:title", Pe(e.twitterTitle, e.title))
3705
+ ge("twitter:title", Le(e.twitterTitle, e.title))
3702
3706
  ), t.push(
3703
3707
  ge(
3704
3708
  "twitter:description",
3705
- Pe(e.twitterDescription, e.description)
3709
+ Le(e.twitterDescription, e.description)
3706
3710
  )
3707
3711
  ), t.push(
3708
- ge("twitter:image", Pe(e.twitterImage, e.image))
3712
+ ge("twitter:image", Le(e.twitterImage, e.image))
3709
3713
  ), t.push(
3710
3714
  ge(
3711
3715
  "twitter:image:alt",
3712
- Pe(e.twitterImageAlt, e.imageAlt)
3716
+ Le(e.twitterImageAlt, e.imageAlt)
3713
3717
  )
3714
- ), e.canonical != null && v.get(e.canonical) != null && t.push(d.link(r.rel("canonical"), r.href(e.canonical))), t.push(ge("robots", e.robots)), t.push(ge("keywords", e.keywords)), t.push(ge("author", e.metaAuthor)), lt("head", t.filter((n) => n != null).flat());
3718
+ ), e.canonical != null && v.get(e.canonical) != null && t.push(d.link(o.rel("canonical"), o.href(e.canonical))), t.push(ge("robots", e.robots)), t.push(ge("keywords", e.keywords)), t.push(ge("author", e.metaAuthor)), lt("head", t.filter((n) => n != null).flat());
3715
3719
  }, ft = ({
3716
3720
  viewTransition: e,
3717
3721
  state: t,
3718
3722
  scroll: n,
3719
3723
  replace: a
3720
3724
  }) => {
3721
- const o = {};
3722
- return t !== void 0 && (o.state = t), n !== void 0 && (o.scroll = n), a !== void 0 && (o.replace = a), e !== void 0 && (o.viewTransition = e), o;
3725
+ const r = {};
3726
+ return t !== void 0 && (r.state = t), n !== void 0 && (r.scroll = n), a !== void 0 && (r.replace = a), e !== void 0 && (r.viewTransition = e), r;
3723
3727
  };
3724
3728
  function Dt(e, t) {
3725
3729
  const n = ["bc-link"];
@@ -3754,24 +3758,24 @@ function Ia({
3754
3758
  variant: t = "default",
3755
3759
  color: n = "primary",
3756
3760
  colorDisabled: a = "base",
3757
- disabled: o = !1,
3758
- viewTransition: l = !0,
3761
+ disabled: r = !1,
3762
+ viewTransition: s = !0,
3759
3763
  state: i,
3760
3764
  scroll: c,
3761
3765
  replace: u,
3762
- target: s,
3766
+ target: l,
3763
3767
  rel: f
3764
3768
  }, ...b) {
3765
3769
  return Q(
3766
- o,
3770
+ r,
3767
3771
  () => d.span(
3768
- r.class(
3772
+ o.class(
3769
3773
  I(
3770
3774
  t,
3771
- o
3775
+ r
3772
3776
  )((k, m) => Dt(k, m))
3773
3777
  ),
3774
- r.style(
3778
+ o.style(
3775
3779
  I(a)(
3776
3780
  (k) => At(k ?? "base")
3777
3781
  )
@@ -3782,23 +3786,23 @@ function Ia({
3782
3786
  {
3783
3787
  href: e,
3784
3788
  ...ft({
3785
- viewTransition: l,
3789
+ viewTransition: s,
3786
3790
  state: i,
3787
3791
  scroll: c,
3788
3792
  replace: u
3789
3793
  })
3790
3794
  },
3791
- r.class(
3795
+ o.class(
3792
3796
  I(
3793
3797
  t,
3794
- o
3798
+ r
3795
3799
  )((k, m) => Dt(k, m))
3796
3800
  ),
3797
- r.style(
3801
+ o.style(
3798
3802
  I(n)((k) => At(k ?? "primary"))
3799
3803
  ),
3800
- s ? r.target(s) : null,
3801
- f ? r.rel(f) : null,
3804
+ l ? o.target(l) : null,
3805
+ f ? o.rel(f) : null,
3802
3806
  ...b
3803
3807
  )
3804
3808
  );
@@ -3811,22 +3815,22 @@ const $a = (e) => e ? e.startsWith("#") ? e : `#${e}` : "", _a = (e) => {
3811
3815
  }
3812
3816
  return e instanceof URLSearchParams ? new URLSearchParams(e) : new URLSearchParams(e);
3813
3817
  };
3814
- function Pa(e, t, n) {
3815
- const a = _a(e.search), o = a.toString(), l = o ? `?${o}` : "", i = $a(e.hash);
3818
+ function La(e, t, n) {
3819
+ const a = _a(e.search), r = a.toString(), s = r ? `?${r}` : "", i = $a(e.hash);
3816
3820
  switch (n) {
3817
3821
  case "exact":
3818
- return e.pathname + l + i === t;
3822
+ return e.pathname + s + i === t;
3819
3823
  case "prefix":
3820
- return e.pathname.startsWith(t) || (e.pathname + l).startsWith(t);
3824
+ return e.pathname.startsWith(t) || (e.pathname + s).startsWith(t);
3821
3825
  case "params":
3822
3826
  try {
3823
3827
  const c = typeof document < "u" && document.baseURI ? document.baseURI : "http://localhost/", u = new URL(t, c);
3824
3828
  if (e.pathname !== u.pathname)
3825
3829
  return !1;
3826
- const s = Array.from(
3830
+ const l = Array.from(
3827
3831
  new URLSearchParams(u.search).entries()
3828
3832
  ).sort(), f = Array.from(a.entries()).sort();
3829
- return s.length !== f.length ? !1 : s.every(([b, k], m) => {
3833
+ return l.length !== f.length ? !1 : l.every(([b, k], m) => {
3830
3834
  const [y, h] = f[m];
3831
3835
  return b === y && k === h;
3832
3836
  });
@@ -3839,7 +3843,7 @@ function Pa(e, t, n) {
3839
3843
  }
3840
3844
  function bt(e, t) {
3841
3845
  return t === "exact" ? I(e)((n) => n) : I(e)(
3842
- (n) => (a) => Pa(a, n, t)
3846
+ (n) => (a) => La(a, n, t)
3843
3847
  );
3844
3848
  }
3845
3849
  function bo({
@@ -3847,21 +3851,21 @@ function bo({
3847
3851
  matchMode: t = "exact",
3848
3852
  disableWhenActive: n = !0,
3849
3853
  ...a
3850
- }, ...o) {
3851
- return ae(Ne, (l) => {
3852
- const i = l.matchSignal(
3854
+ }, ...r) {
3855
+ return ae(Ne, (s) => {
3856
+ const i = s.matchSignal(
3853
3857
  bt(e, t)
3854
3858
  ), c = I(
3855
3859
  i,
3856
3860
  n
3857
- )((u, s) => s ?? !0 ? u : !1);
3861
+ )((u, l) => l ?? !0 ? u : !1);
3858
3862
  return Ia(
3859
3863
  {
3860
3864
  ...a,
3861
3865
  href: e,
3862
3866
  disabled: c
3863
3867
  },
3864
- ...o
3868
+ ...r
3865
3869
  );
3866
3870
  });
3867
3871
  }
@@ -3870,12 +3874,12 @@ function go({
3870
3874
  viewTransition: t = !0,
3871
3875
  state: n,
3872
3876
  scroll: a,
3873
- replace: o,
3874
- target: l,
3877
+ replace: r,
3878
+ target: s,
3875
3879
  rel: i,
3876
3880
  matchMode: c,
3877
3881
  disableWhenActive: u,
3878
- variant: s = "filled",
3882
+ variant: l = "filled",
3879
3883
  size: f = "md",
3880
3884
  color: b = "base",
3881
3885
  roundedness: k = "sm",
@@ -3895,10 +3899,10 @@ function go({
3895
3899
  viewTransition: t,
3896
3900
  state: n,
3897
3901
  scroll: a,
3898
- replace: o,
3899
- target: l,
3902
+ replace: r,
3903
+ target: s,
3900
3904
  rel: i,
3901
- variant: s,
3905
+ variant: l,
3902
3906
  size: f,
3903
3907
  color: b,
3904
3908
  roundedness: k,
@@ -3912,10 +3916,10 @@ function go({
3912
3916
  viewTransition: t,
3913
3917
  state: n,
3914
3918
  scroll: a,
3915
- replace: o,
3916
- target: l,
3919
+ replace: r,
3920
+ target: s,
3917
3921
  rel: i,
3918
- variant: s,
3922
+ variant: l,
3919
3923
  size: f,
3920
3924
  color: b,
3921
3925
  roundedness: k,
@@ -3929,12 +3933,12 @@ function Vt({
3929
3933
  viewTransition: t,
3930
3934
  state: n,
3931
3935
  scroll: a,
3932
- replace: o,
3933
- target: l,
3936
+ replace: r,
3937
+ target: s,
3934
3938
  rel: i,
3935
3939
  variant: c = "default",
3936
3940
  size: u = "md",
3937
- color: s = "base",
3941
+ color: l = "base",
3938
3942
  roundedness: f = "sm",
3939
3943
  disabled: b = !1,
3940
3944
  fullWidth: k = !1,
@@ -3943,7 +3947,7 @@ function Vt({
3943
3947
  return Q(
3944
3948
  b ?? !1,
3945
3949
  () => d.span(
3946
- r.class(
3950
+ o.class(
3947
3951
  I(
3948
3952
  u,
3949
3953
  f,
@@ -3951,10 +3955,10 @@ function Vt({
3951
3955
  k
3952
3956
  )(wt)
3953
3957
  ),
3954
- r.style(
3958
+ o.style(
3955
3959
  I(
3956
3960
  c,
3957
- s,
3961
+ l,
3958
3962
  b
3959
3963
  )(
3960
3964
  (h, x, w) => xt(
@@ -3973,10 +3977,10 @@ function Vt({
3973
3977
  viewTransition: t,
3974
3978
  state: n,
3975
3979
  scroll: a,
3976
- replace: o
3980
+ replace: r
3977
3981
  })
3978
3982
  },
3979
- r.class(
3983
+ o.class(
3980
3984
  I(
3981
3985
  u,
3982
3986
  f,
@@ -3984,10 +3988,10 @@ function Vt({
3984
3988
  k
3985
3989
  )(wt)
3986
3990
  ),
3987
- r.style(
3991
+ o.style(
3988
3992
  I(
3989
3993
  c,
3990
- s,
3994
+ l,
3991
3995
  b
3992
3996
  )(
3993
3997
  (h, x, w) => xt(
@@ -3997,13 +4001,13 @@ function Vt({
3997
4001
  )
3998
4002
  )
3999
4003
  ),
4000
- l ? r.target(l) : null,
4001
- i ? r.rel(i) : null,
4004
+ s ? o.target(s) : null,
4005
+ i ? o.rel(i) : null,
4002
4006
  ...y
4003
4007
  )
4004
4008
  );
4005
4009
  }
4006
- const La = {
4010
+ const Pa = {
4007
4011
  mark: Ot("SidebarContext"),
4008
4012
  create: (e) => ({
4009
4013
  value: {
@@ -4015,7 +4019,7 @@ const La = {
4015
4019
  };
4016
4020
  function mo({ backgroundMode: e = "light" }, ...t) {
4017
4021
  return Nt(
4018
- La,
4022
+ Pa,
4019
4023
  v.map(
4020
4024
  e,
4021
4025
  (n) => ({
@@ -4023,8 +4027,8 @@ function mo({ backgroundMode: e = "light" }, ...t) {
4023
4027
  })
4024
4028
  ),
4025
4029
  () => d.div(
4026
- r.class("bc-sidebar"),
4027
- r.class(
4030
+ o.class("bc-sidebar"),
4031
+ o.class(
4028
4032
  v.map(
4029
4033
  e,
4030
4034
  (n) => n === "dark" ? "bc-sidebar--dark-bg" : ""
@@ -4036,15 +4040,15 @@ function mo({ backgroundMode: e = "light" }, ...t) {
4036
4040
  }
4037
4041
  function Bt({ rail: e, header: t }, ...n) {
4038
4042
  return pt(
4039
- t != null ? d.div(r.class("bc-sidebar-group__header"), t) : null,
4043
+ t != null ? d.div(o.class("bc-sidebar-group__header"), t) : null,
4040
4044
  d.div(
4041
- r.class(
4045
+ o.class(
4042
4046
  v.map(
4043
4047
  e ?? !1,
4044
4048
  (a) => a ? "bc-sidebar-group--rail" : ""
4045
4049
  )
4046
4050
  ),
4047
- r.class("bc-sidebar-group"),
4051
+ o.class("bc-sidebar-group"),
4048
4052
  ...n
4049
4053
  )
4050
4054
  );
@@ -4063,7 +4067,7 @@ function Aa(...e) {
4063
4067
  }
4064
4068
  function Va(e, ...t) {
4065
4069
  return d.button(
4066
- r.type("button"),
4070
+ o.type("button"),
4067
4071
  A.click(e.onClick),
4068
4072
  e.ariaExpanded != null ? M.expanded(
4069
4073
  v.map(
@@ -4077,20 +4081,20 @@ function Va(e, ...t) {
4077
4081
  );
4078
4082
  }
4079
4083
  function Ba(e) {
4080
- const t = [r.class("bc-sidebar-link")];
4084
+ const t = [o.class("bc-sidebar-link")];
4081
4085
  return e.icon != null && t.push(
4082
4086
  d.span(
4083
- r.class("bc-sidebar-link--icon"),
4087
+ o.class("bc-sidebar-link--icon"),
4084
4088
  ee({ icon: e.icon })
4085
4089
  )
4086
4090
  ), t.push(
4087
- d.span(r.class("bc-sidebar-link__content"), e.content)
4091
+ d.span(o.class("bc-sidebar-link__content"), e.content)
4088
4092
  ), e.right != null && t.push(
4089
- d.span(r.class("bc-sidebar-link__right"), e.right)
4093
+ d.span(o.class("bc-sidebar-link__right"), e.right)
4090
4094
  ), e.action != null && t.push(
4091
4095
  d.button(
4092
- r.type("button"),
4093
- r.class("bc-sidebar-link--action"),
4096
+ o.type("button"),
4097
+ o.class("bc-sidebar-link--action"),
4094
4098
  A.click((n, a) => {
4095
4099
  e.action?.onClick?.(a);
4096
4100
  }),
@@ -4116,51 +4120,51 @@ function ho({
4116
4120
  icon: t,
4117
4121
  header: n,
4118
4122
  startOpen: a = !0
4119
- }, ...o) {
4120
- const l = v.deriveProp(a), i = he("sidebar-group"), c = `${i}-content`;
4123
+ }, ...r) {
4124
+ const s = v.deriveProp(a), i = he("sidebar-group"), c = `${i}-content`;
4121
4125
  return Bt(
4122
4126
  {},
4123
- r.class("bc-sidebar-group-collapsible"),
4124
- r.class(
4125
- l.map(
4127
+ o.class("bc-sidebar-group-collapsible"),
4128
+ o.class(
4129
+ s.map(
4126
4130
  (u) => u ? "bc-sidebar-group-collapsible--open" : "bc-sidebar-group-collapsible--closed"
4127
4131
  )
4128
4132
  ),
4129
4133
  // Add ARIA attributes for group
4130
- r.role("group"),
4131
- r.id(i),
4134
+ o.role("group"),
4135
+ o.id(i),
4132
4136
  Ba({
4133
4137
  icon: t,
4134
- onClick: () => l.update((u) => !u),
4138
+ onClick: () => s.update((u) => !u),
4135
4139
  // Add ARIA attributes for the toggle button
4136
- ariaExpanded: l,
4140
+ ariaExpanded: s,
4137
4141
  ariaControls: c,
4138
4142
  right: d.span(
4139
- r.class("bc-sidebar-group-collapsible-indicator"),
4143
+ o.class("bc-sidebar-group-collapsible-indicator"),
4140
4144
  ee({ icon: "lucide:chevron-down", color: "base" })
4141
4145
  ),
4142
4146
  content: n
4143
4147
  }),
4144
- Bt({ rail: e }, r.id(c), sa({ open: l }, ...o))
4148
+ Bt({ rail: e }, o.id(c), sa({ open: s }, ...r))
4145
4149
  );
4146
4150
  }
4147
4151
  function vo() {
4148
- return d.hr(r.class("bc-sidebar-separator"));
4152
+ return d.hr(o.class("bc-sidebar-separator"));
4149
4153
  }
4150
4154
  function Ea(e, t, n, a) {
4151
- const o = ["bc-tabs", `bc-tabs--${e}`, `bc-tabs--${t}`];
4152
- return n && o.push("bc-tabs--disabled"), a != null && a !== "default" && o.push(`bc-tabs--variant-${a}`), o.join(" ");
4155
+ const r = ["bc-tabs", `bc-tabs--${e}`, `bc-tabs--${t}`];
4156
+ return n && r.push("bc-tabs--disabled"), a != null && a !== "default" && r.push(`bc-tabs--variant-${a}`), r.join(" ");
4153
4157
  }
4154
4158
  function Ma(e, t) {
4155
4159
  if (e !== "filled") return "";
4156
- const n = /* @__PURE__ */ new Map(), a = ue(t, "solid", "light"), o = ue(t, "solid", "dark");
4160
+ const n = /* @__PURE__ */ new Map(), a = ue(t, "solid", "light"), r = ue(t, "solid", "dark");
4157
4161
  n.set("--tabs-filled-inactive-bg", a.backgroundColor), n.set("--tabs-filled-inactive-text", "var(--color-white)");
4158
- const l = se(t, "solid", "light");
4159
- n.set("--tabs-filled-inactive-bg-hover", l.backgroundColor);
4162
+ const s = se(t, "solid", "light");
4163
+ n.set("--tabs-filled-inactive-bg-hover", s.backgroundColor);
4160
4164
  const i = se(t, "solid", "dark");
4161
- n.set("--tabs-filled-inactive-bg-dark-hover", i.backgroundColor), n.set("--tabs-filled-inactive-bg-dark", o.backgroundColor), n.set("--tabs-filled-inactive-text-dark", o.textColor), n.set("--tabs-filled-active-bg", "var(--color-white)"), n.set("--tabs-filled-active-text", "var(--color-base-800)"), n.set("--tabs-filled-active-bg-dark", "var(--color-base-900)");
4165
+ n.set("--tabs-filled-inactive-bg-dark-hover", i.backgroundColor), n.set("--tabs-filled-inactive-bg-dark", r.backgroundColor), n.set("--tabs-filled-inactive-text-dark", r.textColor), n.set("--tabs-filled-active-bg", "var(--color-white)"), n.set("--tabs-filled-active-text", "var(--color-base-800)"), n.set("--tabs-filled-active-bg-dark", "var(--color-base-900)");
4162
4166
  const c = t === "white" || t === "black" || t === "transparent" ? "var(--color-white)" : ut(t, 400);
4163
- return n.set("--tabs-filled-active-text-dark", c), Array.from(n.entries()).map(([u, s]) => `${u}: ${s}`).join("; ");
4167
+ return n.set("--tabs-filled-active-text-dark", c), Array.from(n.entries()).map(([u, l]) => `${u}: ${l}`).join("; ");
4164
4168
  }
4165
4169
  function Oa(e, t, n) {
4166
4170
  const a = ["bc-tab", `bc-tab--${e}`];
@@ -4168,14 +4172,14 @@ function Oa(e, t, n) {
4168
4172
  }
4169
4173
  function He(e, t, n) {
4170
4174
  const a = t.length;
4171
- let o = e + n;
4172
- o >= a ? o = 0 : o < 0 && (o = a - 1);
4173
- let l = 0;
4174
- for (; l < a; ) {
4175
- const i = t[o];
4175
+ let r = e + n;
4176
+ r >= a ? r = 0 : r < 0 && (r = a - 1);
4177
+ let s = 0;
4178
+ for (; s < a; ) {
4179
+ const i = t[r];
4176
4180
  if (!v.get(i.disabled ?? !1))
4177
- return o;
4178
- o += n, o >= a ? o = 0 : o < 0 && (o = a - 1), l++;
4181
+ return r;
4182
+ r += n, r >= a ? r = 0 : r < 0 && (r = a - 1), s++;
4179
4183
  }
4180
4184
  return e;
4181
4185
  }
@@ -4184,12 +4188,12 @@ function yo(e) {
4184
4188
  items: t,
4185
4189
  value: n,
4186
4190
  onChange: a,
4187
- size: o = "md",
4188
- variant: l = "default",
4191
+ size: r = "md",
4192
+ variant: s = "default",
4189
4193
  color: i = "primary",
4190
4194
  disabled: c = !1,
4191
4195
  orientation: u = "horizontal",
4192
- showContent: s = !0,
4196
+ showContent: l = !0,
4193
4197
  ariaLabel: f
4194
4198
  } = e, b = he("tablist"), k = Z(-1), m = I(n)((h) => t.find((x) => x.key === h)), y = (h) => {
4195
4199
  if (v.get(c)) return;
@@ -4224,12 +4228,12 @@ function yo(e) {
4224
4228
  }, 0));
4225
4229
  };
4226
4230
  return d.div(
4227
- r.class(
4231
+ o.class(
4228
4232
  I(
4229
- o,
4233
+ r,
4230
4234
  u,
4231
4235
  c,
4232
- l
4236
+ s
4233
4237
  )(
4234
4238
  (h, x, w, g) => Ea(
4235
4239
  h ?? "md",
@@ -4239,9 +4243,9 @@ function yo(e) {
4239
4243
  )
4240
4244
  )
4241
4245
  ),
4242
- r.style(
4246
+ o.style(
4243
4247
  I(
4244
- l,
4248
+ s,
4245
4249
  i
4246
4250
  )(
4247
4251
  (h, x) => Ma(h ?? "default", x ?? "primary")
@@ -4249,9 +4253,9 @@ function yo(e) {
4249
4253
  ),
4250
4254
  // Tab list
4251
4255
  d.div(
4252
- r.class("bc-tabs__list"),
4253
- r.role("tablist"),
4254
- r.id(b),
4256
+ o.class("bc-tabs__list"),
4257
+ o.role("tablist"),
4258
+ o.id(b),
4255
4259
  M.orientation(
4256
4260
  u ?? "horizontal"
4257
4261
  ),
@@ -4261,34 +4265,34 @@ function yo(e) {
4261
4265
  const w = I(n)(($) => $ === h.key), g = I(
4262
4266
  c,
4263
4267
  h.disabled
4264
- )(($, L) => $ || L), p = `${b}-tab-${h.key}`, C = `${b}-panel-${h.key}`;
4268
+ )(($, P) => $ || P), p = `${b}-tab-${h.key}`, C = `${b}-panel-${h.key}`;
4265
4269
  return d.button(
4266
- r.type("button"),
4267
- r.class(
4270
+ o.type("button"),
4271
+ o.class(
4268
4272
  I(
4269
- o,
4273
+ r,
4270
4274
  w,
4271
4275
  g
4272
4276
  )(
4273
- ($, L, _) => Oa(
4277
+ ($, P, _) => Oa(
4274
4278
  $ ?? "md",
4275
- L ?? !1,
4279
+ P ?? !1,
4276
4280
  _ ?? !1
4277
4281
  )
4278
4282
  )
4279
4283
  ),
4280
- r.id(p),
4281
- r.role("tab"),
4282
- r.tabindex(
4284
+ o.id(p),
4285
+ o.role("tab"),
4286
+ o.tabindex(
4283
4287
  I(
4284
4288
  w,
4285
4289
  k
4286
- )(($, L) => $ || L === x ? 0 : -1)
4290
+ )(($, P) => $ || P === x ? 0 : -1)
4287
4291
  ),
4288
4292
  M.selected(w),
4289
4293
  M.controls(C),
4290
4294
  M.disabled(g),
4291
- r.disabled(g),
4295
+ o.disabled(g),
4292
4296
  st["tab-index"](String(x)),
4293
4297
  h.ariaLabel ? M.label(h.ariaLabel) : R(),
4294
4298
  A.click(($) => {
@@ -4303,16 +4307,16 @@ function yo(e) {
4303
4307
  ),
4304
4308
  // Panel
4305
4309
  Q(
4306
- s ?? !0,
4310
+ l ?? !0,
4307
4311
  () => Ue(m, (h) => {
4308
4312
  const x = h.$.key, w = x.map((p) => `${b}-tab-${p}`), g = x.map((p) => `${b}-panel-${p}`);
4309
4313
  return d.div(
4310
- r.class("bc-tabs__panels"),
4314
+ o.class("bc-tabs__panels"),
4311
4315
  d.div(
4312
- r.class("bc-tabs__panel"),
4313
- r.id(g),
4314
- r.role("tabpanel"),
4315
- r.tabindex(0),
4316
+ o.class("bc-tabs__panel"),
4317
+ o.id(g),
4318
+ o.role("tabpanel"),
4319
+ o.tabindex(0),
4316
4320
  M.labelledby(w),
4317
4321
  Rt(h, (p) => p.content())
4318
4322
  )
@@ -4324,11 +4328,11 @@ function yo(e) {
4324
4328
  function wo(e) {
4325
4329
  return zt((t, n) => {
4326
4330
  let a = n;
4327
- const o = () => a();
4331
+ const r = () => a();
4328
4332
  return e((c) => {
4329
4333
  const {
4330
4334
  size: u = "md",
4331
- side: s = "right",
4335
+ side: l = "right",
4332
4336
  dismissable: f = !0,
4333
4337
  showCloseButton: b = !0,
4334
4338
  onClose: k,
@@ -4346,39 +4350,39 @@ function wo(e) {
4346
4350
  const p = I(
4347
4351
  h != null,
4348
4352
  b
4349
- )(($, L) => $ || L), C = ne(($) => {
4350
- const L = Re({
4353
+ )(($, P) => $ || P), C = ne(($) => {
4354
+ const P = Re({
4351
4355
  initialStatus: "closed",
4352
4356
  element: $
4353
4357
  });
4354
- L.listenOnClosed(() => {
4358
+ P.listenOnClosed(() => {
4355
4359
  n();
4356
4360
  }), a = () => {
4357
- L.close();
4358
- }, Ge(() => L.open());
4361
+ P.close();
4362
+ }, Ge(() => P.open());
4359
4363
  const T = he("drawer"), V = h != null ? `${T}-header` : void 0, O = `${T}-body`;
4360
4364
  return d.div(
4361
- r.class(
4365
+ o.class(
4362
4366
  I(
4363
4367
  u,
4364
- s,
4365
- L.status
4368
+ l,
4369
+ P.status
4366
4370
  )(
4367
4371
  (B, F, X) => `bc-drawer bc-drawer--size-${B} bc-drawer--container-${y} bc-drawer--side-${F} bc-drawer--status-${X}`
4368
4372
  )
4369
4373
  ),
4370
4374
  // Essential ARIA attributes for drawer dialog
4371
- r.role("dialog"),
4375
+ o.role("dialog"),
4372
4376
  M.modal(!0),
4373
4377
  ...V ? [M.labelledby(V)] : [],
4374
4378
  M.describedby(O),
4375
- r.tabindex(-1),
4379
+ o.tabindex(-1),
4376
4380
  // Make drawer focusable for initial focus
4377
- r.id(T),
4381
+ o.id(T),
4378
4382
  st.focusTrap("true"),
4379
4383
  // Mark as focus trap container
4380
4384
  // Focus trap for keyboard navigation
4381
- Pn({
4385
+ Ln({
4382
4386
  active: !0,
4383
4387
  escapeDeactivates: !1,
4384
4388
  // Let Overlay handle escape key
@@ -4391,33 +4395,33 @@ function wo(e) {
4391
4395
  // Drawer content container
4392
4396
  Rt(p, (B) => _t(B ? {
4393
4397
  header: d.div(
4394
- r.class("bc-drawer__header"),
4395
- d.div(r.id(V), h),
4398
+ o.class("bc-drawer__header"),
4399
+ d.div(o.id(V), h),
4396
4400
  Q(
4397
4401
  b,
4398
4402
  () => ae(
4399
4403
  ie,
4400
4404
  (F) => Fe({
4401
4405
  size: "sm",
4402
- onClick: o,
4406
+ onClick: r,
4403
4407
  label: F.$.closeDrawer
4404
4408
  })
4405
4409
  )
4406
4410
  )
4407
4411
  ),
4408
4412
  body: d.div(
4409
- r.class("bc-drawer__body"),
4410
- r.id(O),
4413
+ o.class("bc-drawer__body"),
4414
+ o.id(O),
4411
4415
  x
4412
4416
  ),
4413
- footer: w && d.div(r.class("bc-drawer__footer"), w)
4417
+ footer: w && d.div(o.class("bc-drawer__footer"), w)
4414
4418
  } : {
4415
4419
  body: d.div(
4416
- r.class("bc-drawer__body"),
4417
- r.id(O),
4420
+ o.class("bc-drawer__body"),
4421
+ o.id(O),
4418
4422
  x
4419
4423
  ),
4420
- footer: w && d.div(r.class("bc-drawer__footer"), w)
4424
+ footer: w && d.div(o.class("bc-drawer__footer"), w)
4421
4425
  }))
4422
4426
  );
4423
4427
  });
@@ -4427,14 +4431,14 @@ function wo(e) {
4427
4431
  container: y,
4428
4432
  content: C,
4429
4433
  onClickOutside: () => {
4430
- k?.(), o();
4434
+ k?.(), r();
4431
4435
  },
4432
4436
  onEscape: () => {
4433
- k?.(), o();
4437
+ k?.(), r();
4434
4438
  }
4435
4439
  });
4436
4440
  }, () => {
4437
- o();
4441
+ r();
4438
4442
  });
4439
4443
  });
4440
4444
  }
@@ -4455,8 +4459,8 @@ function xo(e) {
4455
4459
  content: t,
4456
4460
  placement: n = "top",
4457
4461
  showDelay: a = 250,
4458
- hideDelay: o = 500,
4459
- mainAxisOffset: l = 8,
4462
+ hideDelay: r = 500,
4463
+ mainAxisOffset: s = 8,
4460
4464
  crossAxisOffset: i = 0,
4461
4465
  showOn: c = "hover-focus"
4462
4466
  } = e, u = he("tooltip");
@@ -4464,32 +4468,32 @@ function xo(e) {
4464
4468
  M.describedby(u),
4465
4469
  Ze({
4466
4470
  content: () => R(
4467
- r.class("bc-tooltip"),
4468
- r.role("tooltip"),
4469
- r.id(u),
4471
+ o.class("bc-tooltip"),
4472
+ o.role("tooltip"),
4473
+ o.id(u),
4470
4474
  t
4471
4475
  ),
4472
4476
  placement: n,
4473
4477
  showDelay: a,
4474
- hideDelay: o,
4475
- mainAxisOffset: l,
4478
+ hideDelay: r,
4479
+ mainAxisOffset: s,
4476
4480
  crossAxisOffset: i,
4477
4481
  showOn: c,
4478
4482
  closable: !0,
4479
4483
  role: "tooltip",
4480
4484
  // Override the default dialog role for tooltips
4481
4485
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
4482
- arrow: (s) => {
4483
- const f = s.map(
4486
+ arrow: (l) => {
4487
+ const f = l.map(
4484
4488
  ({
4485
4489
  placement: b
4486
4490
  }) => b.includes("top") ? "down" : b.includes("bottom") ? "up" : b.includes("left") ? "right" : b.includes("right") ? "left" : "up"
4487
4491
  );
4488
4492
  return R(
4489
- r.class("bc-tooltip__arrow"),
4490
- r.class(f.map((b) => `bc-tooltip__arrow-${b}`)),
4493
+ o.class("bc-tooltip__arrow"),
4494
+ o.class(f.map((b) => `bc-tooltip__arrow-${b}`)),
4491
4495
  S.transform(
4492
- s.map(({ x: b, y: k }) => b == null && k == null ? "" : b != null ? `translate(${b}px, 0)` : `translate(0, ${k}px)`)
4496
+ l.map(({ x: b, y: k }) => b == null && k == null ? "" : b != null ? `translate(${b}px, 0)` : `translate(0, ${k}px)`)
4493
4497
  ),
4494
4498
  Na(f)
4495
4499
  );
@@ -4497,7 +4501,7 @@ function xo(e) {
4497
4501
  })
4498
4502
  );
4499
4503
  }
4500
- function Ra(e, t, n, a, o, l) {
4504
+ function Ra(e, t, n, a, r, s) {
4501
4505
  const i = ue(e, "solid", "light"), c = ue(e, "solid", "dark");
4502
4506
  return [
4503
4507
  `--ribbon-bg: ${i.backgroundColor}`,
@@ -4507,8 +4511,8 @@ function Ra(e, t, n, a, o, l) {
4507
4511
  `--ribbon-inset: ${nt(t)}`,
4508
4512
  `--ribbon-offset: ${nt(n)}`,
4509
4513
  `--ribbon-width: ${nt(a)}`,
4510
- `--ribbon-angle: ${o}deg`,
4511
- `--ribbon-corner: ${l}`
4514
+ `--ribbon-angle: ${r}deg`,
4515
+ `--ribbon-corner: ${s}`
4512
4516
  ].join("; ");
4513
4517
  }
4514
4518
  function nt(e) {
@@ -4519,25 +4523,25 @@ function ko({
4519
4523
  class: t,
4520
4524
  inset: n = 0,
4521
4525
  offset: a = 40,
4522
- width: o = 100,
4523
- angle: l = 45,
4526
+ width: r = 100,
4527
+ angle: s = 45,
4524
4528
  corner: i = "top-end"
4525
4529
  }, ...c) {
4526
4530
  return d.div(
4527
- r.class("bc-ribbon"),
4531
+ o.class("bc-ribbon"),
4528
4532
  // Theme styles via CSS variables
4529
- r.style(
4533
+ o.style(
4530
4534
  I(
4531
4535
  e,
4532
4536
  n,
4533
4537
  a,
4534
- o,
4535
- l,
4538
+ r,
4539
+ s,
4536
4540
  i
4537
4541
  )(Ra)
4538
4542
  ),
4539
4543
  // Allow external classes
4540
- r.class(t),
4544
+ o.class(t),
4541
4545
  ...c
4542
4546
  );
4543
4547
  }
@@ -4545,15 +4549,15 @@ function So(e, t) {
4545
4549
  const {
4546
4550
  dismissable: n = !0,
4547
4551
  showCloseButton: a = !0,
4548
- overlayEffect: o = "opaque",
4549
- container: l = "body",
4552
+ overlayEffect: r = "opaque",
4553
+ container: s = "body",
4550
4554
  padding: i = 32
4551
4555
  } = e;
4552
4556
  return zt((c, u) => {
4553
- let s = () => {
4557
+ let l = () => {
4554
4558
  };
4555
4559
  return t((k) => {
4556
- s = u;
4560
+ l = u;
4557
4561
  const m = Z(
4558
4562
  typeof n != "boolean" || n ? "capturing" : "non-capturing"
4559
4563
  );
@@ -4562,19 +4566,19 @@ function So(e, t) {
4562
4566
  y = x, m.set(x ? "capturing" : "non-capturing");
4563
4567
  });
4564
4568
  const h = d.div(
4565
- r.class("bc-lightbox"),
4569
+ o.class("bc-lightbox"),
4566
4570
  // Close button (top-end)
4567
4571
  Q(
4568
4572
  a,
4569
4573
  () => ae(
4570
4574
  ie,
4571
4575
  (x) => d.div(
4572
- r.class("bc-lightbox__close"),
4576
+ o.class("bc-lightbox__close"),
4573
4577
  Fe({
4574
4578
  size: "md",
4575
4579
  label: x.$.closeModal,
4576
4580
  onClick: () => {
4577
- s(), u();
4581
+ l(), u();
4578
4582
  }
4579
4583
  })
4580
4584
  )
@@ -4583,31 +4587,31 @@ function So(e, t) {
4583
4587
  ),
4584
4588
  // Viewport (centering + padding)
4585
4589
  d.div(
4586
- r.class("bc-lightbox__viewport"),
4590
+ o.class("bc-lightbox__viewport"),
4587
4591
  // Visual padding applied here
4588
- r.style(
4592
+ o.style(
4589
4593
  I(i)(
4590
4594
  (x) => `padding:${typeof x == "number" ? x + "px" : x}`
4591
4595
  )
4592
4596
  ),
4593
4597
  // Content wrapper capped by viewport; overflow is clipped
4594
- d.div(r.class("bc-lightbox__content"), k)
4598
+ d.div(o.class("bc-lightbox__content"), k)
4595
4599
  )
4596
4600
  );
4597
4601
  c({
4598
4602
  mode: m,
4599
- effect: o ?? "opaque",
4600
- container: l,
4603
+ effect: r ?? "opaque",
4604
+ container: s,
4601
4605
  content: h,
4602
4606
  onClickOutside: () => {
4603
- y && (s(), u());
4607
+ y && (l(), u());
4604
4608
  },
4605
4609
  onEscape: () => {
4606
- y && (s(), u());
4610
+ y && (l(), u());
4607
4611
  }
4608
4612
  });
4609
4613
  }, () => {
4610
- s(), u();
4614
+ l(), u();
4611
4615
  });
4612
4616
  });
4613
4617
  }
@@ -4623,8 +4627,8 @@ function Co({
4623
4627
  icon: t,
4624
4628
  closable: n = !1,
4625
4629
  onDismiss: a,
4626
- class: o
4627
- }, ...l) {
4630
+ class: r
4631
+ }, ...s) {
4628
4632
  const i = Z(!0);
4629
4633
  return Q(i, () => {
4630
4634
  const c = v.map(
@@ -4632,21 +4636,21 @@ function Co({
4632
4636
  (u) => !!u || a != null
4633
4637
  );
4634
4638
  return d.div(
4635
- r.class(
4639
+ o.class(
4636
4640
  I(
4637
4641
  c,
4638
- o
4639
- )((u, s) => Ua(u, s))
4642
+ r
4643
+ )((u, l) => Ua(u, l))
4640
4644
  ),
4641
- r.style(
4645
+ o.style(
4642
4646
  v.map(e, (u) => Fa(u))
4643
4647
  ),
4644
4648
  d.div(
4645
- r.class("bc-announcement-bar__content"),
4649
+ o.class("bc-announcement-bar__content"),
4646
4650
  Q(
4647
4651
  v.map(t, (u) => u != null),
4648
4652
  () => d.div(
4649
- r.class("bc-announcement-bar__icon"),
4653
+ o.class("bc-announcement-bar__icon"),
4650
4654
  ee({
4651
4655
  icon: t,
4652
4656
  size: "sm",
@@ -4654,11 +4658,11 @@ function Co({
4654
4658
  })
4655
4659
  )
4656
4660
  ),
4657
- d.div(r.class("bc-announcement-bar__text"), ...l),
4661
+ d.div(o.class("bc-announcement-bar__text"), ...s),
4658
4662
  Q(
4659
4663
  c,
4660
4664
  () => d.div(
4661
- r.class("bc-announcement-bar__close"),
4665
+ o.class("bc-announcement-bar__close"),
4662
4666
  Fe({
4663
4667
  size: "xs",
4664
4668
  color: "white",
@@ -4691,12 +4695,12 @@ function To(e) {
4691
4695
  url: t,
4692
4696
  playing: n = !1,
4693
4697
  loop: a = !1,
4694
- controls: o = !1,
4695
- volume: l = 1,
4698
+ controls: r = !1,
4699
+ volume: s = 1,
4696
4700
  muted: i = !1,
4697
4701
  playbackRate: c = 1,
4698
4702
  pip: u = !1,
4699
- playsinline: s = !0,
4703
+ playsinline: l = !0,
4700
4704
  width: f,
4701
4705
  height: b,
4702
4706
  progressInterval: k = 1e3,
@@ -4709,19 +4713,19 @@ function To(e) {
4709
4713
  onBuffer: p,
4710
4714
  onBufferEnd: C,
4711
4715
  onEnded: $,
4712
- onError: L,
4716
+ onError: P,
4713
4717
  onDuration: _,
4714
4718
  onSeek: T,
4715
4719
  onProgress: V,
4716
4720
  onPlaybackRateChange: O,
4717
4721
  onPlaybackQualityChange: B
4718
4722
  } = e;
4719
- function F(P) {
4720
- return /\.m3u8(\?|$)/i.test(P);
4723
+ function F(L) {
4724
+ return /\.m3u8(\?|$)/i.test(L);
4721
4725
  }
4722
- function X(P) {
4726
+ function X(L) {
4723
4727
  try {
4724
- const E = P.canPlayType("application/vnd.apple.mpegurl");
4728
+ const E = L.canPlayType("application/vnd.apple.mpegurl");
4725
4729
  return E === "probably" || E === "maybe";
4726
4730
  } catch {
4727
4731
  return !1;
@@ -4738,22 +4742,22 @@ function To(e) {
4738
4742
  }
4739
4743
  const q = [];
4740
4744
  q.push(
4741
- v.on(t, (P) => {
4742
- typeof P == "string" && P.length > 0 && ja(P) ? H.value = "youtube" : (H.value = "file", U && de());
4745
+ v.on(t, (L) => {
4746
+ typeof L == "string" && L.length > 0 && ja(L) ? H.value = "youtube" : (H.value = "file", U && de());
4743
4747
  })
4744
4748
  );
4745
4749
  async function de() {
4746
- const P = U;
4747
- if (!P) return;
4750
+ const L = U;
4751
+ if (!L) return;
4748
4752
  const E = v.get(t);
4749
4753
  if (typeof E != "string" || E.length === 0) return;
4750
4754
  Te();
4751
4755
  const j = y?.file?.forceHLS ?? !1;
4752
4756
  if (F(E) || j) {
4753
- if (X(P)) {
4754
- P.setAttribute("src", E);
4757
+ if (X(L)) {
4758
+ L.setAttribute("src", E);
4755
4759
  try {
4756
- P.load();
4760
+ L.load();
4757
4761
  } catch {
4758
4762
  }
4759
4763
  return;
@@ -4767,45 +4771,45 @@ function To(e) {
4767
4771
  if (typeof _e == "function") {
4768
4772
  const xe = _e;
4769
4773
  if (typeof xe.isSupported == "function" && xe.isSupported()) {
4770
- P.removeAttribute("src");
4774
+ L.removeAttribute("src");
4771
4775
  try {
4772
- P.load();
4776
+ L.load();
4773
4777
  } catch {
4774
4778
  }
4775
4779
  const Qe = new xe(y?.hls);
4776
- le = Qe, Qe.attachMedia(P), Qe.loadSource(E);
4780
+ le = Qe, Qe.attachMedia(L), Qe.loadSource(E);
4777
4781
  } else {
4778
- P.setAttribute("src", E);
4782
+ L.setAttribute("src", E);
4779
4783
  try {
4780
- P.load();
4784
+ L.load();
4781
4785
  } catch {
4782
4786
  }
4783
4787
  }
4784
4788
  } else {
4785
- P.setAttribute("src", E);
4789
+ L.setAttribute("src", E);
4786
4790
  try {
4787
- P.load();
4791
+ L.load();
4788
4792
  } catch {
4789
4793
  }
4790
4794
  }
4791
4795
  } catch (J) {
4792
- L?.(J), P.setAttribute("src", E);
4796
+ P?.(J), L.setAttribute("src", E);
4793
4797
  try {
4794
- P.load();
4798
+ L.load();
4795
4799
  } catch {
4796
4800
  }
4797
4801
  }
4798
4802
  return;
4799
4803
  }
4800
- P.setAttribute("src", E);
4804
+ L.setAttribute("src", E);
4801
4805
  try {
4802
- P.load();
4806
+ L.load();
4803
4807
  } catch {
4804
4808
  }
4805
4809
  }
4806
4810
  function ye() {
4807
4811
  Y?.();
4808
- const P = v.get(k) ?? 1e3;
4812
+ const L = v.get(k) ?? 1e3;
4809
4813
  Y = Ct(() => {
4810
4814
  const E = U;
4811
4815
  if (!E) return;
@@ -4816,20 +4820,20 @@ function To(e) {
4816
4820
  loaded: j > 0 ? Math.min(Oe, j) / j : 0,
4817
4821
  loadedSeconds: Math.min(Oe, j)
4818
4822
  });
4819
- }, P);
4823
+ }, L);
4820
4824
  }
4821
- function we(P) {
4822
- if (P != null)
4823
- return typeof P == "number" ? `${P}px` : P;
4825
+ function we(L) {
4826
+ if (L != null)
4827
+ return typeof L == "number" ? `${L}px` : L;
4824
4828
  }
4825
4829
  const De = d.video(
4826
- ne((P) => {
4827
- U = P, h?.();
4830
+ ne((L) => {
4831
+ U = L, h?.();
4828
4832
  try {
4829
4833
  U.playbackRate = v.get(c) ?? 1;
4830
4834
  } catch {
4831
4835
  }
4832
- U.muted = !!(v.get(i) ?? !1), U.loop = !!(v.get(a) ?? !1), U.controls = !!(v.get(o) ?? !1), U.playsInline != null && (!!(v.get(s) ?? !0) ? U.setAttribute("playsinline", "") : U.removeAttribute("playsinline")), v.get(n) && (U.play?.().catch(() => {
4836
+ U.muted = !!(v.get(i) ?? !1), U.loop = !!(v.get(a) ?? !1), U.controls = !!(v.get(r) ?? !1), U.playsInline != null && (!!(v.get(l) ?? !0) ? U.setAttribute("playsinline", "") : U.removeAttribute("playsinline")), v.get(n) && (U.play?.().catch(() => {
4833
4837
  }), x?.());
4834
4838
  try {
4835
4839
  const E = !!(v.get(u) ?? !1), j = document, J = U;
@@ -4855,19 +4859,19 @@ function To(e) {
4855
4859
  A.pause(() => g?.()),
4856
4860
  A.waiting(() => p?.()),
4857
4861
  A.canplay(() => {
4858
- const P = U?.duration;
4859
- P != null && Number.isFinite(P) && _?.(P);
4862
+ const L = U?.duration;
4863
+ L != null && Number.isFinite(L) && _?.(L);
4860
4864
  }),
4861
4865
  A.ended(() => $?.()),
4862
- A.error((P) => {
4863
- le || L?.(P);
4866
+ A.error((L) => {
4867
+ le || P?.(L);
4864
4868
  })
4865
4869
  );
4866
4870
  let Ae = null, z = null, Ie = null;
4867
4871
  function $e() {
4868
- const P = v.get(t);
4869
- !Ae || typeof P != "string" || Ha().then((E) => {
4870
- const j = fn(P);
4872
+ const L = v.get(t);
4873
+ !Ae || typeof L != "string" || Ha().then((E) => {
4874
+ const j = fn(L);
4871
4875
  if (j) {
4872
4876
  if (z) {
4873
4877
  z.loadVideoById({ videoId: j });
@@ -4896,7 +4900,7 @@ function To(e) {
4896
4900
  break;
4897
4901
  }
4898
4902
  },
4899
- onError: (J) => L?.(J),
4903
+ onError: (J) => P?.(J),
4900
4904
  onPlaybackRateChange: (J) => O?.(J.data),
4901
4905
  onPlaybackQualityChange: (J) => B?.(J.data)
4902
4906
  }
@@ -4906,7 +4910,7 @@ function To(e) {
4906
4910
  }
4907
4911
  function Ke() {
4908
4912
  Ie?.();
4909
- const P = v.get(k) ?? 1e3;
4913
+ const L = v.get(k) ?? 1e3;
4910
4914
  Ie = Ct(() => {
4911
4915
  if (!z) return;
4912
4916
  const E = z.getDuration?.() ?? 0, j = z.getCurrentTime?.() ?? 0, J = z.getVideoLoadedFraction?.() ?? 0;
@@ -4916,7 +4920,7 @@ function To(e) {
4916
4920
  loaded: J,
4917
4921
  loadedSeconds: J * E
4918
4922
  });
4919
- }, P);
4923
+ }, L);
4920
4924
  }
4921
4925
  function D() {
4922
4926
  if (!z) return;
@@ -4927,7 +4931,7 @@ function To(e) {
4927
4931
  }
4928
4932
  try {
4929
4933
  const j = Math.round(
4930
- Math.min(Math.max(v.get(l) ?? 1, 0), 1) * 100
4934
+ Math.min(Math.max(v.get(s) ?? 1, 0), 1) * 100
4931
4935
  );
4932
4936
  z.setVolume?.(j);
4933
4937
  } catch {
@@ -4941,8 +4945,8 @@ function To(e) {
4941
4945
  typeof E == "number" && Number.isFinite(E) && (z.seekTo?.(E, !0), T?.(E));
4942
4946
  }
4943
4947
  const N = d.div(
4944
- ne((P) => {
4945
- Ae = P, $e(), h?.();
4948
+ ne((L) => {
4949
+ Ae = L, $e(), h?.();
4946
4950
  })
4947
4951
  );
4948
4952
  q.push(
@@ -4955,14 +4959,14 @@ function To(e) {
4955
4959
  }) : U.pause?.() : H.value === "youtube" && z && (v.get(n) ? z.playVideo?.() : z.pauseVideo?.());
4956
4960
  })
4957
4961
  ), q.push(
4958
- v.on(l, () => {
4962
+ v.on(s, () => {
4959
4963
  if (H.value === "file" && U)
4960
- U.volume = Math.min(Math.max(v.get(l) ?? 1, 0), 1);
4964
+ U.volume = Math.min(Math.max(v.get(s) ?? 1, 0), 1);
4961
4965
  else if (H.value === "youtube" && z) {
4962
- const P = Math.round(
4963
- Math.min(Math.max(v.get(l) ?? 1, 0), 1) * 100
4966
+ const L = Math.round(
4967
+ Math.min(Math.max(v.get(s) ?? 1, 0), 1) * 100
4964
4968
  );
4965
- z.setVolume?.(P);
4969
+ z.setVolume?.(L);
4966
4970
  }
4967
4971
  })
4968
4972
  ), q.push(
@@ -4982,8 +4986,8 @@ function To(e) {
4982
4986
  v.on(u, async () => {
4983
4987
  if (!(H.value !== "file" || !U))
4984
4988
  try {
4985
- const P = !!(v.get(u) ?? !1), E = document, j = U;
4986
- P ? typeof j.requestPictureInPicture == "function" && E.pictureInPictureElement !== U && await j.requestPictureInPicture()?.catch(() => {
4989
+ const L = !!(v.get(u) ?? !1), E = document, j = U;
4990
+ L ? typeof j.requestPictureInPicture == "function" && E.pictureInPictureElement !== U && await j.requestPictureInPicture()?.catch(() => {
4987
4991
  }) : E.pictureInPictureElement === U && typeof E.exitPictureInPicture == "function" && await E.exitPictureInPicture()?.catch(() => {
4988
4992
  });
4989
4993
  } catch {
@@ -4991,18 +4995,18 @@ function To(e) {
4991
4995
  })
4992
4996
  ), q.push(
4993
4997
  v.on(m ?? null, () => {
4994
- const P = v.get(m);
4995
- if (P != null)
4998
+ const L = v.get(m);
4999
+ if (L != null)
4996
5000
  if (H.value === "file" && U)
4997
5001
  try {
4998
- U.currentTime = P, T?.(P);
5002
+ U.currentTime = L, T?.(L);
4999
5003
  } catch {
5000
5004
  }
5001
- else H.value === "youtube" && z && (z.seekTo?.(P, !0), T?.(P));
5005
+ else H.value === "youtube" && z && (z.seekTo?.(L, !0), T?.(L));
5002
5006
  })
5003
5007
  );
5004
5008
  const K = d.div(
5005
- r.class("bc-base-video"),
5009
+ o.class("bc-base-video"),
5006
5010
  S.width(
5007
5011
  v.map(f, we)
5008
5012
  ),
@@ -5010,7 +5014,7 @@ function To(e) {
5010
5014
  v.map(b, we)
5011
5015
  ),
5012
5016
  Q(
5013
- v.map(H, (P) => P === "youtube"),
5017
+ v.map(H, (L) => L === "youtube"),
5014
5018
  () => N,
5015
5019
  () => De
5016
5020
  )
@@ -5032,8 +5036,8 @@ function Wa(e) {
5032
5036
  rel: 0,
5033
5037
  playsinline: v.get(e.playsinline) ?? !0 ? 1 : 0,
5034
5038
  modestbranding: 1
5035
- }, n = v.get(e.loop) ?? !1, a = v.get(e.url), o = typeof a == "string" ? fn(a) : null;
5036
- return n && o && (t.loop = 1, t.playlist = o), t;
5039
+ }, n = v.get(e.loop) ?? !1, a = v.get(e.url), r = typeof a == "string" ? fn(a) : null;
5040
+ return n && r && (t.loop = 1, t.playlist = r), t;
5037
5041
  }
5038
5042
  const gt = "https://cdn.jsdelivr.net/npm/pdfjs-dist@5.4.394/", za = (e) => {
5039
5043
  if (!e || typeof e != "object") return !1;
@@ -5065,21 +5069,21 @@ async function qa() {
5065
5069
  }
5066
5070
  function Ja(e, t) {
5067
5071
  if (e.byteLength !== t.byteLength) return !1;
5068
- const n = e.byteLength, a = new DataView(e.buffer, e.byteOffset, n), o = new DataView(t.buffer, t.byteOffset, n), l = n >>> 2, i = n & 3;
5069
- for (let c = 0; c < l; c++)
5070
- if (a.getUint32(c * 4) !== o.getUint32(c * 4)) return !1;
5072
+ const n = e.byteLength, a = new DataView(e.buffer, e.byteOffset, n), r = new DataView(t.buffer, t.byteOffset, n), s = n >>> 2, i = n & 3;
5073
+ for (let c = 0; c < s; c++)
5074
+ if (a.getUint32(c * 4) !== r.getUint32(c * 4)) return !1;
5071
5075
  for (let c = n - i; c < n; c++)
5072
5076
  if (e[c] !== t[c]) return !1;
5073
5077
  return !0;
5074
5078
  }
5075
5079
  function Ka(e, t) {
5076
5080
  if (e.byteLength !== t.byteLength) return !1;
5077
- const n = e.byteLength, a = n >>> 2, o = new Uint32Array(e, 0, a), l = new Uint32Array(t, 0, a);
5078
- for (let s = 0; s < a; s++)
5079
- if (o[s] !== l[s]) return !1;
5081
+ const n = e.byteLength, a = n >>> 2, r = new Uint32Array(e, 0, a), s = new Uint32Array(t, 0, a);
5082
+ for (let l = 0; l < a; l++)
5083
+ if (r[l] !== s[l]) return !1;
5080
5084
  const i = n & 3, c = new Uint8Array(e, a * 4, i), u = new Uint8Array(t, a * 4, i);
5081
- for (let s = 0; s < i; s++)
5082
- if (c[s] !== u[s]) return !1;
5085
+ for (let l = 0; l < i; l++)
5086
+ if (c[l] !== u[l]) return !1;
5083
5087
  return !0;
5084
5088
  }
5085
5089
  function Qa(e, t) {
@@ -5097,12 +5101,12 @@ function Io({
5097
5101
  page: t = 1,
5098
5102
  fit: n = "width",
5099
5103
  scale: a = 1,
5100
- rotation: o = 0,
5101
- quality: l = 2,
5104
+ rotation: r = 0,
5105
+ quality: s = 2,
5102
5106
  renderTextLayer: i = !0,
5103
5107
  renderAnnotationLayer: c = !1,
5104
5108
  onPageChange: u,
5105
- onLoadComplete: s
5109
+ onLoadComplete: l
5106
5110
  }, ...f) {
5107
5111
  const b = qa();
5108
5112
  let k = rt(
@@ -5129,16 +5133,16 @@ function Io({
5129
5133
  t,
5130
5134
  n,
5131
5135
  a,
5132
- o,
5133
- l,
5136
+ r,
5137
+ s,
5134
5138
  i,
5135
5139
  c,
5136
5140
  g
5137
- )((p, C, $, L, _, T, V, O, B) => ({
5141
+ )((p, C, $, P, _, T, V, O, B) => ({
5138
5142
  source: p,
5139
5143
  page: C,
5140
5144
  fit: $,
5141
- scale: L,
5145
+ scale: P,
5142
5146
  rotation: _,
5143
5147
  quality: T,
5144
5148
  renderTextLayer: V,
@@ -5147,8 +5151,8 @@ function Io({
5147
5151
  containerHeight: B.height
5148
5152
  })),
5149
5153
  load: async ({ request: p }) => {
5150
- const C = await b, $ = p.source, L = rt($), _ = rt($);
5151
- (m == null || !Qa(k, L)) && (m != null && (m.destroy(), m = null), k = L, m = await C.getDocument(_).promise, s?.({ numPages: m.numPages }));
5154
+ const C = await b, $ = p.source, P = rt($), _ = rt($);
5155
+ (m == null || !Qa(k, P)) && (m != null && (m.destroy(), m = null), k = P, m = await C.getDocument(_).promise, l?.({ numPages: m.numPages }));
5152
5156
  const T = p.page < 1 || p.page > m.numPages ? 1 : p.page;
5153
5157
  u != null && T !== y && (y = T, u(T));
5154
5158
  const V = await m.getPage(T);
@@ -5272,27 +5276,27 @@ function Io({
5272
5276
  },
5273
5277
  convertError: (p) => p instanceof Error ? p.message : JSON.stringify(p),
5274
5278
  pending: () => d.div(
5275
- r.class("bc-pdf-page-viewer__loading"),
5279
+ o.class("bc-pdf-page-viewer__loading"),
5276
5280
  ee({
5277
5281
  icon: "line-md:loading-twotone-loop",
5278
5282
  size: "lg"
5279
5283
  }),
5280
5284
  d.span(
5281
- r.class("bc-pdf-page-viewer__loading-text"),
5285
+ o.class("bc-pdf-page-viewer__loading-text"),
5282
5286
  h.map((p) => p.pdfPageViewer.loading)
5283
5287
  )
5284
5288
  ),
5285
5289
  failure: ({ error: p }) => d.div(
5286
- r.class("bc-pdf-page-viewer__error"),
5290
+ o.class("bc-pdf-page-viewer__error"),
5287
5291
  ee({
5288
5292
  icon: "line-md:alert-circle",
5289
5293
  size: "lg",
5290
5294
  color: "danger"
5291
5295
  }),
5292
- d.span(r.class("bc-pdf-page-viewer__error-text"), p)
5296
+ d.span(o.class("bc-pdf-page-viewer__error-text"), p)
5293
5297
  ),
5294
5298
  success: ({ value: p }) => d.div(
5295
- r.class(
5299
+ o.class(
5296
5300
  v.map(
5297
5301
  n,
5298
5302
  (C) => C === "none" ? "bc-pdf-page-viewer" : `bc-pdf-page-viewer bc-pdf-page-viewer--fit-${C}`
@@ -5300,11 +5304,11 @@ function Io({
5300
5304
  ),
5301
5305
  // Wrapper for canvas and layers (provides positioning context)
5302
5306
  d.div(
5303
- r.class("bc-pdf-page-viewer__content"),
5307
+ o.class("bc-pdf-page-viewer__content"),
5304
5308
  // Only set fixed dimensions when fit is 'none'
5305
5309
  Q(
5306
5310
  v.map(n, (C) => C === "none"),
5307
- () => r.style(
5311
+ () => o.style(
5308
5312
  p.$.canvasWidth.map(
5309
5313
  (C) => `width: ${C}px; height: ${p.value.canvasHeight}px;`
5310
5314
  )
@@ -5313,20 +5317,20 @@ function Io({
5313
5317
  ),
5314
5318
  // Canvas layer
5315
5319
  d.canvas(
5316
- r.class("bc-pdf-page-viewer__canvas"),
5317
- r.width(p.$.canvasWidth.map(String)),
5318
- r.height(p.$.canvasHeight.map(String)),
5320
+ o.class("bc-pdf-page-viewer__canvas"),
5321
+ o.width(p.$.canvasWidth.map(String)),
5322
+ o.height(p.$.canvasHeight.map(String)),
5319
5323
  ...f
5320
5324
  ),
5321
5325
  // Text layer (for text selection)
5322
- d.div(r.class("bc-pdf-page-viewer__text-layer")),
5326
+ d.div(o.class("bc-pdf-page-viewer__text-layer")),
5323
5327
  // Annotation layer (for links, forms, etc.)
5324
- d.div(r.class("bc-pdf-page-viewer__annotation-layer"))
5328
+ d.div(o.class("bc-pdf-page-viewer__annotation-layer"))
5325
5329
  ),
5326
5330
  ne((C) => {
5327
5331
  const $ = C.querySelector(
5328
5332
  ".bc-pdf-page-viewer__canvas"
5329
- ), L = C.querySelector(
5333
+ ), P = C.querySelector(
5330
5334
  ".bc-pdf-page-viewer__text-layer"
5331
5335
  ), _ = C.querySelector(
5332
5336
  ".bc-pdf-page-viewer__annotation-layer"
@@ -5334,7 +5338,7 @@ function Io({
5334
5338
  return v.on(p, async (T) => {
5335
5339
  await T.render(
5336
5340
  $,
5337
- L,
5341
+ P,
5338
5342
  _
5339
5343
  );
5340
5344
  }), W;
@@ -5363,7 +5367,7 @@ export {
5363
5367
  Si as BaseListControl,
5364
5368
  Ml as BaseMappedControl,
5365
5369
  Ci as BaseNativeSelectControl,
5366
- Lr as BaseSelectTagsControl,
5370
+ Pr as BaseSelectTagsControl,
5367
5371
  To as BaseVideoPlayer,
5368
5372
  io as BeatUI,
5369
5373
  ie as BeatUII18n,
@@ -5406,7 +5410,7 @@ export {
5406
5410
  Mr as FileInput,
5407
5411
  Vn as FilesInput,
5408
5412
  Ze as Flyout,
5409
- Pn as FocusTrap,
5413
+ Ln as FocusTrap,
5410
5414
  ro as FormStatus,
5411
5415
  Gt as Group,
5412
5416
  ee as Icon,
@@ -5421,19 +5425,19 @@ export {
5421
5425
  Ia as Link,
5422
5426
  Tc as LinkPortal,
5423
5427
  _i as ListControl,
5424
- Pi as ListInput,
5428
+ Li as ListInput,
5425
5429
  ct as Locale,
5426
5430
  lo as LocaleSelector,
5427
5431
  jl as MappedControl,
5428
5432
  Me as MaskInput,
5429
5433
  tn as Menu,
5430
- Pr as MenuItem,
5434
+ Lr as MenuItem,
5431
5435
  nn as MenuSeparator,
5432
5436
  ui as Modal,
5433
5437
  Hl as MutedLabel,
5434
5438
  co as NativePdfPreview,
5435
5439
  Zt as NativeSelect,
5436
- Li as NativeSelectControl,
5440
+ Pi as NativeSelectControl,
5437
5441
  bo as NavigationLink,
5438
5442
  Tr as NineSliceScrollView,
5439
5443
  Wl as Notice,
@@ -5487,7 +5491,7 @@ export {
5487
5491
  mo as Sidebar,
5488
5492
  Aa as SidebarActiveLink,
5489
5493
  Va as SidebarClickLink,
5490
- La as SidebarContext,
5494
+ Pa as SidebarContext,
5491
5495
  Bt as SidebarGroup,
5492
5496
  Ba as SidebarLink,
5493
5497
  vo as SidebarSeparator,
@@ -5506,18 +5510,18 @@ export {
5506
5510
  Gi as TextArea,
5507
5511
  Ao as TextInput,
5508
5512
  Yt as Theme,
5509
- Ln as ThemeAppearance,
5513
+ Pn as ThemeAppearance,
5510
5514
  $c as Toolbar,
5511
5515
  _c as ToolbarButton,
5512
- Pc as ToolbarDivider,
5513
- Lc as ToolbarGroup,
5516
+ Lc as ToolbarDivider,
5517
+ Pc as ToolbarGroup,
5514
5518
  Dc as ToolbarSpacer,
5515
5519
  xo as Tooltip,
5516
5520
  Zi as UUIDInput,
5517
5521
  qi as UnionController,
5518
5522
  Ji as UnstyledDropZone,
5519
5523
  Ki as UrlInput,
5520
- Po as Use,
5524
+ Lo as Use,
5521
5525
  Xn as WithBeatUIBreakpoint,
5522
5526
  xr as WithBeatUIElementBreakpoint,
5523
5527
  Kt as WithBreakpoint,
@@ -5583,8 +5587,8 @@ export {
5583
5587
  Is as generateSemanticFontVariables,
5584
5588
  $s as generateSemanticMotionVariables,
5585
5589
  _s as generateSemanticRadiusVariables,
5586
- Ps as generateSemanticShadowVariables,
5587
- Ls as generateSemanticSpacingVariables,
5590
+ Ls as generateSemanticShadowVariables,
5591
+ Ps as generateSemanticSpacingVariables,
5588
5592
  Ds as generateSemanticTextShadowVariables,
5589
5593
  As as generateSemanticTokenVariables,
5590
5594
  Vs as generateShadowVariables,
@@ -5643,7 +5647,7 @@ export {
5643
5647
  rs as interactiveColors,
5644
5648
  jo as isIndexedDBAvailable,
5645
5649
  Ho as isRTLLocale,
5646
- Pa as isUrlMatch,
5650
+ La as isUrlMatch,
5647
5651
  Mn as isValidColor,
5648
5652
  St as isValidHexColor,
5649
5653
  lc as isValidHslColor,
@@ -5683,9 +5687,9 @@ export {
5683
5687
  Il as semanticRadiusNames,
5684
5688
  $l as semanticShadowNames,
5685
5689
  _l as semanticSpacingNames,
5686
- Pl as semanticTextShadowNames,
5690
+ Ll as semanticTextShadowNames,
5687
5691
  he as sessionId,
5688
- Ll as shadows,
5692
+ Pl as shadows,
5689
5693
  Dl as spacing,
5690
5694
  yc as srgbToLinear,
5691
5695
  ni as standardSchemaResultToValidation,