@inkorange/space-ui 1.4.0 → 1.6.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 H, createElement as xe, isValidElement as ne, cloneElement as ve, useId as O, useMemo as te, useState as E, useRef as R, useEffect as j, useLayoutEffect as be, useCallback as ze, createContext as oe, useContext as se, Children as Ue } from "react";
3
- import { jsx as n, jsxs as $, Fragment as de } from "react/jsx-runtime";
4
- const re = {
2
+ import { forwardRef as F, createElement as Ae, isValidElement as ge, cloneElement as He, useId as U, useMemo as _e, Children as Ge, useRef as E, useState as Z, useCallback as le, useLayoutEffect as Ce, useEffect as G, createContext as Le, useContext as ke } from "react";
3
+ import { jsx as n, jsxs as D, Fragment as pe } from "react/jsx-runtime";
4
+ const he = {
5
5
  0: "0",
6
6
  1: "var(--spacing-xs)",
7
7
  2: "var(--spacing-sm)",
@@ -10,225 +10,285 @@ const re = {
10
10
  5: "var(--spacing-lg)",
11
11
  6: "var(--spacing-xl)"
12
12
  };
13
- function P({ m: e, mt: t, mb: o, p: s, pb: r }, l) {
14
- const c = {
15
- ...e !== void 0 && { margin: re[e] },
16
- ...t !== void 0 && { marginTop: re[t] },
17
- ...o !== void 0 && { marginBottom: re[o] },
18
- ...s !== void 0 && { padding: re[s] },
19
- ...r !== void 0 && { paddingBottom: re[r] },
13
+ function ne({ m: e, mt: t, mb: o, p: r, pb: s }, l) {
14
+ const 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
+ ...s !== void 0 && { paddingBottom: he[s] },
20
20
  ...l
21
21
  };
22
- return Object.keys(c).length > 0 ? c : void 0;
22
+ return Object.keys(a).length > 0 ? a : void 0;
23
23
  }
24
- function m(...e) {
24
+ function b(...e) {
25
25
  return e.filter(Boolean).join(" ");
26
26
  }
27
- const Xe = "_text_4vcq4_1", Ye = "_size1_4vcq4_5", Qe = "_size2_4vcq4_11", Je = "_size3_4vcq4_16", et = "_size4_4vcq4_21", tt = "_size5_4vcq4_27", nt = "_size6_4vcq4_33", ot = "_medium_4vcq4_39", st = "_bold_4vcq4_43", rt = "_colorMuted_4vcq4_47", lt = "_colorDanger_4vcq4_51", ct = "_colorSuccess_4vcq4_55", at = "_colorWarning_4vcq4_59", pe = {
28
- text: Xe,
29
- size1: Ye,
30
- size2: Qe,
31
- size3: Je,
32
- size4: et,
33
- size5: tt,
34
- size6: nt,
35
- medium: ot,
36
- bold: st,
37
- colorMuted: rt,
38
- colorDanger: lt,
39
- colorSuccess: ct,
40
- colorWarning: at
41
- }, it = H(function({ as: t = "span", size: o, weight: s, color: r, className: l, style: c, m: i, mt: u, mb: C, p: a, pb: p, ...v }, _) {
42
- return xe(t, {
43
- ...v,
44
- ref: _,
45
- className: m(
46
- pe.text,
47
- o && pe[`size${o}`],
48
- s && pe[s],
49
- r && pe[`color${r[0].toUpperCase()}${r.slice(1)}`],
27
+ const pt = "_text_4vcq4_1", gt = "_size1_4vcq4_5", Ct = "_size2_4vcq4_11", ht = "_size3_4vcq4_16", mt = "_size4_4vcq4_21", vt = "_size5_4vcq4_27", wt = "_size6_4vcq4_33", bt = "_medium_4vcq4_39", yt = "_bold_4vcq4_43", xt = "_colorMuted_4vcq4_47", $t = "_colorDanger_4vcq4_51", Lt = "_colorSuccess_4vcq4_55", kt = "_colorWarning_4vcq4_59", ze = {
28
+ text: pt,
29
+ size1: gt,
30
+ size2: Ct,
31
+ size3: ht,
32
+ size4: mt,
33
+ size5: vt,
34
+ size6: wt,
35
+ medium: bt,
36
+ bold: yt,
37
+ colorMuted: xt,
38
+ colorDanger: $t,
39
+ colorSuccess: Lt,
40
+ colorWarning: kt
41
+ }, Mt = F(function({ as: t = "span", size: o, weight: r, color: s, className: l, style: a, m: d, mt: _, mb: p, p: c, pb: C, ...w }, y) {
42
+ return Ae(t, {
43
+ ...w,
44
+ ref: y,
45
+ className: b(
46
+ ze.text,
47
+ o && ze[`size${o}`],
48
+ r && ze[r],
49
+ s && ze[`color${s[0].toUpperCase()}${s.slice(1)}`],
50
50
  l
51
51
  ),
52
- style: P({ m: i, mt: u, mb: C, p: a, pb: p }, c)
52
+ style: ne({ m: d, mt: _, mb: p, p: c, pb: C }, a)
53
53
  });
54
- }), ut = "_heading_vs4zk_1", dt = "_size4_vs4zk_7", _t = "_size5_vs4zk_13", ft = "_size6_vs4zk_19", pt = "_size7_vs4zk_25", Ct = "_size8_vs4zk_31", gt = "_size9_vs4zk_37", mt = "_colorMuted_vs4zk_43", ht = "_colorDanger_vs4zk_47", vt = "_alignCenter_vs4zk_51", le = {
55
- heading: ut,
56
- size4: dt,
57
- size5: _t,
58
- size6: ft,
59
- size7: pt,
60
- size8: Ct,
61
- size9: gt,
62
- colorMuted: mt,
63
- colorDanger: ht,
64
- alignCenter: vt
65
- }, bt = H(function({ as: t = "h2", size: o, color: s, align: r, className: l, style: c, m: i, mt: u, mb: C, p: a, pb: p, ...v }, _) {
66
- return xe(t, {
67
- ...v,
68
- ref: _,
69
- className: m(
70
- le.heading,
71
- o && le[`size${o}`],
72
- s === "muted" && le.colorMuted,
73
- s === "danger" && le.colorDanger,
74
- r === "center" && le.alignCenter,
54
+ }), Nt = "_heading_vs4zk_1", zt = "_size4_vs4zk_7", Rt = "_size5_vs4zk_13", Dt = "_size6_vs4zk_19", qt = "_size7_vs4zk_25", It = "_size8_vs4zk_31", Et = "_size9_vs4zk_37", Ht = "_colorMuted_vs4zk_43", St = "_colorDanger_vs4zk_47", Tt = "_alignCenter_vs4zk_51", me = {
55
+ heading: Nt,
56
+ size4: zt,
57
+ size5: Rt,
58
+ size6: Dt,
59
+ size7: qt,
60
+ size8: It,
61
+ size9: Et,
62
+ colorMuted: Ht,
63
+ colorDanger: St,
64
+ alignCenter: Tt
65
+ }, At = F(function({ as: t = "h2", size: o, color: r, align: s, className: l, style: a, m: d, mt: _, mb: p, p: c, pb: C, ...w }, y) {
66
+ return Ae(t, {
67
+ ...w,
68
+ ref: y,
69
+ className: b(
70
+ me.heading,
71
+ o && me[`size${o}`],
72
+ r === "muted" && me.colorMuted,
73
+ r === "danger" && me.colorDanger,
74
+ s === "center" && me.alignCenter,
75
75
  l
76
76
  ),
77
- style: P({ m: i, mt: u, mb: C, p: a, pb: p }, c)
77
+ style: ne({ m: d, mt: _, mb: p, p: c, pb: C }, a)
78
78
  });
79
- }), wt = "_link_1qa7j_1", yt = "_size1_1qa7j_10", xt = "_size2_1qa7j_16", $t = "_size3_1qa7j_21", Le = {
80
- link: wt,
81
- size1: yt,
82
- size2: xt,
83
- size3: $t
84
- }, ns = H(function({ asChild: t, size: o, className: s, style: r, m: l, mt: c, mb: i, p: u, pb: C, children: a, ...p }, v) {
85
- const _ = m(Le.link, o && Le[`size${o}`], s), g = P({ m: l, mt: c, mb: i, p: u, pb: C }, r);
86
- if (t && ne(a)) {
87
- const b = a;
88
- return ve(b, {
89
- ...p,
90
- className: m(_, b.props.className),
91
- style: { ...g, ...b.props.style }
79
+ }), jt = "_link_1qa7j_1", Zt = "_size1_1qa7j_10", Ot = "_size2_1qa7j_16", Bt = "_size3_1qa7j_21", We = {
80
+ link: jt,
81
+ size1: Zt,
82
+ size2: Ot,
83
+ size3: Bt
84
+ }, Nr = F(function({ asChild: t, size: o, className: r, style: s, m: l, mt: a, mb: d, p: _, pb: p, children: c, ...C }, w) {
85
+ const y = b(We.link, o && We[`size${o}`], r), f = ne({ m: l, mt: a, mb: d, p: _, pb: p }, s);
86
+ if (t && ge(c)) {
87
+ const m = c;
88
+ return He(m, {
89
+ ...C,
90
+ className: b(y, m.props.className),
91
+ style: { ...f, ...m.props.style }
92
92
  });
93
93
  }
94
- return /* @__PURE__ */ n("a", { ...p, ref: v, className: _, style: g, children: a });
95
- }), kt = "_flex_v4ziu_1", Lt = "_gap1_v4ziu_5", qt = "_gap2_v4ziu_9", Mt = "_gap3_v4ziu_13", Nt = "_gap4_v4ziu_17", Rt = "_gap5_v4ziu_21", zt = "_gap6_v4ziu_25", Dt = "_directionRow_v4ziu_29", It = "_directionColumn_v4ziu_33", Ht = "_alignStart_v4ziu_37", Tt = "_alignCenter_v4ziu_41", St = "_alignEnd_v4ziu_45", Et = "_alignBaseline_v4ziu_49", Zt = "_alignStretch_v4ziu_53", Vt = "_justifyStart_v4ziu_57", jt = "_justifyCenter_v4ziu_61", Ot = "_justifyEnd_v4ziu_65", At = "_justifyBetween_v4ziu_69", Bt = "_wrapWrap_v4ziu_73", Wt = "_wrapNowrap_v4ziu_77", X = {
96
- flex: kt,
97
- gap1: Lt,
98
- gap2: qt,
99
- gap3: Mt,
100
- gap4: Nt,
101
- gap5: Rt,
102
- gap6: zt,
103
- directionRow: Dt,
104
- directionColumn: It,
105
- alignStart: Ht,
106
- alignCenter: Tt,
107
- alignEnd: St,
108
- alignBaseline: Et,
109
- alignStretch: Zt,
110
- justifyStart: Vt,
111
- justifyCenter: jt,
112
- justifyEnd: Ot,
113
- justifyBetween: At,
114
- wrapWrap: Bt,
115
- wrapNowrap: Wt
116
- }, Ce = (e) => e[0].toUpperCase() + e.slice(1), os = H(function({ asChild: t, gap: o, direction: s, align: r, justify: l, wrap: c, className: i, style: u, m: C, mt: a, mb: p, p: v, pb: _, children: g, ...b }, y) {
117
- const w = m(
118
- X.flex,
119
- o && X[`gap${o}`],
120
- s && X[`direction${Ce(s)}`],
121
- r && X[`align${Ce(r)}`],
122
- l && X[`justify${Ce(l)}`],
123
- c && X[`wrap${Ce(c)}`],
124
- i
125
- ), L = P({ m: C, mt: a, mb: p, p: v, pb: _ }, u);
126
- if (t && ne(g)) {
127
- const z = g;
128
- return ve(z, {
129
- ...b,
130
- className: m(w, z.props.className),
131
- style: { ...L, ...z.props.style }
94
+ return /* @__PURE__ */ n("a", { ...C, ref: w, className: y, style: f, children: c });
95
+ }), Wt = "_flex_v4ziu_1", Vt = "_gap1_v4ziu_5", Ft = "_gap2_v4ziu_9", Pt = "_gap3_v4ziu_13", Kt = "_gap4_v4ziu_17", Gt = "_gap5_v4ziu_21", Ut = "_gap6_v4ziu_25", Xt = "_directionRow_v4ziu_29", Yt = "_directionColumn_v4ziu_33", Qt = "_alignStart_v4ziu_37", Jt = "_alignCenter_v4ziu_41", en = "_alignEnd_v4ziu_45", tn = "_alignBaseline_v4ziu_49", nn = "_alignStretch_v4ziu_53", on = "_justifyStart_v4ziu_57", rn = "_justifyCenter_v4ziu_61", sn = "_justifyEnd_v4ziu_65", ln = "_justifyBetween_v4ziu_69", an = "_wrapWrap_v4ziu_73", cn = "_wrapNowrap_v4ziu_77", ce = {
96
+ flex: Wt,
97
+ gap1: Vt,
98
+ gap2: Ft,
99
+ gap3: Pt,
100
+ gap4: Kt,
101
+ gap5: Gt,
102
+ gap6: Ut,
103
+ directionRow: Xt,
104
+ directionColumn: Yt,
105
+ alignStart: Qt,
106
+ alignCenter: Jt,
107
+ alignEnd: en,
108
+ alignBaseline: tn,
109
+ alignStretch: nn,
110
+ justifyStart: on,
111
+ justifyCenter: rn,
112
+ justifyEnd: sn,
113
+ justifyBetween: ln,
114
+ wrapWrap: an,
115
+ wrapNowrap: cn
116
+ }, Re = (e) => e[0].toUpperCase() + e.slice(1), zr = F(function({ asChild: t, gap: o, direction: r, align: s, justify: l, wrap: a, className: d, style: _, m: p, mt: c, mb: C, p: w, pb: y, children: f, ...m }, L) {
117
+ const z = b(
118
+ ce.flex,
119
+ o && ce[`gap${o}`],
120
+ r && ce[`direction${Re(r)}`],
121
+ s && ce[`align${Re(s)}`],
122
+ l && ce[`justify${Re(l)}`],
123
+ a && ce[`wrap${Re(a)}`],
124
+ d
125
+ ), k = ne({ m: p, mt: c, mb: C, p: w, pb: y }, _);
126
+ if (t && ge(f)) {
127
+ const A = f;
128
+ return He(A, {
129
+ ...m,
130
+ className: b(z, A.props.className),
131
+ style: { ...k, ...A.props.style }
132
132
  });
133
133
  }
134
- return /* @__PURE__ */ n("div", { ...b, ref: y, className: w, style: L, children: g });
135
- }), ss = H(function({ style: t, m: o, mt: s, mb: r, p: l, pb: c, ...i }, u) {
136
- return /* @__PURE__ */ n("div", { ...i, ref: u, style: P({ m: o, mt: s, mb: r, p: l, pb: c }, t) });
137
- }), Ft = "_grid_erpqq_1", Pt = "_cols1_erpqq_5", Gt = "_cols2_erpqq_9", Kt = "_cols3_erpqq_13", Ut = "_smCols2_erpqq_18", Xt = "_smCols3_erpqq_21", Yt = "_mdCols2_erpqq_26", Qt = "_mdCols3_erpqq_29", Jt = "_gap1_erpqq_33", e1 = "_gap2_erpqq_37", t1 = "_gap3_erpqq_41", n1 = "_gap4_erpqq_45", o1 = "_gap5_erpqq_49", s1 = "_gap6_erpqq_53", Y = {
138
- grid: Ft,
139
- cols1: Pt,
140
- cols2: Gt,
141
- cols3: Kt,
142
- smCols2: Ut,
143
- smCols3: Xt,
144
- mdCols2: Yt,
145
- mdCols3: Qt,
146
- gap1: Jt,
147
- gap2: e1,
148
- gap3: t1,
149
- gap4: n1,
150
- gap5: o1,
151
- gap6: s1
152
- }, rs = H(function({ columns: t, gap: o, className: s, style: r, m: l, mt: c, mb: i, p: u, pb: C, ...a }, p) {
153
- const v = typeof t == "string" ? [Y[`cols${t}`]] : t ? [
154
- t.initial && Y[`cols${t.initial}`],
155
- t.sm && Y[`smCols${t.sm}`],
156
- t.md && Y[`mdCols${t.md}`]
134
+ return /* @__PURE__ */ n("div", { ...m, ref: L, className: z, style: k, children: f });
135
+ }), Rr = F(function({ style: t, m: o, mt: r, mb: s, p: l, pb: a, ...d }, _) {
136
+ return /* @__PURE__ */ n("div", { ...d, ref: _, style: ne({ m: o, mt: r, mb: s, p: l, pb: a }, t) });
137
+ }), dn = "_grid_erpqq_1", un = "_cols1_erpqq_5", fn = "_cols2_erpqq_9", _n = "_cols3_erpqq_13", pn = "_smCols2_erpqq_18", gn = "_smCols3_erpqq_21", Cn = "_mdCols2_erpqq_26", hn = "_mdCols3_erpqq_29", mn = "_gap1_erpqq_33", vn = "_gap2_erpqq_37", wn = "_gap3_erpqq_41", bn = "_gap4_erpqq_45", yn = "_gap5_erpqq_49", xn = "_gap6_erpqq_53", ie = {
138
+ grid: dn,
139
+ cols1: un,
140
+ cols2: fn,
141
+ cols3: _n,
142
+ smCols2: pn,
143
+ smCols3: gn,
144
+ mdCols2: Cn,
145
+ mdCols3: hn,
146
+ gap1: mn,
147
+ gap2: vn,
148
+ gap3: wn,
149
+ gap4: bn,
150
+ gap5: yn,
151
+ gap6: xn
152
+ }, Dr = F(function({ columns: t, gap: o, className: r, style: s, m: l, mt: a, mb: d, p: _, pb: p, ...c }, C) {
153
+ const w = typeof t == "string" ? [ie[`cols${t}`]] : t ? [
154
+ t.initial && ie[`cols${t.initial}`],
155
+ t.sm && ie[`smCols${t.sm}`],
156
+ t.md && ie[`mdCols${t.md}`]
157
157
  ] : [];
158
158
  return /* @__PURE__ */ n(
159
159
  "div",
160
160
  {
161
- ...a,
162
- ref: p,
163
- className: m(Y.grid, ...v, o && Y[`gap${o}`], s),
164
- style: P({ m: l, mt: c, mb: i, p: u, pb: C }, r)
161
+ ...c,
162
+ ref: C,
163
+ className: b(ie.grid, ...w, o && ie[`gap${o}`], r),
164
+ style: ne({ m: l, mt: a, mb: d, p: _, pb: p }, s)
165
165
  }
166
166
  );
167
- }), r1 = "_badge_1twqf_2", l1 = "_size1_1twqf_10", c1 = "_size2_1twqf_19", a1 = "_colorMuted_1twqf_28", i1 = "_colorPrimary_1twqf_33", u1 = "_colorSuccess_1twqf_38", d1 = "_colorDanger_1twqf_43", _1 = "_colorWarning_1twqf_48", f1 = "_colorCyan_1twqf_53", p1 = "_colorPurple_1twqf_58", C1 = "_colorOrange_1twqf_63", g1 = "_colorAccent_1twqf_68", m1 = "_colorYellow_1twqf_73", h1 = "_solid_1twqf_81", v1 = "_wrap_1twqf_89", ce = {
168
- badge: r1,
169
- size1: l1,
170
- size2: c1,
171
- colorMuted: a1,
172
- colorPrimary: i1,
173
- colorSuccess: u1,
174
- colorDanger: d1,
175
- colorWarning: _1,
176
- colorCyan: f1,
177
- colorPurple: p1,
178
- colorOrange: C1,
179
- colorAccent: g1,
180
- colorYellow: m1,
181
- solid: h1,
182
- wrap: v1
183
- }, b1 = (e) => e[0].toUpperCase() + e.slice(1), ls = H(function({ color: t = "primary", variant: o = "soft", size: s = "1", wrap: r, className: l, style: c, m: i, mt: u, mb: C, p: a, pb: p, ...v }, _) {
167
+ }), $n = "_badge_1twqf_2", Ln = "_size1_1twqf_10", kn = "_size2_1twqf_19", Mn = "_colorMuted_1twqf_28", Nn = "_colorPrimary_1twqf_33", zn = "_colorSuccess_1twqf_38", Rn = "_colorDanger_1twqf_43", Dn = "_colorWarning_1twqf_48", qn = "_colorCyan_1twqf_53", In = "_colorPurple_1twqf_58", En = "_colorOrange_1twqf_63", Hn = "_colorAccent_1twqf_68", Sn = "_colorYellow_1twqf_73", Tn = "_solid_1twqf_81", An = "_wrap_1twqf_89", ve = {
168
+ badge: $n,
169
+ size1: Ln,
170
+ size2: kn,
171
+ colorMuted: Mn,
172
+ colorPrimary: Nn,
173
+ colorSuccess: zn,
174
+ colorDanger: Rn,
175
+ colorWarning: Dn,
176
+ colorCyan: qn,
177
+ colorPurple: In,
178
+ colorOrange: En,
179
+ colorAccent: Hn,
180
+ colorYellow: Sn,
181
+ solid: Tn,
182
+ wrap: An
183
+ }, jn = (e) => e[0].toUpperCase() + e.slice(1), qr = F(function({ color: t = "primary", variant: o = "soft", size: r = "1", wrap: s, className: l, style: a, m: d, mt: _, mb: p, p: c, pb: C, ...w }, y) {
184
184
  return /* @__PURE__ */ n(
185
185
  "span",
186
186
  {
187
- ...v,
188
- ref: _,
189
- className: m(
190
- ce.badge,
191
- ce[`color${b1(t)}`],
192
- o === "solid" && ce.solid,
193
- ce[`size${s}`],
194
- r && ce.wrap,
187
+ ...w,
188
+ ref: y,
189
+ className: b(
190
+ ve.badge,
191
+ ve[`color${jn(t)}`],
192
+ o === "solid" && ve.solid,
193
+ ve[`size${r}`],
194
+ s && ve.wrap,
195
195
  l
196
196
  ),
197
- style: P({ m: i, mt: u, mb: C, p: a, pb: p }, c)
197
+ style: ne({ m: d, mt: _, mb: p, p: c, pb: C }, a)
198
198
  }
199
199
  );
200
- }), w1 = "_separator_vao01_1", y1 = "_full_vao01_7", qe = {
201
- separator: w1,
202
- full: y1
203
- }, cs = H(function({ size: t = "4", className: o, ...s }, r) {
200
+ }), Zn = "_separator_vao01_1", On = "_full_vao01_7", Ve = {
201
+ separator: Zn,
202
+ full: On
203
+ }, Ir = F(function({ size: t = "4", className: o, ...r }, s) {
204
204
  return /* @__PURE__ */ n(
205
205
  "span",
206
206
  {
207
- ...s,
208
- ref: r,
207
+ ...r,
208
+ ref: s,
209
209
  role: "separator",
210
- className: m(qe.separator, t === "4" && qe.full, o)
210
+ className: b(Ve.separator, t === "4" && Ve.full, o)
211
211
  }
212
212
  );
213
- }), x1 = "_card_1ooot_2", $1 = "_image_1ooot_14", k1 = "_hasImage_1ooot_41", we = {
214
- card: x1,
215
- image: $1,
216
- hasImage: k1
217
- }, as = H(function({ className: t, style: o, image: s, children: r, m: l, mt: c, mb: i, p: u, pb: C, ...a }, p) {
218
- return /* @__PURE__ */ $(
213
+ }), Bn = "_card_1ooot_2", Wn = "_image_1ooot_14", Vn = "_hasImage_1ooot_41", Se = {
214
+ card: Bn,
215
+ image: Wn,
216
+ hasImage: Vn
217
+ }, Er = F(function({ className: t, style: o, image: r, children: s, m: l, mt: a, mb: d, p: _, pb: p, ...c }, C) {
218
+ return /* @__PURE__ */ D(
219
219
  "div",
220
220
  {
221
- ...a,
222
- ref: p,
223
- className: m(we.card, s != null && we.hasImage, t),
224
- style: P({ m: l, mt: c, mb: i, p: u, pb: C }, o),
221
+ ...c,
222
+ ref: C,
223
+ className: b(Se.card, r != null && Se.hasImage, t),
224
+ style: ne({ m: l, mt: a, mb: d, p: _, pb: p }, o),
225
225
  children: [
226
- s != null && /* @__PURE__ */ n("div", { className: we.image, children: s }),
227
- r
226
+ r != null && /* @__PURE__ */ n("div", { className: Se.image, children: r }),
227
+ s
228
228
  ]
229
229
  }
230
230
  );
231
- }), k = {
231
+ }), Fn = "_spaceButton_kjhqx_14", Pn = "_rimRotate_kjhqx_1", Kn = "_glintSweep_kjhqx_1", Gn = "_iconOnly_kjhqx_97", Un = "_lg_kjhqx_104", Xn = "_sm_kjhqx_110", Yn = "_micro_kjhqx_122", Qn = "_stars_kjhqx_136", Jn = "_fullWidth_kjhqx_141", eo = "_ember_kjhqx_147", to = "_label_kjhqx_157", no = "_star_kjhqx_136", oo = "_twinkle_kjhqx_1", ee = {
232
+ spaceButton: Fn,
233
+ rimRotate: Pn,
234
+ glintSweep: Kn,
235
+ iconOnly: Gn,
236
+ lg: Un,
237
+ sm: Xn,
238
+ micro: Yn,
239
+ stars: Qn,
240
+ fullWidth: Jn,
241
+ ember: eo,
242
+ label: to,
243
+ star: no,
244
+ twinkle: oo
245
+ };
246
+ function ro(e) {
247
+ return function() {
248
+ e |= 0, e = e + 1831565813 | 0;
249
+ let t = Math.imul(e ^ e >>> 15, 1 | e);
250
+ return t = t + Math.imul(t ^ t >>> 7, 61 | t) ^ t, ((t ^ t >>> 14) >>> 0) / 4294967296;
251
+ };
252
+ }
253
+ function so(e) {
254
+ let t = 2166136261;
255
+ for (let o = 0; o < e.length; o++)
256
+ t ^= e.charCodeAt(o), t = Math.imul(t, 16777619);
257
+ return t >>> 0;
258
+ }
259
+ const Ee = F(
260
+ function({ iconOnly: t, ember: o, size: r = "md", fullWidth: s, animated: l = !0, className: a, children: d, ..._ }, p) {
261
+ const c = U(), C = _e(() => {
262
+ const y = ro(so(c));
263
+ return Array.from({ length: 3 }, () => ({
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
+ }));
269
+ }, [c]), w = [
270
+ ee.spaceButton,
271
+ t ? ee.iconOnly : "",
272
+ o ? ee.ember : "",
273
+ r !== "md" ? ee[r] : "",
274
+ s ? ee.fullWidth : "",
275
+ a ?? ""
276
+ ].filter(Boolean).join(" ");
277
+ return /* @__PURE__ */ D(
278
+ "button",
279
+ {
280
+ ref: p,
281
+ className: w,
282
+ "data-animated": l ? void 0 : "false",
283
+ ..._,
284
+ children: [
285
+ r !== "micro" && /* @__PURE__ */ n("span", { className: ee.stars, "aria-hidden": !0, children: C.map((y, f) => /* @__PURE__ */ n("i", { className: ee.star, style: y }, f)) }),
286
+ /* @__PURE__ */ n("span", { className: ee.label, children: d })
287
+ ]
288
+ }
289
+ );
290
+ }
291
+ ), T = {
232
292
  width: 15,
233
293
  height: 15,
234
294
  viewBox: "0 0 15 15",
@@ -236,8 +296,8 @@ const Xe = "_text_4vcq4_1", Ye = "_size1_4vcq4_5", Qe = "_size2_4vcq4_11", Je =
236
296
  xmlns: "http://www.w3.org/2000/svg",
237
297
  "aria-hidden": !0
238
298
  };
239
- function is(e) {
240
- return /* @__PURE__ */ n("svg", { ...k, ...e, children: /* @__PURE__ */ n(
299
+ function Hr(e) {
300
+ return /* @__PURE__ */ n("svg", { ...T, ...e, children: /* @__PURE__ */ n(
241
301
  "path",
242
302
  {
243
303
  d: "M3.5 5.00006C3.22386 5.00006 3 5.22392 3 5.50006L3 11.5001C3 11.7762 3.22386 12.0001 3.5 12.0001L11.5 12.0001C11.7761 12.0001 12 11.7762 12 11.5001L12 5.50006C12 5.22392 11.7761 5.00006 11.5 5.00006L10.25 5.00006C9.97386 5.00006 9.75 4.7762 9.75 4.50006C9.75 4.22392 9.97386 4.00006 10.25 4.00006L11.5 4.00006C12.3284 4.00006 13 4.67163 13 5.50006L13 11.5001C13 12.3285 12.3284 13.0001 11.5 13.0001L3.5 13.0001C2.67157 13.0001 2 12.3285 2 11.5001L2 5.50006C2 4.67163 2.67157 4.00006 3.5 4.00006L4.75 4.00006C5.02614 4.00006 5.25 4.22392 5.25 4.50006C5.25 4.7762 5.02614 5.00006 4.75 5.00006L3.5 5.00006ZM7 1.6364L5.5682 3.0682C5.39246 3.24393 5.10754 3.24393 4.9318 3.0682C4.75607 2.89246 4.75607 2.60754 4.9318 2.4318L7.1818 0.181802C7.26619 0.09741 7.38065 0.049999 7.5 0.049999C7.61935 0.049999 7.73381 0.09741 7.8182 0.181802L10.0682 2.4318C10.2439 2.60754 10.2439 2.89246 10.0682 3.0682C9.89246 3.24393 9.60754 3.24393 9.4318 3.0682L8 1.6364L8 8.5C8 8.77614 7.77614 9 7.5 9C7.22386 9 7 8.77614 7 8.5L7 1.6364Z",
@@ -247,8 +307,8 @@ function is(e) {
247
307
  }
248
308
  ) });
249
309
  }
250
- function us(e) {
251
- return /* @__PURE__ */ n("svg", { ...k, ...e, children: /* @__PURE__ */ n(
310
+ function Sr(e) {
311
+ return /* @__PURE__ */ n("svg", { ...T, ...e, children: /* @__PURE__ */ n(
252
312
  "path",
253
313
  {
254
314
  d: "M12.5 3L2.5 3.00002C1.67157 3.00002 1 3.6716 1 4.50002V9.50003C1 10.3285 1.67157 11 2.5 11H7.50003C7.63264 11 7.75982 11.0527 7.85358 11.1465L10 13.2929V11.5C10 11.2239 10.2239 11 10.5 11H12.5C13.3284 11 14 10.3285 14 9.50003V4.5C14 3.67157 13.3284 3 12.5 3ZM2.49999 2.00002L12.5 2C13.8807 2 15 3.11929 15 4.5V9.50003C15 10.8807 13.8807 12 12.5 12H11V14.5C11 14.7022 10.8782 14.8845 10.6913 14.9619C10.5045 15.0393 10.2894 14.9965 10.1464 14.8536L7.29292 12H2.5C1.11929 12 0 10.8807 0 9.50003V4.50002C0 3.11931 1.11928 2.00003 2.49999 2.00002Z",
@@ -258,8 +318,8 @@ function us(e) {
258
318
  }
259
319
  ) });
260
320
  }
261
- function ds(e) {
262
- return /* @__PURE__ */ n("svg", { ...k, ...e, children: /* @__PURE__ */ n(
321
+ function Tr(e) {
322
+ return /* @__PURE__ */ n("svg", { ...T, ...e, children: /* @__PURE__ */ n(
263
323
  "path",
264
324
  {
265
325
  d: "M8 2.75C8 2.47386 7.77614 2.25 7.5 2.25C7.22386 2.25 7 2.47386 7 2.75V7H2.75C2.47386 7 2.25 7.22386 2.25 7.5C2.25 7.77614 2.47386 8 2.75 8H7V12.25C7 12.5261 7.22386 12.75 7.5 12.75C7.77614 12.75 8 12.5261 8 12.25V8H12.25C12.5261 8 12.75 7.77614 12.75 7.5C12.75 7.22386 12.5261 7 12.25 7H8V2.75Z",
@@ -269,8 +329,8 @@ function ds(e) {
269
329
  }
270
330
  ) });
271
331
  }
272
- function _s(e) {
273
- return /* @__PURE__ */ n("svg", { ...k, ...e, children: /* @__PURE__ */ n(
332
+ function Ar(e) {
333
+ return /* @__PURE__ */ n("svg", { ...T, ...e, children: /* @__PURE__ */ n(
274
334
  "path",
275
335
  {
276
336
  d: "M11.8536 1.14645C11.6583 0.951184 11.3417 0.951184 11.1465 1.14645L3.71455 8.57836C3.62459 8.66832 3.55263 8.77461 3.50251 8.89155L2.04044 12.303C1.9599 12.491 2.00189 12.709 2.14646 12.8536C2.29103 12.9981 2.50905 13.0401 2.69697 12.9596L6.10847 11.4975C6.2254 11.4474 6.3317 11.3754 6.42166 11.2855L13.8536 3.85355C14.0488 3.65829 14.0488 3.34171 13.8536 3.14645L11.8536 1.14645ZM4.42166 9.28547L11.5 2.20711L12.7929 3.5L5.71455 10.5784L4.21924 11.2192L3.78081 10.7808L4.42166 9.28547Z",
@@ -280,8 +340,8 @@ function _s(e) {
280
340
  }
281
341
  ) });
282
342
  }
283
- function fs(e) {
284
- return /* @__PURE__ */ n("svg", { ...k, ...e, children: /* @__PURE__ */ n(
343
+ function jr(e) {
344
+ return /* @__PURE__ */ n("svg", { ...T, ...e, children: /* @__PURE__ */ n(
285
345
  "path",
286
346
  {
287
347
  d: "M1.35248 4.90532C1.35248 2.94498 2.936 1.35248 4.89346 1.35248C6.25769 1.35248 6.86058 1.92336 7.50002 2.93545C8.13946 1.92336 8.74235 1.35248 10.1066 1.35248C12.064 1.35248 13.6476 2.94498 13.6476 4.90532C13.6476 6.74041 12.6013 8.50508 11.4008 9.96927C10.2636 11.3562 8.92194 12.5508 8.00601 13.3664C7.94645 13.4194 7.88869 13.4709 7.83291 13.5206C7.64324 13.6899 7.3568 13.6899 7.16713 13.5206C7.11135 13.4709 7.05359 13.4194 6.99403 13.3664C6.0781 12.5508 4.73641 11.3562 3.59926 9.96927C2.39872 8.50508 1.35248 6.74041 1.35248 4.90532Z",
@@ -291,8 +351,8 @@ function fs(e) {
291
351
  }
292
352
  ) });
293
353
  }
294
- function ps(e) {
295
- return /* @__PURE__ */ n("svg", { ...k, ...e, children: /* @__PURE__ */ n(
354
+ function Zr(e) {
355
+ return /* @__PURE__ */ n("svg", { ...T, ...e, children: /* @__PURE__ */ n(
296
356
  "path",
297
357
  {
298
358
  d: "M5.5 2C5.77614 2 6 2.22386 6 2.5V5.5C6 5.77614 5.77614 6 5.5 6H2.5C2.22386 6 2 5.77614 2 5.5C2 5.22386 2.22386 5 2.5 5H5V2.5C5 2.22386 5.22386 2 5.5 2ZM9.5 2C9.77614 2 10 2.22386 10 2.5V5H12.5C12.7761 5 13 5.22386 13 5.5C13 5.77614 12.7761 6 12.5 6H9.5C9.22386 6 9 5.77614 9 5.5V2.5C9 2.22386 9.22386 2 9.5 2ZM2 9.5C2 9.22386 2.22386 9 2.5 9H5.5C5.77614 9 6 9.22386 6 9.5V12.5C6 12.7761 5.77614 13 5.5 13C5.22386 13 5 12.7761 5 12.5V10H2.5C2.22386 10 2 9.77614 2 9.5ZM9 9.5C9 9.22386 9.22386 9 9.5 9H12.5C12.7761 9 13 9.22386 13 9.5C13 9.77614 12.7761 10 12.5 10H10V12.5C10 12.7761 9.77614 13 9.5 13C9.22386 13 9 12.7761 9 12.5V9.5Z",
@@ -302,8 +362,8 @@ function ps(e) {
302
362
  }
303
363
  ) });
304
364
  }
305
- function Cs(e) {
306
- return /* @__PURE__ */ n("svg", { ...k, ...e, children: /* @__PURE__ */ n(
365
+ function Or(e) {
366
+ return /* @__PURE__ */ n("svg", { ...T, ...e, children: /* @__PURE__ */ n(
307
367
  "path",
308
368
  {
309
369
  d: "M2 2.5C2 2.22386 2.22386 2 2.5 2H5.5C5.77614 2 6 2.22386 6 2.5C6 2.77614 5.77614 3 5.5 3H3V5.5C3 5.77614 2.77614 6 2.5 6C2.22386 6 2 5.77614 2 5.5V2.5ZM9 2.5C9 2.22386 9.22386 2 9.5 2H12.5C12.7761 2 13 2.22386 13 2.5V5.5C13 5.77614 12.7761 6 12.5 6C12.2239 6 12 5.77614 12 5.5V3H9.5C9.22386 3 9 2.77614 9 2.5ZM2.5 9C2.77614 9 3 9.22386 3 9.5V12H5.5C5.77614 12 6 12.2239 6 12.5C6 12.7761 5.77614 13 5.5 13H2.5C2.22386 13 2 12.7761 2 12.5V9.5C2 9.22386 2.22386 9 2.5 9ZM12.5 9C12.7761 9 13 9.22386 13 9.5V12.5C13 12.7761 12.7761 13 12.5 13H9.5C9.22386 13 9 12.7761 9 12.5C9 12.2239 9.22386 12 9.5 12H12V9.5C12 9.22386 12.2239 9 12.5 9Z",
@@ -313,8 +373,8 @@ function Cs(e) {
313
373
  }
314
374
  ) });
315
375
  }
316
- function gs(e) {
317
- return /* @__PURE__ */ n("svg", { ...k, ...e, children: /* @__PURE__ */ n(
376
+ function Br(e) {
377
+ return /* @__PURE__ */ n("svg", { ...T, ...e, children: /* @__PURE__ */ n(
318
378
  "path",
319
379
  {
320
380
  d: "M11.4669 3.72684C11.7558 3.91574 11.8369 4.30308 11.648 4.59198L7.39799 11.092C7.29783 11.2452 7.13556 11.3467 6.95402 11.3699C6.77247 11.3931 6.58989 11.3355 6.45446 11.2124L3.70446 8.71241C3.44905 8.48022 3.43023 8.08494 3.66242 7.82953C3.89461 7.57412 4.28989 7.55529 4.5453 7.78749L6.75292 9.79441L10.6018 3.90792C10.7907 3.61902 11.178 3.53795 11.4669 3.72684Z",
@@ -324,8 +384,8 @@ function gs(e) {
324
384
  }
325
385
  ) });
326
386
  }
327
- function ms(e) {
328
- return /* @__PURE__ */ n("svg", { ...k, ...e, children: /* @__PURE__ */ n(
387
+ function Wr(e) {
388
+ return /* @__PURE__ */ n("svg", { ...T, ...e, children: /* @__PURE__ */ n(
329
389
  "path",
330
390
  {
331
391
  d: "M5.5 1C5.22386 1 5 1.22386 5 1.5C5 1.77614 5.22386 2 5.5 2H9.5C9.77614 2 10 1.77614 10 1.5C10 1.22386 9.77614 1 9.5 1H5.5ZM3 3.5C3 3.22386 3.22386 3 3.5 3H5H10H11.5C11.7761 3 12 3.22386 12 3.5C12 3.77614 11.7761 4 11.5 4H11V12C11 12.5523 10.5523 13 10 13H5C4.44772 13 4 12.5523 4 12V4L3.5 4C3.22386 4 3 3.77614 3 3.5ZM5 4H10V12H5V4Z",
@@ -335,8 +395,8 @@ function ms(e) {
335
395
  }
336
396
  ) });
337
397
  }
338
- function hs(e) {
339
- return /* @__PURE__ */ n("svg", { ...k, ...e, children: /* @__PURE__ */ n(
398
+ function Vr(e) {
399
+ return /* @__PURE__ */ n("svg", { ...T, ...e, children: /* @__PURE__ */ n(
340
400
  "path",
341
401
  {
342
402
  d: "M0.877075 7.49972C0.877075 3.84204 3.84222 0.876892 7.49991 0.876892C11.1576 0.876892 14.1227 3.84204 14.1227 7.49972C14.1227 11.1574 11.1576 14.1226 7.49991 14.1226C3.84222 14.1226 0.877075 11.1574 0.877075 7.49972ZM7.49991 1.82689C4.36689 1.82689 1.82708 4.36671 1.82708 7.49972C1.82708 10.6327 4.36689 13.1726 7.49991 13.1726C10.6329 13.1726 13.1727 10.6327 13.1727 7.49972C13.1727 4.36671 10.6329 1.82689 7.49991 1.82689ZM8.24993 10.5C8.24993 10.9142 7.91414 11.25 7.49993 11.25C7.08571 11.25 6.74993 10.9142 6.74993 10.5C6.74993 10.0858 7.08571 9.75 7.49993 9.75C7.91414 9.75 8.24993 10.0858 8.24993 10.5ZM6.05003 6.25C6.05003 5.57211 6.63511 4.925 7.50003 4.925C8.36496 4.925 8.95003 5.57211 8.95003 6.25C8.95003 6.74118 8.68002 6.99212 8.21447 7.27494C8.16251 7.30651 8.10258 7.34131 8.03847 7.37854L8.03841 7.37858C7.85521 7.48497 7.63788 7.61119 7.47449 7.73849C7.23214 7.92732 6.95003 8.23198 6.95003 8.7C6.95004 9.00376 7.19628 9.25 7.50004 9.25C7.8024 9.25 8.04778 9.00601 8.05002 8.70417L8.05056 8.7033C8.05924 8.6896 8.08493 8.65735 8.15058 8.6062C8.25207 8.52712 8.36508 8.46163 8.51567 8.37436L8.51571 8.37433C8.59422 8.32883 8.68296 8.27741 8.78559 8.21506C9.32004 7.89038 10.05 7.35382 10.05 6.25C10.05 4.92789 8.93511 3.825 7.50003 3.825C6.06496 3.825 4.95003 4.92789 4.95003 6.25C4.95003 6.55376 5.19628 6.8 5.50003 6.8C5.80379 6.8 6.05003 6.55376 6.05003 6.25Z",
@@ -346,8 +406,8 @@ function hs(e) {
346
406
  }
347
407
  ) });
348
408
  }
349
- function vs(e) {
350
- return /* @__PURE__ */ n("svg", { ...k, ...e, children: /* @__PURE__ */ n(
409
+ function Fr(e) {
410
+ return /* @__PURE__ */ n("svg", { ...T, ...e, children: /* @__PURE__ */ n(
351
411
  "path",
352
412
  {
353
413
  d: "M7.5 0.875C5.49797 0.875 3.875 2.49797 3.875 4.5C3.875 6.15288 4.98124 7.54738 6.49373 7.98351C5.2997 8.12901 4.27557 8.55134 3.50407 9.31167C2.52216 10.2794 2.02502 11.72 2.02502 13.5999C2.02502 13.8623 2.23769 14.0749 2.50002 14.0749C2.76236 14.0749 2.97502 13.8623 2.97502 13.5999C2.97502 11.8799 3.42786 10.7206 4.17091 9.9883C4.91536 9.25463 6.02674 8.87499 7.49995 8.87499C8.97317 8.87499 10.0846 9.25463 10.8291 9.98831C11.5721 10.7206 12.025 11.8799 12.025 13.5999C12.025 13.8623 12.2376 14.0749 12.5 14.0749C12.7623 14.075 12.975 13.8623 12.975 13.6C12.975 11.72 12.4778 10.2794 11.4959 9.31166C10.7244 8.55135 9.70025 8.12903 8.50625 7.98352C10.0187 7.5474 11.125 6.15289 11.125 4.5C11.125 2.49797 9.50203 0.875 7.5 0.875ZM4.825 4.5C4.825 3.02264 6.02264 1.825 7.5 1.825C8.97736 1.825 10.175 3.02264 10.175 4.5C10.175 5.97736 8.97736 7.175 7.5 7.175C6.02264 7.175 4.825 5.97736 4.825 4.5Z",
@@ -357,8 +417,8 @@ function vs(e) {
357
417
  }
358
418
  ) });
359
419
  }
360
- function bs(e) {
361
- return /* @__PURE__ */ n("svg", { ...k, ...e, children: /* @__PURE__ */ n(
420
+ function Pr(e) {
421
+ return /* @__PURE__ */ n("svg", { ...T, ...e, children: /* @__PURE__ */ n(
362
422
  "path",
363
423
  {
364
424
  d: "M2.25 7.5C2.25 7.22386 2.47386 7 2.75 7H12.25C12.5261 7 12.75 7.22386 12.75 7.5C12.75 7.77614 12.5261 8 12.25 8H2.75C2.47386 8 2.25 7.77614 2.25 7.5Z",
@@ -368,8 +428,8 @@ function bs(e) {
368
428
  }
369
429
  ) });
370
430
  }
371
- function ws(e) {
372
- return /* @__PURE__ */ n("svg", { ...k, ...e, children: /* @__PURE__ */ n(
431
+ function Kr(e) {
432
+ return /* @__PURE__ */ n("svg", { ...T, ...e, children: /* @__PURE__ */ n(
373
433
  "path",
374
434
  {
375
435
  d: "M10 6.5C10 8.433 8.433 10 6.5 10C4.567 10 3 8.433 3 6.5C3 4.567 4.567 3 6.5 3C8.433 3 10 4.567 10 6.5ZM9.30884 10.0159C8.53901 10.6318 7.56251 11 6.5 11C4.01472 11 2 8.98528 2 6.5C2 4.01472 4.01472 2 6.5 2C8.98528 2 11 4.01472 11 6.5C11 7.56251 10.6318 8.53901 10.0159 9.30884L12.8536 12.1464C13.0488 12.3417 13.0488 12.6583 12.8536 12.8536C12.6583 13.0488 12.3417 13.0488 12.1464 12.8536L9.30884 10.0159Z",
@@ -379,8 +439,8 @@ function ws(e) {
379
439
  }
380
440
  ) });
381
441
  }
382
- function ys(e) {
383
- return /* @__PURE__ */ n("svg", { ...k, ...e, children: /* @__PURE__ */ n(
442
+ function Gr(e) {
443
+ return /* @__PURE__ */ n("svg", { ...T, ...e, children: /* @__PURE__ */ n(
384
444
  "path",
385
445
  {
386
446
  d: "M4.89346 2.35248C3.49195 2.35248 2.35248 3.49359 2.35248 4.90532C2.35248 6.38164 3.20954 7.9168 4.37255 9.33522C5.39396 10.581 6.59464 11.6702 7.50002 12.4778C8.4054 11.6702 9.60608 10.581 10.6275 9.33522C11.7905 7.9168 12.6476 6.38164 12.6476 4.90532C12.6476 3.49359 11.5081 2.35248 10.1066 2.35248C9.27059 2.35248 8.81894 2.64323 8.5397 2.95843C8.27877 3.25295 8.14623 3.58566 8.02501 3.88993C8.00391 3.9429 7.98315 3.99501 7.96211 4.04591C7.88482 4.23294 7.7024 4.35494 7.50002 4.35494C7.29765 4.35494 7.11523 4.23295 7.03793 4.04592C7.01689 3.99501 6.99612 3.94289 6.97502 3.8899C6.8538 3.58564 6.72126 3.25294 6.46034 2.95843C6.18109 2.64323 5.72945 2.35248 4.89346 2.35248ZM1.35248 4.90532C1.35248 2.94498 2.936 1.35248 4.89346 1.35248C6.0084 1.35248 6.73504 1.76049 7.20884 2.2953C7.32062 2.42147 7.41686 2.55382 7.50002 2.68545C7.58318 2.55382 7.67941 2.42147 7.79119 2.2953C8.265 1.76049 8.99164 1.35248 10.1066 1.35248C12.064 1.35248 13.6476 2.94498 13.6476 4.90532C13.6476 6.74041 12.6013 8.50508 11.4008 9.96927C10.2636 11.3562 8.92194 12.5508 8.00601 13.3664C7.94645 13.4194 7.88869 13.4709 7.83291 13.5206C7.64324 13.6899 7.3568 13.6899 7.16713 13.5206C7.11135 13.4709 7.05359 13.4194 6.99403 13.3664C6.0781 12.5508 4.73641 11.3562 3.59926 9.96927C2.39872 8.50508 1.35248 6.74041 1.35248 4.90532Z",
@@ -390,8 +450,8 @@ function ys(e) {
390
450
  }
391
451
  ) });
392
452
  }
393
- function xs(e) {
394
- return /* @__PURE__ */ n("svg", { ...k, ...e, children: /* @__PURE__ */ n(
453
+ function Ur(e) {
454
+ return /* @__PURE__ */ n("svg", { ...T, ...e, children: /* @__PURE__ */ n(
395
455
  "path",
396
456
  {
397
457
  d: "M3.13523 8.84197C3.3241 9.04343 3.64052 9.05363 3.84197 8.86477L7.5 5.43536L11.158 8.86477C11.3595 9.05363 11.6759 9.04343 11.8648 8.84197C12.0536 8.64051 12.0434 8.32409 11.842 8.13523L7.84197 4.38523C7.64964 4.20492 7.35036 4.20492 7.15803 4.38523L3.15803 8.13523C2.95657 8.32409 2.94637 8.64051 3.13523 8.84197Z",
@@ -401,8 +461,8 @@ function xs(e) {
401
461
  }
402
462
  ) });
403
463
  }
404
- function $s(e) {
405
- return /* @__PURE__ */ n("svg", { ...k, ...e, children: /* @__PURE__ */ n(
464
+ function Xr(e) {
465
+ return /* @__PURE__ */ n("svg", { ...T, ...e, children: /* @__PURE__ */ n(
406
466
  "path",
407
467
  {
408
468
  d: "M3.13523 6.15803C3.3241 5.95657 3.64052 5.94637 3.84197 6.13523L7.5 9.56464L11.158 6.13523C11.3595 5.94637 11.6759 5.95657 11.8648 6.15803C12.0536 6.35949 12.0434 6.67591 11.842 6.86477L7.84197 10.6148C7.64964 10.7951 7.35036 10.7951 7.15803 10.6148L3.15803 6.86477C2.95657 6.67591 2.94637 6.35949 3.13523 6.15803Z",
@@ -412,8 +472,8 @@ function $s(e) {
412
472
  }
413
473
  ) });
414
474
  }
415
- function L1(e) {
416
- return /* @__PURE__ */ n("svg", { ...k, ...e, children: /* @__PURE__ */ n(
475
+ function Ue(e) {
476
+ return /* @__PURE__ */ n("svg", { ...T, ...e, children: /* @__PURE__ */ n(
417
477
  "path",
418
478
  {
419
479
  d: "M6.1584 3.13508C5.95694 3.32394 5.94673 3.64036 6.13559 3.84182L9.56499 7.49991L6.13559 11.158C5.94673 11.3595 5.95694 11.6759 6.1584 11.8647C6.35986 12.0536 6.67628 12.0434 6.86514 11.8419L10.6151 7.84182C10.7954 7.64946 10.7954 7.35036 10.6151 7.158L6.86514 3.15801C6.67628 2.95655 6.35986 2.94634 6.1584 3.13508Z",
@@ -423,8 +483,8 @@ function L1(e) {
423
483
  }
424
484
  ) });
425
485
  }
426
- function q1(e) {
427
- return /* @__PURE__ */ n("svg", { ...k, ...e, children: /* @__PURE__ */ n(
486
+ function Xe(e) {
487
+ return /* @__PURE__ */ n("svg", { ...T, ...e, children: /* @__PURE__ */ n(
428
488
  "path",
429
489
  {
430
490
  d: "M8.84182 3.13508C9.04328 3.32394 9.05348 3.64036 8.86462 3.84182L5.43523 7.49991L8.86462 11.158C9.05348 11.3595 9.04328 11.6759 8.84182 11.8647C8.64036 12.0536 8.32394 12.0434 8.13508 11.8419L4.38508 7.84182C4.20477 7.64946 4.20477 7.35036 4.38508 7.158L8.13508 3.15801C8.32394 2.95655 8.64036 2.94634 8.84182 3.13508Z",
@@ -434,8 +494,8 @@ function q1(e) {
434
494
  }
435
495
  ) });
436
496
  }
437
- function ks(e) {
438
- return /* @__PURE__ */ n("svg", { ...k, ...e, children: /* @__PURE__ */ n(
497
+ function Yr(e) {
498
+ return /* @__PURE__ */ n("svg", { ...T, ...e, children: /* @__PURE__ */ n(
439
499
  "path",
440
500
  {
441
501
  d: "M3 2.5C3 2.22386 3.22386 2 3.5 2H11.5C11.7761 2 12 2.22386 12 2.5V13.5C12 13.6818 11.9014 13.8492 11.7424 13.9373C11.5834 14.0254 11.3891 14.0203 11.235 13.924L7.5 11.5896L3.765 13.924C3.61087 14.0203 3.41659 14.0254 3.25762 13.9373C3.09864 13.8492 3 13.6818 3 13.5V2.5ZM4 3V12.5979L6.97 10.7416C7.29427 10.539 7.70573 10.539 8.03 10.7416L11 12.5979V3H4Z",
@@ -445,7 +505,7 @@ function ks(e) {
445
505
  }
446
506
  ) });
447
507
  }
448
- function M1(e) {
508
+ function lo(e) {
449
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(
450
510
  "path",
451
511
  {
@@ -454,8 +514,8 @@ function M1(e) {
454
514
  }
455
515
  ) });
456
516
  }
457
- function N1(e) {
458
- return /* @__PURE__ */ n("svg", { ...k, ...e, children: /* @__PURE__ */ n(
517
+ function ao(e) {
518
+ return /* @__PURE__ */ n("svg", { ...T, ...e, children: /* @__PURE__ */ n(
459
519
  "path",
460
520
  {
461
521
  d: "M7.49991 0.876892C3.84222 0.876892 0.877075 3.84204 0.877075 7.49972C0.877075 11.1574 3.84222 14.1226 7.49991 14.1226C11.1576 14.1226 14.1227 11.1574 14.1227 7.49972C14.1227 3.84204 11.1576 0.876892 7.49991 0.876892ZM1.82707 7.49972C1.82707 4.36671 4.36689 1.82689 7.49991 1.82689C10.6329 1.82689 13.1727 4.36671 13.1727 7.49972C13.1727 10.6327 10.6329 13.1726 7.49991 13.1726C4.36689 13.1726 1.82707 10.6327 1.82707 7.49972ZM8.24992 4.49999C8.24992 4.9142 7.91413 5.24999 7.49992 5.24999C7.08571 5.24999 6.74992 4.9142 6.74992 4.49999C6.74992 4.08577 7.08571 3.74999 7.49992 3.74999C7.91413 3.74999 8.24992 4.08577 8.24992 4.49999ZM6.00003 5.99999H6.50003H7.50003C7.77618 5.99999 8.00003 6.22384 8.00003 6.49999V9.99999H8.50003H9.00003V11H8.50003H7.50003H6.50003H6.00003V9.99999H6.50003H7.00003V6.99999H6.50003H6.00003V5.99999Z",
@@ -465,8 +525,8 @@ function N1(e) {
465
525
  }
466
526
  ) });
467
527
  }
468
- function R1(e) {
469
- return /* @__PURE__ */ n("svg", { ...k, ...e, children: /* @__PURE__ */ n(
528
+ function co(e) {
529
+ return /* @__PURE__ */ n("svg", { ...T, ...e, children: /* @__PURE__ */ n(
470
530
  "path",
471
531
  {
472
532
  d: "M8.4449 0.608765C8.0183 -0.107015 6.9817 -0.107015 6.55509 0.608766L0.161178 11.3368C-0.275824 12.07 0.252503 13 1.10608 13H13.8939C14.7475 13 15.2758 12.07 14.8388 11.3368L8.4449 0.608765ZM7.4141 1.12073C7.45288 1.05566 7.54712 1.05566 7.5859 1.12073L13.9798 11.8488C14.0196 11.9154 13.9715 12 13.8939 12H1.10608C1.02849 12 0.980454 11.9154 1.02018 11.8488L7.4141 1.12073ZM6.8269 4.48611C6.81221 4.10423 7.11783 3.78663 7.5 3.78663C7.88217 3.78663 8.18778 4.10423 8.1731 4.48612L8.01921 8.48701C8.00848 8.766 7.7792 8.98664 7.5 8.98664C7.2208 8.98664 6.99151 8.766 6.98078 8.48701L6.8269 4.48611ZM8.24989 10.476C8.24989 10.8902 7.9141 11.226 7.49989 11.226C7.08567 11.226 6.74989 10.8902 6.74989 10.476C6.74989 10.0618 7.08567 9.72599 7.49989 9.72599C7.9141 9.72599 8.24989 10.0618 8.24989 10.476Z",
@@ -476,8 +536,8 @@ function R1(e) {
476
536
  }
477
537
  ) });
478
538
  }
479
- function z1(e) {
480
- return /* @__PURE__ */ n("svg", { ...k, ...e, children: /* @__PURE__ */ n(
539
+ function io(e) {
540
+ return /* @__PURE__ */ n("svg", { ...T, ...e, children: /* @__PURE__ */ n(
481
541
  "path",
482
542
  {
483
543
  d: "M0.877075 7.49988C0.877075 3.84219 3.84222 0.877045 7.49991 0.877045C11.1576 0.877045 14.1227 3.84219 14.1227 7.49988C14.1227 11.1575 11.1576 14.1227 7.49991 14.1227C3.84222 14.1227 0.877075 11.1575 0.877075 7.49988ZM7.49991 1.82704C4.36689 1.82704 1.82708 4.36686 1.82708 7.49988C1.82708 10.6329 4.36689 13.1727 7.49991 13.1727C10.6329 13.1727 13.1727 10.6329 13.1727 7.49988C13.1727 4.36686 10.6329 1.82704 7.49991 1.82704ZM9.85358 5.14644C10.0488 5.3417 10.0488 5.65829 9.85358 5.85355L8.20713 7.49999L9.85358 9.14644C10.0488 9.3417 10.0488 9.65829 9.85358 9.85355C9.65832 10.0488 9.34173 10.0488 9.14647 9.85355L7.50002 8.2071L5.85358 9.85355C5.65832 10.0488 5.34173 10.0488 5.14647 9.85355C4.95121 9.65829 4.95121 9.3417 5.14647 9.14644L6.79292 7.49999L5.14647 5.85355C4.95121 5.65829 4.95121 5.3417 5.14647 5.14644C5.34173 4.95118 5.65832 4.95118 5.85358 5.14644L7.50002 6.79289L9.14647 5.14644C9.34173 4.95118 9.65832 4.95118 9.85358 5.14644Z",
@@ -487,981 +547,1104 @@ function z1(e) {
487
547
  }
488
548
  ) });
489
549
  }
490
- const D1 = "_nav_f248a_6", I1 = "_pages_f248a_21", H1 = "_item_f248a_30", T1 = "_current_f248a_48", S1 = "_page_f248a_21", E1 = "_gap_f248a_82", Z1 = "_stepText_f248a_92", V1 = "_step_f248a_92", S = {
491
- nav: D1,
492
- pages: I1,
493
- item: H1,
494
- current: T1,
495
- page: S1,
496
- gap: E1,
497
- stepText: Z1,
498
- step: V1
499
- }, j1 = "_spaceControl_4ou97_17", O1 = "_spaceSlider_4ou97_74", A1 = "_spacePanel_4ou97_111", B1 = "_spaceInput_4ou97_34", W1 = "_spaceTextArea_4ou97_226", F1 = {
500
- spaceControl: j1,
501
- spaceSlider: O1,
502
- spacePanel: A1,
503
- spaceInput: B1,
504
- spaceTextArea: W1
505
- }, V = F1;
506
- function P1({ pageSize: e, totalItems: t }) {
550
+ const uo = "_root_p5j1t_12", fo = "_viewport_p5j1t_17", _o = "_track_p5j1t_21", po = "_slide_p5j1t_66", go = "_arrow_p5j1t_78", Co = "_prev_p5j1t_99", ho = "_next_p5j1t_104", mo = "_arrowButton_p5j1t_109", vo = "_dots_p5j1t_115", wo = "_dot_p5j1t_115", P = {
551
+ root: uo,
552
+ viewport: fo,
553
+ track: _o,
554
+ slide: po,
555
+ arrow: go,
556
+ prev: Co,
557
+ next: ho,
558
+ arrowButton: mo,
559
+ dots: vo,
560
+ dot: wo
561
+ };
562
+ function Qr({
563
+ children: e,
564
+ perView: t = 1,
565
+ step: o = "item",
566
+ showPagination: r = !1,
567
+ animated: s = !0,
568
+ className: l,
569
+ "aria-label": a = "Carousel",
570
+ ...d
571
+ }) {
572
+ const _ = Ge.toArray(e), p = _.length, c = U(), C = E(null), w = o === "page" ? Math.max(1, Math.floor(t)) : 1, y = p <= t ? 1 : o === "page" ? Math.ceil((p - t) / w) + 1 : Math.ceil(p - t) + 1, [f, m] = Z(w), [L, z] = Z(Math.max(1, y)), [k, A] = Z(0), [S, q] = Z(!0), [O, j] = Z(p <= t), N = E([0]), I = le(() => {
573
+ const g = C.current;
574
+ if (!g) return;
575
+ const v = g.scrollLeft, R = g.scrollWidth - g.clientWidth;
576
+ let H = 0;
577
+ N.current.forEach((u, h) => {
578
+ Math.abs(u - v) < Math.abs(N.current[H] - v) && (H = h);
579
+ }), A(H), q(v <= 1), j(v >= R - 1);
580
+ }, []), x = le(() => {
581
+ const g = C.current;
582
+ if (!g) return;
583
+ const v = Array.from(g.children);
584
+ if (!v.length) return;
585
+ const R = Math.max(0, g.scrollWidth - g.clientWidth), H = v[0], u = v.length > 1 ? v[1].offsetLeft - H.offsetLeft - H.offsetWidth : 0, h = (g.clientWidth + u) / (H.offsetWidth + u), W = o === "page" ? Math.max(1, Math.floor(h + 0.01)) : 1, B = [];
586
+ v.forEach((Q, J) => {
587
+ if (J % W !== 0) return;
588
+ const oe = Math.round(Math.min(Q.offsetLeft - H.offsetLeft, R));
589
+ B[B.length - 1] !== oe && B.push(oe);
590
+ }), R > 0 && B[B.length - 1] < Math.round(R) - 1 && B.push(Math.round(R)), N.current = B, m(W), z(B.length), I();
591
+ }, [o, I]);
592
+ Ce(() => {
593
+ x();
594
+ }, [x, p]), G(() => {
595
+ const g = C.current;
596
+ if (!g) return;
597
+ const v = new ResizeObserver(() => x());
598
+ v.observe(g);
599
+ let R = 0;
600
+ const H = () => {
601
+ cancelAnimationFrame(R), R = requestAnimationFrame(I);
602
+ };
603
+ return g.addEventListener("scroll", H, { passive: !0 }), () => {
604
+ v.disconnect(), cancelAnimationFrame(R), g.removeEventListener("scroll", H);
605
+ };
606
+ }, [x, I]), G(() => {
607
+ const g = C.current;
608
+ if (!g) return;
609
+ const v = 4;
610
+ let R = null, H = 0, u = 0, h = !1, W = 0;
611
+ const B = () => {
612
+ clearTimeout(W), delete g.dataset.settling;
613
+ }, Q = (V) => {
614
+ V.pointerType !== "mouse" || V.button !== 0 || g.scrollWidth <= g.clientWidth || (B(), R = V.pointerId, H = V.clientX, u = g.scrollLeft, h = !1);
615
+ }, J = (V) => {
616
+ if (V.pointerId !== R) return;
617
+ const re = V.clientX - H;
618
+ if (!h) {
619
+ if (Math.abs(re) < v) return;
620
+ h = !0, g.setPointerCapture(V.pointerId), g.dataset.dragging = "";
621
+ }
622
+ g.scrollLeft = u - re;
623
+ }, oe = (V) => {
624
+ if (V.pointerId !== R || (R = null, !h)) return;
625
+ delete g.dataset.dragging;
626
+ const re = g.scrollLeft, Ne = N.current;
627
+ let se = Ne.reduce((ae, Be) => Math.abs(Be - re) < Math.abs(ae - re) ? Be : ae, Ne[0]);
628
+ re > u + 1 && se <= u + 1 ? se = Ne.find((ae) => ae > u + 1) ?? se : re < u - 1 && se >= u - 1 && (se = [...Ne].reverse().find((ae) => ae < u - 1) ?? se), g.dataset.settling = "";
629
+ const _t = window.matchMedia("(prefers-reduced-motion: reduce)").matches;
630
+ g.scrollTo({ left: se, behavior: _t ? "auto" : "smooth" }), g.addEventListener("scrollend", B, { once: !0 }), W = window.setTimeout(B, 700);
631
+ }, Ze = (V) => {
632
+ h && (h = !1, V.preventDefault(), V.stopPropagation());
633
+ }, Oe = (V) => V.preventDefault();
634
+ return g.addEventListener("pointerdown", Q), g.addEventListener("pointermove", J), g.addEventListener("pointerup", oe), g.addEventListener("pointercancel", oe), g.addEventListener("click", Ze, !0), g.addEventListener("dragstart", Oe), () => {
635
+ B(), g.removeEventListener("pointerdown", Q), g.removeEventListener("pointermove", J), g.removeEventListener("pointerup", oe), g.removeEventListener("pointercancel", oe), g.removeEventListener("click", Ze, !0), g.removeEventListener("dragstart", Oe);
636
+ };
637
+ }, []);
638
+ const i = (g) => {
639
+ var v;
640
+ return (v = C.current) == null ? void 0 : v.scrollTo({ left: g });
641
+ }, $ = (g) => {
642
+ const v = C.current;
643
+ if (!v) return;
644
+ const R = v.scrollLeft, H = g > 0 ? N.current.find((u) => u > R + 1) : [...N.current].reverse().find((u) => u < R - 1);
645
+ H !== void 0 && i(H);
646
+ }, M = L > 1;
647
+ return /* @__PURE__ */ D(
648
+ "section",
649
+ {
650
+ ...d,
651
+ "aria-roledescription": "carousel",
652
+ "aria-label": a,
653
+ className: b(P.root, l),
654
+ "data-scrollable": M ? "" : void 0,
655
+ children: [
656
+ /* @__PURE__ */ D("div", { className: P.viewport, children: [
657
+ /* @__PURE__ */ n(
658
+ "div",
659
+ {
660
+ ref: C,
661
+ id: c,
662
+ className: P.track,
663
+ tabIndex: 0,
664
+ style: { "--_view-count-default": t },
665
+ children: _.map((g, v) => /* @__PURE__ */ n(
666
+ "div",
667
+ {
668
+ className: P.slide,
669
+ role: "group",
670
+ "aria-roledescription": "slide",
671
+ "aria-label": `${v + 1} of ${p}`,
672
+ "data-snap": v % f === 0 ? "" : void 0,
673
+ children: g
674
+ },
675
+ g.key ?? v
676
+ ))
677
+ }
678
+ ),
679
+ /* @__PURE__ */ n("span", { className: b(P.arrow, P.prev), children: /* @__PURE__ */ n(
680
+ Ee,
681
+ {
682
+ iconOnly: !0,
683
+ className: P.arrowButton,
684
+ animated: s,
685
+ "aria-label": "Previous",
686
+ "aria-controls": c,
687
+ disabled: S,
688
+ onClick: () => $(-1),
689
+ children: /* @__PURE__ */ n(Xe, { "aria-hidden": "true" })
690
+ }
691
+ ) }),
692
+ /* @__PURE__ */ n("span", { className: b(P.arrow, P.next), children: /* @__PURE__ */ n(
693
+ Ee,
694
+ {
695
+ iconOnly: !0,
696
+ className: P.arrowButton,
697
+ animated: s,
698
+ "aria-label": "Next",
699
+ "aria-controls": c,
700
+ disabled: O,
701
+ onClick: () => $(1),
702
+ children: /* @__PURE__ */ n(Ue, { "aria-hidden": "true" })
703
+ }
704
+ ) })
705
+ ] }),
706
+ r && M && /* @__PURE__ */ n("div", { className: P.dots, children: Array.from({ length: L }, (g, v) => /* @__PURE__ */ n(
707
+ "button",
708
+ {
709
+ type: "button",
710
+ className: P.dot,
711
+ "aria-label": o === "page" ? `Page ${v + 1} of ${L}` : `Position ${v + 1} of ${L}`,
712
+ "aria-controls": c,
713
+ "aria-current": v === k ? "true" : void 0,
714
+ onClick: () => i(N.current[v] ?? 0)
715
+ },
716
+ v
717
+ )) })
718
+ ]
719
+ }
720
+ );
721
+ }
722
+ const bo = "_nav_f248a_6", yo = "_pages_f248a_21", xo = "_item_f248a_30", $o = "_current_f248a_48", Lo = "_page_f248a_21", ko = "_gap_f248a_82", Mo = "_stepText_f248a_92", No = "_step_f248a_92", K = {
723
+ nav: bo,
724
+ pages: yo,
725
+ item: xo,
726
+ current: $o,
727
+ page: Lo,
728
+ gap: ko,
729
+ stepText: Mo,
730
+ step: No
731
+ }, zo = "_spaceControl_4ou97_17", Ro = "_spaceSlider_4ou97_74", Do = "_spacePanel_4ou97_111", qo = "_spaceInput_4ou97_34", Io = "_spaceTextArea_4ou97_226", Eo = {
732
+ spaceControl: zo,
733
+ spaceSlider: Ro,
734
+ spacePanel: Do,
735
+ spaceInput: qo,
736
+ spaceTextArea: Io
737
+ }, Y = Eo;
738
+ function Ho({ pageSize: e, totalItems: t }) {
507
739
  return e <= 0 ? 1 : Math.max(1, Math.ceil(t / e));
508
740
  }
509
- function G1(e, t, o = 1) {
510
- const s = (p, v) => Array.from({ length: Math.max(0, v - p + 1) }, (_, g) => p + g), r = o * 2 + 5;
511
- if (t <= r) return s(1, t);
512
- const l = Math.min(Math.max(e, 1), t), c = Math.max(l - o, 1), i = Math.min(l + o, t), u = c > 3, C = i < t - 2, a = o * 2 + 3;
513
- return u ? C ? [1, null, ...s(c, i), null, t] : [1, null, ...s(t - a + 1, t)] : [...s(1, a), null, t];
741
+ function So(e, t, o = 1) {
742
+ const r = (C, w) => Array.from({ length: Math.max(0, w - C + 1) }, (y, f) => C + f), s = o * 2 + 5;
743
+ if (t <= s) return r(1, t);
744
+ const l = Math.min(Math.max(e, 1), t), a = Math.max(l - o, 1), d = Math.min(l + o, t), _ = a > 3, p = d < t - 2, c = o * 2 + 3;
745
+ return _ ? p ? [1, null, ...r(a, d), null, t] : [1, null, ...r(t - c + 1, t)] : [...r(1, c), null, t];
514
746
  }
515
- function Ls({
747
+ function Jr({
516
748
  pagination: e,
517
749
  onPageClick: t,
518
750
  siblings: o = 1,
519
- animated: s = !0,
520
- className: r,
751
+ animated: r = !0,
752
+ className: s,
521
753
  "aria-label": l = "Pagination",
522
- ...c
754
+ ...a
523
755
  }) {
524
- const i = P1(e);
525
- if (i <= 1) return null;
526
- const u = Math.min(Math.max(e.page, 1), i), C = (a) => {
527
- a !== u && a >= 1 && a <= i && t(a);
756
+ const d = Ho(e);
757
+ if (d <= 1) return null;
758
+ const _ = Math.min(Math.max(e.page, 1), d), p = (c) => {
759
+ c !== _ && c >= 1 && c <= d && t(c);
528
760
  };
529
- return /* @__PURE__ */ $("nav", { ...c, "aria-label": l, className: m(S.nav, r), children: [
530
- /* @__PURE__ */ $(
761
+ return /* @__PURE__ */ D("nav", { ...a, "aria-label": l, className: b(K.nav, s), children: [
762
+ /* @__PURE__ */ D(
531
763
  "button",
532
764
  {
533
765
  type: "button",
534
- className: m(V.spaceControl, S.item, S.step),
535
- disabled: u <= 1,
766
+ className: b(Y.spaceControl, K.item, K.step),
767
+ disabled: _ <= 1,
536
768
  "aria-label": "Previous page",
537
- onClick: () => C(u - 1),
769
+ onClick: () => p(_ - 1),
538
770
  children: [
539
- /* @__PURE__ */ n(q1, { "aria-hidden": "true" }),
540
- /* @__PURE__ */ n("span", { className: S.stepText, children: "Previous" })
771
+ /* @__PURE__ */ n(Xe, { "aria-hidden": "true" }),
772
+ /* @__PURE__ */ n("span", { className: K.stepText, children: "Previous" })
541
773
  ]
542
774
  }
543
775
  ),
544
- /* @__PURE__ */ n("ol", { className: S.pages, children: G1(u, i, o).map(
545
- (a, p) => a === null ? (
776
+ /* @__PURE__ */ n("ol", { className: K.pages, children: So(_, d, o).map(
777
+ (c, C) => c === null ? (
546
778
  // Presentational: "ellipsis" read aloud between page numbers tells
547
779
  // nobody anything.
548
780
  // eslint-disable-next-line react/no-array-index-key
549
- /* @__PURE__ */ n("li", { className: S.gap, "aria-hidden": "true", children: "…" }, `gap-${p}`)
781
+ /* @__PURE__ */ n("li", { className: K.gap, "aria-hidden": "true", children: "…" }, `gap-${C}`)
550
782
  ) : /* @__PURE__ */ n("li", { children: /* @__PURE__ */ n(
551
783
  "button",
552
784
  {
553
785
  type: "button",
554
- className: m(
555
- V.spaceControl,
556
- S.item,
557
- S.page,
558
- a === u && S.current
786
+ className: b(
787
+ Y.spaceControl,
788
+ K.item,
789
+ K.page,
790
+ c === _ && K.current
559
791
  ),
560
- "data-animated": a === u && !s ? "false" : void 0,
561
- "aria-label": `Page ${a}`,
562
- "aria-current": a === u ? "page" : void 0,
563
- onClick: () => C(a),
564
- children: a
792
+ "data-animated": c === _ && !r ? "false" : void 0,
793
+ "aria-label": `Page ${c}`,
794
+ "aria-current": c === _ ? "page" : void 0,
795
+ onClick: () => p(c),
796
+ children: c
565
797
  }
566
- ) }, a)
798
+ ) }, c)
567
799
  ) }),
568
- /* @__PURE__ */ $(
800
+ /* @__PURE__ */ D(
569
801
  "button",
570
802
  {
571
803
  type: "button",
572
- className: m(V.spaceControl, S.item, S.step),
573
- disabled: u >= i,
804
+ className: b(Y.spaceControl, K.item, K.step),
805
+ disabled: _ >= d,
574
806
  "aria-label": "Next page",
575
- onClick: () => C(u + 1),
807
+ onClick: () => p(_ + 1),
576
808
  children: [
577
- /* @__PURE__ */ n("span", { className: S.stepText, children: "Next" }),
578
- /* @__PURE__ */ n(L1, { "aria-hidden": "true" })
809
+ /* @__PURE__ */ n("span", { className: K.stepText, children: "Next" }),
810
+ /* @__PURE__ */ n(Ue, { "aria-hidden": "true" })
579
811
  ]
580
812
  }
581
813
  )
582
814
  ] });
583
815
  }
584
- const K1 = "_spaceButton_kjhqx_14", U1 = "_rimRotate_kjhqx_1", X1 = "_glintSweep_kjhqx_1", Y1 = "_iconOnly_kjhqx_97", Q1 = "_lg_kjhqx_104", J1 = "_sm_kjhqx_110", en = "_micro_kjhqx_122", tn = "_stars_kjhqx_136", nn = "_fullWidth_kjhqx_141", on = "_ember_kjhqx_147", sn = "_label_kjhqx_157", rn = "_star_kjhqx_136", ln = "_twinkle_kjhqx_1", W = {
585
- spaceButton: K1,
586
- rimRotate: U1,
587
- glintSweep: X1,
588
- iconOnly: Y1,
589
- lg: Q1,
590
- sm: J1,
591
- micro: en,
592
- stars: tn,
593
- fullWidth: nn,
594
- ember: on,
595
- label: sn,
596
- star: rn,
597
- twinkle: ln
598
- };
599
- function cn(e) {
600
- return function() {
601
- e |= 0, e = e + 1831565813 | 0;
602
- let t = Math.imul(e ^ e >>> 15, 1 | e);
603
- return t = t + Math.imul(t ^ t >>> 7, 61 | t) ^ t, ((t ^ t >>> 14) >>> 0) / 4294967296;
604
- };
605
- }
606
- function an(e) {
607
- let t = 2166136261;
608
- for (let o = 0; o < e.length; o++)
609
- t ^= e.charCodeAt(o), t = Math.imul(t, 16777619);
610
- return t >>> 0;
611
- }
612
- const un = H(
613
- function({ iconOnly: t, ember: o, size: s = "md", fullWidth: r, animated: l = !0, className: c, children: i, ...u }, C) {
614
- const a = O(), p = te(() => {
615
- const _ = cn(an(a));
616
- return Array.from({ length: 3 }, () => ({
617
- top: `${12 + _() * 58}%`,
618
- left: `${8 + _() * 80}%`,
619
- animationDelay: `${(_() * 3.2).toFixed(2)}s`,
620
- animationDuration: `${(2.8 + _() * 1.8).toFixed(2)}s`
621
- }));
622
- }, [a]), v = [
623
- W.spaceButton,
624
- t ? W.iconOnly : "",
625
- o ? W.ember : "",
626
- s !== "md" ? W[s] : "",
627
- r ? W.fullWidth : "",
628
- c ?? ""
629
- ].filter(Boolean).join(" ");
630
- return /* @__PURE__ */ $(
631
- "button",
632
- {
633
- ref: C,
634
- className: v,
635
- "data-animated": l ? void 0 : "false",
636
- ...u,
637
- children: [
638
- s !== "micro" && /* @__PURE__ */ n("span", { className: W.stars, "aria-hidden": !0, children: p.map((_, g) => /* @__PURE__ */ n("i", { className: W.star, style: _ }, g)) }),
639
- /* @__PURE__ */ n("span", { className: W.label, children: i })
640
- ]
641
- }
642
- );
643
- }
644
- ), dn = "_wrap_dwcut_5", _n = "_sm_dwcut_30", fn = "_md_dwcut_36", pn = "_lg_dwcut_42", Cn = "_orbit_dwcut_49", gn = "_planet_dwcut_58", mn = "_moon_dwcut_73", hn = "_label_dwcut_92", Q = {
645
- wrap: dn,
646
- sm: _n,
647
- md: fn,
648
- lg: pn,
649
- orbit: Cn,
650
- planet: gn,
816
+ const To = "_wrap_dwcut_5", Ao = "_sm_dwcut_30", jo = "_md_dwcut_36", Zo = "_lg_dwcut_42", Oo = "_orbit_dwcut_49", Bo = "_planet_dwcut_58", Wo = "_moon_dwcut_73", Vo = "_label_dwcut_92", de = {
817
+ wrap: To,
818
+ sm: Ao,
819
+ md: jo,
820
+ lg: Zo,
821
+ orbit: Oo,
822
+ planet: Bo,
651
823
  "sp-loader-planet-pulse": "_sp-loader-planet-pulse_dwcut_1",
652
- moon: mn,
824
+ moon: Wo,
653
825
  "sp-loader-orbit": "_sp-loader-orbit_dwcut_1",
654
- label: hn,
826
+ label: Vo,
655
827
  "sp-loader-reduced-pulse": "_sp-loader-reduced-pulse_dwcut_1"
656
828
  };
657
- function qs({ size: e = "md", label: t, className: o }) {
658
- return /* @__PURE__ */ $(
829
+ function es({ size: e = "md", label: t, className: o }) {
830
+ return /* @__PURE__ */ D(
659
831
  "div",
660
832
  {
661
- className: m(Q.wrap, Q[e], o),
833
+ className: b(de.wrap, de[e], o),
662
834
  role: "status",
663
835
  "aria-live": "polite",
664
836
  "aria-label": t ?? "Loading",
665
837
  children: [
666
- /* @__PURE__ */ $("span", { className: Q.orbit, children: [
667
- /* @__PURE__ */ n("span", { className: Q.planet }),
668
- /* @__PURE__ */ n("span", { className: Q.moon })
838
+ /* @__PURE__ */ D("span", { className: de.orbit, children: [
839
+ /* @__PURE__ */ n("span", { className: de.planet }),
840
+ /* @__PURE__ */ n("span", { className: de.moon })
669
841
  ] }),
670
- t && /* @__PURE__ */ n("span", { className: Q.label, children: t })
842
+ t && /* @__PURE__ */ n("span", { className: de.label, children: t })
671
843
  ]
672
844
  }
673
845
  );
674
846
  }
675
- const vn = "_content_1bxfq_6", bn = {
676
- content: vn
677
- }, wn = 350, yn = 80, ge = 8, ae = 8;
678
- function xn({ triggerRef: e, tooltipId: t, show: o, hide: s, children: r }) {
679
- const l = r.props;
680
- return ve(r, {
847
+ const Fo = "_content_1efo6_6", Po = {
848
+ content: Fo
849
+ };
850
+ function Ye(e, t) {
851
+ 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());
852
+ }
853
+ const Ko = 350, Go = 80, De = 8, we = 8;
854
+ function Uo({ triggerRef: e, tooltipId: t, show: o, hide: r, children: s }) {
855
+ const l = s.props;
856
+ return He(s, {
681
857
  ref: e,
682
858
  // Always present, so the id it points at never dangles: the content
683
859
  // element stays mounted and only toggles its popover state.
684
860
  "aria-describedby": t,
685
- onPointerEnter: (c) => {
686
- var i;
687
- (i = l.onPointerEnter) == null || i.call(l, c), c.pointerType === "mouse" && o();
861
+ onPointerEnter: (a) => {
862
+ var d;
863
+ (d = l.onPointerEnter) == null || d.call(l, a), a.pointerType === "mouse" && o();
688
864
  },
689
- onPointerLeave: (c) => {
690
- var i;
691
- (i = l.onPointerLeave) == null || i.call(l, c), s();
865
+ onPointerLeave: (a) => {
866
+ var d;
867
+ (d = l.onPointerLeave) == null || d.call(l, a), r();
692
868
  },
693
869
  // Keyboard focus shows it immediately — no hover delay to wait out.
694
- onFocus: (c) => {
695
- var i;
696
- (i = l.onFocus) == null || i.call(l, c), o(!0);
870
+ onFocus: (a) => {
871
+ var d;
872
+ (d = l.onFocus) == null || d.call(l, a), o(!0);
697
873
  },
698
- onBlur: (c) => {
699
- var i;
700
- (i = l.onBlur) == null || i.call(l, c), s();
874
+ onBlur: (a) => {
875
+ var d;
876
+ (d = l.onBlur) == null || d.call(l, a), r();
701
877
  },
702
878
  // A tooltip must never outlive the action it describes: clicking the
703
879
  // control (expand, switch view) leaves it stranded over the new layout.
704
- onClick: (c) => {
705
- var i;
706
- (i = l.onClick) == null || i.call(l, c), s();
880
+ onClick: (a) => {
881
+ var d;
882
+ (d = l.onClick) == null || d.call(l, a), r();
707
883
  }
708
884
  });
709
885
  }
710
- function $n({ label: e, side: t = "bottom", children: o }) {
711
- const s = O(), [r, l] = E(!1), [c, i] = E(null), u = R(null), C = R(null), a = R(null), p = R(null), v = () => {
712
- a.current && (clearTimeout(a.current), a.current = null), p.current && (clearTimeout(p.current), p.current = null);
713
- }, _ = (b = !1) => {
714
- if (v(), b) {
886
+ function Xo({ label: e, side: t = "bottom", children: o }) {
887
+ const r = U(), [s, l] = Z(!1), [a, d] = Z(null), _ = E(null), p = E(null), c = E(null), C = E(null), w = () => {
888
+ c.current && (clearTimeout(c.current), c.current = null), C.current && (clearTimeout(C.current), C.current = null);
889
+ }, y = (m = !1) => {
890
+ if (w(), m) {
715
891
  l(!0);
716
892
  return;
717
893
  }
718
- a.current = setTimeout(() => l(!0), wn);
719
- }, g = () => {
720
- v(), p.current = setTimeout(() => l(!1), yn);
894
+ c.current = setTimeout(() => l(!0), Ko);
895
+ }, f = () => {
896
+ w(), C.current = setTimeout(() => l(!1), Go);
721
897
  };
722
- return j(() => v, []), be(() => {
723
- const b = C.current;
724
- if (!b) return;
725
- if (!r) {
726
- b.matches(":popover-open") && b.hidePopover();
898
+ return G(() => w, []), Ce(() => {
899
+ const m = p.current;
900
+ if (!m) return;
901
+ if (!s) {
902
+ m.matches(":popover-open") && m.hidePopover();
727
903
  return;
728
904
  }
729
- b.matches(":popover-open") || b.showPopover();
730
- const y = u.current;
731
- if (!y) return;
732
- const w = y.getBoundingClientRect(), L = b.offsetWidth, z = b.offsetHeight, D = (f, x, N, B) => Math.min(
733
- Math.max(f + x / 2 - N / 2, ae),
734
- Math.max(B - N - ae, ae)
735
- ), M = (f, x, N, B) => {
736
- const K = x + N <= B - ae;
737
- return { fitsNear: f >= ae, fitsFar: K };
905
+ const L = _.current;
906
+ if (!L) return;
907
+ const z = () => {
908
+ const k = L.getBoundingClientRect(), A = m.offsetWidth, S = m.offsetHeight, q = ($, M, g, v) => Math.min(
909
+ Math.max($ + M / 2 - g / 2, we),
910
+ Math.max(v - g - we, we)
911
+ ), O = ($, M, g, v) => ({
912
+ fitsNear: $ >= we,
913
+ fitsFar: M + g <= v - we
914
+ });
915
+ if (t === "left" || t === "right") {
916
+ const $ = k.right + De, M = k.left - A - De, { fitsNear: g, fitsFar: v } = O(M, $, A, window.innerWidth), R = t === "right" ? v || !g ? $ : M : g || !v ? M : $;
917
+ m.dataset.side = R === $ ? "right" : "left", d({ top: q(k.top, k.height, S, window.innerHeight), left: R });
918
+ return;
919
+ }
920
+ const j = k.bottom + De, N = k.top - S - De, { fitsNear: I, fitsFar: x } = O(N, j, S, window.innerHeight), i = t === "bottom" ? x || !I ? j : N : I || !x ? N : j;
921
+ m.dataset.side = i === j ? "bottom" : "top", d({ top: i, left: q(k.left, k.width, A, window.innerWidth) });
738
922
  };
739
- if (t === "left" || t === "right") {
740
- const f = w.right + ge, x = w.left - L - ge, { fitsNear: N, fitsFar: B } = M(x, f, L, window.innerWidth), K = t === "right" ? B || !N ? f : x : N || !B ? x : f;
741
- i({ top: D(w.top, w.height, z, window.innerHeight), left: K });
742
- return;
743
- }
744
- const A = w.bottom + ge, q = w.top - z - ge, { fitsNear: I, fitsFar: G } = M(q, A, z, window.innerHeight);
745
- i({ top: t === "bottom" ? G || !I ? A : q : I || !G ? q : A, left: D(w.left, w.width, L, window.innerWidth) });
746
- }, [r, t, e]), !e || !ne(o) ? /* @__PURE__ */ n(de, { children: o }) : /* @__PURE__ */ $(de, { children: [
923
+ m.matches(":popover-open") ? z() : Ye(m, z);
924
+ }, [s, t, e]), !e || !ge(o) ? /* @__PURE__ */ n(pe, { children: o }) : /* @__PURE__ */ D(pe, { children: [
747
925
  /* @__PURE__ */ n(
748
- xn,
926
+ Uo,
749
927
  {
750
- triggerRef: u,
751
- tooltipId: s,
752
- show: _,
753
- hide: g,
928
+ triggerRef: _,
929
+ tooltipId: r,
930
+ show: y,
931
+ hide: f,
754
932
  children: o
755
933
  }
756
934
  ),
757
935
  /* @__PURE__ */ n(
758
936
  "div",
759
937
  {
760
- ref: C,
761
- id: s,
938
+ ref: p,
939
+ id: r,
762
940
  popover: "auto",
763
941
  role: "tooltip",
764
- className: bn.content,
765
- style: c ? { top: c.top, left: c.left } : void 0,
766
- onToggle: (b) => {
767
- b.nativeEvent.newState === "closed" && r && l(!1);
942
+ className: Po.content,
943
+ style: a ? { top: a.top, left: a.left } : void 0,
944
+ onToggle: (m) => {
945
+ m.nativeEvent.newState === "closed" && s && l(!1);
768
946
  },
769
947
  children: e
770
948
  }
771
949
  )
772
950
  ] });
773
951
  }
774
- const kn = "_group_1tdav_4", Ln = "_segment_1tdav_15", qn = "_active_1tdav_35", Mn = "_vertical_1tdav_46", me = {
775
- group: kn,
776
- segment: Ln,
777
- active: qn,
778
- vertical: Mn
952
+ const Yo = "_group_1tdav_4", Qo = "_segment_1tdav_15", Jo = "_active_1tdav_35", e1 = "_vertical_1tdav_46", qe = {
953
+ group: Yo,
954
+ segment: Qo,
955
+ active: Jo,
956
+ vertical: e1
779
957
  };
780
- function Ms({
958
+ function ts({
781
959
  options: e,
782
960
  value: t,
783
961
  onValueChange: o,
784
- orientation: s = "horizontal",
785
- className: r = ""
962
+ orientation: r = "horizontal",
963
+ className: s = ""
786
964
  }) {
787
- const l = s === "vertical";
965
+ const l = r === "vertical";
788
966
  return /* @__PURE__ */ n(
789
967
  "div",
790
968
  {
791
- className: `${me.group} ${l ? me.vertical : ""} ${r}`,
969
+ className: `${qe.group} ${l ? qe.vertical : ""} ${s}`,
792
970
  role: "group",
793
- children: e.map((c) => (
971
+ children: e.map((a) => (
794
972
  // A horizontal pill sits at the top of the scene, so its tooltips hang
795
973
  // below it. A vertical one has a segment directly below every segment,
796
974
  // so they go to the side instead — otherwise each tooltip covers the
797
975
  // next option along.
798
- /* @__PURE__ */ n($n, { label: c.label, side: l ? "right" : "bottom", children: /* @__PURE__ */ n(
976
+ /* @__PURE__ */ n(Xo, { label: a.label, side: l ? "right" : "bottom", children: /* @__PURE__ */ n(
799
977
  "button",
800
978
  {
801
979
  type: "button",
802
- className: `${me.segment} ${c.value === t ? me.active : ""}`,
803
- "aria-label": c.label,
804
- "aria-pressed": c.value === t,
980
+ className: `${qe.segment} ${a.value === t ? qe.active : ""}`,
981
+ "aria-label": a.label,
982
+ "aria-pressed": a.value === t,
805
983
  onClick: () => {
806
- c.value !== t && o(c.value);
984
+ a.value !== t && o(a.value);
807
985
  },
808
- children: c.icon
986
+ children: a.icon
809
987
  }
810
- ) }, c.value)
988
+ ) }, a.value)
811
989
  ))
812
990
  }
813
991
  );
814
992
  }
815
- const Nn = "_root_1bvtq_2", Rn = "_trigger_1bvtq_7", zn = "_labelWrap_1bvtq_30", Dn = "_sizer_1bvtq_8", In = "_triggerLabel_1bvtq_70", Hn = "_chevron_1bvtq_77", Tn = "_listbox_1bvtq_82", Sn = "_item_1bvtq_110", F = {
816
- root: Nn,
817
- trigger: Rn,
818
- labelWrap: zn,
819
- sizer: Dn,
820
- triggerLabel: In,
821
- chevron: Hn,
822
- listbox: Tn,
823
- item: Sn
824
- }, De = oe(null), En = () => {
825
- const e = se(De);
993
+ const t1 = "_root_32n97_2", n1 = "_trigger_32n97_7", o1 = "_labelWrap_32n97_30", r1 = "_sizer_32n97_8", s1 = "_triggerLabel_32n97_70", l1 = "_chevron_32n97_77", a1 = "_listbox_32n97_82", c1 = "_item_32n97_148", te = {
994
+ root: t1,
995
+ trigger: n1,
996
+ labelWrap: o1,
997
+ sizer: r1,
998
+ triggerLabel: s1,
999
+ chevron: l1,
1000
+ listbox: a1,
1001
+ item: c1
1002
+ }, Qe = Le(null), i1 = () => {
1003
+ const e = ke(Qe);
826
1004
  if (!e) throw new Error("Select.Item must be inside a Select");
827
1005
  return e;
828
- }, Ie = (e, t) => `${e}-${encodeURIComponent(t)}`;
829
- function Zn(e) {
830
- const t = [], o = (s) => {
831
- Ue.forEach(s, (r) => {
832
- if (!ne(r)) return;
833
- const l = r.props;
834
- r.type === He && typeof l.value == "string" ? t.push({ value: l.value, label: l.children, disabled: l.disabled }) : l.children && o(l.children);
1006
+ }, Je = (e, t) => `${e}-${encodeURIComponent(t)}`;
1007
+ function d1(e) {
1008
+ const t = [], o = (r) => {
1009
+ Ge.forEach(r, (s) => {
1010
+ if (!ge(s)) return;
1011
+ const l = s.props;
1012
+ s.type === et && typeof l.value == "string" ? t.push({ value: l.value, label: l.children, disabled: l.disabled }) : l.children && o(l.children);
835
1013
  });
836
1014
  };
837
1015
  return o(e), t;
838
1016
  }
839
- function Vn({
1017
+ function u1({
840
1018
  value: e,
841
1019
  onValueChange: t,
842
1020
  disabled: o,
843
- placeholder: s,
844
- animated: r = !0,
1021
+ placeholder: r,
1022
+ animated: s = !0,
845
1023
  className: l,
846
- children: c,
847
- ...i
1024
+ children: a,
1025
+ ...d
848
1026
  }) {
849
- const [u, C] = E(!1), [a, p] = E(null), v = O(), _ = R(null), g = R(null), b = R(null), [y, w] = E(null), [L, z] = E(null), D = te(() => Zn(c), [c]), M = te(() => D.filter((f) => !f.disabled).map((f) => f.value), [D]), A = te(() => D.map((f) => f.label), [D]), q = ze(
850
- (f) => {
851
- var x;
852
- return ((x = D.find((N) => N.value === f)) == null ? void 0 : x.label) ?? null;
1027
+ const [_, p] = Z(!1), [c, C] = Z(null), w = U(), y = E(null), f = E(null), m = E(null), [L, z] = Z(null), [k, A] = Z(null), S = _e(() => d1(a), [a]), q = _e(() => S.filter((i) => !i.disabled).map((i) => i.value), [S]), O = _e(() => S.map((i) => i.label), [S]), j = le(
1028
+ (i) => {
1029
+ var $;
1030
+ return (($ = S.find((M) => M.value === i)) == null ? void 0 : $.label) ?? null;
853
1031
  },
854
- [D]
1032
+ [S]
855
1033
  );
856
- j(() => {
857
- if (!u) return;
858
- const f = (x) => {
859
- g.current && !g.current.contains(x.target) && C(!1);
1034
+ G(() => {
1035
+ if (!_) return;
1036
+ const i = ($) => {
1037
+ f.current && !f.current.contains($.target) && p(!1);
860
1038
  };
861
- return document.addEventListener("mousedown", f), () => document.removeEventListener("mousedown", f);
862
- }, [u]), be(() => {
863
- if (!u) return;
864
- const f = _.current;
865
- if (!f) return;
866
- const x = f.getBoundingClientRect();
867
- w(f.offsetWidth);
868
- const N = window.innerHeight - x.bottom - 16;
869
- z(Math.min(380, Math.max(120, N)));
870
- }, [u]), j(() => {
871
- var f;
872
- u && ((f = b.current) == null || f.focus());
873
- }, [u]);
874
- const I = (f) => {
875
- p(f ?? M[0] ?? null), C(!0);
876
- }, G = (f) => {
877
- const x = a ? M.indexOf(a) : -1, N = Math.min(Math.max(x + f, 0), M.length - 1);
878
- p(M[N] ?? null);
879
- }, T = e ? q(e) : null;
1039
+ return document.addEventListener("mousedown", i), () => document.removeEventListener("mousedown", i);
1040
+ }, [_]), Ce(() => {
1041
+ if (!_) return;
1042
+ const i = y.current;
1043
+ if (!i) return;
1044
+ const $ = i.getBoundingClientRect();
1045
+ z(i.offsetWidth);
1046
+ const M = window.innerHeight - $.bottom - 16;
1047
+ A(Math.min(380, Math.max(120, M)));
1048
+ }, [_]), G(() => {
1049
+ var i;
1050
+ _ && ((i = m.current) == null || i.focus());
1051
+ }, [_]);
1052
+ const N = (i) => {
1053
+ C(i ?? q[0] ?? null), p(!0);
1054
+ }, I = (i) => {
1055
+ const $ = c ? q.indexOf(c) : -1, M = Math.min(Math.max($ + i, 0), q.length - 1);
1056
+ C(q[M] ?? null);
1057
+ }, x = e ? j(e) : null;
880
1058
  return /* @__PURE__ */ n(
881
- De.Provider,
1059
+ Qe.Provider,
882
1060
  {
883
1061
  value: {
884
1062
  value: e,
885
1063
  onValueChange: t,
886
1064
  disabled: o,
887
- open: u,
888
- setOpen: C,
889
- highlighted: a,
890
- setHighlighted: p,
891
- listboxId: v,
892
- values: M,
893
- labelFor: q,
894
- triggerRef: _
1065
+ open: _,
1066
+ setOpen: p,
1067
+ highlighted: c,
1068
+ setHighlighted: C,
1069
+ listboxId: w,
1070
+ values: q,
1071
+ labelFor: j,
1072
+ triggerRef: y
895
1073
  },
896
- children: /* @__PURE__ */ $("div", { ref: g, className: F.root, children: [
897
- /* @__PURE__ */ $(
1074
+ children: /* @__PURE__ */ D("div", { ref: f, className: te.root, children: [
1075
+ /* @__PURE__ */ D(
898
1076
  "button",
899
1077
  {
900
1078
  type: "button",
901
- ...i,
902
- ref: _,
1079
+ ...d,
1080
+ ref: y,
903
1081
  disabled: o,
904
- className: m(F.trigger, V.spaceControl, "spSelectTrigger", l),
905
- "data-animated": r ? void 0 : "false",
906
- "data-state": u ? "open" : "closed",
1082
+ className: b(te.trigger, Y.spaceControl, "spSelectTrigger", l),
1083
+ "data-animated": s ? void 0 : "false",
1084
+ "data-state": _ ? "open" : "closed",
907
1085
  "aria-haspopup": "listbox",
908
- "aria-expanded": u,
909
- "aria-controls": v,
910
- onClick: () => u ? C(!1) : I(e || null),
911
- onKeyDown: (f) => {
912
- (f.key === "ArrowDown" || f.key === "Enter" || f.key === " ") && (f.preventDefault(), I(e || null));
1086
+ "aria-expanded": _,
1087
+ "aria-controls": w,
1088
+ onClick: () => _ ? p(!1) : N(e || null),
1089
+ onKeyDown: (i) => {
1090
+ (i.key === "ArrowDown" || i.key === "Enter" || i.key === " ") && (i.preventDefault(), N(e || null));
913
1091
  },
914
1092
  children: [
915
- /* @__PURE__ */ $("span", { className: F.labelWrap, children: [
916
- /* @__PURE__ */ $("span", { className: F.sizer, "data-sizer": "", "aria-hidden": "true", children: [
917
- A.map((f, x) => (
1093
+ /* @__PURE__ */ D("span", { className: te.labelWrap, children: [
1094
+ /* @__PURE__ */ D("span", { className: te.sizer, "data-sizer": "", "aria-hidden": "true", children: [
1095
+ O.map((i, $) => (
918
1096
  // eslint-disable-next-line react/no-array-index-key
919
- /* @__PURE__ */ n("span", { children: f }, x)
1097
+ /* @__PURE__ */ n("span", { children: i }, $)
920
1098
  )),
921
- s && /* @__PURE__ */ n("span", { children: s })
1099
+ r && /* @__PURE__ */ n("span", { children: r })
922
1100
  ] }),
923
- /* @__PURE__ */ n("span", { className: F.triggerLabel, children: T ?? s ?? "" })
1101
+ /* @__PURE__ */ n("span", { className: te.triggerLabel, children: x ?? r ?? "" })
924
1102
  ] }),
925
- /* @__PURE__ */ n("svg", { className: F.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" }) })
1103
+ /* @__PURE__ */ n("svg", { className: te.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" }) })
926
1104
  ]
927
1105
  }
928
1106
  ),
929
1107
  /* @__PURE__ */ n(
930
1108
  "div",
931
1109
  {
932
- ref: b,
933
- id: v,
1110
+ ref: m,
1111
+ id: w,
934
1112
  role: "listbox",
935
1113
  tabIndex: -1,
936
- hidden: !u,
937
- "aria-activedescendant": a ? Ie(v, a) : void 0,
938
- className: m(F.listbox, V.spacePanel),
939
- "data-animated": r ? void 0 : "false",
940
- style: y != null || L != null ? {
941
- ...y != null ? { "--_select-trigger-width": `${y}px` } : {},
942
- ...L != null ? { maxHeight: `${L}px` } : {}
1114
+ hidden: !_,
1115
+ "aria-activedescendant": c ? Je(w, c) : void 0,
1116
+ className: b(te.listbox, Y.spacePanel),
1117
+ "data-animated": s ? void 0 : "false",
1118
+ style: L != null || k != null ? {
1119
+ ...L != null ? { "--_select-trigger-width": `${L}px` } : {},
1120
+ ...k != null ? { maxHeight: `${k}px` } : {}
943
1121
  } : void 0,
944
- onKeyDown: (f) => {
945
- var x, N;
946
- f.key === "Escape" ? (f.stopPropagation(), C(!1), (x = _.current) == null || x.focus()) : f.key === "ArrowDown" ? (f.preventDefault(), G(1)) : f.key === "ArrowUp" ? (f.preventDefault(), G(-1)) : f.key === "Home" ? (f.preventDefault(), p(M[0] ?? null)) : f.key === "End" ? (f.preventDefault(), p(M[M.length - 1] ?? null)) : f.key === "Enter" || f.key === " " ? (f.preventDefault(), a && (t(a), C(!1), (N = _.current) == null || N.focus())) : f.key === "Tab" && C(!1);
1122
+ onKeyDown: (i) => {
1123
+ var $, M;
1124
+ i.key === "Escape" ? (i.stopPropagation(), p(!1), ($ = y.current) == null || $.focus()) : i.key === "ArrowDown" ? (i.preventDefault(), I(1)) : i.key === "ArrowUp" ? (i.preventDefault(), I(-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(), c && (t(c), p(!1), (M = y.current) == null || M.focus())) : i.key === "Tab" && p(!1);
947
1125
  },
948
- children: c
1126
+ children: a
949
1127
  }
950
1128
  )
951
1129
  ] })
952
1130
  }
953
1131
  );
954
1132
  }
955
- function He({ value: e, disabled: t, children: o }) {
956
- const s = En(), r = s.value === e, l = s.highlighted === e;
1133
+ function et({ value: e, disabled: t, children: o }) {
1134
+ const r = i1(), s = r.value === e, l = r.highlighted === e;
957
1135
  return /* @__PURE__ */ n(
958
1136
  "div",
959
1137
  {
960
- id: Ie(s.listboxId, e),
1138
+ id: Je(r.listboxId, e),
961
1139
  role: "option",
962
- "aria-selected": r,
1140
+ "aria-selected": s,
963
1141
  "aria-disabled": t || void 0,
964
1142
  "data-highlighted": l ? "" : void 0,
965
- className: m(F.item, "spSelectItem"),
966
- onMouseEnter: () => !t && s.setHighlighted(e),
1143
+ className: b(te.item, "spSelectItem"),
1144
+ onMouseEnter: () => !t && r.setHighlighted(e),
967
1145
  onClick: () => {
968
- var c;
969
- t || (s.onValueChange(e), s.setOpen(!1), (c = s.triggerRef.current) == null || c.focus());
1146
+ var a;
1147
+ t || (r.onValueChange(e), r.setOpen(!1), (a = r.triggerRef.current) == null || a.focus());
970
1148
  },
971
1149
  children: o
972
1150
  }
973
1151
  );
974
1152
  }
975
- const Ns = Object.assign(Vn, { Item: He }), jn = "_root_1lx7y_1", On = "_input_1lx7y_7", An = "_slot_1lx7y_17", ye = {
976
- root: jn,
977
- input: On,
978
- slot: An
979
- }, Bn = H(function({ className: t, style: o, animated: s = !0, children: r, ...l }, c) {
980
- return /* @__PURE__ */ $(
1153
+ const ns = Object.assign(u1, { Item: et }), f1 = "_root_1lx7y_1", _1 = "_input_1lx7y_7", p1 = "_slot_1lx7y_17", Te = {
1154
+ root: f1,
1155
+ input: _1,
1156
+ slot: p1
1157
+ }, g1 = F(function({ className: t, style: o, animated: r = !0, children: s, ...l }, a) {
1158
+ return /* @__PURE__ */ D(
981
1159
  "div",
982
1160
  {
983
- className: m(ye.root, V.spaceInput, "spTextFieldRoot", t),
984
- "data-animated": s ? void 0 : "false",
1161
+ className: b(Te.root, Y.spaceInput, "spTextFieldRoot", t),
1162
+ "data-animated": r ? void 0 : "false",
985
1163
  style: o,
986
1164
  children: [
987
- r,
988
- /* @__PURE__ */ n("input", { ...l, ref: c, className: m(ye.input, "spTextFieldInput") })
1165
+ s,
1166
+ /* @__PURE__ */ n("input", { ...l, ref: a, className: b(Te.input, "spTextFieldInput") })
989
1167
  ]
990
1168
  }
991
1169
  );
992
1170
  });
993
- function Wn({
1171
+ function C1({
994
1172
  children: e
995
1173
  }) {
996
- return /* @__PURE__ */ n("span", { className: ye.slot, children: e });
1174
+ return /* @__PURE__ */ n("span", { className: Te.slot, children: e });
997
1175
  }
998
- const Me = Object.assign(Bn, { Slot: Wn }), Fn = "_root_1qu6w_1", Pn = "_textarea_1qu6w_6", Ne = {
999
- root: Fn,
1000
- textarea: Pn
1001
- }, Rs = H(function({ className: t, style: o, animated: s = !0, ...r }, l) {
1176
+ const Fe = Object.assign(g1, { Slot: C1 }), h1 = "_root_1qu6w_1", m1 = "_textarea_1qu6w_6", Pe = {
1177
+ root: h1,
1178
+ textarea: m1
1179
+ }, os = F(function({ className: t, style: o, animated: r = !0, ...s }, l) {
1002
1180
  return /* @__PURE__ */ n(
1003
1181
  "div",
1004
1182
  {
1005
- className: m(Ne.root, V.spaceInput, V.spaceTextArea, "spTextFieldRoot", t),
1006
- "data-animated": s ? void 0 : "false",
1183
+ className: b(Pe.root, Y.spaceInput, Y.spaceTextArea, "spTextFieldRoot", t),
1184
+ "data-animated": r ? void 0 : "false",
1007
1185
  style: o,
1008
- children: /* @__PURE__ */ n("textarea", { ...r, ref: l, className: m(Ne.textarea, "spTextAreaInput") })
1186
+ children: /* @__PURE__ */ n("textarea", { ...s, ref: l, className: b(Pe.textarea, "spTextAreaInput") })
1009
1187
  }
1010
1188
  );
1011
- }), Gn = "_wrap_1pkwo_12", Kn = "_field_1pkwo_16", Un = "_panel_1pkwo_22", Xn = "_status_1pkwo_34", Yn = "_list_1pkwo_44", Qn = "_option_1pkwo_57", Jn = "_active_1pkwo_69", eo = "_label_1pkwo_79", to = "_meta_1pkwo_86", no = "_footer_1pkwo_92", Z = {
1012
- wrap: Gn,
1013
- field: Kn,
1014
- panel: Un,
1015
- status: Xn,
1016
- list: Yn,
1017
- option: Qn,
1018
- active: Jn,
1019
- label: eo,
1020
- meta: to,
1021
- footer: no
1189
+ }), v1 = "_wrap_1rgfg_12", w1 = "_field_1rgfg_16", b1 = "_panel_1rgfg_22", y1 = "_status_1rgfg_73", x1 = "_list_1rgfg_83", $1 = "_option_1rgfg_96", L1 = "_active_1rgfg_108", k1 = "_label_1rgfg_118", M1 = "_meta_1rgfg_125", N1 = "_footer_1rgfg_131", X = {
1190
+ wrap: v1,
1191
+ field: w1,
1192
+ panel: b1,
1193
+ status: y1,
1194
+ list: x1,
1195
+ option: $1,
1196
+ active: L1,
1197
+ label: k1,
1198
+ meta: M1,
1199
+ footer: N1
1022
1200
  };
1023
- function zs({
1201
+ function rs({
1024
1202
  value: e,
1025
1203
  onValueChange: t,
1026
1204
  options: o,
1027
- onSelect: s,
1028
- icon: r,
1205
+ onSelect: r,
1206
+ icon: s,
1029
1207
  caseSensitive: l = !1,
1030
- preFiltered: c = !1,
1031
- loading: i = !1,
1032
- loadingMessage: u = "Loading…",
1033
- emptyMessage: C,
1034
- footer: a,
1035
- animated: p = !0,
1036
- className: v,
1037
- style: _,
1038
- ...g
1208
+ preFiltered: a = !1,
1209
+ loading: d = !1,
1210
+ loadingMessage: _ = "Loading…",
1211
+ emptyMessage: p,
1212
+ footer: c,
1213
+ animated: C = !0,
1214
+ className: w,
1215
+ style: y,
1216
+ ...f
1039
1217
  }) {
1040
- const [b, y] = E(!1), [w, L] = E(0), z = R(null), D = R(null), M = O(), A = (d) => typeof d.label == "string" ? d.label : d.search ?? d.value, q = te(() => {
1041
- if (c) return o;
1042
- const d = l ? e : e.toLowerCase();
1043
- return d === "" ? o : o.filter((h) => (l ? A(h) : A(h).toLowerCase()).includes(d));
1044
- }, [o, e, l, c]), I = te(() => q.filter((d) => !d.disabled), [q]), G = q.length > 0 || i || C != null, T = b && G;
1045
- j(() => L(0), [q]), j(() => {
1218
+ const [m, L] = Z(!1), [z, k] = Z(0), A = E(null), S = E(null), q = U(), O = (u) => typeof u.label == "string" ? u.label : u.search ?? u.value, j = e.trim() !== "", N = _e(() => {
1219
+ if (!j) return [];
1220
+ if (a) return o;
1221
+ const u = l ? e : e.toLowerCase();
1222
+ return o.filter((h) => (l ? O(h) : O(h).toLowerCase()).includes(u));
1223
+ }, [o, e, l, a, j]), I = _e(() => N.filter((u) => !u.disabled), [N]), x = j && (N.length > 0 || d || p != null), i = m && x;
1224
+ G(() => k(0), [N]), G(() => {
1046
1225
  var h;
1047
- if (!T) return;
1048
- const d = (h = D.current) == null ? void 0 : h.querySelector(`[data-index="${w}"]`);
1049
- d == null || d.scrollIntoView({ block: "nearest" });
1050
- }, [w, T]);
1051
- const f = ze(() => y(!1), []);
1052
- j(() => {
1053
- if (!T) return;
1054
- const d = (h) => {
1055
- const U = z.current;
1056
- U && h.target instanceof Node && !U.contains(h.target) && f();
1226
+ if (!i) return;
1227
+ const u = (h = S.current) == null ? void 0 : h.querySelector(`[data-index="${z}"]`);
1228
+ u == null || u.scrollIntoView({ block: "nearest" });
1229
+ }, [z, i]);
1230
+ const $ = le(() => L(!1), []);
1231
+ G(() => {
1232
+ if (!i) return;
1233
+ const u = (h) => {
1234
+ const W = A.current;
1235
+ W && h.target instanceof Node && !W.contains(h.target) && $();
1057
1236
  };
1058
- return document.addEventListener("pointerdown", d), () => document.removeEventListener("pointerdown", d);
1059
- }, [T, f]);
1060
- const x = (d) => {
1061
- d.disabled || (s(d.value, d), y(!1));
1062
- }, N = (d) => {
1237
+ return document.addEventListener("pointerdown", u), () => document.removeEventListener("pointerdown", u);
1238
+ }, [i, $]);
1239
+ const M = E(!1), g = (u) => {
1240
+ u.disabled || (t(O(u)), r(u.value, u), M.current = !1, L(!1));
1241
+ }, v = (u) => {
1063
1242
  if (I.length === 0) return;
1064
- const h = q[w], Ke = ((h && !h.disabled ? I.indexOf(h) : -1) + d + I.length) % I.length, ke = I[Ke];
1065
- ke && L(q.indexOf(ke));
1066
- }, B = (d) => {
1067
- if (d.key === "Escape") {
1068
- T && d.stopPropagation(), y(!1);
1243
+ const h = N[z], B = ((h && !h.disabled ? I.indexOf(h) : -1) + u + I.length) % I.length, Q = I[B];
1244
+ Q && k(N.indexOf(Q));
1245
+ }, R = (u) => {
1246
+ if (u.key === "Escape") {
1247
+ i && u.stopPropagation(), L(!1);
1069
1248
  return;
1070
1249
  }
1071
- if (d.key === "Tab") {
1072
- y(!1);
1250
+ if (u.key === "Tab") {
1251
+ L(!1);
1073
1252
  return;
1074
1253
  }
1075
- if (!T) {
1076
- d.key === "ArrowDown" && y(!0);
1254
+ if (!i) {
1255
+ u.key === "ArrowDown" && L(!0);
1077
1256
  return;
1078
1257
  }
1079
- if (d.key === "ArrowDown")
1080
- d.preventDefault(), N(1);
1081
- else if (d.key === "ArrowUp")
1082
- d.preventDefault(), N(-1);
1083
- else if (d.key === "Home") {
1084
- d.preventDefault();
1258
+ if (u.key === "ArrowDown")
1259
+ u.preventDefault(), M.current = !0, v(1);
1260
+ else if (u.key === "ArrowUp")
1261
+ u.preventDefault(), M.current = !0, v(-1);
1262
+ else if (u.key === "Home") {
1263
+ u.preventDefault(), M.current = !0;
1085
1264
  const h = I[0];
1086
- h && L(q.indexOf(h));
1087
- } else if (d.key === "End") {
1088
- d.preventDefault();
1265
+ h && k(N.indexOf(h));
1266
+ } else if (u.key === "End") {
1267
+ u.preventDefault(), M.current = !0;
1089
1268
  const h = I[I.length - 1];
1090
- h && L(q.indexOf(h));
1091
- } else if (d.key === "Enter") {
1092
- const h = q[w];
1093
- h && !h.disabled && (d.preventDefault(), x(h));
1269
+ h && k(N.indexOf(h));
1270
+ } else if (u.key === "Enter" || u.key === " " && M.current) {
1271
+ const h = N[z];
1272
+ h && !h.disabled && (u.preventDefault(), g(h));
1094
1273
  }
1095
- }, K = T ? q[w] : void 0;
1096
- return /* @__PURE__ */ $("div", { ref: z, className: m(Z.wrap, v), style: _, children: [
1274
+ }, H = i ? N[z] : void 0;
1275
+ return /* @__PURE__ */ D("div", { ref: A, className: b(X.wrap, w), style: y, children: [
1097
1276
  /* @__PURE__ */ n(
1098
- Me,
1277
+ Fe,
1099
1278
  {
1100
- ...g,
1101
- type: g.type ?? "text",
1279
+ ...f,
1280
+ type: f.type ?? "text",
1102
1281
  role: "combobox",
1103
- animated: p,
1104
- className: Z.field,
1282
+ animated: C,
1283
+ className: X.field,
1105
1284
  autoComplete: "off",
1106
- "aria-expanded": T,
1107
- "aria-controls": M,
1285
+ "aria-expanded": i,
1286
+ "aria-controls": q,
1108
1287
  "aria-autocomplete": "list",
1109
- "aria-activedescendant": K && !K.disabled ? `${M}-${w}` : void 0,
1288
+ "aria-activedescendant": H && !H.disabled ? `${q}-${z}` : void 0,
1110
1289
  value: e,
1111
- onFocus: (d) => {
1290
+ onFocus: (u) => {
1112
1291
  var h;
1113
- (h = g.onFocus) == null || h.call(g, d), y(!0);
1292
+ (h = f.onFocus) == null || h.call(f, u), L(!0);
1114
1293
  },
1115
- onClick: (d) => {
1294
+ onClick: (u) => {
1116
1295
  var h;
1117
- (h = g.onClick) == null || h.call(g, d), y(!0);
1296
+ (h = f.onClick) == null || h.call(f, u), L(!0);
1118
1297
  },
1119
- onKeyDown: (d) => {
1298
+ onKeyDown: (u) => {
1120
1299
  var h;
1121
- (h = g.onKeyDown) == null || h.call(g, d), B(d);
1300
+ (h = f.onKeyDown) == null || h.call(f, u), R(u);
1122
1301
  },
1123
- onChange: (d) => {
1124
- t(d.target.value), y(!0);
1302
+ onChange: (u) => {
1303
+ M.current = !1, t(u.target.value), L(!0);
1125
1304
  },
1126
- children: r != null && /* @__PURE__ */ n(Me.Slot, { children: r })
1305
+ children: s != null && /* @__PURE__ */ n(Fe.Slot, { children: s })
1127
1306
  }
1128
1307
  ),
1129
- /* @__PURE__ */ $(
1308
+ /* @__PURE__ */ D(
1130
1309
  "div",
1131
1310
  {
1132
- className: m(Z.panel, V.spacePanel),
1133
- hidden: !T,
1134
- "data-animated": p ? void 0 : "false",
1311
+ className: b(X.panel, Y.spacePanel),
1312
+ hidden: !i,
1313
+ "data-animated": C ? void 0 : "false",
1135
1314
  children: [
1136
- i && /* @__PURE__ */ n("p", { className: Z.status, children: u }),
1137
- !i && q.length === 0 && C != null && /* @__PURE__ */ n("p", { className: Z.status, children: C }),
1315
+ j && d && /* @__PURE__ */ n("p", { className: X.status, children: _ }),
1316
+ j && !d && N.length === 0 && p != null && /* @__PURE__ */ n("p", { className: X.status, children: p }),
1138
1317
  /* @__PURE__ */ n(
1139
1318
  "ul",
1140
1319
  {
1141
- ref: D,
1142
- id: M,
1320
+ ref: S,
1321
+ id: q,
1143
1322
  role: "listbox",
1144
- className: Z.list,
1145
- hidden: i || q.length === 0,
1146
- children: q.map((d, h) => /* @__PURE__ */ $(
1323
+ className: X.list,
1324
+ hidden: d || N.length === 0,
1325
+ children: N.map((u, h) => /* @__PURE__ */ D(
1147
1326
  "li",
1148
1327
  {
1149
- id: `${M}-${h}`,
1328
+ id: `${q}-${h}`,
1150
1329
  "data-index": h,
1151
1330
  role: "option",
1152
- "aria-selected": h === w,
1153
- "aria-disabled": d.disabled || void 0,
1154
- className: m(
1155
- Z.option,
1156
- h === w && !d.disabled && Z.active,
1331
+ "aria-selected": h === z,
1332
+ "aria-disabled": u.disabled || void 0,
1333
+ className: b(
1334
+ X.option,
1335
+ h === z && !u.disabled && X.active,
1157
1336
  "spAutocompleteOption"
1158
1337
  ),
1159
- onMouseEnter: () => !d.disabled && L(h),
1160
- onPointerDown: (U) => {
1161
- U.preventDefault(), x(d);
1338
+ onMouseEnter: () => !u.disabled && k(h),
1339
+ onPointerDown: (W) => {
1340
+ W.preventDefault(), g(u);
1162
1341
  },
1163
1342
  children: [
1164
- /* @__PURE__ */ n("span", { className: Z.label, children: d.label }),
1165
- d.meta != null && /* @__PURE__ */ n("span", { className: Z.meta, children: d.meta })
1343
+ /* @__PURE__ */ n("span", { className: X.label, children: u.label }),
1344
+ u.meta != null && /* @__PURE__ */ n("span", { className: X.meta, children: u.meta })
1166
1345
  ]
1167
1346
  },
1168
- d.value
1347
+ u.value
1169
1348
  ))
1170
1349
  }
1171
1350
  ),
1172
- a != null && /* @__PURE__ */ n("div", { className: Z.footer, children: a })
1351
+ c != null && /* @__PURE__ */ n("div", { className: X.footer, children: c })
1173
1352
  ]
1174
1353
  }
1175
1354
  )
1176
1355
  ] });
1177
1356
  }
1178
- const oo = "_root_14a1b_1", so = "_track_14a1b_12", ro = "_range_14a1b_22", lo = "_thumb_14a1b_28", co = "_input_14a1b_38", ie = {
1179
- root: oo,
1180
- track: so,
1181
- range: ro,
1182
- thumb: lo,
1183
- input: co
1184
- }, Ds = H(function({ value: t, onValueChange: o, min: s, max: r, step: l, disabled: c, className: i, "aria-label": u }, C) {
1185
- const a = t[0] ?? s, p = r === s ? 0 : (a - s) / (r - s) * 100;
1186
- return /* @__PURE__ */ $("span", { className: m(ie.root, V.spaceSlider, i), "data-disabled": c || void 0, children: [
1187
- /* @__PURE__ */ n("span", { className: m(ie.track, "spSliderTrack"), children: /* @__PURE__ */ n("span", { className: m(ie.range, "spSliderRange"), style: { width: `${p}%` } }) }),
1188
- /* @__PURE__ */ n("span", { className: m(ie.thumb, "spSliderThumb"), style: { left: `${p}%` } }),
1357
+ const z1 = "_root_14a1b_1", R1 = "_track_14a1b_12", D1 = "_range_14a1b_22", q1 = "_thumb_14a1b_28", I1 = "_input_14a1b_38", be = {
1358
+ root: z1,
1359
+ track: R1,
1360
+ range: D1,
1361
+ thumb: q1,
1362
+ input: I1
1363
+ }, ss = F(function({ value: t, onValueChange: o, min: r, max: s, step: l, disabled: a, className: d, "aria-label": _ }, p) {
1364
+ const c = t[0] ?? r, C = s === r ? 0 : (c - r) / (s - r) * 100;
1365
+ return /* @__PURE__ */ D("span", { className: b(be.root, Y.spaceSlider, d), "data-disabled": a || void 0, children: [
1366
+ /* @__PURE__ */ n("span", { className: b(be.track, "spSliderTrack"), children: /* @__PURE__ */ n("span", { className: b(be.range, "spSliderRange"), style: { width: `${C}%` } }) }),
1367
+ /* @__PURE__ */ n("span", { className: b(be.thumb, "spSliderThumb"), style: { left: `${C}%` } }),
1189
1368
  /* @__PURE__ */ n(
1190
1369
  "input",
1191
1370
  {
1192
- ref: C,
1371
+ ref: p,
1193
1372
  type: "range",
1194
- className: m(ie.input, "spSliderInput"),
1195
- value: a,
1196
- min: s,
1197
- max: r,
1373
+ className: b(be.input, "spSliderInput"),
1374
+ value: c,
1375
+ min: r,
1376
+ max: s,
1198
1377
  step: l,
1199
- disabled: c,
1200
- "aria-label": u,
1201
- onChange: (v) => o([Number(v.target.value)])
1378
+ disabled: a,
1379
+ "aria-label": _,
1380
+ onChange: (w) => o([Number(w.target.value)])
1202
1381
  }
1203
1382
  )
1204
1383
  ] });
1205
- }), ao = "_root_1qhel_2", io = "_item_1qhel_8", uo = "_selfLabeled_1qhel_15", _o = "_input_1qhel_19", fo = "_orb_1qhel_35", ee = {
1206
- root: ao,
1207
- item: io,
1208
- selfLabeled: uo,
1209
- input: _o,
1210
- orb: fo
1211
- }, Te = oe(null);
1212
- function po({ value: e, onValueChange: t, disabled: o, className: s, children: r }) {
1213
- const l = O();
1214
- return /* @__PURE__ */ n(Te.Provider, { value: { value: e, onValueChange: t, disabled: o, name: l }, children: /* @__PURE__ */ n("div", { role: "radiogroup", className: m(ee.root, s), children: r }) });
1384
+ }), E1 = "_root_1qhel_2", H1 = "_item_1qhel_8", S1 = "_selfLabeled_1qhel_15", T1 = "_input_1qhel_19", A1 = "_orb_1qhel_35", fe = {
1385
+ root: E1,
1386
+ item: H1,
1387
+ selfLabeled: S1,
1388
+ input: T1,
1389
+ orb: A1
1390
+ }, tt = Le(null);
1391
+ function j1({ value: e, onValueChange: t, disabled: o, className: r, children: s }) {
1392
+ const l = U();
1393
+ return /* @__PURE__ */ n(tt.Provider, { value: { value: e, onValueChange: t, disabled: o, name: l }, children: /* @__PURE__ */ n("div", { role: "radiogroup", className: b(fe.root, r), children: s }) });
1215
1394
  }
1216
- function Co({ value: e, disabled: t, children: o }) {
1217
- const s = se(Te);
1218
- if (!s) throw new Error("RadioGroup.Item must be inside a RadioGroup");
1219
- const r = t || s.disabled, l = /* @__PURE__ */ $(de, { children: [
1395
+ function Z1({ value: e, disabled: t, children: o }) {
1396
+ const r = ke(tt);
1397
+ if (!r) throw new Error("RadioGroup.Item must be inside a RadioGroup");
1398
+ const s = t || r.disabled, l = /* @__PURE__ */ D(pe, { children: [
1220
1399
  /* @__PURE__ */ n(
1221
1400
  "input",
1222
1401
  {
1223
1402
  type: "radio",
1224
- className: ee.input,
1225
- name: s.name,
1403
+ className: fe.input,
1404
+ name: r.name,
1226
1405
  value: e,
1227
- checked: s.value === e,
1228
- disabled: r,
1229
- onChange: () => s.onValueChange(e)
1406
+ checked: r.value === e,
1407
+ disabled: s,
1408
+ onChange: () => r.onValueChange(e)
1230
1409
  }
1231
1410
  ),
1232
- /* @__PURE__ */ n("span", { className: m(ee.orb, "spRadioOrb"), "aria-hidden": "true" })
1411
+ /* @__PURE__ */ n("span", { className: b(fe.orb, "spRadioOrb"), "aria-hidden": "true" })
1233
1412
  ] });
1234
- return o == null ? /* @__PURE__ */ n("span", { className: ee.item, children: l }) : /* @__PURE__ */ $("label", { className: m(ee.item, ee.selfLabeled), children: [
1413
+ return o == null ? /* @__PURE__ */ n("span", { className: fe.item, children: l }) : /* @__PURE__ */ D("label", { className: b(fe.item, fe.selfLabeled), children: [
1235
1414
  l,
1236
1415
  o
1237
1416
  ] });
1238
1417
  }
1239
- const Is = Object.assign(po, { Item: Co }), go = "_progress_1cre6_16", mo = {
1240
- progress: go
1418
+ const ls = Object.assign(j1, { Item: Z1 }), O1 = "_progress_1cre6_16", B1 = {
1419
+ progress: O1
1241
1420
  };
1242
- function Hs({ value: e, max: t = 100, className: o, style: s, ...r }) {
1421
+ function as({ value: e, max: t = 100, className: o, style: r, ...s }) {
1243
1422
  const l = t > 0 ? Math.min(Math.max(e / t * 100, 0), 100) : 0;
1244
1423
  return /* @__PURE__ */ n(
1245
1424
  "div",
1246
1425
  {
1247
- ...r,
1426
+ ...s,
1248
1427
  role: "progressbar",
1249
1428
  "aria-valuenow": e,
1250
1429
  "aria-valuemin": 0,
1251
1430
  "aria-valuemax": t,
1252
- className: m(mo.progress, o),
1253
- style: s,
1431
+ className: b(B1.progress, o),
1432
+ style: r,
1254
1433
  children: /* @__PURE__ */ n("div", { style: { width: `${l}%`, height: "100%" } })
1255
1434
  }
1256
1435
  );
1257
1436
  }
1258
- const ho = "_message_1522x_14", vo = "_info_1522x_44", bo = "_warning_1522x_49", wo = "_alert_1522x_56", yo = "_icon_1522x_63", xo = "_body_1522x_74", $o = "_title_1522x_83", ko = "_text_1522x_90", J = {
1259
- message: ho,
1260
- info: vo,
1261
- warning: bo,
1262
- alert: wo,
1263
- icon: yo,
1264
- body: xo,
1265
- title: $o,
1266
- text: ko
1267
- }, Lo = {
1268
- info: /* @__PURE__ */ n(N1, {}),
1269
- warning: /* @__PURE__ */ n(R1, {}),
1270
- alert: /* @__PURE__ */ n(z1, {})
1271
- }, qo = {
1437
+ const W1 = "_message_1522x_14", V1 = "_info_1522x_44", F1 = "_warning_1522x_49", P1 = "_alert_1522x_56", K1 = "_icon_1522x_63", G1 = "_body_1522x_74", U1 = "_title_1522x_83", X1 = "_text_1522x_90", ue = {
1438
+ message: W1,
1439
+ info: V1,
1440
+ warning: F1,
1441
+ alert: P1,
1442
+ icon: K1,
1443
+ body: G1,
1444
+ title: U1,
1445
+ text: X1
1446
+ }, Y1 = {
1447
+ info: /* @__PURE__ */ n(ao, {}),
1448
+ warning: /* @__PURE__ */ n(co, {}),
1449
+ alert: /* @__PURE__ */ n(io, {})
1450
+ }, Q1 = {
1272
1451
  info: { role: "status", live: "polite" },
1273
1452
  warning: { role: "status", live: "polite" },
1274
1453
  alert: { role: "alert" }
1275
- }, Ts = H(function({ variant: t = "info", title: o, icon: s, className: r, children: l, ...c }, i) {
1276
- const u = s === void 0 ? Lo[t] : s, { role: C, live: a } = qo[t];
1277
- return /* @__PURE__ */ $(
1454
+ }, cs = F(function({ variant: t = "info", title: o, icon: r, className: s, children: l, ...a }, d) {
1455
+ const _ = r === void 0 ? Y1[t] : r, { role: p, live: c } = Q1[t];
1456
+ return /* @__PURE__ */ D(
1278
1457
  "div",
1279
1458
  {
1280
- ...c,
1281
- ref: i,
1282
- role: C,
1283
- "aria-live": a,
1284
- className: m(J.message, J[t], r),
1459
+ ...a,
1460
+ ref: d,
1461
+ role: p,
1462
+ "aria-live": c,
1463
+ className: b(ue.message, ue[t], s),
1285
1464
  children: [
1286
- u != null && /* @__PURE__ */ n("span", { className: J.icon, "aria-hidden": "true", children: u }),
1287
- /* @__PURE__ */ $("div", { className: J.body, children: [
1288
- o != null && /* @__PURE__ */ n("p", { className: J.title, children: o }),
1289
- l != null && /* @__PURE__ */ n("div", { className: J.text, children: l })
1465
+ _ != null && /* @__PURE__ */ n("span", { className: ue.icon, "aria-hidden": "true", children: _ }),
1466
+ /* @__PURE__ */ D("div", { className: ue.body, children: [
1467
+ o != null && /* @__PURE__ */ n("p", { className: ue.title, children: o }),
1468
+ l != null && /* @__PURE__ */ n("div", { className: ue.text, children: l })
1290
1469
  ] })
1291
1470
  ]
1292
1471
  }
1293
1472
  );
1294
- }), Mo = "_dialog_1qqku_2", No = "_inner_1qqku_34", Ro = "_size4_1qqku_39", zo = "_title_1qqku_43", Do = "_closeX_1qqku_51", ue = {
1295
- dialog: Mo,
1296
- inner: No,
1297
- size4: Ro,
1298
- title: zo,
1299
- closeX: Do
1473
+ }), J1 = "_dialog_zbndh_2", er = "_inner_zbndh_71", tr = "_size4_zbndh_76", nr = "_title_zbndh_80", or = "_closeX_zbndh_88", xe = {
1474
+ dialog: J1,
1475
+ inner: er,
1476
+ size4: tr,
1477
+ title: nr,
1478
+ closeX: or
1300
1479
  };
1301
- let he = 0;
1302
- const Se = oe(null), fe = () => {
1303
- const e = se(Se);
1480
+ let Ie = 0;
1481
+ const nt = Le(null), Me = () => {
1482
+ const e = ke(nt);
1304
1483
  if (!e) throw new Error("Dialog parts must be inside a Dialog");
1305
1484
  return e;
1306
1485
  };
1307
- function Ee(e) {
1308
- return function({ open: o, onOpenChange: s, children: r }) {
1309
- const [l, c] = E(!1), i = o !== void 0, u = i ? o : l, C = (g) => {
1310
- i || c(g), s == null || s(g);
1311
- }, a = O(), p = O(), [v, _] = E(!1);
1312
- return /* @__PURE__ */ n(Se.Provider, { value: { open: u, setOpen: C, titleId: a, descId: p, alert: e, hasDesc: v, setHasDesc: _ }, children: r });
1486
+ function ot(e) {
1487
+ return function({ open: o, onOpenChange: r, children: s }) {
1488
+ const [l, a] = Z(!1), d = o !== void 0, _ = d ? o : l, p = (f) => {
1489
+ d || a(f), r == null || r(f);
1490
+ }, c = U(), C = U(), [w, y] = Z(!1);
1491
+ return /* @__PURE__ */ n(nt.Provider, { value: { open: _, setOpen: p, titleId: c, descId: C, alert: e, hasDesc: w, setHasDesc: y }, children: s });
1313
1492
  };
1314
1493
  }
1315
- const Io = Ee(!1), Ze = (e, t) => {
1316
- if (!ne(e)) return e;
1494
+ const rr = ot(!1), rt = (e, t) => {
1495
+ if (!ge(e)) return e;
1317
1496
  const o = e;
1318
- return ve(o, {
1319
- onClick: (s) => {
1320
- var r, l;
1321
- (l = (r = o.props).onClick) == null || l.call(r, s), t();
1497
+ return He(o, {
1498
+ onClick: (r) => {
1499
+ var s, l;
1500
+ (l = (s = o.props).onClick) == null || l.call(s, r), t();
1322
1501
  }
1323
1502
  });
1324
1503
  };
1325
- function Ve({
1504
+ function st({
1326
1505
  children: e
1327
1506
  }) {
1328
- const t = fe();
1329
- return /* @__PURE__ */ n(de, { children: Ze(e, () => t.setOpen(!0)) });
1507
+ const t = Me();
1508
+ return /* @__PURE__ */ n(pe, { children: rt(e, () => t.setOpen(!0)) });
1330
1509
  }
1331
- function $e({
1510
+ function je({
1332
1511
  children: e
1333
1512
  }) {
1334
- const t = fe();
1335
- return /* @__PURE__ */ n(de, { children: Ze(e, () => t.setOpen(!1)) });
1513
+ const t = Me();
1514
+ return /* @__PURE__ */ n(pe, { children: rt(e, () => t.setOpen(!1)) });
1336
1515
  }
1337
- function je({ size: e = "3", maxWidth: t, className: o, style: s, children: r, ...l }) {
1338
- const c = fe(), i = R(null), u = R(!1), C = R(!1);
1339
- return j(() => {
1340
- const a = i.current;
1341
- a && (c.open && !a.open ? a.showModal() : !c.open && a.open && a.close());
1342
- }, [c.open]), j(() => {
1343
- if (c.open)
1344
- return he += 1, he === 1 && (document.body.style.overflow = "hidden"), () => {
1345
- he -= 1, he === 0 && (document.body.style.overflow = "");
1516
+ function lt({ size: e = "3", maxWidth: t, className: o, style: r, children: s, ...l }) {
1517
+ const a = Me(), d = E(null), _ = E(!1), p = E(!1);
1518
+ return G(() => {
1519
+ const c = d.current;
1520
+ c && (a.open && !c.open ? c.showModal() : !a.open && c.open && c.close());
1521
+ }, [a.open]), G(() => {
1522
+ if (a.open)
1523
+ return Ie += 1, Ie === 1 && (document.body.style.overflow = "hidden"), () => {
1524
+ Ie -= 1, Ie === 0 && (document.body.style.overflow = "");
1346
1525
  };
1347
- }, [c.open]), /* @__PURE__ */ n(
1526
+ }, [a.open]), /* @__PURE__ */ n(
1348
1527
  "dialog",
1349
1528
  {
1350
1529
  ...l,
1351
- ref: i,
1352
- role: c.alert ? "alertdialog" : void 0,
1353
- "aria-labelledby": c.titleId,
1354
- "aria-describedby": c.hasDesc ? c.descId : void 0,
1355
- className: m(ue.dialog, "spDialog", e === "4" && ue.size4, o),
1356
- style: { ...t ? { maxWidth: t } : null, ...s },
1357
- onKeyDownCapture: (a) => {
1358
- var p, v;
1359
- a.key === "Escape" && ((p = i.current) != null && p.querySelector("dialog[open]") || (v = i.current) != null && v.querySelector('[role="listbox"]:not([hidden])') && (u.current = !0));
1530
+ ref: d,
1531
+ role: a.alert ? "alertdialog" : void 0,
1532
+ "aria-labelledby": a.titleId,
1533
+ "aria-describedby": a.hasDesc ? a.descId : void 0,
1534
+ className: b(xe.dialog, "spDialog", e === "4" && xe.size4, o),
1535
+ style: { ...t ? { maxWidth: t } : null, ...r },
1536
+ onKeyDownCapture: (c) => {
1537
+ var C, w;
1538
+ c.key === "Escape" && ((C = d.current) != null && C.querySelector("dialog[open]") || (w = d.current) != null && w.querySelector('[role="listbox"]:not([hidden])') && (_.current = !0));
1360
1539
  },
1361
- onCancel: (a) => {
1362
- if (a.preventDefault(), u.current) {
1363
- u.current = !1;
1540
+ onCancel: (c) => {
1541
+ if (c.preventDefault(), _.current) {
1542
+ _.current = !1;
1364
1543
  return;
1365
1544
  }
1366
- c.setOpen(!1);
1545
+ a.setOpen(!1);
1367
1546
  },
1368
1547
  onClose: () => {
1369
- c.open && c.setOpen(!1);
1548
+ a.open && a.setOpen(!1);
1370
1549
  },
1371
- onPointerDown: (a) => {
1372
- C.current = a.target === i.current;
1550
+ onPointerDown: (c) => {
1551
+ p.current = c.target === d.current;
1373
1552
  },
1374
- onClick: (a) => {
1375
- !c.alert && a.target === i.current && C.current && c.setOpen(!1);
1553
+ onClick: (c) => {
1554
+ !a.alert && c.target === d.current && p.current && a.setOpen(!1);
1376
1555
  },
1377
- children: /* @__PURE__ */ $("div", { className: ue.inner, children: [
1378
- !c.alert && /* @__PURE__ */ n(
1556
+ children: /* @__PURE__ */ D("div", { className: xe.inner, children: [
1557
+ !a.alert && /* @__PURE__ */ n(
1379
1558
  "button",
1380
1559
  {
1381
1560
  type: "button",
1382
- className: ue.closeX,
1561
+ className: xe.closeX,
1383
1562
  "aria-label": "Close",
1384
- onClick: () => c.setOpen(!1),
1385
- children: /* @__PURE__ */ n(M1, { width: 16, height: 16 })
1563
+ onClick: () => a.setOpen(!1),
1564
+ children: /* @__PURE__ */ n(lo, { width: 16, height: 16 })
1386
1565
  }
1387
1566
  ),
1388
- r
1567
+ s
1389
1568
  ] })
1390
1569
  }
1391
1570
  );
1392
1571
  }
1393
- function Oe({ className: e, ...t }) {
1394
- const o = fe();
1395
- return /* @__PURE__ */ n(bt, { as: "h2", size: "5", ...t, id: o.titleId, className: m(ue.title, e) });
1572
+ function at({ className: e, ...t }) {
1573
+ const o = Me();
1574
+ return /* @__PURE__ */ n(At, { as: "h2", size: "5", ...t, id: o.titleId, className: b(xe.title, e) });
1396
1575
  }
1397
- function Ae(e) {
1398
- const t = fe(), { setHasDesc: o } = t;
1399
- return be(() => (o(!0), () => o(!1)), [o]), /* @__PURE__ */ n(it, { as: "p", ...e, id: t.descId });
1576
+ function ct(e) {
1577
+ const t = Me(), { setHasDesc: o } = t;
1578
+ return Ce(() => (o(!0), () => o(!1)), [o]), /* @__PURE__ */ n(Mt, { as: "p", ...e, id: t.descId });
1400
1579
  }
1401
- const Ss = Object.assign(Io, {
1402
- Trigger: Ve,
1403
- Close: $e,
1404
- Content: je,
1405
- Title: Oe,
1406
- Description: Ae
1407
- }), Ho = $e, To = $e, Es = Object.assign(Ee(!0), {
1408
- Trigger: Ve,
1409
- Content: je,
1410
- Title: Oe,
1411
- Description: Ae,
1412
- Cancel: Ho,
1413
- Action: To
1414
- }), So = "_menu_1hwyv_1", Eo = "_label_1hwyv_16", Zo = "_item_1hwyv_26", Vo = "_danger_1hwyv_45", jo = "_separator_1hwyv_49", _e = {
1415
- menu: So,
1416
- label: Eo,
1417
- item: Zo,
1418
- danger: Vo,
1419
- separator: jo
1420
- }, Be = oe(null), Oo = () => {
1421
- const e = se(Be);
1422
- if (!e) throw new Error("DropdownMenu parts must be inside a DropdownMenu");
1423
- return e;
1424
- }, We = oe(null), Ao = () => {
1425
- const e = se(We);
1580
+ const is = Object.assign(rr, {
1581
+ Trigger: st,
1582
+ Close: je,
1583
+ Content: lt,
1584
+ Title: at,
1585
+ Description: ct
1586
+ }), sr = je, lr = je, ds = Object.assign(ot(!0), {
1587
+ Trigger: st,
1588
+ Content: lt,
1589
+ Title: at,
1590
+ Description: ct,
1591
+ Cancel: sr,
1592
+ Action: lr
1593
+ }), ar = "_menu_11ctg_1", cr = "_label_11ctg_51", ir = "_item_11ctg_61", dr = "_danger_11ctg_80", ur = "_separator_11ctg_84", $e = {
1594
+ menu: ar,
1595
+ label: cr,
1596
+ item: ir,
1597
+ danger: dr,
1598
+ separator: ur
1599
+ }, it = Le(null), fr = () => {
1600
+ const e = ke(it);
1426
1601
  if (!e) throw new Error("DropdownMenu parts must be inside a DropdownMenu");
1427
1602
  return e;
1428
1603
  };
1429
- function Bo(e) {
1430
- return e.current ? (e.current = !1, !0) : !1;
1431
- }
1432
- function Re(e) {
1433
- e.current = !0;
1434
- }
1435
- function Wo({ label: e, align: t = "start", children: o, ...s }) {
1436
- const [r, l] = E(!1), c = O(), i = R(null), u = R(null), C = R(!1), a = R(!1), [p, v] = E(null);
1437
- return be(() => {
1438
- var g;
1439
- const _ = u.current;
1440
- if (_)
1441
- if (r) {
1442
- const b = i.current;
1443
- if (b) {
1444
- const y = b.getBoundingClientRect(), w = t === "end" ? "auto" : y.left, L = t === "end" ? window.innerWidth - y.right : "auto";
1445
- v({ top: y.bottom + 6, left: w, right: L });
1604
+ function _r({ label: e, align: t = "start", children: o, ...r }) {
1605
+ const [s, l] = Z(!1), a = U(), d = E(null), _ = E(null), p = E(null), c = E(s);
1606
+ c.current = s;
1607
+ const C = le((f) => {
1608
+ c.current !== f && (c.current = f, l(f));
1609
+ }, []), [w, y] = Z(null);
1610
+ return Ce(() => {
1611
+ var m;
1612
+ const f = _.current;
1613
+ if (f)
1614
+ if (s) {
1615
+ const L = d.current;
1616
+ if (L) {
1617
+ const z = L.getBoundingClientRect(), k = t === "end" ? "auto" : z.left, A = t === "end" ? window.innerWidth - z.right : "auto";
1618
+ y({ top: z.bottom + 6, left: k, right: A });
1446
1619
  }
1447
- _.showPopover(), (g = _.querySelector('[role="menuitem"]')) == null || g.focus();
1448
- } else _.matches(":popover-open") && _.hidePopover();
1449
- }, [r, t]), j(() => {
1450
- if (!r) return;
1451
- const _ = () => l(!1);
1452
- return window.addEventListener("resize", _), () => window.removeEventListener("resize", _);
1453
- }, [r]), /* @__PURE__ */ n(Be.Provider, { value: { open: r, setOpen: l, menuId: c }, children: /* @__PURE__ */ $(We.Provider, { value: a, children: [
1620
+ f.showPopover(), (m = f.querySelector('[role="menuitem"]')) == null || m.focus();
1621
+ } else f.matches(":popover-open") && f.hidePopover();
1622
+ }, [s, t]), G(() => {
1623
+ if (!s) return;
1624
+ const f = () => C(!1);
1625
+ return window.addEventListener("resize", f), () => window.removeEventListener("resize", f);
1626
+ }, [s]), /* @__PURE__ */ D(it.Provider, { value: { open: s, setOpen: C, menuId: a }, children: [
1454
1627
  /* @__PURE__ */ n(
1455
- un,
1628
+ Ee,
1456
1629
  {
1457
- ...s,
1458
- ref: i,
1630
+ ...r,
1631
+ ref: d,
1459
1632
  "aria-haspopup": "menu",
1460
- "aria-expanded": r,
1461
- "aria-controls": c,
1462
- onClick: (_) => {
1463
- var g;
1464
- (g = s.onClick) == null || g.call(s, _), !Bo(C) && l(!r);
1633
+ "aria-expanded": s,
1634
+ "aria-controls": a,
1635
+ onPointerDown: (f) => {
1636
+ var m;
1637
+ (m = r.onPointerDown) == null || m.call(r, f), p.current = !c.current;
1638
+ },
1639
+ onKeyDown: (f) => {
1640
+ var m;
1641
+ (m = r.onKeyDown) == null || m.call(r, f), (f.key === "Enter" || f.key === " ") && (p.current = null);
1642
+ },
1643
+ onClick: (f) => {
1644
+ var L;
1645
+ (L = r.onClick) == null || L.call(r, f);
1646
+ const m = p.current ?? !c.current;
1647
+ p.current = null, C(m);
1465
1648
  },
1466
1649
  children: e
1467
1650
  }
@@ -1469,116 +1652,111 @@ function Wo({ label: e, align: t = "start", children: o, ...s }) {
1469
1652
  /* @__PURE__ */ n(
1470
1653
  "div",
1471
1654
  {
1472
- ref: u,
1473
- id: c,
1655
+ ref: _,
1656
+ id: a,
1474
1657
  role: "menu",
1475
1658
  popover: "auto",
1476
- className: _e.menu,
1477
- style: p ? {
1478
- top: p.top,
1479
- left: p.left === "auto" ? "auto" : p.left,
1480
- right: p.right === "auto" ? "auto" : p.right
1659
+ className: $e.menu,
1660
+ style: w ? {
1661
+ top: w.top,
1662
+ left: w.left === "auto" ? "auto" : w.left,
1663
+ right: w.right === "auto" ? "auto" : w.right
1481
1664
  } : void 0,
1482
- onToggle: (_) => {
1483
- if (_.nativeEvent.newState === "closed") {
1484
- const g = a.current;
1485
- a.current = !1, g || (C.current = !0, setTimeout(() => {
1486
- C.current = !1;
1487
- }, 300)), r && l(!1);
1488
- }
1665
+ onToggle: (f) => {
1666
+ f.nativeEvent.newState === "closed" && C(!1);
1489
1667
  },
1490
- onKeyDown: (_) => {
1491
- var y, w, L, z, D, M;
1492
- const g = Array.from(
1493
- ((y = u.current) == null ? void 0 : y.querySelectorAll('[role="menuitem"]')) ?? []
1494
- ), b = g.indexOf(document.activeElement);
1495
- _.key === "ArrowDown" ? (_.preventDefault(), (w = g[Math.min(b + 1, g.length - 1)]) == null || w.focus()) : _.key === "ArrowUp" ? (_.preventDefault(), (L = g[Math.max(b - 1, 0)]) == null || L.focus()) : _.key === "Home" ? (_.preventDefault(), (z = g[0]) == null || z.focus()) : _.key === "End" ? (_.preventDefault(), (D = g[g.length - 1]) == null || D.focus()) : _.key === "Escape" && (l(!1), (M = i.current) == null || M.focus());
1668
+ onKeyDown: (f) => {
1669
+ var z, k, A, S, q, O;
1670
+ const m = Array.from(
1671
+ ((z = _.current) == null ? void 0 : z.querySelectorAll('[role="menuitem"]')) ?? []
1672
+ ), L = m.indexOf(document.activeElement);
1673
+ f.key === "ArrowDown" ? (f.preventDefault(), (k = m[Math.min(L + 1, m.length - 1)]) == null || k.focus()) : f.key === "ArrowUp" ? (f.preventDefault(), (A = m[Math.max(L - 1, 0)]) == null || A.focus()) : f.key === "Home" ? (f.preventDefault(), (S = m[0]) == null || S.focus()) : f.key === "End" ? (f.preventDefault(), (q = m[m.length - 1]) == null || q.focus()) : f.key === "Escape" && (C(!1), (O = d.current) == null || O.focus());
1496
1674
  },
1497
1675
  children: o
1498
1676
  }
1499
1677
  )
1500
- ] }) });
1678
+ ] });
1501
1679
  }
1502
- function Fo({
1680
+ function pr({
1503
1681
  children: e
1504
1682
  }) {
1505
- return /* @__PURE__ */ n("div", { className: _e.label, children: e });
1683
+ return /* @__PURE__ */ n("div", { className: $e.label, children: e });
1506
1684
  }
1507
- function Po({ asChild: e, color: t, onSelect: o, children: s }) {
1508
- const r = Oo(), l = Ao(), c = m(_e.item, t === "danger" && _e.danger), i = () => {
1509
- Re(l), r.setOpen(!1), o == null || o();
1685
+ function gr({ asChild: e, color: t, onSelect: o, children: r }) {
1686
+ const s = fr(), l = b($e.item, t === "danger" && $e.danger), a = () => {
1687
+ s.setOpen(!1), o == null || o();
1510
1688
  };
1511
- if (e && ne(s)) {
1512
- const u = s, {
1513
- className: C,
1514
- onClick: a,
1515
- children: p,
1516
- role: v,
1517
- tabIndex: _,
1518
- ...g
1519
- } = u.props, b = u.ref;
1520
- return xe(
1521
- u.type,
1689
+ if (e && ge(r)) {
1690
+ const d = r, {
1691
+ className: _,
1692
+ onClick: p,
1693
+ children: c,
1694
+ role: C,
1695
+ tabIndex: w,
1696
+ ...y
1697
+ } = d.props, f = d.ref;
1698
+ return Ae(
1699
+ d.type,
1522
1700
  {
1523
- key: u.key,
1524
- ref: b,
1701
+ key: d.key,
1702
+ ref: f,
1525
1703
  role: "menuitem",
1526
1704
  tabIndex: -1,
1527
- ...g,
1528
- className: m(c, C),
1529
- onClick: (y) => {
1530
- a == null || a(y), Re(l), r.setOpen(!1);
1705
+ ...y,
1706
+ className: b(l, _),
1707
+ onClick: (m) => {
1708
+ p == null || p(m), s.setOpen(!1);
1531
1709
  }
1532
1710
  },
1533
- p
1711
+ c
1534
1712
  );
1535
1713
  }
1536
- return /* @__PURE__ */ n("button", { type: "button", role: "menuitem", tabIndex: -1, className: c, onClick: i, children: s });
1714
+ return /* @__PURE__ */ n("button", { type: "button", role: "menuitem", tabIndex: -1, className: l, onClick: a, children: r });
1537
1715
  }
1538
- function Go() {
1539
- return /* @__PURE__ */ n("div", { role: "separator", className: _e.separator });
1716
+ function Cr() {
1717
+ return /* @__PURE__ */ n("div", { role: "separator", className: $e.separator });
1540
1718
  }
1541
- const Zs = Object.assign(Wo, { Item: Po, Separator: Go, Label: Fo }), Ko = "_list_1hc3r_19", Uo = "_trigger_1hc3r_28", Fe = {
1542
- list: Ko,
1543
- trigger: Uo
1544
- }, Pe = oe(null), Ge = () => {
1545
- const e = se(Pe);
1719
+ const us = Object.assign(_r, { Item: gr, Separator: Cr, Label: pr }), hr = "_list_1hc3r_19", mr = "_trigger_1hc3r_28", dt = {
1720
+ list: hr,
1721
+ trigger: mr
1722
+ }, ut = Le(null), ft = () => {
1723
+ const e = ke(ut);
1546
1724
  if (!e) throw new Error("Tabs parts must be inside a Tabs");
1547
1725
  return e;
1548
1726
  };
1549
- function Xo({ value: e, onValueChange: t, className: o, children: s }) {
1550
- const r = O();
1551
- return /* @__PURE__ */ n(Pe.Provider, { value: { value: e, onValueChange: t, id: r }, children: /* @__PURE__ */ n("div", { className: o, children: s }) });
1727
+ function vr({ value: e, onValueChange: t, className: o, children: r }) {
1728
+ const s = U();
1729
+ return /* @__PURE__ */ n(ut.Provider, { value: { value: e, onValueChange: t, id: s }, children: /* @__PURE__ */ n("div", { className: o, children: r }) });
1552
1730
  }
1553
- function Yo({
1731
+ function wr({
1554
1732
  children: e
1555
1733
  }) {
1556
1734
  return /* @__PURE__ */ n(
1557
1735
  "div",
1558
1736
  {
1559
1737
  role: "tablist",
1560
- className: m(Fe.list, "spTabsList"),
1738
+ className: b(dt.list, "spTabsList"),
1561
1739
  onKeyDown: (t) => {
1562
1740
  const o = Array.from(
1563
1741
  t.currentTarget.querySelectorAll('[role="tab"]')
1564
- ), s = o.indexOf(document.activeElement);
1565
- if (s !== -1) {
1742
+ ), r = o.indexOf(document.activeElement);
1743
+ if (r !== -1) {
1566
1744
  if (t.key === "ArrowRight") {
1567
1745
  t.preventDefault();
1568
- const r = o[(s + 1) % o.length];
1569
- r.focus(), r.click();
1746
+ const s = o[(r + 1) % o.length];
1747
+ s.focus(), s.click();
1570
1748
  } else if (t.key === "ArrowLeft") {
1571
1749
  t.preventDefault();
1572
- const r = o[(s - 1 + o.length) % o.length];
1573
- r.focus(), r.click();
1750
+ const s = o[(r - 1 + o.length) % o.length];
1751
+ s.focus(), s.click();
1574
1752
  } else if (t.key === "Home") {
1575
1753
  t.preventDefault();
1576
- const r = o[0];
1577
- r.focus(), r.click();
1754
+ const s = o[0];
1755
+ s.focus(), s.click();
1578
1756
  } else if (t.key === "End") {
1579
1757
  t.preventDefault();
1580
- const r = o[o.length - 1];
1581
- r.focus(), r.click();
1758
+ const s = o[o.length - 1];
1759
+ s.focus(), s.click();
1582
1760
  }
1583
1761
  }
1584
1762
  },
@@ -1586,84 +1764,186 @@ function Yo({
1586
1764
  }
1587
1765
  );
1588
1766
  }
1589
- function Qo({ value: e, className: t, children: o, ...s }) {
1590
- const r = Ge(), l = r.value === e;
1767
+ function br({ value: e, className: t, children: o, ...r }) {
1768
+ const s = ft(), l = s.value === e;
1591
1769
  return /* @__PURE__ */ n(
1592
1770
  "button",
1593
1771
  {
1594
- ...s,
1772
+ ...r,
1595
1773
  type: "button",
1596
1774
  role: "tab",
1597
- id: `${r.id}-tab-${e}`,
1775
+ id: `${s.id}-tab-${e}`,
1598
1776
  "aria-selected": l,
1599
- "aria-controls": `${r.id}-panel-${e}`,
1777
+ "aria-controls": `${s.id}-panel-${e}`,
1600
1778
  tabIndex: l ? 0 : -1,
1601
1779
  "data-state": l ? "active" : "inactive",
1602
- className: m(Fe.trigger, "spTabsTrigger", t),
1603
- onClick: () => r.onValueChange(e),
1780
+ className: b(dt.trigger, "spTabsTrigger", t),
1781
+ onClick: () => s.onValueChange(e),
1604
1782
  children: o
1605
1783
  }
1606
1784
  );
1607
1785
  }
1608
- function Jo({
1786
+ function yr({
1609
1787
  value: e,
1610
1788
  children: t
1611
1789
  }) {
1612
- const o = Ge();
1790
+ const o = ft();
1613
1791
  return o.value !== e ? null : /* @__PURE__ */ n("div", { role: "tabpanel", id: `${o.id}-panel-${e}`, "aria-labelledby": `${o.id}-tab-${e}`, children: t });
1614
1792
  }
1615
- const Vs = Object.assign(Xo, { List: Yo, Trigger: Qo, Content: Jo });
1793
+ const fs = Object.assign(vr, { List: wr, Trigger: br, Content: yr }), xr = "_panel_4us94_9", $r = {
1794
+ panel: xr
1795
+ }, Ke = 8, ye = 8, Lr = 'a[href], button:not([disabled]), input:not([disabled]), select:not([disabled]), textarea:not([disabled]), [tabindex]:not([tabindex="-1"])';
1796
+ function _s({
1797
+ label: e,
1798
+ children: t,
1799
+ open: o,
1800
+ onOpenChange: r,
1801
+ defaultOpen: s = !1,
1802
+ side: l = "bottom",
1803
+ align: a = "start",
1804
+ panelClassName: d,
1805
+ onClick: _,
1806
+ ...p
1807
+ }) {
1808
+ const [c, C] = Z(s), w = o !== void 0, y = w ? o : c, f = U(), m = U(), L = E(null), z = E(null), [k, A] = Z(null), S = E(!1), q = E(!1), O = E(null), j = E(y);
1809
+ j.current = y;
1810
+ const N = le(
1811
+ (x) => {
1812
+ j.current !== x && (j.current = x, w || C(x), r == null || r(x));
1813
+ },
1814
+ [w, r]
1815
+ ), I = le(() => {
1816
+ const x = L.current, i = z.current;
1817
+ if (!x || !i) return;
1818
+ const $ = x.getBoundingClientRect(), M = i.offsetWidth, g = i.offsetHeight, v = $.bottom + Ke, R = $.top - g - Ke, H = v + g <= window.innerHeight - ye, u = R >= ye, h = l === "bottom" ? H || !u ? v : R : u || !H ? R : v, W = h === v ? "bottom" : "top";
1819
+ i.dataset.side = W;
1820
+ const B = a === "start" ? $.left : a === "end" ? $.right - M : $.left + $.width / 2 - M / 2, Q = Math.min(
1821
+ Math.max(B, ye),
1822
+ Math.max(window.innerWidth - M - ye, ye)
1823
+ );
1824
+ A(
1825
+ (J) => J && J.top === h && J.left === Q && J.placed === W ? J : { top: h, left: Q, placed: W }
1826
+ );
1827
+ }, [l, a]);
1828
+ return Ce(() => {
1829
+ const x = z.current;
1830
+ x && (y ? (Ye(x, I), I(), S.current && (S.current = !1, (x.querySelector(Lr) ?? x).focus({ preventScroll: !0 }))) : x.matches(":popover-open") && x.hidePopover());
1831
+ }, [y, I]), G(() => {
1832
+ if (!y) return;
1833
+ let x = 0, i = "";
1834
+ const $ = () => {
1835
+ const M = L.current, g = z.current;
1836
+ if (M && g) {
1837
+ const v = M.getBoundingClientRect(), R = `${v.top}|${v.left}|${v.width}|${v.height}|${g.offsetWidth}|${g.offsetHeight}|${window.innerWidth}|${window.innerHeight}`;
1838
+ R !== i && (i = R, I());
1839
+ }
1840
+ x = requestAnimationFrame($);
1841
+ };
1842
+ return x = requestAnimationFrame($), () => cancelAnimationFrame(x);
1843
+ }, [y, I]), /* @__PURE__ */ D(pe, { children: [
1844
+ /* @__PURE__ */ n(
1845
+ Ee,
1846
+ {
1847
+ ...p,
1848
+ ref: L,
1849
+ id: f,
1850
+ "aria-haspopup": "dialog",
1851
+ "aria-expanded": y,
1852
+ "aria-controls": m,
1853
+ onPointerDown: (x) => {
1854
+ var i;
1855
+ (i = p.onPointerDown) == null || i.call(p, x), O.current = !j.current;
1856
+ },
1857
+ onKeyDown: (x) => {
1858
+ var i;
1859
+ (i = p.onKeyDown) == null || i.call(p, x), (x.key === "Enter" || x.key === " ") && (O.current = null);
1860
+ },
1861
+ onClick: (x) => {
1862
+ _ == null || _(x);
1863
+ const i = O.current ?? !j.current;
1864
+ O.current = null, i && (S.current = !0), N(i);
1865
+ },
1866
+ children: e
1867
+ }
1868
+ ),
1869
+ /* @__PURE__ */ n(
1870
+ "div",
1871
+ {
1872
+ ref: z,
1873
+ id: m,
1874
+ popover: "auto",
1875
+ role: "dialog",
1876
+ "aria-labelledby": f,
1877
+ tabIndex: -1,
1878
+ className: b($r.panel, Y.spacePanel, d),
1879
+ "data-animated": p.animated === !1 ? "false" : void 0,
1880
+ "data-side": (k == null ? void 0 : k.placed) ?? l,
1881
+ style: k ? { top: k.top, left: k.left } : void 0,
1882
+ onKeyDown: (x) => {
1883
+ x.key === "Escape" && (q.current = !0, x.stopPropagation());
1884
+ },
1885
+ onToggle: (x) => {
1886
+ var i;
1887
+ x.nativeEvent.newState === "closed" && (q.current && (q.current = !1, (i = L.current) == null || i.focus()), N(!1));
1888
+ },
1889
+ children: t
1890
+ }
1891
+ )
1892
+ ] });
1893
+ }
1616
1894
  export {
1617
- Es as AlertDialog,
1618
- zs as Autocomplete,
1619
- ls as Badge,
1620
- ks as BookmarkIcon,
1621
- ss as Box,
1622
- un as Button,
1623
- as as Card,
1624
- us as ChatBubbleIcon,
1625
- gs as CheckIcon,
1626
- $s as ChevronDownIcon,
1627
- q1 as ChevronLeftIcon,
1628
- L1 as ChevronRightIcon,
1629
- xs as ChevronUpIcon,
1630
- z1 as CrossCircledIcon,
1631
- Ss as Dialog,
1632
- Zs as DropdownMenu,
1633
- Cs as EnterFullScreenIcon,
1634
- R1 as ExclamationTriangleIcon,
1635
- ps as ExitFullScreenIcon,
1636
- os as Flex,
1637
- rs as Grid,
1638
- bt as Heading,
1639
- fs as HeartFilledIcon,
1640
- ys as HeartIcon,
1641
- Ms as IconToggle,
1642
- N1 as InfoCircledIcon,
1643
- ns as Link,
1644
- qs as Loader,
1645
- ws as MagnifyingGlassIcon,
1646
- Ts as Message,
1647
- bs as MinusIcon,
1648
- Ls as Pagination,
1649
- _s as Pencil1Icon,
1650
- vs as PersonIcon,
1651
- ds as PlusIcon,
1652
- Hs as Progress,
1653
- hs as QuestionMarkCircledIcon,
1654
- Is as RadioGroup,
1655
- Ns as Select,
1656
- cs as Separator,
1657
- is as Share2Icon,
1658
- Ds as Slider,
1659
- Vs as Tabs,
1660
- it as Text,
1661
- Rs as TextArea,
1662
- Me as TextField,
1663
- $n as Tooltip,
1664
- ms as TrashIcon,
1665
- M1 as XIcon,
1666
- P1 as pageCount,
1667
- G1 as pageWindow
1895
+ ds as AlertDialog,
1896
+ rs as Autocomplete,
1897
+ qr as Badge,
1898
+ Yr as BookmarkIcon,
1899
+ Rr as Box,
1900
+ Ee as Button,
1901
+ Er as Card,
1902
+ Qr as Carousel,
1903
+ Sr as ChatBubbleIcon,
1904
+ Br as CheckIcon,
1905
+ Xr as ChevronDownIcon,
1906
+ Xe as ChevronLeftIcon,
1907
+ Ue as ChevronRightIcon,
1908
+ Ur as ChevronUpIcon,
1909
+ io as CrossCircledIcon,
1910
+ is as Dialog,
1911
+ us as DropdownMenu,
1912
+ Or as EnterFullScreenIcon,
1913
+ co as ExclamationTriangleIcon,
1914
+ Zr as ExitFullScreenIcon,
1915
+ zr as Flex,
1916
+ Dr as Grid,
1917
+ At as Heading,
1918
+ jr as HeartFilledIcon,
1919
+ Gr as HeartIcon,
1920
+ ts as IconToggle,
1921
+ ao as InfoCircledIcon,
1922
+ Nr as Link,
1923
+ es as Loader,
1924
+ Kr as MagnifyingGlassIcon,
1925
+ cs as Message,
1926
+ Pr as MinusIcon,
1927
+ Jr as Pagination,
1928
+ Ar as Pencil1Icon,
1929
+ Fr as PersonIcon,
1930
+ Tr as PlusIcon,
1931
+ _s as Popover,
1932
+ as as Progress,
1933
+ Vr as QuestionMarkCircledIcon,
1934
+ ls as RadioGroup,
1935
+ ns as Select,
1936
+ Ir as Separator,
1937
+ Hr as Share2Icon,
1938
+ ss as Slider,
1939
+ fs as Tabs,
1940
+ Mt as Text,
1941
+ os as TextArea,
1942
+ Fe as TextField,
1943
+ Xo as Tooltip,
1944
+ Wr as TrashIcon,
1945
+ lo as XIcon,
1946
+ Ho as pageCount,
1947
+ So as pageWindow
1668
1948
  };
1669
1949
  //# sourceMappingURL=index.js.map