@inkorange/space-ui 1.0.2 → 1.0.4
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/README.md +134 -138
- package/dist/index.cjs +1 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +174 -169
- package/dist/index.js.map +1 -1
- package/dist/space-ui.css +1 -1
- package/package.json +7 -8
- package/dist/spaceControls.cjs +0 -2
- package/dist/spaceControls.cjs.map +0 -1
- package/dist/spaceControls.js +0 -7
- package/dist/spaceControls.js.map +0 -1
- package/dist/spaceControls.module-BO-7e9rP.js +0 -13
- package/dist/spaceControls.module-BO-7e9rP.js.map +0 -1
- package/dist/spaceControls.module-CBUgTEwi.cjs +0 -2
- package/dist/spaceControls.module-CBUgTEwi.cjs.map +0 -1
package/README.md
CHANGED
|
@@ -1,204 +1,200 @@
|
|
|
1
|
-
# SpaceUI
|
|
1
|
+
# SpaceUI: Dark interfaces with their own light source
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
<!-- badges:start -->
|
|
4
4
|
|
|
5
|
-
|
|
6
|
-
|
|
5
|
+
[](https://www.npmjs.com/package/@inkorange/space-ui)
|
|
6
|
+

|
|
7
|
+

|
|
8
|
+

|
|
9
|
+
[](https://space-components.vercel.app)
|
|
7
10
|
|
|
8
|
-
<!--
|
|
9
|
-
resolve against the registry rather than the repository. -->
|
|
10
|
-
<img alt="A lit-glass button, select, badges, slider, progress bar and folder tabs on a dark ground"
|
|
11
|
-
src="https://raw.githubusercontent.com/inkorange/space-ui/main/.github/assets/components.svg"
|
|
12
|
-
width="100%">
|
|
13
|
-
|
|
14
|
-
📖 **[Browse the gallery →](https://space-components.vercel.app)** — every
|
|
15
|
-
component, its props, its tokens, and the source for each example.
|
|
11
|
+
<!-- badges:end -->
|
|
16
12
|
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
width="100%">
|
|
21
|
-
</a>
|
|
13
|
+
Lit glass. An orbiting rim. Faint starlight across a surface. Not a theme you
|
|
14
|
+
configure — the way these components look out of the box, with nothing to
|
|
15
|
+
compose and nothing to opt into.
|
|
22
16
|
|
|
23
|
-
|
|
17
|
+
<!-- Absolute URLs on purpose: npm renders this file too, and relative paths
|
|
18
|
+
resolve against the registry rather than the repository. This sheet is a
|
|
19
|
+
screenshot of the real components, shot from the gallery — see
|
|
20
|
+
`pnpm assets`. -->
|
|
21
|
+
<img alt="Stickersheet: Button, Badge, Select, TextField, Slider, Progress, IconToggle, RadioGroup, Loader, Tabs, icons, Text, TextArea, Card and ScrollArea on a dark ground"
|
|
22
|
+
src="https://raw.githubusercontent.com/inkorange/space-ui/main/.github/assets/components.jpg"
|
|
23
|
+
width="100%">
|
|
24
24
|
|
|
25
25
|
```bash
|
|
26
26
|
pnpm add @inkorange/space-ui
|
|
27
27
|
```
|
|
28
28
|
|
|
29
29
|
```tsx
|
|
30
|
-
// once, at your app entry — one import, defaults included
|
|
31
30
|
import "@inkorange/space-ui/styles.css";
|
|
32
|
-
|
|
33
|
-
import { Button, Card, Heading } from "@inkorange/space-ui";
|
|
31
|
+
import { Card, Heading, Text, Badge, Button } from "@inkorange/space-ui";
|
|
34
32
|
|
|
35
33
|
export function Planet() {
|
|
36
34
|
return (
|
|
37
35
|
<Card>
|
|
38
|
-
<Heading size="
|
|
36
|
+
<Heading size="5">Kepler-442b</Heading>
|
|
37
|
+
<Badge color="success">Temperate</Badge>
|
|
38
|
+
<Text size="2" color="muted">
|
|
39
|
+
A super-earth in the habitable zone, 1,206 light years out.
|
|
40
|
+
</Text>
|
|
39
41
|
<Button>Build planet</Button>
|
|
40
42
|
</Card>
|
|
41
43
|
);
|
|
42
44
|
}
|
|
43
45
|
```
|
|
44
46
|
|
|
45
|
-
|
|
46
|
-
baked in**, so that single import gives you a working library. Plain CSS — no
|
|
47
|
-
Sass, CSS modules, or framework tooling required downstream. All components are
|
|
48
|
-
client components (`"use client"` is baked into the bundle).
|
|
47
|
+
That is the whole setup. Every component arrives already wearing the design.
|
|
49
48
|
|
|
50
|
-
|
|
49
|
+
## The design language is the component
|
|
51
50
|
|
|
52
|
-
|
|
53
|
-
|
|
51
|
+
Most systems hand you primitives and a theme to paint them with. This one does
|
|
52
|
+
not separate the two. A `Button` is a lit-glass capsule whose rim catches light
|
|
53
|
+
like a planet's atmosphere; a `Slider` is a glass tube with a limb-lit moon you
|
|
54
|
+
drag along it. There is no plain mode, because a plain mode would be a
|
|
55
|
+
different library.
|
|
54
56
|
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
:
|
|
58
|
-
--sp-gray-panel: #ffffff;
|
|
59
|
-
--sp-gray-text: #14161c;
|
|
60
|
-
--sp-primary-solid: #7c5cff;
|
|
61
|
-
--sp-font-family: "Inter", system-ui, sans-serif;
|
|
62
|
-
}
|
|
63
|
-
```
|
|
57
|
+
What you *can* control is movement. Ambient motion suits a hero button and
|
|
58
|
+
distracts in a dense form, so one prop stills it — the look untouched, only the
|
|
59
|
+
loops stopped:
|
|
64
60
|
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
61
|
+
```tsx
|
|
62
|
+
<Button>Build planet</Button>
|
|
63
|
+
{/* rim orbits, stars twinkle */}
|
|
64
|
+
<Button animated={false}>Build planet</Button>
|
|
65
|
+
{/* same glass, held still */}
|
|
66
|
+
```
|
|
69
67
|
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
There is no light theme.
|
|
68
|
+
Readers who ask for reduced motion get the stilled treatment automatically,
|
|
69
|
+
whatever the prop says.
|
|
73
70
|
|
|
74
|
-
##
|
|
71
|
+
## Built for dense, dark UI
|
|
75
72
|
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
73
|
+
Forms, overlays and controls that hold up when there are a lot of them on
|
|
74
|
+
screen at once — the kind of interface where someone is adjusting values and
|
|
75
|
+
watching something respond.
|
|
79
76
|
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
77
|
+
```tsx
|
|
78
|
+
<Select.Root value={star} onValueChange={setStar}>
|
|
79
|
+
<Select.Trigger />
|
|
80
|
+
<Select.Content>
|
|
81
|
+
{types.map((t) => (
|
|
82
|
+
<Select.Item key={t} value={t}>{t}-type star</Select.Item>
|
|
83
|
+
))}
|
|
84
|
+
</Select.Content>
|
|
85
|
+
</Select.Root>
|
|
86
|
+
```
|
|
86
87
|
|
|
87
|
-
|
|
88
|
+
The small things are handled so you never have to notice them. That Select
|
|
89
|
+
sizes itself to its widest option, so it does not change width as you choose.
|
|
90
|
+
Dialogs ride the browser's own top layer, so focus trapping and Escape are the
|
|
91
|
+
platform's job rather than a library's approximation. Tabs connect to the panel
|
|
92
|
+
beneath them.
|
|
88
93
|
|
|
89
|
-
|
|
90
|
-
`gray-11` a label, a border, or a placeholder? SpaceUI ships seven, each named
|
|
91
|
-
for the work it does, so the name tells you where it belongs and a reviewer can
|
|
92
|
-
tell when it is wrong. Set a role's value once and every correct use follows.
|
|
94
|
+
## Make it yours — it's all CSS variables
|
|
93
95
|
|
|
94
|
-
|
|
95
|
-
|
|
96
|
+
No component holds a value of its own. Every colour, size and duration in the
|
|
97
|
+
library resolves through a **CSS custom property** in the `--sp-` namespace,
|
|
98
|
+
and the defaults ship inside `styles.css` — so retheming is a block of
|
|
99
|
+
variables you write, never a fork, a config file, or a build step.
|
|
96
100
|
|
|
97
|
-
|
|
98
|
-
@import "@inkorange/space-ui/tokens.css";
|
|
101
|
+
There are three tiers, from broadest to narrowest.
|
|
99
102
|
|
|
100
|
-
.
|
|
101
|
-
|
|
102
|
-
border: 1px solid var(--sp-gray-border);
|
|
103
|
-
padding: var(--spacing-md); /* 16px — on the grid */
|
|
104
|
-
gap: var(--spacing-sm);
|
|
105
|
-
}
|
|
103
|
+
**Palette roles.** Named for the job the colour does, never the hue. Change one
|
|
104
|
+
and every component playing that role moves with it:
|
|
106
105
|
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
106
|
+
```css
|
|
107
|
+
:root {
|
|
108
|
+
--sp-primary-solid: #7c5cff; /* solid accent fill: badges, progress */
|
|
109
|
+
--sp-primary-text: #b9a6ff; /* accent text and links */
|
|
110
|
+
--sp-gray-panel: #14161c; /* card and panel fills */
|
|
111
|
+
--sp-gray-border: #d6ebfd30; /* hairlines and control borders */
|
|
112
|
+
--sp-danger-text: #ff9592; /* destructive, not "red" */
|
|
110
113
|
}
|
|
111
114
|
```
|
|
112
115
|
|
|
113
|
-
|
|
114
|
-
|
|
116
|
+
**Surface channels.** The lit glass is built from layered translucency, so
|
|
117
|
+
those variables carry colour *channels* and let each layer pick its own alpha:
|
|
115
118
|
|
|
116
119
|
```css
|
|
117
|
-
/* theme.css — loaded after tokens.css */
|
|
118
120
|
:root {
|
|
119
|
-
--sp-
|
|
120
|
-
--sp-
|
|
121
|
-
--sp-
|
|
121
|
+
--sp-rim-rgb: 190 160 255; /* the lit atmosphere limb */
|
|
122
|
+
--sp-glow-rgb: 150 130 255; /* hover and focus bloom */
|
|
123
|
+
--sp-glass-rgb: 18 14 34; /* the glass fill itself */
|
|
122
124
|
}
|
|
123
125
|
```
|
|
124
126
|
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
### Fonts
|
|
127
|
+
Inside the components these read as `rgb(var(--sp-rim-rgb) / 0.4)`, so give
|
|
128
|
+
them space-separated channels — a `#hex` or a full `rgb(...)` leaves the alpha
|
|
129
|
+
with nothing to work on.
|
|
130
130
|
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
every component. Two components pin a stack (`Badge` and `Button`), and
|
|
134
|
-
both read the same token:
|
|
131
|
+
**Component properties.** Where one component needs a dial of its own it
|
|
132
|
+
exposes one, always named `--sp-[component]-[modifier]-[type]`:
|
|
135
133
|
|
|
136
134
|
```css
|
|
137
|
-
|
|
135
|
+
--sp-progress-height: 12px;
|
|
136
|
+
--sp-select-trigger-max-width: 24rem;
|
|
137
|
+
--sp-loader-moon-size: 10px;
|
|
138
138
|
```
|
|
139
139
|
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
introduces its own.
|
|
140
|
+
Every component page in the gallery lists its own in a **Custom properties**
|
|
141
|
+
table, saying what each one changes.
|
|
143
142
|
|
|
144
|
-
|
|
143
|
+
Because these are ordinary CSS variables, they cascade. Declare them on `:root`
|
|
144
|
+
to theme the application, or on any element to retheme just that subtree —
|
|
145
|
+
a warmer palette inside one panel, a tighter control in one toolbar:
|
|
145
146
|
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
```tsx
|
|
154
|
-
<Button>Build planet</Button> {/* ambient motion, the default */}
|
|
155
|
-
<Button animated={false}>Build planet</Button> {/* same look, no loops */}
|
|
156
|
-
|
|
157
|
-
<TextField.Root animated={false} />
|
|
158
|
-
<Select.Trigger animated={false} />
|
|
147
|
+
```css
|
|
148
|
+
.launch-panel {
|
|
149
|
+
--sp-glass-rgb: 30 16 14;
|
|
150
|
+
--sp-rim-rgb: 255 180 130;
|
|
151
|
+
--sp-control-height: 32px;
|
|
152
|
+
}
|
|
159
153
|
```
|
|
160
154
|
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
whatever the prop says.
|
|
165
|
-
|
|
166
|
-
`Slider` takes no `animated` prop: its skin has no ambient loop, and a prop
|
|
167
|
-
that does nothing is worse than no prop.
|
|
155
|
+
You override only what you name, and everything you leave alone keeps its
|
|
156
|
+
shipped value. Supply no variables at all and the library still renders exactly
|
|
157
|
+
as it does in the gallery.
|
|
168
158
|
|
|
169
|
-
##
|
|
159
|
+
## The components
|
|
170
160
|
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
the spacing grid survive where parity with the shipped app beat grid purity,
|
|
175
|
-
and they are commented where they occur.
|
|
161
|
+
Every one of these has a live page in the gallery — the component running, the
|
|
162
|
+
source behind it, its full prop table with defaults, and the custom properties
|
|
163
|
+
it exposes.
|
|
176
164
|
|
|
165
|
+
| | |
|
|
166
|
+
| --- | --- |
|
|
167
|
+
| **Typography** | [Text](https://space-components.vercel.app/?story=components--typography--text-sizes) · [Link](https://space-components.vercel.app/?story=components--typography--text-sizes) · [Heading](https://space-components.vercel.app/?story=components--typography--headings) · [Badge](https://space-components.vercel.app/?story=components--typography--badges) · [Separator](https://space-components.vercel.app/?story=components--typography--separator) |
|
|
168
|
+
| **Layout** | [Card](https://space-components.vercel.app/?story=components--layout--card) · [Flex](https://space-components.vercel.app/?story=components--layout--flex-and-grid) · [Grid](https://space-components.vercel.app/?story=components--layout--flex-and-grid) · [Box](https://space-components.vercel.app/?story=components--layout--flex-and-grid) · [ScrollArea](https://space-components.vercel.app/?story=components--layout--scroll-area) |
|
|
169
|
+
| **Forms** | [TextField](https://space-components.vercel.app/?story=components--forms--text-field) · [TextArea](https://space-components.vercel.app/?story=components--forms--text-area) · [Select](https://space-components.vercel.app/?story=components--forms--select) · [Slider](https://space-components.vercel.app/?story=components--forms--slider) · [RadioGroup](https://space-components.vercel.app/?story=components--forms--radio-group) |
|
|
170
|
+
| **Buttons** | [Button](https://space-components.vercel.app/?story=components--buttons--buttons) · [IconToggle](https://space-components.vercel.app/?story=components--buttons--icon-toggle) |
|
|
171
|
+
| **Feedback** | [Loader](https://space-components.vercel.app/?story=components--buttons--loader) · [Progress](https://space-components.vercel.app/?story=components--buttons--progress) |
|
|
172
|
+
| **Overlays** | [Dialog](https://space-components.vercel.app/?story=components--overlays--dialog) · [AlertDialog](https://space-components.vercel.app/?story=components--overlays--alert-dialog) · [DropdownMenu](https://space-components.vercel.app/?story=components--overlays--dropdown-menu) · [Tabs](https://space-components.vercel.app/?story=components--overlays--tabs) · [Tooltip](https://space-components.vercel.app/?story=components--overlays--tooltip) |
|
|
173
|
+
| **Icons** | [20 icons](https://space-components.vercel.app/?story=components--icons--all-icons) |
|
|
174
|
+
| **Foundations** | [Color](https://space-components.vercel.app/?story=foundations--color) · [Spacing](https://space-components.vercel.app/?story=foundations--spacing) · [Type scale](https://space-components.vercel.app/?story=foundations--type-scale) · [Motion](https://space-components.vercel.app/?story=foundations--motion) · [Token usage](https://space-components.vercel.app/?story=foundations--token-usage) |
|
|
177
175
|
|
|
178
|
-
|
|
176
|
+
<a href="https://space-components.vercel.app">
|
|
177
|
+
<img alt="The SpaceUI documentation gallery: components, their props, tokens and source"
|
|
178
|
+
src="https://raw.githubusercontent.com/inkorange/space-ui/main/.github/assets/doc-screen.jpg"
|
|
179
|
+
width="100%">
|
|
180
|
+
</a>
|
|
179
181
|
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
pnpm test # 49 tests, incl. the Radix-ban and token-grid guards
|
|
184
|
-
pnpm build
|
|
185
|
-
```
|
|
182
|
+
Start at **[space-components.vercel.app](https://space-components.vercel.app)** — the
|
|
183
|
+
introduction covers the token system and how to theme it, and every component
|
|
184
|
+
page shows the code you would actually write.
|
|
186
185
|
|
|
187
|
-
|
|
188
|
-
hot-reload with no build step in the loop. Prop tables and token usage on the
|
|
189
|
-
docs site are generated from the source at build time, so they cannot drift
|
|
190
|
-
from what ships.
|
|
186
|
+
## What you get
|
|
191
187
|
|
|
192
|
-
|
|
188
|
+
**Zero runtime dependencies**, and about 22 kB over the wire gzipped — a 16 kB
|
|
189
|
+
ESM bundle and a 7 kB stylesheet. React 19, precompiled CSS, no build tooling
|
|
190
|
+
required downstream. Both numbers are measured from the build on every CI run,
|
|
191
|
+
so the badges above cannot drift.
|
|
193
192
|
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
opens/updates a "Version Packages" PR; merging that publishes to npm and tags
|
|
197
|
-
the release.
|
|
193
|
+
These ran in production before they became a package, so they arrived with
|
|
194
|
+
their edge cases already found rather than imagined.
|
|
198
195
|
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
- **major** — removed/renamed export or prop, changed rendering default
|
|
196
|
+
**Requires** React 19 and a dark surface. There is deliberately no light theme;
|
|
197
|
+
these components assume the dark they were drawn for.
|
|
202
198
|
|
|
203
199
|
## License
|
|
204
200
|
|
package/dist/index.cjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const l=require("react"),o=require("react/jsx-runtime"),z=require("./spaceControls.module-CBUgTEwi.cjs"),S={0:"0",1:"var(--spacing-xs)",2:"var(--spacing-sm)",3:"var(--spacing-md)",4:"var(--spacing-md)",5:"var(--spacing-lg)",6:"var(--spacing-xl)"};function y({m:e,mt:n,mb:s,p:r,pb:t},i){const c={...e!==void 0&&{margin:S[e]},...n!==void 0&&{marginTop:S[n]},...s!==void 0&&{marginBottom:S[s]},...r!==void 0&&{padding:S[r]},...t!==void 0&&{paddingBottom:S[t]},...i};return Object.keys(c).length>0?c:void 0}function g(...e){return e.filter(Boolean).join(" ")}const De="_text_4vcq4_1",Ee="_size1_4vcq4_5",Te="_size2_4vcq4_11",Ne="_size3_4vcq4_16",He="_size4_4vcq4_21",Oe="_size5_4vcq4_27",Pe="_size6_4vcq4_33",Ve="_medium_4vcq4_39",Ze="_bold_4vcq4_43",Be="_colorMuted_4vcq4_47",Ae="_colorDanger_4vcq4_51",Fe="_colorSuccess_4vcq4_55",We="_colorWarning_4vcq4_59",P={text:De,size1:Ee,size2:Te,size3:Ne,size4:He,size5:Oe,size6:Pe,medium:Ve,bold:Ze,colorMuted:Be,colorDanger:Ae,colorSuccess:Fe,colorWarning:We},re=l.forwardRef(function({as:n="span",size:s,weight:r,color:t,className:i,style:c,m:a,mt:_,mb:f,p:u,pb:p,...d},C){return l.createElement(n,{...d,ref:C,className:g(P.text,s&&P[`size${s}`],r&&P[r],t&&P[`color${t[0].toUpperCase()}${t.slice(1)}`],i),style:y({m:a,mt:_,mb:f,p:u,pb:p},c)})}),Ge="_heading_vs4zk_1",Ue="_size4_vs4zk_7",Xe="_size5_vs4zk_13",Ke="_size6_vs4zk_19",Ye="_size7_vs4zk_25",Qe="_size8_vs4zk_31",Je="_size9_vs4zk_37",et="_colorMuted_vs4zk_43",tt="_colorDanger_vs4zk_47",nt="_alignCenter_vs4zk_51",D={heading:Ge,size4:Ue,size5:Xe,size6:Ke,size7:Ye,size8:Qe,size9:Je,colorMuted:et,colorDanger:tt,alignCenter:nt},le=l.forwardRef(function({as:n="h2",size:s,color:r,align:t,className:i,style:c,m:a,mt:_,mb:f,p:u,pb:p,...d},C){return l.createElement(n,{...d,ref:C,className:g(D.heading,s&&D[`size${s}`],r==="muted"&&D.colorMuted,r==="danger"&&D.colorDanger,t==="center"&&D.alignCenter,i),style:y({m:a,mt:_,mb:f,p:u,pb:p},c)})}),ot="_link_1qa7j_1",st="_size1_1qa7j_10",rt="_size2_1qa7j_16",lt="_size3_1qa7j_21",ee={link:ot,size1:st,size2:rt,size3:lt},it=l.forwardRef(function({asChild:n,size:s,className:r,style:t,m:i,mt:c,mb:a,p:_,pb:f,children:u,...p},d){const C=g(ee.link,s&&ee[`size${s}`],r),m=y({m:i,mt:c,mb:a,p:_,pb:f},t);if(n&&l.isValidElement(u)){const h=u;return l.cloneElement(h,{...p,className:g(C,h.props.className),style:{...m,...h.props.style}})}return o.jsx("a",{...p,ref:d,className:C,style:m,children:u})}),ct="_flex_v4ziu_1",at="_gap1_v4ziu_5",ut="_gap2_v4ziu_9",dt="_gap3_v4ziu_13",ft="_gap4_v4ziu_17",_t="_gap5_v4ziu_21",pt="_gap6_v4ziu_25",Ct="_directionRow_v4ziu_29",gt="_directionColumn_v4ziu_33",mt="_alignStart_v4ziu_37",ht="_alignCenter_v4ziu_41",vt="_alignEnd_v4ziu_45",xt="_alignBaseline_v4ziu_49",bt="_alignStretch_v4ziu_53",wt="_justifyStart_v4ziu_57",jt="_justifyCenter_v4ziu_61",yt="_justifyEnd_v4ziu_65",Rt="_justifyBetween_v4ziu_69",$t="_wrapWrap_v4ziu_73",qt="_wrapNowrap_v4ziu_77",q={flex:ct,gap1:at,gap2:ut,gap3:dt,gap4:ft,gap5:_t,gap6:pt,directionRow:Ct,directionColumn:gt,alignStart:mt,alignCenter:ht,alignEnd:vt,alignBaseline:xt,alignStretch:bt,justifyStart:wt,justifyCenter:jt,justifyEnd:yt,justifyBetween:Rt,wrapWrap:$t,wrapNowrap:qt},V=e=>e[0].toUpperCase()+e.slice(1),kt=l.forwardRef(function({asChild:n,gap:s,direction:r,align:t,justify:i,wrap:c,className:a,style:_,m:f,mt:u,mb:p,p:d,pb:C,children:m,...h},v){const x=g(q.flex,s&&q[`gap${s}`],r&&q[`direction${V(r)}`],t&&q[`align${V(t)}`],i&&q[`justify${V(i)}`],c&&q[`wrap${V(c)}`],a),R=y({m:f,mt:u,mb:p,p:d,pb:C},_);if(n&&l.isValidElement(m)){const $=m;return l.cloneElement($,{...h,className:g(x,$.props.className),style:{...R,...$.props.style}})}return o.jsx("div",{...h,ref:v,className:x,style:R,children:m})}),Lt=l.forwardRef(function({style:n,m:s,mt:r,mb:t,p:i,pb:c,...a},_){return o.jsx("div",{...a,ref:_,style:y({m:s,mt:r,mb:t,p:i,pb:c},n)})}),Mt="_grid_erpqq_1",zt="_cols1_erpqq_5",It="_cols2_erpqq_9",St="_cols3_erpqq_13",Dt="_smCols2_erpqq_18",Et="_smCols3_erpqq_21",Tt="_mdCols2_erpqq_26",Nt="_mdCols3_erpqq_29",Ht="_gap1_erpqq_33",Ot="_gap2_erpqq_37",Pt="_gap3_erpqq_41",Vt="_gap4_erpqq_45",Zt="_gap5_erpqq_49",Bt="_gap6_erpqq_53",k={grid:Mt,cols1:zt,cols2:It,cols3:St,smCols2:Dt,smCols3:Et,mdCols2:Tt,mdCols3:Nt,gap1:Ht,gap2:Ot,gap3:Pt,gap4:Vt,gap5:Zt,gap6:Bt},At=l.forwardRef(function({columns:n,gap:s,className:r,style:t,m:i,mt:c,mb:a,p:_,pb:f,...u},p){const d=typeof n=="string"?[k[`cols${n}`]]:n?[n.initial&&k[`cols${n.initial}`],n.sm&&k[`smCols${n.sm}`],n.md&&k[`mdCols${n.md}`]]:[];return o.jsx("div",{...u,ref:p,className:g(k.grid,...d,s&&k[`gap${s}`],r),style:y({m:i,mt:c,mb:a,p:_,pb:f},t)})}),Ft="_badge_1twqf_2",Wt="_size1_1twqf_10",Gt="_size2_1twqf_19",Ut="_colorMuted_1twqf_28",Xt="_colorPrimary_1twqf_33",Kt="_colorSuccess_1twqf_38",Yt="_colorDanger_1twqf_43",Qt="_colorWarning_1twqf_48",Jt="_colorCyan_1twqf_53",en="_colorPurple_1twqf_58",tn="_colorOrange_1twqf_63",nn="_colorAccent_1twqf_68",on="_colorYellow_1twqf_73",sn="_solid_1twqf_81",rn="_wrap_1twqf_89",E={badge:Ft,size1:Wt,size2:Gt,colorMuted:Ut,colorPrimary:Xt,colorSuccess:Kt,colorDanger:Yt,colorWarning:Qt,colorCyan:Jt,colorPurple:en,colorOrange:tn,colorAccent:nn,colorYellow:on,solid:sn,wrap:rn},ln=e=>e[0].toUpperCase()+e.slice(1),cn=l.forwardRef(function({color:n="primary",variant:s="soft",size:r="1",wrap:t,className:i,style:c,m:a,mt:_,mb:f,p:u,pb:p,...d},C){return o.jsx("span",{...d,ref:C,className:g(E.badge,E[`color${ln(n)}`],s==="solid"&&E.solid,E[`size${r}`],t&&E.wrap,i),style:y({m:a,mt:_,mb:f,p:u,pb:p},c)})}),an="_separator_vao01_1",un="_full_vao01_7",te={separator:an,full:un},dn=l.forwardRef(function({size:n="4",className:s,...r},t){return o.jsx("span",{...r,ref:t,role:"separator",className:g(te.separator,n==="4"&&te.full,s)})}),fn="_card_10wsm_1",_n={card:fn},pn=l.forwardRef(function({className:n,style:s,m:r,mt:t,mb:i,p:c,pb:a,..._},f){return o.jsx("div",{..._,ref:f,className:g(_n.card,n),style:y({m:r,mt:t,mb:i,p:c,pb:a},s)})}),Cn="_scrollArea_ujp70_1",gn={scrollArea:Cn},mn=l.forwardRef(function({className:n,...s},r){return o.jsx("div",{...s,ref:r,className:g(gn.scrollArea,n)})}),hn="_spaceButton_kjhqx_14",vn="_rimRotate_kjhqx_1",xn="_glintSweep_kjhqx_1",bn="_iconOnly_kjhqx_97",wn="_lg_kjhqx_104",jn="_sm_kjhqx_110",yn="_micro_kjhqx_122",Rn="_stars_kjhqx_136",$n="_fullWidth_kjhqx_141",qn="_ember_kjhqx_147",kn="_label_kjhqx_157",Ln="_star_kjhqx_136",Mn="_twinkle_kjhqx_1",w={spaceButton:hn,rimRotate:vn,glintSweep:xn,iconOnly:bn,lg:wn,sm:jn,micro:yn,stars:Rn,fullWidth:$n,ember:qn,label:kn,star:Ln,twinkle:Mn};function zn(e){return function(){e|=0,e=e+1831565813|0;let n=Math.imul(e^e>>>15,1|e);return n=n+Math.imul(n^n>>>7,61|n)^n,((n^n>>>14)>>>0)/4294967296}}function In(e){let n=2166136261;for(let s=0;s<e.length;s++)n^=e.charCodeAt(s),n=Math.imul(n,16777619);return n>>>0}const Sn=l.forwardRef(function({iconOnly:n,ember:s,size:r="md",fullWidth:t,animated:i=!0,className:c,children:a,..._},f){const u=l.useId(),p=l.useMemo(()=>{const C=zn(In(u));return Array.from({length:3},()=>({top:`${12+C()*58}%`,left:`${8+C()*80}%`,animationDelay:`${(C()*3.2).toFixed(2)}s`,animationDuration:`${(2.8+C()*1.8).toFixed(2)}s`}))},[u]),d=[w.spaceButton,n?w.iconOnly:"",s?w.ember:"",r!=="md"?w[r]:"",t?w.fullWidth:"",c??""].filter(Boolean).join(" ");return o.jsxs("button",{ref:f,className:d,"data-animated":i?void 0:"false",..._,children:[r!=="micro"&&o.jsx("span",{className:w.stars,"aria-hidden":!0,children:p.map((C,m)=>o.jsx("i",{className:w.star,style:C},m))}),o.jsx("span",{className:w.label,children:a})]})}),Dn="_wrap_dwcut_5",En="_sm_dwcut_30",Tn="_md_dwcut_36",Nn="_lg_dwcut_42",Hn="_orbit_dwcut_49",On="_planet_dwcut_58",Pn="_moon_dwcut_73",Vn="_label_dwcut_92",L={wrap:Dn,sm:En,md:Tn,lg:Nn,orbit:Hn,planet:On,"sp-loader-planet-pulse":"_sp-loader-planet-pulse_dwcut_1",moon:Pn,"sp-loader-orbit":"_sp-loader-orbit_dwcut_1",label:Vn,"sp-loader-reduced-pulse":"_sp-loader-reduced-pulse_dwcut_1"};function Zn({size:e="md",label:n,className:s}){return o.jsxs("div",{className:g(L.wrap,L[e],s),role:"status","aria-live":"polite","aria-label":n??"Loading",children:[o.jsxs("span",{className:L.orbit,children:[o.jsx("span",{className:L.planet}),o.jsx("span",{className:L.moon})]}),n&&o.jsx("span",{className:L.label,children:n})]})}const Bn="_content_1bxfq_6",An={content:Bn},Fn=350,Wn=80,ne=8,T=8;function Gn({triggerRef:e,tooltipId:n,show:s,hide:r,children:t}){const i=t.props;return l.cloneElement(t,{ref:e,"aria-describedby":n,onPointerEnter:c=>{var a;(a=i.onPointerEnter)==null||a.call(i,c),c.pointerType==="mouse"&&s()},onPointerLeave:c=>{var a;(a=i.onPointerLeave)==null||a.call(i,c),r()},onFocus:c=>{var a;(a=i.onFocus)==null||a.call(i,c),s(!0)},onBlur:c=>{var a;(a=i.onBlur)==null||a.call(i,c),r()},onClick:c=>{var a;(a=i.onClick)==null||a.call(i,c),r()}})}function ie({label:e,side:n="bottom",children:s}){const r=l.useId(),[t,i]=l.useState(!1),[c,a]=l.useState(null),_=l.useRef(null),f=l.useRef(null),u=l.useRef(null),p=l.useRef(null),d=()=>{u.current&&(clearTimeout(u.current),u.current=null),p.current&&(clearTimeout(p.current),p.current=null)},C=(h=!1)=>{if(d(),h){i(!0);return}u.current=setTimeout(()=>i(!0),Fn)},m=()=>{d(),p.current=setTimeout(()=>i(!1),Wn)};return l.useEffect(()=>d,[]),l.useLayoutEffect(()=>{const h=f.current;if(!h)return;if(!t){h.matches(":popover-open")&&h.hidePopover();return}h.matches(":popover-open")||h.showPopover();const v=_.current;if(!v)return;const x=v.getBoundingClientRect(),R=h.offsetWidth,$=h.offsetHeight,B=x.bottom+ne,A=x.top-$-ne,Q=B+$<=window.innerHeight-T,J=A>=T,Ie=n==="bottom"?Q||!J?B:A:J||!Q?A:B,Se=Math.min(Math.max(x.left+x.width/2-R/2,T),Math.max(window.innerWidth-R-T,T));a({top:Ie,left:Se})},[t,n,e]),!e||!l.isValidElement(s)?o.jsx(o.Fragment,{children:s}):o.jsxs(o.Fragment,{children:[o.jsx(Gn,{triggerRef:_,tooltipId:r,show:C,hide:m,children:s}),o.jsx("div",{ref:f,id:r,popover:"auto",role:"tooltip",className:An.content,style:c?{top:c.top,left:c.left}:void 0,onToggle:h=>{h.nativeEvent.newState==="closed"&&t&&i(!1)},children:e})]})}const Un="_group_1kj0b_3",Xn="_segment_1kj0b_14",Kn="_active_1kj0b_34",F={group:Un,segment:Xn,active:Kn};function Yn({options:e,value:n,onValueChange:s,className:r=""}){return o.jsx("div",{className:`${F.group} ${r}`,role:"group",children:e.map(t=>o.jsx(ie,{label:t.label,side:"bottom",children:o.jsx("button",{type:"button",className:`${F.segment} ${t.value===n?F.active:""}`,"aria-label":t.label,"aria-pressed":t.value===n,onClick:()=>{t.value!==n&&s(t.value)},children:t.icon})},t.value))})}const Qn="_root_1bvtq_2",Jn="_trigger_1bvtq_7",eo="_labelWrap_1bvtq_30",to="_sizer_1bvtq_8",no="_triggerLabel_1bvtq_70",oo="_chevron_1bvtq_77",so="_listbox_1bvtq_82",ro="_item_1bvtq_110",j={root:Qn,trigger:Jn,labelWrap:eo,sizer:to,triggerLabel:no,chevron:oo,listbox:so,item:ro},ce=l.createContext(null),G=()=>{const e=l.useContext(ce);if(!e)throw new Error("Select parts must be inside Select.Root");return e},ae=(e,n)=>`${e}-${encodeURIComponent(n)}`,ue=l.createContext(null),U=()=>{const e=l.useContext(ue);if(!e)throw new Error("Select parts must be inside Select.Root");return e};function lo(e){const n=[],s=r=>{l.Children.forEach(r,t=>{if(!l.isValidElement(t))return;const i=t.props;t.type===fe&&typeof i.value=="string"?n.push({value:i.value,label:i.children,disabled:i.disabled}):i.children&&s(i.children)})};return s(e),n}function io({value:e,onValueChange:n,disabled:s,children:r}){const[t,i]=l.useState(!1),[c,a]=l.useState(null),_=l.useId(),f=l.useRef(null),u=l.useRef(null),p=l.useMemo(()=>{let v=null;return l.Children.forEach(r,x=>{l.isValidElement(x)&&x.type===de&&(v=x.props.children)}),v},[r]),d=l.useMemo(()=>lo(p),[p]),C=l.useMemo(()=>d.filter(v=>!v.disabled).map(v=>v.value),[d]),m=l.useMemo(()=>d.map(v=>v.label),[d]),h=l.useCallback(v=>{var x;return((x=d.find(R=>R.value===v))==null?void 0:x.label)??null},[d]);return l.useEffect(()=>{if(!t)return;const v=x=>{u.current&&!u.current.contains(x.target)&&i(!1)};return document.addEventListener("mousedown",v),()=>document.removeEventListener("mousedown",v)},[t]),o.jsx(ce.Provider,{value:{value:e,onValueChange:n,disabled:s,open:t,setOpen:i,highlighted:c,setHighlighted:a,listboxId:_,values:C,itemLabels:m,labelFor:h},children:o.jsx(ue.Provider,{value:f,children:o.jsx("div",{ref:u,className:j.root,children:r})})})}function co({placeholder:e,animated:n=!0,className:s,...r}){const t=G(),i=U(),c=t.value?t.labelFor(t.value):null,a=_=>{t.setHighlighted(_??t.values[0]??null),t.setOpen(!0)};return o.jsxs("button",{type:"button",...r,ref:i,disabled:t.disabled,className:g(j.trigger,z.ctlModule.spaceControl,"spSelectTrigger",s),"data-animated":n?void 0:"false","data-state":t.open?"open":"closed","aria-haspopup":"listbox","aria-expanded":t.open,"aria-controls":t.listboxId,onClick:()=>t.open?t.setOpen(!1):a(t.value||null),onKeyDown:_=>{(_.key==="ArrowDown"||_.key==="Enter"||_.key===" ")&&(_.preventDefault(),a(t.value||null))},children:[o.jsxs("span",{className:j.labelWrap,children:[o.jsxs("span",{className:j.sizer,"data-sizer":"","aria-hidden":"true",children:[t.itemLabels.map((_,f)=>o.jsx("span",{children:_},f)),e&&o.jsx("span",{children:e})]}),o.jsx("span",{className:j.triggerLabel,children:c??e??""})]}),o.jsx("svg",{className:j.chevron,width:"9",height:"9",viewBox:"0 0 9 9","aria-hidden":"true",children:o.jsx("path",{d:"M0.5 3 L4.5 7 L8.5 3",fill:"none",stroke:"currentColor",strokeWidth:"1.2"})})]})}function de({className:e,position:n,animated:s=!0,children:r}){const t=G(),i=U(),c=l.useRef(null),[a,_]=l.useState(null),[f,u]=l.useState(null);l.useLayoutEffect(()=>{if(t.open&&i.current){const d=i.current.getBoundingClientRect();_(i.current.offsetWidth);const C=window.innerHeight-d.bottom-16;u(Math.min(380,Math.max(120,C)))}},[t.open,i]),l.useEffect(()=>{var d;t.open&&((d=c.current)==null||d.focus())},[t.open]);const p=d=>{const C=t.highlighted?t.values.indexOf(t.highlighted):-1,m=Math.min(Math.max(C+d,0),t.values.length-1);t.setHighlighted(t.values[m]??null)};return o.jsx("div",{ref:c,id:t.listboxId,role:"listbox",tabIndex:-1,hidden:!t.open,"aria-activedescendant":t.highlighted?ae(t.listboxId,t.highlighted):void 0,className:g(j.listbox,z.ctlModule.spacePanel,e),"data-animated":s?void 0:"false",style:a!=null||f!=null?{...a!=null?{"--_select-trigger-width":`${a}px`}:{},...f!=null?{maxHeight:`${f}px`}:{}}:void 0,onKeyDown:d=>{var C,m;d.key==="Escape"?(d.stopPropagation(),t.setOpen(!1),(C=i.current)==null||C.focus()):d.key==="ArrowDown"?(d.preventDefault(),p(1)):d.key==="ArrowUp"?(d.preventDefault(),p(-1)):d.key==="Home"?(d.preventDefault(),t.setHighlighted(t.values[0]??null)):d.key==="End"?(d.preventDefault(),t.setHighlighted(t.values[t.values.length-1]??null)):d.key==="Enter"||d.key===" "?(d.preventDefault(),t.highlighted&&(t.onValueChange(t.highlighted),t.setOpen(!1),(m=i.current)==null||m.focus())):d.key==="Tab"&&t.setOpen(!1)},children:r})}function fe({value:e,disabled:n,children:s}){const r=G(),t=U(),i=r.value===e,c=r.highlighted===e;return o.jsx("div",{id:ae(r.listboxId,e),role:"option","aria-selected":i,"aria-disabled":n||void 0,"data-highlighted":c?"":void 0,className:g(j.item,"spSelectItem"),onMouseEnter:()=>!n&&r.setHighlighted(e),onClick:()=>{var a;n||(r.onValueChange(e),r.setOpen(!1),(a=t.current)==null||a.focus())},children:s})}const ao=Object.freeze(Object.defineProperty({__proto__:null,Content:de,Item:fe,Root:io,Trigger:co},Symbol.toStringTag,{value:"Module"})),uo="_root_1lx7y_1",fo="_input_1lx7y_7",_o="_slot_1lx7y_17",W={root:uo,input:fo,slot:_o},po=l.forwardRef(function({className:n,style:s,animated:r=!0,children:t,...i},c){return o.jsxs("div",{className:g(W.root,z.ctlModule.spaceInput,"spTextFieldRoot",n),"data-animated":r?void 0:"false",style:s,children:[t,o.jsx("input",{...i,ref:c,className:g(W.input,"spTextFieldInput")})]})});function Co({children:e}){return o.jsx("span",{className:W.slot,children:e})}const go=Object.freeze(Object.defineProperty({__proto__:null,Root:po,Slot:Co},Symbol.toStringTag,{value:"Module"})),mo="_root_1qu6w_1",ho="_textarea_1qu6w_6",oe={root:mo,textarea:ho},vo=l.forwardRef(function({className:n,style:s,animated:r=!0,...t},i){return o.jsx("div",{className:g(oe.root,z.ctlModule.spaceInput,z.ctlModule.spaceTextArea,"spTextFieldRoot",n),"data-animated":r?void 0:"false",style:s,children:o.jsx("textarea",{...t,ref:i,className:g(oe.textarea,"spTextAreaInput")})})}),xo="_root_14a1b_1",bo="_track_14a1b_12",wo="_range_14a1b_22",jo="_thumb_14a1b_28",yo="_input_14a1b_38",N={root:xo,track:bo,range:wo,thumb:jo,input:yo},Ro=l.forwardRef(function({value:n,onValueChange:s,min:r,max:t,step:i,disabled:c,className:a,"aria-label":_},f){const u=n[0]??r,p=t===r?0:(u-r)/(t-r)*100;return o.jsxs("span",{className:g(N.root,z.ctlModule.spaceSlider,a),"data-disabled":c||void 0,children:[o.jsx("span",{className:g(N.track,"spSliderTrack"),children:o.jsx("span",{className:g(N.range,"spSliderRange"),style:{width:`${p}%`}})}),o.jsx("span",{className:g(N.thumb,"spSliderThumb"),style:{left:`${p}%`}}),o.jsx("input",{ref:f,type:"range",className:g(N.input,"spSliderInput"),value:u,min:r,max:t,step:i,disabled:c,"aria-label":_,onChange:d=>s([Number(d.target.value)])})]})}),$o="_root_1qhel_2",qo="_item_1qhel_8",ko="_selfLabeled_1qhel_15",Lo="_input_1qhel_19",Mo="_orb_1qhel_35",M={root:$o,item:qo,selfLabeled:ko,input:Lo,orb:Mo},_e=l.createContext(null);function zo({value:e,onValueChange:n,disabled:s,className:r,children:t}){const i=l.useId();return o.jsx(_e.Provider,{value:{value:e,onValueChange:n,disabled:s,name:i},children:o.jsx("div",{role:"radiogroup",className:g(M.root,r),children:t})})}function Io({value:e,disabled:n,children:s}){const r=l.useContext(_e);if(!r)throw new Error("RadioGroup.Item must be inside RadioGroup.Root");const t=n||r.disabled,i=o.jsxs(o.Fragment,{children:[o.jsx("input",{type:"radio",className:M.input,name:r.name,value:e,checked:r.value===e,disabled:t,onChange:()=>r.onValueChange(e)}),o.jsx("span",{className:g(M.orb,"spRadioOrb"),"aria-hidden":"true"})]});return s==null?o.jsx("span",{className:M.item,children:i}):o.jsxs("label",{className:g(M.item,M.selfLabeled),children:[i,s]})}const So=Object.freeze(Object.defineProperty({__proto__:null,Item:Io,Root:zo},Symbol.toStringTag,{value:"Module"})),Do="_progress_1cre6_16",Eo={progress:Do};function To({value:e,max:n=100,className:s,style:r,...t}){const i=n>0?Math.min(Math.max(e/n*100,0),100):0;return o.jsx("div",{...t,role:"progressbar","aria-valuenow":e,"aria-valuemin":0,"aria-valuemax":n,className:g(Eo.progress,s),style:r,children:o.jsx("div",{style:{width:`${i}%`,height:"100%"}})})}const b={width:15,height:15,viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":!0};function No(e){return o.jsx("svg",{...b,...e,children:o.jsx("path",{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",fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd"})})}function Ho(e){return o.jsx("svg",{...b,...e,children:o.jsx("path",{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",fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd"})})}function Oo(e){return o.jsx("svg",{...b,...e,children:o.jsx("path",{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",fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd"})})}function Po(e){return o.jsx("svg",{...b,...e,children:o.jsx("path",{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",fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd"})})}function Vo(e){return o.jsx("svg",{...b,...e,children:o.jsx("path",{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",fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd"})})}function Zo(e){return o.jsx("svg",{...b,...e,children:o.jsx("path",{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",fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd"})})}function Bo(e){return o.jsx("svg",{...b,...e,children:o.jsx("path",{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",fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd"})})}function Ao(e){return o.jsx("svg",{...b,...e,children:o.jsx("path",{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",fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd"})})}function Fo(e){return o.jsx("svg",{...b,...e,children:o.jsx("path",{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",fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd"})})}function Wo(e){return o.jsx("svg",{...b,...e,children:o.jsx("path",{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",fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd"})})}function Go(e){return o.jsx("svg",{...b,...e,children:o.jsx("path",{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",fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd"})})}function Uo(e){return o.jsx("svg",{...b,...e,children:o.jsx("path",{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",fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd"})})}function Xo(e){return o.jsx("svg",{...b,...e,children:o.jsx("path",{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",fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd"})})}function Ko(e){return o.jsx("svg",{...b,...e,children:o.jsx("path",{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",fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd"})})}function Yo(e){return o.jsx("svg",{...b,...e,children:o.jsx("path",{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",fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd"})})}function Qo(e){return o.jsx("svg",{...b,...e,children:o.jsx("path",{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",fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd"})})}function Jo(e){return o.jsx("svg",{...b,...e,children:o.jsx("path",{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",fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd"})})}function es(e){return o.jsx("svg",{...b,...e,children:o.jsx("path",{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",fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd"})})}function ts(e){return o.jsx("svg",{...b,...e,children:o.jsx("path",{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",fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd"})})}function pe(e){return o.jsx("svg",{viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"15",height:"15",...e,children:o.jsx("path",{d:"M11.8 3.2a.6.6 0 0 0-.85 0L7.5 6.65 4.05 3.2a.6.6 0 1 0-.85.85L6.65 7.5 3.2 10.95a.6.6 0 1 0 .85.85L7.5 8.35l3.45 3.45a.6.6 0 0 0 .85-.85L8.35 7.5l3.45-3.45a.6.6 0 0 0 0-.85Z",fill:"currentColor"})})}const ns="_dialog_1qqku_2",os="_inner_1qqku_34",ss="_size4_1qqku_39",rs="_title_1qqku_43",ls="_closeX_1qqku_51",H={dialog:ns,inner:os,size4:ss,title:rs,closeX:ls};let Z=0;const Ce=l.createContext(null),I=()=>{const e=l.useContext(Ce);if(!e)throw new Error("Dialog parts must be inside Dialog.Root");return e};function X(e){return function({open:s,onOpenChange:r,children:t}){const[i,c]=l.useState(!1),a=s!==void 0,_=a?s:i,f=m=>{a||c(m),r==null||r(m)},u=l.useId(),p=l.useId(),[d,C]=l.useState(!1);return o.jsx(Ce.Provider,{value:{open:_,setOpen:f,titleId:u,descId:p,alert:e,hasDesc:d,setHasDesc:C},children:t})}}const is=X(!1),ge=(e,n)=>{if(!l.isValidElement(e))return e;const s=e;return l.cloneElement(s,{onClick:r=>{var t,i;(i=(t=s.props).onClick)==null||i.call(t,r),n()}})};function me({children:e}){const n=I();return o.jsx(o.Fragment,{children:ge(e,()=>n.setOpen(!0))})}function K({children:e}){const n=I();return o.jsx(o.Fragment,{children:ge(e,()=>n.setOpen(!1))})}function he({size:e="3",maxWidth:n,className:s,style:r,children:t,...i}){const c=I(),a=l.useRef(null),_=l.useRef(!1),f=l.useRef(!1);return l.useEffect(()=>{const u=a.current;u&&(c.open&&!u.open?u.showModal():!c.open&&u.open&&u.close())},[c.open]),l.useEffect(()=>{if(c.open)return Z+=1,Z===1&&(document.body.style.overflow="hidden"),()=>{Z-=1,Z===0&&(document.body.style.overflow="")}},[c.open]),o.jsx("dialog",{...i,ref:a,role:c.alert?"alertdialog":void 0,"aria-labelledby":c.titleId,"aria-describedby":c.hasDesc?c.descId:void 0,className:g(H.dialog,"spDialog",e==="4"&&H.size4,s),style:{...n?{maxWidth:n}:null,...r},onKeyDownCapture:u=>{var p,d;u.key==="Escape"&&((p=a.current)!=null&&p.querySelector("dialog[open]")||(d=a.current)!=null&&d.querySelector('[role="listbox"]:not([hidden])')&&(_.current=!0))},onCancel:u=>{if(u.preventDefault(),_.current){_.current=!1;return}c.setOpen(!1)},onClose:()=>{c.open&&c.setOpen(!1)},onPointerDown:u=>{f.current=u.target===a.current},onClick:u=>{!c.alert&&u.target===a.current&&f.current&&c.setOpen(!1)},children:o.jsxs("div",{className:H.inner,children:[!c.alert&&o.jsx("button",{type:"button",className:H.closeX,"aria-label":"Close",onClick:()=>c.setOpen(!1),children:o.jsx(pe,{width:16,height:16})}),t]})})}function ve({className:e,...n}){const s=I();return o.jsx(le,{as:"h2",size:"5",...n,id:s.titleId,className:g(H.title,e)})}function xe(e){const n=I(),{setHasDesc:s}=n;return l.useLayoutEffect(()=>(s(!0),()=>s(!1)),[s]),o.jsx(re,{as:"p",...e,id:n.descId})}const cs=Object.freeze(Object.defineProperty({__proto__:null,Close:K,Content:he,Description:xe,Root:is,Title:ve,Trigger:me,makeRoot:X,useDialog:I},Symbol.toStringTag,{value:"Module"})),as=X(!0),us=me,ds=he,fs=ve,_s=xe,ps=K,Cs=K,gs=Object.freeze(Object.defineProperty({__proto__:null,Action:Cs,Cancel:ps,Content:ds,Description:_s,Root:as,Title:fs,Trigger:us},Symbol.toStringTag,{value:"Module"})),ms="_menu_1hwyv_1",hs="_label_1hwyv_16",vs="_item_1hwyv_26",xs="_danger_1hwyv_45",bs="_separator_1hwyv_49",O={menu:ms,label:hs,item:vs,danger:xs,separator:bs},be=l.createContext(null),Y=()=>{const e=l.useContext(be);if(!e)throw new Error("DropdownMenu parts must be inside DropdownMenu.Root");return e},we=l.createContext(null),je=()=>{const e=l.useContext(we);if(!e)throw new Error("DropdownMenu parts must be inside DropdownMenu.Root");return e},ye=l.createContext(null),ws=()=>{const e=l.useContext(ye);if(!e)throw new Error("DropdownMenu parts must be inside DropdownMenu.Root");return e},Re=l.createContext(null),$e=()=>{const e=l.useContext(Re);if(!e)throw new Error("DropdownMenu parts must be inside DropdownMenu.Root");return e},qe=l.createContext(null),ke=()=>{const e=l.useContext(qe);if(!e)throw new Error("DropdownMenu parts must be inside DropdownMenu.Root");return e};function js(e){return e.current?(e.current=!1,!0):!1}function se(e){e.current=!0}function ys({children:e}){const[n,s]=l.useState(!1),r=l.useId(),t=l.useRef(null),i=l.useRef(null),c=l.useRef(!1),a=l.useRef(!1);return o.jsx(be.Provider,{value:{open:n,setOpen:s,menuId:r},children:o.jsx(we.Provider,{value:t,children:o.jsx(ye.Provider,{value:i,children:o.jsx(Re.Provider,{value:c,children:o.jsx(qe.Provider,{value:a,children:e})})})})})}function Rs({children:e}){const n=Y(),s=je(),r=$e();if(!l.isValidElement(e))return null;const t=e;return l.cloneElement(t,{ref:s,"aria-haspopup":"menu","aria-expanded":n.open,"aria-controls":n.menuId,onClick:i=>{var c,a;(a=(c=t.props).onClick)==null||a.call(c,i),!js(r)&&n.setOpen(!n.open)}})}function $s({align:e="start",children:n}){const s=Y(),r=je(),t=ws(),i=$e(),c=ke(),[a,_]=l.useState(null);return l.useLayoutEffect(()=>{var u;const f=t.current;if(f)if(s.open){const p=r.current;if(p){const d=p.getBoundingClientRect(),C=e==="end"?"auto":d.left,m=e==="end"?window.innerWidth-d.right:"auto";_({top:d.bottom+6,left:C,right:m})}f.showPopover(),(u=f.querySelector('[role="menuitem"]'))==null||u.focus()}else f.matches(":popover-open")&&f.hidePopover()},[s.open,e,t,r]),l.useEffect(()=>{if(!s.open)return;const f=s.setOpen,u=()=>f(!1);return window.addEventListener("resize",u),()=>window.removeEventListener("resize",u)},[s.open,s.setOpen]),o.jsx("div",{ref:t,id:s.menuId,role:"menu",popover:"auto",className:O.menu,style:a?{top:a.top,left:a.left==="auto"?"auto":a.left,right:a.right==="auto"?"auto":a.right}:void 0,onToggle:f=>{if(f.nativeEvent.newState==="closed"){const u=c.current;c.current=!1,u||(i.current=!0,setTimeout(()=>{i.current=!1},300)),s.open&&s.setOpen(!1)}},onKeyDown:f=>{var d,C,m,h,v,x;const u=Array.from(((d=t.current)==null?void 0:d.querySelectorAll('[role="menuitem"]'))??[]),p=u.indexOf(document.activeElement);f.key==="ArrowDown"?(f.preventDefault(),(C=u[Math.min(p+1,u.length-1)])==null||C.focus()):f.key==="ArrowUp"?(f.preventDefault(),(m=u[Math.max(p-1,0)])==null||m.focus()):f.key==="Home"?(f.preventDefault(),(h=u[0])==null||h.focus()):f.key==="End"?(f.preventDefault(),(v=u[u.length-1])==null||v.focus()):f.key==="Escape"&&(s.setOpen(!1),(x=r.current)==null||x.focus())},children:n})}function qs({children:e}){return o.jsx("div",{className:O.label,children:e})}function ks({asChild:e,color:n,onSelect:s,children:r}){const t=Y(),i=ke(),c=g(O.item,n==="danger"&&O.danger),a=()=>{se(i),t.setOpen(!1),s==null||s()};if(e&&l.isValidElement(r)){const _=r,{className:f,onClick:u,children:p,role:d,tabIndex:C,...m}=_.props,h=_.ref;return l.createElement(_.type,{key:_.key,ref:h,role:"menuitem",tabIndex:-1,...m,className:g(c,f),onClick:v=>{u==null||u(v),se(i),t.setOpen(!1)}},p)}return o.jsx("button",{type:"button",role:"menuitem",tabIndex:-1,className:c,onClick:a,children:r})}function Ls(){return o.jsx("div",{role:"separator",className:O.separator})}const Ms=Object.freeze(Object.defineProperty({__proto__:null,Content:$s,Item:ks,Label:qs,Root:ys,Separator:Ls,Trigger:Rs},Symbol.toStringTag,{value:"Module"})),zs="_list_1hc3r_19",Is="_trigger_1hc3r_28",Le={list:zs,trigger:Is},Me=l.createContext(null),ze=()=>{const e=l.useContext(Me);if(!e)throw new Error("Tabs parts must be inside Tabs.Root");return e};function Ss({value:e,onValueChange:n,className:s,children:r}){const t=l.useId();return o.jsx(Me.Provider,{value:{value:e,onValueChange:n,id:t},children:o.jsx("div",{className:s,children:r})})}function Ds({children:e}){return o.jsx("div",{role:"tablist",className:g(Le.list,"spTabsList"),onKeyDown:n=>{const s=Array.from(n.currentTarget.querySelectorAll('[role="tab"]')),r=s.indexOf(document.activeElement);if(r!==-1){if(n.key==="ArrowRight"){n.preventDefault();const t=s[(r+1)%s.length];t.focus(),t.click()}else if(n.key==="ArrowLeft"){n.preventDefault();const t=s[(r-1+s.length)%s.length];t.focus(),t.click()}else if(n.key==="Home"){n.preventDefault();const t=s[0];t.focus(),t.click()}else if(n.key==="End"){n.preventDefault();const t=s[s.length-1];t.focus(),t.click()}}},children:e})}function Es({value:e,className:n,children:s,...r}){const t=ze(),i=t.value===e;return o.jsx("button",{...r,type:"button",role:"tab",id:`${t.id}-tab-${e}`,"aria-selected":i,"aria-controls":`${t.id}-panel-${e}`,tabIndex:i?0:-1,"data-state":i?"active":"inactive",className:g(Le.trigger,"spTabsTrigger",n),onClick:()=>t.onValueChange(e),children:s})}function Ts({value:e,children:n}){const s=ze();return s.value!==e?null:o.jsx("div",{role:"tabpanel",id:`${s.id}-panel-${e}`,"aria-labelledby":`${s.id}-tab-${e}`,children:n})}const Ns=Object.freeze(Object.defineProperty({__proto__:null,Content:Ts,List:Ds,Root:Ss,Trigger:Es},Symbol.toStringTag,{value:"Module"}));exports.AlertDialog=gs;exports.Badge=cn;exports.BookmarkIcon=ts;exports.Box=Lt;exports.Button=Sn;exports.Card=pn;exports.ChatBubbleIcon=Ho;exports.CheckIcon=Ao;exports.ChevronDownIcon=Qo;exports.ChevronLeftIcon=es;exports.ChevronRightIcon=Jo;exports.ChevronUpIcon=Yo;exports.Dialog=cs;exports.DropdownMenu=Ms;exports.EnterFullScreenIcon=Bo;exports.ExitFullScreenIcon=Zo;exports.Flex=kt;exports.Grid=At;exports.Heading=le;exports.HeartFilledIcon=Vo;exports.HeartIcon=Ko;exports.IconToggle=Yn;exports.Link=it;exports.Loader=Zn;exports.MagnifyingGlassIcon=Xo;exports.MinusIcon=Uo;exports.Pencil1Icon=Po;exports.PersonIcon=Go;exports.PlusIcon=Oo;exports.Progress=To;exports.QuestionMarkCircledIcon=Wo;exports.RadioGroup=So;exports.ScrollArea=mn;exports.Select=ao;exports.Separator=dn;exports.Share2Icon=No;exports.Slider=Ro;exports.Tabs=Ns;exports.Text=re;exports.TextArea=vo;exports.TextField=go;exports.Tooltip=ie;exports.TrashIcon=Fo;exports.XIcon=pe;
|
|
1
|
+
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const l=require("react"),o=require("react/jsx-runtime"),S={0:"0",1:"var(--spacing-xs)",2:"var(--spacing-sm)",3:"var(--spacing-md)",4:"var(--spacing-md)",5:"var(--spacing-lg)",6:"var(--spacing-xl)"};function y({m:e,mt:n,mb:s,p:r,pb:t},c){const i={...e!==void 0&&{margin:S[e]},...n!==void 0&&{marginTop:S[n]},...s!==void 0&&{marginBottom:S[s]},...r!==void 0&&{padding:S[r]},...t!==void 0&&{paddingBottom:S[t]},...c};return Object.keys(i).length>0?i:void 0}function g(...e){return e.filter(Boolean).join(" ")}const De="_text_4vcq4_1",Te="_size1_4vcq4_5",Ee="_size2_4vcq4_11",Ne="_size3_4vcq4_16",He="_size4_4vcq4_21",Oe="_size5_4vcq4_27",Pe="_size6_4vcq4_33",Ve="_medium_4vcq4_39",Ae="_bold_4vcq4_43",Ze="_colorMuted_4vcq4_47",Be="_colorDanger_4vcq4_51",Fe="_colorSuccess_4vcq4_55",We="_colorWarning_4vcq4_59",P={text:De,size1:Te,size2:Ee,size3:Ne,size4:He,size5:Oe,size6:Pe,medium:Ve,bold:Ae,colorMuted:Ze,colorDanger:Be,colorSuccess:Fe,colorWarning:We},re=l.forwardRef(function({as:n="span",size:s,weight:r,color:t,className:c,style:i,m:a,mt:f,mb:_,p:u,pb:p,...d},C){return l.createElement(n,{...d,ref:C,className:g(P.text,s&&P[`size${s}`],r&&P[r],t&&P[`color${t[0].toUpperCase()}${t.slice(1)}`],c),style:y({m:a,mt:f,mb:_,p:u,pb:p},i)})}),Ge="_heading_vs4zk_1",Ue="_size4_vs4zk_7",Xe="_size5_vs4zk_13",Ke="_size6_vs4zk_19",Ye="_size7_vs4zk_25",Qe="_size8_vs4zk_31",Je="_size9_vs4zk_37",et="_colorMuted_vs4zk_43",tt="_colorDanger_vs4zk_47",nt="_alignCenter_vs4zk_51",D={heading:Ge,size4:Ue,size5:Xe,size6:Ke,size7:Ye,size8:Qe,size9:Je,colorMuted:et,colorDanger:tt,alignCenter:nt},le=l.forwardRef(function({as:n="h2",size:s,color:r,align:t,className:c,style:i,m:a,mt:f,mb:_,p:u,pb:p,...d},C){return l.createElement(n,{...d,ref:C,className:g(D.heading,s&&D[`size${s}`],r==="muted"&&D.colorMuted,r==="danger"&&D.colorDanger,t==="center"&&D.alignCenter,c),style:y({m:a,mt:f,mb:_,p:u,pb:p},i)})}),ot="_link_1qa7j_1",st="_size1_1qa7j_10",rt="_size2_1qa7j_16",lt="_size3_1qa7j_21",ee={link:ot,size1:st,size2:rt,size3:lt},ct=l.forwardRef(function({asChild:n,size:s,className:r,style:t,m:c,mt:i,mb:a,p:f,pb:_,children:u,...p},d){const C=g(ee.link,s&&ee[`size${s}`],r),m=y({m:c,mt:i,mb:a,p:f,pb:_},t);if(n&&l.isValidElement(u)){const h=u;return l.cloneElement(h,{...p,className:g(C,h.props.className),style:{...m,...h.props.style}})}return o.jsx("a",{...p,ref:d,className:C,style:m,children:u})}),it="_flex_v4ziu_1",at="_gap1_v4ziu_5",ut="_gap2_v4ziu_9",dt="_gap3_v4ziu_13",_t="_gap4_v4ziu_17",ft="_gap5_v4ziu_21",pt="_gap6_v4ziu_25",Ct="_directionRow_v4ziu_29",gt="_directionColumn_v4ziu_33",mt="_alignStart_v4ziu_37",ht="_alignCenter_v4ziu_41",vt="_alignEnd_v4ziu_45",xt="_alignBaseline_v4ziu_49",bt="_alignStretch_v4ziu_53",wt="_justifyStart_v4ziu_57",jt="_justifyCenter_v4ziu_61",yt="_justifyEnd_v4ziu_65",Rt="_justifyBetween_v4ziu_69",$t="_wrapWrap_v4ziu_73",kt="_wrapNowrap_v4ziu_77",k={flex:it,gap1:at,gap2:ut,gap3:dt,gap4:_t,gap5:ft,gap6:pt,directionRow:Ct,directionColumn:gt,alignStart:mt,alignCenter:ht,alignEnd:vt,alignBaseline:xt,alignStretch:bt,justifyStart:wt,justifyCenter:jt,justifyEnd:yt,justifyBetween:Rt,wrapWrap:$t,wrapNowrap:kt},V=e=>e[0].toUpperCase()+e.slice(1),qt=l.forwardRef(function({asChild:n,gap:s,direction:r,align:t,justify:c,wrap:i,className:a,style:f,m:_,mt:u,mb:p,p:d,pb:C,children:m,...h},v){const x=g(k.flex,s&&k[`gap${s}`],r&&k[`direction${V(r)}`],t&&k[`align${V(t)}`],c&&k[`justify${V(c)}`],i&&k[`wrap${V(i)}`],a),R=y({m:_,mt:u,mb:p,p:d,pb:C},f);if(n&&l.isValidElement(m)){const $=m;return l.cloneElement($,{...h,className:g(x,$.props.className),style:{...R,...$.props.style}})}return o.jsx("div",{...h,ref:v,className:x,style:R,children:m})}),Lt=l.forwardRef(function({style:n,m:s,mt:r,mb:t,p:c,pb:i,...a},f){return o.jsx("div",{...a,ref:f,style:y({m:s,mt:r,mb:t,p:c,pb:i},n)})}),Mt="_grid_erpqq_1",zt="_cols1_erpqq_5",It="_cols2_erpqq_9",St="_cols3_erpqq_13",Dt="_smCols2_erpqq_18",Tt="_smCols3_erpqq_21",Et="_mdCols2_erpqq_26",Nt="_mdCols3_erpqq_29",Ht="_gap1_erpqq_33",Ot="_gap2_erpqq_37",Pt="_gap3_erpqq_41",Vt="_gap4_erpqq_45",At="_gap5_erpqq_49",Zt="_gap6_erpqq_53",q={grid:Mt,cols1:zt,cols2:It,cols3:St,smCols2:Dt,smCols3:Tt,mdCols2:Et,mdCols3:Nt,gap1:Ht,gap2:Ot,gap3:Pt,gap4:Vt,gap5:At,gap6:Zt},Bt=l.forwardRef(function({columns:n,gap:s,className:r,style:t,m:c,mt:i,mb:a,p:f,pb:_,...u},p){const d=typeof n=="string"?[q[`cols${n}`]]:n?[n.initial&&q[`cols${n.initial}`],n.sm&&q[`smCols${n.sm}`],n.md&&q[`mdCols${n.md}`]]:[];return o.jsx("div",{...u,ref:p,className:g(q.grid,...d,s&&q[`gap${s}`],r),style:y({m:c,mt:i,mb:a,p:f,pb:_},t)})}),Ft="_badge_1twqf_2",Wt="_size1_1twqf_10",Gt="_size2_1twqf_19",Ut="_colorMuted_1twqf_28",Xt="_colorPrimary_1twqf_33",Kt="_colorSuccess_1twqf_38",Yt="_colorDanger_1twqf_43",Qt="_colorWarning_1twqf_48",Jt="_colorCyan_1twqf_53",en="_colorPurple_1twqf_58",tn="_colorOrange_1twqf_63",nn="_colorAccent_1twqf_68",on="_colorYellow_1twqf_73",sn="_solid_1twqf_81",rn="_wrap_1twqf_89",T={badge:Ft,size1:Wt,size2:Gt,colorMuted:Ut,colorPrimary:Xt,colorSuccess:Kt,colorDanger:Yt,colorWarning:Qt,colorCyan:Jt,colorPurple:en,colorOrange:tn,colorAccent:nn,colorYellow:on,solid:sn,wrap:rn},ln=e=>e[0].toUpperCase()+e.slice(1),cn=l.forwardRef(function({color:n="primary",variant:s="soft",size:r="1",wrap:t,className:c,style:i,m:a,mt:f,mb:_,p:u,pb:p,...d},C){return o.jsx("span",{...d,ref:C,className:g(T.badge,T[`color${ln(n)}`],s==="solid"&&T.solid,T[`size${r}`],t&&T.wrap,c),style:y({m:a,mt:f,mb:_,p:u,pb:p},i)})}),an="_separator_vao01_1",un="_full_vao01_7",te={separator:an,full:un},dn=l.forwardRef(function({size:n="4",className:s,...r},t){return o.jsx("span",{...r,ref:t,role:"separator",className:g(te.separator,n==="4"&&te.full,s)})}),_n="_card_10wsm_1",fn={card:_n},pn=l.forwardRef(function({className:n,style:s,m:r,mt:t,mb:c,p:i,pb:a,...f},_){return o.jsx("div",{...f,ref:_,className:g(fn.card,n),style:y({m:r,mt:t,mb:c,p:i,pb:a},s)})}),Cn="_scrollArea_ujp70_1",gn={scrollArea:Cn},mn=l.forwardRef(function({className:n,...s},r){return o.jsx("div",{...s,ref:r,className:g(gn.scrollArea,n)})}),hn="_spaceButton_kjhqx_14",vn="_rimRotate_kjhqx_1",xn="_glintSweep_kjhqx_1",bn="_iconOnly_kjhqx_97",wn="_lg_kjhqx_104",jn="_sm_kjhqx_110",yn="_micro_kjhqx_122",Rn="_stars_kjhqx_136",$n="_fullWidth_kjhqx_141",kn="_ember_kjhqx_147",qn="_label_kjhqx_157",Ln="_star_kjhqx_136",Mn="_twinkle_kjhqx_1",w={spaceButton:hn,rimRotate:vn,glintSweep:xn,iconOnly:bn,lg:wn,sm:jn,micro:yn,stars:Rn,fullWidth:$n,ember:kn,label:qn,star:Ln,twinkle:Mn};function zn(e){return function(){e|=0,e=e+1831565813|0;let n=Math.imul(e^e>>>15,1|e);return n=n+Math.imul(n^n>>>7,61|n)^n,((n^n>>>14)>>>0)/4294967296}}function In(e){let n=2166136261;for(let s=0;s<e.length;s++)n^=e.charCodeAt(s),n=Math.imul(n,16777619);return n>>>0}const Sn=l.forwardRef(function({iconOnly:n,ember:s,size:r="md",fullWidth:t,animated:c=!0,className:i,children:a,...f},_){const u=l.useId(),p=l.useMemo(()=>{const C=zn(In(u));return Array.from({length:3},()=>({top:`${12+C()*58}%`,left:`${8+C()*80}%`,animationDelay:`${(C()*3.2).toFixed(2)}s`,animationDuration:`${(2.8+C()*1.8).toFixed(2)}s`}))},[u]),d=[w.spaceButton,n?w.iconOnly:"",s?w.ember:"",r!=="md"?w[r]:"",t?w.fullWidth:"",i??""].filter(Boolean).join(" ");return o.jsxs("button",{ref:_,className:d,"data-animated":c?void 0:"false",...f,children:[r!=="micro"&&o.jsx("span",{className:w.stars,"aria-hidden":!0,children:p.map((C,m)=>o.jsx("i",{className:w.star,style:C},m))}),o.jsx("span",{className:w.label,children:a})]})}),Dn="_wrap_dwcut_5",Tn="_sm_dwcut_30",En="_md_dwcut_36",Nn="_lg_dwcut_42",Hn="_orbit_dwcut_49",On="_planet_dwcut_58",Pn="_moon_dwcut_73",Vn="_label_dwcut_92",L={wrap:Dn,sm:Tn,md:En,lg:Nn,orbit:Hn,planet:On,"sp-loader-planet-pulse":"_sp-loader-planet-pulse_dwcut_1",moon:Pn,"sp-loader-orbit":"_sp-loader-orbit_dwcut_1",label:Vn,"sp-loader-reduced-pulse":"_sp-loader-reduced-pulse_dwcut_1"};function An({size:e="md",label:n,className:s}){return o.jsxs("div",{className:g(L.wrap,L[e],s),role:"status","aria-live":"polite","aria-label":n??"Loading",children:[o.jsxs("span",{className:L.orbit,children:[o.jsx("span",{className:L.planet}),o.jsx("span",{className:L.moon})]}),n&&o.jsx("span",{className:L.label,children:n})]})}const Zn="_content_1bxfq_6",Bn={content:Zn},Fn=350,Wn=80,ne=8,E=8;function Gn({triggerRef:e,tooltipId:n,show:s,hide:r,children:t}){const c=t.props;return l.cloneElement(t,{ref:e,"aria-describedby":n,onPointerEnter:i=>{var a;(a=c.onPointerEnter)==null||a.call(c,i),i.pointerType==="mouse"&&s()},onPointerLeave:i=>{var a;(a=c.onPointerLeave)==null||a.call(c,i),r()},onFocus:i=>{var a;(a=c.onFocus)==null||a.call(c,i),s(!0)},onBlur:i=>{var a;(a=c.onBlur)==null||a.call(c,i),r()},onClick:i=>{var a;(a=c.onClick)==null||a.call(c,i),r()}})}function ce({label:e,side:n="bottom",children:s}){const r=l.useId(),[t,c]=l.useState(!1),[i,a]=l.useState(null),f=l.useRef(null),_=l.useRef(null),u=l.useRef(null),p=l.useRef(null),d=()=>{u.current&&(clearTimeout(u.current),u.current=null),p.current&&(clearTimeout(p.current),p.current=null)},C=(h=!1)=>{if(d(),h){c(!0);return}u.current=setTimeout(()=>c(!0),Fn)},m=()=>{d(),p.current=setTimeout(()=>c(!1),Wn)};return l.useEffect(()=>d,[]),l.useLayoutEffect(()=>{const h=_.current;if(!h)return;if(!t){h.matches(":popover-open")&&h.hidePopover();return}h.matches(":popover-open")||h.showPopover();const v=f.current;if(!v)return;const x=v.getBoundingClientRect(),R=h.offsetWidth,$=h.offsetHeight,Z=x.bottom+ne,B=x.top-$-ne,Q=Z+$<=window.innerHeight-E,J=B>=E,Ie=n==="bottom"?Q||!J?Z:B:J||!Q?B:Z,Se=Math.min(Math.max(x.left+x.width/2-R/2,E),Math.max(window.innerWidth-R-E,E));a({top:Ie,left:Se})},[t,n,e]),!e||!l.isValidElement(s)?o.jsx(o.Fragment,{children:s}):o.jsxs(o.Fragment,{children:[o.jsx(Gn,{triggerRef:f,tooltipId:r,show:C,hide:m,children:s}),o.jsx("div",{ref:_,id:r,popover:"auto",role:"tooltip",className:Bn.content,style:i?{top:i.top,left:i.left}:void 0,onToggle:h=>{h.nativeEvent.newState==="closed"&&t&&c(!1)},children:e})]})}const Un="_group_1kj0b_3",Xn="_segment_1kj0b_14",Kn="_active_1kj0b_34",F={group:Un,segment:Xn,active:Kn};function Yn({options:e,value:n,onValueChange:s,className:r=""}){return o.jsx("div",{className:`${F.group} ${r}`,role:"group",children:e.map(t=>o.jsx(ce,{label:t.label,side:"bottom",children:o.jsx("button",{type:"button",className:`${F.segment} ${t.value===n?F.active:""}`,"aria-label":t.label,"aria-pressed":t.value===n,onClick:()=>{t.value!==n&&s(t.value)},children:t.icon})},t.value))})}const Qn="_root_1bvtq_2",Jn="_trigger_1bvtq_7",eo="_labelWrap_1bvtq_30",to="_sizer_1bvtq_8",no="_triggerLabel_1bvtq_70",oo="_chevron_1bvtq_77",so="_listbox_1bvtq_82",ro="_item_1bvtq_110",j={root:Qn,trigger:Jn,labelWrap:eo,sizer:to,triggerLabel:no,chevron:oo,listbox:so,item:ro},lo="_spaceControl_18935_17",co="_spaceSlider_18935_74",io="_spacePanel_18935_111",ao="_spaceInput_18935_34",uo="_spaceTextArea_18935_226",_o={spaceControl:lo,spaceSlider:co,spacePanel:io,spaceInput:ao,spaceTextArea:uo},z=_o,ie=l.createContext(null),G=()=>{const e=l.useContext(ie);if(!e)throw new Error("Select parts must be inside Select.Root");return e},ae=(e,n)=>`${e}-${encodeURIComponent(n)}`,ue=l.createContext(null),U=()=>{const e=l.useContext(ue);if(!e)throw new Error("Select parts must be inside Select.Root");return e};function fo(e){const n=[],s=r=>{l.Children.forEach(r,t=>{if(!l.isValidElement(t))return;const c=t.props;t.type===_e&&typeof c.value=="string"?n.push({value:c.value,label:c.children,disabled:c.disabled}):c.children&&s(c.children)})};return s(e),n}function po({value:e,onValueChange:n,disabled:s,children:r}){const[t,c]=l.useState(!1),[i,a]=l.useState(null),f=l.useId(),_=l.useRef(null),u=l.useRef(null),p=l.useMemo(()=>{let v=null;return l.Children.forEach(r,x=>{l.isValidElement(x)&&x.type===de&&(v=x.props.children)}),v},[r]),d=l.useMemo(()=>fo(p),[p]),C=l.useMemo(()=>d.filter(v=>!v.disabled).map(v=>v.value),[d]),m=l.useMemo(()=>d.map(v=>v.label),[d]),h=l.useCallback(v=>{var x;return((x=d.find(R=>R.value===v))==null?void 0:x.label)??null},[d]);return l.useEffect(()=>{if(!t)return;const v=x=>{u.current&&!u.current.contains(x.target)&&c(!1)};return document.addEventListener("mousedown",v),()=>document.removeEventListener("mousedown",v)},[t]),o.jsx(ie.Provider,{value:{value:e,onValueChange:n,disabled:s,open:t,setOpen:c,highlighted:i,setHighlighted:a,listboxId:f,values:C,itemLabels:m,labelFor:h},children:o.jsx(ue.Provider,{value:_,children:o.jsx("div",{ref:u,className:j.root,children:r})})})}function Co({placeholder:e,animated:n=!0,className:s,...r}){const t=G(),c=U(),i=t.value?t.labelFor(t.value):null,a=f=>{t.setHighlighted(f??t.values[0]??null),t.setOpen(!0)};return o.jsxs("button",{type:"button",...r,ref:c,disabled:t.disabled,className:g(j.trigger,z.spaceControl,"spSelectTrigger",s),"data-animated":n?void 0:"false","data-state":t.open?"open":"closed","aria-haspopup":"listbox","aria-expanded":t.open,"aria-controls":t.listboxId,onClick:()=>t.open?t.setOpen(!1):a(t.value||null),onKeyDown:f=>{(f.key==="ArrowDown"||f.key==="Enter"||f.key===" ")&&(f.preventDefault(),a(t.value||null))},children:[o.jsxs("span",{className:j.labelWrap,children:[o.jsxs("span",{className:j.sizer,"data-sizer":"","aria-hidden":"true",children:[t.itemLabels.map((f,_)=>o.jsx("span",{children:f},_)),e&&o.jsx("span",{children:e})]}),o.jsx("span",{className:j.triggerLabel,children:i??e??""})]}),o.jsx("svg",{className:j.chevron,width:"9",height:"9",viewBox:"0 0 9 9","aria-hidden":"true",children:o.jsx("path",{d:"M0.5 3 L4.5 7 L8.5 3",fill:"none",stroke:"currentColor",strokeWidth:"1.2"})})]})}function de({className:e,position:n,animated:s=!0,children:r}){const t=G(),c=U(),i=l.useRef(null),[a,f]=l.useState(null),[_,u]=l.useState(null);l.useLayoutEffect(()=>{if(t.open&&c.current){const d=c.current.getBoundingClientRect();f(c.current.offsetWidth);const C=window.innerHeight-d.bottom-16;u(Math.min(380,Math.max(120,C)))}},[t.open,c]),l.useEffect(()=>{var d;t.open&&((d=i.current)==null||d.focus())},[t.open]);const p=d=>{const C=t.highlighted?t.values.indexOf(t.highlighted):-1,m=Math.min(Math.max(C+d,0),t.values.length-1);t.setHighlighted(t.values[m]??null)};return o.jsx("div",{ref:i,id:t.listboxId,role:"listbox",tabIndex:-1,hidden:!t.open,"aria-activedescendant":t.highlighted?ae(t.listboxId,t.highlighted):void 0,className:g(j.listbox,z.spacePanel,e),"data-animated":s?void 0:"false",style:a!=null||_!=null?{...a!=null?{"--_select-trigger-width":`${a}px`}:{},..._!=null?{maxHeight:`${_}px`}:{}}:void 0,onKeyDown:d=>{var C,m;d.key==="Escape"?(d.stopPropagation(),t.setOpen(!1),(C=c.current)==null||C.focus()):d.key==="ArrowDown"?(d.preventDefault(),p(1)):d.key==="ArrowUp"?(d.preventDefault(),p(-1)):d.key==="Home"?(d.preventDefault(),t.setHighlighted(t.values[0]??null)):d.key==="End"?(d.preventDefault(),t.setHighlighted(t.values[t.values.length-1]??null)):d.key==="Enter"||d.key===" "?(d.preventDefault(),t.highlighted&&(t.onValueChange(t.highlighted),t.setOpen(!1),(m=c.current)==null||m.focus())):d.key==="Tab"&&t.setOpen(!1)},children:r})}function _e({value:e,disabled:n,children:s}){const r=G(),t=U(),c=r.value===e,i=r.highlighted===e;return o.jsx("div",{id:ae(r.listboxId,e),role:"option","aria-selected":c,"aria-disabled":n||void 0,"data-highlighted":i?"":void 0,className:g(j.item,"spSelectItem"),onMouseEnter:()=>!n&&r.setHighlighted(e),onClick:()=>{var a;n||(r.onValueChange(e),r.setOpen(!1),(a=t.current)==null||a.focus())},children:s})}const go=Object.freeze(Object.defineProperty({__proto__:null,Content:de,Item:_e,Root:po,Trigger:Co},Symbol.toStringTag,{value:"Module"})),mo="_root_1lx7y_1",ho="_input_1lx7y_7",vo="_slot_1lx7y_17",W={root:mo,input:ho,slot:vo},xo=l.forwardRef(function({className:n,style:s,animated:r=!0,children:t,...c},i){return o.jsxs("div",{className:g(W.root,z.spaceInput,"spTextFieldRoot",n),"data-animated":r?void 0:"false",style:s,children:[t,o.jsx("input",{...c,ref:i,className:g(W.input,"spTextFieldInput")})]})});function bo({children:e}){return o.jsx("span",{className:W.slot,children:e})}const wo=Object.freeze(Object.defineProperty({__proto__:null,Root:xo,Slot:bo},Symbol.toStringTag,{value:"Module"})),jo="_root_1qu6w_1",yo="_textarea_1qu6w_6",oe={root:jo,textarea:yo},Ro=l.forwardRef(function({className:n,style:s,animated:r=!0,...t},c){return o.jsx("div",{className:g(oe.root,z.spaceInput,z.spaceTextArea,"spTextFieldRoot",n),"data-animated":r?void 0:"false",style:s,children:o.jsx("textarea",{...t,ref:c,className:g(oe.textarea,"spTextAreaInput")})})}),$o="_root_14a1b_1",ko="_track_14a1b_12",qo="_range_14a1b_22",Lo="_thumb_14a1b_28",Mo="_input_14a1b_38",N={root:$o,track:ko,range:qo,thumb:Lo,input:Mo},zo=l.forwardRef(function({value:n,onValueChange:s,min:r,max:t,step:c,disabled:i,className:a,"aria-label":f},_){const u=n[0]??r,p=t===r?0:(u-r)/(t-r)*100;return o.jsxs("span",{className:g(N.root,z.spaceSlider,a),"data-disabled":i||void 0,children:[o.jsx("span",{className:g(N.track,"spSliderTrack"),children:o.jsx("span",{className:g(N.range,"spSliderRange"),style:{width:`${p}%`}})}),o.jsx("span",{className:g(N.thumb,"spSliderThumb"),style:{left:`${p}%`}}),o.jsx("input",{ref:_,type:"range",className:g(N.input,"spSliderInput"),value:u,min:r,max:t,step:c,disabled:i,"aria-label":f,onChange:d=>s([Number(d.target.value)])})]})}),Io="_root_1qhel_2",So="_item_1qhel_8",Do="_selfLabeled_1qhel_15",To="_input_1qhel_19",Eo="_orb_1qhel_35",M={root:Io,item:So,selfLabeled:Do,input:To,orb:Eo},fe=l.createContext(null);function No({value:e,onValueChange:n,disabled:s,className:r,children:t}){const c=l.useId();return o.jsx(fe.Provider,{value:{value:e,onValueChange:n,disabled:s,name:c},children:o.jsx("div",{role:"radiogroup",className:g(M.root,r),children:t})})}function Ho({value:e,disabled:n,children:s}){const r=l.useContext(fe);if(!r)throw new Error("RadioGroup.Item must be inside RadioGroup.Root");const t=n||r.disabled,c=o.jsxs(o.Fragment,{children:[o.jsx("input",{type:"radio",className:M.input,name:r.name,value:e,checked:r.value===e,disabled:t,onChange:()=>r.onValueChange(e)}),o.jsx("span",{className:g(M.orb,"spRadioOrb"),"aria-hidden":"true"})]});return s==null?o.jsx("span",{className:M.item,children:c}):o.jsxs("label",{className:g(M.item,M.selfLabeled),children:[c,s]})}const Oo=Object.freeze(Object.defineProperty({__proto__:null,Item:Ho,Root:No},Symbol.toStringTag,{value:"Module"})),Po="_progress_1cre6_16",Vo={progress:Po};function Ao({value:e,max:n=100,className:s,style:r,...t}){const c=n>0?Math.min(Math.max(e/n*100,0),100):0;return o.jsx("div",{...t,role:"progressbar","aria-valuenow":e,"aria-valuemin":0,"aria-valuemax":n,className:g(Vo.progress,s),style:r,children:o.jsx("div",{style:{width:`${c}%`,height:"100%"}})})}const b={width:15,height:15,viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":!0};function Zo(e){return o.jsx("svg",{...b,...e,children:o.jsx("path",{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",fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd"})})}function Bo(e){return o.jsx("svg",{...b,...e,children:o.jsx("path",{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",fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd"})})}function Fo(e){return o.jsx("svg",{...b,...e,children:o.jsx("path",{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",fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd"})})}function Wo(e){return o.jsx("svg",{...b,...e,children:o.jsx("path",{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",fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd"})})}function Go(e){return o.jsx("svg",{...b,...e,children:o.jsx("path",{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",fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd"})})}function Uo(e){return o.jsx("svg",{...b,...e,children:o.jsx("path",{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",fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd"})})}function Xo(e){return o.jsx("svg",{...b,...e,children:o.jsx("path",{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",fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd"})})}function Ko(e){return o.jsx("svg",{...b,...e,children:o.jsx("path",{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",fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd"})})}function Yo(e){return o.jsx("svg",{...b,...e,children:o.jsx("path",{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",fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd"})})}function Qo(e){return o.jsx("svg",{...b,...e,children:o.jsx("path",{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",fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd"})})}function Jo(e){return o.jsx("svg",{...b,...e,children:o.jsx("path",{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",fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd"})})}function es(e){return o.jsx("svg",{...b,...e,children:o.jsx("path",{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",fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd"})})}function ts(e){return o.jsx("svg",{...b,...e,children:o.jsx("path",{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",fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd"})})}function ns(e){return o.jsx("svg",{...b,...e,children:o.jsx("path",{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",fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd"})})}function os(e){return o.jsx("svg",{...b,...e,children:o.jsx("path",{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",fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd"})})}function ss(e){return o.jsx("svg",{...b,...e,children:o.jsx("path",{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",fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd"})})}function rs(e){return o.jsx("svg",{...b,...e,children:o.jsx("path",{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",fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd"})})}function ls(e){return o.jsx("svg",{...b,...e,children:o.jsx("path",{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",fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd"})})}function cs(e){return o.jsx("svg",{...b,...e,children:o.jsx("path",{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",fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd"})})}function pe(e){return o.jsx("svg",{viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"15",height:"15",...e,children:o.jsx("path",{d:"M11.8 3.2a.6.6 0 0 0-.85 0L7.5 6.65 4.05 3.2a.6.6 0 1 0-.85.85L6.65 7.5 3.2 10.95a.6.6 0 1 0 .85.85L7.5 8.35l3.45 3.45a.6.6 0 0 0 .85-.85L8.35 7.5l3.45-3.45a.6.6 0 0 0 0-.85Z",fill:"currentColor"})})}const is="_dialog_1qqku_2",as="_inner_1qqku_34",us="_size4_1qqku_39",ds="_title_1qqku_43",_s="_closeX_1qqku_51",H={dialog:is,inner:as,size4:us,title:ds,closeX:_s};let A=0;const Ce=l.createContext(null),I=()=>{const e=l.useContext(Ce);if(!e)throw new Error("Dialog parts must be inside Dialog.Root");return e};function X(e){return function({open:s,onOpenChange:r,children:t}){const[c,i]=l.useState(!1),a=s!==void 0,f=a?s:c,_=m=>{a||i(m),r==null||r(m)},u=l.useId(),p=l.useId(),[d,C]=l.useState(!1);return o.jsx(Ce.Provider,{value:{open:f,setOpen:_,titleId:u,descId:p,alert:e,hasDesc:d,setHasDesc:C},children:t})}}const fs=X(!1),ge=(e,n)=>{if(!l.isValidElement(e))return e;const s=e;return l.cloneElement(s,{onClick:r=>{var t,c;(c=(t=s.props).onClick)==null||c.call(t,r),n()}})};function me({children:e}){const n=I();return o.jsx(o.Fragment,{children:ge(e,()=>n.setOpen(!0))})}function K({children:e}){const n=I();return o.jsx(o.Fragment,{children:ge(e,()=>n.setOpen(!1))})}function he({size:e="3",maxWidth:n,className:s,style:r,children:t,...c}){const i=I(),a=l.useRef(null),f=l.useRef(!1),_=l.useRef(!1);return l.useEffect(()=>{const u=a.current;u&&(i.open&&!u.open?u.showModal():!i.open&&u.open&&u.close())},[i.open]),l.useEffect(()=>{if(i.open)return A+=1,A===1&&(document.body.style.overflow="hidden"),()=>{A-=1,A===0&&(document.body.style.overflow="")}},[i.open]),o.jsx("dialog",{...c,ref:a,role:i.alert?"alertdialog":void 0,"aria-labelledby":i.titleId,"aria-describedby":i.hasDesc?i.descId:void 0,className:g(H.dialog,"spDialog",e==="4"&&H.size4,s),style:{...n?{maxWidth:n}:null,...r},onKeyDownCapture:u=>{var p,d;u.key==="Escape"&&((p=a.current)!=null&&p.querySelector("dialog[open]")||(d=a.current)!=null&&d.querySelector('[role="listbox"]:not([hidden])')&&(f.current=!0))},onCancel:u=>{if(u.preventDefault(),f.current){f.current=!1;return}i.setOpen(!1)},onClose:()=>{i.open&&i.setOpen(!1)},onPointerDown:u=>{_.current=u.target===a.current},onClick:u=>{!i.alert&&u.target===a.current&&_.current&&i.setOpen(!1)},children:o.jsxs("div",{className:H.inner,children:[!i.alert&&o.jsx("button",{type:"button",className:H.closeX,"aria-label":"Close",onClick:()=>i.setOpen(!1),children:o.jsx(pe,{width:16,height:16})}),t]})})}function ve({className:e,...n}){const s=I();return o.jsx(le,{as:"h2",size:"5",...n,id:s.titleId,className:g(H.title,e)})}function xe(e){const n=I(),{setHasDesc:s}=n;return l.useLayoutEffect(()=>(s(!0),()=>s(!1)),[s]),o.jsx(re,{as:"p",...e,id:n.descId})}const ps=Object.freeze(Object.defineProperty({__proto__:null,Close:K,Content:he,Description:xe,Root:fs,Title:ve,Trigger:me,makeRoot:X,useDialog:I},Symbol.toStringTag,{value:"Module"})),Cs=X(!0),gs=me,ms=he,hs=ve,vs=xe,xs=K,bs=K,ws=Object.freeze(Object.defineProperty({__proto__:null,Action:bs,Cancel:xs,Content:ms,Description:vs,Root:Cs,Title:hs,Trigger:gs},Symbol.toStringTag,{value:"Module"})),js="_menu_1hwyv_1",ys="_label_1hwyv_16",Rs="_item_1hwyv_26",$s="_danger_1hwyv_45",ks="_separator_1hwyv_49",O={menu:js,label:ys,item:Rs,danger:$s,separator:ks},be=l.createContext(null),Y=()=>{const e=l.useContext(be);if(!e)throw new Error("DropdownMenu parts must be inside DropdownMenu.Root");return e},we=l.createContext(null),je=()=>{const e=l.useContext(we);if(!e)throw new Error("DropdownMenu parts must be inside DropdownMenu.Root");return e},ye=l.createContext(null),qs=()=>{const e=l.useContext(ye);if(!e)throw new Error("DropdownMenu parts must be inside DropdownMenu.Root");return e},Re=l.createContext(null),$e=()=>{const e=l.useContext(Re);if(!e)throw new Error("DropdownMenu parts must be inside DropdownMenu.Root");return e},ke=l.createContext(null),qe=()=>{const e=l.useContext(ke);if(!e)throw new Error("DropdownMenu parts must be inside DropdownMenu.Root");return e};function Ls(e){return e.current?(e.current=!1,!0):!1}function se(e){e.current=!0}function Ms({children:e}){const[n,s]=l.useState(!1),r=l.useId(),t=l.useRef(null),c=l.useRef(null),i=l.useRef(!1),a=l.useRef(!1);return o.jsx(be.Provider,{value:{open:n,setOpen:s,menuId:r},children:o.jsx(we.Provider,{value:t,children:o.jsx(ye.Provider,{value:c,children:o.jsx(Re.Provider,{value:i,children:o.jsx(ke.Provider,{value:a,children:e})})})})})}function zs({children:e}){const n=Y(),s=je(),r=$e();if(!l.isValidElement(e))return null;const t=e;return l.cloneElement(t,{ref:s,"aria-haspopup":"menu","aria-expanded":n.open,"aria-controls":n.menuId,onClick:c=>{var i,a;(a=(i=t.props).onClick)==null||a.call(i,c),!Ls(r)&&n.setOpen(!n.open)}})}function Is({align:e="start",children:n}){const s=Y(),r=je(),t=qs(),c=$e(),i=qe(),[a,f]=l.useState(null);return l.useLayoutEffect(()=>{var u;const _=t.current;if(_)if(s.open){const p=r.current;if(p){const d=p.getBoundingClientRect(),C=e==="end"?"auto":d.left,m=e==="end"?window.innerWidth-d.right:"auto";f({top:d.bottom+6,left:C,right:m})}_.showPopover(),(u=_.querySelector('[role="menuitem"]'))==null||u.focus()}else _.matches(":popover-open")&&_.hidePopover()},[s.open,e,t,r]),l.useEffect(()=>{if(!s.open)return;const _=s.setOpen,u=()=>_(!1);return window.addEventListener("resize",u),()=>window.removeEventListener("resize",u)},[s.open,s.setOpen]),o.jsx("div",{ref:t,id:s.menuId,role:"menu",popover:"auto",className:O.menu,style:a?{top:a.top,left:a.left==="auto"?"auto":a.left,right:a.right==="auto"?"auto":a.right}:void 0,onToggle:_=>{if(_.nativeEvent.newState==="closed"){const u=i.current;i.current=!1,u||(c.current=!0,setTimeout(()=>{c.current=!1},300)),s.open&&s.setOpen(!1)}},onKeyDown:_=>{var d,C,m,h,v,x;const u=Array.from(((d=t.current)==null?void 0:d.querySelectorAll('[role="menuitem"]'))??[]),p=u.indexOf(document.activeElement);_.key==="ArrowDown"?(_.preventDefault(),(C=u[Math.min(p+1,u.length-1)])==null||C.focus()):_.key==="ArrowUp"?(_.preventDefault(),(m=u[Math.max(p-1,0)])==null||m.focus()):_.key==="Home"?(_.preventDefault(),(h=u[0])==null||h.focus()):_.key==="End"?(_.preventDefault(),(v=u[u.length-1])==null||v.focus()):_.key==="Escape"&&(s.setOpen(!1),(x=r.current)==null||x.focus())},children:n})}function Ss({children:e}){return o.jsx("div",{className:O.label,children:e})}function Ds({asChild:e,color:n,onSelect:s,children:r}){const t=Y(),c=qe(),i=g(O.item,n==="danger"&&O.danger),a=()=>{se(c),t.setOpen(!1),s==null||s()};if(e&&l.isValidElement(r)){const f=r,{className:_,onClick:u,children:p,role:d,tabIndex:C,...m}=f.props,h=f.ref;return l.createElement(f.type,{key:f.key,ref:h,role:"menuitem",tabIndex:-1,...m,className:g(i,_),onClick:v=>{u==null||u(v),se(c),t.setOpen(!1)}},p)}return o.jsx("button",{type:"button",role:"menuitem",tabIndex:-1,className:i,onClick:a,children:r})}function Ts(){return o.jsx("div",{role:"separator",className:O.separator})}const Es=Object.freeze(Object.defineProperty({__proto__:null,Content:Is,Item:Ds,Label:Ss,Root:Ms,Separator:Ts,Trigger:zs},Symbol.toStringTag,{value:"Module"})),Ns="_list_1hc3r_19",Hs="_trigger_1hc3r_28",Le={list:Ns,trigger:Hs},Me=l.createContext(null),ze=()=>{const e=l.useContext(Me);if(!e)throw new Error("Tabs parts must be inside Tabs.Root");return e};function Os({value:e,onValueChange:n,className:s,children:r}){const t=l.useId();return o.jsx(Me.Provider,{value:{value:e,onValueChange:n,id:t},children:o.jsx("div",{className:s,children:r})})}function Ps({children:e}){return o.jsx("div",{role:"tablist",className:g(Le.list,"spTabsList"),onKeyDown:n=>{const s=Array.from(n.currentTarget.querySelectorAll('[role="tab"]')),r=s.indexOf(document.activeElement);if(r!==-1){if(n.key==="ArrowRight"){n.preventDefault();const t=s[(r+1)%s.length];t.focus(),t.click()}else if(n.key==="ArrowLeft"){n.preventDefault();const t=s[(r-1+s.length)%s.length];t.focus(),t.click()}else if(n.key==="Home"){n.preventDefault();const t=s[0];t.focus(),t.click()}else if(n.key==="End"){n.preventDefault();const t=s[s.length-1];t.focus(),t.click()}}},children:e})}function Vs({value:e,className:n,children:s,...r}){const t=ze(),c=t.value===e;return o.jsx("button",{...r,type:"button",role:"tab",id:`${t.id}-tab-${e}`,"aria-selected":c,"aria-controls":`${t.id}-panel-${e}`,tabIndex:c?0:-1,"data-state":c?"active":"inactive",className:g(Le.trigger,"spTabsTrigger",n),onClick:()=>t.onValueChange(e),children:s})}function As({value:e,children:n}){const s=ze();return s.value!==e?null:o.jsx("div",{role:"tabpanel",id:`${s.id}-panel-${e}`,"aria-labelledby":`${s.id}-tab-${e}`,children:n})}const Zs=Object.freeze(Object.defineProperty({__proto__:null,Content:As,List:Ps,Root:Os,Trigger:Vs},Symbol.toStringTag,{value:"Module"}));exports.AlertDialog=ws;exports.Badge=cn;exports.BookmarkIcon=cs;exports.Box=Lt;exports.Button=Sn;exports.Card=pn;exports.ChatBubbleIcon=Bo;exports.CheckIcon=Ko;exports.ChevronDownIcon=ss;exports.ChevronLeftIcon=ls;exports.ChevronRightIcon=rs;exports.ChevronUpIcon=os;exports.Dialog=ps;exports.DropdownMenu=Es;exports.EnterFullScreenIcon=Xo;exports.ExitFullScreenIcon=Uo;exports.Flex=qt;exports.Grid=Bt;exports.Heading=le;exports.HeartFilledIcon=Go;exports.HeartIcon=ns;exports.IconToggle=Yn;exports.Link=ct;exports.Loader=An;exports.MagnifyingGlassIcon=ts;exports.MinusIcon=es;exports.Pencil1Icon=Wo;exports.PersonIcon=Jo;exports.PlusIcon=Fo;exports.Progress=Ao;exports.QuestionMarkCircledIcon=Qo;exports.RadioGroup=Oo;exports.ScrollArea=mn;exports.Select=go;exports.Separator=dn;exports.Share2Icon=Zo;exports.Slider=zo;exports.Tabs=Zs;exports.Text=re;exports.TextArea=Ro;exports.TextField=wo;exports.Tooltip=ce;exports.TrashIcon=Yo;exports.XIcon=pe;
|
|
2
2
|
//# sourceMappingURL=index.cjs.map
|