@tempots/beatui 0.83.5 → 0.85.0

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 (63) hide show
  1. package/dist/beatui.css +840 -428
  2. package/dist/beatui.tailwind.css +840 -428
  3. package/dist/{index-C2_iX1um.cjs → index-4GQLcxme.cjs} +1 -1
  4. package/dist/{index-DiEcd7ZV.js → index-BFe-x3-z.js} +2 -2
  5. package/dist/index-BywbRDsb.cjs +1 -0
  6. package/dist/{index-Bm43lZqE.cjs → index-BzRuy4V1.cjs} +3 -3
  7. package/dist/{index-Di1_W_7Q.js → index-D2_J_-XS.js} +46 -45
  8. package/dist/{index-CEqc0H3v.js → index-DfJMDwSU.js} +1 -1
  9. package/dist/{index-CCMjK4fD.js → index-KNk3k6NI.js} +1 -1
  10. package/dist/{index-BS31JX7x.cjs → index-anrXec7K.cjs} +1 -1
  11. package/dist/{index-C32iUFIr.js → index-vzoI95E1.js} +3 -3
  12. package/dist/{index-BZYWyjM_.cjs → index-yMrXbIdg.cjs} +1 -1
  13. package/dist/index.cjs.js +4 -4
  14. package/dist/index.es.js +865 -848
  15. package/dist/json-schema/index.cjs.js +1 -1
  16. package/dist/json-schema/index.es.js +2 -2
  17. package/dist/lexical/index.cjs.js +2 -2
  18. package/dist/lexical/index.es.js +5 -5
  19. package/dist/lexical.css +79 -79
  20. package/dist/markdown/index.cjs.js +1 -1
  21. package/dist/markdown/index.es.js +1 -1
  22. package/dist/menu-DMAhcoJ2.js +377 -0
  23. package/dist/menu-q8xJaBIb.cjs +1 -0
  24. package/dist/monaco/index.cjs.js +2 -2
  25. package/dist/monaco/index.es.js +2 -2
  26. package/dist/prosemirror/index.cjs.js +1 -1
  27. package/dist/prosemirror/index.es.js +1 -1
  28. package/dist/prosemirror.css +10 -10
  29. package/dist/styles-url-BSUFsmMD.cjs +1 -0
  30. package/dist/styles-url-BvcVGpBJ.js +4 -0
  31. package/dist/styles-url-BzPix7VR.cjs +1 -0
  32. package/dist/styles-url-CCopc5pG.js +4 -0
  33. package/dist/styles-url-CEDSZTyZ.cjs +1 -0
  34. package/dist/styles-url-CSXq0ZRz.js +4 -0
  35. package/dist/styles-url-DZhZ-9Bf.js +4 -0
  36. package/dist/styles-url-YAJ6Q1GS.cjs +1 -0
  37. package/dist/tailwind/preset.cjs.js +1 -1
  38. package/dist/tailwind/preset.es.js +18 -18
  39. package/dist/tailwind/vite-plugin.cjs.js +12 -15
  40. package/dist/tailwind/vite-plugin.es.js +178 -181
  41. package/dist/{theme-B5pmbvQ_.js → theme-BzpMLdvH.js} +6 -6
  42. package/dist/theme-DogY9oT1.cjs +1 -0
  43. package/dist/types/components/form/input/advanced-slider.d.ts +1 -1
  44. package/dist/types/components/form/input/combobox-input.d.ts +2 -0
  45. package/dist/types/components/form/input/switch.d.ts +2 -1
  46. package/dist/types/components/theme/theme.d.ts +5 -4
  47. package/dist/types/tailwind/preset.d.ts +1 -1
  48. package/dist/widget-customization-BngYjPvO.cjs +1 -0
  49. package/dist/{widget-customization-0is7oTeP.js → widget-customization-D-Vvr4vg.js} +300 -329
  50. package/package.json +1 -1
  51. package/dist/index-DH37GTQj.cjs +0 -1
  52. package/dist/menu-CX72LaZ3.cjs +0 -1
  53. package/dist/menu-D_slbwl8.js +0 -374
  54. package/dist/styles-url-B3p8AqBy.cjs +0 -1
  55. package/dist/styles-url-COuz9fVH.js +0 -4
  56. package/dist/styles-url-CVCcF0ra.cjs +0 -1
  57. package/dist/styles-url-CZUL_YRT.cjs +0 -1
  58. package/dist/styles-url-CzNVxeM7.js +0 -4
  59. package/dist/styles-url-D8MjxiP-.cjs +0 -1
  60. package/dist/styles-url-DUdp56Ts.js +0 -4
  61. package/dist/styles-url-DpP5gepF.js +0 -4
  62. package/dist/theme-Dt6lCAvY.cjs +0 -1
  63. package/dist/widget-customization-B-LmxkPE.cjs +0 -1
package/dist/index.es.js CHANGED
@@ -1,28 +1,28 @@
1
- import { prop as H, html as l, attr as a, computedOf as x, Value as m, Ensure as ve, aria as T, OneOfValue as kt, on as I, ForEach as ie, When as E, Fragment as Q, OnDispose as fe, style as D, WithElement as re, Repeat as Dn, Use as ne, Empty as z, input as De, emitValue as de, Unless as In, coalesce as me, OneOfType as Ut, NotEmpty as Tn, emitValueAsDate as Ln, MapSignal as Pn, Portal as ut, makeProviderMark as zt, WithBrowserCtx as Mn, renderWithContext as An, WithProvider as Bn, Task as Vn, Provide as Ht, dataAttr as Wt, svg as xt, svgAttr as Ct, delaySignal as En } from "@tempots/dom";
1
+ import { prop as H, html as l, attr as a, computedOf as x, Value as m, Ensure as ve, aria as T, OneOfValue as kt, on as I, ForEach as ie, When as B, Fragment as Q, OnDispose as fe, style as D, WithElement as re, Repeat as Dn, Use as ne, Empty as z, input as De, emitValue as de, Unless as In, coalesce as me, OneOfType as Ut, NotEmpty as Tn, emitValueAsDate as Ln, MapSignal as Pn, Portal as ut, makeProviderMark as zt, WithBrowserCtx as Mn, renderWithContext as An, WithProvider as Bn, Task as Vn, Provide as Ht, dataAttr as Wt, svg as xt, svgAttr as Ct, delaySignal as En } from "@tempots/dom";
2
2
  import { Use as Jo } from "@tempots/dom";
3
3
  import { ElementRect as Fe, WindowSize as Nn, Query as Yt, Location as He, NavigationService as Rn, Anchor as dt } from "@tempots/ui";
4
4
  import { I as K, b as G, h as te, t as pe, a as Me, B as oe, L as pt } from "./translations-BGblCUBj.js";
5
5
  import { o as Xo, c as Qo, d as el, f as tl, k as nl, j as al, g as sl, n as rl, p as ol, i as ll, l as il, m as cl, e as ul, r as dl, s as pl } from "./translations-BGblCUBj.js";
6
6
  import { c as Se } from "./colors-BmLYKmoH.js";
7
7
  import { b as fl, h as gl, j as ml, e as hl, d as vl, o as yl, g as _l, a as wl, m as kl, k as xl, n as Cl, r as $l, s as Sl, f as Dl, i as Il, t as Tl } from "./colors-BmLYKmoH.js";
8
- import { e as On } from "./index-Di1_W_7Q.js";
9
- import { J as Pl, aa as Ml, v as Al, j as Bl, L as Vl, P as El, K as Nl, M as Rl, h as Ol, n as jl, f as Fl, a as Ul, ai as zl, q as Hl, a5 as Wl, al as Yl, u as Gl, I as ql, B as Zl, as as Jl, g as Kl, F as Xl, y as Ql, aq as ei, a4 as ti, a9 as ni, T as ai, c as si, af as ri, ae as oi, m as li, l as ii, k as ci, a1 as ui, a0 as di, V as pi, U as bi, S as fi, R as gi, X as mi, W as hi, $ as vi, _ as yi, Z as _i, Y as wi, ad as ki, d as xi, ah as Ci, ag as $i, p as Si, o as Di, a3 as Ii, a2 as Ti, ak as Li, t as Pi, H as Mi, A as Ai, ar as Bi, E as Vi, D as Ei, x as Ni, b as Ri, ap as Oi, ao as ji, i as Fi, a8 as Ui, a7 as zi, O as Hi, N as Wi, ab as Yi, ac as Gi, r as qi, Q as Zi, aj as Ji, s as Ki, G as Xi, z as Qi, an as ec, C as tc, w as nc, am as ac, a6 as sc } from "./index-Di1_W_7Q.js";
8
+ import { e as On } from "./index-D2_J_-XS.js";
9
+ import { J as Pl, aa as Ml, v as Al, j as Bl, L as Vl, P as El, K as Nl, M as Rl, h as Ol, n as jl, f as Fl, a as Ul, ai as zl, q as Hl, a5 as Wl, al as Yl, u as Gl, I as ql, B as Zl, as as Jl, g as Kl, F as Xl, y as Ql, aq as ei, a4 as ti, a9 as ni, T as ai, c as si, af as ri, ae as oi, m as li, l as ii, k as ci, a1 as ui, a0 as di, V as pi, U as bi, S as fi, R as gi, X as mi, W as hi, $ as vi, _ as yi, Z as _i, Y as wi, ad as ki, d as xi, ah as Ci, ag as $i, p as Si, o as Di, a3 as Ii, a2 as Ti, ak as Li, t as Pi, H as Mi, A as Ai, ar as Bi, E as Vi, D as Ei, x as Ni, b as Ri, ap as Oi, ao as ji, i as Fi, a8 as Ui, a7 as zi, O as Hi, N as Wi, ab as Yi, ac as Gi, r as qi, Q as Zi, aj as Ji, s as Ki, G as Xi, z as Qi, an as ec, C as tc, w as nc, am as ac, a6 as sc } from "./index-D2_J_-XS.js";
10
10
  import { C as We, m as Gt, c as qt, I as bt, B as Zt, b as Jt, d as jn } from "./use-form-BurzbPVV.js";
11
11
  import { A as oc, h as lc, a as ic, j as cc, M as uc, f as dc, R as pc, n as bc, q as fc, o as gc, l as mc, k as hc, e as vc, p as yc, i as _c, s as wc, t as kc, g as xc, u as Cc, w as $c } from "./use-form-BurzbPVV.js";
12
12
  import { u as Ke, A as $t, a as Fn } from "./use-animated-toggle-89fKlXxy.js";
13
13
  import { b as Dc, c as Ic } from "./use-animated-toggle-89fKlXxy.js";
14
- import { T as Kt, a as Un } from "./theme-B5pmbvQ_.js";
14
+ import { T as Kt, a as Un } from "./theme-BzpMLdvH.js";
15
15
  import { beatuiPreset as Lc, createBeatuiPreset as Pc } from "./tailwind/preset.es.js";
16
- import { p as St, q as zn, r as Hn, s as Dt, t as je } from "./widget-customization-0is7oTeP.js";
17
- import { B as Ac, v as Bc, C as Vc, E as Ec, f as Nc, e as Rc, h as Oc, d as jc, j as Fc, i as Uc, a as zc, N as Hc, b as Wc, c as Yc, R as Gc, S as qc, k as Zc, u as Jc, m as Kc, n as Xc, l as Qc, T as eu, D as tu, A as nu, I as au, J as su, y as ru, w as ou, x as lu, O as iu, H as cu, P as uu, F as du, U as pu, z as bu, K as fu, L as gu, Q as mu, M as hu, G as vu } from "./widget-customization-0is7oTeP.js";
16
+ import { p as St, q as zn, r as Hn, s as Dt, t as je } from "./widget-customization-D-Vvr4vg.js";
17
+ import { B as Ac, v as Bc, C as Vc, E as Ec, f as Nc, e as Rc, h as Oc, d as jc, j as Fc, i as Uc, a as zc, N as Hc, b as Wc, c as Yc, R as Gc, S as qc, k as Zc, u as Jc, m as Kc, n as Xc, l as Qc, T as eu, D as tu, A as nu, I as au, J as su, y as ru, w as ou, x as lu, O as iu, H as cu, P as uu, F as du, U as pu, z as bu, K as fu, L as gu, Q as mu, M as hu, G as vu } from "./widget-customization-D-Vvr4vg.js";
18
18
  import { B as Be, I as ye, a as Xe, b as It, c as Tt } from "./input-container-Nx0gMAzS.js";
19
19
  import { g as _u } from "./input-container-Nx0gMAzS.js";
20
20
  import { W as Ce, S as Wn, G as Xt, E as Yn, b as Qt, N as Qe, M as ft } from "./deep-merge-CmQoIYPC.js";
21
21
  import { B as ku, o as xu, F as Cu, L as $u, n as Su, l as Du, h as Iu, c as Tu, f as Lu, g as Pu, T as Mu, U as Au, i as Bu, k as Vu, a as Eu, j as Nu, p as Ru, q as Ou, r as ju, e as Fu, t as Uu, m as zu } from "./deep-merge-CmQoIYPC.js";
22
22
  import { C as Ie } from "./text-input-CPJzUC2r.js";
23
23
  import { T as Wu } from "./text-input-CPJzUC2r.js";
24
- import { F as gt, M as en, a as tn } from "./menu-D_slbwl8.js";
25
- import { b as Gu } from "./menu-D_slbwl8.js";
24
+ import { F as gt, M as en, a as tn } from "./menu-DMAhcoJ2.js";
25
+ import { b as Gu } from "./menu-DMAhcoJ2.js";
26
26
  import { s as he } from "./session-id-3KiilioY.js";
27
27
  import { E as Zu, N as Ju, P as Ku } from "./notice-Dz4nX57_.js";
28
28
  import { f as Gn, g as qn } from "./duration-input-DaB6s0rL.js";
@@ -68,20 +68,20 @@ const sn = async (e, t = "") => {
68
68
  if (i === void 0 || isNaN(i))
69
69
  return n.set({ type: "undetermined" }), await r.blob();
70
70
  {
71
- const b = new Uint8Array(i);
71
+ const f = new Uint8Array(i);
72
72
  if (r.body == null)
73
73
  throw new Error("Response body is null");
74
- const f = r.body.getReader();
74
+ const b = r.body.getReader();
75
75
  let p = 0;
76
76
  for (; ; ) {
77
- const { done: y, value: h } = await f.read();
77
+ const { done: y, value: h } = await b.read();
78
78
  if (y) break;
79
- b.set(h, p), p += h.length, n.set({
79
+ f.set(h, p), p += h.length, n.set({
80
80
  type: "progress",
81
81
  value: Math.min(p / i, 1)
82
82
  });
83
83
  }
84
- return new Blob([b], {
84
+ return new Blob([f], {
85
85
  type: r.headers.get("content-type") ?? void 0
86
86
  });
87
87
  }
@@ -156,7 +156,7 @@ function fr({
156
156
  r,
157
157
  i
158
158
  )(
159
- (o, g, b) => Qn(o ?? "md", g ?? "circle", b ?? !1)
159
+ (o, g, f) => Qn(o ?? "md", g ?? "circle", f ?? !1)
160
160
  )
161
161
  ),
162
162
  a.style(
@@ -243,8 +243,8 @@ function sa(e) {
243
243
  ].join("; ");
244
244
  }
245
245
  function rn(e, t, n, s, r, u) {
246
- const i = e.PlainDate.from({ year: t, month: n, day: 1 }), c = i.daysInMonth, o = (i.dayOfWeek % 7 - s + Re) % Re, g = i.subtract({ months: 1 }), b = g.daysInMonth, f = [], p = (h, _, C) => {
247
- f.push({
246
+ const i = e.PlainDate.from({ year: t, month: n, day: 1 }), c = i.daysInMonth, o = (i.dayOfWeek % 7 - s + Re) % Re, g = i.subtract({ months: 1 }), f = g.daysInMonth, b = [], p = (h, _, C) => {
247
+ b.push({
248
248
  day: _,
249
249
  date: h,
250
250
  inMonth: C,
@@ -253,25 +253,25 @@ function rn(e, t, n, s, r, u) {
253
253
  });
254
254
  };
255
255
  for (let h = o - 1; h >= 0; h--) {
256
- const _ = b - h;
256
+ const _ = f - h;
257
257
  p(g.with({ day: _ }), _, !1);
258
258
  }
259
259
  for (let h = 1; h <= c; h++)
260
260
  p(e.PlainDate.from({ year: t, month: n, day: h }), h, !0);
261
- const y = Re - f.length % Re;
261
+ const y = Re - b.length % Re;
262
262
  if (y < Re) {
263
263
  const h = i.add({ months: 1 });
264
264
  for (let _ = 1; _ <= y; _++)
265
265
  p(h.with({ day: _ }), _, !1);
266
266
  }
267
- return f;
267
+ return b;
268
268
  }
269
269
  function on(e, t, n, s, r) {
270
270
  const u = e.Now.plainDateISO(), i = H(t), c = H(n), d = H("days"), o = H(
271
271
  Math.floor(t / xe) * xe
272
272
  ), g = [];
273
- for (let b = 0; b < Re; b++)
274
- g.push(na[(b + r) % Re]);
273
+ for (let f = 0; f < Re; f++)
274
+ g.push(na[(f + r) % Re]);
275
275
  return {
276
276
  today: u,
277
277
  currentYear: i,
@@ -281,39 +281,39 @@ function on(e, t, n, s, r) {
281
281
  shiftedDayNames: g,
282
282
  prevMonth: () => {
283
283
  if (m.get(s)) return;
284
- const b = c.value, f = i.value;
285
- b === 1 ? (c.set(12), i.set(f - 1)) : c.set(b - 1);
284
+ const f = c.value, b = i.value;
285
+ f === 1 ? (c.set(12), i.set(b - 1)) : c.set(f - 1);
286
286
  },
287
287
  nextMonth: () => {
288
288
  if (m.get(s)) return;
289
- const b = c.value, f = i.value;
290
- b === 12 ? (c.set(1), i.set(f + 1)) : c.set(b + 1);
289
+ const f = c.value, b = i.value;
290
+ f === 12 ? (c.set(1), i.set(b + 1)) : c.set(f + 1);
291
291
  },
292
292
  prevYear: () => {
293
- m.get(s) || i.update((b) => b - 1);
293
+ m.get(s) || i.update((f) => f - 1);
294
294
  },
295
295
  nextYear: () => {
296
- m.get(s) || i.update((b) => b + 1);
296
+ m.get(s) || i.update((f) => f + 1);
297
297
  },
298
298
  prevYearPage: () => {
299
- m.get(s) || o.update((b) => b - xe);
299
+ m.get(s) || o.update((f) => f - xe);
300
300
  },
301
301
  nextYearPage: () => {
302
- m.get(s) || o.update((b) => b + xe);
302
+ m.get(s) || o.update((f) => f + xe);
303
303
  },
304
304
  switchToMonthsView: () => {
305
305
  m.get(s) || d.set("months");
306
306
  },
307
307
  switchToYearsView: () => {
308
308
  if (m.get(s)) return;
309
- const b = i.value;
310
- o.set(Math.floor(b / xe) * xe), d.set("years");
309
+ const f = i.value;
310
+ o.set(Math.floor(f / xe) * xe), d.set("years");
311
311
  },
312
- selectMonth: (b) => {
313
- m.get(s) || (c.set(b), d.set("days"));
312
+ selectMonth: (f) => {
313
+ m.get(s) || (c.set(f), d.set("days"));
314
314
  },
315
- selectYear: (b) => {
316
- m.get(s) || (i.set(b), d.set("months"));
315
+ selectYear: (f) => {
316
+ m.get(s) || (i.set(f), d.set("months"));
317
317
  }
318
318
  };
319
319
  }
@@ -323,15 +323,15 @@ function ln(e, t, n) {
323
323
  currentYear: d,
324
324
  currentMonth: o,
325
325
  view: g,
326
- yearPageStart: b,
327
- prevMonth: f,
326
+ yearPageStart: f,
327
+ prevMonth: b,
328
328
  nextMonth: p,
329
329
  prevYear: y,
330
330
  nextYear: h,
331
331
  prevYearPage: _,
332
332
  nextYearPage: C,
333
- switchToMonthsView: w,
334
- switchToYearsView: $,
333
+ switchToMonthsView: $,
334
+ switchToYearsView: k,
335
335
  selectMonth: v,
336
336
  selectYear: S
337
337
  } = e;
@@ -349,8 +349,8 @@ function ln(e, t, n) {
349
349
  a.class("bc-calendar__nav-btn"),
350
350
  a.disabled(r),
351
351
  T.label("Previous year"),
352
- I.click((k) => {
353
- k.preventDefault(), y();
352
+ I.click((w) => {
353
+ w.preventDefault(), y();
354
354
  }),
355
355
  "«"
356
356
  ),
@@ -359,8 +359,8 @@ function ln(e, t, n) {
359
359
  a.class("bc-calendar__nav-btn"),
360
360
  a.disabled(r),
361
361
  T.label("Previous month"),
362
- I.click((k) => {
363
- k.preventDefault(), f();
362
+ I.click((w) => {
363
+ w.preventDefault(), b();
364
364
  }),
365
365
  "‹"
366
366
  ),
@@ -371,18 +371,18 @@ function ln(e, t, n) {
371
371
  a.class("bc-calendar__title-btn"),
372
372
  a.disabled(r),
373
373
  T.label("Select month"),
374
- I.click((k) => {
375
- k.preventDefault(), w();
374
+ I.click((w) => {
375
+ w.preventDefault(), $();
376
376
  }),
377
- m.map(o, (k) => ea[k - 1])
377
+ m.map(o, (w) => ea[w - 1])
378
378
  ),
379
379
  l.button(
380
380
  a.type("button"),
381
381
  a.class("bc-calendar__title-btn"),
382
382
  a.disabled(r),
383
383
  T.label("Select year"),
384
- I.click((k) => {
385
- k.preventDefault(), $();
384
+ I.click((w) => {
385
+ w.preventDefault(), k();
386
386
  }),
387
387
  m.map(d, String)
388
388
  )
@@ -392,8 +392,8 @@ function ln(e, t, n) {
392
392
  a.class("bc-calendar__nav-btn"),
393
393
  a.disabled(r),
394
394
  T.label("Next month"),
395
- I.click((k) => {
396
- k.preventDefault(), p();
395
+ I.click((w) => {
396
+ w.preventDefault(), p();
397
397
  }),
398
398
  "›"
399
399
  ),
@@ -402,8 +402,8 @@ function ln(e, t, n) {
402
402
  a.class("bc-calendar__nav-btn"),
403
403
  a.disabled(r),
404
404
  T.label("Next year"),
405
- I.click((k) => {
406
- k.preventDefault(), h();
405
+ I.click((w) => {
406
+ w.preventDefault(), h();
407
407
  }),
408
408
  "»"
409
409
  )
@@ -415,8 +415,8 @@ function ln(e, t, n) {
415
415
  a.class("bc-calendar__nav-btn"),
416
416
  a.disabled(r),
417
417
  T.label("Previous year"),
418
- I.click((k) => {
419
- k.preventDefault(), y();
418
+ I.click((w) => {
419
+ w.preventDefault(), y();
420
420
  }),
421
421
  "«"
422
422
  ),
@@ -429,8 +429,8 @@ function ln(e, t, n) {
429
429
  a.class("bc-calendar__nav-btn"),
430
430
  a.disabled(r),
431
431
  T.label("Next year"),
432
- I.click((k) => {
433
- k.preventDefault(), h();
432
+ I.click((w) => {
433
+ w.preventDefault(), h();
434
434
  }),
435
435
  "»"
436
436
  )
@@ -442,16 +442,16 @@ function ln(e, t, n) {
442
442
  a.class("bc-calendar__nav-btn"),
443
443
  a.disabled(r),
444
444
  T.label(`Previous ${xe} years`),
445
- I.click((k) => {
446
- k.preventDefault(), _();
445
+ I.click((w) => {
446
+ w.preventDefault(), _();
447
447
  }),
448
448
  "«"
449
449
  ),
450
450
  l.span(
451
451
  a.class("bc-calendar__title"),
452
452
  m.map(
453
- b,
454
- (k) => `${k} – ${k + xe - 1}`
453
+ f,
454
+ (w) => `${w} – ${w + xe - 1}`
455
455
  )
456
456
  ),
457
457
  l.button(
@@ -459,8 +459,8 @@ function ln(e, t, n) {
459
459
  a.class("bc-calendar__nav-btn"),
460
460
  a.disabled(r),
461
461
  T.label(`Next ${xe} years`),
462
- I.click((k) => {
463
- k.preventDefault(), C();
462
+ I.click((w) => {
463
+ w.preventDefault(), C();
464
464
  }),
465
465
  "»"
466
466
  )
@@ -473,7 +473,7 @@ function ln(e, t, n) {
473
473
  l.div(
474
474
  a.class("bc-calendar__weekdays"),
475
475
  ...e.shiftedDayNames.map(
476
- (k) => l.div(a.class("bc-calendar__weekday"), k)
476
+ (w) => l.div(a.class("bc-calendar__weekday"), w)
477
477
  )
478
478
  ),
479
479
  n()
@@ -482,24 +482,24 @@ function ln(e, t, n) {
482
482
  a.class(
483
483
  "bc-calendar__picker-grid bc-calendar__picker-grid--months"
484
484
  ),
485
- ...ta.map((k, P) => {
486
- const B = P + 1;
485
+ ...ta.map((w, L) => {
486
+ const V = L + 1;
487
487
  return l.button(
488
488
  a.type("button"),
489
489
  a.class(
490
490
  x(
491
491
  o,
492
492
  d
493
- )((U, V) => {
493
+ )((U, E) => {
494
494
  const N = ["bc-calendar__month-cell"];
495
- return U === B && N.push("bc-calendar__month-cell--current"), c.month === B && c.year === V && N.push("bc-calendar__month-cell--active"), N.join(" ");
495
+ return U === V && N.push("bc-calendar__month-cell--current"), c.month === V && c.year === E && N.push("bc-calendar__month-cell--active"), N.join(" ");
496
496
  })
497
497
  ),
498
498
  a.disabled(r),
499
499
  I.click((U) => {
500
- U.preventDefault(), v(B);
500
+ U.preventDefault(), v(V);
501
501
  }),
502
- k
502
+ w
503
503
  );
504
504
  })
505
505
  ),
@@ -508,28 +508,28 @@ function ln(e, t, n) {
508
508
  "bc-calendar__picker-grid bc-calendar__picker-grid--years"
509
509
  ),
510
510
  ie(
511
- m.map(b, (k) => {
512
- const P = [];
513
- for (let B = 0; B < xe; B++)
514
- P.push(k + B);
515
- return P;
511
+ m.map(f, (w) => {
512
+ const L = [];
513
+ for (let V = 0; V < xe; V++)
514
+ L.push(w + V);
515
+ return L;
516
516
  }),
517
- (k) => l.button(
517
+ (w) => l.button(
518
518
  a.type("button"),
519
519
  a.class(
520
520
  x(
521
521
  d,
522
- k
523
- )((P, B) => {
522
+ w
523
+ )((L, V) => {
524
524
  const U = ["bc-calendar__year-cell"];
525
- return P === B && U.push("bc-calendar__year-cell--current"), c.year === B && U.push("bc-calendar__year-cell--active"), U.join(" ");
525
+ return L === V && U.push("bc-calendar__year-cell--current"), c.year === V && U.push("bc-calendar__year-cell--active"), U.join(" ");
526
526
  })
527
527
  ),
528
528
  a.disabled(r),
529
- I.click((P) => {
530
- P.preventDefault(), S(m.get(k));
529
+ I.click((L) => {
530
+ L.preventDefault(), S(m.get(w));
531
531
  }),
532
- m.map(k, String)
532
+ m.map(w, String)
533
533
  )
534
534
  )
535
535
  )
@@ -565,10 +565,10 @@ function cn(e, {
565
565
  o.currentYear,
566
566
  o.currentMonth,
567
567
  t
568
- )((b, f, p) => rn(
568
+ )((f, b, p) => rn(
569
569
  e,
570
- b,
571
570
  f,
571
+ b,
572
572
  c,
573
573
  o.today,
574
574
  s
@@ -581,14 +581,14 @@ function cn(e, {
581
581
  { size: u, disabled: i, color: r, ariaLabel: "Calendar" },
582
582
  () => l.div(
583
583
  a.class("bc-calendar__grid"),
584
- ie(g, (b) => {
585
- const f = b.map((h) => {
584
+ ie(g, (f) => {
585
+ const b = f.map((h) => {
586
586
  const _ = ["bc-calendar__day"];
587
587
  return h.inMonth || _.push("bc-calendar__day--outside"), h.isToday && _.push("bc-calendar__day--today"), h.isSelected && _.push("bc-calendar__day--selected"), h.isDisabled && _.push("bc-calendar__day--disabled"), _.join(" ");
588
- }), p = b.map((h) => h.isDisabled), y = b.map((h) => String(h.day));
588
+ }), p = f.map((h) => h.isDisabled), y = f.map((h) => String(h.day));
589
589
  return l.button(
590
590
  a.type("button"),
591
- a.class(f),
591
+ a.class(b),
592
592
  a.disabled(
593
593
  x(
594
594
  p,
@@ -597,7 +597,7 @@ function cn(e, {
597
597
  ),
598
598
  I.click((h) => {
599
599
  h.preventDefault();
600
- const _ = m.get(b);
600
+ const _ = m.get(f);
601
601
  !_.isDisabled && !m.get(i) && (_.inMonth || (o.currentYear.set(_.date.year), o.currentMonth.set(_.date.month)), n?.(_.date));
602
602
  }),
603
603
  y
@@ -636,22 +636,22 @@ function un(e, {
636
636
  d?.[0]?.month ?? e.Now.plainDateISO().month,
637
637
  i,
638
638
  c
639
- ), g = H(null), b = H(null);
639
+ ), g = H(null), f = H(null);
640
640
  t != null && m.on(t, () => {
641
641
  g.set(null);
642
642
  });
643
- const f = x(
643
+ const b = x(
644
644
  o.currentYear,
645
645
  o.currentMonth,
646
646
  t,
647
647
  g,
648
- b
648
+ f
649
649
  )((p, y, h, _, C) => {
650
- let w = null, $ = null, v = !1;
650
+ let $ = null, k = null, v = !1;
651
651
  if (_ != null && C != null) {
652
652
  const S = e.PlainDate.compare(_, C);
653
- w = S <= 0 ? _ : C, $ = S <= 0 ? C : _, v = !0;
654
- } else h != null && (w = h[0], $ = h[1]);
653
+ $ = S <= 0 ? _ : C, k = S <= 0 ? C : _, v = !0;
654
+ } else h != null && ($ = h[0], k = h[1]);
655
655
  return rn(
656
656
  e,
657
657
  p,
@@ -660,8 +660,8 @@ function un(e, {
660
660
  o.today,
661
661
  s
662
662
  ).map((S) => {
663
- let k = !1, P = !1, B = !1;
664
- return w != null && $ != null && (k = S.date.equals(w), P = S.date.equals($), B = e.PlainDate.compare(S.date, w) > 0 && e.PlainDate.compare(S.date, $) < 0), { ...S, isRangeStart: k, isRangeEnd: P, isInRange: B, isPreview: v };
663
+ let w = !1, L = !1, V = !1;
664
+ return $ != null && k != null && (w = S.date.equals($), L = S.date.equals(k), V = e.PlainDate.compare(S.date, $) > 0 && e.PlainDate.compare(S.date, k) < 0), { ...S, isRangeStart: w, isRangeEnd: L, isInRange: V, isPreview: v };
665
665
  });
666
666
  });
667
667
  return ln(
@@ -670,12 +670,12 @@ function un(e, {
670
670
  () => l.div(
671
671
  a.class("bc-calendar__grid"),
672
672
  I.mouseleave(() => {
673
- b.set(null);
673
+ f.set(null);
674
674
  }),
675
- ie(f, (p) => {
675
+ ie(b, (p) => {
676
676
  const y = p.map((C) => {
677
- const w = ["bc-calendar__day"];
678
- return C.inMonth || w.push("bc-calendar__day--outside"), C.isToday && w.push("bc-calendar__day--today"), C.isDisabled && w.push("bc-calendar__day--disabled"), C.isRangeStart && w.push("bc-calendar__day--range-start"), C.isRangeEnd && w.push("bc-calendar__day--range-end"), C.isInRange && w.push("bc-calendar__day--in-range"), C.isPreview && (C.isRangeStart || C.isRangeEnd || C.isInRange) && w.push("bc-calendar__day--preview"), w.join(" ");
677
+ const $ = ["bc-calendar__day"];
678
+ return C.inMonth || $.push("bc-calendar__day--outside"), C.isToday && $.push("bc-calendar__day--today"), C.isDisabled && $.push("bc-calendar__day--disabled"), C.isRangeStart && $.push("bc-calendar__day--range-start"), C.isRangeEnd && $.push("bc-calendar__day--range-end"), C.isInRange && $.push("bc-calendar__day--in-range"), C.isPreview && (C.isRangeStart || C.isRangeEnd || C.isInRange) && $.push("bc-calendar__day--preview"), $.join(" ");
679
679
  }), h = p.map((C) => C.isDisabled), _ = p.map((C) => String(C.day));
680
680
  return l.button(
681
681
  a.type("button"),
@@ -684,23 +684,23 @@ function un(e, {
684
684
  x(
685
685
  h,
686
686
  i
687
- )((C, w) => C || w)
687
+ )((C, $) => C || $)
688
688
  ),
689
689
  I.mouseenter(() => {
690
690
  const C = m.get(p);
691
- !C.isDisabled && !m.get(i) && b.set(C.date);
691
+ !C.isDisabled && !m.get(i) && f.set(C.date);
692
692
  }),
693
693
  I.click((C) => {
694
694
  C.preventDefault();
695
- const w = m.get(p);
696
- if (w.isDisabled || m.get(i)) return;
697
- w.inMonth || (o.currentYear.set(w.date.year), o.currentMonth.set(w.date.month));
698
- const $ = g.value;
699
- if ($ == null)
700
- g.set(w.date);
695
+ const $ = m.get(p);
696
+ if ($.isDisabled || m.get(i)) return;
697
+ $.inMonth || (o.currentYear.set($.date.year), o.currentMonth.set($.date.month));
698
+ const k = g.value;
699
+ if (k == null)
700
+ g.set($.date);
701
701
  else {
702
- const S = e.PlainDate.compare($, w.date) <= 0 ? [$, w.date] : [w.date, $];
703
- g.set(null), b.set(null), n?.(S);
702
+ const S = e.PlainDate.compare(k, $.date) <= 0 ? [k, $.date] : [$.date, k];
703
+ g.set(null), f.set(null), n?.(S);
704
704
  }
705
705
  }),
706
706
  _
@@ -876,12 +876,12 @@ function ct({
876
876
  u,
877
877
  i
878
878
  )(
879
- (d, o, g, b, f) => oa(
879
+ (d, o, g, f, b) => oa(
880
880
  d ?? "md",
881
881
  o ?? "sm",
882
882
  g ?? !1,
883
- b ?? !1,
884
- f ?? !1
883
+ f ?? !1,
884
+ b ?? !1
885
885
  )
886
886
  )
887
887
  ),
@@ -983,7 +983,7 @@ function wr(e) {
983
983
  ),
984
984
  l.span(c.$.actor.$.name)
985
985
  ),
986
- E(
986
+ B(
987
987
  c.map((d) => d.restorable === !0 && d.onRestore != null),
988
988
  () => Be(
989
989
  {
@@ -999,7 +999,7 @@ function wr(e) {
999
999
  )
1000
1000
  )),
1001
1001
  // Empty state
1002
- E(
1002
+ B(
1003
1003
  x(r)((c) => c.length === 0),
1004
1004
  () => l.div(
1005
1005
  a.class("bc-history-timeline__empty"),
@@ -1029,11 +1029,11 @@ function kr(e) {
1029
1029
  return l.span(
1030
1030
  a.class("bc-icon-badge"),
1031
1031
  K(u),
1032
- E(
1032
+ B(
1033
1033
  i,
1034
1034
  () => l.span(
1035
1035
  a.class("bc-icon-badge__indicator"),
1036
- E(
1036
+ B(
1037
1037
  d,
1038
1038
  () => ct({ dot: !0, color: r, size: "xs" }),
1039
1039
  () => ct(
@@ -1055,39 +1055,39 @@ function xr({
1055
1055
  }) {
1056
1056
  const i = H(!1), c = H([]);
1057
1057
  let d = null, o = 0;
1058
- const g = ($) => $.dataTransfer?.types.includes("Files") ?? !1, b = ($, v) => v === "*/*" ? !0 : v.split(",").map((k) => k.trim()).some((k) => {
1059
- if (k === "*/*") return !0;
1060
- if (k.endsWith("/*")) {
1061
- const P = k.slice(0, -2);
1062
- return $.type.startsWith(P + "/");
1058
+ const g = (k) => k.dataTransfer?.types.includes("Files") ?? !1, f = (k, v) => v === "*/*" ? !0 : v.split(",").map((w) => w.trim()).some((w) => {
1059
+ if (w === "*/*") return !0;
1060
+ if (w.endsWith("/*")) {
1061
+ const L = w.slice(0, -2);
1062
+ return k.type.startsWith(L + "/");
1063
1063
  }
1064
- return $.type === k || $.name.endsWith(k);
1065
- }), f = ($) => {
1066
- m.get(u) || g($) && ($.preventDefault(), $.stopPropagation(), o++, o === 1 && (i.value = !0));
1067
- }, p = ($) => {
1068
- m.get(u) || g($) && ($.preventDefault(), $.stopPropagation(), $.dataTransfer != null && ($.dataTransfer.dropEffect = "copy"));
1069
- }, y = ($) => {
1070
- m.get(u) || g($) && ($.preventDefault(), $.stopPropagation(), o--, o === 0 && (i.value = !1));
1071
- }, h = ($) => {
1072
- if (m.get(u) || !g($)) return;
1073
- $.preventDefault(), $.stopPropagation(), o = 0, i.value = !1;
1074
- const v = Array.from($.dataTransfer?.files ?? []);
1064
+ return k.type === w || k.name.endsWith(w);
1065
+ }), b = (k) => {
1066
+ m.get(u) || g(k) && (k.preventDefault(), k.stopPropagation(), o++, o === 1 && (i.value = !0));
1067
+ }, p = (k) => {
1068
+ m.get(u) || g(k) && (k.preventDefault(), k.stopPropagation(), k.dataTransfer != null && (k.dataTransfer.dropEffect = "copy"));
1069
+ }, y = (k) => {
1070
+ m.get(u) || g(k) && (k.preventDefault(), k.stopPropagation(), o--, o === 0 && (i.value = !1));
1071
+ }, h = (k) => {
1072
+ if (m.get(u) || !g(k)) return;
1073
+ k.preventDefault(), k.stopPropagation(), o = 0, i.value = !1;
1074
+ const v = Array.from(k.dataTransfer?.files ?? []);
1075
1075
  if (v.length > 0) {
1076
- const S = m.get(t), k = v.filter(
1077
- (B) => b(B, S)
1078
- ), P = v.filter(
1079
- (B) => !k.includes(B)
1076
+ const S = m.get(t), w = v.filter(
1077
+ (V) => f(V, S)
1078
+ ), L = v.filter(
1079
+ (V) => !w.includes(V)
1080
1080
  );
1081
- k.length > 0 && (c.value = k, e(k, "dragdrop")), P.length > 0 && r?.(v);
1081
+ w.length > 0 && (c.value = w, e(w, "dragdrop")), L.length > 0 && r?.(v);
1082
1082
  }
1083
1083
  };
1084
- typeof document < "u" && (document.addEventListener("dragenter", f), document.addEventListener("dragover", p), document.addEventListener("dragleave", y), document.addEventListener("drop", h));
1084
+ typeof document < "u" && (document.addEventListener("dragenter", b), document.addEventListener("dragover", p), document.addEventListener("dragleave", y), document.addEventListener("drop", h));
1085
1085
  const _ = () => {
1086
- typeof document < "u" && (document.removeEventListener("dragenter", f), document.removeEventListener("dragover", p), document.removeEventListener("dragleave", y), document.removeEventListener("drop", h)), o = 0;
1086
+ typeof document < "u" && (document.removeEventListener("dragenter", b), document.removeEventListener("dragover", p), document.removeEventListener("dragleave", y), document.removeEventListener("drop", h)), o = 0;
1087
1087
  }, C = () => {
1088
1088
  d?.click();
1089
- }, w = ($) => {
1090
- const v = $.target, S = Array.from(v.files ?? []);
1089
+ }, $ = (k) => {
1090
+ const v = k.target, S = Array.from(v.files ?? []);
1091
1091
  S.length > 0 && (c.value = S, e(S, "click")), v.value = "";
1092
1092
  };
1093
1093
  return Q(
@@ -1103,13 +1103,13 @@ function xr({
1103
1103
  D.pointerEvents("none"),
1104
1104
  D.width("0"),
1105
1105
  D.height("0"),
1106
- I.change(w),
1107
- re(($) => (d = $, fe(() => {
1106
+ I.change($),
1107
+ re((k) => (d = k, fe(() => {
1108
1108
  d != null && (d.value = "");
1109
1109
  })))
1110
1110
  ),
1111
1111
  // Render overlay content to body when dragging (if content is provided)
1112
- n != null ? E(i, () => n({ files: c })) : null,
1112
+ n != null ? B(i, () => n({ files: c })) : null,
1113
1113
  s != null ? s({ isDragging: i, files: c, selectFiles: C }) : null
1114
1114
  );
1115
1115
  }
@@ -1162,13 +1162,13 @@ function Sr({
1162
1162
  const c = x(
1163
1163
  e,
1164
1164
  t
1165
- )((g, b) => {
1166
- const f = g ?? 0, p = b ?? 100;
1167
- return p > 0 ? Math.min(Math.max(f / p * 100, 0), 100) : 0;
1165
+ )((g, f) => {
1166
+ const b = g ?? 0, p = f ?? 100;
1167
+ return p > 0 ? Math.min(Math.max(b / p * 100, 0), 100) : 0;
1168
1168
  }), d = m.map(c, (g) => `${Math.round(g)}%`), o = x(
1169
1169
  c,
1170
1170
  r
1171
- )((g, b) => b ?? !1 ? "" : `${g}%`);
1171
+ )((g, f) => f ?? !1 ? "" : `${g}%`);
1172
1172
  return l.div(
1173
1173
  a.class("bc-progress-bar-wrapper"),
1174
1174
  l.div(
@@ -1178,7 +1178,7 @@ function Sr({
1178
1178
  r,
1179
1179
  i
1180
1180
  )(
1181
- (g, b, f) => ca(g ?? "md", b ?? !1, f ?? "full")
1181
+ (g, f, b) => ca(g ?? "md", f ?? !1, b ?? "full")
1182
1182
  )
1183
1183
  ),
1184
1184
  a.style(
@@ -1198,7 +1198,7 @@ function Sr({
1198
1198
  )
1199
1199
  ),
1200
1200
  // Optional label
1201
- E(
1201
+ B(
1202
1202
  u,
1203
1203
  () => l.div(
1204
1204
  a.class("bc-progress-bar__label"),
@@ -1234,7 +1234,7 @@ function Dr({
1234
1234
  e,
1235
1235
  s
1236
1236
  )((c, d) => c === "text" && (d ?? 1) > 1);
1237
- return E(
1237
+ return B(
1238
1238
  i,
1239
1239
  // Multi-line text skeleton
1240
1240
  () => l.div(
@@ -1310,27 +1310,27 @@ function Ir({
1310
1310
  i,
1311
1311
  c
1312
1312
  )(
1313
- (p, y, h, _, C, w) => pa(
1313
+ (p, y, h, _, C, $) => pa(
1314
1314
  p ?? "md",
1315
1315
  y ?? !1,
1316
1316
  h ?? !1,
1317
1317
  _ ?? !1,
1318
1318
  C ?? !1,
1319
- w ?? !0
1319
+ $ ?? !0
1320
1320
  )
1321
- ), b = x(
1321
+ ), f = x(
1322
1322
  n,
1323
1323
  s,
1324
1324
  u
1325
1325
  )((p, y, h) => {
1326
1326
  const _ = ["bc-table-container"];
1327
1327
  return p && _.push("bc-table-container--sticky"), y && _.push("bc-table-container--full-width"), h && _.push("bc-table-container--with-table-border"), _.join(" ");
1328
- }), f = x(d)(
1328
+ }), b = x(d)(
1329
1329
  (p) => ba(p)
1330
1330
  );
1331
1331
  return l.div(
1332
- a.class(b),
1333
- a.style(f),
1332
+ a.class(f),
1333
+ a.style(b),
1334
1334
  l.table(a.class(g), ...o)
1335
1335
  );
1336
1336
  }
@@ -1480,21 +1480,21 @@ function Tr({
1480
1480
  roundedness: d = "sm",
1481
1481
  orientation: o = "horizontal"
1482
1482
  }) {
1483
- const g = (b, f) => {
1483
+ const g = (f, b) => {
1484
1484
  const p = m.get(t), y = m.get(s);
1485
1485
  let h;
1486
- y ? h = f ? [...p, b] : p.filter((_) => _ !== b) : h = f ? [b] : [], n?.(h);
1486
+ y ? h = b ? [...p, f] : p.filter((_) => _ !== f) : h = b ? [f] : [], n?.(h);
1487
1487
  };
1488
1488
  return l.div(
1489
1489
  a.role("group"),
1490
1490
  a.class(x(o, d)(ha)),
1491
1491
  T.orientation(o),
1492
- ...e.map((b) => {
1493
- const f = m.map(t, (y) => y.includes(b.key)), p = b.disabled ? m.map(r, (y) => y || b.disabled) : r;
1492
+ ...e.map((f) => {
1493
+ const b = m.map(t, (y) => y.includes(f.key)), p = f.disabled ? m.map(r, (y) => y || f.disabled) : r;
1494
1494
  return ma(
1495
1495
  {
1496
- pressed: f,
1497
- onToggle: (y) => g(b.key, y),
1496
+ pressed: b,
1497
+ onToggle: (y) => g(f.key, y),
1498
1498
  disabled: p,
1499
1499
  variant: u,
1500
1500
  size: i,
@@ -1502,7 +1502,7 @@ function Tr({
1502
1502
  roundedness: "none",
1503
1503
  fullWidth: !1
1504
1504
  },
1505
- b.label
1505
+ f.label
1506
1506
  );
1507
1507
  })
1508
1508
  );
@@ -1656,10 +1656,10 @@ function vt({ open: e }, ...t) {
1656
1656
  o != null && c.set(o);
1657
1657
  }), s.on((o) => {
1658
1658
  if (n && o === "start-opening") {
1659
- const g = n.style.height, b = n.style.transition;
1659
+ const g = n.style.height, f = n.style.transition;
1660
1660
  n.style.transition = "none", n.style.height = "auto", n.offsetHeight;
1661
- const f = n.scrollHeight;
1662
- f > 0 && c.set(f), n.style.height = g, n.style.transition = b, n.offsetHeight;
1661
+ const b = n.scrollHeight;
1662
+ b > 0 && c.set(b), n.style.height = g, n.style.transition = f, n.offsetHeight;
1663
1663
  }
1664
1664
  }), Q(
1665
1665
  fe(u),
@@ -1701,12 +1701,12 @@ function Mr({
1701
1701
  a.class(x(n, s)(ka)),
1702
1702
  a.role("presentation"),
1703
1703
  ...e.map((c, d) => {
1704
- const o = u.get(c.key), g = `${r}-header-${d}`, b = `${r}-panel-${d}`;
1704
+ const o = u.get(c.key), g = `${r}-header-${d}`, f = `${r}-panel-${d}`;
1705
1705
  return l.div(
1706
1706
  a.class("bc-accordion__item"),
1707
1707
  a.class(
1708
1708
  o.map(
1709
- (f) => f ? "bc-accordion__item--open" : "bc-accordion__item--closed"
1709
+ (b) => b ? "bc-accordion__item--open" : "bc-accordion__item--closed"
1710
1710
  )
1711
1711
  ),
1712
1712
  c.disabled ? a.class("bc-accordion__item--disabled") : z,
@@ -1716,17 +1716,17 @@ function Mr({
1716
1716
  a.class("bc-accordion__header"),
1717
1717
  a.id(g),
1718
1718
  T.expanded(o),
1719
- T.controls(b),
1719
+ T.controls(f),
1720
1720
  a.disabled(c.disabled ?? !1),
1721
- I.click((f) => {
1722
- f.preventDefault(), c.disabled || i(c.key);
1721
+ I.click((b) => {
1722
+ b.preventDefault(), c.disabled || i(c.key);
1723
1723
  }),
1724
1724
  l.span(a.class("bc-accordion__header-content"), c.header),
1725
1725
  l.span(
1726
1726
  a.class("bc-accordion__chevron"),
1727
1727
  a.class(
1728
1728
  o.map(
1729
- (f) => f ? "bc-accordion__chevron--open" : "bc-accordion__chevron--closed"
1729
+ (b) => b ? "bc-accordion__chevron--open" : "bc-accordion__chevron--closed"
1730
1730
  )
1731
1731
  ),
1732
1732
  // CSS-only chevron via border trick
@@ -1735,7 +1735,7 @@ function Mr({
1735
1735
  ),
1736
1736
  // Panel
1737
1737
  l.div(
1738
- a.id(b),
1738
+ a.id(f),
1739
1739
  a.role("region"),
1740
1740
  T.labelledby(g),
1741
1741
  l.div(
@@ -1770,8 +1770,8 @@ function Ar({
1770
1770
  iconSize: d = "md",
1771
1771
  backgroundColor: o,
1772
1772
  borderColor: g,
1773
- titleColor: b,
1774
- descriptionColor: f
1773
+ titleColor: f,
1774
+ descriptionColor: b
1775
1775
  }) {
1776
1776
  const p = u != null;
1777
1777
  return l.div(
@@ -1793,13 +1793,13 @@ function Ar({
1793
1793
  x(
1794
1794
  o,
1795
1795
  g,
1796
- b,
1797
- f
1796
+ f,
1797
+ b
1798
1798
  )(
1799
1799
  (y, h, _, C) => Ca(y, h, _, C)
1800
1800
  )
1801
1801
  ),
1802
- E(
1802
+ B(
1803
1803
  p,
1804
1804
  () => Q(
1805
1805
  In(
@@ -1864,7 +1864,7 @@ function pn(e, { breakpoints: t, mode: n = "viewport" }) {
1864
1864
  ([i, c]) => [c, i]
1865
1865
  )].sort((i, c) => i[0] - c[0]), u = (i) => {
1866
1866
  const c = i.map(({ width: o }) => {
1867
- const g = r.findIndex((b) => b[0] > o) - 1;
1867
+ const g = r.findIndex((f) => f[0] > o) - 1;
1868
1868
  return g >= 0 ? { width: o, breakpoint: r[g][1] } : r.length > 0 && o >= r[0][0] ? { width: o, breakpoint: r[0][1] } : { width: o, breakpoint: r[0][1] };
1869
1869
  });
1870
1870
  return e({
@@ -2037,12 +2037,12 @@ function La({
2037
2037
  ];
2038
2038
  const g = [];
2039
2039
  g.push("1fr");
2040
- const b = [];
2041
- return s.banner && (b.push(s.banner[d] + "px"), o[0][1] = "banner"), (s.header || n.menu || n.aside) && (b.push(
2040
+ const f = [];
2041
+ return s.banner && (f.push(s.banner[d] + "px"), o[0][1] = "banner"), (s.header || n.menu || n.aside) && (f.push(
2042
2042
  (s.header?.[d] ?? ke.header[d]) + "px"
2043
- ), o[1][1] = "header"), s.mainHeader && (b.push(s.mainHeader[d] + "px"), o[2][1] = "mainHeader"), b.push("1fr"), o[3][1] = "main", s.mainFooter && (b.push(s.mainFooter[d] + "px"), o[4][1] = "mainFooter"), s.footer && (b.push(s.footer[d] + "px"), o[5][1] = "footer"), o = st(o), {
2043
+ ), o[1][1] = "header"), s.mainHeader && (f.push(s.mainHeader[d] + "px"), o[2][1] = "mainHeader"), f.push("1fr"), o[3][1] = "main", s.mainFooter && (f.push(s.mainFooter[d] + "px"), o[4][1] = "mainFooter"), s.footer && (f.push(s.footer[d] + "px"), o[5][1] = "footer"), o = st(o), {
2044
2044
  columns: g.join(" "),
2045
- rows: b.join(" "),
2045
+ rows: f.join(" "),
2046
2046
  areas: o.map((p) => `"${p.join(" ")}"`).join(`
2047
2047
  `),
2048
2048
  displayMenu: !1,
@@ -2062,12 +2062,12 @@ function La({
2062
2062
  ];
2063
2063
  const g = [];
2064
2064
  n.menu && (g.push(n.menu[d] + "px"), o[2][0] = "?menu", o[3][0] = "menu", o[4][0] = "?menu"), g.push("1fr");
2065
- const b = [];
2066
- return s.banner && (b.push(s.banner[d] + "px"), o[0][0] = "?banner", o[0][1] = "banner"), (s.header || n.aside) && (b.push(
2065
+ const f = [];
2066
+ return s.banner && (f.push(s.banner[d] + "px"), o[0][0] = "?banner", o[0][1] = "banner"), (s.header || n.aside) && (f.push(
2067
2067
  (s.header?.[d] ?? ke.header[d]) + "px"
2068
- ), o[1][0] = "?header", o[1][1] = "header"), s.mainHeader && (b.push(s.mainHeader[d] + "px"), o[2][1] = "mainHeader"), b.push("1fr"), o[3][1] = "main", s.mainFooter && (b.push(s.mainFooter[d] + "px"), o[4][1] = "mainFooter"), s.footer && (b.push(s.footer[d] + "px"), o[5][0] = "?footer", o[5][1] = "footer"), o = st(o), {
2068
+ ), o[1][0] = "?header", o[1][1] = "header"), s.mainHeader && (f.push(s.mainHeader[d] + "px"), o[2][1] = "mainHeader"), f.push("1fr"), o[3][1] = "main", s.mainFooter && (f.push(s.mainFooter[d] + "px"), o[4][1] = "mainFooter"), s.footer && (f.push(s.footer[d] + "px"), o[5][0] = "?footer", o[5][1] = "footer"), o = st(o), {
2069
2069
  columns: g.join(" "),
2070
- rows: b.join(" "),
2070
+ rows: f.join(" "),
2071
2071
  areas: o.map((p) => `"${p.join(" ")}"`).join(`
2072
2072
  `),
2073
2073
  displayMenu: !0,
@@ -2087,10 +2087,10 @@ function La({
2087
2087
  ];
2088
2088
  const g = [];
2089
2089
  n.menu && (g.push(n.menu[d] + "px"), o[2][0] = "?menu", o[3][0] = "menu", o[4][0] = "?menu"), g.push("1fr"), n.aside && (g.push(n.aside[d] + "px"), o[2][2] = "?aside", o[3][2] = "aside", o[4][2] = "?aside");
2090
- const b = [];
2091
- return s.banner && (b.push(s.banner[d] + "px"), o[0][0] = "?banner", o[0][1] = "banner", o[0][2] = "?banner"), s.header && (b.push(s.header[d] + "px"), o[1][0] = "?header", o[1][1] = "header", o[1][2] = "?header"), s.mainHeader && (b.push(s.mainHeader[d] + "px"), o[2][1] = "mainHeader"), b.push("1fr"), o[3][1] = "main", s.mainFooter && (b.push(s.mainFooter[d] + "px"), o[4][1] = "mainFooter"), s.footer && (b.push(s.footer[d] + "px"), o[5][0] = "?footer", o[5][1] = "footer", o[5][2] = "?footer"), o = st(o), {
2090
+ const f = [];
2091
+ return s.banner && (f.push(s.banner[d] + "px"), o[0][0] = "?banner", o[0][1] = "banner", o[0][2] = "?banner"), s.header && (f.push(s.header[d] + "px"), o[1][0] = "?header", o[1][1] = "header", o[1][2] = "?header"), s.mainHeader && (f.push(s.mainHeader[d] + "px"), o[2][1] = "mainHeader"), f.push("1fr"), o[3][1] = "main", s.mainFooter && (f.push(s.mainFooter[d] + "px"), o[4][1] = "mainFooter"), s.footer && (f.push(s.footer[d] + "px"), o[5][0] = "?footer", o[5][1] = "footer", o[5][2] = "?footer"), o = st(o), {
2092
2092
  columns: g.join(" "),
2093
- rows: b.join(" "),
2093
+ rows: f.join(" "),
2094
2094
  areas: o.map((p) => `"${p.join(" ")}"`).join(`
2095
2095
  `),
2096
2096
  displayMenu: !0,
@@ -2146,13 +2146,13 @@ function Er({
2146
2146
  vertical: s,
2147
2147
  horizontal: r,
2148
2148
  is: c
2149
- }), o = i.map(d), g = r.header != null || s.menu != null || s.aside != null, b = x(
2149
+ }), o = i.map(d), g = r.header != null || s.menu != null || s.aside != null, f = x(
2150
2150
  s.aside != null,
2151
2151
  o
2152
- )((w, { displayAside: $ }) => w && !$), f = x(
2152
+ )(($, { displayAside: k }) => $ && !k), b = x(
2153
2153
  s.menu != null,
2154
2154
  o
2155
- )((w, { displayMenu: $ }) => w && !$), p = Ke(), y = Ke(), h = H(0), _ = x(
2155
+ )(($, { displayMenu: k }) => $ && !k), p = Ke(), y = Ke(), h = H(0), _ = x(
2156
2156
  s.menu != null,
2157
2157
  o,
2158
2158
  p.display
@@ -2187,13 +2187,13 @@ function Er({
2187
2187
  D.zIndex("20"),
2188
2188
  D.display(g ? "block" : "none"),
2189
2189
  D.gridArea("header"),
2190
- Fe((w) => (w.$.bottom.feedProp(h), null)),
2190
+ Fe(($) => ($.$.bottom.feedProp(h), null)),
2191
2191
  l.div(
2192
2192
  D.display("flex"),
2193
2193
  D.height("100%"),
2194
2194
  l.div(
2195
2195
  D.display(
2196
- f.map((w) => w ? "flex" : "none")
2196
+ b.map(($) => $ ? "flex" : "none")
2197
2197
  ),
2198
2198
  D.alignItems("center"),
2199
2199
  D.justifyContent("center"),
@@ -2208,7 +2208,7 @@ function Er({
2208
2208
  T.label(u.$.toggleMenu),
2209
2209
  K({
2210
2210
  icon: p.display.map(
2211
- (w) => w ? "line-md/menu-to-close-alt-transition" : "line-md/close-to-menu-alt-transition"
2211
+ ($) => $ ? "line-md/menu-to-close-alt-transition" : "line-md/close-to-menu-alt-transition"
2212
2212
  )
2213
2213
  })
2214
2214
  )
@@ -2224,7 +2224,7 @@ function Er({
2224
2224
  D.height("100%"),
2225
2225
  D.width("60px"),
2226
2226
  D.display(
2227
- b.map((w) => w ? "flex" : "none")
2227
+ f.map(($) => $ ? "flex" : "none")
2228
2228
  ),
2229
2229
  Be(
2230
2230
  {
@@ -2239,7 +2239,7 @@ function Er({
2239
2239
  a.style("transition: transform 0.2s ease-in-out"),
2240
2240
  a.style(
2241
2241
  y.display.map(
2242
- (w) => `transform: rotate(${w ? 180 : 0}deg)`
2242
+ ($) => `transform: rotate(${$ ? 180 : 0}deg)`
2243
2243
  )
2244
2244
  )
2245
2245
  )
@@ -2248,7 +2248,7 @@ function Er({
2248
2248
  )
2249
2249
  ),
2250
2250
  n.menu ? l.nav(
2251
- re((w) => p.setElement(w)),
2251
+ re(($) => p.setElement($)),
2252
2252
  D.zIndex("10"),
2253
2253
  // Add ARIA attributes for navigation landmark
2254
2254
  T.label(u.$.mainNavigation),
@@ -2256,7 +2256,7 @@ function Er({
2256
2256
  D.overflow("hidden"),
2257
2257
  a.class(
2258
2258
  _.map(
2259
- (w) => w === "float" ? _e(
2259
+ ($) => $ === "float" ? _e(
2260
2260
  "right",
2261
2261
  n.menu?.shadow ?? "md"
2262
2262
  ) : _e(
@@ -2268,7 +2268,7 @@ function Er({
2268
2268
  Pe(n.menu?.color ?? "white"),
2269
2269
  D.height(
2270
2270
  _.map(
2271
- (w) => w === "float" ? "auto" : "100%"
2271
+ ($) => $ === "float" ? "auto" : "100%"
2272
2272
  )
2273
2273
  ),
2274
2274
  D.overflow("hidden"),
@@ -2277,24 +2277,24 @@ function Er({
2277
2277
  x(
2278
2278
  _,
2279
2279
  p.status
2280
- )((w, $) => w === "none" && $ === "closed" ? "none" : "block")
2280
+ )(($, k) => $ === "none" && k === "closed" ? "none" : "block")
2281
2281
  ),
2282
2282
  D.position(
2283
2283
  x(
2284
2284
  _,
2285
2285
  p.status
2286
- )((w, $) => w === "float" || w === "none" && $ !== "closed" ? "fixed" : "initial")
2286
+ )(($, k) => $ === "float" || $ === "none" && k !== "closed" ? "fixed" : "initial")
2287
2287
  ),
2288
- D.top(h.map((w) => `${w}px`)),
2289
- re((w) => {
2290
- w.style.setProperty("--slide-distance", "100%");
2288
+ D.top(h.map(($) => `${$}px`)),
2289
+ re(($) => {
2290
+ $.style.setProperty("--slide-distance", "100%");
2291
2291
  }),
2292
2292
  $t({
2293
2293
  animation: { slide: "right" },
2294
2294
  status: x(
2295
2295
  _,
2296
2296
  p.status
2297
- )((w, $) => w === "block" ? "opened" : $)
2297
+ )(($, k) => $ === "block" ? "opened" : k)
2298
2298
  }),
2299
2299
  D.width(me(n.menu?.width, o.$.menuWidth)),
2300
2300
  D.bottom("0"),
@@ -2335,8 +2335,8 @@ function Er({
2335
2335
  n.mainFooter.content
2336
2336
  ) : null,
2337
2337
  n.aside ? l.aside(
2338
- re((w) => {
2339
- y.setElement(w);
2338
+ re(($) => {
2339
+ y.setElement($);
2340
2340
  }),
2341
2341
  D.zIndex("10"),
2342
2342
  // Add ARIA attributes for aside landmark
@@ -2344,7 +2344,7 @@ function Er({
2344
2344
  a.role("complementary"),
2345
2345
  a.class(
2346
2346
  C.map(
2347
- (w) => w === "float" ? _e("left", "md") : _e("left", "none")
2347
+ ($) => $ === "float" ? _e("left", "md") : _e("left", "none")
2348
2348
  )
2349
2349
  ),
2350
2350
  Pe("white"),
@@ -2354,29 +2354,29 @@ function Er({
2354
2354
  x(
2355
2355
  C,
2356
2356
  y.status
2357
- )((w, $) => w === "none" && $ === "closed" ? "none" : "block")
2357
+ )(($, k) => $ === "none" && k === "closed" ? "none" : "block")
2358
2358
  ),
2359
2359
  D.position(
2360
2360
  x(
2361
2361
  C,
2362
2362
  y.status
2363
- )((w, $) => w === "float" || w === "none" && $ !== "closed" ? "fixed" : "initial")
2363
+ )(($, k) => $ === "float" || $ === "none" && k !== "closed" ? "fixed" : "initial")
2364
2364
  ),
2365
- D.top(h.map((w) => `${w}px`)),
2366
- re((w) => {
2367
- w.style.setProperty("--slide-distance", "100%");
2365
+ D.top(h.map(($) => `${$}px`)),
2366
+ re(($) => {
2367
+ $.style.setProperty("--slide-distance", "100%");
2368
2368
  }),
2369
2369
  $t({
2370
2370
  animation: { slide: "left" },
2371
2371
  status: x(
2372
2372
  C,
2373
2373
  y.status
2374
- )((w, $) => w === "block" ? "opened" : $)
2374
+ )(($, k) => $ === "block" ? "opened" : k)
2375
2375
  }),
2376
2376
  D.width(
2377
2377
  me(n.aside?.width, o.$.asideWidth)
2378
2378
  ),
2379
- D.bottom(h.map((w) => `${w}px`)),
2379
+ D.bottom(h.map(($) => `${$}px`)),
2380
2380
  n.aside.content
2381
2381
  ) : null,
2382
2382
  n.footer ? l.footer(
@@ -2475,65 +2475,65 @@ function jr({
2475
2475
  footerHeight: d = 0,
2476
2476
  bottomStart: o,
2477
2477
  bottomEnd: g,
2478
- sidebarStart: b,
2479
- sidebarStartWidth: f = 0,
2478
+ sidebarStart: f,
2479
+ sidebarStartWidth: b = 0,
2480
2480
  sidebarEnd: p,
2481
2481
  sidebarEndWidth: y = 0,
2482
2482
  anchorMode: h = "container-edge"
2483
2483
  }) {
2484
- const _ = H(0n), C = H(0n), w = Vt(r), $ = Vt(f), v = H(16);
2484
+ const _ = H(0n), C = H(0n), $ = Vt(r), k = Vt(b), v = H(16);
2485
2485
  return l.div(
2486
2486
  a.class("bc-nine-slice-container"),
2487
2487
  Fe((S) => {
2488
- const k = x(
2488
+ const w = x(
2489
2489
  S.$.width,
2490
- f,
2490
+ b,
2491
2491
  y
2492
- )((A, F, se) => A - F - se), P = x(
2492
+ )((A, F, se) => A - F - se), L = x(
2493
2493
  S.$.height,
2494
2494
  r,
2495
2495
  d
2496
- )((A, F, se) => A - F - se), B = x(
2496
+ )((A, F, se) => A - F - se), V = x(
2497
2497
  t,
2498
- k
2498
+ w
2499
2499
  )((A, F) => A > BigInt(F)), U = x(
2500
2500
  n,
2501
- P
2502
- )((A, F) => A > BigInt(F)), V = x(
2503
- k,
2501
+ L
2502
+ )((A, F) => A > BigInt(F)), E = x(
2503
+ w,
2504
2504
  U,
2505
2505
  v
2506
2506
  )((A, F, se) => F ? A - se : A), N = x(
2507
- P,
2508
- B,
2507
+ L,
2508
+ V,
2509
2509
  v
2510
2510
  )((A, F, se) => F ? A - se : A), q = x(
2511
2511
  t,
2512
- V
2512
+ E
2513
2513
  )((A, F) => Number(A / BigInt(Math.max(1, F)))), le = x(
2514
2514
  n,
2515
2515
  N
2516
2516
  )((A, F) => Number(A / BigInt(Math.max(1, F)))), O = m.map(
2517
2517
  h,
2518
2518
  (A) => A === "body-end" || A === "body-end-bottom"
2519
- ), M = E(
2519
+ ), M = B(
2520
2520
  O,
2521
2521
  () => D.left(
2522
2522
  x(
2523
- f,
2523
+ b,
2524
2524
  t,
2525
- V,
2525
+ E,
2526
2526
  y
2527
- )((A, F, se, L) => {
2527
+ )((A, F, se, P) => {
2528
2528
  const R = A + Number(F), Y = A + se, ae = Math.min(R, Y);
2529
- return `${Math.max(A + L, ae)}px`;
2529
+ return `${Math.max(A + P, ae)}px`;
2530
2530
  })
2531
2531
  ),
2532
2532
  () => D.right("0")
2533
2533
  ), j = m.map(
2534
2534
  h,
2535
2535
  (A) => A === "body-bottom" || A === "body-end-bottom"
2536
- ), W = E(
2536
+ ), W = B(
2537
2537
  j,
2538
2538
  () => D.top(
2539
2539
  x(
@@ -2541,9 +2541,9 @@ function jr({
2541
2541
  n,
2542
2542
  N,
2543
2543
  d
2544
- )((A, F, se, L) => {
2544
+ )((A, F, se, P) => {
2545
2545
  const R = A + Number(F), Y = A + se, ae = Math.min(R, Y);
2546
- return `${Math.max(A + L, ae)}px`;
2546
+ return `${Math.max(A + P, ae)}px`;
2547
2547
  })
2548
2548
  ),
2549
2549
  () => D.bottom("0")
@@ -2551,16 +2551,16 @@ function jr({
2551
2551
  U,
2552
2552
  v
2553
2553
  )((A, F) => A ? `${F}px` : "0"), J = x(
2554
- B,
2554
+ V,
2555
2555
  v
2556
2556
  )((A, F) => A ? `${F}px` : "0"), ce = D.transform(
2557
2557
  x(
2558
2558
  C,
2559
2559
  _,
2560
- B,
2560
+ V,
2561
2561
  U
2562
- )((A, F, se, L) => {
2563
- const R = se ? `translateX(-${A}px)` : "", Y = L ? `translateY(-${F}px)` : "";
2562
+ )((A, F, se, P) => {
2563
+ const R = se ? `translateX(-${A}px)` : "", Y = P ? `translateY(-${F}px)` : "";
2564
2564
  return `${R} ${Y}`.trim() || "none";
2565
2565
  })
2566
2566
  ), ue = D.transform(
@@ -2572,11 +2572,11 @@ function jr({
2572
2572
  N
2573
2573
  )((A, F) => A - BigInt(Math.max(1, F))), Oe = x(
2574
2574
  t,
2575
- V
2575
+ E
2576
2576
  )((A, F) => A - BigInt(Math.max(1, F)));
2577
2577
  let X = null, Ve = 0, Ee = 0;
2578
2578
  const et = () => {
2579
- const A = Te.value, F = Oe.value, se = U.value, L = B.value;
2579
+ const A = Te.value, F = Oe.value, se = U.value, P = V.value;
2580
2580
  if (se && Ee !== 0) {
2581
2581
  const R = Pt(
2582
2582
  Ye(0n, A),
@@ -2587,7 +2587,7 @@ function jr({
2587
2587
  );
2588
2588
  _.set(R);
2589
2589
  }
2590
- if (L && Ve !== 0) {
2590
+ if (P && Ve !== 0) {
2591
2591
  const R = Pt(
2592
2592
  Ye(0n, F),
2593
2593
  Ye(
@@ -2599,7 +2599,7 @@ function jr({
2599
2599
  }
2600
2600
  Ve = 0, Ee = 0, X = null;
2601
2601
  };
2602
- return B.on((A) => {
2602
+ return V.on((A) => {
2603
2603
  A || C.set(0n);
2604
2604
  }), U.on((A) => {
2605
2605
  A || _.set(0n);
@@ -2629,7 +2629,7 @@ function jr({
2629
2629
  s != null ? l.div(
2630
2630
  a.class("bc-nine-slice-pane bc-nine-slice-header"),
2631
2631
  D.top("0"),
2632
- D.left($),
2632
+ D.left(k),
2633
2633
  // style.height(headerHeightPx),
2634
2634
  // style.width(visibleAreaWidthPx),
2635
2635
  l.div(
@@ -2648,23 +2648,23 @@ function jr({
2648
2648
  i
2649
2649
  ) : null,
2650
2650
  // middle-start sidebar
2651
- b != null ? l.div(
2651
+ f != null ? l.div(
2652
2652
  a.class("bc-nine-slice-pane bc-nine-slice-sidebar-start"),
2653
2653
  D.left("0"),
2654
- D.top(w),
2654
+ D.top($),
2655
2655
  // style.height(visibleAreaHeightPx),
2656
2656
  // style.width(sidebarStartWidthPx),
2657
2657
  l.div(
2658
2658
  a.class("bc-nine-slice-pane-content"),
2659
2659
  ge,
2660
- b
2660
+ f
2661
2661
  )
2662
2662
  ) : null,
2663
2663
  // middle-center (main body)
2664
2664
  l.div(
2665
2665
  a.class("bc-nine-slice-pane bc-nine-slice-body"),
2666
- D.left($),
2667
- D.top(w),
2666
+ D.left(k),
2667
+ D.top($),
2668
2668
  // style.width(visibleAreaWidth.map(toPx)),
2669
2669
  // style.height(visibleAreaHeight.map(toPx)),
2670
2670
  l.div(
@@ -2677,7 +2677,7 @@ function jr({
2677
2677
  p != null ? l.div(
2678
2678
  a.class("bc-nine-slice-pane bc-nine-slice-sidebar-end"),
2679
2679
  M,
2680
- D.top(w),
2680
+ D.top($),
2681
2681
  // style.height(visibleAreaHeightPx),
2682
2682
  // style.width(sidebarEndWidthPx),
2683
2683
  l.div(
@@ -2698,7 +2698,7 @@ function jr({
2698
2698
  // bottom-center
2699
2699
  c != null ? l.div(
2700
2700
  a.class("bc-nine-slice-pane bc-nine-slice-footer"),
2701
- D.left($),
2701
+ D.left(k),
2702
2702
  W,
2703
2703
  // style.height(footerHeightPx),
2704
2704
  // style.width(visibleAreaWidthPx),
@@ -2731,7 +2731,7 @@ function jr({
2731
2731
  ),
2732
2732
  D.bottom("0"),
2733
2733
  D.height(
2734
- B.map(
2734
+ V.map(
2735
2735
  (A) => A ? "16px" : "0"
2736
2736
  )
2737
2737
  ),
@@ -2746,9 +2746,9 @@ function jr({
2746
2746
  D.backgroundColor("#ff000066")
2747
2747
  ),
2748
2748
  I.scroll((A) => {
2749
- const F = A.target, se = F.scrollLeft, L = F.scrollWidth - F.clientWidth;
2750
- if (L > 0) {
2751
- const R = se / L, Y = Oe.value;
2749
+ const F = A.target, se = F.scrollLeft, P = F.scrollWidth - F.clientWidth;
2750
+ if (P > 0) {
2751
+ const R = se / P, Y = Oe.value;
2752
2752
  C.set(
2753
2753
  BigInt(Math.round(Number(Y) * R))
2754
2754
  );
@@ -2762,7 +2762,7 @@ function jr({
2762
2762
  D.top("0"),
2763
2763
  D.bottom(
2764
2764
  x(
2765
- B,
2765
+ V,
2766
2766
  v
2767
2767
  )((A, F) => A ? `${F}px` : "0")
2768
2768
  ),
@@ -2783,14 +2783,14 @@ function jr({
2783
2783
  d,
2784
2784
  n,
2785
2785
  le
2786
- )((A, F, se, L) => `${100 / Math.max(1, L)}%`)
2786
+ )((A, F, se, P) => `${100 / Math.max(1, P)}%`)
2787
2787
  ),
2788
2788
  D.backgroundColor("#ff000066")
2789
2789
  ),
2790
2790
  I.scroll((A) => {
2791
- const F = A.target, se = F.scrollTop, L = F.scrollHeight - F.clientHeight;
2792
- if (L > 0) {
2793
- const R = se / L, Y = Te.value;
2791
+ const F = A.target, se = F.scrollTop, P = F.scrollHeight - F.clientHeight;
2792
+ if (P > 0) {
2793
+ const R = se / P, Y = Te.value;
2794
2794
  _.set(
2795
2795
  BigInt(Math.round(Number(Y) * R))
2796
2796
  );
@@ -3000,52 +3000,58 @@ const Ae = {
3000
3000
  onBeforeOpen: c,
3001
3001
  onAfterOpen: d,
3002
3002
  buildListboxContent: o
3003
- } = e, g = H(!1), b = H(-1), f = H(null), p = he("dropdown"), y = he("listbox");
3003
+ } = e, g = H(!1), f = H(-1), b = H(null), p = he("dropdown"), y = he("listbox");
3004
3004
  let h, _;
3005
- const C = ($) => {
3006
- t?.($), g.set(!1), b.set(-1), f.set(null), h?.focus();
3007
- }, w = ($) => {
3005
+ const C = (k) => {
3006
+ t?.(k), g.set(!1), f.set(-1), b.set(null), h?.focus();
3007
+ }, $ = (k) => {
3008
3008
  const v = Ae.getValues(m.get(u));
3009
- switch ($.key) {
3009
+ switch (k.key) {
3010
3010
  case "ArrowDown": {
3011
- if ($.preventDefault(), !g.value)
3012
- g.set(!0), v.length > 0 && (b.set(0), f.set(v[0]));
3011
+ if (k.preventDefault(), !g.value)
3012
+ g.set(!0), v.length > 0 && (f.set(0), b.set(v[0]));
3013
3013
  else {
3014
3014
  const S = Math.min(
3015
- b.value + 1,
3015
+ f.value + 1,
3016
3016
  v.length - 1
3017
3017
  );
3018
- b.set(S), f.set(v[S] ?? null);
3018
+ f.set(S), b.set(v[S] ?? null);
3019
3019
  }
3020
3020
  break;
3021
3021
  }
3022
3022
  case "ArrowUp": {
3023
- if ($.preventDefault(), g.value) {
3024
- const S = Math.max(b.value - 1, 0);
3025
- b.set(S), f.set(v[S] ?? null);
3023
+ if (k.preventDefault(), g.value) {
3024
+ const S = Math.max(f.value - 1, 0);
3025
+ f.set(S), b.set(v[S] ?? null);
3026
3026
  }
3027
3027
  break;
3028
3028
  }
3029
3029
  case "Enter": {
3030
- if ($.preventDefault(), g.value && b.value >= 0) {
3031
- const S = v[b.value];
3030
+ if (k.preventDefault(), g.value && f.value >= 0) {
3031
+ const S = v[f.value];
3032
3032
  S != null && C(S);
3033
3033
  } else {
3034
3034
  c?.();
3035
3035
  const S = Ae.getValues(m.get(u));
3036
- g.set(!0), S.length > 0 && (b.set(0), f.set(S[0])), setTimeout(() => d?.(), 0);
3036
+ g.set(!0), S.length > 0 && (f.set(0), b.set(S[0])), setTimeout(() => {
3037
+ requestAnimationFrame(() => {
3038
+ requestAnimationFrame(() => {
3039
+ d?.();
3040
+ });
3041
+ });
3042
+ }, 0);
3037
3043
  }
3038
3044
  break;
3039
3045
  }
3040
3046
  case "Escape": {
3041
- g.value && ($.preventDefault(), g.set(!1), b.set(-1), f.set(null), h?.focus());
3047
+ g.value && (k.preventDefault(), g.set(!1), f.set(-1), b.set(null), h?.focus());
3042
3048
  break;
3043
3049
  }
3044
3050
  case " ": {
3045
3051
  if (m.get(i)) {
3046
- $.preventDefault();
3052
+ k.preventDefault();
3047
3053
  const S = Ae.getValues(m.get(u));
3048
- g.set(!g.value), g.value && S.length > 0 && (b.set(0), f.set(S[0]));
3054
+ g.set(!g.value), g.value && S.length > 0 && (f.set(0), b.set(S[0]));
3049
3055
  }
3050
3056
  break;
3051
3057
  }
@@ -3063,9 +3069,9 @@ const Ae = {
3063
3069
  )
3064
3070
  )
3065
3071
  },
3066
- Fe(($) => Q(
3067
- re((v) => (h = v, v.addEventListener("keydown", w), fe(
3068
- () => v.removeEventListener("keydown", w)
3072
+ Fe((k) => Q(
3073
+ re((v) => (h = v, v.addEventListener("keydown", $), fe(
3074
+ () => v.removeEventListener("keydown", $)
3069
3075
  ))),
3070
3076
  Ie(e),
3071
3077
  a.id(p),
@@ -3077,14 +3083,14 @@ const Ae = {
3077
3083
  T.activedescendant(
3078
3084
  x(
3079
3085
  g,
3080
- f
3086
+ b
3081
3087
  )(
3082
3088
  (v, S) => v && S != null ? `dropdown-option-${String(S)}` : ""
3083
3089
  )
3084
3090
  ),
3085
3091
  n != null ? I.blur(() => {
3086
3092
  setTimeout(() => {
3087
- _?.contains(document.activeElement) || (g.set(!1), b.set(-1), n());
3093
+ _?.contains(document.activeElement) || (g.set(!1), f.set(-1), n());
3088
3094
  }, 100);
3089
3095
  }) : z,
3090
3096
  gt({
@@ -3092,7 +3098,7 @@ const Ae = {
3092
3098
  re((v) => {
3093
3099
  _ = v;
3094
3100
  }),
3095
- D.minWidth($.$.width.map((v) => `${v - 10}px`)),
3101
+ D.minWidth(k.$.width.map((v) => `${v - 10}px`)),
3096
3102
  a.class("bc-dropdown__listbox"),
3097
3103
  a.role("listbox"),
3098
3104
  a.id(y),
@@ -3100,8 +3106,8 @@ const Ae = {
3100
3106
  o({
3101
3107
  dropdownId: p,
3102
3108
  listboxId: y,
3103
- focusedValue: f,
3104
- handleKeyDown: w,
3109
+ focusedValue: b,
3110
+ handleKeyDown: $,
3105
3111
  onSelect: C
3106
3112
  })
3107
3113
  ),
@@ -3109,20 +3115,26 @@ const Ae = {
3109
3115
  placement: "bottom-start",
3110
3116
  hasPopup: "listbox",
3111
3117
  showOn: (v, S) => {
3112
- const k = S;
3118
+ const w = S;
3113
3119
  S = () => {
3114
- g.set(!1), b.set(-1), f.set(null), k();
3120
+ g.set(!1), f.set(-1), b.set(null), w();
3115
3121
  };
3116
- const P = () => {
3122
+ const L = () => {
3117
3123
  if (g.value)
3118
3124
  S();
3119
3125
  else {
3120
3126
  c?.();
3121
- const B = Ae.getValues(m.get(u));
3122
- g.set(!0), B.length > 0 && (b.set(0), f.set(B[0])), v(), setTimeout(() => d?.(), 0);
3127
+ const V = Ae.getValues(m.get(u));
3128
+ g.set(!0), V.length > 0 && (f.set(0), b.set(V[0])), v(), setTimeout(() => {
3129
+ requestAnimationFrame(() => {
3130
+ requestAnimationFrame(() => {
3131
+ d?.();
3132
+ });
3133
+ });
3134
+ }, 0);
3123
3135
  }
3124
3136
  };
3125
- return I.click(P);
3137
+ return I.click(L);
3126
3138
  },
3127
3139
  showDelay: 0,
3128
3140
  hideDelay: 0,
@@ -3148,16 +3160,16 @@ const Ae = {
3148
3160
  c,
3149
3161
  d,
3150
3162
  i
3151
- )((o, g, b) => {
3152
- const f = [];
3153
- return o && f.push("bc-dropdown__option--selected"), g && f.push("bc-dropdown__option--focused"), b.disabled && f.push("bc-dropdown__option--disabled"), f.join(" ");
3163
+ )((o, g, f) => {
3164
+ const b = [];
3165
+ return o && b.push("bc-dropdown__option--selected"), g && b.push("bc-dropdown__option--focused"), f.disabled && b.push("bc-dropdown__option--disabled"), b.join(" ");
3154
3166
  })
3155
3167
  ),
3156
3168
  a.role("option"),
3157
3169
  a.id(i.map((o) => `dropdown-option-${String(o.value)}`)),
3158
3170
  T.selected(c),
3159
3171
  Yn("value", i.$.value),
3160
- E(
3172
+ B(
3161
3173
  i.map((o) => !o.disabled),
3162
3174
  () => I.click(() => s(i.value.value)),
3163
3175
  () => z
@@ -3207,22 +3219,22 @@ const Ae = {
3207
3219
  n
3208
3220
  )((o, g) => {
3209
3221
  if (o == null) return "";
3210
- const b = (f) => {
3211
- for (const p of f) {
3222
+ const f = (b) => {
3223
+ for (const p of b) {
3212
3224
  if (p.type === "value" && r(p.value, o))
3213
3225
  return p.label;
3214
3226
  if (p.type === "group") {
3215
- const y = b(p.options);
3227
+ const y = f(p.options);
3216
3228
  if (y) return y;
3217
3229
  }
3218
3230
  }
3219
3231
  };
3220
- return b(g) || String(o);
3232
+ return f(g) || String(o);
3221
3233
  }), d = x(i)((o) => !o);
3222
3234
  return bn({
3223
3235
  ...e,
3224
3236
  role: "dropdown",
3225
- display: E(
3237
+ display: B(
3226
3238
  c.map((o) => o.length > 0),
3227
3239
  () => c,
3228
3240
  () => ne(
@@ -3234,7 +3246,7 @@ const Ae = {
3234
3246
  allowSpaceToggle: d,
3235
3247
  buildListboxContent: ({ focusedValue: o, onSelect: g }) => ie(
3236
3248
  n,
3237
- (b) => fn(b, r, t, g, o)
3249
+ (f) => fn(f, r, t, g, o)
3238
3250
  )
3239
3251
  });
3240
3252
  }, Oa = (e) => {
@@ -3255,11 +3267,11 @@ const Ae = {
3255
3267
  const d = x(
3256
3268
  c,
3257
3269
  n
3258
- )((g, b) => t(g.value, b)), o = x(
3270
+ )((g, f) => t(g.value, f)), o = x(
3259
3271
  c,
3260
3272
  r
3261
3273
  )(
3262
- (g, b) => b != null && t(g.value, b)
3274
+ (g, f) => f != null && t(g.value, f)
3263
3275
  );
3264
3276
  return l.div(
3265
3277
  a.class("bc-dropdown__option"),
@@ -3268,15 +3280,15 @@ const Ae = {
3268
3280
  d,
3269
3281
  o,
3270
3282
  c
3271
- )((g, b, f) => {
3283
+ )((g, f, b) => {
3272
3284
  const p = [];
3273
- return g && p.push("bc-dropdown__option--selected"), b && p.push("bc-dropdown__option--focused"), f.disabled && p.push("bc-dropdown__option--disabled"), p.join(" ");
3285
+ return g && p.push("bc-dropdown__option--selected"), f && p.push("bc-dropdown__option--focused"), b.disabled && p.push("bc-dropdown__option--disabled"), p.join(" ");
3274
3286
  })
3275
3287
  ),
3276
3288
  a.role("option"),
3277
3289
  a.id(c.map((g) => `dropdown-option-${String(g.value)}`)),
3278
3290
  T.selected(d),
3279
- E(
3291
+ B(
3280
3292
  c.map((g) => !g.disabled),
3281
3293
  () => I.click(() => s(c.value.value)),
3282
3294
  () => z
@@ -3323,24 +3335,25 @@ const Ae = {
3323
3335
  loadOptions: n,
3324
3336
  renderOption: s,
3325
3337
  renderValue: r,
3326
- equality: u = (w, $) => w === $,
3338
+ equality: u = (k, v) => k === v,
3327
3339
  placeholder: i,
3328
3340
  searchPlaceholder: c,
3329
- debounceMs: d = 150
3330
- } = e, o = H(""), g = H(!1), b = H([]);
3331
- let f;
3332
- const p = m.toSignal(t), y = () => (r ?? s)(p);
3333
- let h = null;
3334
- const _ = (w) => {
3335
- g.set(!0), Promise.resolve(n(w)).then(($) => {
3336
- b.set($ ?? []);
3341
+ debounceMs: d = 150,
3342
+ autoFocusSearch: o = !0
3343
+ } = e, g = H(""), f = H(!1), b = H([]);
3344
+ let p;
3345
+ const y = m.toSignal(t), h = () => (r ?? s)(y);
3346
+ let _ = null;
3347
+ const C = (k) => {
3348
+ f.set(!0), Promise.resolve(n(k)).then((v) => {
3349
+ b.set(v ?? []);
3337
3350
  }).catch(() => {
3338
3351
  b.set([]);
3339
- }).finally(() => g.set(!1));
3340
- }, C = (w) => {
3341
- h != null && (clearTimeout(h), h = null), h = setTimeout(
3352
+ }).finally(() => f.set(!1));
3353
+ }, $ = (k) => {
3354
+ _ != null && (clearTimeout(_), _ = null), _ = setTimeout(
3342
3355
  () => {
3343
- _(w);
3356
+ C(k);
3344
3357
  },
3345
3358
  Math.max(0, d)
3346
3359
  );
@@ -3348,20 +3361,20 @@ const Ae = {
3348
3361
  return bn({
3349
3362
  ...e,
3350
3363
  role: "combobox",
3351
- display: E(
3352
- x(t)((w) => w != null),
3353
- y,
3354
- () => ne(oe, (w) => w.$.selectOne)
3364
+ display: B(
3365
+ x(t)((k) => k != null),
3366
+ h,
3367
+ () => ne(oe, (k) => k.$.selectOne)
3355
3368
  ),
3356
3369
  optionsSource: b,
3357
3370
  onBeforeOpen: () => {
3358
- const w = m.get(o);
3359
- C(w);
3371
+ const k = m.get(g);
3372
+ $(k);
3360
3373
  },
3361
3374
  onAfterOpen: () => {
3362
- f?.focus();
3375
+ o && p?.focus();
3363
3376
  },
3364
- buildListboxContent: ({ focusedValue: w, handleKeyDown: $, onSelect: v }) => Q(
3377
+ buildListboxContent: ({ focusedValue: k, handleKeyDown: v, onSelect: S }) => Q(
3365
3378
  // Search input at the top
3366
3379
  l.div(
3367
3380
  a.class("bc-dropdown__search"),
@@ -3372,31 +3385,31 @@ const Ae = {
3372
3385
  x(
3373
3386
  c,
3374
3387
  i
3375
- )((S, k) => S ?? k ?? "Search")
3388
+ )((w, L) => w ?? L ?? "Search")
3376
3389
  ),
3377
- a.value(o),
3378
- re((S) => (f = S, z)),
3379
- I.input((S) => {
3380
- const k = S.target;
3381
- o.set(k.value), C(k.value);
3390
+ a.value(g),
3391
+ re((w) => (p = w, z)),
3392
+ I.input((w) => {
3393
+ const L = w.target;
3394
+ g.set(L.value), $(L.value);
3382
3395
  }),
3383
- I.keydown($)
3396
+ I.keydown(v)
3384
3397
  )
3385
3398
  ),
3386
- E(
3387
- g,
3399
+ B(
3400
+ f,
3388
3401
  () => l.div(
3389
3402
  a.class("bc-dropdown__loading"),
3390
3403
  K({ icon: "ph:spinner-bold", color: "neutral" })
3391
3404
  ),
3392
3405
  () => ie(
3393
3406
  b,
3394
- (S) => gn(
3395
- S,
3396
- u,
3397
- p,
3398
- v,
3407
+ (w) => gn(
3399
3408
  w,
3409
+ u,
3410
+ y,
3411
+ S,
3412
+ k,
3400
3413
  s
3401
3414
  )
3402
3415
  )
@@ -3490,35 +3503,35 @@ function kn(e) {
3490
3503
  }, c = (o) => x(t)((g) => vn(g, o, s)), d = en({
3491
3504
  items: () => {
3492
3505
  const o = m.get(n), g = [];
3493
- for (const b of o)
3494
- if (b.type === "value") {
3495
- const f = c(b.value);
3506
+ for (const f of o)
3507
+ if (f.type === "value") {
3508
+ const b = c(f.value);
3496
3509
  g.push(
3497
3510
  l.div(
3498
3511
  a.role("menuitem"),
3499
3512
  a.tabindex(-1),
3500
- T.disabled(b.disabled === !0),
3501
- T.checked(f),
3513
+ T.disabled(f.disabled === !0),
3514
+ T.checked(b),
3502
3515
  a.class("bc-menu-item"),
3503
- l.span(a.class("bc-menu-item__content"), b.label),
3504
- I.click(() => i(b.value))
3516
+ l.span(a.class("bc-menu-item__content"), f.label),
3517
+ I.click(() => i(f.value))
3505
3518
  )
3506
3519
  );
3507
- } else b.type === "group" ? g.push(
3520
+ } else f.type === "group" ? g.push(
3508
3521
  l.div(
3509
3522
  a.class("bc-menu-group"),
3510
- l.div(a.class("bc-menu-group__label"), b.group),
3511
- ...b.options.map((f) => {
3512
- if (f.type === "value") {
3513
- const p = c(f.value);
3523
+ l.div(a.class("bc-menu-group__label"), f.group),
3524
+ ...f.options.map((b) => {
3525
+ if (b.type === "value") {
3526
+ const p = c(b.value);
3514
3527
  return l.div(
3515
3528
  a.role("menuitem"),
3516
3529
  a.tabindex(-1),
3517
- T.disabled(f.disabled === !0),
3530
+ T.disabled(b.disabled === !0),
3518
3531
  T.checked(p),
3519
3532
  a.class("bc-menu-item"),
3520
- l.span(a.class("bc-menu-item__content"), f.label),
3521
- I.click(() => i(f.value))
3533
+ l.span(a.class("bc-menu-item__content"), b.label),
3534
+ I.click(() => i(b.value))
3522
3535
  );
3523
3536
  }
3524
3537
  return Q();
@@ -3584,12 +3597,12 @@ function xn(e) {
3584
3597
  }, o = (p) => {
3585
3598
  const y = m.get(t);
3586
3599
  e.onChange?.(mn(y, p, s));
3587
- }, g = (p) => x(t)((y) => vn(y, p, s)), b = x(
3600
+ }, g = (p) => x(t)((y) => vn(y, p, s)), f = x(
3588
3601
  n,
3589
3602
  c
3590
- )((p, y) => _n(p, y, i)), f = en({
3603
+ )((p, y) => _n(p, y, i)), b = en({
3591
3604
  items: () => {
3592
- const p = [], y = m.get(b);
3605
+ const p = [], y = m.get(f);
3593
3606
  if (y.length === 0)
3594
3607
  return p.push(
3595
3608
  l.div(
@@ -3688,7 +3701,7 @@ function xn(e) {
3688
3701
  (p.key === "ArrowUp" || p.key === "ArrowDown" || p.key === "Enter" || p.key === " ") && p.stopPropagation();
3689
3702
  })
3690
3703
  ),
3691
- f
3704
+ b
3692
3705
  )
3693
3706
  )
3694
3707
  });
@@ -3786,18 +3799,18 @@ function Qr(e) {
3786
3799
  disabled: u = !1,
3787
3800
  maxTags: i,
3788
3801
  hasError: c = !1
3789
- } = e, d = H(""), o = (f) => {
3790
- const y = m.get(t).filter((h) => h !== f);
3802
+ } = e, d = H(""), o = (b) => {
3803
+ const y = m.get(t).filter((h) => h !== b);
3791
3804
  n?.(y);
3792
- }, g = (f) => {
3793
- const p = f.trim();
3805
+ }, g = (b) => {
3806
+ const p = b.trim();
3794
3807
  if (!p) return;
3795
3808
  const y = m.get(t), h = m.get(i ?? 1 / 0);
3796
3809
  y.includes(p) || y.length >= h || (n?.([...y, p]), d.set(""));
3797
- }, b = (f) => {
3798
- if (f.key === "Enter" || f.key === ",")
3799
- f.preventDefault(), g(d.value);
3800
- else if (f.key === "Backspace" && d.value === "") {
3810
+ }, f = (b) => {
3811
+ if (b.key === "Enter" || b.key === ",")
3812
+ b.preventDefault(), g(d.value);
3813
+ else if (b.key === "Backspace" && d.value === "") {
3801
3814
  const p = m.get(t);
3802
3815
  p.length > 0 && o(p[p.length - 1]);
3803
3816
  }
@@ -3808,20 +3821,20 @@ function Qr(e) {
3808
3821
  r,
3809
3822
  u,
3810
3823
  c
3811
- )((f, p, y) => Ha(f ?? "md", p ?? !1, y ?? !1))
3824
+ )((b, p, y) => Ha(b ?? "md", p ?? !1, y ?? !1))
3812
3825
  ),
3813
3826
  ie(
3814
3827
  t,
3815
- (f) => l.span(
3828
+ (b) => l.span(
3816
3829
  a.class("bc-tag-input__tag"),
3817
- l.span(a.class("bc-tag-input__tag-text"), f),
3818
- E(
3830
+ l.span(a.class("bc-tag-input__tag-text"), b),
3831
+ B(
3819
3832
  x(u)((p) => !(p ?? !1)),
3820
3833
  () => l.button(
3821
3834
  a.type("button"),
3822
3835
  a.class("bc-tag-input__tag-remove"),
3823
3836
  I.click((p) => {
3824
- p.stopPropagation(), o(f.value);
3837
+ p.stopPropagation(), o(b.value);
3825
3838
  }),
3826
3839
  "×"
3827
3840
  ),
@@ -3836,15 +3849,15 @@ function Qr(e) {
3836
3849
  x(
3837
3850
  t,
3838
3851
  s
3839
- )((f, p) => f.length === 0 ? p ?? "Add..." : "")
3852
+ )((b, p) => b.length === 0 ? p ?? "Add..." : "")
3840
3853
  ),
3841
3854
  a.disabled(u),
3842
3855
  a.value(d),
3843
- I.input((f) => {
3844
- const p = f.target;
3856
+ I.input((b) => {
3857
+ const p = b.target;
3845
3858
  d.set(p.value);
3846
3859
  }),
3847
- I.keydown(b),
3860
+ I.keydown(f),
3848
3861
  I.blur(() => {
3849
3862
  d.value.trim() && g(d.value);
3850
3863
  })
@@ -3917,7 +3930,7 @@ function to({
3917
3930
  a.role("radiogroup"),
3918
3931
  // Render each radio option
3919
3932
  ie(e, (o) => {
3920
- const g = o.map((f) => f.disabled ?? !1), b = he("radio");
3933
+ const g = o.map((b) => b.disabled ?? !1), f = he("radio");
3921
3934
  return l.label(
3922
3935
  a.class(
3923
3936
  x(
@@ -3925,8 +3938,8 @@ function to({
3925
3938
  r,
3926
3939
  g
3927
3940
  )(
3928
- (f, p, y) => Ya(
3929
- f ?? "md",
3941
+ (b, p, y) => Ya(
3942
+ b ?? "md",
3930
3943
  y ?? !1,
3931
3944
  p ?? !1
3932
3945
  )
@@ -3936,17 +3949,17 @@ function to({
3936
3949
  l.input(
3937
3950
  a.type("radio"),
3938
3951
  a.name(d),
3939
- a.id(b),
3940
- a.value(o.map((f) => String(f.value))),
3952
+ a.id(f),
3953
+ a.value(o.map((b) => String(b.value))),
3941
3954
  a.class("bc-radio-group__input"),
3942
3955
  a.checked(
3943
- x(t, o)((f, p) => f === p.value)
3956
+ x(t, o)((b, p) => b === p.value)
3944
3957
  ),
3945
3958
  a.disabled(
3946
3959
  x(
3947
3960
  r,
3948
3961
  g
3949
- )((f, p) => (f ?? !1) || (p ?? !1))
3962
+ )((b, p) => (b ?? !1) || (p ?? !1))
3950
3963
  ),
3951
3964
  I.change(() => {
3952
3965
  m.get(r) || (m.get(o).disabled ?? !1) || n?.(m.get(o).value);
@@ -3955,7 +3968,7 @@ function to({
3955
3968
  x(
3956
3969
  r,
3957
3970
  g
3958
- )((f, p) => (f ?? !1) || (p ?? !1))
3971
+ )((b, p) => (b ?? !1) || (p ?? !1))
3959
3972
  )
3960
3973
  ),
3961
3974
  // Custom radio indicator
@@ -3965,11 +3978,11 @@ function to({
3965
3978
  a.class("bc-radio-group__label-container"),
3966
3979
  l.span(
3967
3980
  a.class("bc-radio-group__label"),
3968
- o.map((f) => f.label)
3981
+ o.map((b) => b.label)
3969
3982
  ),
3970
3983
  l.span(
3971
3984
  a.class("bc-radio-group__description"),
3972
- o.map((f) => f.description ?? "")
3985
+ o.map((b) => b.description ?? "")
3973
3986
  )
3974
3987
  )
3975
3988
  );
@@ -4005,33 +4018,33 @@ function no({
4005
4018
  range: d,
4006
4019
  points: o,
4007
4020
  onRangeChange: g,
4008
- onPointsChange: b,
4009
- ticks: f,
4021
+ onPointsChange: f,
4022
+ ticks: b,
4010
4023
  showValue: p = !1,
4011
4024
  formatValue: y = (C) => String(C),
4012
4025
  segmentColors: h,
4013
4026
  renderThumb: _
4014
4027
  }) {
4015
- const C = o != null ? "multi" : d != null ? "range" : "single", w = C === "multi" ? m.get(o).length : C === "range" ? 2 : 1, $ = [];
4016
- if (f === !0)
4017
- for (let V = e; V <= t; V += n)
4018
- $.push({ value: V });
4019
- else Array.isArray(f) && $.push(...f);
4020
- const v = C === "multi" ? m.map(o, (V) => [...V]) : C === "range" ? m.map(d, (V) => [V[0], V[1]]) : m.map(i ?? 0, (V) => [V]), S = H(null);
4021
- function k(V) {
4028
+ const C = o != null ? "multi" : d != null ? "range" : "single", $ = C === "multi" ? m.get(o).length : C === "range" ? 2 : 1, k = [];
4029
+ if (b === !0)
4030
+ for (let E = e; E <= t; E += n)
4031
+ k.push({ value: E });
4032
+ else Array.isArray(b) && k.push(...b);
4033
+ const v = C === "multi" ? m.map(o, (E) => [...E]) : C === "range" ? m.map(d, (E) => [E[0], E[1]]) : m.map(i ?? 0, (E) => [E]), S = H(null);
4034
+ function w(E) {
4022
4035
  if (C === "multi")
4023
- b?.(V);
4036
+ f?.(E);
4024
4037
  else if (C === "range") {
4025
- const N = [V[0], V[1]];
4038
+ const N = [E[0], E[1]];
4026
4039
  N[0] > N[1] && N.reverse(), g?.(N);
4027
4040
  } else
4028
- c?.(V[0]);
4041
+ c?.(E[0]);
4029
4042
  }
4030
- function P(V, N, q) {
4031
- const le = V.getBoundingClientRect(), O = Ge((N - le.left) / le.width, 0, 1), M = e + O * (t - e), j = Ge(Ga(M, e, n), e, t), W = m.get(v);
4043
+ function L(E, N, q) {
4044
+ const le = E.getBoundingClientRect(), O = Ge((N - le.left) / le.width, 0, 1), M = e + O * (t - e), j = Ge(Ga(M, e, n), e, t), W = m.get(v);
4032
4045
  if (q != null) {
4033
4046
  const Z = [...W];
4034
- Z[q] = j, k(Z);
4047
+ Z[q] = j, w(Z);
4035
4048
  } else {
4036
4049
  let Z = 0, J = Math.abs(W[0] - j);
4037
4050
  for (let ue = 1; ue < W.length; ue++) {
@@ -4039,14 +4052,14 @@ function no({
4039
4052
  ge < J && (Z = ue, J = ge);
4040
4053
  }
4041
4054
  const ce = [...W];
4042
- ce[Z] = j, S.set(Z), k(ce);
4055
+ ce[Z] = j, S.set(Z), w(ce);
4043
4056
  }
4044
4057
  }
4045
- function B(V) {
4046
- return m.map(v, (N) => N[V] ?? e);
4058
+ function V(E) {
4059
+ return m.map(v, (N) => N[E] ?? e);
4047
4060
  }
4048
- function U(V, N) {
4049
- const q = B(V), le = m.map(
4061
+ function U(E, N) {
4062
+ const q = V(E), le = m.map(
4050
4063
  q,
4051
4064
  (O) => `${$e(O, e, t)}%`
4052
4065
  );
@@ -4054,10 +4067,14 @@ function no({
4054
4067
  a.class("bc-advanced-slider__thumb-container"),
4055
4068
  D.left(le),
4056
4069
  // Value label
4057
- p ? l.div(
4058
- a.class("bc-advanced-slider__value-label"),
4059
- m.map(q, (O) => y(O))
4060
- ) : z,
4070
+ B(
4071
+ p,
4072
+ () => l.div(
4073
+ a.class("bc-advanced-slider__value-label"),
4074
+ m.map(q, (O) => y(O))
4075
+ ),
4076
+ () => z
4077
+ ),
4061
4078
  l.div(
4062
4079
  a.class(
4063
4080
  _ ? "bc-advanced-slider__thumb-custom" : "bc-advanced-slider__thumb"
@@ -4067,10 +4084,10 @@ function no({
4067
4084
  T.valuemin(e),
4068
4085
  T.valuemax(t),
4069
4086
  T.valuenow(q),
4070
- T.label(`Thumb ${V + 1}`),
4087
+ T.label(`Thumb ${E + 1}`),
4071
4088
  I.keydown((O) => {
4072
4089
  if (m.get(s)) return;
4073
- const M = m.get(v), j = M[V];
4090
+ const M = m.get(v), j = M[E];
4074
4091
  let W = j;
4075
4092
  switch (O.key) {
4076
4093
  case "ArrowRight":
@@ -4091,28 +4108,28 @@ function no({
4091
4108
  return;
4092
4109
  }
4093
4110
  const Z = [...M];
4094
- Z[V] = W, k(Z);
4111
+ Z[E] = W, w(Z);
4095
4112
  }),
4096
4113
  I.pointerdown((O) => {
4097
4114
  if (O.stopPropagation(), O.preventDefault(), m.get(s)) return;
4098
- S.set(V);
4115
+ S.set(E);
4099
4116
  const M = (W) => {
4100
- P(N, W.clientX, V);
4117
+ L(N, W.clientX, E);
4101
4118
  }, j = () => {
4102
4119
  S.set(null), window.removeEventListener("pointermove", M), window.removeEventListener("pointerup", j);
4103
4120
  };
4104
4121
  window.addEventListener("pointermove", M), window.addEventListener("pointerup", j);
4105
4122
  }),
4106
- _ ? _(V, q) : z
4123
+ _ ? _(E, q) : z
4107
4124
  )
4108
4125
  );
4109
4126
  }
4110
- return re((V) => {
4127
+ return re((E) => {
4111
4128
  const N = (M) => {
4112
4129
  if (m.get(s)) return;
4113
- M.preventDefault(), P(V, M.clientX, null);
4130
+ M.preventDefault(), L(E, M.clientX, null);
4114
4131
  const j = (Z) => {
4115
- P(V, Z.clientX, S.value);
4132
+ L(E, Z.clientX, S.value);
4116
4133
  }, W = () => {
4117
4134
  S.set(null), window.removeEventListener("pointermove", j), window.removeEventListener("pointerup", W);
4118
4135
  };
@@ -4128,8 +4145,8 @@ function no({
4128
4145
  }
4129
4146
  return `left: 0%; width: ${$e(M[0] ?? e, e, t)}%`;
4130
4147
  }), O = Array.from(
4131
- { length: w },
4132
- (M, j) => U(j, V)
4148
+ { length: $ },
4149
+ (M, j) => U(j, E)
4133
4150
  );
4134
4151
  return Q(
4135
4152
  a.class(x(r, s)(qa)),
@@ -4165,9 +4182,9 @@ function no({
4165
4182
  a.style(le)
4166
4183
  ),
4167
4184
  // Tick marks
4168
- $.length > 0 ? l.div(
4185
+ k.length > 0 ? l.div(
4169
4186
  a.class("bc-advanced-slider__ticks"),
4170
- ...$.map((M) => {
4187
+ ...k.map((M) => {
4171
4188
  const j = $e(M.value, e, t);
4172
4189
  return l.div(
4173
4190
  a.class("bc-advanced-slider__tick"),
@@ -4208,11 +4225,11 @@ function ao({
4208
4225
  placeholder: o = "",
4209
4226
  autoFocus: g = !1
4210
4227
  } = {}) {
4211
- const b = he("otp"), f = H(
4228
+ const f = he("otp"), b = H(
4212
4229
  (() => {
4213
4230
  const v = m.get(t), S = new Array(e).fill("");
4214
- for (let k = 0; k < Math.min(v.length, e); k++)
4215
- S[k] = v[k];
4231
+ for (let w = 0; w < Math.min(v.length, e); w++)
4232
+ S[w] = v[w];
4216
4233
  return S;
4217
4234
  })()
4218
4235
  ), p = H(null), y = [];
@@ -4221,33 +4238,33 @@ function ao({
4221
4238
  S != null && (S.focus(), S.select());
4222
4239
  }
4223
4240
  function _() {
4224
- const v = f.value.join("");
4241
+ const v = b.value.join("");
4225
4242
  n?.(v), v.length === e && v.split("").every((S) => S !== "") && s?.(v);
4226
4243
  }
4227
4244
  function C(v, S) {
4228
4245
  if (m.get(r)) return;
4229
- const k = S.split("").filter((P) => Xa(P, i));
4230
- if (k.length > 1) {
4231
- const P = [...f.value];
4232
- for (let U = 0; U < k.length && v + U < e; U++)
4233
- P[v + U] = k[U];
4234
- f.set(P), _();
4235
- const B = Math.min(v + k.length, e - 1);
4236
- h(B);
4246
+ const w = S.split("").filter((L) => Xa(L, i));
4247
+ if (w.length > 1) {
4248
+ const L = [...b.value];
4249
+ for (let U = 0; U < w.length && v + U < e; U++)
4250
+ L[v + U] = w[U];
4251
+ b.set(L), _();
4252
+ const V = Math.min(v + w.length, e - 1);
4253
+ h(V);
4237
4254
  return;
4238
4255
  }
4239
- if (k.length === 1) {
4240
- const P = [...f.value];
4241
- P[v] = k[0], f.set(P), _(), v < e - 1 && h(v + 1);
4256
+ if (w.length === 1) {
4257
+ const L = [...b.value];
4258
+ L[v] = w[0], b.set(L), _(), v < e - 1 && h(v + 1);
4242
4259
  }
4243
4260
  }
4244
- function w(v, S) {
4261
+ function $(v, S) {
4245
4262
  if (!m.get(r))
4246
4263
  switch (S.key) {
4247
4264
  case "Backspace": {
4248
4265
  S.preventDefault();
4249
- const k = [...f.value];
4250
- k[v] !== "" ? (k[v] = "", f.set(k), _()) : v > 0 && (k[v - 1] = "", f.set(k), _(), h(v - 1));
4266
+ const w = [...b.value];
4267
+ w[v] !== "" ? (w[v] = "", b.set(w), _()) : v > 0 && (w[v - 1] = "", b.set(w), _(), h(v - 1));
4251
4268
  break;
4252
4269
  }
4253
4270
  case "ArrowLeft":
@@ -4258,8 +4275,8 @@ function ao({
4258
4275
  break;
4259
4276
  case "Delete": {
4260
4277
  S.preventDefault();
4261
- const k = [...f.value];
4262
- k[v] = "", f.set(k), _();
4278
+ const w = [...b.value];
4279
+ w[v] = "", b.set(w), _();
4263
4280
  break;
4264
4281
  }
4265
4282
  case "Home":
@@ -4270,10 +4287,10 @@ function ao({
4270
4287
  break;
4271
4288
  }
4272
4289
  }
4273
- function $(v, S) {
4290
+ function k(v, S) {
4274
4291
  S.preventDefault();
4275
- const k = S.clipboardData?.getData("text") ?? "";
4276
- C(v, k);
4292
+ const w = S.clipboardData?.getData("text") ?? "";
4293
+ C(v, w);
4277
4294
  }
4278
4295
  return l.div(
4279
4296
  a.class(x(c, r)(Ja)),
@@ -4281,10 +4298,10 @@ function ao({
4281
4298
  a.role("group"),
4282
4299
  T.label("One-time password input"),
4283
4300
  ...Array.from({ length: e }, (v, S) => {
4284
- const k = `${b}-cell-${S}`;
4301
+ const w = `${f}-cell-${S}`;
4285
4302
  return l.input(
4286
- re((P) => (y[S] = P, g && S === 0 && requestAnimationFrame(() => P.focus()), z)),
4287
- a.id(k),
4303
+ re((L) => (y[S] = L, g && S === 0 && requestAnimationFrame(() => L.focus()), z)),
4304
+ a.id(w),
4288
4305
  a.type(u ? "password" : "text"),
4289
4306
  a.inputmode(i === "numeric" ? "numeric" : "text"),
4290
4307
  a.maxlength(1),
@@ -4292,27 +4309,27 @@ function ao({
4292
4309
  a.class("bc-otp-input__cell"),
4293
4310
  a.class(
4294
4311
  p.map(
4295
- (P) => P === S ? "bc-otp-input__cell--focused" : ""
4312
+ (L) => L === S ? "bc-otp-input__cell--focused" : ""
4296
4313
  )
4297
4314
  ),
4298
4315
  a.placeholder(o),
4299
4316
  a.disabled(r),
4300
4317
  T.label(`Digit ${S + 1} of ${e}`),
4301
- a.value(f.map((P) => P[S] ?? "")),
4318
+ a.value(b.map((L) => L[S] ?? "")),
4302
4319
  I.focus(() => {
4303
4320
  p.set(S);
4304
- const P = y[S];
4305
- P?.select();
4321
+ const L = y[S];
4322
+ L?.select();
4306
4323
  }),
4307
4324
  I.blur(() => {
4308
4325
  p.set(null);
4309
4326
  }),
4310
- I.input((P) => {
4311
- const B = P.target;
4312
- C(S, B.value), B.value = f.value[S] ?? "";
4327
+ I.input((L) => {
4328
+ const V = L.target;
4329
+ C(S, V.value), V.value = b.value[S] ?? "";
4313
4330
  }),
4314
- I.keydown((P) => w(S, P)),
4315
- I.paste((P) => $(S, P))
4331
+ I.keydown((L) => $(S, L)),
4332
+ I.paste((L) => k(S, L))
4316
4333
  );
4317
4334
  })
4318
4335
  );
@@ -4404,15 +4421,15 @@ const Qa = (e) => {
4404
4421
  s != null ? I.change(
4405
4422
  de((o) => {
4406
4423
  if (o === "") return s(null);
4407
- const g = d.PlainDateTime.from(o), b = m.get(e.placeholder) ?? Intl.DateTimeFormat().resolvedOptions().timeZone;
4408
- return s(d.ZonedDateTime.from({ ...g, timeZone: b }));
4424
+ const g = d.PlainDateTime.from(o), f = m.get(e.placeholder) ?? Intl.DateTimeFormat().resolvedOptions().timeZone;
4425
+ return s(d.ZonedDateTime.from({ ...g, timeZone: f }));
4409
4426
  })
4410
4427
  ) : z,
4411
4428
  r != null ? I.input(
4412
4429
  de((o) => {
4413
4430
  if (o === "") return r(null);
4414
- const g = d.PlainDateTime.from(o), b = m.get(e.placeholder) ?? Intl.DateTimeFormat().resolvedOptions().timeZone;
4415
- return r(d.ZonedDateTime.from({ ...g, timeZone: b }));
4431
+ const g = d.PlainDateTime.from(o), f = m.get(e.placeholder) ?? Intl.DateTimeFormat().resolvedOptions().timeZone;
4432
+ return r(d.ZonedDateTime.from({ ...g, timeZone: f }));
4416
4433
  })
4417
4434
  ) : z
4418
4435
  ),
@@ -4658,7 +4675,7 @@ function rs({
4658
4675
  onClose: c,
4659
4676
  class: d
4660
4677
  } = {}, ...o) {
4661
- const g = m.map(i, (b) => b != null);
4678
+ const g = m.map(i, (f) => f != null);
4662
4679
  return l.section(
4663
4680
  a.class(
4664
4681
  x(
@@ -4668,10 +4685,10 @@ function rs({
4668
4685
  e,
4669
4686
  d
4670
4687
  )(
4671
- (b, f, p, y, h) => [
4688
+ (f, b, p, y, h) => [
4672
4689
  as(
4673
- b,
4674
4690
  f,
4691
+ b,
4675
4692
  p,
4676
4693
  y,
4677
4694
  h
@@ -4684,12 +4701,12 @@ function rs({
4684
4701
  s,
4685
4702
  r
4686
4703
  )(
4687
- (b, f) => ss(b, f)
4704
+ (f, b) => ss(f, b)
4688
4705
  )
4689
4706
  ),
4690
4707
  T.live("polite"),
4691
4708
  T.busy(e),
4692
- E(
4709
+ B(
4693
4710
  e,
4694
4711
  () => l.div(
4695
4712
  a.class("bc-notification__visual bc-notification__loader"),
@@ -4700,7 +4717,7 @@ function rs({
4700
4717
  accessibility: "decorative"
4701
4718
  })
4702
4719
  ),
4703
- () => E(
4720
+ () => B(
4704
4721
  g,
4705
4722
  () => l.div(
4706
4723
  a.class("bc-notification__visual bc-notification__icon"),
@@ -4720,7 +4737,7 @@ function rs({
4720
4737
  u != null ? l.div(a.class("bc-notification__title"), u) : null,
4721
4738
  l.div(a.class("bc-notification__content"), ...o)
4722
4739
  ),
4723
- E(
4740
+ B(
4724
4741
  t,
4725
4742
  () => l.div(
4726
4743
  a.class("bc-notification__meta"),
@@ -4767,21 +4784,21 @@ const ls = new os(), Cn = {
4767
4784
  o >= 0 && n.splice(o, 1);
4768
4785
  };
4769
4786
  }
4770
- const r = [], u = ({ dismissAfter: d, onClose: o, animation: g = { fade: !0 }, ...b }, ...f) => {
4787
+ const r = [], u = ({ dismissAfter: d, onClose: o, animation: g = { fade: !0 }, ...f }, ...b) => {
4771
4788
  t.update((h) => h + 1);
4772
4789
  const p = d != null ? typeof d == "number" ? Jn(d * 1e3) : d : void 0, y = {
4773
4790
  animation: g,
4774
- class: m.toSignal(b.class),
4775
- loading: m.toSignal(b.loading ?? !1),
4791
+ class: m.toSignal(f.class),
4792
+ loading: m.toSignal(f.loading ?? !1),
4776
4793
  withCloseButton: m.toSignal(
4777
- b.withCloseButton == null && d == null ? !0 : b.withCloseButton ?? !0
4794
+ f.withCloseButton == null && d == null ? !0 : f.withCloseButton ?? !0
4778
4795
  ),
4779
- withBorder: m.toSignal(b.withBorder ?? !1),
4780
- color: m.toSignal(b.color ?? "primary"),
4781
- radius: m.toSignal(b.radius ?? "md"),
4782
- title: b.title ?? z,
4783
- icon: m.toSignal(b.icon),
4784
- children: f,
4796
+ withBorder: m.toSignal(f.withBorder ?? !1),
4797
+ color: m.toSignal(f.color ?? "primary"),
4798
+ radius: m.toSignal(f.radius ?? "md"),
4799
+ title: f.title ?? z,
4800
+ icon: m.toSignal(f.icon),
4801
+ children: b,
4785
4802
  listenRequestClose: (h) => (r.push(h), o?.(), () => {
4786
4803
  }),
4787
4804
  delayedClose: p
@@ -4878,8 +4895,8 @@ function yo({
4878
4895
  search: d,
4879
4896
  nameddest: o,
4880
4897
  viewrect: g,
4881
- highlight: b,
4882
- allowfullscreen: f = !1
4898
+ highlight: f,
4899
+ allowfullscreen: b = !1
4883
4900
  }) {
4884
4901
  const p = m.toSignal(
4885
4902
  e
@@ -4897,8 +4914,8 @@ function yo({
4897
4914
  new Blob([new Uint8Array(h)], { type: "application/pdf" })
4898
4915
  );
4899
4916
  if (typeof h == "string") {
4900
- const C = await (await fetch(h)).arrayBuffer(), w = new Blob([C], { type: "application/pdf" });
4901
- return URL.createObjectURL(w);
4917
+ const C = await (await fetch(h)).arrayBuffer(), $ = new Blob([C], { type: "application/pdf" });
4918
+ return URL.createObjectURL($);
4902
4919
  }
4903
4920
  }
4904
4921
  }, null), y = x(
@@ -4913,11 +4930,11 @@ function yo({
4913
4930
  d,
4914
4931
  o,
4915
4932
  g,
4916
- b
4917
- )((h, _, C, w, $, v, S, k, P, B, U, V) => {
4933
+ f
4934
+ )((h, _, C, $, k, v, S, w, L, V, U, E) => {
4918
4935
  if (h == null) return null;
4919
4936
  const N = [];
4920
- _ === !1 && N.push("toolbar=0"), C != null && C > 0 && N.push(`page=${C}`), w != null && w > 0 && N.push(`zoom=${w}`), $ != null && N.push(`view=${$}`), v != null && N.push(`pagemode=${v}`), S === !1 && N.push("scrollbar=0"), k === !1 && N.push("navpanes=0"), P != null && N.push(`search=${encodeURIComponent(P)}`), B != null && N.push(`nameddest=${encodeURIComponent(B)}`), U != null && N.push(`viewrect=${encodeURIComponent(U)}`), V != null && N.push(`highlight=${encodeURIComponent(V)}`);
4937
+ _ === !1 && N.push("toolbar=0"), C != null && C > 0 && N.push(`page=${C}`), $ != null && $ > 0 && N.push(`zoom=${$}`), k != null && N.push(`view=${k}`), v != null && N.push(`pagemode=${v}`), S === !1 && N.push("scrollbar=0"), w === !1 && N.push("navpanes=0"), L != null && N.push(`search=${encodeURIComponent(L)}`), V != null && N.push(`nameddest=${encodeURIComponent(V)}`), U != null && N.push(`viewrect=${encodeURIComponent(U)}`), E != null && N.push(`highlight=${encodeURIComponent(E)}`);
4921
4938
  const q = N.join("&");
4922
4939
  return q ? `${h}#${q}` : h;
4923
4940
  });
@@ -4934,17 +4951,17 @@ function yo({
4934
4951
  // could also use embed or object. IFrame seems to work on Safari.
4935
4952
  l.iframe(
4936
4953
  a.class("h-full w-full"),
4937
- a.allowfullscreen(f),
4954
+ a.allowfullscreen(b),
4938
4955
  a.title(h.$.pdfPreview),
4939
4956
  a.loading("lazy"),
4940
4957
  // Force iframe reload when URL changes (including fragment changes)
4941
4958
  // by manually updating src instead of using attr.src
4942
4959
  re((_) => {
4943
4960
  const C = _;
4944
- let w = !0;
4945
- return y.on(($) => {
4946
- $ != null && (w ? (C.src = $, w = !1) : (C.src = "about:blank", setTimeout(() => {
4947
- C.src = $;
4961
+ let $ = !0;
4962
+ return y.on((k) => {
4963
+ k != null && ($ ? (C.src = k, $ = !1) : (C.src = "about:blank", setTimeout(() => {
4964
+ C.src = k;
4948
4965
  }, 50)));
4949
4966
  }), z;
4950
4967
  })
@@ -4964,8 +4981,8 @@ function _o({
4964
4981
  scrollModeOnLoad: d,
4965
4982
  spreadModeOnLoad: o,
4966
4983
  enableScripting: g,
4967
- enablePrinting: b,
4968
- viewerUrl: f = null,
4984
+ enablePrinting: f,
4985
+ viewerUrl: b = null,
4969
4986
  allowfullscreen: p = !0,
4970
4987
  class: y = null
4971
4988
  }) {
@@ -4986,7 +5003,7 @@ function _o({
4986
5003
  return C;
4987
5004
  }, null), _ = x(
4988
5005
  h,
4989
- f,
5006
+ b,
4990
5007
  t,
4991
5008
  n,
4992
5009
  s,
@@ -4997,24 +5014,24 @@ function _o({
4997
5014
  d,
4998
5015
  o,
4999
5016
  g,
5000
- b
5001
- )((C, w, $, v, S, k, P, B, U, V, N, q, le) => {
5017
+ f
5018
+ )((C, $, k, v, S, w, L, V, U, E, N, q, le) => {
5002
5019
  if (C == null) return null;
5003
- const O = w ?? "https://mozilla.github.io/pdf.js/web/viewer.html", M = new URLSearchParams();
5020
+ const O = $ ?? "https://mozilla.github.io/pdf.js/web/viewer.html", M = new URLSearchParams();
5004
5021
  M.set("file", encodeURIComponent(C));
5005
5022
  const j = [];
5006
- $ != null && $ > 0 && j.push(`page=${$}`), v != null && (typeof v == "string" ? j.push(`zoom=${v}`) : j.push(`zoom=${v}`)), S != null && j.push(`pagemode=${S}`), k != null && j.push(`nameddest=${encodeURIComponent(k)}`), P != null && j.push(`search=${encodeURIComponent(P)}`), B != null && j.push(`textLayer=${B}`), U != null && j.push(`sidebar=${U}`), V != null && j.push(`scrollMode=${V}`), N != null && j.push(`spreadMode=${N}`), q != null && j.push(`enableScripting=${q ? "1" : "0"}`), le != null && j.push(`enablePrinting=${le ? "1" : "0"}`);
5023
+ k != null && k > 0 && j.push(`page=${k}`), v != null && (typeof v == "string" ? j.push(`zoom=${v}`) : j.push(`zoom=${v}`)), S != null && j.push(`pagemode=${S}`), w != null && j.push(`nameddest=${encodeURIComponent(w)}`), L != null && j.push(`search=${encodeURIComponent(L)}`), V != null && j.push(`textLayer=${V}`), U != null && j.push(`sidebar=${U}`), E != null && j.push(`scrollMode=${E}`), N != null && j.push(`spreadMode=${N}`), q != null && j.push(`enableScripting=${q ? "1" : "0"}`), le != null && j.push(`enablePrinting=${le ? "1" : "0"}`);
5007
5024
  const W = j.length > 0 ? `#${j.join("&")}` : "";
5008
5025
  return `${O}?${M.toString()}${W}`;
5009
5026
  });
5010
- return h.on((C, w) => {
5011
- w != null && w.startsWith("blob:") && URL.revokeObjectURL(w);
5027
+ return h.on((C, $) => {
5028
+ $ != null && $.startsWith("blob:") && URL.revokeObjectURL($);
5012
5029
  }), ne(
5013
5030
  oe,
5014
5031
  (C) => l.div(
5015
5032
  fe(() => {
5016
- const w = h.value;
5017
- w != null && w.startsWith("blob:") && URL.revokeObjectURL(w);
5033
+ const $ = h.value;
5034
+ $ != null && $.startsWith("blob:") && URL.revokeObjectURL($);
5018
5035
  }),
5019
5036
  a.class("bc-pdfjs-preview h-full w-full"),
5020
5037
  a.class(y),
@@ -5086,7 +5103,7 @@ function Je(e, t) {
5086
5103
  return t == null ? null : ie(t, (n) => ee(e, n));
5087
5104
  }
5088
5105
  function us(e, t) {
5089
- return t == null ? null : E(
5106
+ return t == null ? null : B(
5090
5107
  m.map(t, (n) => Array.isArray(n)),
5091
5108
  () => Je(e, t),
5092
5109
  () => ee(e, t)
@@ -5136,7 +5153,7 @@ function Co(e) {
5136
5153
  l.div(
5137
5154
  a.class("bc-notification-panel__header-title"),
5138
5155
  l.span(u.$.notifications),
5139
- E(
5156
+ B(
5140
5157
  x(r)((i) => i > 0),
5141
5158
  () => ct(
5142
5159
  { color: "primary", size: "xs", circle: !0 },
@@ -5194,7 +5211,7 @@ function Co(e) {
5194
5211
  l.div(
5195
5212
  a.class("bc-notification-panel__item-meta"),
5196
5213
  l.span(i.$.time),
5197
- E(
5214
+ B(
5198
5215
  i.map((c) => c.source !== void 0),
5199
5216
  () => l.span(
5200
5217
  a.class("bc-notification-panel__item-source"),
@@ -5204,13 +5221,13 @@ function Co(e) {
5204
5221
  )
5205
5222
  ),
5206
5223
  // Unread dot
5207
- E(
5224
+ B(
5208
5225
  i.map((c) => !c.read),
5209
5226
  () => l.span(a.class("bc-notification-panel__item-dot"))
5210
5227
  )
5211
5228
  )),
5212
5229
  // Empty state
5213
- E(
5230
+ B(
5214
5231
  x(t)((i) => i.length === 0),
5215
5232
  () => l.div(
5216
5233
  a.class("bc-notification-panel__empty"),
@@ -5256,7 +5273,7 @@ function $o({
5256
5273
  ), d = i.map(
5257
5274
  (o) => !("isEllipsis" in o) && o.current === !0
5258
5275
  );
5259
- return E(
5276
+ return B(
5260
5277
  c,
5261
5278
  () => l.li(
5262
5279
  a.class("bc-breadcrumbs__item bc-breadcrumbs__ellipsis"),
@@ -5268,12 +5285,12 @@ function $o({
5268
5285
  (p) => !("isEllipsis" in p) && p.href != null
5269
5286
  ), g = i.map(
5270
5287
  (p) => !("isEllipsis" in p) && p.href == null && p.onClick != null
5271
- ), b = i.map(
5288
+ ), f = i.map(
5272
5289
  (p) => !("isEllipsis" in p) && p.icon != null
5273
- ), f = (p) => [
5290
+ ), b = (p) => [
5274
5291
  a.class(p),
5275
- E(
5276
- b,
5292
+ B(
5293
+ f,
5277
5294
  () => K({
5278
5295
  icon: i.map(
5279
5296
  (y) => "isEllipsis" in y ? "" : y.icon ?? ""
@@ -5293,9 +5310,9 @@ function $o({
5293
5310
  (p) => p ? "bc-breadcrumbs__item bc-breadcrumbs__item--current" : "bc-breadcrumbs__item"
5294
5311
  )
5295
5312
  ),
5296
- E(d, () => T.current("page")),
5313
+ B(d, () => T.current("page")),
5297
5314
  // Render as link, button, or span based on item properties
5298
- E(
5315
+ B(
5299
5316
  o,
5300
5317
  () => l.a(
5301
5318
  a.href(
@@ -5303,9 +5320,9 @@ function $o({
5303
5320
  (p) => "isEllipsis" in p ? "" : p.href ?? ""
5304
5321
  )
5305
5322
  ),
5306
- ...f("bc-breadcrumbs__link")
5323
+ ...b("bc-breadcrumbs__link")
5307
5324
  ),
5308
- () => E(
5325
+ () => B(
5309
5326
  g,
5310
5327
  () => l.button(
5311
5328
  a.type("button"),
@@ -5313,9 +5330,9 @@ function $o({
5313
5330
  const p = m.get(i);
5314
5331
  "isEllipsis" in p || p.onClick?.();
5315
5332
  }),
5316
- ...f("bc-breadcrumbs__button")
5333
+ ...b("bc-breadcrumbs__button")
5317
5334
  ),
5318
- () => l.span(...f("bc-breadcrumbs__text"))
5335
+ () => l.span(...b("bc-breadcrumbs__text"))
5319
5336
  )
5320
5337
  )
5321
5338
  );
@@ -5382,22 +5399,22 @@ function bs({
5382
5399
  replace: d,
5383
5400
  target: o,
5384
5401
  rel: g
5385
- }, ...b) {
5386
- return E(
5402
+ }, ...f) {
5403
+ return B(
5387
5404
  r,
5388
5405
  () => l.span(
5389
5406
  a.class(
5390
5407
  x(
5391
5408
  t,
5392
5409
  r
5393
- )((f, p) => Nt(f, p))
5410
+ )((b, p) => Nt(b, p))
5394
5411
  ),
5395
5412
  a.style(
5396
5413
  x(s)(
5397
- (f) => Rt(f ?? "base")
5414
+ (b) => Rt(b ?? "base")
5398
5415
  )
5399
5416
  ),
5400
- ...b
5417
+ ...f
5401
5418
  ),
5402
5419
  () => dt(
5403
5420
  {
@@ -5413,14 +5430,14 @@ function bs({
5413
5430
  x(
5414
5431
  t,
5415
5432
  r
5416
- )((f, p) => Nt(f, p))
5433
+ )((b, p) => Nt(b, p))
5417
5434
  ),
5418
5435
  a.style(
5419
- x(n)((f) => Rt(f ?? "primary"))
5436
+ x(n)((b) => Rt(b ?? "primary"))
5420
5437
  ),
5421
5438
  o ? a.target(o) : null,
5422
5439
  g ? a.rel(g) : null,
5423
- ...b
5440
+ ...f
5424
5441
  )
5425
5442
  );
5426
5443
  }
@@ -5447,9 +5464,9 @@ function ms(e, t, n) {
5447
5464
  const o = Array.from(
5448
5465
  new URLSearchParams(d.search).entries()
5449
5466
  ).sort(), g = Array.from(s.entries()).sort();
5450
- return o.length !== g.length ? !1 : o.every(([b, f], p) => {
5467
+ return o.length !== g.length ? !1 : o.every(([f, b], p) => {
5451
5468
  const [y, h] = g[p];
5452
- return b === y && f === h;
5469
+ return f === y && b === h;
5453
5470
  });
5454
5471
  } catch {
5455
5472
  return e.pathname === t;
@@ -5498,18 +5515,18 @@ function Do({
5498
5515
  disableWhenActive: d,
5499
5516
  variant: o = "filled",
5500
5517
  size: g = "md",
5501
- color: b = "base",
5502
- roundedness: f = "sm",
5518
+ color: f = "base",
5519
+ roundedness: b = "sm",
5503
5520
  disabled: p = !1
5504
5521
  }, ...y) {
5505
5522
  return c !== void 0 || d !== void 0 ? ne(He, (h) => {
5506
5523
  const _ = c !== void 0 ? h.matchSignal(_t(e, c)) : x(h.location)(() => !1), C = x(
5507
5524
  _,
5508
5525
  d
5509
- )(($, v) => !(v ?? !0) || !c ? !1 : $), w = x(
5526
+ )((k, v) => !(v ?? !0) || !c ? !1 : k), $ = x(
5510
5527
  p,
5511
5528
  C
5512
- )(($, v) => $ || v);
5529
+ )((k, v) => k || v);
5513
5530
  return Ot(
5514
5531
  {
5515
5532
  href: e,
@@ -5521,9 +5538,9 @@ function Do({
5521
5538
  rel: i,
5522
5539
  variant: o,
5523
5540
  size: g,
5524
- color: b,
5525
- roundedness: f,
5526
- disabled: w
5541
+ color: f,
5542
+ roundedness: b,
5543
+ disabled: $
5527
5544
  },
5528
5545
  ...y
5529
5546
  );
@@ -5538,8 +5555,8 @@ function Do({
5538
5555
  rel: i,
5539
5556
  variant: o,
5540
5557
  size: g,
5541
- color: b,
5542
- roundedness: f,
5558
+ color: f,
5559
+ roundedness: b,
5543
5560
  disabled: p
5544
5561
  },
5545
5562
  ...y
@@ -5557,26 +5574,26 @@ function Ot({
5557
5574
  size: d = "md",
5558
5575
  color: o = "base",
5559
5576
  roundedness: g = "sm",
5560
- disabled: b = !1,
5561
- fullWidth: f = !1,
5577
+ disabled: f = !1,
5578
+ fullWidth: b = !1,
5562
5579
  loading: p = !1
5563
5580
  }, ...y) {
5564
- return E(
5565
- b ?? !1,
5581
+ return B(
5582
+ f ?? !1,
5566
5583
  () => l.span(
5567
5584
  a.class(
5568
5585
  x(
5569
5586
  d,
5570
5587
  g,
5571
5588
  p,
5572
- f
5589
+ b
5573
5590
  )(It)
5574
5591
  ),
5575
5592
  a.style(
5576
5593
  x(
5577
5594
  c,
5578
5595
  o,
5579
- b
5596
+ f
5580
5597
  )(
5581
5598
  (h, _, C) => Tt(
5582
5599
  h ?? "filled",
@@ -5602,14 +5619,14 @@ function Ot({
5602
5619
  d,
5603
5620
  g,
5604
5621
  p,
5605
- f
5622
+ b
5606
5623
  )(It)
5607
5624
  ),
5608
5625
  a.style(
5609
5626
  x(
5610
5627
  c,
5611
5628
  o,
5612
- b
5629
+ f
5613
5630
  )(
5614
5631
  (h, _, C) => Tt(
5615
5632
  h ?? "filled",
@@ -5646,44 +5663,44 @@ function Io({
5646
5663
  d,
5647
5664
  o,
5648
5665
  s
5649
- )((b, f, p) => b ? f : p);
5666
+ )((f, b, p) => f ? b : p);
5650
5667
  return ne(
5651
5668
  oe,
5652
- (b) => l.nav(
5669
+ (f) => l.nav(
5653
5670
  a.class(
5654
5671
  x(
5655
5672
  i,
5656
5673
  c
5657
- )((f, p) => {
5658
- const y = ["bc-pagination", `bc-pagination--size-${f}`];
5674
+ )((b, p) => {
5675
+ const y = ["bc-pagination", `bc-pagination--size-${b}`];
5659
5676
  return p && y.push("bc-pagination--justify"), y.join(" ");
5660
5677
  })
5661
5678
  ),
5662
- T.label(b.$.paginationLabel),
5679
+ T.label(f.$.paginationLabel),
5663
5680
  // Responsive ResizeObserver setup
5664
- E(
5681
+ B(
5665
5682
  d,
5666
- () => re((f) => {
5683
+ () => re((b) => {
5667
5684
  const p = () => {
5668
- const h = f.clientWidth;
5685
+ const h = b.clientWidth;
5669
5686
  if (h === 0) return;
5670
- const _ = f.querySelector(
5687
+ const _ = b.querySelector(
5671
5688
  ".bc-pagination__item"
5672
5689
  );
5673
5690
  if (!_) return;
5674
- const C = _.offsetWidth, w = parseFloat(getComputedStyle(f).gap) || 0, $ = C + w, v = Math.floor(
5675
- (h + w) / $
5676
- ), S = (m.get(r) ? 2 : 0) + (m.get(u) ? 2 : 0), k = m.get(t), P = v - S, B = Math.max(
5691
+ const C = _.offsetWidth, $ = parseFloat(getComputedStyle(b).gap) || 0, k = C + $, v = Math.floor(
5692
+ (h + $) / k
5693
+ ), S = (m.get(r) ? 2 : 0) + (m.get(u) ? 2 : 0), w = m.get(t), L = v - S, V = Math.max(
5677
5694
  0,
5678
- Math.floor((P - 5) / 2)
5679
- ), U = Math.floor((k - 3) / 2);
5680
- o.set(Math.min(B, Math.max(0, U)));
5695
+ Math.floor((L - 5) / 2)
5696
+ ), U = Math.floor((w - 3) / 2);
5697
+ o.set(Math.min(V, Math.max(0, U)));
5681
5698
  }, y = new ResizeObserver(p);
5682
- return y.observe(f), requestAnimationFrame(p), fe(() => y.disconnect());
5699
+ return y.observe(b), requestAnimationFrame(p), fe(() => y.disconnect());
5683
5700
  })
5684
5701
  ),
5685
5702
  // First page button
5686
- E(
5703
+ B(
5687
5704
  u,
5688
5705
  () => l.button(
5689
5706
  a.class("bc-pagination__item"),
@@ -5691,18 +5708,18 @@ function Io({
5691
5708
  x(
5692
5709
  e,
5693
5710
  t
5694
- )((f, p) => f <= 1 || p <= 1)
5711
+ )((b, p) => b <= 1 || p <= 1)
5695
5712
  ),
5696
- T.label(b.$.firstPage),
5697
- I.click((f) => {
5698
- f.preventDefault(), m.get(t) > 1 && n(1);
5713
+ T.label(f.$.firstPage),
5714
+ I.click((b) => {
5715
+ b.preventDefault(), m.get(t) > 1 && n(1);
5699
5716
  }),
5700
5717
  "«"
5701
5718
  // «
5702
5719
  )
5703
5720
  ),
5704
5721
  // Previous page button
5705
- E(
5722
+ B(
5706
5723
  r,
5707
5724
  () => l.button(
5708
5725
  a.class("bc-pagination__item"),
@@ -5710,11 +5727,11 @@ function Io({
5710
5727
  x(
5711
5728
  e,
5712
5729
  t
5713
- )((f, p) => f <= 1 || p <= 1)
5730
+ )((b, p) => b <= 1 || p <= 1)
5714
5731
  ),
5715
- T.label(b.$.previousPage),
5716
- I.click((f) => {
5717
- f.preventDefault();
5732
+ T.label(f.$.previousPage),
5733
+ I.click((b) => {
5734
+ b.preventDefault();
5718
5735
  const p = m.get(e);
5719
5736
  p > 1 && n(p - 1);
5720
5737
  }),
@@ -5729,14 +5746,14 @@ function Io({
5729
5746
  t,
5730
5747
  g
5731
5748
  )(
5732
- (f, p, y) => hs(f, p, y)
5749
+ (b, p, y) => hs(b, p, y)
5733
5750
  ),
5734
- (f) => {
5735
- const p = f.map((h) => h === "dots"), y = x(
5736
- f,
5751
+ (b) => {
5752
+ const p = b.map((h) => h === "dots"), y = x(
5753
+ b,
5737
5754
  e
5738
5755
  )((h, _) => h === _);
5739
- return E(
5756
+ return B(
5740
5757
  p,
5741
5758
  () => l.span(a.class("bc-pagination__dots"), "…"),
5742
5759
  () => l.button(
@@ -5753,16 +5770,16 @@ function Io({
5753
5770
  )),
5754
5771
  I.click((h) => {
5755
5772
  h.preventDefault();
5756
- const _ = m.get(f);
5773
+ const _ = m.get(b);
5757
5774
  _ !== "dots" && _ !== m.get(e) && n(_);
5758
5775
  }),
5759
- f.map((h) => String(h))
5776
+ b.map((h) => String(h))
5760
5777
  )
5761
5778
  );
5762
5779
  }
5763
5780
  ),
5764
5781
  // Next page button
5765
- E(
5782
+ B(
5766
5783
  r,
5767
5784
  () => l.button(
5768
5785
  a.class("bc-pagination__item"),
@@ -5770,11 +5787,11 @@ function Io({
5770
5787
  x(
5771
5788
  e,
5772
5789
  t
5773
- )((f, p) => f >= p || p <= 1)
5790
+ )((b, p) => b >= p || p <= 1)
5774
5791
  ),
5775
- T.label(b.$.nextPage),
5776
- I.click((f) => {
5777
- f.preventDefault();
5792
+ T.label(f.$.nextPage),
5793
+ I.click((b) => {
5794
+ b.preventDefault();
5778
5795
  const p = m.get(e), y = m.get(t);
5779
5796
  p < y && n(p + 1);
5780
5797
  }),
@@ -5783,7 +5800,7 @@ function Io({
5783
5800
  )
5784
5801
  ),
5785
5802
  // Last page button
5786
- E(
5803
+ B(
5787
5804
  u,
5788
5805
  () => l.button(
5789
5806
  a.class("bc-pagination__item"),
@@ -5791,11 +5808,11 @@ function Io({
5791
5808
  x(
5792
5809
  e,
5793
5810
  t
5794
- )((f, p) => f >= p || p <= 1)
5811
+ )((b, p) => b >= p || p <= 1)
5795
5812
  ),
5796
- T.label(b.$.lastPage),
5797
- I.click((f) => {
5798
- f.preventDefault();
5813
+ T.label(f.$.lastPage),
5814
+ I.click((b) => {
5815
+ b.preventDefault();
5799
5816
  const p = m.get(t);
5800
5817
  p > 1 && n(p);
5801
5818
  }),
@@ -5907,7 +5924,7 @@ function ks(e) {
5907
5924
  includeHash: !1
5908
5925
  }
5909
5926
  );
5910
- return E(
5927
+ return B(
5911
5928
  s,
5912
5929
  () => _s(...t),
5913
5930
  () => ys(e, ...t)
@@ -5994,28 +6011,28 @@ function Mo(e) {
5994
6011
  orientation: d = "horizontal",
5995
6012
  showContent: o = !0,
5996
6013
  ariaLabel: g
5997
- } = e, b = he("tablist"), f = H(-1), p = t.map((h, _) => {
5998
- const C = x(n)((S) => S === h.key), w = x(
6014
+ } = e, f = he("tablist"), b = H(-1), p = t.map((h, _) => {
6015
+ const C = x(n)((S) => S === h.key), $ = x(
5999
6016
  c,
6000
6017
  h.disabled
6001
- )((S, k) => S || k), $ = `${b}-tab-${h.key}`, v = `${b}-panel-${h.key}`;
6002
- return { item: h, index: _, isActive: C, isTabDisabled: w, tabId: $, panelId: v };
6018
+ )((S, w) => S || w), k = `${f}-tab-${h.key}`, v = `${f}-panel-${h.key}`;
6019
+ return { item: h, index: _, isActive: C, isTabDisabled: $, tabId: k, panelId: v };
6003
6020
  }), y = (h) => {
6004
6021
  if (m.get(c)) return;
6005
- const C = f.value, w = m.get(d) === "horizontal";
6006
- let $ = C;
6022
+ const C = b.value, $ = m.get(d) === "horizontal";
6023
+ let k = C;
6007
6024
  switch (h.key) {
6008
- case (w ? "ArrowRight" : "ArrowDown"):
6009
- h.preventDefault(), $ = qe(C, t, 1);
6025
+ case ($ ? "ArrowRight" : "ArrowDown"):
6026
+ h.preventDefault(), k = qe(C, t, 1);
6010
6027
  break;
6011
- case (w ? "ArrowLeft" : "ArrowUp"):
6012
- h.preventDefault(), $ = qe(C, t, -1);
6028
+ case ($ ? "ArrowLeft" : "ArrowUp"):
6029
+ h.preventDefault(), k = qe(C, t, -1);
6013
6030
  break;
6014
6031
  case "Home":
6015
- h.preventDefault(), $ = qe(-1, t, 1);
6032
+ h.preventDefault(), k = qe(-1, t, 1);
6016
6033
  break;
6017
6034
  case "End":
6018
- h.preventDefault(), $ = qe(t.length, t, -1);
6035
+ h.preventDefault(), k = qe(t.length, t, -1);
6019
6036
  break;
6020
6037
  case "Enter":
6021
6038
  case " ":
@@ -6025,9 +6042,9 @@ function Mo(e) {
6025
6042
  }
6026
6043
  break;
6027
6044
  }
6028
- $ !== C && $ >= 0 && $ < t.length && (f.set($), setTimeout(() => {
6045
+ k !== C && k >= 0 && k < t.length && (b.set(k), setTimeout(() => {
6029
6046
  const v = document.querySelector(
6030
- `[data-tab-index="${$}"]`
6047
+ `[data-tab-index="${k}"]`
6031
6048
  );
6032
6049
  v && v.focus();
6033
6050
  }, 0));
@@ -6040,11 +6057,11 @@ function Mo(e) {
6040
6057
  c,
6041
6058
  u
6042
6059
  )(
6043
- (h, _, C, w) => xs(
6060
+ (h, _, C, $) => xs(
6044
6061
  h ?? "md",
6045
6062
  _ ?? "horizontal",
6046
6063
  C ?? !1,
6047
- w ?? "default"
6064
+ $ ?? "default"
6048
6065
  )
6049
6066
  )
6050
6067
  ),
@@ -6060,63 +6077,63 @@ function Mo(e) {
6060
6077
  l.div(
6061
6078
  a.class("bc-tabs__list"),
6062
6079
  a.role("tablist"),
6063
- a.id(b),
6080
+ a.id(f),
6064
6081
  T.orientation(
6065
6082
  d ?? "horizontal"
6066
6083
  ),
6067
6084
  T.label(g),
6068
6085
  I.keydown(y),
6069
6086
  ...p.map(
6070
- ({ item: h, index: _, isActive: C, isTabDisabled: w, tabId: $, panelId: v }) => l.button(
6087
+ ({ item: h, index: _, isActive: C, isTabDisabled: $, tabId: k, panelId: v }) => l.button(
6071
6088
  a.type("button"),
6072
6089
  a.class(
6073
6090
  x(
6074
6091
  r,
6075
6092
  C,
6076
- w
6093
+ $
6077
6094
  )(
6078
- (S, k, P) => $s(
6095
+ (S, w, L) => $s(
6079
6096
  S ?? "md",
6080
- k ?? !1,
6081
- P ?? !1
6097
+ w ?? !1,
6098
+ L ?? !1
6082
6099
  )
6083
6100
  )
6084
6101
  ),
6085
- a.id($),
6102
+ a.id(k),
6086
6103
  a.role("tab"),
6087
6104
  a.tabindex(
6088
6105
  x(
6089
6106
  C,
6090
- f
6091
- )((S, k) => S || k === _ ? 0 : -1)
6107
+ b
6108
+ )((S, w) => S || w === _ ? 0 : -1)
6092
6109
  ),
6093
6110
  T.selected(C),
6094
6111
  T.controls(v),
6095
- T.disabled(w),
6096
- a.disabled(w),
6112
+ T.disabled($),
6113
+ a.disabled($),
6097
6114
  Wt["tab-index"](String(_)),
6098
6115
  T.label(h.ariaLabel),
6099
6116
  I.click((S) => {
6100
- S.preventDefault(), m.get(h.disabled ?? !1) || m.get(c) || (s?.(h.key), f.set(_));
6117
+ S.preventDefault(), m.get(h.disabled ?? !1) || m.get(c) || (s?.(h.key), b.set(_));
6101
6118
  }),
6102
6119
  I.focus(() => {
6103
- f.set(_);
6120
+ b.set(_);
6104
6121
  }),
6105
6122
  h.label
6106
6123
  )
6107
6124
  )
6108
6125
  ),
6109
6126
  // Panels
6110
- E(
6127
+ B(
6111
6128
  o ?? !0,
6112
6129
  () => l.div(
6113
6130
  a.class("bc-tabs__panels"),
6114
6131
  ...p.map(
6115
- ({ item: h, isActive: _, tabId: C, panelId: w }) => E(
6132
+ ({ item: h, isActive: _, tabId: C, panelId: $ }) => B(
6116
6133
  _,
6117
6134
  () => l.div(
6118
6135
  a.class("bc-tabs__panel"),
6119
- a.id(w),
6136
+ a.id($),
6120
6137
  a.role("tabpanel"),
6121
6138
  a.tabindex(0),
6122
6139
  T.labelledby(C),
@@ -6137,9 +6154,9 @@ function $n(e, t, n, s, r, u, i) {
6137
6154
  )((p, y) => p.has(y.id)), o = x(
6138
6155
  n,
6139
6156
  e
6140
- )((p, y) => p === y.id), g = e.map((p) => p.children ?? []), b = () => {
6157
+ )((p, y) => p === y.id), g = e.map((p) => p.children ?? []), f = () => {
6141
6158
  r?.(m.get(e).id);
6142
- }, f = (p) => {
6159
+ }, b = (p) => {
6143
6160
  p.stopPropagation(), u(m.get(e).id);
6144
6161
  };
6145
6162
  return l.div(
@@ -6173,9 +6190,9 @@ function $n(e, t, n, s, r, u, i) {
6173
6190
  })
6174
6191
  );
6175
6192
  }),
6176
- I.click(b),
6193
+ I.click(f),
6177
6194
  // Expand/collapse chevron
6178
- E(
6195
+ B(
6179
6196
  c,
6180
6197
  () => l.span(
6181
6198
  a.class(
@@ -6187,7 +6204,7 @@ function $n(e, t, n, s, r, u, i) {
6187
6204
  ].filter(Boolean).join(" ")
6188
6205
  )
6189
6206
  ),
6190
- I.click(f),
6207
+ I.click(b),
6191
6208
  K({
6192
6209
  icon: "mdi:chevron-right",
6193
6210
  size: "sm",
@@ -6197,7 +6214,7 @@ function $n(e, t, n, s, r, u, i) {
6197
6214
  () => l.span(a.class("bc-tree-item__toggle-spacer"))
6198
6215
  ),
6199
6216
  // Icon
6200
- E(
6217
+ B(
6201
6218
  e.map((p) => p.icon != null),
6202
6219
  () => l.span(
6203
6220
  a.class("bc-tree-item__icon"),
@@ -6215,7 +6232,7 @@ function $n(e, t, n, s, r, u, i) {
6215
6232
  e.map((p) => p.label)
6216
6233
  ),
6217
6234
  // Badge
6218
- E(
6235
+ B(
6219
6236
  e.map((p) => p.badge != null),
6220
6237
  () => l.span(
6221
6238
  a.class("bc-tree-item__badge"),
@@ -6227,7 +6244,7 @@ function $n(e, t, n, s, r, u, i) {
6227
6244
  // Children (collapsible) — Collapse uses WithElement which modifies its
6228
6245
  // parent element, so it must be wrapped in its own div to avoid hiding
6229
6246
  // the entire tree item row when collapsed.
6230
- E(
6247
+ B(
6231
6248
  c,
6232
6249
  () => l.div(
6233
6250
  vt(
@@ -6262,23 +6279,23 @@ function Ao({
6262
6279
  onToggle: r,
6263
6280
  size: u = "md"
6264
6281
  }, ...i) {
6265
- const c = H(/* @__PURE__ */ new Set()), d = s ?? c, o = t ?? H(void 0), g = (b) => {
6266
- const f = m.get(d), p = !f.has(b);
6282
+ const c = H(/* @__PURE__ */ new Set()), d = s ?? c, o = t ?? H(void 0), g = (f) => {
6283
+ const b = m.get(d), p = !b.has(f);
6267
6284
  if (s == null) {
6268
- const y = new Set(f);
6269
- p ? y.add(b) : y.delete(b), c.set(y);
6285
+ const y = new Set(b);
6286
+ p ? y.add(f) : y.delete(f), c.set(y);
6270
6287
  }
6271
- r?.(b, p);
6288
+ r?.(f, p);
6272
6289
  };
6273
6290
  return l.div(
6274
6291
  a.class(
6275
- m.map(u, (b) => `bc-tree-view bc-tree-view--size-${b ?? "md"}`)
6292
+ m.map(u, (f) => `bc-tree-view bc-tree-view--size-${f ?? "md"}`)
6276
6293
  ),
6277
6294
  a.role("tree"),
6278
6295
  ie(
6279
6296
  e,
6280
- (b) => $n(
6281
- b,
6297
+ (f) => $n(
6298
+ f,
6282
6299
  0,
6283
6300
  o,
6284
6301
  d,
@@ -6299,8 +6316,8 @@ function Bo(e) {
6299
6316
  size: d = "md",
6300
6317
  side: o = "right",
6301
6318
  dismissable: g = !0,
6302
- showCloseButton: b = !0,
6303
- onClose: f,
6319
+ showCloseButton: f = !0,
6320
+ onClose: b,
6304
6321
  overlayEffect: p = "opaque",
6305
6322
  container: y = "body",
6306
6323
  header: h,
@@ -6308,30 +6325,30 @@ function Bo(e) {
6308
6325
  footer: C
6309
6326
  } = c;
6310
6327
  s = n;
6311
- const w = H("capturing");
6328
+ const $ = H("capturing");
6312
6329
  m.on(g, (S) => {
6313
- w.set(S ? "capturing" : "non-capturing");
6330
+ $.set(S ? "capturing" : "non-capturing");
6314
6331
  });
6315
- const $ = x(
6332
+ const k = x(
6316
6333
  h != null,
6317
- b
6318
- )((S, k) => S || k), v = re((S) => {
6319
- const k = Ke({
6334
+ f
6335
+ )((S, w) => S || w), v = re((S) => {
6336
+ const w = Ke({
6320
6337
  initialStatus: "closed",
6321
6338
  element: S
6322
6339
  });
6323
- k.listenOnClosed(() => {
6340
+ w.listenOnClosed(() => {
6324
6341
  n();
6325
6342
  }), s = () => {
6326
- k.close();
6327
- }, an(() => k.open());
6328
- const B = he("drawer"), U = h != null ? `${B}-header` : void 0, V = `${B}-body`;
6343
+ w.close();
6344
+ }, an(() => w.open());
6345
+ const V = he("drawer"), U = h != null ? `${V}-header` : void 0, E = `${V}-body`;
6329
6346
  return l.div(
6330
6347
  a.class(
6331
6348
  x(
6332
6349
  d,
6333
6350
  o,
6334
- k.status
6351
+ w.status
6335
6352
  )(
6336
6353
  (N, q, le) => `bc-drawer bc-drawer--size-${N} bc-drawer--container-${y} bc-drawer--side-${q} bc-drawer--status-${le}`
6337
6354
  )
@@ -6340,10 +6357,10 @@ function Bo(e) {
6340
6357
  a.role("dialog"),
6341
6358
  T.modal(!0),
6342
6359
  ...U ? [T.labelledby(U)] : [],
6343
- T.describedby(V),
6360
+ T.describedby(E),
6344
6361
  a.tabindex(-1),
6345
6362
  // Make drawer focusable for initial focus
6346
- a.id(B),
6363
+ a.id(V),
6347
6364
  Wt.focusTrap("true"),
6348
6365
  // Mark as focus trap container
6349
6366
  // Focus trap for keyboard navigation
@@ -6352,20 +6369,20 @@ function Bo(e) {
6352
6369
  escapeDeactivates: !1,
6353
6370
  // Let Overlay handle escape key
6354
6371
  initialFocus: () => document.querySelector(
6355
- `#${B} [aria-label="Close drawer"]`
6372
+ `#${V} [aria-label="Close drawer"]`
6356
6373
  ) || null
6357
6374
  }),
6358
6375
  I.mousedown((N) => N.stopPropagation()),
6359
6376
  // Prevent overlay click-outside when clicking drawer content
6360
6377
  // Drawer content container
6361
- E(
6362
- $,
6378
+ B(
6379
+ k,
6363
6380
  () => Et({
6364
6381
  header: l.div(
6365
6382
  a.class("bc-drawer__header"),
6366
6383
  l.div(a.id(U), h),
6367
- E(
6368
- b,
6384
+ B(
6385
+ f,
6369
6386
  () => ne(
6370
6387
  oe,
6371
6388
  (N) => We({
@@ -6378,7 +6395,7 @@ function Bo(e) {
6378
6395
  ),
6379
6396
  body: l.div(
6380
6397
  a.class("bc-drawer__body"),
6381
- a.id(V),
6398
+ a.id(E),
6382
6399
  _
6383
6400
  ),
6384
6401
  footer: C && l.div(a.class("bc-drawer__footer"), C)
@@ -6386,7 +6403,7 @@ function Bo(e) {
6386
6403
  () => Et({
6387
6404
  body: l.div(
6388
6405
  a.class("bc-drawer__body"),
6389
- a.id(V),
6406
+ a.id(E),
6390
6407
  _
6391
6408
  ),
6392
6409
  footer: C && l.div(a.class("bc-drawer__footer"), C)
@@ -6395,15 +6412,15 @@ function Bo(e) {
6395
6412
  );
6396
6413
  });
6397
6414
  t({
6398
- mode: w,
6415
+ mode: $,
6399
6416
  effect: p ?? "opaque",
6400
6417
  container: y,
6401
6418
  content: v,
6402
6419
  onClickOutside: () => {
6403
- f?.(), r();
6420
+ b?.(), r();
6404
6421
  },
6405
6422
  onEscape: () => {
6406
- f?.(), r();
6423
+ b?.(), r();
6407
6424
  }
6408
6425
  });
6409
6426
  }, () => {
@@ -6455,14 +6472,14 @@ function Vo(e) {
6455
6472
  arrow: (o) => {
6456
6473
  const g = o.map(
6457
6474
  ({
6458
- placement: b
6459
- }) => b.includes("top") ? "down" : b.includes("bottom") ? "up" : b.includes("left") ? "right" : b.includes("right") ? "left" : "up"
6475
+ placement: f
6476
+ }) => f.includes("top") ? "down" : f.includes("bottom") ? "up" : f.includes("left") ? "right" : f.includes("right") ? "left" : "up"
6460
6477
  );
6461
6478
  return Q(
6462
6479
  a.class("bc-tooltip__arrow"),
6463
- a.class(g.map((b) => `bc-tooltip__arrow-${b}`)),
6480
+ a.class(g.map((f) => `bc-tooltip__arrow-${f}`)),
6464
6481
  D.transform(
6465
- o.map(({ x: b, y: f }) => b == null && f == null ? "" : b != null ? `translate(${b}px, 0)` : `translate(0, ${f}px)`)
6482
+ o.map(({ x: f, y: b }) => f == null && b == null ? "" : f != null ? `translate(${f}px, 0)` : `translate(0, ${b}px)`)
6466
6483
  ),
6467
6484
  Ss(g)
6468
6485
  );
@@ -6482,15 +6499,15 @@ function Eo(e) {
6482
6499
  closable: d = !0,
6483
6500
  role: o = "dialog",
6484
6501
  hasPopup: g = "dialog"
6485
- } = e, b = he("popover"), f = typeof t == "function" ? t : () => t;
6502
+ } = e, f = he("popover"), b = typeof t == "function" ? t : () => t;
6486
6503
  return Q(
6487
- T.describedby(b),
6504
+ T.describedby(f),
6488
6505
  gt({
6489
6506
  content: () => Q(
6490
6507
  a.class("bc-popover"),
6491
6508
  a.role(o),
6492
- a.id(b),
6493
- f()
6509
+ a.id(f),
6510
+ b()
6494
6511
  ),
6495
6512
  placement: n,
6496
6513
  showDelay: s,
@@ -6559,7 +6576,7 @@ function Ro(e, t) {
6559
6576
  return mt((c, d) => {
6560
6577
  let o = () => {
6561
6578
  };
6562
- return t((f) => {
6579
+ return t((b) => {
6563
6580
  o = d;
6564
6581
  const p = H(
6565
6582
  typeof n != "boolean" || n ? "capturing" : "non-capturing"
@@ -6571,7 +6588,7 @@ function Ro(e, t) {
6571
6588
  const h = l.div(
6572
6589
  a.class("bc-lightbox"),
6573
6590
  // Close button (top-end)
6574
- E(
6591
+ B(
6575
6592
  s,
6576
6593
  () => ne(
6577
6594
  oe,
@@ -6598,7 +6615,7 @@ function Ro(e, t) {
6598
6615
  )
6599
6616
  ),
6600
6617
  // Content wrapper capped by viewport; overflow is clipped
6601
- l.div(a.class("bc-lightbox__content"), f)
6618
+ l.div(a.class("bc-lightbox__content"), b)
6602
6619
  )
6603
6620
  );
6604
6621
  c({
@@ -6633,7 +6650,7 @@ function Oo({
6633
6650
  class: r
6634
6651
  }, ...u) {
6635
6652
  const i = H(!0);
6636
- return E(i, () => {
6653
+ return B(i, () => {
6637
6654
  const c = m.map(
6638
6655
  n,
6639
6656
  (d) => !!d || s != null
@@ -6650,7 +6667,7 @@ function Oo({
6650
6667
  ),
6651
6668
  l.div(
6652
6669
  a.class("bc-announcement-bar__content"),
6653
- E(
6670
+ B(
6654
6671
  m.map(t, (d) => d != null),
6655
6672
  () => l.div(
6656
6673
  a.class("bc-announcement-bar__icon"),
@@ -6662,7 +6679,7 @@ function Oo({
6662
6679
  )
6663
6680
  ),
6664
6681
  l.div(a.class("bc-announcement-bar__text"), ...u),
6665
- E(
6682
+ B(
6666
6683
  c,
6667
6684
  () => l.div(
6668
6685
  a.class("bc-announcement-bar__close"),
@@ -6704,12 +6721,12 @@ function jo(e, t) {
6704
6721
  oe,
6705
6722
  (i) => mt((c, d) => {
6706
6723
  const o = n ?? i.$.typeACommand, g = s ?? i.$.noResultsFound;
6707
- return t((f) => {
6724
+ return t((b) => {
6708
6725
  const p = H(""), y = H(0);
6709
6726
  p.on(() => y.set(0));
6710
6727
  const _ = `${he("command-palette")}-input`, C = p.map(
6711
- (v) => Ls(f, v ?? "")
6712
- ), w = C.map((v) => v.length === 0), $ = l.div(
6728
+ (v) => Ls(b, v ?? "")
6729
+ ), $ = C.map((v) => v.length === 0), k = l.div(
6713
6730
  a.class(
6714
6731
  m.map(
6715
6732
  r,
@@ -6745,21 +6762,21 @@ function jo(e, t) {
6745
6762
  p.set(v.target.value);
6746
6763
  }),
6747
6764
  I.keydown((v) => {
6748
- const S = m.get(C), k = m.get(y);
6765
+ const S = m.get(C), w = m.get(y);
6749
6766
  switch (v.key) {
6750
6767
  case "ArrowDown":
6751
- v.preventDefault(), y.set(Math.min(k + 1, S.length - 1));
6768
+ v.preventDefault(), y.set(Math.min(w + 1, S.length - 1));
6752
6769
  break;
6753
6770
  case "ArrowUp":
6754
- v.preventDefault(), y.set(Math.max(k - 1, 0));
6771
+ v.preventDefault(), y.set(Math.max(w - 1, 0));
6755
6772
  break;
6756
6773
  case "Enter":
6757
6774
  v.preventDefault();
6758
6775
  {
6759
- const P = S.find(
6760
- (B) => B.globalIndex === k
6776
+ const L = S.find(
6777
+ (V) => V.globalIndex === w
6761
6778
  );
6762
- P && (P.item.onSelect(), d());
6779
+ L && (L.item.onSelect(), d());
6763
6780
  }
6764
6781
  break;
6765
6782
  }
@@ -6769,8 +6786,8 @@ function jo(e, t) {
6769
6786
  // Body with results
6770
6787
  l.div(
6771
6788
  a.class("bc-command-palette__body"),
6772
- E(
6773
- w,
6789
+ B(
6790
+ $,
6774
6791
  () => l.div(
6775
6792
  a.class("bc-command-palette__empty"),
6776
6793
  g
@@ -6779,15 +6796,15 @@ function jo(e, t) {
6779
6796
  const S = x(
6780
6797
  y,
6781
6798
  v
6782
- )((k, P) => k === P.globalIndex);
6799
+ )((w, L) => w === L.globalIndex);
6783
6800
  return l.div(
6784
6801
  a.class("bc-command-palette__section"),
6785
6802
  // Section header (only for the first item in a section)
6786
- E(
6787
- v.map((k) => k.sectionStart != null),
6803
+ B(
6804
+ v.map((w) => w.sectionStart != null),
6788
6805
  () => l.div(
6789
6806
  a.class("bc-command-palette__section-title"),
6790
- v.map((k) => k.sectionStart ?? "")
6807
+ v.map((w) => w.sectionStart ?? "")
6791
6808
  )
6792
6809
  ),
6793
6810
  // Item
@@ -6795,7 +6812,7 @@ function jo(e, t) {
6795
6812
  a.class(
6796
6813
  m.map(
6797
6814
  S,
6798
- (k) => `bc-command-palette__item${k ? " bc-command-palette__item--selected" : ""}`
6815
+ (w) => `bc-command-palette__item${w ? " bc-command-palette__item--selected" : ""}`
6799
6816
  )
6800
6817
  ),
6801
6818
  a.role("option"),
@@ -6806,12 +6823,12 @@ function jo(e, t) {
6806
6823
  I.mouseenter(() => {
6807
6824
  y.set(m.get(v).globalIndex);
6808
6825
  }),
6809
- E(
6810
- v.map((k) => k.item.icon != null),
6826
+ B(
6827
+ v.map((w) => w.item.icon != null),
6811
6828
  () => l.span(
6812
6829
  a.class("bc-command-palette__item-icon"),
6813
6830
  K({
6814
- icon: v.map((k) => k.item.icon ?? ""),
6831
+ icon: v.map((w) => w.item.icon ?? ""),
6815
6832
  size: "sm",
6816
6833
  accessibility: "decorative"
6817
6834
  })
@@ -6821,29 +6838,29 @@ function jo(e, t) {
6821
6838
  a.class("bc-command-palette__item-content"),
6822
6839
  l.span(
6823
6840
  a.class("bc-command-palette__item-label"),
6824
- v.map((k) => k.item.label)
6841
+ v.map((w) => w.item.label)
6825
6842
  ),
6826
- E(
6827
- v.map((k) => k.item.description != null),
6843
+ B(
6844
+ v.map((w) => w.item.description != null),
6828
6845
  () => l.span(
6829
6846
  a.class(
6830
6847
  "bc-command-palette__item-description"
6831
6848
  ),
6832
- v.map((k) => k.item.description ?? "")
6849
+ v.map((w) => w.item.description ?? "")
6833
6850
  )
6834
6851
  )
6835
6852
  ),
6836
- E(
6853
+ B(
6837
6854
  v.map(
6838
- (k) => k.item.shortcut != null && k.item.shortcut.length > 0
6855
+ (w) => w.item.shortcut != null && w.item.shortcut.length > 0
6839
6856
  ),
6840
6857
  () => l.span(
6841
6858
  a.class("bc-command-palette__item-shortcut"),
6842
6859
  ie(
6843
- v.map((k) => k.item.shortcut ?? []),
6844
- (k) => l.kbd(
6860
+ v.map((w) => w.item.shortcut ?? []),
6861
+ (w) => l.kbd(
6845
6862
  a.class("bc-kbd bc-kbd--size-xs"),
6846
- k
6863
+ w
6847
6864
  )
6848
6865
  )
6849
6866
  )
@@ -6858,7 +6875,7 @@ function jo(e, t) {
6858
6875
  mode: "capturing",
6859
6876
  effect: "transparent",
6860
6877
  container: u,
6861
- content: $,
6878
+ content: k,
6862
6879
  onClickOutside: d,
6863
6880
  onEscape: d
6864
6881
  });
@@ -6879,19 +6896,19 @@ function Fo(e) {
6879
6896
  t,
6880
6897
  r
6881
6898
  )((o, g) => Ps(o, g ?? "")), c = (o) => {
6882
- const g = m.get(i), b = m.get(u);
6899
+ const g = m.get(i), f = m.get(u);
6883
6900
  switch (o.key) {
6884
6901
  case "ArrowDown":
6885
- o.preventDefault(), u.set(Math.min(b + 1, g.length - 1));
6902
+ o.preventDefault(), u.set(Math.min(f + 1, g.length - 1));
6886
6903
  break;
6887
6904
  case "ArrowUp":
6888
- o.preventDefault(), u.set(Math.max(b - 1, 0));
6905
+ o.preventDefault(), u.set(Math.max(f - 1, 0));
6889
6906
  break;
6890
6907
  case "Enter":
6891
6908
  o.preventDefault();
6892
6909
  {
6893
- const f = g.find((p) => p.index === b);
6894
- f && (f.item.onSelect(), n());
6910
+ const b = g.find((p) => p.index === f);
6911
+ b && (b.item.onSelect(), n());
6895
6912
  }
6896
6913
  break;
6897
6914
  case "Escape":
@@ -6926,15 +6943,15 @@ function Fo(e) {
6926
6943
  l.div(
6927
6944
  a.class("bc-block-command-palette__list"),
6928
6945
  ie(i, (g) => {
6929
- const b = x(
6946
+ const f = x(
6930
6947
  u,
6931
6948
  g
6932
- )((f, p) => f === p.index);
6949
+ )((b, p) => b === p.index);
6933
6950
  return l.div(
6934
6951
  a.class(
6935
6952
  m.map(
6936
- b,
6937
- (f) => `bc-block-command-palette__item${f ? " bc-block-command-palette__item--selected" : ""}`
6953
+ f,
6954
+ (b) => `bc-block-command-palette__item${b ? " bc-block-command-palette__item--selected" : ""}`
6938
6955
  )
6939
6956
  ),
6940
6957
  I.click(() => {
@@ -6946,7 +6963,7 @@ function Fo(e) {
6946
6963
  l.span(
6947
6964
  a.class("bc-block-command-palette__item-icon"),
6948
6965
  K({
6949
- icon: g.map((f) => f.item.icon),
6966
+ icon: g.map((b) => b.item.icon),
6950
6967
  size: "sm",
6951
6968
  accessibility: "decorative"
6952
6969
  })
@@ -6955,28 +6972,28 @@ function Fo(e) {
6955
6972
  a.class("bc-block-command-palette__item-content"),
6956
6973
  l.span(
6957
6974
  a.class("bc-block-command-palette__item-label"),
6958
- g.map((f) => f.item.label)
6975
+ g.map((b) => b.item.label)
6959
6976
  ),
6960
- E(
6961
- g.map((f) => f.item.description != null),
6977
+ B(
6978
+ g.map((b) => b.item.description != null),
6962
6979
  () => l.span(
6963
6980
  a.class("bc-block-command-palette__item-desc"),
6964
- g.map((f) => f.item.description ?? "")
6981
+ g.map((b) => b.item.description ?? "")
6965
6982
  )
6966
6983
  )
6967
6984
  ),
6968
- E(
6969
- g.map((f) => f.item.shortcut != null),
6985
+ B(
6986
+ g.map((b) => b.item.shortcut != null),
6970
6987
  () => l.span(
6971
6988
  a.class("bc-block-command-palette__item-shortcut"),
6972
- g.map((f) => f.item.shortcut ?? "")
6989
+ g.map((b) => b.item.shortcut ?? "")
6973
6990
  )
6974
6991
  )
6975
6992
  );
6976
6993
  })
6977
6994
  ),
6978
6995
  // Empty state
6979
- E(
6996
+ B(
6980
6997
  x(i)((g) => g.length === 0),
6981
6998
  () => l.div(
6982
6999
  a.class("bc-block-command-palette__empty"),
@@ -6997,16 +7014,16 @@ function Uo(e, t) {
6997
7014
  cancelText: d,
6998
7015
  onConfirm: o,
6999
7016
  onCancel: g,
7000
- dismissable: b = !0
7001
- } = e, f = {
7017
+ dismissable: f = !0
7018
+ } = e, b = {
7002
7019
  size: "sm",
7003
7020
  showCloseButton: !1,
7004
- dismissable: b,
7021
+ dismissable: f,
7005
7022
  onClose: g
7006
7023
  };
7007
7024
  return ne(
7008
7025
  oe,
7009
- (p) => ht(f, (y, h) => {
7026
+ (p) => ht(b, (y, h) => {
7010
7027
  const _ = () => {
7011
7028
  o?.(), h();
7012
7029
  }, C = () => {
@@ -7018,8 +7035,8 @@ function Uo(e, t) {
7018
7035
  a.class("bc-dialog__header-row"),
7019
7036
  l.div(
7020
7037
  a.class("bc-dialog__icon"),
7021
- D.backgroundColor(m.map(u, ($) => Se($, 100))),
7022
- D.color(m.map(u, ($) => Se($, 600))),
7038
+ D.backgroundColor(m.map(u, (k) => Se(k, 100))),
7039
+ D.color(m.map(u, (k) => Se(k, 600))),
7023
7040
  K({ icon: r, size: "sm" })
7024
7041
  ),
7025
7042
  l.span(a.class("bc-dialog__title"), n)
@@ -7029,7 +7046,7 @@ function Uo(e, t) {
7029
7046
  l.p(a.class("bc-dialog__description"), s),
7030
7047
  i && i.length > 0 ? l.ul(
7031
7048
  a.class("bc-dialog__consequences"),
7032
- ...i.map(($) => l.li($))
7049
+ ...i.map((k) => l.li(k))
7033
7050
  ) : z
7034
7051
  ),
7035
7052
  footer: Q(
@@ -7068,7 +7085,7 @@ function zo(e, t) {
7068
7085
  okText: i,
7069
7086
  onOk: c,
7070
7087
  dismissable: d = !0
7071
- } = e, o = Ms[r], g = u ?? o.icon, b = o.color, f = {
7088
+ } = e, o = Ms[r], g = u ?? o.icon, f = o.color, b = {
7072
7089
  size: "sm",
7073
7090
  showCloseButton: !1,
7074
7091
  dismissable: d,
@@ -7076,7 +7093,7 @@ function zo(e, t) {
7076
7093
  };
7077
7094
  return ne(
7078
7095
  oe,
7079
- (p) => ht(f, (y, h) => {
7096
+ (p) => ht(b, (y, h) => {
7080
7097
  const _ = () => {
7081
7098
  c?.(), h();
7082
7099
  };
@@ -7086,8 +7103,8 @@ function zo(e, t) {
7086
7103
  a.class("bc-dialog__header-row"),
7087
7104
  l.div(
7088
7105
  a.class("bc-dialog__icon"),
7089
- D.backgroundColor(Se(b, 100)),
7090
- D.color(Se(b, 600)),
7106
+ D.backgroundColor(Se(f, 100)),
7107
+ D.color(Se(f, 600)),
7091
7108
  K({ icon: g, size: "sm" })
7092
7109
  ),
7093
7110
  l.span(a.class("bc-dialog__title"), n)
@@ -7097,7 +7114,7 @@ function zo(e, t) {
7097
7114
  a.class("bc-dialog__actions"),
7098
7115
  Be(
7099
7116
  {
7100
- color: b,
7117
+ color: f,
7101
7118
  variant: "filled",
7102
7119
  size: "sm",
7103
7120
  onClick: _
@@ -7121,7 +7138,7 @@ function Ho(e, t) {
7121
7138
  onConfirm: d,
7122
7139
  onCancel: o,
7123
7140
  dismissable: g = !0
7124
- } = e, b = {
7141
+ } = e, f = {
7125
7142
  size: "sm",
7126
7143
  showCloseButton: !1,
7127
7144
  dismissable: g,
@@ -7129,7 +7146,7 @@ function Ho(e, t) {
7129
7146
  };
7130
7147
  return ne(
7131
7148
  oe,
7132
- (f) => ht(b, (p, y) => {
7149
+ (b) => ht(f, (p, y) => {
7133
7150
  const h = H(u), _ = () => {
7134
7151
  d?.(h.value), y();
7135
7152
  }, C = () => {
@@ -7146,9 +7163,9 @@ function Ho(e, t) {
7146
7163
  a.type("text"),
7147
7164
  a.value(h),
7148
7165
  a.placeholder(r ?? ""),
7149
- I.input(de(($) => h.set($))),
7150
- I.keydown(($) => {
7151
- $.key === "Enter" && ($.preventDefault(), _());
7166
+ I.input(de((k) => h.set(k))),
7167
+ I.keydown((k) => {
7168
+ k.key === "Enter" && (k.preventDefault(), _());
7152
7169
  })
7153
7170
  )
7154
7171
  ),
@@ -7156,7 +7173,7 @@ function Ho(e, t) {
7156
7173
  a.class("bc-dialog__actions"),
7157
7174
  Be(
7158
7175
  { variant: "light", size: "sm", onClick: C },
7159
- me(c, f.$.cancel)
7176
+ me(c, b.$.cancel)
7160
7177
  ),
7161
7178
  Be(
7162
7179
  {
@@ -7165,7 +7182,7 @@ function Ho(e, t) {
7165
7182
  size: "sm",
7166
7183
  onClick: _
7167
7184
  },
7168
- me(i, f.$.confirm)
7185
+ me(i, b.$.confirm)
7169
7186
  )
7170
7187
  )
7171
7188
  });
@@ -7208,30 +7225,30 @@ function Yo(e) {
7208
7225
  pip: d = !1,
7209
7226
  playsinline: o = !0,
7210
7227
  width: g,
7211
- height: b,
7212
- progressInterval: f = 1e3,
7228
+ height: f,
7229
+ progressInterval: b = 1e3,
7213
7230
  seekTo: p,
7214
7231
  config: y,
7215
7232
  onReady: h,
7216
7233
  onStart: _,
7217
7234
  onPlay: C,
7218
- onPause: w,
7219
- onBuffer: $,
7235
+ onPause: $,
7236
+ onBuffer: k,
7220
7237
  onBufferEnd: v,
7221
7238
  onEnded: S,
7222
- onError: k,
7223
- onDuration: P,
7224
- onSeek: B,
7239
+ onError: w,
7240
+ onDuration: L,
7241
+ onSeek: V,
7225
7242
  onProgress: U,
7226
- onPlaybackRateChange: V,
7243
+ onPlaybackRateChange: E,
7227
7244
  onPlaybackQualityChange: N
7228
7245
  } = e;
7229
- function q(L) {
7230
- return /\.m3u8(\?|$)/i.test(L);
7246
+ function q(P) {
7247
+ return /\.m3u8(\?|$)/i.test(P);
7231
7248
  }
7232
- function le(L) {
7249
+ function le(P) {
7233
7250
  try {
7234
- const R = L.canPlayType("application/vnd.apple.mpegurl");
7251
+ const R = P.canPlayType("application/vnd.apple.mpegurl");
7235
7252
  return R === "probably" || R === "maybe";
7236
7253
  } catch {
7237
7254
  return !1;
@@ -7248,22 +7265,22 @@ function Yo(e) {
7248
7265
  }
7249
7266
  const J = [];
7250
7267
  J.push(
7251
- m.on(t, (L) => {
7252
- typeof L == "string" && L.length > 0 && Bs(L) ? O.value = "youtube" : (O.value = "file", M && ce());
7268
+ m.on(t, (P) => {
7269
+ typeof P == "string" && P.length > 0 && Bs(P) ? O.value = "youtube" : (O.value = "file", M && ce());
7253
7270
  })
7254
7271
  );
7255
7272
  async function ce() {
7256
- const L = M;
7257
- if (!L) return;
7273
+ const P = M;
7274
+ if (!P) return;
7258
7275
  const R = m.get(t);
7259
7276
  if (typeof R != "string" || R.length === 0) return;
7260
7277
  Z();
7261
7278
  const Y = y?.file?.forceHLS ?? !1;
7262
7279
  if (q(R) || Y) {
7263
- if (le(L)) {
7264
- L.setAttribute("src", R);
7280
+ if (le(P)) {
7281
+ P.setAttribute("src", R);
7265
7282
  try {
7266
- L.load();
7283
+ P.load();
7267
7284
  } catch {
7268
7285
  }
7269
7286
  return;
@@ -7277,45 +7294,45 @@ function Yo(e) {
7277
7294
  if (typeof Ne == "function") {
7278
7295
  const Le = Ne;
7279
7296
  if (typeof Le.isSupported == "function" && Le.isSupported()) {
7280
- L.removeAttribute("src");
7297
+ P.removeAttribute("src");
7281
7298
  try {
7282
- L.load();
7299
+ P.load();
7283
7300
  } catch {
7284
7301
  }
7285
7302
  const tt = new Le(y?.hls);
7286
- W = tt, tt.attachMedia(L), tt.loadSource(R);
7303
+ W = tt, tt.attachMedia(P), tt.loadSource(R);
7287
7304
  } else {
7288
- L.setAttribute("src", R);
7305
+ P.setAttribute("src", R);
7289
7306
  try {
7290
- L.load();
7307
+ P.load();
7291
7308
  } catch {
7292
7309
  }
7293
7310
  }
7294
7311
  } else {
7295
- L.setAttribute("src", R);
7312
+ P.setAttribute("src", R);
7296
7313
  try {
7297
- L.load();
7314
+ P.load();
7298
7315
  } catch {
7299
7316
  }
7300
7317
  }
7301
7318
  } catch (ae) {
7302
- k?.(ae), L.setAttribute("src", R);
7319
+ w?.(ae), P.setAttribute("src", R);
7303
7320
  try {
7304
- L.load();
7321
+ P.load();
7305
7322
  } catch {
7306
7323
  }
7307
7324
  }
7308
7325
  return;
7309
7326
  }
7310
- L.setAttribute("src", R);
7327
+ P.setAttribute("src", R);
7311
7328
  try {
7312
- L.load();
7329
+ P.load();
7313
7330
  } catch {
7314
7331
  }
7315
7332
  }
7316
7333
  function ue() {
7317
7334
  j?.();
7318
- const L = m.get(f) ?? 1e3;
7335
+ const P = m.get(b) ?? 1e3;
7319
7336
  j = Lt(() => {
7320
7337
  const R = M;
7321
7338
  if (!R) return;
@@ -7326,15 +7343,15 @@ function Yo(e) {
7326
7343
  loaded: Y > 0 ? Math.min(Ue, Y) / Y : 0,
7327
7344
  loadedSeconds: Math.min(Ue, Y)
7328
7345
  });
7329
- }, L);
7346
+ }, P);
7330
7347
  }
7331
- function ge(L) {
7332
- if (L != null)
7333
- return typeof L == "number" ? `${L}px` : L;
7348
+ function ge(P) {
7349
+ if (P != null)
7350
+ return typeof P == "number" ? `${P}px` : P;
7334
7351
  }
7335
7352
  const Te = l.video(
7336
- re((L) => {
7337
- M = L, h?.();
7353
+ re((P) => {
7354
+ M = P, h?.();
7338
7355
  try {
7339
7356
  M.playbackRate = m.get(c) ?? 1;
7340
7357
  } catch {
@@ -7355,29 +7372,29 @@ function Yo(e) {
7355
7372
  m.map(g, ge)
7356
7373
  ),
7357
7374
  D.height(
7358
- m.map(b, ge)
7375
+ m.map(f, ge)
7359
7376
  ),
7360
7377
  // Events
7361
7378
  I.play(() => C?.()),
7362
7379
  I.playing(() => {
7363
7380
  _?.(), v?.();
7364
7381
  }),
7365
- I.pause(() => w?.()),
7366
- I.waiting(() => $?.()),
7382
+ I.pause(() => $?.()),
7383
+ I.waiting(() => k?.()),
7367
7384
  I.canplay(() => {
7368
- const L = M?.duration;
7369
- L != null && Number.isFinite(L) && P?.(L);
7385
+ const P = M?.duration;
7386
+ P != null && Number.isFinite(P) && L?.(P);
7370
7387
  }),
7371
7388
  I.ended(() => S?.()),
7372
- I.error((L) => {
7373
- W || k?.(L);
7389
+ I.error((P) => {
7390
+ W || w?.(P);
7374
7391
  })
7375
7392
  );
7376
7393
  let Oe = null, X = null, Ve = null;
7377
7394
  function Ee() {
7378
- const L = m.get(t);
7379
- !Oe || typeof L != "string" || Vs().then((R) => {
7380
- const Y = Sn(L);
7395
+ const P = m.get(t);
7396
+ !Oe || typeof P != "string" || Vs().then((R) => {
7397
+ const Y = Sn(P);
7381
7398
  if (Y) {
7382
7399
  if (X) {
7383
7400
  X.loadVideoById({ videoId: Y });
@@ -7396,18 +7413,18 @@ function Yo(e) {
7396
7413
  C?.(), v?.();
7397
7414
  break;
7398
7415
  case R.PlayerState.PAUSED:
7399
- w?.();
7416
+ $?.();
7400
7417
  break;
7401
7418
  case R.PlayerState.BUFFERING:
7402
- $?.();
7419
+ k?.();
7403
7420
  break;
7404
7421
  case R.PlayerState.ENDED:
7405
7422
  S?.();
7406
7423
  break;
7407
7424
  }
7408
7425
  },
7409
- onError: (ae) => k?.(ae),
7410
- onPlaybackRateChange: (ae) => V?.(ae.data),
7426
+ onError: (ae) => w?.(ae),
7427
+ onPlaybackRateChange: (ae) => E?.(ae.data),
7411
7428
  onPlaybackQualityChange: (ae) => N?.(ae.data)
7412
7429
  }
7413
7430
  });
@@ -7416,7 +7433,7 @@ function Yo(e) {
7416
7433
  }
7417
7434
  function et() {
7418
7435
  Ve?.();
7419
- const L = m.get(f) ?? 1e3;
7436
+ const P = m.get(b) ?? 1e3;
7420
7437
  Ve = Lt(() => {
7421
7438
  if (!X) return;
7422
7439
  const R = X.getDuration?.() ?? 0, Y = X.getCurrentTime?.() ?? 0, ae = X.getVideoLoadedFraction?.() ?? 0;
@@ -7426,7 +7443,7 @@ function Yo(e) {
7426
7443
  loaded: ae,
7427
7444
  loadedSeconds: ae * R
7428
7445
  });
7429
- }, L);
7446
+ }, P);
7430
7447
  }
7431
7448
  function A() {
7432
7449
  if (!X) return;
@@ -7448,11 +7465,11 @@ function Yo(e) {
7448
7465
  }
7449
7466
  m.get(n) ?? !1 ? X.playVideo?.() : X.pauseVideo?.();
7450
7467
  const R = m.get(p);
7451
- typeof R == "number" && Number.isFinite(R) && (X.seekTo?.(R, !0), B?.(R));
7468
+ typeof R == "number" && Number.isFinite(R) && (X.seekTo?.(R, !0), V?.(R));
7452
7469
  }
7453
7470
  const F = l.div(
7454
- re((L) => {
7455
- Oe = L, Ee(), h?.();
7471
+ re((P) => {
7472
+ Oe = P, Ee(), h?.();
7456
7473
  })
7457
7474
  );
7458
7475
  J.push(
@@ -7469,10 +7486,10 @@ function Yo(e) {
7469
7486
  if (O.value === "file" && M)
7470
7487
  M.volume = Math.min(Math.max(m.get(u) ?? 1, 0), 1);
7471
7488
  else if (O.value === "youtube" && X) {
7472
- const L = Math.round(
7489
+ const P = Math.round(
7473
7490
  Math.min(Math.max(m.get(u) ?? 1, 0), 1) * 100
7474
7491
  );
7475
- X.setVolume?.(L);
7492
+ X.setVolume?.(P);
7476
7493
  }
7477
7494
  })
7478
7495
  ), J.push(
@@ -7492,8 +7509,8 @@ function Yo(e) {
7492
7509
  m.on(d, async () => {
7493
7510
  if (!(O.value !== "file" || !M))
7494
7511
  try {
7495
- const L = !!(m.get(d) ?? !1), R = document, Y = M;
7496
- L ? typeof Y.requestPictureInPicture == "function" && R.pictureInPictureElement !== M && await Y.requestPictureInPicture()?.catch(() => {
7512
+ const P = !!(m.get(d) ?? !1), R = document, Y = M;
7513
+ P ? typeof Y.requestPictureInPicture == "function" && R.pictureInPictureElement !== M && await Y.requestPictureInPicture()?.catch(() => {
7497
7514
  }) : R.pictureInPictureElement === M && typeof R.exitPictureInPicture == "function" && await R.exitPictureInPicture()?.catch(() => {
7498
7515
  });
7499
7516
  } catch {
@@ -7501,14 +7518,14 @@ function Yo(e) {
7501
7518
  })
7502
7519
  ), J.push(
7503
7520
  m.on(p ?? null, () => {
7504
- const L = m.get(p);
7505
- if (L != null)
7521
+ const P = m.get(p);
7522
+ if (P != null)
7506
7523
  if (O.value === "file" && M)
7507
7524
  try {
7508
- M.currentTime = L, B?.(L);
7525
+ M.currentTime = P, V?.(P);
7509
7526
  } catch {
7510
7527
  }
7511
- else O.value === "youtube" && X && (X.seekTo?.(L, !0), B?.(L));
7528
+ else O.value === "youtube" && X && (X.seekTo?.(P, !0), V?.(P));
7512
7529
  })
7513
7530
  );
7514
7531
  const se = l.div(
@@ -7517,10 +7534,10 @@ function Yo(e) {
7517
7534
  m.map(g, ge)
7518
7535
  ),
7519
7536
  D.height(
7520
- m.map(b, ge)
7537
+ m.map(f, ge)
7521
7538
  ),
7522
- E(
7523
- m.map(O, (L) => L === "youtube"),
7539
+ B(
7540
+ m.map(O, (P) => P === "youtube"),
7524
7541
  () => F,
7525
7542
  () => Te
7526
7543
  )
@@ -7614,8 +7631,8 @@ function Go({
7614
7631
  onPageChange: d,
7615
7632
  onLoadComplete: o
7616
7633
  }, ...g) {
7617
- const b = Fs();
7618
- let f = lt(
7634
+ const f = Fs();
7635
+ let b = lt(
7619
7636
  m.get(e)
7620
7637
  ), p = null, y = m.get(t), h = null;
7621
7638
  return ne(oe, (_) => Q(
@@ -7631,16 +7648,16 @@ function Go({
7631
7648
  p != null && (p.destroy(), p = null);
7632
7649
  }),
7633
7650
  Fe((C) => {
7634
- const w = En(
7651
+ const $ = En(
7635
7652
  C.map(
7636
- ($) => $ == null ? null : { width: $.width, height: $.height },
7637
- ($, v) => $ != null && v != null && $.width === v.width && $.height === v.height
7653
+ (k) => k == null ? null : { width: k.width, height: k.height },
7654
+ (k, v) => k != null && v != null && k.width === v.width && k.height === v.height
7638
7655
  ),
7639
7656
  100
7640
7657
  );
7641
7658
  return ve(
7642
- w,
7643
- ($) => Yt({
7659
+ $,
7660
+ (k) => Yt({
7644
7661
  request: x(
7645
7662
  e,
7646
7663
  t,
@@ -7650,30 +7667,30 @@ function Go({
7650
7667
  u,
7651
7668
  i,
7652
7669
  c,
7653
- $
7654
- )((v, S, k, P, B, U, V, N, q) => ({
7670
+ k
7671
+ )((v, S, w, L, V, U, E, N, q) => ({
7655
7672
  source: v,
7656
7673
  page: S,
7657
- fit: k,
7658
- scale: P,
7659
- rotation: B,
7674
+ fit: w,
7675
+ scale: L,
7676
+ rotation: V,
7660
7677
  quality: U,
7661
- renderTextLayer: V,
7678
+ renderTextLayer: E,
7662
7679
  renderAnnotationLayer: N,
7663
7680
  containerWidth: q.width,
7664
7681
  containerHeight: q.height
7665
7682
  })),
7666
7683
  load: async ({ request: v }) => {
7667
- const S = await b, k = v.source, P = lt(k), B = lt(k);
7668
- (p == null || !Hs(f, P)) && (p != null && (p.destroy(), p = null), f = P, p = await S.getDocument(B).promise, o?.({ pdfDoc: p }));
7684
+ const S = await f, w = v.source, L = lt(w), V = lt(w);
7685
+ (p == null || !Hs(b, L)) && (p != null && (p.destroy(), p = null), b = L, p = await S.getDocument(V).promise, o?.({ pdfDoc: p }));
7669
7686
  const U = v.page < 1 || v.page > p.numPages ? 1 : v.page;
7670
7687
  d != null && U !== y && (y = U, d(U));
7671
- const V = await p.getPage(U);
7688
+ const E = await p.getPage(U);
7672
7689
  let N;
7673
7690
  if (v.fit === "none")
7674
7691
  N = v.scale;
7675
7692
  else {
7676
- const O = V.getViewport({
7693
+ const O = E.getViewport({
7677
7694
  scale: 1,
7678
7695
  rotation: v.rotation
7679
7696
  }), M = O.width / O.height, j = v.containerWidth / v.containerHeight;
@@ -7695,10 +7712,10 @@ function Go({
7695
7712
  break;
7696
7713
  }
7697
7714
  }
7698
- const q = V.getViewport({
7715
+ const q = E.getViewport({
7699
7716
  scale: N,
7700
7717
  rotation: v.rotation
7701
- }), le = V.getViewport({
7718
+ }), le = E.getViewport({
7702
7719
  scale: N * v.quality,
7703
7720
  rotation: v.rotation
7704
7721
  });
@@ -7720,7 +7737,7 @@ function Go({
7720
7737
  const W = O.getContext("2d");
7721
7738
  if (!W)
7722
7739
  throw new Error("Failed to get canvas context");
7723
- const Z = V.render({
7740
+ const Z = E.render({
7724
7741
  canvasContext: W,
7725
7742
  canvas: O,
7726
7743
  viewport: le
@@ -7738,7 +7755,7 @@ function Go({
7738
7755
  if (v.renderTextLayer && M != null) {
7739
7756
  M.innerHTML = "";
7740
7757
  try {
7741
- const J = await V.getTextContent(), ce = S.TextLayer;
7758
+ const J = await E.getTextContent(), ce = S.TextLayer;
7742
7759
  ce != null && await new ce({
7743
7760
  textContentSource: J,
7744
7761
  container: M,
@@ -7751,7 +7768,7 @@ function Go({
7751
7768
  if (v.renderAnnotationLayer && j != null) {
7752
7769
  j.innerHTML = "", j.style.width = `${q.width}px`, j.style.height = `${q.height}px`;
7753
7770
  try {
7754
- const J = await V.getAnnotations(), ce = S.AnnotationLayer;
7771
+ const J = await E.getAnnotations(), ce = S.AnnotationLayer;
7755
7772
  if (ce != null && J.length > 0) {
7756
7773
  const ue = {
7757
7774
  // Minimal link service for basic functionality
@@ -7766,7 +7783,7 @@ function Go({
7766
7783
  };
7767
7784
  await new ce({
7768
7785
  div: j,
7769
- page: V,
7786
+ page: E,
7770
7787
  viewport: q,
7771
7788
  linkService: ue,
7772
7789
  annotationStorage: null
@@ -7774,7 +7791,7 @@ function Go({
7774
7791
  viewport: q,
7775
7792
  div: j,
7776
7793
  annotations: J,
7777
- page: V,
7794
+ page: E,
7778
7795
  linkService: ue,
7779
7796
  renderForms: !0
7780
7797
  });
@@ -7818,7 +7835,7 @@ function Go({
7818
7835
  l.div(
7819
7836
  a.class("bc-pdf-page-viewer__content"),
7820
7837
  // Only set fixed dimensions when fit is 'none'
7821
- E(
7838
+ B(
7822
7839
  m.map(n, (S) => S === "none"),
7823
7840
  () => a.style(
7824
7841
  v.$.canvasWidth.map(
@@ -7840,18 +7857,18 @@ function Go({
7840
7857
  l.div(a.class("bc-pdf-page-viewer__annotation-layer"))
7841
7858
  ),
7842
7859
  re((S) => {
7843
- const k = S.querySelector(
7860
+ const w = S.querySelector(
7844
7861
  ".bc-pdf-page-viewer__canvas"
7845
- ), P = S.querySelector(
7862
+ ), L = S.querySelector(
7846
7863
  ".bc-pdf-page-viewer__text-layer"
7847
- ), B = S.querySelector(
7864
+ ), V = S.querySelector(
7848
7865
  ".bc-pdf-page-viewer__annotation-layer"
7849
7866
  );
7850
7867
  return m.on(v, async (U) => {
7851
7868
  await U.render(
7852
- k,
7853
- P,
7854
- B
7869
+ w,
7870
+ L,
7871
+ V
7855
7872
  );
7856
7873
  }), z;
7857
7874
  })