@tempots/beatui 0.60.2 → 0.60.4

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,25 +1,25 @@
1
- import { prop as G, html as d, attr as r, computedOf as I, Fragment as N, OnDispose as re, style as S, on as A, WithElement as te, When as K, Value as h, Use as ne, Empty as H, input as de, emitValue as ee, aria as M, OneOfValue as pn, Unless as fn, coalesce as Te, ForEach as _e, Ensure as Ye, OneOfType as Mt, dataAttr as st, NotEmpty as bn, emitValueAsDate as gn, Portal as lt, makeProviderMark as Et, WithBrowserCtx as mn, renderWithContext as hn, WithProvider as vn, Task as yn, Provide as Ot, MapSignal as Nt, svg as gt, svgAttr as mt } from "@tempots/dom";
1
+ import { prop as Z, html as d, attr as r, computedOf as T, Fragment as F, OnDispose as re, style as S, on as V, WithElement as ee, When as K, Value as h, Use as ne, Empty as W, input as de, emitValue as X, aria as M, OneOfValue as pn, Unless as fn, coalesce as Ie, ForEach as _e, Ensure as Ge, OneOfType as Mt, dataAttr as st, NotEmpty as bn, emitValueAsDate as gn, Portal as lt, makeProviderMark as Et, WithBrowserCtx as mn, renderWithContext as hn, WithProvider as vn, Task as yn, Provide as Ot, MapSignal as Nt, svg as gt, svgAttr as mt } from "@tempots/dom";
2
2
  import { Use as ks } from "@tempots/dom";
3
- import { PopOver as wn, ElementRect as De, WindowSize as xn, Query as Ft, Location as Be, NavigationService as kn, Anchor as ot } from "@tempots/ui";
4
- import { i as se, t as we, h as ht, e as ce, a as le, I as X, b as oe, C as pe, B as vt, c as We, L as it, j as yt, k as wt } from "./translations-g3qGTkzw.js";
5
- import { x as Cs, T as Is, l as Ts, d as _s, f as $s, g as Ps, u as Ds, q as Ls, o as As, w as Vs, y as Bs, n as Ms, v as Es, m as Os, p as Ns, r as Fs, s as Rs } from "./translations-g3qGTkzw.js";
3
+ import { PopOver as wn, ElementRect as De, WindowSize as xn, Query as Ft, Location as Me, NavigationService as kn, Anchor as ot } from "@tempots/ui";
4
+ import { i as se, t as we, h as ht, e as ie, a as le, I as Q, b as oe, C as pe, B as vt, c as ze, L as it, j as yt, k as wt } from "./translations-g3qGTkzw.js";
5
+ import { x as Cs, T as Ts, l as Is, d as _s, f as $s, g as Ps, u as Ds, q as Ls, o as As, w as Vs, y as Bs, n as Ms, v as Es, m as Os, p as Ns, r as Fs, s as Rs } from "./translations-g3qGTkzw.js";
6
6
  import { g as ct } from "./colors-pQZlNrwM.js";
7
7
  import { b as js, e as Hs, i as Ws, a as zs, c as Ys, o as Gs, l as Zs, m as Js, k as qs, j as Ks, n as Qs, r as Xs, s as el, d as tl, h as nl, t as al } from "./colors-pQZlNrwM.js";
8
8
  import { b as Sn } from "./index-CpZh_Snx.js";
9
- import { t as sl, am as ll, h as ol, J as il, c as cl, N as ul, I as dl, K as pl, e as fl, l as bl, d as gl, a as ml, ab as hl, o as vl, a0 as yl, ae as wl, q as xl, H as kl, A as Sl, al as Cl, g as Il, E as Tl, x as _l, aj as $l, $ as Pl, a4 as Dl, k as Ll, j as Al, i as Vl, Y as Bl, X as Ml, Q as El, P as Ol, S as Nl, R as Fl, W as Rl, V as Ul, U as jl, T as Hl, a8 as Wl, a7 as zl, aa as Yl, a9 as Gl, n as Zl, m as Jl, _ as ql, Z as Kl, ad as Ql, p as Xl, G as eo, z as to, ak as no, D as ao, C as ro, w as so, v as lo, ai as oo, ah as io, f as co, a3 as uo, a2 as po, M as fo, L as bo, a5 as go, a6 as mo, r as ho, O as vo, ac as yo, s as wo, F as xo, y as ko, ag as So, B as Co, u as Io, af as To, a1 as _o } from "./index-CpZh_Snx.js";
10
- import { C as Ee, s as me, m as Rt, d as Ut, I as ut, B as jt, c as Ht, S as dt, e as Cn } from "./notice-Cpso9PgQ.js";
9
+ import { t as sl, am as ll, h as ol, J as il, c as cl, N as ul, I as dl, K as pl, e as fl, l as bl, d as gl, a as ml, ab as hl, o as vl, a0 as yl, ae as wl, q as xl, H as kl, A as Sl, al as Cl, g as Tl, E as Il, x as _l, aj as $l, $ as Pl, a4 as Dl, k as Ll, j as Al, i as Vl, Y as Bl, X as Ml, Q as El, P as Ol, S as Nl, R as Fl, W as Rl, V as Ul, U as jl, T as Hl, a8 as Wl, a7 as zl, aa as Yl, a9 as Gl, n as Zl, m as Jl, _ as ql, Z as Kl, ad as Ql, p as Xl, G as eo, z as to, ak as no, D as ao, C as ro, w as so, v as lo, ai as oo, ah as io, f as co, a3 as uo, a2 as po, M as fo, L as bo, a5 as go, a6 as mo, r as ho, O as vo, ac as yo, s as wo, F as xo, y as ko, ag as So, B as Co, u as To, af as Io, a1 as _o } from "./index-CpZh_Snx.js";
10
+ import { C as Oe, s as me, m as Rt, d as Ut, I as ut, B as jt, c as Ht, S as dt, e as Cn } from "./notice-Cpso9PgQ.js";
11
11
  import { A as Po, g as Do, b as Lo, D as Ao, E as Vo, v as Bo, L as Mo, M as Eo, x as Oo, N as No, i as Fo, P as Ro, R as Uo, n as jo, q as Ho, o as Wo, k as zo, j as Yo, f as Go, p as Zo, h as Jo, r as qo, t as Ko, l as Qo, u as Xo, w as ei } from "./notice-Cpso9PgQ.js";
12
- import { u as Me, A as rt, a as In, O as Wt, F as Tn } from "./modal-DJDeFIxV.js";
12
+ import { u as Ee, A as rt, a as Tn, O as Wt, F as In } from "./modal-DJDeFIxV.js";
13
13
  import { B as ni, C as ai, M as ri, c as si, S as li, b as oi, d as ii, o as ci, s as ui, f as di, e as pi, g as fi } from "./modal-DJDeFIxV.js";
14
14
  import { T as zt, a as _n } from "./theme-B5pmbvQ_.js";
15
15
  import { S as $n, G as Yt, E as Pn, F as Dn, N as Gt, a as Le, M as Ae, e as xt, n as Ln, W as he, d as An, i as Vn, b as kt, c as Pe } from "./utils-BRzdi3Gx.js";
16
- import { j as gi, l as mi, B as hi, p as vi, V as yi, C as wi, m as xi, L as ki, o as Si, q as Ci, r as Ii, s as Ti, O as _i, u as $i, z as Pi, v as Di, I as Li, K as Ai, w as Vi, x as Bi, H as Mi, Q as Ei, y as Oi, R as Ni, J as Fi, A as Ri, T as Ui, D as ji, f as Hi, U as Wi, P as zi, X as Yi, Y as Gi, ag as Zi, k as Ji, ae as qi, a2 as Ki, a1 as Qi, a6 as Xi, a7 as ec, $ as tc, Z as nc, _ as ac, ab as rc, a5 as sc, ac as lc, a3 as oc, af as ic, a0 as cc, a8 as uc, a9 as dc, ad as pc, aa as fc, a4 as bc, g as gc, t as mc, h as hc } from "./utils-BRzdi3Gx.js";
17
- import { g as ze, x as St } from "./timer-DzWb416P.js";
16
+ import { j as gi, l as mi, B as hi, p as vi, V as yi, C as wi, m as xi, L as ki, o as Si, q as Ci, r as Ti, s as Ii, O as _i, u as $i, z as Pi, v as Di, I as Li, K as Ai, w as Vi, x as Bi, H as Mi, Q as Ei, y as Oi, R as Ni, J as Fi, A as Ri, T as Ui, D as ji, f as Hi, U as Wi, P as zi, X as Yi, Y as Gi, ag as Zi, k as Ji, ae as qi, a2 as Ki, a1 as Qi, a6 as Xi, a7 as ec, $ as tc, Z as nc, _ as ac, ab as rc, a5 as sc, ac as lc, a3 as oc, af as ic, a0 as cc, a8 as uc, a9 as dc, ad as pc, aa as fc, a4 as bc, g as gc, t as mc, h as hc } from "./utils-BRzdi3Gx.js";
17
+ import { g as Ye, x as St } from "./timer-DzWb416P.js";
18
18
  import { L as yc } from "./link-portal-Cr2l9f3k.js";
19
- import { T as xc, a as kc, c as Sc, b as Cc, d as Ic } from "./toolbar-_yJ-dm-Z.js";
19
+ import { T as xc, a as kc, c as Sc, b as Cc, d as Tc } from "./toolbar-_yJ-dm-Z.js";
20
20
  function lr(e, t = 0, n = () => !0) {
21
21
  let a = null, s;
22
- const o = G(e.value);
22
+ const o = Z(e.value);
23
23
  return e.on((i) => {
24
24
  s = i, n(i) ? a == null && (a = setTimeout(() => {
25
25
  a = null, o.set(s);
@@ -28,7 +28,7 @@ function lr(e, t = 0, n = () => !0) {
28
28
  a != null && clearTimeout(a);
29
29
  }), o;
30
30
  }
31
- const Ct = (e, t) => e < t ? e : t, Re = (e, t) => e > t ? e : t, Bn = (e, { abortSignal: t } = {}) => new Promise((n, a) => {
31
+ const Ct = (e, t) => e < t ? e : t, Ue = (e, t) => e > t ? e : t, Bn = (e, { abortSignal: t } = {}) => new Promise((n, a) => {
32
32
  const s = setTimeout(n, e);
33
33
  t && t.addEventListener("abort", () => {
34
34
  clearTimeout(s), a(new DOMException("Aborted", "AbortError"));
@@ -55,7 +55,7 @@ function En(e, t) {
55
55
  };
56
56
  switch (e) {
57
57
  case "filled": {
58
- const s = ce(t, "solid", "light"), o = ce(t, "solid", "dark"), i = se(t, "soft", "light"), c = se(t, "soft", "dark");
58
+ const s = ie(t, "solid", "light"), o = ie(t, "solid", "dark"), i = se(t, "soft", "light"), c = se(t, "soft", "dark");
59
59
  n.set("--badge-bg", s.backgroundColor), n.set("--badge-text", s.textColor), n.set("--badge-bg-dark", o.backgroundColor), n.set("--badge-text-dark", o.textColor), n.set("--badge-border", "transparent"), n.set("--badge-border-dark", "transparent"), a(
60
60
  i.backgroundColor,
61
61
  c.backgroundColor,
@@ -65,7 +65,7 @@ function En(e, t) {
65
65
  break;
66
66
  }
67
67
  case "light": {
68
- const s = ce(t, "light", "light"), o = ce(t, "light", "dark"), i = se(t, "light", "light"), c = se(t, "light", "dark");
68
+ const s = ie(t, "light", "light"), o = ie(t, "light", "dark"), i = se(t, "light", "light"), c = se(t, "light", "dark");
69
69
  n.set("--badge-bg", s.backgroundColor), n.set("--badge-text", s.textColor), n.set("--badge-bg-dark", o.backgroundColor), n.set("--badge-text-dark", o.textColor), n.set("--badge-border", "transparent"), n.set("--badge-border-dark", "transparent"), a(
70
70
  i.backgroundColor,
71
71
  c.backgroundColor,
@@ -117,7 +117,7 @@ function ir({
117
117
  }, ...i) {
118
118
  return d.span(
119
119
  r.class(
120
- I(
120
+ T(
121
121
  t,
122
122
  a,
123
123
  s,
@@ -132,7 +132,7 @@ function ir({
132
132
  )
133
133
  ),
134
134
  r.style(
135
- I(
135
+ T(
136
136
  e,
137
137
  n
138
138
  )(
@@ -153,9 +153,9 @@ function cr({
153
153
  onInvalidSelection: s,
154
154
  disabled: o = !1
155
155
  }) {
156
- const i = G(!1), c = G([]);
156
+ const i = Z(!1), c = Z([]);
157
157
  let u = null, l = 0;
158
- const f = (y) => y.dataTransfer?.types.includes("Files") ?? !1, g = (y, T) => T === "*/*" ? !0 : T.split(",").map(($) => $.trim()).some(($) => {
158
+ const f = (y) => y.dataTransfer?.types.includes("Files") ?? !1, g = (y, I) => I === "*/*" ? !0 : I.split(",").map(($) => $.trim()).some(($) => {
159
159
  if ($ === "*/*") return !0;
160
160
  if ($.endsWith("/*")) {
161
161
  const P = $.slice(0, -2);
@@ -171,14 +171,14 @@ function cr({
171
171
  }, v = (y) => {
172
172
  if (h.get(o) || !f(y)) return;
173
173
  y.preventDefault(), y.stopPropagation(), l = 0, i.value = !1;
174
- const T = Array.from(y.dataTransfer?.files ?? []);
175
- if (T.length > 0) {
176
- const _ = h.get(t), $ = T.filter(
174
+ const I = Array.from(y.dataTransfer?.files ?? []);
175
+ if (I.length > 0) {
176
+ const _ = h.get(t), $ = I.filter(
177
177
  (C) => g(C, _)
178
- ), P = T.filter(
178
+ ), P = I.filter(
179
179
  (C) => !$.includes(C)
180
180
  );
181
- $.length > 0 && (c.value = $, e($, "dragdrop")), P.length > 0 && s?.(T);
181
+ $.length > 0 && (c.value = $, e($, "dragdrop")), P.length > 0 && s?.(I);
182
182
  }
183
183
  };
184
184
  typeof document < "u" && (document.addEventListener("dragenter", k), document.addEventListener("dragover", m), document.addEventListener("dragleave", w), document.addEventListener("drop", v));
@@ -187,10 +187,10 @@ function cr({
187
187
  }, b = () => {
188
188
  u?.click();
189
189
  }, p = (y) => {
190
- const T = y.target, _ = Array.from(T.files ?? []);
191
- _.length > 0 && (c.value = _, e(_, "click")), T.value = "";
190
+ const I = y.target, _ = Array.from(I.files ?? []);
191
+ _.length > 0 && (c.value = _, e(_, "click")), I.value = "";
192
192
  };
193
- return N(
193
+ return F(
194
194
  re(x),
195
195
  // Hidden file input for programmatic file selection
196
196
  d.input(
@@ -203,8 +203,8 @@ function cr({
203
203
  S.pointerEvents("none"),
204
204
  S.width("0"),
205
205
  S.height("0"),
206
- A.change(p),
207
- te((y) => (u = y, re(() => {
206
+ V.change(p),
207
+ ee((y) => (u = y, re(() => {
208
208
  u != null && (u.value = "");
209
209
  })))
210
210
  ),
@@ -232,7 +232,7 @@ function ur({
232
232
  withRowBorders: c = !0,
233
233
  borderRadius: u
234
234
  } = {}, ...l) {
235
- const f = I(
235
+ const f = T(
236
236
  e,
237
237
  t,
238
238
  n,
@@ -248,14 +248,14 @@ function ur({
248
248
  b ?? !1,
249
249
  p ?? !0
250
250
  )
251
- ), g = I(
251
+ ), g = T(
252
252
  n,
253
253
  a,
254
254
  o
255
255
  )((m, w, v) => {
256
256
  const x = ["bc-table-container"];
257
257
  return m && x.push("bc-table-container--sticky"), w && x.push("bc-table-container--full-width"), v && x.push("bc-table-container--with-table-border"), x.join(" ");
258
- }), k = I(u)(
258
+ }), k = T(u)(
259
259
  (m) => Nn(m)
260
260
  );
261
261
  return d.div(
@@ -269,7 +269,7 @@ function Fn(e, t) {
269
269
  return e !== "md" && n.push(`bc-tag--${e}`), t && n.push("bc-tag--disabled"), n.join(" ");
270
270
  }
271
271
  function Rn(e) {
272
- const t = ce(e, "light", "light"), n = ce(e, "light", "dark"), a = se(e, "light", "light"), s = se(e, "light", "dark");
272
+ const t = ie(e, "light", "light"), n = ie(e, "light", "dark"), a = se(e, "light", "light"), s = se(e, "light", "dark");
273
273
  return [
274
274
  `--tag-bg: ${t.backgroundColor}`,
275
275
  `--tag-text: ${t.textColor}`,
@@ -290,13 +290,13 @@ const Zt = ({
290
290
  disabled: o
291
291
  }) => d.span(
292
292
  r.class(
293
- I(
293
+ T(
294
294
  a ?? "md",
295
295
  o ?? !1
296
296
  )((i, c) => Fn(i, c))
297
297
  ),
298
298
  r.style(
299
- I(t)(
299
+ T(t)(
300
300
  (i) => Rn(i ?? "base")
301
301
  )
302
302
  ),
@@ -305,7 +305,7 @@ const Zt = ({
305
305
  d.span(e),
306
306
  n != null ? ne(
307
307
  le,
308
- (i) => Ee(
308
+ (i) => Oe(
309
309
  {
310
310
  size: "xs",
311
311
  label: i.$.removeItem,
@@ -315,7 +315,7 @@ const Zt = ({
315
315
  },
316
316
  r.class("bc-tag__close")
317
317
  )
318
- ) : H
318
+ ) : W
319
319
  );
320
320
  function Un({
321
321
  value: e,
@@ -329,15 +329,15 @@ function Un({
329
329
  options: {
330
330
  system: d.span(
331
331
  r.title("System"),
332
- X({ icon: "line-md:laptop", color: "gray" })
332
+ Q({ icon: "line-md:laptop", color: "gray" })
333
333
  ),
334
334
  light: d.span(
335
335
  r.title("Light"),
336
- X({ icon: "line-md:sunny-twotone-loop", color: "yellow" })
336
+ Q({ icon: "line-md:sunny-twotone-loop", color: "yellow" })
337
337
  ),
338
338
  dark: d.span(
339
339
  r.title("Dark"),
340
- X({
340
+ Q({
341
341
  icon: "line-md:sunny-outline-to-moon-alt-loop-transition",
342
342
  color: "blue"
343
343
  })
@@ -365,14 +365,14 @@ function jn({
365
365
  r.class("bc-color-input__swatch-container"),
366
366
  d.span(
367
367
  r.class("bc-color-input__swatch"),
368
- A.click(() => a?.showPicker()),
368
+ V.click(() => a?.showPicker()),
369
369
  de.color(
370
- te((s) => (a = s, H)),
370
+ ee((s) => (a = s, W)),
371
371
  r.value(e),
372
372
  S.width("4px"),
373
373
  S.height("4px"),
374
- t != null ? A.change(ee(t)) : H,
375
- n != null ? A.input(ee(n)) : H
374
+ t != null ? V.change(X(t)) : W,
375
+ n != null ? V.input(X(n)) : W
376
376
  ),
377
377
  r.style(h.map(e, (s) => `background-color: ${s}`))
378
378
  )
@@ -386,9 +386,9 @@ function pr(e) {
386
386
  input: de.text(
387
387
  pe(e),
388
388
  r.value(t),
389
- n != null ? A.blur(ee(n)) : H,
390
- a != null ? A.change(ee(a)) : H,
391
- s != null ? A.input(ee(s)) : H
389
+ n != null ? V.blur(X(n)) : W,
390
+ a != null ? V.change(X(a)) : W,
391
+ s != null ? V.input(X(s)) : W
392
392
  )
393
393
  },
394
394
  r.class("bc-color-input"),
@@ -399,7 +399,7 @@ function Hn(e) {
399
399
  const t = { fade: !0, scale: !0 };
400
400
  return e.startsWith("top") ? (t.slide = "down", t.transformOrigin = "bottom") : e.startsWith("bottom") ? (t.slide = "up", t.transformOrigin = "top") : e.startsWith("left") ? (t.slide = "right", t.transformOrigin = "right") : e.startsWith("right") && (t.slide = "left", t.transformOrigin = "left"), t;
401
401
  }
402
- function Ge(e) {
402
+ function Ze(e) {
403
403
  const {
404
404
  content: t,
405
405
  placement: n = "top",
@@ -414,34 +414,34 @@ function Ge(e) {
414
414
  hasPopup: g = "dialog"
415
415
  } = e;
416
416
  return wn((k, m) => {
417
- const w = Me({
417
+ const w = Ee({
418
418
  initialStatus: "closed"
419
- }), v = me("flyout"), x = G(!1);
419
+ }), v = me("flyout"), x = Z(!1);
420
420
  let b = null, p = null, y = !1;
421
- function T() {
421
+ function I() {
422
422
  $ != null && (clearTimeout($), $ = null), C != null && (clearTimeout(C), C = null), p && (p(), p = null), b && (document.removeEventListener("keydown", b), b = null), x.set(!1), y = !1;
423
423
  }
424
424
  function _() {
425
- h.get(u) && (b = (E) => {
426
- E.key === "Escape" && V();
425
+ h.get(u) && (b = (R) => {
426
+ R.key === "Escape" && L();
427
427
  }, document.addEventListener("keydown", b)), y = !0, x.set(!0), k({
428
428
  placement: n ?? "top",
429
429
  mainAxisOffset: o,
430
430
  crossAxisOffset: i,
431
431
  onClickOutside: () => {
432
- h.get(u) && V();
432
+ h.get(u) && L();
433
433
  },
434
434
  arrow: l,
435
- content: te((E) => {
436
- w.setElement(E), p = ze(() => {
435
+ content: ee((R) => {
436
+ w.setElement(R), p = Ye(() => {
437
437
  w.open(), p = null;
438
438
  });
439
- const R = (j) => {
440
- h.get(u) && j.key === "Escape" && (j.preventDefault(), j.stopPropagation(), V(), x.set(!1));
439
+ const E = (j) => {
440
+ h.get(u) && j.key === "Escape" && (j.preventDefault(), j.stopPropagation(), L(), x.set(!1));
441
441
  };
442
- return document.addEventListener("keydown", R, !0), N(
442
+ return document.addEventListener("keydown", E, !0), F(
443
443
  re(() => {
444
- T(), document.removeEventListener("keydown", R, !0);
444
+ I(), document.removeEventListener("keydown", E, !0);
445
445
  }),
446
446
  r.class("bc-flyout-container"),
447
447
  r.id(v),
@@ -469,68 +469,68 @@ function Ge(e) {
469
469
  w.open();
470
470
  return;
471
471
  }
472
- const E = h.get(a);
472
+ const R = h.get(a);
473
473
  $ = setTimeout(() => {
474
474
  $ = null, _();
475
- }, E);
475
+ }, R);
476
476
  }
477
477
  let C = null;
478
- function V() {
478
+ function L() {
479
479
  if ($ != null && (clearTimeout($), $ = null), C != null && (clearTimeout(C), C = null), x.set(!1), p && (p(), p = null, y)) {
480
- m(), T();
480
+ m(), I();
481
481
  return;
482
482
  }
483
- const E = h.get(s);
483
+ const R = h.get(s);
484
484
  C = setTimeout(() => {
485
485
  C = null, w.close(), w.listenOnClosed(() => {
486
- m(), T();
486
+ m(), I();
487
487
  });
488
- }, E);
488
+ }, R);
489
489
  }
490
- return te((E) => {
491
- const R = () => {
490
+ return ee((R) => {
491
+ const E = () => {
492
492
  P(), x.set(!0);
493
493
  }, j = () => {
494
- V(), x.set(!1);
495
- }, J = N(
494
+ L(), x.set(!1);
495
+ }, te = F(
496
496
  M.expanded(x),
497
497
  M.controls(v),
498
498
  M.haspopup(
499
499
  g
500
500
  )
501
501
  );
502
- return typeof c == "function" ? N(
503
- J,
504
- c(R, j)
505
- ) : N(
506
- J,
502
+ return typeof c == "function" ? F(
503
+ te,
504
+ c(E, j)
505
+ ) : F(
506
+ te,
507
507
  pn(c, {
508
- "hover-focus": () => N(
509
- A.mouseenter(() => R()),
510
- A.mouseleave(() => j()),
511
- A.focus(() => R()),
512
- A.blur(() => j())
508
+ "hover-focus": () => F(
509
+ V.mouseenter(() => E()),
510
+ V.mouseleave(() => j()),
511
+ V.focus(() => E()),
512
+ V.blur(() => j())
513
513
  ),
514
- hover: () => N(
515
- A.mouseenter(() => R()),
516
- A.mouseleave(() => j())
514
+ hover: () => F(
515
+ V.mouseenter(() => E()),
516
+ V.mouseleave(() => j())
517
517
  ),
518
- focus: () => N(
519
- A.focus(() => R()),
520
- A.blur(() => j())
518
+ focus: () => F(
519
+ V.focus(() => E()),
520
+ V.blur(() => j())
521
521
  ),
522
522
  click: () => {
523
- function F() {
524
- document.removeEventListener("click", Q);
523
+ function O() {
524
+ document.removeEventListener("click", G);
525
525
  }
526
- function Q() {
527
- F(), j();
526
+ function G() {
527
+ O(), j();
528
528
  }
529
- return N(
530
- re(F),
531
- A.click(() => {
532
- R(), ze(() => {
533
- document.addEventListener("click", Q, {
529
+ return F(
530
+ re(O),
531
+ V.click(() => {
532
+ E(), Ye(() => {
533
+ document.addEventListener("click", G, {
534
534
  once: !0
535
535
  });
536
536
  });
@@ -570,7 +570,7 @@ function fr({
570
570
  const m = o != null;
571
571
  return d.div(
572
572
  r.class(
573
- I(
573
+ T(
574
574
  a,
575
575
  s,
576
576
  i
@@ -584,7 +584,7 @@ function fr({
584
584
  )
585
585
  ),
586
586
  r.style(
587
- I(
587
+ T(
588
588
  l,
589
589
  f,
590
590
  g,
@@ -595,11 +595,11 @@ function fr({
595
595
  ),
596
596
  K(
597
597
  m,
598
- () => N(
598
+ () => F(
599
599
  fn(
600
600
  s,
601
- () => N(
602
- A.click(() => o?.()),
601
+ () => F(
602
+ V.click(() => o?.()),
603
603
  r.tabindex(0)
604
604
  )
605
605
  ),
@@ -610,7 +610,7 @@ function fr({
610
610
  // Icon container
611
611
  d.div(
612
612
  r.class("bc-action-card__icon"),
613
- X({ icon: e, size: u, color: c })
613
+ Q({ icon: e, size: u, color: c })
614
614
  ),
615
615
  // Content container
616
616
  d.div(
@@ -678,7 +678,7 @@ function ae(e, t, n) {
678
678
  return Jn(e.getPropertyValue(t), n);
679
679
  }
680
680
  function qn(e) {
681
- return te((t) => {
681
+ return ee((t) => {
682
682
  const n = getComputedStyle(t), a = {
683
683
  zero: 0,
684
684
  xs: ae(n, "--breakpoint-xs", 640),
@@ -691,7 +691,7 @@ function qn(e) {
691
691
  });
692
692
  }
693
693
  function gr(e) {
694
- return te((t) => {
694
+ return ee((t) => {
695
695
  const n = getComputedStyle(t), a = {
696
696
  zero: 0,
697
697
  "3xs": ae(n, "--container-3xs", 256),
@@ -718,11 +718,11 @@ function fe(e, t) {
718
718
  }
719
719
  function ye(e) {
720
720
  const t = h.toSignal(e).map(
721
- (a) => ce(a, "lighter", "light")
721
+ (a) => ie(a, "lighter", "light")
722
722
  ), n = h.toSignal(e).map(
723
- (a) => ce(a, "lighter", "dark")
723
+ (a) => ie(a, "lighter", "dark")
724
724
  );
725
- return N(
725
+ return F(
726
726
  S.variable("--panel-bg", t.$.backgroundColor),
727
727
  S.variable("--panel-text", t.$.textColor),
728
728
  S.variable("--panel-bg-dark", n.$.backgroundColor),
@@ -787,7 +787,7 @@ const ge = {
787
787
  xl: 280
788
788
  }
789
789
  };
790
- function It(e, t) {
790
+ function Tt(e, t) {
791
791
  if (typeof e == "number")
792
792
  return {
793
793
  zero: e,
@@ -920,14 +920,14 @@ function mr({
920
920
  Qn.filter((o) => n[o]).map(
921
921
  (o) => [
922
922
  o,
923
- It(n[o].width ?? {}, ge[o])
923
+ Tt(n[o].width ?? {}, ge[o])
924
924
  ]
925
925
  )
926
926
  ), s = Object.fromEntries(
927
927
  Xn.filter((o) => n[o]).map(
928
928
  (o) => [
929
929
  o,
930
- It(n[o].height ?? {}, ge[o])
930
+ Tt(n[o].height ?? {}, ge[o])
931
931
  ]
932
932
  )
933
933
  );
@@ -940,17 +940,17 @@ function mr({
940
940
  vertical: a,
941
941
  horizontal: s,
942
942
  is: c
943
- }), l = i.map(u), f = s.header != null || a.menu != null || a.aside != null, g = I(
943
+ }), l = i.map(u), f = s.header != null || a.menu != null || a.aside != null, g = T(
944
944
  a.aside != null,
945
945
  l
946
- )((p, { displayAside: y }) => p && !y), k = I(
946
+ )((p, { displayAside: y }) => p && !y), k = T(
947
947
  a.menu != null,
948
948
  l
949
- )((p, { displayMenu: y }) => p && !y), m = Me(), w = Me(), v = G(0), x = I(
949
+ )((p, { displayMenu: y }) => p && !y), m = Ee(), w = Ee(), v = Z(0), x = T(
950
950
  a.menu != null,
951
951
  l,
952
952
  m.display
953
- )(ea), b = I(
953
+ )(ea), b = T(
954
954
  a.aside != null,
955
955
  l,
956
956
  w.display
@@ -1000,7 +1000,7 @@ function mr({
1000
1000
  color: "base"
1001
1001
  },
1002
1002
  M.label(o.$.toggleMenu),
1003
- X({
1003
+ Q({
1004
1004
  icon: m.display.map(
1005
1005
  (p) => p ? "line-md/menu-to-close-alt-transition" : "line-md/close-to-menu-alt-transition"
1006
1006
  )
@@ -1028,7 +1028,7 @@ function mr({
1028
1028
  color: "base"
1029
1029
  },
1030
1030
  M.label(o.$.toggleAside),
1031
- X(
1031
+ Q(
1032
1032
  { icon: "line-md/chevron-left" },
1033
1033
  r.style("transition: transform 0.2s ease-in-out"),
1034
1034
  r.style(
@@ -1042,7 +1042,7 @@ function mr({
1042
1042
  )
1043
1043
  ),
1044
1044
  n.menu ? d.nav(
1045
- te((p) => m.setElement(p)),
1045
+ ee((p) => m.setElement(p)),
1046
1046
  S.zIndex("10"),
1047
1047
  // Add ARIA attributes for navigation landmark
1048
1048
  M.label(o.$.mainNavigation),
@@ -1068,13 +1068,13 @@ function mr({
1068
1068
  S.overflow("hidden"),
1069
1069
  S.gridArea("menu"),
1070
1070
  S.display(
1071
- I(
1071
+ T(
1072
1072
  x,
1073
1073
  m.status
1074
1074
  )((p, y) => p === "none" && y === "closed" ? "none" : "block")
1075
1075
  ),
1076
1076
  S.position(
1077
- I(
1077
+ T(
1078
1078
  x,
1079
1079
  m.status
1080
1080
  )((p, y) => p === "float" || p === "none" && y !== "closed" ? "fixed" : "initial")
@@ -1082,12 +1082,12 @@ function mr({
1082
1082
  S.top(v.map((p) => `${p}px`)),
1083
1083
  rt({
1084
1084
  animation: { slide: "right" },
1085
- status: I(
1085
+ status: T(
1086
1086
  x,
1087
1087
  m.status
1088
1088
  )((p, y) => p === "block" ? "opened" : y)
1089
1089
  }),
1090
- S.width(Te(n.menu?.width, l.$.menuWidth)),
1090
+ S.width(Ie(n.menu?.width, l.$.menuWidth)),
1091
1091
  S.bottom("0"),
1092
1092
  n.menu?.content
1093
1093
  ) : null,
@@ -1126,7 +1126,7 @@ function mr({
1126
1126
  n.mainFooter.content
1127
1127
  ) : null,
1128
1128
  n.aside ? d.aside(
1129
- te((p) => {
1129
+ ee((p) => {
1130
1130
  w.setElement(p);
1131
1131
  }),
1132
1132
  S.zIndex("10"),
@@ -1142,13 +1142,13 @@ function mr({
1142
1142
  S.height("100%"),
1143
1143
  S.gridArea("aside"),
1144
1144
  S.display(
1145
- I(
1145
+ T(
1146
1146
  b,
1147
1147
  w.status
1148
1148
  )((p, y) => p === "none" && y === "closed" ? "none" : "block")
1149
1149
  ),
1150
1150
  S.position(
1151
- I(
1151
+ T(
1152
1152
  b,
1153
1153
  w.status
1154
1154
  )((p, y) => p === "float" || p === "none" && y !== "closed" ? "fixed" : "initial")
@@ -1156,13 +1156,13 @@ function mr({
1156
1156
  S.top(v.map((p) => `${p}px`)),
1157
1157
  rt({
1158
1158
  animation: { slide: "left" },
1159
- status: I(
1159
+ status: T(
1160
1160
  b,
1161
1161
  w.status
1162
1162
  )((p, y) => p === "block" ? "opened" : y)
1163
1163
  }),
1164
1164
  S.width(
1165
- Te(n.aside?.width, l.$.asideWidth)
1165
+ Ie(n.aside?.width, l.$.asideWidth)
1166
1166
  ),
1167
1167
  S.bottom(v.map((p) => `${p}px`)),
1168
1168
  n.aside.content
@@ -1190,19 +1190,19 @@ function na(e) {
1190
1190
  }
1191
1191
  function vr({ gap: e = "lg" } = {}, ...t) {
1192
1192
  return d.div(
1193
- r.class(I(e)((n) => na(n ?? "lg"))),
1193
+ r.class(T(e)((n) => na(n ?? "lg"))),
1194
1194
  ...t
1195
1195
  );
1196
1196
  }
1197
1197
  function aa({ open: e }, ...t) {
1198
- return te((n) => {
1199
- const { status: a, setOpen: s, dispose: o } = Me({
1198
+ return ee((n) => {
1199
+ const { status: a, setOpen: s, dispose: o } = Ee({
1200
1200
  initialStatus: h.get(e) ? "opened" : "closed",
1201
1201
  element: n
1202
1202
  });
1203
1203
  return h.on(e, s), De((i) => {
1204
- const c = G(null);
1205
- return I(
1204
+ const c = Z(null);
1205
+ return T(
1206
1206
  a,
1207
1207
  i.$.height
1208
1208
  )((l, f) => l === "opened" && f > 0 ? f : null).on((l) => {
@@ -1214,7 +1214,7 @@ function aa({ open: e }, ...t) {
1214
1214
  const k = n.scrollHeight;
1215
1215
  k > 0 && c.set(k), n.style.height = f, n.style.transition = g, n.offsetHeight;
1216
1216
  }
1217
- }), N(
1217
+ }), F(
1218
1218
  re(o),
1219
1219
  r.style(
1220
1220
  c.map((l) => `--collapse-height: ${l != null ? `${l}px` : "auto"}`)
@@ -1228,7 +1228,7 @@ function aa({ open: e }, ...t) {
1228
1228
  function ra(e) {
1229
1229
  return `${e}px`;
1230
1230
  }
1231
- function Tt(e) {
1231
+ function It(e) {
1232
1232
  return h.map(e, ra);
1233
1233
  }
1234
1234
  function yr({
@@ -1249,106 +1249,106 @@ function yr({
1249
1249
  sidebarEndWidth: w = 0,
1250
1250
  anchorMode: v = "container-edge"
1251
1251
  }) {
1252
- const x = G(0n), b = G(0n), p = Tt(s), y = Tt(k), T = G(16);
1252
+ const x = Z(0n), b = Z(0n), p = It(s), y = It(k), I = Z(16);
1253
1253
  return d.div(
1254
1254
  r.class("bc-nine-slice-container"),
1255
1255
  De((_) => {
1256
- const $ = I(
1256
+ const $ = T(
1257
1257
  _.$.width,
1258
1258
  k,
1259
1259
  w
1260
- )((L, O, q) => L - O - q), P = I(
1260
+ )((A, N, q) => A - N - q), P = T(
1261
1261
  _.$.height,
1262
1262
  s,
1263
1263
  u
1264
- )((L, O, q) => L - O - q), C = I(
1264
+ )((A, N, q) => A - N - q), C = T(
1265
1265
  t,
1266
1266
  $
1267
- )((L, O) => L > BigInt(O)), V = I(
1267
+ )((A, N) => A > BigInt(N)), L = T(
1268
1268
  n,
1269
1269
  P
1270
- )((L, O) => L > BigInt(O)), E = I(
1270
+ )((A, N) => A > BigInt(N)), R = T(
1271
1271
  $,
1272
- V,
1273
- T
1274
- )((L, O, q) => O ? L - q : L), R = I(
1272
+ L,
1273
+ I
1274
+ )((A, N, q) => N ? A - q : A), E = T(
1275
1275
  P,
1276
1276
  C,
1277
- T
1278
- )((L, O, q) => O ? L - q : L), j = I(
1277
+ I
1278
+ )((A, N, q) => N ? A - q : A), j = T(
1279
1279
  t,
1280
- E
1281
- )((L, O) => Number(L / BigInt(Math.max(1, O)))), J = I(
1282
- n,
1283
1280
  R
1284
- )((L, O) => Number(L / BigInt(Math.max(1, O)))), Y = h.map(
1281
+ )((A, N) => Number(A / BigInt(Math.max(1, N)))), te = T(
1282
+ n,
1283
+ E
1284
+ )((A, N) => Number(A / BigInt(Math.max(1, N)))), H = h.map(
1285
1285
  v,
1286
- (L) => L === "body-end" || L === "body-end-bottom"
1287
- ), F = K(
1288
- Y,
1286
+ (A) => A === "body-end" || A === "body-end-bottom"
1287
+ ), O = K(
1288
+ H,
1289
1289
  () => S.left(
1290
- I(
1290
+ T(
1291
1291
  k,
1292
1292
  t,
1293
- E,
1293
+ R,
1294
1294
  w
1295
- )((L, O, q, D) => {
1296
- const B = L + Number(O), U = L + q, Z = Math.min(B, U);
1297
- return `${Math.max(L + D, Z)}px`;
1295
+ )((A, N, q, D) => {
1296
+ const B = A + Number(N), U = A + q, J = Math.min(B, U);
1297
+ return `${Math.max(A + D, J)}px`;
1298
1298
  })
1299
1299
  ),
1300
1300
  () => S.right("0")
1301
- ), Q = h.map(
1301
+ ), G = h.map(
1302
1302
  v,
1303
- (L) => L === "body-bottom" || L === "body-end-bottom"
1304
- ), ie = K(
1305
- Q,
1303
+ (A) => A === "body-bottom" || A === "body-end-bottom"
1304
+ ), ce = K(
1305
+ G,
1306
1306
  () => S.top(
1307
- I(
1307
+ T(
1308
1308
  s,
1309
1309
  n,
1310
- R,
1310
+ E,
1311
1311
  u
1312
- )((L, O, q, D) => {
1313
- const B = L + Number(O), U = L + q, Z = Math.min(B, U);
1314
- return `${Math.max(L + D, Z)}px`;
1312
+ )((A, N, q, D) => {
1313
+ const B = A + Number(N), U = A + q, J = Math.min(B, U);
1314
+ return `${Math.max(A + D, J)}px`;
1315
1315
  })
1316
1316
  ),
1317
1317
  () => S.bottom("0")
1318
- ), qe = I(
1319
- V,
1320
- T
1321
- )((L, O) => L ? `${O}px` : "0"), ue = I(
1318
+ ), Ve = T(
1319
+ L,
1320
+ I
1321
+ )((A, N) => A ? `${N}px` : "0"), ue = T(
1322
1322
  C,
1323
- T
1324
- )((L, O) => L ? `${O}px` : "0"), Oe = S.transform(
1325
- I(
1323
+ I
1324
+ )((A, N) => A ? `${N}px` : "0"), Ne = S.transform(
1325
+ T(
1326
1326
  b,
1327
1327
  x,
1328
1328
  C,
1329
- V
1330
- )((L, O, q, D) => {
1331
- const B = q ? `translateX(-${L}px)` : "", U = D ? `translateY(-${O}px)` : "";
1329
+ L
1330
+ )((A, N, q, D) => {
1331
+ const B = q ? `translateX(-${A}px)` : "", U = D ? `translateY(-${N}px)` : "";
1332
1332
  return `${B} ${U}`.trim() || "none";
1333
1333
  })
1334
- ), Ne = S.transform(
1335
- b.map((L) => `translateX(-${L}px)`)
1334
+ ), Fe = S.transform(
1335
+ b.map((A) => `translateX(-${A}px)`)
1336
1336
  ), ke = S.transform(
1337
- x.map((L) => `translateY(-${L}px)`)
1338
- ), Fe = I(
1337
+ x.map((A) => `translateY(-${A}px)`)
1338
+ ), Re = T(
1339
1339
  n,
1340
- R
1341
- )((L, O) => L - BigInt(Math.max(1, O))), $e = I(
1342
- t,
1343
1340
  E
1344
- )((L, O) => L - BigInt(Math.max(1, O)));
1345
- let W = null, Se = 0, Ce = 0;
1341
+ )((A, N) => A - BigInt(Math.max(1, N))), $e = T(
1342
+ t,
1343
+ R
1344
+ )((A, N) => A - BigInt(Math.max(1, N)));
1345
+ let z = null, Se = 0, Ce = 0;
1346
1346
  const Ke = () => {
1347
- const L = Fe.value, O = $e.value, q = V.value, D = C.value;
1347
+ const A = Re.value, N = $e.value, q = L.value, D = C.value;
1348
1348
  if (q && Ce !== 0) {
1349
1349
  const B = Ct(
1350
- Re(0n, L),
1351
- Re(
1350
+ Ue(0n, A),
1351
+ Ue(
1352
1352
  0n,
1353
1353
  x.value + BigInt(Math.round(Ce))
1354
1354
  )
@@ -1357,32 +1357,32 @@ function yr({
1357
1357
  }
1358
1358
  if (D && Se !== 0) {
1359
1359
  const B = Ct(
1360
- Re(0n, O),
1361
- Re(
1360
+ Ue(0n, N),
1361
+ Ue(
1362
1362
  0n,
1363
1363
  b.value + BigInt(Math.round(Se))
1364
1364
  )
1365
1365
  );
1366
1366
  b.set(B);
1367
1367
  }
1368
- Se = 0, Ce = 0, W = null;
1368
+ Se = 0, Ce = 0, z = null;
1369
1369
  };
1370
- return C.on((L) => {
1371
- L || b.set(0n);
1372
- }), V.on((L) => {
1373
- L || x.set(0n);
1374
- }), N(
1370
+ return C.on((A) => {
1371
+ A || b.set(0n);
1372
+ }), L.on((A) => {
1373
+ A || x.set(0n);
1374
+ }), F(
1375
1375
  re(() => {
1376
- W && clearTimeout(W);
1376
+ z && clearTimeout(z);
1377
1377
  }),
1378
- A.wheel((L) => {
1379
- L.preventDefault();
1380
- const { deltaX: O, deltaY: q } = L;
1381
- Se += O, Ce += q, W || (W = setTimeout(Ke, 16));
1378
+ V.wheel((A) => {
1379
+ A.preventDefault();
1380
+ const { deltaX: N, deltaY: q } = A;
1381
+ Se += N, Ce += q, z || (z = setTimeout(Ke, 16));
1382
1382
  }),
1383
1383
  d.div(
1384
1384
  r.class("bc-nine-slice-pane-container"),
1385
- S.right(qe),
1385
+ S.right(Ve),
1386
1386
  S.bottom(ue),
1387
1387
  // top-start corner
1388
1388
  o != null ? d.div(
@@ -1402,7 +1402,7 @@ function yr({
1402
1402
  // style.width(visibleAreaWidthPx),
1403
1403
  d.div(
1404
1404
  r.class("bc-nine-slice-pane-content"),
1405
- Ne,
1405
+ Fe,
1406
1406
  a
1407
1407
  )
1408
1408
  ) : null,
@@ -1410,7 +1410,7 @@ function yr({
1410
1410
  i != null ? d.div(
1411
1411
  r.class("bc-nine-slice-pane bc-nine-slice-top-end"),
1412
1412
  S.top("0"),
1413
- F,
1413
+ O,
1414
1414
  // style.height(headerHeightPx),
1415
1415
  // style.width(sidebarEndWidthPx),
1416
1416
  i
@@ -1437,14 +1437,14 @@ function yr({
1437
1437
  // style.height(visibleAreaHeight.map(toPx)),
1438
1438
  d.div(
1439
1439
  r.class("bc-nine-slice-pane-content"),
1440
- Oe,
1440
+ Ne,
1441
1441
  e
1442
1442
  )
1443
1443
  ),
1444
1444
  // middle-end sidebar
1445
1445
  m != null ? d.div(
1446
1446
  r.class("bc-nine-slice-pane bc-nine-slice-sidebar-end"),
1447
- F,
1447
+ O,
1448
1448
  S.top(p),
1449
1449
  // style.height(visibleAreaHeightPx),
1450
1450
  // style.width(sidebarEndWidthPx),
@@ -1458,7 +1458,7 @@ function yr({
1458
1458
  l != null ? d.div(
1459
1459
  r.class("bc-nine-slice-pane bc-nine-slice-bottom-start"),
1460
1460
  S.left("0"),
1461
- ie,
1461
+ ce,
1462
1462
  // style.height(footerHeightPx),
1463
1463
  // style.width(sidebarStartWidthPx),
1464
1464
  l
@@ -1467,20 +1467,20 @@ function yr({
1467
1467
  c != null ? d.div(
1468
1468
  r.class("bc-nine-slice-pane bc-nine-slice-footer"),
1469
1469
  S.left(y),
1470
- ie,
1470
+ ce,
1471
1471
  // style.height(footerHeightPx),
1472
1472
  // style.width(visibleAreaWidthPx),
1473
1473
  d.div(
1474
1474
  r.class("bc-nine-slice-pane-content"),
1475
- Ne,
1475
+ Fe,
1476
1476
  c
1477
1477
  )
1478
1478
  ) : null,
1479
1479
  // bottom-end corner
1480
1480
  f != null ? d.div(
1481
1481
  r.class("bc-nine-slice-pane bc-nine-slice-bottom-end"),
1482
- F,
1483
- ie,
1482
+ O,
1483
+ ce,
1484
1484
  // style.height(footerHeightPx),
1485
1485
  // style.width(sidebarEndWidthPx),
1486
1486
  f
@@ -1492,15 +1492,15 @@ function yr({
1492
1492
  S.overflowX("scroll"),
1493
1493
  S.left("0"),
1494
1494
  S.right(
1495
- I(
1496
- V,
1497
- T
1498
- )((L, O) => L ? `${O}px` : "0")
1495
+ T(
1496
+ L,
1497
+ I
1498
+ )((A, N) => A ? `${N}px` : "0")
1499
1499
  ),
1500
1500
  S.bottom("0"),
1501
1501
  S.height(
1502
1502
  C.map(
1503
- (L) => L ? "16px" : "0"
1503
+ (A) => A ? "16px" : "0"
1504
1504
  )
1505
1505
  ),
1506
1506
  d.div(
@@ -1508,13 +1508,13 @@ function yr({
1508
1508
  "bc-nine-slice-pane bc-nine-slice-horizontal-scrollbar-thumb"
1509
1509
  ),
1510
1510
  S.width(
1511
- j.map((L) => `${100 / Math.max(1, L)}%`)
1511
+ j.map((A) => `${100 / Math.max(1, A)}%`)
1512
1512
  ),
1513
1513
  S.height("100%"),
1514
1514
  S.backgroundColor("#ff000066")
1515
1515
  ),
1516
- A.scroll((L) => {
1517
- const O = L.target, q = O.scrollLeft, D = O.scrollWidth - O.clientWidth;
1516
+ V.scroll((A) => {
1517
+ const N = A.target, q = N.scrollLeft, D = N.scrollWidth - N.clientWidth;
1518
1518
  if (D > 0) {
1519
1519
  const B = q / D, U = $e.value;
1520
1520
  b.set(
@@ -1529,15 +1529,15 @@ function yr({
1529
1529
  S.overflowY("scroll"),
1530
1530
  S.top("0"),
1531
1531
  S.bottom(
1532
- I(
1532
+ T(
1533
1533
  C,
1534
- T
1535
- )((L, O) => L ? `${O}px` : "0")
1534
+ I
1535
+ )((A, N) => A ? `${N}px` : "0")
1536
1536
  ),
1537
1537
  S.right("0"),
1538
1538
  S.width(
1539
- V.map(
1540
- (L) => L ? "16px" : "0"
1539
+ L.map(
1540
+ (A) => A ? "16px" : "0"
1541
1541
  )
1542
1542
  ),
1543
1543
  d.div(
@@ -1546,19 +1546,19 @@ function yr({
1546
1546
  ),
1547
1547
  S.width("100%"),
1548
1548
  S.height(
1549
- I(
1549
+ T(
1550
1550
  s,
1551
1551
  u,
1552
1552
  n,
1553
- J
1554
- )((L, O, q, D) => `${100 / Math.max(1, D)}%`)
1553
+ te
1554
+ )((A, N, q, D) => `${100 / Math.max(1, D)}%`)
1555
1555
  ),
1556
1556
  S.backgroundColor("#ff000066")
1557
1557
  ),
1558
- A.scroll((L) => {
1559
- const O = L.target, q = O.scrollTop, D = O.scrollHeight - O.clientHeight;
1558
+ V.scroll((A) => {
1559
+ const N = A.target, q = N.scrollTop, D = N.scrollHeight - N.clientHeight;
1560
1560
  if (D > 0) {
1561
- const B = q / D, U = Fe.value;
1561
+ const B = q / D, U = Re.value;
1562
1562
  x.set(
1563
1563
  BigInt(Math.round(Number(U) * B))
1564
1564
  );
@@ -1570,7 +1570,7 @@ function yr({
1570
1570
  );
1571
1571
  }
1572
1572
  function _t({ header: e, footer: t, body: n, shadowOnScroll: a = !0 }, ...s) {
1573
- const o = G("none");
1573
+ const o = Z("none");
1574
1574
  function i(u) {
1575
1575
  const l = u.scrollTop === 0, f = u.scrollTop + u.clientHeight >= u.scrollHeight - 1;
1576
1576
  l && f ? o.set("none") : l ? o.set("bottom") : f ? o.set("top") : o.set("both");
@@ -1578,7 +1578,7 @@ function _t({ header: e, footer: t, body: n, shadowOnScroll: a = !0 }, ...s) {
1578
1578
  return d.div(
1579
1579
  r.class("bc-scrollable-panel"),
1580
1580
  r.class(
1581
- I(
1581
+ T(
1582
1582
  o,
1583
1583
  a
1584
1584
  )((u, l) => {
@@ -1599,10 +1599,10 @@ function _t({ header: e, footer: t, body: n, shadowOnScroll: a = !0 }, ...s) {
1599
1599
  d.div(r.class("bc-scrollable-panel--header-shadow"), d.div()),
1600
1600
  d.div(
1601
1601
  r.class("bc-scrollable-panel__body"),
1602
- te(
1603
- (u) => re(ze(() => i(u)))
1602
+ ee(
1603
+ (u) => re(Ye(() => i(u)))
1604
1604
  ),
1605
- A.scroll((u) => {
1605
+ V.scroll((u) => {
1606
1606
  const l = u.target;
1607
1607
  i(l);
1608
1608
  }),
@@ -1620,7 +1620,7 @@ function sa(e, t, n) {
1620
1620
  function wr({ variant: e = "default", size: t = "md", roundedness: n = "lg" } = {}, ...a) {
1621
1621
  return d.div(
1622
1622
  r.class(
1623
- I(
1623
+ T(
1624
1624
  e,
1625
1625
  t,
1626
1626
  n
@@ -1676,35 +1676,35 @@ const xe = {
1676
1676
  onBeforeOpen: c,
1677
1677
  onAfterOpen: u,
1678
1678
  buildListboxContent: l
1679
- } = e, f = G(!1), g = G(-1), k = G(null), m = me("dropdown"), w = me("listbox");
1679
+ } = e, f = Z(!1), g = Z(-1), k = Z(null), m = me("dropdown"), w = me("listbox");
1680
1680
  let v, x;
1681
1681
  const b = (y) => {
1682
1682
  t?.(y), f.set(!1), g.set(-1), k.set(null), v?.focus();
1683
1683
  }, p = (y) => {
1684
- const T = xe.getValues(h.get(o));
1684
+ const I = xe.getValues(h.get(o));
1685
1685
  switch (y.key) {
1686
1686
  case "ArrowDown": {
1687
1687
  if (y.preventDefault(), !f.value)
1688
- f.set(!0), T.length > 0 && (g.set(0), k.set(T[0]));
1688
+ f.set(!0), I.length > 0 && (g.set(0), k.set(I[0]));
1689
1689
  else {
1690
1690
  const _ = Math.min(
1691
1691
  g.value + 1,
1692
- T.length - 1
1692
+ I.length - 1
1693
1693
  );
1694
- g.set(_), k.set(T[_] ?? null);
1694
+ g.set(_), k.set(I[_] ?? null);
1695
1695
  }
1696
1696
  break;
1697
1697
  }
1698
1698
  case "ArrowUp": {
1699
1699
  if (y.preventDefault(), f.value) {
1700
1700
  const _ = Math.max(g.value - 1, 0);
1701
- g.set(_), k.set(T[_] ?? null);
1701
+ g.set(_), k.set(I[_] ?? null);
1702
1702
  }
1703
1703
  break;
1704
1704
  }
1705
1705
  case "Enter": {
1706
1706
  if (y.preventDefault(), f.value && g.value >= 0) {
1707
- const _ = T[g.value];
1707
+ const _ = I[g.value];
1708
1708
  _ != null && b(_);
1709
1709
  } else {
1710
1710
  c?.();
@@ -1733,15 +1733,15 @@ const xe = {
1733
1733
  input: Yt(
1734
1734
  r.class("bc-dropdown__trigger"),
1735
1735
  d.span(r.class("bc-dropdown__display"), s),
1736
- X(
1736
+ Q(
1737
1737
  { icon: "ph:caret-up-down-bold", color: "neutral" },
1738
1738
  r.class("bc-dropdown__arrow")
1739
1739
  )
1740
1740
  )
1741
1741
  },
1742
- De((y) => N(
1743
- te((T) => (v = T, T.addEventListener("keydown", p), re(
1744
- () => T.removeEventListener("keydown", p)
1742
+ De((y) => F(
1743
+ ee((I) => (v = I, I.addEventListener("keydown", p), re(
1744
+ () => I.removeEventListener("keydown", p)
1745
1745
  ))),
1746
1746
  pe(e),
1747
1747
  r.id(m),
@@ -1751,24 +1751,24 @@ const xe = {
1751
1751
  r.class("bc-dropdown"),
1752
1752
  r.role(a),
1753
1753
  M.activedescendant(
1754
- I(
1754
+ T(
1755
1755
  f,
1756
1756
  k
1757
1757
  )(
1758
- (T, _) => T && _ != null ? `dropdown-option-${String(_)}` : ""
1758
+ (I, _) => I && _ != null ? `dropdown-option-${String(_)}` : ""
1759
1759
  )
1760
1760
  ),
1761
- n != null ? A.blur(() => {
1761
+ n != null ? V.blur(() => {
1762
1762
  setTimeout(() => {
1763
1763
  x?.contains(document.activeElement) || (f.set(!1), g.set(-1), n());
1764
1764
  }, 100);
1765
- }) : H,
1766
- Ge({
1765
+ }) : W,
1766
+ Ze({
1767
1767
  content: () => d.div(
1768
- te((T) => {
1769
- x = T;
1768
+ ee((I) => {
1769
+ x = I;
1770
1770
  }),
1771
- S.minWidth(y.$.width.map((T) => `${T - 10}px`)),
1771
+ S.minWidth(y.$.width.map((I) => `${I - 10}px`)),
1772
1772
  r.class("bc-dropdown__listbox"),
1773
1773
  r.role("listbox"),
1774
1774
  r.id(w),
@@ -1784,7 +1784,7 @@ const xe = {
1784
1784
  mainAxisOffset: 0,
1785
1785
  placement: "bottom-start",
1786
1786
  hasPopup: "listbox",
1787
- showOn: (T, _) => {
1787
+ showOn: (I, _) => {
1788
1788
  const $ = _;
1789
1789
  _ = () => {
1790
1790
  f.set(!1), g.set(-1), k.set(null), $();
@@ -1795,10 +1795,10 @@ const xe = {
1795
1795
  else {
1796
1796
  c?.();
1797
1797
  const C = xe.getValues(h.get(o));
1798
- f.set(!0), C.length > 0 && (g.set(0), k.set(C[0])), T(), setTimeout(() => u?.(), 0);
1798
+ f.set(!0), C.length > 0 && (g.set(0), k.set(C[0])), I(), setTimeout(() => u?.(), 0);
1799
1799
  }
1800
1800
  };
1801
- return A.click(P);
1801
+ return V.click(P);
1802
1802
  },
1803
1803
  showDelay: 0,
1804
1804
  hideDelay: 0,
@@ -1806,21 +1806,21 @@ const xe = {
1806
1806
  })
1807
1807
  ))
1808
1808
  );
1809
- }, Kt = (e, t, n, a, s) => Ye(
1809
+ }, Kt = (e, t, n, a, s) => Ge(
1810
1810
  e,
1811
1811
  (o) => Mt(o, {
1812
1812
  value: (i) => {
1813
- const c = I(
1813
+ const c = T(
1814
1814
  i,
1815
1815
  n
1816
- )((l, f) => t(l.value, f)), u = I(
1816
+ )((l, f) => t(l.value, f)), u = T(
1817
1817
  i,
1818
1818
  s
1819
1819
  )((l, f) => f != null && t(l.value, f));
1820
1820
  return d.div(
1821
1821
  r.class("bc-dropdown__option"),
1822
1822
  r.class(
1823
- I(
1823
+ T(
1824
1824
  c,
1825
1825
  u,
1826
1826
  i
@@ -1835,8 +1835,8 @@ const xe = {
1835
1835
  Pn("value", i.$.value),
1836
1836
  K(
1837
1837
  i.map((l) => !l.disabled),
1838
- () => A.click(() => a(i.value.value)),
1839
- () => H
1838
+ () => V.click(() => a(i.value.value)),
1839
+ () => W
1840
1840
  ),
1841
1841
  d.div(
1842
1842
  r.class("bc-dropdown__option-content"),
@@ -1878,7 +1878,7 @@ const xe = {
1878
1878
  equality: s = (l, f) => l === f,
1879
1879
  placeholder: o,
1880
1880
  searchable: i = !1
1881
- } = e, c = I(
1881
+ } = e, c = T(
1882
1882
  t,
1883
1883
  n
1884
1884
  )((l, f) => {
@@ -1894,7 +1894,7 @@ const xe = {
1894
1894
  }
1895
1895
  };
1896
1896
  return g(f) || String(l);
1897
- }), u = I(i)((l) => !l);
1897
+ }), u = T(i)((l) => !l);
1898
1898
  return qt({
1899
1899
  ...e,
1900
1900
  role: "dropdown",
@@ -1903,7 +1903,7 @@ const xe = {
1903
1903
  () => c,
1904
1904
  () => ne(
1905
1905
  le,
1906
- (l) => Te(o, a, l.$.selectOne)
1906
+ (l) => Ie(o, a, l.$.selectOne)
1907
1907
  )
1908
1908
  ),
1909
1909
  optionsSource: n,
@@ -1924,14 +1924,14 @@ const xe = {
1924
1924
  }, xr = (e) => ut({
1925
1925
  ...e,
1926
1926
  content: oa(e)
1927
- }), Qt = (e, t, n, a, s, o) => Ye(
1927
+ }), Qt = (e, t, n, a, s, o) => Ge(
1928
1928
  e,
1929
1929
  (i) => Mt(i, {
1930
1930
  value: (c) => {
1931
- const u = I(
1931
+ const u = T(
1932
1932
  c,
1933
1933
  n
1934
- )((f, g) => t(f.value, g)), l = I(
1934
+ )((f, g) => t(f.value, g)), l = T(
1935
1935
  c,
1936
1936
  s
1937
1937
  )(
@@ -1940,7 +1940,7 @@ const xe = {
1940
1940
  return d.div(
1941
1941
  r.class("bc-dropdown__option"),
1942
1942
  r.class(
1943
- I(
1943
+ T(
1944
1944
  u,
1945
1945
  l,
1946
1946
  c
@@ -1954,8 +1954,8 @@ const xe = {
1954
1954
  M.selected(u),
1955
1955
  K(
1956
1956
  c.map((f) => !f.disabled),
1957
- () => A.click(() => a(c.value.value)),
1958
- () => H
1957
+ () => V.click(() => a(c.value.value)),
1958
+ () => W
1959
1959
  ),
1960
1960
  d.div(
1961
1961
  r.class("bc-dropdown__option-content"),
@@ -2003,7 +2003,7 @@ const xe = {
2003
2003
  placeholder: i,
2004
2004
  searchPlaceholder: c,
2005
2005
  debounceMs: u = 150
2006
- } = e, l = G(""), f = G(!1), g = G([]);
2006
+ } = e, l = Z(""), f = Z(!1), g = Z([]);
2007
2007
  let k;
2008
2008
  const m = h.toSignal(t), w = () => (s ?? a)(m);
2009
2009
  let v = null;
@@ -2025,7 +2025,7 @@ const xe = {
2025
2025
  ...e,
2026
2026
  role: "combobox",
2027
2027
  display: K(
2028
- I(t)((p) => p != null),
2028
+ T(t)((p) => p != null),
2029
2029
  w,
2030
2030
  () => ne(le, (p) => p.$.selectOne)
2031
2031
  ),
@@ -2037,7 +2037,7 @@ const xe = {
2037
2037
  onAfterOpen: () => {
2038
2038
  k?.focus();
2039
2039
  },
2040
- buildListboxContent: ({ focusedValue: p, handleKeyDown: y, onSelect: T }) => N(
2040
+ buildListboxContent: ({ focusedValue: p, handleKeyDown: y, onSelect: I }) => F(
2041
2041
  // Search input at the top
2042
2042
  d.div(
2043
2043
  r.class("bc-dropdown__search"),
@@ -2045,25 +2045,25 @@ const xe = {
2045
2045
  r.type("text"),
2046
2046
  r.class("bc-dropdown__search-input"),
2047
2047
  r.placeholder(
2048
- I(
2048
+ T(
2049
2049
  c,
2050
2050
  i
2051
2051
  )((_, $) => _ ?? $ ?? "Search")
2052
2052
  ),
2053
2053
  r.value(l),
2054
- te((_) => (k = _, H)),
2055
- A.input((_) => {
2054
+ ee((_) => (k = _, W)),
2055
+ V.input((_) => {
2056
2056
  const $ = _.target;
2057
2057
  l.set($.value), b($.value);
2058
2058
  }),
2059
- A.keydown(y)
2059
+ V.keydown(y)
2060
2060
  )
2061
2061
  ),
2062
2062
  K(
2063
2063
  f,
2064
2064
  () => d.div(
2065
2065
  r.class("bc-dropdown__loading"),
2066
- X({ icon: "ph:spinner-bold", color: "neutral" })
2066
+ Q({ icon: "ph:spinner-bold", color: "neutral" })
2067
2067
  ),
2068
2068
  () => _e(
2069
2069
  g,
@@ -2071,7 +2071,7 @@ const xe = {
2071
2071
  _,
2072
2072
  o,
2073
2073
  m,
2074
- T,
2074
+ I,
2075
2075
  p,
2076
2076
  a
2077
2077
  )
@@ -2105,58 +2105,58 @@ function Xt(e) {
2105
2105
  onAction: f,
2106
2106
  ariaLabel: g,
2107
2107
  ariaLabelledBy: k
2108
- } = e, m = me("menu"), w = G(-1), v = G([]);
2108
+ } = e, m = me("menu"), w = Z(-1), v = Z([]);
2109
2109
  let x = null;
2110
- return N(
2111
- Ge({
2112
- content: () => te((b) => {
2110
+ return F(
2111
+ Ze({
2112
+ content: () => ee((b) => {
2113
2113
  x = document.activeElement;
2114
- const p = (P, C, V) => {
2114
+ const p = (P, C, L) => {
2115
2115
  if (C.length === 0) return -1;
2116
- let E = P + V, R = 0;
2117
- for (; R < C.length; ) {
2118
- E >= C.length && (E = 0), E < 0 && (E = C.length - 1);
2119
- const j = C[E];
2116
+ let R = P + L, E = 0;
2117
+ for (; E < C.length; ) {
2118
+ R >= C.length && (R = 0), R < 0 && (R = C.length - 1);
2119
+ const j = C[R];
2120
2120
  if (j && j.getAttribute("aria-disabled") !== "true")
2121
- return E;
2122
- E += V, R++;
2121
+ return R;
2122
+ R += L, E++;
2123
2123
  }
2124
2124
  return P;
2125
2125
  }, y = (P) => {
2126
- const C = v.value, V = w.value;
2126
+ const C = v.value, L = w.value;
2127
2127
  switch (P.key) {
2128
2128
  case "ArrowDown":
2129
2129
  P.preventDefault(), P.stopPropagation();
2130
- const E = p(V, C, 1);
2131
- T(E, C);
2130
+ const R = p(L, C, 1);
2131
+ I(R, C);
2132
2132
  break;
2133
2133
  case "ArrowUp":
2134
2134
  P.preventDefault(), P.stopPropagation();
2135
- const R = p(V, C, -1);
2136
- T(R, C);
2135
+ const E = p(L, C, -1);
2136
+ I(E, C);
2137
2137
  break;
2138
2138
  case "Enter":
2139
2139
  case " ":
2140
- if (P.preventDefault(), P.stopPropagation(), V >= 0 && C[V]) {
2141
- const j = C[V];
2140
+ if (P.preventDefault(), P.stopPropagation(), L >= 0 && C[L]) {
2141
+ const j = C[L];
2142
2142
  if (j.getAttribute("aria-disabled") === "true")
2143
2143
  return;
2144
- const J = j.getAttribute("data-key");
2145
- J && f && f(J), j.click(), l?.();
2144
+ const te = j.getAttribute("data-key");
2145
+ te && f && f(te), j.click(), l?.();
2146
2146
  }
2147
2147
  break;
2148
2148
  case "Escape":
2149
2149
  l?.();
2150
2150
  break;
2151
2151
  case "Home":
2152
- P.preventDefault(), P.stopPropagation(), C.length > 0 && T(0, C);
2152
+ P.preventDefault(), P.stopPropagation(), C.length > 0 && I(0, C);
2153
2153
  break;
2154
2154
  case "End":
2155
- P.preventDefault(), P.stopPropagation(), C.length > 0 && T(C.length - 1, C);
2155
+ P.preventDefault(), P.stopPropagation(), C.length > 0 && I(C.length - 1, C);
2156
2156
  break;
2157
2157
  case "ArrowRight":
2158
- if (P.preventDefault(), P.stopPropagation(), V >= 0 && C[V]) {
2159
- const j = C[V];
2158
+ if (P.preventDefault(), P.stopPropagation(), L >= 0 && C[L]) {
2159
+ const j = C[L];
2160
2160
  j.classList.contains(
2161
2161
  "bc-menu-item--has-submenu"
2162
2162
  ) && j.dispatchEvent(new Event("mouseenter"));
@@ -2166,7 +2166,7 @@ function Xt(e) {
2166
2166
  P.preventDefault(), P.stopPropagation(), l?.();
2167
2167
  break;
2168
2168
  }
2169
- }, T = (P, C) => {
2169
+ }, I = (P, C) => {
2170
2170
  w.value >= 0 && C[w.value] && (C[w.value].classList.remove(
2171
2171
  "bc-menu-item--focused"
2172
2172
  ), C[w.value].removeAttribute("aria-selected")), P >= 0 && C[P] && (C[P].classList.add("bc-menu-item--focused"), C[P].setAttribute("aria-selected", "true"), w.set(P), typeof C[P].scrollIntoView == "function" && C[P].scrollIntoView({ block: "nearest" }));
@@ -2176,14 +2176,14 @@ function Xt(e) {
2176
2176
  );
2177
2177
  if (v.set(P), P.length > 0) {
2178
2178
  const C = P.findIndex(
2179
- (V) => V.getAttribute("aria-disabled") !== "true"
2179
+ (L) => L.getAttribute("aria-disabled") !== "true"
2180
2180
  );
2181
- C >= 0 && T(C, P);
2181
+ C >= 0 && I(C, P);
2182
2182
  }
2183
2183
  }, $ = new MutationObserver(_);
2184
2184
  return $.observe(b, { childList: !0, subtree: !0 }), setTimeout(() => {
2185
2185
  _(), b.focus();
2186
- }, 0), document.addEventListener("keydown", y, !0), N(
2186
+ }, 0), document.addEventListener("keydown", y, !0), F(
2187
2187
  re(() => {
2188
2188
  $.disconnect(), document.removeEventListener("keydown", y, !0), x && x.focus();
2189
2189
  }),
@@ -2192,21 +2192,21 @@ function Xt(e) {
2192
2192
  r.role("menu"),
2193
2193
  r.tabindex(-1),
2194
2194
  M.orientation("vertical"),
2195
- g ? M.label(g) : N(),
2196
- k ? M.labelledby(k) : N(),
2195
+ g ? M.label(g) : F(),
2196
+ k ? M.labelledby(k) : F(),
2197
2197
  M.activedescendant(
2198
2198
  w.map((P) => {
2199
2199
  const C = v.value;
2200
2200
  return P >= 0 && C[P] ? C[P].id || `${m}-item-${P}` : "";
2201
2201
  })
2202
2202
  ),
2203
- A.click((P) => {
2204
- const V = P.target.closest(
2203
+ V.click((P) => {
2204
+ const L = P.target.closest(
2205
2205
  '[role="menuitem"]'
2206
2206
  );
2207
- if (V && V.getAttribute("aria-disabled") !== "true") {
2208
- const E = V.getAttribute("data-key");
2209
- E && f && f(E);
2207
+ if (L && L.getAttribute("aria-disabled") !== "true") {
2208
+ const R = L.getAttribute("data-key");
2209
+ R && f && f(R);
2210
2210
  }
2211
2211
  }),
2212
2212
  // Live region for screen reader announcements
@@ -2217,8 +2217,8 @@ function Xt(e) {
2217
2217
  w.map((P) => {
2218
2218
  const C = v.value;
2219
2219
  if (P >= 0 && C[P]) {
2220
- const V = C[P].textContent || "";
2221
- return C[P].getAttribute("aria-disabled") === "true" ? `${V}, disabled` : `${V}, ${P + 1} of ${C.length}`;
2220
+ const L = C[P].textContent || "";
2221
+ return C[P].getAttribute("aria-disabled") === "true" ? `${L}, disabled` : `${L}, ${P + 1} of ${C.length}`;
2222
2222
  }
2223
2223
  return "";
2224
2224
  })
@@ -2251,7 +2251,7 @@ function Sr(e) {
2251
2251
  } = e, f = t ?? me("menu-item"), g = `menu-item-${f}`, k = u != null;
2252
2252
  return d.div(
2253
2253
  r.class(
2254
- I(o)(
2254
+ T(o)(
2255
2255
  (m) => `bc-menu-item ${m ? "bc-menu-item--disabled" : ""} ${k ? "bc-menu-item--has-submenu" : ""}`
2256
2256
  )
2257
2257
  ),
@@ -2262,9 +2262,9 @@ function Sr(e) {
2262
2262
  M.disabled(o),
2263
2263
  M.selected(!1),
2264
2264
  // Will be updated by focus management
2265
- k ? M.expanded(!1) : N(),
2266
- c ? M.label(c) : N(),
2267
- A.click((m) => {
2265
+ k ? M.expanded(!1) : F(),
2266
+ c ? M.label(c) : F(),
2267
+ V.click((m) => {
2268
2268
  if (h.get(o)) {
2269
2269
  m.preventDefault(), m.stopPropagation();
2270
2270
  return;
@@ -2278,8 +2278,8 @@ function Sr(e) {
2278
2278
  // End content
2279
2279
  s && d.span(r.class("bc-menu-item__end"), s),
2280
2280
  // Submenu (if present)
2281
- k && u ? Ge({
2282
- content: () => N(
2281
+ k && u ? Ze({
2282
+ content: () => F(
2283
2283
  r.class("bc-menu bc-submenu"),
2284
2284
  r.role("menu"),
2285
2285
  ...u()
@@ -2292,7 +2292,7 @@ function Sr(e) {
2292
2292
  mainAxisOffset: 0,
2293
2293
  crossAxisOffset: 0,
2294
2294
  role: "menu"
2295
- }) : N()
2295
+ }) : F()
2296
2296
  );
2297
2297
  }
2298
2298
  function en(e = {}) {
@@ -2353,7 +2353,7 @@ function ln(e) {
2353
2353
  () => _e(
2354
2354
  t,
2355
2355
  (i) => Zt({
2356
- value: I(
2356
+ value: T(
2357
2357
  i,
2358
2358
  n
2359
2359
  )((c, u) => ua(u, c, a)),
@@ -2376,7 +2376,7 @@ function on(e) {
2376
2376
  }, i = (l) => {
2377
2377
  const f = h.get(t);
2378
2378
  e.onChange?.(tn(f, l, a));
2379
- }, c = (l) => I(t)((f) => an(f, l, a)), u = Xt({
2379
+ }, c = (l) => T(t)((f) => an(f, l, a)), u = Xt({
2380
2380
  items: () => {
2381
2381
  const l = h.get(n), f = [];
2382
2382
  for (const g of l)
@@ -2390,7 +2390,7 @@ function on(e) {
2390
2390
  M.checked(k),
2391
2391
  r.class("bc-menu-item"),
2392
2392
  d.span(r.class("bc-menu-item__content"), g.label),
2393
- A.click(() => i(g.value))
2393
+ V.click(() => i(g.value))
2394
2394
  )
2395
2395
  );
2396
2396
  } else g.type === "group" ? f.push(
@@ -2407,10 +2407,10 @@ function on(e) {
2407
2407
  M.checked(m),
2408
2408
  r.class("bc-menu-item"),
2409
2409
  d.span(r.class("bc-menu-item__content"), k.label),
2410
- A.click(() => i(k.value))
2410
+ V.click(() => i(k.value))
2411
2411
  );
2412
2412
  }
2413
- return N();
2413
+ return F();
2414
2414
  })
2415
2415
  )
2416
2416
  ) : f.push(en());
@@ -2424,8 +2424,8 @@ function on(e) {
2424
2424
  });
2425
2425
  return oe({
2426
2426
  ...e,
2427
- before: e.before ?? We({ icon: "tabler:tags", color: "neutral" }),
2428
- input: N(
2427
+ before: e.before ?? ze({ icon: "tabler:tags", color: "neutral" }),
2428
+ input: F(
2429
2429
  r.class("bc-input-container__tags"),
2430
2430
  u,
2431
2431
  ln({
@@ -2446,7 +2446,7 @@ function on(e) {
2446
2446
  // menu
2447
2447
  // )
2448
2448
  ),
2449
- after: We({
2449
+ after: ze({
2450
2450
  icon: "line-md:plus",
2451
2451
  color: "neutral",
2452
2452
  size: "sm"
@@ -2456,7 +2456,7 @@ function on(e) {
2456
2456
  function Cr(e) {
2457
2457
  return jt(on, e);
2458
2458
  }
2459
- function Ir(e) {
2459
+ function Tr(e) {
2460
2460
  return Ht(on, e);
2461
2461
  }
2462
2462
  function cn(e) {
@@ -2467,13 +2467,13 @@ function cn(e) {
2467
2467
  placeholder: s,
2468
2468
  searchPlaceholder: o,
2469
2469
  filter: i
2470
- } = e, c = G(""), u = (m) => {
2470
+ } = e, c = Z(""), u = (m) => {
2471
2471
  const w = h.get(t);
2472
2472
  e.onChange?.(nn(w, m, a));
2473
2473
  }, l = (m) => {
2474
2474
  const w = h.get(t);
2475
2475
  e.onChange?.(tn(w, m, a));
2476
- }, f = (m) => I(t)((w) => an(w, m, a)), g = I(
2476
+ }, f = (m) => T(t)((w) => an(w, m, a)), g = T(
2477
2477
  n,
2478
2478
  c
2479
2479
  )((m, w) => sn(m, w, i)), k = Xt({
@@ -2497,7 +2497,7 @@ function cn(e) {
2497
2497
  M.checked(x),
2498
2498
  r.class("bc-menu-item"),
2499
2499
  d.span(r.class("bc-menu-item__content"), v.label),
2500
- A.click(() => l(v.value))
2500
+ V.click(() => l(v.value))
2501
2501
  )
2502
2502
  );
2503
2503
  } else v.type === "group" ? m.push(
@@ -2514,10 +2514,10 @@ function cn(e) {
2514
2514
  M.checked(b),
2515
2515
  r.class("bc-menu-item"),
2516
2516
  d.span(r.class("bc-menu-item__content"), x.label),
2517
- A.click(() => l(x.value))
2517
+ V.click(() => l(x.value))
2518
2518
  );
2519
2519
  }
2520
- return N();
2520
+ return F();
2521
2521
  })
2522
2522
  )
2523
2523
  ) : m.push(en());
@@ -2529,7 +2529,7 @@ function cn(e) {
2529
2529
  // Open the menu when the search input gains focus
2530
2530
  // We intentionally do not auto-hide on blur here because the Menu
2531
2531
  // manages its own close behavior (outside click, Escape, etc.)
2532
- showOn: (m, w) => te((v) => {
2532
+ showOn: (m, w) => ee((v) => {
2533
2533
  const x = v.querySelector(
2534
2534
  ".bc-dropdown__search-input"
2535
2535
  );
@@ -2539,14 +2539,14 @@ function cn(e) {
2539
2539
  x.removeEventListener("focus", b);
2540
2540
  });
2541
2541
  }
2542
- return N();
2542
+ return F();
2543
2543
  }),
2544
2544
  closable: !0
2545
2545
  });
2546
2546
  return oe({
2547
2547
  ...e,
2548
- before: e.before ?? We({ icon: "tabler:tags", color: "neutral" }),
2549
- input: N(
2548
+ before: e.before ?? ze({ icon: "tabler:tags", color: "neutral" }),
2549
+ input: F(
2550
2550
  r.class("bc-input-container__tags"),
2551
2551
  ln({
2552
2552
  values: t,
@@ -2563,17 +2563,17 @@ function cn(e) {
2563
2563
  r.type("text"),
2564
2564
  r.class("bc-dropdown__search-input"),
2565
2565
  r.placeholder(
2566
- I(
2566
+ T(
2567
2567
  o,
2568
2568
  s
2569
2569
  )((m, w) => m ?? w ?? "")
2570
2570
  ),
2571
2571
  r.value(c),
2572
- A.input((m) => {
2572
+ V.input((m) => {
2573
2573
  const w = m.target;
2574
2574
  c.set(w.value);
2575
2575
  }),
2576
- A.keydown((m) => {
2576
+ V.keydown((m) => {
2577
2577
  (m.key === "ArrowUp" || m.key === "ArrowDown" || m.key === "Enter" || m.key === " ") && m.stopPropagation();
2578
2578
  })
2579
2579
  ),
@@ -2582,7 +2582,7 @@ function cn(e) {
2582
2582
  )
2583
2583
  });
2584
2584
  }
2585
- function Tr(e) {
2585
+ function Ir(e) {
2586
2586
  return jt(cn, e);
2587
2587
  }
2588
2588
  function _r(e) {
@@ -2596,8 +2596,8 @@ const $r = (e) => {
2596
2596
  pe(e),
2597
2597
  r.valueAsDate(t),
2598
2598
  r.class("bc-input"),
2599
- n != null ? A.blur(ee(n)) : H,
2600
- a != null ? A.change(gn(a)) : H
2599
+ n != null ? V.blur(X(n)) : W,
2600
+ a != null ? V.change(gn(a)) : W
2601
2601
  )
2602
2602
  });
2603
2603
  }, da = (e) => {
@@ -2611,8 +2611,8 @@ const $r = (e) => {
2611
2611
  pe(e),
2612
2612
  r.value(h.map(t, da)),
2613
2613
  r.class("bc-input"),
2614
- n != null ? A.blur(ee(n)) : H,
2615
- a != null ? A.change(ee((s) => a(new Date(s)))) : H
2614
+ n != null ? V.blur(X(n)) : W,
2615
+ a != null ? V.change(X((s) => a(new Date(s)))) : W
2616
2616
  )
2617
2617
  });
2618
2618
  }, Dr = (e) => {
@@ -2651,7 +2651,7 @@ const $r = (e) => {
2651
2651
  pending: () => ne(
2652
2652
  le,
2653
2653
  (t) => d.span(
2654
- X({
2654
+ Q({
2655
2655
  icon: "line-md:loading-twotone-loop",
2656
2656
  title: t.$.loadingShort
2657
2657
  })
@@ -2665,7 +2665,7 @@ const $r = (e) => {
2665
2665
  onChange: a != null ? (l) => a(xt(l)) : void 0,
2666
2666
  onInput: s != null ? (l) => s(xt(l)) : void 0,
2667
2667
  onBlur: n,
2668
- after: o != null ? N(u, o) : u
2668
+ after: o != null ? F(u, o) : u
2669
2669
  });
2670
2670
  }, $t = (e) => {
2671
2671
  try {
@@ -2678,17 +2678,17 @@ const $r = (e) => {
2678
2678
  const w = a != null ? h.get(a) : void 0, v = s != null ? h.get(s) : void 0;
2679
2679
  return w != null && m < w ? w : v != null && m > v ? v : m;
2680
2680
  }, l = n != null ? ne(le, (m) => {
2681
- const w = I(
2681
+ const w = T(
2682
2682
  t,
2683
2683
  a
2684
- )((b, p) => p == null ? !0 : (b ?? 0n) > p), v = I(
2684
+ )((b, p) => p == null ? !0 : (b ?? 0n) > p), v = T(
2685
2685
  t,
2686
2686
  s
2687
2687
  )((b, p) => p == null ? !0 : (b ?? 0n) < p), x = (b, p) => {
2688
- const y = h.get(t) ?? 0n, T = h.get(n), _ = p?.shiftKey ? 10n : 1n, $ = y + T * _ * b, P = a != null ? h.get(a) : void 0, C = s != null ? h.get(s) : void 0;
2688
+ const y = h.get(t) ?? 0n, I = h.get(n), _ = p?.shiftKey ? 10n : 1n, $ = y + I * _ * b, P = a != null ? h.get(a) : void 0, C = s != null ? h.get(s) : void 0;
2689
2689
  if (b < 0n && P != null && $ < P || b > 0n && C != null && $ > C) return;
2690
- const V = u($);
2691
- V !== y && o && o(V);
2690
+ const L = u($);
2691
+ L !== y && o && o(L);
2692
2692
  };
2693
2693
  return dt(
2694
2694
  r.class("bc-number-input-steppers"),
@@ -2698,14 +2698,14 @@ const $r = (e) => {
2698
2698
  "bc-button bc-number-input-steppers-button bc-number-input-steppers-button--increment"
2699
2699
  ),
2700
2700
  r.disabled(
2701
- I(
2701
+ T(
2702
2702
  v,
2703
2703
  e.disabled ?? !1
2704
2704
  )((b, p) => !b || p)
2705
2705
  ),
2706
- A.click((b) => x(1n, b)),
2706
+ V.click((b) => x(1n, b)),
2707
2707
  M.label(m.$.incrementValue),
2708
- X({ icon: "line-md:plus", size: "xs" })
2708
+ Q({ icon: "line-md:plus", size: "xs" })
2709
2709
  ),
2710
2710
  d.button(
2711
2711
  r.type("button"),
@@ -2713,17 +2713,17 @@ const $r = (e) => {
2713
2713
  "bc-button bc-number-input-steppers-button bc-number-input-steppers-button--decrement"
2714
2714
  ),
2715
2715
  r.disabled(
2716
- I(
2716
+ T(
2717
2717
  w,
2718
2718
  e.disabled ?? !1
2719
2719
  )((b, p) => !b || p)
2720
2720
  ),
2721
- A.click((b) => x(-1n, b)),
2721
+ V.click((b) => x(-1n, b)),
2722
2722
  M.label(m.$.decrementValue),
2723
- X({ icon: "line-md:minus", size: "xs" })
2723
+ Q({ icon: "line-md:minus", size: "xs" })
2724
2724
  )
2725
2725
  );
2726
- }) : null, f = c != null && l != null ? N(l, c) : c ?? l, g = o ? (m) => {
2726
+ }) : null, f = c != null && l != null ? F(l, c) : c ?? l, g = o ? (m) => {
2727
2727
  const w = $t(m);
2728
2728
  w != null && o(u(w));
2729
2729
  } : void 0, k = i ? (m) => {
@@ -2752,23 +2752,23 @@ const $r = (e) => {
2752
2752
  const v = a != null ? h.get(a) : void 0, x = s != null ? h.get(s) : void 0;
2753
2753
  return v != null && w < v ? v : x != null && w > x ? x : w;
2754
2754
  }, l = n != null ? ne(le, (w) => {
2755
- const v = I(
2755
+ const v = T(
2756
2756
  t,
2757
2757
  a
2758
2758
  )((p, y) => {
2759
- const T = p ?? 0n;
2760
- return y == null ? !0 : T > y;
2761
- }), x = I(
2759
+ const I = p ?? 0n;
2760
+ return y == null ? !0 : I > y;
2761
+ }), x = T(
2762
2762
  t,
2763
2763
  s
2764
2764
  )((p, y) => {
2765
- const T = p ?? 0n;
2766
- return y == null ? !0 : T < y;
2765
+ const I = p ?? 0n;
2766
+ return y == null ? !0 : I < y;
2767
2767
  }), b = (p, y) => {
2768
- const T = h.get(t) ?? 0n, _ = h.get(n), $ = y?.shiftKey ? 10n : 1n, P = T + _ * $ * p, C = a != null ? h.get(a) : void 0, V = s != null ? h.get(s) : void 0;
2769
- if (p < 0n && C != null && P < C || p > 0n && V != null && P > V) return;
2770
- const E = u(P);
2771
- E !== T && o && o(E);
2768
+ const I = h.get(t) ?? 0n, _ = h.get(n), $ = y?.shiftKey ? 10n : 1n, P = I + _ * $ * p, C = a != null ? h.get(a) : void 0, L = s != null ? h.get(s) : void 0;
2769
+ if (p < 0n && C != null && P < C || p > 0n && L != null && P > L) return;
2770
+ const R = u(P);
2771
+ R !== I && o && o(R);
2772
2772
  };
2773
2773
  return dt(
2774
2774
  r.class("bc-number-input-steppers"),
@@ -2778,14 +2778,14 @@ const $r = (e) => {
2778
2778
  "bc-button bc-number-input-steppers-button bc-number-input-steppers-button--increment"
2779
2779
  ),
2780
2780
  r.disabled(
2781
- I(
2781
+ T(
2782
2782
  x,
2783
2783
  e.disabled ?? !1
2784
2784
  )((p, y) => !p || y)
2785
2785
  ),
2786
- A.click((p) => b(1n, p)),
2786
+ V.click((p) => b(1n, p)),
2787
2787
  M.label(w.$.incrementValue),
2788
- X({ icon: "line-md:plus", size: "xs" })
2788
+ Q({ icon: "line-md:plus", size: "xs" })
2789
2789
  ),
2790
2790
  d.button(
2791
2791
  r.type("button"),
@@ -2793,17 +2793,17 @@ const $r = (e) => {
2793
2793
  "bc-button bc-number-input-steppers-button bc-number-input-steppers-button--decrement"
2794
2794
  ),
2795
2795
  r.disabled(
2796
- I(
2796
+ T(
2797
2797
  v,
2798
2798
  e.disabled ?? !1
2799
2799
  )((p, y) => !p || y)
2800
2800
  ),
2801
- A.click((p) => b(-1n, p)),
2801
+ V.click((p) => b(-1n, p)),
2802
2802
  M.label(w.$.decrementValue),
2803
- X({ icon: "line-md:minus", size: "xs" })
2803
+ Q({ icon: "line-md:minus", size: "xs" })
2804
2804
  )
2805
2805
  );
2806
- }) : null, f = Le(t, e.disabled, o), g = c != null && l != null ? N(l, f, c) : c != null ? N(f, c) : l != null ? N(l, f) : f, k = o ? (w) => {
2806
+ }) : null, f = Le(t, e.disabled, o), g = c != null && l != null ? F(l, f, c) : c != null ? F(f, c) : l != null ? F(l, f) : f, k = o ? (w) => {
2807
2807
  const v = Pt(w);
2808
2808
  o(v === null ? null : u(v));
2809
2809
  } : void 0, m = i ? (w) => {
@@ -2821,7 +2821,7 @@ const $r = (e) => {
2821
2821
  class: "bc-number-input"
2822
2822
  });
2823
2823
  }, Mr = (e) => {
2824
- const { value: t, onChange: n, onBlur: a, before: s } = e, o = G(""), i = (u) => {
2824
+ const { value: t, onChange: n, onBlur: a, before: s } = e, o = Z(""), i = (u) => {
2825
2825
  n?.(h.get(t).filter((l) => l !== u));
2826
2826
  }, c = () => {
2827
2827
  const u = o.value.trim(), l = h.get(t);
@@ -2829,12 +2829,12 @@ const $r = (e) => {
2829
2829
  };
2830
2830
  return oe({
2831
2831
  ...e,
2832
- before: s ?? We({
2832
+ before: s ?? ze({
2833
2833
  icon: "tabler:tag",
2834
2834
  size: e.size,
2835
2835
  color: "neutral"
2836
2836
  }),
2837
- input: N(
2837
+ input: F(
2838
2838
  r.class("bc-input-container__tags"),
2839
2839
  _e(
2840
2840
  t,
@@ -2848,14 +2848,14 @@ const $r = (e) => {
2848
2848
  pe(e),
2849
2849
  r.value(o),
2850
2850
  r.class("bc-input bc-input-container__tags-input"),
2851
- A.input(ee(o.set)),
2852
- n != null ? A.change(c) : H,
2853
- a != null ? A.blur(a) : H
2851
+ V.input(X(o.set)),
2852
+ n != null ? V.change(c) : W,
2853
+ a != null ? V.blur(a) : W
2854
2854
  )
2855
2855
  )
2856
2856
  });
2857
2857
  };
2858
- function Ze(e) {
2858
+ function Je(e) {
2859
2859
  return (t) => {
2860
2860
  const { value: n, onBlur: a, onChange: s } = t;
2861
2861
  return he(
@@ -2865,14 +2865,14 @@ function Ze(e) {
2865
2865
  pe(t),
2866
2866
  r.value(h.map(n, e.valueToString)),
2867
2867
  r.class("bc-input"),
2868
- a != null ? A.blur(ee(a)) : H,
2869
- s != null ? A.change(ee((i) => s(e.parseValue(o, i)))) : H
2868
+ a != null ? V.blur(X(a)) : W,
2869
+ s != null ? V.change(X((i) => s(e.parseValue(o, i)))) : W
2870
2870
  )
2871
2871
  })
2872
2872
  );
2873
2873
  };
2874
2874
  }
2875
- function Je(e) {
2875
+ function qe(e) {
2876
2876
  return (t) => {
2877
2877
  const { value: n, onBlur: a, onChange: s, after: o, disabled: i } = t, c = Le(n, i, s);
2878
2878
  return he(
@@ -2884,39 +2884,39 @@ function Je(e) {
2884
2884
  h.map(n, (l) => l == null ? "" : e.valueToString(l))
2885
2885
  ),
2886
2886
  r.class("bc-input"),
2887
- a != null ? A.blur(ee(a)) : H,
2888
- s != null ? A.change(
2889
- ee(
2887
+ a != null ? V.blur(X(a)) : W,
2888
+ s != null ? V.change(
2889
+ X(
2890
2890
  (l) => s(l === "" ? null : e.parseValue(u, l))
2891
2891
  )
2892
- ) : H
2892
+ ) : W
2893
2893
  ),
2894
- after: o != null ? N(c, o) : c
2894
+ after: o != null ? F(c, o) : c
2895
2895
  })
2896
2896
  );
2897
2897
  };
2898
2898
  }
2899
- const Er = Ze({
2899
+ const Er = Je({
2900
2900
  inputType: "date",
2901
2901
  valueToString: (e) => e.toString(),
2902
2902
  parseValue: (e, t) => e.PlainDate.from(t)
2903
- }), Or = Je({
2903
+ }), Or = qe({
2904
2904
  inputType: "date",
2905
2905
  valueToString: (e) => e.toString(),
2906
2906
  parseValue: (e, t) => e.PlainDate.from(t)
2907
- }), Nr = Ze({
2907
+ }), Nr = Je({
2908
2908
  inputType: "time",
2909
2909
  valueToString: (e) => e.toString(),
2910
2910
  parseValue: (e, t) => e.PlainTime.from(t)
2911
- }), Fr = Je({
2911
+ }), Fr = qe({
2912
2912
  inputType: "time",
2913
2913
  valueToString: (e) => e.toString(),
2914
2914
  parseValue: (e, t) => e.PlainTime.from(t)
2915
- }), Rr = Ze({
2915
+ }), Rr = Je({
2916
2916
  inputType: "datetime-local",
2917
2917
  valueToString: (e) => e.toJSON(),
2918
2918
  parseValue: (e, t) => e.PlainDateTime.from(t)
2919
- }), Ur = Je({
2919
+ }), Ur = qe({
2920
2920
  inputType: "datetime-local",
2921
2921
  valueToString: (e) => e.toJSON(),
2922
2922
  parseValue: (e, t) => e.PlainDateTime.from(t)
@@ -2934,12 +2934,12 @@ const Er = Ze({
2934
2934
  h.map(t, (o) => pa(Number(o.epochMilliseconds)))
2935
2935
  ),
2936
2936
  r.class("bc-input"),
2937
- n != null ? A.blur(ee(n)) : H,
2938
- a != null ? A.change(
2939
- ee(
2937
+ n != null ? V.blur(X(n)) : W,
2938
+ a != null ? V.change(
2939
+ X(
2940
2940
  (o) => a(s.Instant.from(new Date(o).toISOString()))
2941
2941
  )
2942
- ) : H
2942
+ ) : W
2943
2943
  )
2944
2944
  })
2945
2945
  );
@@ -2960,14 +2960,14 @@ const Er = Ze({
2960
2960
  )
2961
2961
  ),
2962
2962
  r.class("bc-input"),
2963
- n != null ? A.blur(ee(n)) : H,
2964
- a != null ? A.change(
2965
- ee(
2963
+ n != null ? V.blur(X(n)) : W,
2964
+ a != null ? V.change(
2965
+ X(
2966
2966
  (u) => a(u === "" ? null : c.Instant.from(new Date(u).toISOString()))
2967
2967
  )
2968
- ) : H
2968
+ ) : W
2969
2969
  ),
2970
- after: s != null ? N(i, s) : i
2970
+ after: s != null ? F(i, s) : i
2971
2971
  })
2972
2972
  );
2973
2973
  }, Wr = (e) => {
@@ -2979,13 +2979,13 @@ const Er = Ze({
2979
2979
  pe(e),
2980
2980
  r.value(h.map(t, (o) => o.toJSON())),
2981
2981
  r.class("bc-input"),
2982
- n != null ? A.blur(ee(n)) : H,
2983
- a != null ? A.change(
2984
- ee((o) => {
2982
+ n != null ? V.blur(X(n)) : W,
2983
+ a != null ? V.change(
2984
+ X((o) => {
2985
2985
  const i = s.PlainDateTime.from(o), c = h.get(e.placeholder) ?? Intl.DateTimeFormat().resolvedOptions().timeZone;
2986
2986
  return a(s.ZonedDateTime.from({ ...i, timeZone: c }));
2987
2987
  })
2988
- ) : H
2988
+ ) : W
2989
2989
  )
2990
2990
  })
2991
2991
  );
@@ -2998,23 +2998,23 @@ const Er = Ze({
2998
2998
  pe(e),
2999
2999
  r.value(h.map(t, (u) => u?.toJSON())),
3000
3000
  r.class("bc-input"),
3001
- n != null ? A.blur(ee(n)) : H,
3002
- a != null ? A.change(
3003
- ee((u) => {
3001
+ n != null ? V.blur(X(n)) : W,
3002
+ a != null ? V.change(
3003
+ X((u) => {
3004
3004
  if (u === "") return a(null);
3005
3005
  const l = c.PlainDateTime.from(u), f = h.get(e.placeholder) ?? Intl.DateTimeFormat().resolvedOptions().timeZone;
3006
3006
  return a(c.ZonedDateTime.from({ ...l, timeZone: f }));
3007
3007
  })
3008
- ) : H
3008
+ ) : W
3009
3009
  ),
3010
- after: s != null ? N(i, s) : i
3010
+ after: s != null ? F(i, s) : i
3011
3011
  })
3012
3012
  );
3013
- }, Yr = Ze({
3013
+ }, Yr = Je({
3014
3014
  inputType: "month",
3015
3015
  valueToString: (e) => e.toString(),
3016
3016
  parseValue: (e, t) => e.PlainYearMonth.from(t)
3017
- }), Gr = Je({
3017
+ }), Gr = qe({
3018
3018
  inputType: "month",
3019
3019
  valueToString: (e) => e.toString(),
3020
3020
  parseValue: (e, t) => e.PlainYearMonth.from(t)
@@ -3041,7 +3041,7 @@ const Er = Ze({
3041
3041
  onInput: void 0,
3042
3042
  mask: "99-99",
3043
3043
  placeholder: "MM-DD",
3044
- after: a != null ? N(o, a) : o
3044
+ after: a != null ? F(o, a) : o
3045
3045
  })
3046
3046
  );
3047
3047
  }, qr = (e) => {
@@ -3058,7 +3058,7 @@ const Er = Ze({
3058
3058
  );
3059
3059
  };
3060
3060
  function Kr(e, t, n) {
3061
- return Ye(
3061
+ return Ge(
3062
3062
  e.signal,
3063
3063
  () => {
3064
3064
  const a = e.transform(
@@ -3195,7 +3195,7 @@ function ts({
3195
3195
  layout: "horizontal",
3196
3196
  content: Yt(
3197
3197
  r.class("bc-group--align-center bc-group--gap-2"),
3198
- X({
3198
+ Q({
3199
3199
  icon: "ic:twotone-language",
3200
3200
  size: "lg",
3201
3201
  color: "neutral",
@@ -3246,7 +3246,7 @@ function va({
3246
3246
  const f = h.map(i, (g) => g != null);
3247
3247
  return d.section(
3248
3248
  r.class(
3249
- I(
3249
+ T(
3250
3250
  n,
3251
3251
  f,
3252
3252
  t,
@@ -3265,7 +3265,7 @@ function va({
3265
3265
  )
3266
3266
  ),
3267
3267
  r.style(
3268
- I(
3268
+ T(
3269
3269
  a,
3270
3270
  s
3271
3271
  )(
@@ -3278,7 +3278,7 @@ function va({
3278
3278
  e,
3279
3279
  () => d.div(
3280
3280
  r.class("bc-notification__visual bc-notification__loader"),
3281
- X({
3281
+ Q({
3282
3282
  icon: "line-md:loading-twotone-loop",
3283
3283
  size: "lg",
3284
3284
  color: a,
@@ -3289,7 +3289,7 @@ function va({
3289
3289
  f,
3290
3290
  () => d.div(
3291
3291
  r.class("bc-notification__visual bc-notification__icon"),
3292
- X({
3292
+ Q({
3293
3293
  icon: i,
3294
3294
  size: "lg",
3295
3295
  color: a
@@ -3310,7 +3310,7 @@ function va({
3310
3310
  t,
3311
3311
  () => d.div(
3312
3312
  r.class("bc-notification__meta"),
3313
- Ee({
3313
+ Oe({
3314
3314
  size: "sm",
3315
3315
  color: a,
3316
3316
  onClick: c
@@ -3346,7 +3346,7 @@ class ya {
3346
3346
  const wa = new ya(), un = {
3347
3347
  mark: Et("NotificationProvider"),
3348
3348
  create: ({ position: e = "bottom-end" } = {}) => {
3349
- const t = G(0), n = [];
3349
+ const t = Z(0), n = [];
3350
3350
  function a(u) {
3351
3351
  return n.push(u), () => {
3352
3352
  const l = n.lastIndexOf(u);
@@ -3365,7 +3365,7 @@ const wa = new ya(), un = {
3365
3365
  withBorder: h.toSignal(g.withBorder ?? !1),
3366
3366
  color: h.toSignal(g.color ?? "primary"),
3367
3367
  radius: h.toSignal(g.radius ?? "md"),
3368
- title: g.title ?? H,
3368
+ title: g.title ?? W,
3369
3369
  icon: h.toSignal(g.icon),
3370
3370
  children: k,
3371
3371
  listenRequestClose: (v) => (s.push(v), l?.(), () => {
@@ -3398,7 +3398,7 @@ function xa() {
3398
3398
  (n) => re(
3399
3399
  e((a) => {
3400
3400
  const s = [], o = d.div(
3401
- In(
3401
+ Tn(
3402
3402
  {
3403
3403
  animation: a.animation,
3404
3404
  initialStatus: "start-opening"
@@ -3436,14 +3436,14 @@ function ns({
3436
3436
  notificationPosition: o = "bottom-end"
3437
3437
  }, ...i) {
3438
3438
  return vn(({ set: c, use: u }) => {
3439
- c(Be, {}), c(it, {}), c(le, {}), c(zt, {
3439
+ c(Me, {}), c(it, {}), c(le, {}), c(zt, {
3440
3440
  defaultAppearance: t ? n : "light",
3441
3441
  appearancePreferenceKey: a
3442
- }), s && c(un, { position: o }), kn.attach(u(Be));
3443
- const l = N(
3444
- t ? _n() : H,
3442
+ }), s && c(un, { position: o }), kn.attach(u(Me));
3443
+ const l = F(
3444
+ t ? _n() : W,
3445
3445
  ga(),
3446
- s ? xa() : H,
3446
+ s ? xa() : W,
3447
3447
  ...i
3448
3448
  );
3449
3449
  return e ? yn(
@@ -3487,7 +3487,7 @@ function as({
3487
3487
  return URL.createObjectURL(p);
3488
3488
  }
3489
3489
  }
3490
- }, null), w = I(
3490
+ }, null), w = T(
3491
3491
  m,
3492
3492
  t,
3493
3493
  n,
@@ -3500,11 +3500,11 @@ function as({
3500
3500
  l,
3501
3501
  f,
3502
3502
  g
3503
- )((v, x, b, p, y, T, _, $, P, C, V, E) => {
3503
+ )((v, x, b, p, y, I, _, $, P, C, L, R) => {
3504
3504
  if (v == null) return null;
3505
- const R = [];
3506
- x === !1 && R.push("toolbar=0"), b != null && b > 0 && R.push(`page=${b}`), p != null && p > 0 && R.push(`zoom=${p}`), y != null && R.push(`view=${y}`), T != null && R.push(`pagemode=${T}`), _ === !1 && R.push("scrollbar=0"), $ === !1 && R.push("navpanes=0"), P != null && R.push(`search=${encodeURIComponent(P)}`), C != null && R.push(`nameddest=${encodeURIComponent(C)}`), V != null && R.push(`viewrect=${encodeURIComponent(V)}`), E != null && R.push(`highlight=${encodeURIComponent(E)}`);
3507
- const j = R.join("&");
3505
+ const E = [];
3506
+ x === !1 && E.push("toolbar=0"), b != null && b > 0 && E.push(`page=${b}`), p != null && p > 0 && E.push(`zoom=${p}`), y != null && E.push(`view=${y}`), I != null && E.push(`pagemode=${I}`), _ === !1 && E.push("scrollbar=0"), $ === !1 && E.push("navpanes=0"), P != null && E.push(`search=${encodeURIComponent(P)}`), C != null && E.push(`nameddest=${encodeURIComponent(C)}`), L != null && E.push(`viewrect=${encodeURIComponent(L)}`), R != null && E.push(`highlight=${encodeURIComponent(R)}`);
3507
+ const j = E.join("&");
3508
3508
  return j ? `${v}#${j}` : v;
3509
3509
  });
3510
3510
  return m.on((v, x) => {
@@ -3523,14 +3523,14 @@ function as({
3523
3523
  r.loading("lazy"),
3524
3524
  // Force iframe reload when URL changes (including fragment changes)
3525
3525
  // by manually updating src instead of using attr.src
3526
- te((v) => {
3526
+ ee((v) => {
3527
3527
  const x = v;
3528
3528
  let b = !0;
3529
3529
  return w.on((p) => {
3530
3530
  p != null && (b ? (x.src = p, b = !1) : (x.src = "about:blank", setTimeout(() => {
3531
3531
  x.src = p;
3532
3532
  }, 50)));
3533
- }), H;
3533
+ }), W;
3534
3534
  })
3535
3535
  )
3536
3536
  );
@@ -3567,7 +3567,7 @@ function rs({
3567
3567
  );
3568
3568
  if (typeof b == "string")
3569
3569
  return b;
3570
- }, null), x = I(
3570
+ }, null), x = T(
3571
3571
  v,
3572
3572
  k,
3573
3573
  t,
@@ -3581,14 +3581,14 @@ function rs({
3581
3581
  l,
3582
3582
  f,
3583
3583
  g
3584
- )((b, p, y, T, _, $, P, C, V, E, R, j, J) => {
3584
+ )((b, p, y, I, _, $, P, C, L, R, E, j, te) => {
3585
3585
  if (b == null) return null;
3586
- const Y = p ?? "https://mozilla.github.io/pdf.js/web/viewer.html", F = new URLSearchParams();
3587
- F.set("file", encodeURIComponent(b));
3588
- const Q = [];
3589
- y != null && y > 0 && Q.push(`page=${y}`), T != null && (typeof T == "string" ? Q.push(`zoom=${T}`) : Q.push(`zoom=${T}`)), _ != null && Q.push(`pagemode=${_}`), $ != null && Q.push(`nameddest=${encodeURIComponent($)}`), P != null && Q.push(`search=${encodeURIComponent(P)}`), C != null && Q.push(`textLayer=${C}`), V != null && Q.push(`sidebar=${V}`), E != null && Q.push(`scrollMode=${E}`), R != null && Q.push(`spreadMode=${R}`), j != null && Q.push(`enableScripting=${j ? "1" : "0"}`), J != null && Q.push(`enablePrinting=${J ? "1" : "0"}`);
3590
- const ie = Q.length > 0 ? `#${Q.join("&")}` : "";
3591
- return `${Y}?${F.toString()}${ie}`;
3586
+ const H = p ?? "https://mozilla.github.io/pdf.js/web/viewer.html", O = new URLSearchParams();
3587
+ O.set("file", encodeURIComponent(b));
3588
+ const G = [];
3589
+ y != null && y > 0 && G.push(`page=${y}`), I != null && (typeof I == "string" ? G.push(`zoom=${I}`) : G.push(`zoom=${I}`)), _ != null && G.push(`pagemode=${_}`), $ != null && G.push(`nameddest=${encodeURIComponent($)}`), P != null && G.push(`search=${encodeURIComponent(P)}`), C != null && G.push(`textLayer=${C}`), L != null && G.push(`sidebar=${L}`), R != null && G.push(`scrollMode=${R}`), E != null && G.push(`spreadMode=${E}`), j != null && G.push(`enableScripting=${j ? "1" : "0"}`), te != null && G.push(`enablePrinting=${te ? "1" : "0"}`);
3590
+ const ce = G.length > 0 ? `#${G.join("&")}` : "";
3591
+ return `${H}?${O.toString()}${ce}`;
3592
3592
  });
3593
3593
  return v.on((b, p) => {
3594
3594
  p != null && p.startsWith("blob:") && URL.revokeObjectURL(p);
@@ -3615,49 +3615,49 @@ function be(e, t) {
3615
3615
  r.content(h.map(t, (n) => String(n)))
3616
3616
  );
3617
3617
  }
3618
- function z(e, t) {
3618
+ function Y(e, t) {
3619
3619
  return t == null ? null : d.meta(
3620
3620
  r.property(e),
3621
3621
  r.content(h.map(t, (n) => String(n)))
3622
3622
  );
3623
3623
  }
3624
- function He(e, t) {
3625
- return t == null ? null : _e(t, (n) => z(e, n));
3624
+ function We(e, t) {
3625
+ return t == null ? null : _e(t, (n) => Y(e, n));
3626
3626
  }
3627
3627
  function ka(e, t) {
3628
3628
  return t == null ? null : K(
3629
3629
  h.map(t, (n) => Array.isArray(n)),
3630
- () => He(e, t),
3631
- () => z(e, t)
3630
+ () => We(e, t),
3631
+ () => Y(e, t)
3632
3632
  );
3633
3633
  }
3634
3634
  const ls = (e) => {
3635
3635
  const t = [];
3636
- if (t.push(z("og:title", e.title)), t.push(z("og:type", e.type)), t.push(z("og:url", e.url)), t.push(z("og:image", e.image)), t.push(z("og:description", e.description)), t.push(z("og:site_name", e.siteName)), t.push(z("og:locale", e.locale)), e.localeAlternate != null) {
3637
- const n = He("og:locale:alternate", e.localeAlternate);
3636
+ if (t.push(Y("og:title", e.title)), t.push(Y("og:type", e.type)), t.push(Y("og:url", e.url)), t.push(Y("og:image", e.image)), t.push(Y("og:description", e.description)), t.push(Y("og:site_name", e.siteName)), t.push(Y("og:locale", e.locale)), e.localeAlternate != null) {
3637
+ const n = We("og:locale:alternate", e.localeAlternate);
3638
3638
  n != null && t.push(n);
3639
3639
  }
3640
- if (t.push(z("og:image:alt", e.imageAlt)), t.push(z("og:image:width", e.imageWidth)), t.push(z("og:image:height", e.imageHeight)), t.push(z("og:image:type", e.imageType)), e.images != null) {
3641
- const n = He("og:image", e.images);
3640
+ if (t.push(Y("og:image:alt", e.imageAlt)), t.push(Y("og:image:width", e.imageWidth)), t.push(Y("og:image:height", e.imageHeight)), t.push(Y("og:image:type", e.imageType)), e.images != null) {
3641
+ const n = We("og:image", e.images);
3642
3642
  n != null && t.push(n);
3643
3643
  }
3644
- if (t.push(z("og:video", e.video)), t.push(z("og:video:type", e.videoType)), t.push(z("og:video:width", e.videoWidth)), t.push(z("og:video:height", e.videoHeight)), t.push(z("og:video:secure_url", e.videoSecureUrl)), t.push(z("og:audio", e.audio)), t.push(z("og:audio:type", e.audioType)), t.push(z("og:audio:secure_url", e.audioSecureUrl)), t.push(z("article:published_time", e.publishedTime)), t.push(z("article:modified_time", e.modifiedTime)), t.push(z("article:expiration_time", e.expirationTime)), t.push(ka("article:author", e.author)), t.push(z("article:section", e.section)), e.tags != null) {
3645
- const n = He("article:tag", e.tags);
3644
+ if (t.push(Y("og:video", e.video)), t.push(Y("og:video:type", e.videoType)), t.push(Y("og:video:width", e.videoWidth)), t.push(Y("og:video:height", e.videoHeight)), t.push(Y("og:video:secure_url", e.videoSecureUrl)), t.push(Y("og:audio", e.audio)), t.push(Y("og:audio:type", e.audioType)), t.push(Y("og:audio:secure_url", e.audioSecureUrl)), t.push(Y("article:published_time", e.publishedTime)), t.push(Y("article:modified_time", e.modifiedTime)), t.push(Y("article:expiration_time", e.expirationTime)), t.push(ka("article:author", e.author)), t.push(Y("article:section", e.section)), e.tags != null) {
3645
+ const n = We("article:tag", e.tags);
3646
3646
  n != null && t.push(n);
3647
3647
  }
3648
- return t.push(z("profile:first_name", e.firstName)), t.push(z("profile:last_name", e.lastName)), t.push(z("profile:username", e.username)), t.push(z("profile:gender", e.gender)), t.push(be("twitter:card", e.twitterCard)), t.push(be("twitter:site", e.twitterSite)), t.push(be("twitter:creator", e.twitterCreator)), t.push(
3649
- be("twitter:title", Te(e.twitterTitle, e.title))
3648
+ return t.push(Y("profile:first_name", e.firstName)), t.push(Y("profile:last_name", e.lastName)), t.push(Y("profile:username", e.username)), t.push(Y("profile:gender", e.gender)), t.push(be("twitter:card", e.twitterCard)), t.push(be("twitter:site", e.twitterSite)), t.push(be("twitter:creator", e.twitterCreator)), t.push(
3649
+ be("twitter:title", Ie(e.twitterTitle, e.title))
3650
3650
  ), t.push(
3651
3651
  be(
3652
3652
  "twitter:description",
3653
- Te(e.twitterDescription, e.description)
3653
+ Ie(e.twitterDescription, e.description)
3654
3654
  )
3655
3655
  ), t.push(
3656
- be("twitter:image", Te(e.twitterImage, e.image))
3656
+ be("twitter:image", Ie(e.twitterImage, e.image))
3657
3657
  ), t.push(
3658
3658
  be(
3659
3659
  "twitter:image:alt",
3660
- Te(e.twitterImageAlt, e.imageAlt)
3660
+ Ie(e.twitterImageAlt, e.imageAlt)
3661
3661
  )
3662
3662
  ), e.canonical != null && h.get(e.canonical) != null && t.push(d.link(r.rel("canonical"), r.href(e.canonical))), t.push(be("robots", e.robots)), t.push(be("keywords", e.keywords)), t.push(be("author", e.metaAuthor)), lt("head", t.filter((n) => n != null).flat());
3663
3663
  }, pt = ({
@@ -3714,13 +3714,13 @@ function Sa({
3714
3714
  s,
3715
3715
  () => d.span(
3716
3716
  r.class(
3717
- I(
3717
+ T(
3718
3718
  t,
3719
3719
  s
3720
3720
  )((k, m) => Dt(k, m))
3721
3721
  ),
3722
3722
  r.style(
3723
- I(a)(
3723
+ T(a)(
3724
3724
  (k) => Lt(k ?? "base")
3725
3725
  )
3726
3726
  ),
@@ -3737,13 +3737,13 @@ function Sa({
3737
3737
  })
3738
3738
  },
3739
3739
  r.class(
3740
- I(
3740
+ T(
3741
3741
  t,
3742
3742
  s
3743
3743
  )((k, m) => Dt(k, m))
3744
3744
  ),
3745
3745
  r.style(
3746
- I(n)((k) => Lt(k ?? "primary"))
3746
+ T(n)((k) => Lt(k ?? "primary"))
3747
3747
  ),
3748
3748
  l ? r.target(l) : null,
3749
3749
  f ? r.rel(f) : null,
@@ -3751,7 +3751,7 @@ function Sa({
3751
3751
  )
3752
3752
  );
3753
3753
  }
3754
- const Ca = (e) => e ? e.startsWith("#") ? e : `#${e}` : "", Ia = (e) => {
3754
+ const Ca = (e) => e ? e.startsWith("#") ? e : `#${e}` : "", Ta = (e) => {
3755
3755
  if (!e) return new URLSearchParams();
3756
3756
  if (typeof e == "string") {
3757
3757
  const t = e.startsWith("?") ? e.slice(1) : e;
@@ -3759,8 +3759,8 @@ const Ca = (e) => e ? e.startsWith("#") ? e : `#${e}` : "", Ia = (e) => {
3759
3759
  }
3760
3760
  return e instanceof URLSearchParams ? new URLSearchParams(e) : new URLSearchParams(e);
3761
3761
  };
3762
- function Ta(e, t, n) {
3763
- const a = Ia(e.search), s = a.toString(), o = s ? `?${s}` : "", i = Ca(e.hash);
3762
+ function Ia(e, t, n) {
3763
+ const a = Ta(e.search), s = a.toString(), o = s ? `?${s}` : "", i = Ca(e.hash);
3764
3764
  switch (n) {
3765
3765
  case "exact":
3766
3766
  return e.pathname + o + i === t;
@@ -3786,8 +3786,8 @@ function Ta(e, t, n) {
3786
3786
  }
3787
3787
  }
3788
3788
  function ft(e, t) {
3789
- return t === "exact" ? I(e)((n) => n) : I(e)(
3790
- (n) => (a) => Ta(a, n, t)
3789
+ return t === "exact" ? T(e)((n) => n) : T(e)(
3790
+ (n) => (a) => Ia(a, n, t)
3791
3791
  );
3792
3792
  }
3793
3793
  function os({
@@ -3796,10 +3796,10 @@ function os({
3796
3796
  disableWhenActive: n = !0,
3797
3797
  ...a
3798
3798
  }, ...s) {
3799
- return ne(Be, (o) => {
3799
+ return ne(Me, (o) => {
3800
3800
  const i = o.matchSignal(
3801
3801
  ft(e, t)
3802
- ), c = I(
3802
+ ), c = T(
3803
3803
  i,
3804
3804
  n
3805
3805
  )((u, l) => l ?? !0 ? u : !1);
@@ -3829,14 +3829,14 @@ function is({
3829
3829
  roundedness: k = "sm",
3830
3830
  disabled: m = !1
3831
3831
  }, ...w) {
3832
- return c !== void 0 || u !== void 0 ? ne(Be, (v) => {
3833
- const x = c !== void 0 ? v.matchSignal(ft(e, c)) : I(v.location)(() => !1), b = I(
3832
+ return c !== void 0 || u !== void 0 ? ne(Me, (v) => {
3833
+ const x = c !== void 0 ? v.matchSignal(ft(e, c)) : T(v.location)(() => !1), b = T(
3834
3834
  x,
3835
3835
  u
3836
- )((y, T) => !(T ?? !0) || !c ? !1 : y), p = I(
3836
+ )((y, I) => !(I ?? !0) || !c ? !1 : y), p = T(
3837
3837
  m,
3838
3838
  b
3839
- )((y, T) => y || T);
3839
+ )((y, I) => y || I);
3840
3840
  return At(
3841
3841
  {
3842
3842
  href: e,
@@ -3892,7 +3892,7 @@ function At({
3892
3892
  g ?? !1,
3893
3893
  () => d.span(
3894
3894
  r.class(
3895
- I(
3895
+ T(
3896
3896
  u,
3897
3897
  f,
3898
3898
  m,
@@ -3900,7 +3900,7 @@ function At({
3900
3900
  )(yt)
3901
3901
  ),
3902
3902
  r.style(
3903
- I(
3903
+ T(
3904
3904
  c,
3905
3905
  l,
3906
3906
  g
@@ -3925,7 +3925,7 @@ function At({
3925
3925
  })
3926
3926
  },
3927
3927
  r.class(
3928
- I(
3928
+ T(
3929
3929
  u,
3930
3930
  f,
3931
3931
  m,
@@ -3933,7 +3933,7 @@ function At({
3933
3933
  )(yt)
3934
3934
  ),
3935
3935
  r.style(
3936
- I(
3936
+ T(
3937
3937
  c,
3938
3938
  l,
3939
3939
  g
@@ -4012,7 +4012,7 @@ function Pa(...e) {
4012
4012
  function Da(e, ...t) {
4013
4013
  return d.button(
4014
4014
  r.type("button"),
4015
- A.click(e.onClick),
4015
+ V.click(e.onClick),
4016
4016
  e.ariaExpanded != null ? M.expanded(
4017
4017
  h.map(
4018
4018
  e.ariaExpanded,
@@ -4029,7 +4029,7 @@ function La(e) {
4029
4029
  return e.icon != null && t.push(
4030
4030
  d.span(
4031
4031
  r.class("bc-sidebar-link--icon"),
4032
- X({ icon: e.icon })
4032
+ Q({ icon: e.icon })
4033
4033
  )
4034
4034
  ), t.push(
4035
4035
  d.span(r.class("bc-sidebar-link__content"), e.content)
@@ -4039,12 +4039,12 @@ function La(e) {
4039
4039
  d.button(
4040
4040
  r.type("button"),
4041
4041
  r.class("bc-sidebar-link--action"),
4042
- A.click((n, a) => {
4042
+ V.click((n, a) => {
4043
4043
  e.action?.onClick?.(a);
4044
4044
  }),
4045
- X({ icon: e.action?.icon })
4045
+ Q({ icon: e.action?.icon })
4046
4046
  )
4047
- ), "onClick" in e ? Da(e, ...t) : ne(Be, (n) => {
4047
+ ), "onClick" in e ? Da(e, ...t) : ne(Me, (n) => {
4048
4048
  const a = n.matchSignal(
4049
4049
  ft(e.href, "exact"),
4050
4050
  {
@@ -4085,7 +4085,7 @@ function us({
4085
4085
  ariaControls: c,
4086
4086
  right: d.span(
4087
4087
  r.class("bc-sidebar-group-collapsible-indicator"),
4088
- X({ icon: "lucide:chevron-down", color: "base" })
4088
+ Q({ icon: "lucide:chevron-down", color: "base" })
4089
4089
  ),
4090
4090
  content: n
4091
4091
  }),
@@ -4101,7 +4101,7 @@ function Aa(e, t, n, a) {
4101
4101
  }
4102
4102
  function Va(e, t) {
4103
4103
  if (e !== "filled") return "";
4104
- const n = /* @__PURE__ */ new Map(), a = ce(t, "solid", "light"), s = ce(t, "solid", "dark");
4104
+ const n = /* @__PURE__ */ new Map(), a = ie(t, "solid", "light"), s = ie(t, "solid", "dark");
4105
4105
  n.set("--tabs-filled-inactive-bg", a.backgroundColor), n.set("--tabs-filled-inactive-text", "var(--color-white)");
4106
4106
  const o = se(t, "solid", "light");
4107
4107
  n.set("--tabs-filled-inactive-bg-hover", o.backgroundColor);
@@ -4114,7 +4114,7 @@ function Ba(e, t, n) {
4114
4114
  const a = ["bc-tab", `bc-tab--${e}`];
4115
4115
  return t && a.push("bc-tab--active"), n && a.push("bc-tab--disabled"), a.join(" ");
4116
4116
  }
4117
- function Ue(e, t, n) {
4117
+ function je(e, t, n) {
4118
4118
  const a = t.length;
4119
4119
  let s = e + n;
4120
4120
  s >= a ? s = 0 : s < 0 && (s = a - 1);
@@ -4139,41 +4139,41 @@ function ps(e) {
4139
4139
  orientation: u = "horizontal",
4140
4140
  showContent: l = !0,
4141
4141
  ariaLabel: f
4142
- } = e, g = me("tablist"), k = G(-1), m = I(n)((v) => t.find((x) => x.key === v)), w = (v) => {
4142
+ } = e, g = me("tablist"), k = Z(-1), m = T(n)((v) => t.find((x) => x.key === v)), w = (v) => {
4143
4143
  if (h.get(c)) return;
4144
4144
  const b = k.value, p = h.get(u) === "horizontal";
4145
4145
  let y = b;
4146
4146
  switch (v.key) {
4147
4147
  case (p ? "ArrowRight" : "ArrowDown"):
4148
- v.preventDefault(), y = Ue(b, t, 1);
4148
+ v.preventDefault(), y = je(b, t, 1);
4149
4149
  break;
4150
4150
  case (p ? "ArrowLeft" : "ArrowUp"):
4151
- v.preventDefault(), y = Ue(b, t, -1);
4151
+ v.preventDefault(), y = je(b, t, -1);
4152
4152
  break;
4153
4153
  case "Home":
4154
- v.preventDefault(), y = Ue(-1, t, 1);
4154
+ v.preventDefault(), y = je(-1, t, 1);
4155
4155
  break;
4156
4156
  case "End":
4157
- v.preventDefault(), y = Ue(t.length, t, -1);
4157
+ v.preventDefault(), y = je(t.length, t, -1);
4158
4158
  break;
4159
4159
  case "Enter":
4160
4160
  case " ":
4161
4161
  if (v.preventDefault(), b >= 0 && b < t.length) {
4162
- const T = t[b];
4163
- h.get(T.disabled ?? !1) || a?.(T.key);
4162
+ const I = t[b];
4163
+ h.get(I.disabled ?? !1) || a?.(I.key);
4164
4164
  }
4165
4165
  break;
4166
4166
  }
4167
4167
  y !== b && y >= 0 && y < t.length && (k.set(y), setTimeout(() => {
4168
- const T = document.querySelector(
4168
+ const I = document.querySelector(
4169
4169
  `[data-tab-index="${y}"]`
4170
4170
  );
4171
- T && T.focus();
4171
+ I && I.focus();
4172
4172
  }, 0));
4173
4173
  };
4174
4174
  return d.div(
4175
4175
  r.class(
4176
- I(
4176
+ T(
4177
4177
  s,
4178
4178
  u,
4179
4179
  c,
@@ -4188,7 +4188,7 @@ function ps(e) {
4188
4188
  )
4189
4189
  ),
4190
4190
  r.style(
4191
- I(
4191
+ T(
4192
4192
  o,
4193
4193
  i
4194
4194
  )(
@@ -4203,17 +4203,17 @@ function ps(e) {
4203
4203
  M.orientation(
4204
4204
  u ?? "horizontal"
4205
4205
  ),
4206
- f ? M.label(f) : N(),
4207
- A.keydown(w),
4206
+ f ? M.label(f) : F(),
4207
+ V.keydown(w),
4208
4208
  ...t.map((v, x) => {
4209
- const b = I(n)((_) => _ === v.key), p = I(
4209
+ const b = T(n)((_) => _ === v.key), p = T(
4210
4210
  c,
4211
4211
  v.disabled
4212
- )((_, $) => _ || $), y = `${g}-tab-${v.key}`, T = `${g}-panel-${v.key}`;
4212
+ )((_, $) => _ || $), y = `${g}-tab-${v.key}`, I = `${g}-panel-${v.key}`;
4213
4213
  return d.button(
4214
4214
  r.type("button"),
4215
4215
  r.class(
4216
- I(
4216
+ T(
4217
4217
  s,
4218
4218
  b,
4219
4219
  p
@@ -4228,21 +4228,21 @@ function ps(e) {
4228
4228
  r.id(y),
4229
4229
  r.role("tab"),
4230
4230
  r.tabindex(
4231
- I(
4231
+ T(
4232
4232
  b,
4233
4233
  k
4234
4234
  )((_, $) => _ || $ === x ? 0 : -1)
4235
4235
  ),
4236
4236
  M.selected(b),
4237
- M.controls(T),
4237
+ M.controls(I),
4238
4238
  M.disabled(p),
4239
4239
  r.disabled(p),
4240
4240
  st["tab-index"](String(x)),
4241
- v.ariaLabel ? M.label(v.ariaLabel) : N(),
4242
- A.click((_) => {
4241
+ v.ariaLabel ? M.label(v.ariaLabel) : F(),
4242
+ V.click((_) => {
4243
4243
  _.preventDefault(), h.get(v.disabled ?? !1) || h.get(c) || (a?.(v.key), k.set(x));
4244
4244
  }),
4245
- A.focus(() => {
4245
+ V.focus(() => {
4246
4246
  k.set(x);
4247
4247
  }),
4248
4248
  v.label
@@ -4252,7 +4252,7 @@ function ps(e) {
4252
4252
  // Panel
4253
4253
  K(
4254
4254
  l ?? !0,
4255
- () => Ye(m, (v) => {
4255
+ () => Ge(m, (v) => {
4256
4256
  const x = v.$.key, b = x.map((y) => `${g}-tab-${y}`), p = x.map((y) => `${g}-panel-${y}`);
4257
4257
  return d.div(
4258
4258
  r.class("bc-tabs__panels"),
@@ -4287,15 +4287,15 @@ function fs(e) {
4287
4287
  footer: b
4288
4288
  } = c;
4289
4289
  a = n;
4290
- const p = G("capturing");
4290
+ const p = Z("capturing");
4291
4291
  h.on(f, (_) => {
4292
4292
  p.set(_ ? "capturing" : "non-capturing");
4293
4293
  });
4294
- const y = I(
4294
+ const y = T(
4295
4295
  v != null,
4296
4296
  g
4297
- )((_, $) => _ || $), T = te((_) => {
4298
- const $ = Me({
4297
+ )((_, $) => _ || $), I = ee((_) => {
4298
+ const $ = Ee({
4299
4299
  initialStatus: "closed",
4300
4300
  element: _
4301
4301
  });
@@ -4303,30 +4303,30 @@ function fs(e) {
4303
4303
  n();
4304
4304
  }), a = () => {
4305
4305
  $.close();
4306
- }, ze(() => $.open());
4307
- const C = me("drawer"), V = v != null ? `${C}-header` : void 0, E = `${C}-body`;
4306
+ }, Ye(() => $.open());
4307
+ const C = me("drawer"), L = v != null ? `${C}-header` : void 0, R = `${C}-body`;
4308
4308
  return d.div(
4309
4309
  r.class(
4310
- I(
4310
+ T(
4311
4311
  u,
4312
4312
  l,
4313
4313
  $.status
4314
4314
  )(
4315
- (R, j, J) => `bc-drawer bc-drawer--size-${R} bc-drawer--container-${w} bc-drawer--side-${j} bc-drawer--status-${J}`
4315
+ (E, j, te) => `bc-drawer bc-drawer--size-${E} bc-drawer--container-${w} bc-drawer--side-${j} bc-drawer--status-${te}`
4316
4316
  )
4317
4317
  ),
4318
4318
  // Essential ARIA attributes for drawer dialog
4319
4319
  r.role("dialog"),
4320
4320
  M.modal(!0),
4321
- ...V ? [M.labelledby(V)] : [],
4322
- M.describedby(E),
4321
+ ...L ? [M.labelledby(L)] : [],
4322
+ M.describedby(R),
4323
4323
  r.tabindex(-1),
4324
4324
  // Make drawer focusable for initial focus
4325
4325
  r.id(C),
4326
4326
  st.focusTrap("true"),
4327
4327
  // Mark as focus trap container
4328
4328
  // Focus trap for keyboard navigation
4329
- Tn({
4329
+ In({
4330
4330
  active: !0,
4331
4331
  escapeDeactivates: !1,
4332
4332
  // Let Overlay handle escape key
@@ -4334,18 +4334,18 @@ function fs(e) {
4334
4334
  `#${C} [aria-label="Close drawer"]`
4335
4335
  ) || null
4336
4336
  }),
4337
- A.mousedown((R) => R.stopPropagation()),
4337
+ V.mousedown((E) => E.stopPropagation()),
4338
4338
  // Prevent overlay click-outside when clicking drawer content
4339
4339
  // Drawer content container
4340
- Nt(y, (R) => _t(R ? {
4340
+ Nt(y, (E) => _t(E ? {
4341
4341
  header: d.div(
4342
4342
  r.class("bc-drawer__header"),
4343
- d.div(r.id(V), v),
4343
+ d.div(r.id(L), v),
4344
4344
  K(
4345
4345
  g,
4346
4346
  () => ne(
4347
4347
  le,
4348
- (j) => Ee({
4348
+ (j) => Oe({
4349
4349
  size: "sm",
4350
4350
  onClick: s,
4351
4351
  label: j.$.closeDrawer
@@ -4355,14 +4355,14 @@ function fs(e) {
4355
4355
  ),
4356
4356
  body: d.div(
4357
4357
  r.class("bc-drawer__body"),
4358
- r.id(E),
4358
+ r.id(R),
4359
4359
  x
4360
4360
  ),
4361
4361
  footer: b && d.div(r.class("bc-drawer__footer"), b)
4362
4362
  } : {
4363
4363
  body: d.div(
4364
4364
  r.class("bc-drawer__body"),
4365
- r.id(E),
4365
+ r.id(R),
4366
4366
  x
4367
4367
  ),
4368
4368
  footer: b && d.div(r.class("bc-drawer__footer"), b)
@@ -4373,7 +4373,7 @@ function fs(e) {
4373
4373
  mode: p,
4374
4374
  effect: m ?? "opaque",
4375
4375
  container: w,
4376
- content: T,
4376
+ content: I,
4377
4377
  onClickOutside: () => {
4378
4378
  k?.(), s();
4379
4379
  },
@@ -4408,10 +4408,10 @@ function bs(e) {
4408
4408
  crossAxisOffset: i = 0,
4409
4409
  showOn: c = "hover-focus"
4410
4410
  } = e, u = me("tooltip");
4411
- return N(
4411
+ return F(
4412
4412
  M.describedby(u),
4413
- Ge({
4414
- content: () => N(
4413
+ Ze({
4414
+ content: () => F(
4415
4415
  r.class("bc-tooltip"),
4416
4416
  r.role("tooltip"),
4417
4417
  r.id(u),
@@ -4433,7 +4433,7 @@ function bs(e) {
4433
4433
  placement: g
4434
4434
  }) => g.includes("top") ? "down" : g.includes("bottom") ? "up" : g.includes("left") ? "right" : g.includes("right") ? "left" : "up"
4435
4435
  );
4436
- return N(
4436
+ return F(
4437
4437
  r.class("bc-tooltip__arrow"),
4438
4438
  r.class(f.map((g) => `bc-tooltip__arrow-${g}`)),
4439
4439
  S.transform(
@@ -4446,7 +4446,7 @@ function bs(e) {
4446
4446
  );
4447
4447
  }
4448
4448
  function Ea(e, t, n, a, s, o) {
4449
- const i = ce(e, "solid", "light"), c = ce(e, "solid", "dark");
4449
+ const i = ie(e, "solid", "light"), c = ie(e, "solid", "dark");
4450
4450
  return [
4451
4451
  `--ribbon-bg: ${i.backgroundColor}`,
4452
4452
  `--ribbon-text: ${i.textColor}`,
@@ -4475,7 +4475,7 @@ function gs({
4475
4475
  r.class("bc-ribbon"),
4476
4476
  // Theme styles via CSS variables
4477
4477
  r.style(
4478
- I(
4478
+ T(
4479
4479
  e,
4480
4480
  n,
4481
4481
  a,
@@ -4502,7 +4502,7 @@ function ms(e, t) {
4502
4502
  };
4503
4503
  return t((k) => {
4504
4504
  l = u;
4505
- const m = G(
4505
+ const m = Z(
4506
4506
  typeof n != "boolean" || n ? "capturing" : "non-capturing"
4507
4507
  );
4508
4508
  let w = typeof n == "boolean" ? n : !0;
@@ -4518,7 +4518,7 @@ function ms(e, t) {
4518
4518
  le,
4519
4519
  (x) => d.div(
4520
4520
  r.class("bc-lightbox__close"),
4521
- Ee({
4521
+ Oe({
4522
4522
  size: "md",
4523
4523
  label: x.$.closeModal,
4524
4524
  onClick: () => {
@@ -4534,7 +4534,7 @@ function ms(e, t) {
4534
4534
  r.class("bc-lightbox__viewport"),
4535
4535
  // Visual padding applied here
4536
4536
  r.style(
4537
- I(i)(
4537
+ T(i)(
4538
4538
  (x) => `padding:${typeof x == "number" ? x + "px" : x}`
4539
4539
  )
4540
4540
  ),
@@ -4573,7 +4573,7 @@ function hs({
4573
4573
  onDismiss: a,
4574
4574
  class: s
4575
4575
  }, ...o) {
4576
- const i = G(!0);
4576
+ const i = Z(!0);
4577
4577
  return K(i, () => {
4578
4578
  const c = h.map(
4579
4579
  n,
@@ -4581,7 +4581,7 @@ function hs({
4581
4581
  );
4582
4582
  return d.div(
4583
4583
  r.class(
4584
- I(
4584
+ T(
4585
4585
  c,
4586
4586
  s
4587
4587
  )((u, l) => Oa(u, l))
@@ -4595,7 +4595,7 @@ function hs({
4595
4595
  h.map(t, (u) => u != null),
4596
4596
  () => d.div(
4597
4597
  r.class("bc-announcement-bar__icon"),
4598
- X({
4598
+ Q({
4599
4599
  icon: t,
4600
4600
  size: "sm",
4601
4601
  accessibility: "decorative"
@@ -4607,7 +4607,7 @@ function hs({
4607
4607
  c,
4608
4608
  () => d.div(
4609
4609
  r.class("bc-announcement-bar__close"),
4610
- Ee({
4610
+ Oe({
4611
4611
  size: "xs",
4612
4612
  color: "white",
4613
4613
  onClick: () => {
@@ -4623,16 +4623,16 @@ function hs({
4623
4623
  function Fa(e) {
4624
4624
  return /^(https?:\/\/)?(www\.)?(youtube\.com|youtu\.be)\//i.test(e);
4625
4625
  }
4626
- let je = null;
4626
+ let He = null;
4627
4627
  function Ra() {
4628
- return typeof window < "u" && window.YT?.Player ? Promise.resolve(window.YT) : je || (je = new Promise((e) => {
4628
+ return typeof window < "u" && window.YT?.Player ? Promise.resolve(window.YT) : He || (He = new Promise((e) => {
4629
4629
  const t = window.onYouTubeIframeAPIReady;
4630
4630
  window.onYouTubeIframeAPIReady = () => {
4631
4631
  t?.(), e(window.YT);
4632
4632
  };
4633
4633
  const n = document.createElement("script");
4634
4634
  n.src = "https://www.youtube.com/iframe_api", n.async = !0, document.head.appendChild(n);
4635
- }), je);
4635
+ }), He);
4636
4636
  }
4637
4637
  function vs(e) {
4638
4638
  const {
@@ -4655,19 +4655,19 @@ function vs(e) {
4655
4655
  onPlay: b,
4656
4656
  onPause: p,
4657
4657
  onBuffer: y,
4658
- onBufferEnd: T,
4658
+ onBufferEnd: I,
4659
4659
  onEnded: _,
4660
4660
  onError: $,
4661
4661
  onDuration: P,
4662
4662
  onSeek: C,
4663
- onProgress: V,
4664
- onPlaybackRateChange: E,
4665
- onPlaybackQualityChange: R
4663
+ onProgress: L,
4664
+ onPlaybackRateChange: R,
4665
+ onPlaybackQualityChange: E
4666
4666
  } = e;
4667
4667
  function j(D) {
4668
4668
  return /\.m3u8(\?|$)/i.test(D);
4669
4669
  }
4670
- function J(D) {
4670
+ function te(D) {
4671
4671
  try {
4672
4672
  const B = D.canPlayType("application/vnd.apple.mpegurl");
4673
4673
  return B === "probably" || B === "maybe";
@@ -4675,30 +4675,30 @@ function vs(e) {
4675
4675
  return !1;
4676
4676
  }
4677
4677
  }
4678
- const Y = G("file");
4679
- let F = null, Q = null, ie = null;
4680
- function qe() {
4678
+ const H = Z("file");
4679
+ let O = null, G = null, ce = null;
4680
+ function Ve() {
4681
4681
  try {
4682
- ie?.destroy();
4682
+ ce?.destroy();
4683
4683
  } catch {
4684
4684
  }
4685
- ie = null;
4685
+ ce = null;
4686
4686
  }
4687
4687
  const ue = [];
4688
4688
  ue.push(
4689
4689
  h.on(t, (D) => {
4690
- typeof D == "string" && D.length > 0 && Fa(D) ? Y.value = "youtube" : (Y.value = "file", F && Oe());
4690
+ typeof D == "string" && D.length > 0 && Fa(D) ? H.value = "youtube" : (H.value = "file", O && Ne());
4691
4691
  })
4692
4692
  );
4693
- async function Oe() {
4694
- const D = F;
4693
+ async function Ne() {
4694
+ const D = O;
4695
4695
  if (!D) return;
4696
4696
  const B = h.get(t);
4697
4697
  if (typeof B != "string" || B.length === 0) return;
4698
- qe();
4698
+ Ve();
4699
4699
  const U = w?.file?.forceHLS ?? !1;
4700
4700
  if (j(B) || U) {
4701
- if (J(D)) {
4701
+ if (te(D)) {
4702
4702
  D.setAttribute("src", B);
4703
4703
  try {
4704
4704
  D.load();
@@ -4708,12 +4708,12 @@ function vs(e) {
4708
4708
  }
4709
4709
  if (typeof window > "u") return;
4710
4710
  try {
4711
- const Z = await import("./hls.light.min-BHW1Af0w.js").then((ve) => ve.h), Ve = Z;
4712
- let Ie = Ve.default ?? Ve.Hls ?? Z;
4713
- for (let ve = 0; ve < 3 && (typeof Ie == "object" && Ie != null && "default" in Ie); ve++)
4714
- Ie = Ie.default;
4715
- if (typeof Ie == "function") {
4716
- const ve = Ie;
4711
+ const J = await import("./hls.light.min-BHW1Af0w.js").then((ve) => ve.h), Be = J;
4712
+ let Te = Be.default ?? Be.Hls ?? J;
4713
+ for (let ve = 0; ve < 3 && (typeof Te == "object" && Te != null && "default" in Te); ve++)
4714
+ Te = Te.default;
4715
+ if (typeof Te == "function") {
4716
+ const ve = Te;
4717
4717
  if (typeof ve.isSupported == "function" && ve.isSupported()) {
4718
4718
  D.removeAttribute("src");
4719
4719
  try {
@@ -4721,7 +4721,7 @@ function vs(e) {
4721
4721
  } catch {
4722
4722
  }
4723
4723
  const Qe = new ve(w?.hls);
4724
- ie = Qe, Qe.attachMedia(D), Qe.loadSource(B);
4724
+ ce = Qe, Qe.attachMedia(D), Qe.loadSource(B);
4725
4725
  } else {
4726
4726
  D.setAttribute("src", B);
4727
4727
  try {
@@ -4736,8 +4736,8 @@ function vs(e) {
4736
4736
  } catch {
4737
4737
  }
4738
4738
  }
4739
- } catch (Z) {
4740
- $?.(Z), D.setAttribute("src", B);
4739
+ } catch (J) {
4740
+ $?.(J), D.setAttribute("src", B);
4741
4741
  try {
4742
4742
  D.load();
4743
4743
  } catch {
@@ -4751,18 +4751,18 @@ function vs(e) {
4751
4751
  } catch {
4752
4752
  }
4753
4753
  }
4754
- function Ne() {
4755
- Q?.();
4754
+ function Fe() {
4755
+ G?.();
4756
4756
  const D = h.get(k) ?? 1e3;
4757
- Q = St(() => {
4758
- const B = F;
4757
+ G = St(() => {
4758
+ const B = O;
4759
4759
  if (!B) return;
4760
- const U = B.duration || 0, Z = B.currentTime || 0, Ve = B.buffered?.length ? B.buffered.end(B.buffered.length - 1) : 0;
4761
- V?.({
4762
- played: U > 0 ? Z / U : 0,
4763
- playedSeconds: Z,
4764
- loaded: U > 0 ? Math.min(Ve, U) / U : 0,
4765
- loadedSeconds: Math.min(Ve, U)
4760
+ const U = B.duration || 0, J = B.currentTime || 0, Be = B.buffered?.length ? B.buffered.end(B.buffered.length - 1) : 0;
4761
+ L?.({
4762
+ played: U > 0 ? J / U : 0,
4763
+ playedSeconds: J,
4764
+ loaded: U > 0 ? Math.min(Be, U) / U : 0,
4765
+ loadedSeconds: Math.min(Be, U)
4766
4766
  });
4767
4767
  }, D);
4768
4768
  }
@@ -4770,23 +4770,23 @@ function vs(e) {
4770
4770
  if (D != null)
4771
4771
  return typeof D == "number" ? `${D}px` : D;
4772
4772
  }
4773
- const Fe = d.video(
4774
- te((D) => {
4775
- F = D, v?.();
4773
+ const Re = d.video(
4774
+ ee((D) => {
4775
+ O = D, v?.();
4776
4776
  try {
4777
- F.playbackRate = h.get(c) ?? 1;
4777
+ O.playbackRate = h.get(c) ?? 1;
4778
4778
  } catch {
4779
4779
  }
4780
- F.muted = !!(h.get(i) ?? !1), F.loop = !!(h.get(a) ?? !1), F.controls = !!(h.get(s) ?? !1), F.playsInline != null && (!!(h.get(l) ?? !0) ? F.setAttribute("playsinline", "") : F.removeAttribute("playsinline")), h.get(n) && (F.play?.().catch(() => {
4780
+ O.muted = !!(h.get(i) ?? !1), O.loop = !!(h.get(a) ?? !1), O.controls = !!(h.get(s) ?? !1), O.playsInline != null && (!!(h.get(l) ?? !0) ? O.setAttribute("playsinline", "") : O.removeAttribute("playsinline")), h.get(n) && (O.play?.().catch(() => {
4781
4781
  }), x?.());
4782
4782
  try {
4783
- const B = !!(h.get(u) ?? !1), U = document, Z = F;
4784
- B ? typeof Z.requestPictureInPicture == "function" && U.pictureInPictureElement !== F && Z.requestPictureInPicture().catch(() => {
4785
- }) : U.pictureInPictureElement === F && typeof U.exitPictureInPicture == "function" && U.exitPictureInPicture().catch(() => {
4783
+ const B = !!(h.get(u) ?? !1), U = document, J = O;
4784
+ B ? typeof J.requestPictureInPicture == "function" && U.pictureInPictureElement !== O && J.requestPictureInPicture().catch(() => {
4785
+ }) : U.pictureInPictureElement === O && typeof U.exitPictureInPicture == "function" && U.exitPictureInPicture().catch(() => {
4786
4786
  });
4787
4787
  } catch {
4788
4788
  }
4789
- Ne(), Oe();
4789
+ Fe(), Ne();
4790
4790
  }),
4791
4791
  // size
4792
4792
  S.width(
@@ -4796,42 +4796,42 @@ function vs(e) {
4796
4796
  h.map(g, ke)
4797
4797
  ),
4798
4798
  // Events
4799
- A.play(() => b?.()),
4800
- A.playing(() => {
4801
- x?.(), T?.();
4799
+ V.play(() => b?.()),
4800
+ V.playing(() => {
4801
+ x?.(), I?.();
4802
4802
  }),
4803
- A.pause(() => p?.()),
4804
- A.waiting(() => y?.()),
4805
- A.canplay(() => {
4806
- const D = F?.duration;
4803
+ V.pause(() => p?.()),
4804
+ V.waiting(() => y?.()),
4805
+ V.canplay(() => {
4806
+ const D = O?.duration;
4807
4807
  D != null && Number.isFinite(D) && P?.(D);
4808
4808
  }),
4809
- A.ended(() => _?.()),
4810
- A.error((D) => {
4811
- ie || $?.(D);
4809
+ V.ended(() => _?.()),
4810
+ V.error((D) => {
4811
+ ce || $?.(D);
4812
4812
  })
4813
4813
  );
4814
- let $e = null, W = null, Se = null;
4814
+ let $e = null, z = null, Se = null;
4815
4815
  function Ce() {
4816
4816
  const D = h.get(t);
4817
4817
  !$e || typeof D != "string" || Ra().then((B) => {
4818
4818
  const U = dn(D);
4819
4819
  if (U) {
4820
- if (W) {
4821
- W.loadVideoById({ videoId: U });
4820
+ if (z) {
4821
+ z.loadVideoById({ videoId: U });
4822
4822
  return;
4823
4823
  }
4824
- W = new B.Player($e, {
4824
+ z = new B.Player($e, {
4825
4825
  videoId: U,
4826
4826
  playerVars: Ua(e),
4827
4827
  events: {
4828
4828
  onReady: () => {
4829
- v?.(), L(), h.get(n) && x?.(), Ke();
4829
+ v?.(), A(), h.get(n) && x?.(), Ke();
4830
4830
  },
4831
- onStateChange: (Z) => {
4832
- switch (Z.data) {
4831
+ onStateChange: (J) => {
4832
+ switch (J.data) {
4833
4833
  case B.PlayerState.PLAYING:
4834
- b?.(), T?.();
4834
+ b?.(), I?.();
4835
4835
  break;
4836
4836
  case B.PlayerState.PAUSED:
4837
4837
  p?.();
@@ -4844,9 +4844,9 @@ function vs(e) {
4844
4844
  break;
4845
4845
  }
4846
4846
  },
4847
- onError: (Z) => $?.(Z),
4848
- onPlaybackRateChange: (Z) => E?.(Z.data),
4849
- onPlaybackQualityChange: (Z) => R?.(Z.data)
4847
+ onError: (J) => $?.(J),
4848
+ onPlaybackRateChange: (J) => R?.(J.data),
4849
+ onPlaybackQualityChange: (J) => E?.(J.data)
4850
4850
  }
4851
4851
  });
4852
4852
  }
@@ -4856,83 +4856,83 @@ function vs(e) {
4856
4856
  Se?.();
4857
4857
  const D = h.get(k) ?? 1e3;
4858
4858
  Se = St(() => {
4859
- if (!W) return;
4860
- const B = W.getDuration?.() ?? 0, U = W.getCurrentTime?.() ?? 0, Z = W.getVideoLoadedFraction?.() ?? 0;
4861
- V?.({
4859
+ if (!z) return;
4860
+ const B = z.getDuration?.() ?? 0, U = z.getCurrentTime?.() ?? 0, J = z.getVideoLoadedFraction?.() ?? 0;
4861
+ L?.({
4862
4862
  played: B > 0 ? U / B : 0,
4863
4863
  playedSeconds: U,
4864
- loaded: Z,
4865
- loadedSeconds: Z * B
4864
+ loaded: J,
4865
+ loadedSeconds: J * B
4866
4866
  });
4867
4867
  }, D);
4868
4868
  }
4869
- function L() {
4870
- if (!W) return;
4869
+ function A() {
4870
+ if (!z) return;
4871
4871
  try {
4872
4872
  const U = h.get(c) ?? 1;
4873
- W.setPlaybackRate?.(U);
4873
+ z.setPlaybackRate?.(U);
4874
4874
  } catch {
4875
4875
  }
4876
4876
  try {
4877
4877
  const U = Math.round(
4878
4878
  Math.min(Math.max(h.get(o) ?? 1, 0), 1) * 100
4879
4879
  );
4880
- W.setVolume?.(U);
4880
+ z.setVolume?.(U);
4881
4881
  } catch {
4882
4882
  }
4883
4883
  try {
4884
- h.get(i) ?? !1 ? W.mute?.() : W.unMute?.();
4884
+ h.get(i) ?? !1 ? z.mute?.() : z.unMute?.();
4885
4885
  } catch {
4886
4886
  }
4887
- h.get(n) ?? !1 ? W.playVideo?.() : W.pauseVideo?.();
4887
+ h.get(n) ?? !1 ? z.playVideo?.() : z.pauseVideo?.();
4888
4888
  const B = h.get(m);
4889
- typeof B == "number" && Number.isFinite(B) && (W.seekTo?.(B, !0), C?.(B));
4889
+ typeof B == "number" && Number.isFinite(B) && (z.seekTo?.(B, !0), C?.(B));
4890
4890
  }
4891
- const O = d.div(
4892
- te((D) => {
4891
+ const N = d.div(
4892
+ ee((D) => {
4893
4893
  $e = D, Ce(), v?.();
4894
4894
  })
4895
4895
  );
4896
4896
  ue.push(
4897
4897
  h.on(t, () => {
4898
- Y.value === "youtube" && Ce();
4898
+ H.value === "youtube" && Ce();
4899
4899
  })
4900
4900
  ), ue.push(
4901
4901
  h.on(n, () => {
4902
- Y.value === "file" && F ? h.get(n) ? F.play?.().catch(() => {
4903
- }) : F.pause?.() : Y.value === "youtube" && W && (h.get(n) ? W.playVideo?.() : W.pauseVideo?.());
4902
+ H.value === "file" && O ? h.get(n) ? O.play?.().catch(() => {
4903
+ }) : O.pause?.() : H.value === "youtube" && z && (h.get(n) ? z.playVideo?.() : z.pauseVideo?.());
4904
4904
  })
4905
4905
  ), ue.push(
4906
4906
  h.on(o, () => {
4907
- if (Y.value === "file" && F)
4908
- F.volume = Math.min(Math.max(h.get(o) ?? 1, 0), 1);
4909
- else if (Y.value === "youtube" && W) {
4907
+ if (H.value === "file" && O)
4908
+ O.volume = Math.min(Math.max(h.get(o) ?? 1, 0), 1);
4909
+ else if (H.value === "youtube" && z) {
4910
4910
  const D = Math.round(
4911
4911
  Math.min(Math.max(h.get(o) ?? 1, 0), 1) * 100
4912
4912
  );
4913
- W.setVolume?.(D);
4913
+ z.setVolume?.(D);
4914
4914
  }
4915
4915
  })
4916
4916
  ), ue.push(
4917
4917
  h.on(i, () => {
4918
- Y.value === "file" && F ? F.muted = !!h.get(i) : Y.value === "youtube" && W && (h.get(i) ? W.mute?.() : W.unMute?.());
4918
+ H.value === "file" && O ? O.muted = !!h.get(i) : H.value === "youtube" && z && (h.get(i) ? z.mute?.() : z.unMute?.());
4919
4919
  })
4920
4920
  ), ue.push(
4921
4921
  h.on(c, () => {
4922
- if (Y.value === "file" && F)
4922
+ if (H.value === "file" && O)
4923
4923
  try {
4924
- F.playbackRate = h.get(c) ?? 1;
4924
+ O.playbackRate = h.get(c) ?? 1;
4925
4925
  } catch {
4926
4926
  }
4927
- else Y.value === "youtube" && W && W.setPlaybackRate?.(h.get(c) ?? 1);
4927
+ else H.value === "youtube" && z && z.setPlaybackRate?.(h.get(c) ?? 1);
4928
4928
  })
4929
4929
  ), ue.push(
4930
4930
  h.on(u, async () => {
4931
- if (!(Y.value !== "file" || !F))
4931
+ if (!(H.value !== "file" || !O))
4932
4932
  try {
4933
- const D = !!(h.get(u) ?? !1), B = document, U = F;
4934
- D ? typeof U.requestPictureInPicture == "function" && B.pictureInPictureElement !== F && await U.requestPictureInPicture()?.catch(() => {
4935
- }) : B.pictureInPictureElement === F && typeof B.exitPictureInPicture == "function" && await B.exitPictureInPicture()?.catch(() => {
4933
+ const D = !!(h.get(u) ?? !1), B = document, U = O;
4934
+ D ? typeof U.requestPictureInPicture == "function" && B.pictureInPictureElement !== O && await U.requestPictureInPicture()?.catch(() => {
4935
+ }) : B.pictureInPictureElement === O && typeof B.exitPictureInPicture == "function" && await B.exitPictureInPicture()?.catch(() => {
4936
4936
  });
4937
4937
  } catch {
4938
4938
  }
@@ -4941,12 +4941,12 @@ function vs(e) {
4941
4941
  h.on(m ?? null, () => {
4942
4942
  const D = h.get(m);
4943
4943
  if (D != null)
4944
- if (Y.value === "file" && F)
4944
+ if (H.value === "file" && O)
4945
4945
  try {
4946
- F.currentTime = D, C?.(D);
4946
+ O.currentTime = D, C?.(D);
4947
4947
  } catch {
4948
4948
  }
4949
- else Y.value === "youtube" && W && (W.seekTo?.(D, !0), C?.(D));
4949
+ else H.value === "youtube" && z && (z.seekTo?.(D, !0), C?.(D));
4950
4950
  })
4951
4951
  );
4952
4952
  const q = d.div(
@@ -4958,12 +4958,12 @@ function vs(e) {
4958
4958
  h.map(g, ke)
4959
4959
  ),
4960
4960
  K(
4961
- h.map(Y, (D) => D === "youtube"),
4962
- () => O,
4963
- () => Fe
4961
+ h.map(H, (D) => D === "youtube"),
4962
+ () => N,
4963
+ () => Re
4964
4964
  )
4965
4965
  );
4966
- return N(re(...ue), q);
4966
+ return F(re(...ue), q);
4967
4967
  }
4968
4968
  function dn(e) {
4969
4969
  const t = /[?&]v=([^&#]+)/.exec(e);
@@ -5047,13 +5047,13 @@ function ys({
5047
5047
  }, ...f) {
5048
5048
  const g = Ya();
5049
5049
  let k = h.get(e), m = null, w = h.get(t);
5050
- return ne(le, (v) => N(
5050
+ return ne(le, (v) => F(
5051
5051
  // Clean up PDF document when component unmounts
5052
5052
  re(() => {
5053
5053
  m != null && (m.destroy(), m = null);
5054
5054
  }),
5055
5055
  De((x) => Ft({
5056
- request: I(
5056
+ request: T(
5057
5057
  e,
5058
5058
  t,
5059
5059
  n,
@@ -5063,57 +5063,58 @@ function ys({
5063
5063
  i,
5064
5064
  c,
5065
5065
  x
5066
- )((b, p, y, T, _, $, P, C, V) => ({
5066
+ )((b, p, y, I, _, $, P, C, L) => ({
5067
5067
  source: b,
5068
5068
  page: p,
5069
5069
  fit: y,
5070
- scale: T,
5070
+ scale: I,
5071
5071
  rotation: _,
5072
5072
  quality: $,
5073
5073
  renderTextLayer: P,
5074
5074
  renderAnnotationLayer: C,
5075
- containerWidth: V.width,
5076
- containerHeight: V.height
5075
+ containerWidth: L.width,
5076
+ containerHeight: L.height
5077
5077
  })),
5078
5078
  load: async ({ request: b }) => {
5079
5079
  const p = await g;
5080
5080
  (m == null || !Ja(k, b.source)) && (m != null && (m.destroy(), m = null), k = b.source, m = await p.getDocument(b.source).promise, l?.({ numPages: m.numPages }));
5081
5081
  const y = b.page < 1 || b.page > m.numPages ? 1 : b.page;
5082
5082
  u != null && y !== w && (w = y, u(y));
5083
- const T = await m.getPage(y);
5083
+ const I = await m.getPage(y);
5084
5084
  let _;
5085
5085
  if (b.fit === "none")
5086
5086
  _ = b.scale;
5087
5087
  else {
5088
- const C = T.getViewport({
5088
+ const L = I.getViewport({
5089
5089
  scale: 1,
5090
5090
  rotation: b.rotation
5091
- }), V = C.width / C.height, E = b.containerWidth / b.containerHeight;
5091
+ }), R = L.width / L.height, E = b.containerWidth / b.containerHeight;
5092
5092
  switch (b.fit) {
5093
5093
  case "width":
5094
- _ = b.containerWidth / C.width;
5094
+ _ = b.containerWidth / L.width;
5095
5095
  break;
5096
5096
  case "height":
5097
- _ = b.containerHeight / C.height;
5097
+ _ = b.containerHeight / L.height;
5098
5098
  break;
5099
5099
  case "contain":
5100
5100
  _ = Math.min(
5101
- b.containerWidth / C.width,
5102
- b.containerHeight / C.height
5101
+ b.containerWidth / L.width,
5102
+ b.containerHeight / L.height
5103
5103
  );
5104
5104
  break;
5105
5105
  case "cover":
5106
- V > E ? _ = b.containerHeight / C.height : _ = b.containerWidth / C.width;
5106
+ R > E ? _ = b.containerHeight / L.height : _ = b.containerWidth / L.width;
5107
5107
  break;
5108
5108
  }
5109
5109
  }
5110
- const $ = T.getViewport({
5110
+ const $ = I.getViewport({
5111
5111
  scale: _,
5112
5112
  rotation: b.rotation
5113
- }), P = T.getViewport({
5113
+ }), P = I.getViewport({
5114
5114
  scale: _ * b.quality,
5115
5115
  rotation: b.rotation
5116
5116
  });
5117
+ let C = null;
5117
5118
  return {
5118
5119
  pdfWidth: $.width,
5119
5120
  pdfHeight: $.height,
@@ -5121,34 +5122,54 @@ function ys({
5121
5122
  canvasHeight: Math.floor($.height),
5122
5123
  highResWidth: Math.floor(P.width),
5123
5124
  highResHeight: Math.floor(P.height),
5124
- render: async (C, V, E) => {
5125
- if (C.width = P.width, C.height = P.height, C.style.width = `${$.width}px`, C.style.height = `${$.height}px`, !C.getContext("2d"))
5125
+ render: async (L, R, E) => {
5126
+ if (C)
5127
+ try {
5128
+ C.cancel(), await C.promise.catch(() => {
5129
+ });
5130
+ } catch {
5131
+ }
5132
+ L.width = P.width, L.height = P.height, L.style.width = `${$.width}px`, L.style.height = `${$.height}px`;
5133
+ const j = L.getContext("2d");
5134
+ if (!j)
5126
5135
  throw new Error("Failed to get canvas context");
5127
- if (await T.render({
5128
- canvas: C,
5136
+ const te = I.render({
5137
+ canvasContext: j,
5138
+ canvas: L,
5129
5139
  viewport: P
5130
- }).promise, b.renderTextLayer && V != null) {
5131
- V.innerHTML = "";
5140
+ });
5141
+ C = te;
5142
+ try {
5143
+ await te.promise;
5144
+ } catch (H) {
5145
+ if ((H instanceof Error ? H.name : H?.name) !== "RenderingCancelledException")
5146
+ throw H;
5147
+ return;
5148
+ } finally {
5149
+ C === te && (C = null);
5150
+ }
5151
+ if (b.renderTextLayer && R != null) {
5152
+ R.innerHTML = "";
5132
5153
  try {
5133
- const J = await T.getTextContent(), Y = p.TextLayer;
5134
- Y != null && await new Y({
5135
- textContentSource: J,
5136
- container: V,
5154
+ const H = await I.getTextContent(), O = p.TextLayer;
5155
+ O != null && await new O({
5156
+ textContentSource: H,
5157
+ container: R,
5137
5158
  viewport: $
5138
5159
  }).render();
5139
- } catch (J) {
5140
- console.warn("Failed to render text layer:", J);
5160
+ } catch (H) {
5161
+ console.warn("Failed to render text layer:", H);
5141
5162
  }
5142
5163
  }
5143
5164
  if (b.renderAnnotationLayer && E != null) {
5144
5165
  E.innerHTML = "", E.style.width = `${$.width}px`, E.style.height = `${$.height}px`;
5145
5166
  try {
5146
- const J = await T.getAnnotations(), Y = p.AnnotationLayer;
5147
- if (Y != null && J.length > 0) {
5148
- const F = {
5167
+ const H = await I.getAnnotations(), O = p.AnnotationLayer;
5168
+ if (O != null && H.length > 0) {
5169
+ const G = {
5149
5170
  // Minimal link service for basic functionality
5150
5171
  getDestinationHash: () => "",
5151
- getAnchorUrl: (ie) => ie,
5172
+ getAnchorUrl: (Ve) => Ve,
5152
5173
  executeNamedAction: () => {
5153
5174
  },
5154
5175
  executeSetOCGState: () => {
@@ -5156,38 +5177,32 @@ function ys({
5156
5177
  cachePageRef: () => {
5157
5178
  }
5158
5179
  };
5159
- await new Y({
5180
+ await new O({
5160
5181
  div: E,
5161
- page: T,
5182
+ page: I,
5162
5183
  viewport: $,
5163
- linkService: F,
5184
+ linkService: G,
5164
5185
  annotationStorage: null
5165
5186
  }).render({
5166
5187
  viewport: $,
5167
5188
  div: E,
5168
- annotations: J,
5169
- page: T,
5170
- linkService: F,
5189
+ annotations: H,
5190
+ page: I,
5191
+ linkService: G,
5171
5192
  renderForms: !0
5172
5193
  });
5173
5194
  }
5174
- } catch (J) {
5175
- console.warn("Failed to render annotation layer:", J);
5195
+ } catch (H) {
5196
+ console.warn("Failed to render annotation layer:", H);
5176
5197
  }
5177
5198
  }
5178
5199
  }
5179
5200
  };
5180
5201
  },
5181
- convertError: (b) => {
5182
- if (b instanceof Error) {
5183
- const p = b.message;
5184
- return p.includes("Invalid PDF") ? h.get(v).pdfPageViewer.invalidPdf : p.includes("page") ? p : h.get(v).pdfPageViewer.loadFailed;
5185
- }
5186
- return h.get(v).pdfPageViewer.loadFailed;
5187
- },
5202
+ convertError: (b) => b instanceof Error ? b.message : JSON.stringify(b),
5188
5203
  pending: () => d.div(
5189
5204
  r.class("bc-pdf-page-viewer__loading"),
5190
- X({
5205
+ Q({
5191
5206
  icon: "line-md:loading-twotone-loop",
5192
5207
  size: "lg"
5193
5208
  }),
@@ -5198,7 +5213,7 @@ function ys({
5198
5213
  ),
5199
5214
  failure: ({ error: b }) => d.div(
5200
5215
  r.class("bc-pdf-page-viewer__error"),
5201
- X({
5216
+ Q({
5202
5217
  icon: "line-md:alert-circle",
5203
5218
  size: "lg",
5204
5219
  color: "danger"
@@ -5223,7 +5238,7 @@ function ys({
5223
5238
  (p) => `width: ${p}px; height: ${b.value.canvasHeight}px;`
5224
5239
  )
5225
5240
  ),
5226
- () => N()
5241
+ () => F()
5227
5242
  ),
5228
5243
  // Canvas layer
5229
5244
  d.canvas(
@@ -5237,17 +5252,17 @@ function ys({
5237
5252
  // Annotation layer (for links, forms, etc.)
5238
5253
  d.div(r.class("bc-pdf-page-viewer__annotation-layer"))
5239
5254
  ),
5240
- te((p) => {
5255
+ ee((p) => {
5241
5256
  const y = p.querySelector(
5242
5257
  ".bc-pdf-page-viewer__canvas"
5243
- ), T = p.querySelector(
5258
+ ), I = p.querySelector(
5244
5259
  ".bc-pdf-page-viewer__text-layer"
5245
5260
  ), _ = p.querySelector(
5246
5261
  ".bc-pdf-page-viewer__annotation-layer"
5247
5262
  );
5248
5263
  return h.on(b, async ($) => {
5249
- await $.render(y, T, _);
5250
- }), H;
5264
+ await $.render(y, I, _);
5265
+ }), W;
5251
5266
  })
5252
5267
  )
5253
5268
  }))
@@ -5255,7 +5270,7 @@ function ys({
5255
5270
  }
5256
5271
  export {
5257
5272
  fr as ActionCard,
5258
- In as AnimatedToggle,
5273
+ Tn as AnimatedToggle,
5259
5274
  rt as AnimatedToggleClass,
5260
5275
  hs as AnnouncementBar,
5261
5276
  mr as AppShell,
@@ -5265,7 +5280,7 @@ export {
5265
5280
  gi as Base64Input,
5266
5281
  mi as Base64sInput,
5267
5282
  ca as BaseComboboxControl,
5268
- Tr as BaseComboboxTagsControl,
5283
+ Ir as BaseComboboxTagsControl,
5269
5284
  jt as BaseControl,
5270
5285
  oa as BaseDropdownControl,
5271
5286
  hi as BaseListControl,
@@ -5284,7 +5299,7 @@ export {
5284
5299
  hr as CenterH,
5285
5300
  Lo as CheckboxInput,
5286
5301
  ln as Chips,
5287
- Ee as CloseButton,
5302
+ Oe as CloseButton,
5288
5303
  aa as Collapse,
5289
5304
  us as CollapsibleSidebarGroup,
5290
5305
  ba as ColorController,
@@ -5313,13 +5328,13 @@ export {
5313
5328
  Pn as Expando,
5314
5329
  Dr as FileInput,
5315
5330
  Dn as FilesInput,
5316
- Ge as Flyout,
5317
- Tn as FocusTrap,
5331
+ Ze as Flyout,
5332
+ In as FocusTrap,
5318
5333
  Qr as FormStatus,
5319
5334
  Yt as Group,
5320
- X as Icon,
5335
+ Q as Icon,
5321
5336
  oe as InputContainer,
5322
- We as InputIcon,
5337
+ ze as InputIcon,
5323
5338
  ut as InputWrapper,
5324
5339
  jr as InstantInput,
5325
5340
  Cs as LOGICAL_PROPERTY_MAP,
@@ -5350,8 +5365,8 @@ export {
5350
5365
  wa as NotificationService,
5351
5366
  xa as NotificationViewport,
5352
5367
  Br as NullableBigintInput,
5353
- Ii as NullableDateInput,
5354
- Ti as NullableDateTimeInput,
5368
+ Ti as NullableDateInput,
5369
+ Ii as NullableDateTimeInput,
5355
5370
  _i as NullableDurationInput,
5356
5371
  $i as NullableEmailInput,
5357
5372
  Hr as NullableInstantInput,
@@ -5390,7 +5405,7 @@ export {
5390
5405
  gs as Ribbon,
5391
5406
  _t as ScrollablePanel,
5392
5407
  $n as SegmentedInput,
5393
- Ir as SelectTagsControl,
5408
+ Tr as SelectTagsControl,
5394
5409
  on as SelectTagsInput,
5395
5410
  cs as Sidebar,
5396
5411
  Pa as SidebarActiveLink,
@@ -5412,14 +5427,14 @@ export {
5412
5427
  Zt as Tag,
5413
5428
  Mr as TagsInput,
5414
5429
  Ui as TextArea,
5415
- Is as TextInput,
5430
+ Ts as TextInput,
5416
5431
  zt as Theme,
5417
5432
  _n as ThemeAppearance,
5418
5433
  xc as Toolbar,
5419
5434
  kc as ToolbarButton,
5420
5435
  Sc as ToolbarDivider,
5421
5436
  Cc as ToolbarGroup,
5422
- Ic as ToolbarSpacer,
5437
+ Tc as ToolbarSpacer,
5423
5438
  bs as Tooltip,
5424
5439
  ji as UUIDInput,
5425
5440
  Hi as UnionController,
@@ -5452,7 +5467,7 @@ export {
5452
5467
  Xr as createColorController,
5453
5468
  ft as createLocationMatcher,
5454
5469
  ii as createStandardSchema,
5455
- Ts as defaultLocale,
5470
+ Is as defaultLocale,
5456
5471
  _s as defaultMessages,
5457
5472
  lr as delaySignal,
5458
5473
  Yi as emitExpando,
@@ -5490,8 +5505,8 @@ export {
5490
5505
  kl as generateSemanticShadowVariables,
5491
5506
  Sl as generateSemanticSpacingVariables,
5492
5507
  Cl as generateSemanticTextShadowVariables,
5493
- Il as generateSemanticTokenVariables,
5494
- Tl as generateShadowVariables,
5508
+ Tl as generateSemanticTokenVariables,
5509
+ Il as generateShadowVariables,
5495
5510
  _l as generateSpacingVariables,
5496
5511
  $l as generateTextShadowVariables,
5497
5512
  Pl as generateTypographyVariables,
@@ -5547,7 +5562,7 @@ export {
5547
5562
  Ks as interactiveColors,
5548
5563
  Ms as isIndexedDBAvailable,
5549
5564
  Es as isRTLLocale,
5550
- Ta as isUrlMatch,
5565
+ Ia as isUrlMatch,
5551
5566
  Vn as isValidColor,
5552
5567
  kt as isValidHexColor,
5553
5568
  tc as isValidHslColor,
@@ -5590,20 +5605,20 @@ export {
5590
5605
  So as semanticTextShadowNames,
5591
5606
  me as sessionId,
5592
5607
  Co as shadows,
5593
- Io as spacing,
5608
+ To as spacing,
5594
5609
  fc as srgbToLinear,
5595
5610
  qo as standardSchemaResultToValidation,
5596
5611
  Rs as storeIconLocally,
5597
5612
  ui as string,
5598
5613
  Ko as taskToValidation,
5599
5614
  nl as textColors,
5600
- To as textShadows,
5615
+ Io as textShadows,
5601
5616
  al as themeColorNames,
5602
5617
  bc as toRgbaString,
5603
5618
  gc as transformEmptyStringToUndefined,
5604
5619
  mc as transformNullToUndefined,
5605
5620
  hc as transformUndefinedToNull,
5606
- Me as useAnimatedElementToggle,
5621
+ Ee as useAnimatedElementToggle,
5607
5622
  di as useAnimatedToggle,
5608
5623
  Qo as useController,
5609
5624
  pi as useFocusTrap,