@indxsearch/systm 2.24.0 → 2.25.0-beta.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/index.es.js CHANGED
@@ -460,8 +460,8 @@ var oe = {
460
460
  ...o
461
461
  });
462
462
  }, ce = {
463
- container: "_container_dlzj1_1",
464
- default: "_default_dlzj1_5"
463
+ container: "_container_mek7k_1",
464
+ default: "_default_mek7k_5"
465
465
  };
466
466
  // src/components/Base/Base.tsx
467
467
  function le({ children: e, className: t }) {
@@ -608,12 +608,13 @@ function me({ label: t, error: n, className: r = "", showSearchIcon: i = !0, sea
608
608
  });
609
609
  }
610
610
  var he = {
611
- wrapper: "_wrapper_roite_1",
612
- label: "_label_roite_10",
613
- input: "_input_roite_15",
614
- error: "_error_roite_68",
615
- errorText: "_errorText_roite_76",
616
- borderBottom: "_borderBottom_roite_82"
611
+ wrapper: "_wrapper_o3xpv_1",
612
+ label: "_label_o3xpv_10",
613
+ input: "_input_o3xpv_15",
614
+ error: "_error_o3xpv_68",
615
+ errorText: "_errorText_o3xpv_76",
616
+ ghost: "_ghost_o3xpv_84",
617
+ borderBottom: "_borderBottom_o3xpv_109"
617
618
  };
618
619
  // src/components/InputField/InputField.tsx
619
620
  function ge({ label: t, error: n, className: r = "", isValid: i = !0, variant: a = "default", id: o, ...s }) {
@@ -631,7 +632,7 @@ function ge({ label: t, error: n, className: r = "", isValid: i = !0, variant: a
631
632
  }),
632
633
  /* @__PURE__ */ h("input", {
633
634
  id: l,
634
- className: `${he.input} ${a === "borderBottom" ? he.borderBottom : ""} ${d ? he.error : ""}`,
635
+ className: `${he.input} ${a === "borderBottom" ? he.borderBottom : a === "ghost" ? he.ghost : ""} ${d ? he.error : ""}`,
635
636
  "aria-invalid": d ? "true" : "false",
636
637
  "aria-describedby": n ? u : void 0,
637
638
  ...s
@@ -706,19 +707,20 @@ var _e = {
706
707
  ]
707
708
  });
708
709
  }, G = {
709
- label: "_label_1o3ls_1",
710
- basetrack: "_basetrack_1o3ls_8",
711
- selectedtrack: "_selectedtrack_1o3ls_36",
712
- livetrack: "_livetrack_1o3ls_43",
713
- livetrackFaceted: "_livetrackFaceted_1o3ls_49",
714
- livetrackDefault: "_livetrackDefault_1o3ls_52",
715
- thumbs: "_thumbs_1o3ls_55",
716
- disabled: "_disabled_1o3ls_89",
717
- stepmarks: "_stepmarks_1o3ls_94",
718
- stepmark: "_stepmark_1o3ls_94",
719
- stepmarksInline: "_stepmarksInline_1o3ls_113",
720
- stepmarksBelow: "_stepmarksBelow_1o3ls_120",
721
- basetrackStepsBelow: "_basetrackStepsBelow_1o3ls_125"
710
+ label: "_label_1bi7u_1",
711
+ basetrack: "_basetrack_1bi7u_8",
712
+ selectedtrack: "_selectedtrack_1bi7u_39",
713
+ livetrack: "_livetrack_1bi7u_46",
714
+ livetrackFaceted: "_livetrackFaceted_1bi7u_52",
715
+ livetrackDefault: "_livetrackDefault_1bi7u_55",
716
+ thumbs: "_thumbs_1bi7u_58",
717
+ rootDisabled: "_rootDisabled_1bi7u_95",
718
+ disabled: "_disabled_1bi7u_98",
719
+ stepmarks: "_stepmarks_1bi7u_102",
720
+ stepmark: "_stepmark_1bi7u_102",
721
+ stepmarksInline: "_stepmarksInline_1bi7u_121",
722
+ stepmarksBelow: "_stepmarksBelow_1bi7u_128",
723
+ basetrackStepsBelow: "_basetrackStepsBelow_1bi7u_133"
722
724
  }, xe = 50, Se = (t) => {
723
725
  let { min: n, max: r, step: i = 1, disabled: a = !1, className: o, activeMin: s, activeMax: c, isFaceted: l = !1, highlightFaceted: u = !0, stepMarks: d, onChange: f, onFinalChange: p, label: m, "aria-label": _, id: v } = t, y = e.useId(), b = v || y;
724
726
  if (!(Number.isFinite(n) && Number.isFinite(r) && r > n)) return /* @__PURE__ */ g("div", {
@@ -742,7 +744,7 @@ var _e = {
742
744
  if ("isRange" in t && t.isRange) {
743
745
  let e = t.value, [u, d] = e;
744
746
  return /* @__PURE__ */ g("div", {
745
- className: o,
747
+ className: `${o ?? ""} ${a ? G.rootDisabled : ""}`.trim() || void 0,
746
748
  children: [m && /* @__PURE__ */ h("label", {
747
749
  htmlFor: b,
748
750
  className: G.label,
@@ -805,7 +807,7 @@ var _e = {
805
807
  {
806
808
  let e = t.value;
807
809
  return /* @__PURE__ */ g("div", {
808
- className: o,
810
+ className: `${o ?? ""} ${a ? G.rootDisabled : ""}`.trim() || void 0,
809
811
  children: [m && /* @__PURE__ */ h("label", {
810
812
  htmlFor: b,
811
813
  className: G.label,
@@ -866,18 +868,18 @@ var _e = {
866
868
  });
867
869
  }
868
870
  }, Ce = {
869
- row: "_row_qu5dp_2",
870
- default: "_default_qu5dp_34",
871
- micro: "_micro_qu5dp_40",
872
- fill: "_fill_qu5dp_49",
873
- label: "_label_qu5dp_63",
874
- value: "_value_qu5dp_64",
875
- stepmarks: "_stepmarks_qu5dp_87",
876
- stepmark: "_stepmark_qu5dp_87",
877
- handle: "_handle_qu5dp_106",
878
- line: "_line_qu5dp_104",
879
- keyboardFocus: "_keyboardFocus_qu5dp_144",
880
- disabled: "_disabled_qu5dp_149"
871
+ row: "_row_1kxpx_2",
872
+ default: "_default_1kxpx_37",
873
+ micro: "_micro_1kxpx_43",
874
+ fill: "_fill_1kxpx_52",
875
+ label: "_label_1kxpx_66",
876
+ value: "_value_1kxpx_67",
877
+ stepmarks: "_stepmarks_1kxpx_90",
878
+ stepmark: "_stepmark_1kxpx_90",
879
+ handle: "_handle_1kxpx_109",
880
+ line: "_line_1kxpx_107",
881
+ keyboardFocus: "_keyboardFocus_1kxpx_147",
882
+ disabled: "_disabled_1kxpx_152"
881
883
  }, we = 50, Te = 6, Ee = 8, De = ({ min: t, max: n, step: r = 1, value: i, onChange: a, onFinalChange: o, label: s, format: c, showValue: l = !0, stepMarks: u = !1, disabled: d = !1, size: f = "default", className: p, "aria-label": m, id: _ }) => {
882
884
  let v = e.useId(), y = _ || v, [b, x] = e.useState(!1), S = Number.isFinite(t) && Number.isFinite(n) && n > t, C = [
883
885
  Ce.row,
@@ -983,157 +985,327 @@ var _e = {
983
985
  }
984
986
  });
985
987
  }, Oe = {
986
- row: "_row_110q6_2",
987
- label: "_label_110q6_9",
988
- ruler: "_ruler_110q6_19",
989
- keyboardFocus: "_keyboardFocus_110q6_33",
990
- ticks: "_ticks_110q6_40",
991
- handle: "_handle_110q6_59",
992
- field: "_field_110q6_71",
993
- disabled: "_disabled_110q6_80"
994
- }, ke = 8, Ae = ({ value: t, onChange: n, onFinalChange: r, step: i = 1, min: a, max: o, label: s, labelWidth: c, disabled: l = !1, fieldWidth: u = "70px", className: d, "aria-label": f, id: p }) => {
995
- let m = e.useId(), _ = p || m, v = e.useMemo(() => {
988
+ row: "_row_1wior_2",
989
+ label: "_label_1wior_9",
990
+ ruler: "_ruler_1wior_19",
991
+ keyboardFocus: "_keyboardFocus_1wior_33",
992
+ ticks: "_ticks_1wior_40",
993
+ mark: "_mark_1wior_60",
994
+ markWarning: "_markWarning_1wior_70",
995
+ markSignal: "_markSignal_1wior_74",
996
+ handle: "_handle_1wior_81",
997
+ field: "_field_1wior_93",
998
+ disabled: "_disabled_1wior_102"
999
+ }, ke = 8, Ae = ({ value: t, onChange: n, onFinalChange: r, step: i = 1, min: a, max: o, label: s, labelWidth: c, disabled: l = !1, fieldWidth: u = "70px", className: d, "aria-label": f, id: p, marks: m }) => {
1000
+ let _ = e.useId(), v = p || _, y = e.useMemo(() => {
996
1001
  let e = String(i), t = e.indexOf(".");
997
1002
  return t < 0 ? 0 : e.length - t - 1;
998
- }, [i]), y = e.useCallback((e) => {
1003
+ }, [i]), b = e.useCallback((e) => {
999
1004
  let t = e;
1000
- return typeof a == "number" && (t = Math.max(a, t)), typeof o == "number" && (t = Math.min(o, t)), Number(t.toFixed(v));
1005
+ return typeof a == "number" && (t = Math.max(a, t)), typeof o == "number" && (t = Math.min(o, t)), Number(t.toFixed(y));
1001
1006
  }, [
1002
1007
  a,
1003
1008
  o,
1004
- v
1005
- ]), b = e.useRef(null), [x, S] = e.useState(!1), [C, w] = e.useState(!1), T = e.useRef({
1009
+ y
1010
+ ]), x = e.useRef(null), [S, C] = e.useState(!1), [w, T] = e.useState(!1), E = e.useRef({
1006
1011
  value: t,
1007
1012
  onChange: n,
1008
1013
  onFinalChange: r,
1009
- clamp: y,
1014
+ clamp: b,
1010
1015
  step: i
1011
1016
  });
1012
- T.current = {
1017
+ E.current = {
1013
1018
  value: t,
1014
1019
  onChange: n,
1015
1020
  onFinalChange: r,
1016
- clamp: y,
1021
+ clamp: b,
1017
1022
  step: i
1018
- }, e.useEffect(() => () => b.current?.stop(), []);
1019
- let E = (e) => {
1023
+ }, e.useEffect(() => () => x.current?.stop(), []);
1024
+ let D = (e) => {
1020
1025
  if (l || e.button !== 0) return;
1021
- e.preventDefault(), w(!1), b.current?.stop();
1026
+ e.preventDefault(), T(!1), x.current?.stop();
1022
1027
  let n = e.currentTarget, r = e.pointerId;
1023
1028
  try {
1024
1029
  n.setPointerCapture(r);
1025
1030
  } catch {}
1026
1031
  let i = (e) => {
1027
- let t = b.current;
1032
+ let t = x.current;
1028
1033
  if (!t) return;
1029
- let { value: n, onChange: r, clamp: i, step: a } = T.current, o = Math.round((e.clientX - t.x) / ke), s = i(t.value + o * a);
1034
+ let { value: n, onChange: r, clamp: i, step: a } = E.current, o = Math.round((e.clientX - t.x) / ke), s = i(t.value - o * a);
1030
1035
  o !== 0 && (t.moved = !0), s !== n && r(s);
1031
1036
  }, a = () => {
1032
- let e = b.current;
1033
- b.current = null, window.removeEventListener("pointermove", i), window.removeEventListener("pointerup", a), window.removeEventListener("pointercancel", a), window.removeEventListener("blur", a);
1037
+ let e = x.current;
1038
+ x.current = null, window.removeEventListener("pointermove", i), window.removeEventListener("pointerup", a), window.removeEventListener("pointercancel", a), window.removeEventListener("blur", a);
1034
1039
  try {
1035
1040
  n.hasPointerCapture(r) && n.releasePointerCapture(r);
1036
1041
  } catch {}
1037
- S(!1), e?.moved && T.current.onFinalChange?.(T.current.value);
1042
+ C(!1), e?.moved && E.current.onFinalChange?.(E.current.value);
1038
1043
  };
1039
- window.addEventListener("pointermove", i), window.addEventListener("pointerup", a), window.addEventListener("pointercancel", a), window.addEventListener("blur", a), b.current = {
1044
+ window.addEventListener("pointermove", i), window.addEventListener("pointerup", a), window.addEventListener("pointercancel", a), window.addEventListener("blur", a), x.current = {
1040
1045
  x: e.clientX,
1041
1046
  value: t,
1042
1047
  moved: !1,
1043
1048
  stop: a
1044
- }, S(!0), n.focus();
1045
- }, D = (e) => {
1049
+ }, C(!0), n.focus();
1050
+ }, O = (e) => {
1046
1051
  if (l) return;
1047
- w(!0);
1052
+ T(!0);
1048
1053
  let s = e.shiftKey ? 10 : 1, c;
1049
- e.key === "ArrowRight" || e.key === "ArrowUp" ? c = y(t + i * s) : e.key === "ArrowLeft" || e.key === "ArrowDown" ? c = y(t - i * s) : e.key === "Home" && typeof a == "number" ? c = a : e.key === "End" && typeof o == "number" && (c = o), c !== void 0 && (e.preventDefault(), c !== t && (n(c), r?.(c)));
1050
- }, [O, k] = e.useState(null), A = () => {
1051
- if (O === null) return;
1052
- let e = Number(O.replace(",", "."));
1053
- if (k(null), O.trim() === "" || !Number.isFinite(e)) return;
1054
- let i = y(e);
1054
+ e.key === "ArrowRight" || e.key === "ArrowUp" ? c = b(t + i * s) : e.key === "ArrowLeft" || e.key === "ArrowDown" ? c = b(t - i * s) : e.key === "Home" && typeof a == "number" ? c = a : e.key === "End" && typeof o == "number" && (c = o), c !== void 0 && (e.preventDefault(), c !== t && (n(c), r?.(c)));
1055
+ }, [k, A] = e.useState(null), j = () => {
1056
+ if (k === null) return;
1057
+ let e = Number(k.replace(",", "."));
1058
+ if (A(null), k.trim() === "" || !Number.isFinite(e)) return;
1059
+ let i = b(e);
1055
1060
  i !== t && (n(i), r?.(i));
1056
- }, j = -(t / i * ke % 40), M = (e) => (e - t) / i * ke, N = typeof a == "number" ? `max(0px, calc(50% + ${M(a)}px))` : "0px", P = typeof o == "number" ? `max(0px, calc(50% - ${M(o)}px))` : "0px", F = {
1057
- "--scrub-shift": `${j}px`,
1061
+ }, M = -(t / i * ke % 40), N = (e) => (e - t) / i * ke, P = typeof a == "number" ? `max(0px, calc(50% + ${N(a)}px))` : "0px", F = typeof o == "number" ? `max(0px, calc(50% - ${N(o)}px))` : "0px", I = {
1062
+ "--scrub-shift": `${M}px`,
1058
1063
  "--scrub-tick": `${ke}px`,
1059
1064
  "--scrub-period": "40px",
1060
- "--scrub-clip": `inset(0 ${P} 0 ${N})`
1061
- }, I = [
1065
+ "--scrub-clip": `inset(0 ${F} 0 ${P})`
1066
+ }, L = [
1062
1067
  Oe.row,
1063
1068
  l ? Oe.disabled : "",
1064
1069
  d ?? ""
1065
1070
  ].filter(Boolean).join(" ");
1066
1071
  return /* @__PURE__ */ g("div", {
1067
- className: I,
1072
+ className: L,
1068
1073
  children: [
1069
1074
  s && /* @__PURE__ */ h("label", {
1070
- htmlFor: _,
1075
+ htmlFor: v,
1071
1076
  className: Oe.label,
1072
1077
  style: c ? { width: c } : void 0,
1073
1078
  children: s
1074
1079
  }),
1075
1080
  /* @__PURE__ */ g("div", {
1076
- className: `${Oe.ruler} ${x ? Oe.dragging : ""} ${C ? Oe.keyboardFocus : ""} ${l ? "cursor-not-allowed" : "cursor-resize-ew"}`,
1077
- style: F,
1081
+ className: `${Oe.ruler} ${S ? Oe.dragging : ""} ${w ? Oe.keyboardFocus : ""} ${l ? "cursor-not-allowed" : "cursor-resize-ew"}`,
1082
+ style: I,
1078
1083
  role: "slider",
1079
1084
  tabIndex: l ? -1 : 0,
1080
1085
  "aria-label": f || s,
1081
1086
  "aria-valuenow": t,
1087
+ "aria-valuetext": m?.find((e) => e.value === t)?.label ? `${t}, ${m.find((e) => e.value === t).label}` : void 0,
1082
1088
  "aria-valuemin": a,
1083
1089
  "aria-valuemax": o,
1084
1090
  "aria-disabled": l || void 0,
1085
- onPointerDown: E,
1086
- onKeyDown: D,
1087
- onBlur: () => w(!1),
1088
- children: [/* @__PURE__ */ h("div", {
1089
- className: Oe.ticks,
1090
- "aria-hidden": "true"
1091
- }), /* @__PURE__ */ h("div", {
1092
- className: Oe.handle,
1093
- "aria-hidden": "true"
1094
- })]
1091
+ onPointerDown: D,
1092
+ onKeyDown: O,
1093
+ onBlur: () => T(!1),
1094
+ children: [
1095
+ /* @__PURE__ */ h("div", {
1096
+ className: Oe.ticks,
1097
+ "aria-hidden": "true"
1098
+ }),
1099
+ m?.map((e) => /* @__PURE__ */ h("div", {
1100
+ className: `${Oe.mark} ${e.tone === "warning" ? Oe.markWarning : e.tone === "signal" ? Oe.markSignal : ""}`,
1101
+ style: { left: `calc(50% + ${N(e.value)}px)` },
1102
+ "aria-hidden": "true"
1103
+ }, e.value)),
1104
+ /* @__PURE__ */ h("div", {
1105
+ className: Oe.handle,
1106
+ "aria-hidden": "true"
1107
+ })
1108
+ ]
1095
1109
  }),
1096
1110
  /* @__PURE__ */ h(ge, {
1097
- id: _,
1111
+ id: v,
1098
1112
  className: Oe.field,
1099
1113
  style: { width: u },
1100
1114
  type: "text",
1101
1115
  inputMode: "decimal",
1102
1116
  "aria-label": s ? `${s}, value` : f,
1103
- value: O ?? String(t),
1117
+ value: k ?? String(t),
1104
1118
  disabled: l,
1105
- onFocus: () => k(String(t)),
1106
- onChange: (e) => k(e.target.value),
1107
- onBlur: A,
1119
+ onFocus: () => A(String(t)),
1120
+ onChange: (e) => A(e.target.value),
1121
+ onBlur: j,
1108
1122
  onKeyDown: (e) => {
1109
- e.key === "Enter" && e.currentTarget.blur(), e.key === "Escape" && k(null);
1123
+ e.key === "Enter" && e.currentTarget.blur(), e.key === "Escape" && A(null);
1110
1124
  }
1111
1125
  })
1112
1126
  ]
1113
1127
  });
1114
1128
  }, je = {
1115
- wrapper: "_wrapper_y1e72_1",
1116
- label: "_label_y1e72_7",
1117
- trigger: "_trigger_y1e72_12",
1118
- micro: "_micro_y1e72_28",
1119
- default: "_default_y1e72_34",
1120
- large: "_large_y1e72_40",
1121
- ghost: "_ghost_y1e72_62",
1122
- icon: "_icon_y1e72_74",
1123
- sizer: "_sizer_y1e72_78",
1124
- sizerHidden: "_sizerHidden_y1e72_87",
1125
- content: "_content_y1e72_99",
1126
- viewport: "_viewport_y1e72_107",
1127
- item: "_item_y1e72_113",
1128
- itemIndicator: "_itemIndicator_y1e72_136"
1129
- }, Me = ({ value: t, onValueChange: n, options: r, placeholder: i = "Select...", className: a = "", disabled: o = !1, label: s, size: c = "default", variant: l = "default", "aria-label": u, id: d }) => {
1129
+ sliderField: "_sliderField_bkzkz_2",
1130
+ slider: "_slider_bkzkz_2",
1131
+ field: "_field_bkzkz_15"
1132
+ }, Me = (e) => String(Math.round(e * 1e3) / 1e3);
1133
+ function Ne({ value: t, onChange: n, min: r, max: i, step: a = 1, fieldMin: o, fieldMax: s, fieldStep: c, format: l = Me, disabled: u = !1, className: d = "", "aria-label": f }) {
1134
+ let [p, m] = e.useState(null), _ = (e) => {
1135
+ m(e);
1136
+ let t = parseFloat(e.replace(",", "."));
1137
+ Number.isFinite(t) && n(Math.min(s ?? Infinity, Math.max(o ?? -Infinity, t)));
1138
+ };
1139
+ return /* @__PURE__ */ g("div", {
1140
+ className: `${je.sliderField} ${d}`,
1141
+ children: [/* @__PURE__ */ h(Se, {
1142
+ className: je.slider,
1143
+ min: r,
1144
+ max: i,
1145
+ step: a,
1146
+ disabled: u,
1147
+ "aria-label": f,
1148
+ value: Math.min(i, Math.max(r, t)),
1149
+ onChange: (e) => n(Math.round(e * 1e10) / 1e10)
1150
+ }), /* @__PURE__ */ h(ge, {
1151
+ variant: "ghost",
1152
+ type: "number",
1153
+ className: je.field,
1154
+ disabled: u,
1155
+ step: c ?? a,
1156
+ min: o,
1157
+ max: s,
1158
+ "aria-label": `${f}, value`,
1159
+ value: p ?? l(t),
1160
+ onChange: (e) => _(e.target.value),
1161
+ onBlur: () => m(null)
1162
+ })]
1163
+ });
1164
+ }
1165
+ var Pe = {
1166
+ histrange: "_histrange_104e8_2",
1167
+ bars: "_bars_104e8_10",
1168
+ bar: "_bar_104e8_10",
1169
+ barIn: "_barIn_104e8_27",
1170
+ ends: "_ends_104e8_31",
1171
+ upto: "_upto_104e8_53",
1172
+ disabled: "_disabled_104e8_61"
1173
+ }, Fe = (e) => String(Number(e.toFixed(8)));
1174
+ function Ie(e, t) {
1175
+ let n = e.filter(([e]) => Number.isFinite(e)).slice().sort((e, t) => e[0] - t[0]);
1176
+ if (n.length === 0) return [];
1177
+ if (n.length <= t) return n.map(([e, t]) => ({
1178
+ from: e,
1179
+ to: e,
1180
+ count: t
1181
+ }));
1182
+ let r = n[0][0], i = n[n.length - 1][0], a = (i - r) / t, o = [], s = 0;
1183
+ for (let e = 0; e < t; e++) {
1184
+ let c = e === t - 1 ? Infinity : r + (e + 1) * a, l = s, u = 0;
1185
+ for (; s < n.length && n[s][0] < c;) u += n[s++][1];
1186
+ o.push(s > l ? {
1187
+ from: n[l][0],
1188
+ to: n[s - 1][0],
1189
+ count: u
1190
+ } : {
1191
+ from: r + e * a,
1192
+ to: Math.min(i, r + (e + 1) * a),
1193
+ count: 0
1194
+ });
1195
+ }
1196
+ return o;
1197
+ }
1198
+ function Le({ values: e, value: t, onChange: n, maxBars: r = 30, step: i, disabled: a = !1, className: o = "", "aria-label": s }) {
1199
+ let c = u(() => Ie(e, r), [e, r]), l = Math.max(1, ...c.map((e) => e.count)), p = d(null), [m, _] = f(null), [v, y] = f({}), b = t.from != null || t.to != null, x = (e, n) => m ? n >= Math.min(...m) && n <= Math.max(...m) : b && (t.from == null || e.to >= t.from) && (t.to == null || e.from <= t.to), S = (e) => {
1200
+ let t = p.current.getBoundingClientRect();
1201
+ return Math.max(0, Math.min(c.length - 1, Math.floor((e - t.left) / t.width * c.length)));
1202
+ }, C = (e, r) => {
1203
+ let i = c[Math.min(e, r)], a = c[Math.max(e, r)];
1204
+ e === r && t.from === i.from && t.to === a.to ? n({
1205
+ from: null,
1206
+ to: null
1207
+ }) : n({
1208
+ from: i.from,
1209
+ to: a.to
1210
+ });
1211
+ }, w = (e) => {
1212
+ if (a || e.button !== 0 || c.length === 0) return;
1213
+ e.preventDefault();
1214
+ let t = S(e.clientX);
1215
+ _([t, t]), e.currentTarget.setPointerCapture(e.pointerId);
1216
+ }, T = (e) => {
1217
+ if (!m) return;
1218
+ let t = S(e.clientX);
1219
+ t !== m[1] && _([m[0], t]);
1220
+ }, E = () => {
1221
+ m && (C(m[0], m[1]), _(null));
1222
+ }, D = (e, r) => {
1223
+ if (y((t) => ({
1224
+ ...t,
1225
+ [e]: void 0
1226
+ })), r.trim() === "") {
1227
+ n({
1228
+ ...t,
1229
+ [e]: null
1230
+ });
1231
+ return;
1232
+ }
1233
+ let i = Number(r.replace(",", "."));
1234
+ if (!Number.isFinite(i)) return;
1235
+ let a = {
1236
+ ...t,
1237
+ [e]: i
1238
+ };
1239
+ a.from != null && a.to != null && a.from > a.to && (a = {
1240
+ from: a.to,
1241
+ to: a.from
1242
+ }), n(a);
1243
+ }, O = (e, n) => /* @__PURE__ */ h(ge, {
1244
+ variant: "ghost",
1245
+ type: "number",
1246
+ step: i ?? "any",
1247
+ disabled: a,
1248
+ className: e === "to" ? Pe.upto : void 0,
1249
+ placeholder: n == null ? void 0 : Fe(n),
1250
+ "aria-label": `${s}, ${e}`,
1251
+ value: v[e] ?? (t[e] == null ? "" : Fe(t[e])),
1252
+ onChange: (t) => y((n) => ({
1253
+ ...n,
1254
+ [e]: t.target.value
1255
+ })),
1256
+ onBlur: (t) => D(e, t.target.value),
1257
+ onKeyDown: (t) => {
1258
+ t.key === "Enter" && D(e, t.target.value);
1259
+ }
1260
+ });
1261
+ return /* @__PURE__ */ g("div", {
1262
+ className: `${Pe.histrange} ${a ? Pe.disabled : ""} ${o}`,
1263
+ children: [c.length > 0 && /* @__PURE__ */ h("div", {
1264
+ ref: p,
1265
+ className: Pe.bars,
1266
+ "aria-hidden": "true",
1267
+ onPointerDown: w,
1268
+ onPointerMove: T,
1269
+ onPointerUp: E,
1270
+ onPointerCancel: E,
1271
+ children: c.map((e, t) => /* @__PURE__ */ h("div", {
1272
+ className: `${Pe.bar} ${x(e, t) ? Pe.barIn : ""}`,
1273
+ style: { height: `${Math.max(6, e.count / l * 100)}%` },
1274
+ title: `${e.from === e.to ? Fe(e.from) : `${Fe(e.from)} to ${Fe(e.to)}`}: ${e.count.toLocaleString("en")}`
1275
+ }, t))
1276
+ }), /* @__PURE__ */ g("div", {
1277
+ className: Pe.ends,
1278
+ children: [
1279
+ O("from", c[0]?.from),
1280
+ /* @__PURE__ */ h("span", { children: "to" }),
1281
+ O("to", c[c.length - 1]?.to)
1282
+ ]
1283
+ })]
1284
+ });
1285
+ }
1286
+ var Re = {
1287
+ wrapper: "_wrapper_bt1lo_1",
1288
+ label: "_label_bt1lo_7",
1289
+ trigger: "_trigger_bt1lo_12",
1290
+ micro: "_micro_bt1lo_28",
1291
+ default: "_default_bt1lo_34",
1292
+ large: "_large_bt1lo_40",
1293
+ ghost: "_ghost_bt1lo_62",
1294
+ icon: "_icon_bt1lo_74",
1295
+ sizer: "_sizer_bt1lo_78",
1296
+ sizerHidden: "_sizerHidden_bt1lo_87",
1297
+ content: "_content_bt1lo_99",
1298
+ viewport: "_viewport_bt1lo_108",
1299
+ item: "_item_bt1lo_114",
1300
+ itemIndicator: "_itemIndicator_bt1lo_137"
1301
+ }, ze = ({ value: t, onValueChange: n, options: r, placeholder: i = "Select...", className: a = "", disabled: o = !1, label: s, size: c = "default", variant: l = "default", "aria-label": u, id: d }) => {
1130
1302
  let f = ae(), p = e.useId(), m = d || p, _ = `${m}-label`, v = r.find((e) => e.value === t), y = /* @__PURE__ */ g(L.Root, {
1131
1303
  value: t,
1132
1304
  onValueChange: n,
1133
1305
  disabled: o,
1134
1306
  children: [/* @__PURE__ */ g(L.Trigger, {
1135
1307
  id: m,
1136
- className: `${je.trigger} ${je[c]} ${l === "ghost" ? je.ghost : ""} ${a} cursor-pointer`,
1308
+ className: `${Re.trigger} ${Re[c]} ${l === "ghost" ? Re.ghost : ""} ${a} cursor-pointer`,
1137
1309
  ...s ? { "aria-labelledby": _ } : u ? { "aria-label": u } : {},
1138
1310
  children: [/* @__PURE__ */ g("span", {
1139
1311
  style: {
@@ -1142,15 +1314,15 @@ var _e = {
1142
1314
  gap: 6
1143
1315
  },
1144
1316
  children: [v?.icon, l === "ghost" ? /* @__PURE__ */ g("span", {
1145
- className: je.sizer,
1317
+ className: Re.sizer,
1146
1318
  children: [r.filter((e) => e.value !== t).map((e) => /* @__PURE__ */ h("span", {
1147
- className: je.sizerHidden,
1319
+ className: Re.sizerHidden,
1148
1320
  "aria-hidden": "true",
1149
1321
  children: e.label
1150
1322
  }, e.value)), /* @__PURE__ */ h("span", { children: /* @__PURE__ */ h(L.Value, { placeholder: i }) })]
1151
1323
  }) : /* @__PURE__ */ h(L.Value, { placeholder: i })]
1152
1324
  }), /* @__PURE__ */ h(L.Icon, {
1153
- className: je.icon,
1325
+ className: Re.icon,
1154
1326
  "aria-hidden": "true",
1155
1327
  children: /* @__PURE__ */ h(x, {
1156
1328
  size: c === "large" ? 21 : 14,
@@ -1160,16 +1332,16 @@ var _e = {
1160
1332
  }), /* @__PURE__ */ h(L.Portal, {
1161
1333
  container: f,
1162
1334
  children: /* @__PURE__ */ h(L.Content, {
1163
- className: je.content,
1335
+ className: Re.content,
1164
1336
  position: "popper",
1165
1337
  side: "bottom",
1166
1338
  align: "start",
1167
1339
  sideOffset: 4,
1168
1340
  children: /* @__PURE__ */ h(L.Viewport, {
1169
- className: je.viewport,
1341
+ className: Re.viewport,
1170
1342
  children: r.map((e) => /* @__PURE__ */ g(L.Item, {
1171
1343
  value: e.value,
1172
- className: je.item,
1344
+ className: Re.item,
1173
1345
  children: [/* @__PURE__ */ g("span", {
1174
1346
  style: {
1175
1347
  display: "inline-flex",
@@ -1178,7 +1350,7 @@ var _e = {
1178
1350
  },
1179
1351
  children: [e.icon, /* @__PURE__ */ h(L.ItemText, { children: e.label })]
1180
1352
  }), /* @__PURE__ */ h(L.ItemIndicator, {
1181
- className: je.itemIndicator,
1353
+ className: Re.itemIndicator,
1182
1354
  children: /* @__PURE__ */ h(b, {
1183
1355
  size: 14,
1184
1356
  color: "currentColor"
@@ -1190,21 +1362,21 @@ var _e = {
1190
1362
  })]
1191
1363
  });
1192
1364
  return s ? /* @__PURE__ */ g("div", {
1193
- className: je.wrapper,
1365
+ className: Re.wrapper,
1194
1366
  children: [/* @__PURE__ */ h("label", {
1195
1367
  id: _,
1196
1368
  htmlFor: m,
1197
- className: je.label,
1369
+ className: Re.label,
1198
1370
  children: s
1199
1371
  }), y]
1200
1372
  }) : y;
1201
- }, Ne = {
1202
- content: "_content_17nzu_2",
1203
- menu: "_menu_17nzu_23",
1204
- divider: "_divider_17nzu_57"
1373
+ }, Be = {
1374
+ content: "_content_1a1gb_2",
1375
+ menu: "_menu_1a1gb_24",
1376
+ divider: "_divider_1a1gb_58"
1205
1377
  };
1206
1378
  // src/components/Popover/Popover.tsx
1207
- function Pe(e) {
1379
+ function Ve(e) {
1208
1380
  if (![
1209
1381
  "ArrowDown",
1210
1382
  "ArrowUp",
@@ -1216,7 +1388,7 @@ function Pe(e) {
1216
1388
  let n = t.indexOf(document.activeElement);
1217
1389
  t[e.key === "Home" ? 0 : e.key === "End" ? t.length - 1 : e.key === "ArrowDown" ? (n + 1) % t.length : (n - 1 + t.length) % t.length].focus(), e.preventDefault();
1218
1390
  }
1219
- var Fe = ({ trigger: t, children: n, open: r, onOpenChange: i, align: a = "end", side: o = "bottom", sideOffset: s = 5, role: c = "dialog", className: l = "", "aria-label": u, "aria-describedby": d }) => {
1391
+ var He = ({ trigger: t, children: n, open: r, onOpenChange: i, align: a = "end", side: o = "bottom", sideOffset: s = 5, role: c = "dialog", className: l = "", "aria-label": u, "aria-describedby": d }) => {
1220
1392
  let f = ae(), p = e.useRef(null);
1221
1393
  return /* @__PURE__ */ g(R.Root, {
1222
1394
  open: r,
@@ -1229,7 +1401,7 @@ var Fe = ({ trigger: t, children: n, open: r, onOpenChange: i, align: a = "end",
1229
1401
  container: f,
1230
1402
  children: /* @__PURE__ */ h(R.Content, {
1231
1403
  ref: p,
1232
- className: `${Ne.content} ${c === "menu" ? Ne.menu : ""} ${l}`,
1404
+ className: `${Be.content} ${c === "menu" ? Be.menu : ""} ${l}`,
1233
1405
  align: a,
1234
1406
  side: o,
1235
1407
  sideOffset: s,
@@ -1237,7 +1409,7 @@ var Fe = ({ trigger: t, children: n, open: r, onOpenChange: i, align: a = "end",
1237
1409
  role: c,
1238
1410
  "aria-label": u,
1239
1411
  "aria-describedby": d,
1240
- onKeyDown: c === "menu" ? Pe : void 0,
1412
+ onKeyDown: c === "menu" ? Ve : void 0,
1241
1413
  onEscapeKeyDown: (e) => {
1242
1414
  let t = p.current;
1243
1415
  t && e.target !== t && t.querySelector("[aria-expanded=\"true\"]") && e.preventDefault();
@@ -1246,62 +1418,162 @@ var Fe = ({ trigger: t, children: n, open: r, onOpenChange: i, align: a = "end",
1246
1418
  })
1247
1419
  })]
1248
1420
  });
1249
- }, Ie = () => /* @__PURE__ */ h("div", {
1250
- className: Ne.divider,
1421
+ }, Ue = () => /* @__PURE__ */ h("div", {
1422
+ className: Be.divider,
1251
1423
  role: "separator"
1252
- }), Le = {
1253
- table: "_table_j6zqj_1",
1254
- caption: "_caption_j6zqj_8",
1255
- headerRow: "_headerRow_j6zqj_25",
1256
- dataRow: "_dataRow_j6zqj_33",
1257
- cellInner: "_cellInner_j6zqj_41",
1258
- cellLabel: "_cellLabel_j6zqj_47",
1259
- cellContent: "_cellContent_j6zqj_52",
1260
- value: "_value_j6zqj_58",
1261
- icon: "_icon_j6zqj_64",
1262
- scroll: "_scroll_j6zqj_74",
1263
- bleedEnd: "_bleedEnd_j6zqj_87",
1264
- stickyFirst: "_stickyFirst_j6zqj_110"
1265
- };
1424
+ }), We = {
1425
+ table: "_table_1jnl1_1",
1426
+ caption: "_caption_1jnl1_8",
1427
+ headerRow: "_headerRow_1jnl1_25",
1428
+ dataRow: "_dataRow_1jnl1_33",
1429
+ cellInner: "_cellInner_1jnl1_41",
1430
+ cellLabel: "_cellLabel_1jnl1_47",
1431
+ cellContent: "_cellContent_1jnl1_52",
1432
+ value: "_value_1jnl1_58",
1433
+ icon: "_icon_1jnl1_64",
1434
+ scroll: "_scroll_1jnl1_74",
1435
+ bleedEnd: "_bleedEnd_1jnl1_87",
1436
+ stickyFirst: "_stickyFirst_1jnl1_110",
1437
+ resizable: "_resizable_1jnl1_168",
1438
+ columnHandle: "_columnHandle_1jnl1_194"
1439
+ }, Ge = 48, Ke = 16, qe = 64, Je = 160;
1440
+ function Ye(e, t, n) {
1441
+ let r = n ? `indx-table-columns:${n}` : null, i = {};
1442
+ if (r) try {
1443
+ i = JSON.parse(localStorage.getItem(r) ?? "{}") ?? {};
1444
+ } catch {
1445
+ i = {};
1446
+ }
1447
+ let a = /* @__PURE__ */ new Map(), o = () => {
1448
+ let t = e.tHead?.rows;
1449
+ return t && t.length > 0 ? Array.from(t[t.length - 1].cells) : [];
1450
+ }, s = (e, t) => e.dataset.column ?? String(t), c = (e) => (e.dataset.column ?? e.textContent ?? "").trim() || "column";
1451
+ o().forEach((e, t) => {
1452
+ Number(e.dataset.width) > 0 || a.set(s(e, t), Math.max(Ge, Math.round(e.getBoundingClientRect().width)));
1453
+ }), e.classList.add(t.table);
1454
+ let l = (e, t) => {
1455
+ if (i[e] > 0) return Math.max(Ge, i[e]);
1456
+ let n = Number(t.dataset.width);
1457
+ return n > 0 ? n : (a.has(e) || a.set(e, Je), a.get(e));
1458
+ }, u = () => {
1459
+ if (r) try {
1460
+ localStorage.setItem(r, JSON.stringify(i));
1461
+ } catch {}
1462
+ }, d = () => {
1463
+ let n = o(), r = n.findIndex((e) => e.dataset.fill !== void 0), i = r >= 0 ? r : n.length - 1, a = 0;
1464
+ n.forEach((e, n) => {
1465
+ let r = s(e, n);
1466
+ n === 0 && e.querySelector(`:scope > .${t.handle}[data-lead]`)?.remove();
1467
+ let o = l(r, e);
1468
+ a += o;
1469
+ let u = e.querySelector(`:scope > .${t.handle}:not([data-lead])`);
1470
+ if (n === i) {
1471
+ e.style.width = "", u?.remove(), e.nextElementSibling?.querySelector(`:scope > .${t.handle}[data-lead]`)?.remove();
1472
+ return;
1473
+ }
1474
+ e.style.width = `${o}px`;
1475
+ let d = u ?? g(e), f = e.nextElementSibling;
1476
+ f && ((f.querySelector(`:scope > .${t.handle}[data-lead]`) ?? _(f)).dataset.column = r), d.dataset.column = r, d.setAttribute("aria-label", `Resize ${c(e)}`), d.setAttribute("aria-valuenow", String(Math.round(o)));
1477
+ }), e.style.minWidth = `${a}px`;
1478
+ }, f = (e, t) => {
1479
+ i[e] = Math.max(Ge, Math.round(t)), d();
1480
+ }, p = (e) => {
1481
+ delete i[e], d(), u();
1482
+ }, m = (e) => e.hasAttribute("data-lead") ? e.parentElement.previousElementSibling : e.parentElement, h = (e) => e.hasAttribute("data-lead") ? m(e).querySelector(`:scope > .${t.handle}:not([data-lead])`) ?? e : e;
1483
+ function g(e) {
1484
+ let n = document.createElement("span");
1485
+ return n.className = t.handle, n.setAttribute("role", "separator"), n.setAttribute("aria-orientation", "vertical"), n.setAttribute("aria-valuemin", String(Ge)), n.tabIndex = 0, n.addEventListener("pointerdown", v), n.addEventListener("keydown", y), n.addEventListener("dblclick", () => p(n.dataset.column)), n.addEventListener("click", (e) => e.stopPropagation()), e.appendChild(n), n;
1486
+ }
1487
+ function _(e) {
1488
+ let n = document.createElement("span");
1489
+ return n.className = t.handle, n.setAttribute("data-lead", ""), n.setAttribute("aria-hidden", "true"), n.addEventListener("pointerdown", v), n.addEventListener("pointerenter", () => h(n).setAttribute("data-hot", "")), n.addEventListener("pointerleave", () => h(n).removeAttribute("data-hot")), n.addEventListener("dblclick", () => p(n.dataset.column)), n.addEventListener("click", (e) => e.stopPropagation()), e.appendChild(n), n;
1490
+ }
1491
+ function v(t) {
1492
+ if (t.button !== 0) return;
1493
+ let n = t.currentTarget;
1494
+ t.preventDefault(), t.stopPropagation(), n.setPointerCapture(t.pointerId), h(n).setAttribute("data-dragging", ""), e.setAttribute("data-resizing", "");
1495
+ let r = n.dataset.column, i = t.clientX, a = m(n).getBoundingClientRect().width, o = (e) => f(r, a + e.clientX - i), s = () => {
1496
+ h(n).removeAttribute("data-dragging"), e.removeAttribute("data-resizing"), n.removeEventListener("pointermove", o), n.removeEventListener("pointerup", s), n.removeEventListener("pointercancel", s), u();
1497
+ };
1498
+ n.addEventListener("pointermove", o), n.addEventListener("pointerup", s), n.addEventListener("pointercancel", s);
1499
+ }
1500
+ function y(e) {
1501
+ let t = e.currentTarget, n = t.dataset.column, r = m(t).getBoundingClientRect().width, i = e.shiftKey ? qe : Ke;
1502
+ if (e.key === "ArrowRight") f(n, r + i);
1503
+ else if (e.key === "ArrowLeft") f(n, r - i);
1504
+ else if (e.key === "Home") f(n, Ge);
1505
+ else if (e.key === "Delete" || e.key === "Backspace") {
1506
+ p(n), e.preventDefault();
1507
+ return;
1508
+ } else return;
1509
+ e.preventDefault(), u();
1510
+ }
1511
+ d();
1512
+ let b = (t) => t === e || t instanceof Element && t.closest("thead") !== null, x = new MutationObserver((e) => {
1513
+ e.some((e) => b(e.target) && (e.type === "childList" ? [...Array.from(e.addedNodes), ...Array.from(e.removedNodes)].some((e) => !(e instanceof HTMLElement && e.classList.contains(t.handle))) : e.attributeName !== "style" && !(e.target instanceof HTMLElement && e.target.classList.contains(t.handle)))) && d();
1514
+ });
1515
+ return x.observe(e, {
1516
+ childList: !0,
1517
+ subtree: !0,
1518
+ attributes: !0,
1519
+ attributeFilter: [
1520
+ "data-column",
1521
+ "data-width",
1522
+ "data-fill"
1523
+ ]
1524
+ }), () => {
1525
+ x.disconnect(), e.classList.remove(t.table), e.style.minWidth = "", o().forEach((e) => {
1526
+ e.style.width = "", e.querySelectorAll(`:scope > .${t.handle}`).forEach((e) => e.remove());
1527
+ });
1528
+ };
1529
+ }
1266
1530
  // src/components/Table/Table.tsx
1267
- function Re({ children: e, caption: t, "aria-label": n, scrollable: r = !1, stickyFirstColumn: i = !1, bleedEnd: a }) {
1268
- let o = /* @__PURE__ */ g("table", {
1269
- className: `${Le.table} ${r && i ? Le.stickyFirst : ""}`,
1531
+ function Xe({ children: e, caption: t, "aria-label": n, scrollable: r = !1, stickyFirstColumn: i = !1, bleedEnd: a, resizableColumns: s = !1, columnStorageKey: c }) {
1532
+ let l = d(null);
1533
+ o(() => {
1534
+ if (s && l.current) return Ye(l.current, {
1535
+ table: We.resizable,
1536
+ handle: We.columnHandle
1537
+ }, c);
1538
+ }, [s, c]);
1539
+ let u = /* @__PURE__ */ g("table", {
1540
+ ref: l,
1541
+ className: `${We.table} ${r && i ? We.stickyFirst : ""}`,
1270
1542
  "aria-label": n,
1271
1543
  children: [t && /* @__PURE__ */ h("caption", {
1272
- className: Le.caption,
1544
+ className: We.caption,
1273
1545
  children: t
1274
1546
  }), e]
1275
1547
  });
1276
1548
  return r ? /* @__PURE__ */ h("div", {
1277
- className: `${Le.scroll} ${a === void 0 ? "" : Le.bleedEnd}`,
1549
+ className: `${We.scroll} ${a === void 0 ? "" : We.bleedEnd}`,
1278
1550
  style: a === void 0 ? void 0 : { "--table-bleed": typeof a == "number" ? `${a}px` : a },
1279
1551
  role: "region",
1280
1552
  "aria-label": n ?? t,
1281
1553
  tabIndex: 0,
1282
- children: o
1283
- }) : o;
1554
+ children: u
1555
+ }) : u;
1284
1556
  }
1285
1557
  // src/components/Table/TableHeader.tsx
1286
- function ze({ children: t }) {
1558
+ function Ze({ children: t }) {
1287
1559
  let n = e.Children.map(t, (t) => e.isValidElement(t) && t.type === "td" ? /* @__PURE__ */ h("th", {
1288
1560
  scope: "col",
1289
1561
  ...t.props
1290
1562
  }) : t);
1291
1563
  return /* @__PURE__ */ h("thead", { children: /* @__PURE__ */ h("tr", {
1292
- className: Le.headerRow,
1564
+ className: We.headerRow,
1293
1565
  children: n
1294
1566
  }) });
1295
1567
  }
1296
1568
  // src/components/Table/TableRow.tsx
1297
- function Be({ children: e }) {
1569
+ function Qe({ children: e }) {
1298
1570
  return /* @__PURE__ */ h("tr", {
1299
- className: Le.dataRow,
1571
+ className: We.dataRow,
1300
1572
  children: e
1301
1573
  });
1302
1574
  }
1303
1575
  // src/components/Table/TableCell.tsx
1304
- function Ve({ label: e, children: t, isHeader: n = !1, scope: r, colSpan: i }) {
1576
+ function $e({ label: e, children: t, isHeader: n = !1, scope: r, colSpan: i }) {
1305
1577
  let a = n ? "th" : "td", o = {
1306
1578
  ...n && r ? { scope: r } : {},
1307
1579
  ...i ? { colSpan: i } : {}
@@ -1309,12 +1581,12 @@ function Ve({ label: e, children: t, isHeader: n = !1, scope: r, colSpan: i }) {
1309
1581
  return e || t ? /* @__PURE__ */ h(a, {
1310
1582
  ...o,
1311
1583
  children: /* @__PURE__ */ g("div", {
1312
- className: Le.cellInner,
1584
+ className: We.cellInner,
1313
1585
  children: [e && /* @__PURE__ */ h("span", {
1314
- className: Le.cellLabel,
1586
+ className: We.cellLabel,
1315
1587
  children: e
1316
1588
  }), t && /* @__PURE__ */ h("div", {
1317
- className: Le.cellContent,
1589
+ className: We.cellContent,
1318
1590
  children: t
1319
1591
  })]
1320
1592
  })
@@ -1324,17 +1596,17 @@ function Ve({ label: e, children: t, isHeader: n = !1, scope: r, colSpan: i }) {
1324
1596
  });
1325
1597
  }
1326
1598
  // src/components/Table/TableValue.tsx
1327
- function He({ children: e }) {
1599
+ function et({ children: e }) {
1328
1600
  return /* @__PURE__ */ h("span", {
1329
- className: Le.value,
1601
+ className: We.value,
1330
1602
  children: e
1331
1603
  });
1332
1604
  }
1333
1605
  // src/components/Table/TableIcon.tsx
1334
- function Ue({ children: t, "aria-label": n }) {
1606
+ function tt({ children: t, "aria-label": n }) {
1335
1607
  let r = !n;
1336
1608
  return /* @__PURE__ */ h("span", {
1337
- className: Le.icon,
1609
+ className: We.icon,
1338
1610
  "aria-hidden": r ? "true" : void 0,
1339
1611
  "aria-label": n,
1340
1612
  children: e.cloneElement(t, {
@@ -1343,7 +1615,7 @@ function Ue({ children: t, "aria-label": n }) {
1343
1615
  })
1344
1616
  });
1345
1617
  }
1346
- var We = {
1618
+ var nt = {
1347
1619
  tabs: "_tabs_q9gjb_1",
1348
1620
  scrollable: "_scrollable_q9gjb_16",
1349
1621
  tab: "_tab_q9gjb_1",
@@ -1358,23 +1630,23 @@ var We = {
1358
1630
  bleed: "_bleed_q9gjb_149"
1359
1631
  };
1360
1632
  // src/components/Tabs/Tabs.tsx
1361
- function Ge(e, t) {
1633
+ function rt(e, t) {
1362
1634
  if (!e || !t) return;
1363
1635
  let n = parseFloat(getComputedStyle(e).paddingInlineStart) || 32, r = e.getBoundingClientRect(), i = t.getBoundingClientRect();
1364
1636
  i.left < r.left + n ? e.scrollLeft -= r.left + n - i.left : i.right > r.right - n && (e.scrollLeft += i.right - (r.right - n));
1365
1637
  }
1366
- var Ke = {
1638
+ var it = {
1367
1639
  micro: 14,
1368
1640
  default: 14,
1369
1641
  large: 21
1370
1642
  };
1371
- function qe({ items: e, value: n, onValueChange: i, size: a = "default", variant: c = "underline", scrollable: l = !1, bleed: u, getPanelId: f, "aria-label": p, renderLink: _ }) {
1643
+ function at({ items: e, value: n, onValueChange: i, size: a = "default", variant: c = "underline", scrollable: l = !1, bleed: u, getPanelId: f, "aria-label": p, renderLink: _ }) {
1372
1644
  let v = d(null), y = d(/* @__PURE__ */ new Map()), b = s(), x = Math.max(e.findIndex((e) => e.value === n), 0), S = e.some((e) => e.href !== void 0), C = (t) => {
1373
1645
  let n = e[t];
1374
1646
  if (!n) return;
1375
1647
  i(n.value);
1376
1648
  let r = y.current.get(n.value);
1377
- r?.focus({ preventScroll: !0 }), l && Ge(v.current, r);
1649
+ r?.focus({ preventScroll: !0 }), l && rt(v.current, r);
1378
1650
  }, w = (t, n) => {
1379
1651
  for (let r = 1; r <= e.length; r++) {
1380
1652
  let i = (t + n * r + e.length * r) % e.length;
@@ -1421,27 +1693,27 @@ function qe({ items: e, value: n, onValueChange: i, size: a = "default", variant
1421
1693
  u,
1422
1694
  e.length
1423
1695
  ]), o(() => {
1424
- l && Ge(v.current, y.current.get(n));
1696
+ l && rt(v.current, y.current.get(n));
1425
1697
  }, [l, n]), /* @__PURE__ */ h("div", {
1426
1698
  ref: v,
1427
- className: `${We.tabs} ${c === "button" ? We.buttonVariant : ""} ${l ? We.scrollable : ""} ${l && u !== void 0 ? We.bleed : ""}`,
1699
+ className: `${nt.tabs} ${c === "button" ? nt.buttonVariant : ""} ${l ? nt.scrollable : ""} ${l && u !== void 0 ? nt.bleed : ""}`,
1428
1700
  style: l && u !== void 0 ? { "--tabs-bleed": typeof u == "number" ? `${u}px` : u } : void 0,
1429
1701
  role: S ? "navigation" : "tablist",
1430
1702
  "aria-label": p,
1431
1703
  children: e.map((e, n) => {
1432
1704
  let o = n === x, s = /* @__PURE__ */ g(m, { children: [
1433
1705
  e.icon ? /* @__PURE__ */ h("span", {
1434
- className: We.icon,
1706
+ className: nt.icon,
1435
1707
  "aria-hidden": "true",
1436
- children: r(e.icon) && e.icon.props.size === void 0 ? t(e.icon, { size: Ke[a] }) : e.icon
1708
+ children: r(e.icon) && e.icon.props.size === void 0 ? t(e.icon, { size: it[a] }) : e.icon
1437
1709
  }) : null,
1438
1710
  e.label,
1439
1711
  e.badge != null && e.badge !== !1 ? /* @__PURE__ */ h("span", {
1440
- className: e.badgeTone === "info" ? `${We.badge} ${We.badgeInfo}` : We.badge,
1712
+ className: e.badgeTone === "info" ? `${nt.badge} ${nt.badgeInfo}` : nt.badge,
1441
1713
  title: e.badgeTitle,
1442
1714
  children: e.badge
1443
1715
  }) : null
1444
- ] }), c = `${We.tab} ${We[a]} ${o ? We.active : ""}`;
1716
+ ] }), c = `${nt.tab} ${nt[a]} ${o ? nt.active : ""}`;
1445
1717
  if (e.href !== void 0) {
1446
1718
  let t = {
1447
1719
  id: `${b}-tab-${e.value}`,
@@ -1483,7 +1755,7 @@ function qe({ items: e, value: n, onValueChange: i, size: a = "default", variant
1483
1755
  })
1484
1756
  });
1485
1757
  }
1486
- var Je = {
1758
+ var ot = {
1487
1759
  control: "_control_8m56y_4",
1488
1760
  stretch: "_stretch_8m56y_13",
1489
1761
  cell: "_cell_8m56y_17",
@@ -1497,7 +1769,7 @@ var Je = {
1497
1769
  default: "_default_8m56y_96"
1498
1770
  };
1499
1771
  // src/components/SegmentedControl/SegmentedControl.tsx
1500
- function Ye({ items: e, value: t, onChange: n, size: r = "micro", stretch: i = !1, disabled: a = !1, "aria-label": o, className: s = "" }) {
1772
+ function st({ items: e, value: t, onChange: n, size: r = "micro", stretch: i = !1, disabled: a = !1, "aria-label": o, className: s = "" }) {
1501
1773
  let c = d([]), l = (t, r) => {
1502
1774
  let i = t.key === "ArrowRight" || t.key === "ArrowDown" ? 1 : t.key === "ArrowLeft" || t.key === "ArrowUp" ? -1 : 0, a = -1;
1503
1775
  if (i) for (let t = 1; t <= e.length; t++) {
@@ -1511,7 +1783,7 @@ function Ye({ items: e, value: t, onChange: n, size: r = "micro", stretch: i = !
1511
1783
  a < 0 || a === r || (t.preventDefault(), c.current[a]?.focus(), n(e[a].value));
1512
1784
  };
1513
1785
  return /* @__PURE__ */ h("div", {
1514
- className: `${Je.control} ${Je[r]} ${i ? Je.stretch : ""} ${a ? Je.disabled : ""} ${s}`,
1786
+ className: `${ot.control} ${ot[r]} ${i ? ot.stretch : ""} ${a ? ot.disabled : ""} ${s}`,
1515
1787
  role: "radiogroup",
1516
1788
  "aria-label": o,
1517
1789
  children: e.map((e, r) => {
@@ -1524,20 +1796,20 @@ function Ye({ items: e, value: t, onChange: n, size: r = "micro", stretch: i = !
1524
1796
  role: "radio",
1525
1797
  "aria-checked": i,
1526
1798
  "aria-label": e["aria-label"],
1527
- className: `${Je.cell} ${i ? Je.active : ""} ${e.icon && !e.label ? Je.iconOnly : ""}`,
1799
+ className: `${ot.cell} ${i ? ot.active : ""} ${e.icon && !e.label ? ot.iconOnly : ""}`,
1528
1800
  tabIndex: i ? 0 : -1,
1529
1801
  disabled: o,
1530
1802
  onClick: () => !o && n(e.value),
1531
1803
  onKeyDown: (e) => l(e, r),
1532
1804
  children: [
1533
1805
  e.icon && /* @__PURE__ */ h("span", {
1534
- className: Je.icon,
1806
+ className: ot.icon,
1535
1807
  "aria-hidden": "true",
1536
1808
  children: e.icon
1537
1809
  }),
1538
1810
  e.label,
1539
1811
  e.badge != null && e.badge !== !1 && /* @__PURE__ */ h("span", {
1540
- className: e.badgeTone === "info" ? `${Je.badge} ${Je.badgeInfo}` : Je.badge,
1812
+ className: e.badgeTone === "info" ? `${ot.badge} ${ot.badgeInfo}` : ot.badge,
1541
1813
  children: e.badge
1542
1814
  })
1543
1815
  ]
@@ -1564,13 +1836,13 @@ var K = {
1564
1836
  truncate: "_truncate_wrjxq_32"
1565
1837
  };
1566
1838
  // src/components/Breadcrumbs/Breadcrumbs.tsx
1567
- function Xe(t) {
1839
+ function ct(t) {
1568
1840
  return e.isValidElement(t) ? e.cloneElement(t, {
1569
1841
  size: "14px",
1570
1842
  color: "currentColor"
1571
1843
  }) : t;
1572
1844
  }
1573
- var Ze = "\0action", Qe = ({ items: e, size: t = "default", overflow: n = "wrap", className: r = "", separator: i = /* @__PURE__ */ h(C, {
1845
+ var lt = "\0action", ut = ({ items: e, size: t = "default", overflow: n = "wrap", className: r = "", separator: i = /* @__PURE__ */ h(C, {
1574
1846
  size: 14,
1575
1847
  color: "currentColor"
1576
1848
  }), renderLink: a, "aria-label": o = "Breadcrumb" }) => {
@@ -1598,7 +1870,7 @@ var Ze = "\0action", Qe = ({ items: e, size: t = "default", overflow: n = "wrap"
1598
1870
  children: /* @__PURE__ */ g(m, { children: [t.icon && /* @__PURE__ */ h("span", {
1599
1871
  className: K.icon,
1600
1872
  "aria-hidden": "true",
1601
- children: Xe(t.icon)
1873
+ children: ct(t.icon)
1602
1874
  }), /* @__PURE__ */ h("span", {
1603
1875
  className: K.text,
1604
1876
  children: t.label
@@ -1612,14 +1884,14 @@ var Ze = "\0action", Qe = ({ items: e, size: t = "default", overflow: n = "wrap"
1612
1884
  children: [t.icon && /* @__PURE__ */ h("span", {
1613
1885
  className: K.icon,
1614
1886
  "aria-hidden": "true",
1615
- children: Xe(t.icon)
1887
+ children: ct(t.icon)
1616
1888
  }), /* @__PURE__ */ h("span", {
1617
1889
  className: K.text,
1618
1890
  children: t.label
1619
1891
  })]
1620
1892
  }), t.switcher && /* @__PURE__ */ g(L.Root, {
1621
1893
  value: t.switcher.value,
1622
- onValueChange: (e) => e === Ze ? t.switcher.action?.onSelect() : t.switcher.onValueChange(e),
1894
+ onValueChange: (e) => e === lt ? t.switcher.action?.onSelect() : t.switcher.onValueChange(e),
1623
1895
  disabled: t.switcher.disabled || t.switcher.options.length === 0 && !t.switcher.action,
1624
1896
  children: [/* @__PURE__ */ h(L.Trigger, {
1625
1897
  className: K.trigger,
@@ -1635,16 +1907,16 @@ var Ze = "\0action", Qe = ({ items: e, size: t = "default", overflow: n = "wrap"
1635
1907
  }), /* @__PURE__ */ h(L.Portal, {
1636
1908
  container: s,
1637
1909
  children: /* @__PURE__ */ h(L.Content, {
1638
- className: `${je.content} ${K.menu}`,
1910
+ className: `${Re.content} ${K.menu}`,
1639
1911
  position: "popper",
1640
1912
  align: "end",
1641
1913
  sideOffset: 4,
1642
1914
  collisionPadding: 8,
1643
1915
  children: /* @__PURE__ */ g(L.Viewport, {
1644
- className: je.viewport,
1916
+ className: Re.viewport,
1645
1917
  children: [t.switcher.options.map((e) => /* @__PURE__ */ g(L.Item, {
1646
1918
  value: e.value,
1647
- className: je.item,
1919
+ className: Re.item,
1648
1920
  textValue: e.label,
1649
1921
  children: [/* @__PURE__ */ g("span", {
1650
1922
  className: K.option,
@@ -1654,15 +1926,15 @@ var Ze = "\0action", Qe = ({ items: e, size: t = "default", overflow: n = "wrap"
1654
1926
  children: e.icon
1655
1927
  }), /* @__PURE__ */ h(L.ItemText, { children: e.label })]
1656
1928
  }), /* @__PURE__ */ h(L.ItemIndicator, {
1657
- className: je.itemIndicator,
1929
+ className: Re.itemIndicator,
1658
1930
  children: /* @__PURE__ */ h(b, {
1659
1931
  size: 14,
1660
1932
  color: "currentColor"
1661
1933
  })
1662
1934
  })]
1663
1935
  }, e.value)), t.switcher.action && /* @__PURE__ */ g(m, { children: [/* @__PURE__ */ h(L.Separator, { className: K.menuDivider }), /* @__PURE__ */ h(L.Item, {
1664
- value: Ze,
1665
- className: je.item,
1936
+ value: lt,
1937
+ className: Re.item,
1666
1938
  textValue: t.switcher.action.label,
1667
1939
  children: /* @__PURE__ */ g("span", {
1668
1940
  className: K.option,
@@ -1684,32 +1956,32 @@ var Ze = "\0action", Qe = ({ items: e, size: t = "default", overflow: n = "wrap"
1684
1956
  }, t.id))
1685
1957
  })
1686
1958
  });
1687
- }, $e = {
1688
- wrapper: "_wrapper_1a9jo_1",
1689
- track: "_track_1a9jo_8",
1690
- fill: "_fill_1a9jo_36",
1691
- label: "_label_1a9jo_46"
1959
+ }, dt = {
1960
+ wrapper: "_wrapper_1ons8_1",
1961
+ track: "_track_1ons8_8",
1962
+ fill: "_fill_1ons8_39",
1963
+ label: "_label_1ons8_49"
1692
1964
  };
1693
1965
  // src/components/ProgressBar/ProgressBar.tsx
1694
- function et({ value: e, showLabel: t = !1, fulfilledColor: n = !1, className: r = "" }) {
1966
+ function ft({ value: e, showLabel: t = !1, fulfilledColor: n = !1, className: r = "" }) {
1695
1967
  let i = Math.min(100, Math.max(0, e)), a = `${Math.round(i)}%`, o = n && i >= 100 ? "var(--CPureBlue)" : void 0;
1696
1968
  return /* @__PURE__ */ g("div", {
1697
- className: `${$e.wrapper} ${r}`,
1969
+ className: `${dt.wrapper} ${r}`,
1698
1970
  role: "progressbar",
1699
1971
  "aria-valuenow": i,
1700
1972
  "aria-valuemin": 0,
1701
1973
  "aria-valuemax": 100,
1702
1974
  children: [/* @__PURE__ */ h("div", {
1703
- className: $e.track,
1975
+ className: dt.track,
1704
1976
  children: /* @__PURE__ */ h("div", {
1705
- className: $e.fill,
1977
+ className: dt.fill,
1706
1978
  style: {
1707
1979
  width: `${i}%`,
1708
1980
  backgroundColor: o
1709
1981
  }
1710
1982
  })
1711
1983
  }), t && /* @__PURE__ */ h("span", {
1712
- className: $e.label,
1984
+ className: dt.label,
1713
1985
  "aria-hidden": "true",
1714
1986
  children: a
1715
1987
  })]
@@ -1744,14 +2016,14 @@ var q = {
1744
2016
  dim: "_dim_1ywpg_203",
1745
2017
  zoneBar: "_zoneBar_1ywpg_208",
1746
2018
  centre: "_centre_1ywpg_212"
1747
- }, tt = (e, t) => e?.filter((e) => t >= e.from).sort((e, t) => t.from - e.from)[0]?.color, nt = (e, t, n) => e?.find((e) => e.from > 0 && Math.round(e.from * n) === t), rt = [
2019
+ }, pt = (e, t) => e?.filter((e) => t >= e.from).sort((e, t) => t.from - e.from)[0]?.color, mt = (e, t, n) => e?.find((e) => e.from > 0 && Math.round(e.from * n) === t), ht = [
1748
2020
  "var(--lv8)",
1749
2021
  "var(--lv5)",
1750
2022
  "var(--lv4)",
1751
2023
  "var(--lv3)"
1752
- ], it = (e) => rt[Math.min(e, rt.length - 1)], at = .08, ot = 4, st = 96, ct = (e) => e < 72 ? 6 : 14;
1753
- function lt({ label: e, value: t = 0, max: n = 100, segments: r, labels: i = "heads", format: a, maxLabel: o, color: s, zones: c, shape: l = "bar", size: u = 72, className: d = "" }) {
1754
- let f = n > 0 ? Math.min(1, Math.max(0, t / n)) : 0, p = s ?? tt(c, f), _ = (e) => a ? a(e) : e.toLocaleString(), v = o ?? /* @__PURE__ */ g(m, { children: ["of ", _(n)] });
2024
+ ], gt = (e) => ht[Math.min(e, ht.length - 1)], _t = .08, vt = 4, yt = 96, bt = (e) => e < 72 ? 6 : 14;
2025
+ function xt({ label: e, value: t = 0, max: n = 100, segments: r, labels: i = "heads", format: a, maxLabel: o, color: s, zones: c, shape: l = "bar", size: u = 72, className: d = "" }) {
2026
+ let f = n > 0 ? Math.min(1, Math.max(0, t / n)) : 0, p = s ?? pt(c, f), _ = (e) => a ? a(e) : e.toLocaleString(), v = o ?? /* @__PURE__ */ g(m, { children: ["of ", _(n)] });
1755
2027
  if (r && l !== "ring") {
1756
2028
  let t = r.reduce((e, t) => e + Math.max(0, t.value), 0), n = (e) => a ? a(e.value) : `${Math.round((t > 0 ? e.value / t : 0) * 100)} %`, o = 0, s = r.map((e, n) => {
1757
2029
  let i = o, a = t > 0 ? Math.max(0, e.value) / t : 0;
@@ -1761,7 +2033,7 @@ function lt({ label: e, value: t = 0, max: n = 100, segments: r, labels: i = "he
1761
2033
  from: i,
1762
2034
  to: n === r.length - 1 ? 1 : o,
1763
2035
  share: a,
1764
- color: e.color ?? it(n)
2036
+ color: e.color ?? gt(n)
1765
2037
  };
1766
2038
  });
1767
2039
  return /* @__PURE__ */ g("div", {
@@ -1776,7 +2048,7 @@ function lt({ label: e, value: t = 0, max: n = 100, segments: r, labels: i = "he
1776
2048
  /* @__PURE__ */ g("div", {
1777
2049
  className: `${q.shares} ${i === "legend" ? q.sharesLegend : ""}`,
1778
2050
  children: [
1779
- i === "heads" && s.map(({ g: e, i: t, from: r, to: i, share: a }) => (a >= at || t === s.length - 1) && /* @__PURE__ */ g("div", {
2051
+ i === "heads" && s.map(({ g: e, i: t, from: r, to: i, share: a }) => (a >= _t || t === s.length - 1) && /* @__PURE__ */ g("div", {
1780
2052
  className: `${q.head} ${t === s.length - 1 ? q.headLast : ""}`,
1781
2053
  style: {
1782
2054
  "--seg-from": `${r * 100}%`,
@@ -1843,7 +2115,7 @@ function lt({ label: e, value: t = 0, max: n = 100, segments: r, labels: i = "he
1843
2115
  },
1844
2116
  children: [/* @__PURE__ */ g("div", {
1845
2117
  className: q.dial,
1846
- children: [/* @__PURE__ */ h(ut, {
2118
+ children: [/* @__PURE__ */ h(St, {
1847
2119
  fraction: f,
1848
2120
  size: u,
1849
2121
  zones: c
@@ -1853,7 +2125,7 @@ function lt({ label: e, value: t = 0, max: n = 100, segments: r, labels: i = "he
1853
2125
  children: [/* @__PURE__ */ h("span", {
1854
2126
  className: q.value,
1855
2127
  children: _(t)
1856
- }), u >= st && /* @__PURE__ */ h("span", {
2128
+ }), u >= yt && /* @__PURE__ */ h("span", {
1857
2129
  className: q.max,
1858
2130
  children: v
1859
2131
  })]
@@ -1904,10 +2176,10 @@ function lt({ label: e, value: t = 0, max: n = 100, segments: r, labels: i = "he
1904
2176
  ]
1905
2177
  });
1906
2178
  }
1907
- function ut({ fraction: e, size: t, zones: n }) {
1908
- let r = t / 2, i = Math.max(0, r - ct(t)), a = (r + i) / 2, o = Math.max(4, Math.round(2 * Math.PI * a / ot)), s = Math.round(e * o), c = [];
2179
+ function St({ fraction: e, size: t, zones: n }) {
2180
+ let r = t / 2, i = Math.max(0, r - bt(t)), a = (r + i) / 2, o = Math.max(4, Math.round(2 * Math.PI * a / vt)), s = Math.round(e * o), c = [];
1909
2181
  for (let e = 0; e < o; e++) {
1910
- let t = (-90 + 360 * e / o) * (Math.PI / 180), a = Math.cos(t), l = Math.sin(t), u = nt(n, e, o);
2182
+ let t = (-90 + 360 * e / o) * (Math.PI / 180), a = Math.cos(t), l = Math.sin(t), u = mt(n, e, o);
1911
2183
  c.push(/* @__PURE__ */ h("line", {
1912
2184
  className: u ? q.zoneBar : e < s ? q.lit : q.dim,
1913
2185
  style: u ? { stroke: u.color } : void 0,
@@ -1926,7 +2198,7 @@ function ut({ fraction: e, size: t, zones: n }) {
1926
2198
  children: c
1927
2199
  });
1928
2200
  }
1929
- var dt = {
2201
+ var Ct = {
1930
2202
  waffle: "_waffle_1c9lc_1",
1931
2203
  grid: "_grid_1c9lc_10",
1932
2204
  gridWrap: "_gridWrap_1c9lc_20",
@@ -1940,13 +2212,13 @@ var dt = {
1940
2212
  icon: "_icon_1c9lc_78",
1941
2213
  name: "_name_1c9lc_83",
1942
2214
  share: "_share_1c9lc_87"
1943
- }, ft = [
2215
+ }, wt = [
1944
2216
  "var(--lv8)",
1945
2217
  "var(--lv5)",
1946
2218
  "var(--lv4)",
1947
2219
  "var(--lv3)"
1948
2220
  ];
1949
- function pt(e, t) {
2221
+ function Tt(e, t) {
1950
2222
  let n = e.reduce((e, t) => e + Math.max(0, t), 0);
1951
2223
  if (n <= 0) return e.map(() => 0);
1952
2224
  let r = e.map((e) => Math.max(0, e) / n * t), i = r.map(Math.floor), a = t - i.reduce((e, t) => e + t, 0), o = r.map((e, t) => ({
@@ -1963,8 +2235,8 @@ function pt(e, t) {
1963
2235
  }
1964
2236
  return i;
1965
2237
  }
1966
- function mt({ segments: e, columns: t = 20, rows: n = 5, cell: r = 4, format: i, legend: a = !0, "aria-label": o, className: s = "" }) {
1967
- let c = t * n, [l, u] = f(null), d = e.reduce((e, t) => e + Math.max(0, t.value), 0), p = pt(e.map((e) => e.value), c), m = (t) => e[t].color ?? ft[Math.min(t, ft.length - 1)], _ = (e) => {
2238
+ function Et({ segments: e, columns: t = 20, rows: n = 5, cell: r = 4, format: i, legend: a = !0, "aria-label": o, className: s = "" }) {
2239
+ let c = t * n, [l, u] = f(null), d = e.reduce((e, t) => e + Math.max(0, t.value), 0), p = Tt(e.map((e) => e.value), c), m = (t) => e[t].color ?? wt[Math.min(t, wt.length - 1)], _ = (e) => {
1968
2240
  let t = d > 0 ? Math.max(0, e.value) / d : 0;
1969
2241
  return i ? i(t, e.value) : `${Math.round(t * 100)} %`;
1970
2242
  }, v = [], y = 0, b = 0;
@@ -1974,7 +2246,7 @@ function mt({ segments: e, columns: t = 20, rows: n = 5, cell: r = 4, format: i,
1974
2246
  b += 1;
1975
2247
  let n = y < p.length ? y : -1;
1976
2248
  v.push(/* @__PURE__ */ h("span", {
1977
- className: `${dt.cell} ${l && l.segment !== n ? dt.dim : ""}`,
2249
+ className: `${Ct.cell} ${l && l.segment !== n ? Ct.dim : ""}`,
1978
2250
  style: t ? { background: t } : void 0,
1979
2251
  onMouseEnter: () => u(n >= 0 ? {
1980
2252
  segment: n,
@@ -1985,34 +2257,34 @@ function mt({ segments: e, columns: t = 20, rows: n = 5, cell: r = 4, format: i,
1985
2257
  let x = r + 2, S = l && l.cell != null && l.segment < e.length ? (() => {
1986
2258
  let i = Math.floor(l.cell / n), a = l.cell % n, o = i > t / 2, s = e[l.segment];
1987
2259
  return /* @__PURE__ */ g("div", {
1988
- className: `${dt.tooltip} ${o ? dt.tooltipLeft : ""}`,
2260
+ className: `${Ct.tooltip} ${o ? Ct.tooltipLeft : ""}`,
1989
2261
  style: {
1990
2262
  top: a * x + r / 2,
1991
2263
  left: o ? i * x - 6 : i * x + r + 6
1992
2264
  },
1993
2265
  children: [
1994
2266
  s.icon != null && /* @__PURE__ */ h("span", {
1995
- className: dt.icon,
2267
+ className: Ct.icon,
1996
2268
  children: s.icon
1997
2269
  }),
1998
2270
  /* @__PURE__ */ h("span", {
1999
- className: dt.name,
2271
+ className: Ct.name,
2000
2272
  children: s.label
2001
2273
  }),
2002
2274
  /* @__PURE__ */ h("span", {
2003
- className: dt.share,
2275
+ className: Ct.share,
2004
2276
  children: _(s)
2005
2277
  })
2006
2278
  ]
2007
2279
  });
2008
2280
  })() : null;
2009
2281
  return /* @__PURE__ */ g("div", {
2010
- className: `${dt.waffle} ${s}`,
2282
+ className: `${Ct.waffle} ${s}`,
2011
2283
  children: [/* @__PURE__ */ g("div", {
2012
- className: dt.gridWrap,
2284
+ className: Ct.gridWrap,
2013
2285
  onMouseLeave: () => u(null),
2014
2286
  children: [/* @__PURE__ */ h("div", {
2015
- className: dt.grid,
2287
+ className: Ct.grid,
2016
2288
  role: "img",
2017
2289
  "aria-label": o,
2018
2290
  style: {
@@ -2022,10 +2294,10 @@ function mt({ segments: e, columns: t = 20, rows: n = 5, cell: r = 4, format: i,
2022
2294
  children: v
2023
2295
  }), S]
2024
2296
  }), a && /* @__PURE__ */ h("ul", {
2025
- className: dt.legend,
2297
+ className: Ct.legend,
2026
2298
  "aria-hidden": !o || void 0,
2027
2299
  children: e.map((e, t) => /* @__PURE__ */ g("li", {
2028
- className: dt.item,
2300
+ className: Ct.item,
2029
2301
  onMouseEnter: () => u({
2030
2302
  segment: t,
2031
2303
  cell: null
@@ -2033,19 +2305,19 @@ function mt({ segments: e, columns: t = 20, rows: n = 5, cell: r = 4, format: i,
2033
2305
  onMouseLeave: () => u(null),
2034
2306
  children: [
2035
2307
  /* @__PURE__ */ h("span", {
2036
- className: dt.swatch,
2308
+ className: Ct.swatch,
2037
2309
  style: { background: m(t) }
2038
2310
  }),
2039
2311
  e.icon != null && /* @__PURE__ */ h("span", {
2040
- className: dt.icon,
2312
+ className: Ct.icon,
2041
2313
  children: e.icon
2042
2314
  }),
2043
2315
  /* @__PURE__ */ h("span", {
2044
- className: dt.name,
2316
+ className: Ct.name,
2045
2317
  children: e.label
2046
2318
  }),
2047
2319
  /* @__PURE__ */ h("span", {
2048
- className: dt.share,
2320
+ className: Ct.share,
2049
2321
  children: _(e)
2050
2322
  })
2051
2323
  ]
@@ -2053,7 +2325,7 @@ function mt({ segments: e, columns: t = 20, rows: n = 5, cell: r = 4, format: i,
2053
2325
  })]
2054
2326
  });
2055
2327
  }
2056
- var ht = {
2328
+ var Dt = {
2057
2329
  heatmap: "_heatmap_1poh8_1",
2058
2330
  gridWrap: "_gridWrap_1poh8_12",
2059
2331
  withRows: "_withRows_1poh8_17",
@@ -2067,34 +2339,34 @@ var ht = {
2067
2339
  columnLabel: "_columnLabel_1poh8_65",
2068
2340
  rowLabels: "_rowLabels_1poh8_77",
2069
2341
  rowLabel: "_rowLabel_1poh8_77"
2070
- }, gt = [
2342
+ }, Ot = [
2071
2343
  "var(--lv3)",
2072
2344
  "var(--lv4)",
2073
2345
  "var(--lv5)",
2074
2346
  "var(--lv8)"
2075
2347
  ];
2076
- function _t(e, t) {
2077
- return e <= 0 || t <= 0 ? 0 : Math.min(gt.length, Math.max(1, Math.ceil(e / t * gt.length)));
2348
+ function kt(e, t) {
2349
+ return e <= 0 || t <= 0 ? 0 : Math.min(Ot.length, Math.max(1, Math.ceil(e / t * Ot.length)));
2078
2350
  }
2079
- function vt({ values: e, rows: t = 7, max: n, columnLabels: r, rowLabels: i, cell: a = 6, format: o, "aria-label": s, className: c = "" }) {
2351
+ function At({ values: e, rows: t = 7, max: n, columnLabels: r, rowLabels: i, cell: a = 6, format: o, "aria-label": s, className: c = "" }) {
2080
2352
  let l = n ?? e.reduce((e, t) => t != null && t > e ? t : e, 0), u = Math.ceil(e.length / t), d = a + 2, [p, m] = f(null), _ = [];
2081
2353
  for (let n = 0; n < u * t; n++) {
2082
2354
  let t = n < e.length ? e[n] : null;
2083
2355
  if (t == null) {
2084
- _.push(/* @__PURE__ */ h("span", { className: ht.gap }, n));
2356
+ _.push(/* @__PURE__ */ h("span", { className: Dt.gap }, n));
2085
2357
  continue;
2086
2358
  }
2087
- let r = _t(t, l);
2359
+ let r = kt(t, l);
2088
2360
  _.push(/* @__PURE__ */ h("span", {
2089
- className: `${ht.cell} ${p === n ? ht.hovered : ""}`,
2090
- style: r ? { background: gt[r - 1] } : void 0,
2361
+ className: `${Dt.cell} ${p === n ? Dt.hovered : ""}`,
2362
+ style: r ? { background: Ot[r - 1] } : void 0,
2091
2363
  onMouseEnter: o ? () => m(n) : void 0
2092
2364
  }, n));
2093
2365
  }
2094
2366
  let v = p != null && o && e[p] != null ? (() => {
2095
2367
  let n = Math.floor(p / t), r = p % t, i = n > u / 2;
2096
2368
  return /* @__PURE__ */ h("div", {
2097
- className: `${ht.tooltip} ${i ? ht.tooltipLeft : ""}`,
2369
+ className: `${Dt.tooltip} ${i ? Dt.tooltipLeft : ""}`,
2098
2370
  style: {
2099
2371
  top: r * d + a / 2,
2100
2372
  left: i ? n * d - 6 : n * d + a + 6
@@ -2103,7 +2375,7 @@ function vt({ values: e, rows: t = 7, max: n, columnLabels: r, rowLabels: i, cel
2103
2375
  });
2104
2376
  })() : null;
2105
2377
  return /* @__PURE__ */ g("div", {
2106
- className: `${ht.heatmap} ${i ? ht.withRows : ""} ${c}`,
2378
+ className: `${Dt.heatmap} ${i ? Dt.withRows : ""} ${c}`,
2107
2379
  style: {
2108
2380
  "--heatmap-rows": t,
2109
2381
  "--heatmap-cell": `${a}px`,
@@ -2111,29 +2383,29 @@ function vt({ values: e, rows: t = 7, max: n, columnLabels: r, rowLabels: i, cel
2111
2383
  },
2112
2384
  children: [
2113
2385
  i && /* @__PURE__ */ h("div", {
2114
- className: ht.rowLabels,
2386
+ className: Dt.rowLabels,
2115
2387
  "aria-hidden": "true",
2116
2388
  children: i.map((e) => /* @__PURE__ */ h("span", {
2117
- className: ht.rowLabel,
2389
+ className: Dt.rowLabel,
2118
2390
  style: { top: e.at * d },
2119
2391
  children: e.label
2120
2392
  }, e.at))
2121
2393
  }),
2122
2394
  /* @__PURE__ */ g("div", {
2123
- className: ht.gridWrap,
2395
+ className: Dt.gridWrap,
2124
2396
  onMouseLeave: () => m(null),
2125
2397
  children: [/* @__PURE__ */ h("div", {
2126
- className: ht.grid,
2398
+ className: Dt.grid,
2127
2399
  role: "img",
2128
2400
  "aria-label": s,
2129
2401
  children: _
2130
2402
  }), v]
2131
2403
  }),
2132
2404
  r && /* @__PURE__ */ h("div", {
2133
- className: ht.columnLabels,
2405
+ className: Dt.columnLabels,
2134
2406
  "aria-hidden": "true",
2135
2407
  children: r.map((e) => /* @__PURE__ */ h("span", {
2136
- className: ht.columnLabel,
2408
+ className: Dt.columnLabel,
2137
2409
  style: { left: e.at * d },
2138
2410
  children: e.label
2139
2411
  }, e.at))
@@ -2141,7 +2413,7 @@ function vt({ values: e, rows: t = 7, max: n, columnLabels: r, rowLabels: i, cel
2141
2413
  ]
2142
2414
  });
2143
2415
  }
2144
- var yt = [
2416
+ var jt = [
2145
2417
  "Jan",
2146
2418
  "Feb",
2147
2419
  "Mar",
@@ -2154,7 +2426,7 @@ var yt = [
2154
2426
  "Oct",
2155
2427
  "Nov",
2156
2428
  "Dec"
2157
- ], bt = [
2429
+ ], Mt = [
2158
2430
  "Mon",
2159
2431
  "Tue",
2160
2432
  "Wed",
@@ -2163,14 +2435,14 @@ var yt = [
2163
2435
  "Sat",
2164
2436
  "Sun"
2165
2437
  ];
2166
- function xt(e, t, n) {
2438
+ function Nt(e, t, n) {
2167
2439
  let r = new Date(e.getFullYear(), e.getMonth(), e.getDate()), i = new Date(t.getFullYear(), t.getMonth(), t.getDate()), a = [], o = [], s = [], c = (r.getDay() + 6) % 7;
2168
2440
  for (let e = 0; e < c; e++) a.push(null), o.push(null);
2169
2441
  for (let e = new Date(r); e <= i; e.setDate(e.getDate() + 1)) {
2170
2442
  let t = new Date(e);
2171
2443
  t.getDate() === 1 && s.push({
2172
2444
  at: Math.floor(a.length / 7),
2173
- label: yt[t.getMonth()]
2445
+ label: jt[t.getMonth()]
2174
2446
  }), a.push(n(t)), o.push(t);
2175
2447
  }
2176
2448
  for (; a.length % 7;) a.push(null), o.push(null);
@@ -2184,7 +2456,7 @@ function xt(e, t, n) {
2184
2456
  4
2185
2457
  ].map((e) => ({
2186
2458
  at: e,
2187
- label: bt[e]
2459
+ label: Mt[e]
2188
2460
  }))
2189
2461
  };
2190
2462
  }
@@ -2215,8 +2487,8 @@ var J = {
2215
2487
  legendLabel: "_legendLabel_16ve1_159",
2216
2488
  tooltipLabel: "_tooltipLabel_16ve1_164",
2217
2489
  tooltipValue: "_tooltipValue_16ve1_171"
2218
- }, St = "var(--lv6)";
2219
- function Ct({ values: e, series: t, labels: n, groups: r, gap: i = 4, rounding: a = 8, size: o = 240, hollow: s = .4, inverse: c = !1, max: l, color: u, format: d, centre: p, showLegend: m = !0, "aria-label": _, className: v = "" }) {
2490
+ }, Pt = "var(--lv6)";
2491
+ function Ft({ values: e, series: t, labels: n, groups: r, gap: i = 4, rounding: a = 8, size: o = 240, hollow: s = .4, inverse: c = !1, max: l, color: u, format: d, centre: p, showLegend: m = !0, "aria-label": _, className: v = "" }) {
2220
2492
  let [y, b] = f(null), x = o / 2, S = x * Math.min(.9, Math.max(0, s)), C = x - S, w = !!r?.length, T = w ? [{
2221
2493
  label: "",
2222
2494
  values: r.map((e) => e.value),
@@ -2225,7 +2497,7 @@ function Ct({ values: e, series: t, labels: n, groups: r, gap: i = 4, rounding:
2225
2497
  label: "",
2226
2498
  values: e ?? [],
2227
2499
  color: u
2228
- }], E = Math.max(...T.map((e) => e.values.length), 0), D = (e, t) => T[e].values[t], O = l ?? T.reduce((e, t) => t.values.reduce((e, t) => Number.isFinite(t) && t > e ? t : e, e), 0), k = 2 * Math.PI / Math.max(1, E), A = T.length, j = (e, t = 0) => -Math.PI / 2 + k * (e + (A > 1 ? (t + .5) / A - .5 : 0)), M = (e, t, n = 0) => [x + t * Math.cos(j(e, n)), x + t * Math.sin(j(e, n))], N = (e) => O > 0 && Number.isFinite(e) ? Math.max(0, e) / O * C : 0, P = c ? x : S, F = (e) => c ? x - e : S + e, I = Math.max(.5, Math.min(2, 2 * Math.PI * S / Math.max(1, E * A) * .55)), L = (e) => T[e].color ?? St, R = Math.min(a, C * .12), z = i / 2 + R, B = (e, t) => {
2500
+ }], E = Math.max(...T.map((e) => e.values.length), 0), D = (e, t) => T[e].values[t], O = l ?? T.reduce((e, t) => t.values.reduce((e, t) => Number.isFinite(t) && t > e ? t : e, e), 0), k = 2 * Math.PI / Math.max(1, E), A = T.length, j = (e, t = 0) => -Math.PI / 2 + k * (e + (A > 1 ? (t + .5) / A - .5 : 0)), M = (e, t, n = 0) => [x + t * Math.cos(j(e, n)), x + t * Math.sin(j(e, n))], N = (e) => O > 0 && Number.isFinite(e) ? Math.max(0, e) / O * C : 0, P = c ? x : S, F = (e) => c ? x - e : S + e, I = Math.max(.5, Math.min(2, 2 * Math.PI * S / Math.max(1, E * A) * .55)), L = (e) => T[e].color ?? Pt, R = Math.min(a, C * .12), z = i / 2 + R, B = (e, t) => {
2229
2501
  let n = S + z, r = Math.max(n + .5, t - z), i = j(e), a = Math.max(.01, k / 2 - z / n), o = Math.max(.01, k / 2 - z / r), s = (e, t) => `${(x + e * Math.cos(t)).toFixed(2)} ${(x + e * Math.sin(t)).toFixed(2)}`, c = +(2 * o > Math.PI);
2230
2502
  return `M ${s(n, i - a)} L ${s(r, i - o)} A ${r.toFixed(2)} ${r.toFixed(2)} 0 ${c} 1 ${s(r, i + o)} L ${s(n, i + a)} A ${n.toFixed(2)} ${n.toFixed(2)} 0 ${c} 0 ${s(n, i - a)} Z`;
2231
2503
  }, ee = (e) => {
@@ -2246,7 +2518,7 @@ function Ct({ values: e, series: t, labels: n, groups: r, gap: i = 4, rounding:
2246
2518
  style: { strokeWidth: R * 2 },
2247
2519
  d: B(e, x)
2248
2520
  }, `t${e}`)), n > 0) {
2249
- let r = t.color ?? u ?? St;
2521
+ let r = t.color ?? u ?? Pt;
2250
2522
  te.push(/* @__PURE__ */ h("path", {
2251
2523
  className: `${J.wedge} ${y === e ? J.wedgeHovered : ""}`,
2252
2524
  style: {
@@ -2417,7 +2689,7 @@ var Y = {
2417
2689
  legendItem: "_legendItem_1gzqh_112",
2418
2690
  legendMark: "_legendMark_1gzqh_118",
2419
2691
  legendLabel: "_legendLabel_1gzqh_124"
2420
- }, wt = "var(--lv6)", Tt = .14, Et = .7, Dt = 36, Ot = {
2692
+ }, It = "var(--lv6)", Lt = .14, Rt = .7, zt = 36, Bt = {
2421
2693
  hatch: [
2422
2694
  [
2423
2695
  0,
@@ -2462,11 +2734,11 @@ var Y = {
2462
2734
  2
2463
2735
  ]]
2464
2736
  };
2465
- function kt({ axes: e, series: t, size: n = 240, max: r, rings: i = 3, format: a, showLegend: o = !0, "aria-label": c, className: l = "" }) {
2466
- let u = s(), [d, p] = f(null), m = e.length, _ = n / 2, v = Math.max(Dt, Math.max(0, ...e.map((e) => e.label.length)) * 6.5 + 14), y = n + v * 2, b = n + 56, x = y / 2, S = b / 2, C = r ?? t.reduce((e, t) => t.values.reduce((e, t) => Number.isFinite(t) && t > e ? t : e, e), 0), w = (t) => e[t].max ?? C, T = (e) => -Math.PI / 2 + 2 * Math.PI * e / Math.max(1, m), E = (e, t) => [x + t * Math.cos(T(e)), S + t * Math.sin(T(e))], D = (e, t) => {
2737
+ function Vt({ axes: e, series: t, size: n = 240, max: r, rings: i = 3, format: a, showLegend: o = !0, "aria-label": c, className: l = "" }) {
2738
+ let u = s(), [d, p] = f(null), m = e.length, _ = n / 2, v = Math.max(zt, Math.max(0, ...e.map((e) => e.label.length)) * 6.5 + 14), y = n + v * 2, b = n + 56, x = y / 2, S = b / 2, C = r ?? t.reduce((e, t) => t.values.reduce((e, t) => Number.isFinite(t) && t > e ? t : e, e), 0), w = (t) => e[t].max ?? C, T = (e) => -Math.PI / 2 + 2 * Math.PI * e / Math.max(1, m), E = (e, t) => [x + t * Math.cos(T(e)), S + t * Math.sin(T(e))], D = (e, t) => {
2467
2739
  let n = w(e);
2468
2740
  return n > 0 && Number.isFinite(t) ? Math.min(1, Math.max(0, t / n)) * _ : 0;
2469
- }, O = (e) => e.color ?? wt, k = (t, n) => e[t].format?.(n) ?? a?.(n) ?? n.toLocaleString(), A = (e) => {
2741
+ }, O = (e) => e.color ?? It, k = (t, n) => e[t].format?.(n) ?? a?.(n) ?? n.toLocaleString(), A = (e) => {
2470
2742
  if (m === 0) return;
2471
2743
  let t = e.currentTarget.getBoundingClientRect(), n = (e.clientX - t.left) / t.width * y - x, r = (e.clientY - t.top) / t.height * b - S;
2472
2744
  if (Math.hypot(n, r) > _ + v) {
@@ -2478,7 +2750,7 @@ function kt({ axes: e, series: t, size: n = 240, max: r, rings: i = 3, format: a
2478
2750
  }, j = Array.from({ length: i }, (e, t) => {
2479
2751
  let n = _ * (t + 1) / i;
2480
2752
  return Array.from({ length: m }, (e, t) => E(t, n).map((e) => e.toFixed(2)).join(",")).join(" ");
2481
- }), M = t.filter((e) => e.fill && e.fill in Ot);
2753
+ }), M = t.filter((e) => e.fill && e.fill in Bt);
2482
2754
  return /* @__PURE__ */ g("div", {
2483
2755
  className: `${Y.wrapper} ${l}`,
2484
2756
  children: [/* @__PURE__ */ g("div", {
@@ -2498,12 +2770,12 @@ function kt({ axes: e, series: t, size: n = 240, max: r, rings: i = 3, format: a
2498
2770
  onPointerMove: A,
2499
2771
  onPointerDown: A,
2500
2772
  children: [
2501
- M.length > 0 && /* @__PURE__ */ h("defs", { children: t.map((e, t) => e.fill && e.fill in Ot ? /* @__PURE__ */ h("pattern", {
2773
+ M.length > 0 && /* @__PURE__ */ h("defs", { children: t.map((e, t) => e.fill && e.fill in Bt ? /* @__PURE__ */ h("pattern", {
2502
2774
  id: `${u}-${t}`,
2503
2775
  width: 4,
2504
2776
  height: 4,
2505
2777
  patternUnits: "userSpaceOnUse",
2506
- children: Ot[e.fill].map(([t, n, r, i], a) => /* @__PURE__ */ h("rect", {
2778
+ children: Bt[e.fill].map(([t, n, r, i], a) => /* @__PURE__ */ h("rect", {
2507
2779
  x: t,
2508
2780
  y: n,
2509
2781
  width: r,
@@ -2526,12 +2798,12 @@ function kt({ axes: e, series: t, size: n = 240, max: r, rings: i = 3, format: a
2526
2798
  }, `a${t}`);
2527
2799
  }),
2528
2800
  t.map((t, n) => {
2529
- let r = e.map((e, n) => E(n, D(n, t.values[n]))), i = t.fill ?? "solid", a = i in Ot ? `url(#${u}-${n})` : O(t);
2801
+ let r = e.map((e, n) => E(n, D(n, t.values[n]))), i = t.fill ?? "solid", a = i in Bt ? `url(#${u}-${n})` : O(t);
2530
2802
  return /* @__PURE__ */ g("g", { children: [
2531
2803
  i !== "none" && /* @__PURE__ */ h("polygon", {
2532
2804
  points: r.map(([e, t]) => `${e.toFixed(2)},${t.toFixed(2)}`).join(" "),
2533
2805
  fill: a,
2534
- fillOpacity: i === "solid" ? Tt : Et,
2806
+ fillOpacity: i === "solid" ? Lt : Rt,
2535
2807
  stroke: "none"
2536
2808
  }),
2537
2809
  /* @__PURE__ */ h("polygon", {
@@ -2610,7 +2882,7 @@ function kt({ axes: e, series: t, size: n = 240, max: r, rings: i = 3, format: a
2610
2882
  })]
2611
2883
  });
2612
2884
  }
2613
- var At = {
2885
+ var Ht = {
2614
2886
  chart: "_chart_106dt_1",
2615
2887
  svg: "_svg_106dt_7",
2616
2888
  divider: "_divider_106dt_13",
@@ -2624,8 +2896,8 @@ var At = {
2624
2896
  tooltipLeft: "_tooltipLeft_106dt_66",
2625
2897
  tooltipLabel: "_tooltipLabel_106dt_70",
2626
2898
  tooltipValue: "_tooltipValue_106dt_77"
2627
- }, jt = "var(--lv6)", Mt = 30, Nt = 10, Pt = 20;
2628
- function Ft({ groups: e, labels: t, height: n = 120, max: r, gap: i = 2, format: a, "aria-label": s, className: c = "" }) {
2899
+ }, Ut = "var(--lv6)", Wt = 30, Gt = 10, Kt = 20;
2900
+ function qt({ groups: e, labels: t, height: n = 120, max: r, gap: i = 2, format: a, "aria-label": s, className: c = "" }) {
2629
2901
  let l = i, u = d(null), [p, m] = f(0), [_, v] = f(null);
2630
2902
  o(() => {
2631
2903
  let e = u.current;
@@ -2633,9 +2905,9 @@ function Ft({ groups: e, labels: t, height: n = 120, max: r, gap: i = 2, format:
2633
2905
  let t = new ResizeObserver(([e]) => m(e.contentRect.width));
2634
2906
  return t.observe(e), m(e.clientWidth), () => t.disconnect();
2635
2907
  }, []);
2636
- let y = e.reduce((e, t) => e + t.values.length, 0), b = r ?? e.reduce((e, t) => t.values.reduce((e, t) => Number.isFinite(t) && t > e ? t : e, e), 0), x = n + Mt + 4 + Nt + Pt, S = Mt + n, C = y > 0 ? (p - l * Math.max(0, e.length - 1)) / y : 0, w = [], T = 0;
2908
+ let y = e.reduce((e, t) => e + t.values.length, 0), b = r ?? e.reduce((e, t) => t.values.reduce((e, t) => Number.isFinite(t) && t > e ? t : e, e), 0), x = n + Wt + 4 + Gt + Kt, S = Wt + n, C = y > 0 ? (p - l * Math.max(0, e.length - 1)) / y : 0, w = [], T = 0;
2637
2909
  for (let t of e) w.push(T), T += t.values.length * C + l;
2638
- let E = (e, t) => w[e] + t * C + C / 2, D = (e) => e.highlight ? e.color ?? "var(--CTeal)" : jt, O = C > 0 ? Math.max(1, Math.ceil(28 / C)) : 1, k = (e, t) => Math.min(p - 10, Math.max(10, E(e, t))), A = (t) => {
2910
+ let E = (e, t) => w[e] + t * C + C / 2, D = (e) => e.highlight ? e.color ?? "var(--CTeal)" : Ut, O = C > 0 ? Math.max(1, Math.ceil(28 / C)) : 1, k = (e, t) => Math.min(p - 10, Math.max(10, E(e, t))), A = (t) => {
2639
2911
  if (!a || y === 0) return;
2640
2912
  let n = t.currentTarget.getBoundingClientRect(), r = t.clientX - n.left;
2641
2913
  for (let t = 0; t < e.length; t++) {
@@ -2650,27 +2922,27 @@ function Ft({ groups: e, labels: t, height: n = 120, max: r, gap: i = 2, format:
2650
2922
  }, j = _ && a ? (() => {
2651
2923
  let [r, i] = _, o = e[r], s = E(r, i), c = s > p / 2, l = b > 0 && Number.isFinite(o.values[i]) ? Math.max(0, o.values[i]) / b * n : 0;
2652
2924
  return /* @__PURE__ */ g("div", {
2653
- className: `${At.tooltip} ${c ? At.tooltipLeft : ""}`,
2925
+ className: `${Ht.tooltip} ${c ? Ht.tooltipLeft : ""}`,
2654
2926
  style: {
2655
2927
  left: c ? s - 8 : s + 8,
2656
2928
  top: Math.max(42, S - l)
2657
2929
  },
2658
2930
  children: [/* @__PURE__ */ g("span", {
2659
- className: At.tooltipLabel,
2660
- children: [o.label, t?.[i] == null ? "" : ` · ${t[i]}`]
2931
+ className: Ht.tooltipLabel,
2932
+ children: [o.label, t?.[i] == null ? "" : `, ${t[i]}`]
2661
2933
  }), /* @__PURE__ */ h("span", {
2662
- className: At.tooltipValue,
2934
+ className: Ht.tooltipValue,
2663
2935
  children: a(o.values[i], r, i)
2664
2936
  })]
2665
2937
  });
2666
2938
  })() : null;
2667
2939
  return /* @__PURE__ */ g("div", {
2668
2940
  ref: u,
2669
- className: `${At.chart} ${c}`,
2941
+ className: `${Ht.chart} ${c}`,
2670
2942
  style: { height: x },
2671
2943
  onPointerLeave: () => v(null),
2672
2944
  children: [p > 0 && /* @__PURE__ */ h("svg", {
2673
- className: At.svg,
2945
+ className: Ht.svg,
2674
2946
  width: p,
2675
2947
  height: x,
2676
2948
  role: "img",
@@ -2681,20 +2953,20 @@ function Ft({ groups: e, labels: t, height: n = 120, max: r, gap: i = 2, format:
2681
2953
  let i = w[r], a = e.values.length * C, o = D(e);
2682
2954
  return /* @__PURE__ */ g("g", { children: [
2683
2955
  /* @__PURE__ */ h("line", {
2684
- className: At.divider,
2956
+ className: Ht.divider,
2685
2957
  x1: i,
2686
2958
  y1: 0,
2687
2959
  x2: i,
2688
2960
  y2: S
2689
2961
  }),
2690
2962
  /* @__PURE__ */ h("text", {
2691
- className: At.head,
2963
+ className: Ht.head,
2692
2964
  x: i + 6,
2693
2965
  y: 11,
2694
2966
  children: e.label
2695
2967
  }),
2696
2968
  e.sublabel != null && /* @__PURE__ */ h("text", {
2697
- className: `${At.sub} ${e.highlight ? At.subHighlight : ""}`,
2969
+ className: `${Ht.sub} ${e.highlight ? Ht.subHighlight : ""}`,
2698
2970
  x: i + 6,
2699
2971
  y: 23,
2700
2972
  style: e.highlight ? { fill: o } : void 0,
@@ -2703,7 +2975,7 @@ function Ft({ groups: e, labels: t, height: n = 120, max: r, gap: i = 2, format:
2703
2975
  e.values.map((e, t) => {
2704
2976
  let i = b > 0 && Number.isFinite(e) ? Math.max(0, e) / b * n : 0, a = _?.[0] === r && _[1] === t;
2705
2977
  return /* @__PURE__ */ h("rect", {
2706
- className: a ? At.barHovered : At.bar,
2978
+ className: a ? Ht.barHovered : Ht.bar,
2707
2979
  style: { fill: a ? void 0 : o },
2708
2980
  x: E(r, t) - (a ? 1.5 : 1),
2709
2981
  y: S - i,
@@ -2712,15 +2984,15 @@ function Ft({ groups: e, labels: t, height: n = 120, max: r, gap: i = 2, format:
2712
2984
  }, t);
2713
2985
  }),
2714
2986
  /* @__PURE__ */ h("rect", {
2715
- className: At.band,
2987
+ className: Ht.band,
2716
2988
  style: e.highlight ? { fill: o } : void 0,
2717
2989
  x: i,
2718
2990
  y: S + 4,
2719
2991
  width: a,
2720
- height: Nt
2992
+ height: Gt
2721
2993
  }),
2722
2994
  t && e.values.map((e, n) => n % O === 0 ? /* @__PURE__ */ h("text", {
2723
- className: At.tick,
2995
+ className: Ht.tick,
2724
2996
  x: k(r, n),
2725
2997
  y: x - 5,
2726
2998
  textAnchor: "middle",
@@ -2731,32 +3003,32 @@ function Ft({ groups: e, labels: t, height: n = 120, max: r, gap: i = 2, format:
2731
3003
  }), j]
2732
3004
  });
2733
3005
  }
2734
- var It = { kbd: "_kbd_17l44_3" };
3006
+ var Jt = { kbd: "_kbd_17l44_3" };
2735
3007
  // src/components/Kbd/Kbd.tsx
2736
- function Lt({ children: e, className: t = "", ...n }) {
3008
+ function Yt({ children: e, className: t = "", ...n }) {
2737
3009
  return /* @__PURE__ */ h("kbd", {
2738
- className: `${It.kbd} ${t}`,
3010
+ className: `${Jt.kbd} ${t}`,
2739
3011
  ...n,
2740
3012
  children: e
2741
3013
  });
2742
3014
  }
2743
- var Rt = {
2744
- overlay: "_overlay_hq0by_3",
2745
- panel: "_panel_hq0by_14",
2746
- field: "_field_hq0by_26",
2747
- icon: "_icon_hq0by_36",
2748
- input: "_input_hq0by_41",
2749
- list: "_list_hq0by_57",
2750
- group: "_group_hq0by_62",
2751
- item: "_item_hq0by_70",
2752
- active: "_active_hq0by_87",
2753
- itemIcon: "_itemIcon_hq0by_92",
2754
- label: "_label_hq0by_98",
2755
- hint: "_hint_hq0by_106",
2756
- empty: "_empty_hq0by_112"
3015
+ var Xt = {
3016
+ overlay: "_overlay_11duy_3",
3017
+ panel: "_panel_11duy_14",
3018
+ field: "_field_11duy_25",
3019
+ icon: "_icon_11duy_35",
3020
+ input: "_input_11duy_40",
3021
+ list: "_list_11duy_56",
3022
+ group: "_group_11duy_61",
3023
+ item: "_item_11duy_69",
3024
+ active: "_active_11duy_86",
3025
+ itemIcon: "_itemIcon_11duy_91",
3026
+ label: "_label_11duy_97",
3027
+ hint: "_hint_11duy_105",
3028
+ empty: "_empty_11duy_111"
2757
3029
  };
2758
3030
  // src/components/CommandPalette/CommandPalette.tsx
2759
- function zt({ items: t, query: n, onQueryChange: r, open: i, onOpenChange: a, onChoose: c, shortcut: l = "k", placeholder: u = "Search", emptyText: p = "Nothing to show.", noMatchText: m = "No matches.", "aria-label": _ = "Command palette" }) {
3031
+ function Zt({ items: t, query: n, onQueryChange: r, open: i, onOpenChange: a, onChoose: c, shortcut: l = "k", placeholder: u = "Search", emptyText: p = "Nothing to show.", noMatchText: m = "No matches.", "aria-label": _ = "Command palette" }) {
2760
3032
  let v = s(), y = d(null), b = d(null), [x, S] = f(0);
2761
3033
  o(() => {
2762
3034
  if (!l) return;
@@ -2794,19 +3066,19 @@ function zt({ items: t, query: n, onQueryChange: r, open: i, onOpenChange: a, on
2794
3066
  if (!i) return null;
2795
3067
  let E = /* @__PURE__ */ new Set(), D = t.filter((e) => !E.has(e.id) && (E.add(e.id), !0)), O;
2796
3068
  return /* @__PURE__ */ h("div", {
2797
- className: Rt.overlay,
3069
+ className: Xt.overlay,
2798
3070
  onClick: C,
2799
3071
  children: /* @__PURE__ */ g("div", {
2800
- className: Rt.panel,
3072
+ className: Xt.panel,
2801
3073
  role: "dialog",
2802
3074
  "aria-modal": "true",
2803
3075
  "aria-label": _,
2804
3076
  onClick: (e) => e.stopPropagation(),
2805
3077
  children: [/* @__PURE__ */ g("div", {
2806
- className: Rt.field,
3078
+ className: Xt.field,
2807
3079
  children: [
2808
3080
  /* @__PURE__ */ h("span", {
2809
- className: Rt.icon,
3081
+ className: Xt.icon,
2810
3082
  children: /* @__PURE__ */ h(M, {
2811
3083
  size: 14,
2812
3084
  color: "currentColor"
@@ -2814,7 +3086,7 @@ function zt({ items: t, query: n, onQueryChange: r, open: i, onOpenChange: a, on
2814
3086
  }),
2815
3087
  /* @__PURE__ */ h("input", {
2816
3088
  ref: y,
2817
- className: Rt.input,
3089
+ className: Xt.input,
2818
3090
  type: "text",
2819
3091
  role: "combobox",
2820
3092
  "aria-expanded": "true",
@@ -2828,21 +3100,21 @@ function zt({ items: t, query: n, onQueryChange: r, open: i, onOpenChange: a, on
2828
3100
  onChange: (e) => r(e.target.value),
2829
3101
  onKeyDown: T
2830
3102
  }),
2831
- /* @__PURE__ */ h(Lt, { children: "esc" })
3103
+ /* @__PURE__ */ h(Yt, { children: "esc" })
2832
3104
  ]
2833
3105
  }), /* @__PURE__ */ g("div", {
2834
3106
  ref: b,
2835
- className: Rt.list,
3107
+ className: Xt.list,
2836
3108
  id: v,
2837
3109
  role: "listbox",
2838
3110
  "aria-label": _,
2839
3111
  children: [D.length === 0 && /* @__PURE__ */ h("p", {
2840
- className: Rt.empty,
3112
+ className: Xt.empty,
2841
3113
  children: n.trim() ? m : p
2842
3114
  }), D.map((t, n) => {
2843
3115
  let r = t.group !== O && t.group ? t.group : null;
2844
3116
  return O = t.group, /* @__PURE__ */ g(e.Fragment, { children: [r && /* @__PURE__ */ h("div", {
2845
- className: Rt.group,
3117
+ className: Xt.group,
2846
3118
  role: "presentation",
2847
3119
  children: r
2848
3120
  }), /* @__PURE__ */ g("button", {
@@ -2851,20 +3123,20 @@ function zt({ items: t, query: n, onQueryChange: r, open: i, onOpenChange: a, on
2851
3123
  "data-index": n,
2852
3124
  role: "option",
2853
3125
  "aria-selected": n === x,
2854
- className: `${Rt.item} ${n === x ? Rt.active : ""}`,
3126
+ className: `${Xt.item} ${n === x ? Xt.active : ""}`,
2855
3127
  onPointerMove: () => n !== x && S(n),
2856
3128
  onClick: () => w(t),
2857
3129
  children: [
2858
3130
  t.icon && /* @__PURE__ */ h("span", {
2859
- className: Rt.itemIcon,
3131
+ className: Xt.itemIcon,
2860
3132
  children: t.icon
2861
3133
  }),
2862
3134
  /* @__PURE__ */ h("span", {
2863
- className: Rt.label,
3135
+ className: Xt.label,
2864
3136
  children: t.label
2865
3137
  }),
2866
3138
  t.hint && /* @__PURE__ */ h("span", {
2867
- className: Rt.hint,
3139
+ className: Xt.hint,
2868
3140
  children: t.hint
2869
3141
  })
2870
3142
  ]
@@ -2874,7 +3146,7 @@ function zt({ items: t, query: n, onQueryChange: r, open: i, onOpenChange: a, on
2874
3146
  })
2875
3147
  });
2876
3148
  }
2877
- var Bt = {
3149
+ var Qt = {
2878
3150
  wrapper: "_wrapper_59d2a_1",
2879
3151
  field: "_field_59d2a_9",
2880
3152
  disabled: "_disabled_59d2a_28",
@@ -2886,7 +3158,7 @@ var Bt = {
2886
3158
  label: "_label_59d2a_106"
2887
3159
  };
2888
3160
  // src/components/TagsInput/TagsInput.tsx
2889
- function Vt({ value: e, onChange: t, label: n, placeholder: r, hint: i, separators: a = ";,", disabled: o = !1, "aria-label": c, className: l = "" }) {
3161
+ function $t({ value: e, onChange: t, label: n, placeholder: r, hint: i, separators: a = ";,", disabled: o = !1, "aria-label": c, className: l = "" }) {
2890
3162
  let u = s(), p = d(null), [m, _] = f(""), v = (e, t) => {
2891
3163
  let n = [...e];
2892
3164
  for (let e of t) {
@@ -2908,24 +3180,24 @@ function Vt({ value: e, onChange: t, label: n, placeholder: r, hint: i, separato
2908
3180
  t(e.filter((e, t) => t !== n)), p.current?.focus();
2909
3181
  };
2910
3182
  return /* @__PURE__ */ g("div", {
2911
- className: `${Bt.wrapper} ${l}`,
3183
+ className: `${Qt.wrapper} ${l}`,
2912
3184
  children: [
2913
3185
  n && /* @__PURE__ */ h("label", {
2914
3186
  htmlFor: u,
2915
- className: Bt.label,
3187
+ className: Qt.label,
2916
3188
  children: n
2917
3189
  }),
2918
3190
  /* @__PURE__ */ g("div", {
2919
- className: `${Bt.field} ${o ? Bt.disabled : ""}`,
3191
+ className: `${Qt.field} ${o ? Qt.disabled : ""}`,
2920
3192
  onClick: () => p.current?.focus(),
2921
3193
  children: [e.map((e, t) => /* @__PURE__ */ g("span", {
2922
- className: Bt.chip,
3194
+ className: Qt.chip,
2923
3195
  children: [/* @__PURE__ */ h("span", {
2924
- className: Bt.text,
3196
+ className: Qt.text,
2925
3197
  children: e
2926
3198
  }), !o && /* @__PURE__ */ h("button", {
2927
3199
  type: "button",
2928
- className: Bt.remove,
3200
+ className: Qt.remove,
2929
3201
  "aria-label": `Remove ${e}`,
2930
3202
  title: "Remove",
2931
3203
  onClick: (e) => {
@@ -2939,7 +3211,7 @@ function Vt({ value: e, onChange: t, label: n, placeholder: r, hint: i, separato
2939
3211
  }, e)), /* @__PURE__ */ h("input", {
2940
3212
  id: u,
2941
3213
  ref: p,
2942
- className: Bt.input,
3214
+ className: Qt.input,
2943
3215
  value: m,
2944
3216
  placeholder: e.length === 0 ? r : void 0,
2945
3217
  "aria-label": c ?? n,
@@ -2950,84 +3222,84 @@ function Vt({ value: e, onChange: t, label: n, placeholder: r, hint: i, separato
2950
3222
  })]
2951
3223
  }),
2952
3224
  i && /* @__PURE__ */ h("span", {
2953
- className: Bt.hint,
3225
+ className: Qt.hint,
2954
3226
  children: i
2955
3227
  })
2956
3228
  ]
2957
3229
  });
2958
3230
  }
2959
- var Ht = {
3231
+ var en = {
2960
3232
  stack: "_stack_67643_3",
2961
3233
  toast: "_toast_67643_18",
2962
3234
  error: "_error_67643_36",
2963
3235
  icon: "_icon_67643_40",
2964
3236
  message: "_message_67643_50",
2965
3237
  close: "_close_67643_55"
2966
- }, Ut = [], Wt = 0, Gt = /* @__PURE__ */ new Set(), Kt = () => Gt.forEach((e) => e());
2967
- function qt(e) {
2968
- let t = ++Wt;
2969
- return Ut = [...Ut, {
3238
+ }, tn = [], nn = 0, rn = /* @__PURE__ */ new Set(), an = () => rn.forEach((e) => e());
3239
+ function on(e) {
3240
+ let t = ++nn;
3241
+ return tn = [...tn, {
2970
3242
  ...e,
2971
3243
  id: t
2972
- }].slice(-4), Kt(), t;
3244
+ }].slice(-4), an(), t;
2973
3245
  }
2974
- function Jt(e, t = {}) {
2975
- return qt({
3246
+ function sn(e, t = {}) {
3247
+ return on({
2976
3248
  message: e,
2977
3249
  kind: "neutral",
2978
3250
  ...t,
2979
3251
  duration: t.duration ?? 4e3
2980
3252
  });
2981
3253
  }
2982
- Jt.error = (e, t = {}) => qt({
3254
+ sn.error = (e, t = {}) => on({
2983
3255
  message: e,
2984
3256
  kind: "error",
2985
3257
  ...t,
2986
3258
  duration: t.duration ?? 8e3
2987
- }), Jt.dismiss = (e) => {
2988
- Ut = Ut.filter((t) => t.id !== e), Kt();
3259
+ }), sn.dismiss = (e) => {
3260
+ tn = tn.filter((t) => t.id !== e), an();
2989
3261
  };
2990
- function Yt() {
2991
- return p((e) => (Gt.add(e), () => Gt.delete(e)), () => Ut, () => Ut);
3262
+ function cn() {
3263
+ return p((e) => (rn.add(e), () => rn.delete(e)), () => tn, () => tn);
2992
3264
  }
2993
- function Xt({ t: e }) {
3265
+ function ln({ t: e }) {
2994
3266
  let t = d(void 0), n = () => {
2995
- clearTimeout(t.current), t.current = setTimeout(() => Jt.dismiss(e.id), e.duration);
3267
+ clearTimeout(t.current), t.current = setTimeout(() => sn.dismiss(e.id), e.duration);
2996
3268
  }, r = () => clearTimeout(t.current);
2997
3269
  return o(() => (n(), r), [e.id]), /* @__PURE__ */ g("div", {
2998
- className: `${Ht.toast} ${e.kind === "error" ? Ht.error : ""}`,
3270
+ className: `${en.toast} ${e.kind === "error" ? en.error : ""}`,
2999
3271
  role: e.kind === "error" ? "alert" : "status",
3000
3272
  onMouseEnter: r,
3001
3273
  onMouseLeave: n,
3002
3274
  children: [
3003
3275
  e.kind === "error" ? /* @__PURE__ */ h("span", {
3004
- className: Ht.icon,
3276
+ className: en.icon,
3005
3277
  children: /* @__PURE__ */ h(P, {
3006
3278
  size: 14,
3007
3279
  color: "currentColor"
3008
3280
  })
3009
3281
  }) : e.icon && /* @__PURE__ */ h("span", {
3010
- className: Ht.icon,
3282
+ className: en.icon,
3011
3283
  children: e.icon
3012
3284
  }),
3013
3285
  /* @__PURE__ */ h("span", {
3014
- className: Ht.message,
3286
+ className: en.message,
3015
3287
  children: e.message
3016
3288
  }),
3017
3289
  e.action && /* @__PURE__ */ h(W, {
3018
3290
  variant: "ghost",
3019
3291
  size: "micro",
3020
3292
  onClick: () => {
3021
- Jt.dismiss(e.id), e.action.onClick();
3293
+ sn.dismiss(e.id), e.action.onClick();
3022
3294
  },
3023
3295
  children: e.action.label
3024
3296
  }),
3025
3297
  /* @__PURE__ */ h("button", {
3026
3298
  type: "button",
3027
- className: Ht.close,
3299
+ className: en.close,
3028
3300
  "aria-label": "Dismiss",
3029
3301
  title: "Dismiss",
3030
- onClick: () => Jt.dismiss(e.id),
3302
+ onClick: () => sn.dismiss(e.id),
3031
3303
  children: /* @__PURE__ */ h(F, {
3032
3304
  size: 7,
3033
3305
  color: "currentColor"
@@ -3036,21 +3308,21 @@ function Xt({ t: e }) {
3036
3308
  ]
3037
3309
  });
3038
3310
  }
3039
- function Zt() {
3040
- let e = Yt();
3311
+ function un() {
3312
+ let e = cn();
3041
3313
  return /* @__PURE__ */ h("div", {
3042
- className: Ht.stack,
3314
+ className: en.stack,
3043
3315
  role: "region",
3044
3316
  "aria-label": "Notices",
3045
- children: e.map((e) => /* @__PURE__ */ h(Xt, { t: e }, e.id))
3317
+ children: e.map((e) => /* @__PURE__ */ h(ln, { t: e }, e.id))
3046
3318
  });
3047
3319
  }
3048
- var Qt = {
3049
- tooltip: "_tooltip_1de7z_1",
3050
- arrow: "_arrow_1de7z_13"
3320
+ var dn = {
3321
+ tooltip: "_tooltip_qkom3_1",
3322
+ arrow: "_arrow_qkom3_18"
3051
3323
  };
3052
3324
  // src/components/Tooltip/Tooltip.tsx
3053
- function $t({ content: e, position: t = "top", children: n, className: r }) {
3325
+ function fn({ content: e, position: t = "top", children: n, className: r }) {
3054
3326
  let i = ae();
3055
3327
  return /* @__PURE__ */ h(z.Provider, {
3056
3328
  delayDuration: 80,
@@ -3062,34 +3334,35 @@ function $t({ content: e, position: t = "top", children: n, className: r }) {
3062
3334
  children: /* @__PURE__ */ g(z.Content, {
3063
3335
  side: t,
3064
3336
  sideOffset: 7,
3065
- className: [Qt.tooltip, r].filter(Boolean).join(" "),
3066
- children: [e, /* @__PURE__ */ h(z.Arrow, { className: Qt.arrow })]
3337
+ className: [dn.tooltip, r].filter(Boolean).join(" "),
3338
+ children: [e, /* @__PURE__ */ h(z.Arrow, { className: dn.arrow })]
3067
3339
  })
3068
3340
  })] })
3069
3341
  });
3070
3342
  }
3071
3343
  var X = {
3072
- sidebar: "_sidebar_3tton_3",
3073
- header: "_header_3tton_13",
3074
- body: "_body_3tton_14",
3075
- group: "_group_3tton_15",
3076
- title: "_title_3tton_16",
3077
- titleText: "_titleText_3tton_27",
3078
- titleToggle: "_titleToggle_3tton_28",
3079
- titleChevron: "_titleChevron_3tton_30",
3080
- items: "_items_3tton_31",
3081
- item: "_item_3tton_31",
3082
- label: "_label_3tton_34",
3083
- badge: "_badge_3tton_35",
3084
- badgeSignal: "_badgeSignal_3tton_36",
3085
- trailing: "_trailing_3tton_38",
3086
- footer: "_footer_3tton_40",
3087
- footerContent: "_footerContent_3tton_41",
3088
- rail: "_rail_3tton_45",
3089
- overlay: "_overlay_3tton_54",
3090
- open: "_open_3tton_68"
3091
- }, en = "(max-width: 768px)", tn = () => typeof navigator < "u" && (/Mac|iPhone|iPad|iPod/.test(navigator.platform) || /Mac OS X/.test(navigator.userAgent)), nn = (e) => e instanceof HTMLElement && (e.isContentEditable || /^(INPUT|TEXTAREA|SELECT)$/.test(e.tagName));
3092
- function rn(e) {
3344
+ sidebar: "_sidebar_1icfm_3",
3345
+ header: "_header_1icfm_13",
3346
+ body: "_body_1icfm_14",
3347
+ group: "_group_1icfm_15",
3348
+ title: "_title_1icfm_16",
3349
+ titleText: "_titleText_1icfm_27",
3350
+ titleToggle: "_titleToggle_1icfm_28",
3351
+ titleChevron: "_titleChevron_1icfm_30",
3352
+ items: "_items_1icfm_31",
3353
+ item: "_item_1icfm_31",
3354
+ label: "_label_1icfm_34",
3355
+ badge: "_badge_1icfm_35",
3356
+ badgeSignal: "_badgeSignal_1icfm_36",
3357
+ trailing: "_trailing_1icfm_38",
3358
+ footer: "_footer_1icfm_40",
3359
+ footerContent: "_footerContent_1icfm_41",
3360
+ railFooter: "_railFooter_1icfm_42",
3361
+ rail: "_rail_1icfm_42",
3362
+ overlay: "_overlay_1icfm_55",
3363
+ open: "_open_1icfm_69"
3364
+ }, pn = "(max-width: 768px)", mn = () => typeof navigator < "u" && (/Mac|iPhone|iPad|iPod/.test(navigator.platform) || /Mac OS X/.test(navigator.userAgent)), hn = (e) => e instanceof HTMLElement && (e.isContentEditable || /^(INPUT|TEXTAREA|SELECT)$/.test(e.tagName));
3365
+ function gn(e) {
3093
3366
  if (e) try {
3094
3367
  let t = localStorage.getItem(e);
3095
3368
  return t === "rail" || t !== "full" && void 0;
@@ -3097,54 +3370,54 @@ function rn(e) {
3097
3370
  return;
3098
3371
  }
3099
3372
  }
3100
- function an() {
3101
- let [e, t] = f(() => typeof window < "u" && window.matchMedia(en).matches);
3373
+ function _n() {
3374
+ let [e, t] = f(() => typeof window < "u" && window.matchMedia(pn).matches);
3102
3375
  return o(() => {
3103
- let e = window.matchMedia(en), n = () => t(e.matches);
3376
+ let e = window.matchMedia(pn), n = () => t(e.matches);
3104
3377
  return e.addEventListener("change", n), () => e.removeEventListener("change", n);
3105
3378
  }, []), e;
3106
3379
  }
3107
- function on({ groups: t, active: n, onSelect: r, header: a, footer: s, collapsed: c, onCollapsedChange: l, defaultCollapsed: u = !1, collapsible: p = !0, shortcut: _ = "b", storageKey: v, open: y = !1, onOpenChange: b, "aria-label": S = "Sections", className: w = "" }) {
3108
- let [T, O] = f(() => rn(v)), [k, A] = f(() => /* @__PURE__ */ new Set()), j = an(), M = d(null), N = p && (c ?? T ?? u), P = N && !j, F = tn(), I = _ ? F ? `⌘${_.toUpperCase()}` : `Ctrl ${_.toUpperCase()}` : "", L = i(() => {
3109
- if (!p) return;
3110
- let e = !N;
3111
- if (c === void 0 && (O(e), v)) {
3380
+ function vn({ groups: t, active: n, onSelect: r, header: a, footer: s, railFooter: c, collapsed: l, onCollapsedChange: u, defaultCollapsed: p = !1, collapsible: _ = !0, shortcut: v = "b", storageKey: y, open: b = !1, onOpenChange: S, "aria-label": w = "Sections", className: T = "" }) {
3381
+ let [O, k] = f(() => gn(y)), [A, j] = f(() => /* @__PURE__ */ new Set()), M = _n(), N = d(null), P = _ && (l ?? O ?? p), F = P && !M, I = mn(), L = v ? I ? `⌘${v.toUpperCase()}` : `Ctrl ${v.toUpperCase()}` : "", R = i(() => {
3382
+ if (!_) return;
3383
+ let e = !P;
3384
+ if (l === void 0 && (k(e), y)) {
3112
3385
  try {
3113
- localStorage.setItem(v, e ? "rail" : "full");
3386
+ localStorage.setItem(y, e ? "rail" : "full");
3114
3387
  } catch {}
3115
3388
  try {
3116
- document.cookie = `${encodeURIComponent(v)}=${e ? "rail" : "full"}; path=/; max-age=31536000; samesite=lax`;
3389
+ document.cookie = `${encodeURIComponent(y)}=${e ? "rail" : "full"}; path=/; max-age=31536000; samesite=lax`;
3117
3390
  } catch {}
3118
3391
  }
3119
- l?.(e);
3392
+ u?.(e);
3120
3393
  }, [
3121
- p,
3122
- N,
3123
- c,
3124
- v,
3125
- l
3126
- ]), R = i(() => b?.(!1), [b]);
3394
+ _,
3395
+ P,
3396
+ l,
3397
+ y,
3398
+ u
3399
+ ]), z = i(() => S?.(!1), [S]);
3127
3400
  o(() => {
3128
3401
  let e = (e) => {
3129
- p && _ && (e.metaKey || e.ctrlKey) && !e.altKey && !e.shiftKey && e.key.toLowerCase() === _.toLowerCase() && !nn(e.target) ? (e.preventDefault(), L()) : e.key === "Escape" && y && j && (e.preventDefault(), R());
3402
+ _ && v && (e.metaKey || e.ctrlKey) && !e.altKey && !e.shiftKey && e.key.toLowerCase() === v.toLowerCase() && !hn(e.target) ? (e.preventDefault(), R()) : e.key === "Escape" && b && M && (e.preventDefault(), z());
3130
3403
  };
3131
3404
  return document.addEventListener("keydown", e), () => document.removeEventListener("keydown", e);
3132
3405
  }, [
3133
- p,
3134
3406
  _,
3135
- L,
3136
- y,
3137
- j,
3138
- R
3407
+ v,
3408
+ R,
3409
+ b,
3410
+ M,
3411
+ z
3139
3412
  ]), o(() => {
3140
- y && j && M.current && (M.current.querySelector("[aria-current=\"page\"]") ?? M.current.querySelector(`.${X.body} a, .${X.body} button`))?.focus();
3141
- }, [y, j]);
3142
- let z = (e) => {
3143
- r?.(e), R();
3144
- }, B = (e) => A((t) => {
3413
+ b && M && N.current && (N.current.querySelector("[aria-current=\"page\"]") ?? N.current.querySelector(`.${X.body} a, .${X.body} button`))?.focus();
3414
+ }, [b, M]);
3415
+ let B = (e) => {
3416
+ r?.(e), z();
3417
+ }, ee = (e) => j((t) => {
3145
3418
  let n = new Set(t);
3146
3419
  return n.delete(e) || n.add(e), n;
3147
- }), ee = (t) => /* @__PURE__ */ g(m, { children: [
3420
+ }), V = (t) => /* @__PURE__ */ g(m, { children: [
3148
3421
  /* @__PURE__ */ h("span", {
3149
3422
  className: X.label,
3150
3423
  children: t.label
@@ -3162,7 +3435,7 @@ function on({ groups: t, active: n, onSelect: r, header: a, footer: s, collapsed
3162
3435
  color: "currentColor"
3163
3436
  })
3164
3437
  })
3165
- ] }), V = (e) => {
3438
+ ] }), te = (e) => {
3166
3439
  let t = e.key === n;
3167
3440
  return e.disabled ? /* @__PURE__ */ h(W, {
3168
3441
  variant: "ghost",
@@ -3171,7 +3444,7 @@ function on({ groups: t, active: n, onSelect: r, header: a, footer: s, collapsed
3171
3444
  "aria-disabled": "true",
3172
3445
  title: e.title,
3173
3446
  onClick: (e) => e.preventDefault(),
3174
- children: ee(e)
3447
+ children: V(e)
3175
3448
  }) : e.href ? /* @__PURE__ */ h(W, {
3176
3449
  variant: t ? "primary" : "ghost",
3177
3450
  size: "micro",
@@ -3179,30 +3452,30 @@ function on({ groups: t, active: n, onSelect: r, header: a, footer: s, collapsed
3179
3452
  title: e.title,
3180
3453
  "aria-current": t ? "page" : void 0,
3181
3454
  href: e.href,
3182
- onClick: () => z(e),
3183
- children: ee(e)
3455
+ onClick: () => B(e),
3456
+ children: V(e)
3184
3457
  }) : /* @__PURE__ */ h(W, {
3185
3458
  variant: t ? "primary" : "ghost",
3186
3459
  size: "micro",
3187
3460
  iconLeft: e.icon,
3188
3461
  title: e.title,
3189
3462
  "aria-current": t ? "page" : void 0,
3190
- onClick: () => z(e),
3191
- children: ee(e)
3463
+ onClick: () => B(e),
3464
+ children: V(e)
3192
3465
  });
3193
- }, te = [
3466
+ }, H = [
3194
3467
  X.sidebar,
3195
- P ? X.rail : "",
3196
- y ? X.open : "",
3197
- w
3468
+ F ? X.rail : "",
3469
+ b ? X.open : "",
3470
+ T
3198
3471
  ].filter(Boolean).join(" ");
3199
- return /* @__PURE__ */ g(m, { children: [y && j && /* @__PURE__ */ h("div", {
3472
+ return /* @__PURE__ */ g(m, { children: [b && M && /* @__PURE__ */ h("div", {
3200
3473
  className: X.overlay,
3201
- onClick: R
3474
+ onClick: z
3202
3475
  }), /* @__PURE__ */ g("nav", {
3203
- ref: M,
3204
- className: te,
3205
- "aria-label": S,
3476
+ ref: N,
3477
+ className: H,
3478
+ "aria-label": w,
3206
3479
  children: [
3207
3480
  a && /* @__PURE__ */ h("div", {
3208
3481
  className: X.header,
@@ -3211,14 +3484,14 @@ function on({ groups: t, active: n, onSelect: r, header: a, footer: s, collapsed
3211
3484
  /* @__PURE__ */ h("div", {
3212
3485
  className: X.body,
3213
3486
  children: t.map((e, t) => {
3214
- let n = !!(e.collapsible && e.title && k.has(e.title));
3487
+ let n = !!(e.collapsible && e.title && A.has(e.title));
3215
3488
  return /* @__PURE__ */ g("div", {
3216
3489
  className: X.group,
3217
3490
  children: [e.title && (e.collapsible ? /* @__PURE__ */ g("button", {
3218
3491
  type: "button",
3219
3492
  className: `${X.title} ${X.titleToggle}`,
3220
3493
  "aria-expanded": !n,
3221
- onClick: () => B(e.title),
3494
+ onClick: () => ee(e.title),
3222
3495
  children: [/* @__PURE__ */ h("span", {
3223
3496
  className: X.titleText,
3224
3497
  children: e.title
@@ -3236,56 +3509,63 @@ function on({ groups: t, active: n, onSelect: r, header: a, footer: s, collapsed
3236
3509
  className: X.titleText,
3237
3510
  children: e.title
3238
3511
  })
3239
- })), (!n || P) && /* @__PURE__ */ h("div", {
3512
+ })), (!n || F) && /* @__PURE__ */ h("div", {
3240
3513
  className: X.items,
3241
3514
  children: e.items.map((e) => /* @__PURE__ */ h("span", {
3242
3515
  className: X.item,
3243
- children: P ? /* @__PURE__ */ h($t, {
3516
+ children: F ? /* @__PURE__ */ h(fn, {
3244
3517
  content: e.badge ? `${e.label} (${e.badge})` : e.label,
3245
3518
  position: "right",
3246
- children: V(e)
3247
- }) : V(e)
3519
+ children: te(e)
3520
+ }) : te(e)
3248
3521
  }, e.key))
3249
3522
  })]
3250
3523
  }, e.title ?? t);
3251
3524
  })
3252
3525
  }),
3253
- (s || p && !j) && /* @__PURE__ */ g("div", {
3526
+ (s || c && F || _ && !M) && /* @__PURE__ */ g("div", {
3254
3527
  className: X.footer,
3255
- children: [s && /* @__PURE__ */ h("div", {
3256
- className: X.footerContent,
3257
- children: s
3258
- }), p && !j && /* @__PURE__ */ h("span", {
3259
- className: X.item,
3260
- children: P ? /* @__PURE__ */ h($t, {
3261
- content: `Expand${I ? ` (${I})` : ""}`,
3262
- position: "right",
3263
- children: /* @__PURE__ */ h(W, {
3528
+ children: [
3529
+ c && F && /* @__PURE__ */ h("div", {
3530
+ className: X.railFooter,
3531
+ children: c
3532
+ }),
3533
+ s && /* @__PURE__ */ h("div", {
3534
+ className: X.footerContent,
3535
+ children: s
3536
+ }),
3537
+ _ && !M && /* @__PURE__ */ h("span", {
3538
+ className: X.item,
3539
+ children: F ? /* @__PURE__ */ h(fn, {
3540
+ content: `Expand${L ? ` (${L})` : ""}`,
3541
+ position: "right",
3542
+ children: /* @__PURE__ */ h(W, {
3543
+ variant: "ghost",
3544
+ size: "micro",
3545
+ iconLeft: /* @__PURE__ */ h(D, {}),
3546
+ "aria-expanded": !1,
3547
+ "aria-label": "Expand",
3548
+ onClick: R
3549
+ })
3550
+ }) : /* @__PURE__ */ h(W, {
3264
3551
  variant: "ghost",
3265
3552
  size: "micro",
3266
- iconLeft: /* @__PURE__ */ h(D, {}),
3267
- "aria-expanded": !1,
3268
- "aria-label": "Expand",
3269
- onClick: L
3270
- })
3271
- }) : /* @__PURE__ */ h(W, {
3272
- variant: "ghost",
3273
- size: "micro",
3274
- iconLeft: /* @__PURE__ */ h(E, {}),
3275
- "aria-expanded": !0,
3276
- title: I ? `Collapse (${I})` : "Collapse",
3277
- onClick: L,
3278
- children: /* @__PURE__ */ h("span", {
3279
- className: X.label,
3280
- children: "Collapse"
3553
+ iconLeft: /* @__PURE__ */ h(E, {}),
3554
+ "aria-expanded": !0,
3555
+ title: L ? `Collapse (${L})` : "Collapse",
3556
+ onClick: R,
3557
+ children: /* @__PURE__ */ h("span", {
3558
+ className: X.label,
3559
+ children: "Collapse"
3560
+ })
3281
3561
  })
3282
3562
  })
3283
- })]
3563
+ ]
3284
3564
  })
3285
3565
  ]
3286
3566
  })] });
3287
3567
  }
3288
- var sn = {
3568
+ var yn = {
3289
3569
  wrapper: "_wrapper_1ogxf_2",
3290
3570
  label: "_label_1ogxf_3",
3291
3571
  field: "_field_1ogxf_4",
@@ -3310,14 +3590,14 @@ var sn = {
3310
3590
  empty: "_empty_1ogxf_56"
3311
3591
  };
3312
3592
  // src/components/Combobox/Combobox.tsx
3313
- function cn(e, t) {
3593
+ function bn(e, t) {
3314
3594
  let n = t.toLowerCase(), r = e.filter((e) => e.label.toLowerCase().startsWith(n)), i = e.filter((e) => !e.label.toLowerCase().startsWith(n) && e.label.toLowerCase().includes(n));
3315
3595
  return [...r, ...i];
3316
3596
  }
3317
- function ln({ value: t, onValueChange: n, options: r, search: i, label: a, placeholder: c = "Choose…", searchPlaceholder: l = "Search", noMatchText: p = "No matches.", size: m = "default", disabled: _ = !1, "aria-label": v, id: y, className: S = "" }) {
3597
+ function xn({ value: t, onValueChange: n, options: r, search: i, label: a, placeholder: c = "Choose…", searchPlaceholder: l = "Search", noMatchText: p = "No matches.", size: m = "default", disabled: _ = !1, "aria-label": v, id: y, className: S = "" }) {
3318
3598
  let C = s(), w = y ?? C, T = `${w}-list`, [E, D] = f(!1), [O, k] = f(""), [A, j] = f(0), N = d(null), P = d(null), F = d(null), I = r.find((e) => e.value === t), L = m === "large" ? 21 : 14, R = u(() => {
3319
3599
  let e = O.trim();
3320
- return e ? i ? i(e) : cn(r, e) : r;
3600
+ return e ? i ? i(e) : bn(r, e) : r;
3321
3601
  }, [
3322
3602
  r,
3323
3603
  O,
@@ -3351,36 +3631,36 @@ function ln({ value: t, onValueChange: n, options: r, search: i, label: a, place
3351
3631
  color: "currentColor"
3352
3632
  }) : t;
3353
3633
  return /* @__PURE__ */ g("div", {
3354
- className: `${sn.wrapper} ${S}`,
3634
+ className: `${yn.wrapper} ${S}`,
3355
3635
  children: [a && /* @__PURE__ */ h("label", {
3356
3636
  id: `${w}-label`,
3357
3637
  htmlFor: w,
3358
- className: sn.label,
3638
+ className: yn.label,
3359
3639
  children: a
3360
- }), /* @__PURE__ */ h(Fe, {
3640
+ }), /* @__PURE__ */ h(He, {
3361
3641
  open: E,
3362
3642
  onOpenChange: z,
3363
3643
  align: "start",
3364
- className: sn.panel,
3644
+ className: yn.panel,
3365
3645
  "aria-label": v ?? a,
3366
3646
  trigger: /* @__PURE__ */ g("button", {
3367
3647
  ref: F,
3368
3648
  type: "button",
3369
3649
  id: w,
3370
- className: `${sn.field} ${sn[m]}`,
3650
+ className: `${yn.field} ${yn[m]}`,
3371
3651
  disabled: _,
3372
3652
  "aria-haspopup": "listbox",
3373
3653
  "aria-labelledby": a ? `${w}-label ${w}-value` : void 0,
3374
3654
  "aria-label": a ? void 0 : v,
3375
3655
  children: [/* @__PURE__ */ g("span", {
3376
3656
  id: `${w}-value`,
3377
- className: `${sn.value} ${I ? "" : sn.placeholder}`,
3657
+ className: `${yn.value} ${I ? "" : yn.placeholder}`,
3378
3658
  children: [I?.icon && V(I.icon, L), /* @__PURE__ */ h("span", {
3379
- className: sn.text,
3659
+ className: yn.text,
3380
3660
  children: I?.label ?? c
3381
3661
  })]
3382
3662
  }), /* @__PURE__ */ h("span", {
3383
- className: sn.chevron,
3663
+ className: yn.chevron,
3384
3664
  "aria-hidden": "true",
3385
3665
  children: /* @__PURE__ */ h(x, {
3386
3666
  size: L,
@@ -3389,11 +3669,11 @@ function ln({ value: t, onValueChange: n, options: r, search: i, label: a, place
3389
3669
  })]
3390
3670
  }),
3391
3671
  children: /* @__PURE__ */ g("div", {
3392
- className: sn.body,
3672
+ className: yn.body,
3393
3673
  children: [/* @__PURE__ */ g("div", {
3394
- className: sn.search,
3674
+ className: yn.search,
3395
3675
  children: [/* @__PURE__ */ h("span", {
3396
- className: sn.searchIcon,
3676
+ className: yn.searchIcon,
3397
3677
  "aria-hidden": "true",
3398
3678
  children: /* @__PURE__ */ h(M, {
3399
3679
  size: 14,
@@ -3401,7 +3681,7 @@ function ln({ value: t, onValueChange: n, options: r, search: i, label: a, place
3401
3681
  })
3402
3682
  }), /* @__PURE__ */ h("input", {
3403
3683
  ref: N,
3404
- className: sn.input,
3684
+ className: yn.input,
3405
3685
  type: "text",
3406
3686
  role: "combobox",
3407
3687
  "aria-expanded": "true",
@@ -3417,12 +3697,12 @@ function ln({ value: t, onValueChange: n, options: r, search: i, label: a, place
3417
3697
  })]
3418
3698
  }), /* @__PURE__ */ g("div", {
3419
3699
  ref: P,
3420
- className: sn.list,
3700
+ className: yn.list,
3421
3701
  id: T,
3422
3702
  role: "listbox",
3423
3703
  "aria-label": v ?? a,
3424
3704
  children: [R.length === 0 && /* @__PURE__ */ h("p", {
3425
- className: sn.empty,
3705
+ className: yn.empty,
3426
3706
  children: p
3427
3707
  }), R.map((e, n) => /* @__PURE__ */ g("button", {
3428
3708
  type: "button",
@@ -3430,20 +3710,20 @@ function ln({ value: t, onValueChange: n, options: r, search: i, label: a, place
3430
3710
  "data-index": n,
3431
3711
  role: "option",
3432
3712
  "aria-selected": e.value === t,
3433
- className: `${sn.item} ${n === A ? sn.active : ""}`,
3713
+ className: `${yn.item} ${n === A ? yn.active : ""}`,
3434
3714
  onPointerMove: () => n !== A && j(n),
3435
3715
  onClick: () => B(e),
3436
3716
  children: [
3437
3717
  e.icon && /* @__PURE__ */ h("span", {
3438
- className: sn.itemIcon,
3718
+ className: yn.itemIcon,
3439
3719
  children: V(e.icon, 14)
3440
3720
  }),
3441
3721
  /* @__PURE__ */ h("span", {
3442
- className: sn.itemLabel,
3722
+ className: yn.itemLabel,
3443
3723
  children: e.label
3444
3724
  }),
3445
3725
  e.value === t && /* @__PURE__ */ h("span", {
3446
- className: sn.check,
3726
+ className: yn.check,
3447
3727
  children: /* @__PURE__ */ h(b, {
3448
3728
  size: 14,
3449
3729
  color: "currentColor"
@@ -3456,7 +3736,7 @@ function ln({ value: t, onValueChange: n, options: r, search: i, label: a, place
3456
3736
  })]
3457
3737
  });
3458
3738
  }
3459
- var un = {
3739
+ var Sn = {
3460
3740
  empty: "_empty_jzgh0_1",
3461
3741
  default: "_default_jzgh0_2",
3462
3742
  compact: "_compact_jzgh0_3",
@@ -3466,13 +3746,13 @@ var un = {
3466
3746
  actions: "_actions_jzgh0_10"
3467
3747
  };
3468
3748
  // src/components/EmptyState/EmptyState.tsx
3469
- function dn({ icon: t, title: n, children: r, actions: i, size: a = "default", className: o = "" }) {
3749
+ function Cn({ icon: t, title: n, children: r, actions: i, size: a = "default", className: o = "" }) {
3470
3750
  return /* @__PURE__ */ g("div", {
3471
- className: `${un.empty} ${un[a]} ${o}`,
3751
+ className: `${Sn.empty} ${Sn[a]} ${o}`,
3472
3752
  role: "status",
3473
3753
  children: [
3474
3754
  t && /* @__PURE__ */ h("span", {
3475
- className: un.icon,
3755
+ className: Sn.icon,
3476
3756
  "aria-hidden": "true",
3477
3757
  children: e.cloneElement(t, {
3478
3758
  size: a === "compact" ? 35 : 70,
@@ -3480,21 +3760,21 @@ function dn({ icon: t, title: n, children: r, actions: i, size: a = "default", c
3480
3760
  })
3481
3761
  }),
3482
3762
  /* @__PURE__ */ h("div", {
3483
- className: un.title,
3763
+ className: Sn.title,
3484
3764
  children: n
3485
3765
  }),
3486
3766
  r && /* @__PURE__ */ h("div", {
3487
- className: un.detail,
3767
+ className: Sn.detail,
3488
3768
  children: r
3489
3769
  }),
3490
3770
  i && /* @__PURE__ */ h("div", {
3491
- className: un.actions,
3771
+ className: Sn.actions,
3492
3772
  children: i
3493
3773
  })
3494
3774
  ]
3495
3775
  });
3496
3776
  }
3497
- var fn = {
3777
+ var wn = {
3498
3778
  overlay: "_overlay_9rhqp_1",
3499
3779
  sheet: "_sheet_9rhqp_3",
3500
3780
  wide: "_wide_9rhqp_14",
@@ -3509,7 +3789,7 @@ var fn = {
3509
3789
  srOnly: "_srOnly_9rhqp_30"
3510
3790
  };
3511
3791
  // src/components/Sheet/Sheet.tsx
3512
- function pn({ open: e, onOpenChange: t, trigger: n, title: r, description: i, children: a, footer: o, side: s = "right", size: c = "default", className: l = "" }) {
3792
+ function Tn({ open: e, onOpenChange: t, trigger: n, title: r, description: i, children: a, footer: o, side: s = "right", size: c = "default", className: l = "" }) {
3513
3793
  let u = ae(), f = d(null);
3514
3794
  return /* @__PURE__ */ g(B.Root, {
3515
3795
  open: e,
@@ -3519,8 +3799,8 @@ function pn({ open: e, onOpenChange: t, trigger: n, title: r, description: i, ch
3519
3799
  children: n
3520
3800
  }), /* @__PURE__ */ g(B.Portal, {
3521
3801
  container: u,
3522
- children: [/* @__PURE__ */ h(B.Overlay, { className: fn.overlay }), /* @__PURE__ */ g(B.Content, {
3523
- className: `${fn.sheet} ${fn[s]} ${c === "wide" ? fn.wide : ""} ${l}`,
3802
+ children: [/* @__PURE__ */ h(B.Overlay, { className: wn.overlay }), /* @__PURE__ */ g(B.Content, {
3803
+ className: `${wn.sheet} ${wn[s]} ${c === "wide" ? wn.wide : ""} ${l}`,
3524
3804
  ...i ? {} : { "aria-describedby": void 0 },
3525
3805
  onOpenAutoFocus: () => {
3526
3806
  f.current = document.activeElement;
@@ -3530,14 +3810,14 @@ function pn({ open: e, onOpenChange: t, trigger: n, title: r, description: i, ch
3530
3810
  },
3531
3811
  children: [
3532
3812
  /* @__PURE__ */ g("div", {
3533
- className: fn.header,
3813
+ className: wn.header,
3534
3814
  children: [/* @__PURE__ */ g("div", {
3535
- className: fn.heading,
3815
+ className: wn.heading,
3536
3816
  children: [/* @__PURE__ */ h(B.Title, {
3537
- className: r ? fn.title : fn.srOnly,
3817
+ className: r ? wn.title : wn.srOnly,
3538
3818
  children: r || "Panel"
3539
3819
  }), i && /* @__PURE__ */ h(B.Description, {
3540
- className: fn.description,
3820
+ className: wn.description,
3541
3821
  children: i
3542
3822
  })]
3543
3823
  }), /* @__PURE__ */ h(B.Close, {
@@ -3551,11 +3831,11 @@ function pn({ open: e, onOpenChange: t, trigger: n, title: r, description: i, ch
3551
3831
  })]
3552
3832
  }),
3553
3833
  /* @__PURE__ */ h("div", {
3554
- className: fn.body,
3834
+ className: wn.body,
3555
3835
  children: a
3556
3836
  }),
3557
3837
  o && /* @__PURE__ */ h("div", {
3558
- className: fn.footer,
3838
+ className: wn.footer,
3559
3839
  children: o
3560
3840
  })
3561
3841
  ]
@@ -3563,17 +3843,17 @@ function pn({ open: e, onOpenChange: t, trigger: n, title: r, description: i, ch
3563
3843
  })]
3564
3844
  });
3565
3845
  }
3566
- var mn = {
3567
- root: "_root_pwkdl_1",
3568
- vertical: "_vertical_pwkdl_2",
3569
- pane: "_pane_pwkdl_3",
3570
- first: "_first_pwkdl_4",
3571
- second: "_second_pwkdl_5",
3572
- handle: "_handle_pwkdl_8",
3573
- horizontal: "_horizontal_pwkdl_9",
3574
- grip: "_grip_pwkdl_16"
3575
- }, hn = 2, gn = 10;
3576
- function _n(e) {
3846
+ var En = {
3847
+ root: "_root_1x9y1_1",
3848
+ vertical: "_vertical_1x9y1_2",
3849
+ pane: "_pane_1x9y1_3",
3850
+ first: "_first_1x9y1_4",
3851
+ second: "_second_1x9y1_5",
3852
+ handle: "_handle_1x9y1_8",
3853
+ horizontal: "_horizontal_1x9y1_9",
3854
+ grip: "_grip_1x9y1_16"
3855
+ }, Dn = 2, On = 10;
3856
+ function kn(e) {
3577
3857
  if (e) try {
3578
3858
  let t = parseFloat(localStorage.getItem(e) ?? "");
3579
3859
  return Number.isNaN(t) ? void 0 : t;
@@ -3581,8 +3861,8 @@ function _n(e) {
3581
3861
  return;
3582
3862
  }
3583
3863
  }
3584
- function vn({ first: e, second: t, direction: n = "horizontal", defaultSize: r = 50, minSize: i = 10, maxSize: a = 90, storageKey: s, onSizeChange: c, withHandle: l = !1, "aria-label": u = "Resize", className: p = "" }) {
3585
- let m = (e) => Math.min(a, Math.max(i, e)), [_, v] = f(() => m(_n(s) ?? r)), [y, b] = f(!1), x = d(null), S = d(_);
3864
+ function An({ first: e, second: t, direction: n = "horizontal", defaultSize: r = 50, minSize: i = 10, maxSize: a = 90, storageKey: s, onSizeChange: c, withHandle: l = !1, "aria-label": u = "Resize", className: p = "" }) {
3865
+ let m = (e) => Math.min(a, Math.max(i, e)), [_, v] = f(() => m(kn(s) ?? r)), [y, b] = f(!1), x = d(null), S = d(_);
3586
3866
  S.current = _;
3587
3867
  let C = n === "horizontal", w = (e) => {
3588
3868
  if (s) try {
@@ -3600,16 +3880,16 @@ function vn({ first: e, second: t, direction: n = "horizontal", defaultSize: r =
3600
3880
  };
3601
3881
  }, [y]), /* @__PURE__ */ g("div", {
3602
3882
  ref: x,
3603
- className: `${mn.root} ${C ? mn.horizontal : mn.vertical} ${p}`,
3883
+ className: `${En.root} ${C ? En.horizontal : En.vertical} ${p}`,
3604
3884
  "data-dragging": y || void 0,
3605
3885
  style: { "--resizable-size": `${_}%` },
3606
3886
  children: [
3607
3887
  /* @__PURE__ */ h("div", {
3608
- className: `${mn.pane} ${mn.first}`,
3888
+ className: `${En.pane} ${En.first}`,
3609
3889
  children: e
3610
3890
  }),
3611
3891
  /* @__PURE__ */ h("div", {
3612
- className: mn.handle,
3892
+ className: En.handle,
3613
3893
  role: "separator",
3614
3894
  tabIndex: 0,
3615
3895
  "aria-label": u,
@@ -3621,37 +3901,37 @@ function vn({ first: e, second: t, direction: n = "horizontal", defaultSize: r =
3621
3901
  e.button === 0 && (e.preventDefault(), b(!0));
3622
3902
  },
3623
3903
  onKeyDown: (e) => {
3624
- let t = C ? "ArrowLeft" : "ArrowUp", n = C ? "ArrowRight" : "ArrowDown", r = e.key === t ? _ - hn : e.key === n ? _ + hn : e.key === "PageUp" ? _ - gn : e.key === "PageDown" ? _ + gn : e.key === "Home" ? i : e.key === "End" ? a : null;
3904
+ let t = C ? "ArrowLeft" : "ArrowUp", n = C ? "ArrowRight" : "ArrowDown", r = e.key === t ? _ - Dn : e.key === n ? _ + Dn : e.key === "PageUp" ? _ - On : e.key === "PageDown" ? _ + On : e.key === "Home" ? i : e.key === "End" ? a : null;
3625
3905
  if (r === null) return;
3626
3906
  e.preventDefault();
3627
3907
  let o = m(r);
3628
3908
  v(o), w(o);
3629
3909
  },
3630
3910
  children: l && /* @__PURE__ */ h("span", {
3631
- className: mn.grip,
3911
+ className: En.grip,
3632
3912
  "aria-hidden": "true"
3633
3913
  })
3634
3914
  }),
3635
3915
  /* @__PURE__ */ h("div", {
3636
- className: `${mn.pane} ${mn.second}`,
3916
+ className: `${En.pane} ${En.second}`,
3637
3917
  children: t
3638
3918
  })
3639
3919
  ]
3640
3920
  });
3641
3921
  }
3642
3922
  // src/components/TreeCanvas/viewport.ts
3643
- var yn = .2, bn = 2, xn = 24, Sn = 1.2, Cn = 48, wn = 8;
3644
- function Tn(e, t, n, r) {
3923
+ var jn = .2, Mn = 2, Nn = 24, Pn = 1.2, Fn = 48, In = 8;
3924
+ function Ln(e, t, n, r) {
3645
3925
  let i = {
3646
3926
  x: 0,
3647
3927
  y: 0,
3648
3928
  z: 1,
3649
3929
  pan: r
3650
- }, a, o = (e) => Math.min(bn, Math.max(yn, e)), s = () => {
3930
+ }, a, o = (e) => Math.min(Mn, Math.max(jn, e)), s = () => {
3651
3931
  if (t.style.transform = `translate(${i.x}px, ${i.y}px) scale(${i.z})`, n) {
3652
3932
  n.style.setProperty("--tree-x", `${i.x}px`), n.style.setProperty("--tree-y", `${i.y}px`), a ??= parseFloat(getComputedStyle(n).getPropertyValue("--tree-tile")) || 12;
3653
3933
  let e = i.z;
3654
- for (; a * e < wn;) e *= 2;
3934
+ for (; a * e < In;) e *= 2;
3655
3935
  n.style.setProperty("--tree-zoom", `${e}`);
3656
3936
  }
3657
3937
  let r = e.querySelector("[data-tree-zoom-label]");
@@ -3675,7 +3955,7 @@ function Tn(e, t, n, r) {
3675
3955
  e = o(e), i.x = t - (t - i.x) * (e / i.z), i.y = n - (n - i.y) * (e / i.z), i.z = e, s();
3676
3956
  }, f = (t) => {
3677
3957
  let n = e.getBoundingClientRect(), r = n.width / 2, a = n.height / 2;
3678
- t === "in" ? d(i.z * Sn, r, a) : t === "out" ? d(i.z / Sn, r, a) : t === "reset" ? d(1, r, a) : t === "fullscreen" ? p() : u(l());
3958
+ t === "in" ? d(i.z * Pn, r, a) : t === "out" ? d(i.z / Pn, r, a) : t === "reset" ? d(1, r, a) : t === "fullscreen" ? p() : u(l());
3679
3959
  }, p = () => {
3680
3960
  if (document.fullscreenElement) {
3681
3961
  document.exitFullscreen?.();
@@ -3724,10 +4004,10 @@ function Tn(e, t, n, r) {
3724
4004
  }, x = (t) => {
3725
4005
  if (!i.pan || t.altKey || t.ctrlKey || t.metaKey || t.target.closest("input, select, textarea")) return;
3726
4006
  let n = e.getBoundingClientRect();
3727
- if (t.key === "+" || t.key === "=") d(i.z * Sn, n.width / 2, n.height / 2);
3728
- else if (t.key === "-" || t.key === "_") d(i.z / Sn, n.width / 2, n.height / 2);
4007
+ if (t.key === "+" || t.key === "=") d(i.z * Pn, n.width / 2, n.height / 2);
4008
+ else if (t.key === "-" || t.key === "_") d(i.z / Pn, n.width / 2, n.height / 2);
3729
4009
  else if (t.key === "0") f("fit");
3730
- else if (t.target === e && t.key.startsWith("Arrow")) t.key === "ArrowLeft" && (i.x += Cn), t.key === "ArrowRight" && (i.x -= Cn), t.key === "ArrowUp" && (i.y += Cn), t.key === "ArrowDown" && (i.y -= Cn), s();
4010
+ else if (t.target === e && t.key.startsWith("Arrow")) t.key === "ArrowLeft" && (i.x += Fn), t.key === "ArrowRight" && (i.x -= Fn), t.key === "ArrowUp" && (i.y += Fn), t.key === "ArrowDown" && (i.y -= Fn), s();
3731
4011
  else return;
3732
4012
  t.preventDefault();
3733
4013
  }, S = () => {
@@ -3753,7 +4033,7 @@ function Tn(e, t, n, r) {
3753
4033
  command: f,
3754
4034
  bringIntoView(t) {
3755
4035
  let n = e.getBoundingClientRect(), r = t.getBoundingClientRect();
3756
- r.left < n.left + xn ? i.x += n.left + xn - r.left : r.right > n.right - xn && (i.x -= r.right - (n.right - xn)), r.top < n.top + xn ? i.y += n.top + xn - r.top : r.bottom > n.bottom - xn && (i.y -= r.bottom - (n.bottom - xn)), s();
4036
+ r.left < n.left + Nn ? i.x += n.left + Nn - r.left : r.right > n.right - Nn && (i.x -= r.right - (n.right - Nn)), r.top < n.top + Nn ? i.y += n.top + Nn - r.top : r.bottom > n.bottom - Nn && (i.y -= r.bottom - (n.bottom - Nn)), s();
3757
4037
  },
3758
4038
  destroy() {
3759
4039
  e.removeEventListener("pointerdown", g), e.removeEventListener("pointermove", _), e.removeEventListener("pointerup", v), e.removeEventListener("pointercancel", v), e.removeEventListener("click", y, !0), e.removeEventListener("wheel", b), e.removeEventListener("keydown", x), e.removeEventListener("scroll", S);
@@ -3761,44 +4041,44 @@ function Tn(e, t, n, r) {
3761
4041
  };
3762
4042
  }
3763
4043
  var Z = {
3764
- canvas: "_canvas_q3a8t_3",
3765
- view: "_view_q3a8t_19",
3766
- sheet: "_sheet_q3a8t_26",
3767
- edges: "_edges_q3a8t_32",
3768
- handles: "_handles_q3a8t_33",
3769
- edge: "_edge_q3a8t_32",
3770
- edgeLit: "_edgeLit_q3a8t_53",
3771
- edgeMuted: "_edgeMuted_q3a8t_59",
3772
- handle: "_handle_q3a8t_33",
3773
- handleLit: "_handleLit_q3a8t_70",
3774
- slot: "_slot_q3a8t_75",
3775
- pill: "_pill_q3a8t_82",
3776
- pillPath: "_pillPath_q3a8t_109",
3777
- pillSelected: "_pillSelected_q3a8t_113",
3778
- muted: "_muted_q3a8t_120",
3779
- name: "_name_q3a8t_124",
3780
- chip: "_chip_q3a8t_131",
3781
- mark: "_mark_q3a8t_149",
3782
- toggle: "_toggle_q3a8t_160",
3783
- disclosure: "_disclosure_q3a8t_166",
3784
- more: "_more_q3a8t_187",
3785
- listWrap: "_listWrap_q3a8t_206",
3786
- list: "_list_q3a8t_206",
3787
- row: "_row_q3a8t_217",
3788
- rowSelected: "_rowSelected_q3a8t_226",
3789
- rowName: "_rowName_q3a8t_230",
3790
- disclosureSpace: "_disclosureSpace_q3a8t_251",
3791
- empty: "_empty_q3a8t_257",
3792
- grid: "_grid_q3a8t_267",
3793
- controls: "_controls_q3a8t_285",
3794
- zoomLabel: "_zoomLabel_q3a8t_306",
3795
- pannable: "_pannable_q3a8t_313"
3796
- }, En = 44, Dn = 5, On = 56, kn = 24, An = 7, jn = 10;
3797
- function Mn(e, t) {
3798
- let n = e.label.length * An, r = e.count == null ? 0 : (t ? t(e.count) : e.count.toLocaleString()).length * 6 + jn + 8, i = (e.marks?.length ?? 0) * 20, a = e.children?.length ? 18 : 0;
3799
- return kn + n + r + i + a;
4044
+ canvas: "_canvas_1249l_3",
4045
+ view: "_view_1249l_19",
4046
+ sheet: "_sheet_1249l_26",
4047
+ edges: "_edges_1249l_32",
4048
+ handles: "_handles_1249l_33",
4049
+ edge: "_edge_1249l_32",
4050
+ edgeLit: "_edgeLit_1249l_53",
4051
+ edgeMuted: "_edgeMuted_1249l_59",
4052
+ handle: "_handle_1249l_33",
4053
+ handleLit: "_handleLit_1249l_70",
4054
+ slot: "_slot_1249l_75",
4055
+ pill: "_pill_1249l_82",
4056
+ pillPath: "_pillPath_1249l_109",
4057
+ pillSelected: "_pillSelected_1249l_113",
4058
+ muted: "_muted_1249l_120",
4059
+ name: "_name_1249l_124",
4060
+ chip: "_chip_1249l_131",
4061
+ mark: "_mark_1249l_149",
4062
+ toggle: "_toggle_1249l_160",
4063
+ disclosure: "_disclosure_1249l_166",
4064
+ more: "_more_1249l_187",
4065
+ listWrap: "_listWrap_1249l_206",
4066
+ list: "_list_1249l_206",
4067
+ row: "_row_1249l_217",
4068
+ rowSelected: "_rowSelected_1249l_226",
4069
+ rowName: "_rowName_1249l_230",
4070
+ disclosureSpace: "_disclosureSpace_1249l_251",
4071
+ empty: "_empty_1249l_257",
4072
+ grid: "_grid_1249l_267",
4073
+ controls: "_controls_1249l_288",
4074
+ zoomLabel: "_zoomLabel_1249l_309",
4075
+ pannable: "_pannable_1249l_316"
4076
+ }, Rn = 44, zn = 5, Bn = 56, Vn = 24, Hn = 7, Un = 10;
4077
+ function Wn(e, t) {
4078
+ let n = e.label.length * Hn, r = e.count == null ? 0 : (t ? t(e.count) : e.count.toLocaleString()).length * 6 + Un + 8, i = (e.marks?.length ?? 0) * 20, a = e.children?.length ? 18 : 0;
4079
+ return Vn + n + r + i + a;
3800
4080
  }
3801
- function Nn({ roots: e, selected: t, onSelect: n, defaultExpanded: r, view: i = "tree", maxChildren: a = 50, format: s, visible: c, zoom: p, openDepth: m, pan: _ = !0, fullscreen: v = !0, pattern: y, "aria-label": b, className: x = "" }) {
4081
+ function Gn({ roots: e, selected: t, onSelect: n, defaultExpanded: r, view: i = "tree", maxChildren: a = 50, format: s, visible: c, zoom: p, openDepth: m, pan: _ = !0, fullscreen: v = !0, pattern: y, "aria-label": b, className: x = "" }) {
3802
4082
  let [S, C] = f(() => new Set(r ?? e.map((e) => e.id))), [w, T] = f(() => /* @__PURE__ */ new Set());
3803
4083
  o(() => {
3804
4084
  if (m == null) return;
@@ -3811,7 +4091,7 @@ function Nn({ roots: e, selected: t, onSelect: n, defaultExpanded: r, view: i =
3811
4091
  l(() => {
3812
4092
  let e = N.current, t = P.current;
3813
4093
  if (!e || !t) return;
3814
- let n = Tn(e, t, F.current, _);
4094
+ let n = Ln(e, t, F.current, _);
3815
4095
  return I.current = n, () => {
3816
4096
  n.destroy(), I.current = null;
3817
4097
  };
@@ -3862,7 +4142,7 @@ function Nn({ roots: e, selected: t, onSelect: n, defaultExpanded: r, view: i =
3862
4142
  depth: o,
3863
4143
  x: 0,
3864
4144
  y: 0,
3865
- width: E.get(i.id) ?? Mn(i, s),
4145
+ width: E.get(i.id) ?? Wn(i, s),
3866
4146
  parent: c,
3867
4147
  open: l,
3868
4148
  more: d
@@ -3870,19 +4150,19 @@ function Nn({ roots: e, selected: t, onSelect: n, defaultExpanded: r, view: i =
3870
4150
  if (t[o] = Math.max(t[o] ?? 0, f.width), e.push(f), u.length) {
3871
4151
  let e = u.map((e) => r(e, o + 1, f));
3872
4152
  f.y = (e[0].y + e[e.length - 1].y) / 2, d > 0 && (n += 1);
3873
- } else f.y = n * En + En / 2, n += 1;
4153
+ } else f.y = n * Rn + Rn / 2, n += 1;
3874
4154
  return f;
3875
4155
  };
3876
4156
  ee.forEach((e) => r(e, 0));
3877
4157
  let i = [], o = 0;
3878
4158
  return t.forEach((e, t) => {
3879
- i[t] = o, o += e + On;
4159
+ i[t] = o, o += e + Bn;
3880
4160
  }), e.forEach((e) => {
3881
4161
  e.x = i[e.depth];
3882
4162
  }), {
3883
4163
  placed: e,
3884
4164
  columns: i,
3885
- height: Math.max(n, 1) * En
4165
+ height: Math.max(n, 1) * Rn
3886
4166
  };
3887
4167
  }, [
3888
4168
  ee,
@@ -3987,7 +4267,7 @@ function Nn({ roots: e, selected: t, onSelect: n, defaultExpanded: r, view: i =
3987
4267
  style: {
3988
4268
  "--tree-pattern": `var(--pattern-${y}-light)`,
3989
4269
  "--tree-pattern-dark": `var(--pattern-${y}-dark)`,
3990
- "--tree-tile": `${Pn(y)}px`
4270
+ "--tree-tile": `${Kn(y)}px`
3991
4271
  }
3992
4272
  }),
3993
4273
  H.length === 0 && /* @__PURE__ */ h("div", {
@@ -4067,8 +4347,8 @@ function Nn({ roots: e, selected: t, onSelect: n, defaultExpanded: r, view: i =
4067
4347
  type: "button",
4068
4348
  className: Z.more,
4069
4349
  style: {
4070
- left: (U[e.depth + 1] ?? e.x + e.width + On) - e.x,
4071
- top: (Fn(H, e) + 1) * En - (e.y - 15)
4350
+ left: (U[e.depth + 1] ?? e.x + e.width + Bn) - e.x,
4351
+ top: (qn(H, e) + 1) * Rn - (e.y - 15)
4072
4352
  },
4073
4353
  onClick: () => T((e) => new Set(e).add(n.id)),
4074
4354
  children: [
@@ -4088,16 +4368,16 @@ function Nn({ roots: e, selected: t, onSelect: n, defaultExpanded: r, view: i =
4088
4368
  let n = B.has(e.node.id);
4089
4369
  return /* @__PURE__ */ g("g", { children: [e.parent && /* @__PURE__ */ h("rect", {
4090
4370
  className: `${Z.handle} ${n ? Z.handleLit : ""}`,
4091
- x: e.x - Dn / 2,
4092
- y: e.y - Dn / 2,
4093
- width: Dn,
4094
- height: Dn
4371
+ x: e.x - zn / 2,
4372
+ y: e.y - zn / 2,
4373
+ width: zn,
4374
+ height: zn
4095
4375
  }), e.open && /* @__PURE__ */ h("rect", {
4096
4376
  className: `${Z.handle} ${n && e.node.id !== t ? Z.handleLit : ""}`,
4097
- x: e.x + e.width - Dn / 2,
4098
- y: e.y - Dn / 2,
4099
- width: Dn,
4100
- height: Dn
4377
+ x: e.x + e.width - zn / 2,
4378
+ y: e.y - zn / 2,
4379
+ width: zn,
4380
+ height: zn
4101
4381
  })] }, e.node.id);
4102
4382
  })
4103
4383
  })
@@ -4110,7 +4390,7 @@ function Nn({ roots: e, selected: t, onSelect: n, defaultExpanded: r, view: i =
4110
4390
  "aria-label": "Zoom",
4111
4391
  "data-tree-controls": "",
4112
4392
  children: [
4113
- /* @__PURE__ */ h($t, {
4393
+ /* @__PURE__ */ h(fn, {
4114
4394
  content: "Zoom in (+)",
4115
4395
  position: "right",
4116
4396
  children: /* @__PURE__ */ h(W, {
@@ -4121,7 +4401,7 @@ function Nn({ roots: e, selected: t, onSelect: n, defaultExpanded: r, view: i =
4121
4401
  "data-tree-action": "in"
4122
4402
  })
4123
4403
  }),
4124
- /* @__PURE__ */ h($t, {
4404
+ /* @__PURE__ */ h(fn, {
4125
4405
  content: "Zoom out (-)",
4126
4406
  position: "right",
4127
4407
  children: /* @__PURE__ */ h(W, {
@@ -4132,7 +4412,7 @@ function Nn({ roots: e, selected: t, onSelect: n, defaultExpanded: r, view: i =
4132
4412
  "data-tree-action": "out"
4133
4413
  })
4134
4414
  }),
4135
- /* @__PURE__ */ h($t, {
4415
+ /* @__PURE__ */ h(fn, {
4136
4416
  content: "Fit in view (0)",
4137
4417
  position: "right",
4138
4418
  children: /* @__PURE__ */ h(W, {
@@ -4143,7 +4423,7 @@ function Nn({ roots: e, selected: t, onSelect: n, defaultExpanded: r, view: i =
4143
4423
  "data-tree-action": "fit"
4144
4424
  })
4145
4425
  }),
4146
- v && /* @__PURE__ */ h($t, {
4426
+ v && /* @__PURE__ */ h(fn, {
4147
4427
  content: "Full screen (Esc to leave)",
4148
4428
  position: "right",
4149
4429
  children: /* @__PURE__ */ h(W, {
@@ -4154,7 +4434,7 @@ function Nn({ roots: e, selected: t, onSelect: n, defaultExpanded: r, view: i =
4154
4434
  "data-tree-action": "fullscreen"
4155
4435
  })
4156
4436
  }),
4157
- /* @__PURE__ */ h($t, {
4437
+ /* @__PURE__ */ h(fn, {
4158
4438
  content: "Zoom to 100%",
4159
4439
  position: "right",
4160
4440
  children: /* @__PURE__ */ h(W, {
@@ -4173,118 +4453,136 @@ function Nn({ roots: e, selected: t, onSelect: n, defaultExpanded: r, view: i =
4173
4453
  ]
4174
4454
  });
4175
4455
  }
4176
- function Pn(e) {
4456
+ function Kn(e) {
4177
4457
  let t = Number(e.slice(e.lastIndexOf("-") + 1));
4178
4458
  return Number.isFinite(t) ? t : 2;
4179
4459
  }
4180
- function Fn(e, t) {
4460
+ function qn(e, t) {
4181
4461
  let n = e.filter((e) => e.parent === t), r = n[n.length - 1];
4182
- return Math.round(r ? (r.y - En / 2) / En : (t.y - En / 2) / En);
4462
+ return Math.round(r ? (r.y - Rn / 2) / Rn : (t.y - Rn / 2) / Rn);
4183
4463
  }
4184
- var In = {
4185
- chip: "_chip_iaxe0_1",
4186
- large: "_large_iaxe0_14"
4464
+ var Jn = {
4465
+ chip: "_chip_otthl_1",
4466
+ large: "_large_otthl_14",
4467
+ toggle: "_toggle_otthl_20",
4468
+ selected: "_selected_otthl_38"
4187
4469
  };
4188
4470
  // src/components/Chip/Chip.tsx
4189
- function Ln({ children: t, color: n, textColor: r, className: i, icon: a, size: o = "default" }) {
4190
- let s = {};
4191
- return n && (s.backgroundColor = n), r && (s.color = r), /* @__PURE__ */ g("span", {
4471
+ function Yn({ children: t, color: n, textColor: r, className: i, title: a, icon: o, size: s = "default", onClick: c, selected: l = !1, disabled: u = !1 }) {
4472
+ let d = {};
4473
+ n && (d.backgroundColor = n), r && (d.color = r);
4474
+ let f = [
4475
+ Jn.chip,
4476
+ "indx-chip",
4477
+ s === "large" && Jn.large,
4478
+ i
4479
+ ], p = /* @__PURE__ */ g(m, { children: [o && e.cloneElement(o, {
4480
+ size: 14,
4481
+ color: "currentColor"
4482
+ }), t] });
4483
+ return c ? /* @__PURE__ */ h("button", {
4484
+ type: "button",
4192
4485
  className: [
4193
- In.chip,
4194
- "indx-chip",
4195
- o === "large" && In.large,
4196
- i
4486
+ ...f,
4487
+ Jn.toggle,
4488
+ l && Jn.selected
4197
4489
  ].filter(Boolean).join(" "),
4198
- style: s,
4199
- children: [a && e.cloneElement(a, {
4200
- size: 14,
4201
- color: "currentColor"
4202
- }), t]
4490
+ style: d,
4491
+ title: a,
4492
+ "aria-pressed": l,
4493
+ disabled: u,
4494
+ onClick: c,
4495
+ children: p
4496
+ }) : /* @__PURE__ */ h("span", {
4497
+ className: f.filter(Boolean).join(" "),
4498
+ style: d,
4499
+ title: a,
4500
+ children: p
4203
4501
  });
4204
4502
  }
4205
- var Rn = {
4206
- root: "_root_ok48u_3",
4207
- icon: "_icon_ok48u_16",
4208
- body: "_body_ok48u_17",
4209
- title: "_title_ok48u_18",
4210
- description: "_description_ok48u_19",
4211
- default: "_default_ok48u_22",
4212
- info: "_info_ok48u_23",
4213
- success: "_success_ok48u_24",
4214
- warning: "_warning_ok48u_25",
4215
- destructive: "_destructive_ok48u_26"
4216
- }, zn = {
4503
+ var Xn = {
4504
+ root: "_root_1ptcs_3",
4505
+ icon: "_icon_1ptcs_16",
4506
+ body: "_body_1ptcs_17",
4507
+ title: "_title_1ptcs_18",
4508
+ description: "_description_1ptcs_19",
4509
+ default: "_default_1ptcs_22",
4510
+ info: "_info_1ptcs_23",
4511
+ success: "_success_1ptcs_24",
4512
+ warning: "_warning_1ptcs_25",
4513
+ destructive: "_destructive_1ptcs_26"
4514
+ }, Zn = {
4217
4515
  success: /* @__PURE__ */ h(b, {}),
4218
4516
  warning: /* @__PURE__ */ h(P, {}),
4219
4517
  destructive: /* @__PURE__ */ h(P, {})
4220
4518
  };
4221
- function Bn(t) {
4519
+ function Qn(t) {
4222
4520
  return e.isValidElement(t) ? e.cloneElement(t, {
4223
4521
  size: 14,
4224
4522
  color: "currentColor"
4225
4523
  }) : t;
4226
4524
  }
4227
- var Vn = ({ variant: e = "default", icon: t, className: n = "", children: r, role: i }) => {
4228
- let a = t === void 0 ? zn[e] : t;
4525
+ var $n = ({ variant: e = "default", icon: t, className: n = "", children: r, role: i }) => {
4526
+ let a = t === void 0 ? Zn[e] : t;
4229
4527
  return /* @__PURE__ */ g("div", {
4230
4528
  role: i ?? (e === "destructive" || e === "warning" ? "alert" : "status"),
4231
- className: `${Rn.root} ${Rn[e]} ${n}`,
4529
+ className: `${Xn.root} ${Xn[e]} ${n}`,
4232
4530
  children: [a && /* @__PURE__ */ h("span", {
4233
- className: Rn.icon,
4531
+ className: Xn.icon,
4234
4532
  "aria-hidden": "true",
4235
- children: Bn(a)
4533
+ children: Qn(a)
4236
4534
  }), /* @__PURE__ */ h("div", {
4237
- className: Rn.body,
4535
+ className: Xn.body,
4238
4536
  children: r
4239
4537
  })]
4240
4538
  });
4241
- }, Hn = ({ children: e, className: t = "" }) => /* @__PURE__ */ h("div", {
4242
- className: `${Rn.title} ${t}`,
4539
+ }, er = ({ children: e, className: t = "" }) => /* @__PURE__ */ h("div", {
4540
+ className: `${Xn.title} ${t}`,
4243
4541
  children: e
4244
- }), Un = ({ children: e, className: t = "" }) => /* @__PURE__ */ h("div", {
4245
- className: `${Rn.description} ${t}`,
4542
+ }), tr = ({ children: e, className: t = "" }) => /* @__PURE__ */ h("div", {
4543
+ className: `${Xn.description} ${t}`,
4246
4544
  children: e
4247
- }), Wn = {
4545
+ }), nr = {
4248
4546
  root: "_root_1aak8_10",
4249
4547
  main: "_main_1aak8_33",
4250
4548
  aside: "_aside_1aak8_34",
4251
4549
  message: "_message_1aak8_41"
4252
- }, Gn = ({ visible: e = !0, message: t, aside: n, children: r, className: i = "", "aria-label": a = "Unsaved changes" }) => e ? /* @__PURE__ */ g("div", {
4550
+ }, rr = ({ visible: e = !0, message: t, aside: n, children: r, className: i = "", "aria-label": a = "Unsaved changes" }) => e ? /* @__PURE__ */ g("div", {
4253
4551
  role: "region",
4254
4552
  "aria-label": a,
4255
- className: `${Wn.root} ${i}`,
4553
+ className: `${nr.root} ${i}`,
4256
4554
  children: [/* @__PURE__ */ g("div", {
4257
- className: Wn.main,
4555
+ className: nr.main,
4258
4556
  children: [r, t && /* @__PURE__ */ h("span", {
4259
- className: Wn.message,
4557
+ className: nr.message,
4260
4558
  children: t
4261
4559
  })]
4262
4560
  }), n && /* @__PURE__ */ h("div", {
4263
- className: Wn.aside,
4561
+ className: nr.aside,
4264
4562
  children: n
4265
4563
  })]
4266
4564
  }) : null, Q = {
4267
- wrapper: "_wrapper_zc98n_1",
4268
- chart: "_chart_zc98n_8",
4269
- svg: "_svg_zc98n_33",
4270
- tooltip: "_tooltip_zc98n_41",
4271
- tooltipLabel: "_tooltipLabel_zc98n_51",
4272
- tooltipRow: "_tooltipRow_zc98n_59",
4273
- tooltipDot: "_tooltipDot_zc98n_66",
4274
- tooltipName: "_tooltipName_zc98n_72",
4275
- tooltipValue: "_tooltipValue_zc98n_79",
4276
- tooltipRange: "_tooltipRange_zc98n_86",
4277
- tooltipRangeValue: "_tooltipRangeValue_zc98n_90",
4278
- tooltipTotal: "_tooltipTotal_zc98n_96",
4279
- legend: "_legend_zc98n_103",
4280
- legendItem: "_legendItem_zc98n_110",
4281
- legendMark: "_legendMark_zc98n_116",
4282
- legendSwatch: "_legendSwatch_zc98n_123",
4283
- legendLabel: "_legendLabel_zc98n_128",
4284
- marker: "_marker_zc98n_135",
4285
- tooltipMarker: "_tooltipMarker_zc98n_139",
4286
- markerDot: "_markerDot_zc98n_143"
4287
- }, Kn = "var(--lv4)", qn = 12, Jn = 20, Yn = 8, Xn = 28, Zn = 20, Qn = {
4565
+ wrapper: "_wrapper_yrzff_1",
4566
+ chart: "_chart_yrzff_8",
4567
+ svg: "_svg_yrzff_40",
4568
+ tooltip: "_tooltip_yrzff_48",
4569
+ tooltipLabel: "_tooltipLabel_yrzff_58",
4570
+ tooltipRow: "_tooltipRow_yrzff_66",
4571
+ tooltipDot: "_tooltipDot_yrzff_73",
4572
+ tooltipName: "_tooltipName_yrzff_79",
4573
+ tooltipValue: "_tooltipValue_yrzff_86",
4574
+ tooltipRange: "_tooltipRange_yrzff_93",
4575
+ tooltipRangeValue: "_tooltipRangeValue_yrzff_97",
4576
+ tooltipTotal: "_tooltipTotal_yrzff_103",
4577
+ legend: "_legend_yrzff_110",
4578
+ legendItem: "_legendItem_yrzff_117",
4579
+ legendMark: "_legendMark_yrzff_123",
4580
+ legendSwatch: "_legendSwatch_yrzff_130",
4581
+ legendLabel: "_legendLabel_yrzff_135",
4582
+ marker: "_marker_yrzff_142",
4583
+ tooltipMarker: "_tooltipMarker_yrzff_146",
4584
+ markerDot: "_markerDot_yrzff_150"
4585
+ }, ir = "var(--lv4)", ar = 12, or = 20, sr = 8, cr = 28, lr = 20, ur = {
4288
4586
  hatch: [
4289
4587
  [
4290
4588
  0,
@@ -4328,22 +4626,22 @@ var Vn = ({ variant: e = "default", icon: t, className: n = "", children: r, rol
4328
4626
  2,
4329
4627
  2
4330
4628
  ]]
4331
- }, $n = .14, er = "var(--CSignal)";
4332
- function tr(e, t = 4) {
4629
+ }, dr = .14, fr = "var(--CSignal)";
4630
+ function pr(e, t = 4) {
4333
4631
  let n = e / t || 1, r = 10 ** Math.floor(Math.log10(n)), i = n / r;
4334
4632
  return (i <= 1 ? 1 : i <= 2 ? 2 : i <= 5 ? 5 : 10) * r;
4335
4633
  }
4336
- function nr(e) {
4634
+ function mr(e) {
4337
4635
  let t = Math.abs(e);
4338
- return t >= 1e6 ? `${rr(e / 1e6)}M` : t >= 1e3 ? `${rr(e / 1e3)}k` : rr(e);
4636
+ return t >= 1e6 ? `${hr(e / 1e6)}M` : t >= 1e3 ? `${hr(e / 1e3)}k` : hr(e);
4339
4637
  }
4340
- function rr(e) {
4638
+ function hr(e) {
4341
4639
  return e.toLocaleString(void 0, { maximumFractionDigits: Math.abs(e) < 10 ? 2 : 1 });
4342
4640
  }
4343
- function ir(e) {
4641
+ function gr(e) {
4344
4642
  return Number.isInteger(e) ? String(e) : e.toLocaleString(void 0, { maximumFractionDigits: 2 });
4345
4643
  }
4346
- function ar({ series: t, labels: n, type: r = "line", height: a = 200, showLegend: c = !0, className: l, markers: u, yAxis: p = "none", yFormat: _ = nr, references: v, stacked: y = !1 }) {
4644
+ function _r({ series: t, labels: n, type: r = "line", height: a = 200, showLegend: c = !0, className: l, markers: u, yAxis: p = "none", yFormat: _ = mr, references: v, stacked: y = !1 }) {
4347
4645
  let b = y && r === "bar", x = d(null), S = s(), [C, w] = f(0), [T, E] = f(null);
4348
4646
  o(() => {
4349
4647
  let e = x.current;
@@ -4351,25 +4649,25 @@ function ar({ series: t, labels: n, type: r = "line", height: a = 200, showLegen
4351
4649
  let t = new ResizeObserver(([e]) => w(e.contentRect.width));
4352
4650
  return t.observe(e), w(e.clientWidth), () => t.disconnect();
4353
4651
  }, []);
4354
- let D = n?.length ? Xn : Yn, O = Math.max(a - qn - D, 0), k = Math.max(...t.map((e) => e.data.length), 0), A = b ? Array.from({ length: k }, (e, n) => t.reduce((e, t) => e + Math.max(0, t.data[n] ?? 0), 0)) : [], j = b ? A : t.flatMap((e) => [...e.data, ...r === "line" ? [...e.low ?? [], ...e.high ?? []] : []].filter(Number.isFinite)), M = (v ?? []).map((e) => e.value).filter(Number.isFinite), N = j.length || M.length ? Math.max(...j, ...M, 0) : 1, P = r === "bar" ? Math.min(0, ...M) : Math.min(...j, ...M, 0), F = p !== "none", I = tr(N - P);
4652
+ let D = n?.length ? cr : sr, O = Math.max(a - ar - D, 0), k = Math.max(...t.map((e) => e.data.length), 0), A = b ? Array.from({ length: k }, (e, n) => t.reduce((e, t) => e + Math.max(0, t.data[n] ?? 0), 0)) : [], j = b ? A : t.flatMap((e) => [...e.data, ...r === "line" ? [...e.low ?? [], ...e.high ?? []] : []].filter(Number.isFinite)), M = (v ?? []).map((e) => e.value).filter(Number.isFinite), N = j.length || M.length ? Math.max(...j, ...M, 0) : 1, P = r === "bar" ? Math.min(0, ...M) : Math.min(...j, ...M, 0), F = p !== "none", I = pr(N - P);
4355
4653
  F && (N = Math.ceil(N / I - 1e-9) * I, P = Math.floor(P / I + 1e-9) * I);
4356
4654
  let L = N - P || 1, R = [];
4357
4655
  if (F) for (let e = P; e <= N + I / 2; e += I) R.push(Number(e.toFixed(10)));
4358
- let z = (e) => e.label ?? _(e.value), B = F ? Math.max(...R.map((e) => _(e).length)) * 6 + 10 : 0, ee = v?.length ? Math.max(...v.map((e) => z(e).length)) * 6 + 8 : 0, V = p === "left" ? B + 4 : Zn, te = Math.max(p === "right" ? B + 4 : Jn, ee ? ee + 6 : 0), H = Math.max(C - V - te, 0), U = Math.max(...t.map((e) => e.data.length), 0), ne = (() => {
4656
+ let z = (e) => e.label ?? _(e.value), B = F ? Math.max(...R.map((e) => _(e).length)) * 6 + 10 : 0, ee = v?.length ? Math.max(...v.map((e) => z(e).length)) * 6 + 8 : 0, V = p === "left" ? B + 4 : lr, te = Math.max(p === "right" ? B + 4 : or, ee ? ee + 6 : 0), H = Math.max(C - V - te, 0), U = Math.max(...t.map((e) => e.data.length), 0), ne = (() => {
4359
4657
  if (!n || n.length <= 1 || H <= 0) return 1;
4360
4658
  let e = Math.max(...n.map((e) => e.length)) * 6 + 12, t = Math.max(Math.floor(H / e), 1);
4361
4659
  return Math.ceil(n.length / t);
4362
- })(), W = U <= 1 || H / (U - 1) >= 12, re = (e) => qn + (1 - (e - P) / L) * O, ie = re(Math.max(P, 0)), ae = (e, t, n = e.length) => {
4660
+ })(), W = U <= 1 || H / (U - 1) >= 12, re = (e) => ar + (1 - (e - P) / L) * O, ie = re(Math.max(P, 0)), ae = (e, t, n = e.length) => {
4363
4661
  let r = [];
4364
4662
  for (let i = 0; i < n; i++) t && i > 0 && r.push(`${me(i).toFixed(2)},${re(e[i - 1]).toFixed(2)}`), r.push(`${me(i).toFixed(2)},${re(e[i]).toFixed(2)}`);
4365
4663
  return r;
4366
- }, oe = (v ?? []).filter((e) => e.signal && Number.isFinite(e.value)), se = oe.length ? re(Math.min(...oe.map((e) => e.value))) : null, ce = `${S}-signal`, le = (e) => e.fill ?? (r === "bar" ? "solid" : "none"), ue = (e) => e.color ?? (r === "bar" ? "var(--chart-bar)" : Kn), de = (e) => `url(#${S}-${e})`, fe = (e, t) => {
4664
+ }, oe = (v ?? []).filter((e) => e.signal && Number.isFinite(e.value)), se = oe.length ? re(Math.min(...oe.map((e) => e.value))) : null, ce = `${S}-signal`, le = (e) => e.fill ?? (r === "bar" ? "solid" : "none"), ue = (e) => e.color ?? (r === "bar" ? "var(--chart-bar)" : ir), de = (e) => `url(#${S}-${e})`, fe = (e, t) => {
4367
4665
  let n = le(e);
4368
4666
  return n === "hatch" || n === "dots" || n === "checker" ? de(t) : ue(e);
4369
- }, pe = t.some((e) => le(e) in Qn) ? /* @__PURE__ */ h("defs", { children: t.map((e, t) => {
4667
+ }, pe = t.some((e) => le(e) in ur) ? /* @__PURE__ */ h("defs", { children: t.map((e, t) => {
4370
4668
  let n = le(e);
4371
- if (!(n in Qn)) return null;
4372
- let r = Qn[n];
4669
+ if (!(n in ur)) return null;
4670
+ let r = ur[n];
4373
4671
  return /* @__PURE__ */ h("pattern", {
4374
4672
  id: `${S}-${t}`,
4375
4673
  width: 4,
@@ -4409,9 +4707,9 @@ function ar({ series: t, labels: n, type: r = "line", height: a = 200, showLegen
4409
4707
  e.pointerType === "mouse" && E(null);
4410
4708
  }, []), _e = F ? null : /* @__PURE__ */ h("line", {
4411
4709
  x1: V,
4412
- y1: qn + O * .5,
4710
+ y1: ar + O * .5,
4413
4711
  x2: V + H,
4414
- y2: qn + O * .5,
4712
+ y2: ar + O * .5,
4415
4713
  stroke: "var(--chart-midline)",
4416
4714
  strokeWidth: "0.5"
4417
4715
  }), ve = (v ?? []).filter((e) => Number.isFinite(e.value)).map((e) => re(e.value)), ye = (e) => p === "right" && ve.some((t) => Math.abs(t - e) < 12), be = F ? /* @__PURE__ */ h("g", { children: R.map((e) => {
@@ -4460,36 +4758,36 @@ function ar({ series: t, labels: n, type: r = "line", height: a = 200, showLegen
4460
4758
  ] }, t);
4461
4759
  }), xe = /* @__PURE__ */ h("line", {
4462
4760
  x1: V,
4463
- y1: qn + O,
4761
+ y1: ar + O,
4464
4762
  x2: V + H,
4465
- y2: qn + O,
4763
+ y2: ar + O,
4466
4764
  stroke: "var(--chart-baseline)",
4467
4765
  strokeWidth: "1"
4468
4766
  }), Se = T && r === "bar" ? (() => {
4469
4767
  let e = H / U;
4470
4768
  return /* @__PURE__ */ h("rect", {
4471
4769
  x: V + T.index * e,
4472
- y: qn,
4770
+ y: ar,
4473
4771
  width: e,
4474
4772
  height: O,
4475
4773
  fill: "var(--chart-column-hover)"
4476
4774
  });
4477
4775
  })() : null, Ce = (e) => t.map((t, n) => {
4478
4776
  if (!t.data.length) return null;
4479
- let r = e ?? t.color ?? Kn, i = ae(t.data, t.step).join(" "), a = le(t), o = !e && !!(t.low && t.high && t.low.length && t.high.length), s = o ? (() => {
4777
+ let r = e ?? t.color ?? ir, i = ae(t.data, t.step).join(" "), a = le(t), o = !e && !!(t.low && t.high && t.low.length && t.high.length), s = o ? (() => {
4480
4778
  let e = Math.min(t.data.length, t.low.length, t.high.length);
4481
4779
  if (e < 2) return null;
4482
- let i = ae(t.high, t.step, e), o = ae(t.low, t.step, e).reverse(), s = a in Qn;
4780
+ let i = ae(t.high, t.step, e), o = ae(t.low, t.step, e).reverse(), s = a in ur;
4483
4781
  return /* @__PURE__ */ h("polygon", {
4484
4782
  points: [...i, ...o].join(" "),
4485
4783
  fill: s ? de(n) : r,
4486
- fillOpacity: s ? 1 : $n,
4784
+ fillOpacity: s ? 1 : dr,
4487
4785
  stroke: "none"
4488
4786
  });
4489
4787
  })() : null, c = !e && !o && a !== "none" && t.data.length > 1 ? /* @__PURE__ */ h("polygon", {
4490
4788
  points: `${me(0).toFixed(2)},${ie.toFixed(2)} ${i} ${me(t.data.length - 1).toFixed(2)},${ie.toFixed(2)}`,
4491
4789
  fill: fe(t, n),
4492
- fillOpacity: a === "solid" ? $n : 1,
4790
+ fillOpacity: a === "solid" ? dr : 1,
4493
4791
  stroke: "none"
4494
4792
  }) : null;
4495
4793
  return /* @__PURE__ */ g("g", { children: [
@@ -4518,7 +4816,7 @@ function ar({ series: t, labels: n, type: r = "line", height: a = 200, showLegen
4518
4816
  ] }, `${e ? "signal-" : ""}${n}`);
4519
4817
  }), we = (e) => {
4520
4818
  if (!U) return null;
4521
- let n = b ? 1 : t.length, r = H / U, i = Math.max((r - 2 * (n + 1)) / n, 2), a = qn + O, o = Array(U).fill(0);
4819
+ let n = b ? 1 : t.length, r = H / U, i = Math.max((r - 2 * (n + 1)) / n, 2), a = ar + O, o = Array(U).fill(0);
4522
4820
  return t.map((t, n) => t.data.map((s, c) => {
4523
4821
  let l = b ? V + c * r + 2 : V + c * r + 2 + n * (i + 2), u = b ? Math.max(0, s) : s, d = b ? o[c] : 0;
4524
4822
  b && (o[c] += u);
@@ -4533,7 +4831,7 @@ function ar({ series: t, labels: n, type: r = "line", height: a = 200, showLegen
4533
4831
  }));
4534
4832
  }, Te = () => {
4535
4833
  if (!n?.length) return null;
4536
- let e = qn + O + 18, t = n.length - 1;
4834
+ let e = ar + O + 18, t = n.length - 1;
4537
4835
  return n.map((n, i) => {
4538
4836
  if ((t - i) % ne !== 0) return null;
4539
4837
  let a = r === "line" ? me(i) : V + (i + .5) * (H / U);
@@ -4548,20 +4846,37 @@ function ar({ series: t, labels: n, type: r = "line", height: a = 200, showLegen
4548
4846
  });
4549
4847
  }, Ee = T && r === "line" ? /* @__PURE__ */ h("line", {
4550
4848
  x1: me(T.index),
4551
- y1: qn,
4849
+ y1: ar,
4552
4850
  x2: me(T.index),
4553
- y2: qn + O,
4851
+ y2: ar + O,
4554
4852
  stroke: "var(--chart-crosshair)",
4555
4853
  strokeWidth: "1",
4556
4854
  strokeDasharray: "3 3"
4557
4855
  }) : null, De = T ? (() => {
4558
- let i = n?.[T.index] ?? String(T.index + 1), o = t.length + t.filter((e) => e.low && e.high && e.low[T.index] != null && e.high[T.index] != null).length + (b && t.length > 1 ? 1 : 0) + (u?.filter((e) => e.index === T.index).length ?? 0), s = Math.max(i.length, ...t.map((e) => e.label.length + 8), ...u?.map((e) => e.label.length) ?? [0]), c = Math.min(Math.max(90, s * 6.5 + 36), Math.max(120, C - 16)), l = 30 + o * 20, d = r === "bar" && U > 0 ? H / U / 2 : 0, f = r === "bar" && U > 0 ? V + (T.index + .5) * (H / U) : me(T.index), p = {
4559
- left: f + d + 12 + c <= C - 4 ? f + d + 12 : Math.max(4, f - d - 12 - c),
4560
- top: Math.max(4, Math.min(T.y - l / 2, a - l - 4))
4856
+ let i = n?.[T.index] ?? String(T.index + 1), o = t.length + t.filter((e) => e.low && e.high && e.low[T.index] != null && e.high[T.index] != null).length + (b && t.length > 1 ? 1 : 0), s = [];
4857
+ for (let e of u ?? []) {
4858
+ if (e.index !== T.index) continue;
4859
+ let t = s.find((t) => t.label === e.label);
4860
+ t ? t.count++ : s.push({
4861
+ label: e.label,
4862
+ count: 1
4863
+ });
4864
+ }
4865
+ let c = Math.max(1, Math.floor((a - 8 - 30 - o * 20) / 22));
4866
+ if (s.length > c) {
4867
+ let e = s.slice(c - 1).reduce((e, t) => e + t.count, 0);
4868
+ s = [...s.slice(0, c - 1), {
4869
+ label: null,
4870
+ count: e
4871
+ }];
4872
+ }
4873
+ let l = Math.max(i.length, ...t.map((e) => e.label.length + 8), ...s.map((e) => (e.label?.length ?? 12) + 6)), d = Math.min(Math.max(90, l * 6.5 + 36), Math.max(120, C - 16)), f = 30 + o * 20 + s.length * 22, p = r === "bar" && U > 0 ? H / U / 2 : 0, m = r === "bar" && U > 0 ? V + (T.index + .5) * (H / U) : me(T.index), _ = {
4874
+ left: m + p + 12 + d <= C - 4 ? m + p + 12 : Math.max(4, m - p - 12 - d),
4875
+ top: Math.max(4, Math.min(T.y - f / 2, a - f - 4))
4561
4876
  };
4562
4877
  return /* @__PURE__ */ g("div", {
4563
4878
  className: Q.tooltip,
4564
- style: p,
4879
+ style: _,
4565
4880
  children: [
4566
4881
  /* @__PURE__ */ h("div", {
4567
4882
  className: Q.tooltipLabel,
@@ -4572,7 +4887,7 @@ function ar({ series: t, labels: n, type: r = "line", height: a = 200, showLegen
4572
4887
  children: [
4573
4888
  /* @__PURE__ */ h("span", {
4574
4889
  className: Q.tooltipDot,
4575
- style: { background: t.color ?? Kn }
4890
+ style: { background: t.color ?? ir }
4576
4891
  }),
4577
4892
  /* @__PURE__ */ h("span", {
4578
4893
  className: Q.tooltipName,
@@ -4580,7 +4895,7 @@ function ar({ series: t, labels: n, type: r = "line", height: a = 200, showLegen
4580
4895
  }),
4581
4896
  /* @__PURE__ */ h("span", {
4582
4897
  className: Q.tooltipValue,
4583
- children: ir(t.data[T.index] ?? 0)
4898
+ children: gr(t.data[T.index] ?? 0)
4584
4899
  })
4585
4900
  ]
4586
4901
  }), t.low && t.high && t.low[T.index] != null && t.high[T.index] != null && /* @__PURE__ */ g("div", {
@@ -4597,9 +4912,9 @@ function ar({ series: t, labels: n, type: r = "line", height: a = 200, showLegen
4597
4912
  /* @__PURE__ */ g("span", {
4598
4913
  className: Q.tooltipRangeValue,
4599
4914
  children: [
4600
- ir(t.low[T.index]),
4915
+ gr(t.low[T.index]),
4601
4916
  " to ",
4602
- ir(t.high[T.index])
4917
+ gr(t.high[T.index])
4603
4918
  ]
4604
4919
  })
4605
4920
  ]
@@ -4617,16 +4932,26 @@ function ar({ series: t, labels: n, type: r = "line", height: a = 200, showLegen
4617
4932
  }),
4618
4933
  /* @__PURE__ */ h("span", {
4619
4934
  className: Q.tooltipValue,
4620
- children: ir(A[T.index] ?? 0)
4935
+ children: gr(A[T.index] ?? 0)
4621
4936
  })
4622
4937
  ]
4623
4938
  }),
4624
- u?.filter((e) => e.index === T.index).map((e, t) => /* @__PURE__ */ g("div", {
4939
+ s.map((e, t) => /* @__PURE__ */ g("div", {
4625
4940
  className: `${Q.tooltipRow} ${Q.tooltipMarker}`,
4626
- children: [/* @__PURE__ */ h("span", { className: `${Q.tooltipDot} ${Q.markerDot}` }), /* @__PURE__ */ h("span", {
4627
- className: Q.tooltipName,
4628
- children: e.label
4629
- })]
4941
+ children: [
4942
+ /* @__PURE__ */ h("span", {
4943
+ className: `${Q.tooltipDot} ${Q.markerDot}`,
4944
+ style: e.label == null ? { visibility: "hidden" } : void 0
4945
+ }),
4946
+ /* @__PURE__ */ h("span", {
4947
+ className: Q.tooltipName,
4948
+ children: e.label ?? `and ${e.count} more`
4949
+ }),
4950
+ e.label != null && e.count > 1 && /* @__PURE__ */ g("span", {
4951
+ className: Q.tooltipValue,
4952
+ children: ["×", e.count]
4953
+ })
4954
+ ]
4630
4955
  }, `m${t}`))
4631
4956
  ]
4632
4957
  });
@@ -4652,24 +4977,24 @@ function ar({ series: t, labels: n, type: r = "line", height: a = 200, showLegen
4652
4977
  Se,
4653
4978
  Ee,
4654
4979
  r === "line" ? Ce() : we(),
4655
- se != null && se > qn && /* @__PURE__ */ g(m, { children: [/* @__PURE__ */ h("defs", { children: /* @__PURE__ */ h("clipPath", {
4980
+ se != null && se > ar && /* @__PURE__ */ g(m, { children: [/* @__PURE__ */ h("defs", { children: /* @__PURE__ */ h("clipPath", {
4656
4981
  id: ce,
4657
4982
  children: /* @__PURE__ */ h("rect", {
4658
4983
  x: V,
4659
- y: qn,
4984
+ y: ar,
4660
4985
  width: H,
4661
- height: se - qn
4986
+ height: se - ar
4662
4987
  })
4663
4988
  }) }), /* @__PURE__ */ h("g", {
4664
4989
  clipPath: `url(#${ce})`,
4665
- children: r === "line" ? Ce(er) : we(er)
4990
+ children: r === "line" ? Ce(fr) : we(fr)
4666
4991
  })] }),
4667
4992
  u && U > 0 && [...new Set(u.map((e) => e.index).filter((e) => e >= 0 && e < U))].map((e) => {
4668
4993
  let t = r === "line" ? me(e) : V + (e + .5) * (H / U);
4669
4994
  return /* @__PURE__ */ h("rect", {
4670
4995
  className: Q.marker,
4671
4996
  x: t - 3,
4672
- y: qn + O - 3,
4997
+ y: ar + O - 3,
4673
4998
  width: 6,
4674
4999
  height: 6
4675
5000
  }, `m${e}`);
@@ -4682,7 +5007,7 @@ function ar({ series: t, labels: n, type: r = "line", height: a = 200, showLegen
4682
5007
  className: Q.legend,
4683
5008
  children: t.map((e, t) => /* @__PURE__ */ g("div", {
4684
5009
  className: Q.legendItem,
4685
- children: [le(e) in Qn ? /* @__PURE__ */ h("svg", {
5010
+ children: [le(e) in ur ? /* @__PURE__ */ h("svg", {
4686
5011
  className: Q.legendSwatch,
4687
5012
  width: 12,
4688
5013
  height: 8,
@@ -4694,7 +5019,7 @@ function ar({ series: t, labels: n, type: r = "line", height: a = 200, showLegen
4694
5019
  })
4695
5020
  }) : /* @__PURE__ */ h("div", {
4696
5021
  className: Q.legendMark,
4697
- style: { background: e.color ?? Kn }
5022
+ style: { background: e.color ?? ir }
4698
5023
  }), /* @__PURE__ */ h("span", {
4699
5024
  className: Q.legendLabel,
4700
5025
  children: e.label
@@ -4703,7 +5028,7 @@ function ar({ series: t, labels: n, type: r = "line", height: a = 200, showLegen
4703
5028
  })]
4704
5029
  });
4705
5030
  }
4706
- var or = {
5031
+ var vr = {
4707
5032
  sparkline: "_sparkline_fqcg9_4",
4708
5033
  line: "_line_fqcg9_12",
4709
5034
  partial: "_partial_fqcg9_22",
@@ -4711,16 +5036,16 @@ var or = {
4711
5036
  bars: "_bars_fqcg9_34",
4712
5037
  bar: "_bar_fqcg9_34",
4713
5038
  baseline: "_baseline_fqcg9_48"
4714
- }, sr = 100, cr = 100;
4715
- function lr({ values: e, type: t = "line", width: n = "100%", height: r = 24, color: i = "currentColor", fill: a = !1, baseline: o = !1, lastIsPartial: c = !1, gap: l = 1, idleColor: u, ariaLabel: d, className: f }) {
5039
+ }, yr = 100, br = 100;
5040
+ function xr({ values: e, type: t = "line", width: n = "100%", height: r = 24, color: i = "currentColor", fill: a = !1, baseline: o = !1, lastIsPartial: c = !1, gap: l = 1, idleColor: u, ariaLabel: d, className: f }) {
4716
5041
  let p = `spark-${s().replace(/:/g, "")}`, _ = e.filter((e) => Number.isFinite(e)), v = d == null, y = _.length ? Math.max(..._) : 0, b = _.length ? Math.min(..._) : 0, x = y - b || 1, S = (e) => 94 - (e - b) / x * 88, C = (e) => /* @__PURE__ */ g("svg", {
4717
- className: [or.sparkline, f].filter(Boolean).join(" "),
5042
+ className: [vr.sparkline, f].filter(Boolean).join(" "),
4718
5043
  style: {
4719
5044
  width: n,
4720
5045
  height: r,
4721
5046
  color: i
4722
5047
  },
4723
- viewBox: `0 0 ${sr} ${cr}`,
5048
+ viewBox: `0 0 ${yr} ${br}`,
4724
5049
  preserveAspectRatio: "none",
4725
5050
  role: v ? void 0 : "img",
4726
5051
  "aria-label": d,
@@ -4729,15 +5054,15 @@ function lr({ values: e, type: t = "line", width: n = "100%", height: r = 24, co
4729
5054
  children: [e, o && /* @__PURE__ */ h("line", {
4730
5055
  x1: "0",
4731
5056
  y1: 99.5,
4732
- x2: sr,
5057
+ x2: yr,
4733
5058
  y2: 99.5,
4734
- className: or.baseline,
5059
+ className: vr.baseline,
4735
5060
  vectorEffect: "non-scaling-stroke"
4736
5061
  })]
4737
5062
  });
4738
5063
  if (_.length < 2) return C(null);
4739
5064
  if (t === "bar") return /* @__PURE__ */ h("div", {
4740
- className: [or.bars, f].filter(Boolean).join(" "),
5065
+ className: [vr.bars, f].filter(Boolean).join(" "),
4741
5066
  style: {
4742
5067
  width: n,
4743
5068
  height: r,
@@ -4749,18 +5074,18 @@ function lr({ values: e, type: t = "line", width: n = "100%", height: r = 24, co
4749
5074
  "aria-label": d,
4750
5075
  "aria-hidden": v || void 0,
4751
5076
  children: _.map((e, t) => /* @__PURE__ */ h("span", {
4752
- className: or.bar,
5077
+ className: vr.bar,
4753
5078
  style: { height: `${Math.max((e - b) / x * 100, 2)}%` }
4754
5079
  }, t))
4755
5080
  });
4756
- let w = sr / (_.length - 1), T = (e, t) => _.slice(e, e + t).map((t, n) => `${(e + n) * w},${S(t)}`).join(" "), E = T(0, _.length), D = u != null && _.some((e) => e === 0), O = D ? { stroke: `url(#${p})` } : void 0, k = D ? { fill: `url(#${p})` } : void 0;
5081
+ let w = yr / (_.length - 1), T = (e, t) => _.slice(e, e + t).map((t, n) => `${(e + n) * w},${S(t)}`).join(" "), E = T(0, _.length), D = u != null && _.some((e) => e === 0), O = D ? { stroke: `url(#${p})` } : void 0, k = D ? { fill: `url(#${p})` } : void 0;
4757
5082
  return C(/* @__PURE__ */ g(m, { children: [
4758
5083
  D && /* @__PURE__ */ h("defs", { children: /* @__PURE__ */ h("linearGradient", {
4759
5084
  id: p,
4760
5085
  gradientUnits: "userSpaceOnUse",
4761
5086
  x1: "0",
4762
5087
  y1: "0",
4763
- x2: sr,
5088
+ x2: yr,
4764
5089
  y2: "0",
4765
5090
  children: (() => {
4766
5091
  let e = _.length - 1, t = (e) => _[e] === 0 && _[e + 1] === 0 ? u : "currentColor", n = .2 / e;
@@ -4777,29 +5102,29 @@ function lr({ values: e, type: t = "line", width: n = "100%", height: r = 24, co
4777
5102
  })()
4778
5103
  }) }),
4779
5104
  a && /* @__PURE__ */ h("polygon", {
4780
- className: or.fill,
4781
- points: `0,${cr} ${E} ${sr},${cr}`,
5105
+ className: vr.fill,
5106
+ points: `0,${br} ${E} ${yr},${br}`,
4782
5107
  style: k
4783
5108
  }),
4784
5109
  c ? /* @__PURE__ */ g(m, { children: [_.length > 2 && /* @__PURE__ */ h("polyline", {
4785
- className: or.line,
5110
+ className: vr.line,
4786
5111
  points: T(0, _.length - 1),
4787
5112
  vectorEffect: "non-scaling-stroke",
4788
5113
  style: O
4789
5114
  }), /* @__PURE__ */ h("polyline", {
4790
- className: `${or.line} ${or.partial}`,
5115
+ className: `${vr.line} ${vr.partial}`,
4791
5116
  points: T(_.length - 2, 2),
4792
5117
  vectorEffect: "non-scaling-stroke",
4793
5118
  style: O
4794
5119
  })] }) : /* @__PURE__ */ h("polyline", {
4795
- className: or.line,
5120
+ className: vr.line,
4796
5121
  points: E,
4797
5122
  vectorEffect: "non-scaling-stroke",
4798
5123
  style: O
4799
5124
  })
4800
5125
  ] }));
4801
5126
  }
4802
- var ur = {
5127
+ var Sr = {
4803
5128
  wrapper: "_wrapper_17ws4_1",
4804
5129
  label: "_label_17ws4_7",
4805
5130
  textarea: "_textarea_17ws4_12",
@@ -4807,14 +5132,14 @@ var ur = {
4807
5132
  errorText: "_errorText_17ws4_56"
4808
5133
  };
4809
5134
  // src/components/Textarea/Textarea.tsx
4810
- function dr({ label: t, error: n, className: r = "", isValid: i = !0, id: a, rows: o = 4, ...s }) {
5135
+ function Cr({ label: t, error: n, className: r = "", isValid: i = !0, id: a, rows: o = 4, ...s }) {
4811
5136
  let c = e.useId(), l = a || c, u = `${l}-error`, d = n || !i;
4812
5137
  return /* @__PURE__ */ g("div", {
4813
- className: `${ur.wrapper} ${r}`,
5138
+ className: `${Sr.wrapper} ${r}`,
4814
5139
  children: [
4815
5140
  t && /* @__PURE__ */ g("label", {
4816
5141
  htmlFor: l,
4817
- className: ur.label,
5142
+ className: Sr.label,
4818
5143
  children: [t, s.required && /* @__PURE__ */ h("span", {
4819
5144
  "aria-label": "required",
4820
5145
  children: " *"
@@ -4823,28 +5148,28 @@ function dr({ label: t, error: n, className: r = "", isValid: i = !0, id: a, row
4823
5148
  /* @__PURE__ */ h("textarea", {
4824
5149
  id: l,
4825
5150
  rows: o,
4826
- className: `${ur.textarea} ${d ? ur.error : ""}`,
5151
+ className: `${Sr.textarea} ${d ? Sr.error : ""}`,
4827
5152
  "aria-invalid": d ? "true" : "false",
4828
5153
  "aria-describedby": n ? u : void 0,
4829
5154
  ...s
4830
5155
  }),
4831
5156
  n && /* @__PURE__ */ h("span", {
4832
5157
  id: u,
4833
- className: ur.errorText,
5158
+ className: Sr.errorText,
4834
5159
  role: "alert",
4835
5160
  children: n
4836
5161
  })
4837
5162
  ]
4838
5163
  });
4839
5164
  }
4840
- var fr = {
5165
+ var wr = {
4841
5166
  overlay: "_overlay_xud7c_1",
4842
5167
  content: "_content_xud7c_8",
4843
5168
  title: "_title_xud7c_26",
4844
5169
  description: "_description_xud7c_34",
4845
5170
  close: "_close_xud7c_40",
4846
5171
  srOnly: "_srOnly_xud7c_62"
4847
- }, pr = ({ trigger: e, children: t, open: n, onOpenChange: r, title: i, description: a, className: o = "", showClose: s = !0 }) => {
5172
+ }, Tr = ({ trigger: e, children: t, open: n, onOpenChange: r, title: i, description: a, className: o = "", showClose: s = !0 }) => {
4848
5173
  let c = ae();
4849
5174
  return /* @__PURE__ */ g(B.Root, {
4850
5175
  open: n,
@@ -4854,19 +5179,19 @@ var fr = {
4854
5179
  children: e
4855
5180
  }), /* @__PURE__ */ g(B.Portal, {
4856
5181
  container: c,
4857
- children: [/* @__PURE__ */ h(B.Overlay, { className: fr.overlay }), /* @__PURE__ */ g(B.Content, {
4858
- className: `${fr.content} ${o}`,
5182
+ children: [/* @__PURE__ */ h(B.Overlay, { className: wr.overlay }), /* @__PURE__ */ g(B.Content, {
5183
+ className: `${wr.content} ${o}`,
4859
5184
  children: [
4860
5185
  /* @__PURE__ */ h(B.Title, {
4861
- className: i ? fr.title : fr.srOnly,
5186
+ className: i ? wr.title : wr.srOnly,
4862
5187
  children: i || "Dialog"
4863
5188
  }),
4864
5189
  a && /* @__PURE__ */ h(B.Description, {
4865
- className: fr.description,
5190
+ className: wr.description,
4866
5191
  children: a
4867
5192
  }),
4868
5193
  s && /* @__PURE__ */ h(B.Close, {
4869
- className: fr.close,
5194
+ className: wr.close,
4870
5195
  "aria-label": "Close",
4871
5196
  children: /* @__PURE__ */ h(F, {
4872
5197
  size: 14,
@@ -4878,7 +5203,7 @@ var fr = {
4878
5203
  })]
4879
5204
  })]
4880
5205
  });
4881
- }, mr = {
5206
+ }, Er = {
4882
5207
  wrapper: "_wrapper_aimna_1",
4883
5208
  label: "_label_aimna_7",
4884
5209
  trigger: "_trigger_aimna_12",
@@ -4897,7 +5222,7 @@ var fr = {
4897
5222
  today: "_today_aimna_131",
4898
5223
  selected: "_selected_aimna_136",
4899
5224
  errorText: "_errorText_aimna_142"
4900
- }, hr = [
5225
+ }, Dr = [
4901
5226
  "Mo",
4902
5227
  "Tu",
4903
5228
  "We",
@@ -4905,7 +5230,7 @@ var fr = {
4905
5230
  "Fr",
4906
5231
  "Sa",
4907
5232
  "Su"
4908
- ], gr = [
5233
+ ], Or = [
4909
5234
  "January",
4910
5235
  "February",
4911
5236
  "March",
@@ -4919,19 +5244,19 @@ var fr = {
4919
5244
  "November",
4920
5245
  "December"
4921
5246
  ];
4922
- function _r(e) {
5247
+ function kr(e) {
4923
5248
  let t = String(e.getMonth() + 1).padStart(2, "0"), n = String(e.getDate()).padStart(2, "0");
4924
5249
  return `${e.getFullYear()}-${t}-${n}`;
4925
5250
  }
4926
- function vr(e, t) {
5251
+ function Ar(e, t) {
4927
5252
  return !!e && !!t && e.getFullYear() === t.getFullYear() && e.getMonth() === t.getMonth() && e.getDate() === t.getDate();
4928
5253
  }
4929
- function yr(e, t) {
5254
+ function jr(e, t) {
4930
5255
  let n = (new Date(e, t, 1).getDay() + 6) % 7, r = [];
4931
5256
  for (let i = 0; i < 42; i++) r.push(new Date(e, t, 1 - n + i));
4932
5257
  return r;
4933
5258
  }
4934
- var br = ({ value: t, onChange: n, label: r, placeholder: i = "Select a date", error: a, isValid: o = !0, disabled: s = !1, className: c = "", formatDate: l = _r }) => {
5259
+ var Mr = ({ value: t, onChange: n, label: r, placeholder: i = "Select a date", error: a, isValid: o = !0, disabled: s = !1, className: c = "", formatDate: l = kr }) => {
4935
5260
  let u = ae(), d = e.useId(), p = `${d}-error`, m = !!a || !o, [_, v] = f(!1), y = /* @__PURE__ */ new Date(), b = t ?? y, [w, T] = f(b.getFullYear()), [E, D] = f(b.getMonth()), [O, k] = f(b), A = e.useRef(/* @__PURE__ */ new Map()), j = e.useRef(!1), M = (e) => {
4936
5261
  if (e) {
4937
5262
  let e = t ?? /* @__PURE__ */ new Date();
@@ -4940,7 +5265,7 @@ var br = ({ value: t, onChange: n, label: r, placeholder: i = "Select a date", e
4940
5265
  v(e);
4941
5266
  };
4942
5267
  e.useEffect(() => {
4943
- j.current &&= (A.current.get(_r(O))?.focus(), !1);
5268
+ j.current &&= (A.current.get(kr(O))?.focus(), !1);
4944
5269
  }, [O]);
4945
5270
  let N = (e, t) => {
4946
5271
  let n = new Date(t), r = {
@@ -4967,13 +5292,13 @@ var br = ({ value: t, onChange: n, label: r, placeholder: i = "Select a date", e
4967
5292
  E === 11 ? (D(0), T(w + 1)) : D(E + 1);
4968
5293
  }, I = (e) => {
4969
5294
  n?.(e), v(!1);
4970
- }, L = yr(w, E);
5295
+ }, L = jr(w, E);
4971
5296
  return /* @__PURE__ */ g("div", {
4972
- className: `${mr.wrapper} ${c}`,
5297
+ className: `${Er.wrapper} ${c}`,
4973
5298
  children: [
4974
5299
  r && /* @__PURE__ */ h("span", {
4975
5300
  id: `${d}-label`,
4976
- className: mr.label,
5301
+ className: Er.label,
4977
5302
  children: r
4978
5303
  }),
4979
5304
  /* @__PURE__ */ g(R.Root, {
@@ -4983,14 +5308,14 @@ var br = ({ value: t, onChange: n, label: r, placeholder: i = "Select a date", e
4983
5308
  asChild: !0,
4984
5309
  children: /* @__PURE__ */ g("button", {
4985
5310
  type: "button",
4986
- className: `${mr.trigger} ${m ? mr.error : ""}`,
5311
+ className: `${Er.trigger} ${m ? Er.error : ""}`,
4987
5312
  disabled: s,
4988
5313
  "aria-labelledby": r ? `${d}-label ${d}-value` : void 0,
4989
5314
  "aria-invalid": m ? "true" : "false",
4990
5315
  "aria-describedby": a ? p : void 0,
4991
5316
  children: [/* @__PURE__ */ h("span", {
4992
5317
  id: `${d}-value`,
4993
- className: t ? mr.valueText : mr.placeholder,
5318
+ className: t ? Er.valueText : Er.placeholder,
4994
5319
  children: t ? l(t) : i
4995
5320
  }), /* @__PURE__ */ h(x, {
4996
5321
  size: 14,
@@ -5000,20 +5325,20 @@ var br = ({ value: t, onChange: n, label: r, placeholder: i = "Select a date", e
5000
5325
  }), /* @__PURE__ */ h(R.Portal, {
5001
5326
  container: u,
5002
5327
  children: /* @__PURE__ */ g(R.Content, {
5003
- className: mr.calendar,
5328
+ className: Er.calendar,
5004
5329
  align: "start",
5005
5330
  sideOffset: 5,
5006
5331
  "aria-label": r ? `${r} calendar` : "Choose a date",
5007
5332
  onOpenAutoFocus: (e) => {
5008
- e.preventDefault(), A.current.get(_r(O))?.focus();
5333
+ e.preventDefault(), A.current.get(kr(O))?.focus();
5009
5334
  },
5010
5335
  children: [
5011
5336
  /* @__PURE__ */ g("div", {
5012
- className: mr.header,
5337
+ className: Er.header,
5013
5338
  children: [
5014
5339
  /* @__PURE__ */ h("button", {
5015
5340
  type: "button",
5016
- className: mr.navButton,
5341
+ className: Er.navButton,
5017
5342
  onClick: P,
5018
5343
  "aria-label": "Previous month",
5019
5344
  children: /* @__PURE__ */ h(S, {
@@ -5022,16 +5347,16 @@ var br = ({ value: t, onChange: n, label: r, placeholder: i = "Select a date", e
5022
5347
  })
5023
5348
  }),
5024
5349
  /* @__PURE__ */ g("span", {
5025
- className: mr.monthLabel,
5350
+ className: Er.monthLabel,
5026
5351
  children: [
5027
- gr[E],
5352
+ Or[E],
5028
5353
  " ",
5029
5354
  w
5030
5355
  ]
5031
5356
  }),
5032
5357
  /* @__PURE__ */ h("button", {
5033
5358
  type: "button",
5034
- className: mr.navButton,
5359
+ className: Er.navButton,
5035
5360
  onClick: F,
5036
5361
  "aria-label": "Next month",
5037
5362
  children: /* @__PURE__ */ h(C, {
@@ -5042,27 +5367,27 @@ var br = ({ value: t, onChange: n, label: r, placeholder: i = "Select a date", e
5042
5367
  ]
5043
5368
  }),
5044
5369
  /* @__PURE__ */ h("div", {
5045
- className: mr.weekdays,
5046
- children: hr.map((e) => /* @__PURE__ */ h("span", {
5047
- className: mr.weekday,
5370
+ className: Er.weekdays,
5371
+ children: Dr.map((e) => /* @__PURE__ */ h("span", {
5372
+ className: Er.weekday,
5048
5373
  children: e
5049
5374
  }, e))
5050
5375
  }),
5051
5376
  /* @__PURE__ */ h("div", {
5052
- className: mr.grid,
5377
+ className: Er.grid,
5053
5378
  children: L.map((e) => {
5054
- let n = e.getMonth() !== E, r = vr(e, t), i = vr(e, y), a = [
5055
- mr.day,
5056
- n ? mr.outside : "",
5057
- r ? mr.selected : "",
5058
- i && !r ? mr.today : ""
5379
+ let n = e.getMonth() !== E, r = Ar(e, t), i = Ar(e, y), a = [
5380
+ Er.day,
5381
+ n ? Er.outside : "",
5382
+ r ? Er.selected : "",
5383
+ i && !r ? Er.today : ""
5059
5384
  ].filter(Boolean).join(" ");
5060
5385
  return /* @__PURE__ */ h("button", {
5061
5386
  type: "button",
5062
5387
  className: a,
5063
5388
  onClick: () => I(e),
5064
5389
  ref: (t) => {
5065
- t ? A.current.set(_r(e), t) : A.current.delete(_r(e));
5390
+ t ? A.current.set(kr(e), t) : A.current.delete(kr(e));
5066
5391
  },
5067
5392
  "aria-label": e.toLocaleDateString(void 0, {
5068
5393
  weekday: "long",
@@ -5072,7 +5397,7 @@ var br = ({ value: t, onChange: n, label: r, placeholder: i = "Select a date", e
5072
5397
  }),
5073
5398
  "aria-pressed": r,
5074
5399
  "aria-current": i ? "date" : void 0,
5075
- tabIndex: vr(e, O) || O.getMonth() !== E && e.getDate() === 1 && !n ? 0 : -1,
5400
+ tabIndex: Ar(e, O) || O.getMonth() !== E && e.getDate() === 1 && !n ? 0 : -1,
5076
5401
  onKeyDown: (t) => N(t, e),
5077
5402
  children: e.getDate()
5078
5403
  }, e.toISOString());
@@ -5084,130 +5409,130 @@ var br = ({ value: t, onChange: n, label: r, placeholder: i = "Select a date", e
5084
5409
  }),
5085
5410
  a && /* @__PURE__ */ h("span", {
5086
5411
  id: p,
5087
- className: mr.errorText,
5412
+ className: Er.errorText,
5088
5413
  role: "alert",
5089
5414
  children: a
5090
5415
  })
5091
5416
  ]
5092
5417
  });
5093
- }, xr = {
5418
+ }, Nr = {
5094
5419
  skeleton: "_skeleton_fo2zs_11",
5095
5420
  "indx-skeleton-pulse": "_indx-skeleton-pulse_fo2zs_1",
5096
5421
  level3: "_level3_fo2zs_20",
5097
5422
  appear: "_appear_fo2zs_25",
5098
5423
  "indx-skeleton-appear": "_indx-skeleton-appear_fo2zs_1"
5099
- }, Sr = (e) => typeof e == "number" ? `${e}px` : e;
5100
- function Cr({ width: e = "100%", height: t = 10, level: n = 2, delay: r = 0, appear: i = !0, className: a = "", style: o }) {
5424
+ }, Pr = (e) => typeof e == "number" ? `${e}px` : e;
5425
+ function Fr({ width: e = "100%", height: t = 10, level: n = 2, delay: r = 0, appear: i = !0, className: a = "", style: o }) {
5101
5426
  return /* @__PURE__ */ h("span", {
5102
5427
  "aria-hidden": "true",
5103
- className: `${xr.skeleton} ${n === 3 ? xr.level3 : ""} ${i ? xr.appear : ""} ${a}`,
5428
+ className: `${Nr.skeleton} ${n === 3 ? Nr.level3 : ""} ${i ? Nr.appear : ""} ${a}`,
5104
5429
  style: {
5105
- width: Sr(e),
5106
- height: Sr(t),
5430
+ width: Pr(e),
5431
+ height: Pr(t),
5107
5432
  "--skeleton-delay": `${r}s`,
5108
5433
  ...o
5109
5434
  }
5110
5435
  });
5111
5436
  }
5112
- var wr = {
5113
- stat: "_stat_1nz7e_2",
5114
- label: "_label_1nz7e_17",
5115
- labelIcon: "_labelIcon_1nz7e_26",
5116
- body: "_body_1nz7e_33",
5117
- footRow: "_footRow_1nz7e_44",
5118
- foot: "_foot_1nz7e_44",
5119
- hinted: "_hinted_1nz7e_52",
5120
- value: "_value_1nz7e_59",
5121
- icon: "_icon_1nz7e_73",
5122
- figured: "_figured_1nz7e_91",
5123
- figure: "_figure_1nz7e_91",
5124
- text: "_text_1nz7e_104",
5125
- group: "_group_1nz7e_114",
5126
- fixed: "_fixed_1nz7e_120",
5127
- many: "_many_1nz7e_125",
5128
- pairs: "_pairs_1nz7e_129"
5129
- }, Tr = 28;
5130
- function Er({ label: e, labelIcon: n, value: i, figure: a, icon: o, color: s, hint: c, children: l, className: u = "" }) {
5437
+ var Ir = {
5438
+ stat: "_stat_tcz5d_2",
5439
+ label: "_label_tcz5d_16",
5440
+ labelIcon: "_labelIcon_tcz5d_25",
5441
+ body: "_body_tcz5d_32",
5442
+ footRow: "_footRow_tcz5d_43",
5443
+ foot: "_foot_tcz5d_43",
5444
+ hinted: "_hinted_tcz5d_51",
5445
+ value: "_value_tcz5d_58",
5446
+ icon: "_icon_tcz5d_72",
5447
+ figured: "_figured_tcz5d_90",
5448
+ figure: "_figure_tcz5d_90",
5449
+ text: "_text_tcz5d_103",
5450
+ group: "_group_tcz5d_113",
5451
+ fixed: "_fixed_tcz5d_119",
5452
+ many: "_many_tcz5d_124",
5453
+ pairs: "_pairs_tcz5d_128"
5454
+ }, Lr = 28;
5455
+ function Rr({ label: e, labelIcon: n, value: i, figure: a, icon: o, color: s, hint: c, children: l, className: u = "" }) {
5131
5456
  let d = n && r(n) ? t(n, {
5132
5457
  size: n.props.size ?? 14,
5133
5458
  color: n.props.color ?? "currentColor"
5134
5459
  }) : n, f = /* @__PURE__ */ g("span", {
5135
- className: `${wr.label} ${c ? wr.hinted : ""}`,
5460
+ className: `${Ir.label} ${c ? Ir.hinted : ""}`,
5136
5461
  children: [d != null && /* @__PURE__ */ h("span", {
5137
- className: wr.labelIcon,
5462
+ className: Ir.labelIcon,
5138
5463
  "aria-hidden": "true",
5139
5464
  children: d
5140
5465
  }), e]
5141
5466
  }), p = o && r(o) ? t(o, {
5142
5467
  size: o.props.size ?? 28,
5143
5468
  color: o.props.color ?? "currentColor"
5144
- }) : o, m = c ? /* @__PURE__ */ h($t, {
5469
+ }) : o, m = c ? /* @__PURE__ */ h(fn, {
5145
5470
  content: c,
5146
5471
  children: f
5147
5472
  }) : f, _ = (i != null || p != null) && /* @__PURE__ */ g("span", {
5148
- className: wr.value,
5473
+ className: Ir.value,
5149
5474
  style: s ? { color: s } : void 0,
5150
5475
  children: [p != null && /* @__PURE__ */ h("span", {
5151
- className: wr.icon,
5476
+ className: Ir.icon,
5152
5477
  "aria-hidden": "true",
5153
5478
  children: p
5154
5479
  }), i]
5155
5480
  }), v = l != null && /* @__PURE__ */ h("span", {
5156
- className: wr.foot,
5481
+ className: Ir.foot,
5157
5482
  children: l
5158
5483
  });
5159
5484
  return a == null ? /* @__PURE__ */ g("div", {
5160
- className: `${wr.stat} ${u}`,
5485
+ className: `${Ir.stat} ${u}`,
5161
5486
  children: [
5162
5487
  m,
5163
5488
  /* @__PURE__ */ h("span", {
5164
- className: wr.body,
5489
+ className: Ir.body,
5165
5490
  children: _
5166
5491
  }),
5167
5492
  v && /* @__PURE__ */ h("span", {
5168
- className: wr.footRow,
5493
+ className: Ir.footRow,
5169
5494
  children: v
5170
5495
  })
5171
5496
  ]
5172
5497
  }) : /* @__PURE__ */ g("div", {
5173
- className: `${wr.stat} ${u}`,
5498
+ className: `${Ir.stat} ${u}`,
5174
5499
  children: [m, /* @__PURE__ */ h("span", {
5175
- className: wr.body,
5500
+ className: Ir.body,
5176
5501
  children: /* @__PURE__ */ g("span", {
5177
- className: wr.figured,
5502
+ className: Ir.figured,
5178
5503
  children: [/* @__PURE__ */ h("span", {
5179
- className: wr.figure,
5504
+ className: Ir.figure,
5180
5505
  children: a
5181
5506
  }), /* @__PURE__ */ g("span", {
5182
- className: wr.text,
5507
+ className: Ir.text,
5183
5508
  children: [_, v]
5184
5509
  })]
5185
5510
  })
5186
5511
  })]
5187
5512
  });
5188
5513
  }
5189
- function Dr({ children: e, columns: t, className: n = "" }) {
5190
- let r = t ? `${wr.fixed} ${t > 3 ? wr.many : ""} ${t > 2 ? wr.pairs : ""}` : "";
5514
+ function zr({ children: e, columns: t, className: n = "" }) {
5515
+ let r = t ? `${Ir.fixed} ${t > 3 ? Ir.many : ""} ${t > 2 ? Ir.pairs : ""}` : "";
5191
5516
  return /* @__PURE__ */ h("div", {
5192
- className: `${wr.group} ${r} ${n}`,
5517
+ className: `${Ir.group} ${r} ${n}`,
5193
5518
  style: t ? { "--stat-columns": t } : void 0,
5194
5519
  children: e
5195
5520
  });
5196
5521
  }
5197
- var Or = {
5522
+ var Br = {
5198
5523
  text: "_text_15djf_3",
5199
5524
  active: "_active_15djf_6",
5200
5525
  "indx-shimmer-text": "_indx-shimmer-text_15djf_1"
5201
5526
  };
5202
5527
  // src/components/ShimmerText/ShimmerText.tsx
5203
- function kr({ children: e, active: t = !0, className: n = "", ...r }) {
5528
+ function Vr({ children: e, active: t = !0, className: n = "", ...r }) {
5204
5529
  return /* @__PURE__ */ h("span", {
5205
- className: `${Or.text} ${t ? Or.active : ""} ${n}`,
5530
+ className: `${Br.text} ${t ? Br.active : ""} ${n}`,
5206
5531
  ...r,
5207
5532
  children: e
5208
5533
  });
5209
5534
  }
5210
- var Ar = {
5535
+ var Hr = {
5211
5536
  meter: "_meter_5u78a_3",
5212
5537
  cell: "_cell_5u78a_12",
5213
5538
  lit: "_lit_5u78a_13",
@@ -5215,25 +5540,77 @@ var Ar = {
5215
5540
  some: "_some_5u78a_16",
5216
5541
  all: "_all_5u78a_17",
5217
5542
  mark: "_mark_5u78a_18"
5218
- }, jr = (e) => Math.min(1, Math.max(0, e)).toFixed(2);
5219
- function Mr({ value: e, marks: t = [], cells: n = 20, cell: r = 4, className: i = "", ...a }) {
5220
- let o = t.length === 0 ? "" : t.every((t) => e >= t.at) ? Ar.all : t.some((t) => e >= t.at) ? Ar.some : Ar.none;
5543
+ }, Ur = (e) => Math.min(1, Math.max(0, e)).toFixed(2);
5544
+ function Wr({ value: e, marks: t = [], cells: n = 20, cell: r = 4, className: i = "", ...a }) {
5545
+ let o = t.length === 0 ? "" : t.every((t) => e >= t.at) ? Hr.all : t.some((t) => e >= t.at) ? Hr.some : Hr.none;
5221
5546
  return /* @__PURE__ */ g("span", {
5222
- className: `${Ar.meter} ${o} ${i}`,
5547
+ className: `${Hr.meter} ${o} ${i}`,
5223
5548
  role: "meter",
5224
5549
  "aria-valuemin": 0,
5225
5550
  "aria-valuemax": 1,
5226
- "aria-valuenow": Number(jr(e)),
5551
+ "aria-valuenow": Number(Ur(e)),
5227
5552
  "aria-label": a["aria-label"],
5228
5553
  style: { "--score-cell": `${r}px` },
5229
- children: [Array.from({ length: n }, (t, r) => /* @__PURE__ */ h("span", { className: `${Ar.cell} ${e >= (r + .5) / n ? Ar.lit : ""}` }, r)), t.map((e) => /* @__PURE__ */ h("span", {
5230
- className: Ar.mark,
5554
+ children: [Array.from({ length: n }, (t, r) => /* @__PURE__ */ h("span", { className: `${Hr.cell} ${e >= (r + .5) / n ? Hr.lit : ""}` }, r)), t.map((e) => /* @__PURE__ */ h("span", {
5555
+ className: Hr.mark,
5231
5556
  style: { left: `${Math.min(1, Math.max(0, e.at)) * 100}%` },
5232
- title: `${e.label} ${jr(e.at)}`
5557
+ title: `${e.label} ${Ur(e.at)}`
5233
5558
  }, `${e.label}-${e.at}`))]
5234
5559
  });
5235
5560
  }
5236
- var Nr = {
5561
+ var Gr = {
5562
+ steps: "_steps_16r2n_1",
5563
+ part: "_part_16r2n_2",
5564
+ track: "_track_16r2n_3",
5565
+ fill: "_fill_16r2n_4",
5566
+ label: "_label_16r2n_5",
5567
+ name: "_name_16r2n_6",
5568
+ count: "_count_16r2n_7"
5569
+ };
5570
+ // src/components/StepProgress/StepProgress.tsx
5571
+ function Kr({ parts: e, weighted: t = !0, labels: n = !1, color: r, height: i = 3, className: a = "", ...o }) {
5572
+ let s = e.reduce((e, t) => e + Math.min(t.value, t.max ?? 1), 0), c = e.reduce((e, t) => e + (t.max ?? 1), 0), l = {
5573
+ "--step-fill": r,
5574
+ "--step-height": `${i}px`
5575
+ };
5576
+ return /* @__PURE__ */ h("div", {
5577
+ className: `${Gr.steps} ${a}`,
5578
+ style: l,
5579
+ role: "progressbar",
5580
+ "aria-valuemin": 0,
5581
+ "aria-valuemax": c,
5582
+ "aria-valuenow": s,
5583
+ "aria-label": o["aria-label"] ?? `${s} of ${c} done`,
5584
+ children: e.map((e, r) => {
5585
+ let i = e.max ?? 1, a = Math.min(Math.max(e.value, 0), i);
5586
+ return /* @__PURE__ */ g("div", {
5587
+ className: Gr.part,
5588
+ style: { flex: t ? i : 1 },
5589
+ children: [/* @__PURE__ */ h("div", {
5590
+ className: Gr.track,
5591
+ children: /* @__PURE__ */ h("div", {
5592
+ className: Gr.fill,
5593
+ style: { width: `${a / i * 100}%` }
5594
+ })
5595
+ }), n && /* @__PURE__ */ g("div", {
5596
+ className: Gr.label,
5597
+ children: [/* @__PURE__ */ h("span", {
5598
+ className: Gr.name,
5599
+ children: e.label
5600
+ }), /* @__PURE__ */ g("span", {
5601
+ className: Gr.count,
5602
+ children: [
5603
+ a,
5604
+ "/",
5605
+ i
5606
+ ]
5607
+ })]
5608
+ })]
5609
+ }, r);
5610
+ })
5611
+ });
5612
+ }
5613
+ var qr = {
5237
5614
  icicle: "_icicle_1e1du_2",
5238
5615
  cell: "_cell_1e1du_3",
5239
5616
  block: "_block_1e1du_4",
@@ -5243,12 +5620,12 @@ var Nr = {
5243
5620
  tone2: "_tone2_1e1du_18",
5244
5621
  tone3: "_tone3_1e1du_19",
5245
5622
  tone4: "_tone4_1e1du_20"
5246
- }, Pr = (e) => 1 + (e.children?.length ? Math.max(...e.children.map(Pr)) : 0), Fr = (e) => {
5623
+ }, Jr = (e) => 1 + (e.children?.length ? Math.max(...e.children.map(Jr)) : 0), Yr = (e) => {
5247
5624
  if (e.value <= 0 || !e.children?.length) return 0;
5248
5625
  let t = Math.min(1, Math.max(0, e.children.reduce((e, t) => e + t.value, 0) / e.value));
5249
5626
  return Math.round(t * 4);
5250
5627
  };
5251
- function Ir({ root: e, rowHeight: t = 30, maxDepth: n = 6, title: r, className: i = "", ...a }) {
5628
+ function Xr({ root: e, rowHeight: t = 30, maxDepth: n = 6, title: r, className: i = "", ...a }) {
5252
5629
  let o = [], s = (t, r, i, a) => {
5253
5630
  if (r >= n || a <= 0) return;
5254
5631
  o.push({
@@ -5264,14 +5641,14 @@ function Ir({ root: e, rowHeight: t = 30, maxDepth: n = 6, title: r, className:
5264
5641
  }
5265
5642
  };
5266
5643
  s(e, 0, 0, +(e.value > 0));
5267
- let c = Math.min(n, Pr(e));
5644
+ let c = Math.min(n, Jr(e));
5268
5645
  return /* @__PURE__ */ h("div", {
5269
- className: `${Nr.icicle} ${i}`,
5646
+ className: `${qr.icicle} ${i}`,
5270
5647
  role: "img",
5271
5648
  "aria-label": a["aria-label"],
5272
5649
  style: { height: c * t },
5273
5650
  children: o.map((e, n) => /* @__PURE__ */ h("div", {
5274
- className: Nr.cell,
5651
+ className: qr.cell,
5275
5652
  title: r?.(e.node) ?? `${e.node.label}: ${e.node.value.toLocaleString()}`,
5276
5653
  style: {
5277
5654
  left: `${e.x * 100}%`,
@@ -5280,16 +5657,16 @@ function Ir({ root: e, rowHeight: t = 30, maxDepth: n = 6, title: r, className:
5280
5657
  height: t - 2
5281
5658
  },
5282
5659
  children: /* @__PURE__ */ h("span", {
5283
- className: `${Nr.block} ${Nr[`tone${Fr(e.node)}`]}`,
5660
+ className: `${qr.block} ${qr[`tone${Yr(e.node)}`]}`,
5284
5661
  children: /* @__PURE__ */ h("span", {
5285
- className: Nr.label,
5662
+ className: qr.label,
5286
5663
  children: e.node.label
5287
5664
  })
5288
5665
  })
5289
5666
  }, n))
5290
5667
  });
5291
5668
  }
5292
- var Lr = {
5669
+ var Zr = {
5293
5670
  root: "_root_biiv1_1",
5294
5671
  micro: "_micro_biiv1_7",
5295
5672
  default: "_default_biiv1_8",
@@ -5305,13 +5682,13 @@ var Lr = {
5305
5682
  panelTrigger: "_panelTrigger_biiv1_77",
5306
5683
  viewport: "_viewport_biiv1_60",
5307
5684
  content: "_content_biiv1_110"
5308
- }, Rr = {
5685
+ }, Qr = {
5309
5686
  micro: 14,
5310
5687
  default: 14,
5311
5688
  large: 21
5312
- }, zr = e.createContext("default"), Br = typeof window > "u" ? e.useEffect : e.useLayoutEffect, Vr = e.forwardRef(({ size: t = "default", align: n = "start", panelAlign: r = "trigger", panelWidth: i, className: a = "", style: o, children: s, "aria-label": c = "Main navigation", ...l }, u) => {
5689
+ }, $r = e.createContext("default"), ei = typeof window > "u" ? e.useEffect : e.useLayoutEffect, ti = e.forwardRef(({ size: t = "default", align: n = "start", panelAlign: r = "trigger", panelWidth: i, className: a = "", style: o, children: s, "aria-label": c = "Main navigation", ...l }, u) => {
5313
5690
  let d = e.useRef(null), f = e.useRef(!1);
5314
- Br(() => {
5691
+ ei(() => {
5315
5692
  let e = d.current;
5316
5693
  if (!e || r !== "trigger") return;
5317
5694
  let t = () => {
@@ -5340,8 +5717,8 @@ var Lr = {
5340
5717
  let p = {
5341
5718
  ...o,
5342
5719
  ...i === void 0 ? {} : { "--panel-width": typeof i == "number" ? `${i}px` : i }
5343
- }, m = r === "trigger" ? Lr.panelTrigger : r === "end" ? Lr.alignEnd : "";
5344
- return /* @__PURE__ */ h(zr.Provider, {
5720
+ }, m = r === "trigger" ? Zr.panelTrigger : r === "end" ? Zr.alignEnd : "";
5721
+ return /* @__PURE__ */ h($r.Provider, {
5345
5722
  value: t,
5346
5723
  children: /* @__PURE__ */ g(ee.Root, {
5347
5724
  ...l,
@@ -5350,67 +5727,67 @@ var Lr = {
5350
5727
  },
5351
5728
  "aria-label": c,
5352
5729
  style: p,
5353
- className: `${Lr.root} ${Lr[t]} ${n === "end" ? Lr.alignList : ""} ${m} ${a}`,
5730
+ className: `${Zr.root} ${Zr[t]} ${n === "end" ? Zr.alignList : ""} ${m} ${a}`,
5354
5731
  children: [s, /* @__PURE__ */ h("div", {
5355
- className: Lr.viewportPosition,
5356
- children: /* @__PURE__ */ h(ee.Viewport, { className: Lr.viewport })
5732
+ className: Zr.viewportPosition,
5733
+ children: /* @__PURE__ */ h(ee.Viewport, { className: Zr.viewport })
5357
5734
  })]
5358
5735
  })
5359
5736
  });
5360
5737
  });
5361
- Vr.displayName = "NavigationMenu";
5362
- var Hr = e.forwardRef(({ className: e = "", ...t }, n) => /* @__PURE__ */ h(ee.List, {
5738
+ ti.displayName = "NavigationMenu";
5739
+ var ni = e.forwardRef(({ className: e = "", ...t }, n) => /* @__PURE__ */ h(ee.List, {
5363
5740
  ...t,
5364
5741
  ref: n,
5365
- className: `${Lr.list} ${e}`
5742
+ className: `${Zr.list} ${e}`
5366
5743
  }));
5367
- Hr.displayName = "NavigationMenuList";
5368
- var Ur = ee.Item;
5369
- function Wr({ icon: t }) {
5370
- let n = e.useContext(zr);
5744
+ ni.displayName = "NavigationMenuList";
5745
+ var ri = ee.Item;
5746
+ function ii({ icon: t }) {
5747
+ let n = e.useContext($r);
5371
5748
  return t ? /* @__PURE__ */ h("span", {
5372
- className: Lr.icon,
5749
+ className: Zr.icon,
5373
5750
  "aria-hidden": "true",
5374
5751
  children: e.cloneElement(t, {
5375
- size: Rr[n],
5752
+ size: Qr[n],
5376
5753
  color: "currentColor"
5377
5754
  })
5378
5755
  }) : null;
5379
5756
  }
5380
- var Gr = e.forwardRef(({ className: t = "", icon: n, children: r, ...i }, a) => {
5381
- let o = e.useContext(zr);
5757
+ var ai = e.forwardRef(({ className: t = "", icon: n, children: r, ...i }, a) => {
5758
+ let o = e.useContext($r);
5382
5759
  return /* @__PURE__ */ g(ee.Trigger, {
5383
5760
  ...i,
5384
5761
  ref: a,
5385
- className: `${Lr.control} ${t}`,
5762
+ className: `${Zr.control} ${t}`,
5386
5763
  children: [
5387
- /* @__PURE__ */ h(Wr, { icon: n }),
5764
+ /* @__PURE__ */ h(ii, { icon: n }),
5388
5765
  r,
5389
5766
  /* @__PURE__ */ h("span", {
5390
- className: Lr.caret,
5767
+ className: Zr.caret,
5391
5768
  "aria-hidden": "true",
5392
5769
  children: /* @__PURE__ */ h(x, {
5393
- size: Rr[o],
5770
+ size: Qr[o],
5394
5771
  color: "currentColor"
5395
5772
  })
5396
5773
  })
5397
5774
  ]
5398
5775
  });
5399
5776
  });
5400
- Gr.displayName = "NavigationMenuTrigger";
5401
- var Kr = e.forwardRef(({ className: e = "", ...t }, n) => /* @__PURE__ */ h(ee.Content, {
5777
+ ai.displayName = "NavigationMenuTrigger";
5778
+ var oi = e.forwardRef(({ className: e = "", ...t }, n) => /* @__PURE__ */ h(ee.Content, {
5402
5779
  ...t,
5403
5780
  ref: n,
5404
- className: `${Lr.content} ${e}`
5781
+ className: `${Zr.content} ${e}`
5405
5782
  }));
5406
- Kr.displayName = "NavigationMenuContent";
5407
- var qr = e.forwardRef(({ variant: e = "panel", icon: t, className: n = "", children: r, ...i }, a) => /* @__PURE__ */ h(ee.Link, {
5783
+ oi.displayName = "NavigationMenuContent";
5784
+ var si = e.forwardRef(({ variant: e = "panel", icon: t, className: n = "", children: r, ...i }, a) => /* @__PURE__ */ h(ee.Link, {
5408
5785
  ...i,
5409
5786
  ref: a,
5410
- className: `${e === "navigation" ? Lr.control : Lr.link} ${n}`,
5411
- children: e === "navigation" && !i.asChild ? /* @__PURE__ */ g(m, { children: [/* @__PURE__ */ h(Wr, { icon: t }), r] }) : r
5787
+ className: `${e === "navigation" ? Zr.control : Zr.link} ${n}`,
5788
+ children: e === "navigation" && !i.asChild ? /* @__PURE__ */ g(m, { children: [/* @__PURE__ */ h(ii, { icon: t }), r] }) : r
5412
5789
  }));
5413
- qr.displayName = "NavigationMenuLink";
5790
+ si.displayName = "NavigationMenuLink";
5414
5791
  var $ = {
5415
5792
  panel: "_panel_1psyb_7",
5416
5793
  header: "_header_1psyb_15",
@@ -5460,12 +5837,12 @@ var $ = {
5460
5837
  reasoningIcon: "_reasoningIcon_1psyb_260",
5461
5838
  reasoningChevron: "_reasoningChevron_1psyb_262",
5462
5839
  reasoningBody: "_reasoningBody_1psyb_264"
5463
- }, Jr = 80, Yr = /* @__PURE__ */ g(m, { children: [
5464
- /* @__PURE__ */ g("span", { children: [/* @__PURE__ */ h(Lt, { children: "↵" }), " send"] }),
5465
- /* @__PURE__ */ g("span", { children: [/* @__PURE__ */ h(Lt, { children: "⇧↵" }), " new line"] }),
5466
- /* @__PURE__ */ g("span", { children: [/* @__PURE__ */ h(Lt, { children: "esc" }), " close"] })
5840
+ }, ci = 80, li = /* @__PURE__ */ g(m, { children: [
5841
+ /* @__PURE__ */ g("span", { children: [/* @__PURE__ */ h(Yt, { children: "↵" }), " send"] }),
5842
+ /* @__PURE__ */ g("span", { children: [/* @__PURE__ */ h(Yt, { children: "⇧↵" }), " new line"] }),
5843
+ /* @__PURE__ */ g("span", { children: [/* @__PURE__ */ h(Yt, { children: "esc" }), " close"] })
5467
5844
  ] });
5468
- function Xr({ header: e, children: t, composer: n, hints: r = Yr, className: a = "", threadRef: s, "aria-label": c, jumpToLatest: l = !0, jumpLabel: u = "Latest" }) {
5845
+ function ui({ header: e, children: t, composer: n, hints: r = li, className: a = "", threadRef: s, "aria-label": c, jumpToLatest: l = !0, jumpLabel: u = "Latest" }) {
5469
5846
  let [p, m] = f(null), [_, y] = f(!1), b = d(s);
5470
5847
  b.current = s;
5471
5848
  let x = i((e) => {
@@ -5475,7 +5852,7 @@ function Xr({ header: e, children: t, composer: n, hints: r = Yr, className: a =
5475
5852
  }, []);
5476
5853
  return o(() => {
5477
5854
  if (!p || !l) return;
5478
- let e = () => y(p.scrollHeight - p.scrollTop - p.clientHeight > Jr);
5855
+ let e = () => y(p.scrollHeight - p.scrollTop - p.clientHeight > ci);
5479
5856
  p.addEventListener("scroll", e, { passive: !0 });
5480
5857
  let t = new MutationObserver(e);
5481
5858
  t.observe(p, {
@@ -5528,7 +5905,7 @@ function Xr({ header: e, children: t, composer: n, hints: r = Yr, className: a =
5528
5905
  });
5529
5906
  }
5530
5907
  // src/components/Chat/Message.tsx
5531
- function Zr({ children: e, className: t = "" }) {
5908
+ function di({ children: e, className: t = "" }) {
5532
5909
  return /* @__PURE__ */ h("div", {
5533
5910
  className: $.userRow,
5534
5911
  children: /* @__PURE__ */ h("div", {
@@ -5537,7 +5914,7 @@ function Zr({ children: e, className: t = "" }) {
5537
5914
  })
5538
5915
  });
5539
5916
  }
5540
- function Qr({ label: e = "Assistant", icon: t, children: n, className: r = "" }) {
5917
+ function fi({ label: e = "Assistant", icon: t, children: n, className: r = "" }) {
5541
5918
  return /* @__PURE__ */ g("div", {
5542
5919
  className: `${$.assistant} ${r}`,
5543
5920
  children: [/* @__PURE__ */ g("div", {
@@ -5553,13 +5930,13 @@ function Qr({ label: e = "Assistant", icon: t, children: n, className: r = "" })
5553
5930
  });
5554
5931
  }
5555
5932
  // src/components/Chat/Composer.tsx
5556
- var $r = 18, ei = e.forwardRef(function({ value: e, onChange: t, onSend: n, onStop: r, streaming: a = !1, placeholder: s = "Ask a question…", disabled: l = !1, autoFocus: u = !1, icon: f, maxLines: p = 6, maxLength: m, className: v = "", "aria-label": b = "Message" }, x) {
5933
+ var pi = 18, mi = e.forwardRef(function({ value: e, onChange: t, onSend: n, onStop: r, streaming: a = !1, placeholder: s = "Ask a question…", disabled: l = !1, autoFocus: u = !1, icon: f, maxLines: p = 6, maxLength: m, className: v = "", "aria-label": b = "Message" }, x) {
5557
5934
  let S = d(null);
5558
5935
  c(x, () => ({ focus: () => S.current?.focus() }), []), o(() => {
5559
5936
  let e = S.current;
5560
5937
  if (!e) return;
5561
5938
  e.style.height = "auto";
5562
- let t = $r * p + 12;
5939
+ let t = pi * p + 12;
5563
5940
  e.style.height = `${Math.min(e.scrollHeight, t)}px`;
5564
5941
  }, [e, p]);
5565
5942
  let C = m !== void 0 && m > 0 && e.length > m, w = !a && !l && !C && e.trim().length > 0, T = i(() => {
@@ -5626,7 +6003,7 @@ var $r = 18, ei = e.forwardRef(function({ value: e, onChange: t, onSend: n, onSt
5626
6003
  });
5627
6004
  });
5628
6005
  // src/components/Chat/Citation.tsx
5629
- function ti({ n: e, href: t, onClick: n, title: r, className: i = "" }) {
6006
+ function hi({ n: e, href: t, onClick: n, title: r, className: i = "" }) {
5630
6007
  let a = `${$.ref} ${i}`;
5631
6008
  return t ? /* @__PURE__ */ h("a", {
5632
6009
  href: t,
@@ -5644,7 +6021,7 @@ function ti({ n: e, href: t, onClick: n, title: r, className: i = "" }) {
5644
6021
  children: e
5645
6022
  });
5646
6023
  }
5647
- function ni({ items: e, label: t = "Sources", className: n = "" }) {
6024
+ function gi({ items: e, label: t = "Sources", className: n = "" }) {
5648
6025
  return e.length === 0 ? null : /* @__PURE__ */ g("div", {
5649
6026
  className: `${$.stack} ${n}`,
5650
6027
  children: [/* @__PURE__ */ h("div", {
@@ -5653,7 +6030,7 @@ function ni({ items: e, label: t = "Sources", className: n = "" }) {
5653
6030
  }), /* @__PURE__ */ h("div", {
5654
6031
  className: $.wrap,
5655
6032
  children: e.map((e) => {
5656
- let t = /* @__PURE__ */ g(Ln, {
6033
+ let t = /* @__PURE__ */ g(Yn, {
5657
6034
  icon: e.icon,
5658
6035
  children: [
5659
6036
  /* @__PURE__ */ h("span", {
@@ -5680,7 +6057,7 @@ function ni({ items: e, label: t = "Sources", className: n = "" }) {
5680
6057
  });
5681
6058
  }
5682
6059
  // src/components/Chat/StreamStatus.tsx
5683
- function ri({ children: e, spinner: t, className: n = "" }) {
6060
+ function _i({ children: e, spinner: t, className: n = "" }) {
5684
6061
  return /* @__PURE__ */ g("div", {
5685
6062
  className: `${$.status} ${n}`,
5686
6063
  role: "status",
@@ -5694,7 +6071,7 @@ function ri({ children: e, spinner: t, className: n = "" }) {
5694
6071
  });
5695
6072
  }
5696
6073
  // src/components/Chat/Suggestions.tsx
5697
- function ii({ items: e, onPick: t, label: n = "Try asking", className: r = "" }) {
6074
+ function vi({ items: e, onPick: t, label: n = "Try asking", className: r = "" }) {
5698
6075
  return /* @__PURE__ */ g("div", {
5699
6076
  className: `${$.suggestions} ${r}`,
5700
6077
  children: [/* @__PURE__ */ h("div", {
@@ -5712,7 +6089,7 @@ function ii({ items: e, onPick: t, label: n = "Try asking", className: r = "" })
5712
6089
  });
5713
6090
  }
5714
6091
  // src/components/Chat/AnswerActions.tsx
5715
- function ai({ onCopy: e, copied: t = !1, onFollowUp: n, followUpLabel: r = "Ask a follow-up", className: i = "" }) {
6092
+ function yi({ onCopy: e, copied: t = !1, onFollowUp: n, followUpLabel: r = "Ask a follow-up", className: i = "" }) {
5716
6093
  return /* @__PURE__ */ g("div", {
5717
6094
  className: `${$.actions} ${i}`,
5718
6095
  children: [
@@ -5735,7 +6112,7 @@ function ai({ onCopy: e, copied: t = !1, onFollowUp: n, followUpLabel: r = "Ask
5735
6112
  });
5736
6113
  }
5737
6114
  // src/components/Chat/ToolStep.tsx
5738
- function oi({ children: t, state: n = "done", meta: r, icon: i, detail: a, defaultOpen: o = !1, className: c = "" }) {
6115
+ function bi({ children: t, state: n = "done", meta: r, icon: i, detail: a, defaultOpen: o = !1, className: c = "" }) {
5739
6116
  let [l, u] = f(o), d = s(), p = n === "running" ? /* @__PURE__ */ h(ne, { size: 14 }) : n === "error" ? /* @__PURE__ */ h(F, {
5740
6117
  size: 14,
5741
6118
  color: "currentColor"
@@ -5787,7 +6164,7 @@ function oi({ children: t, state: n = "done", meta: r, icon: i, detail: a, defau
5787
6164
  })]
5788
6165
  });
5789
6166
  }
5790
- function si({ children: e, summary: t, defaultOpen: n = !1, "aria-label": r = "Steps", className: i = "" }) {
6167
+ function xi({ children: e, summary: t, defaultOpen: n = !1, "aria-label": r = "Steps", className: i = "" }) {
5791
6168
  let [a, o] = f(n), c = s();
5792
6169
  return /* @__PURE__ */ h("div", {
5793
6170
  className: `${$.toolSteps} ${i}`,
@@ -5815,7 +6192,7 @@ function si({ children: e, summary: t, defaultOpen: n = !1, "aria-label": r = "S
5815
6192
  });
5816
6193
  }
5817
6194
  // src/components/Chat/Reasoning.tsx
5818
- function ci({ children: e, streaming: t = !1, seconds: n, className: r = "" }) {
6195
+ function Si({ children: e, streaming: t = !1, seconds: n, className: r = "" }) {
5819
6196
  let [i, a] = f(null), o = s(), c = i ?? t, l = t ? "Thinking…" : n == null ? "Thought" : n < 1 ? "Thought for a moment" : `Thought for ${n}s`, u = h(c ? x : C, {
5820
6197
  size: 14,
5821
6198
  color: "currentColor"
@@ -5849,20 +6226,20 @@ function ci({ children: e, streaming: t = !1, seconds: n, className: r = "" }) {
5849
6226
  })]
5850
6227
  });
5851
6228
  }
5852
- var li = {
6229
+ var Ci = {
5853
6230
  truncate: "_truncate_za4sm_1",
5854
6231
  start: "_start_za4sm_13"
5855
6232
  };
5856
6233
  // src/components/Truncate/Truncate.tsx
5857
- function ui({ children: e, side: t = "end", title: n, className: r = "" }) {
6234
+ function wi({ children: e, side: t = "end", title: n, className: r = "" }) {
5858
6235
  let i = n ?? (typeof e == "string" ? e : void 0);
5859
6236
  return /* @__PURE__ */ h("span", {
5860
- className: `${li.truncate} ${t === "start" ? li.start : ""} ${r}`,
6237
+ className: `${Ci.truncate} ${t === "start" ? Ci.start : ""} ${r}`,
5861
6238
  title: i,
5862
6239
  children: t === "start" ? /* @__PURE__ */ h("bdi", { children: e }) : e
5863
6240
  });
5864
6241
  }
5865
- var di = {
6242
+ var Ti = {
5866
6243
  disclosure: "_disclosure_94bgy_1",
5867
6244
  trigger: "_trigger_94bgy_7",
5868
6245
  summary: "_summary_94bgy_31",
@@ -5870,24 +6247,24 @@ var di = {
5870
6247
  content: "_content_94bgy_43"
5871
6248
  };
5872
6249
  // src/components/Disclosure/Disclosure.tsx
5873
- function fi({ summary: t, children: n, open: r, defaultOpen: i = !1, onOpenChange: a, className: o = "" }) {
6250
+ function Ei({ summary: t, children: n, open: r, defaultOpen: i = !1, onOpenChange: a, className: o = "" }) {
5874
6251
  let [s, c] = e.useState(i), l = r ?? s, u = e.useId();
5875
6252
  return /* @__PURE__ */ g("div", {
5876
- className: `${di.disclosure} ${o}`,
6253
+ className: `${Ti.disclosure} ${o}`,
5877
6254
  "data-state": l ? "open" : "closed",
5878
6255
  children: [/* @__PURE__ */ g("button", {
5879
6256
  type: "button",
5880
- className: di.trigger,
6257
+ className: Ti.trigger,
5881
6258
  "aria-expanded": l,
5882
6259
  "aria-controls": l ? u : void 0,
5883
6260
  onClick: () => {
5884
6261
  r === void 0 && c(!l), a?.(!l);
5885
6262
  },
5886
6263
  children: [/* @__PURE__ */ h("span", {
5887
- className: di.summary,
6264
+ className: Ti.summary,
5888
6265
  children: t
5889
6266
  }), /* @__PURE__ */ h("span", {
5890
- className: di.chevron,
6267
+ className: Ti.chevron,
5891
6268
  "aria-hidden": "true",
5892
6269
  children: h(l ? x : C, {
5893
6270
  size: 14,
@@ -5896,18 +6273,18 @@ function fi({ summary: t, children: n, open: r, defaultOpen: i = !1, onOpenChang
5896
6273
  })]
5897
6274
  }), l && /* @__PURE__ */ h("div", {
5898
6275
  id: u,
5899
- className: di.content,
6276
+ className: Ti.content,
5900
6277
  children: n
5901
6278
  })]
5902
6279
  });
5903
6280
  }
5904
- var pi = {
6281
+ var Di = {
5905
6282
  field: "_field_5juos_1",
5906
6283
  code: "_code_5juos_16",
5907
6284
  status: "_status_5juos_31"
5908
6285
  };
5909
6286
  // src/components/CodeCopy/CodeCopy.tsx
5910
- async function mi(e) {
6287
+ async function Oi(e) {
5911
6288
  if (navigator.clipboard && window.isSecureContext) try {
5912
6289
  return await navigator.clipboard.writeText(e), !0;
5913
6290
  } catch {}
@@ -5921,13 +6298,13 @@ async function mi(e) {
5921
6298
  t.remove();
5922
6299
  }
5923
6300
  }
5924
- function hi({ code: e, className: t, onCopy: n }) {
6301
+ function ki({ code: e, className: t, onCopy: n }) {
5925
6302
  let [r, i] = f(!1), a = d(void 0);
5926
6303
  return o(() => () => clearTimeout(a.current), []), /* @__PURE__ */ g("div", {
5927
- className: [pi.field, t].filter(Boolean).join(" "),
6304
+ className: [Di.field, t].filter(Boolean).join(" "),
5928
6305
  children: [
5929
6306
  /* @__PURE__ */ h("code", {
5930
- className: pi.code,
6307
+ className: Di.code,
5931
6308
  children: e
5932
6309
  }),
5933
6310
  /* @__PURE__ */ h(W, {
@@ -5935,17 +6312,17 @@ function hi({ code: e, className: t, onCopy: n }) {
5935
6312
  variant: "ghost",
5936
6313
  iconLeft: h(r ? b : w, {}),
5937
6314
  onClick: async () => {
5938
- await mi(e) && (i(!0), n?.(), clearTimeout(a.current), a.current = setTimeout(() => i(!1), 2e3));
6315
+ await Oi(e) && (i(!0), n?.(), clearTimeout(a.current), a.current = setTimeout(() => i(!1), 2e3));
5939
6316
  },
5940
6317
  "aria-label": r ? "Copied" : "Copy",
5941
6318
  title: r ? "Copied" : "Copy"
5942
6319
  }),
5943
6320
  /* @__PURE__ */ h("span", {
5944
- className: pi.status,
6321
+ className: Di.status,
5945
6322
  role: "status",
5946
6323
  children: r ? "Copied" : ""
5947
6324
  })
5948
6325
  ]
5949
6326
  });
5950
6327
  }
5951
- export { Vn as Alert, Un as AlertDescription, Hn as AlertTitle, ai as AnswerActions, Qr as AssistantMessage, lt as BarMeter, De as BarSlider, le as Base, Qe as Breadcrumbs, W as Button, ar as Chart, Xr as ChatPanel, se as Checkbox, Ln as Chip, ni as CitationList, ti as CitationRef, hi as CodeCopy, ln as Combobox, zt as CommandPalette, ei as Composer, br as DatePicker, fi as Disclosure, dn as EmptyState, de as FilterPanelBase, Ft as GroupedBars, vt as Heatmap, Ir as Icicle, ge as InputField, Lt as Kbd, pr as Modal, Vr as NavigationMenu, Kr as NavigationMenuContent, Ur as NavigationMenuItem, qr as NavigationMenuLink, Hr as NavigationMenuList, Gr as NavigationMenuTrigger, Fe as Popover, Ie as PopoverDivider, ie as PortalContainerProvider, et as ProgressBar, kt as RadarChart, Ct as RadialChart, ve as RadioButton, ci as Reasoning, vn as Resizable, Tr as STAT_ICON_SIZE, Gn as SaveBar, Mr as ScoreMeter, Ae as ScrubSlider, me as SearchField, Ye as SegmentedControl, Me as Select, pn as Sheet, kr as ShimmerText, on as Sidebar, Cr as Skeleton, Se as Slider, lr as Sparkline, ne as Spinner, Er as Stat, Dr as StatGroup, ri as StreamStatus, ii as Suggestions, Re as Table, Ve as TableCell, ze as TableHeader, Ue as TableIcon, Be as TableRow, He as TableValue, qe as Tabs, Vt as TagsInput, dr as Textarea, Zt as Toaster, be as ToggleSwitch, oi as ToolStep, si as ToolSteps, $t as Tooltip, Nn as TreeCanvas, ui as Truncate, Zr as UserMessage, mt as Waffle, pt as allocateCells, xt as calendarCells, Yr as defaultChatHints, _t as levelOf, U as spinnerNames, Jt as toast, ae as usePortalContainer };
6328
+ export { $n as Alert, tr as AlertDescription, er as AlertTitle, yi as AnswerActions, fi as AssistantMessage, xt as BarMeter, De as BarSlider, le as Base, ut as Breadcrumbs, W as Button, _r as Chart, ui as ChatPanel, se as Checkbox, Yn as Chip, gi as CitationList, hi as CitationRef, ki as CodeCopy, xn as Combobox, Zt as CommandPalette, mi as Composer, Mr as DatePicker, Ei as Disclosure, Cn as EmptyState, de as FilterPanelBase, qt as GroupedBars, At as Heatmap, Le as HistogramRange, Xr as Icicle, ge as InputField, Yt as Kbd, Tr as Modal, ti as NavigationMenu, oi as NavigationMenuContent, ri as NavigationMenuItem, si as NavigationMenuLink, ni as NavigationMenuList, ai as NavigationMenuTrigger, He as Popover, Ue as PopoverDivider, ie as PortalContainerProvider, ft as ProgressBar, Vt as RadarChart, Ft as RadialChart, ve as RadioButton, Si as Reasoning, An as Resizable, Lr as STAT_ICON_SIZE, rr as SaveBar, Wr as ScoreMeter, Ae as ScrubSlider, me as SearchField, st as SegmentedControl, ze as Select, Tn as Sheet, Vr as ShimmerText, vn as Sidebar, Fr as Skeleton, Se as Slider, Ne as SliderField, xr as Sparkline, ne as Spinner, Rr as Stat, zr as StatGroup, Kr as StepProgress, _i as StreamStatus, vi as Suggestions, Xe as Table, $e as TableCell, Ze as TableHeader, tt as TableIcon, Qe as TableRow, et as TableValue, at as Tabs, $t as TagsInput, Cr as Textarea, un as Toaster, be as ToggleSwitch, bi as ToolStep, xi as ToolSteps, fn as Tooltip, Gn as TreeCanvas, wi as Truncate, di as UserMessage, Et as Waffle, Tt as allocateCells, Ie as barsOf, Nt as calendarCells, li as defaultChatHints, kt as levelOf, U as spinnerNames, sn as toast, ae as usePortalContainer };