@inkorange/space-ui 1.9.0 → 1.10.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.js CHANGED
@@ -1,7 +1,7 @@
1
1
  "use client";
2
- import { forwardRef as ae, createElement as ot, isValidElement as ze, cloneElement as Xe, useId as se, useMemo as _e, Children as pt, useRef as F, useState as Q, useCallback as pe, useLayoutEffect as we, useEffect as te, createContext as Re, useContext as Ee } from "react";
3
- import { jsx as n, jsxs as L, Fragment as he } from "react/jsx-runtime";
4
- const Ie = {
2
+ import { forwardRef as ae, createElement as rt, isValidElement as Re, cloneElement as Ye, useId as se, useMemo as _e, Children as _t, useRef as P, useState as Q, useCallback as pe, useLayoutEffect as ye, useEffect as te, createContext as Ee, useContext as Ie } from "react";
3
+ import { jsx as n, jsxs as R, Fragment as he } from "react/jsx-runtime";
4
+ const He = {
5
5
  0: "0",
6
6
  1: "var(--spacing-xs)",
7
7
  2: "var(--spacing-sm)",
@@ -12,238 +12,238 @@ const Ie = {
12
12
  };
13
13
  function ve({ m: e, mt: t, mb: o, p: r, pb: a }, l) {
14
14
  const s = {
15
- ...e !== void 0 && { margin: Ie[e] },
16
- ...t !== void 0 && { marginTop: Ie[t] },
17
- ...o !== void 0 && { marginBottom: Ie[o] },
18
- ...r !== void 0 && { padding: Ie[r] },
19
- ...a !== void 0 && { paddingBottom: Ie[a] },
15
+ ...e !== void 0 && { margin: He[e] },
16
+ ...t !== void 0 && { marginTop: He[t] },
17
+ ...o !== void 0 && { marginBottom: He[o] },
18
+ ...r !== void 0 && { padding: He[r] },
19
+ ...a !== void 0 && { paddingBottom: He[a] },
20
20
  ...l
21
21
  };
22
22
  return Object.keys(s).length > 0 ? s : void 0;
23
23
  }
24
- function z(...e) {
24
+ function E(...e) {
25
25
  return e.filter(Boolean).join(" ");
26
26
  }
27
- const Ht = "_text_rzzow_1", St = "_size1_rzzow_5", qt = "_size2_rzzow_11", Tt = "_size3_rzzow_16", At = "_size4_rzzow_21", Ot = "_size5_rzzow_27", Zt = "_size6_rzzow_33", Bt = "_medium_rzzow_39", Vt = "_bold_rzzow_43", Wt = "_colorMuted_rzzow_47", Pt = "_colorDanger_rzzow_51", Ft = "_colorSuccess_rzzow_55", jt = "_colorWarning_rzzow_59", We = {
28
- text: Ht,
29
- size1: St,
27
+ const St = "_text_rzzow_1", Tt = "_size1_rzzow_5", qt = "_size2_rzzow_11", At = "_size3_rzzow_16", Ot = "_size4_rzzow_21", Bt = "_size5_rzzow_27", Zt = "_size6_rzzow_33", Vt = "_medium_rzzow_39", Wt = "_bold_rzzow_43", Pt = "_colorMuted_rzzow_47", Ft = "_colorDanger_rzzow_51", jt = "_colorSuccess_rzzow_55", Gt = "_colorWarning_rzzow_59", Pe = {
28
+ text: St,
29
+ size1: Tt,
30
30
  size2: qt,
31
- size3: Tt,
32
- size4: At,
33
- size5: Ot,
31
+ size3: At,
32
+ size4: Ot,
33
+ size5: Bt,
34
34
  size6: Zt,
35
- medium: Bt,
36
- bold: Vt,
37
- colorMuted: Wt,
38
- colorDanger: Pt,
39
- colorSuccess: Ft,
40
- colorWarning: jt
41
- }, Gt = ae(function({ as: t = "span", size: o, weight: r, color: a, className: l, style: s, m: c, mt: h, mb: m, p: i, pb: g, ...$ }, w) {
42
- return ot(t, {
35
+ medium: Vt,
36
+ bold: Wt,
37
+ colorMuted: Pt,
38
+ colorDanger: Ft,
39
+ colorSuccess: jt,
40
+ colorWarning: Gt
41
+ }, Ut = ae(function({ as: t = "span", size: o, weight: r, color: a, className: l, style: s, m: c, mt: h, mb: m, p: d, pb: C, ...$ }, y) {
42
+ return rt(t, {
43
43
  ...$,
44
- ref: w,
45
- className: z(
46
- We.text,
47
- o && We[`size${o}`],
48
- r && We[r],
49
- a && We[`color${a[0].toUpperCase()}${a.slice(1)}`],
44
+ ref: y,
45
+ className: E(
46
+ Pe.text,
47
+ o && Pe[`size${o}`],
48
+ r && Pe[r],
49
+ a && Pe[`color${a[0].toUpperCase()}${a.slice(1)}`],
50
50
  l
51
51
  ),
52
- style: ve({ m: c, mt: h, mb: m, p: i, pb: g }, s)
52
+ style: ve({ m: c, mt: h, mb: m, p: d, pb: C }, s)
53
53
  });
54
- }), Ut = "_heading_15fm0_1", Kt = "_size4_15fm0_7", Xt = "_size5_15fm0_13", Yt = "_size6_15fm0_19", Qt = "_size7_15fm0_25", Jt = "_size8_15fm0_31", en = "_size9_15fm0_37", tn = "_colorMuted_15fm0_43", nn = "_colorDanger_15fm0_47", on = "_alignCenter_15fm0_51", He = {
55
- heading: Ut,
56
- size4: Kt,
57
- size5: Xt,
58
- size6: Yt,
59
- size7: Qt,
60
- size8: Jt,
61
- size9: en,
62
- colorMuted: tn,
63
- colorDanger: nn,
64
- alignCenter: on
65
- }, rn = ae(function({ as: t = "h2", size: o, color: r, align: a, className: l, style: s, m: c, mt: h, mb: m, p: i, pb: g, ...$ }, w) {
66
- return ot(t, {
54
+ }), Kt = "_heading_15fm0_1", Xt = "_size4_15fm0_7", Yt = "_size5_15fm0_13", Qt = "_size6_15fm0_19", Jt = "_size7_15fm0_25", en = "_size8_15fm0_31", tn = "_size9_15fm0_37", nn = "_colorMuted_15fm0_43", on = "_colorDanger_15fm0_47", rn = "_alignCenter_15fm0_51", Se = {
55
+ heading: Kt,
56
+ size4: Xt,
57
+ size5: Yt,
58
+ size6: Qt,
59
+ size7: Jt,
60
+ size8: en,
61
+ size9: tn,
62
+ colorMuted: nn,
63
+ colorDanger: on,
64
+ alignCenter: rn
65
+ }, sn = ae(function({ as: t = "h2", size: o, color: r, align: a, className: l, style: s, m: c, mt: h, mb: m, p: d, pb: C, ...$ }, y) {
66
+ return rt(t, {
67
67
  ...$,
68
- ref: w,
69
- className: z(
70
- He.heading,
71
- o && He[`size${o}`],
72
- r === "muted" && He.colorMuted,
73
- r === "danger" && He.colorDanger,
74
- a === "center" && He.alignCenter,
68
+ ref: y,
69
+ className: E(
70
+ Se.heading,
71
+ o && Se[`size${o}`],
72
+ r === "muted" && Se.colorMuted,
73
+ r === "danger" && Se.colorDanger,
74
+ a === "center" && Se.alignCenter,
75
75
  l
76
76
  ),
77
- style: ve({ m: c, mt: h, mb: m, p: i, pb: g }, s)
77
+ style: ve({ m: c, mt: h, mb: m, p: d, pb: C }, s)
78
78
  });
79
- }), sn = "_link_1o4sa_1", an = "_size1_1o4sa_10", ln = "_size2_1o4sa_16", cn = "_size3_1o4sa_21", at = {
80
- link: sn,
81
- size1: an,
82
- size2: ln,
83
- size3: cn
84
- }, al = ae(function({ asChild: t, size: o, className: r, style: a, m: l, mt: s, mb: c, p: h, pb: m, children: i, ...g }, $) {
85
- const w = z(at.link, o && at[`size${o}`], r), _ = ve({ m: l, mt: s, mb: c, p: h, pb: m }, a);
86
- if (t && ze(i)) {
87
- const b = i;
88
- return Xe(b, {
89
- ...g,
90
- className: z(w, b.props.className),
91
- style: { ..._, ...b.props.style }
79
+ }), an = "_link_1o4sa_1", ln = "_size1_1o4sa_10", cn = "_size2_1o4sa_16", dn = "_size3_1o4sa_21", lt = {
80
+ link: an,
81
+ size1: ln,
82
+ size2: cn,
83
+ size3: dn
84
+ }, ll = ae(function({ asChild: t, size: o, className: r, style: a, m: l, mt: s, mb: c, p: h, pb: m, children: d, ...C }, $) {
85
+ const y = E(lt.link, o && lt[`size${o}`], r), u = ve({ m: l, mt: s, mb: c, p: h, pb: m }, a);
86
+ if (t && Re(d)) {
87
+ const b = d;
88
+ return Ye(b, {
89
+ ...C,
90
+ className: E(y, b.props.className),
91
+ style: { ...u, ...b.props.style }
92
92
  });
93
93
  }
94
- return /* @__PURE__ */ n("a", { ...g, ref: $, className: w, style: _, children: i });
95
- }), dn = "_flex_v4ziu_1", un = "_gap1_v4ziu_5", fn = "_gap2_v4ziu_9", pn = "_gap3_v4ziu_13", _n = "_gap4_v4ziu_17", hn = "_gap5_v4ziu_21", mn = "_gap6_v4ziu_25", gn = "_directionRow_v4ziu_29", Cn = "_directionColumn_v4ziu_33", vn = "_alignStart_v4ziu_37", bn = "_alignCenter_v4ziu_41", $n = "_alignEnd_v4ziu_45", wn = "_alignBaseline_v4ziu_49", yn = "_alignStretch_v4ziu_53", xn = "_justifyStart_v4ziu_57", Nn = "_justifyCenter_v4ziu_61", Ln = "_justifyEnd_v4ziu_65", Mn = "_justifyBetween_v4ziu_69", kn = "_wrapWrap_v4ziu_73", zn = "_wrapNowrap_v4ziu_77", ye = {
96
- flex: dn,
97
- gap1: un,
98
- gap2: fn,
99
- gap3: pn,
100
- gap4: _n,
101
- gap5: hn,
102
- gap6: mn,
103
- directionRow: gn,
104
- directionColumn: Cn,
105
- alignStart: vn,
106
- alignCenter: bn,
94
+ return /* @__PURE__ */ n("a", { ...C, ref: $, className: y, style: u, children: d });
95
+ }), un = "_flex_v4ziu_1", fn = "_gap1_v4ziu_5", pn = "_gap2_v4ziu_9", _n = "_gap3_v4ziu_13", hn = "_gap4_v4ziu_17", mn = "_gap5_v4ziu_21", gn = "_gap6_v4ziu_25", Cn = "_directionRow_v4ziu_29", vn = "_directionColumn_v4ziu_33", bn = "_alignStart_v4ziu_37", wn = "_alignCenter_v4ziu_41", $n = "_alignEnd_v4ziu_45", yn = "_alignBaseline_v4ziu_49", xn = "_alignStretch_v4ziu_53", Nn = "_justifyStart_v4ziu_57", Mn = "_justifyCenter_v4ziu_61", Ln = "_justifyEnd_v4ziu_65", kn = "_justifyBetween_v4ziu_69", zn = "_wrapWrap_v4ziu_73", Rn = "_wrapNowrap_v4ziu_77", xe = {
96
+ flex: un,
97
+ gap1: fn,
98
+ gap2: pn,
99
+ gap3: _n,
100
+ gap4: hn,
101
+ gap5: mn,
102
+ gap6: gn,
103
+ directionRow: Cn,
104
+ directionColumn: vn,
105
+ alignStart: bn,
106
+ alignCenter: wn,
107
107
  alignEnd: $n,
108
- alignBaseline: wn,
109
- alignStretch: yn,
110
- justifyStart: xn,
111
- justifyCenter: Nn,
108
+ alignBaseline: yn,
109
+ alignStretch: xn,
110
+ justifyStart: Nn,
111
+ justifyCenter: Mn,
112
112
  justifyEnd: Ln,
113
- justifyBetween: Mn,
114
- wrapWrap: kn,
115
- wrapNowrap: zn
116
- }, Pe = (e) => e[0].toUpperCase() + e.slice(1), ll = ae(function({ asChild: t, gap: o, direction: r, align: a, justify: l, wrap: s, className: c, style: h, m, mt: i, mb: g, p: $, pb: w, children: _, ...b }, v) {
117
- const k = z(
118
- ye.flex,
119
- o && ye[`gap${o}`],
120
- r && ye[`direction${Pe(r)}`],
121
- a && ye[`align${Pe(a)}`],
122
- l && ye[`justify${Pe(l)}`],
123
- s && ye[`wrap${Pe(s)}`],
113
+ justifyBetween: kn,
114
+ wrapWrap: zn,
115
+ wrapNowrap: Rn
116
+ }, Fe = (e) => e[0].toUpperCase() + e.slice(1), cl = ae(function({ asChild: t, gap: o, direction: r, align: a, justify: l, wrap: s, className: c, style: h, m, mt: d, mb: C, p: $, pb: y, children: u, ...b }, g) {
117
+ const N = E(
118
+ xe.flex,
119
+ o && xe[`gap${o}`],
120
+ r && xe[`direction${Fe(r)}`],
121
+ a && xe[`align${Fe(a)}`],
122
+ l && xe[`justify${Fe(l)}`],
123
+ s && xe[`wrap${Fe(s)}`],
124
124
  c
125
- ), I = ve({ m, mt: i, mb: g, p: $, pb: w }, h);
126
- if (t && ze(_)) {
127
- const H = _;
128
- return Xe(H, {
125
+ ), I = ve({ m, mt: d, mb: C, p: $, pb: y }, h);
126
+ if (t && Re(u)) {
127
+ const T = u;
128
+ return Ye(T, {
129
129
  ...b,
130
- className: z(k, H.props.className),
131
- style: { ...I, ...H.props.style }
130
+ className: E(N, T.props.className),
131
+ style: { ...I, ...T.props.style }
132
132
  });
133
133
  }
134
- return /* @__PURE__ */ n("div", { ...b, ref: v, className: k, style: I, children: _ });
135
- }), cl = ae(function({ style: t, m: o, mt: r, mb: a, p: l, pb: s, ...c }, h) {
134
+ return /* @__PURE__ */ n("div", { ...b, ref: g, className: N, style: I, children: u });
135
+ }), il = ae(function({ style: t, m: o, mt: r, mb: a, p: l, pb: s, ...c }, h) {
136
136
  return /* @__PURE__ */ n("div", { ...c, ref: h, style: ve({ m: o, mt: r, mb: a, p: l, pb: s }, t) });
137
- }), Rn = "_grid_erpqq_1", En = "_cols1_erpqq_5", Dn = "_cols2_erpqq_9", In = "_cols3_erpqq_13", Hn = "_smCols2_erpqq_18", Sn = "_smCols3_erpqq_21", qn = "_mdCols2_erpqq_26", Tn = "_mdCols3_erpqq_29", An = "_gap1_erpqq_33", On = "_gap2_erpqq_37", Zn = "_gap3_erpqq_41", Bn = "_gap4_erpqq_45", Vn = "_gap5_erpqq_49", Wn = "_gap6_erpqq_53", xe = {
138
- grid: Rn,
139
- cols1: En,
137
+ }), En = "_grid_erpqq_1", In = "_cols1_erpqq_5", Dn = "_cols2_erpqq_9", Hn = "_cols3_erpqq_13", Sn = "_smCols2_erpqq_18", Tn = "_smCols3_erpqq_21", qn = "_mdCols2_erpqq_26", An = "_mdCols3_erpqq_29", On = "_gap1_erpqq_33", Bn = "_gap2_erpqq_37", Zn = "_gap3_erpqq_41", Vn = "_gap4_erpqq_45", Wn = "_gap5_erpqq_49", Pn = "_gap6_erpqq_53", Ne = {
138
+ grid: En,
139
+ cols1: In,
140
140
  cols2: Dn,
141
- cols3: In,
142
- smCols2: Hn,
143
- smCols3: Sn,
141
+ cols3: Hn,
142
+ smCols2: Sn,
143
+ smCols3: Tn,
144
144
  mdCols2: qn,
145
- mdCols3: Tn,
146
- gap1: An,
147
- gap2: On,
145
+ mdCols3: An,
146
+ gap1: On,
147
+ gap2: Bn,
148
148
  gap3: Zn,
149
- gap4: Bn,
150
- gap5: Vn,
151
- gap6: Wn
152
- }, il = ae(function({ columns: t, gap: o, className: r, style: a, m: l, mt: s, mb: c, p: h, pb: m, ...i }, g) {
153
- const $ = typeof t == "string" ? [xe[`cols${t}`]] : t ? [
154
- t.initial && xe[`cols${t.initial}`],
155
- t.sm && xe[`smCols${t.sm}`],
156
- t.md && xe[`mdCols${t.md}`]
149
+ gap4: Vn,
150
+ gap5: Wn,
151
+ gap6: Pn
152
+ }, dl = ae(function({ columns: t, gap: o, className: r, style: a, m: l, mt: s, mb: c, p: h, pb: m, ...d }, C) {
153
+ const $ = typeof t == "string" ? [Ne[`cols${t}`]] : t ? [
154
+ t.initial && Ne[`cols${t.initial}`],
155
+ t.sm && Ne[`smCols${t.sm}`],
156
+ t.md && Ne[`mdCols${t.md}`]
157
157
  ] : [];
158
158
  return /* @__PURE__ */ n(
159
159
  "div",
160
160
  {
161
- ...i,
162
- ref: g,
163
- className: z(xe.grid, ...$, o && xe[`gap${o}`], r),
161
+ ...d,
162
+ ref: C,
163
+ className: E(Ne.grid, ...$, o && Ne[`gap${o}`], r),
164
164
  style: ve({ m: l, mt: s, mb: c, p: h, pb: m }, a)
165
165
  }
166
166
  );
167
- }), Pn = "_badge_3q9da_2", Fn = "_size1_3q9da_10", jn = "_size2_3q9da_17", Gn = "_colorMuted_3q9da_24", Un = "_colorPrimary_3q9da_29", Kn = "_colorSuccess_3q9da_34", Xn = "_colorDanger_3q9da_39", Yn = "_colorWarning_3q9da_44", Qn = "_colorCyan_3q9da_49", Jn = "_colorPurple_3q9da_54", eo = "_colorOrange_3q9da_59", to = "_colorAccent_3q9da_64", no = "_colorYellow_3q9da_69", oo = "_solid_3q9da_77", ro = "_wrap_3q9da_85", Se = {
168
- badge: Pn,
169
- size1: Fn,
170
- size2: jn,
171
- colorMuted: Gn,
172
- colorPrimary: Un,
173
- colorSuccess: Kn,
174
- colorDanger: Xn,
175
- colorWarning: Yn,
176
- colorCyan: Qn,
177
- colorPurple: Jn,
178
- colorOrange: eo,
179
- colorAccent: to,
180
- colorYellow: no,
181
- solid: oo,
182
- wrap: ro
183
- }, so = (e) => e[0].toUpperCase() + e.slice(1), dl = ae(function({ color: t = "primary", variant: o = "soft", size: r = "1", wrap: a, className: l, style: s, m: c, mt: h, mb: m, p: i, pb: g, ...$ }, w) {
167
+ }), Fn = "_badge_3q9da_2", jn = "_size1_3q9da_10", Gn = "_size2_3q9da_17", Un = "_colorMuted_3q9da_24", Kn = "_colorPrimary_3q9da_29", Xn = "_colorSuccess_3q9da_34", Yn = "_colorDanger_3q9da_39", Qn = "_colorWarning_3q9da_44", Jn = "_colorCyan_3q9da_49", eo = "_colorPurple_3q9da_54", to = "_colorOrange_3q9da_59", no = "_colorAccent_3q9da_64", oo = "_colorYellow_3q9da_69", ro = "_solid_3q9da_77", so = "_wrap_3q9da_85", Te = {
168
+ badge: Fn,
169
+ size1: jn,
170
+ size2: Gn,
171
+ colorMuted: Un,
172
+ colorPrimary: Kn,
173
+ colorSuccess: Xn,
174
+ colorDanger: Yn,
175
+ colorWarning: Qn,
176
+ colorCyan: Jn,
177
+ colorPurple: eo,
178
+ colorOrange: to,
179
+ colorAccent: no,
180
+ colorYellow: oo,
181
+ solid: ro,
182
+ wrap: so
183
+ }, ao = (e) => e[0].toUpperCase() + e.slice(1), ul = ae(function({ color: t = "primary", variant: o = "soft", size: r = "1", wrap: a, className: l, style: s, m: c, mt: h, mb: m, p: d, pb: C, ...$ }, y) {
184
184
  return /* @__PURE__ */ n(
185
185
  "span",
186
186
  {
187
187
  ...$,
188
- ref: w,
189
- className: z(
190
- Se.badge,
191
- Se[`color${so(t)}`],
192
- o === "solid" && Se.solid,
193
- Se[`size${r}`],
194
- a && Se.wrap,
188
+ ref: y,
189
+ className: E(
190
+ Te.badge,
191
+ Te[`color${ao(t)}`],
192
+ o === "solid" && Te.solid,
193
+ Te[`size${r}`],
194
+ a && Te.wrap,
195
195
  l
196
196
  ),
197
- style: ve({ m: c, mt: h, mb: m, p: i, pb: g }, s)
197
+ style: ve({ m: c, mt: h, mb: m, p: d, pb: C }, s)
198
198
  }
199
199
  );
200
- }), ao = "_separator_vao01_1", lo = "_full_vao01_7", lt = {
201
- separator: ao,
202
- full: lo
203
- }, ul = ae(function({ size: t = "4", className: o, ...r }, a) {
200
+ }), lo = "_separator_vao01_1", co = "_full_vao01_7", ct = {
201
+ separator: lo,
202
+ full: co
203
+ }, fl = ae(function({ size: t = "4", className: o, ...r }, a) {
204
204
  return /* @__PURE__ */ n(
205
205
  "span",
206
206
  {
207
207
  ...r,
208
208
  ref: a,
209
209
  role: "separator",
210
- className: z(lt.separator, t === "4" && lt.full, o)
210
+ className: E(ct.separator, t === "4" && ct.full, o)
211
211
  }
212
212
  );
213
- }), co = "_card_4k34c_2", io = "_image_4k34c_14", uo = "_hasImage_4k34c_41", Je = {
214
- card: co,
215
- image: io,
216
- hasImage: uo
217
- }, fl = ae(function({ className: t, style: o, image: r, children: a, m: l, mt: s, mb: c, p: h, pb: m, ...i }, g) {
218
- return /* @__PURE__ */ L(
213
+ }), io = "_card_4k34c_2", uo = "_image_4k34c_14", fo = "_hasImage_4k34c_41", et = {
214
+ card: io,
215
+ image: uo,
216
+ hasImage: fo
217
+ }, pl = ae(function({ className: t, style: o, image: r, children: a, m: l, mt: s, mb: c, p: h, pb: m, ...d }, C) {
218
+ return /* @__PURE__ */ R(
219
219
  "div",
220
220
  {
221
- ...i,
222
- ref: g,
223
- className: z(Je.card, r != null && Je.hasImage, t),
221
+ ...d,
222
+ ref: C,
223
+ className: E(et.card, r != null && et.hasImage, t),
224
224
  style: ve({ m: l, mt: s, mb: c, p: h, pb: m }, o),
225
225
  children: [
226
- r != null && /* @__PURE__ */ n("div", { className: Je.image, children: r }),
226
+ r != null && /* @__PURE__ */ n("div", { className: et.image, children: r }),
227
227
  a
228
228
  ]
229
229
  }
230
230
  );
231
- }), fo = "_spaceButton_1ewbr_14", po = "_rimRotate_1ewbr_1", _o = "_glintSweep_1ewbr_1", ho = "_iconOnly_1ewbr_105", mo = "_lg_1ewbr_113", go = "_sm_1ewbr_120", Co = "_micro_1ewbr_133", vo = "_stars_1ewbr_150", bo = "_fullWidth_1ewbr_155", $o = "_ember_1ewbr_161", wo = "_label_1ewbr_171", yo = "_star_1ewbr_150", xo = "_twinkle_1ewbr_1", ge = {
232
- spaceButton: fo,
233
- rimRotate: po,
234
- glintSweep: _o,
235
- iconOnly: ho,
236
- lg: mo,
237
- sm: go,
238
- micro: Co,
239
- stars: vo,
240
- fullWidth: bo,
231
+ }), po = "_spaceButton_1ewbr_14", _o = "_rimRotate_1ewbr_1", ho = "_glintSweep_1ewbr_1", mo = "_iconOnly_1ewbr_105", go = "_lg_1ewbr_113", Co = "_sm_1ewbr_120", vo = "_micro_1ewbr_133", bo = "_stars_1ewbr_150", wo = "_fullWidth_1ewbr_155", $o = "_ember_1ewbr_161", yo = "_label_1ewbr_171", xo = "_star_1ewbr_150", No = "_twinkle_1ewbr_1", ge = {
232
+ spaceButton: po,
233
+ rimRotate: _o,
234
+ glintSweep: ho,
235
+ iconOnly: mo,
236
+ lg: go,
237
+ sm: Co,
238
+ micro: vo,
239
+ stars: bo,
240
+ fullWidth: wo,
241
241
  ember: $o,
242
- label: wo,
243
- star: yo,
244
- twinkle: xo
242
+ label: yo,
243
+ star: xo,
244
+ twinkle: No
245
245
  };
246
- function No(e) {
246
+ function Mo(e) {
247
247
  return function() {
248
248
  e |= 0, e = e + 1831565813 | 0;
249
249
  let t = Math.imul(e ^ e >>> 15, 1 | e);
@@ -256,17 +256,17 @@ function Lo(e) {
256
256
  t ^= e.charCodeAt(o), t = Math.imul(t, 16777619);
257
257
  return t >>> 0;
258
258
  }
259
- const Ue = ae(
259
+ const Ke = ae(
260
260
  function({ iconOnly: t, ember: o, size: r = "md", fullWidth: a, animated: l = !0, className: s, children: c, ...h }, m) {
261
- const i = se(), g = _e(() => {
262
- const w = No(Lo(i));
261
+ const d = se(), C = _e(() => {
262
+ const y = Mo(Lo(d));
263
263
  return Array.from({ length: 3 }, () => ({
264
- top: `${12 + w() * 58}%`,
265
- left: `${8 + w() * 80}%`,
266
- animationDelay: `${(w() * 3.2).toFixed(2)}s`,
267
- animationDuration: `${(2.8 + w() * 1.8).toFixed(2)}s`
264
+ top: `${12 + y() * 58}%`,
265
+ left: `${8 + y() * 80}%`,
266
+ animationDelay: `${(y() * 3.2).toFixed(2)}s`,
267
+ animationDuration: `${(2.8 + y() * 1.8).toFixed(2)}s`
268
268
  }));
269
- }, [i]), $ = [
269
+ }, [d]), $ = [
270
270
  ge.spaceButton,
271
271
  t ? ge.iconOnly : "",
272
272
  o ? ge.ember : "",
@@ -274,7 +274,7 @@ const Ue = ae(
274
274
  a ? ge.fullWidth : "",
275
275
  s ?? ""
276
276
  ].filter(Boolean).join(" ");
277
- return /* @__PURE__ */ L(
277
+ return /* @__PURE__ */ R(
278
278
  "button",
279
279
  {
280
280
  ref: m,
@@ -282,7 +282,7 @@ const Ue = ae(
282
282
  "data-animated": l ? void 0 : "false",
283
283
  ...h,
284
284
  children: [
285
- r !== "micro" && /* @__PURE__ */ n("span", { className: ge.stars, "aria-hidden": !0, children: g.map((w, _) => /* @__PURE__ */ n("i", { className: ge.star, style: w }, _)) }),
285
+ r !== "micro" && /* @__PURE__ */ n("span", { className: ge.stars, "aria-hidden": !0, children: C.map((y, u) => /* @__PURE__ */ n("i", { className: ge.star, style: y }, u)) }),
286
286
  /* @__PURE__ */ n("span", { className: ge.label, children: c })
287
287
  ]
288
288
  }
@@ -296,7 +296,7 @@ const Ue = ae(
296
296
  xmlns: "http://www.w3.org/2000/svg",
297
297
  "aria-hidden": !0
298
298
  };
299
- function pl(e) {
299
+ function _l(e) {
300
300
  return /* @__PURE__ */ n("svg", { ...J, ...e, children: /* @__PURE__ */ n(
301
301
  "path",
302
302
  {
@@ -307,7 +307,7 @@ function pl(e) {
307
307
  }
308
308
  ) });
309
309
  }
310
- function _l(e) {
310
+ function hl(e) {
311
311
  return /* @__PURE__ */ n("svg", { ...J, ...e, children: /* @__PURE__ */ n(
312
312
  "path",
313
313
  {
@@ -318,7 +318,7 @@ function _l(e) {
318
318
  }
319
319
  ) });
320
320
  }
321
- function hl(e) {
321
+ function ml(e) {
322
322
  return /* @__PURE__ */ n("svg", { ...J, ...e, children: /* @__PURE__ */ n(
323
323
  "path",
324
324
  {
@@ -329,7 +329,7 @@ function hl(e) {
329
329
  }
330
330
  ) });
331
331
  }
332
- function ml(e) {
332
+ function gl(e) {
333
333
  return /* @__PURE__ */ n("svg", { ...J, ...e, children: /* @__PURE__ */ n(
334
334
  "path",
335
335
  {
@@ -340,7 +340,7 @@ function ml(e) {
340
340
  }
341
341
  ) });
342
342
  }
343
- function gl(e) {
343
+ function Cl(e) {
344
344
  return /* @__PURE__ */ n("svg", { ...J, ...e, children: /* @__PURE__ */ n(
345
345
  "path",
346
346
  {
@@ -351,7 +351,7 @@ function gl(e) {
351
351
  }
352
352
  ) });
353
353
  }
354
- function Cl(e) {
354
+ function vl(e) {
355
355
  return /* @__PURE__ */ n("svg", { ...J, ...e, children: /* @__PURE__ */ n(
356
356
  "path",
357
357
  {
@@ -362,7 +362,7 @@ function Cl(e) {
362
362
  }
363
363
  ) });
364
364
  }
365
- function vl(e) {
365
+ function bl(e) {
366
366
  return /* @__PURE__ */ n("svg", { ...J, ...e, children: /* @__PURE__ */ n(
367
367
  "path",
368
368
  {
@@ -373,7 +373,7 @@ function vl(e) {
373
373
  }
374
374
  ) });
375
375
  }
376
- function bl(e) {
376
+ function wl(e) {
377
377
  return /* @__PURE__ */ n("svg", { ...J, ...e, children: /* @__PURE__ */ n(
378
378
  "path",
379
379
  {
@@ -395,7 +395,7 @@ function $l(e) {
395
395
  }
396
396
  ) });
397
397
  }
398
- function wl(e) {
398
+ function yl(e) {
399
399
  return /* @__PURE__ */ n("svg", { ...J, ...e, children: /* @__PURE__ */ n(
400
400
  "path",
401
401
  {
@@ -406,7 +406,7 @@ function wl(e) {
406
406
  }
407
407
  ) });
408
408
  }
409
- function yl(e) {
409
+ function xl(e) {
410
410
  return /* @__PURE__ */ n("svg", { ...J, ...e, children: /* @__PURE__ */ n(
411
411
  "path",
412
412
  {
@@ -417,7 +417,7 @@ function yl(e) {
417
417
  }
418
418
  ) });
419
419
  }
420
- function xl(e) {
420
+ function Nl(e) {
421
421
  return /* @__PURE__ */ n("svg", { ...J, ...e, children: /* @__PURE__ */ n(
422
422
  "path",
423
423
  {
@@ -428,7 +428,7 @@ function xl(e) {
428
428
  }
429
429
  ) });
430
430
  }
431
- function Nl(e) {
431
+ function Ml(e) {
432
432
  return /* @__PURE__ */ n("svg", { ...J, ...e, children: /* @__PURE__ */ n(
433
433
  "path",
434
434
  {
@@ -450,7 +450,7 @@ function Ll(e) {
450
450
  }
451
451
  ) });
452
452
  }
453
- function Ml(e) {
453
+ function kl(e) {
454
454
  return /* @__PURE__ */ n("svg", { ...J, ...e, children: /* @__PURE__ */ n(
455
455
  "path",
456
456
  {
@@ -461,7 +461,7 @@ function Ml(e) {
461
461
  }
462
462
  ) });
463
463
  }
464
- function kl(e) {
464
+ function zl(e) {
465
465
  return /* @__PURE__ */ n("svg", { ...J, ...e, children: /* @__PURE__ */ n(
466
466
  "path",
467
467
  {
@@ -472,7 +472,7 @@ function kl(e) {
472
472
  }
473
473
  ) });
474
474
  }
475
- function _t(e) {
475
+ function ht(e) {
476
476
  return /* @__PURE__ */ n("svg", { ...J, ...e, children: /* @__PURE__ */ n(
477
477
  "path",
478
478
  {
@@ -483,7 +483,7 @@ function _t(e) {
483
483
  }
484
484
  ) });
485
485
  }
486
- function ht(e) {
486
+ function mt(e) {
487
487
  return /* @__PURE__ */ n("svg", { ...J, ...e, children: /* @__PURE__ */ n(
488
488
  "path",
489
489
  {
@@ -494,7 +494,7 @@ function ht(e) {
494
494
  }
495
495
  ) });
496
496
  }
497
- function zl(e) {
497
+ function Rl(e) {
498
498
  return /* @__PURE__ */ n("svg", { ...J, ...e, children: /* @__PURE__ */ n(
499
499
  "path",
500
500
  {
@@ -505,7 +505,7 @@ function zl(e) {
505
505
  }
506
506
  ) });
507
507
  }
508
- function Mo(e) {
508
+ function ko(e) {
509
509
  return /* @__PURE__ */ n("svg", { viewBox: "0 0 15 15", fill: "none", xmlns: "http://www.w3.org/2000/svg", width: "15", height: "15", ...e, children: /* @__PURE__ */ n(
510
510
  "path",
511
511
  {
@@ -514,7 +514,7 @@ function Mo(e) {
514
514
  }
515
515
  ) });
516
516
  }
517
- function ko(e) {
517
+ function zo(e) {
518
518
  return /* @__PURE__ */ n("svg", { ...J, ...e, children: /* @__PURE__ */ n(
519
519
  "path",
520
520
  {
@@ -525,7 +525,7 @@ function ko(e) {
525
525
  }
526
526
  ) });
527
527
  }
528
- function zo(e) {
528
+ function Ro(e) {
529
529
  return /* @__PURE__ */ n("svg", { ...J, ...e, children: /* @__PURE__ */ n(
530
530
  "path",
531
531
  {
@@ -536,7 +536,7 @@ function zo(e) {
536
536
  }
537
537
  ) });
538
538
  }
539
- function Ro(e) {
539
+ function Eo(e) {
540
540
  return /* @__PURE__ */ n("svg", { ...J, ...e, children: /* @__PURE__ */ n(
541
541
  "path",
542
542
  {
@@ -547,19 +547,19 @@ function Ro(e) {
547
547
  }
548
548
  ) });
549
549
  }
550
- const Eo = "_root_tv9ho_12", Do = "_viewport_tv9ho_17", Io = "_track_tv9ho_21", Ho = "_slide_tv9ho_66", So = "_arrow_tv9ho_78", qo = "_prev_tv9ho_99", To = "_next_tv9ho_104", Ao = "_arrowButton_tv9ho_109", Oo = "_dots_tv9ho_115", Zo = "_dot_tv9ho_115", le = {
551
- root: Eo,
550
+ const Io = "_root_tv9ho_12", Do = "_viewport_tv9ho_17", Ho = "_track_tv9ho_21", So = "_slide_tv9ho_66", To = "_arrow_tv9ho_78", qo = "_prev_tv9ho_99", Ao = "_next_tv9ho_104", Oo = "_arrowButton_tv9ho_109", Bo = "_dots_tv9ho_115", Zo = "_dot_tv9ho_115", le = {
551
+ root: Io,
552
552
  viewport: Do,
553
- track: Io,
554
- slide: Ho,
555
- arrow: So,
553
+ track: Ho,
554
+ slide: So,
555
+ arrow: To,
556
556
  prev: qo,
557
- next: To,
558
- arrowButton: Ao,
559
- dots: Oo,
557
+ next: Ao,
558
+ arrowButton: Oo,
559
+ dots: Bo,
560
560
  dot: Zo
561
561
  };
562
- function Rl({
562
+ function El({
563
563
  children: e,
564
564
  perView: t = 1,
565
565
  step: o = "item",
@@ -569,192 +569,192 @@ function Rl({
569
569
  "aria-label": s = "Carousel",
570
570
  ...c
571
571
  }) {
572
- const h = pt.toArray(e), m = h.length, i = se(), g = F(null), $ = o === "page" ? Math.max(1, Math.floor(t)) : 1, w = m <= t ? 1 : o === "page" ? Math.ceil((m - t) / $) + 1 : Math.ceil(m - t) + 1, [_, b] = Q($), [v, k] = Q(Math.max(1, w)), [I, H] = Q(0), [Y, U] = Q(!0), [D, T] = Q(m <= t), B = F([0]), X = F(0), x = F(0), M = F(() => {
573
- }), S = pe(() => {
574
- const C = g.current;
575
- if (!C) return;
576
- const N = C.scrollLeft, V = Math.max(0, C.scrollWidth - C.clientWidth);
577
- if (Math.abs(V - X.current) > 1) {
578
- M.current();
572
+ const h = _t.toArray(e), m = h.length, d = se(), C = P(null), $ = o === "page" ? Math.max(1, Math.floor(t)) : 1, y = m <= t ? 1 : o === "page" ? Math.ceil((m - t) / $) + 1 : Math.ceil(m - t) + 1, [u, b] = Q($), [g, N] = Q(Math.max(1, y)), [I, T] = Q(0), [X, G] = Q(!0), [D, q] = Q(m <= t), V = P([0]), K = P(0), x = P(0), k = P(() => {
573
+ }), w = pe(() => {
574
+ const v = C.current;
575
+ if (!v) return;
576
+ const M = v.scrollLeft, W = Math.max(0, v.scrollWidth - v.clientWidth);
577
+ if (Math.abs(W - K.current) > 1) {
578
+ k.current();
579
579
  return;
580
580
  }
581
- const W = N <= 1, G = N >= x.current - 1;
582
- let p = 0;
583
- G ? p = B.current.length - 1 : W || B.current.forEach((y, d) => {
584
- Math.abs(y - N) <= Math.abs(B.current[p] - N) && (p = d);
585
- }), H(p), U(W), T(G);
586
- }, []), j = pe(() => {
587
- const C = g.current;
588
- if (!C) return;
589
- const N = Array.from(C.children);
590
- if (!N.length) return;
591
- const V = Math.max(0, C.scrollWidth - C.clientWidth), W = N[0], G = N.length > 1 ? N[1].offsetLeft - W.offsetLeft - W.offsetWidth : 0, p = (C.clientWidth + G) / (W.offsetWidth + G), y = o === "page" ? Math.max(1, Math.floor(p + 0.01)) : 1, d = N[N.length - 1], u = Math.round(
592
- Math.max(0, Math.min(V, d.offsetLeft - W.offsetLeft + d.offsetWidth - C.clientWidth))
593
- ), E = [];
594
- N.forEach((O, Z) => {
595
- if (Z % y !== 0) return;
596
- const P = Math.round(Math.min(O.offsetLeft - W.offsetLeft, u));
597
- E[E.length - 1] !== P && E.push(P);
598
- }), u > 0 && E[E.length - 1] < u - 1 && E.push(u), B.current = E, X.current = Math.round(V), x.current = u, b(y), k(E.length), S();
599
- }, [o, S]);
600
- we(() => {
601
- M.current = j, j();
602
- }, [j, m]), te(() => {
603
- const C = g.current;
604
- if (!C) return;
605
- const N = new ResizeObserver(() => j());
606
- N.observe(C);
607
- const V = C.firstElementChild;
608
- V && N.observe(V);
609
- let W = 0;
610
- const G = () => {
611
- cancelAnimationFrame(W), W = requestAnimationFrame(S);
581
+ const F = M <= 1, U = M >= x.current - 1;
582
+ let _ = 0;
583
+ U ? _ = V.current.length - 1 : F || V.current.forEach((L, f) => {
584
+ Math.abs(L - M) <= Math.abs(V.current[_] - M) && (_ = f);
585
+ }), T(_), G(F), q(U);
586
+ }, []), H = pe(() => {
587
+ const v = C.current;
588
+ if (!v) return;
589
+ const M = Array.from(v.children);
590
+ if (!M.length) return;
591
+ const W = Math.max(0, v.scrollWidth - v.clientWidth), F = M[0], U = M.length > 1 ? M[1].offsetLeft - F.offsetLeft - F.offsetWidth : 0, _ = (v.clientWidth + U) / (F.offsetWidth + U), L = o === "page" ? Math.max(1, Math.floor(_ + 0.01)) : 1, f = M[M.length - 1], p = Math.round(
592
+ Math.max(0, Math.min(W, f.offsetLeft - F.offsetLeft + f.offsetWidth - v.clientWidth))
593
+ ), S = [];
594
+ M.forEach((B, Z) => {
595
+ if (Z % L !== 0) return;
596
+ const j = Math.round(Math.min(B.offsetLeft - F.offsetLeft, p));
597
+ S[S.length - 1] !== j && S.push(j);
598
+ }), p > 0 && S[S.length - 1] < p - 1 && S.push(p), V.current = S, K.current = Math.round(W), x.current = p, b(L), N(S.length), w();
599
+ }, [o, w]);
600
+ ye(() => {
601
+ k.current = H, H();
602
+ }, [H, m]), te(() => {
603
+ const v = C.current;
604
+ if (!v) return;
605
+ const M = new ResizeObserver(() => H());
606
+ M.observe(v);
607
+ const W = v.firstElementChild;
608
+ W && M.observe(W);
609
+ let F = 0;
610
+ const U = () => {
611
+ cancelAnimationFrame(F), F = requestAnimationFrame(w);
612
612
  };
613
- return C.addEventListener("scroll", G, { passive: !0 }), () => {
614
- N.disconnect(), cancelAnimationFrame(W), C.removeEventListener("scroll", G);
613
+ return v.addEventListener("scroll", U, { passive: !0 }), () => {
614
+ M.disconnect(), cancelAnimationFrame(F), v.removeEventListener("scroll", U);
615
615
  };
616
- }, [j, S, m]), te(() => {
617
- const C = g.current;
618
- if (!C) return;
619
- const N = 4;
620
- let V = null, W = 0, G = 0, p = !1, y = 0;
621
- const d = () => {
622
- clearTimeout(y), delete C.dataset.settling;
623
- }, u = (q) => {
624
- q.pointerType !== "mouse" || q.button !== 0 || C.scrollWidth <= C.clientWidth || (d(), V = q.pointerId, W = q.clientX, G = C.scrollLeft, p = !1);
625
- }, E = (q) => {
626
- if (q.pointerId !== V) return;
627
- const ee = q.clientX - W;
628
- if (!p) {
629
- if (Math.abs(ee) < N) return;
630
- p = !0, C.setPointerCapture(q.pointerId), C.dataset.dragging = "";
616
+ }, [H, w, m]), te(() => {
617
+ const v = C.current;
618
+ if (!v) return;
619
+ const M = 4;
620
+ let W = null, F = 0, U = 0, _ = !1, L = 0;
621
+ const f = () => {
622
+ clearTimeout(L), delete v.dataset.settling;
623
+ }, p = (O) => {
624
+ O.pointerType !== "mouse" || O.button !== 0 || v.scrollWidth <= v.clientWidth || (f(), W = O.pointerId, F = O.clientX, U = v.scrollLeft, _ = !1);
625
+ }, S = (O) => {
626
+ if (O.pointerId !== W) return;
627
+ const ee = O.clientX - F;
628
+ if (!_) {
629
+ if (Math.abs(ee) < M) return;
630
+ _ = !0, v.setPointerCapture(O.pointerId), v.dataset.dragging = "";
631
631
  }
632
- C.scrollLeft = G - ee;
633
- }, O = (q) => {
634
- if (q.pointerId !== V || (V = null, !p)) return;
635
- delete C.dataset.dragging;
636
- const ee = C.scrollLeft, ne = B.current;
632
+ v.scrollLeft = U - ee;
633
+ }, B = (O) => {
634
+ if (O.pointerId !== W || (W = null, !_)) return;
635
+ delete v.dataset.dragging;
636
+ const ee = v.scrollLeft, ne = V.current;
637
637
  let ie = ne.reduce((me, De) => Math.abs(De - ee) < Math.abs(me - ee) ? De : me, ne[0]);
638
- ee > G + 1 && ie <= G + 1 ? ie = ne.find((me) => me > G + 1) ?? ie : ee < G - 1 && ie >= G - 1 && (ie = [...ne].reverse().find((me) => me < G - 1) ?? ie), C.dataset.settling = "";
639
- const Qe = window.matchMedia("(prefers-reduced-motion: reduce)").matches;
640
- C.scrollTo({ left: ie, behavior: Qe ? "auto" : "smooth" }), C.addEventListener("scrollend", d, { once: !0 }), y = window.setTimeout(d, 700);
641
- }, Z = (q) => {
642
- p && (p = !1, q.preventDefault(), q.stopPropagation());
643
- }, P = (q) => q.preventDefault();
644
- return C.addEventListener("pointerdown", u), C.addEventListener("pointermove", E), C.addEventListener("pointerup", O), C.addEventListener("pointercancel", O), C.addEventListener("click", Z, !0), C.addEventListener("dragstart", P), () => {
645
- d(), C.removeEventListener("pointerdown", u), C.removeEventListener("pointermove", E), C.removeEventListener("pointerup", O), C.removeEventListener("pointercancel", O), C.removeEventListener("click", Z, !0), C.removeEventListener("dragstart", P);
638
+ ee > U + 1 && ie <= U + 1 ? ie = ne.find((me) => me > U + 1) ?? ie : ee < U - 1 && ie >= U - 1 && (ie = [...ne].reverse().find((me) => me < U - 1) ?? ie), v.dataset.settling = "";
639
+ const Je = window.matchMedia("(prefers-reduced-motion: reduce)").matches;
640
+ v.scrollTo({ left: ie, behavior: Je ? "auto" : "smooth" }), v.addEventListener("scrollend", f, { once: !0 }), L = window.setTimeout(f, 700);
641
+ }, Z = (O) => {
642
+ _ && (_ = !1, O.preventDefault(), O.stopPropagation());
643
+ }, j = (O) => O.preventDefault();
644
+ return v.addEventListener("pointerdown", p), v.addEventListener("pointermove", S), v.addEventListener("pointerup", B), v.addEventListener("pointercancel", B), v.addEventListener("click", Z, !0), v.addEventListener("dragstart", j), () => {
645
+ f(), v.removeEventListener("pointerdown", p), v.removeEventListener("pointermove", S), v.removeEventListener("pointerup", B), v.removeEventListener("pointercancel", B), v.removeEventListener("click", Z, !0), v.removeEventListener("dragstart", j);
646
646
  };
647
647
  }, []);
648
- const f = (C) => {
649
- var N;
650
- return (N = g.current) == null ? void 0 : N.scrollTo({ left: C });
651
- }, R = (C) => {
652
- const N = g.current;
653
- if (!N) return;
654
- const V = N.scrollLeft, W = C > 0 ? B.current.find((G) => G > V + 1) : [...B.current].reverse().find((G) => G < V - 1);
655
- W !== void 0 && f(W);
656
- }, A = v > 1;
657
- return /* @__PURE__ */ L(
648
+ const i = (v) => {
649
+ var M;
650
+ return (M = C.current) == null ? void 0 : M.scrollTo({ left: v });
651
+ }, z = (v) => {
652
+ const M = C.current;
653
+ if (!M) return;
654
+ const W = M.scrollLeft, F = v > 0 ? V.current.find((U) => U > W + 1) : [...V.current].reverse().find((U) => U < W - 1);
655
+ F !== void 0 && i(F);
656
+ }, A = g > 1;
657
+ return /* @__PURE__ */ R(
658
658
  "section",
659
659
  {
660
660
  ...c,
661
661
  "aria-roledescription": "carousel",
662
662
  "aria-label": s,
663
- className: z(le.root, l),
663
+ className: E(le.root, l),
664
664
  "data-scrollable": A ? "" : void 0,
665
665
  children: [
666
- /* @__PURE__ */ L("div", { className: le.viewport, children: [
666
+ /* @__PURE__ */ R("div", { className: le.viewport, children: [
667
667
  /* @__PURE__ */ n(
668
668
  "div",
669
669
  {
670
- ref: g,
671
- id: i,
670
+ ref: C,
671
+ id: d,
672
672
  className: le.track,
673
673
  tabIndex: 0,
674
674
  style: { "--_view-count-default": t },
675
- children: h.map((C, N) => /* @__PURE__ */ n(
675
+ children: h.map((v, M) => /* @__PURE__ */ n(
676
676
  "div",
677
677
  {
678
678
  className: le.slide,
679
679
  role: "group",
680
680
  "aria-roledescription": "slide",
681
- "aria-label": `${N + 1} of ${m}`,
682
- "data-snap": N % _ === 0 ? "" : void 0,
683
- children: C
681
+ "aria-label": `${M + 1} of ${m}`,
682
+ "data-snap": M % u === 0 ? "" : void 0,
683
+ children: v
684
684
  },
685
- C.key ?? N
685
+ v.key ?? M
686
686
  ))
687
687
  }
688
688
  ),
689
- /* @__PURE__ */ n("span", { className: z(le.arrow, le.prev), children: /* @__PURE__ */ n(
690
- Ue,
689
+ /* @__PURE__ */ n("span", { className: E(le.arrow, le.prev), children: /* @__PURE__ */ n(
690
+ Ke,
691
691
  {
692
692
  iconOnly: !0,
693
693
  className: le.arrowButton,
694
694
  animated: a,
695
695
  "aria-label": "Previous",
696
- "aria-controls": i,
697
- disabled: Y,
698
- onClick: () => R(-1),
699
- children: /* @__PURE__ */ n(ht, { "aria-hidden": "true" })
696
+ "aria-controls": d,
697
+ disabled: X,
698
+ onClick: () => z(-1),
699
+ children: /* @__PURE__ */ n(mt, { "aria-hidden": "true" })
700
700
  }
701
701
  ) }),
702
- /* @__PURE__ */ n("span", { className: z(le.arrow, le.next), children: /* @__PURE__ */ n(
703
- Ue,
702
+ /* @__PURE__ */ n("span", { className: E(le.arrow, le.next), children: /* @__PURE__ */ n(
703
+ Ke,
704
704
  {
705
705
  iconOnly: !0,
706
706
  className: le.arrowButton,
707
707
  animated: a,
708
708
  "aria-label": "Next",
709
- "aria-controls": i,
709
+ "aria-controls": d,
710
710
  disabled: D,
711
- onClick: () => R(1),
712
- children: /* @__PURE__ */ n(_t, { "aria-hidden": "true" })
711
+ onClick: () => z(1),
712
+ children: /* @__PURE__ */ n(ht, { "aria-hidden": "true" })
713
713
  }
714
714
  ) })
715
715
  ] }),
716
- r && A && /* @__PURE__ */ n("div", { className: le.dots, children: Array.from({ length: v }, (C, N) => /* @__PURE__ */ n(
716
+ r && A && /* @__PURE__ */ n("div", { className: le.dots, children: Array.from({ length: g }, (v, M) => /* @__PURE__ */ n(
717
717
  "button",
718
718
  {
719
719
  type: "button",
720
720
  className: le.dot,
721
- "aria-label": o === "page" ? `Page ${N + 1} of ${v}` : `Position ${N + 1} of ${v}`,
722
- "aria-controls": i,
723
- "aria-current": N === I ? "true" : void 0,
724
- onClick: () => f(B.current[N] ?? 0)
721
+ "aria-label": o === "page" ? `Page ${M + 1} of ${g}` : `Position ${M + 1} of ${g}`,
722
+ "aria-controls": d,
723
+ "aria-current": M === I ? "true" : void 0,
724
+ onClick: () => i(V.current[M] ?? 0)
725
725
  },
726
- N
726
+ M
727
727
  )) })
728
728
  ]
729
729
  }
730
730
  );
731
731
  }
732
- const Bo = "_nav_mwel8_6", Vo = "_pages_mwel8_21", Wo = "_item_mwel8_30", Po = "_current_mwel8_48", Fo = "_page_mwel8_21", jo = "_gap_mwel8_82", Go = "_stepText_mwel8_92", Uo = "_step_mwel8_92", ce = {
733
- nav: Bo,
734
- pages: Vo,
735
- item: Wo,
736
- current: Po,
737
- page: Fo,
738
- gap: jo,
739
- stepText: Go,
740
- step: Uo
741
- }, Ko = "_spaceControl_1e9gg_17", Xo = "_spaceSlider_1e9gg_74", Yo = "_spacePanel_1e9gg_111", Qo = "_spaceInput_1e9gg_34", Jo = "_spaceTextArea_1e9gg_226", er = {
742
- spaceControl: Ko,
743
- spaceSlider: Xo,
744
- spacePanel: Yo,
745
- spaceInput: Qo,
746
- spaceTextArea: Jo
747
- }, ue = er;
748
- function tr({ pageSize: e, totalItems: t }) {
732
+ const Vo = "_nav_mwel8_6", Wo = "_pages_mwel8_21", Po = "_item_mwel8_30", Fo = "_current_mwel8_48", jo = "_page_mwel8_21", Go = "_gap_mwel8_82", Uo = "_stepText_mwel8_92", Ko = "_step_mwel8_92", ce = {
733
+ nav: Vo,
734
+ pages: Wo,
735
+ item: Po,
736
+ current: Fo,
737
+ page: jo,
738
+ gap: Go,
739
+ stepText: Uo,
740
+ step: Ko
741
+ }, Xo = "_spaceControl_1e9gg_17", Yo = "_spaceSlider_1e9gg_74", Qo = "_spacePanel_1e9gg_111", Jo = "_spaceInput_1e9gg_34", er = "_spaceTextArea_1e9gg_226", tr = {
742
+ spaceControl: Xo,
743
+ spaceSlider: Yo,
744
+ spacePanel: Qo,
745
+ spaceInput: Jo,
746
+ spaceTextArea: er
747
+ }, ue = tr;
748
+ function nr({ pageSize: e, totalItems: t }) {
749
749
  return e <= 0 ? 1 : Math.max(1, Math.ceil(t / e));
750
750
  }
751
- function nr(e, t, o = 1) {
752
- const r = (g, $) => Array.from({ length: Math.max(0, $ - g + 1) }, (w, _) => g + _), a = o * 2 + 5;
751
+ function or(e, t, o = 1) {
752
+ const r = (C, $) => Array.from({ length: Math.max(0, $ - C + 1) }, (y, u) => C + u), a = o * 2 + 5;
753
753
  if (t <= a) return r(1, t);
754
- const l = Math.min(Math.max(e, 1), t), s = Math.max(l - o, 1), c = Math.min(l + o, t), h = s > 3, m = c < t - 2, i = o * 2 + 3;
755
- return h ? m ? [1, null, ...r(s, c), null, t] : [1, null, ...r(t - i + 1, t)] : [...r(1, i), null, t];
754
+ const l = Math.min(Math.max(e, 1), t), s = Math.max(l - o, 1), c = Math.min(l + o, t), h = s > 3, m = c < t - 2, d = o * 2 + 3;
755
+ return h ? m ? [1, null, ...r(s, c), null, t] : [1, null, ...r(t - d + 1, t)] : [...r(1, d), null, t];
756
756
  }
757
- function El({
757
+ function Il({
758
758
  pagination: e,
759
759
  onPageClick: t,
760
760
  siblings: o = 1,
@@ -763,107 +763,107 @@ function El({
763
763
  "aria-label": l = "Pagination",
764
764
  ...s
765
765
  }) {
766
- const c = tr(e);
766
+ const c = nr(e);
767
767
  if (c <= 1) return null;
768
- const h = Math.min(Math.max(e.page, 1), c), m = (i) => {
769
- i !== h && i >= 1 && i <= c && t(i);
768
+ const h = Math.min(Math.max(e.page, 1), c), m = (d) => {
769
+ d !== h && d >= 1 && d <= c && t(d);
770
770
  };
771
- return /* @__PURE__ */ L("nav", { ...s, "aria-label": l, className: z(ce.nav, a), children: [
772
- /* @__PURE__ */ L(
771
+ return /* @__PURE__ */ R("nav", { ...s, "aria-label": l, className: E(ce.nav, a), children: [
772
+ /* @__PURE__ */ R(
773
773
  "button",
774
774
  {
775
775
  type: "button",
776
- className: z(ue.spaceControl, ce.item, ce.step),
776
+ className: E(ue.spaceControl, ce.item, ce.step),
777
777
  disabled: h <= 1,
778
778
  "aria-label": "Previous page",
779
779
  onClick: () => m(h - 1),
780
780
  children: [
781
- /* @__PURE__ */ n(ht, { "aria-hidden": "true" }),
781
+ /* @__PURE__ */ n(mt, { "aria-hidden": "true" }),
782
782
  /* @__PURE__ */ n("span", { className: ce.stepText, children: "Previous" })
783
783
  ]
784
784
  }
785
785
  ),
786
- /* @__PURE__ */ n("ol", { className: ce.pages, children: nr(h, c, o).map(
787
- (i, g) => i === null ? (
786
+ /* @__PURE__ */ n("ol", { className: ce.pages, children: or(h, c, o).map(
787
+ (d, C) => d === null ? (
788
788
  // Presentational: "ellipsis" read aloud between page numbers tells
789
789
  // nobody anything.
790
790
  // eslint-disable-next-line react/no-array-index-key
791
- /* @__PURE__ */ n("li", { className: ce.gap, "aria-hidden": "true", children: "…" }, `gap-${g}`)
791
+ /* @__PURE__ */ n("li", { className: ce.gap, "aria-hidden": "true", children: "…" }, `gap-${C}`)
792
792
  ) : /* @__PURE__ */ n("li", { children: /* @__PURE__ */ n(
793
793
  "button",
794
794
  {
795
795
  type: "button",
796
- className: z(
796
+ className: E(
797
797
  ue.spaceControl,
798
798
  ce.item,
799
799
  ce.page,
800
- i === h && ce.current
800
+ d === h && ce.current
801
801
  ),
802
- "data-animated": i === h && !r ? "false" : void 0,
803
- "aria-label": `Page ${i}`,
804
- "aria-current": i === h ? "page" : void 0,
805
- onClick: () => m(i),
806
- children: i
802
+ "data-animated": d === h && !r ? "false" : void 0,
803
+ "aria-label": `Page ${d}`,
804
+ "aria-current": d === h ? "page" : void 0,
805
+ onClick: () => m(d),
806
+ children: d
807
807
  }
808
- ) }, i)
808
+ ) }, d)
809
809
  ) }),
810
- /* @__PURE__ */ L(
810
+ /* @__PURE__ */ R(
811
811
  "button",
812
812
  {
813
813
  type: "button",
814
- className: z(ue.spaceControl, ce.item, ce.step),
814
+ className: E(ue.spaceControl, ce.item, ce.step),
815
815
  disabled: h >= c,
816
816
  "aria-label": "Next page",
817
817
  onClick: () => m(h + 1),
818
818
  children: [
819
819
  /* @__PURE__ */ n("span", { className: ce.stepText, children: "Next" }),
820
- /* @__PURE__ */ n(_t, { "aria-hidden": "true" })
820
+ /* @__PURE__ */ n(ht, { "aria-hidden": "true" })
821
821
  ]
822
822
  }
823
823
  )
824
824
  ] });
825
825
  }
826
- const or = "_wrap_dwcut_5", rr = "_sm_dwcut_30", sr = "_md_dwcut_36", ar = "_lg_dwcut_42", lr = "_orbit_dwcut_49", cr = "_planet_dwcut_58", ir = "_moon_dwcut_73", dr = "_label_dwcut_92", Ne = {
827
- wrap: or,
828
- sm: rr,
829
- md: sr,
830
- lg: ar,
831
- orbit: lr,
832
- planet: cr,
826
+ const rr = "_wrap_dwcut_5", sr = "_sm_dwcut_30", ar = "_md_dwcut_36", lr = "_lg_dwcut_42", cr = "_orbit_dwcut_49", ir = "_planet_dwcut_58", dr = "_moon_dwcut_73", ur = "_label_dwcut_92", Me = {
827
+ wrap: rr,
828
+ sm: sr,
829
+ md: ar,
830
+ lg: lr,
831
+ orbit: cr,
832
+ planet: ir,
833
833
  "sp-loader-planet-pulse": "_sp-loader-planet-pulse_dwcut_1",
834
- moon: ir,
834
+ moon: dr,
835
835
  "sp-loader-orbit": "_sp-loader-orbit_dwcut_1",
836
- label: dr,
836
+ label: ur,
837
837
  "sp-loader-reduced-pulse": "_sp-loader-reduced-pulse_dwcut_1"
838
838
  };
839
839
  function Dl({ size: e = "md", label: t, className: o }) {
840
- return /* @__PURE__ */ L(
840
+ return /* @__PURE__ */ R(
841
841
  "div",
842
842
  {
843
- className: z(Ne.wrap, Ne[e], o),
843
+ className: E(Me.wrap, Me[e], o),
844
844
  role: "status",
845
845
  "aria-live": "polite",
846
846
  "aria-label": t ?? "Loading",
847
847
  children: [
848
- /* @__PURE__ */ L("span", { className: Ne.orbit, children: [
849
- /* @__PURE__ */ n("span", { className: Ne.planet }),
850
- /* @__PURE__ */ n("span", { className: Ne.moon })
848
+ /* @__PURE__ */ R("span", { className: Me.orbit, children: [
849
+ /* @__PURE__ */ n("span", { className: Me.planet }),
850
+ /* @__PURE__ */ n("span", { className: Me.moon })
851
851
  ] }),
852
- t && /* @__PURE__ */ n("span", { className: Ne.label, children: t })
852
+ t && /* @__PURE__ */ n("span", { className: Me.label, children: t })
853
853
  ]
854
854
  }
855
855
  );
856
856
  }
857
- const ur = "_content_3g9vd_6", fr = {
858
- content: ur
857
+ const fr = "_content_3g9vd_6", pr = {
858
+ content: fr
859
859
  };
860
- function Ye(e, t) {
860
+ function Qe(e, t) {
861
861
  e.matches(":popover-open") || (e.dataset.instant = "", e.dataset.measuring = "", t(), delete e.dataset.measuring, e.offsetWidth, delete e.dataset.instant, e.offsetWidth, e.showPopover());
862
862
  }
863
- const pr = 350, _r = 80, Fe = 8, qe = 8;
864
- function hr({ triggerRef: e, tooltipId: t, show: o, hide: r, children: a }) {
863
+ const _r = 350, hr = 80, je = 8, qe = 8;
864
+ function mr({ triggerRef: e, tooltipId: t, show: o, hide: r, children: a }) {
865
865
  const l = a.props;
866
- return Xe(a, {
866
+ return Ye(a, {
867
867
  ref: e,
868
868
  // Always present, so the id it points at never dangles: the content
869
869
  // element stays mounted and only toggles its popover state.
@@ -893,52 +893,52 @@ function hr({ triggerRef: e, tooltipId: t, show: o, hide: r, children: a }) {
893
893
  }
894
894
  });
895
895
  }
896
- function mr({ label: e, side: t = "bottom", children: o }) {
897
- const r = se(), [a, l] = Q(!1), [s, c] = Q(null), h = F(null), m = F(null), i = F(null), g = F(null), $ = () => {
898
- i.current && (clearTimeout(i.current), i.current = null), g.current && (clearTimeout(g.current), g.current = null);
899
- }, w = (b = !1) => {
896
+ function gr({ label: e, side: t = "bottom", children: o }) {
897
+ const r = se(), [a, l] = Q(!1), [s, c] = Q(null), h = P(null), m = P(null), d = P(null), C = P(null), $ = () => {
898
+ d.current && (clearTimeout(d.current), d.current = null), C.current && (clearTimeout(C.current), C.current = null);
899
+ }, y = (b = !1) => {
900
900
  if ($(), b) {
901
901
  l(!0);
902
902
  return;
903
903
  }
904
- i.current = setTimeout(() => l(!0), pr);
905
- }, _ = () => {
906
- $(), g.current = setTimeout(() => l(!1), _r);
904
+ d.current = setTimeout(() => l(!0), _r);
905
+ }, u = () => {
906
+ $(), C.current = setTimeout(() => l(!1), hr);
907
907
  };
908
- return te(() => $, []), we(() => {
908
+ return te(() => $, []), ye(() => {
909
909
  const b = m.current;
910
910
  if (!b) return;
911
911
  if (!a) {
912
912
  b.matches(":popover-open") && b.hidePopover();
913
913
  return;
914
914
  }
915
- const v = h.current;
916
- if (!v) return;
917
- const k = () => {
918
- const I = v.getBoundingClientRect(), H = b.offsetWidth, Y = b.offsetHeight, U = (S, j, f, R) => Math.min(
919
- Math.max(S + j / 2 - f / 2, qe),
920
- Math.max(R - f - qe, qe)
921
- ), D = (S, j, f, R) => ({
922
- fitsNear: S >= qe,
923
- fitsFar: j + f <= R - qe
915
+ const g = h.current;
916
+ if (!g) return;
917
+ const N = () => {
918
+ const I = g.getBoundingClientRect(), T = b.offsetWidth, X = b.offsetHeight, G = (w, H, i, z) => Math.min(
919
+ Math.max(w + H / 2 - i / 2, qe),
920
+ Math.max(z - i - qe, qe)
921
+ ), D = (w, H, i, z) => ({
922
+ fitsNear: w >= qe,
923
+ fitsFar: H + i <= z - qe
924
924
  });
925
925
  if (t === "left" || t === "right") {
926
- const S = I.right + Fe, j = I.left - H - Fe, { fitsNear: f, fitsFar: R } = D(j, S, H, window.innerWidth), A = t === "right" ? R || !f ? S : j : f || !R ? j : S;
927
- b.dataset.side = A === S ? "right" : "left", c({ top: U(I.top, I.height, Y, window.innerHeight), left: A });
926
+ const w = I.right + je, H = I.left - T - je, { fitsNear: i, fitsFar: z } = D(H, w, T, window.innerWidth), A = t === "right" ? z || !i ? w : H : i || !z ? H : w;
927
+ b.dataset.side = A === w ? "right" : "left", c({ top: G(I.top, I.height, X, window.innerHeight), left: A });
928
928
  return;
929
929
  }
930
- const T = I.bottom + Fe, B = I.top - Y - Fe, { fitsNear: X, fitsFar: x } = D(B, T, Y, window.innerHeight), M = t === "bottom" ? x || !X ? T : B : X || !x ? B : T;
931
- b.dataset.side = M === T ? "bottom" : "top", c({ top: M, left: U(I.left, I.width, H, window.innerWidth) });
930
+ const q = I.bottom + je, V = I.top - X - je, { fitsNear: K, fitsFar: x } = D(V, q, X, window.innerHeight), k = t === "bottom" ? x || !K ? q : V : K || !x ? V : q;
931
+ b.dataset.side = k === q ? "bottom" : "top", c({ top: k, left: G(I.left, I.width, T, window.innerWidth) });
932
932
  };
933
- b.matches(":popover-open") ? k() : Ye(b, k);
934
- }, [a, t, e]), !e || !ze(o) ? /* @__PURE__ */ n(he, { children: o }) : /* @__PURE__ */ L(he, { children: [
933
+ b.matches(":popover-open") ? N() : Qe(b, N);
934
+ }, [a, t, e]), !e || !Re(o) ? /* @__PURE__ */ n(he, { children: o }) : /* @__PURE__ */ R(he, { children: [
935
935
  /* @__PURE__ */ n(
936
- hr,
936
+ mr,
937
937
  {
938
938
  triggerRef: h,
939
939
  tooltipId: r,
940
- show: w,
941
- hide: _,
940
+ show: y,
941
+ hide: u,
942
942
  children: o
943
943
  }
944
944
  ),
@@ -949,7 +949,7 @@ function mr({ label: e, side: t = "bottom", children: o }) {
949
949
  id: r,
950
950
  popover: "auto",
951
951
  role: "tooltip",
952
- className: fr.content,
952
+ className: pr.content,
953
953
  style: s ? { top: s.top, left: s.left } : void 0,
954
954
  onToggle: (b) => {
955
955
  b.nativeEvent.newState === "closed" && a && l(!1);
@@ -959,13 +959,13 @@ function mr({ label: e, side: t = "bottom", children: o }) {
959
959
  )
960
960
  ] });
961
961
  }
962
- const gr = "_group_14c05_4", Cr = "_segment_14c05_15", vr = "_active_14c05_35", br = "_vertical_14c05_46", je = {
963
- group: gr,
964
- segment: Cr,
965
- active: vr,
966
- vertical: br
962
+ const Cr = "_group_14c05_4", vr = "_segment_14c05_15", br = "_active_14c05_35", wr = "_vertical_14c05_46", Ge = {
963
+ group: Cr,
964
+ segment: vr,
965
+ active: br,
966
+ vertical: wr
967
967
  };
968
- function Il({
968
+ function Hl({
969
969
  options: e,
970
970
  value: t,
971
971
  onValueChange: o,
@@ -976,18 +976,18 @@ function Il({
976
976
  return /* @__PURE__ */ n(
977
977
  "div",
978
978
  {
979
- className: `${je.group} ${l ? je.vertical : ""} ${a}`,
979
+ className: `${Ge.group} ${l ? Ge.vertical : ""} ${a}`,
980
980
  role: "group",
981
981
  children: e.map((s) => (
982
982
  // A horizontal pill sits at the top of the scene, so its tooltips hang
983
983
  // below it. A vertical one has a segment directly below every segment,
984
984
  // so they go to the side instead — otherwise each tooltip covers the
985
985
  // next option along.
986
- /* @__PURE__ */ n(mr, { label: s.label, side: l ? "right" : "bottom", children: /* @__PURE__ */ n(
986
+ /* @__PURE__ */ n(gr, { label: s.label, side: l ? "right" : "bottom", children: /* @__PURE__ */ n(
987
987
  "button",
988
988
  {
989
989
  type: "button",
990
- className: `${je.segment} ${s.value === t ? je.active : ""}`,
990
+ className: `${Ge.segment} ${s.value === t ? Ge.active : ""}`,
991
991
  "aria-label": s.label,
992
992
  "aria-pressed": s.value === t,
993
993
  onClick: () => {
@@ -1000,31 +1000,31 @@ function Il({
1000
1000
  }
1001
1001
  );
1002
1002
  }
1003
- const $r = "_root_10w57_2", wr = "_trigger_10w57_7", yr = "_labelWrap_10w57_30", xr = "_sizer_10w57_8", Nr = "_triggerLabel_10w57_70", Lr = "_chevron_10w57_77", Mr = "_listbox_10w57_82", kr = "_item_10w57_178", Ce = {
1003
+ const $r = "_root_10w57_2", yr = "_trigger_10w57_7", xr = "_labelWrap_10w57_30", Nr = "_sizer_10w57_8", Mr = "_triggerLabel_10w57_70", Lr = "_chevron_10w57_77", kr = "_listbox_10w57_82", zr = "_item_10w57_178", Ce = {
1004
1004
  root: $r,
1005
- trigger: wr,
1006
- labelWrap: yr,
1007
- sizer: xr,
1008
- triggerLabel: Nr,
1005
+ trigger: yr,
1006
+ labelWrap: xr,
1007
+ sizer: Nr,
1008
+ triggerLabel: Mr,
1009
1009
  chevron: Lr,
1010
- listbox: Mr,
1011
- item: kr
1012
- }, mt = Re(null), zr = () => {
1013
- const e = Ee(mt);
1010
+ listbox: kr,
1011
+ item: zr
1012
+ }, gt = Ee(null), Rr = () => {
1013
+ const e = Ie(gt);
1014
1014
  if (!e) throw new Error("Select.Item must be inside a Select");
1015
1015
  return e;
1016
- }, gt = (e, t) => `${e}-${encodeURIComponent(t)}`, Te = 4, Le = 8;
1017
- function Rr(e) {
1016
+ }, Ct = (e, t) => `${e}-${encodeURIComponent(t)}`, Ae = 4, Le = 8;
1017
+ function Er(e) {
1018
1018
  const t = [], o = (r) => {
1019
- pt.forEach(r, (a) => {
1020
- if (!ze(a)) return;
1019
+ _t.forEach(r, (a) => {
1020
+ if (!Re(a)) return;
1021
1021
  const l = a.props;
1022
- a.type === Ct && typeof l.value == "string" ? t.push({ value: l.value, label: l.children, disabled: l.disabled }) : l.children && o(l.children);
1022
+ a.type === vt && typeof l.value == "string" ? t.push({ value: l.value, label: l.children, disabled: l.disabled }) : l.children && o(l.children);
1023
1023
  });
1024
1024
  };
1025
1025
  return o(e), t;
1026
1026
  }
1027
- function Er({
1027
+ function Ir({
1028
1028
  value: e,
1029
1029
  onValueChange: t,
1030
1030
  disabled: o,
@@ -1034,60 +1034,60 @@ function Er({
1034
1034
  children: s,
1035
1035
  ...c
1036
1036
  }) {
1037
- const [h, m] = Q(!1), [i, g] = Q(null), $ = se(), w = F(null), _ = F(null), b = F(null), [v, k] = Q(null), [I, H] = Q(null), [Y, U] = Q(null), D = _e(() => Rr(s), [s]), T = _e(() => D.filter((f) => !f.disabled).map((f) => f.value), [D]), B = _e(() => D.map((f) => f.label), [D]), X = pe(
1038
- (f) => {
1039
- var R;
1040
- return ((R = D.find((A) => A.value === f)) == null ? void 0 : R.label) ?? null;
1037
+ const [h, m] = Q(!1), [d, C] = Q(null), $ = se(), y = P(null), u = P(null), b = P(null), [g, N] = Q(null), [I, T] = Q(null), [X, G] = Q(null), D = _e(() => Er(s), [s]), q = _e(() => D.filter((i) => !i.disabled).map((i) => i.value), [D]), V = _e(() => D.map((i) => i.label), [D]), K = pe(
1038
+ (i) => {
1039
+ var z;
1040
+ return ((z = D.find((A) => A.value === i)) == null ? void 0 : z.label) ?? null;
1041
1041
  },
1042
1042
  [D]
1043
1043
  );
1044
1044
  te(() => {
1045
1045
  if (!h) return;
1046
- const f = (R) => {
1047
- _.current && !_.current.contains(R.target) && m(!1);
1046
+ const i = (z) => {
1047
+ u.current && !u.current.contains(z.target) && m(!1);
1048
1048
  };
1049
- return document.addEventListener("mousedown", f), () => document.removeEventListener("mousedown", f);
1049
+ return document.addEventListener("mousedown", i), () => document.removeEventListener("mousedown", i);
1050
1050
  }, [h]);
1051
1051
  const x = pe(() => {
1052
- const f = w.current, R = b.current;
1053
- if (!f || !R) return;
1054
- const A = f.getBoundingClientRect();
1055
- k(f.offsetWidth);
1056
- const C = window.innerHeight - A.bottom - Le, N = A.top - Le, V = C < Math.min(R.offsetHeight + Te, 200) && N > C, W = Math.max(120, Math.min(380, V ? N - Te : C - Te));
1057
- H(W), R.dataset.side = V ? "top" : "bottom";
1058
- const G = Math.min(R.offsetHeight, W), p = V ? Math.max(Le, A.top - Te - G) : A.bottom + Te, y = Math.min(
1052
+ const i = y.current, z = b.current;
1053
+ if (!i || !z) return;
1054
+ const A = i.getBoundingClientRect();
1055
+ N(i.offsetWidth);
1056
+ const v = window.innerHeight - A.bottom - Le, M = A.top - Le, W = v < Math.min(z.offsetHeight + Ae, 200) && M > v, F = Math.max(120, Math.min(380, W ? M - Ae : v - Ae));
1057
+ T(F), z.dataset.side = W ? "top" : "bottom";
1058
+ const U = Math.min(z.offsetHeight, F), _ = W ? Math.max(Le, A.top - Ae - U) : A.bottom + Ae, L = Math.min(
1059
1059
  Math.max(A.left, Le),
1060
- Math.max(window.innerWidth - R.offsetWidth - Le, Le)
1060
+ Math.max(window.innerWidth - z.offsetWidth - Le, Le)
1061
1061
  );
1062
- U((d) => d && d.top === p && d.left === y ? d : { top: p, left: y });
1062
+ G((f) => f && f.top === _ && f.left === L ? f : { top: _, left: L });
1063
1063
  }, []);
1064
- we(() => {
1065
- const f = b.current;
1066
- f && (h ? (Ye(f, x), x()) : f.matches(":popover-open") && f.hidePopover());
1064
+ ye(() => {
1065
+ const i = b.current;
1066
+ i && (h ? (Qe(i, x), x()) : i.matches(":popover-open") && i.hidePopover());
1067
1067
  }, [h, x]), te(() => {
1068
1068
  if (!h) return;
1069
- let f = 0, R = "";
1069
+ let i = 0, z = "";
1070
1070
  const A = () => {
1071
- const C = w.current;
1072
- if (C) {
1073
- const N = C.getBoundingClientRect(), V = `${N.top}|${N.left}|${N.width}|${window.innerWidth}|${window.innerHeight}`;
1074
- V !== R && (R = V, x());
1071
+ const v = y.current;
1072
+ if (v) {
1073
+ const M = v.getBoundingClientRect(), W = `${M.top}|${M.left}|${M.width}|${window.innerWidth}|${window.innerHeight}`;
1074
+ W !== z && (z = W, x());
1075
1075
  }
1076
- f = requestAnimationFrame(A);
1076
+ i = requestAnimationFrame(A);
1077
1077
  };
1078
- return f = requestAnimationFrame(A), () => cancelAnimationFrame(f);
1078
+ return i = requestAnimationFrame(A), () => cancelAnimationFrame(i);
1079
1079
  }, [h, x]), te(() => {
1080
- var f;
1081
- h && ((f = b.current) == null || f.focus());
1080
+ var i;
1081
+ h && ((i = b.current) == null || i.focus());
1082
1082
  }, [h]);
1083
- const M = (f) => {
1084
- g(f ?? T[0] ?? null), m(!0);
1085
- }, S = (f) => {
1086
- const R = i ? T.indexOf(i) : -1, A = Math.min(Math.max(R + f, 0), T.length - 1);
1087
- g(T[A] ?? null);
1088
- }, j = e ? X(e) : null;
1083
+ const k = (i) => {
1084
+ C(i ?? q[0] ?? null), m(!0);
1085
+ }, w = (i) => {
1086
+ const z = d ? q.indexOf(d) : -1, A = Math.min(Math.max(z + i, 0), q.length - 1);
1087
+ C(q[A] ?? null);
1088
+ }, H = e ? K(e) : null;
1089
1089
  return /* @__PURE__ */ n(
1090
- mt.Provider,
1090
+ gt.Provider,
1091
1091
  {
1092
1092
  value: {
1093
1093
  value: e,
@@ -1095,41 +1095,41 @@ function Er({
1095
1095
  disabled: o,
1096
1096
  open: h,
1097
1097
  setOpen: m,
1098
- highlighted: i,
1099
- setHighlighted: g,
1098
+ highlighted: d,
1099
+ setHighlighted: C,
1100
1100
  listboxId: $,
1101
- values: T,
1102
- labelFor: X,
1103
- triggerRef: w
1101
+ values: q,
1102
+ labelFor: K,
1103
+ triggerRef: y
1104
1104
  },
1105
- children: /* @__PURE__ */ L("div", { ref: _, className: Ce.root, children: [
1106
- /* @__PURE__ */ L(
1105
+ children: /* @__PURE__ */ R("div", { ref: u, className: Ce.root, children: [
1106
+ /* @__PURE__ */ R(
1107
1107
  "button",
1108
1108
  {
1109
1109
  type: "button",
1110
1110
  ...c,
1111
- ref: w,
1111
+ ref: y,
1112
1112
  disabled: o,
1113
- className: z(Ce.trigger, ue.spaceControl, "spSelectTrigger", l),
1113
+ className: E(Ce.trigger, ue.spaceControl, "spSelectTrigger", l),
1114
1114
  "data-animated": a ? void 0 : "false",
1115
1115
  "data-state": h ? "open" : "closed",
1116
1116
  "aria-haspopup": "listbox",
1117
1117
  "aria-expanded": h,
1118
1118
  "aria-controls": $,
1119
- onClick: () => h ? m(!1) : M(e || null),
1120
- onKeyDown: (f) => {
1121
- (f.key === "ArrowDown" || f.key === "Enter" || f.key === " ") && (f.preventDefault(), M(e || null));
1119
+ onClick: () => h ? m(!1) : k(e || null),
1120
+ onKeyDown: (i) => {
1121
+ (i.key === "ArrowDown" || i.key === "Enter" || i.key === " ") && (i.preventDefault(), k(e || null));
1122
1122
  },
1123
1123
  children: [
1124
- /* @__PURE__ */ L("span", { className: Ce.labelWrap, children: [
1125
- /* @__PURE__ */ L("span", { className: Ce.sizer, "data-sizer": "", "aria-hidden": "true", children: [
1126
- B.map((f, R) => (
1124
+ /* @__PURE__ */ R("span", { className: Ce.labelWrap, children: [
1125
+ /* @__PURE__ */ R("span", { className: Ce.sizer, "data-sizer": "", "aria-hidden": "true", children: [
1126
+ V.map((i, z) => (
1127
1127
  // eslint-disable-next-line react/no-array-index-key
1128
- /* @__PURE__ */ n("span", { children: f }, R)
1128
+ /* @__PURE__ */ n("span", { children: i }, z)
1129
1129
  )),
1130
1130
  r && /* @__PURE__ */ n("span", { children: r })
1131
1131
  ] }),
1132
- /* @__PURE__ */ n("span", { className: Ce.triggerLabel, children: j ?? r ?? "" })
1132
+ /* @__PURE__ */ n("span", { className: Ce.triggerLabel, children: H ?? r ?? "" })
1133
1133
  ] }),
1134
1134
  /* @__PURE__ */ n("svg", { className: Ce.chevron, width: "9", height: "9", viewBox: "0 0 9 9", "aria-hidden": "true", children: /* @__PURE__ */ n("path", { d: "M0.5 3 L4.5 7 L8.5 3", fill: "none", stroke: "currentColor", strokeWidth: "1.2" }) })
1135
1135
  ]
@@ -1144,17 +1144,17 @@ function Er({
1144
1144
  tabIndex: -1,
1145
1145
  popover: "manual",
1146
1146
  "data-side": "bottom",
1147
- "aria-activedescendant": i ? gt($, i) : void 0,
1148
- className: z(Ce.listbox, ue.spacePanel),
1147
+ "aria-activedescendant": d ? Ct($, d) : void 0,
1148
+ className: E(Ce.listbox, ue.spacePanel),
1149
1149
  "data-animated": a ? void 0 : "false",
1150
1150
  style: {
1151
- ...v != null ? { "--_select-trigger-width": `${v}px` } : {},
1151
+ ...g != null ? { "--_select-trigger-width": `${g}px` } : {},
1152
1152
  ...I != null ? { maxHeight: `${I}px` } : {},
1153
- ...Y ? { top: Y.top, left: Y.left } : {}
1153
+ ...X ? { top: X.top, left: X.left } : {}
1154
1154
  },
1155
- onKeyDown: (f) => {
1156
- var R, A;
1157
- f.key === "Escape" ? (f.stopPropagation(), m(!1), (R = w.current) == null || R.focus()) : f.key === "ArrowDown" ? (f.preventDefault(), S(1)) : f.key === "ArrowUp" ? (f.preventDefault(), S(-1)) : f.key === "Home" ? (f.preventDefault(), g(T[0] ?? null)) : f.key === "End" ? (f.preventDefault(), g(T[T.length - 1] ?? null)) : f.key === "Enter" || f.key === " " ? (f.preventDefault(), i && (t(i), m(!1), (A = w.current) == null || A.focus())) : f.key === "Tab" && m(!1);
1155
+ onKeyDown: (i) => {
1156
+ var z, A;
1157
+ i.key === "Escape" ? (i.stopPropagation(), m(!1), (z = y.current) == null || z.focus()) : i.key === "ArrowDown" ? (i.preventDefault(), w(1)) : i.key === "ArrowUp" ? (i.preventDefault(), w(-1)) : i.key === "Home" ? (i.preventDefault(), C(q[0] ?? null)) : i.key === "End" ? (i.preventDefault(), C(q[q.length - 1] ?? null)) : i.key === "Enter" || i.key === " " ? (i.preventDefault(), d && (t(d), m(!1), (A = y.current) == null || A.focus())) : i.key === "Tab" && m(!1);
1158
1158
  },
1159
1159
  children: s
1160
1160
  }
@@ -1163,17 +1163,17 @@ function Er({
1163
1163
  }
1164
1164
  );
1165
1165
  }
1166
- function Ct({ value: e, disabled: t, children: o }) {
1167
- const r = zr(), a = r.value === e, l = r.highlighted === e;
1166
+ function vt({ value: e, disabled: t, children: o }) {
1167
+ const r = Rr(), a = r.value === e, l = r.highlighted === e;
1168
1168
  return /* @__PURE__ */ n(
1169
1169
  "div",
1170
1170
  {
1171
- id: gt(r.listboxId, e),
1171
+ id: Ct(r.listboxId, e),
1172
1172
  role: "option",
1173
1173
  "aria-selected": a,
1174
1174
  "aria-disabled": t || void 0,
1175
1175
  "data-highlighted": l ? "" : void 0,
1176
- className: z(Ce.item, "spSelectItem"),
1176
+ className: E(Ce.item, "spSelectItem"),
1177
1177
  onMouseEnter: () => !t && r.setHighlighted(e),
1178
1178
  onClick: () => {
1179
1179
  var s;
@@ -1183,20 +1183,20 @@ function Ct({ value: e, disabled: t, children: o }) {
1183
1183
  }
1184
1184
  );
1185
1185
  }
1186
- const Hl = Object.assign(Er, { Item: Ct }), Dr = "_root_1hali_1", Ir = "_input_1hali_7", Hr = "_slot_1hali_17", tt = {
1186
+ const Sl = Object.assign(Ir, { Item: vt }), Dr = "_root_1hali_1", Hr = "_input_1hali_7", Sr = "_slot_1hali_17", nt = {
1187
1187
  root: Dr,
1188
- input: Ir,
1189
- slot: Hr
1190
- }, Sr = ae(function({ className: t, style: o, animated: r = !0, children: a, ...l }, s) {
1191
- return /* @__PURE__ */ L(
1188
+ input: Hr,
1189
+ slot: Sr
1190
+ }, Tr = ae(function({ className: t, style: o, animated: r = !0, children: a, ...l }, s) {
1191
+ return /* @__PURE__ */ R(
1192
1192
  "div",
1193
1193
  {
1194
- className: z(tt.root, ue.spaceInput, "spTextFieldRoot", t),
1194
+ className: E(nt.root, ue.spaceInput, "spTextFieldRoot", t),
1195
1195
  "data-animated": r ? void 0 : "false",
1196
1196
  style: o,
1197
1197
  children: [
1198
1198
  a,
1199
- /* @__PURE__ */ n("input", { ...l, ref: s, className: z(tt.input, "spTextFieldInput") })
1199
+ /* @__PURE__ */ n("input", { ...l, ref: s, className: E(nt.input, "spTextFieldInput") })
1200
1200
  ]
1201
1201
  }
1202
1202
  );
@@ -1204,33 +1204,33 @@ const Hl = Object.assign(Er, { Item: Ct }), Dr = "_root_1hali_1", Ir = "_input_1
1204
1204
  function qr({
1205
1205
  children: e
1206
1206
  }) {
1207
- return /* @__PURE__ */ n("span", { className: tt.slot, children: e });
1207
+ return /* @__PURE__ */ n("span", { className: nt.slot, children: e });
1208
1208
  }
1209
- const ct = Object.assign(Sr, { Slot: qr }), Tr = "_root_1qu6w_1", Ar = "_textarea_1qu6w_6", it = {
1210
- root: Tr,
1211
- textarea: Ar
1212
- }, Sl = ae(function({ className: t, style: o, animated: r = !0, ...a }, l) {
1209
+ const it = Object.assign(Tr, { Slot: qr }), Ar = "_root_1qu6w_1", Or = "_textarea_1qu6w_6", dt = {
1210
+ root: Ar,
1211
+ textarea: Or
1212
+ }, Tl = ae(function({ className: t, style: o, animated: r = !0, ...a }, l) {
1213
1213
  return /* @__PURE__ */ n(
1214
1214
  "div",
1215
1215
  {
1216
- className: z(it.root, ue.spaceInput, ue.spaceTextArea, "spTextFieldRoot", t),
1216
+ className: E(dt.root, ue.spaceInput, ue.spaceTextArea, "spTextFieldRoot", t),
1217
1217
  "data-animated": r ? void 0 : "false",
1218
1218
  style: o,
1219
- children: /* @__PURE__ */ n("textarea", { ...a, ref: l, className: z(it.textarea, "spTextAreaInput") })
1219
+ children: /* @__PURE__ */ n("textarea", { ...a, ref: l, className: E(dt.textarea, "spTextAreaInput") })
1220
1220
  }
1221
1221
  );
1222
- }), Or = "_wrap_sccqq_12", Zr = "_field_sccqq_16", Br = "_panel_sccqq_25", Vr = "_status_sccqq_91", Wr = "_list_sccqq_101", Pr = "_option_sccqq_114", Fr = "_active_sccqq_126", jr = "_label_sccqq_136", Gr = "_meta_sccqq_143", Ur = "_footer_sccqq_149", de = {
1223
- wrap: Or,
1222
+ }), Br = "_wrap_sccqq_12", Zr = "_field_sccqq_16", Vr = "_panel_sccqq_25", Wr = "_status_sccqq_91", Pr = "_list_sccqq_101", Fr = "_option_sccqq_114", jr = "_active_sccqq_126", Gr = "_label_sccqq_136", Ur = "_meta_sccqq_143", Kr = "_footer_sccqq_149", de = {
1223
+ wrap: Br,
1224
1224
  field: Zr,
1225
- panel: Br,
1226
- status: Vr,
1227
- list: Wr,
1228
- option: Pr,
1229
- active: Fr,
1230
- label: jr,
1231
- meta: Gr,
1232
- footer: Ur
1233
- }, dt = 8, et = 8;
1225
+ panel: Vr,
1226
+ status: Wr,
1227
+ list: Pr,
1228
+ option: Fr,
1229
+ active: jr,
1230
+ label: Gr,
1231
+ meta: Ur,
1232
+ footer: Kr
1233
+ }, ut = 8, tt = 8;
1234
1234
  function ql({
1235
1235
  value: e,
1236
1236
  onValueChange: t,
@@ -1242,233 +1242,291 @@ function ql({
1242
1242
  loading: c = !1,
1243
1243
  loadingMessage: h = "Loading…",
1244
1244
  emptyMessage: m,
1245
- footer: i,
1246
- animated: g = !0,
1245
+ footer: d,
1246
+ animated: C = !0,
1247
1247
  className: $,
1248
- style: w,
1249
- ..._
1248
+ style: y,
1249
+ ...u
1250
1250
  }) {
1251
- const [b, v] = Q(!1), [k, I] = Q(0), H = F(null), Y = F(null), U = F(null), D = se(), [T, B] = Q(null), X = (p) => typeof p.label == "string" ? p.label : p.search ?? p.value, x = e.trim() !== "", M = _e(() => {
1251
+ const [b, g] = Q(!1), [N, I] = Q(0), T = P(null), X = P(null), G = P(null), D = se(), [q, V] = Q(null), K = (_) => typeof _.label == "string" ? _.label : _.search ?? _.value, x = e.trim() !== "", k = _e(() => {
1252
1252
  if (!x) return [];
1253
1253
  if (s) return o;
1254
- const p = l ? e : e.toLowerCase();
1255
- return o.filter((y) => (l ? X(y) : X(y).toLowerCase()).includes(p));
1256
- }, [o, e, l, s, x]), S = _e(() => M.filter((p) => !p.disabled), [M]), j = x && (M.length > 0 || c || m != null), f = b && j;
1257
- te(() => I(0), [M]), te(() => {
1258
- var y;
1259
- if (!f) return;
1260
- const p = (y = U.current) == null ? void 0 : y.querySelector(`[data-index="${k}"]`);
1261
- p == null || p.scrollIntoView({ block: "nearest" });
1262
- }, [k, f]);
1263
- const R = pe(() => {
1264
- const p = H.current, y = Y.current;
1265
- if (!p || !y) return;
1266
- const u = (p.firstElementChild ?? p).getBoundingClientRect(), E = y.offsetHeight, O = window.innerHeight - u.bottom - et, Z = O < E && u.top - et > O;
1267
- y.dataset.side = Z ? "top" : "bottom";
1268
- const P = Z ? Math.max(et, u.top - dt - E) : u.bottom + dt;
1269
- B(
1270
- (q) => q && q.top === P && q.left === u.left && q.width === u.width ? q : { top: P, left: u.left, width: u.width }
1254
+ const _ = l ? e : e.toLowerCase();
1255
+ return o.filter((L) => (l ? K(L) : K(L).toLowerCase()).includes(_));
1256
+ }, [o, e, l, s, x]), w = _e(() => k.filter((_) => !_.disabled), [k]), H = x && (k.length > 0 || c || m != null), i = b && H;
1257
+ te(() => I(0), [k]), te(() => {
1258
+ var L;
1259
+ if (!i) return;
1260
+ const _ = (L = G.current) == null ? void 0 : L.querySelector(`[data-index="${N}"]`);
1261
+ _ == null || _.scrollIntoView({ block: "nearest" });
1262
+ }, [N, i]);
1263
+ const z = pe(() => {
1264
+ const _ = T.current, L = X.current;
1265
+ if (!_ || !L) return;
1266
+ const p = (_.firstElementChild ?? _).getBoundingClientRect(), S = L.offsetHeight, B = window.innerHeight - p.bottom - tt, Z = B < S && p.top - tt > B;
1267
+ L.dataset.side = Z ? "top" : "bottom";
1268
+ const j = Z ? Math.max(tt, p.top - ut - S) : p.bottom + ut;
1269
+ V(
1270
+ (O) => O && O.top === j && O.left === p.left && O.width === p.width ? O : { top: j, left: p.left, width: p.width }
1271
1271
  );
1272
1272
  }, []);
1273
- we(() => {
1274
- const p = Y.current;
1275
- p && (f ? (Ye(p, R), R()) : p.matches(":popover-open") && p.hidePopover());
1276
- }, [f, R]), te(() => {
1277
- if (!f) return;
1278
- let p = 0, y = "";
1279
- const d = () => {
1280
- const u = H.current, E = Y.current;
1281
- if (u && E) {
1282
- const O = (u.firstElementChild ?? u).getBoundingClientRect(), Z = `${O.top}|${O.left}|${O.width}|${E.offsetHeight}|${window.innerHeight}`;
1283
- Z !== y && (y = Z, R());
1273
+ ye(() => {
1274
+ const _ = X.current;
1275
+ _ && (i ? (Qe(_, z), z()) : _.matches(":popover-open") && _.hidePopover());
1276
+ }, [i, z]), te(() => {
1277
+ if (!i) return;
1278
+ let _ = 0, L = "";
1279
+ const f = () => {
1280
+ const p = T.current, S = X.current;
1281
+ if (p && S) {
1282
+ const B = (p.firstElementChild ?? p).getBoundingClientRect(), Z = `${B.top}|${B.left}|${B.width}|${S.offsetHeight}|${window.innerHeight}`;
1283
+ Z !== L && (L = Z, z());
1284
1284
  }
1285
- p = requestAnimationFrame(d);
1285
+ _ = requestAnimationFrame(f);
1286
1286
  };
1287
- return p = requestAnimationFrame(d), () => cancelAnimationFrame(p);
1288
- }, [f, R]);
1289
- const A = pe(() => v(!1), []);
1287
+ return _ = requestAnimationFrame(f), () => cancelAnimationFrame(_);
1288
+ }, [i, z]);
1289
+ const A = pe(() => g(!1), []);
1290
1290
  te(() => {
1291
- if (!f) return;
1292
- const p = (y) => {
1293
- const d = H.current;
1294
- d && y.target instanceof Node && !d.contains(y.target) && A();
1291
+ if (!i) return;
1292
+ const _ = (L) => {
1293
+ const f = T.current;
1294
+ f && L.target instanceof Node && !f.contains(L.target) && A();
1295
1295
  };
1296
- return document.addEventListener("pointerdown", p), () => document.removeEventListener("pointerdown", p);
1297
- }, [f, A]);
1298
- const C = F(!1), N = (p) => {
1299
- p.disabled || (t(X(p)), r(p.value, p), C.current = !1, v(!1));
1300
- }, V = (p) => {
1301
- if (S.length === 0) return;
1302
- const y = M[k], u = ((y && !y.disabled ? S.indexOf(y) : -1) + p + S.length) % S.length, E = S[u];
1303
- E && I(M.indexOf(E));
1304
- }, W = (p) => {
1305
- if (p.key === "Escape") {
1306
- f && p.stopPropagation(), v(!1);
1296
+ return document.addEventListener("pointerdown", _), () => document.removeEventListener("pointerdown", _);
1297
+ }, [i, A]);
1298
+ const v = P(!1), M = (_) => {
1299
+ _.disabled || (t(K(_)), r(_.value, _), v.current = !1, g(!1));
1300
+ }, W = (_) => {
1301
+ if (w.length === 0) return;
1302
+ const L = k[N], p = ((L && !L.disabled ? w.indexOf(L) : -1) + _ + w.length) % w.length, S = w[p];
1303
+ S && I(k.indexOf(S));
1304
+ }, F = (_) => {
1305
+ if (_.key === "Escape") {
1306
+ i && _.stopPropagation(), g(!1);
1307
1307
  return;
1308
1308
  }
1309
- if (p.key === "Tab") {
1310
- v(!1);
1309
+ if (_.key === "Tab") {
1310
+ g(!1);
1311
1311
  return;
1312
1312
  }
1313
- if (!f) {
1314
- p.key === "ArrowDown" && v(!0);
1313
+ if (!i) {
1314
+ _.key === "ArrowDown" && g(!0);
1315
1315
  return;
1316
1316
  }
1317
- if (p.key === "ArrowDown")
1318
- p.preventDefault(), C.current = !0, V(1);
1319
- else if (p.key === "ArrowUp")
1320
- p.preventDefault(), C.current = !0, V(-1);
1321
- else if (p.key === "Home") {
1322
- p.preventDefault(), C.current = !0;
1323
- const y = S[0];
1324
- y && I(M.indexOf(y));
1325
- } else if (p.key === "End") {
1326
- p.preventDefault(), C.current = !0;
1327
- const y = S[S.length - 1];
1328
- y && I(M.indexOf(y));
1329
- } else if (p.key === "Enter" || p.key === " " && C.current) {
1330
- const y = M[k];
1331
- y && !y.disabled && (p.preventDefault(), N(y));
1317
+ if (_.key === "ArrowDown")
1318
+ _.preventDefault(), v.current = !0, W(1);
1319
+ else if (_.key === "ArrowUp")
1320
+ _.preventDefault(), v.current = !0, W(-1);
1321
+ else if (_.key === "Home") {
1322
+ _.preventDefault(), v.current = !0;
1323
+ const L = w[0];
1324
+ L && I(k.indexOf(L));
1325
+ } else if (_.key === "End") {
1326
+ _.preventDefault(), v.current = !0;
1327
+ const L = w[w.length - 1];
1328
+ L && I(k.indexOf(L));
1329
+ } else if (_.key === "Enter" || _.key === " " && v.current) {
1330
+ const L = k[N];
1331
+ L && !L.disabled && (_.preventDefault(), M(L));
1332
1332
  }
1333
- }, G = f ? M[k] : void 0;
1334
- return /* @__PURE__ */ L("div", { ref: H, className: z(de.wrap, $), style: w, children: [
1333
+ }, U = i ? k[N] : void 0;
1334
+ return /* @__PURE__ */ R("div", { ref: T, className: E(de.wrap, $), style: y, children: [
1335
1335
  /* @__PURE__ */ n(
1336
- ct,
1336
+ it,
1337
1337
  {
1338
- ..._,
1339
- type: _.type ?? "text",
1338
+ ...u,
1339
+ type: u.type ?? "text",
1340
1340
  role: "combobox",
1341
- animated: g,
1341
+ animated: C,
1342
1342
  className: de.field,
1343
1343
  autoComplete: "off",
1344
- "aria-expanded": f,
1344
+ "aria-expanded": i,
1345
1345
  "aria-controls": D,
1346
1346
  "aria-autocomplete": "list",
1347
- "aria-activedescendant": G && !G.disabled ? `${D}-${k}` : void 0,
1347
+ "aria-activedescendant": U && !U.disabled ? `${D}-${N}` : void 0,
1348
1348
  value: e,
1349
- onFocus: (p) => {
1350
- var y;
1351
- (y = _.onFocus) == null || y.call(_, p), v(!0);
1349
+ onFocus: (_) => {
1350
+ var L;
1351
+ (L = u.onFocus) == null || L.call(u, _), g(!0);
1352
1352
  },
1353
- onClick: (p) => {
1354
- var y;
1355
- (y = _.onClick) == null || y.call(_, p), v(!0);
1353
+ onClick: (_) => {
1354
+ var L;
1355
+ (L = u.onClick) == null || L.call(u, _), g(!0);
1356
1356
  },
1357
- onKeyDown: (p) => {
1358
- var y;
1359
- (y = _.onKeyDown) == null || y.call(_, p), W(p);
1357
+ onKeyDown: (_) => {
1358
+ var L;
1359
+ (L = u.onKeyDown) == null || L.call(u, _), F(_);
1360
1360
  },
1361
- onChange: (p) => {
1362
- C.current = !1, t(p.target.value), v(!0);
1361
+ onChange: (_) => {
1362
+ v.current = !1, t(_.target.value), g(!0);
1363
1363
  },
1364
- children: a != null && /* @__PURE__ */ n(ct.Slot, { children: a })
1364
+ children: a != null && /* @__PURE__ */ n(it.Slot, { children: a })
1365
1365
  }
1366
1366
  ),
1367
- /* @__PURE__ */ L(
1367
+ /* @__PURE__ */ R(
1368
1368
  "div",
1369
1369
  {
1370
- ref: Y,
1370
+ ref: X,
1371
1371
  popover: "manual",
1372
1372
  "data-side": "bottom",
1373
- className: z(de.panel, ue.spacePanel),
1374
- "data-animated": g ? void 0 : "false",
1375
- style: T ? { top: T.top, left: T.left, width: T.width } : void 0,
1373
+ className: E(de.panel, ue.spacePanel),
1374
+ "data-animated": C ? void 0 : "false",
1375
+ style: q ? { top: q.top, left: q.left, width: q.width } : void 0,
1376
1376
  children: [
1377
1377
  x && c && /* @__PURE__ */ n("p", { className: de.status, children: h }),
1378
- x && !c && M.length === 0 && m != null && /* @__PURE__ */ n("p", { className: de.status, children: m }),
1378
+ x && !c && k.length === 0 && m != null && /* @__PURE__ */ n("p", { className: de.status, children: m }),
1379
1379
  /* @__PURE__ */ n(
1380
1380
  "ul",
1381
1381
  {
1382
- ref: U,
1382
+ ref: G,
1383
1383
  id: D,
1384
1384
  role: "listbox",
1385
1385
  className: de.list,
1386
- hidden: c || M.length === 0,
1387
- children: M.map((p, y) => /* @__PURE__ */ L(
1386
+ hidden: c || k.length === 0,
1387
+ children: k.map((_, L) => /* @__PURE__ */ R(
1388
1388
  "li",
1389
1389
  {
1390
- id: `${D}-${y}`,
1391
- "data-index": y,
1390
+ id: `${D}-${L}`,
1391
+ "data-index": L,
1392
1392
  role: "option",
1393
- "aria-selected": y === k,
1394
- "aria-disabled": p.disabled || void 0,
1395
- className: z(
1393
+ "aria-selected": L === N,
1394
+ "aria-disabled": _.disabled || void 0,
1395
+ className: E(
1396
1396
  de.option,
1397
- y === k && !p.disabled && de.active,
1397
+ L === N && !_.disabled && de.active,
1398
1398
  "spAutocompleteOption"
1399
1399
  ),
1400
- onMouseEnter: () => !p.disabled && I(y),
1401
- onPointerDown: (d) => {
1402
- d.preventDefault(), N(p);
1400
+ onMouseEnter: () => !_.disabled && I(L),
1401
+ onPointerDown: (f) => {
1402
+ f.preventDefault(), M(_);
1403
1403
  },
1404
1404
  children: [
1405
- /* @__PURE__ */ n("span", { className: de.label, children: p.label }),
1406
- p.meta != null && /* @__PURE__ */ n("span", { className: de.meta, children: p.meta })
1405
+ /* @__PURE__ */ n("span", { className: de.label, children: _.label }),
1406
+ _.meta != null && /* @__PURE__ */ n("span", { className: de.meta, children: _.meta })
1407
1407
  ]
1408
1408
  },
1409
- p.value
1409
+ _.value
1410
1410
  ))
1411
1411
  }
1412
1412
  ),
1413
- i != null && /* @__PURE__ */ n("div", { className: de.footer, children: i })
1413
+ d != null && /* @__PURE__ */ n("div", { className: de.footer, children: d })
1414
1414
  ]
1415
1415
  }
1416
1416
  )
1417
1417
  ] });
1418
1418
  }
1419
- const Kr = "_root_14a1b_1", Xr = "_track_14a1b_12", Yr = "_range_14a1b_22", Qr = "_thumb_14a1b_28", Jr = "_input_14a1b_38", Ae = {
1420
- root: Kr,
1421
- track: Xr,
1422
- range: Yr,
1423
- thumb: Qr,
1424
- input: Jr
1425
- }, Tl = ae(function({ value: t, onValueChange: o, min: r, max: a, step: l, disabled: s, className: c, "aria-label": h }, m) {
1426
- const i = t[0] ?? r, g = a === r ? 0 : (i - r) / (a - r) * 100;
1427
- return /* @__PURE__ */ L("span", { className: z(Ae.root, ue.spaceSlider, c), "data-disabled": s || void 0, children: [
1428
- /* @__PURE__ */ n("span", { className: z(Ae.track, "spSliderTrack"), children: /* @__PURE__ */ n("span", { className: z(Ae.range, "spSliderRange"), style: { width: `${g}%` } }) }),
1429
- /* @__PURE__ */ n("span", { className: z(Ae.thumb, "spSliderThumb"), style: { left: `${g}%` } }),
1430
- /* @__PURE__ */ n(
1431
- "input",
1432
- {
1433
- ref: m,
1434
- type: "range",
1435
- className: z(Ae.input, "spSliderInput"),
1436
- value: i,
1437
- min: r,
1438
- max: a,
1439
- step: l,
1440
- disabled: s,
1441
- "aria-label": h,
1442
- onChange: ($) => o([Number($.target.value)])
1443
- }
1444
- )
1445
- ] });
1446
- }), es = "_root_1fiei_15", ts = "_plot_1fiei_24", ns = "_svg_1fiei_30", os = "_grid_1fiei_35", rs = "_zeroLine_1fiei_42", ss = "_axisLabel_1fiei_46", as = "_bar_1fiei_56", ls = "_hatch_1fiei_76", cs = "_partialNote_1fiei_80", is = "_line_1fiei_85", ds = "_area_1fiei_119", us = "_dot_1fiei_125", fs = "_crosshair_1fiei_136", ps = "_clickable_1fiei_143", _s = "_tooltip_1fiei_150", hs = "_tooltipHead_1fiei_164", ms = "_tooltipList_1fiei_170", gs = "_tooltipRow_1fiei_178", Cs = "_tooltipName_1fiei_186", vs = "_tooltipValue_1fiei_190", bs = "_swatch_1fiei_195", $s = "_legend_1fiei_202", ws = "_legendItem_1fiei_211", ys = "_data_1fiei_220", K = {
1447
- root: es,
1448
- plot: ts,
1449
- svg: ns,
1450
- grid: os,
1451
- zeroLine: rs,
1452
- axisLabel: ss,
1453
- bar: as,
1454
- hatch: ls,
1455
- partialNote: cs,
1456
- line: is,
1457
- area: ds,
1458
- dot: us,
1459
- crosshair: fs,
1460
- clickable: ps,
1461
- tooltip: _s,
1462
- tooltipHead: hs,
1463
- tooltipList: ms,
1464
- tooltipRow: gs,
1465
- tooltipName: Cs,
1466
- tooltipValue: vs,
1467
- swatch: bs,
1419
+ const Xr = "_root_1x14g_2", Yr = "_track_1x14g_13", Qr = "_range_1x14g_25", Jr = "_thumb_1x14g_32", es = "_input_1x14g_44", Oe = {
1420
+ root: Xr,
1421
+ track: Yr,
1422
+ range: Qr,
1423
+ thumb: Jr,
1424
+ input: es
1425
+ }, be = (e, t, o) => Math.min(Math.max(e, t), o), Al = ae(function({
1426
+ value: t,
1427
+ onValueChange: o,
1428
+ min: r,
1429
+ max: a,
1430
+ step: l = 1,
1431
+ minDistance: s = 0,
1432
+ disabled: c,
1433
+ className: h,
1434
+ "aria-label": m,
1435
+ thumbLabels: d
1436
+ }, C) {
1437
+ const $ = P(null), y = P([]), u = t.length > 1, b = a - r || 1, g = be(t[0] ?? r, r, a), N = u ? be(t[1] ?? a, r, a) : g, I = u ? [g, N] : [g], T = (w) => (w - r) / b * 100, X = (w) => r + Math.floor(Number(((w - r) / l).toFixed(8))) * l, G = (w) => r + Math.ceil(Number(((w - r) / l).toFixed(8))) * l, D = (w, H) => u ? w === 0 ? be(H, r, Math.max(r, X(N - s))) : be(H, Math.min(a, G(g + s)), a) : be(H, r, a), q = (w, H) => {
1438
+ const i = D(w, H);
1439
+ if (i === I[w]) return;
1440
+ const z = [...I];
1441
+ z[w] = i, o(z);
1442
+ }, V = (w) => {
1443
+ if (!u) return 0;
1444
+ const H = Math.abs(w - g), i = Math.abs(w - N);
1445
+ return H === i ? w < g ? 0 : 1 : H < i ? 0 : 1;
1446
+ }, K = (w) => {
1447
+ var M, W;
1448
+ if (!u || c || w.target.tagName === "INPUT") return;
1449
+ const H = (M = $.current) == null ? void 0 : M.getBoundingClientRect();
1450
+ if (!H || H.width === 0) return;
1451
+ const i = be((w.clientX - H.left) / H.width, 0, 1), z = r + i * b, A = be(r + Math.round((z - r) / l) * l, r, a), v = V(A);
1452
+ q(v, A), (W = y.current[v]) == null || W.focus();
1453
+ }, x = (w) => d ? d[w] : u ? m ? `${m} ${w === 0 ? "minimum" : "maximum"}` : w === 0 ? "Minimum" : "Maximum" : m, k = u && g === N ? N >= a ? 0 : 1 : -1;
1454
+ return /* @__PURE__ */ R(
1455
+ "span",
1456
+ {
1457
+ ref: $,
1458
+ className: E(Oe.root, ue.spaceSlider, h),
1459
+ "data-disabled": c || void 0,
1460
+ "data-range": u || void 0,
1461
+ onPointerDown: K,
1462
+ children: [
1463
+ /* @__PURE__ */ n("span", { className: E(Oe.track, "spSliderTrack"), children: /* @__PURE__ */ n(
1464
+ "span",
1465
+ {
1466
+ className: E(Oe.range, "spSliderRange"),
1467
+ style: {
1468
+ insetInlineStart: `${u ? T(g) : 0}%`,
1469
+ width: `${u ? T(N) - T(g) : T(g)}%`
1470
+ }
1471
+ }
1472
+ ) }),
1473
+ I.map((w, H) => /* @__PURE__ */ n(
1474
+ "span",
1475
+ {
1476
+ className: E(Oe.thumb, "spSliderThumb"),
1477
+ style: { left: `${T(w)}%` },
1478
+ "data-thumb": H
1479
+ },
1480
+ H
1481
+ )),
1482
+ I.map((w, H) => /* @__PURE__ */ n(
1483
+ "input",
1484
+ {
1485
+ ref: (i) => {
1486
+ y.current[H] = i, H === 0 && (typeof C == "function" ? C(i) : C && (C.current = i));
1487
+ },
1488
+ type: "range",
1489
+ className: E(Oe.input, "spSliderInput"),
1490
+ value: w,
1491
+ min: r,
1492
+ max: a,
1493
+ step: l,
1494
+ disabled: c,
1495
+ "aria-label": x(H),
1496
+ style: k === H ? { zIndex: 1 } : void 0,
1497
+ onChange: (i) => q(H, Number(i.target.value))
1498
+ },
1499
+ H
1500
+ ))
1501
+ ]
1502
+ }
1503
+ );
1504
+ }), ts = "_root_1fiei_15", ns = "_plot_1fiei_24", os = "_svg_1fiei_30", rs = "_grid_1fiei_35", ss = "_zeroLine_1fiei_42", as = "_axisLabel_1fiei_46", ls = "_bar_1fiei_56", cs = "_hatch_1fiei_76", is = "_partialNote_1fiei_80", ds = "_line_1fiei_85", us = "_area_1fiei_119", fs = "_dot_1fiei_125", ps = "_crosshair_1fiei_136", _s = "_clickable_1fiei_143", hs = "_tooltip_1fiei_150", ms = "_tooltipHead_1fiei_164", gs = "_tooltipList_1fiei_170", Cs = "_tooltipRow_1fiei_178", vs = "_tooltipName_1fiei_186", bs = "_tooltipValue_1fiei_190", ws = "_swatch_1fiei_195", $s = "_legend_1fiei_202", ys = "_legendItem_1fiei_211", xs = "_data_1fiei_220", Y = {
1505
+ root: ts,
1506
+ plot: ns,
1507
+ svg: os,
1508
+ grid: rs,
1509
+ zeroLine: ss,
1510
+ axisLabel: as,
1511
+ bar: ls,
1512
+ hatch: cs,
1513
+ partialNote: is,
1514
+ line: ds,
1515
+ area: us,
1516
+ dot: fs,
1517
+ crosshair: ps,
1518
+ clickable: _s,
1519
+ tooltip: hs,
1520
+ tooltipHead: ms,
1521
+ tooltipList: gs,
1522
+ tooltipRow: Cs,
1523
+ tooltipName: vs,
1524
+ tooltipValue: bs,
1525
+ swatch: ws,
1468
1526
  legend: $s,
1469
- legendItem: ws,
1470
- data: ys
1471
- }, vt = [
1527
+ legendItem: ys,
1528
+ data: xs
1529
+ }, bt = [
1472
1530
  "var(--sp-chart-series-1-color)",
1473
1531
  "var(--sp-chart-series-2-color)",
1474
1532
  "var(--sp-chart-series-3-color)",
@@ -1477,20 +1535,20 @@ const Kr = "_root_14a1b_1", Xr = "_track_14a1b_12", Yr = "_range_14a1b_22", Qr =
1477
1535
  "var(--sp-chart-series-6-color)",
1478
1536
  "var(--sp-chart-series-7-color)",
1479
1537
  "var(--sp-chart-series-8-color)"
1480
- ], nt = vt.length, Ke = (e) => vt[e % nt];
1481
- function xs(e) {
1538
+ ], ot = bt.length, Xe = (e) => bt[e % ot];
1539
+ function Ns(e) {
1482
1540
  if (e <= 0) return 1;
1483
1541
  const t = 10 ** Math.floor(Math.log10(e)), o = e / t;
1484
1542
  return (o <= 1 ? 1 : o <= 2 ? 2 : o <= 5 ? 5 : 10) * t;
1485
1543
  }
1486
- function Ns(e, { tickCount: t = 5, zeroBased: o = !0 } = {}) {
1487
- const r = e.filter((_) => Number.isFinite(_)), a = r.length ? Math.min(...r) : 0, l = r.length ? Math.max(...r) : 0;
1544
+ function Ms(e, { tickCount: t = 5, zeroBased: o = !0 } = {}) {
1545
+ const r = e.filter((u) => Number.isFinite(u)), a = r.length ? Math.min(...r) : 0, l = r.length ? Math.max(...r) : 0;
1488
1546
  let s = o ? Math.min(0, a) : a, c = o ? Math.max(0, l) : l;
1489
1547
  s === c && (s === 0 ? c = 1 : (s = Math.min(0, s), c = Math.max(0, c)));
1490
- const h = xs((c - s) / Math.max(1, t)), m = Math.floor(s / h) * h, i = Math.ceil(c / h) * h, g = [], $ = Math.round((i - m) / h);
1491
- for (let _ = 0; _ <= $; _++) g.push(Number((m + _ * h).toPrecision(12)));
1492
- const w = i - m || 1;
1493
- return { min: m, max: i, ticks: g, ratio: (_) => (_ - m) / w };
1548
+ const h = Ns((c - s) / Math.max(1, t)), m = Math.floor(s / h) * h, d = Math.ceil(c / h) * h, C = [], $ = Math.round((d - m) / h);
1549
+ for (let u = 0; u <= $; u++) C.push(Number((m + u * h).toPrecision(12)));
1550
+ const y = d - m || 1;
1551
+ return { min: m, max: d, ticks: C, ratio: (u) => (u - m) / y };
1494
1552
  }
1495
1553
  function Ls(e, t = 0.25) {
1496
1554
  if (e <= 0) return { centre: [], width: 0 };
@@ -1500,18 +1558,18 @@ function Ls(e, t = 0.25) {
1500
1558
  width: o * (1 - t * 2)
1501
1559
  };
1502
1560
  }
1503
- function Ms(e, t, o, r, a, l = !0) {
1561
+ function ks(e, t, o, r, a, l = !0) {
1504
1562
  const s = Math.max(0, Math.min(a, o / 2, r));
1505
1563
  return s === 0 ? `M${e},${t}h${o}v${r}h${-o}Z` : l ? `M${e},${t + r}V${t + s}a${s},${s} 0 0 1 ${s},${-s}h${o - s * 2}a${s},${s} 0 0 1 ${s},${s}V${t + r}Z` : `M${e},${t}V${t + r - s}a${s},${s} 0 0 0 ${s},${s}h${o - s * 2}a${s},${s} 0 0 0 ${s},${-s}V${t}Z`;
1506
1564
  }
1507
- function ks(e) {
1565
+ function zs(e) {
1508
1566
  return e <= 0 ? [] : e === 1 ? [0.5] : Array.from({ length: e }, (t, o) => o / (e - 1));
1509
1567
  }
1510
- const zs = () => {
1568
+ const Rs = () => {
1511
1569
  var t, o;
1512
1570
  return ((o = (t = globalThis.process) == null ? void 0 : t.env) == null ? void 0 : o.NODE_ENV) !== "production";
1513
- }, rt = (e) => Number.isInteger(e) ? e.toLocaleString("en-US") : e.toLocaleString("en-US", { maximumFractionDigits: 2 }), be = { top: 8, right: 8, bottom: 24 }, ut = 8;
1514
- function Al({
1571
+ }, st = (e) => Number.isInteger(e) ? e.toLocaleString("en-US") : e.toLocaleString("en-US", { maximumFractionDigits: 2 }), we = { top: 8, right: 8, bottom: 24 }, ft = 8;
1572
+ function Ol({
1515
1573
  type: e,
1516
1574
  categories: t,
1517
1575
  series: o,
@@ -1519,261 +1577,261 @@ function Al({
1519
1577
  stacked: a = !1,
1520
1578
  legend: l,
1521
1579
  grid: s = !0,
1522
- formatValue: c = rt,
1580
+ formatValue: c = st,
1523
1581
  tickCount: h = 5,
1524
1582
  animated: m = !0,
1525
- partialFrom: i,
1526
- onPointClick: g,
1583
+ partialFrom: d,
1584
+ onPointClick: C,
1527
1585
  className: $,
1528
- "aria-label": w,
1529
- ..._
1586
+ "aria-label": y,
1587
+ ...u
1530
1588
  }) {
1531
- const b = se(), v = F(null), [k, I] = Q(0), [H, Y] = Q(null);
1589
+ const b = se(), g = P(null), [N, I] = Q(0), [T, X] = Q(null);
1532
1590
  te(() => {
1533
- const d = v.current;
1534
- if (!d) return;
1535
- const u = new ResizeObserver(([E]) => {
1536
- I(Math.round(E.contentRect.width));
1591
+ const f = g.current;
1592
+ if (!f) return;
1593
+ const p = new ResizeObserver(([S]) => {
1594
+ I(Math.round(S.contentRect.width));
1537
1595
  });
1538
- return u.observe(d), I(Math.round(d.getBoundingClientRect().width)), () => u.disconnect();
1596
+ return p.observe(f), I(Math.round(f.getBoundingClientRect().width)), () => p.disconnect();
1539
1597
  }, []), te(() => {
1540
- if (!zs()) return;
1541
- o.length > nt && console.warn(
1542
- `Chart: ${o.length} series, but the palette names ${nt}. Past that the colours repeat. Group the tail into an "Other" series, or split the chart.`
1598
+ if (!Rs()) return;
1599
+ o.length > ot && console.warn(
1600
+ `Chart: ${o.length} series, but the palette names ${ot}. Past that the colours repeat. Group the tail into an "Other" series, or split the chart.`
1543
1601
  );
1544
- const d = o.filter((u) => u.data.length !== t.length);
1545
- d.length && console.warn(
1546
- `Chart: ${d.map((u) => `"${u.name}"`).join(", ")} ${d.length === 1 ? "has" : "have"} a different number of values than there are categories (${t.length}). Values line up with categories by position, so the tail will be missing.`
1602
+ const f = o.filter((p) => p.data.length !== t.length);
1603
+ f.length && console.warn(
1604
+ `Chart: ${f.map((p) => `"${p.name}"`).join(", ")} ${f.length === 1 ? "has" : "have"} a different number of values than there are categories (${t.length}). Values line up with categories by position, so the tail will be missing.`
1547
1605
  );
1548
1606
  }, [o, t.length]);
1549
- const U = a && (e === "bar" || e === "area"), D = e === "bar" && typeof i == "number" && i >= 0, T = (d) => D && d >= i, B = _e(() => {
1550
- const d = [];
1551
- return U ? t.forEach((u, E) => {
1552
- let O = 0, Z = 0;
1553
- o.forEach((P) => {
1554
- const q = P.data[E];
1555
- typeof q == "number" && (q >= 0 ? O += q : Z += q);
1556
- }), d.push(O, Z);
1557
- }) : o.forEach((u) => u.data.forEach((E) => {
1558
- typeof E == "number" && d.push(E);
1559
- })), Ns(d, { tickCount: h, zeroBased: e !== "line" || d.some((u) => u < 0) });
1560
- }, [o, t, U, h, e]), X = _e(() => B.ticks.map(c), [B.ticks, c]), x = Math.max(...X.map((d) => d.length * 7), 24) + ut, M = Math.max(0, k - x - be.right), S = Math.max(0, r - be.top - be.bottom), j = e === "bar" ? 0 : 16, f = (d) => x + j + d * Math.max(0, M - j * 2), R = (d) => be.top + (1 - B.ratio(d)) * S, A = Ls(t.length), C = ks(t.length), N = (d) => {
1561
- var u;
1562
- return ((u = o[d]) == null ? void 0 : u.color) ?? Ke(d);
1563
- }, V = l ?? o.length > 1, W = _e(() => {
1564
- const d = o.map(() => []);
1565
- return t.forEach((u, E) => {
1566
- let O = 0, Z = 0;
1567
- o.forEach((P, q) => {
1568
- const ee = P.data[E];
1569
- if (!U || typeof ee != "number") {
1570
- d[q][E] = 0;
1607
+ const G = a && (e === "bar" || e === "area"), D = e === "bar" && typeof d == "number" && d >= 0, q = (f) => D && f >= d, V = _e(() => {
1608
+ const f = [];
1609
+ return G ? t.forEach((p, S) => {
1610
+ let B = 0, Z = 0;
1611
+ o.forEach((j) => {
1612
+ const O = j.data[S];
1613
+ typeof O == "number" && (O >= 0 ? B += O : Z += O);
1614
+ }), f.push(B, Z);
1615
+ }) : o.forEach((p) => p.data.forEach((S) => {
1616
+ typeof S == "number" && f.push(S);
1617
+ })), Ms(f, { tickCount: h, zeroBased: e !== "line" || f.some((p) => p < 0) });
1618
+ }, [o, t, G, h, e]), K = _e(() => V.ticks.map(c), [V.ticks, c]), x = Math.max(...K.map((f) => f.length * 7), 24) + ft, k = Math.max(0, N - x - we.right), w = Math.max(0, r - we.top - we.bottom), H = e === "bar" ? 0 : 16, i = (f) => x + H + f * Math.max(0, k - H * 2), z = (f) => we.top + (1 - V.ratio(f)) * w, A = Ls(t.length), v = zs(t.length), M = (f) => {
1619
+ var p;
1620
+ return ((p = o[f]) == null ? void 0 : p.color) ?? Xe(f);
1621
+ }, W = l ?? o.length > 1, F = _e(() => {
1622
+ const f = o.map(() => []);
1623
+ return t.forEach((p, S) => {
1624
+ let B = 0, Z = 0;
1625
+ o.forEach((j, O) => {
1626
+ const ee = j.data[S];
1627
+ if (!G || typeof ee != "number") {
1628
+ f[O][S] = 0;
1571
1629
  return;
1572
1630
  }
1573
- ee >= 0 ? (d[q][E] = O, O += ee) : (d[q][E] = Z, Z += ee);
1631
+ ee >= 0 ? (f[O][S] = B, B += ee) : (f[O][S] = Z, Z += ee);
1574
1632
  });
1575
- }), d;
1576
- }, [o, t, U]), G = pe(
1577
- (d) => {
1578
- const u = v.current;
1579
- if (!u || !t.length || M <= 0) return null;
1580
- const E = u.getBoundingClientRect(), O = e === "bar" ? M : Math.max(1, M - 32), Z = (d - E.left - x - (e === "bar" ? 0 : 16)) / O, P = e === "bar" ? A.centre : C;
1581
- let q = 0;
1582
- return P.forEach((ee, ne) => {
1583
- Math.abs(ee - Z) < Math.abs(P[q] - Z) && (q = ne);
1584
- }), { index: q, x: f(P[q]) };
1633
+ }), f;
1634
+ }, [o, t, G]), U = pe(
1635
+ (f) => {
1636
+ const p = g.current;
1637
+ if (!p || !t.length || k <= 0) return null;
1638
+ const S = p.getBoundingClientRect(), B = e === "bar" ? k : Math.max(1, k - 32), Z = (f - S.left - x - (e === "bar" ? 0 : 16)) / B, j = e === "bar" ? A.centre : v;
1639
+ let O = 0;
1640
+ return j.forEach((ee, ne) => {
1641
+ Math.abs(ee - Z) < Math.abs(j[O] - Z) && (O = ne);
1642
+ }), { index: O, x: i(j[O]) };
1585
1643
  },
1586
1644
  // x and the position arrays are derived from these; listing them keeps the
1587
1645
  // callback honest without re-creating it on every render.
1588
- [t.length, x, M, e, A.centre, C]
1646
+ [t.length, x, k, e, A.centre, v]
1589
1647
  // eslint-disable-line react-hooks/exhaustive-deps
1590
- ), p = (d, u) => {
1591
- var O;
1592
- const E = (O = o[d]) == null ? void 0 : O.data[u];
1593
- typeof E != "number" || !g || g({
1594
- series: o[d].name,
1595
- seriesIndex: d,
1596
- category: t[u],
1597
- categoryIndex: u,
1598
- value: E
1648
+ ), _ = (f, p) => {
1649
+ var B;
1650
+ const S = (B = o[f]) == null ? void 0 : B.data[p];
1651
+ typeof S != "number" || !C || C({
1652
+ series: o[f].name,
1653
+ seriesIndex: f,
1654
+ category: t[p],
1655
+ categoryIndex: p,
1656
+ value: S
1599
1657
  });
1600
- }, y = U || o.length === 1 ? A.width * M : A.width * M / o.length;
1601
- return /* @__PURE__ */ L(
1658
+ }, L = G || o.length === 1 ? A.width * k : A.width * k / o.length;
1659
+ return /* @__PURE__ */ R(
1602
1660
  "div",
1603
1661
  {
1604
- ..._,
1605
- className: z(K.root, $),
1662
+ ...u,
1663
+ className: E(Y.root, $),
1606
1664
  "data-type": e,
1607
1665
  "data-animated": m ? "" : void 0,
1608
- style: { ..._.style },
1666
+ style: { ...u.style },
1609
1667
  children: [
1610
- /* @__PURE__ */ L(
1668
+ /* @__PURE__ */ R(
1611
1669
  "div",
1612
1670
  {
1613
- ref: v,
1614
- className: K.plot,
1671
+ ref: g,
1672
+ className: Y.plot,
1615
1673
  style: { height: r },
1616
- onPointerMove: (d) => {
1617
- d.pointerType !== "touch" && Y(G(d.clientX));
1674
+ onPointerMove: (f) => {
1675
+ f.pointerType !== "touch" && X(U(f.clientX));
1618
1676
  },
1619
- onPointerLeave: () => Y(null),
1677
+ onPointerLeave: () => X(null),
1620
1678
  children: [
1621
- /* @__PURE__ */ L(
1679
+ /* @__PURE__ */ R(
1622
1680
  "svg",
1623
1681
  {
1624
- className: K.svg,
1625
- width: k || void 0,
1682
+ className: Y.svg,
1683
+ width: N || void 0,
1626
1684
  height: r,
1627
- viewBox: k ? `0 0 ${k} ${r}` : void 0,
1685
+ viewBox: N ? `0 0 ${N} ${r}` : void 0,
1628
1686
  role: "img",
1629
- "aria-labelledby": w ? void 0 : b,
1630
- "aria-label": w,
1687
+ "aria-labelledby": y ? void 0 : b,
1688
+ "aria-label": y,
1631
1689
  children: [
1632
- /* @__PURE__ */ L("defs", { children: [
1633
- o.map((d, u) => /* @__PURE__ */ L("linearGradient", { id: `${b}-grad-${u}`, x1: "0", y1: "0", x2: "0", y2: "1", children: [
1634
- /* @__PURE__ */ n("stop", { offset: "0%", stopColor: N(u), stopOpacity: "1" }),
1635
- /* @__PURE__ */ n("stop", { offset: "100%", stopColor: N(u), stopOpacity: "0.55" })
1636
- ] }, `grad-${u}`)),
1637
- o.map((d, u) => /* @__PURE__ */ L("linearGradient", { id: `${b}-area-${u}`, x1: "0", y1: "0", x2: "0", y2: "1", children: [
1638
- /* @__PURE__ */ n("stop", { offset: "0%", stopColor: N(u), stopOpacity: "0.45" }),
1639
- /* @__PURE__ */ n("stop", { offset: "100%", stopColor: N(u), stopOpacity: "0.02" })
1640
- ] }, `area-${u}`))
1690
+ /* @__PURE__ */ R("defs", { children: [
1691
+ o.map((f, p) => /* @__PURE__ */ R("linearGradient", { id: `${b}-grad-${p}`, x1: "0", y1: "0", x2: "0", y2: "1", children: [
1692
+ /* @__PURE__ */ n("stop", { offset: "0%", stopColor: M(p), stopOpacity: "1" }),
1693
+ /* @__PURE__ */ n("stop", { offset: "100%", stopColor: M(p), stopOpacity: "0.55" })
1694
+ ] }, `grad-${p}`)),
1695
+ o.map((f, p) => /* @__PURE__ */ R("linearGradient", { id: `${b}-area-${p}`, x1: "0", y1: "0", x2: "0", y2: "1", children: [
1696
+ /* @__PURE__ */ n("stop", { offset: "0%", stopColor: M(p), stopOpacity: "0.45" }),
1697
+ /* @__PURE__ */ n("stop", { offset: "100%", stopColor: M(p), stopOpacity: "0.02" })
1698
+ ] }, `area-${p}`))
1641
1699
  ] }),
1642
- D && /* @__PURE__ */ n("defs", { children: o.map((d, u) => /* @__PURE__ */ L(
1700
+ D && /* @__PURE__ */ n("defs", { children: o.map((f, p) => /* @__PURE__ */ R(
1643
1701
  "pattern",
1644
1702
  {
1645
- id: `${b}-hatch-${u}`,
1703
+ id: `${b}-hatch-${p}`,
1646
1704
  width: "8",
1647
1705
  height: "8",
1648
1706
  patternUnits: "userSpaceOnUse",
1649
1707
  patternTransform: "rotate(45)",
1650
1708
  children: [
1651
1709
  /* @__PURE__ */ n("rect", { width: "8", height: "8", fill: "transparent" }),
1652
- /* @__PURE__ */ n("line", { className: K.hatch, x1: "2", y1: "0", x2: "2", y2: "8", stroke: N(u) }),
1653
- /* @__PURE__ */ n("line", { className: K.hatch, x1: "6", y1: "0", x2: "6", y2: "8", stroke: N(u) })
1710
+ /* @__PURE__ */ n("line", { className: Y.hatch, x1: "2", y1: "0", x2: "2", y2: "8", stroke: M(p) }),
1711
+ /* @__PURE__ */ n("line", { className: Y.hatch, x1: "6", y1: "0", x2: "6", y2: "8", stroke: M(p) })
1654
1712
  ]
1655
1713
  },
1656
- `hatch-${u}`
1714
+ `hatch-${p}`
1657
1715
  )) }),
1658
- s && B.ticks.map((d) => /* @__PURE__ */ n(
1716
+ s && V.ticks.map((f) => /* @__PURE__ */ n(
1659
1717
  "line",
1660
1718
  {
1661
- className: z(K.grid, d === 0 && B.min < 0 && K.zeroLine),
1719
+ className: E(Y.grid, f === 0 && V.min < 0 && Y.zeroLine),
1662
1720
  x1: x,
1663
- x2: x + M,
1664
- y1: R(d),
1665
- y2: R(d)
1721
+ x2: x + k,
1722
+ y1: z(f),
1723
+ y2: z(f)
1666
1724
  },
1667
- `grid-${d}`
1725
+ `grid-${f}`
1668
1726
  )),
1669
- B.ticks.map((d, u) => /* @__PURE__ */ n("text", { className: K.axisLabel, x: x - ut, y: R(d), textAnchor: "end", dominantBaseline: "middle", children: X[u] }, `label-${d}`)),
1670
- t.map((d, u) => /* @__PURE__ */ n(
1727
+ V.ticks.map((f, p) => /* @__PURE__ */ n("text", { className: Y.axisLabel, x: x - ft, y: z(f), textAnchor: "end", dominantBaseline: "middle", children: K[p] }, `label-${f}`)),
1728
+ t.map((f, p) => /* @__PURE__ */ n(
1671
1729
  "text",
1672
1730
  {
1673
- className: K.axisLabel,
1674
- x: f(e === "bar" ? A.centre[u] : C[u]),
1675
- y: r - be.bottom / 2,
1731
+ className: Y.axisLabel,
1732
+ x: i(e === "bar" ? A.centre[p] : v[p]),
1733
+ y: r - we.bottom / 2,
1676
1734
  textAnchor: "middle",
1677
1735
  dominantBaseline: "middle",
1678
- children: d
1736
+ children: f
1679
1737
  },
1680
- `cat-${d}-${u}`
1738
+ `cat-${f}-${p}`
1681
1739
  )),
1682
- e === "bar" && o.map((d, u) => /* @__PURE__ */ n("g", { children: t.map((E, O) => {
1683
- const Z = d.data[O];
1740
+ e === "bar" && o.map((f, p) => /* @__PURE__ */ n("g", { children: t.map((S, B) => {
1741
+ const Z = f.data[B];
1684
1742
  if (typeof Z != "number") return null;
1685
- const P = W[u][O], q = R(P + Z), ee = R(P), ne = f(A.centre[O]) - A.width * M / 2, ie = U || o.length === 1 ? ne : ne + u * y, Qe = Math.max(1, y - (o.length > 1 && !U ? 2 : 0)), me = Math.max(1, Math.abs(ee - q)), De = D && O >= i;
1743
+ const j = F[p][B], O = z(j + Z), ee = z(j), ne = i(A.centre[B]) - A.width * k / 2, ie = G || o.length === 1 ? ne : ne + p * L, Je = Math.max(1, L - (o.length > 1 && !G ? 2 : 0)), me = Math.max(1, Math.abs(ee - O)), De = D && B >= d;
1686
1744
  return /* @__PURE__ */ n(
1687
1745
  "path",
1688
1746
  {
1689
- className: z(K.bar, g && K.clickable),
1690
- d: Ms(ie, Math.min(q, ee), Qe, me, 4, Z >= 0),
1691
- fill: De ? `url(#${b}-hatch-${u})` : `url(#${b}-grad-${u})`,
1692
- color: N(u),
1693
- "data-dim": H && H.index !== O ? "" : void 0,
1694
- onClick: () => p(u, O),
1695
- children: /* @__PURE__ */ n("title", { children: `${d.name}, ${E}: ${c(Z)}${De ? " so far" : ""}` })
1747
+ className: E(Y.bar, C && Y.clickable),
1748
+ d: ks(ie, Math.min(O, ee), Je, me, 4, Z >= 0),
1749
+ fill: De ? `url(#${b}-hatch-${p})` : `url(#${b}-grad-${p})`,
1750
+ color: M(p),
1751
+ "data-dim": T && T.index !== B ? "" : void 0,
1752
+ onClick: () => _(p, B),
1753
+ children: /* @__PURE__ */ n("title", { children: `${f.name}, ${S}: ${c(Z)}${De ? " so far" : ""}` })
1696
1754
  },
1697
- `bar-${E}-${O}`
1755
+ `bar-${S}-${B}`
1698
1756
  );
1699
- }) }, `bars-${d.name}-${u}`)),
1700
- e !== "bar" && o.map((d, u) => {
1701
- const E = [];
1702
- let O = [];
1703
- return d.data.forEach((Z, P) => {
1757
+ }) }, `bars-${f.name}-${p}`)),
1758
+ e !== "bar" && o.map((f, p) => {
1759
+ const S = [];
1760
+ let B = [];
1761
+ return f.data.forEach((Z, j) => {
1704
1762
  if (typeof Z != "number") {
1705
- O.length && E.push(O), O = [];
1763
+ B.length && S.push(B), B = [];
1706
1764
  return;
1707
1765
  }
1708
- O.push({ i: P, value: Z, base: W[u][P] });
1709
- }), O.length && E.push(O), /* @__PURE__ */ L("g", { children: [
1710
- E.map((Z, P) => {
1711
- const q = Z.map((ne, ie) => `${ie === 0 ? "M" : "L"}${f(C[ne.i])},${R(ne.base + ne.value)}`).join(" "), ee = e === "area" ? `${q} L${f(C[Z[Z.length - 1].i])},${R(Z[Z.length - 1].base)} ` + Z.slice().reverse().map((ne) => `L${f(C[ne.i])},${R(ne.base)}`).join(" ") + " Z" : null;
1712
- return /* @__PURE__ */ L("g", { children: [
1713
- ee && /* @__PURE__ */ n("path", { className: K.area, d: ee, fill: `url(#${b}-area-${u})` }),
1766
+ B.push({ i: j, value: Z, base: F[p][j] });
1767
+ }), B.length && S.push(B), /* @__PURE__ */ R("g", { children: [
1768
+ S.map((Z, j) => {
1769
+ const O = Z.map((ne, ie) => `${ie === 0 ? "M" : "L"}${i(v[ne.i])},${z(ne.base + ne.value)}`).join(" "), ee = e === "area" ? `${O} L${i(v[Z[Z.length - 1].i])},${z(Z[Z.length - 1].base)} ` + Z.slice().reverse().map((ne) => `L${i(v[ne.i])},${z(ne.base)}`).join(" ") + " Z" : null;
1770
+ return /* @__PURE__ */ R("g", { children: [
1771
+ ee && /* @__PURE__ */ n("path", { className: Y.area, d: ee, fill: `url(#${b}-area-${p})` }),
1714
1772
  /* @__PURE__ */ n(
1715
1773
  "path",
1716
1774
  {
1717
- className: K.line,
1718
- d: q,
1719
- stroke: N(u),
1720
- color: N(u),
1775
+ className: Y.line,
1776
+ d: O,
1777
+ stroke: M(p),
1778
+ color: M(p),
1721
1779
  fill: "none",
1722
1780
  pathLength: 1
1723
1781
  }
1724
1782
  )
1725
- ] }, `run-${P}`);
1783
+ ] }, `run-${j}`);
1726
1784
  }),
1727
- d.data.map(
1728
- (Z, P) => typeof Z == "number" ? /* @__PURE__ */ n(
1785
+ f.data.map(
1786
+ (Z, j) => typeof Z == "number" ? /* @__PURE__ */ n(
1729
1787
  "circle",
1730
1788
  {
1731
- className: z(K.dot, g && K.clickable),
1732
- cx: f(C[P]),
1733
- cy: R(W[u][P] + Z),
1789
+ className: E(Y.dot, C && Y.clickable),
1790
+ cx: i(v[j]),
1791
+ cy: z(F[p][j] + Z),
1734
1792
  r: 4,
1735
- fill: N(u),
1736
- color: N(u),
1737
- "data-on": (H == null ? void 0 : H.index) === P ? "" : void 0,
1738
- onClick: () => p(u, P),
1739
- children: /* @__PURE__ */ n("title", { children: `${d.name}, ${t[P]}: ${c(Z)}` })
1793
+ fill: M(p),
1794
+ color: M(p),
1795
+ "data-on": (T == null ? void 0 : T.index) === j ? "" : void 0,
1796
+ onClick: () => _(p, j),
1797
+ children: /* @__PURE__ */ n("title", { children: `${f.name}, ${t[j]}: ${c(Z)}` })
1740
1798
  },
1741
- `dot-${P}`
1799
+ `dot-${j}`
1742
1800
  ) : null
1743
1801
  )
1744
- ] }, `line-${d.name}-${u}`);
1802
+ ] }, `line-${f.name}-${p}`);
1745
1803
  }),
1746
- H && /* @__PURE__ */ n(
1804
+ T && /* @__PURE__ */ n(
1747
1805
  "line",
1748
1806
  {
1749
- className: K.crosshair,
1750
- x1: H.x,
1751
- x2: H.x,
1752
- y1: be.top,
1753
- y2: be.top + S
1807
+ className: Y.crosshair,
1808
+ x1: T.x,
1809
+ x2: T.x,
1810
+ y1: we.top,
1811
+ y2: we.top + w
1754
1812
  }
1755
1813
  )
1756
1814
  ]
1757
1815
  }
1758
1816
  ),
1759
- H && /* @__PURE__ */ L(
1817
+ T && /* @__PURE__ */ R(
1760
1818
  "div",
1761
1819
  {
1762
- className: K.tooltip,
1763
- style: H.x > x + M / 2 ? { right: Math.max(0, k - H.x + 12) } : { left: H.x + 12 },
1820
+ className: Y.tooltip,
1821
+ style: T.x > x + k / 2 ? { right: Math.max(0, N - T.x + 12) } : { left: T.x + 12 },
1764
1822
  role: "status",
1765
1823
  children: [
1766
- /* @__PURE__ */ n("p", { className: K.tooltipHead, children: t[H.index] }),
1767
- /* @__PURE__ */ n("ul", { className: K.tooltipList, children: o.map((d, u) => {
1768
- const E = d.data[H.index];
1769
- return /* @__PURE__ */ L("li", { className: K.tooltipRow, children: [
1770
- /* @__PURE__ */ n("span", { className: K.swatch, style: { background: N(u) }, "aria-hidden": "true" }),
1771
- /* @__PURE__ */ n("span", { className: K.tooltipName, children: d.name }),
1772
- /* @__PURE__ */ L("span", { className: K.tooltipValue, children: [
1773
- typeof E == "number" ? c(E) : "—",
1774
- T(H.index) && typeof E == "number" && /* @__PURE__ */ n("span", { className: K.partialNote, children: "so far" })
1824
+ /* @__PURE__ */ n("p", { className: Y.tooltipHead, children: t[T.index] }),
1825
+ /* @__PURE__ */ n("ul", { className: Y.tooltipList, children: o.map((f, p) => {
1826
+ const S = f.data[T.index];
1827
+ return /* @__PURE__ */ R("li", { className: Y.tooltipRow, children: [
1828
+ /* @__PURE__ */ n("span", { className: Y.swatch, style: { background: M(p) }, "aria-hidden": "true" }),
1829
+ /* @__PURE__ */ n("span", { className: Y.tooltipName, children: f.name }),
1830
+ /* @__PURE__ */ R("span", { className: Y.tooltipValue, children: [
1831
+ typeof S == "number" ? c(S) : "—",
1832
+ q(T.index) && typeof S == "number" && /* @__PURE__ */ n("span", { className: Y.partialNote, children: "so far" })
1775
1833
  ] })
1776
- ] }, d.name);
1834
+ ] }, f.name);
1777
1835
  }) })
1778
1836
  ]
1779
1837
  }
@@ -1781,44 +1839,44 @@ function Al({
1781
1839
  ]
1782
1840
  }
1783
1841
  ),
1784
- V && /* @__PURE__ */ n("ul", { className: K.legend, children: o.map((d, u) => /* @__PURE__ */ L("li", { className: K.legendItem, children: [
1785
- /* @__PURE__ */ n("span", { className: K.swatch, style: { background: N(u) }, "aria-hidden": "true" }),
1786
- d.name
1787
- ] }, d.name)) }),
1788
- /* @__PURE__ */ L("table", { className: K.data, id: b, children: [
1789
- /* @__PURE__ */ n("caption", { children: w ?? "Chart data" }),
1790
- /* @__PURE__ */ n("thead", { children: /* @__PURE__ */ L("tr", { children: [
1842
+ W && /* @__PURE__ */ n("ul", { className: Y.legend, children: o.map((f, p) => /* @__PURE__ */ R("li", { className: Y.legendItem, children: [
1843
+ /* @__PURE__ */ n("span", { className: Y.swatch, style: { background: M(p) }, "aria-hidden": "true" }),
1844
+ f.name
1845
+ ] }, f.name)) }),
1846
+ /* @__PURE__ */ R("table", { className: Y.data, id: b, children: [
1847
+ /* @__PURE__ */ n("caption", { children: y ?? "Chart data" }),
1848
+ /* @__PURE__ */ n("thead", { children: /* @__PURE__ */ R("tr", { children: [
1791
1849
  /* @__PURE__ */ n("th", { scope: "col", children: "Category" }),
1792
- o.map((d) => /* @__PURE__ */ n("th", { scope: "col", children: d.name }, d.name))
1850
+ o.map((f) => /* @__PURE__ */ n("th", { scope: "col", children: f.name }, f.name))
1793
1851
  ] }) }),
1794
- /* @__PURE__ */ n("tbody", { children: t.map((d, u) => /* @__PURE__ */ L("tr", { children: [
1795
- /* @__PURE__ */ n("th", { scope: "row", children: d }),
1796
- o.map((E) => /* @__PURE__ */ L("td", { children: [
1797
- typeof E.data[u] == "number" ? c(E.data[u]) : "—",
1798
- T(u) && typeof E.data[u] == "number" ? " so far" : ""
1799
- ] }, E.name))
1800
- ] }, d)) })
1852
+ /* @__PURE__ */ n("tbody", { children: t.map((f, p) => /* @__PURE__ */ R("tr", { children: [
1853
+ /* @__PURE__ */ n("th", { scope: "row", children: f }),
1854
+ o.map((S) => /* @__PURE__ */ R("td", { children: [
1855
+ typeof S.data[p] == "number" ? c(S.data[p]) : "—",
1856
+ q(p) && typeof S.data[p] == "number" ? " so far" : ""
1857
+ ] }, S.name))
1858
+ ] }, f)) })
1801
1859
  ] })
1802
1860
  ]
1803
1861
  }
1804
1862
  );
1805
1863
  }
1806
- const Rs = "_root_1v7ph_8", Es = "_row_1v7ph_15", Ds = "_line_1v7ph_21", Is = "_pressable_1v7ph_36", Hs = "_fill_1v7ph_50", Ss = "_label_1v7ph_58", qs = "_track_1v7ph_66", Ts = "_value_1v7ph_101", As = "_percent_1v7ph_106", fe = {
1807
- root: Rs,
1808
- row: Es,
1864
+ const Es = "_root_1v7ph_8", Is = "_row_1v7ph_15", Ds = "_line_1v7ph_21", Hs = "_pressable_1v7ph_36", Ss = "_fill_1v7ph_50", Ts = "_label_1v7ph_58", qs = "_track_1v7ph_66", As = "_value_1v7ph_101", Os = "_percent_1v7ph_106", fe = {
1865
+ root: Es,
1866
+ row: Is,
1809
1867
  line: Ds,
1810
- pressable: Is,
1811
- fill: Hs,
1812
- label: Ss,
1868
+ pressable: Hs,
1869
+ fill: Ss,
1870
+ label: Ts,
1813
1871
  track: qs,
1814
- value: Ts,
1815
- percent: As
1872
+ value: As,
1873
+ percent: Os
1816
1874
  };
1817
- function Ol({
1875
+ function Bl({
1818
1876
  items: e,
1819
1877
  max: t,
1820
1878
  showPercent: o = !1,
1821
- formatValue: r = rt,
1879
+ formatValue: r = st,
1822
1880
  colorful: a = !1,
1823
1881
  animated: l = !0,
1824
1882
  onItemClick: s,
@@ -1826,36 +1884,36 @@ function Ol({
1826
1884
  "aria-label": h,
1827
1885
  ...m
1828
1886
  }) {
1829
- const i = t ?? Math.max(0, ...e.map(($) => $.value)), g = e.reduce(($, w) => $ + (w.value > 0 ? w.value : 0), 0);
1887
+ const d = t ?? Math.max(0, ...e.map(($) => $.value)), C = e.reduce(($, y) => $ + (y.value > 0 ? y.value : 0), 0);
1830
1888
  return /* @__PURE__ */ n(
1831
1889
  "div",
1832
1890
  {
1833
1891
  ...m,
1834
- className: z(fe.root, c),
1892
+ className: E(fe.root, c),
1835
1893
  role: "list",
1836
1894
  "aria-label": h,
1837
1895
  "data-animated": l ? "" : void 0,
1838
- children: e.map(($, w) => {
1839
- const _ = i > 0 ? Math.max(0, $.value) / i : 0, b = g > 0 ? $.value / g * 100 : 0, v = $.color ?? (a ? Ke(w) : "var(--sp-chart-series-1-color)"), k = /* @__PURE__ */ L(he, { children: [
1896
+ children: e.map(($, y) => {
1897
+ const u = d > 0 ? Math.max(0, $.value) / d : 0, b = C > 0 ? $.value / C * 100 : 0, g = $.color ?? (a ? Xe(y) : "var(--sp-chart-series-1-color)"), N = /* @__PURE__ */ R(he, { children: [
1840
1898
  /* @__PURE__ */ n("span", { className: fe.label, children: $.label }),
1841
1899
  /* @__PURE__ */ n("span", { className: fe.track, children: /* @__PURE__ */ n(
1842
1900
  "span",
1843
1901
  {
1844
1902
  className: fe.fill,
1845
1903
  style: {
1846
- width: `${_ * 100}%`,
1847
- background: v,
1904
+ width: `${u * 100}%`,
1905
+ background: g,
1848
1906
  // Each row starts a little after the one above, so a poll
1849
1907
  // reads as counting up rather than snapping into place.
1850
1908
  // Capped, or a long list would still be filling when the
1851
1909
  // reader has finished reading it.
1852
- animationDelay: `${Math.min(w * 60, 360)}ms`
1910
+ animationDelay: `${Math.min(y * 60, 360)}ms`
1853
1911
  }
1854
1912
  }
1855
1913
  ) }),
1856
- /* @__PURE__ */ L("span", { className: fe.value, children: [
1914
+ /* @__PURE__ */ R("span", { className: fe.value, children: [
1857
1915
  r($.value),
1858
- o && /* @__PURE__ */ L("span", { className: fe.percent, children: [
1916
+ o && /* @__PURE__ */ R("span", { className: fe.percent, children: [
1859
1917
  Math.round(b),
1860
1918
  "%"
1861
1919
  ] })
@@ -1865,32 +1923,32 @@ function Ol({
1865
1923
  "button",
1866
1924
  {
1867
1925
  type: "button",
1868
- className: z(fe.line, fe.pressable),
1869
- onClick: () => s($, w),
1870
- children: k
1926
+ className: E(fe.line, fe.pressable),
1927
+ onClick: () => s($, y),
1928
+ children: N
1871
1929
  }
1872
- ) : /* @__PURE__ */ n("span", { className: fe.line, children: k }) }, `${$.label}-${w}`);
1930
+ ) : /* @__PURE__ */ n("span", { className: fe.line, children: N }) }, `${$.label}-${y}`);
1873
1931
  })
1874
1932
  }
1875
1933
  );
1876
1934
  }
1877
- const Os = "_root_ep6xn_6", Zs = "_svg_ep6xn_15", Bs = "_face_ep6xn_24", Vs = "_hole_ep6xn_25", Ws = "_slice_ep6xn_35", Ps = "_sweep_ep6xn_57", Fs = "_clickable_ep6xn_70", js = "_total_ep6xn_76", Gs = "_totalLabel_ep6xn_84", Us = "_legend_ep6xn_89", Ks = "_legendItem_ep6xn_98", Xs = "_legendName_ep6xn_113", Ys = "_legendValue_ep6xn_121", Qs = "_legendPercent_ep6xn_126", Js = "_swatch_ep6xn_131", oe = {
1878
- root: Os,
1935
+ const Bs = "_root_ep6xn_6", Zs = "_svg_ep6xn_15", Vs = "_face_ep6xn_24", Ws = "_hole_ep6xn_25", Ps = "_slice_ep6xn_35", Fs = "_sweep_ep6xn_57", js = "_clickable_ep6xn_70", Gs = "_total_ep6xn_76", Us = "_totalLabel_ep6xn_84", Ks = "_legend_ep6xn_89", Xs = "_legendItem_ep6xn_98", Ys = "_legendName_ep6xn_113", Qs = "_legendValue_ep6xn_121", Js = "_legendPercent_ep6xn_126", ea = "_swatch_ep6xn_131", oe = {
1936
+ root: Bs,
1879
1937
  svg: Zs,
1880
- face: Bs,
1881
- hole: Vs,
1882
- slice: Ws,
1883
- sweep: Ps,
1884
- clickable: Fs,
1885
- total: js,
1886
- totalLabel: Gs,
1887
- legend: Us,
1888
- legendItem: Ks,
1889
- legendName: Xs,
1890
- legendValue: Ys,
1891
- legendPercent: Qs,
1892
- swatch: Js
1893
- }, Me = (e, t, o) => {
1938
+ face: Vs,
1939
+ hole: Ws,
1940
+ slice: Ps,
1941
+ sweep: Fs,
1942
+ clickable: js,
1943
+ total: Gs,
1944
+ totalLabel: Us,
1945
+ legend: Ks,
1946
+ legendItem: Xs,
1947
+ legendName: Ys,
1948
+ legendValue: Qs,
1949
+ legendPercent: Js,
1950
+ swatch: ea
1951
+ }, ke = (e, t, o) => {
1894
1952
  const r = o * 2 * Math.PI - Math.PI / 2;
1895
1953
  return { x: e + t * Math.cos(r), y: e + t * Math.sin(r) };
1896
1954
  };
@@ -1901,22 +1959,22 @@ function Zl({
1901
1959
  size: r = 180,
1902
1960
  legend: a = !0,
1903
1961
  animated: l = !0,
1904
- formatValue: s = rt,
1962
+ formatValue: s = st,
1905
1963
  onSliceClick: c,
1906
1964
  className: h,
1907
1965
  "aria-label": m,
1908
- ...i
1966
+ ...d
1909
1967
  }) {
1910
- const [g, $] = Q(null), w = se(), _ = e.filter((D) => D.value > 0), b = _.reduce((D, T) => D + T.value, 0), v = r / 2, k = v - 2, I = t ? k * 0.62 : 0;
1911
- let H = 0;
1912
- const Y = _.map((D, T) => {
1913
- const B = b > 0 ? D.value / b : 0, X = H;
1914
- H += B;
1915
- const x = Me(v, k, X), M = Me(v, k, H), S = B > 0.5 ? 1 : 0, j = B >= 0.999, f = j ? t ? `M${v},${v - k} A${k},${k} 0 1 1 ${v - 0.01},${v - k} Z M${v},${v - I} A${I},${I} 0 1 0 ${v - 0.01},${v - I} Z` : `M${v},${v - k} A${k},${k} 0 1 1 ${v - 0.01},${v - k} Z` : t ? `M${x.x},${x.y} A${k},${k} 0 ${S} 1 ${M.x},${M.y} L${Me(v, I, H).x},${Me(v, I, H).y} A${I},${I} 0 ${S} 0 ${Me(v, I, X).x},${Me(v, I, X).y} Z` : `M${v},${v} L${x.x},${x.y} A${k},${k} 0 ${S} 1 ${M.x},${M.y} Z`;
1916
- return { slice: D, index: T, d: f, fraction: B, fillRule: j && t ? "evenodd" : void 0 };
1917
- }), U = (D) => e.indexOf(D);
1918
- return /* @__PURE__ */ L("div", { ...i, className: z(oe.root, h), "data-animated": l ? "" : void 0, children: [
1919
- /* @__PURE__ */ L(
1968
+ const [C, $] = Q(null), y = se(), u = e.filter((D) => D.value > 0), b = u.reduce((D, q) => D + q.value, 0), g = r / 2, N = g - 2, I = t ? N * 0.62 : 0;
1969
+ let T = 0;
1970
+ const X = u.map((D, q) => {
1971
+ const V = b > 0 ? D.value / b : 0, K = T;
1972
+ T += V;
1973
+ const x = ke(g, N, K), k = ke(g, N, T), w = V > 0.5 ? 1 : 0, H = V >= 0.999, i = H ? t ? `M${g},${g - N} A${N},${N} 0 1 1 ${g - 0.01},${g - N} Z M${g},${g - I} A${I},${I} 0 1 0 ${g - 0.01},${g - I} Z` : `M${g},${g - N} A${N},${N} 0 1 1 ${g - 0.01},${g - N} Z` : t ? `M${x.x},${x.y} A${N},${N} 0 ${w} 1 ${k.x},${k.y} L${ke(g, I, T).x},${ke(g, I, T).y} A${I},${I} 0 ${w} 0 ${ke(g, I, K).x},${ke(g, I, K).y} Z` : `M${g},${g} L${x.x},${x.y} A${N},${N} 0 ${w} 1 ${k.x},${k.y} Z`;
1974
+ return { slice: D, index: q, d: i, fraction: V, fillRule: H && t ? "evenodd" : void 0 };
1975
+ }), G = (D) => e.indexOf(D);
1976
+ return /* @__PURE__ */ R("div", { ...d, className: E(oe.root, h), "data-animated": l ? "" : void 0, children: [
1977
+ /* @__PURE__ */ R(
1920
1978
  "svg",
1921
1979
  {
1922
1980
  className: oe.svg,
@@ -1926,43 +1984,43 @@ function Zl({
1926
1984
  role: "img",
1927
1985
  "aria-label": m ?? "Pie chart",
1928
1986
  children: [
1929
- /* @__PURE__ */ L("defs", { children: [
1930
- /* @__PURE__ */ L("radialGradient", { id: `${w}-face`, cx: "32%", cy: "26%", r: "78%", children: [
1987
+ /* @__PURE__ */ R("defs", { children: [
1988
+ /* @__PURE__ */ R("radialGradient", { id: `${y}-face`, cx: "32%", cy: "26%", r: "78%", children: [
1931
1989
  /* @__PURE__ */ n("stop", { offset: "0%", stopColor: "#fff", stopOpacity: "0.22" }),
1932
1990
  /* @__PURE__ */ n("stop", { offset: "55%", stopColor: "#fff", stopOpacity: "0.04" }),
1933
1991
  /* @__PURE__ */ n("stop", { offset: "100%", stopColor: "#000", stopOpacity: "0.28" })
1934
1992
  ] }),
1935
- /* @__PURE__ */ L("radialGradient", { id: `${w}-edge`, cx: "50%", cy: "50%", r: "50%", children: [
1993
+ /* @__PURE__ */ R("radialGradient", { id: `${y}-edge`, cx: "50%", cy: "50%", r: "50%", children: [
1936
1994
  /* @__PURE__ */ n("stop", { offset: "88%", stopColor: "#000", stopOpacity: "0" }),
1937
1995
  /* @__PURE__ */ n("stop", { offset: "100%", stopColor: "#000", stopOpacity: "0.45" })
1938
1996
  ] })
1939
1997
  ] }),
1940
- /* @__PURE__ */ L("g", { className: oe.sweep, children: [
1941
- Y.map(({ slice: D, index: T, d: B, fillRule: X }) => /* @__PURE__ */ n(
1998
+ /* @__PURE__ */ R("g", { className: oe.sweep, children: [
1999
+ X.map(({ slice: D, index: q, d: V, fillRule: K }) => /* @__PURE__ */ n(
1942
2000
  "path",
1943
2001
  {
1944
- className: z(oe.slice, c && oe.clickable),
1945
- d: B,
1946
- fill: D.color ?? Ke(U(D)),
1947
- fillRule: X,
1948
- "data-dim": g !== null && g !== T ? "" : void 0,
1949
- onPointerEnter: () => $(T),
2002
+ className: E(oe.slice, c && oe.clickable),
2003
+ d: V,
2004
+ fill: D.color ?? Xe(G(D)),
2005
+ fillRule: K,
2006
+ "data-dim": C !== null && C !== q ? "" : void 0,
2007
+ onPointerEnter: () => $(q),
1950
2008
  onPointerLeave: () => $(null),
1951
- onClick: () => c == null ? void 0 : c(D, U(D)),
2009
+ onClick: () => c == null ? void 0 : c(D, G(D)),
1952
2010
  children: /* @__PURE__ */ n("title", { children: `${D.label}: ${s(D.value)}` })
1953
2011
  },
1954
- `${D.label}-${T}`
2012
+ `${D.label}-${q}`
1955
2013
  )),
1956
- /* @__PURE__ */ n("circle", { className: oe.face, cx: v, cy: v, r: k, fill: `url(#${w}-face)` }),
1957
- /* @__PURE__ */ n("circle", { className: oe.face, cx: v, cy: v, r: k, fill: `url(#${w}-edge)` }),
2014
+ /* @__PURE__ */ n("circle", { className: oe.face, cx: g, cy: g, r: N, fill: `url(#${y}-face)` }),
2015
+ /* @__PURE__ */ n("circle", { className: oe.face, cx: g, cy: g, r: N, fill: `url(#${y}-edge)` }),
1958
2016
  t && // The wall of the hole, so the middle reads as cut through the
1959
2017
  // disc rather than printed on it.
1960
2018
  /* @__PURE__ */ n(
1961
2019
  "circle",
1962
2020
  {
1963
2021
  className: oe.hole,
1964
- cx: v,
1965
- cy: v,
2022
+ cx: g,
2023
+ cy: g,
1966
2024
  r: I,
1967
2025
  fill: "none",
1968
2026
  stroke: "#000",
@@ -1971,52 +2029,52 @@ function Zl({
1971
2029
  }
1972
2030
  )
1973
2031
  ] }),
1974
- t && /* @__PURE__ */ L(he, { children: [
1975
- /* @__PURE__ */ n("text", { className: oe.total, x: v, y: v - (o ? 6 : 0), textAnchor: "middle", dominantBaseline: "middle", children: s(g !== null ? _[g].value : b) }),
1976
- o && /* @__PURE__ */ n("text", { className: oe.totalLabel, x: v, y: v + 14, textAnchor: "middle", dominantBaseline: "middle", children: g !== null ? _[g].label : o })
2032
+ t && /* @__PURE__ */ R(he, { children: [
2033
+ /* @__PURE__ */ n("text", { className: oe.total, x: g, y: g - (o ? 6 : 0), textAnchor: "middle", dominantBaseline: "middle", children: s(C !== null ? u[C].value : b) }),
2034
+ o && /* @__PURE__ */ n("text", { className: oe.totalLabel, x: g, y: g + 14, textAnchor: "middle", dominantBaseline: "middle", children: C !== null ? u[C].label : o })
1977
2035
  ] })
1978
2036
  ]
1979
2037
  }
1980
2038
  ),
1981
- a && /* @__PURE__ */ n("ul", { className: oe.legend, children: _.map((D, T) => /* @__PURE__ */ L(
2039
+ a && /* @__PURE__ */ n("ul", { className: oe.legend, children: u.map((D, q) => /* @__PURE__ */ R(
1982
2040
  "li",
1983
2041
  {
1984
2042
  className: oe.legendItem,
1985
- "data-dim": g !== null && g !== T ? "" : void 0,
2043
+ "data-dim": C !== null && C !== q ? "" : void 0,
1986
2044
  children: [
1987
2045
  /* @__PURE__ */ n(
1988
2046
  "span",
1989
2047
  {
1990
2048
  className: oe.swatch,
1991
- style: { background: D.color ?? Ke(U(D)) },
2049
+ style: { background: D.color ?? Xe(G(D)) },
1992
2050
  "aria-hidden": "true"
1993
2051
  }
1994
2052
  ),
1995
2053
  /* @__PURE__ */ n("span", { className: oe.legendName, children: D.label }),
1996
- /* @__PURE__ */ L("span", { className: oe.legendValue, children: [
2054
+ /* @__PURE__ */ R("span", { className: oe.legendValue, children: [
1997
2055
  s(D.value),
1998
- /* @__PURE__ */ L("span", { className: oe.legendPercent, children: [
2056
+ /* @__PURE__ */ R("span", { className: oe.legendPercent, children: [
1999
2057
  b > 0 ? Math.round(D.value / b * 100) : 0,
2000
2058
  "%"
2001
2059
  ] })
2002
2060
  ] })
2003
2061
  ]
2004
2062
  },
2005
- `${D.label}-${T}`
2063
+ `${D.label}-${q}`
2006
2064
  )) })
2007
2065
  ] });
2008
2066
  }
2009
- const ea = "_root_czld4_18", ta = "_item_czld4_24", na = "_selfLabeled_czld4_33", oa = "_label_czld4_37", ra = "_input_czld4_41", sa = "_box_czld4_57", aa = "_tick_czld4_80", la = "_dash_czld4_81", ca = "_tickPath_czld4_95", re = {
2010
- root: ea,
2011
- item: ta,
2012
- selfLabeled: na,
2013
- label: oa,
2014
- input: ra,
2015
- box: sa,
2016
- tick: aa,
2017
- dash: la,
2018
- tickPath: ca
2019
- }, bt = Re(null);
2067
+ const ta = "_root_czld4_18", na = "_item_czld4_24", oa = "_selfLabeled_czld4_33", ra = "_label_czld4_37", sa = "_input_czld4_41", aa = "_box_czld4_57", la = "_tick_czld4_80", ca = "_dash_czld4_81", ia = "_tickPath_czld4_95", re = {
2068
+ root: ta,
2069
+ item: na,
2070
+ selfLabeled: oa,
2071
+ label: ra,
2072
+ input: sa,
2073
+ box: aa,
2074
+ tick: la,
2075
+ dash: ca,
2076
+ tickPath: ia
2077
+ }, wt = Ee(null);
2020
2078
  function $t({
2021
2079
  checked: e,
2022
2080
  indeterminate: t,
@@ -2025,10 +2083,10 @@ function $t({
2025
2083
  value: a,
2026
2084
  ariaLabel: l
2027
2085
  }) {
2028
- const s = F(null);
2086
+ const s = P(null);
2029
2087
  return te(() => {
2030
2088
  s.current && (s.current.indeterminate = t === !0);
2031
- }, [t]), /* @__PURE__ */ L(he, { children: [
2089
+ }, [t]), /* @__PURE__ */ R(he, { children: [
2032
2090
  /* @__PURE__ */ n(
2033
2091
  "input",
2034
2092
  {
@@ -2042,7 +2100,7 @@ function $t({
2042
2100
  onChange: (c) => r(c.currentTarget.checked)
2043
2101
  }
2044
2102
  ),
2045
- /* @__PURE__ */ L("span", { className: re.box, "aria-hidden": "true", children: [
2103
+ /* @__PURE__ */ R("span", { className: re.box, "aria-hidden": "true", children: [
2046
2104
  /* @__PURE__ */ n("svg", { className: re.tick, viewBox: "0 0 16 16", fill: "none", children: /* @__PURE__ */ n(
2047
2105
  "path",
2048
2106
  {
@@ -2059,7 +2117,7 @@ function $t({
2059
2117
  ] })
2060
2118
  ] });
2061
2119
  }
2062
- function ia({
2120
+ function da({
2063
2121
  value: e,
2064
2122
  onValueChange: t,
2065
2123
  disabled: o,
@@ -2067,10 +2125,10 @@ function ia({
2067
2125
  "aria-label": a,
2068
2126
  children: l
2069
2127
  }) {
2070
- return /* @__PURE__ */ n(bt.Provider, { value: { value: e, onValueChange: t, disabled: o }, children: /* @__PURE__ */ n("div", { role: "group", "aria-label": a, className: z(re.root, r), children: l }) });
2128
+ return /* @__PURE__ */ n(wt.Provider, { value: { value: e, onValueChange: t, disabled: o }, children: /* @__PURE__ */ n("div", { role: "group", "aria-label": a, className: E(re.root, r), children: l }) });
2071
2129
  }
2072
- function da({ value: e, disabled: t, children: o }) {
2073
- const r = Ee(bt);
2130
+ function ua({ value: e, disabled: t, children: o }) {
2131
+ const r = Ie(wt);
2074
2132
  if (!r) throw new Error("CheckboxGroup.Item must be inside a CheckboxGroup");
2075
2133
  const a = t || r.disabled, l = r.value.includes(e), s = /* @__PURE__ */ n(
2076
2134
  $t,
@@ -2081,13 +2139,13 @@ function da({ value: e, disabled: t, children: o }) {
2081
2139
  onToggle: (c) => r.onValueChange(c ? [...r.value, e] : r.value.filter((h) => h !== e))
2082
2140
  }
2083
2141
  );
2084
- return o == null ? /* @__PURE__ */ n("span", { className: re.item, children: s }) : /* @__PURE__ */ L("label", { className: z(re.item, re.selfLabeled), children: [
2142
+ return o == null ? /* @__PURE__ */ n("span", { className: re.item, children: s }) : /* @__PURE__ */ R("label", { className: E(re.item, re.selfLabeled), children: [
2085
2143
  s,
2086
2144
  /* @__PURE__ */ n("span", { className: re.label, children: o })
2087
2145
  ] });
2088
2146
  }
2089
- const Bl = Object.assign(ia, { Item: da });
2090
- function Vl({
2147
+ const Vl = Object.assign(da, { Item: ua });
2148
+ function Wl({
2091
2149
  checked: e,
2092
2150
  onCheckedChange: t,
2093
2151
  indeterminate: o,
@@ -2106,27 +2164,27 @@ function Vl({
2106
2164
  onToggle: t
2107
2165
  }
2108
2166
  );
2109
- return s == null ? /* @__PURE__ */ n("span", { className: z(re.item, a), children: c }) : /* @__PURE__ */ L("label", { className: z(re.item, re.selfLabeled, a), children: [
2167
+ return s == null ? /* @__PURE__ */ n("span", { className: E(re.item, a), children: c }) : /* @__PURE__ */ R("label", { className: E(re.item, re.selfLabeled, a), children: [
2110
2168
  c,
2111
2169
  /* @__PURE__ */ n("span", { className: re.label, children: s })
2112
2170
  ] });
2113
2171
  }
2114
- const ua = "_root_mhh35_15", fa = "_item_mhh35_23", pa = "_selfLabeled_mhh35_32", _a = "_input_mhh35_36", ha = "_orb_mhh35_52", ma = "_burst_mhh35_99", $e = {
2115
- root: ua,
2116
- item: fa,
2117
- selfLabeled: pa,
2118
- input: _a,
2119
- orb: ha,
2120
- burst: ma
2121
- }, wt = Re(null);
2122
- function ga({ value: e, onValueChange: t, disabled: o, className: r, children: a }) {
2172
+ const fa = "_root_mhh35_15", pa = "_item_mhh35_23", _a = "_selfLabeled_mhh35_32", ha = "_input_mhh35_36", ma = "_orb_mhh35_52", ga = "_burst_mhh35_99", $e = {
2173
+ root: fa,
2174
+ item: pa,
2175
+ selfLabeled: _a,
2176
+ input: ha,
2177
+ orb: ma,
2178
+ burst: ga
2179
+ }, yt = Ee(null);
2180
+ function Ca({ value: e, onValueChange: t, disabled: o, className: r, children: a }) {
2123
2181
  const l = se();
2124
- return /* @__PURE__ */ n(wt.Provider, { value: { value: e, onValueChange: t, disabled: o, name: l }, children: /* @__PURE__ */ n("div", { role: "radiogroup", className: z($e.root, r), children: a }) });
2182
+ return /* @__PURE__ */ n(yt.Provider, { value: { value: e, onValueChange: t, disabled: o, name: l }, children: /* @__PURE__ */ n("div", { role: "radiogroup", className: E($e.root, r), children: a }) });
2125
2183
  }
2126
- function Ca({ value: e, disabled: t, children: o }) {
2127
- const r = Ee(wt);
2184
+ function va({ value: e, disabled: t, children: o }) {
2185
+ const r = Ie(yt);
2128
2186
  if (!r) throw new Error("RadioGroup.Item must be inside a RadioGroup");
2129
- const a = t || r.disabled, l = /* @__PURE__ */ L(he, { children: [
2187
+ const a = t || r.disabled, l = /* @__PURE__ */ R(he, { children: [
2130
2188
  /* @__PURE__ */ n(
2131
2189
  "input",
2132
2190
  {
@@ -2139,17 +2197,17 @@ function Ca({ value: e, disabled: t, children: o }) {
2139
2197
  onChange: () => r.onValueChange(e)
2140
2198
  }
2141
2199
  ),
2142
- /* @__PURE__ */ n("span", { className: z($e.orb, "spRadioOrb"), "aria-hidden": "true", children: /* @__PURE__ */ n("span", { className: $e.burst }) })
2200
+ /* @__PURE__ */ n("span", { className: E($e.orb, "spRadioOrb"), "aria-hidden": "true", children: /* @__PURE__ */ n("span", { className: $e.burst }) })
2143
2201
  ] });
2144
- return o == null ? /* @__PURE__ */ n("span", { className: $e.item, children: l }) : /* @__PURE__ */ L("label", { className: z($e.item, $e.selfLabeled), children: [
2202
+ return o == null ? /* @__PURE__ */ n("span", { className: $e.item, children: l }) : /* @__PURE__ */ R("label", { className: E($e.item, $e.selfLabeled), children: [
2145
2203
  l,
2146
2204
  o
2147
2205
  ] });
2148
2206
  }
2149
- const Wl = Object.assign(ga, { Item: Ca }), va = "_progress_1cre6_16", ba = {
2150
- progress: va
2207
+ const Pl = Object.assign(Ca, { Item: va }), ba = "_progress_1cre6_16", wa = {
2208
+ progress: ba
2151
2209
  };
2152
- function Pl({ value: e, max: t = 100, className: o, style: r, ...a }) {
2210
+ function Fl({ value: e, max: t = 100, className: o, style: r, ...a }) {
2153
2211
  const l = t > 0 ? Math.min(Math.max(e / t * 100, 0), 100) : 0;
2154
2212
  return /* @__PURE__ */ n(
2155
2213
  "div",
@@ -2159,73 +2217,73 @@ function Pl({ value: e, max: t = 100, className: o, style: r, ...a }) {
2159
2217
  "aria-valuenow": e,
2160
2218
  "aria-valuemin": 0,
2161
2219
  "aria-valuemax": t,
2162
- className: z(ba.progress, o),
2220
+ className: E(wa.progress, o),
2163
2221
  style: r,
2164
2222
  children: /* @__PURE__ */ n("div", { style: { width: `${l}%`, height: "100%" } })
2165
2223
  }
2166
2224
  );
2167
2225
  }
2168
- const $a = "_message_ca22y_14", wa = "_info_ca22y_44", ya = "_warning_ca22y_49", xa = "_alert_ca22y_56", Na = "_icon_ca22y_63", La = "_body_ca22y_74", Ma = "_title_ca22y_83", ka = "_text_ca22y_90", ke = {
2226
+ const $a = "_message_ca22y_14", ya = "_info_ca22y_44", xa = "_warning_ca22y_49", Na = "_alert_ca22y_56", Ma = "_icon_ca22y_63", La = "_body_ca22y_74", ka = "_title_ca22y_83", za = "_text_ca22y_90", ze = {
2169
2227
  message: $a,
2170
- info: wa,
2171
- warning: ya,
2172
- alert: xa,
2173
- icon: Na,
2228
+ info: ya,
2229
+ warning: xa,
2230
+ alert: Na,
2231
+ icon: Ma,
2174
2232
  body: La,
2175
- title: Ma,
2176
- text: ka
2177
- }, za = {
2178
- info: /* @__PURE__ */ n(ko, {}),
2179
- warning: /* @__PURE__ */ n(zo, {}),
2180
- alert: /* @__PURE__ */ n(Ro, {})
2233
+ title: ka,
2234
+ text: za
2181
2235
  }, Ra = {
2236
+ info: /* @__PURE__ */ n(zo, {}),
2237
+ warning: /* @__PURE__ */ n(Ro, {}),
2238
+ alert: /* @__PURE__ */ n(Eo, {})
2239
+ }, Ea = {
2182
2240
  info: { role: "status", live: "polite" },
2183
2241
  warning: { role: "status", live: "polite" },
2184
2242
  alert: { role: "alert" }
2185
- }, Fl = ae(function({ variant: t = "info", title: o, icon: r, className: a, children: l, ...s }, c) {
2186
- const h = r === void 0 ? za[t] : r, { role: m, live: i } = Ra[t];
2187
- return /* @__PURE__ */ L(
2243
+ }, jl = ae(function({ variant: t = "info", title: o, icon: r, className: a, children: l, ...s }, c) {
2244
+ const h = r === void 0 ? Ra[t] : r, { role: m, live: d } = Ea[t];
2245
+ return /* @__PURE__ */ R(
2188
2246
  "div",
2189
2247
  {
2190
2248
  ...s,
2191
2249
  ref: c,
2192
2250
  role: m,
2193
- "aria-live": i,
2194
- className: z(ke.message, ke[t], a),
2251
+ "aria-live": d,
2252
+ className: E(ze.message, ze[t], a),
2195
2253
  children: [
2196
- h != null && /* @__PURE__ */ n("span", { className: ke.icon, "aria-hidden": "true", children: h }),
2197
- /* @__PURE__ */ L("div", { className: ke.body, children: [
2198
- o != null && /* @__PURE__ */ n("p", { className: ke.title, children: o }),
2199
- l != null && /* @__PURE__ */ n("div", { className: ke.text, children: l })
2254
+ h != null && /* @__PURE__ */ n("span", { className: ze.icon, "aria-hidden": "true", children: h }),
2255
+ /* @__PURE__ */ R("div", { className: ze.body, children: [
2256
+ o != null && /* @__PURE__ */ n("p", { className: ze.title, children: o }),
2257
+ l != null && /* @__PURE__ */ n("div", { className: ze.text, children: l })
2200
2258
  ] })
2201
2259
  ]
2202
2260
  }
2203
2261
  );
2204
- }), Ea = "_dialog_zbndh_2", Da = "_inner_zbndh_71", Ia = "_size4_zbndh_76", Ha = "_title_zbndh_80", Sa = "_closeX_zbndh_88", Ze = {
2205
- dialog: Ea,
2262
+ }), Ia = "_dialog_zbndh_2", Da = "_inner_zbndh_71", Ha = "_size4_zbndh_76", Sa = "_title_zbndh_80", Ta = "_closeX_zbndh_88", Ze = {
2263
+ dialog: Ia,
2206
2264
  inner: Da,
2207
- size4: Ia,
2208
- title: Ha,
2209
- closeX: Sa
2265
+ size4: Ha,
2266
+ title: Sa,
2267
+ closeX: Ta
2210
2268
  };
2211
- let Ge = 0;
2212
- const yt = Re(null), Ve = () => {
2213
- const e = Ee(yt);
2269
+ let Ue = 0;
2270
+ const xt = Ee(null), We = () => {
2271
+ const e = Ie(xt);
2214
2272
  if (!e) throw new Error("Dialog parts must be inside a Dialog");
2215
2273
  return e;
2216
2274
  };
2217
- function xt(e) {
2275
+ function Nt(e) {
2218
2276
  return function({ open: o, onOpenChange: r, children: a }) {
2219
- const [l, s] = Q(!1), c = o !== void 0, h = c ? o : l, m = (_) => {
2220
- c || s(_), r == null || r(_);
2221
- }, i = se(), g = se(), [$, w] = Q(!1);
2222
- return /* @__PURE__ */ n(yt.Provider, { value: { open: h, setOpen: m, titleId: i, descId: g, alert: e, hasDesc: $, setHasDesc: w }, children: a });
2277
+ const [l, s] = Q(!1), c = o !== void 0, h = c ? o : l, m = (u) => {
2278
+ c || s(u), r == null || r(u);
2279
+ }, d = se(), C = se(), [$, y] = Q(!1);
2280
+ return /* @__PURE__ */ n(xt.Provider, { value: { open: h, setOpen: m, titleId: d, descId: C, alert: e, hasDesc: $, setHasDesc: y }, children: a });
2223
2281
  };
2224
2282
  }
2225
- const qa = xt(!1), Nt = (e, t) => {
2226
- if (!ze(e)) return e;
2283
+ const qa = Nt(!1), Mt = (e, t) => {
2284
+ if (!Re(e)) return e;
2227
2285
  const o = e;
2228
- return Xe(o, {
2286
+ return Ye(o, {
2229
2287
  onClick: (r) => {
2230
2288
  var a, l;
2231
2289
  (l = (a = o.props).onClick) == null || l.call(a, r), t();
@@ -2235,24 +2293,24 @@ const qa = xt(!1), Nt = (e, t) => {
2235
2293
  function Lt({
2236
2294
  children: e
2237
2295
  }) {
2238
- const t = Ve();
2239
- return /* @__PURE__ */ n(he, { children: Nt(e, () => t.setOpen(!0)) });
2296
+ const t = We();
2297
+ return /* @__PURE__ */ n(he, { children: Mt(e, () => t.setOpen(!0)) });
2240
2298
  }
2241
- function st({
2299
+ function at({
2242
2300
  children: e
2243
2301
  }) {
2244
- const t = Ve();
2245
- return /* @__PURE__ */ n(he, { children: Nt(e, () => t.setOpen(!1)) });
2302
+ const t = We();
2303
+ return /* @__PURE__ */ n(he, { children: Mt(e, () => t.setOpen(!1)) });
2246
2304
  }
2247
- function Mt({ size: e = "3", maxWidth: t, className: o, style: r, children: a, ...l }) {
2248
- const s = Ve(), c = F(null), h = F(!1), m = F(!1);
2305
+ function kt({ size: e = "3", maxWidth: t, className: o, style: r, children: a, ...l }) {
2306
+ const s = We(), c = P(null), h = P(!1), m = P(!1);
2249
2307
  return te(() => {
2250
- const i = c.current;
2251
- i && (s.open && !i.open ? i.showModal() : !s.open && i.open && i.close());
2308
+ const d = c.current;
2309
+ d && (s.open && !d.open ? d.showModal() : !s.open && d.open && d.close());
2252
2310
  }, [s.open]), te(() => {
2253
2311
  if (s.open)
2254
- return Ge += 1, Ge === 1 && (document.body.style.overflow = "hidden"), () => {
2255
- Ge -= 1, Ge === 0 && (document.body.style.overflow = "");
2312
+ return Ue += 1, Ue === 1 && (document.body.style.overflow = "hidden"), () => {
2313
+ Ue -= 1, Ue === 0 && (document.body.style.overflow = "");
2256
2314
  };
2257
2315
  }, [s.open]), /* @__PURE__ */ n(
2258
2316
  "dialog",
@@ -2262,14 +2320,14 @@ function Mt({ size: e = "3", maxWidth: t, className: o, style: r, children: a, .
2262
2320
  role: s.alert ? "alertdialog" : void 0,
2263
2321
  "aria-labelledby": s.titleId,
2264
2322
  "aria-describedby": s.hasDesc ? s.descId : void 0,
2265
- className: z(Ze.dialog, "spDialog", e === "4" && Ze.size4, o),
2323
+ className: E(Ze.dialog, "spDialog", e === "4" && Ze.size4, o),
2266
2324
  style: { ...t ? { maxWidth: t } : null, ...r },
2267
- onKeyDownCapture: (i) => {
2268
- var g, $;
2269
- i.key === "Escape" && ((g = c.current) != null && g.querySelector("dialog[open]") || ($ = c.current) != null && $.querySelector('[role="listbox"]:not([hidden])') && (h.current = !0));
2325
+ onKeyDownCapture: (d) => {
2326
+ var C, $;
2327
+ d.key === "Escape" && ((C = c.current) != null && C.querySelector("dialog[open]") || ($ = c.current) != null && $.querySelector('[role="listbox"]:not([hidden])') && (h.current = !0));
2270
2328
  },
2271
- onCancel: (i) => {
2272
- if (i.preventDefault(), h.current) {
2329
+ onCancel: (d) => {
2330
+ if (d.preventDefault(), h.current) {
2273
2331
  h.current = !1;
2274
2332
  return;
2275
2333
  }
@@ -2278,13 +2336,13 @@ function Mt({ size: e = "3", maxWidth: t, className: o, style: r, children: a, .
2278
2336
  onClose: () => {
2279
2337
  s.open && s.setOpen(!1);
2280
2338
  },
2281
- onPointerDown: (i) => {
2282
- m.current = i.target === c.current;
2339
+ onPointerDown: (d) => {
2340
+ m.current = d.target === c.current;
2283
2341
  },
2284
- onClick: (i) => {
2285
- !s.alert && i.target === c.current && m.current && s.setOpen(!1);
2342
+ onClick: (d) => {
2343
+ !s.alert && d.target === c.current && m.current && s.setOpen(!1);
2286
2344
  },
2287
- children: /* @__PURE__ */ L("div", { className: Ze.inner, children: [
2345
+ children: /* @__PURE__ */ R("div", { className: Ze.inner, children: [
2288
2346
  !s.alert && /* @__PURE__ */ n(
2289
2347
  "button",
2290
2348
  {
@@ -2292,7 +2350,7 @@ function Mt({ size: e = "3", maxWidth: t, className: o, style: r, children: a, .
2292
2350
  className: Ze.closeX,
2293
2351
  "aria-label": "Close",
2294
2352
  onClick: () => s.setOpen(!1),
2295
- children: /* @__PURE__ */ n(Mo, { width: 16, height: 16 })
2353
+ children: /* @__PURE__ */ n(ko, { width: 16, height: 16 })
2296
2354
  }
2297
2355
  ),
2298
2356
  a
@@ -2300,82 +2358,82 @@ function Mt({ size: e = "3", maxWidth: t, className: o, style: r, children: a, .
2300
2358
  }
2301
2359
  );
2302
2360
  }
2303
- function kt({ className: e, ...t }) {
2304
- const o = Ve();
2305
- return /* @__PURE__ */ n(rn, { as: "h2", size: "5", ...t, id: o.titleId, className: z(Ze.title, e) });
2361
+ function zt({ className: e, ...t }) {
2362
+ const o = We();
2363
+ return /* @__PURE__ */ n(sn, { as: "h2", size: "5", ...t, id: o.titleId, className: E(Ze.title, e) });
2306
2364
  }
2307
- function zt(e) {
2308
- const t = Ve(), { setHasDesc: o } = t;
2309
- return we(() => (o(!0), () => o(!1)), [o]), /* @__PURE__ */ n(Gt, { as: "p", ...e, id: t.descId });
2365
+ function Rt(e) {
2366
+ const t = We(), { setHasDesc: o } = t;
2367
+ return ye(() => (o(!0), () => o(!1)), [o]), /* @__PURE__ */ n(Ut, { as: "p", ...e, id: t.descId });
2310
2368
  }
2311
- const jl = Object.assign(qa, {
2369
+ const Gl = Object.assign(qa, {
2312
2370
  Trigger: Lt,
2313
- Close: st,
2314
- Content: Mt,
2315
- Title: kt,
2316
- Description: zt
2317
- }), Ta = st, Aa = st, Gl = Object.assign(xt(!0), {
2371
+ Close: at,
2372
+ Content: kt,
2373
+ Title: zt,
2374
+ Description: Rt
2375
+ }), Aa = at, Oa = at, Ul = Object.assign(Nt(!0), {
2318
2376
  Trigger: Lt,
2319
- Content: Mt,
2320
- Title: kt,
2321
- Description: zt,
2322
- Cancel: Ta,
2323
- Action: Aa
2324
- }), Oa = "_menu_1d12s_1", Za = "_label_1d12s_55", Ba = "_item_1d12s_65", Va = "_danger_1d12s_84", Wa = "_separator_1d12s_88", Be = {
2325
- menu: Oa,
2377
+ Content: kt,
2378
+ Title: zt,
2379
+ Description: Rt,
2380
+ Cancel: Aa,
2381
+ Action: Oa
2382
+ }), Ba = "_menu_1d12s_1", Za = "_label_1d12s_55", Va = "_item_1d12s_65", Wa = "_danger_1d12s_84", Pa = "_separator_1d12s_88", Ve = {
2383
+ menu: Ba,
2326
2384
  label: Za,
2327
- item: Ba,
2328
- danger: Va,
2329
- separator: Wa
2330
- }, Rt = Re(null), Pa = () => {
2331
- const e = Ee(Rt);
2385
+ item: Va,
2386
+ danger: Wa,
2387
+ separator: Pa
2388
+ }, Et = Ee(null), Fa = () => {
2389
+ const e = Ie(Et);
2332
2390
  if (!e) throw new Error("DropdownMenu parts must be inside a DropdownMenu");
2333
2391
  return e;
2334
2392
  };
2335
- function Fa({ label: e, align: t = "start", children: o, ...r }) {
2336
- const [a, l] = Q(!1), s = se(), c = F(null), h = F(null), m = F(null), i = F(a);
2337
- i.current = a;
2338
- const g = pe((_) => {
2339
- i.current !== _ && (i.current = _, l(_));
2340
- }, []), [$, w] = Q(null);
2341
- return we(() => {
2393
+ function ja({ label: e, align: t = "start", children: o, ...r }) {
2394
+ const [a, l] = Q(!1), s = se(), c = P(null), h = P(null), m = P(null), d = P(a);
2395
+ d.current = a;
2396
+ const C = pe((u) => {
2397
+ d.current !== u && (d.current = u, l(u));
2398
+ }, []), [$, y] = Q(null);
2399
+ return ye(() => {
2342
2400
  var b;
2343
- const _ = h.current;
2344
- if (_)
2401
+ const u = h.current;
2402
+ if (u)
2345
2403
  if (a) {
2346
- const v = c.current;
2347
- if (v) {
2348
- const k = v.getBoundingClientRect(), I = t === "end" ? "auto" : k.left, H = t === "end" ? window.innerWidth - k.right : "auto";
2349
- w({ top: k.bottom + 6, left: I, right: H });
2404
+ const g = c.current;
2405
+ if (g) {
2406
+ const N = g.getBoundingClientRect(), I = t === "end" ? "auto" : N.left, T = t === "end" ? window.innerWidth - N.right : "auto";
2407
+ y({ top: N.bottom + 6, left: I, right: T });
2350
2408
  }
2351
- _.showPopover(), (b = _.querySelector('[role="menuitem"]')) == null || b.focus();
2352
- } else _.matches(":popover-open") && _.hidePopover();
2409
+ u.showPopover(), (b = u.querySelector('[role="menuitem"]')) == null || b.focus();
2410
+ } else u.matches(":popover-open") && u.hidePopover();
2353
2411
  }, [a, t]), te(() => {
2354
2412
  if (!a) return;
2355
- const _ = () => g(!1);
2356
- return window.addEventListener("resize", _), () => window.removeEventListener("resize", _);
2357
- }, [a]), /* @__PURE__ */ L(Rt.Provider, { value: { open: a, setOpen: g, menuId: s }, children: [
2413
+ const u = () => C(!1);
2414
+ return window.addEventListener("resize", u), () => window.removeEventListener("resize", u);
2415
+ }, [a]), /* @__PURE__ */ R(Et.Provider, { value: { open: a, setOpen: C, menuId: s }, children: [
2358
2416
  /* @__PURE__ */ n(
2359
- Ue,
2417
+ Ke,
2360
2418
  {
2361
2419
  ...r,
2362
2420
  ref: c,
2363
2421
  "aria-haspopup": "menu",
2364
2422
  "aria-expanded": a,
2365
2423
  "aria-controls": s,
2366
- onPointerDown: (_) => {
2424
+ onPointerDown: (u) => {
2367
2425
  var b;
2368
- (b = r.onPointerDown) == null || b.call(r, _), m.current = !i.current;
2426
+ (b = r.onPointerDown) == null || b.call(r, u), m.current = !d.current;
2369
2427
  },
2370
- onKeyDown: (_) => {
2428
+ onKeyDown: (u) => {
2371
2429
  var b;
2372
- (b = r.onKeyDown) == null || b.call(r, _), (_.key === "Enter" || _.key === " ") && (m.current = null);
2430
+ (b = r.onKeyDown) == null || b.call(r, u), (u.key === "Enter" || u.key === " ") && (m.current = null);
2373
2431
  },
2374
- onClick: (_) => {
2375
- var v;
2376
- (v = r.onClick) == null || v.call(r, _);
2377
- const b = m.current ?? !i.current;
2378
- m.current = null, g(b);
2432
+ onClick: (u) => {
2433
+ var g;
2434
+ (g = r.onClick) == null || g.call(r, u);
2435
+ const b = m.current ?? !d.current;
2436
+ m.current = null, C(b);
2379
2437
  },
2380
2438
  children: e
2381
2439
  }
@@ -2387,86 +2445,86 @@ function Fa({ label: e, align: t = "start", children: o, ...r }) {
2387
2445
  id: s,
2388
2446
  role: "menu",
2389
2447
  popover: "auto",
2390
- className: Be.menu,
2448
+ className: Ve.menu,
2391
2449
  style: $ ? {
2392
2450
  top: $.top,
2393
2451
  left: $.left === "auto" ? "auto" : $.left,
2394
2452
  right: $.right === "auto" ? "auto" : $.right
2395
2453
  } : void 0,
2396
- onToggle: (_) => {
2397
- _.nativeEvent.newState === "closed" && g(!1);
2454
+ onToggle: (u) => {
2455
+ u.nativeEvent.newState === "closed" && C(!1);
2398
2456
  },
2399
- onKeyDown: (_) => {
2400
- var k, I, H, Y, U, D;
2457
+ onKeyDown: (u) => {
2458
+ var N, I, T, X, G, D;
2401
2459
  const b = Array.from(
2402
- ((k = h.current) == null ? void 0 : k.querySelectorAll('[role="menuitem"]')) ?? []
2403
- ), v = b.indexOf(document.activeElement);
2404
- _.key === "ArrowDown" ? (_.preventDefault(), (I = b[Math.min(v + 1, b.length - 1)]) == null || I.focus()) : _.key === "ArrowUp" ? (_.preventDefault(), (H = b[Math.max(v - 1, 0)]) == null || H.focus()) : _.key === "Home" ? (_.preventDefault(), (Y = b[0]) == null || Y.focus()) : _.key === "End" ? (_.preventDefault(), (U = b[b.length - 1]) == null || U.focus()) : _.key === "Escape" && (g(!1), (D = c.current) == null || D.focus());
2460
+ ((N = h.current) == null ? void 0 : N.querySelectorAll('[role="menuitem"]')) ?? []
2461
+ ), g = b.indexOf(document.activeElement);
2462
+ u.key === "ArrowDown" ? (u.preventDefault(), (I = b[Math.min(g + 1, b.length - 1)]) == null || I.focus()) : u.key === "ArrowUp" ? (u.preventDefault(), (T = b[Math.max(g - 1, 0)]) == null || T.focus()) : u.key === "Home" ? (u.preventDefault(), (X = b[0]) == null || X.focus()) : u.key === "End" ? (u.preventDefault(), (G = b[b.length - 1]) == null || G.focus()) : u.key === "Escape" && (C(!1), (D = c.current) == null || D.focus());
2405
2463
  },
2406
2464
  children: o
2407
2465
  }
2408
2466
  )
2409
2467
  ] });
2410
2468
  }
2411
- function ja({
2469
+ function Ga({
2412
2470
  children: e
2413
2471
  }) {
2414
- return /* @__PURE__ */ n("div", { className: Be.label, children: e });
2472
+ return /* @__PURE__ */ n("div", { className: Ve.label, children: e });
2415
2473
  }
2416
- function Ga({ asChild: e, color: t, onSelect: o, children: r }) {
2417
- const a = Pa(), l = z(Be.item, t === "danger" && Be.danger), s = () => {
2474
+ function Ua({ asChild: e, color: t, onSelect: o, children: r }) {
2475
+ const a = Fa(), l = E(Ve.item, t === "danger" && Ve.danger), s = () => {
2418
2476
  a.setOpen(!1), o == null || o();
2419
2477
  };
2420
- if (e && ze(r)) {
2478
+ if (e && Re(r)) {
2421
2479
  const c = r, {
2422
2480
  className: h,
2423
2481
  onClick: m,
2424
- children: i,
2425
- role: g,
2482
+ children: d,
2483
+ role: C,
2426
2484
  tabIndex: $,
2427
- ...w
2428
- } = c.props, _ = c.ref;
2429
- return ot(
2485
+ ...y
2486
+ } = c.props, u = c.ref;
2487
+ return rt(
2430
2488
  c.type,
2431
2489
  {
2432
2490
  key: c.key,
2433
- ref: _,
2491
+ ref: u,
2434
2492
  role: "menuitem",
2435
2493
  tabIndex: -1,
2436
- ...w,
2437
- className: z(l, h),
2494
+ ...y,
2495
+ className: E(l, h),
2438
2496
  onClick: (b) => {
2439
2497
  m == null || m(b), a.setOpen(!1);
2440
2498
  }
2441
2499
  },
2442
- i
2500
+ d
2443
2501
  );
2444
2502
  }
2445
2503
  return /* @__PURE__ */ n("button", { type: "button", role: "menuitem", tabIndex: -1, className: l, onClick: s, children: r });
2446
2504
  }
2447
- function Ua() {
2448
- return /* @__PURE__ */ n("div", { role: "separator", className: Be.separator });
2505
+ function Ka() {
2506
+ return /* @__PURE__ */ n("div", { role: "separator", className: Ve.separator });
2449
2507
  }
2450
- const Ul = Object.assign(Fa, { Item: Ga, Separator: Ua, Label: ja }), Ka = "_list_1b44l_19", Xa = "_trigger_1b44l_28", Et = {
2451
- list: Ka,
2452
- trigger: Xa
2453
- }, Dt = Re(null), It = () => {
2454
- const e = Ee(Dt);
2508
+ const Kl = Object.assign(ja, { Item: Ua, Separator: Ka, Label: Ga }), Xa = "_list_1b44l_19", Ya = "_trigger_1b44l_28", It = {
2509
+ list: Xa,
2510
+ trigger: Ya
2511
+ }, Dt = Ee(null), Ht = () => {
2512
+ const e = Ie(Dt);
2455
2513
  if (!e) throw new Error("Tabs parts must be inside a Tabs");
2456
2514
  return e;
2457
2515
  };
2458
- function Ya({ value: e, onValueChange: t, className: o, children: r }) {
2516
+ function Qa({ value: e, onValueChange: t, className: o, children: r }) {
2459
2517
  const a = se();
2460
2518
  return /* @__PURE__ */ n(Dt.Provider, { value: { value: e, onValueChange: t, id: a }, children: /* @__PURE__ */ n("div", { className: o, children: r }) });
2461
2519
  }
2462
- function Qa({
2520
+ function Ja({
2463
2521
  children: e
2464
2522
  }) {
2465
2523
  return /* @__PURE__ */ n(
2466
2524
  "div",
2467
2525
  {
2468
2526
  role: "tablist",
2469
- className: z(Et.list, "spTabsList"),
2527
+ className: E(It.list, "spTabsList"),
2470
2528
  onKeyDown: (t) => {
2471
2529
  const o = Array.from(
2472
2530
  t.currentTarget.querySelectorAll('[role="tab"]')
@@ -2495,8 +2553,8 @@ function Qa({
2495
2553
  }
2496
2554
  );
2497
2555
  }
2498
- function Ja({ value: e, className: t, children: o, ...r }) {
2499
- const a = It(), l = a.value === e;
2556
+ function el({ value: e, className: t, children: o, ...r }) {
2557
+ const a = Ht(), l = a.value === e;
2500
2558
  return /* @__PURE__ */ n(
2501
2559
  "button",
2502
2560
  {
@@ -2508,23 +2566,23 @@ function Ja({ value: e, className: t, children: o, ...r }) {
2508
2566
  "aria-controls": `${a.id}-panel-${e}`,
2509
2567
  tabIndex: l ? 0 : -1,
2510
2568
  "data-state": l ? "active" : "inactive",
2511
- className: z(Et.trigger, "spTabsTrigger", t),
2569
+ className: E(It.trigger, "spTabsTrigger", t),
2512
2570
  onClick: () => a.onValueChange(e),
2513
2571
  children: o
2514
2572
  }
2515
2573
  );
2516
2574
  }
2517
- function el({
2575
+ function tl({
2518
2576
  value: e,
2519
2577
  children: t
2520
2578
  }) {
2521
- const o = It();
2579
+ const o = Ht();
2522
2580
  return o.value !== e ? null : /* @__PURE__ */ n("div", { role: "tabpanel", id: `${o.id}-panel-${e}`, "aria-labelledby": `${o.id}-tab-${e}`, children: t });
2523
2581
  }
2524
- const Kl = Object.assign(Ya, { List: Qa, Trigger: Ja, Content: el }), tl = "_panel_5axce_9", nl = {
2525
- panel: tl
2526
- }, ft = 8, Oe = 8, ol = 'a[href], button:not([disabled]), input:not([disabled]), select:not([disabled]), textarea:not([disabled]), [tabindex]:not([tabindex="-1"])';
2527
- function Xl({
2582
+ const Xl = Object.assign(Qa, { List: Ja, Trigger: el, Content: tl }), nl = "_panel_5axce_9", ol = {
2583
+ panel: nl
2584
+ }, pt = 8, Be = 8, rl = 'a[href], button:not([disabled]), input:not([disabled]), select:not([disabled]), textarea:not([disabled]), [tabindex]:not([tabindex="-1"])';
2585
+ function Yl({
2528
2586
  label: e,
2529
2587
  children: t,
2530
2588
  open: o,
@@ -2536,63 +2594,63 @@ function Xl({
2536
2594
  onClick: h,
2537
2595
  ...m
2538
2596
  }) {
2539
- const [i, g] = Q(a), $ = o !== void 0, w = $ ? o : i, _ = se(), b = se(), v = F(null), k = F(null), [I, H] = Q(null), Y = F(!1), U = F(!1), D = F(null), T = F(w);
2540
- T.current = w;
2541
- const B = pe(
2597
+ const [d, C] = Q(a), $ = o !== void 0, y = $ ? o : d, u = se(), b = se(), g = P(null), N = P(null), [I, T] = Q(null), X = P(!1), G = P(!1), D = P(null), q = P(y);
2598
+ q.current = y;
2599
+ const V = pe(
2542
2600
  (x) => {
2543
- T.current !== x && (T.current = x, $ || g(x), r == null || r(x));
2601
+ q.current !== x && (q.current = x, $ || C(x), r == null || r(x));
2544
2602
  },
2545
2603
  [$, r]
2546
- ), X = pe(() => {
2547
- const x = v.current, M = k.current;
2548
- if (!x || !M) return;
2549
- const S = x.getBoundingClientRect(), j = M.offsetWidth, f = M.offsetHeight, R = S.bottom + ft, A = S.top - f - ft, C = R + f <= window.innerHeight - Oe, N = A >= Oe, V = l === "bottom" ? C || !N ? R : A : N || !C ? A : R, W = V === R ? "bottom" : "top";
2550
- M.dataset.side = W;
2551
- const G = s === "start" ? S.left : s === "end" ? S.right - j : S.left + S.width / 2 - j / 2, p = Math.min(
2552
- Math.max(G, Oe),
2553
- Math.max(window.innerWidth - j - Oe, Oe)
2604
+ ), K = pe(() => {
2605
+ const x = g.current, k = N.current;
2606
+ if (!x || !k) return;
2607
+ const w = x.getBoundingClientRect(), H = k.offsetWidth, i = k.offsetHeight, z = w.bottom + pt, A = w.top - i - pt, v = z + i <= window.innerHeight - Be, M = A >= Be, W = l === "bottom" ? v || !M ? z : A : M || !v ? A : z, F = W === z ? "bottom" : "top";
2608
+ k.dataset.side = F;
2609
+ const U = s === "start" ? w.left : s === "end" ? w.right - H : w.left + w.width / 2 - H / 2, _ = Math.min(
2610
+ Math.max(U, Be),
2611
+ Math.max(window.innerWidth - H - Be, Be)
2554
2612
  );
2555
- H(
2556
- (y) => y && y.top === V && y.left === p && y.placed === W ? y : { top: V, left: p, placed: W }
2613
+ T(
2614
+ (L) => L && L.top === W && L.left === _ && L.placed === F ? L : { top: W, left: _, placed: F }
2557
2615
  );
2558
2616
  }, [l, s]);
2559
- return we(() => {
2560
- const x = k.current;
2561
- x && (w ? (Ye(x, X), X(), Y.current && (Y.current = !1, (x.querySelector(ol) ?? x).focus({ preventScroll: !0 }))) : x.matches(":popover-open") && x.hidePopover());
2562
- }, [w, X]), te(() => {
2563
- if (!w) return;
2564
- let x = 0, M = "";
2565
- const S = () => {
2566
- const j = v.current, f = k.current;
2567
- if (j && f) {
2568
- const R = j.getBoundingClientRect(), A = `${R.top}|${R.left}|${R.width}|${R.height}|${f.offsetWidth}|${f.offsetHeight}|${window.innerWidth}|${window.innerHeight}`;
2569
- A !== M && (M = A, X());
2617
+ return ye(() => {
2618
+ const x = N.current;
2619
+ x && (y ? (Qe(x, K), K(), X.current && (X.current = !1, (x.querySelector(rl) ?? x).focus({ preventScroll: !0 }))) : x.matches(":popover-open") && x.hidePopover());
2620
+ }, [y, K]), te(() => {
2621
+ if (!y) return;
2622
+ let x = 0, k = "";
2623
+ const w = () => {
2624
+ const H = g.current, i = N.current;
2625
+ if (H && i) {
2626
+ const z = H.getBoundingClientRect(), A = `${z.top}|${z.left}|${z.width}|${z.height}|${i.offsetWidth}|${i.offsetHeight}|${window.innerWidth}|${window.innerHeight}`;
2627
+ A !== k && (k = A, K());
2570
2628
  }
2571
- x = requestAnimationFrame(S);
2629
+ x = requestAnimationFrame(w);
2572
2630
  };
2573
- return x = requestAnimationFrame(S), () => cancelAnimationFrame(x);
2574
- }, [w, X]), /* @__PURE__ */ L(he, { children: [
2631
+ return x = requestAnimationFrame(w), () => cancelAnimationFrame(x);
2632
+ }, [y, K]), /* @__PURE__ */ R(he, { children: [
2575
2633
  /* @__PURE__ */ n(
2576
- Ue,
2634
+ Ke,
2577
2635
  {
2578
2636
  ...m,
2579
- ref: v,
2580
- id: _,
2637
+ ref: g,
2638
+ id: u,
2581
2639
  "aria-haspopup": "dialog",
2582
- "aria-expanded": w,
2640
+ "aria-expanded": y,
2583
2641
  "aria-controls": b,
2584
2642
  onPointerDown: (x) => {
2585
- var M;
2586
- (M = m.onPointerDown) == null || M.call(m, x), D.current = !T.current;
2643
+ var k;
2644
+ (k = m.onPointerDown) == null || k.call(m, x), D.current = !q.current;
2587
2645
  },
2588
2646
  onKeyDown: (x) => {
2589
- var M;
2590
- (M = m.onKeyDown) == null || M.call(m, x), (x.key === "Enter" || x.key === " ") && (D.current = null);
2647
+ var k;
2648
+ (k = m.onKeyDown) == null || k.call(m, x), (x.key === "Enter" || x.key === " ") && (D.current = null);
2591
2649
  },
2592
2650
  onClick: (x) => {
2593
2651
  h == null || h(x);
2594
- const M = D.current ?? !T.current;
2595
- D.current = null, M && (Y.current = !0), B(M);
2652
+ const k = D.current ?? !q.current;
2653
+ D.current = null, k && (X.current = !0), V(k);
2596
2654
  },
2597
2655
  children: e
2598
2656
  }
@@ -2600,22 +2658,22 @@ function Xl({
2600
2658
  /* @__PURE__ */ n(
2601
2659
  "div",
2602
2660
  {
2603
- ref: k,
2661
+ ref: N,
2604
2662
  id: b,
2605
2663
  popover: "auto",
2606
2664
  role: "dialog",
2607
- "aria-labelledby": _,
2665
+ "aria-labelledby": u,
2608
2666
  tabIndex: -1,
2609
- className: z(nl.panel, ue.spacePanel, c),
2667
+ className: E(ol.panel, ue.spacePanel, c),
2610
2668
  "data-animated": m.animated === !1 ? "false" : void 0,
2611
2669
  "data-side": (I == null ? void 0 : I.placed) ?? l,
2612
2670
  style: I ? { top: I.top, left: I.left } : void 0,
2613
2671
  onKeyDown: (x) => {
2614
- x.key === "Escape" && (U.current = !0, x.stopPropagation());
2672
+ x.key === "Escape" && (G.current = !0, x.stopPropagation());
2615
2673
  },
2616
2674
  onToggle: (x) => {
2617
- var M;
2618
- x.nativeEvent.newState === "closed" && (U.current && (U.current = !1, (M = v.current) == null || M.focus()), B(!1));
2675
+ var k;
2676
+ x.nativeEvent.newState === "closed" && (G.current && (G.current = !1, (k = g.current) == null || k.focus()), V(!1));
2619
2677
  },
2620
2678
  children: t
2621
2679
  }
@@ -2623,63 +2681,63 @@ function Xl({
2623
2681
  ] });
2624
2682
  }
2625
2683
  export {
2626
- Gl as AlertDialog,
2684
+ Ul as AlertDialog,
2627
2685
  ql as Autocomplete,
2628
- dl as Badge,
2629
- Ol as BarList,
2630
- zl as BookmarkIcon,
2631
- cl as Box,
2632
- Ue as Button,
2633
- fl as Card,
2634
- Rl as Carousel,
2635
- Al as Chart,
2636
- _l as ChatBubbleIcon,
2637
- bl as CheckIcon,
2638
- Vl as Checkbox,
2639
- Bl as CheckboxGroup,
2640
- kl as ChevronDownIcon,
2641
- ht as ChevronLeftIcon,
2642
- _t as ChevronRightIcon,
2643
- Ml as ChevronUpIcon,
2644
- Ro as CrossCircledIcon,
2645
- jl as Dialog,
2646
- Ul as DropdownMenu,
2647
- vl as EnterFullScreenIcon,
2648
- zo as ExclamationTriangleIcon,
2649
- Cl as ExitFullScreenIcon,
2650
- ll as Flex,
2651
- il as Grid,
2652
- rn as Heading,
2653
- gl as HeartFilledIcon,
2686
+ ul as Badge,
2687
+ Bl as BarList,
2688
+ Rl as BookmarkIcon,
2689
+ il as Box,
2690
+ Ke as Button,
2691
+ pl as Card,
2692
+ El as Carousel,
2693
+ Ol as Chart,
2694
+ hl as ChatBubbleIcon,
2695
+ wl as CheckIcon,
2696
+ Wl as Checkbox,
2697
+ Vl as CheckboxGroup,
2698
+ zl as ChevronDownIcon,
2699
+ mt as ChevronLeftIcon,
2700
+ ht as ChevronRightIcon,
2701
+ kl as ChevronUpIcon,
2702
+ Eo as CrossCircledIcon,
2703
+ Gl as Dialog,
2704
+ Kl as DropdownMenu,
2705
+ bl as EnterFullScreenIcon,
2706
+ Ro as ExclamationTriangleIcon,
2707
+ vl as ExitFullScreenIcon,
2708
+ cl as Flex,
2709
+ dl as Grid,
2710
+ sn as Heading,
2711
+ Cl as HeartFilledIcon,
2654
2712
  Ll as HeartIcon,
2655
- Il as IconToggle,
2656
- ko as InfoCircledIcon,
2657
- al as Link,
2713
+ Hl as IconToggle,
2714
+ zo as InfoCircledIcon,
2715
+ ll as Link,
2658
2716
  Dl as Loader,
2659
- Nl as MagnifyingGlassIcon,
2660
- Fl as Message,
2661
- xl as MinusIcon,
2662
- El as Pagination,
2663
- ml as Pencil1Icon,
2664
- yl as PersonIcon,
2717
+ Ml as MagnifyingGlassIcon,
2718
+ jl as Message,
2719
+ Nl as MinusIcon,
2720
+ Il as Pagination,
2721
+ gl as Pencil1Icon,
2722
+ xl as PersonIcon,
2665
2723
  Zl as PieChart,
2666
- hl as PlusIcon,
2667
- Xl as Popover,
2668
- Pl as Progress,
2669
- wl as QuestionMarkCircledIcon,
2670
- Wl as RadioGroup,
2671
- Hl as Select,
2672
- ul as Separator,
2673
- pl as Share2Icon,
2674
- Tl as Slider,
2675
- Kl as Tabs,
2676
- Gt as Text,
2677
- Sl as TextArea,
2678
- ct as TextField,
2679
- mr as Tooltip,
2724
+ ml as PlusIcon,
2725
+ Yl as Popover,
2726
+ Fl as Progress,
2727
+ yl as QuestionMarkCircledIcon,
2728
+ Pl as RadioGroup,
2729
+ Sl as Select,
2730
+ fl as Separator,
2731
+ _l as Share2Icon,
2732
+ Al as Slider,
2733
+ Xl as Tabs,
2734
+ Ut as Text,
2735
+ Tl as TextArea,
2736
+ it as TextField,
2737
+ gr as Tooltip,
2680
2738
  $l as TrashIcon,
2681
- Mo as XIcon,
2682
- tr as pageCount,
2683
- nr as pageWindow
2739
+ ko as XIcon,
2740
+ nr as pageCount,
2741
+ or as pageWindow
2684
2742
  };
2685
2743
  //# sourceMappingURL=index.js.map