@inkorange/space-ui 1.8.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 Re, cloneElement as Xe, useId as se, useMemo as pe, Children as _t, useRef as P, useState as Q, useCallback as _e, useLayoutEffect as we, useEffect as te, createContext as Ee, useContext as qe } from "react";
3
- import { jsx as n, jsxs as N, Fragment as he } from "react/jsx-runtime";
4
- const ze = {
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,261 +12,261 @@ const ze = {
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: ze[e] },
16
- ...t !== void 0 && { marginTop: ze[t] },
17
- ...o !== void 0 && { marginBottom: ze[o] },
18
- ...r !== void 0 && { padding: ze[r] },
19
- ...a !== void 0 && { paddingBottom: ze[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 R(...e) {
24
+ function E(...e) {
25
25
  return e.filter(Boolean).join(" ");
26
26
  }
27
- const It = "_text_4vcq4_1", Ht = "_size1_4vcq4_5", St = "_size2_4vcq4_11", Tt = "_size3_4vcq4_16", At = "_size4_4vcq4_21", jt = "_size5_4vcq4_27", Ot = "_size6_4vcq4_33", Zt = "_medium_4vcq4_39", Bt = "_bold_4vcq4_43", Vt = "_colorMuted_4vcq4_47", Wt = "_colorDanger_4vcq4_51", Pt = "_colorSuccess_4vcq4_55", Ft = "_colorWarning_4vcq4_59", Ve = {
28
- text: It,
29
- size1: Ht,
30
- size2: St,
31
- size3: Tt,
32
- size4: At,
33
- size5: jt,
34
- size6: Ot,
35
- medium: Zt,
36
- bold: Bt,
37
- colorMuted: Vt,
38
- colorDanger: Wt,
39
- colorSuccess: Pt,
40
- colorWarning: Ft
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, {
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
+ size2: qt,
31
+ size3: At,
32
+ size4: Ot,
33
+ size5: Bt,
34
+ size6: Zt,
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: R(
46
- Ve.text,
47
- o && Ve[`size${o}`],
48
- r && Ve[r],
49
- a && Ve[`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_vs4zk_1", Kt = "_size4_vs4zk_7", Xt = "_size5_vs4zk_13", Yt = "_size6_vs4zk_19", Qt = "_size7_vs4zk_25", Jt = "_size8_vs4zk_31", en = "_size9_vs4zk_37", tn = "_colorMuted_vs4zk_43", nn = "_colorDanger_vs4zk_47", on = "_alignCenter_vs4zk_51", Ie = {
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: R(
70
- Ie.heading,
71
- o && Ie[`size${o}`],
72
- r === "muted" && Ie.colorMuted,
73
- r === "danger" && Ie.colorDanger,
74
- a === "center" && Ie.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_1qa7j_1", an = "_size1_1qa7j_10", ln = "_size2_1qa7j_16", cn = "_size3_1qa7j_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 = R(at.link, o && at[`size${o}`], r), p = ve({ m: l, mt: s, mb: c, p: h, pb: m }, a);
86
- if (t && Re(i)) {
87
- const b = i;
88
- return Xe(b, {
89
- ...g,
90
- className: R(w, b.props.className),
91
- style: { ...p, ...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: p, children: i });
95
- }), dn = "_flex_v4ziu_1", un = "_gap1_v4ziu_5", fn = "_gap2_v4ziu_9", _n = "_gap3_v4ziu_13", pn = "_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", xn = "_alignStretch_v4ziu_53", yn = "_justifyStart_v4ziu_57", kn = "_justifyCenter_v4ziu_61", Nn = "_justifyEnd_v4ziu_65", Ln = "_justifyBetween_v4ziu_69", Mn = "_wrapWrap_v4ziu_73", Rn = "_wrapNowrap_v4ziu_77", xe = {
96
- flex: dn,
97
- gap1: un,
98
- gap2: fn,
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
99
  gap3: _n,
100
- gap4: pn,
101
- gap5: hn,
102
- gap6: mn,
103
- directionRow: gn,
104
- directionColumn: Cn,
105
- alignStart: vn,
106
- alignCenter: bn,
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,
108
+ alignBaseline: yn,
109
109
  alignStretch: xn,
110
- justifyStart: yn,
111
- justifyCenter: kn,
112
- justifyEnd: Nn,
113
- justifyBetween: Ln,
114
- wrapWrap: Mn,
110
+ justifyStart: Nn,
111
+ justifyCenter: Mn,
112
+ justifyEnd: Ln,
113
+ justifyBetween: kn,
114
+ wrapWrap: zn,
115
115
  wrapNowrap: Rn
116
- }, We = (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: p, ...b }, v) {
117
- const M = R(
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
118
  xe.flex,
119
119
  o && xe[`gap${o}`],
120
- r && xe[`direction${We(r)}`],
121
- a && xe[`align${We(a)}`],
122
- l && xe[`justify${We(l)}`],
123
- s && xe[`wrap${We(s)}`],
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
- ), z = ve({ m, mt: i, mb: g, p: $, pb: w }, h);
126
- if (t && Re(p)) {
127
- const I = p;
128
- return Xe(I, {
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: R(M, I.props.className),
131
- style: { ...z, ...I.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: M, style: z, children: p });
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
- }), En = "_grid_erpqq_1", qn = "_cols1_erpqq_5", Dn = "_cols2_erpqq_9", zn = "_cols3_erpqq_13", In = "_smCols2_erpqq_18", Hn = "_smCols3_erpqq_21", Sn = "_mdCols2_erpqq_26", Tn = "_mdCols3_erpqq_29", An = "_gap1_erpqq_33", jn = "_gap2_erpqq_37", On = "_gap3_erpqq_41", Zn = "_gap4_erpqq_45", Bn = "_gap5_erpqq_49", Vn = "_gap6_erpqq_53", ye = {
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
138
  grid: En,
139
- cols1: qn,
139
+ cols1: In,
140
140
  cols2: Dn,
141
- cols3: zn,
142
- smCols2: In,
143
- smCols3: Hn,
144
- mdCols2: Sn,
145
- mdCols3: Tn,
146
- gap1: An,
147
- gap2: jn,
148
- gap3: On,
149
- gap4: Zn,
150
- gap5: Bn,
151
- gap6: Vn
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" ? [ye[`cols${t}`]] : t ? [
154
- t.initial && ye[`cols${t.initial}`],
155
- t.sm && ye[`smCols${t.sm}`],
156
- t.md && ye[`mdCols${t.md}`]
141
+ cols3: Hn,
142
+ smCols2: Sn,
143
+ smCols3: Tn,
144
+ mdCols2: qn,
145
+ mdCols3: An,
146
+ gap1: On,
147
+ gap2: Bn,
148
+ gap3: Zn,
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: R(ye.grid, ...$, o && ye[`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
- }), Wn = "_badge_1twqf_2", Pn = "_size1_1twqf_10", Fn = "_size2_1twqf_19", Gn = "_colorMuted_1twqf_28", Un = "_colorPrimary_1twqf_33", Kn = "_colorSuccess_1twqf_38", Xn = "_colorDanger_1twqf_43", Yn = "_colorWarning_1twqf_48", Qn = "_colorCyan_1twqf_53", Jn = "_colorPurple_1twqf_58", eo = "_colorOrange_1twqf_63", to = "_colorAccent_1twqf_68", no = "_colorYellow_1twqf_73", oo = "_solid_1twqf_81", ro = "_wrap_1twqf_89", He = {
168
- badge: Wn,
169
- size1: Pn,
170
- size2: Fn,
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: R(
190
- He.badge,
191
- He[`color${so(t)}`],
192
- o === "solid" && He.solid,
193
- He[`size${r}`],
194
- a && He.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: R(lt.separator, t === "4" && lt.full, o)
210
+ className: E(ct.separator, t === "4" && ct.full, o)
211
211
  }
212
212
  );
213
- }), co = "_card_1ooot_2", io = "_image_1ooot_14", uo = "_hasImage_1ooot_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__ */ N(
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: R(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_kjhqx_14", _o = "_rimRotate_kjhqx_1", po = "_glintSweep_kjhqx_1", ho = "_iconOnly_kjhqx_97", mo = "_lg_kjhqx_104", go = "_sm_kjhqx_110", Co = "_micro_kjhqx_122", vo = "_stars_kjhqx_136", bo = "_fullWidth_kjhqx_141", $o = "_ember_kjhqx_147", wo = "_label_kjhqx_157", xo = "_star_kjhqx_136", yo = "_twinkle_kjhqx_1", ge = {
232
- spaceButton: fo,
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
233
  rimRotate: _o,
234
- glintSweep: po,
235
- iconOnly: ho,
236
- lg: mo,
237
- sm: go,
238
- micro: Co,
239
- stars: vo,
240
- fullWidth: bo,
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,
242
+ label: yo,
243
243
  star: xo,
244
- twinkle: yo
244
+ twinkle: No
245
245
  };
246
- function ko(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);
250
250
  return t = t + Math.imul(t ^ t >>> 7, 61 | t) ^ t, ((t ^ t >>> 14) >>> 0) / 4294967296;
251
251
  };
252
252
  }
253
- function No(e) {
253
+ function Lo(e) {
254
254
  let t = 2166136261;
255
255
  for (let o = 0; o < e.length; o++)
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 = pe(() => {
262
- const w = ko(No(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__ */ N(
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, p) => /* @__PURE__ */ n("i", { className: ge.star, style: w }, p)) }),
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
  }
@@ -307,7 +307,7 @@ function _l(e) {
307
307
  }
308
308
  ) });
309
309
  }
310
- function pl(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 pl(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
  {
@@ -417,7 +417,7 @@ function xl(e) {
417
417
  }
418
418
  ) });
419
419
  }
420
- function yl(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 yl(e) {
428
428
  }
429
429
  ) });
430
430
  }
431
- function kl(e) {
431
+ function Ml(e) {
432
432
  return /* @__PURE__ */ n("svg", { ...J, ...e, children: /* @__PURE__ */ n(
433
433
  "path",
434
434
  {
@@ -439,7 +439,7 @@ function kl(e) {
439
439
  }
440
440
  ) });
441
441
  }
442
- function Nl(e) {
442
+ function Ll(e) {
443
443
  return /* @__PURE__ */ n("svg", { ...J, ...e, children: /* @__PURE__ */ n(
444
444
  "path",
445
445
  {
@@ -450,7 +450,7 @@ function Nl(e) {
450
450
  }
451
451
  ) });
452
452
  }
453
- function Ll(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 Ll(e) {
461
461
  }
462
462
  ) });
463
463
  }
464
- function Ml(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 Ml(e) {
472
472
  }
473
473
  ) });
474
474
  }
475
- function pt(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 pt(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
  {
@@ -505,7 +505,7 @@ function Rl(e) {
505
505
  }
506
506
  ) });
507
507
  }
508
- function Lo(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 Lo(e) {
514
514
  }
515
515
  ) });
516
516
  }
517
- function Mo(e) {
517
+ function zo(e) {
518
518
  return /* @__PURE__ */ n("svg", { ...J, ...e, children: /* @__PURE__ */ n(
519
519
  "path",
520
520
  {
@@ -547,17 +547,17 @@ function Eo(e) {
547
547
  }
548
548
  ) });
549
549
  }
550
- const qo = "_root_p5j1t_12", Do = "_viewport_p5j1t_17", zo = "_track_p5j1t_21", Io = "_slide_p5j1t_66", Ho = "_arrow_p5j1t_78", So = "_prev_p5j1t_99", To = "_next_p5j1t_104", Ao = "_arrowButton_p5j1t_109", jo = "_dots_p5j1t_115", Oo = "_dot_p5j1t_115", le = {
551
- root: qo,
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: zo,
554
- slide: Io,
555
- arrow: Ho,
556
- prev: So,
557
- next: To,
558
- arrowButton: Ao,
559
- dots: jo,
560
- dot: Oo
553
+ track: Ho,
554
+ slide: So,
555
+ arrow: To,
556
+ prev: qo,
557
+ next: Ao,
558
+ arrowButton: Oo,
559
+ dots: Bo,
560
+ dot: Zo
561
561
  };
562
562
  function El({
563
563
  children: e,
@@ -569,192 +569,192 @@ function El({
569
569
  "aria-label": s = "Carousel",
570
570
  ...c
571
571
  }) {
572
- const h = _t.toArray(e), m = h.length, i = se(), g = P(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, [p, b] = Q($), [v, M] = Q(Math.max(1, w)), [z, I] = Q(0), [Y, U] = Q(!0), [D, T] = Q(m <= t), Z = P([0]), X = P(0), y = P(0), L = P(() => {
573
- }), H = _e(() => {
574
- const C = g.current;
575
- if (!C) return;
576
- const k = C.scrollLeft, B = Math.max(0, C.scrollWidth - C.clientWidth);
577
- if (Math.abs(B - X.current) > 1) {
578
- L.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 V = k <= 1, G = k >= y.current - 1;
581
+ const F = M <= 1, U = M >= x.current - 1;
582
582
  let _ = 0;
583
- G ? _ = Z.current.length - 1 : V || Z.current.forEach((x, d) => {
584
- Math.abs(x - k) <= Math.abs(Z.current[_] - k) && (_ = d);
585
- }), I(_), U(V), T(G);
586
- }, []), F = _e(() => {
587
- const C = g.current;
588
- if (!C) return;
589
- const k = Array.from(C.children);
590
- if (!k.length) return;
591
- const B = Math.max(0, C.scrollWidth - C.clientWidth), V = k[0], G = k.length > 1 ? k[1].offsetLeft - V.offsetLeft - V.offsetWidth : 0, _ = (C.clientWidth + G) / (V.offsetWidth + G), x = o === "page" ? Math.max(1, Math.floor(_ + 0.01)) : 1, d = k[k.length - 1], u = Math.round(
592
- Math.max(0, Math.min(B, d.offsetLeft - V.offsetLeft + d.offsetWidth - C.clientWidth))
593
- ), q = [];
594
- k.forEach((j, O) => {
595
- if (O % x !== 0) return;
596
- const W = Math.round(Math.min(j.offsetLeft - V.offsetLeft, u));
597
- q[q.length - 1] !== W && q.push(W);
598
- }), u > 0 && q[q.length - 1] < u - 1 && q.push(u), Z.current = q, X.current = Math.round(B), y.current = u, b(x), M(q.length), H();
599
- }, [o, H]);
600
- we(() => {
601
- L.current = F, F();
602
- }, [F, m]), te(() => {
603
- const C = g.current;
604
- if (!C) return;
605
- const k = new ResizeObserver(() => F());
606
- k.observe(C);
607
- const B = C.firstElementChild;
608
- B && k.observe(B);
609
- let V = 0;
610
- const G = () => {
611
- cancelAnimationFrame(V), V = requestAnimationFrame(H);
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
- k.disconnect(), cancelAnimationFrame(V), C.removeEventListener("scroll", G);
613
+ return v.addEventListener("scroll", U, { passive: !0 }), () => {
614
+ M.disconnect(), cancelAnimationFrame(F), v.removeEventListener("scroll", U);
615
615
  };
616
- }, [F, H, m]), te(() => {
617
- const C = g.current;
618
- if (!C) return;
619
- const k = 4;
620
- let B = null, V = 0, G = 0, _ = !1, x = 0;
621
- const d = () => {
622
- clearTimeout(x), delete C.dataset.settling;
623
- }, u = (S) => {
624
- S.pointerType !== "mouse" || S.button !== 0 || C.scrollWidth <= C.clientWidth || (d(), B = S.pointerId, V = S.clientX, G = C.scrollLeft, _ = !1);
625
- }, q = (S) => {
626
- if (S.pointerId !== B) return;
627
- const ee = S.clientX - V;
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
628
  if (!_) {
629
- if (Math.abs(ee) < k) return;
630
- _ = !0, C.setPointerCapture(S.pointerId), C.dataset.dragging = "";
629
+ if (Math.abs(ee) < M) return;
630
+ _ = !0, v.setPointerCapture(O.pointerId), v.dataset.dragging = "";
631
631
  }
632
- C.scrollLeft = G - ee;
633
- }, j = (S) => {
634
- if (S.pointerId !== B || (B = null, !_)) return;
635
- delete C.dataset.dragging;
636
- const ee = C.scrollLeft, ne = Z.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 }), x = window.setTimeout(d, 700);
641
- }, O = (S) => {
642
- _ && (_ = !1, S.preventDefault(), S.stopPropagation());
643
- }, W = (S) => S.preventDefault();
644
- return C.addEventListener("pointerdown", u), C.addEventListener("pointermove", q), C.addEventListener("pointerup", j), C.addEventListener("pointercancel", j), C.addEventListener("click", O, !0), C.addEventListener("dragstart", W), () => {
645
- d(), C.removeEventListener("pointerdown", u), C.removeEventListener("pointermove", q), C.removeEventListener("pointerup", j), C.removeEventListener("pointercancel", j), C.removeEventListener("click", O, !0), C.removeEventListener("dragstart", W);
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 k;
650
- return (k = g.current) == null ? void 0 : k.scrollTo({ left: C });
651
- }, E = (C) => {
652
- const k = g.current;
653
- if (!k) return;
654
- const B = k.scrollLeft, V = C > 0 ? Z.current.find((G) => G > B + 1) : [...Z.current].reverse().find((G) => G < B - 1);
655
- V !== void 0 && f(V);
656
- }, A = v > 1;
657
- return /* @__PURE__ */ N(
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: R(le.root, l),
663
+ className: E(le.root, l),
664
664
  "data-scrollable": A ? "" : void 0,
665
665
  children: [
666
- /* @__PURE__ */ N("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, k) => /* @__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": `${k + 1} of ${m}`,
682
- "data-snap": k % p === 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 ?? k
685
+ v.key ?? M
686
686
  ))
687
687
  }
688
688
  ),
689
- /* @__PURE__ */ n("span", { className: R(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: () => E(-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: R(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: () => E(1),
712
- children: /* @__PURE__ */ n(pt, { "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, k) => /* @__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 ${k + 1} of ${v}` : `Position ${k + 1} of ${v}`,
722
- "aria-controls": i,
723
- "aria-current": k === z ? "true" : void 0,
724
- onClick: () => f(Z.current[k] ?? 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
- k
726
+ M
727
727
  )) })
728
728
  ]
729
729
  }
730
730
  );
731
731
  }
732
- const Zo = "_nav_f248a_6", Bo = "_pages_f248a_21", Vo = "_item_f248a_30", Wo = "_current_f248a_48", Po = "_page_f248a_21", Fo = "_gap_f248a_82", Go = "_stepText_f248a_92", Uo = "_step_f248a_92", ce = {
733
- nav: Zo,
734
- pages: Bo,
735
- item: Vo,
736
- current: Wo,
737
- page: Po,
738
- gap: Fo,
739
- stepText: Go,
740
- step: Uo
741
- }, Ko = "_spaceControl_4ou97_17", Xo = "_spaceSlider_4ou97_74", Yo = "_spacePanel_4ou97_111", Qo = "_spaceInput_4ou97_34", Jo = "_spaceTextArea_4ou97_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, p) => g + p), 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 ql({
757
+ function Il({
758
758
  pagination: e,
759
759
  onPageClick: t,
760
760
  siblings: o = 1,
@@ -763,107 +763,107 @@ function ql({
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__ */ N("nav", { ...s, "aria-label": l, className: R(ce.nav, a), children: [
772
- /* @__PURE__ */ N(
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: R(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: R(
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__ */ N(
810
+ /* @__PURE__ */ R(
811
811
  "button",
812
812
  {
813
813
  type: "button",
814
- className: R(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(pt, { "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", ke = {
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__ */ N(
840
+ return /* @__PURE__ */ R(
841
841
  "div",
842
842
  {
843
- className: R(ke.wrap, ke[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__ */ N("span", { className: ke.orbit, children: [
849
- /* @__PURE__ */ n("span", { className: ke.planet }),
850
- /* @__PURE__ */ n("span", { className: ke.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: ke.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_1efo6_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 _r = 350, pr = 80, Pe = 8, Se = 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 = P(null), m = P(null), i = P(null), g = P(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), _r);
905
- }, p = () => {
906
- $(), g.current = setTimeout(() => l(!1), pr);
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 M = () => {
918
- const z = v.getBoundingClientRect(), I = b.offsetWidth, Y = b.offsetHeight, U = (H, F, f, E) => Math.min(
919
- Math.max(H + F / 2 - f / 2, Se),
920
- Math.max(E - f - Se, Se)
921
- ), D = (H, F, f, E) => ({
922
- fitsNear: H >= Se,
923
- fitsFar: F + f <= E - Se
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 H = z.right + Pe, F = z.left - I - Pe, { fitsNear: f, fitsFar: E } = D(F, H, I, window.innerWidth), A = t === "right" ? E || !f ? H : F : f || !E ? F : H;
927
- b.dataset.side = A === H ? "right" : "left", c({ top: U(z.top, z.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 = z.bottom + Pe, Z = z.top - Y - Pe, { fitsNear: X, fitsFar: y } = D(Z, T, Y, window.innerHeight), L = t === "bottom" ? y || !X ? T : Z : X || !y ? Z : T;
931
- b.dataset.side = L === T ? "bottom" : "top", c({ top: L, left: U(z.left, z.width, I, 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") ? M() : Ye(b, M);
934
- }, [a, t, e]), !e || !Re(o) ? /* @__PURE__ */ n(he, { children: o }) : /* @__PURE__ */ N(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: p,
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_1tdav_4", Cr = "_segment_1tdav_15", vr = "_active_1tdav_35", br = "_vertical_1tdav_46", Fe = {
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 zl({
968
+ function Hl({
969
969
  options: e,
970
970
  value: t,
971
971
  onValueChange: o,
@@ -976,18 +976,18 @@ function zl({
976
976
  return /* @__PURE__ */ n(
977
977
  "div",
978
978
  {
979
- className: `${Fe.group} ${l ? Fe.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: `${Fe.segment} ${s.value === t ? Fe.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 zl({
1000
1000
  }
1001
1001
  );
1002
1002
  }
1003
- const $r = "_root_12wb9_2", wr = "_trigger_12wb9_7", xr = "_labelWrap_12wb9_30", yr = "_sizer_12wb9_8", kr = "_triggerLabel_12wb9_70", Nr = "_chevron_12wb9_77", Lr = "_listbox_12wb9_82", Mr = "_item_12wb9_174", 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,
1005
+ trigger: yr,
1006
1006
  labelWrap: xr,
1007
- sizer: yr,
1008
- triggerLabel: kr,
1009
- chevron: Nr,
1010
- listbox: Lr,
1011
- item: Mr
1012
- }, mt = Ee(null), Rr = () => {
1013
- const e = qe(mt);
1007
+ sizer: Nr,
1008
+ triggerLabel: Mr,
1009
+ chevron: Lr,
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, Ne = 8;
1016
+ }, Ct = (e, t) => `${e}-${encodeURIComponent(t)}`, Ae = 4, Le = 8;
1017
1017
  function Er(e) {
1018
1018
  const t = [], o = (r) => {
1019
1019
  _t.forEach(r, (a) => {
1020
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 qr({
1027
+ function Ir({
1028
1028
  value: e,
1029
1029
  onValueChange: t,
1030
1030
  disabled: o,
@@ -1034,60 +1034,60 @@ function qr({
1034
1034
  children: s,
1035
1035
  ...c
1036
1036
  }) {
1037
- const [h, m] = Q(!1), [i, g] = Q(null), $ = se(), w = P(null), p = P(null), b = P(null), [v, M] = Q(null), [z, I] = Q(null), [Y, U] = Q(null), D = pe(() => Er(s), [s]), T = pe(() => D.filter((f) => !f.disabled).map((f) => f.value), [D]), Z = pe(() => D.map((f) => f.label), [D]), X = _e(
1038
- (f) => {
1039
- var E;
1040
- return ((E = D.find((A) => A.value === f)) == null ? void 0 : E.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 = (E) => {
1047
- p.current && !p.current.contains(E.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
- const y = _e(() => {
1052
- const f = w.current, E = b.current;
1053
- if (!f || !E) return;
1054
- const A = f.getBoundingClientRect();
1055
- M(f.offsetWidth);
1056
- const C = window.innerHeight - A.bottom - Ne, k = A.top - Ne, B = C < Math.min(E.offsetHeight + Te, 200) && k > C, V = Math.max(120, Math.min(380, B ? k - Te : C - Te));
1057
- I(V), E.dataset.side = B ? "top" : "bottom";
1058
- const G = Math.min(E.offsetHeight, V), _ = B ? Math.max(Ne, A.top - Te - G) : A.bottom + Te, x = Math.min(
1059
- Math.max(A.left, Ne),
1060
- Math.max(window.innerWidth - E.offsetWidth - Ne, Ne)
1051
+ const x = pe(() => {
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
+ Math.max(A.left, Le),
1060
+ Math.max(window.innerWidth - z.offsetWidth - Le, Le)
1061
1061
  );
1062
- U((d) => d && d.top === _ && d.left === x ? d : { top: _, left: x });
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, y), y()) : f.matches(":popover-open") && f.hidePopover());
1067
- }, [h, y]), te(() => {
1064
+ ye(() => {
1065
+ const i = b.current;
1066
+ i && (h ? (Qe(i, x), x()) : i.matches(":popover-open") && i.hidePopover());
1067
+ }, [h, x]), te(() => {
1068
1068
  if (!h) return;
1069
- let f = 0, E = "";
1069
+ let i = 0, z = "";
1070
1070
  const A = () => {
1071
- const C = w.current;
1072
- if (C) {
1073
- const k = C.getBoundingClientRect(), B = `${k.top}|${k.left}|${k.width}|${window.innerWidth}|${window.innerHeight}`;
1074
- B !== E && (E = B, y());
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);
1079
- }, [h, y]), te(() => {
1080
- var f;
1081
- h && ((f = b.current) == null || f.focus());
1078
+ return i = requestAnimationFrame(A), () => cancelAnimationFrame(i);
1079
+ }, [h, x]), te(() => {
1080
+ var i;
1081
+ h && ((i = b.current) == null || i.focus());
1082
1082
  }, [h]);
1083
- const L = (f) => {
1084
- g(f ?? T[0] ?? null), m(!0);
1085
- }, H = (f) => {
1086
- const E = i ? T.indexOf(i) : -1, A = Math.min(Math.max(E + f, 0), T.length - 1);
1087
- g(T[A] ?? null);
1088
- }, F = 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 qr({
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__ */ N("div", { ref: p, className: Ce.root, children: [
1106
- /* @__PURE__ */ N(
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: R(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) : L(e || null),
1120
- onKeyDown: (f) => {
1121
- (f.key === "ArrowDown" || f.key === "Enter" || f.key === " ") && (f.preventDefault(), L(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__ */ N("span", { className: Ce.labelWrap, children: [
1125
- /* @__PURE__ */ N("span", { className: Ce.sizer, "data-sizer": "", "aria-hidden": "true", children: [
1126
- Z.map((f, E) => (
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 }, E)
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: F ?? 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 qr({
1144
1144
  tabIndex: -1,
1145
1145
  popover: "manual",
1146
1146
  "data-side": "bottom",
1147
- "aria-activedescendant": i ? gt($, i) : void 0,
1148
- className: R(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` } : {},
1152
- ...z != null ? { maxHeight: `${z}px` } : {},
1153
- ...Y ? { top: Y.top, left: Y.left } : {}
1151
+ ...g != null ? { "--_select-trigger-width": `${g}px` } : {},
1152
+ ...I != null ? { maxHeight: `${I}px` } : {},
1153
+ ...X ? { top: X.top, left: X.left } : {}
1154
1154
  },
1155
- onKeyDown: (f) => {
1156
- var E, A;
1157
- f.key === "Escape" ? (f.stopPropagation(), m(!1), (E = w.current) == null || E.focus()) : f.key === "ArrowDown" ? (f.preventDefault(), H(1)) : f.key === "ArrowUp" ? (f.preventDefault(), H(-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 qr({
1163
1163
  }
1164
1164
  );
1165
1165
  }
1166
- function Ct({ value: e, disabled: t, children: o }) {
1166
+ function vt({ value: e, disabled: t, children: o }) {
1167
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: R(Ce.item, "spSelectItem"),
1176
+ className: E(Ce.item, "spSelectItem"),
1177
1177
  onMouseEnter: () => !t && r.setHighlighted(e),
1178
1178
  onClick: () => {
1179
1179
  var s;
@@ -1183,55 +1183,55 @@ function Ct({ value: e, disabled: t, children: o }) {
1183
1183
  }
1184
1184
  );
1185
1185
  }
1186
- const Il = Object.assign(qr, { Item: Ct }), Dr = "_root_1lx7y_1", zr = "_input_1lx7y_7", Ir = "_slot_1lx7y_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: zr,
1189
- slot: Ir
1190
- }, Hr = ae(function({ className: t, style: o, animated: r = !0, children: a, ...l }, s) {
1191
- return /* @__PURE__ */ N(
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: R(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: R(tt.input, "spTextFieldInput") })
1199
+ /* @__PURE__ */ n("input", { ...l, ref: s, className: E(nt.input, "spTextFieldInput") })
1200
1200
  ]
1201
1201
  }
1202
1202
  );
1203
1203
  });
1204
- function Sr({
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(Hr, { Slot: Sr }), Tr = "_root_1qu6w_1", Ar = "_textarea_1qu6w_6", it = {
1210
- root: Tr,
1211
- textarea: Ar
1212
- }, Hl = 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: R(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: R(it.textarea, "spTextAreaInput") })
1219
+ children: /* @__PURE__ */ n("textarea", { ...a, ref: l, className: E(dt.textarea, "spTextAreaInput") })
1220
1220
  }
1221
1221
  );
1222
- }), jr = "_wrap_4p9as_12", Or = "_field_4p9as_16", Zr = "_panel_4p9as_25", Br = "_status_4p9as_91", Vr = "_list_4p9as_101", Wr = "_option_4p9as_114", Pr = "_active_4p9as_126", Fr = "_label_4p9as_136", Gr = "_meta_4p9as_143", Ur = "_footer_4p9as_149", de = {
1223
- wrap: jr,
1224
- field: Or,
1225
- panel: Zr,
1226
- status: Br,
1227
- list: Vr,
1228
- option: Wr,
1229
- active: Pr,
1230
- label: Fr,
1231
- meta: Gr,
1232
- footer: Ur
1233
- }, dt = 8, et = 8;
1234
- function Sl({
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
+ field: Zr,
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
+ function ql({
1235
1235
  value: e,
1236
1236
  onValueChange: t,
1237
1237
  options: o,
@@ -1242,164 +1242,164 @@ function Sl({
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
- ...p
1248
+ style: y,
1249
+ ...u
1250
1250
  }) {
1251
- const [b, v] = Q(!1), [M, z] = Q(0), I = P(null), Y = P(null), U = P(null), D = se(), [T, Z] = Q(null), X = (_) => typeof _.label == "string" ? _.label : _.search ?? _.value, y = e.trim() !== "", L = pe(() => {
1252
- if (!y) return [];
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
+ if (!x) return [];
1253
1253
  if (s) return o;
1254
1254
  const _ = l ? e : e.toLowerCase();
1255
- return o.filter((x) => (l ? X(x) : X(x).toLowerCase()).includes(_));
1256
- }, [o, e, l, s, y]), H = pe(() => L.filter((_) => !_.disabled), [L]), F = y && (L.length > 0 || c || m != null), f = b && F;
1257
- te(() => z(0), [L]), te(() => {
1258
- var x;
1259
- if (!f) return;
1260
- const _ = (x = U.current) == null ? void 0 : x.querySelector(`[data-index="${M}"]`);
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
1261
  _ == null || _.scrollIntoView({ block: "nearest" });
1262
- }, [M, f]);
1263
- const E = _e(() => {
1264
- const _ = I.current, x = Y.current;
1265
- if (!_ || !x) return;
1266
- const u = (_.firstElementChild ?? _).getBoundingClientRect(), q = x.offsetHeight, j = window.innerHeight - u.bottom - et, O = j < q && u.top - et > j;
1267
- x.dataset.side = O ? "top" : "bottom";
1268
- const W = O ? Math.max(et, u.top - dt - q) : u.bottom + dt;
1269
- Z(
1270
- (S) => S && S.top === W && S.left === u.left && S.width === u.width ? S : { top: W, left: u.left, width: u.width }
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 _ = Y.current;
1275
- _ && (f ? (Ye(_, E), E()) : _.matches(":popover-open") && _.hidePopover());
1276
- }, [f, E]), te(() => {
1277
- if (!f) return;
1278
- let _ = 0, x = "";
1279
- const d = () => {
1280
- const u = I.current, q = Y.current;
1281
- if (u && q) {
1282
- const j = (u.firstElementChild ?? u).getBoundingClientRect(), O = `${j.top}|${j.left}|${j.width}|${q.offsetHeight}|${window.innerHeight}`;
1283
- O !== x && (x = O, E());
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
- _ = requestAnimationFrame(d);
1285
+ _ = requestAnimationFrame(f);
1286
1286
  };
1287
- return _ = requestAnimationFrame(d), () => cancelAnimationFrame(_);
1288
- }, [f, E]);
1289
- const A = _e(() => 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 _ = (x) => {
1293
- const d = I.current;
1294
- d && x.target instanceof Node && !d.contains(x.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
1296
  return document.addEventListener("pointerdown", _), () => document.removeEventListener("pointerdown", _);
1297
- }, [f, A]);
1298
- const C = P(!1), k = (_) => {
1299
- _.disabled || (t(X(_)), r(_.value, _), C.current = !1, v(!1));
1300
- }, B = (_) => {
1301
- if (H.length === 0) return;
1302
- const x = L[M], u = ((x && !x.disabled ? H.indexOf(x) : -1) + _ + H.length) % H.length, q = H[u];
1303
- q && z(L.indexOf(q));
1304
- }, V = (_) => {
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
1305
  if (_.key === "Escape") {
1306
- f && _.stopPropagation(), v(!1);
1306
+ i && _.stopPropagation(), g(!1);
1307
1307
  return;
1308
1308
  }
1309
1309
  if (_.key === "Tab") {
1310
- v(!1);
1310
+ g(!1);
1311
1311
  return;
1312
1312
  }
1313
- if (!f) {
1314
- _.key === "ArrowDown" && v(!0);
1313
+ if (!i) {
1314
+ _.key === "ArrowDown" && g(!0);
1315
1315
  return;
1316
1316
  }
1317
1317
  if (_.key === "ArrowDown")
1318
- _.preventDefault(), C.current = !0, B(1);
1318
+ _.preventDefault(), v.current = !0, W(1);
1319
1319
  else if (_.key === "ArrowUp")
1320
- _.preventDefault(), C.current = !0, B(-1);
1320
+ _.preventDefault(), v.current = !0, W(-1);
1321
1321
  else if (_.key === "Home") {
1322
- _.preventDefault(), C.current = !0;
1323
- const x = H[0];
1324
- x && z(L.indexOf(x));
1322
+ _.preventDefault(), v.current = !0;
1323
+ const L = w[0];
1324
+ L && I(k.indexOf(L));
1325
1325
  } else if (_.key === "End") {
1326
- _.preventDefault(), C.current = !0;
1327
- const x = H[H.length - 1];
1328
- x && z(L.indexOf(x));
1329
- } else if (_.key === "Enter" || _.key === " " && C.current) {
1330
- const x = L[M];
1331
- x && !x.disabled && (_.preventDefault(), k(x));
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 ? L[M] : void 0;
1334
- return /* @__PURE__ */ N("div", { ref: I, className: R(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
- ...p,
1339
- type: p.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}-${M}` : void 0,
1347
+ "aria-activedescendant": U && !U.disabled ? `${D}-${N}` : void 0,
1348
1348
  value: e,
1349
1349
  onFocus: (_) => {
1350
- var x;
1351
- (x = p.onFocus) == null || x.call(p, _), v(!0);
1350
+ var L;
1351
+ (L = u.onFocus) == null || L.call(u, _), g(!0);
1352
1352
  },
1353
1353
  onClick: (_) => {
1354
- var x;
1355
- (x = p.onClick) == null || x.call(p, _), v(!0);
1354
+ var L;
1355
+ (L = u.onClick) == null || L.call(u, _), g(!0);
1356
1356
  },
1357
1357
  onKeyDown: (_) => {
1358
- var x;
1359
- (x = p.onKeyDown) == null || x.call(p, _), V(_);
1358
+ var L;
1359
+ (L = u.onKeyDown) == null || L.call(u, _), F(_);
1360
1360
  },
1361
1361
  onChange: (_) => {
1362
- C.current = !1, t(_.target.value), v(!0);
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__ */ N(
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: R(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
- y && c && /* @__PURE__ */ n("p", { className: de.status, children: h }),
1378
- y && !c && L.length === 0 && m != null && /* @__PURE__ */ n("p", { className: de.status, children: m }),
1377
+ x && c && /* @__PURE__ */ n("p", { className: de.status, children: h }),
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 || L.length === 0,
1387
- children: L.map((_, x) => /* @__PURE__ */ N(
1386
+ hidden: c || k.length === 0,
1387
+ children: k.map((_, L) => /* @__PURE__ */ R(
1388
1388
  "li",
1389
1389
  {
1390
- id: `${D}-${x}`,
1391
- "data-index": x,
1390
+ id: `${D}-${L}`,
1391
+ "data-index": L,
1392
1392
  role: "option",
1393
- "aria-selected": x === M,
1393
+ "aria-selected": L === N,
1394
1394
  "aria-disabled": _.disabled || void 0,
1395
- className: R(
1395
+ className: E(
1396
1396
  de.option,
1397
- x === M && !_.disabled && de.active,
1397
+ L === N && !_.disabled && de.active,
1398
1398
  "spAutocompleteOption"
1399
1399
  ),
1400
- onMouseEnter: () => !_.disabled && z(x),
1401
- onPointerDown: (d) => {
1402
- d.preventDefault(), k(_);
1400
+ onMouseEnter: () => !_.disabled && I(L),
1401
+ onPointerDown: (f) => {
1402
+ f.preventDefault(), M(_);
1403
1403
  },
1404
1404
  children: [
1405
1405
  /* @__PURE__ */ n("span", { className: de.label, children: _.label }),
@@ -1410,65 +1410,123 @@ function Sl({
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__ */ N("span", { className: R(Ae.root, ue.spaceSlider, c), "data-disabled": s || void 0, children: [
1428
- /* @__PURE__ */ n("span", { className: R(Ae.track, "spSliderTrack"), children: /* @__PURE__ */ n("span", { className: R(Ae.range, "spSliderRange"), style: { width: `${g}%` } }) }),
1429
- /* @__PURE__ */ n("span", { className: R(Ae.thumb, "spSliderThumb"), style: { left: `${g}%` } }),
1430
- /* @__PURE__ */ n(
1431
- "input",
1432
- {
1433
- ref: m,
1434
- type: "range",
1435
- className: R(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_1hrli_15", ts = "_plot_1hrli_24", ns = "_svg_1hrli_30", os = "_grid_1hrli_35", rs = "_zeroLine_1hrli_42", ss = "_axisLabel_1hrli_46", as = "_bar_1hrli_56", ls = "_hatch_1hrli_76", cs = "_partialNote_1hrli_80", is = "_line_1hrli_85", ds = "_area_1hrli_119", us = "_dot_1hrli_125", fs = "_crosshair_1hrli_136", _s = "_clickable_1hrli_143", ps = "_tooltip_1hrli_150", hs = "_tooltipHead_1hrli_164", ms = "_tooltipList_1hrli_170", gs = "_tooltipRow_1hrli_178", Cs = "_tooltipName_1hrli_186", vs = "_tooltipValue_1hrli_190", bs = "_swatch_1hrli_195", $s = "_legend_1hrli_202", ws = "_legendItem_1hrli_211", xs = "_data_1hrli_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,
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,
1460
1518
  clickable: _s,
1461
- tooltip: ps,
1462
- tooltipHead: hs,
1463
- tooltipList: ms,
1464
- tooltipRow: gs,
1465
- tooltipName: Cs,
1466
- tooltipValue: vs,
1467
- swatch: bs,
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,
1527
+ legendItem: ys,
1470
1528
  data: xs
1471
- }, vt = [
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,22 +1535,22 @@ 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 ys(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 ks(e, { tickCount: t = 5, zeroBased: o = !0 } = {}) {
1487
- const r = e.filter((p) => Number.isFinite(p)), 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 = ys((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 p = 0; p <= $; p++) g.push(Number((m + p * h).toPrecision(12)));
1492
- const w = i - m || 1;
1493
- return { min: m, max: i, ticks: g, ratio: (p) => (p - 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
- function Ns(e, t = 0.25) {
1553
+ function Ls(e, t = 0.25) {
1496
1554
  if (e <= 0) return { centre: [], width: 0 };
1497
1555
  const o = 1 / e;
1498
1556
  return {
@@ -1500,18 +1558,18 @@ function Ns(e, t = 0.25) {
1500
1558
  width: o * (1 - t * 2)
1501
1559
  };
1502
1560
  }
1503
- function Ls(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 Ms(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
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
- ...p
1586
+ "aria-label": y,
1587
+ ...u
1530
1588
  }) {
1531
- const b = se(), v = P(null), [M, z] = Q(0), [I, 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(([q]) => {
1536
- z(Math.round(q.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), z(Math.round(d.getBoundingClientRect().width)), () => u.disconnect();
1596
+ return p.observe(f), I(Math.round(f.getBoundingClientRect().width)), () => p.disconnect();
1539
1597
  }, []), te(() => {
1540
1598
  if (!Rs()) 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.`
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, Z = pe(() => {
1550
- const d = [];
1551
- return U ? t.forEach((u, q) => {
1552
- let j = 0, O = 0;
1553
- o.forEach((W) => {
1554
- const S = W.data[q];
1555
- typeof S == "number" && (S >= 0 ? j += S : O += S);
1556
- }), d.push(j, O);
1557
- }) : o.forEach((u) => u.data.forEach((q) => {
1558
- typeof q == "number" && d.push(q);
1559
- })), ks(d, { tickCount: h, zeroBased: e !== "line" || d.some((u) => u < 0) });
1560
- }, [o, t, U, h, e]), X = pe(() => Z.ticks.map(c), [Z.ticks, c]), y = Math.max(...X.map((d) => d.length * 7), 24) + ut, L = Math.max(0, M - y - be.right), H = Math.max(0, r - be.top - be.bottom), F = e === "bar" ? 0 : 16, f = (d) => y + F + d * Math.max(0, L - F * 2), E = (d) => be.top + (1 - Z.ratio(d)) * H, A = Ns(t.length), C = Ms(t.length), k = (d) => {
1561
- var u;
1562
- return ((u = o[d]) == null ? void 0 : u.color) ?? Ke(d);
1563
- }, B = l ?? o.length > 1, V = pe(() => {
1564
- const d = o.map(() => []);
1565
- return t.forEach((u, q) => {
1566
- let j = 0, O = 0;
1567
- o.forEach((W, S) => {
1568
- const ee = W.data[q];
1569
- if (!U || typeof ee != "number") {
1570
- d[S][q] = 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[S][q] = j, j += ee) : (d[S][q] = O, O += 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 = _e(
1577
- (d) => {
1578
- const u = v.current;
1579
- if (!u || !t.length || L <= 0) return null;
1580
- const q = u.getBoundingClientRect(), j = e === "bar" ? L : Math.max(1, L - 32), O = (d - q.left - y - (e === "bar" ? 0 : 16)) / j, W = e === "bar" ? A.centre : C;
1581
- let S = 0;
1582
- return W.forEach((ee, ne) => {
1583
- Math.abs(ee - O) < Math.abs(W[S] - O) && (S = ne);
1584
- }), { index: S, x: f(W[S]) };
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, y, L, e, A.centre, C]
1646
+ [t.length, x, k, e, A.centre, v]
1589
1647
  // eslint-disable-line react-hooks/exhaustive-deps
1590
- ), _ = (d, u) => {
1591
- var j;
1592
- const q = (j = o[d]) == null ? void 0 : j.data[u];
1593
- typeof q != "number" || !g || g({
1594
- series: o[d].name,
1595
- seriesIndex: d,
1596
- category: t[u],
1597
- categoryIndex: u,
1598
- value: q
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
- }, x = U || o.length === 1 ? A.width * L : A.width * L / o.length;
1601
- return /* @__PURE__ */ N(
1658
+ }, L = G || o.length === 1 ? A.width * k : A.width * k / o.length;
1659
+ return /* @__PURE__ */ R(
1602
1660
  "div",
1603
1661
  {
1604
- ...p,
1605
- className: R(K.root, $),
1662
+ ...u,
1663
+ className: E(Y.root, $),
1606
1664
  "data-type": e,
1607
1665
  "data-animated": m ? "" : void 0,
1608
- style: { ...p.style },
1666
+ style: { ...u.style },
1609
1667
  children: [
1610
- /* @__PURE__ */ N(
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__ */ N(
1679
+ /* @__PURE__ */ R(
1622
1680
  "svg",
1623
1681
  {
1624
- className: K.svg,
1625
- width: M || void 0,
1682
+ className: Y.svg,
1683
+ width: N || void 0,
1626
1684
  height: r,
1627
- viewBox: M ? `0 0 ${M} ${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__ */ N("defs", { children: [
1633
- o.map((d, u) => /* @__PURE__ */ N("linearGradient", { id: `${b}-grad-${u}`, x1: "0", y1: "0", x2: "0", y2: "1", children: [
1634
- /* @__PURE__ */ n("stop", { offset: "0%", stopColor: k(u), stopOpacity: "1" }),
1635
- /* @__PURE__ */ n("stop", { offset: "100%", stopColor: k(u), stopOpacity: "0.55" })
1636
- ] }, `grad-${u}`)),
1637
- o.map((d, u) => /* @__PURE__ */ N("linearGradient", { id: `${b}-area-${u}`, x1: "0", y1: "0", x2: "0", y2: "1", children: [
1638
- /* @__PURE__ */ n("stop", { offset: "0%", stopColor: k(u), stopOpacity: "0.45" }),
1639
- /* @__PURE__ */ n("stop", { offset: "100%", stopColor: k(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__ */ N(
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: k(u) }),
1653
- /* @__PURE__ */ n("line", { className: K.hatch, x1: "6", y1: "0", x2: "6", y2: "8", stroke: k(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 && Z.ticks.map((d) => /* @__PURE__ */ n(
1716
+ s && V.ticks.map((f) => /* @__PURE__ */ n(
1659
1717
  "line",
1660
1718
  {
1661
- className: R(K.grid, d === 0 && Z.min < 0 && K.zeroLine),
1662
- x1: y,
1663
- x2: y + L,
1664
- y1: E(d),
1665
- y2: E(d)
1719
+ className: E(Y.grid, f === 0 && V.min < 0 && Y.zeroLine),
1720
+ x1: x,
1721
+ x2: x + k,
1722
+ y1: z(f),
1723
+ y2: z(f)
1666
1724
  },
1667
- `grid-${d}`
1725
+ `grid-${f}`
1668
1726
  )),
1669
- Z.ticks.map((d, u) => /* @__PURE__ */ n("text", { className: K.axisLabel, x: y - ut, y: E(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((q, j) => {
1683
- const O = d.data[j];
1684
- if (typeof O != "number") return null;
1685
- const W = V[u][j], S = E(W + O), ee = E(W), ne = f(A.centre[j]) - A.width * L / 2, ie = U || o.length === 1 ? ne : ne + u * x, Qe = Math.max(1, x - (o.length > 1 && !U ? 2 : 0)), me = Math.max(1, Math.abs(ee - S)), De = D && j >= i;
1740
+ e === "bar" && o.map((f, p) => /* @__PURE__ */ n("g", { children: t.map((S, B) => {
1741
+ const Z = f.data[B];
1742
+ if (typeof Z != "number") return null;
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: R(K.bar, g && K.clickable),
1690
- d: Ls(ie, Math.min(S, ee), Qe, me, 4, O >= 0),
1691
- fill: De ? `url(#${b}-hatch-${u})` : `url(#${b}-grad-${u})`,
1692
- color: k(u),
1693
- "data-dim": I && I.index !== j ? "" : void 0,
1694
- onClick: () => _(u, j),
1695
- children: /* @__PURE__ */ n("title", { children: `${d.name}, ${q}: ${c(O)}${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-${q}-${j}`
1755
+ `bar-${S}-${B}`
1698
1756
  );
1699
- }) }, `bars-${d.name}-${u}`)),
1700
- e !== "bar" && o.map((d, u) => {
1701
- const q = [];
1702
- let j = [];
1703
- return d.data.forEach((O, W) => {
1704
- if (typeof O != "number") {
1705
- j.length && q.push(j), j = [];
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) => {
1762
+ if (typeof Z != "number") {
1763
+ B.length && S.push(B), B = [];
1706
1764
  return;
1707
1765
  }
1708
- j.push({ i: W, value: O, base: V[u][W] });
1709
- }), j.length && q.push(j), /* @__PURE__ */ N("g", { children: [
1710
- q.map((O, W) => {
1711
- const S = O.map((ne, ie) => `${ie === 0 ? "M" : "L"}${f(C[ne.i])},${E(ne.base + ne.value)}`).join(" "), ee = e === "area" ? `${S} L${f(C[O[O.length - 1].i])},${E(O[O.length - 1].base)} ` + O.slice().reverse().map((ne) => `L${f(C[ne.i])},${E(ne.base)}`).join(" ") + " Z" : null;
1712
- return /* @__PURE__ */ N("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: S,
1719
- stroke: k(u),
1720
- color: k(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-${W}`);
1783
+ ] }, `run-${j}`);
1726
1784
  }),
1727
- d.data.map(
1728
- (O, W) => typeof O == "number" ? /* @__PURE__ */ n(
1785
+ f.data.map(
1786
+ (Z, j) => typeof Z == "number" ? /* @__PURE__ */ n(
1729
1787
  "circle",
1730
1788
  {
1731
- className: R(K.dot, g && K.clickable),
1732
- cx: f(C[W]),
1733
- cy: E(V[u][W] + O),
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: k(u),
1736
- color: k(u),
1737
- "data-on": (I == null ? void 0 : I.index) === W ? "" : void 0,
1738
- onClick: () => _(u, W),
1739
- children: /* @__PURE__ */ n("title", { children: `${d.name}, ${t[W]}: ${c(O)}` })
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-${W}`
1799
+ `dot-${j}`
1742
1800
  ) : null
1743
1801
  )
1744
- ] }, `line-${d.name}-${u}`);
1802
+ ] }, `line-${f.name}-${p}`);
1745
1803
  }),
1746
- I && /* @__PURE__ */ n(
1804
+ T && /* @__PURE__ */ n(
1747
1805
  "line",
1748
1806
  {
1749
- className: K.crosshair,
1750
- x1: I.x,
1751
- x2: I.x,
1752
- y1: be.top,
1753
- y2: be.top + H
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
- I && /* @__PURE__ */ N(
1817
+ T && /* @__PURE__ */ R(
1760
1818
  "div",
1761
1819
  {
1762
- className: K.tooltip,
1763
- style: I.x > y + L / 2 ? { right: Math.max(0, M - I.x + 12) } : { left: I.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[I.index] }),
1767
- /* @__PURE__ */ n("ul", { className: K.tooltipList, children: o.map((d, u) => {
1768
- const q = d.data[I.index];
1769
- return /* @__PURE__ */ N("li", { className: K.tooltipRow, children: [
1770
- /* @__PURE__ */ n("span", { className: K.swatch, style: { background: k(u) }, "aria-hidden": "true" }),
1771
- /* @__PURE__ */ n("span", { className: K.tooltipName, children: d.name }),
1772
- /* @__PURE__ */ N("span", { className: K.tooltipValue, children: [
1773
- typeof q == "number" ? c(q) : "—",
1774
- T(I.index) && typeof q == "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
- B && /* @__PURE__ */ n("ul", { className: K.legend, children: o.map((d, u) => /* @__PURE__ */ N("li", { className: K.legendItem, children: [
1785
- /* @__PURE__ */ n("span", { className: K.swatch, style: { background: k(u) }, "aria-hidden": "true" }),
1786
- d.name
1787
- ] }, d.name)) }),
1788
- /* @__PURE__ */ N("table", { className: K.data, id: b, children: [
1789
- /* @__PURE__ */ n("caption", { children: w ?? "Chart data" }),
1790
- /* @__PURE__ */ n("thead", { children: /* @__PURE__ */ N("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__ */ N("tr", { children: [
1795
- /* @__PURE__ */ n("th", { scope: "row", children: d }),
1796
- o.map((q) => /* @__PURE__ */ N("td", { children: [
1797
- typeof q.data[u] == "number" ? c(q.data[u]) : "—",
1798
- T(u) && typeof q.data[u] == "number" ? " so far" : ""
1799
- ] }, q.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 Es = "_root_90ktq_8", qs = "_row_90ktq_15", Ds = "_line_90ktq_21", zs = "_pressable_90ktq_36", Is = "_fill_90ktq_50", Hs = "_label_90ktq_58", Ss = "_track_90ktq_66", Ts = "_value_90ktq_101", As = "_percent_90ktq_106", fe = {
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 = {
1807
1865
  root: Es,
1808
- row: qs,
1866
+ row: Is,
1809
1867
  line: Ds,
1810
- pressable: zs,
1811
- fill: Is,
1812
- label: Hs,
1813
- track: Ss,
1814
- value: Ts,
1815
- percent: As
1868
+ pressable: Hs,
1869
+ fill: Ss,
1870
+ label: Ts,
1871
+ track: qs,
1872
+ value: As,
1873
+ percent: Os
1816
1874
  };
1817
- function jl({
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 jl({
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: R(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 p = 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)"), M = /* @__PURE__ */ N(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: `${p * 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__ */ N("span", { className: fe.value, children: [
1914
+ /* @__PURE__ */ R("span", { className: fe.value, children: [
1857
1915
  r($.value),
1858
- o && /* @__PURE__ */ N("span", { className: fe.percent, children: [
1916
+ o && /* @__PURE__ */ R("span", { className: fe.percent, children: [
1859
1917
  Math.round(b),
1860
1918
  "%"
1861
1919
  ] })
@@ -1865,58 +1923,58 @@ function jl({
1865
1923
  "button",
1866
1924
  {
1867
1925
  type: "button",
1868
- className: R(fe.line, fe.pressable),
1869
- onClick: () => s($, w),
1870
- children: M
1926
+ className: E(fe.line, fe.pressable),
1927
+ onClick: () => s($, y),
1928
+ children: N
1871
1929
  }
1872
- ) : /* @__PURE__ */ n("span", { className: fe.line, children: M }) }, `${$.label}-${w}`);
1930
+ ) : /* @__PURE__ */ n("span", { className: fe.line, children: N }) }, `${$.label}-${y}`);
1873
1931
  })
1874
1932
  }
1875
1933
  );
1876
1934
  }
1877
- const js = "_root_1y6jk_6", Os = "_svg_1y6jk_15", Zs = "_face_1y6jk_24", Bs = "_hole_1y6jk_25", Vs = "_slice_1y6jk_35", Ws = "_sweep_1y6jk_57", Ps = "_clickable_1y6jk_70", Fs = "_total_1y6jk_76", Gs = "_totalLabel_1y6jk_84", Us = "_legend_1y6jk_89", Ks = "_legendItem_1y6jk_98", Xs = "_legendName_1y6jk_113", Ys = "_legendValue_1y6jk_121", Qs = "_legendPercent_1y6jk_126", Js = "_swatch_1y6jk_131", oe = {
1878
- root: js,
1879
- svg: Os,
1880
- face: Zs,
1881
- hole: Bs,
1882
- slice: Vs,
1883
- sweep: Ws,
1884
- clickable: Ps,
1885
- total: Fs,
1886
- totalLabel: Gs,
1887
- legend: Us,
1888
- legendItem: Ks,
1889
- legendName: Xs,
1890
- legendValue: Ys,
1891
- legendPercent: Qs,
1892
- swatch: Js
1893
- }, Le = (e, t, o) => {
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,
1937
+ svg: Zs,
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
  };
1897
- function Ol({
1955
+ function Zl({
1898
1956
  slices: e,
1899
1957
  donut: t = !1,
1900
1958
  label: o,
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(), p = e.filter((D) => D.value > 0), b = p.reduce((D, T) => D + T.value, 0), v = r / 2, M = v - 2, z = t ? M * 0.62 : 0;
1911
- let I = 0;
1912
- const Y = p.map((D, T) => {
1913
- const Z = b > 0 ? D.value / b : 0, X = I;
1914
- I += Z;
1915
- const y = Le(v, M, X), L = Le(v, M, I), H = Z > 0.5 ? 1 : 0, F = Z >= 0.999, f = F ? t ? `M${v},${v - M} A${M},${M} 0 1 1 ${v - 0.01},${v - M} Z M${v},${v - z} A${z},${z} 0 1 0 ${v - 0.01},${v - z} Z` : `M${v},${v - M} A${M},${M} 0 1 1 ${v - 0.01},${v - M} Z` : t ? `M${y.x},${y.y} A${M},${M} 0 ${H} 1 ${L.x},${L.y} L${Le(v, z, I).x},${Le(v, z, I).y} A${z},${z} 0 ${H} 0 ${Le(v, z, X).x},${Le(v, z, X).y} Z` : `M${v},${v} L${y.x},${y.y} A${M},${M} 0 ${H} 1 ${L.x},${L.y} Z`;
1916
- return { slice: D, index: T, d: f, fraction: Z, fillRule: F && t ? "evenodd" : void 0 };
1917
- }), U = (D) => e.indexOf(D);
1918
- return /* @__PURE__ */ N("div", { ...i, className: R(oe.root, h), "data-animated": l ? "" : void 0, children: [
1919
- /* @__PURE__ */ N(
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,44 +1984,44 @@ function Ol({
1926
1984
  role: "img",
1927
1985
  "aria-label": m ?? "Pie chart",
1928
1986
  children: [
1929
- /* @__PURE__ */ N("defs", { children: [
1930
- /* @__PURE__ */ N("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__ */ N("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__ */ N("g", { className: oe.sweep, children: [
1941
- Y.map(({ slice: D, index: T, d: Z, 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: R(oe.slice, c && oe.clickable),
1945
- d: Z,
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: M, fill: `url(#${w}-face)` }),
1957
- /* @__PURE__ */ n("circle", { className: oe.face, cx: v, cy: v, r: M, 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,
1966
- r: z,
2022
+ cx: g,
2023
+ cy: g,
2024
+ r: I,
1967
2025
  fill: "none",
1968
2026
  stroke: "#000",
1969
2027
  strokeOpacity: "0.45",
@@ -1971,52 +2029,52 @@ function Ol({
1971
2029
  }
1972
2030
  )
1973
2031
  ] }),
1974
- t && /* @__PURE__ */ N(he, { children: [
1975
- /* @__PURE__ */ n("text", { className: oe.total, x: v, y: v - (o ? 6 : 0), textAnchor: "middle", dominantBaseline: "middle", children: s(g !== null ? p[g].value : b) }),
1976
- o && /* @__PURE__ */ n("text", { className: oe.totalLabel, x: v, y: v + 14, textAnchor: "middle", dominantBaseline: "middle", children: g !== null ? p[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: p.map((D, T) => /* @__PURE__ */ N(
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__ */ N("span", { className: oe.legendValue, children: [
2054
+ /* @__PURE__ */ R("span", { className: oe.legendValue, children: [
1997
2055
  s(D.value),
1998
- /* @__PURE__ */ N("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_mmcx8_18", ta = "_item_mmcx8_24", na = "_selfLabeled_mmcx8_33", oa = "_label_mmcx8_37", ra = "_input_mmcx8_41", sa = "_box_mmcx8_57", aa = "_tick_mmcx8_80", la = "_dash_mmcx8_81", ca = "_tickPath_mmcx8_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 = Ee(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,
@@ -2028,7 +2086,7 @@ function $t({
2028
2086
  const s = P(null);
2029
2087
  return te(() => {
2030
2088
  s.current && (s.current.indeterminate = t === !0);
2031
- }, [t]), /* @__PURE__ */ N(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__ */ N("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: R(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 = qe(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__ */ N("label", { className: R(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 Zl = Object.assign(ia, { Item: da });
2090
- function Bl({
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 Bl({
2106
2164
  onToggle: t
2107
2165
  }
2108
2166
  );
2109
- return s == null ? /* @__PURE__ */ n("span", { className: R(re.item, a), children: c }) : /* @__PURE__ */ N("label", { className: R(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_1u1sq_15", fa = "_item_1u1sq_23", _a = "_selfLabeled_1u1sq_32", pa = "_input_1u1sq_36", ha = "_orb_1u1sq_52", ma = "_burst_1u1sq_99", $e = {
2115
- root: ua,
2116
- item: fa,
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,
2117
2175
  selfLabeled: _a,
2118
- input: pa,
2119
- orb: ha,
2120
- burst: ma
2121
- }, wt = Ee(null);
2122
- function ga({ value: e, onValueChange: t, disabled: o, className: r, children: 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: R($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 = qe(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__ */ N(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: R($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__ */ N("label", { className: R($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 Vl = 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 Wl({ 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,100 +2217,100 @@ function Wl({ 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: R(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_1522x_14", wa = "_info_1522x_44", xa = "_warning_1522x_49", ya = "_alert_1522x_56", ka = "_icon_1522x_63", Na = "_body_1522x_74", La = "_title_1522x_83", Ma = "_text_1522x_90", Me = {
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,
2228
+ info: ya,
2171
2229
  warning: xa,
2172
- alert: ya,
2173
- icon: ka,
2174
- body: Na,
2175
- title: La,
2176
- text: Ma
2230
+ alert: Na,
2231
+ icon: Ma,
2232
+ body: La,
2233
+ title: ka,
2234
+ text: za
2177
2235
  }, Ra = {
2178
- info: /* @__PURE__ */ n(Mo, {}),
2236
+ info: /* @__PURE__ */ n(zo, {}),
2179
2237
  warning: /* @__PURE__ */ n(Ro, {}),
2180
2238
  alert: /* @__PURE__ */ n(Eo, {})
2181
2239
  }, Ea = {
2182
2240
  info: { role: "status", live: "polite" },
2183
2241
  warning: { role: "status", live: "polite" },
2184
2242
  alert: { role: "alert" }
2185
- }, Pl = ae(function({ variant: t = "info", title: o, icon: r, className: a, children: l, ...s }, c) {
2186
- const h = r === void 0 ? Ra[t] : r, { role: m, live: i } = Ea[t];
2187
- return /* @__PURE__ */ N(
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: R(Me.message, Me[t], a),
2251
+ "aria-live": d,
2252
+ className: E(ze.message, ze[t], a),
2195
2253
  children: [
2196
- h != null && /* @__PURE__ */ n("span", { className: Me.icon, "aria-hidden": "true", children: h }),
2197
- /* @__PURE__ */ N("div", { className: Me.body, children: [
2198
- o != null && /* @__PURE__ */ n("p", { className: Me.title, children: o }),
2199
- l != null && /* @__PURE__ */ n("div", { className: Me.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
- }), qa = "_dialog_zbndh_2", Da = "_inner_zbndh_71", za = "_size4_zbndh_76", Ia = "_title_zbndh_80", Ha = "_closeX_zbndh_88", Oe = {
2205
- dialog: qa,
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: za,
2208
- title: Ia,
2209
- closeX: Ha
2265
+ size4: Ha,
2266
+ title: Sa,
2267
+ closeX: Ta
2210
2268
  };
2211
- let Ge = 0;
2212
- const xt = Ee(null), Be = () => {
2213
- const e = qe(xt);
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 yt(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 = (p) => {
2220
- c || s(p), r == null || r(p);
2221
- }, i = se(), g = se(), [$, w] = Q(!1);
2222
- return /* @__PURE__ */ n(xt.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 Sa = yt(!1), kt = (e, t) => {
2283
+ const qa = Nt(!1), Mt = (e, t) => {
2226
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();
2232
2290
  }
2233
2291
  });
2234
2292
  };
2235
- function Nt({
2293
+ function Lt({
2236
2294
  children: e
2237
2295
  }) {
2238
- const t = Be();
2239
- return /* @__PURE__ */ n(he, { children: kt(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 = Be();
2245
- return /* @__PURE__ */ n(he, { children: kt(e, () => t.setOpen(!1)) });
2302
+ const t = We();
2303
+ return /* @__PURE__ */ n(he, { children: Mt(e, () => t.setOpen(!1)) });
2246
2304
  }
2247
- function Lt({ size: e = "3", maxWidth: t, className: o, style: r, children: a, ...l }) {
2248
- const s = Be(), c = P(null), h = P(!1), m = P(!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 Lt({ 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: R(Oe.dialog, "spDialog", e === "4" && Oe.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,21 +2336,21 @@ function Lt({ 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__ */ N("div", { className: Oe.inner, children: [
2345
+ children: /* @__PURE__ */ R("div", { className: Ze.inner, children: [
2288
2346
  !s.alert && /* @__PURE__ */ n(
2289
2347
  "button",
2290
2348
  {
2291
2349
  type: "button",
2292
- className: Oe.closeX,
2350
+ className: Ze.closeX,
2293
2351
  "aria-label": "Close",
2294
2352
  onClick: () => s.setOpen(!1),
2295
- children: /* @__PURE__ */ n(Lo, { 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 Lt({ size: e = "3", maxWidth: t, className: o, style: r, children: a, .
2300
2358
  }
2301
2359
  );
2302
2360
  }
2303
- function Mt({ className: e, ...t }) {
2304
- const o = Be();
2305
- return /* @__PURE__ */ n(rn, { as: "h2", size: "5", ...t, id: o.titleId, className: R(Oe.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
2365
  function Rt(e) {
2308
- const t = Be(), { setHasDesc: o } = t;
2309
- return we(() => (o(!0), () => o(!1)), [o]), /* @__PURE__ */ n(Gt, { as: "p", ...e, id: t.descId });
2310
- }
2311
- const Fl = Object.assign(Sa, {
2312
- Trigger: Nt,
2313
- Close: st,
2314
- Content: Lt,
2315
- Title: Mt,
2366
+ const t = We(), { setHasDesc: o } = t;
2367
+ return ye(() => (o(!0), () => o(!1)), [o]), /* @__PURE__ */ n(Ut, { as: "p", ...e, id: t.descId });
2368
+ }
2369
+ const Gl = Object.assign(qa, {
2370
+ Trigger: Lt,
2371
+ Close: at,
2372
+ Content: kt,
2373
+ Title: zt,
2316
2374
  Description: Rt
2317
- }), Ta = st, Aa = st, Gl = Object.assign(yt(!0), {
2318
- Trigger: Nt,
2319
- Content: Lt,
2320
- Title: Mt,
2375
+ }), Aa = at, Oa = at, Ul = Object.assign(Nt(!0), {
2376
+ Trigger: Lt,
2377
+ Content: kt,
2378
+ Title: zt,
2321
2379
  Description: Rt,
2322
- Cancel: Ta,
2323
- Action: Aa
2324
- }), ja = "_menu_11ctg_1", Oa = "_label_11ctg_51", Za = "_item_11ctg_61", Ba = "_danger_11ctg_80", Va = "_separator_11ctg_84", Ze = {
2325
- menu: ja,
2326
- label: Oa,
2327
- item: Za,
2328
- danger: Ba,
2329
- separator: Va
2330
- }, Et = Ee(null), Wa = () => {
2331
- const e = qe(Et);
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,
2384
+ label: Za,
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 Pa({ label: e, align: t = "start", children: o, ...r }) {
2336
- const [a, l] = Q(!1), s = se(), c = P(null), h = P(null), m = P(null), i = P(a);
2337
- i.current = a;
2338
- const g = _e((p) => {
2339
- i.current !== p && (i.current = p, l(p));
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 p = h.current;
2344
- if (p)
2401
+ const u = h.current;
2402
+ if (u)
2345
2403
  if (a) {
2346
- const v = c.current;
2347
- if (v) {
2348
- const M = v.getBoundingClientRect(), z = t === "end" ? "auto" : M.left, I = t === "end" ? window.innerWidth - M.right : "auto";
2349
- w({ top: M.bottom + 6, left: z, right: I });
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
- p.showPopover(), (b = p.querySelector('[role="menuitem"]')) == null || b.focus();
2352
- } else p.matches(":popover-open") && p.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 p = () => g(!1);
2356
- return window.addEventListener("resize", p), () => window.removeEventListener("resize", p);
2357
- }, [a]), /* @__PURE__ */ N(Et.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: (p) => {
2424
+ onPointerDown: (u) => {
2367
2425
  var b;
2368
- (b = r.onPointerDown) == null || b.call(r, p), m.current = !i.current;
2426
+ (b = r.onPointerDown) == null || b.call(r, u), m.current = !d.current;
2369
2427
  },
2370
- onKeyDown: (p) => {
2428
+ onKeyDown: (u) => {
2371
2429
  var b;
2372
- (b = r.onKeyDown) == null || b.call(r, p), (p.key === "Enter" || p.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: (p) => {
2375
- var v;
2376
- (v = r.onClick) == null || v.call(r, p);
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 Pa({ label: e, align: t = "start", children: o, ...r }) {
2387
2445
  id: s,
2388
2446
  role: "menu",
2389
2447
  popover: "auto",
2390
- className: Ze.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: (p) => {
2397
- p.nativeEvent.newState === "closed" && g(!1);
2454
+ onToggle: (u) => {
2455
+ u.nativeEvent.newState === "closed" && C(!1);
2398
2456
  },
2399
- onKeyDown: (p) => {
2400
- var M, z, I, Y, U, D;
2457
+ onKeyDown: (u) => {
2458
+ var N, I, T, X, G, D;
2401
2459
  const b = Array.from(
2402
- ((M = h.current) == null ? void 0 : M.querySelectorAll('[role="menuitem"]')) ?? []
2403
- ), v = b.indexOf(document.activeElement);
2404
- p.key === "ArrowDown" ? (p.preventDefault(), (z = b[Math.min(v + 1, b.length - 1)]) == null || z.focus()) : p.key === "ArrowUp" ? (p.preventDefault(), (I = b[Math.max(v - 1, 0)]) == null || I.focus()) : p.key === "Home" ? (p.preventDefault(), (Y = b[0]) == null || Y.focus()) : p.key === "End" ? (p.preventDefault(), (U = b[b.length - 1]) == null || U.focus()) : p.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 Fa({
2469
+ function Ga({
2412
2470
  children: e
2413
2471
  }) {
2414
- return /* @__PURE__ */ n("div", { className: Ze.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 = Wa(), l = R(Ze.item, t === "danger" && Ze.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
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, p = 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: p,
2491
+ ref: u,
2434
2492
  role: "menuitem",
2435
2493
  tabIndex: -1,
2436
- ...w,
2437
- className: R(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: Ze.separator });
2505
+ function Ka() {
2506
+ return /* @__PURE__ */ n("div", { role: "separator", className: Ve.separator });
2449
2507
  }
2450
- const Ul = Object.assign(Pa, { Item: Ga, Separator: Ua, Label: Fa }), Ka = "_list_1hc3r_19", Xa = "_trigger_1hc3r_28", qt = {
2451
- list: Ka,
2452
- trigger: Xa
2453
- }, Dt = Ee(null), zt = () => {
2454
- const e = qe(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: R(qt.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 = zt(), 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: R(qt.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 = zt();
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_4us94_9", nl = {
2525
- panel: tl
2526
- }, ft = 8, je = 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, p = se(), b = se(), v = P(null), M = P(null), [z, I] = Q(null), Y = P(!1), U = P(!1), D = P(null), T = P(w);
2540
- T.current = w;
2541
- const Z = _e(
2542
- (y) => {
2543
- T.current !== y && (T.current = y, $ || g(y), r == null || r(y));
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(
2600
+ (x) => {
2601
+ q.current !== x && (q.current = x, $ || C(x), r == null || r(x));
2544
2602
  },
2545
2603
  [$, r]
2546
- ), X = _e(() => {
2547
- const y = v.current, L = M.current;
2548
- if (!y || !L) return;
2549
- const H = y.getBoundingClientRect(), F = L.offsetWidth, f = L.offsetHeight, E = H.bottom + ft, A = H.top - f - ft, C = E + f <= window.innerHeight - je, k = A >= je, B = l === "bottom" ? C || !k ? E : A : k || !C ? A : E, V = B === E ? "bottom" : "top";
2550
- L.dataset.side = V;
2551
- const G = s === "start" ? H.left : s === "end" ? H.right - F : H.left + H.width / 2 - F / 2, _ = Math.min(
2552
- Math.max(G, je),
2553
- Math.max(window.innerWidth - F - je, je)
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
- I(
2556
- (x) => x && x.top === B && x.left === _ && x.placed === V ? x : { top: B, left: _, placed: V }
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 y = M.current;
2561
- y && (w ? (Ye(y, X), X(), Y.current && (Y.current = !1, (y.querySelector(ol) ?? y).focus({ preventScroll: !0 }))) : y.matches(":popover-open") && y.hidePopover());
2562
- }, [w, X]), te(() => {
2563
- if (!w) return;
2564
- let y = 0, L = "";
2565
- const H = () => {
2566
- const F = v.current, f = M.current;
2567
- if (F && f) {
2568
- const E = F.getBoundingClientRect(), A = `${E.top}|${E.left}|${E.width}|${E.height}|${f.offsetWidth}|${f.offsetHeight}|${window.innerWidth}|${window.innerHeight}`;
2569
- A !== L && (L = 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
- y = requestAnimationFrame(H);
2629
+ x = requestAnimationFrame(w);
2572
2630
  };
2573
- return y = requestAnimationFrame(H), () => cancelAnimationFrame(y);
2574
- }, [w, X]), /* @__PURE__ */ N(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: p,
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
- onPointerDown: (y) => {
2585
- var L;
2586
- (L = m.onPointerDown) == null || L.call(m, y), D.current = !T.current;
2642
+ onPointerDown: (x) => {
2643
+ var k;
2644
+ (k = m.onPointerDown) == null || k.call(m, x), D.current = !q.current;
2587
2645
  },
2588
- onKeyDown: (y) => {
2589
- var L;
2590
- (L = m.onKeyDown) == null || L.call(m, y), (y.key === "Enter" || y.key === " ") && (D.current = null);
2646
+ onKeyDown: (x) => {
2647
+ var k;
2648
+ (k = m.onKeyDown) == null || k.call(m, x), (x.key === "Enter" || x.key === " ") && (D.current = null);
2591
2649
  },
2592
- onClick: (y) => {
2593
- h == null || h(y);
2594
- const L = D.current ?? !T.current;
2595
- D.current = null, L && (Y.current = !0), Z(L);
2650
+ onClick: (x) => {
2651
+ h == null || h(x);
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: M,
2661
+ ref: N,
2604
2662
  id: b,
2605
2663
  popover: "auto",
2606
2664
  role: "dialog",
2607
- "aria-labelledby": p,
2665
+ "aria-labelledby": u,
2608
2666
  tabIndex: -1,
2609
- className: R(nl.panel, ue.spacePanel, c),
2667
+ className: E(ol.panel, ue.spacePanel, c),
2610
2668
  "data-animated": m.animated === !1 ? "false" : void 0,
2611
- "data-side": (z == null ? void 0 : z.placed) ?? l,
2612
- style: z ? { top: z.top, left: z.left } : void 0,
2613
- onKeyDown: (y) => {
2614
- y.key === "Escape" && (U.current = !0, y.stopPropagation());
2669
+ "data-side": (I == null ? void 0 : I.placed) ?? l,
2670
+ style: I ? { top: I.top, left: I.left } : void 0,
2671
+ onKeyDown: (x) => {
2672
+ x.key === "Escape" && (G.current = !0, x.stopPropagation());
2615
2673
  },
2616
- onToggle: (y) => {
2617
- var L;
2618
- y.nativeEvent.newState === "closed" && (U.current && (U.current = !1, (L = v.current) == null || L.focus()), Z(!1));
2674
+ onToggle: (x) => {
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,
2627
- Sl as Autocomplete,
2628
- dl as Badge,
2629
- jl as BarList,
2684
+ Ul as AlertDialog,
2685
+ ql as Autocomplete,
2686
+ ul as Badge,
2687
+ Bl as BarList,
2630
2688
  Rl as BookmarkIcon,
2631
- cl as Box,
2632
- Ue as Button,
2633
- fl as Card,
2689
+ il as Box,
2690
+ Ke as Button,
2691
+ pl as Card,
2634
2692
  El as Carousel,
2635
- Al as Chart,
2636
- pl as ChatBubbleIcon,
2637
- bl as CheckIcon,
2638
- Bl as Checkbox,
2639
- Zl as CheckboxGroup,
2640
- Ml as ChevronDownIcon,
2641
- ht as ChevronLeftIcon,
2642
- pt as ChevronRightIcon,
2643
- Ll as ChevronUpIcon,
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,
2644
2702
  Eo as CrossCircledIcon,
2645
- Fl as Dialog,
2646
- Ul as DropdownMenu,
2647
- vl as EnterFullScreenIcon,
2703
+ Gl as Dialog,
2704
+ Kl as DropdownMenu,
2705
+ bl as EnterFullScreenIcon,
2648
2706
  Ro as ExclamationTriangleIcon,
2649
- Cl as ExitFullScreenIcon,
2650
- ll as Flex,
2651
- il as Grid,
2652
- rn as Heading,
2653
- gl as HeartFilledIcon,
2654
- Nl as HeartIcon,
2655
- zl as IconToggle,
2656
- Mo as InfoCircledIcon,
2657
- al as Link,
2707
+ vl as ExitFullScreenIcon,
2708
+ cl as Flex,
2709
+ dl as Grid,
2710
+ sn as Heading,
2711
+ Cl as HeartFilledIcon,
2712
+ Ll as HeartIcon,
2713
+ Hl as IconToggle,
2714
+ zo as InfoCircledIcon,
2715
+ ll as Link,
2658
2716
  Dl as Loader,
2659
- kl as MagnifyingGlassIcon,
2660
- Pl as Message,
2661
- yl as MinusIcon,
2662
- ql as Pagination,
2663
- ml as Pencil1Icon,
2717
+ Ml as MagnifyingGlassIcon,
2718
+ jl as Message,
2719
+ Nl as MinusIcon,
2720
+ Il as Pagination,
2721
+ gl as Pencil1Icon,
2664
2722
  xl as PersonIcon,
2665
- Ol as PieChart,
2666
- hl as PlusIcon,
2667
- Xl as Popover,
2668
- Wl as Progress,
2669
- wl as QuestionMarkCircledIcon,
2670
- Vl as RadioGroup,
2671
- Il as Select,
2672
- ul as Separator,
2723
+ Zl as PieChart,
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,
2673
2731
  _l as Share2Icon,
2674
- Tl as Slider,
2675
- Kl as Tabs,
2676
- Gt as Text,
2677
- Hl as TextArea,
2678
- ct as TextField,
2679
- mr as Tooltip,
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
- Lo 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