@umriss-ui/core 0.10.0 → 0.11.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.
package/dist/core.js CHANGED
@@ -214,13 +214,13 @@ const Pr = "_alert_1pgum_12 _text_k1tvc_23", Er = "_content_1pgum_27", Fr = "_ti
214
214
  priorityHigh: "High",
215
215
  priorityMedium: "Medium",
216
216
  priorityLow: "Low",
217
- lifecycleStandingUnacknowledged: "Standing, unacknowledged",
218
- lifecycleStandingAcknowledged: "Standing, acknowledged",
219
- lifecycleClearedUnacknowledged: "Cleared, unacknowledged",
220
- lifecycleClearedAcknowledged: "Cleared, acknowledged",
217
+ lifecycleActiveUnacknowledged: "Active, unacknowledged",
218
+ lifecycleActiveAcknowledged: "Active, acknowledged",
219
+ lifecycleResolvedUnacknowledged: "Resolved, unacknowledged",
220
+ lifecycleResolvedAcknowledged: "Resolved, acknowledged",
221
221
  floodHint: (t) => `Alarm flood: ${t} in quick succession`,
222
222
  chatterHint: (t) => `${t}×`,
223
- standingUnacknowledged: (t) => t === 1 ? "1 standing alarm, unacknowledged" : `${t} standing alarms, unacknowledged`,
223
+ activeUnacknowledged: (t) => t === 1 ? "1 active alarm, unacknowledged" : `${t} active alarms, unacknowledged`,
224
224
  columnAlarm: "Alarm",
225
225
  columnLifecycleState: "State",
226
226
  columnPriority: "Priority",
@@ -229,11 +229,11 @@ const Pr = "_alert_1pgum_12 _text_k1tvc_23", Er = "_content_1pgum_27", Fr = "_ti
229
229
  columnFrequency: "Frequency",
230
230
  columnAcknowledgement: "Acknowledgement",
231
231
  columnAge: "Age",
232
- availabilityShelved: (t, e) => `Shelved until ${t} by ${e}`,
233
- availabilityShelvedShort: "Shelved",
234
- availabilitySuppressedByDesign: "Suppressed by design",
235
- availabilityOutOfService: "Out of service",
236
- hiddenFromOperation: (t) => `Hidden from operation: ${t}`,
232
+ availabilitySnoozed: (t, e) => `Snoozed until ${t} by ${e}`,
233
+ availabilitySnoozedShort: "Snoozed",
234
+ availabilitySuppressed: "Suppressed",
235
+ availabilityDisabled: "Disabled",
236
+ hiddenAlarms: (t) => `Hidden: ${t}`,
237
237
  columnAvailability: "Availability",
238
238
  close: "Close",
239
239
  closeToast: "Close message",
@@ -260,21 +260,23 @@ const Pr = "_alert_1pgum_12 _text_k1tvc_23", Er = "_content_1pgum_27", Fr = "_ti
260
260
  remove: "Remove",
261
261
  removeTag: (t) => `Remove ${t}`,
262
262
  scheduleOverlap: "Overlap",
263
- scheduleLateTransport: "Late transport",
263
+ scheduleViolatedDependency: "Violated dependency",
264
264
  scheduleGhostTimes: (t, e) => `${t}–${e}`,
265
- scheduleSetup: "Setup",
266
- scheduleTeardown: "Teardown",
267
- scheduleTransport: "Transport",
265
+ scheduleLeadIn: "Lead-in",
266
+ scheduleLeadOut: "Lead-out",
267
+ scheduleDependency: "Dependency",
268
268
  scheduleRoute: (t, e) => `${t} → ${e}`,
269
269
  scheduleOverlapWith: (t) => `Overlap with ${t}`,
270
- scheduleLateBy: (t) => `Late transport, ${t} short`,
270
+ scheduleViolatedBy: (t) => `Violated dependency, ${t} short`,
271
271
  scheduleLaneRefused: "Not this lane",
272
+ scheduleBlockedTime: "Blocked time",
273
+ scheduleInBlockedTime: (t) => t === void 0 ? "In blocked time" : `In blocked time (${t})`,
272
274
  scheduleFoldGroup: "Fold group",
273
275
  scheduleUnfoldGroup: "Unfold group",
274
276
  scheduleLaneCount: (t) => t === 1 ? "1 lane" : `${t} lanes`,
275
277
  scheduleRoleDescription: "schedule",
276
- scheduleSummary: ({ lanes: t, subtasks: e, from: n, to: r, overlaps: o, late: a }) => `${t === 1 ? "1 lane" : `${t} lanes`}, ${e === 1 ? "1 subtask" : `${e} subtasks`} in view from ${n} to ${r}. ${o === 1 ? "1 overlap" : `${o} overlaps`}, ${a === 1 ? "1 late transport" : `${a} late transports`}.`,
277
- scheduleKeyHelp: "Left and right arrows move along the lane, up and down change the lane, Home and End go to its first and last, Page Up and Page Down jump a tenth of the view. Right bracket or T follows a transport out, left bracket or Shift and T goes back. Space or Enter selects. Alt with left or right proposes a move, Alt and Shift a new end. Escape clears.",
278
+ scheduleSummary: ({ lanes: t, subtasks: e, from: n, to: r, overlaps: o, violated: i, blocked: a }) => `${t === 1 ? "1 lane" : `${t} lanes`}, ${e === 1 ? "1 subtask" : `${e} subtasks`} in view from ${n} to ${r}. ${o === 1 ? "1 overlap" : `${o} overlaps`}, ${i === 1 ? "1 violated dependency" : `${i} violated dependencies`}` + (a === 0 ? "." : `, ${a === 1 ? "1 subtask" : `${a} subtasks`} in blocked time.`),
279
+ scheduleKeyHelp: "Left and right arrows move along the lane, up and down change the lane, Home and End go to its first and last, Page Up and Page Down jump a tenth of the view. Right bracket or T follows a dependency out, left bracket or Shift and T goes back. Space or Enter selects. Alt with left or right proposes a move, Alt and Shift a new end. Escape clears.",
278
280
  calculationSumSymbol: "+",
279
281
  calculationDifferenceSymbol: "−",
280
282
  calculationProductSymbol: "×",
@@ -413,7 +415,7 @@ const Qn = () => je(Kn) ?? Xn, Ge = () => Qn().formats, de = () => Qn().wording,
413
415
  success: { role: "status", live: "polite" },
414
416
  warning: { role: "alert" },
415
417
  danger: { role: "alert" }
416
- }, Jf = G(function({ tone: e = "neutral", title: n, actions: r, onDismiss: o, dismissLabel: a, className: i, children: c, ...d }, m) {
418
+ }, Jf = G(function({ tone: e = "neutral", title: n, actions: r, onDismiss: o, dismissLabel: i, className: a, children: c, ...d }, m) {
417
419
  const h = de(), { role: p, live: f } = rn[e];
418
420
  return /* @__PURE__ */ k(
419
421
  "div",
@@ -421,7 +423,7 @@ const Qn = () => je(Kn) ?? Xn, Ge = () => Qn().formats, de = () => Qn().wording,
421
423
  ref: m,
422
424
  role: p,
423
425
  "aria-live": f,
424
- className: A(mt.alert, mt[e], i),
426
+ className: A(mt.alert, mt[e], a),
425
427
  ...d,
426
428
  children: [
427
429
  /* @__PURE__ */ k("div", { className: mt.content, children: [
@@ -429,7 +431,7 @@ const Qn = () => je(Kn) ?? Xn, Ge = () => Qn().formats, de = () => Qn().wording,
429
431
  c && /* @__PURE__ */ s("div", { className: mt.text, children: c }),
430
432
  r && /* @__PURE__ */ s("div", { className: mt.actions, children: r })
431
433
  ] }),
432
- o && /* @__PURE__ */ s("button", { type: "button", "aria-label": a ?? h.closeToast, className: mt.close, onClick: o, children: /* @__PURE__ */ s(Ke, {}) })
434
+ o && /* @__PURE__ */ s("button", { type: "button", "aria-label": i ?? h.closeToast, className: mt.close, onClick: o, children: /* @__PURE__ */ s(Ke, {}) })
433
435
  ]
434
436
  }
435
437
  );
@@ -441,12 +443,12 @@ const Qn = () => je(Kn) ?? Xn, Ge = () => Qn().formats, de = () => Qn().wording,
441
443
  success: Jr,
442
444
  warning: eo,
443
445
  danger: to
444
- }, eh = G(function({ tone: e = "neutral", pill: n = !1, className: r, children: o, ...a }, i) {
445
- return /* @__PURE__ */ s("span", { ref: i, className: A(Qt.badge, n && Qt.pill, Qt[e], r), ...a, children: o });
446
+ }, eh = G(function({ tone: e = "neutral", pill: n = !1, className: r, children: o, ...i }, a) {
447
+ return /* @__PURE__ */ s("span", { ref: a, className: A(Qt.badge, n && Qt.pill, Qt[e], r), ...i, children: o });
446
448
  }), no = "_spinner_1tmf7_4", ro = {
447
449
  spinner: no
448
450
  }, tr = G(function({ size: e = 14, className: n, ...r }, o) {
449
- const a = de();
451
+ const i = de();
450
452
  return /* @__PURE__ */ k(
451
453
  "svg",
452
454
  {
@@ -456,7 +458,7 @@ const Qn = () => je(Kn) ?? Xn, Ge = () => Qn().formats, de = () => Qn().wording,
456
458
  height: e,
457
459
  viewBox: "0 0 16 16",
458
460
  fill: "none",
459
- "aria-label": a.loading,
461
+ "aria-label": i.loading,
460
462
  ...r,
461
463
  role: "status",
462
464
  children: [
@@ -473,19 +475,19 @@ const Qn = () => je(Kn) ?? Xn, Ge = () => Qn().formats, de = () => Qn().wording,
473
475
  secondary: co,
474
476
  ghost: lo,
475
477
  label: uo
476
- }, ke = G(function({ variant: e = "secondary", size: n = "md", loading: r = !1, disabled: o, className: a, children: i, type: c, ...d }, m) {
478
+ }, ke = G(function({ variant: e = "secondary", size: n = "md", loading: r = !1, disabled: o, className: i, children: a, type: c, ...d }, m) {
477
479
  return /* @__PURE__ */ k(
478
480
  "button",
479
481
  {
480
482
  ref: m,
481
483
  type: c ?? "button",
482
- className: A(Lt.button, Lt[e], Lt[n], a),
484
+ className: A(Lt.button, Lt[e], Lt[n], i),
483
485
  disabled: o || r,
484
486
  "aria-busy": r || void 0,
485
487
  ...d,
486
488
  children: [
487
489
  r && /* @__PURE__ */ s(tr, { size: n === "sm" ? 12 : 14, className: Lt.spinner }),
488
- /* @__PURE__ */ s("span", { className: Lt.label, children: i })
490
+ /* @__PURE__ */ s("span", { className: Lt.label, children: a })
489
491
  ]
490
492
  }
491
493
  );
@@ -503,9 +505,9 @@ function Ee() {
503
505
  function vo({ children: t }) {
504
506
  return /* @__PURE__ */ s(mn.Provider, { value: null, children: t });
505
507
  }
506
- const th = G(function({ label: e, hint: n, error: r, required: o = !1, fieldId: a, className: i, children: c, ...d }, m) {
507
- const h = xe(), p = a ?? h, f = `${p}-message`, u = !!(r ?? n);
508
- return /* @__PURE__ */ k("div", { ref: m, className: A(xt.field, i), ...d, children: [
508
+ const th = G(function({ label: e, hint: n, error: r, required: o = !1, fieldId: i, className: a, children: c, ...d }, m) {
509
+ const h = xe(), p = i ?? h, f = `${p}-message`, u = !!(r ?? n);
510
+ return /* @__PURE__ */ k("div", { ref: m, className: A(xt.field, a), ...d, children: [
509
511
  /* @__PURE__ */ k("label", { className: xt.label, htmlFor: p, children: [
510
512
  e,
511
513
  o && /* @__PURE__ */ s("span", { className: xt.required, "aria-hidden": "true", children: "*" })
@@ -521,7 +523,7 @@ const th = G(function({ label: e, hint: n, error: r, required: o = !1, fieldId:
521
523
  ] });
522
524
  }), yo = 6, bo = 8;
523
525
  function nr(t, e, n, r = {}) {
524
- const { align: o = "start", side: a = "bottom", offset: i = yo, margin: c = bo } = r, { top: d = 0, left: m = 0 } = n, h = d + n.height - t.bottom - i, p = t.top - d - i, f = a === "top" ? p : h, u = a === "top" ? h : p, l = f < e.height && u >= e.height, g = a === "top" !== l, b = g ? t.top - i - e.height : t.bottom + i, y = f >= e.height || u >= e.height ? b : Math.max(d + c, Math.min(b, d + n.height - e.height - c)), w = o === "end" ? t.right - e.width : o === "center" ? t.left + t.width / 2 - e.width / 2 : t.left, T = Math.max(m + c, Math.min(w, m + n.width - e.width - c));
526
+ const { align: o = "start", side: i = "bottom", offset: a = yo, margin: c = bo } = r, { top: d = 0, left: m = 0 } = n, h = d + n.height - t.bottom - a, p = t.top - d - a, f = i === "top" ? p : h, u = i === "top" ? h : p, l = f < e.height && u >= e.height, g = i === "top" !== l, b = g ? t.top - a - e.height : t.bottom + a, y = f >= e.height || u >= e.height ? b : Math.max(d + c, Math.min(b, d + n.height - e.height - c)), w = o === "end" ? t.right - e.width : o === "center" ? t.left + t.width / 2 - e.width / 2 : t.left, T = Math.max(m + c, Math.min(w, m + n.width - e.width - c));
525
527
  return { top: y, left: T, flipped: l, side: g ? "top" : "bottom" };
526
528
  }
527
529
  function pn(t, e) {
@@ -557,7 +559,7 @@ function oh({
557
559
  language: r,
558
560
  children: o
559
561
  }) {
560
- const a = fe(
562
+ const i = fe(
561
563
  () => ({
562
564
  density: t ?? "comfortable",
563
565
  densityGiven: t !== void 0,
@@ -566,7 +568,7 @@ function oh({
566
568
  }),
567
569
  [t, e, n]
568
570
  );
569
- return /* @__PURE__ */ s(_n.Provider, { value: a, children: /* @__PURE__ */ s(Ur, { formats: r == null ? void 0 : r.formats, wording: r == null ? void 0 : r.wording, children: o }) });
571
+ return /* @__PURE__ */ s(_n.Provider, { value: i, children: /* @__PURE__ */ s(Ur, { formats: r == null ? void 0 : r.formats, wording: r == null ? void 0 : r.wording, children: o }) });
570
572
  }
571
573
  function yn(t, e) {
572
574
  return (t == null ? void 0 : t.closest("dialog")) ?? e() ?? document.body;
@@ -582,12 +584,12 @@ function or(t, e, n) {
582
584
  const [r, o] = W(t);
583
585
  return t && !r && o(!0), ze(() => {
584
586
  if (t || !r) return;
585
- const a = e.current, i = a && !Yt() ? Bt(getComputedStyle(a), n) : 0;
586
- if (i <= 0) {
587
+ const i = e.current, a = i && !Yt() ? Bt(getComputedStyle(i), n) : 0;
588
+ if (a <= 0) {
587
589
  o(!1);
588
590
  return;
589
591
  }
590
- const c = window.setTimeout(() => o(!1), i);
592
+ const c = window.setTimeout(() => o(!1), a);
591
593
  return () => window.clearTimeout(c);
592
594
  }, [t, r, e, n]), r;
593
595
  }
@@ -597,8 +599,8 @@ function ft({
597
599
  anchorRef: n,
598
600
  focusRef: r,
599
601
  insideRefs: o,
600
- align: a = "start",
601
- offset: i,
602
+ align: i = "start",
603
+ offset: a,
602
604
  width: c = "auto",
603
605
  minWidth: d,
604
606
  restoreFocus: m = !0,
@@ -630,10 +632,10 @@ function ft({
630
632
  M,
631
633
  { width: E.width, height: E.height },
632
634
  rr(),
633
- { align: a, offset: i }
635
+ { align: i, offset: a }
634
636
  )
635
637
  );
636
- }, [n, a, i, c, d]);
638
+ }, [n, i, a, c, d]);
637
639
  return ze(() => {
638
640
  t && j(yn(n.current, $));
639
641
  }, [t, n, $]), ze(() => {
@@ -678,7 +680,7 @@ function ft({
678
680
  top: (y == null ? void 0 : y.top) ?? 0,
679
681
  left: (y == null ? void 0 : y.left) ?? 0,
680
682
  /* The motion origin, computed here and drawn by the stylesheet. */
681
- "--_origin": y ? pn(y.side, a) : void 0,
683
+ "--_origin": y ? pn(y.side, i) : void 0,
682
684
  /* Not shown before the first measurement, or it flashes in the top
683
685
  left. Transparent and not `visibility: hidden`: a hidden panel takes
684
686
  no focus, and the first opening of a menu lost its move to the first
@@ -700,16 +702,16 @@ const $o = "_panel_1j8wy_4", So = "_item_1j8wy_16", To = "_danger_1j8wy_58", Do
700
702
  content: Ao
701
703
  }, bn = rt(null);
702
704
  function sr(t, e, n) {
703
- var a, i, c, d;
705
+ var i, a, c, d;
704
706
  const r = Array.from((e == null ? void 0 : e.querySelectorAll('[role="menuitem"]:not([disabled])')) ?? []);
705
707
  if (r.length === 0) return;
706
708
  const o = r.findIndex((m) => m === document.activeElement);
707
709
  switch (t.key) {
708
710
  case "ArrowDown":
709
- t.preventDefault(), (a = r[(o + 1) % r.length]) == null || a.focus();
711
+ t.preventDefault(), (i = r[(o + 1) % r.length]) == null || i.focus();
710
712
  break;
711
713
  case "ArrowUp":
712
- t.preventDefault(), (i = r[(o - 1 + r.length) % r.length]) == null || i.focus();
714
+ t.preventDefault(), (a = r[(o - 1 + r.length) % r.length]) == null || a.focus();
713
715
  break;
714
716
  case "Home":
715
717
  t.preventDefault(), (c = r[0]) == null || c.focus();
@@ -723,16 +725,16 @@ function sr(t, e, n) {
723
725
  }
724
726
  }
725
727
  function ar({ trigger: t, children: e, align: n = "start" }) {
726
- const [r, o] = W(!1), a = I(null), i = I(null), c = xe(), d = () => {
728
+ const [r, o] = W(!1), i = I(null), a = I(null), c = xe(), d = () => {
727
729
  var f;
728
- o(!1), (f = a.current) == null || f.focus();
730
+ o(!1), (f = i.current) == null || f.focus();
729
731
  }, m = ne((f) => {
730
732
  var u;
731
- i.current = f, (u = f == null ? void 0 : f.querySelector('[role="menuitem"]:not([disabled])')) == null || u.focus();
732
- }, []), h = (f) => sr(f, i.current, d), p = t.props;
733
+ a.current = f, (u = f == null ? void 0 : f.querySelector('[role="menuitem"]:not([disabled])')) == null || u.focus();
734
+ }, []), h = (f) => sr(f, a.current, d), p = t.props;
733
735
  return /* @__PURE__ */ k(Me, { children: [
734
736
  Vn(t, {
735
- ref: a,
737
+ ref: i,
736
738
  "aria-haspopup": "menu",
737
739
  "aria-expanded": r,
738
740
  "aria-controls": r ? c : void 0,
@@ -746,7 +748,7 @@ function ar({ trigger: t, children: e, align: n = "start" }) {
746
748
  {
747
749
  open: r,
748
750
  onOpenChange: o,
749
- anchorRef: a,
751
+ anchorRef: i,
750
752
  align: n,
751
753
  role: "menu",
752
754
  id: c,
@@ -756,7 +758,7 @@ function ar({ trigger: t, children: e, align: n = "start" }) {
756
758
  )
757
759
  ] });
758
760
  }
759
- const Mo = G(function({ onSelect: e, tone: n = "default", className: r, children: o, onClick: a, ...i }, c) {
761
+ const Mo = G(function({ onSelect: e, tone: n = "default", className: r, children: o, onClick: i, ...a }, c) {
760
762
  const d = je(bn);
761
763
  return /* @__PURE__ */ s(
762
764
  "button",
@@ -765,10 +767,10 @@ const Mo = G(function({ onSelect: e, tone: n = "default", className: r, children
765
767
  type: "button",
766
768
  tabIndex: -1,
767
769
  className: A(Nt.item, n === "danger" && Nt.danger, r),
768
- ...i,
770
+ ...a,
769
771
  role: "menuitem",
770
772
  onClick: (m) => {
771
- a == null || a(m), !m.defaultPrevented && (e == null || e(), d == null || d.close());
773
+ i == null || i(m), !m.defaultPrevented && (e == null || e(), d == null || d.close());
772
774
  },
773
775
  children: o
774
776
  }
@@ -787,8 +789,8 @@ const Mo = G(function({ onSelect: e, tone: n = "default", className: r, children
787
789
  menu: n,
788
790
  variant: r = "secondary",
789
791
  size: o = "md",
790
- menuLabel: a,
791
- align: i = "end",
792
+ menuLabel: i,
793
+ align: a = "end",
792
794
  disabled: c,
793
795
  className: d,
794
796
  ...m
@@ -799,14 +801,14 @@ const Mo = G(function({ onSelect: e, tone: n = "default", className: r, children
799
801
  /* @__PURE__ */ s(
800
802
  ar,
801
803
  {
802
- align: i,
804
+ align: a,
803
805
  trigger: /* @__PURE__ */ s(
804
806
  ke,
805
807
  {
806
808
  variant: r,
807
809
  size: o,
808
810
  disabled: c,
809
- "aria-label": a ?? p.moreActions,
811
+ "aria-label": i ?? p.moreActions,
810
812
  className: Ht.trigger,
811
813
  children: /* @__PURE__ */ s("svg", { viewBox: "0 0 10 6", width: "9", height: "6", "aria-hidden": "true", className: Ht.arrow, children: /* @__PURE__ */ s(
812
814
  "path",
@@ -844,23 +846,23 @@ const Mo = G(function({ onSelect: e, tone: n = "default", className: r, children
844
846
  defaultCollapsed: n = !1,
845
847
  collapsed: r,
846
848
  onCollapsedChange: o,
847
- className: a,
848
- children: i,
849
+ className: i,
850
+ children: a,
849
851
  ...c
850
852
  }, d) {
851
853
  const [m, h] = W(n), p = r !== void 0, f = p ? r : m, u = () => {
852
854
  p || h(!f), o == null || o(!f);
853
855
  }, l = xe();
854
- return /* @__PURE__ */ s("section", { ref: d, className: A(We.card, a), ...c, children: /* @__PURE__ */ s(
856
+ return /* @__PURE__ */ s("section", { ref: d, className: A(We.card, i), ...c, children: /* @__PURE__ */ s(
855
857
  wn.Provider,
856
858
  {
857
859
  value: { collapsible: e, collapsed: f, toggle: u, bodyId: l },
858
- children: i
860
+ children: a
859
861
  }
860
862
  ) });
861
- }), ch = G(function({ title: e, eyebrow: n, actions: r, divider: o = !1, className: a, ...i }, c) {
863
+ }), ch = G(function({ title: e, eyebrow: n, actions: r, divider: o = !1, className: i, ...a }, c) {
862
864
  const d = je(wn), m = de();
863
- return /* @__PURE__ */ k("div", { ref: c, className: A(We.header, o && We.divider, a), ...i, children: [
865
+ return /* @__PURE__ */ k("div", { ref: c, className: A(We.header, o && We.divider, i), ...a, children: [
864
866
  /* @__PURE__ */ k("div", { className: We.headerText, children: [
865
867
  n && /* @__PURE__ */ s("span", { className: We.eyebrow, children: n }),
866
868
  /* @__PURE__ */ s("h2", { className: We.title, children: e })
@@ -880,18 +882,18 @@ const Mo = G(function({ onSelect: e, tone: n = "default", className: r, children
880
882
  )
881
883
  ] })
882
884
  ] });
883
- }), lh = G(function({ flush: e = !1, className: n, children: r, ...o }, a) {
884
- const i = je(wn), c = /* @__PURE__ */ s(
885
+ }), lh = G(function({ flush: e = !1, className: n, children: r, ...o }, i) {
886
+ const a = je(wn), c = /* @__PURE__ */ s(
885
887
  "div",
886
888
  {
887
- ref: a,
888
- id: i == null ? void 0 : i.bodyId,
889
+ ref: i,
890
+ id: a == null ? void 0 : a.bodyId,
889
891
  className: A(We.body, e && We.flush, n),
890
892
  ...o,
891
893
  children: r
892
894
  }
893
895
  );
894
- return i != null && i.collapsible ? /* @__PURE__ */ s("div", { className: A(We.collapse, i.collapsed && We.collapsed), children: /* @__PURE__ */ s("div", { className: We.collapseInner, inert: i.collapsed || void 0, children: c }) }) : c;
896
+ return a != null && a.collapsible ? /* @__PURE__ */ s("div", { className: A(We.collapse, a.collapsed && We.collapsed), children: /* @__PURE__ */ s("div", { className: We.collapseInner, inert: a.collapsed || void 0, children: c }) }) : c;
895
897
  }), Xo = "_wrapper_3mkxu_4 _text_k1tvc_23", Ko = "_input_3mkxu_13", Qo = "_box_3mkxu_20", Zo = "_check_3mkxu_39", Jo = "_dash_3mkxu_72", es = "_label_3mkxu_118", $t = {
896
898
  wrapper: Xo,
897
899
  input: Ko,
@@ -899,9 +901,9 @@ const Mo = G(function({ onSelect: e, tone: n = "default", className: r, children
899
901
  check: Zo,
900
902
  dash: Jo,
901
903
  label: es
902
- }, kn = G(function({ label: e, indeterminate: n = !1, className: r, id: o, ...a }, i) {
904
+ }, kn = G(function({ label: e, indeterminate: n = !1, className: r, id: o, ...i }, a) {
903
905
  const c = I(null);
904
- fn(i, () => c.current), se(() => {
906
+ fn(a, () => c.current), se(() => {
905
907
  c.current && (c.current.indeterminate = n);
906
908
  }, [n]);
907
909
  const d = Ee(), m = o ?? (d == null ? void 0 : d.id);
@@ -912,10 +914,10 @@ const Mo = G(function({ onSelect: e, tone: n = "default", className: r, children
912
914
  ref: c,
913
915
  type: "checkbox",
914
916
  id: m,
915
- "aria-describedby": a["aria-describedby"] ?? (d == null ? void 0 : d.describedBy),
917
+ "aria-describedby": i["aria-describedby"] ?? (d == null ? void 0 : d.describedBy),
916
918
  "aria-required": (d == null ? void 0 : d.required) || void 0,
917
919
  className: $t.input,
918
- ...a
920
+ ...i
919
921
  }
920
922
  ),
921
923
  /* @__PURE__ */ k("span", { className: $t.box, "aria-hidden": "true", children: [
@@ -932,9 +934,9 @@ function Qe(...t) {
932
934
  };
933
935
  }
934
936
  function ir(t, e, n) {
935
- const r = I(null), [o, a] = W(!1), i = I(!1), c = () => {
936
- if (i.current) {
937
- i.current = !1;
937
+ const r = I(null), [o, i] = W(!1), a = I(!1), c = () => {
938
+ if (a.current) {
939
+ a.current = !1;
938
940
  return;
939
941
  }
940
942
  n();
@@ -945,18 +947,18 @@ function ir(t, e, n) {
945
947
  const m = r.current;
946
948
  if (!m) return;
947
949
  if (t) {
948
- a(!1), m.open || m.showModal();
950
+ i(!1), m.open || m.showModal();
949
951
  return;
950
952
  }
951
953
  if (!m.open) return;
952
954
  const h = typeof e == "number" ? e : Bt(getComputedStyle(m), e);
953
955
  if (h <= 0 || Yt()) {
954
- i.current = !0, m.close();
956
+ a.current = !0, m.close();
955
957
  return;
956
958
  }
957
- a(!0);
959
+ i(!0);
958
960
  const p = window.setTimeout(() => {
959
- a(!1), i.current = !0, m.close();
961
+ i(!1), a.current = !0, m.close();
960
962
  }, h);
961
963
  return () => window.clearTimeout(p);
962
964
  }, [t, e]), { dialogRef: r, closing: o, beimSchliessen: c, beimAbbrechen: d };
@@ -1007,7 +1009,7 @@ function Cn(t, e) {
1007
1009
  if (n === "" || n.length > e.length) return null;
1008
1010
  const r = e.toLowerCase();
1009
1011
  let o = new Array(e.length).fill(null);
1010
- const a = [];
1012
+ const i = [];
1011
1013
  for (let h = 0; h < n.length; h++) {
1012
1014
  const p = new Array(e.length).fill(null), f = new Array(e.length).fill(null);
1013
1015
  for (let u = 0; u < e.length; u++) {
@@ -1024,19 +1026,19 @@ function Cn(t, e) {
1024
1026
  (p[u] === null || v > p[u]) && (p[u] = v, f[u] = g);
1025
1027
  }
1026
1028
  }
1027
- o = p, a.push(f);
1029
+ o = p, i.push(f);
1028
1030
  }
1029
- let i = null;
1031
+ let a = null;
1030
1032
  for (let h = 0; h < e.length; h++)
1031
- o[h] !== null && (i === null || o[h] > o[i]) && (i = h);
1032
- if (i === null) return null;
1033
+ o[h] !== null && (a === null || o[h] > o[a]) && (a = h);
1034
+ if (a === null) return null;
1033
1035
  const c = [];
1034
- let d = i;
1036
+ let d = a;
1035
1037
  for (let h = n.length - 1; h >= 0 && d !== null; h--)
1036
- c.push(d), d = a[h][d];
1038
+ c.push(d), d = i[h][d];
1037
1039
  c.reverse();
1038
1040
  const m = (e.length - n.length) * cs;
1039
- return { rank: o[i] - m, finds: hs(c) };
1041
+ return { rank: o[a] - m, finds: hs(c) };
1040
1042
  }
1041
1043
  function hs(t) {
1042
1044
  const e = [];
@@ -1051,25 +1053,25 @@ function ms(t, e) {
1051
1053
  if (n === "") return [];
1052
1054
  const r = [];
1053
1055
  for (const o of t) {
1054
- const a = Cn(n, o.name);
1055
- if (a !== null) {
1056
+ const i = Cn(n, o.name);
1057
+ if (i !== null) {
1056
1058
  r.push({
1057
1059
  kandidat: o,
1058
- rank: a.rank + (o.gewicht ?? 0),
1059
- finds: a.finds
1060
+ rank: i.rank + (o.gewicht ?? 0),
1061
+ finds: i.finds
1060
1062
  });
1061
1063
  continue;
1062
1064
  }
1063
- const i = o.gruppe === void 0 ? null : Cn(n, o.gruppe);
1064
- i !== null && r.push({
1065
+ const a = o.gruppe === void 0 ? null : Cn(n, o.gruppe);
1066
+ a !== null && r.push({
1065
1067
  kandidat: o,
1066
- rank: i.rank + (o.gewicht ?? 0),
1068
+ rank: a.rank + (o.gewicht ?? 0),
1067
1069
  finds: []
1068
1070
  });
1069
1071
  }
1070
- return r.sort((o, a) => {
1071
- const i = o.finds.length > 0, c = a.finds.length > 0;
1072
- return i !== c ? i ? -1 : 1 : a.rank - o.rank;
1072
+ return r.sort((o, i) => {
1073
+ const a = o.finds.length > 0, c = i.finds.length > 0;
1074
+ return a !== c ? a ? -1 : 1 : i.rank - o.rank;
1073
1075
  });
1074
1076
  }
1075
1077
  const ps = 150, Rn = /* @__PURE__ */ new WeakMap();
@@ -1124,8 +1126,8 @@ const dh = G(function({
1124
1126
  onClose: n,
1125
1127
  items: r,
1126
1128
  onChoose: o,
1127
- restingItems: a,
1128
- className: i,
1129
+ restingItems: i,
1130
+ className: a,
1129
1131
  onCancel: c,
1130
1132
  onMouseDown: d,
1131
1133
  onKeyDown: m,
@@ -1134,12 +1136,12 @@ const dh = G(function({
1134
1136
  }, f) {
1135
1137
  var ce;
1136
1138
  const u = de(), l = xe(), g = `${l}-list`, { dialogRef: b, beimSchliessen: v, beimAbbrechen: y } = ir(e, 0, n), w = I(null), T = I(null), [j, $] = W(""), [C, P] = W(null), _ = j.trim() !== "", O = fe(() => r.map(Ln), [r]), M = fe(() => ms(O, j), [O, j]), S = fe(
1137
- () => (a ?? []).map((F) => ({
1139
+ () => (i ?? []).map((F) => ({
1138
1140
  kandidat: Ln(F),
1139
1141
  rank: 0,
1140
1142
  finds: []
1141
1143
  })),
1142
- [a]
1144
+ [i]
1143
1145
  ), E = _ ? M : S, U = fe(() => {
1144
1146
  const F = [];
1145
1147
  for (const te of E) {
@@ -1198,12 +1200,12 @@ const dh = G(function({
1198
1200
  }
1199
1201
  F.key === "Escape" && (F.preventDefault(), n());
1200
1202
  }
1201
- }, J = r.some((F) => F.icon !== void 0) || (a ?? []).some((F) => F.icon !== void 0);
1203
+ }, J = r.some((F) => F.icon !== void 0) || (i ?? []).some((F) => F.icon !== void 0);
1202
1204
  return /* @__PURE__ */ s(
1203
1205
  "dialog",
1204
1206
  {
1205
1207
  ref: Qe(b, f),
1206
- className: A(be.dialog, i),
1208
+ className: A(be.dialog, a),
1207
1209
  "aria-label": u.palettePanel,
1208
1210
  ...p,
1209
1211
  onKeyDownCapture: (F) => {
@@ -1300,8 +1302,8 @@ function Ls({
1300
1302
  active: n,
1301
1303
  withIcon: r,
1302
1304
  onSweep: o,
1303
- onMove: a,
1304
- onChoose: i
1305
+ onMove: i,
1306
+ onChoose: a
1305
1307
  }) {
1306
1308
  const { kandidat: c } = t;
1307
1309
  return /* @__PURE__ */ k(
@@ -1312,9 +1314,9 @@ function Ls({
1312
1314
  "aria-selected": n,
1313
1315
  className: A(be.row, n && be.rowActive),
1314
1316
  onPointerEnter: () => o(c.id),
1315
- onPointerMove: () => a(c.id),
1317
+ onPointerMove: () => i(c.id),
1316
1318
  onMouseDown: (d) => {
1317
- d.preventDefault(), d.button === 0 && i(c.id);
1319
+ d.preventDefault(), d.button === 0 && a(c.id);
1318
1320
  },
1319
1321
  children: [
1320
1322
  r && /* @__PURE__ */ s("span", { className: be.icon, "aria-hidden": "true", children: c.icon }),
@@ -1328,9 +1330,9 @@ function Ps(t, e) {
1328
1330
  if (e.length === 0) return t;
1329
1331
  const n = [];
1330
1332
  let r = 0;
1331
- return e.forEach((o, a) => {
1333
+ return e.forEach((o, i) => {
1332
1334
  o.from > r && n.push(t.slice(r, o.from)), n.push(
1333
- /* @__PURE__ */ s("span", { className: be.mark, children: t.slice(o.from, o.to) }, a)
1335
+ /* @__PURE__ */ s("span", { className: be.mark, children: t.slice(o.from, o.to) }, i)
1334
1336
  ), r = o.to;
1335
1337
  }), r < t.length && n.push(t.slice(r)), n;
1336
1338
  }
@@ -1372,8 +1374,8 @@ const Fs = "_wrapper_dhmlf_4 _text_k1tvc_23", Is = "_input_dhmlf_11 _field_k1tvc
1372
1374
  value: n,
1373
1375
  onChange: r,
1374
1376
  placeholder: o,
1375
- disabled: a = !1,
1376
- invalid: i,
1377
+ disabled: i = !1,
1378
+ invalid: a,
1377
1379
  emptyText: c,
1378
1380
  clearable: d = !1,
1379
1381
  className: m,
@@ -1381,7 +1383,7 @@ const Fs = "_wrapper_dhmlf_4 _text_k1tvc_23", Is = "_input_dhmlf_11 _field_k1tvc
1381
1383
  onKeyDownCapture: p,
1382
1384
  ...f
1383
1385
  }, u) {
1384
- const l = Ee(), g = de(), b = o ?? g.comboboxPlaceholder, v = c ?? g.noMatches, y = i ?? (l == null ? void 0 : l.invalid) ?? !1, [w, T] = W(!1), [j, $] = W(null), [C, P] = W(0), _ = I(null), O = I(null), M = xe(), S = fe(() => e.find((z) => z.value === n) ?? null, [e, n]), E = fe(() => zt(e, j ?? ""), [e, j]), U = (z) => lt(z === 0 ? v : g.optionCount(z), _.current), D = () => {
1386
+ const l = Ee(), g = de(), b = o ?? g.comboboxPlaceholder, v = c ?? g.noMatches, y = a ?? (l == null ? void 0 : l.invalid) ?? !1, [w, T] = W(!1), [j, $] = W(null), [C, P] = W(0), _ = I(null), O = I(null), M = xe(), S = fe(() => e.find((z) => z.value === n) ?? null, [e, n]), E = fe(() => zt(e, j ?? ""), [e, j]), U = (z) => lt(z === 0 ? v : g.optionCount(z), _.current), D = () => {
1385
1387
  P(ss(E, n)), T(!0), U(E.length);
1386
1388
  }, R = () => {
1387
1389
  cr(), T(!1), $(null);
@@ -1433,7 +1435,7 @@ const Fs = "_wrapper_dhmlf_4 _text_k1tvc_23", Is = "_input_dhmlf_11 _field_k1tvc
1433
1435
  type: "text",
1434
1436
  role: "combobox",
1435
1437
  id: l == null ? void 0 : l.id,
1436
- disabled: a,
1438
+ disabled: i,
1437
1439
  "aria-expanded": w,
1438
1440
  "aria-controls": w ? M : void 0,
1439
1441
  "aria-autocomplete": "list",
@@ -1457,7 +1459,7 @@ const Fs = "_wrapper_dhmlf_4 _text_k1tvc_23", Is = "_input_dhmlf_11 _field_k1tvc
1457
1459
  }
1458
1460
  }
1459
1461
  ),
1460
- d && !a && (n !== null || (j ?? "") !== "") && /* @__PURE__ */ s(
1462
+ d && !i && (n !== null || (j ?? "") !== "") && /* @__PURE__ */ s(
1461
1463
  "button",
1462
1464
  {
1463
1465
  type: "button",
@@ -1515,9 +1517,9 @@ const Fs = "_wrapper_dhmlf_4 _text_k1tvc_23", Is = "_input_dhmlf_11 _field_k1tvc
1515
1517
  ] });
1516
1518
  });
1517
1519
  function Ks(t, e, n, r) {
1518
- const o = Math.min(...t), i = Math.max(...t) - o || 1, c = Math.max(1, t.length - 1);
1520
+ const o = Math.min(...t), a = Math.max(...t) - o || 1, c = Math.max(1, t.length - 1);
1519
1521
  return t.map((d, m) => {
1520
- const h = r + m / c * (e - r * 2), p = r + (1 - (d - o) / i) * (n - r * 2);
1522
+ const h = r + m / c * (e - r * 2), p = r + (1 - (d - o) / a) * (n - r * 2);
1521
1523
  return [h, p];
1522
1524
  });
1523
1525
  }
@@ -1534,15 +1536,15 @@ const xn = (t) => Math.max(0, Math.min(1, t)), lr = (t) => Math.round(xn(t) * 10
1534
1536
  sparkline: aa,
1535
1537
  sparklineAccent: ia,
1536
1538
  sparklineDot: ca
1537
- }, hh = G(function({ value: e, tone: n = "accent", showLabel: r = !0, label: o, className: a, ...i }, c) {
1539
+ }, hh = G(function({ value: e, tone: n = "accent", showLabel: r = !0, label: o, className: i, ...a }, c) {
1538
1540
  const d = Ge(), m = de(), h = xn(e);
1539
1541
  return /* @__PURE__ */ k(
1540
1542
  "span",
1541
1543
  {
1542
1544
  ref: c,
1543
- "aria-label": i["aria-labelledby"] ? void 0 : o ?? m.fillLevel,
1544
- className: A(ct.meter, a),
1545
- ...i,
1545
+ "aria-label": a["aria-labelledby"] ? void 0 : o ?? m.fillLevel,
1546
+ className: A(ct.meter, i),
1547
+ ...a,
1546
1548
  role: "meter",
1547
1549
  "aria-valuemin": 0,
1548
1550
  "aria-valuemax": 100,
@@ -1553,11 +1555,11 @@ const xn = (t) => Math.max(0, Math.min(1, t)), lr = (t) => Math.round(xn(t) * 10
1553
1555
  ]
1554
1556
  }
1555
1557
  );
1556
- }), la = G(function({ data: e, width: n = 96, height: r = 28, tone: o = "ink", className: a, ...i }, c) {
1558
+ }), la = G(function({ data: e, width: n = 96, height: r = 28, tone: o = "ink", className: i, ...a }, c) {
1557
1559
  const d = xe();
1558
1560
  if (e.length < 2) return null;
1559
1561
  const m = 3, h = Ks(e, n, r, m), p = h.map(([g, b]) => `${g},${b}`).join(" "), f = `M${m},${r - m} L${p.replace(/ /g, " L")} L${n - m},${r - m} Z`, [u, l] = h[h.length - 1] ?? [0, 0];
1560
- return /* @__PURE__ */ s("span", { ref: c, className: A(ct.sparkline, o === "accent" && ct.sparklineAccent, a), ...i, children: /* @__PURE__ */ k("svg", { width: n, height: r, viewBox: `0 0 ${n} ${r}`, "aria-hidden": "true", children: [
1562
+ return /* @__PURE__ */ s("span", { ref: c, className: A(ct.sparkline, o === "accent" && ct.sparklineAccent, i), ...a, children: /* @__PURE__ */ k("svg", { width: n, height: r, viewBox: `0 0 ${n} ${r}`, "aria-hidden": "true", children: [
1561
1563
  /* @__PURE__ */ s("defs", { children: /* @__PURE__ */ k("linearGradient", { id: d, x1: "0", y1: "0", x2: "0", y2: "1", children: [
1562
1564
  /* @__PURE__ */ s("stop", { offset: "0%", stopColor: "currentColor", stopOpacity: "0.14" }),
1563
1565
  /* @__PURE__ */ s("stop", { offset: "100%", stopColor: "currentColor", stopOpacity: "0" })
@@ -1582,7 +1584,7 @@ const xn = (t) => Math.max(0, Math.min(1, t)), lr = (t) => Math.round(xn(t) * 10
1582
1584
  }, qe = (t, e) => !!t && !!e && t.getFullYear() === e.getFullYear() && t.getMonth() === e.getMonth() && t.getDate() === e.getDate(), Ae = (t) => new Date(t.getFullYear(), t.getMonth(), t.getDate()), sn = (t, e) => Ae(t).getTime() < Ae(e).getTime(), ua = 42;
1583
1585
  function fa(t) {
1584
1586
  const e = Pe(t), n = (e.getDay() + 6) % 7, r = kt(e, -n);
1585
- return Array.from({ length: ua }, (o, a) => kt(r, a));
1587
+ return Array.from({ length: ua }, (o, i) => kt(r, i));
1586
1588
  }
1587
1589
  function ha(t, e, n) {
1588
1590
  const r = e ?? n ?? null, o = !e && !!n;
@@ -1658,8 +1660,8 @@ function Gt({
1658
1660
  onView: n,
1659
1661
  active: r,
1660
1662
  onActive: o,
1661
- value: a,
1662
- onPick: i,
1663
+ value: i,
1664
+ onPick: a,
1663
1665
  rangeFrom: c = null,
1664
1666
  rangeTo: d = null,
1665
1667
  previewTo: m = null,
@@ -1686,7 +1688,7 @@ function Gt({
1686
1688
  o(M), _a(M, e) && n(Pe(M));
1687
1689
  return;
1688
1690
  }
1689
- (_.key === "Enter" || _.key === " ") && (_.preventDefault(), i(r));
1691
+ (_.key === "Enter" || _.key === " ") && (_.preventDefault(), a(r));
1690
1692
  }, w = (_) => {
1691
1693
  n(jt(e, _)), o(da(r, _));
1692
1694
  }, T = fa(e), j = l ?? /* @__PURE__ */ new Date(), { from: $, to: C, isPreview: P } = ha(c, d, m);
@@ -1716,12 +1718,12 @@ function Gt({
1716
1718
  tabIndex: M ? 0 : -1,
1717
1719
  "data-active": M || void 0,
1718
1720
  "aria-label": b.dateLong(_),
1719
- "aria-pressed": qe(_, a) || S || E || R,
1721
+ "aria-pressed": qe(_, i) || S || E || R,
1720
1722
  "aria-current": qe(_, j) ? "date" : void 0,
1721
1723
  className: A(
1722
1724
  L.day,
1723
1725
  !O && L.otherMonth,
1724
- qe(_, a) && L.selected,
1726
+ qe(_, i) && L.selected,
1725
1727
  qe(_, j) && L.today,
1726
1728
  D && L.inRange,
1727
1729
  D && P && L.inPreview,
@@ -1730,7 +1732,7 @@ function Gt({
1730
1732
  U && L.rangeSingle,
1731
1733
  E && P && L.previewEnd
1732
1734
  ),
1733
- onClick: () => i(_),
1735
+ onClick: () => a(_),
1734
1736
  onMouseEnter: h ? () => h(_) : void 0,
1735
1737
  children: _.getDate()
1736
1738
  },
@@ -1743,10 +1745,10 @@ function Gt({
1743
1745
  }
1744
1746
  const an = (t) => Ae(t), yi = (t, e) => new Date(t.getFullYear(), t.getMonth(), t.getDate(), 23, 59, e ? 59 : 0), bi = (t, e) => t.getTime() <= e.getTime() ? [t, e] : [e, t], dr = (t, e) => Ae(t).getTime() <= Ae(e).getTime() ? [t, e] : [e, t];
1745
1747
  function ur(t, e, n, r) {
1746
- const [o, a] = dr(t, e);
1748
+ const [o, i] = dr(t, e);
1747
1749
  return {
1748
1750
  from: an(o),
1749
- to: n === "day" ? an(a) : yi(a, r)
1751
+ to: n === "day" ? an(i) : yi(i, r)
1750
1752
  };
1751
1753
  }
1752
1754
  function Xt({
@@ -1755,8 +1757,8 @@ function Xt({
1755
1757
  root: n,
1756
1758
  className: r,
1757
1759
  triggerRef: o,
1758
- panel: a,
1759
- field: i,
1760
+ panel: i,
1761
+ field: a,
1760
1762
  state: c,
1761
1763
  display: d,
1762
1764
  icon: m,
@@ -1772,15 +1774,15 @@ function Xt({
1772
1774
  {
1773
1775
  ref: o,
1774
1776
  type: "button",
1775
- id: i == null ? void 0 : i.id,
1777
+ id: a == null ? void 0 : a.id,
1776
1778
  disabled: l,
1777
1779
  "aria-haspopup": "dialog",
1778
- "aria-expanded": a.open,
1779
- "aria-controls": a.open ? a.id : void 0,
1780
- "aria-describedby": i == null ? void 0 : i.describedBy,
1780
+ "aria-expanded": i.open,
1781
+ "aria-controls": i.open ? i.id : void 0,
1782
+ "aria-describedby": a == null ? void 0 : a.describedBy,
1781
1783
  "aria-invalid": g || void 0,
1782
1784
  className: A(L.trigger, v === "sm" && L.sm, g && L.invalid),
1783
- onClick: a.onToggle,
1785
+ onClick: i.onToggle,
1784
1786
  children: [
1785
1787
  /* @__PURE__ */ s("span", { className: A(L.value, !h && L.placeholder), children: h ? d : p }),
1786
1788
  m
@@ -1806,13 +1808,13 @@ const mh = G(function({
1806
1808
  onChange: n,
1807
1809
  placeholder: r,
1808
1810
  disabled: o = !1,
1809
- invalid: a,
1810
- size: i = "md",
1811
+ invalid: i,
1812
+ size: a = "md",
1811
1813
  clearable: c = !1,
1812
1814
  className: d,
1813
1815
  ...m
1814
1816
  }, h) {
1815
- const p = Ee(), f = de(), u = Ge(), l = r ?? f.datePlaceholder, g = a ?? (p == null ? void 0 : p.invalid) ?? !1, [b, v] = W(!1), [y, w] = W(() => Pe(e ?? /* @__PURE__ */ new Date())), [T, j] = W(() => e ?? /* @__PURE__ */ new Date()), $ = I(null), C = I(null), P = I(null), _ = xe(), O = () => {
1817
+ const p = Ee(), f = de(), u = Ge(), l = r ?? f.datePlaceholder, g = i ?? (p == null ? void 0 : p.invalid) ?? !1, [b, v] = W(!1), [y, w] = W(() => Pe(e ?? /* @__PURE__ */ new Date())), [T, j] = W(() => e ?? /* @__PURE__ */ new Date()), $ = I(null), C = I(null), P = I(null), _ = xe(), O = () => {
1816
1818
  const E = e ?? /* @__PURE__ */ new Date();
1817
1819
  w(Pe(E)), j(E), v(!0);
1818
1820
  }, M = (E = !0) => {
@@ -1832,7 +1834,7 @@ const mh = G(function({
1832
1834
  triggerRef: $,
1833
1835
  panel: { id: _, open: b, onToggle: () => b ? v(!1) : O() },
1834
1836
  field: p,
1835
- state: { disabled: o, invalid: g, clearable: c, size: i },
1837
+ state: { disabled: o, invalid: g, clearable: c, size: a },
1836
1838
  hasValue: !!e,
1837
1839
  display: e && u.date(e),
1838
1840
  icon: /* @__PURE__ */ s(Jn, { className: L.icon }),
@@ -1880,15 +1882,15 @@ const mh = G(function({
1880
1882
  )
1881
1883
  ] });
1882
1884
  }), Zt = (t, e, n, r) => t.getHours() === e && t.getMinutes() === n && t.getSeconds() === r;
1883
- function $n(t, e, n, r, o, a) {
1884
- const i = new Date(t, e, n, r, o, a);
1885
- if (!Zt(i, r, o, a))
1886
- return { kind: "missing", date: i };
1887
- const c = 36e5, d = new Date(i.getTime() - c);
1888
- if (Zt(d, r, o, a))
1889
- return { kind: "ambiguous", earlier: d, later: i };
1890
- const m = new Date(i.getTime() + c);
1891
- return Zt(m, r, o, a) ? { kind: "ambiguous", earlier: i, later: m } : { kind: "ok", date: i };
1885
+ function $n(t, e, n, r, o, i) {
1886
+ const a = new Date(t, e, n, r, o, i);
1887
+ if (!Zt(a, r, o, i))
1888
+ return { kind: "missing", date: a };
1889
+ const c = 36e5, d = new Date(a.getTime() - c);
1890
+ if (Zt(d, r, o, i))
1891
+ return { kind: "ambiguous", earlier: d, later: a };
1892
+ const m = new Date(a.getTime() + c);
1893
+ return Zt(m, r, o, i) ? { kind: "ambiguous", earlier: a, later: m } : { kind: "ok", date: a };
1892
1894
  }
1893
1895
  function cn(t) {
1894
1896
  const e = $n(
@@ -1906,7 +1908,7 @@ function wi(t, e) {
1906
1908
  return new Date(Math.floor(t.getTime() / n) * n);
1907
1909
  }
1908
1910
  const dt = (t) => String(t).padStart(2, "0");
1909
- function Mt({ value: t, onValue: e, max: n, label: r, next: o, own: a, disabled: i = !1 }) {
1911
+ function Mt({ value: t, onValue: e, max: n, label: r, next: o, own: i, disabled: a = !1 }) {
1910
1912
  const c = de(), d = I(t);
1911
1913
  d.current = t;
1912
1914
  const m = (l) => {
@@ -1918,7 +1920,7 @@ function Mt({ value: t, onValue: e, max: n, label: r, next: o, own: a, disabled:
1918
1920
  se(() => p, []);
1919
1921
  const f = (l) => {
1920
1922
  var b;
1921
- m(l), (b = a == null ? void 0 : a.current) == null || b.focus();
1923
+ m(l), (b = i == null ? void 0 : i.current) == null || b.focus();
1922
1924
  const g = (v) => {
1923
1925
  h.current = setTimeout(() => {
1924
1926
  m(l), g(Math.max(60, v * 0.9));
@@ -1928,16 +1930,16 @@ function Mt({ value: t, onValue: e, max: n, label: r, next: o, own: a, disabled:
1928
1930
  }, u = (l) => {
1929
1931
  l.key !== "ArrowUp" && l.key !== "ArrowDown" || (l.preventDefault(), m(l.key === "ArrowUp" ? 1 : -1));
1930
1932
  };
1931
- return /* @__PURE__ */ k("span", { className: A(L.timeFieldWrap, i && L.timeFieldDisabled), children: [
1933
+ return /* @__PURE__ */ k("span", { className: A(L.timeFieldWrap, a && L.timeFieldDisabled), children: [
1932
1934
  /* @__PURE__ */ s(
1933
1935
  "input",
1934
1936
  {
1935
- ref: a,
1937
+ ref: i,
1936
1938
  type: "text",
1937
1939
  inputMode: "numeric",
1938
1940
  maxLength: 2,
1939
1941
  "aria-label": r,
1940
- disabled: i,
1942
+ disabled: a,
1941
1943
  className: L.timeField,
1942
1944
  value: t,
1943
1945
  onChange: (l) => {
@@ -1962,9 +1964,9 @@ function Mt({ value: t, onValue: e, max: n, label: r, next: o, own: a, disabled:
1962
1964
  type: "button",
1963
1965
  tabIndex: -1,
1964
1966
  "aria-label": c.timeFieldIncrease(r),
1965
- disabled: i,
1967
+ disabled: a,
1966
1968
  onPointerDown: (l) => {
1967
- l.preventDefault(), !(l.button !== 0 || i) && f(1);
1969
+ l.preventDefault(), !(l.button !== 0 || a) && f(1);
1968
1970
  },
1969
1971
  onPointerUp: p,
1970
1972
  onPointerLeave: p,
@@ -1979,9 +1981,9 @@ function Mt({ value: t, onValue: e, max: n, label: r, next: o, own: a, disabled:
1979
1981
  type: "button",
1980
1982
  tabIndex: -1,
1981
1983
  "aria-label": c.timeFieldDecrease(r),
1982
- disabled: i,
1984
+ disabled: a,
1983
1985
  onPointerDown: (l) => {
1984
- l.preventDefault(), !(l.button !== 0 || i) && f(-1);
1986
+ l.preventDefault(), !(l.button !== 0 || a) && f(-1);
1985
1987
  },
1986
1988
  onPointerUp: p,
1987
1989
  onPointerLeave: p,
@@ -1998,8 +2000,8 @@ const ph = G(function({
1998
2000
  onChange: n,
1999
2001
  withSeconds: r = !1,
2000
2002
  placeholder: o,
2001
- disabled: a = !1,
2002
- size: i = "md",
2003
+ disabled: i = !1,
2004
+ size: a = "md",
2003
2005
  invalid: c,
2004
2006
  clearable: d = !1,
2005
2007
  className: m,
@@ -2034,7 +2036,7 @@ const ph = G(function({
2034
2036
  triggerRef: B,
2035
2037
  panel: { id: he, open: v, onToggle: () => v ? y(!1) : pe() },
2036
2038
  field: f,
2037
- state: { disabled: a, invalid: b, clearable: d, size: i },
2039
+ state: { disabled: i, invalid: b, clearable: d, size: a },
2038
2040
  hasValue: !!e,
2039
2041
  display: e && l.dateTime(e, r),
2040
2042
  icon: /* @__PURE__ */ s(er, { className: L.icon }),
@@ -2176,15 +2178,15 @@ function $i(t, e) {
2176
2178
  return o === n || o === r ? null : o < n ? Pe(e) : jt(Pe(e), -1);
2177
2179
  }
2178
2180
  function Si(t) {
2179
- const { active: e, onActive: n, onPick: r, bandFrom: o, bandTo: a, previewTo: i, onHoverDay: c } = t;
2181
+ const { active: e, onActive: n, onPick: r, bandFrom: o, bandTo: i, previewTo: a, onHoverDay: c } = t;
2180
2182
  return {
2181
2183
  active: e,
2182
2184
  onActive: n,
2183
2185
  value: null,
2184
2186
  onPick: r,
2185
2187
  rangeFrom: o,
2186
- rangeTo: a,
2187
- previewTo: i,
2188
+ rangeTo: i,
2189
+ previewTo: a,
2188
2190
  onHoverDay: c,
2189
2191
  withoutOtherMonth: !0
2190
2192
  };
@@ -2203,13 +2205,13 @@ function fr({ presets: t, isActive: e, onChoose: n }) {
2203
2205
  )) });
2204
2206
  }
2205
2207
  function hr({ view: t, onView: e, ...n }) {
2206
- const r = Si(n), o = jt(t, 1), a = (i) => {
2207
- const c = $i(t, i);
2208
+ const r = Si(n), o = jt(t, 1), i = (a) => {
2209
+ const c = $i(t, a);
2208
2210
  c && e(c);
2209
2211
  };
2210
2212
  return /* @__PURE__ */ k("div", { className: L.monthPair, children: [
2211
- /* @__PURE__ */ s("div", { className: L.monthColumn, children: /* @__PURE__ */ s(Gt, { autoFocus: !0, view: t, onView: a, withoutNext: !0, ...r }) }),
2212
- /* @__PURE__ */ s("div", { className: L.monthColumn, children: /* @__PURE__ */ s(Gt, { view: o, onView: a, withoutPrevious: !0, ...r }) })
2213
+ /* @__PURE__ */ s("div", { className: L.monthColumn, children: /* @__PURE__ */ s(Gt, { autoFocus: !0, view: t, onView: i, withoutNext: !0, ...r }) }),
2214
+ /* @__PURE__ */ s("div", { className: L.monthColumn, children: /* @__PURE__ */ s(Gt, { view: o, onView: i, withoutPrevious: !0, ...r }) })
2213
2215
  ] });
2214
2216
  }
2215
2217
  const gh = G(function({
@@ -2217,14 +2219,14 @@ const gh = G(function({
2217
2219
  onChange: n,
2218
2220
  placeholder: r,
2219
2221
  disabled: o = !1,
2220
- invalid: a,
2221
- size: i = "md",
2222
+ invalid: i,
2223
+ size: a = "md",
2222
2224
  clearable: c = !1,
2223
2225
  presets: d,
2224
2226
  className: m,
2225
2227
  ...h
2226
2228
  }, p) {
2227
- const f = Ee(), u = de(), l = Ge(), g = r ?? u.dateRangePlaceholder, b = a ?? (f == null ? void 0 : f.invalid) ?? !1, v = fe(() => d ?? Sn(u), [d, u]), [y, w] = W(!1), [T, j] = W(() => Pe((e == null ? void 0 : e.from) ?? /* @__PURE__ */ new Date())), [$, C] = W(() => (e == null ? void 0 : e.from) ?? /* @__PURE__ */ new Date()), [P, _] = W(null), [O, M] = W(null), S = I(null), E = I(null), U = I(null), D = xe(), R = () => {
2229
+ const f = Ee(), u = de(), l = Ge(), g = r ?? u.dateRangePlaceholder, b = i ?? (f == null ? void 0 : f.invalid) ?? !1, v = fe(() => d ?? Sn(u), [d, u]), [y, w] = W(!1), [T, j] = W(() => Pe((e == null ? void 0 : e.from) ?? /* @__PURE__ */ new Date())), [$, C] = W(() => (e == null ? void 0 : e.from) ?? /* @__PURE__ */ new Date()), [P, _] = W(null), [O, M] = W(null), S = I(null), E = I(null), U = I(null), D = xe(), R = () => {
2228
2230
  const K = (e == null ? void 0 : e.from) ?? /* @__PURE__ */ new Date();
2229
2231
  j(Pe(K)), C(K), _(null), M(null), w(!0);
2230
2232
  }, B = (K = !0) => {
@@ -2272,7 +2274,7 @@ const gh = G(function({
2272
2274
  triggerRef: S,
2273
2275
  panel: { id: D, open: y, onToggle: () => y ? w(!1) : R() },
2274
2276
  field: f,
2275
- state: { disabled: o, invalid: b, clearable: c, size: i },
2277
+ state: { disabled: o, invalid: b, clearable: c, size: a },
2276
2278
  hasValue: !!e,
2277
2279
  display: e && /* @__PURE__ */ k(Me, { children: [
2278
2280
  l.date(e.from),
@@ -2358,15 +2360,15 @@ const gh = G(function({
2358
2360
  onChange: n,
2359
2361
  withSeconds: r = !1,
2360
2362
  placeholder: o,
2361
- disabled: a = !1,
2362
- invalid: i,
2363
+ disabled: i = !1,
2364
+ invalid: a,
2363
2365
  size: c = "md",
2364
2366
  clearable: d = !1,
2365
2367
  presets: m,
2366
2368
  className: h,
2367
2369
  ...p
2368
2370
  }, f) {
2369
- const u = Ee(), l = de(), g = Ge(), b = o ?? l.dateRangePlaceholder, v = i ?? (u == null ? void 0 : u.invalid) ?? !1, y = fe(() => m ?? Sn(l), [m, l]), [w, T] = W(!1), [j, $] = W(() => Pe((e == null ? void 0 : e.from) ?? /* @__PURE__ */ new Date())), [C, P] = W(() => (e == null ? void 0 : e.from) ?? /* @__PURE__ */ new Date()), [_, O] = W(null), [M, S] = W(null), [E, U] = W(null), [D, R] = W(Jt), [B, Y] = W(() => en(r)), [ae, z] = W(!0), [X, oe] = W("earlier"), [he, pe] = W("earlier"), K = I(null), Z = I(null), J = I(null), ce = I(null), F = I(null), te = I(null), x = I(null), q = I(null), H = I(null), V = I(null), le = xe(), _e = () => {
2371
+ const u = Ee(), l = de(), g = Ge(), b = o ?? l.dateRangePlaceholder, v = a ?? (u == null ? void 0 : u.invalid) ?? !1, y = fe(() => m ?? Sn(l), [m, l]), [w, T] = W(!1), [j, $] = W(() => Pe((e == null ? void 0 : e.from) ?? /* @__PURE__ */ new Date())), [C, P] = W(() => (e == null ? void 0 : e.from) ?? /* @__PURE__ */ new Date()), [_, O] = W(null), [M, S] = W(null), [E, U] = W(null), [D, R] = W(Jt), [B, Y] = W(() => en(r)), [ae, z] = W(!0), [X, oe] = W("earlier"), [he, pe] = W("earlier"), K = I(null), Z = I(null), J = I(null), ce = I(null), F = I(null), te = I(null), x = I(null), q = I(null), H = I(null), V = I(null), le = xe(), _e = () => {
2370
2372
  const ee = (e == null ? void 0 : e.from) ?? /* @__PURE__ */ new Date();
2371
2373
  $(Pe(ee)), P(ee), O(e ? Ae(e.from) : null), S(e ? Ae(e.to) : null), R(e ? Pn(e.from, r) : Jt), Y(e ? Pn(e.to, r) : en(r)), z(e ? Ti(e.from, e.to, r) : !0), oe(e ? cn(e.from) : "earlier"), pe(e ? cn(e.to) : "earlier"), U(null), T(!0);
2372
2374
  }, ve = (ee = !0) => {
@@ -2488,7 +2490,7 @@ const gh = G(function({
2488
2490
  triggerRef: K,
2489
2491
  panel: { id: le, open: w, onToggle: () => w ? T(!1) : _e() },
2490
2492
  field: u,
2491
- state: { disabled: a, invalid: v, clearable: d, size: c },
2493
+ state: { disabled: i, invalid: v, clearable: d, size: c },
2492
2494
  hasValue: !!e,
2493
2495
  display: e && (qe(e.from, e.to) ? /* @__PURE__ */ k(Me, { children: [
2494
2496
  g.date(e.from),
@@ -2616,7 +2618,7 @@ const gh = G(function({
2616
2618
  vertical: Ci,
2617
2619
  withLabel: Ri,
2618
2620
  label: Li
2619
- }, yh = G(function({ orientation: e = "horizontal", strong: n = !1, label: r, className: o, ...a }, i) {
2621
+ }, yh = G(function({ orientation: e = "horizontal", strong: n = !1, label: r, className: o, ...i }, a) {
2620
2622
  const c = A(
2621
2623
  St.divider,
2622
2624
  e === "vertical" ? St.vertical : St.horizontal,
@@ -2627,15 +2629,15 @@ const gh = G(function({
2627
2629
  /* Without a label the line carries no statement: then it is decorative
2628
2630
  and *not* a separator. To claim both at once - `role="separator"` and
2629
2631
  `aria-hidden` - contradicts itself. */
2630
- /* @__PURE__ */ s("div", { ref: i, "aria-hidden": "true", className: c, ...a })
2632
+ /* @__PURE__ */ s("div", { ref: a, "aria-hidden": "true", className: c, ...i })
2631
2633
  ) : /* @__PURE__ */ s(
2632
2634
  "div",
2633
2635
  {
2634
- ref: i,
2636
+ ref: a,
2635
2637
  role: "separator",
2636
2638
  "aria-orientation": e,
2637
2639
  className: A(c, St.withLabel),
2638
- ...a,
2640
+ ...i,
2639
2641
  children: /* @__PURE__ */ s("span", { className: St.label, children: r })
2640
2642
  }
2641
2643
  );
@@ -2645,8 +2647,8 @@ const gh = G(function({
2645
2647
  title: Fi,
2646
2648
  description: Ii,
2647
2649
  action: Bi
2648
- }, bh = G(function({ title: e, description: n, action: r, icon: o, className: a, ...i }, c) {
2649
- return /* @__PURE__ */ k("div", { ref: c, className: A(Pt.empty, a), ...i, children: [
2650
+ }, bh = G(function({ title: e, description: n, action: r, icon: o, className: i, ...a }, c) {
2651
+ return /* @__PURE__ */ k("div", { ref: c, className: A(Pt.empty, i), ...a, children: [
2650
2652
  o && /* @__PURE__ */ s("div", { className: Pt.icon, children: o }),
2651
2653
  /* @__PURE__ */ s("p", { className: Pt.title, children: e }),
2652
2654
  n && /* @__PURE__ */ s("p", { className: Pt.description, children: n }),
@@ -2663,7 +2665,7 @@ const gh = G(function({
2663
2665
  wrapperDisabled: Ui,
2664
2666
  inner: Vi,
2665
2667
  clear: Yi
2666
- }, mr = G(function({ size: e = "md", invalid: n, numeric: r = !1, clearable: o = !1, onClear: a, className: i, id: c, disabled: d, ...m }, h) {
2668
+ }, mr = G(function({ size: e = "md", invalid: n, numeric: r = !1, clearable: o = !1, onClear: i, className: a, id: c, disabled: d, ...m }, h) {
2667
2669
  const p = Ee(), f = de(), u = n ?? (p == null ? void 0 : p.invalid) ?? !1, l = (b) => /* @__PURE__ */ s(
2668
2670
  "input",
2669
2671
  {
@@ -2684,7 +2686,7 @@ const gh = G(function({
2684
2686
  e === "sm" && Ye.sm,
2685
2687
  r && Ye.numeric,
2686
2688
  u && Ye.invalid,
2687
- i
2689
+ a
2688
2690
  )
2689
2691
  );
2690
2692
  const g = String(m.value ?? "").length > 0;
@@ -2696,7 +2698,7 @@ const gh = G(function({
2696
2698
  e === "sm" && Ye.wrapperSm,
2697
2699
  u && Ye.wrapperInvalid,
2698
2700
  d && Ye.wrapperDisabled,
2699
- i
2701
+ a
2700
2702
  ),
2701
2703
  children: [
2702
2704
  l(A(Ye.inner, r && Ye.numeric)),
@@ -2708,7 +2710,7 @@ const gh = G(function({
2708
2710
  "aria-label": f.clearInput,
2709
2711
  className: Ye.clear,
2710
2712
  onMouseDown: (b) => b.preventDefault(),
2711
- onClick: () => a == null ? void 0 : a(),
2713
+ onClick: () => i == null ? void 0 : i(),
2712
2714
  children: /* @__PURE__ */ s(Ke, {})
2713
2715
  }
2714
2716
  )
@@ -2718,25 +2720,25 @@ const gh = G(function({
2718
2720
  }), Xi = "_stack_9r3lk_4", Ki = "_grid_9r3lk_9", pr = {
2719
2721
  stack: Xi,
2720
2722
  grid: Ki
2721
- }, _r = (t) => `var(--u-space-${t})`, wh = G(function({ direction: e = "column", gap: n = 3, align: r, justify: o, wrap: a = !1, className: i, style: c, children: d, ...m }, h) {
2723
+ }, _r = (t) => `var(--u-space-${t})`, wh = G(function({ direction: e = "column", gap: n = 3, align: r, justify: o, wrap: i = !1, className: a, style: c, children: d, ...m }, h) {
2722
2724
  return /* @__PURE__ */ s(
2723
2725
  "div",
2724
2726
  {
2725
2727
  ref: h,
2726
- className: A(pr.stack, i),
2728
+ className: A(pr.stack, a),
2727
2729
  style: {
2728
2730
  flexDirection: e,
2729
2731
  gap: _r(n),
2730
2732
  alignItems: r,
2731
2733
  justifyContent: o,
2732
- flexWrap: a ? "wrap" : void 0,
2734
+ flexWrap: i ? "wrap" : void 0,
2733
2735
  ...c
2734
2736
  },
2735
2737
  ...m,
2736
2738
  children: d
2737
2739
  }
2738
2740
  );
2739
- }), kh = G(function({ columns: e = 2, minItemWidth: n, gap: r = 4, className: o, style: a, children: i, ...c }, d) {
2741
+ }), kh = G(function({ columns: e = 2, minItemWidth: n, gap: r = 4, className: o, style: i, children: a, ...c }, d) {
2740
2742
  return /* @__PURE__ */ s(
2741
2743
  "div",
2742
2744
  {
@@ -2745,10 +2747,10 @@ const gh = G(function({
2745
2747
  style: {
2746
2748
  gridTemplateColumns: n ? `repeat(auto-fit, minmax(min(${n}, 100%), 1fr))` : `repeat(${e}, minmax(0, 1fr))`,
2747
2749
  gap: _r(r),
2748
- ...a
2750
+ ...i
2749
2751
  },
2750
2752
  ...c,
2751
- children: i
2753
+ children: a
2752
2754
  }
2753
2755
  );
2754
2756
  });
@@ -2760,12 +2762,12 @@ function Qi(t, e = Yn) {
2760
2762
  }
2761
2763
  function In(t, e = {}) {
2762
2764
  const { min: n, max: r, decimals: o } = e;
2763
- let a = t;
2764
- if (n !== void 0 && (a = Math.max(n, a)), r !== void 0 && (a = Math.min(r, a)), o !== void 0) {
2765
- const i = 10 ** o;
2766
- a = Math.round(a * i) / i;
2765
+ let i = t;
2766
+ if (n !== void 0 && (i = Math.max(n, i)), r !== void 0 && (i = Math.min(r, i)), o !== void 0) {
2767
+ const a = 10 ** o;
2768
+ i = Math.round(i * a) / a;
2767
2769
  }
2768
- return a;
2770
+ return i;
2769
2771
  }
2770
2772
  const Zi = (t) => t === void 0 || t < 0, gr = (t) => t !== 0;
2771
2773
  function Ji(t, e = {}, n = Yn) {
@@ -2788,8 +2790,8 @@ const tc = "_wrapper_1at8j_4 _text_k1tvc_23", nc = "_sm_1at8j_28", rc = "_invali
2788
2790
  onChange: n,
2789
2791
  min: r,
2790
2792
  max: o,
2791
- step: a = 1,
2792
- decimals: i,
2793
+ step: i = 1,
2794
+ decimals: a,
2793
2795
  prefix: c,
2794
2796
  suffix: d,
2795
2797
  size: m = "md",
@@ -2802,10 +2804,10 @@ const tc = "_wrapper_1at8j_4 _text_k1tvc_23", nc = "_sm_1at8j_28", rc = "_invali
2802
2804
  onKeyDown: b,
2803
2805
  ...v
2804
2806
  }, y) {
2805
- const w = Ee(), T = de(), j = Ge(), $ = (J) => j.number(J, i), C = fe(() => Lr(j), [j]), P = (J) => Qi(J, C), _ = h ?? (w == null ? void 0 : w.invalid) ?? !1, O = fe(() => ({ min: r, max: o, decimals: i }), [r, o, i]), [M, S] = W(() => e === null ? "" : $(e)), [E, U] = W(!1);
2807
+ const w = Ee(), T = de(), j = Ge(), $ = (J) => j.number(J, a), C = fe(() => Lr(j), [j]), P = (J) => Qi(J, C), _ = h ?? (w == null ? void 0 : w.invalid) ?? !1, O = fe(() => ({ min: r, max: o, decimals: a }), [r, o, a]), [M, S] = W(() => e === null ? "" : $(e)), [E, U] = W(!1);
2806
2808
  se(() => {
2807
2809
  E || S(e === null ? "" : $(e));
2808
- }, [e, E, i, j]);
2810
+ }, [e, E, a, j]);
2809
2811
  const D = (J) => {
2810
2812
  if (J === null) {
2811
2813
  S(""), n(null);
@@ -2819,7 +2821,7 @@ const tc = "_wrapper_1at8j_4 _text_k1tvc_23", nc = "_sm_1at8j_28", rc = "_invali
2819
2821
  B.current = e;
2820
2822
  const Y = (J, ce = 1) => {
2821
2823
  const F = P(R.current) ?? B.current ?? 0;
2822
- D(ec(F, J, a, ce));
2824
+ D(ec(F, J, i, ce));
2823
2825
  }, ae = (J) => {
2824
2826
  b == null || b(J), !J.defaultPrevented && (J.key !== "ArrowUp" && J.key !== "ArrowDown" || (J.preventDefault(), Y(J.key === "ArrowUp" ? 1 : -1, J.shiftKey ? 10 : 1)));
2825
2827
  }, z = I(null), X = () => {
@@ -2868,7 +2870,7 @@ const tc = "_wrapper_1at8j_4 _text_k1tvc_23", nc = "_sm_1at8j_28", rc = "_invali
2868
2870
  {
2869
2871
  ref: y,
2870
2872
  type: "text",
2871
- inputMode: gr(i) ? "decimal" : "numeric",
2873
+ inputMode: gr(a) ? "decimal" : "numeric",
2872
2874
  id: u ?? (w == null ? void 0 : w.id),
2873
2875
  disabled: p,
2874
2876
  "aria-describedby": v["aria-describedby"] ?? (w == null ? void 0 : w.describedBy),
@@ -2950,8 +2952,8 @@ const tc = "_wrapper_1at8j_4 _text_k1tvc_23", nc = "_sm_1at8j_28", rc = "_invali
2950
2952
  onClose: n,
2951
2953
  closeOnBackdrop: r = !0,
2952
2954
  sheetClassName: o,
2953
- spacers: a = !1,
2954
- side: i,
2955
+ spacers: i = !1,
2956
+ side: a,
2955
2957
  className: c,
2956
2958
  children: d,
2957
2959
  onCancel: m,
@@ -2968,7 +2970,7 @@ const tc = "_wrapper_1at8j_4 _text_k1tvc_23", nc = "_sm_1at8j_28", rc = "_invali
2968
2970
  className: A(Oe.dialog, c),
2969
2971
  "aria-labelledby": l,
2970
2972
  ...p,
2971
- "data-side": i,
2973
+ "data-side": a,
2972
2974
  "data-closing": b || void 0,
2973
2975
  onClose: v,
2974
2976
  onCancel: (T) => {
@@ -2976,15 +2978,15 @@ const tc = "_wrapper_1at8j_4 _text_k1tvc_23", nc = "_sm_1at8j_28", rc = "_invali
2976
2978
  },
2977
2979
  onMouseDown: w,
2978
2980
  children: [
2979
- a && /* @__PURE__ */ s("div", { className: Oe.spacerTop, "aria-hidden": "true" }),
2981
+ i && /* @__PURE__ */ s("div", { className: Oe.spacerTop, "aria-hidden": "true" }),
2980
2982
  /* @__PURE__ */ s("div", { ref: u, className: o, children: /* @__PURE__ */ s(vr.Provider, { value: { onClose: n, titleId: l }, children: d }) }),
2981
- a && /* @__PURE__ */ s("div", { className: Oe.spacerBottom, "aria-hidden": "true" })
2983
+ i && /* @__PURE__ */ s("div", { className: Oe.spacerBottom, "aria-hidden": "true" })
2982
2984
  ]
2983
2985
  }
2984
2986
  );
2985
- }), Cc = G(function({ title: e, description: n, hideClose: r = !1, className: o, ...a }, i) {
2987
+ }), Cc = G(function({ title: e, description: n, hideClose: r = !1, className: o, ...i }, a) {
2986
2988
  const c = je(vr), d = de();
2987
- return /* @__PURE__ */ k("div", { ref: i, className: A(Oe.header, o), ...a, children: [
2989
+ return /* @__PURE__ */ k("div", { ref: a, className: A(Oe.header, o), ...i, children: [
2988
2990
  /* @__PURE__ */ k("div", { className: Oe.headerText, children: [
2989
2991
  /* @__PURE__ */ s("h2", { id: c == null ? void 0 : c.titleId, className: Oe.title, children: e }),
2990
2992
  n && /* @__PURE__ */ s("p", { className: Oe.description, children: n })
@@ -3009,8 +3011,8 @@ const tc = "_wrapper_1at8j_4 _text_k1tvc_23", nc = "_sm_1at8j_28", rc = "_invali
3009
3011
  onClose: n,
3010
3012
  onConfirm: r,
3011
3013
  title: o,
3012
- description: a,
3013
- confirmLabel: i,
3014
+ description: i,
3015
+ confirmLabel: a,
3014
3016
  cancelLabel: c,
3015
3017
  tone: d = "primary",
3016
3018
  loading: m = !1,
@@ -3018,10 +3020,10 @@ const tc = "_wrapper_1at8j_4 _text_k1tvc_23", nc = "_sm_1at8j_28", rc = "_invali
3018
3020
  }, p) {
3019
3021
  const f = de();
3020
3022
  return /* @__PURE__ */ k(Mc, { ref: p, ...h, open: e, onClose: n, size: "sm", closeOnBackdrop: !m, children: [
3021
- /* @__PURE__ */ s(Cc, { title: o, description: a, hideClose: !0 }),
3023
+ /* @__PURE__ */ s(Cc, { title: o, description: i, hideClose: !0 }),
3022
3024
  /* @__PURE__ */ k(Rc, { children: [
3023
3025
  /* @__PURE__ */ s(ke, { onClick: n, disabled: m, children: c ?? f.cancel }),
3024
- /* @__PURE__ */ s(ke, { variant: d, loading: m, onClick: r, children: i ?? f.confirm })
3026
+ /* @__PURE__ */ s(ke, { variant: d, loading: m, onClick: r, children: a ?? f.confirm })
3025
3027
  ] })
3026
3028
  ] });
3027
3029
  }), Lc = "_field_i14yy_8 _text_k1tvc_23", Pc = "_invalid_i14yy_35", Ec = "_fieldDisabled_i14yy_26", Fc = "_placeholder_i14yy_50", Ic = "_summary_i14yy_59", Bc = "_measure_i14yy_72", Oc = "_chipLabel_i14yy_83", Hc = "_chip_i14yy_83 _ring_k1tvc_69", qc = "_chipX_i14yy_136", Wc = "_counter_i14yy_156 _ring_k1tvc_69", zc = "_main_i14yy_186", jc = "_mainEmpty_i14yy_211", Gc = "_chevron_i14yy_217", Uc = "_panel_i14yy_226", Vc = "_scopes_i14yy_236", Yc = "_scope_i14yy_236 _ring_k1tvc_69", Xc = "_scopeActive_i14yy_269", Kc = "_qol_i14yy_276", Qc = "_qolButtons_i14yy_286", Zc = "_count_i14yy_156", Jc = "_list_i14yy_301 _scroll_k1tvc_40", el = "_option_i14yy_313", tl = "_empty_i14yy_328", ue = {
@@ -3053,8 +3055,8 @@ const tc = "_wrapper_1at8j_4 _text_k1tvc_23", nc = "_sm_1at8j_28", rc = "_invali
3053
3055
  value: n,
3054
3056
  onChange: r,
3055
3057
  placeholder: o,
3056
- searchPlaceholder: a,
3057
- emptyText: i,
3058
+ searchPlaceholder: i,
3059
+ emptyText: a,
3058
3060
  disabled: c = !1,
3059
3061
  invalid: d,
3060
3062
  className: m,
@@ -3062,7 +3064,7 @@ const tc = "_wrapper_1at8j_4 _text_k1tvc_23", nc = "_sm_1at8j_28", rc = "_invali
3062
3064
  onKeyDown: p,
3063
3065
  ...f
3064
3066
  }, u) {
3065
- const l = Ee(), g = de(), b = o ?? g.multiSelectPlaceholder, v = a ?? g.multiSelectSearchPlaceholder, y = i ?? g.noMatches, w = d ?? (l == null ? void 0 : l.invalid) ?? !1, [T, j] = W(!1), [$, C] = W(""), [P, _] = W("all"), [O, M] = W(/* @__PURE__ */ new Set()), S = I(null), E = I(null), U = I(null), D = I(null), R = xe(), B = (N) => {
3067
+ const l = Ee(), g = de(), b = o ?? g.multiSelectPlaceholder, v = i ?? g.multiSelectSearchPlaceholder, y = a ?? g.noMatches, w = d ?? (l == null ? void 0 : l.invalid) ?? !1, [T, j] = W(!1), [$, C] = W(""), [P, _] = W("all"), [O, M] = W(/* @__PURE__ */ new Set()), S = I(null), E = I(null), U = I(null), D = I(null), R = xe(), B = (N) => {
3066
3068
  var Q;
3067
3069
  return ((Q = e.find((ie) => ie.value === N)) == null ? void 0 : Q.label) ?? N;
3068
3070
  }, Y = (N, Q, ie) => {
@@ -3358,8 +3360,8 @@ const tc = "_wrapper_1at8j_4 _text_k1tvc_23", nc = "_sm_1at8j_28", rc = "_invali
3358
3360
  value: n,
3359
3361
  defaultValue: r,
3360
3362
  onChange: o,
3361
- orientation: a = "vertical",
3362
- size: i = "md",
3363
+ orientation: i = "vertical",
3364
+ size: a = "md",
3363
3365
  disabled: c = !1,
3364
3366
  name: d,
3365
3367
  className: m,
@@ -3389,14 +3391,14 @@ const tc = "_wrapper_1at8j_4 _text_k1tvc_23", nc = "_sm_1at8j_28", rc = "_invali
3389
3391
  ref: Qe(b, f),
3390
3392
  id: u == null ? void 0 : u.id,
3391
3393
  role: "radiogroup",
3392
- "aria-orientation": a,
3394
+ "aria-orientation": i,
3393
3395
  "aria-describedby": p["aria-describedby"] ?? (u == null ? void 0 : u.describedBy),
3394
3396
  "aria-required": (u == null ? void 0 : u.required) || void 0,
3395
3397
  "aria-invalid": (u == null ? void 0 : u.invalid) || void 0,
3396
3398
  className: A(
3397
3399
  et.group,
3398
- a === "horizontal" && et.horizontal,
3399
- i === "sm" && et.sm,
3400
+ i === "horizontal" && et.horizontal,
3401
+ a === "sm" && et.sm,
3400
3402
  m
3401
3403
  ),
3402
3404
  ...p,
@@ -3443,14 +3445,14 @@ const tc = "_wrapper_1at8j_4 _text_k1tvc_23", nc = "_sm_1at8j_28", rc = "_invali
3443
3445
  chevron: _l,
3444
3446
  selectClearable: gl,
3445
3447
  clear: vl
3446
- }, Ah = G(function({ selectSize: e = "md", invalid: n, clearable: r = !1, onClear: o, className: a, id: i, children: c, disabled: d, ...m }, h) {
3448
+ }, Ah = G(function({ selectSize: e = "md", invalid: n, clearable: r = !1, onClear: o, className: i, id: a, children: c, disabled: d, ...m }, h) {
3447
3449
  const p = Ee(), f = de(), u = n ?? (p == null ? void 0 : p.invalid) ?? !1, l = r && !m.multiple && String(m.value ?? "") !== "";
3448
- return /* @__PURE__ */ k("span", { className: A(pt.wrapper, a), children: [
3450
+ return /* @__PURE__ */ k("span", { className: A(pt.wrapper, i), children: [
3449
3451
  /* @__PURE__ */ s(
3450
3452
  "select",
3451
3453
  {
3452
3454
  ref: h,
3453
- id: i ?? (p == null ? void 0 : p.id),
3455
+ id: a ?? (p == null ? void 0 : p.id),
3454
3456
  disabled: d,
3455
3457
  "aria-describedby": m["aria-describedby"] ?? (p == null ? void 0 : p.describedBy),
3456
3458
  "aria-required": (p == null ? void 0 : p.required) || void 0,
@@ -3482,15 +3484,15 @@ const tc = "_wrapper_1at8j_4 _text_k1tvc_23", nc = "_sm_1at8j_28", rc = "_invali
3482
3484
  }), yl = "_skeleton_6mkat_4", bl = "_circle_6mkat_19", Bn = {
3483
3485
  skeleton: yl,
3484
3486
  circle: bl
3485
- }, Mh = G(function({ width: e, height: n, circle: r = !1, className: o, style: a, ...i }, c) {
3487
+ }, Mh = G(function({ width: e, height: n, circle: r = !1, className: o, style: i, ...a }, c) {
3486
3488
  return /* @__PURE__ */ s(
3487
3489
  "span",
3488
3490
  {
3489
3491
  ref: c,
3490
3492
  "aria-hidden": "true",
3491
3493
  className: A(Bn.skeleton, r && Bn.circle, o),
3492
- style: { width: e, height: n, ...a },
3493
- ...i
3494
+ style: { width: e, height: n, ...i },
3495
+ ...a
3494
3496
  }
3495
3497
  );
3496
3498
  }), wl = "_group_1uf5a_7", kl = "_tag_1uf5a_16 _text_k1tvc_23", Nl = "_removable_1uf5a_31", xl = "_disabled_1uf5a_41", $l = "_text_1uf5a_45", Sl = "_neutral_1uf5a_52", Tl = "_accent_1uf5a_57", Dl = "_success_1uf5a_62", Al = "_warning_1uf5a_67", Ml = "_danger_1uf5a_72", Cl = "_remove_1uf5a_79", yt = {
@@ -3505,7 +3507,7 @@ const tc = "_wrapper_1at8j_4 _text_k1tvc_23", nc = "_sm_1at8j_28", rc = "_invali
3505
3507
  warning: Al,
3506
3508
  danger: Ml,
3507
3509
  remove: Cl
3508
- }, br = rt(!1), Ch = G(function({ className: e, children: n, onKeyDown: r, onFocus: o, ...a }, i) {
3510
+ }, br = rt(!1), Ch = G(function({ className: e, children: n, onKeyDown: r, onFocus: o, ...i }, a) {
3509
3511
  const c = I(null), d = ne(
3510
3512
  () => {
3511
3513
  var f;
@@ -3542,17 +3544,17 @@ const tc = "_wrapper_1at8j_4 _text_k1tvc_23", nc = "_sm_1at8j_28", rc = "_invali
3542
3544
  return /* @__PURE__ */ s(
3543
3545
  "div",
3544
3546
  {
3545
- ref: Qe(c, i),
3547
+ ref: Qe(c, a),
3546
3548
  role: "list",
3547
3549
  className: A(yt.group, e),
3548
3550
  onKeyDown: p,
3549
3551
  onFocus: h,
3550
- ...a,
3552
+ ...i,
3551
3553
  children: /* @__PURE__ */ s(br.Provider, { value: !0, children: n })
3552
3554
  }
3553
3555
  );
3554
- }), Rh = G(function({ tone: e = "neutral", children: n, onRemove: r, removeLabel: o, disabled: a = !1, className: i, onKeyDown: c, ...d }, m) {
3555
- const h = je(br), p = de(), f = !!r && !a, u = o ?? (typeof n == "string" ? p.removeTag(n) : p.remove), l = (b) => {
3556
+ }), Rh = G(function({ tone: e = "neutral", children: n, onRemove: r, removeLabel: o, disabled: i = !1, className: a, onKeyDown: c, ...d }, m) {
3557
+ const h = je(br), p = de(), f = !!r && !i, u = o ?? (typeof n == "string" ? p.removeTag(n) : p.remove), l = (b) => {
3556
3558
  if (!b) {
3557
3559
  r == null || r();
3558
3560
  return;
@@ -3568,14 +3570,14 @@ const tc = "_wrapper_1at8j_4 _text_k1tvc_23", nc = "_sm_1at8j_28", rc = "_invali
3568
3570
  ref: m,
3569
3571
  "data-tag": f ? "" : void 0,
3570
3572
  role: h ? "listitem" : void 0,
3571
- "aria-disabled": a || void 0,
3573
+ "aria-disabled": i || void 0,
3572
3574
  tabIndex: f ? h ? -1 : 0 : void 0,
3573
3575
  className: A(
3574
3576
  yt.tag,
3575
3577
  yt[e],
3576
3578
  f && yt.removable,
3577
- a && yt.disabled,
3578
- i
3579
+ i && yt.disabled,
3580
+ a
3579
3581
  ),
3580
3582
  ...d,
3581
3583
  onKeyDown: g,
@@ -3609,13 +3611,13 @@ function Tn(t) {
3609
3611
  throw new Error(`${t} must be used inside <Tabs>.`);
3610
3612
  return e;
3611
3613
  }
3612
- const Lh = G(function({ value: e, defaultValue: n, onChange: r, className: o, children: a, ...i }, c) {
3614
+ const Lh = G(function({ value: e, defaultValue: n, onChange: r, className: o, children: i, ...a }, c) {
3613
3615
  const d = xe(), [m, h] = W(n ?? ""), p = e !== void 0, f = (u) => {
3614
3616
  p || h(u), r == null || r(u);
3615
3617
  };
3616
- return /* @__PURE__ */ s("div", { ref: c, className: o, ...i, children: /* @__PURE__ */ s(wr.Provider, { value: { value: p ? e : m, onChange: f, idBase: d }, children: a }) });
3617
- }), Ph = G(function({ className: e, children: n, onKeyDown: r, ...o }, a) {
3618
- const i = Tn("TabList"), c = I(null), [d, m] = W(null), h = ne(() => {
3618
+ return /* @__PURE__ */ s("div", { ref: c, className: o, ...a, children: /* @__PURE__ */ s(wr.Provider, { value: { value: p ? e : m, onChange: f, idBase: d }, children: i }) });
3619
+ }), Ph = G(function({ className: e, children: n, onKeyDown: r, ...o }, i) {
3620
+ const a = Tn("TabList"), c = I(null), [d, m] = W(null), h = ne(() => {
3619
3621
  const f = c.current;
3620
3622
  if (!f) return;
3621
3623
  const u = f.querySelector('[role="tab"][aria-selected="true"]');
@@ -3627,7 +3629,7 @@ const Lh = G(function({ value: e, defaultValue: n, onChange: r, className: o, ch
3627
3629
  }, []);
3628
3630
  ze(() => {
3629
3631
  h();
3630
- }, [h, i.value]), se(() => {
3632
+ }, [h, a.value]), se(() => {
3631
3633
  var u;
3632
3634
  window.addEventListener("resize", h);
3633
3635
  let f = !1;
@@ -3652,7 +3654,7 @@ const Lh = G(function({ value: e, defaultValue: n, onChange: r, className: o, ch
3652
3654
  return /* @__PURE__ */ k(
3653
3655
  "div",
3654
3656
  {
3655
- ref: Qe(c, a),
3657
+ ref: Qe(c, i),
3656
3658
  className: A(Vt.list, e),
3657
3659
  ...o,
3658
3660
  role: "tablist",
@@ -3670,15 +3672,15 @@ const Lh = G(function({ value: e, defaultValue: n, onChange: r, className: o, ch
3670
3672
  ]
3671
3673
  }
3672
3674
  );
3673
- }), Eh = G(function({ value: e, className: n, children: r, onClick: o, ...a }, i) {
3675
+ }), Eh = G(function({ value: e, className: n, children: r, onClick: o, ...i }, a) {
3674
3676
  const c = Tn("Tab"), d = c.value === e, m = c.value === "";
3675
3677
  return /* @__PURE__ */ s(
3676
3678
  "button",
3677
3679
  {
3678
- ref: i,
3680
+ ref: a,
3679
3681
  type: "button",
3680
3682
  className: A(Vt.tab, n),
3681
- ...a,
3683
+ ...i,
3682
3684
  role: "tab",
3683
3685
  id: `${c.idBase}-tab-${ut(e)}`,
3684
3686
  "aria-selected": d,
@@ -3690,18 +3692,18 @@ const Lh = G(function({ value: e, defaultValue: n, onChange: r, className: o, ch
3690
3692
  children: r
3691
3693
  }
3692
3694
  );
3693
- }), Fh = G(function({ value: e, className: n, children: r, ...o }, a) {
3694
- const i = Tn("TabPanel");
3695
- return i.value !== e ? null : /* @__PURE__ */ s(
3695
+ }), Fh = G(function({ value: e, className: n, children: r, ...o }, i) {
3696
+ const a = Tn("TabPanel");
3697
+ return a.value !== e ? null : /* @__PURE__ */ s(
3696
3698
  "div",
3697
3699
  {
3698
- ref: a,
3700
+ ref: i,
3699
3701
  tabIndex: 0,
3700
3702
  className: A(Vt.panel, n),
3701
3703
  ...o,
3702
3704
  role: "tabpanel",
3703
- id: `${i.idBase}-panel-${ut(e)}`,
3704
- "aria-labelledby": `${i.idBase}-tab-${ut(e)}`,
3705
+ id: `${a.idBase}-panel-${ut(e)}`,
3706
+ "aria-labelledby": `${a.idBase}-tab-${ut(e)}`,
3705
3707
  children: r
3706
3708
  }
3707
3709
  );
@@ -3717,8 +3719,8 @@ const Lh = G(function({ value: e, defaultValue: n, onChange: r, className: o, ch
3717
3719
  invalid: n,
3718
3720
  autoGrow: r = !1,
3719
3721
  maxRows: o,
3720
- showCount: a = !1,
3721
- resize: i,
3722
+ showCount: i = !1,
3723
+ resize: a,
3722
3724
  className: c,
3723
3725
  id: d,
3724
3726
  disabled: m,
@@ -3745,7 +3747,7 @@ const Lh = G(function({ value: e, defaultValue: n, onChange: r, className: o, ch
3745
3747
  _ = !0;
3746
3748
  };
3747
3749
  }, [r, v]);
3748
- const [y, w] = W(() => String(f.defaultValue ?? "")), T = f.value !== void 0, j = T ? String(f.value ?? "") : y, $ = Fl(j, f.maxLength), C = a && $ !== void 0, P = /* @__PURE__ */ s(
3750
+ const [y, w] = W(() => String(f.defaultValue ?? "")), T = f.value !== void 0, j = T ? String(f.value ?? "") : y, $ = Fl(j, f.maxLength), C = i && $ !== void 0, P = /* @__PURE__ */ s(
3749
3751
  "textarea",
3750
3752
  {
3751
3753
  ref: b,
@@ -3761,7 +3763,7 @@ const Lh = G(function({ value: e, defaultValue: n, onChange: r, className: o, ch
3761
3763
  g && Tt.invalid,
3762
3764
  !C && c
3763
3765
  ),
3764
- style: { resize: i ?? (r ? "none" : "vertical") },
3766
+ style: { resize: a ?? (r ? "none" : "vertical") },
3765
3767
  onInput: (_) => {
3766
3768
  p == null || p(_), T || w(_.currentTarget.value), v();
3767
3769
  },
@@ -3812,13 +3814,13 @@ function id({ tone: t }) {
3812
3814
  ] }) });
3813
3815
  }
3814
3816
  function Oh({ children: t }) {
3815
- const e = xo().duration ?? 5e3, [n, r] = W([]), o = I(1), a = I(/* @__PURE__ */ new Map()), i = I(null), c = ne((v) => {
3816
- r((y) => y.filter((w) => w.id !== v)), a.current.delete(v);
3817
+ const e = xo().duration ?? 5e3, [n, r] = W([]), o = I(1), i = I(/* @__PURE__ */ new Map()), a = I(null), c = ne((v) => {
3818
+ r((y) => y.filter((w) => w.id !== v)), i.current.delete(v);
3817
3819
  }, []), d = ne(
3818
3820
  (v) => {
3819
- const y = a.current.get(v);
3821
+ const y = i.current.get(v);
3820
3822
  y != null && y.timeout && clearTimeout(y.timeout);
3821
- const w = i.current, T = w === null ? 0 : Bt(getComputedStyle(w), "--u-duration-exit-collapse");
3823
+ const w = a.current, T = w === null ? 0 : Bt(getComputedStyle(w), "--u-duration-exit-collapse");
3822
3824
  if (Yt() || T <= 0) {
3823
3825
  c(v);
3824
3826
  return;
@@ -3830,7 +3832,7 @@ function Oh({ children: t }) {
3830
3832
  [c]
3831
3833
  ), m = ne(
3832
3834
  (v, y) => {
3833
- a.current.set(v, {
3835
+ i.current.set(v, {
3834
3836
  timeout: setTimeout(() => d(v), y),
3835
3837
  remaining: y,
3836
3838
  startedAt: Date.now()
@@ -3846,11 +3848,11 @@ function Oh({ children: t }) {
3846
3848
  },
3847
3849
  [m, e]
3848
3850
  ), p = ne((v) => {
3849
- const y = a.current.get(v);
3851
+ const y = i.current.get(v);
3850
3852
  y != null && y.timeout && (clearTimeout(y.timeout), y.timeout = null, y.remaining = Math.max(0, y.remaining - (Date.now() - y.startedAt)));
3851
3853
  }, []), f = ne(
3852
3854
  (v) => {
3853
- const y = a.current.get(v);
3855
+ const y = i.current.get(v);
3854
3856
  if (!(!y || y.timeout)) {
3855
3857
  if (y.remaining <= 0) {
3856
3858
  d(v);
@@ -3862,7 +3864,7 @@ function Oh({ children: t }) {
3862
3864
  [d, m]
3863
3865
  );
3864
3866
  se(() => {
3865
- const v = a.current;
3867
+ const v = i.current;
3866
3868
  return () => {
3867
3869
  v.forEach((y) => {
3868
3870
  y.timeout && clearTimeout(y.timeout);
@@ -3915,7 +3917,7 @@ function Oh({ children: t }) {
3915
3917
  (library-audit 03 and its review). Both regions are
3916
3918
  `display: contents`, and `order` keeps on screen the order in which
3917
3919
  the messages arrived - whatever their tone. */
3918
- /* @__PURE__ */ k("div", { ref: i, className: He.region, style: ad, children: [
3920
+ /* @__PURE__ */ k("div", { ref: a, className: He.region, style: ad, children: [
3919
3921
  /* @__PURE__ */ s("div", { role: "status", "aria-live": "polite", className: He.live, children: n.filter((v) => rn[v.tone ?? "neutral"].role === "status").map(b) }),
3920
3922
  /* @__PURE__ */ s("div", { role: "alert", className: He.live, children: n.filter((v) => rn[v.tone ?? "neutral"].role === "alert").map(b) })
3921
3923
  ] }),
@@ -3943,8 +3945,8 @@ const cd = "_tree_1epok_10 _text_k1tvc_23", ld = "_row_1epok_23", dd = "_active_
3943
3945
  ariaLabel: n,
3944
3946
  checkable: r = !1,
3945
3947
  children: o,
3946
- className: a,
3947
- onKeyDown: i,
3948
+ className: i,
3949
+ onKeyDown: a,
3948
3950
  onFocus: c,
3949
3951
  onBlur: d,
3950
3952
  onScroll: m,
@@ -3975,7 +3977,7 @@ const cd = "_tree_1epok_10 _text_k1tvc_23", ld = "_row_1epok_23", dd = "_active_
3975
3977
  []
3976
3978
  );
3977
3979
  const j = (_) => {
3978
- if (i == null || i(_), !_.defaultPrevented) {
3980
+ if (a == null || a(_), !_.defaultPrevented) {
3979
3981
  if (r && _.key === "a" && (_.ctrlKey || _.metaKey)) {
3980
3982
  e.toggleAll(), _.preventDefault();
3981
3983
  return;
@@ -4029,7 +4031,7 @@ const cd = "_tree_1epok_10 _text_k1tvc_23", ld = "_row_1epok_23", dd = "_active_
4029
4031
  {
4030
4032
  ref: Qe(b, p),
4031
4033
  "aria-label": n,
4032
- className: A(Ie.tree, l !== void 0 && Ie.scrolls, a),
4034
+ className: A(Ie.tree, l !== void 0 && Ie.scrolls, i),
4033
4035
  ...h,
4034
4036
  role: "tree",
4035
4037
  onKeyDown: j,
@@ -4113,15 +4115,15 @@ const cd = "_tree_1epok_10 _text_k1tvc_23", ld = "_row_1epok_23", dd = "_active_
4113
4115
  }
4114
4116
  );
4115
4117
  }), qh = G(function({ tree: e, placeholder: n, ...r }, o) {
4116
- const a = de();
4118
+ const i = de();
4117
4119
  return /* @__PURE__ */ s(
4118
4120
  mr,
4119
4121
  {
4120
4122
  ref: o,
4121
4123
  type: "search",
4122
4124
  value: e.search,
4123
- placeholder: n ?? a.treeSearchPlaceholder,
4124
- onChange: (i) => e.setSearch(i.target.value),
4125
+ placeholder: n ?? i.treeSearchPlaceholder,
4126
+ onChange: (a) => e.setSearch(a.target.value),
4125
4127
  ...r
4126
4128
  }
4127
4129
  );
@@ -4134,7 +4136,7 @@ function xd({
4134
4136
  overscan: o = 4
4135
4137
  }) {
4136
4138
  if (t <= 0 || e <= 0) return Nd;
4137
- const a = Math.max(0, n), i = Math.floor(a / e), c = Math.ceil(Math.max(0, r) / e) + 1, d = Math.max(0, i - o), m = Math.min(t, i + c + o);
4139
+ const i = Math.max(0, n), a = Math.floor(i / e), c = Math.ceil(Math.max(0, r) / e) + 1, d = Math.max(0, a - o), m = Math.min(t, a + c + o);
4138
4140
  return {
4139
4141
  from: d,
4140
4142
  to: m,
@@ -4144,13 +4146,13 @@ function xd({
4144
4146
  }
4145
4147
  function $d(t, { rowHeight: e, scrollTop: n, viewportHeight: r, headerHeight: o = 0 }) {
4146
4148
  if (e <= 0) return null;
4147
- const a = t * e, i = a + e;
4148
- return a < n + o ? Math.max(0, a - o) : i > n + r ? Math.max(0, i - r) : null;
4149
+ const i = t * e, a = i + e;
4150
+ return i < n + o ? Math.max(0, i - o) : a > n + r ? Math.max(0, a - r) : null;
4149
4151
  }
4150
4152
  function Sd(t, e) {
4151
- const { rowHeight: n, overscan: r = 4 } = e, o = I(null), [a, i] = W(0), [c, d] = W(0), [m, h] = W(n), p = ne(() => {
4153
+ const { rowHeight: n, overscan: r = 4 } = e, o = I(null), [i, a] = W(0), [c, d] = W(0), [m, h] = W(n), p = ne(() => {
4152
4154
  const l = o.current;
4153
- l && i(l.scrollTop);
4155
+ l && a(l.scrollTop);
4154
4156
  }, []);
4155
4157
  ze(() => {
4156
4158
  const l = o.current;
@@ -4165,9 +4167,9 @@ function Sd(t, e) {
4165
4167
  const g = l.querySelector("[data-row]");
4166
4168
  if (!g) return;
4167
4169
  const b = g.getBoundingClientRect().height;
4168
- b > 0 && Math.abs(b - m) > 0.5 && h(b);
4170
+ b > 0 && Math.abs(b - m) > 0.01 && h(b);
4169
4171
  }, [t, c, m]);
4170
- const f = xd({ count: t, rowHeight: m, scrollTop: a, viewportHeight: c, overscan: r }), u = ne(
4172
+ const f = xd({ count: t, rowHeight: m, scrollTop: i, viewportHeight: c, overscan: r }), u = ne(
4171
4173
  (l) => {
4172
4174
  const g = o.current;
4173
4175
  if (!g) return;
@@ -4177,7 +4179,7 @@ function Sd(t, e) {
4177
4179
  viewportHeight: g.clientHeight,
4178
4180
  headerHeight: (b == null ? void 0 : b.getBoundingClientRect().height) ?? 0
4179
4181
  });
4180
- v !== null && (g.scrollTop = v, i(v));
4182
+ v !== null && (g.scrollTop = v, a(v));
4181
4183
  },
4182
4184
  [m]
4183
4185
  );
@@ -4203,30 +4205,30 @@ function Td(t, e, n) {
4203
4205
  matches: /* @__PURE__ */ new Set(),
4204
4206
  descendantMatches: /* @__PURE__ */ new Set()
4205
4207
  };
4206
- function a(i) {
4208
+ function i(a) {
4207
4209
  var g;
4208
- const c = e.key(i), d = e.children(i), m = n.checked.has(c), h = r === "" || e.label(i).toLowerCase().includes(r);
4210
+ const c = e.key(a), d = e.children(a), m = n.checked.has(c), h = r === "" || e.label(a).toLowerCase().includes(r);
4209
4211
  h && o.matches.add(c);
4210
4212
  let p = m, f = !1;
4211
4213
  for (const b of d ?? []) {
4212
- const [v, y] = a(b);
4214
+ const [v, y] = i(b);
4213
4215
  v && (p = !0), y && (f = !0);
4214
4216
  }
4215
4217
  d !== void 0 && !m && p && o.indeterminate.add(c), f && o.descendantMatches.add(c);
4216
- const l = h || f || ((g = e.unloaded) == null ? void 0 : g.call(e, i)) === !0;
4218
+ const l = h || f || ((g = e.unloaded) == null ? void 0 : g.call(e, a)) === !0;
4217
4219
  return l && o.survives.add(c), [p, l];
4218
4220
  }
4219
- for (const i of t) a(i);
4221
+ for (const a of t) i(a);
4220
4222
  return o;
4221
4223
  }
4222
4224
  function Dd(t, e, n) {
4223
- const r = n.search.trim() !== "", o = Td(t, e, n), a = [];
4224
- function i(c, d, m) {
4225
+ const r = n.search.trim() !== "", o = Td(t, e, n), i = [];
4226
+ function a(c, d, m) {
4225
4227
  const h = m ? c : c.filter((p) => !r || o.survives.has(e.key(p)));
4226
4228
  h.forEach((p, f) => {
4227
4229
  var $, C;
4228
4230
  const u = e.key(p), l = e.children(p), g = (($ = e.unloaded) == null ? void 0 : $.call(e, p)) === !0, b = l !== void 0 || g, v = b && !g && (l ?? []).length === 0, y = o.matches.has(u), w = r && !y && o.descendantMatches.has(u), T = r && o.descendantMatches.has(u), j = !v && b && (T || n.expanded.has(u));
4229
- a.push({
4231
+ i.push({
4230
4232
  node: p,
4231
4233
  key: u,
4232
4234
  level: d,
@@ -4243,10 +4245,10 @@ function Dd(t, e, n) {
4243
4245
  pathOnly: w,
4244
4246
  position: f + 1,
4245
4247
  siblings: h.length
4246
- }), j && i(l ?? [], d + 1, m || y);
4248
+ }), j && a(l ?? [], d + 1, m || y);
4247
4249
  });
4248
4250
  }
4249
- return i(t, 0, !1), a;
4251
+ return a(t, 0, !1), i;
4250
4252
  }
4251
4253
  function Nr(t, e) {
4252
4254
  if (t.expanded.has(e)) return t;
@@ -4266,29 +4268,29 @@ function On(t, e, n) {
4266
4268
  const r = t[0], o = t[t.length - 1];
4267
4269
  if (n === "start") return nt(e, r.key);
4268
4270
  if (n === "end") return nt(e, o.key);
4269
- const a = t.findIndex((c) => c.key === e.active);
4270
- if (a < 0) return nt(e, r.key);
4271
- const i = t[a];
4271
+ const i = t.findIndex((c) => c.key === e.active);
4272
+ if (i < 0) return nt(e, r.key);
4273
+ const a = t[i];
4272
4274
  switch (n) {
4273
4275
  case "down": {
4274
- const c = t[a + 1];
4276
+ const c = t[i + 1];
4275
4277
  return c === void 0 ? e : nt(e, c.key);
4276
4278
  }
4277
4279
  case "up": {
4278
- const c = t[a - 1];
4280
+ const c = t[i - 1];
4279
4281
  return c === void 0 ? e : nt(e, c.key);
4280
4282
  }
4281
4283
  case "in": {
4282
- if (!i.branch || i.empty) return e;
4283
- if (!i.expanded) return Nr(e, i.key);
4284
- const c = t[a + 1];
4284
+ if (!a.branch || a.empty) return e;
4285
+ if (!a.expanded) return Nr(e, a.key);
4286
+ const c = t[i + 1];
4285
4287
  return c === void 0 ? e : nt(e, c.key);
4286
4288
  }
4287
4289
  case "out": {
4288
- if (i.branch && i.expanded) return xr(e, i.key);
4289
- for (let c = a - 1; c >= 0; c--) {
4290
+ if (a.branch && a.expanded) return xr(e, a.key);
4291
+ for (let c = i - 1; c >= 0; c--) {
4290
4292
  const d = t[c];
4291
- if (d.level < i.level) return nt(e, d.key);
4293
+ if (d.level < a.level) return nt(e, d.key);
4292
4294
  }
4293
4295
  return e;
4294
4296
  }
@@ -4300,8 +4302,8 @@ function Hn(t, e) {
4300
4302
  function Ad(t, e, n) {
4301
4303
  const r = t.findIndex((d) => d.key === e), o = t.findIndex((d) => d.key === n);
4302
4304
  if (r < 0 || o < 0) return [];
4303
- const [a, i] = r <= o ? [r, o] : [o, r], c = [];
4304
- for (let d = a; d <= i; d++) {
4305
+ const [i, a] = r <= o ? [r, o] : [o, r], c = [];
4306
+ for (let d = i; d <= a; d++) {
4305
4307
  const m = t[d];
4306
4308
  !m.disabled && !m.unloaded && c.push(m.key);
4307
4309
  }
@@ -4309,21 +4311,21 @@ function Ad(t, e, n) {
4309
4311
  }
4310
4312
  function $r(t, e) {
4311
4313
  const n = { nodes: /* @__PURE__ */ new Map(), parents: /* @__PURE__ */ new Map(), depth: /* @__PURE__ */ new Map() };
4312
- function r(o, a, i) {
4314
+ function r(o, i, a) {
4313
4315
  const c = e.key(o);
4314
- n.nodes.set(c, o), n.parents.set(c, a), n.depth.set(c, i);
4315
- for (const d of e.children(o) ?? []) r(d, c, i + 1);
4316
+ n.nodes.set(c, o), n.parents.set(c, i), n.depth.set(c, a);
4317
+ for (const d of e.children(o) ?? []) r(d, c, a + 1);
4316
4318
  }
4317
4319
  for (const o of t) r(o, null, 0);
4318
4320
  return n;
4319
4321
  }
4320
4322
  function ln(t, e, n, r, o) {
4321
4323
  if (r.length === 0) return n;
4322
- const a = $r(t, e), i = new Set(n.checked);
4324
+ const i = $r(t, e), a = new Set(n.checked);
4323
4325
  function c(f) {
4324
4326
  if (It(e, f)) {
4325
4327
  const u = e.key(f);
4326
- o ? i.add(u) : i.delete(u);
4328
+ o ? a.add(u) : a.delete(u);
4327
4329
  }
4328
4330
  for (const u of e.children(f) ?? []) c(u);
4329
4331
  }
@@ -4333,38 +4335,38 @@ function ln(t, e, n, r, o) {
4333
4335
  for (const b of u) d(b);
4334
4336
  if (!It(e, f)) return;
4335
4337
  const l = e.key(f);
4336
- u.every((b) => i.has(e.key(b))) ? i.add(l) : i.delete(l);
4338
+ u.every((b) => a.has(e.key(b))) ? a.add(l) : a.delete(l);
4337
4339
  }
4338
4340
  const m = /* @__PURE__ */ new Set();
4339
4341
  let h = !1;
4340
4342
  for (const f of r) {
4341
- const u = a.nodes.get(f);
4343
+ const u = i.nodes.get(f);
4342
4344
  if (u === void 0 || !It(e, u)) continue;
4343
4345
  h = !0, c(u), d(u);
4344
- let l = a.parents.get(f) ?? null;
4346
+ let l = i.parents.get(f) ?? null;
4345
4347
  for (; l !== null; )
4346
- m.add(l), l = a.parents.get(l) ?? null;
4348
+ m.add(l), l = i.parents.get(l) ?? null;
4347
4349
  }
4348
4350
  if (!h) return n;
4349
4351
  const p = [...m].sort(
4350
- (f, u) => (a.depth.get(u) ?? 0) - (a.depth.get(f) ?? 0)
4352
+ (f, u) => (i.depth.get(u) ?? 0) - (i.depth.get(f) ?? 0)
4351
4353
  );
4352
4354
  for (const f of p) {
4353
- const u = a.nodes.get(f);
4355
+ const u = i.nodes.get(f);
4354
4356
  if (u === void 0 || !It(e, u)) continue;
4355
4357
  const l = e.children(u) ?? [];
4356
4358
  if (l.length === 0) continue;
4357
- l.every((b) => i.has(e.key(b))) ? i.add(f) : i.delete(f);
4359
+ l.every((b) => a.has(e.key(b))) ? a.add(f) : a.delete(f);
4358
4360
  }
4359
- return { ...n, checked: i };
4361
+ return { ...n, checked: a };
4360
4362
  }
4361
4363
  function Sr(t, e, n, r) {
4362
4364
  const o = ln(t, e, n, r, !0);
4363
- return o.checked.size === n.checked.size && [...o.checked].every((i) => n.checked.has(i)) ? ln(t, e, n, r, !1) : o;
4365
+ return o.checked.size === n.checked.size && [...o.checked].every((a) => n.checked.has(a)) ? ln(t, e, n, r, !1) : o;
4364
4366
  }
4365
4367
  function Md(t, e, n) {
4366
4368
  const r = $r(t, e), o = [];
4367
- for (const [a, i] of r.nodes) It(e, i) && o.push(a);
4369
+ for (const [i, a] of r.nodes) It(e, a) && o.push(i);
4368
4370
  return o.length === 0 ? n : Sr(t, e, n, o);
4369
4371
  }
4370
4372
  function qn(t, e, n, r) {
@@ -4373,49 +4375,49 @@ function qn(t, e, n, r) {
4373
4375
  function Cd(t, e, n) {
4374
4376
  const r = e.toLowerCase();
4375
4377
  if (r === "" || t.length === 0) return null;
4376
- const o = t.findIndex((i) => i.key === n), a = o < 0 ? 0 : r.length === 1 ? o + 1 : o;
4377
- for (let i = 0; i < t.length; i++) {
4378
- const c = t[(a + i) % t.length];
4378
+ const o = t.findIndex((a) => a.key === n), i = o < 0 ? 0 : r.length === 1 ? o + 1 : o;
4379
+ for (let a = 0; a < t.length; a++) {
4380
+ const c = t[(i + a) % t.length];
4379
4381
  if (c.label.toLowerCase().startsWith(r)) return c.key;
4380
4382
  }
4381
4383
  return null;
4382
4384
  }
4383
4385
  function Rd(t, e, n) {
4384
- function r(o, a) {
4385
- const i = e.key(o);
4386
- if (a.push(i), i === n) return a;
4386
+ function r(o, i) {
4387
+ const a = e.key(o);
4388
+ if (i.push(a), a === n) return i;
4387
4389
  for (const c of e.children(o) ?? []) {
4388
- const d = r(c, a);
4390
+ const d = r(c, i);
4389
4391
  if (d !== null) return d;
4390
4392
  }
4391
- return a.pop(), null;
4393
+ return i.pop(), null;
4392
4394
  }
4393
4395
  for (const o of t) {
4394
- const a = r(o, []);
4395
- if (a !== null) return a;
4396
+ const i = r(o, []);
4397
+ if (i !== null) return i;
4396
4398
  }
4397
4399
  return null;
4398
4400
  }
4399
4401
  function Ld(t, e, n, r) {
4400
4402
  var c, d;
4401
- let o = t, a = null;
4402
- const i = new Set(n.expanded);
4403
+ let o = t, i = null;
4404
+ const a = new Set(n.expanded);
4403
4405
  for (let m = 0; m < r.length; m++) {
4404
4406
  const h = r[m], p = o.find((g) => e.key(g) === h);
4405
4407
  if (p === void 0) break;
4406
- a = h;
4408
+ i = h;
4407
4409
  const f = e.children(p), u = f !== void 0 || ((c = e.unloaded) == null ? void 0 : c.call(e, p)) === !0, l = u && ((d = e.unloaded) == null ? void 0 : d.call(e, p)) !== !0 && (f ?? []).length === 0;
4408
- m < r.length - 1 && u && !l && i.add(h), o = f ?? [];
4410
+ m < r.length - 1 && u && !l && a.add(h), o = f ?? [];
4409
4411
  }
4410
- return a === null ? { snapshot: n, reached: null } : { snapshot: { ...n, expanded: i }, reached: a };
4412
+ return i === null ? { snapshot: n, reached: null } : { snapshot: { ...n, expanded: a }, reached: i };
4411
4413
  }
4412
4414
  function Pd(t, e) {
4413
4415
  const n = [];
4414
4416
  function r(o) {
4415
- var i;
4416
- const a = e.children(o);
4417
- a !== void 0 && a.length > 0 && ((i = e.unloaded) == null ? void 0 : i.call(e, o)) !== !0 && n.push(e.key(o));
4418
- for (const c of a ?? []) r(c);
4417
+ var a;
4418
+ const i = e.children(o);
4419
+ i !== void 0 && i.length > 0 && ((a = e.unloaded) == null ? void 0 : a.call(e, o)) !== !0 && n.push(e.key(o));
4420
+ for (const c of i ?? []) r(c);
4419
4421
  }
4420
4422
  for (const o of t) r(o);
4421
4423
  return n;
@@ -4423,17 +4425,17 @@ function Pd(t, e) {
4423
4425
  function Wh(t, e) {
4424
4426
  const n = /* @__PURE__ */ new Set();
4425
4427
  let r = null;
4426
- function o(a) {
4428
+ function o(i) {
4427
4429
  if (r !== null) return;
4428
- const i = e.key(a);
4429
- if (n.has(i)) {
4430
- r = i;
4430
+ const a = e.key(i);
4431
+ if (n.has(a)) {
4432
+ r = a;
4431
4433
  return;
4432
4434
  }
4433
- n.add(i);
4434
- for (const c of e.children(a) ?? []) o(c);
4435
+ n.add(a);
4436
+ for (const c of e.children(i) ?? []) o(c);
4435
4437
  }
4436
- for (const a of t) o(a);
4438
+ for (const i of t) o(i);
4437
4439
  return r;
4438
4440
  }
4439
4441
  function zh(t, e) {
@@ -4441,8 +4443,8 @@ function zh(t, e) {
4441
4443
  reader: n,
4442
4444
  defaultExpanded: r,
4443
4445
  defaultChecked: o,
4444
- defaultActive: a = null,
4445
- expanded: i,
4446
+ defaultActive: i = null,
4447
+ expanded: a,
4446
4448
  checked: c,
4447
4449
  active: d,
4448
4450
  anchor: m,
@@ -4459,16 +4461,16 @@ function zh(t, e) {
4459
4461
  () => new Set(r ?? [])
4460
4462
  ), [j, $] = W(
4461
4463
  () => new Set(o ?? [])
4462
- ), [C, P] = W(a), [_, O] = W(null), [M, S] = W(""), [E, U] = W(0), D = fe(
4464
+ ), [C, P] = W(i), [_, O] = W(null), [M, S] = W(""), [E, U] = W(0), D = fe(
4463
4465
  () => ({
4464
- expanded: i ?? w,
4466
+ expanded: a ?? w,
4465
4467
  checked: c ?? j,
4466
4468
  active: d !== void 0 ? d : C,
4467
4469
  anchor: m !== void 0 ? m : _,
4468
4470
  search: h ?? M
4469
4471
  }),
4470
4472
  [
4471
- i,
4473
+ a,
4472
4474
  w,
4473
4475
  c,
4474
4476
  j,
@@ -4487,11 +4489,11 @@ function zh(t, e) {
4487
4489
  }, [t, n]);
4488
4490
  const B = ne(
4489
4491
  (H) => {
4490
- H.expanded !== D.expanded && (i === void 0 && T(H.expanded), p == null || p(H.expanded)), H.checked !== D.checked && (c === void 0 && $(H.checked), f == null || f(H.checked)), H.anchor !== D.anchor && (m === void 0 && O(H.anchor), l == null || l(H.anchor)), H.active !== D.active && (d === void 0 && P(H.active), u == null || u(H.active));
4492
+ H.expanded !== D.expanded && (a === void 0 && T(H.expanded), p == null || p(H.expanded)), H.checked !== D.checked && (c === void 0 && $(H.checked), f == null || f(H.checked)), H.anchor !== D.anchor && (m === void 0 && O(H.anchor), l == null || l(H.anchor)), H.active !== D.active && (d === void 0 && P(H.active), u == null || u(H.active));
4491
4493
  },
4492
4494
  [
4493
4495
  D,
4494
- i,
4496
+ a,
4495
4497
  c,
4496
4498
  d,
4497
4499
  m,
@@ -4628,8 +4630,8 @@ const Ed = "_text_1n64h_7 _text_k1tvc_23", Fd = "_heading_1n64h_11 _text_k1tvc_2
4628
4630
  size: n = "md",
4629
4631
  weight: r = "regular",
4630
4632
  tone: o = "default",
4631
- mono: a = !1,
4632
- tracking: i = "normal",
4633
+ mono: i = !1,
4634
+ tracking: a = "normal",
4633
4635
  leading: c = "normal",
4634
4636
  className: d,
4635
4637
  children: m,
@@ -4644,8 +4646,8 @@ const Ed = "_text_1n64h_7 _text_k1tvc_23", Fd = "_heading_1n64h_11 _text_k1tvc_2
4644
4646
  Le[`size-${n}`],
4645
4647
  Le[`weight-${r}`],
4646
4648
  Le[`tone-${o}`],
4647
- a && Le.mono,
4648
- Le[`tracking-${i}`],
4649
+ i && Le.mono,
4650
+ Le[`tracking-${a}`],
4649
4651
  Le[`leading-${c}`],
4650
4652
  d
4651
4653
  ),
@@ -4660,7 +4662,7 @@ const Ed = "_text_1n64h_7 _text_k1tvc_23", Fd = "_heading_1n64h_11 _text_k1tvc_2
4660
4662
  4: "md",
4661
4663
  5: "sm",
4662
4664
  6: "xs"
4663
- }, Gh = G(function({ level: e = 2, size: n, weight: r = "semibold", tone: o = "default", className: a, children: i, ...c }, d) {
4665
+ }, Gh = G(function({ level: e = 2, size: n, weight: r = "semibold", tone: o = "default", className: i, children: a, ...c }, d) {
4664
4666
  const m = `h${e}`, h = n ?? qd[e];
4665
4667
  return /* @__PURE__ */ s(
4666
4668
  m,
@@ -4674,20 +4676,20 @@ const Ed = "_text_1n64h_7 _text_k1tvc_23", Fd = "_heading_1n64h_11 _text_k1tvc_2
4674
4676
  // Large titles run slightly compressed, medium ones less so.
4675
4677
  (h === "2xl" || h === "xl") && Le.trackingDisplay,
4676
4678
  h === "lg" && Le.trackingTight,
4677
- a
4679
+ i
4678
4680
  ),
4679
4681
  ...c,
4680
- children: i
4682
+ children: a
4681
4683
  }
4682
4684
  );
4683
- }), Uh = G(function({ size: e = "md", external: n = !1, className: r, children: o, ...a }, i) {
4685
+ }), Uh = G(function({ size: e = "md", external: n = !1, className: r, children: o, ...i }, a) {
4684
4686
  return /* @__PURE__ */ s(
4685
4687
  "a",
4686
4688
  {
4687
- ref: i,
4689
+ ref: a,
4688
4690
  className: A(Le.link, Le[`size-${e}`], r),
4689
4691
  ...n ? { target: "_blank", rel: "noopener noreferrer" } : {},
4690
- ...a,
4692
+ ...i,
4691
4693
  children: o
4692
4694
  }
4693
4695
  );
@@ -4695,7 +4697,7 @@ const Ed = "_text_1n64h_7 _text_k1tvc_23", Fd = "_heading_1n64h_11 _text_k1tvc_2
4695
4697
  tooltip: Wd
4696
4698
  };
4697
4699
  function jd({ content: t, children: e, delay: n = 300 }) {
4698
- const [r, o] = W(!1), [a, i] = W(null), [c, d] = W(null), m = vn(), h = I(null), p = I(null), f = I(null), u = xe(), l = or(r, p, "--u-duration-exit-fast"), g = () => {
4700
+ const [r, o] = W(!1), [i, a] = W(null), [c, d] = W(null), m = vn(), h = I(null), p = I(null), f = I(null), u = xe(), l = or(r, p, "--u-duration-exit-fast"), g = () => {
4699
4701
  f.current && clearTimeout(f.current), f.current = setTimeout(() => o(!0), n);
4700
4702
  }, b = () => {
4701
4703
  f.current && clearTimeout(f.current), o(!1);
@@ -4713,7 +4715,7 @@ function jd({ content: t, children: e, delay: n = 300 }) {
4713
4715
  rr(),
4714
4716
  { align: "center", side: "top", offset: 8 }
4715
4717
  );
4716
- i({ top: T.top, left: T.left, "--_origin": pn(T.side, "center") });
4718
+ a({ top: T.top, left: T.left, "--_origin": pn(T.side, "center") });
4717
4719
  }, [r, c, t]), se(() => {
4718
4720
  if (!r) return;
4719
4721
  const y = (w) => {
@@ -4759,7 +4761,7 @@ function jd({ content: t, children: e, delay: n = 300 }) {
4759
4761
  className: zd.tooltip,
4760
4762
  "data-closing": !r || void 0,
4761
4763
  "aria-hidden": !r || void 0,
4762
- style: { ...a, visibility: a ? void 0 : "hidden" },
4764
+ style: { ...i, visibility: i ? void 0 : "hidden" },
4763
4765
  children: t
4764
4766
  }
4765
4767
  ),
@@ -4770,13 +4772,13 @@ function jd({ content: t, children: e, delay: n = 300 }) {
4770
4772
  const Gd = "_hidden_69gri_7", Ud = "_focusable_69gri_20 _text_k1tvc_23", Wn = {
4771
4773
  hidden: Gd,
4772
4774
  focusable: Ud
4773
- }, Tr = G(function({ as: e, focusable: n = !1, className: r, children: o, ...a }, i) {
4775
+ }, Tr = G(function({ as: e, focusable: n = !1, className: r, children: o, ...i }, a) {
4774
4776
  return /* @__PURE__ */ s(
4775
4777
  e ?? "span",
4776
4778
  {
4777
- ref: i,
4779
+ ref: a,
4778
4780
  className: A(Wn.hidden, n && Wn.focusable, r),
4779
- ...a,
4781
+ ...i,
4780
4782
  children: o
4781
4783
  }
4782
4784
  );
@@ -4803,15 +4805,15 @@ function Xd(t, e) {
4803
4805
  }
4804
4806
  function Kd(t, e = {}) {
4805
4807
  if (!Vd(t)) return { verdict: "unknown" };
4806
- const r = (e.limits ?? []).map((i) => Yd(t, i)).filter((i) => i !== null).reduce(
4807
- (i, c) => i === null || Xd(c, i) ? c : i,
4808
+ const r = (e.limits ?? []).map((a) => Yd(t, a)).filter((a) => a !== null).reduce(
4809
+ (a, c) => a === null || Xd(c, a) ? c : a,
4808
4810
  null
4809
4811
  ), o = r === null ? { verdict: "ok" } : {
4810
4812
  verdict: r.limit.severity,
4811
4813
  limit: r.limit,
4812
4814
  excess: r.excess
4813
- }, a = e.target;
4814
- return a !== void 0 && Number.isFinite(a) && (o.deviation = t - a), o;
4815
+ }, i = e.target;
4816
+ return i !== void 0 && Number.isFinite(i) && (o.deviation = t - i), o;
4815
4817
  }
4816
4818
  function zn(t) {
4817
4819
  if (t == null) return null;
@@ -4836,20 +4838,20 @@ function eu(t) {
4836
4838
  return Math.min(jn, Math.max(Qd, r));
4837
4839
  }
4838
4840
  function tu(t, e) {
4839
- const n = t instanceof Date ? t.getTime() : t, r = typeof n == "number" && Number.isFinite(n) ? n : null, { stale: o, lost: a } = e, i = eu({ stale: o, lost: a }), [c, d] = W(() => Date.now());
4841
+ const n = t instanceof Date ? t.getTime() : t, r = typeof n == "number" && Number.isFinite(n) ? n : null, { stale: o, lost: i } = e, a = eu({ stale: o, lost: i }), [c, d] = W(() => Date.now());
4840
4842
  return se(() => {
4841
- const m = setInterval(() => d(Date.now()), i);
4843
+ const m = setInterval(() => d(Date.now()), a);
4842
4844
  return () => clearInterval(m);
4843
- }, [i]), fe(
4845
+ }, [a]), fe(
4844
4846
  () => ({
4845
4847
  freshness: Jd(r, c, {
4846
4848
  stale: o,
4847
- lost: a
4849
+ lost: i
4848
4850
  }),
4849
4851
  age: Dr(r, c),
4850
4852
  now: c
4851
4853
  }),
4852
- [r, c, o, a]
4854
+ [r, c, o, i]
4853
4855
  );
4854
4856
  }
4855
4857
  const nu = "_stat_hgd6y_9 _text_k1tvc_23", ru = "_label_hgd6y_22", ou = "_valueRow_hgd6y_29", su = "_value_hgd6y_29", au = "_unit_hgd6y_48", iu = "_verdict_hgd6y_55", cu = "_deviation_hgd6y_92", lu = "_history_hgd6y_97", du = "_asOf_hgd6y_101", uu = "_age_hgd6y_119", tt = {
@@ -4885,15 +4887,15 @@ function mu({
4885
4887
  asOf: t,
4886
4888
  ages: e
4887
4889
  }) {
4888
- const n = Ge(), r = de(), o = tu(t, e), a = o.freshness === "lost" ? r.freshnessDisconnected : o.freshness === "stale" ? r.freshnessStale : r.freshnessFresh, i = o.age;
4890
+ const n = Ge(), r = de(), o = tu(t, e), i = o.freshness === "lost" ? r.freshnessDisconnected : o.freshness === "stale" ? r.freshnessStale : r.freshnessFresh, a = o.age;
4889
4891
  return /* @__PURE__ */ k("span", { className: tt.asOf, "data-freshness": o.freshness, children: [
4890
- a,
4891
- i !== null && /* @__PURE__ */ s("span", { className: tt.age, children: n.relative(i) })
4892
+ i,
4893
+ a !== null && /* @__PURE__ */ s("span", { className: tt.age, children: n.relative(a) })
4892
4894
  ] });
4893
4895
  }
4894
- const Yh = G(function({ label: e, value: n, unit: r, decimals: o, limits: a, history: i, asOf: c, ages: d, className: m, ...h }, p) {
4896
+ const Yh = G(function({ label: e, value: n, unit: r, decimals: o, limits: i, history: a, asOf: c, ages: d, className: m, ...h }, p) {
4895
4897
  var C;
4896
- const f = Ge(), u = de(), l = Kd(n, a), g = l.verdict, b = fu(g, u), v = g !== "unknown", w = (((C = a == null ? void 0 : a.limits) == null ? void 0 : C.length) ?? 0) > 0 || !v, T = hu(l.deviation, o, f, u), j = v ? f.number(n, o) : u.statAbsentValue, $ = `${e}: ${v ? `${j}${r ? ` ${r}` : ""}` : b}${v && w && g !== "ok" ? `, ${b}` : ""}`;
4898
+ const f = Ge(), u = de(), l = Kd(n, i), g = l.verdict, b = fu(g, u), v = g !== "unknown", w = (((C = i == null ? void 0 : i.limits) == null ? void 0 : C.length) ?? 0) > 0 || !v, T = hu(l.deviation, o, f, u), j = v ? f.number(n, o) : u.statAbsentValue, $ = `${e}: ${v ? `${j}${r ? ` ${r}` : ""}` : b}${v && w && g !== "ok" ? `, ${b}` : ""}`;
4897
4899
  return /* @__PURE__ */ k(
4898
4900
  "div",
4899
4901
  {
@@ -4911,7 +4913,7 @@ const Yh = G(function({ label: e, value: n, unit: r, decimals: o, limits: a, his
4911
4913
  ] }),
4912
4914
  w && /* @__PURE__ */ s("span", { className: tt.verdict, "data-verdict": g, children: b }),
4913
4915
  T !== null && v && /* @__PURE__ */ s("span", { className: tt.deviation, children: T }),
4914
- i !== void 0 && i.length >= 2 && /* @__PURE__ */ s(la, { data: i, className: tt.history, "aria-hidden": "true" }),
4916
+ a !== void 0 && a.length >= 2 && /* @__PURE__ */ s(la, { data: a, className: tt.history, "aria-hidden": "true" }),
4915
4917
  c !== void 0 && d !== void 0 && /* @__PURE__ */ s(mu, { asOf: c ?? null, ages: d })
4916
4918
  ]
4917
4919
  }
@@ -4929,8 +4931,8 @@ function Mr(t, e) {
4929
4931
  return 2 * e.padding + e.grip + t * (e.gap + e.tool);
4930
4932
  }
4931
4933
  function un(t, e, n, r) {
4932
- const o = Mr(e, r), a = Wt(t), i = (a ? n.height : n.width) - 2 * r.margin, c = (a ? n.width : n.height) - 2 * r.margin;
4933
- return o <= i && r.thickness <= c;
4934
+ const o = Mr(e, r), i = Wt(t), a = (i ? n.height : n.width) - 2 * r.margin, c = (i ? n.width : n.height) - 2 * r.margin;
4935
+ return o <= a && r.thickness <= c;
4934
4936
  }
4935
4937
  function _u(t) {
4936
4938
  switch (t) {
@@ -4952,7 +4954,7 @@ function Un(t, e) {
4952
4954
  }
4953
4955
  function gu(t, e, n, r) {
4954
4956
  return [...qt].sort(
4955
- (o, a) => Un(t, o) - Un(t, a) || Gn.indexOf(o) - Gn.indexOf(a)
4957
+ (o, i) => Un(t, o) - Un(t, i) || Gn.indexOf(o) - Gn.indexOf(i)
4956
4958
  ).find((o) => un(o, e, n, r));
4957
4959
  }
4958
4960
  const vu = "_root_96fcb_22 _text_k1tvc_23", yu = "_strip_96fcb_31", bu = "_gripSlot_96fcb_112", wu = "_grip_96fcb_112 _ring_k1tvc_69", ku = "_tool_96fcb_162 _ring_k1tvc_69", Nu = "_inMode_96fcb_196", xu = "_refusal_96fcb_212", _t = {
@@ -4976,8 +4978,8 @@ const Xh = G(function({
4976
4978
  place: n,
4977
4979
  defaultPlace: r = Ar,
4978
4980
  onPlaceChange: o,
4979
- mode: a,
4980
- onModeChange: i,
4981
+ mode: i,
4982
+ onModeChange: a,
4981
4983
  onUse: c,
4982
4984
  label: d,
4983
4985
  className: m,
@@ -5112,7 +5114,7 @@ const Xh = G(function({
5112
5114
  ), ve = V ? 0 : le ? X.length - 1 : Nn(_e === -1 ? 0 : _e, X.length, q ? 1 : -1), Se = X[ve];
5113
5115
  Se !== void 0 && (he(Se.id), (Te = pe(Se.id)) == null || Te.focus());
5114
5116
  }, J = (x) => {
5115
- he(x.id), c == null || c(x.id), a !== void 0 && a !== x.id && (i == null || i(x.id));
5117
+ he(x.id), c == null || c(x.id), i !== void 0 && i !== x.id && (a == null || a(x.id));
5116
5118
  };
5117
5119
  ze(() => {
5118
5120
  const x = M.current;
@@ -5191,7 +5193,7 @@ const Xh = G(function({
5191
5193
  }
5192
5194
  ) }),
5193
5195
  e.map((x) => {
5194
- const q = a !== void 0 && a === x.id;
5196
+ const q = i !== void 0 && i === x.id;
5195
5197
  return /* @__PURE__ */ s(jd, { content: x.label, children: /* @__PURE__ */ s(
5196
5198
  "button",
5197
5199
  {
@@ -5226,24 +5228,24 @@ const Xh = G(function({
5226
5228
  ] });
5227
5229
  });
5228
5230
  function Kh({ open: t, onOpenChange: e, position: n, ariaLabel: r, children: o }) {
5229
- const a = I(null), i = I(null);
5231
+ const i = I(null), a = I(null);
5230
5232
  ze(() => {
5231
5233
  if (!t) return;
5232
5234
  const h = document.activeElement;
5233
- i.current = h instanceof HTMLElement && h !== document.body ? h : null;
5235
+ a.current = h instanceof HTMLElement && h !== document.body ? h : null;
5234
5236
  }, [t]);
5235
5237
  const c = I(null), d = ne((h) => {
5236
5238
  var p;
5237
5239
  c.current = h, (p = h == null ? void 0 : h.querySelector('[role="menuitem"]:not([disabled])')) == null || p.focus();
5238
5240
  }, []), m = () => {
5239
5241
  var h;
5240
- e(!1), (h = i.current) == null || h.focus();
5242
+ e(!1), (h = a.current) == null || h.focus();
5241
5243
  };
5242
5244
  return /* @__PURE__ */ k(Me, { children: [
5243
5245
  /* @__PURE__ */ s(
5244
5246
  "span",
5245
5247
  {
5246
- ref: a,
5248
+ ref: i,
5247
5249
  "data-context-menu-anchor": "",
5248
5250
  "aria-hidden": "true",
5249
5251
  style: { position: "fixed", left: `${n.x}px`, top: `${n.y}px`, width: 0, height: 0, pointerEvents: "none" }
@@ -5254,8 +5256,8 @@ function Kh({ open: t, onOpenChange: e, position: n, ariaLabel: r, children: o }
5254
5256
  {
5255
5257
  open: t,
5256
5258
  onOpenChange: e,
5257
- anchorRef: a,
5258
- focusRef: i,
5259
+ anchorRef: i,
5260
+ focusRef: a,
5259
5261
  offset: 0,
5260
5262
  role: "menu",
5261
5263
  ariaLabel: r,
@@ -5281,8 +5283,8 @@ const $u = "_wrapper_1bliv_8 _text_k1tvc_23", Su = "_sm_1bliv_20", Tu = "_input_
5281
5283
  thumb: Au,
5282
5284
  invalid: Mu,
5283
5285
  label: Cu
5284
- }, Qh = G(function({ label: e, size: n = "md", invalid: r, className: o, id: a, ...i }, c) {
5285
- const d = Ee(), m = a ?? (d == null ? void 0 : d.id), h = r ?? (d == null ? void 0 : d.invalid) ?? !1;
5286
+ }, Qh = G(function({ label: e, size: n = "md", invalid: r, className: o, id: i, ...a }, c) {
5287
+ const d = Ee(), m = i ?? (d == null ? void 0 : d.id), h = r ?? (d == null ? void 0 : d.invalid) ?? !1;
5286
5288
  return /* @__PURE__ */ k("label", { className: A(gt.wrapper, n === "sm" && gt.sm, o), htmlFor: m, children: [
5287
5289
  /* @__PURE__ */ s(
5288
5290
  "input",
@@ -5290,11 +5292,11 @@ const $u = "_wrapper_1bliv_8 _text_k1tvc_23", Su = "_sm_1bliv_20", Tu = "_input_
5290
5292
  ref: c,
5291
5293
  type: "checkbox",
5292
5294
  id: m,
5293
- "aria-describedby": i["aria-describedby"] ?? (d == null ? void 0 : d.describedBy),
5295
+ "aria-describedby": a["aria-describedby"] ?? (d == null ? void 0 : d.describedBy),
5294
5296
  "aria-required": (d == null ? void 0 : d.required) || void 0,
5295
5297
  "aria-invalid": h || void 0,
5296
5298
  className: A(gt.input, h && gt.invalid),
5297
- ...i,
5299
+ ...a,
5298
5300
  role: "switch"
5299
5301
  }
5300
5302
  ),
@@ -5315,7 +5317,7 @@ function At(t, e, n, r) {
5315
5317
  return Math.min(Cr(e, n, r), Math.max(e, o));
5316
5318
  }
5317
5319
  function Ou(t, e, n, r, o) {
5318
- const a = Math.max(o, Math.round((r - n) / 10 / o) * o);
5320
+ const i = Math.max(o, Math.round((r - n) / 10 / o) * o);
5319
5321
  switch (t) {
5320
5322
  case "ArrowRight":
5321
5323
  case "ArrowUp":
@@ -5324,9 +5326,9 @@ function Ou(t, e, n, r, o) {
5324
5326
  case "ArrowDown":
5325
5327
  return At(e - o, n, r, o);
5326
5328
  case "PageUp":
5327
- return At(e + a, n, r, o);
5329
+ return At(e + i, n, r, o);
5328
5330
  case "PageDown":
5329
- return At(e - a, n, r, o);
5331
+ return At(e - i, n, r, o);
5330
5332
  case "Home":
5331
5333
  return n;
5332
5334
  case "End":
@@ -5340,8 +5342,8 @@ const Zh = G(function({
5340
5342
  defaultValue: n,
5341
5343
  onChange: r,
5342
5344
  min: o = 0,
5343
- max: a = 100,
5344
- step: i = 1,
5345
+ max: i = 100,
5346
+ step: a = 1,
5345
5347
  marks: c,
5346
5348
  format: d,
5347
5349
  showValue: m = !0,
@@ -5352,11 +5354,11 @@ const Zh = G(function({
5352
5354
  onKeyDown: l,
5353
5355
  ...g
5354
5356
  }, b) {
5355
- const v = Ge(), y = Ee(), [w, T] = W(() => At(n ?? o, o, a, i)), j = e !== void 0, $ = j ? e : w, C = d ? d($) : v.number($, Dn(i)), P = (M) => a > o ? (M - o) / (a - o) * 100 : 0, _ = (M) => {
5357
+ const v = Ge(), y = Ee(), [w, T] = W(() => At(n ?? o, o, i, a)), j = e !== void 0, $ = j ? e : w, C = d ? d($) : v.number($, Dn(a)), P = (M) => i > o ? (M - o) / (i - o) * 100 : 0, _ = (M) => {
5356
5358
  M !== $ && (j || T(M), r == null || r(M));
5357
5359
  }, O = (M) => {
5358
5360
  if (l == null || l(M), M.defaultPrevented || u) return;
5359
- const S = Ou(M.key, $, o, a, i);
5361
+ const S = Ou(M.key, $, o, i, a);
5360
5362
  S !== void 0 && (M.preventDefault(), _(S));
5361
5363
  };
5362
5364
  return /* @__PURE__ */ k("div", { className: A(vt.slider, h), children: [
@@ -5376,10 +5378,10 @@ const Zh = G(function({
5376
5378
  ...g,
5377
5379
  style: { ...p, "--_fill": `${P($)}%` },
5378
5380
  min: o,
5379
- max: a,
5380
- step: i,
5381
+ max: i,
5382
+ step: a,
5381
5383
  value: $,
5382
- onChange: (M) => _(At(Number(M.target.value), o, a, i)),
5384
+ onChange: (M) => _(At(Number(M.target.value), o, i, a)),
5383
5385
  onKeyDown: O
5384
5386
  }
5385
5387
  ),
@@ -5396,15 +5398,15 @@ const Zh = G(function({
5396
5398
  fill: Wu,
5397
5399
  sweep: zu,
5398
5400
  label: ju
5399
- }, Jh = G(function({ value: e, label: n, valueText: r, showLabel: o = !1, className: a, ...i }, c) {
5401
+ }, Jh = G(function({ value: e, label: n, valueText: r, showLabel: o = !1, className: i, ...a }, c) {
5400
5402
  const d = Ge(), m = de(), h = e !== void 0, p = h ? xn(e) : 0;
5401
5403
  return /* @__PURE__ */ k(
5402
5404
  "div",
5403
5405
  {
5404
5406
  ref: c,
5405
- "aria-label": i["aria-labelledby"] ? void 0 : n ?? m.progress,
5406
- className: A(Ft.progress, a),
5407
- ...i,
5407
+ "aria-label": a["aria-labelledby"] ? void 0 : n ?? m.progress,
5408
+ className: A(Ft.progress, i),
5409
+ ...a,
5408
5410
  role: "progressbar",
5409
5411
  "aria-valuemin": h ? 0 : void 0,
5410
5412
  "aria-valuemax": h ? 100 : void 0,
@@ -5435,7 +5437,7 @@ const Zh = G(function({
5435
5437
  collapsed: Ju,
5436
5438
  collapseInner: ef,
5437
5439
  panel: tf
5438
- }, Rr = rt(null), em = G(function({ type: e = "single", value: n, defaultValue: r = [], onChange: o, headingLevel: a = 3, className: i, onKeyDown: c, children: d, ...m }, h) {
5440
+ }, Rr = rt(null), em = G(function({ type: e = "single", value: n, defaultValue: r = [], onChange: o, headingLevel: i = 3, className: a, onKeyDown: c, children: d, ...m }, h) {
5439
5441
  const [p, f] = W(r), u = n !== void 0, l = u ? n : p, g = (v) => {
5440
5442
  const w = l.includes(v) ? l.filter((T) => T !== v) : e === "single" ? [v] : [...l, v];
5441
5443
  u || f(w), o == null || o(w);
@@ -5453,10 +5455,10 @@ const Zh = G(function({
5453
5455
  }[v.key];
5454
5456
  $ && (v.preventDefault(), $.focus());
5455
5457
  };
5456
- return /* @__PURE__ */ s("div", { ref: h, className: A(Xe.accordion, i), ...m, "data-accordion": "", onKeyDown: b, children: /* @__PURE__ */ s(Rr.Provider, { value: { open: l, toggle: g, headingLevel: a }, children: d }) });
5457
- }), tm = G(function({ value: e, title: n, disabled: r = !1, className: o, children: a, ...i }, c) {
5458
+ return /* @__PURE__ */ s("div", { ref: h, className: A(Xe.accordion, a), ...m, "data-accordion": "", onKeyDown: b, children: /* @__PURE__ */ s(Rr.Provider, { value: { open: l, toggle: g, headingLevel: i }, children: d }) });
5459
+ }), tm = G(function({ value: e, title: n, disabled: r = !1, className: o, children: i, ...a }, c) {
5458
5460
  const d = je(Rr), m = xe(), h = `${m}-header`, p = `${m}-panel`, f = (d == null ? void 0 : d.open.includes(e)) ?? !1, u = `h${(d == null ? void 0 : d.headingLevel) ?? 3}`;
5459
- return /* @__PURE__ */ k("div", { ref: c, className: A(Xe.item, o), ...i, children: [
5461
+ return /* @__PURE__ */ k("div", { ref: c, className: A(Xe.item, o), ...a, children: [
5460
5462
  /* @__PURE__ */ s(u, { className: Xe.heading, children: /* @__PURE__ */ k(
5461
5463
  "button",
5462
5464
  {
@@ -5474,15 +5476,15 @@ const Zh = G(function({
5474
5476
  ]
5475
5477
  }
5476
5478
  ) }),
5477
- /* @__PURE__ */ s("div", { className: A(Xe.collapse, !f && Xe.collapsed), children: /* @__PURE__ */ s("div", { className: Xe.collapseInner, inert: !f || void 0, children: /* @__PURE__ */ s("div", { id: p, role: "region", "aria-labelledby": h, className: Xe.panel, children: a }) }) })
5479
+ /* @__PURE__ */ s("div", { className: A(Xe.collapse, !f && Xe.collapsed), children: /* @__PURE__ */ s("div", { className: Xe.collapseInner, inert: !f || void 0, children: /* @__PURE__ */ s("div", { id: p, role: "region", "aria-labelledby": h, className: Xe.panel, children: i }) }) })
5478
5480
  ] });
5479
5481
  });
5480
5482
  function nf(t, e, n, r) {
5481
- const o = t.length, a = (i) => t.slice(i).reduce((c, d) => c + d, 0);
5482
- if (o <= 2 || a(0) + (o - 1) * n <= r) return 0;
5483
- for (let i = 1; i < o - 2; i++) {
5484
- const c = o - i;
5485
- if (t[0] + e + a(1 + i) + c * n <= r) return i;
5483
+ const o = t.length, i = (a) => t.slice(a).reduce((c, d) => c + d, 0);
5484
+ if (o <= 2 || i(0) + (o - 1) * n <= r) return 0;
5485
+ for (let a = 1; a < o - 2; a++) {
5486
+ const c = o - a;
5487
+ if (t[0] + e + i(1 + a) + c * n <= r) return a;
5486
5488
  }
5487
5489
  return o - 2;
5488
5490
  }
@@ -5498,15 +5500,15 @@ const rf = "_breadcrumb_5vnnn_9 _text_k1tvc_23", of = "_list_5vnnn_15", sf = "_i
5498
5500
  separator: ff,
5499
5501
  measure: hf
5500
5502
  }, Ot = /* @__PURE__ */ s(Ct, { size: 8, className: we.separator }), nm = G(function({ items: e, className: n, ...r }, o) {
5501
- const a = de(), i = I(null), c = I(null), [d, m] = W(0), h = ne(() => {
5503
+ const i = de(), a = I(null), c = I(null), [d, m] = W(0), h = ne(() => {
5502
5504
  var T;
5503
- const g = i.current, b = c.current;
5505
+ const g = a.current, b = c.current;
5504
5506
  if (!g || !b) return;
5505
5507
  const v = Array.from(b.querySelectorAll("[data-measure-level]")).map((j) => j.offsetWidth), y = ((T = b.querySelector("[data-measure-more]")) == null ? void 0 : T.offsetWidth) ?? 0, w = Number.parseFloat(getComputedStyle(b).columnGap) || 0;
5506
5508
  m(nf(v, y, w, g.clientWidth));
5507
5509
  }, []);
5508
5510
  ze(() => h()), se(() => {
5509
- const g = i.current;
5511
+ const g = a.current;
5510
5512
  if (!g) return;
5511
5513
  const b = new ResizeObserver(() => h());
5512
5514
  return b.observe(g), () => b.disconnect();
@@ -5528,12 +5530,12 @@ const rf = "_breadcrumb_5vnnn_9 _text_k1tvc_23", of = "_list_5vnnn_15", sf = "_i
5528
5530
  }
5529
5531
  ) : g.onSelect && !v ? /* @__PURE__ */ s("button", { type: "button", className: we.link, onClick: g.onSelect, children: g.label }) : /* @__PURE__ */ s("span", { "aria-current": v, className: A(we.text, v && we.current), children: g.label });
5530
5532
  };
5531
- return /* @__PURE__ */ k("nav", { ref: Qe(i, o), "aria-label": a.breadcrumb, className: A(we.breadcrumb, n), ...r, children: [
5533
+ return /* @__PURE__ */ k("nav", { ref: Qe(a, o), "aria-label": i.breadcrumb, className: A(we.breadcrumb, n), ...r, children: [
5532
5534
  /* @__PURE__ */ s("ol", { className: we.list, children: e.map((g, b) => b > 0 && b <= d ? b > 1 ? null : /* @__PURE__ */ k("li", { className: we.item, children: [
5533
5535
  /* @__PURE__ */ s(
5534
5536
  ar,
5535
5537
  {
5536
- trigger: /* @__PURE__ */ s("button", { type: "button", className: we.more, "aria-label": a.breadcrumbFolded, children: "…" }),
5538
+ trigger: /* @__PURE__ */ s("button", { type: "button", className: we.more, "aria-label": i.breadcrumbFolded, children: "…" }),
5537
5539
  children: f.map((v, y) => /* @__PURE__ */ s(Mo, { disabled: !v.href && !v.onSelect, onSelect: () => u(v), children: v.label }, y))
5538
5540
  }
5539
5541
  ),
@@ -5564,8 +5566,8 @@ const rf = "_breadcrumb_5vnnn_9 _text_k1tvc_23", of = "_list_5vnnn_15", sf = "_i
5564
5566
  value: n,
5565
5567
  defaultValue: r = 50,
5566
5568
  onChange: o,
5567
- min: a = 0,
5568
- max: i = 100,
5569
+ min: i = 0,
5570
+ max: a = 100,
5569
5571
  step: c = 5,
5570
5572
  separatorLabel: d,
5571
5573
  className: m,
@@ -5574,7 +5576,7 @@ const rf = "_breadcrumb_5vnnn_9 _text_k1tvc_23", of = "_list_5vnnn_15", sf = "_i
5574
5576
  children: f,
5575
5577
  ...u
5576
5578
  }, l) {
5577
- const g = de(), b = xe(), v = I(null), y = I(null), w = (R) => Math.min(i, Math.max(a, R)), [T, j] = W(() => w(r)), $ = n !== void 0, C = w($ ? n : T), P = I(null), _ = I(null), O = e === "horizontal", M = (R) => {
5579
+ const g = de(), b = xe(), v = I(null), y = I(null), w = (R) => Math.min(a, Math.max(i, R)), [T, j] = W(() => w(r)), $ = n !== void 0, C = w($ ? n : T), P = I(null), _ = I(null), O = e === "horizontal", M = (R) => {
5578
5580
  const B = w(R);
5579
5581
  B !== C && ($ || j(B), o == null || o(B));
5580
5582
  }, S = (R) => {
@@ -5582,9 +5584,9 @@ const rf = "_breadcrumb_5vnnn_9 _text_k1tvc_23", of = "_list_5vnnn_15", sf = "_i
5582
5584
  const Y = {
5583
5585
  [O ? "ArrowRight" : "ArrowDown"]: () => C + c,
5584
5586
  [O ? "ArrowLeft" : "ArrowUp"]: () => C - c,
5585
- Home: () => a,
5586
- End: () => i,
5587
- Enter: () => C > a ? (P.current = C, a) : P.current ?? (a + i) / 2
5587
+ Home: () => i,
5588
+ End: () => a,
5589
+ Enter: () => C > i ? (P.current = C, i) : P.current ?? (i + a) / 2
5588
5590
  }[R.key];
5589
5591
  Y && (R.preventDefault(), M(Y()));
5590
5592
  }, E = (R) => O ? R.clientX : R.clientY, U = (R) => {
@@ -5617,8 +5619,8 @@ const rf = "_breadcrumb_5vnnn_9 _text_k1tvc_23", of = "_list_5vnnn_15", sf = "_i
5617
5619
  "aria-controls": b,
5618
5620
  "aria-orientation": O ? "vertical" : "horizontal",
5619
5621
  "aria-valuenow": Math.round(C),
5620
- "aria-valuemin": a,
5621
- "aria-valuemax": i,
5622
+ "aria-valuemin": i,
5623
+ "aria-valuemax": a,
5622
5624
  className: Dt.separator,
5623
5625
  onPointerDown: (R) => {
5624
5626
  R.button === 0 && (R.preventDefault(), R.currentTarget.focus(), R.currentTarget.setPointerCapture(R.pointerId), _.current = { pointer: R.pointerId, offset: E(R) - U(R.currentTarget) });
@@ -5652,7 +5654,7 @@ const rf = "_breadcrumb_5vnnn_9 _text_k1tvc_23", of = "_list_5vnnn_15", sf = "_i
5652
5654
  upcoming: Tf,
5653
5655
  description: Df,
5654
5656
  vertical: Af
5655
- }, Mf = (t, e, n) => t.failed ? "failed" : e < n ? "done" : e === n ? "current" : "upcoming", om = G(function({ steps: e, current: n, orientation: r = "horizontal", className: o, ...a }, i) {
5657
+ }, Mf = (t, e, n) => t.failed ? "failed" : e < n ? "done" : e === n ? "current" : "upcoming", om = G(function({ steps: e, current: n, orientation: r = "horizontal", className: o, ...i }, a) {
5656
5658
  const c = de(), d = {
5657
5659
  done: c.stepDone,
5658
5660
  current: null,
@@ -5662,9 +5664,9 @@ const rf = "_breadcrumb_5vnnn_9 _text_k1tvc_23", of = "_list_5vnnn_15", sf = "_i
5662
5664
  return /* @__PURE__ */ s(
5663
5665
  "ol",
5664
5666
  {
5665
- ref: i,
5667
+ ref: a,
5666
5668
  className: A(it.stepper, r === "vertical" && it.vertical, o),
5667
- ...a,
5669
+ ...i,
5668
5670
  "data-orientation": r,
5669
5671
  children: e.map((m, h) => {
5670
5672
  const p = Mf(m, h, n), f = d[p];
@@ -5708,11 +5710,11 @@ const rf = "_breadcrumb_5vnnn_9 _text_k1tvc_23", of = "_list_5vnnn_15", sf = "_i
5708
5710
  );
5709
5711
  });
5710
5712
  function Cf(t, e) {
5711
- const n = (e ?? "").split(",").map((a) => a.trim().toLowerCase()).filter(Boolean);
5713
+ const n = (e ?? "").split(",").map((i) => i.trim().toLowerCase()).filter(Boolean);
5712
5714
  if (n.length === 0) return !0;
5713
5715
  const r = t.name.toLowerCase(), o = t.type.toLowerCase();
5714
5716
  return n.some(
5715
- (a) => a.startsWith(".") ? r.endsWith(a) : a.endsWith("/*") ? o.startsWith(a.slice(0, -1)) : o === a
5717
+ (i) => i.startsWith(".") ? r.endsWith(i) : i.endsWith("/*") ? o.startsWith(i.slice(0, -1)) : o === i
5716
5718
  );
5717
5719
  }
5718
5720
  const Rf = "_zone_1su6s_12 _text_k1tvc_23", Lf = "_dragging_1su6s_27", Pf = "_invalidZone_1su6s_34", Ef = "_key_1su6s_38", Ff = "_input_1su6s_43", If = "_face_1su6s_53", Bf = "_invalid_1su6s_34", Of = "_hint_1su6s_102", Hf = "_list_1su6s_108", qf = "_file_1su6s_118", Wf = "_name_1su6s_127", zf = "_size_1su6s_134", jf = "_remove_1su6s_143 _ring_k1tvc_69", Gf = "_rejected_1su6s_172", Be = {
@@ -5730,7 +5732,7 @@ const Rf = "_zone_1su6s_12 _text_k1tvc_23", Lf = "_dragging_1su6s_27", Pf = "_in
5730
5732
  size: zf,
5731
5733
  remove: jf,
5732
5734
  rejected: Gf
5733
- }, Uf = (t, e) => t < 1e6 ? `${e.number(Math.max(t > 0 ? 1 : 0, Math.round(t / 1e3)), 0)} kB` : `${e.number(t / 1e6, 1)} MB`, sm = G(function({ value: e, onChange: n, invalid: r, accept: o, multiple: a = !1, disabled: i = !1, className: c, id: d, ...m }, h) {
5735
+ }, Uf = (t, e) => t < 1e6 ? `${e.number(Math.max(t > 0 ? 1 : 0, Math.round(t / 1e3)), 0)} kB` : `${e.number(t / 1e6, 1)} MB`, sm = G(function({ value: e, onChange: n, invalid: r, accept: o, multiple: i = !1, disabled: a = !1, className: c, id: d, ...m }, h) {
5734
5736
  const p = de(), f = Ge(), u = Ee(), l = I(null), [g, b] = W([]), [v, y] = W([]), [w, T] = W(!1), j = e !== void 0, $ = j ? e : g, C = r ?? (u == null ? void 0 : u.invalid) ?? !1;
5735
5737
  se(() => {
5736
5738
  const S = l.current;
@@ -5745,28 +5747,29 @@ const Rf = "_zone_1su6s_12 _text_k1tvc_23", Lf = "_dragging_1su6s_27", Pf = "_in
5745
5747
  j || b(S), n == null || n(S);
5746
5748
  }, _ = (S) => {
5747
5749
  const E = S.filter((D) => Cf(D, o)), U = S.filter((D) => !E.includes(D)).map((D) => D.name);
5748
- y(U), U.length > 0 && lt(U.map((D) => p.fileNotAccepted(D)).join(". "), l.current), P(a ? E : E.slice(0, 1));
5750
+ y(U), U.length > 0 && lt(U.map((D) => p.fileNotAccepted(D)).join(". "), l.current), P(i ? E : E.slice(0, 1));
5749
5751
  }, O = (S) => {
5750
5752
  var E;
5751
5753
  return Array.from(((E = S.dataTransfer) == null ? void 0 : E.types) ?? []).includes("Files");
5752
- }, M = a ? p.chooseFiles : p.chooseFile;
5754
+ }, M = i ? p.chooseFiles : p.chooseFile;
5753
5755
  return /* @__PURE__ */ k(
5754
5756
  "div",
5755
5757
  {
5756
5758
  className: A(Be.zone, w && Be.dragging, C && Be.invalidZone, c),
5757
5759
  "data-dragging": w ? "" : void 0,
5760
+ "aria-disabled": a || void 0,
5758
5761
  onDragEnter: (S) => {
5759
- O(S) && (S.preventDefault(), i || T(!0));
5762
+ O(S) && (S.preventDefault(), a || T(!0));
5760
5763
  },
5761
5764
  onDragOver: (S) => {
5762
- O(S) && (S.preventDefault(), S.dataTransfer.dropEffect = i ? "none" : "copy");
5765
+ O(S) && (S.preventDefault(), S.dataTransfer.dropEffect = a ? "none" : "copy");
5763
5766
  },
5764
5767
  onDragLeave: (S) => {
5765
5768
  S.currentTarget.contains(S.relatedTarget) || T(!1);
5766
5769
  },
5767
5770
  onDrop: (S) => {
5768
5771
  var E;
5769
- S.preventDefault(), T(!1), i || _(Array.from(((E = S.dataTransfer) == null ? void 0 : E.files) ?? []));
5772
+ S.preventDefault(), T(!1), a || _(Array.from(((E = S.dataTransfer) == null ? void 0 : E.files) ?? []));
5770
5773
  },
5771
5774
  children: [
5772
5775
  /* @__PURE__ */ k("span", { className: Be.key, children: [
@@ -5783,14 +5786,14 @@ const Rf = "_zone_1su6s_12 _text_k1tvc_23", Lf = "_dragging_1su6s_27", Pf = "_in
5783
5786
  className: A(Be.input, C && Be.invalid),
5784
5787
  ...m,
5785
5788
  accept: o,
5786
- multiple: a,
5787
- disabled: i,
5789
+ multiple: i,
5790
+ disabled: a,
5788
5791
  onChange: (S) => _(Array.from(S.target.files ?? []))
5789
5792
  }
5790
5793
  ),
5791
5794
  /* @__PURE__ */ s("span", { className: Be.face, "aria-hidden": "true", children: M })
5792
5795
  ] }),
5793
- /* @__PURE__ */ s("span", { className: Be.hint, children: a ? p.dropFiles : p.dropFile }),
5796
+ /* @__PURE__ */ s("span", { className: Be.hint, children: i ? p.dropFiles : p.dropFile }),
5794
5797
  $.length > 0 && /* @__PURE__ */ s("ul", { className: Be.list, children: $.map((S, E) => /* @__PURE__ */ k("li", { className: Be.file, children: [
5795
5798
  /* @__PURE__ */ s("span", { className: Be.name, children: S.name }),
5796
5799
  /* @__PURE__ */ s("span", { className: Be.size, children: Uf(S.size, f) }),
@@ -5800,7 +5803,7 @@ const Rf = "_zone_1su6s_12 _text_k1tvc_23", Lf = "_dragging_1su6s_27", Pf = "_in
5800
5803
  type: "button",
5801
5804
  className: Be.remove,
5802
5805
  "aria-label": p.removeFile(S.name),
5803
- disabled: i,
5806
+ disabled: a,
5804
5807
  onClick: () => {
5805
5808
  y([]), P($.filter((U, D) => D !== E));
5806
5809
  },