@tempots/beatui 0.60.1 → 0.60.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (79) hide show
  1. package/dist/_commonjsHelpers-C6fGbg64.js +6 -0
  2. package/dist/_commonjsHelpers-DwGv2jUC.cjs +1 -0
  3. package/dist/{ar-B7Vs1jtG.cjs → ar-CZ-UB9pc.cjs} +1 -1
  4. package/dist/{ar-BOqk-mzn.js → ar-TEVFGyor.js} +1 -1
  5. package/dist/auth/index.cjs.js +1 -1
  6. package/dist/auth/index.es.js +4 -4
  7. package/dist/{de-CviZ-p_4.js → de-DAzM31i4.js} +1 -1
  8. package/dist/{de-DNjhUbYu.cjs → de-IZSle3Nd.cjs} +1 -1
  9. package/dist/{es-DxuZQTVE.js → es-C7Gx9dqG.js} +1 -1
  10. package/dist/{es-D82T2KKm.cjs → es-DYe8rpsj.cjs} +1 -1
  11. package/dist/{fa-C7eY3MZF.cjs → fa-CEbnfFly.cjs} +1 -1
  12. package/dist/{fa-BBySqLUh.js → fa-DKX_zJDi.js} +1 -1
  13. package/dist/{fr-DBCblSme.js → fr-BRfNV0Yj.js} +1 -1
  14. package/dist/{fr-DlXc2xhl.cjs → fr-CrG0l5HN.cjs} +1 -1
  15. package/dist/{he-1Czj0G0s.cjs → he-D6hsIiTH.cjs} +1 -1
  16. package/dist/{he-DUrHwGF6.js → he-DRAV97MO.js} +1 -1
  17. package/dist/{hi-BdJqIhvL.js → hi-BaZyjzct.js} +1 -1
  18. package/dist/{hi-DyWQTexo.cjs → hi-DyS6BNlk.cjs} +1 -1
  19. package/dist/hls.light.min-BHW1Af0w.js +8303 -0
  20. package/dist/hls.light.min-D3hUMpII.cjs +27 -0
  21. package/dist/{index-BLTlhUPG.cjs → index-BJxozmss.cjs} +21 -21
  22. package/dist/{index-D6_EcuJG.js → index-Bu4A7nbp.js} +1 -1
  23. package/dist/{index-CMIeO1pS.cjs → index-Ch-e3nx4.cjs} +1 -1
  24. package/dist/{index-yhjOw19A.js → index-nqoZcPdT.js} +2973 -3015
  25. package/dist/index.cjs.js +3 -3
  26. package/dist/index.es.js +627 -606
  27. package/dist/{it-BhqBuhZq.cjs → it-5c_IK4cL.cjs} +1 -1
  28. package/dist/{it-B7HY_G0n.js → it-TCCyUGRc.js} +1 -1
  29. package/dist/{ja-DavHeIBC.js → ja-Bpc6MfYs.js} +1 -1
  30. package/dist/{ja-Be1SXGQn.cjs → ja-VrfuPGN3.cjs} +1 -1
  31. package/dist/json-schema/index.cjs.js +8 -1
  32. package/dist/json-schema/index.es.js +8797 -35
  33. package/dist/{ko-Be3o52et.js → ko-BBN3tai6.js} +1 -1
  34. package/dist/{ko-BuyoVlmH.cjs → ko-BKSVpY_x.cjs} +1 -1
  35. package/dist/{modal-DT3cH1Kz.cjs → modal-DA0OKusk.cjs} +1 -1
  36. package/dist/{modal-BT2LwYlK.js → modal-DJDeFIxV.js} +2 -2
  37. package/dist/{nl-FD8OAOWL.cjs → nl-Bry6kgvp.cjs} +1 -1
  38. package/dist/{nl-DJIY4R0b.js → nl-CwXW1x3G.js} +1 -1
  39. package/dist/{notice-CUTUN2Kh.cjs → notice-BIcHmVnn.cjs} +1 -1
  40. package/dist/{notice-Cs95CTP3.js → notice-Cpso9PgQ.js} +1 -1
  41. package/dist/{pl-weZLWcSD.cjs → pl-CI2JMYK3.cjs} +1 -1
  42. package/dist/{pl-Bqoq63Fm.js → pl-utONv5st.js} +1 -1
  43. package/dist/prosemirror/index.cjs.js +1 -1
  44. package/dist/prosemirror/index.es.js +1 -1
  45. package/dist/{pt-7g4YVboz.js → pt-BKZlur2O.js} +1 -1
  46. package/dist/{pt-BuBrXOmS.cjs → pt-pg3nMUQB.cjs} +1 -1
  47. package/dist/{ru-hvj4lu1_.js → ru-B6HTgTqQ.js} +1 -1
  48. package/dist/{ru-Br9Wedcu.cjs → ru-DcagJ4uT.cjs} +1 -1
  49. package/dist/{toolbar-Bk_vLHOS.cjs → toolbar-CC22Z53U.cjs} +1 -1
  50. package/dist/{toolbar-ReCF2tBa.js → toolbar-_yJ-dm-Z.js} +1 -1
  51. package/dist/{tr-BSuvz1N5.cjs → tr-BabBuwqd.cjs} +1 -1
  52. package/dist/{tr-qxangEut.js → tr-DhELxnEm.js} +1 -1
  53. package/dist/translations-BRRDPpLp.cjs +1 -0
  54. package/dist/translations-ConAsIH1.js +67 -0
  55. package/dist/translations-DM5R5VZ0.cjs +1 -0
  56. package/dist/{translations-D5WRSMhS.js → translations-g3qGTkzw.js} +322 -308
  57. package/dist/types/components/json-schema/ajv-utils.d.ts +1 -3
  58. package/dist/{ur-DBg2MZvK.cjs → ur-BVE5ZRyR.cjs} +1 -1
  59. package/dist/{ur-CCcFf5OU.js → ur-CT09S1x5.js} +1 -1
  60. package/dist/{utils-3Mm1sj4Q.cjs → utils-B25pniId.cjs} +1 -1
  61. package/dist/{utils-CutcxfzK.js → utils-BRzdi3Gx.js} +2 -2
  62. package/dist/{vi-BAHqe-lr.js → vi-BsZzI9Fa.js} +1 -1
  63. package/dist/{vi-DeH8SXUt.cjs → vi-DvU7fKay.cjs} +1 -1
  64. package/dist/{zh-B-ZsrhFY.js → zh-BeCkrv4q.js} +1 -1
  65. package/dist/{zh-Ceo_KGzC.cjs → zh-CijYgDFA.cjs} +1 -1
  66. package/package.json +1 -1
  67. package/dist/2019-CSG1mHKh.cjs +0 -1
  68. package/dist/2019-xRoq64Hq.js +0 -163
  69. package/dist/2020-BxLJruSu.js +0 -191
  70. package/dist/2020-CySfMcC9.cjs +0 -1
  71. package/dist/hls-B5PliUq8.cjs +0 -40
  72. package/dist/hls-DLd3ClAs.js +0 -21741
  73. package/dist/index-B6myFAz5.js +0 -226
  74. package/dist/index-Cok4rljj.cjs +0 -8
  75. package/dist/index-DGQhsTxm.js +0 -8317
  76. package/dist/index-Duw9TkLf.cjs +0 -1
  77. package/dist/translations-BtsgtW4T.js +0 -47
  78. package/dist/translations-CGTcEchB.cjs +0 -1
  79. package/dist/translations-DmVvxPlr.cjs +0 -1
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 Ie, ForEach as Te, 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 I, 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 Te, 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 ye, 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-D5WRSMhS.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-D5WRSMhS.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 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";
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
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-Cs95CTP3.js";
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-Cs95CTP3.js";
12
- import { u as Me, A as rt, a as In, O as Wt, F as Tn } from "./modal-BT2LwYlK.js";
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-BT2LwYlK.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
+ 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 Ee, A as rt, a as In, O as Wt, F as Tn } from "./modal-DJDeFIxV.js";
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
- 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-CutcxfzK.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-CutcxfzK.js";
17
- import { g as ze, x as St } from "./timer-DzWb416P.js";
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 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-ReCF2tBa.js";
19
+ import { T as xc, a as kc, c as Sc, b as Cc, d as Ic } 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,
@@ -75,7 +75,7 @@ function En(e, t) {
75
75
  break;
76
76
  }
77
77
  case "outline": {
78
- const s = ye(t, "light"), o = ye(t, "dark"), i = ht(t, "light"), c = ht(t, "dark"), u = se(t, "light", "light"), l = se(t, "light", "dark");
78
+ const s = we(t, "light"), o = we(t, "dark"), i = ht(t, "light"), c = ht(t, "dark"), u = se(t, "light", "light"), l = se(t, "light", "dark");
79
79
  n.set("--badge-bg", "transparent"), n.set("--badge-text", s), n.set("--badge-bg-dark", "transparent"), n.set("--badge-text-dark", o), n.set("--badge-border", i), n.set("--badge-border-dark", c), a(
80
80
  u.backgroundColor,
81
81
  l.backgroundColor,
@@ -85,7 +85,7 @@ function En(e, t) {
85
85
  break;
86
86
  }
87
87
  case "default": {
88
- const s = ye(t, "light"), o = ye(t, "dark"), i = se(t, "light", "light"), c = se(t, "light", "dark");
88
+ const s = we(t, "light"), o = we(t, "dark"), i = se(t, "light", "light"), c = se(t, "light", "dark");
89
89
  n.set("--badge-bg", "var(--bg-background-light)"), n.set("--badge-text", s), n.set("--badge-bg-dark", "var(--bg-background-dark)"), n.set("--badge-text-dark", o), n.set("--badge-border", "var(--border-border-light)"), n.set("--badge-border-dark", "var(--border-border-dark)"), a(
90
90
  i.backgroundColor,
91
91
  c.backgroundColor,
@@ -95,7 +95,7 @@ function En(e, t) {
95
95
  break;
96
96
  }
97
97
  case "text": {
98
- const s = ye(t, "light"), o = ye(t, "dark"), i = se(t, "light", "light"), c = se(t, "light", "dark");
98
+ const s = we(t, "light"), o = we(t, "dark"), i = se(t, "light", "light"), c = se(t, "light", "dark");
99
99
  n.set("--badge-bg", "transparent"), n.set("--badge-text", s), n.set("--badge-bg-dark", "transparent"), n.set("--badge-text-dark", o), n.set("--badge-border", "transparent"), n.set("--badge-border-dark", "transparent"), a(
100
100
  i.backgroundColor,
101
101
  c.backgroundColor,
@@ -153,7 +153,7 @@ 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
158
  const f = (y) => y.dataTransfer?.types.includes("Files") ?? !1, g = (y, T) => T === "*/*" ? !0 : T.split(",").map(($) => $.trim()).some(($) => {
159
159
  if ($ === "*/*") return !0;
@@ -190,7 +190,7 @@ function cr({
190
190
  const T = y.target, _ = Array.from(T.files ?? []);
191
191
  _.length > 0 && (c.value = _, e(_, "click")), T.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
  ),
@@ -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}`,
@@ -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
421
  function T() {
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
+ T(), 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
480
  m(), T();
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
486
  m(), T();
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
  });
@@ -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),
@@ -716,13 +716,13 @@ function gr(e) {
716
716
  function fe(e, t) {
717
717
  return `bc-panel ${(Array.isArray(e) ? e : [e]).map((a) => `bc-panel--side-${a}`).join(" ")} bc-panel--shadow-${t}`;
718
718
  }
719
- function ve(e) {
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),
@@ -946,7 +946,7 @@ function mr({
946
946
  )((p, { displayAside: y }) => p && !y), k = I(
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 = I(
950
950
  a.menu != null,
951
951
  l,
952
952
  m.display
@@ -968,7 +968,7 @@ function mr({
968
968
  r.class(
969
969
  fe("none", n.banner.shadow ?? "none")
970
970
  ),
971
- ve(n.banner.color ?? "white"),
971
+ ye(n.banner.color ?? "white"),
972
972
  S.height("100%"),
973
973
  S.gridArea("banner"),
974
974
  n.banner.content
@@ -977,7 +977,7 @@ function mr({
977
977
  r.class(
978
978
  fe("bottom", n.header?.shadow ?? "none")
979
979
  ),
980
- ve(n.header?.color ?? "white"),
980
+ ye(n.header?.color ?? "white"),
981
981
  S.zIndex("20"),
982
982
  S.display(f ? "block" : "none"),
983
983
  S.gridArea("header"),
@@ -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),
@@ -1059,7 +1059,7 @@ function mr({
1059
1059
  )
1060
1060
  )
1061
1061
  ),
1062
- ve(n.menu?.color ?? "white"),
1062
+ ye(n.menu?.color ?? "white"),
1063
1063
  S.height(
1064
1064
  x.map(
1065
1065
  (p) => p === "float" ? "auto" : "100%"
@@ -1087,7 +1087,7 @@ function mr({
1087
1087
  m.status
1088
1088
  )((p, y) => p === "block" ? "opened" : y)
1089
1089
  }),
1090
- S.width(Ie(n.menu?.width, l.$.menuWidth)),
1090
+ S.width(Te(n.menu?.width, l.$.menuWidth)),
1091
1091
  S.bottom("0"),
1092
1092
  n.menu?.content
1093
1093
  ) : null,
@@ -1100,7 +1100,7 @@ function mr({
1100
1100
  n.mainHeader?.shadow ?? "none"
1101
1101
  )
1102
1102
  ),
1103
- ve(n.mainHeader?.color ?? "white"),
1103
+ ye(n.mainHeader?.color ?? "white"),
1104
1104
  n.mainHeader.content
1105
1105
  ) : null,
1106
1106
  d.main(
@@ -1110,7 +1110,7 @@ function mr({
1110
1110
  r.class(
1111
1111
  fe("none", n.main?.shadow ?? "none")
1112
1112
  ),
1113
- ve(n.main?.color ?? "white"),
1113
+ ye(n.main?.color ?? "white"),
1114
1114
  n.main.content
1115
1115
  ),
1116
1116
  n.mainFooter ? d.footer(
@@ -1122,11 +1122,11 @@ function mr({
1122
1122
  n.mainFooter?.shadow ?? "none"
1123
1123
  )
1124
1124
  ),
1125
- ve(n.mainFooter?.color ?? "white"),
1125
+ ye(n.mainFooter?.color ?? "white"),
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"),
@@ -1138,7 +1138,7 @@ function mr({
1138
1138
  (p) => p === "float" ? fe("left", "md") : fe("left", "none")
1139
1139
  )
1140
1140
  ),
1141
- ve("white"),
1141
+ ye("white"),
1142
1142
  S.height("100%"),
1143
1143
  S.gridArea("aside"),
1144
1144
  S.display(
@@ -1162,14 +1162,14 @@ function mr({
1162
1162
  )((p, y) => p === "block" ? "opened" : y)
1163
1163
  }),
1164
1164
  S.width(
1165
- Ie(n.aside?.width, l.$.asideWidth)
1165
+ Te(n.aside?.width, l.$.asideWidth)
1166
1166
  ),
1167
1167
  S.bottom(v.map((p) => `${p}px`)),
1168
1168
  n.aside.content
1169
1169
  ) : null,
1170
1170
  n.footer ? d.footer(
1171
1171
  r.class(fe("top", "none")),
1172
- ve("white"),
1172
+ ye("white"),
1173
1173
  S.height("100%"),
1174
1174
  S.gridArea("footer"),
1175
1175
  n.footer.content
@@ -1195,13 +1195,13 @@ function vr({ gap: e = "lg" } = {}, ...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);
1204
+ const c = Z(null);
1205
1205
  return I(
1206
1206
  a,
1207
1207
  i.$.height
@@ -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"}`)
@@ -1249,7 +1249,7 @@ 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 = Tt(s), y = Tt(k), T = Z(16);
1253
1253
  return d.div(
1254
1254
  r.class("bc-nine-slice-container"),
1255
1255
  De((_) => {
@@ -1257,132 +1257,132 @@ function yr({
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 = I(
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 = I(
1265
1265
  t,
1266
1266
  $
1267
- )((L, O) => L > BigInt(O)), V = I(
1267
+ )((A, N) => A > BigInt(N)), L = I(
1268
1268
  n,
1269
1269
  P
1270
- )((L, O) => L > BigInt(O)), E = I(
1270
+ )((A, N) => A > BigInt(N)), R = I(
1271
1271
  $,
1272
- V,
1272
+ L,
1273
1273
  T
1274
- )((L, O, q) => O ? L - q : L), R = I(
1274
+ )((A, N, q) => N ? A - q : A), E = I(
1275
1275
  P,
1276
1276
  C,
1277
1277
  T
1278
- )((L, O, q) => O ? L - q : L), j = I(
1278
+ )((A, N, q) => N ? A - q : A), j = I(
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 = I(
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
1290
  I(
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
1307
  I(
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,
1318
+ ), Ve = I(
1319
+ L,
1320
1320
  T
1321
- )((L, O) => L ? `${O}px` : "0"), ue = I(
1321
+ )((A, N) => A ? `${N}px` : "0"), ue = I(
1322
1322
  C,
1323
1323
  T
1324
- )((L, O) => L ? `${O}px` : "0"), Oe = S.transform(
1324
+ )((A, N) => A ? `${N}px` : "0"), Ne = S.transform(
1325
1325
  I(
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)`)
1336
- ), xe = S.transform(
1337
- x.map((L) => `translateY(-${L}px)`)
1338
- ), Fe = I(
1334
+ ), Fe = S.transform(
1335
+ b.map((A) => `translateX(-${A}px)`)
1336
+ ), ke = S.transform(
1337
+ x.map((A) => `translateY(-${A}px)`)
1338
+ ), Re = I(
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, ke = 0, Se = 0;
1341
+ )((A, N) => A - BigInt(Math.max(1, N))), $e = I(
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;
1348
- if (q && Se !== 0) {
1347
+ const A = Re.value, N = $e.value, q = L.value, D = C.value;
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
- x.value + BigInt(Math.round(Se))
1353
+ x.value + BigInt(Math.round(Ce))
1354
1354
  )
1355
1355
  );
1356
1356
  x.set(B);
1357
1357
  }
1358
- if (D && ke !== 0) {
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
- b.value + BigInt(Math.round(ke))
1363
+ b.value + BigInt(Math.round(Se))
1364
1364
  )
1365
1365
  );
1366
1366
  b.set(B);
1367
1367
  }
1368
- ke = 0, Se = 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
- ke += O, Se += 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
@@ -1424,7 +1424,7 @@ function yr({
1424
1424
  // style.width(sidebarStartWidthPx),
1425
1425
  d.div(
1426
1426
  r.class("bc-nine-slice-pane-content"),
1427
- xe,
1427
+ ke,
1428
1428
  g
1429
1429
  )
1430
1430
  ) : null,
@@ -1437,20 +1437,20 @@ 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),
1451
1451
  d.div(
1452
1452
  r.class("bc-nine-slice-pane-content"),
1453
- xe,
1453
+ ke,
1454
1454
  m
1455
1455
  )
1456
1456
  ) : null,
@@ -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
@@ -1493,14 +1493,14 @@ function yr({
1493
1493
  S.left("0"),
1494
1494
  S.right(
1495
1495
  I(
1496
- V,
1496
+ L,
1497
1497
  T
1498
- )((L, O) => L ? `${O}px` : "0")
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,15 +1508,15 @@ 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
- const B = q / D, U = _e.value;
1519
+ const B = q / D, U = $e.value;
1520
1520
  b.set(
1521
1521
  BigInt(Math.round(Number(U) * B))
1522
1522
  );
@@ -1532,12 +1532,12 @@ function yr({
1532
1532
  I(
1533
1533
  C,
1534
1534
  T
1535
- )((L, O) => L ? `${O}px` : "0")
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(
@@ -1550,15 +1550,15 @@ function yr({
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");
@@ -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
  }),
@@ -1635,7 +1635,7 @@ function wr({ variant: e = "default", size: t = "md", roundedness: n = "lg" } =
1635
1635
  ...a
1636
1636
  );
1637
1637
  }
1638
- const we = {
1638
+ const xe = {
1639
1639
  value: (e, t, {
1640
1640
  disabled: n,
1641
1641
  before: a,
@@ -1662,9 +1662,9 @@ const we = {
1662
1662
  }),
1663
1663
  break: { type: "break" },
1664
1664
  getValues: (e) => e.flatMap(
1665
- (t) => t.type === "group" ? we.getValues(t.options) : t.type === "break" ? [] : [t.value]
1665
+ (t) => t.type === "group" ? xe.getValues(t.options) : t.type === "break" ? [] : [t.value]
1666
1666
  ),
1667
- contains: (e, t, n = (a, s) => a === s) => we.getValues(e).some((a) => n(a, t))
1667
+ contains: (e, t, n = (a, s) => a === s) => xe.getValues(e).some((a) => n(a, t))
1668
1668
  }, qt = (e) => {
1669
1669
  const {
1670
1670
  onChange: t,
@@ -1676,12 +1676,12 @@ const we = {
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 = we.getValues(h.get(o));
1684
+ const T = xe.getValues(h.get(o));
1685
1685
  switch (y.key) {
1686
1686
  case "ArrowDown": {
1687
1687
  if (y.preventDefault(), !f.value)
@@ -1708,7 +1708,7 @@ const we = {
1708
1708
  _ != null && b(_);
1709
1709
  } else {
1710
1710
  c?.();
1711
- const _ = we.getValues(h.get(o));
1711
+ const _ = xe.getValues(h.get(o));
1712
1712
  f.set(!0), _.length > 0 && (g.set(0), k.set(_[0])), setTimeout(() => u?.(), 0);
1713
1713
  }
1714
1714
  break;
@@ -1720,7 +1720,7 @@ const we = {
1720
1720
  case " ": {
1721
1721
  if (h.get(i)) {
1722
1722
  y.preventDefault();
1723
- const _ = we.getValues(h.get(o));
1723
+ const _ = xe.getValues(h.get(o));
1724
1724
  f.set(!f.value), f.value && _.length > 0 && (g.set(0), k.set(_[0]));
1725
1725
  }
1726
1726
  break;
@@ -1733,14 +1733,14 @@ const we = {
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(
1742
+ De((y) => F(
1743
+ ee((T) => (v = T, T.addEventListener("keydown", p), re(
1744
1744
  () => T.removeEventListener("keydown", p)
1745
1745
  ))),
1746
1746
  pe(e),
@@ -1758,14 +1758,14 @@ const we = {
1758
1758
  (T, _) => T && _ != 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) => {
1768
+ ee((T) => {
1769
1769
  x = T;
1770
1770
  }),
1771
1771
  S.minWidth(y.$.width.map((T) => `${T - 10}px`)),
@@ -1794,11 +1794,11 @@ const we = {
1794
1794
  _();
1795
1795
  else {
1796
1796
  c?.();
1797
- const C = we.getValues(h.get(o));
1797
+ const C = xe.getValues(h.get(o));
1798
1798
  f.set(!0), C.length > 0 && (g.set(0), k.set(C[0])), T(), 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,7 +1806,7 @@ const we = {
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) => {
@@ -1835,8 +1835,8 @@ const we = {
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"),
@@ -1857,7 +1857,7 @@ const we = {
1857
1857
  r.role("group"),
1858
1858
  M.label(i.$.group),
1859
1859
  d.div(r.class("bc-dropdown__group-label"), i.$.group),
1860
- Te(
1860
+ _e(
1861
1861
  i.$.options,
1862
1862
  (c) => Kt(
1863
1863
  c,
@@ -1903,12 +1903,12 @@ const we = {
1903
1903
  () => c,
1904
1904
  () => ne(
1905
1905
  le,
1906
- (l) => Ie(o, a, l.$.selectOne)
1906
+ (l) => Te(o, a, l.$.selectOne)
1907
1907
  )
1908
1908
  ),
1909
1909
  optionsSource: n,
1910
1910
  allowSpaceToggle: u,
1911
- buildListboxContent: ({ focusedValue: l, onSelect: f }) => Te(
1911
+ buildListboxContent: ({ focusedValue: l, onSelect: f }) => _e(
1912
1912
  n,
1913
1913
  (g) => Kt(g, s, t, f, l)
1914
1914
  )
@@ -1924,7 +1924,7 @@ const we = {
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) => {
@@ -1954,8 +1954,8 @@ const we = {
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"),
@@ -1979,7 +1979,7 @@ const we = {
1979
1979
  r.role("group"),
1980
1980
  M.label(c.$.group),
1981
1981
  d.div(r.class("bc-dropdown__group-label"), c.$.group),
1982
- Te(
1982
+ _e(
1983
1983
  c.$.options,
1984
1984
  (u) => Qt(
1985
1985
  u,
@@ -2003,7 +2003,7 @@ const we = {
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;
@@ -2037,7 +2037,7 @@ const we = {
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: T }) => F(
2041
2041
  // Search input at the top
2042
2042
  d.div(
2043
2043
  r.class("bc-dropdown__search"),
@@ -2051,21 +2051,21 @@ const we = {
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
- () => Te(
2068
+ () => _e(
2069
2069
  g,
2070
2070
  (_) => Qt(
2071
2071
  _,
@@ -2105,44 +2105,44 @@ 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
+ T(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
+ T(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":
@@ -2155,8 +2155,8 @@ function Xt(e) {
2155
2155
  P.preventDefault(), P.stopPropagation(), C.length > 0 && T(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"));
@@ -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
2181
  C >= 0 && T(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
  })
@@ -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 = {}) {
@@ -2350,7 +2350,7 @@ function ln(e) {
2350
2350
  const { values: t, options: n, equality: a, disabled: s, onRemove: o } = e;
2351
2351
  return bn(
2352
2352
  t,
2353
- () => Te(
2353
+ () => _e(
2354
2354
  t,
2355
2355
  (i) => Zt({
2356
2356
  value: I(
@@ -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"
@@ -2467,7 +2467,7 @@ 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) => {
@@ -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,
@@ -2569,11 +2569,11 @@ function cn(e) {
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
  ),
@@ -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) => {
@@ -2639,7 +2639,7 @@ const $r = (e) => {
2639
2639
  convertError: String,
2640
2640
  success: ({ value: t }) => {
2641
2641
  const n = t.map(
2642
- (a) => a.map((s) => typeof s == "object" && "id" in s && "label" in s ? we.value(s.id, s.label) : s)
2642
+ (a) => a.map((s) => typeof s == "object" && "id" in s && "label" in s ? xe.value(s.id, s.label) : s)
2643
2643
  );
2644
2644
  return Gt({
2645
2645
  ...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 {
@@ -2687,8 +2687,8 @@ const $r = (e) => {
2687
2687
  )((b, p) => p == null ? !0 : (b ?? 0n) < p), x = (b, p) => {
2688
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;
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"),
@@ -2703,9 +2703,9 @@ const $r = (e) => {
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"),
@@ -2718,12 +2718,12 @@ const $r = (e) => {
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) => {
@@ -2765,10 +2765,10 @@ const $r = (e) => {
2765
2765
  const T = p ?? 0n;
2766
2766
  return y == null ? !0 : T < 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 T = h.get(t) ?? 0n, _ = h.get(n), $ = y?.shiftKey ? 10n : 1n, P = T + _ * $ * 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 !== T && o && o(R);
2772
2772
  };
2773
2773
  return dt(
2774
2774
  r.class("bc-number-input-steppers"),
@@ -2783,9 +2783,9 @@ const $r = (e) => {
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"),
@@ -2798,12 +2798,12 @@ const $r = (e) => {
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,14 +2829,14 @@ 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
- Te(
2839
+ _e(
2840
2840
  t,
2841
2841
  (u) => Zt({
2842
2842
  value: u,
@@ -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",
@@ -3206,7 +3206,7 @@ function ts({
3206
3206
  e,
3207
3207
  (i) => i.map((c) => {
3208
3208
  let u = c.name;
3209
- return c.nativeName != null && c.nativeName !== c.name && (u += ` (${c.nativeName})`), we.value(c.code, u);
3209
+ return c.nativeName != null && c.nativeName !== c.name && (u += ` (${c.nativeName})`), xe.value(c.code, u);
3210
3210
  })
3211
3211
  ),
3212
3212
  value: s,
@@ -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?.(), () => {
@@ -3436,18 +3436,18 @@ 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(
3450
- () => import("./translations-BtsgtW4T.js"),
3450
+ () => import("./translations-ConAsIH1.js"),
3451
3451
  ({ AuthI18n: f }) => Ot(f, {}, () => l)
3452
3452
  ) : l;
3453
3453
  });
@@ -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, T, _, $, 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}`), T != null && E.push(`pagemode=${T}`), _ === !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
  );
@@ -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, T, _, $, 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}`), T != null && (typeof T == "string" ? G.push(`zoom=${T}`) : G.push(`zoom=${T}`)), _ != 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 : Te(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", Ie(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", Te(e.twitterTitle, e.title))
3650
3650
  ), t.push(
3651
3651
  be(
3652
3652
  "twitter:description",
3653
- Ie(e.twitterDescription, e.description)
3653
+ Te(e.twitterDescription, e.description)
3654
3654
  )
3655
3655
  ), t.push(
3656
- be("twitter:image", Ie(e.twitterImage, e.image))
3656
+ be("twitter:image", Te(e.twitterImage, e.image))
3657
3657
  ), t.push(
3658
3658
  be(
3659
3659
  "twitter:image:alt",
3660
- Ie(e.twitterImageAlt, e.imageAlt)
3660
+ Te(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 = ({
@@ -3689,7 +3689,7 @@ function Dt(e, t) {
3689
3689
  return n.join(" ");
3690
3690
  }
3691
3691
  function Lt(e) {
3692
- const t = ye(e, "light"), n = ye(e, "dark");
3692
+ const t = we(e, "light"), n = we(e, "dark");
3693
3693
  return [
3694
3694
  `--link-color: ${t}`,
3695
3695
  `--link-color-dark: ${n}`,
@@ -3796,7 +3796,7 @@ 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
3802
  ), c = I(
@@ -3829,7 +3829,7 @@ 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) => {
3832
+ return c !== void 0 || u !== void 0 ? ne(Me, (v) => {
3833
3833
  const x = c !== void 0 ? v.matchSignal(ft(e, c)) : I(v.location)(() => !1), b = I(
3834
3834
  x,
3835
3835
  u
@@ -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,22 +4139,22 @@ 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 = I(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 " ":
@@ -4203,8 +4203,8 @@ 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
4209
  const b = I(n)((_) => _ === v.key), p = I(
4210
4210
  c,
@@ -4238,11 +4238,11 @@ function ps(e) {
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
4294
  const y = I(
4295
4295
  v != null,
4296
4296
  g
4297
- )((_, $) => _ || $), T = te((_) => {
4298
- const $ = Me({
4297
+ )((_, $) => _ || $), T = ee((_) => {
4298
+ const $ = Ee({
4299
4299
  initialStatus: "closed",
4300
4300
  element: _
4301
4301
  });
@@ -4303,8 +4303,8 @@ 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
4310
  I(
@@ -4312,14 +4312,14 @@ function fs(e) {
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),
@@ -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)
@@ -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}`,
@@ -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: () => {
@@ -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,
@@ -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 {
@@ -4660,14 +4660,14 @@ function vs(e) {
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,20 +4708,20 @@ function vs(e) {
4708
4708
  }
4709
4709
  if (typeof window > "u") return;
4710
4710
  try {
4711
- const Z = await import("./hls-DLd3ClAs.js"), Ve = Z;
4712
- let Ce = Ve.default ?? Ve.Hls ?? Z;
4713
- for (let $e = 0; $e < 3 && (typeof Ce == "object" && Ce != null && "default" in Ce); $e++)
4714
- Ce = Ce.default;
4715
- if (typeof Ce == "function") {
4716
- const $e = Ce;
4717
- if (typeof $e.isSupported == "function" && $e.isSupported()) {
4711
+ const J = await import("./hls.light.min-BHW1Af0w.js").then((ve) => ve.h), Be = J;
4712
+ let Ie = Be.default ?? Be.Hls ?? J;
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;
4717
+ if (typeof ve.isSupported == "function" && ve.isSupported()) {
4718
4718
  D.removeAttribute("src");
4719
4719
  try {
4720
4720
  D.load();
4721
4721
  } catch {
4722
4722
  }
4723
- const Qe = new $e(w?.hls);
4724
- ie = Qe, Qe.attachMedia(D), Qe.loadSource(B);
4723
+ const Qe = new ve(w?.hls);
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,85 +4751,85 @@ 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
  }
4769
- function xe(D) {
4769
+ function ke(D) {
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(
4793
- h.map(f, xe)
4793
+ h.map(f, ke)
4794
4794
  ),
4795
4795
  S.height(
4796
- h.map(g, xe)
4796
+ h.map(g, ke)
4797
4797
  ),
4798
4798
  // Events
4799
- A.play(() => b?.()),
4800
- A.playing(() => {
4799
+ V.play(() => b?.()),
4800
+ V.playing(() => {
4801
4801
  x?.(), T?.();
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, ke = null;
4815
- function Se() {
4814
+ let $e = null, z = null, Se = null;
4815
+ function Ce() {
4816
4816
  const D = h.get(t);
4817
- !_e || typeof D != "string" || Ra().then((B) => {
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
4834
  b?.(), T?.();
4835
4835
  break;
@@ -4844,95 +4844,95 @@ 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
  }
4853
4853
  });
4854
4854
  }
4855
4855
  function Ke() {
4856
- ke?.();
4856
+ Se?.();
4857
4857
  const D = h.get(k) ?? 1e3;
4858
- ke = St(() => {
4859
- if (!W) return;
4860
- const B = W.getDuration?.() ?? 0, U = W.getCurrentTime?.() ?? 0, Z = W.getVideoLoadedFraction?.() ?? 0;
4861
- V?.({
4858
+ Se = St(() => {
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) => {
4893
- _e = D, Se(), v?.();
4891
+ const N = d.div(
4892
+ ee((D) => {
4893
+ $e = D, Ce(), v?.();
4894
4894
  })
4895
4895
  );
4896
4896
  ue.push(
4897
4897
  h.on(t, () => {
4898
- Y.value === "youtube" && Se();
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,29 +4941,29 @@ 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(
4953
4953
  r.class("bc-base-video"),
4954
4954
  S.width(
4955
- h.map(f, xe)
4955
+ h.map(f, ke)
4956
4956
  ),
4957
4957
  S.height(
4958
- h.map(g, xe)
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,7 +5047,7 @@ 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);
@@ -5063,7 +5063,7 @@ function ys({
5063
5063
  i,
5064
5064
  c,
5065
5065
  x
5066
- )((b, p, y, T, _, $, P, C, V) => ({
5066
+ )((b, p, y, T, _, $, P, C, L) => ({
5067
5067
  source: b,
5068
5068
  page: p,
5069
5069
  fit: y,
@@ -5072,8 +5072,8 @@ function ys({
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;
@@ -5085,25 +5085,25 @@ function ys({
5085
5085
  if (b.fit === "none")
5086
5086
  _ = b.scale;
5087
5087
  else {
5088
- const C = T.getViewport({
5088
+ const L = T.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
  }
@@ -5114,6 +5114,7 @@ function ys({
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 = T.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 T.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 T.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,23 +5177,23 @@ function ys({
5156
5177
  cachePageRef: () => {
5157
5178
  }
5158
5179
  };
5159
- await new Y({
5180
+ await new O({
5160
5181
  div: E,
5161
5182
  page: T,
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,
5189
+ annotations: H,
5169
5190
  page: T,
5170
- linkService: F,
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
  }
@@ -5187,7 +5208,7 @@ function ys({
5187
5208
  },
5188
5209
  pending: () => d.div(
5189
5210
  r.class("bc-pdf-page-viewer__loading"),
5190
- X({
5211
+ Q({
5191
5212
  icon: "line-md:loading-twotone-loop",
5192
5213
  size: "lg"
5193
5214
  }),
@@ -5198,7 +5219,7 @@ function ys({
5198
5219
  ),
5199
5220
  failure: ({ error: b }) => d.div(
5200
5221
  r.class("bc-pdf-page-viewer__error"),
5201
- X({
5222
+ Q({
5202
5223
  icon: "line-md:alert-circle",
5203
5224
  size: "lg",
5204
5225
  color: "danger"
@@ -5223,7 +5244,7 @@ function ys({
5223
5244
  (p) => `width: ${p}px; height: ${b.value.canvasHeight}px;`
5224
5245
  )
5225
5246
  ),
5226
- () => N()
5247
+ () => F()
5227
5248
  ),
5228
5249
  // Canvas layer
5229
5250
  d.canvas(
@@ -5237,7 +5258,7 @@ function ys({
5237
5258
  // Annotation layer (for links, forms, etc.)
5238
5259
  d.div(r.class("bc-pdf-page-viewer__annotation-layer"))
5239
5260
  ),
5240
- te((p) => {
5261
+ ee((p) => {
5241
5262
  const y = p.querySelector(
5242
5263
  ".bc-pdf-page-viewer__canvas"
5243
5264
  ), T = p.querySelector(
@@ -5247,7 +5268,7 @@ function ys({
5247
5268
  );
5248
5269
  return h.on(b, async ($) => {
5249
5270
  await $.render(y, T, _);
5250
- }), H;
5271
+ }), W;
5251
5272
  })
5252
5273
  )
5253
5274
  }))
@@ -5284,7 +5305,7 @@ export {
5284
5305
  hr as CenterH,
5285
5306
  Lo as CheckboxInput,
5286
5307
  ln as Chips,
5287
- Ee as CloseButton,
5308
+ Oe as CloseButton,
5288
5309
  aa as Collapse,
5289
5310
  us as CollapsibleSidebarGroup,
5290
5311
  ba as ColorController,
@@ -5313,13 +5334,13 @@ export {
5313
5334
  Pn as Expando,
5314
5335
  Dr as FileInput,
5315
5336
  Dn as FilesInput,
5316
- Ge as Flyout,
5337
+ Ze as Flyout,
5317
5338
  Tn as FocusTrap,
5318
5339
  Qr as FormStatus,
5319
5340
  Yt as Group,
5320
- X as Icon,
5341
+ Q as Icon,
5321
5342
  oe as InputContainer,
5322
- We as InputIcon,
5343
+ ze as InputIcon,
5323
5344
  ut as InputWrapper,
5324
5345
  jr as InstantInput,
5325
5346
  Cs as LOGICAL_PROPERTY_MAP,
@@ -5374,7 +5395,7 @@ export {
5374
5395
  Fo as ObjectController,
5375
5396
  si as ObjectValidator,
5376
5397
  ls as OpenGraph,
5377
- we as Option,
5398
+ xe as Option,
5378
5399
  Wt as Overlay,
5379
5400
  rs as PDFJSPreview,
5380
5401
  cr as PageDropZone,
@@ -5603,7 +5624,7 @@ export {
5603
5624
  gc as transformEmptyStringToUndefined,
5604
5625
  mc as transformNullToUndefined,
5605
5626
  hc as transformUndefinedToNull,
5606
- Me as useAnimatedElementToggle,
5627
+ Ee as useAnimatedElementToggle,
5607
5628
  di as useAnimatedToggle,
5608
5629
  Qo as useController,
5609
5630
  pi as useFocusTrap,