@indxsearch/systm 1.1.0 → 1.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +25 -0
- package/dist/cursors.css +196 -0
- package/dist/index.es.js +7 -6
- package/dist/index.umd.js +6 -6
- package/package.json +3 -2
package/README.md
CHANGED
|
@@ -41,6 +41,31 @@ function App() {
|
|
|
41
41
|
- **Base** - Base container component
|
|
42
42
|
- **FilterPanelBase** - Filter panel container
|
|
43
43
|
|
|
44
|
+
## Custom Cursors (Optional)
|
|
45
|
+
|
|
46
|
+
Systm includes an optional custom cursor system with 13 cursor utilities. Import the cursors stylesheet to enable:
|
|
47
|
+
|
|
48
|
+
```tsx
|
|
49
|
+
import '@indxsearch/systm/styles.css';
|
|
50
|
+
import '@indxsearch/systm/cursors.css'; // Optional custom cursors
|
|
51
|
+
```
|
|
52
|
+
|
|
53
|
+
**Available cursor utilities:**
|
|
54
|
+
- `.cursor-pointer` - Hand cursor for clickable elements
|
|
55
|
+
- `.cursor-text` - I-beam cursor for text selection
|
|
56
|
+
- `.cursor-resize-col` - Column resize cursor
|
|
57
|
+
- `.cursor-resize-ew` - Horizontal resize (↔)
|
|
58
|
+
- `.cursor-resize-ns` - Vertical resize (↕)
|
|
59
|
+
- `.cursor-resize-nwse` - Diagonal resize (↖↘)
|
|
60
|
+
- `.cursor-resize-nesw` - Diagonal resize (↗↙)
|
|
61
|
+
- `.cursor-move` - Four-way move cursor
|
|
62
|
+
- `.cursor-crosshair` - Crosshair for precise selection
|
|
63
|
+
- `.cursor-help` - Help cursor
|
|
64
|
+
- `.cursor-wait` - Loading cursor
|
|
65
|
+
- `.cursor-not-allowed` - Disabled state cursor
|
|
66
|
+
|
|
67
|
+
All cursors automatically adapt to dark mode via `prefers-color-scheme`.
|
|
68
|
+
|
|
44
69
|
## Dependencies
|
|
45
70
|
|
|
46
71
|
- `@indxsearch/pixl` - Icon library
|
package/dist/cursors.css
ADDED
|
@@ -0,0 +1,196 @@
|
|
|
1
|
+
/* Custom Cursors - 21x21 */
|
|
2
|
+
|
|
3
|
+
/* Default: Arrow cursor */
|
|
4
|
+
* {
|
|
5
|
+
cursor: url('data:image/svg+xml,<svg width="21" height="21" viewBox="0 0 21 21" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M9 3H15V6H18V9H12V15H9V12H6V6H3V0H9V3Z" fill="%231A1A21"/></svg>') 3 0, auto !important;
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
/* I-beam: Text elements */
|
|
9
|
+
p, h1, h2, h3, h4, h5, h6, td, th,
|
|
10
|
+
input,
|
|
11
|
+
textarea {
|
|
12
|
+
cursor: url('data:image/svg+xml,<svg width="21" height="21" viewBox="0 0 21 21" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M9 18H6V15H9V18ZM15 18H12V15H15V18ZM12 15H9V6H12V15ZM9 6H6V3H9V6ZM15 6H12V3H15V6Z" fill="%231A1A21"/></svg>') 10 10, text !important;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
/* Pointer: Interactive elements */
|
|
16
|
+
a, button,
|
|
17
|
+
input[type="radio"],
|
|
18
|
+
input[type="checkbox"],
|
|
19
|
+
input[type="submit"],
|
|
20
|
+
input[type="button"],
|
|
21
|
+
input[type="range"],
|
|
22
|
+
select {
|
|
23
|
+
cursor: url('data:image/svg+xml,<svg width="21" height="21" viewBox="0 0 21 21" fill="none" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" clip-rule="evenodd" d="M9 0V3V6V9V12H6V9H3V12H6V15H9H12H15H18V12V9V6H15H12V3V0H9Z" fill="%231A1A21"/></svg>') 6 0, pointer !important;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
/* Text inside clickable elements should have pointer */
|
|
27
|
+
a *, button * {
|
|
28
|
+
cursor: url('data:image/svg+xml,<svg width="21" height="21" viewBox="0 0 21 21" fill="none" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" clip-rule="evenodd" d="M9 0V3V6V9V12H6V9H3V12H6V15H9H12H15H18V12V9V6H15H12V3V0H9Z" fill="%231A1A21"/></svg>') 6 0, pointer !important;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
/* Utility classes */
|
|
32
|
+
.cursor-pointer,
|
|
33
|
+
.cursor-pointer * {
|
|
34
|
+
cursor: url('data:image/svg+xml,<svg width="21" height="21" viewBox="0 0 21 21" fill="none" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" clip-rule="evenodd" d="M9 0V3V6V9V12H6V9H3V12H6V15H9H12H15H18V12V9V6H15H12V3V0H9Z" fill="%231A1A21"/></svg>') 6 0, pointer !important;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
.cursor-text,
|
|
38
|
+
.cursor-text * {
|
|
39
|
+
cursor: url('data:image/svg+xml,<svg width="21" height="21" viewBox="0 0 21 21" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M9 18H6V15H9V18ZM15 18H12V15H15V18ZM12 15H9V6H12V15ZM9 6H6V3H9V6ZM15 6H12V3H15V6Z" fill="%231A1A21"/></svg>') 10 10, text !important;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
.cursor-resize-col,
|
|
43
|
+
.cursor-resize-col * {
|
|
44
|
+
cursor: url('data:image/svg+xml,<svg width="21" height="21" viewBox="0 0 21 21" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M12 18H9V3H12V18ZM6 15H3V12H6V15ZM18 15H15V12H18V15ZM3 12H0V9H3V12ZM21 12H18V9H21V12ZM6 9H3V6H6V9ZM18 9H15V6H18V9Z" fill="%231A1A21"/></svg>') 10 10, col-resize !important;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
.cursor-resize-ew,
|
|
48
|
+
.cursor-resize-ew * {
|
|
49
|
+
cursor: url('data:image/svg+xml,<svg width="21" height="21" viewBox="0 0 21 21" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M9 15H6V12H9V15ZM15 15H12V12H15V15ZM6 12H3V9H6V12ZM18 12H15V9H18V12ZM9 9H6V6H9V9ZM15 9H12V6H15V9Z" fill="%23080809"/></svg>') 10 10, ew-resize !important;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
.cursor-resize-ns,
|
|
53
|
+
.cursor-resize-ns * {
|
|
54
|
+
cursor: url('data:image/svg+xml,<svg width="21" height="21" viewBox="0 0 21 21" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M12 18H9V15H12V18ZM9 15H6V12H9V15ZM15 12V15H12V12H15ZM9 9H6V6H9V9ZM15 9H12V6H15V9ZM12 6H9V3H12V6Z" fill="%23080809"/></svg>') 10 10, ns-resize !important;
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
.cursor-not-allowed,
|
|
58
|
+
.cursor-not-allowed * {
|
|
59
|
+
cursor: url('data:image/svg+xml,<svg width="21" height="21" viewBox="0 0 21 21" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M15 6H18V15H15V18H6V15H3V6H6V3H15V6ZM6 12H15V9H6V12Z" fill="%231A1A21"/></svg>') 10 10, not-allowed !important;
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
.cursor-wait,
|
|
63
|
+
.cursor-wait * {
|
|
64
|
+
cursor: url('data:image/svg+xml,<svg width="21" height="21" viewBox="0 0 21 21" fill="none" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" clip-rule="evenodd" d="M6 3H3V6H6V9H9V12H6V15H3V18H6H9H12H15H18V15H15V12H12V9H15V6H18V3H15H12H9H6ZM12 9H9V6H12V9Z" fill="%23080809"/></svg>') 10 10, wait !important;
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
.cursor-help,
|
|
68
|
+
.cursor-help * {
|
|
69
|
+
cursor: url('data:image/svg+xml,<svg width="21" height="21" viewBox="0 0 21 21" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M12 18H9V15H12V18ZM12 12H9V9H12V12ZM15 9H12V6H15V9ZM12 3V6H6V3H12Z" fill="%23080809"/></svg>') 10 10, help !important;
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
.cursor-move,
|
|
73
|
+
.cursor-move * {
|
|
74
|
+
cursor: url('data:image/svg+xml,<svg width="21" height="21" viewBox="0 0 21 21" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M12 18H9V15H12V18ZM6 12H3V9H6V12ZM12 12H9V9H12V12ZM18 12H15V9H18V12ZM12 6H9V3H12V6Z" fill="%23080809"/></svg>') 10 10, move !important;
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
.cursor-crosshair,
|
|
78
|
+
.cursor-crosshair * {
|
|
79
|
+
cursor: url('data:image/svg+xml,<svg width="21" height="21" viewBox="0 0 21 21" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M12 18H9V12H12V18ZM9 12H3V9H9V12ZM18 9V12H12V9H18ZM12 9H9V3H12V9Z" fill="%23080809"/></svg>') 10 10, crosshair !important;
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
.cursor-resize-nwse,
|
|
83
|
+
.cursor-resize-nwse * {
|
|
84
|
+
cursor: url('data:image/svg+xml,<svg width="21" height="21" viewBox="0 0 21 21" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M18 18H12V15H15V12H18V18ZM9 3V6H6V9H3V3H9Z" fill="%23080809"/></svg>') 10 10, nwse-resize !important;
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
.cursor-resize-nesw,
|
|
88
|
+
.cursor-resize-nesw * {
|
|
89
|
+
cursor: url('data:image/svg+xml,<svg width="21" height="21" viewBox="0 0 21 21" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M6 15H9V18H3V12H6V15ZM18 9H15V6H12V3H18V9Z" fill="%23080809"/></svg>') 10 10, nesw-resize !important;
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
/* Disabled states */
|
|
93
|
+
input:disabled,
|
|
94
|
+
textarea:disabled,
|
|
95
|
+
button:disabled,
|
|
96
|
+
select:disabled,
|
|
97
|
+
.disabled,
|
|
98
|
+
.disabled * {
|
|
99
|
+
cursor: url('data:image/svg+xml,<svg width="21" height="21" viewBox="0 0 21 21" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M15 6H18V15H15V18H6V15H3V6H6V3H15V6ZM6 12H15V9H6V12Z" fill="%231A1A21"/></svg>') 10 10, not-allowed !important;
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
/* Dark Mode - Use CSS filter to invert colors */
|
|
103
|
+
@media (prefers-color-scheme: dark) {
|
|
104
|
+
* {
|
|
105
|
+
cursor: url('data:image/svg+xml,<svg width="21" height="21" viewBox="0 0 21 21" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M9 3H15V6H18V9H12V15H9V12H6V6H3V0H9V3Z" fill="%23EFEFEF"/></svg>') 3 0, auto !important;
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
p, h1, h2, h3, h4, h5, h6, td, th,
|
|
109
|
+
input,
|
|
110
|
+
textarea {
|
|
111
|
+
cursor: url('data:image/svg+xml,<svg width="21" height="21" viewBox="0 0 21 21" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M9 18H6V15H9V18ZM15 18H12V15H15V18ZM12 15H9V6H12V15ZM9 6H6V3H9V6ZM15 6H12V3H15V6Z" fill="%23EFEFEF"/></svg>') 10 10, text !important;
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
a, button,
|
|
115
|
+
input[type="radio"],
|
|
116
|
+
input[type="checkbox"],
|
|
117
|
+
input[type="submit"],
|
|
118
|
+
input[type="button"],
|
|
119
|
+
input[type="range"],
|
|
120
|
+
select {
|
|
121
|
+
cursor: url('data:image/svg+xml,<svg width="21" height="21" viewBox="0 0 21 21" fill="none" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" clip-rule="evenodd" d="M9 0V3V6V9V12H6V9H3V12H6V15H9H12H15H18V12V9V6H15H12V3V0H9Z" fill="%23EFEFEF"/></svg>') 6 0, pointer !important;
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
a *, button * {
|
|
125
|
+
cursor: url('data:image/svg+xml,<svg width="21" height="21" viewBox="0 0 21 21" fill="none" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" clip-rule="evenodd" d="M9 0V3V6V9V12H6V9H3V12H6V15H9H12H15H18V12V9V6H15H12V3V0H9Z" fill="%23EFEFEF"/></svg>') 6 0, pointer !important;
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
.cursor-pointer,
|
|
129
|
+
.cursor-pointer * {
|
|
130
|
+
cursor: url('data:image/svg+xml,<svg width="21" height="21" viewBox="0 0 21 21" fill="none" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" clip-rule="evenodd" d="M9 0V3V6V9V12H6V9H3V12H6V15H9H12H15H18V12V9V6H15H12V3V0H9Z" fill="%23EFEFEF"/></svg>') 6 0, pointer !important;
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
.cursor-text,
|
|
134
|
+
.cursor-text * {
|
|
135
|
+
cursor: url('data:image/svg+xml,<svg width="21" height="21" viewBox="0 0 21 21" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M9 18H6V15H9V18ZM15 18H12V15H15V18ZM12 15H9V6H12V15ZM9 6H6V3H9V6ZM15 6H12V3H15V6Z" fill="%23EFEFEF"/></svg>') 10 10, text !important;
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
.cursor-resize-col,
|
|
139
|
+
.cursor-resize-col * {
|
|
140
|
+
cursor: url('data:image/svg+xml,<svg width="21" height="21" viewBox="0 0 21 21" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M12 18H9V3H12V18ZM6 15H3V12H6V15ZM18 15H15V12H18V15ZM3 12H0V9H3V12ZM21 12H18V9H21V12ZM6 9H3V6H6V9ZM18 9H15V6H18V9Z" fill="%23EFEFEF"/></svg>') 10 10, col-resize !important;
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
.cursor-resize-ew,
|
|
144
|
+
.cursor-resize-ew * {
|
|
145
|
+
cursor: url('data:image/svg+xml,<svg width="21" height="21" viewBox="0 0 21 21" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M9 15H6V12H9V15ZM15 15H12V12H15V15ZM6 12H3V9H6V12ZM18 12H15V9H18V12ZM9 9H6V6H9V9ZM15 9H12V6H15V9Z" fill="%23EFEFEF"/></svg>') 10 10, ew-resize !important;
|
|
146
|
+
}
|
|
147
|
+
|
|
148
|
+
.cursor-resize-ns,
|
|
149
|
+
.cursor-resize-ns * {
|
|
150
|
+
cursor: url('data:image/svg+xml,<svg width="21" height="21" viewBox="0 0 21 21" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M12 18H9V15H12V18ZM9 15H6V12H9V15ZM15 12V15H12V12H15ZM9 9H6V6H9V9ZM15 9H12V6H15V9ZM12 6H9V3H12V6Z" fill="%23EFEFEF"/></svg>') 10 10, ns-resize !important;
|
|
151
|
+
}
|
|
152
|
+
|
|
153
|
+
.cursor-not-allowed,
|
|
154
|
+
.cursor-not-allowed * {
|
|
155
|
+
cursor: url('data:image/svg+xml,<svg width="21" height="21" viewBox="0 0 21 21" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M15 6H18V15H15V18H6V15H3V6H6V3H15V6ZM6 12H15V9H6V12Z" fill="%23EFEFEF"/></svg>') 10 10, not-allowed !important;
|
|
156
|
+
}
|
|
157
|
+
|
|
158
|
+
.cursor-wait,
|
|
159
|
+
.cursor-wait * {
|
|
160
|
+
cursor: url('data:image/svg+xml,<svg width="21" height="21" viewBox="0 0 21 21" fill="none" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" clip-rule="evenodd" d="M6 3H3V6H6V9H9V12H6V15H3V18H6H9H12H15H18V15H15V12H12V9H15V6H18V3H15H12H9H6ZM12 9H9V6H12V9Z" fill="%23EFEFEF"/></svg>') 10 10, wait !important;
|
|
161
|
+
}
|
|
162
|
+
|
|
163
|
+
.cursor-help,
|
|
164
|
+
.cursor-help * {
|
|
165
|
+
cursor: url('data:image/svg+xml,<svg width="21" height="21" viewBox="0 0 21 21" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M12 18H9V15H12V18ZM12 12H9V9H12V12ZM15 9H12V6H15V9ZM12 3V6H6V3H12Z" fill="%23EFEFEF"/></svg>') 10 10, help !important;
|
|
166
|
+
}
|
|
167
|
+
|
|
168
|
+
.cursor-move,
|
|
169
|
+
.cursor-move * {
|
|
170
|
+
cursor: url('data:image/svg+xml,<svg width="21" height="21" viewBox="0 0 21 21" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M12 18H9V15H12V18ZM6 12H3V9H6V12ZM12 12H9V9H12V12ZM18 12H15V9H18V12ZM12 6H9V3H12V6Z" fill="%23EFEFEF"/></svg>') 10 10, move !important;
|
|
171
|
+
}
|
|
172
|
+
|
|
173
|
+
.cursor-crosshair,
|
|
174
|
+
.cursor-crosshair * {
|
|
175
|
+
cursor: url('data:image/svg+xml,<svg width="21" height="21" viewBox="0 0 21 21" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M12 18H9V12H12V18ZM9 12H3V9H9V12ZM18 9V12H12V9H18ZM12 9H9V3H12V9Z" fill="%23EFEFEF"/></svg>') 10 10, crosshair !important;
|
|
176
|
+
}
|
|
177
|
+
|
|
178
|
+
.cursor-resize-nwse,
|
|
179
|
+
.cursor-resize-nwse * {
|
|
180
|
+
cursor: url('data:image/svg+xml,<svg width="21" height="21" viewBox="0 0 21 21" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M18 18H12V15H15V12H18V18ZM9 3V6H6V9H3V3H9Z" fill="%23EFEFEF"/></svg>') 10 10, nwse-resize !important;
|
|
181
|
+
}
|
|
182
|
+
|
|
183
|
+
.cursor-resize-nesw,
|
|
184
|
+
.cursor-resize-nesw * {
|
|
185
|
+
cursor: url('data:image/svg+xml,<svg width="21" height="21" viewBox="0 0 21 21" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M6 15H9V18H3V12H6V15ZM18 9H15V6H12V3H18V9Z" fill="%23EFEFEF"/></svg>') 10 10, nesw-resize !important;
|
|
186
|
+
}
|
|
187
|
+
|
|
188
|
+
input:disabled,
|
|
189
|
+
textarea:disabled,
|
|
190
|
+
button:disabled,
|
|
191
|
+
select:disabled,
|
|
192
|
+
.disabled,
|
|
193
|
+
.disabled * {
|
|
194
|
+
cursor: url('data:image/svg+xml,<svg width="21" height="21" viewBox="0 0 21 21" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M15 6H18V15H15V18H6V15H3V6H6V3H15V6ZM6 12H15V9H6V12Z" fill="%23EFEFEF"/></svg>') 10 10, not-allowed !important;
|
|
195
|
+
}
|
|
196
|
+
}
|
package/dist/index.es.js
CHANGED
|
@@ -294,6 +294,7 @@ function Al(e) {
|
|
|
294
294
|
jt.button,
|
|
295
295
|
jt[t],
|
|
296
296
|
jt[n],
|
|
297
|
+
a.disabled ? "cursor-not-allowed" : "cursor-pointer",
|
|
297
298
|
s
|
|
298
299
|
].filter(Boolean).join(" ");
|
|
299
300
|
return /* @__PURE__ */ b.jsxs("button", { className: f, ...a, children: [
|
|
@@ -314,7 +315,7 @@ const Do = "_checkboxWrapper_1wbyq_1", jo = "_checkbox_1wbyq_1", Lo = "_label_1w
|
|
|
314
315
|
"label",
|
|
315
316
|
{
|
|
316
317
|
htmlFor: o,
|
|
317
|
-
className: `${qe.checkboxWrapper} ${n} ${s ? qe.disabled : ""}`,
|
|
318
|
+
className: `${qe.checkboxWrapper} ${n} ${s ? qe.disabled : ""} ${s ? "cursor-not-allowed" : "cursor-pointer"}`,
|
|
318
319
|
children: [
|
|
319
320
|
/* @__PURE__ */ b.jsx("input", { id: o, type: "checkbox", className: qe.checkbox, ...r }),
|
|
320
321
|
e && /* @__PURE__ */ b.jsx("span", { className: qe.label, children: e }),
|
|
@@ -473,7 +474,7 @@ const pi = "_radioWrapper_1faq0_1", hi = "_radioInput_1faq0_9", mi = "_customRad
|
|
|
473
474
|
checked: o = !1,
|
|
474
475
|
onChange: s,
|
|
475
476
|
disabled: i = !1
|
|
476
|
-
}) => /* @__PURE__ */ b.jsxs("label", { className: `${Ke.radioWrapper} ${i ? Ke.disabled : ""}`, children: [
|
|
477
|
+
}) => /* @__PURE__ */ b.jsxs("label", { className: `${Ke.radioWrapper} ${i ? Ke.disabled : ""} ${i ? "cursor-not-allowed" : "cursor-pointer"}`, children: [
|
|
477
478
|
/* @__PURE__ */ b.jsx(
|
|
478
479
|
"input",
|
|
479
480
|
{
|
|
@@ -506,7 +507,7 @@ const pi = "_radioWrapper_1faq0_1", hi = "_radioInput_1faq0_9", mi = "_customRad
|
|
|
506
507
|
"label",
|
|
507
508
|
{
|
|
508
509
|
htmlFor: i,
|
|
509
|
-
className: `${ct.switch} ${r ? ct.disabled : ""}`,
|
|
510
|
+
className: `${ct.switch} ${r ? ct.disabled : ""} ${r ? "cursor-not-allowed" : "cursor-pointer"}`,
|
|
510
511
|
children: [
|
|
511
512
|
/* @__PURE__ */ b.jsx(
|
|
512
513
|
"input",
|
|
@@ -1251,7 +1252,7 @@ const Fl = (e) => {
|
|
|
1251
1252
|
"div",
|
|
1252
1253
|
{
|
|
1253
1254
|
...w,
|
|
1254
|
-
className: `${re.thumbs} ${o ? re.disabled : ""}`,
|
|
1255
|
+
className: `${re.thumbs} ${o ? re.disabled : ""} ${o ? "cursor-not-allowed" : "cursor-resize-col"}`,
|
|
1255
1256
|
style: {
|
|
1256
1257
|
...w.style,
|
|
1257
1258
|
zIndex: "3"
|
|
@@ -1321,7 +1322,7 @@ const Fl = (e) => {
|
|
|
1321
1322
|
"div",
|
|
1322
1323
|
{
|
|
1323
1324
|
...c,
|
|
1324
|
-
className: `${re.thumbs} ${o ? re.disabled : ""}`,
|
|
1325
|
+
className: `${re.thumbs} ${o ? re.disabled : ""} ${o ? "cursor-not-allowed" : "cursor-resize-col"}`,
|
|
1325
1326
|
style: {
|
|
1326
1327
|
...c.style,
|
|
1327
1328
|
zIndex: "3"
|
|
@@ -4792,7 +4793,7 @@ const Zc = "_trigger_14rt8_1", Gc = "_icon_14rt8_33", Jc = "_content_14rt8_39",
|
|
|
4792
4793
|
className: o = "",
|
|
4793
4794
|
disabled: s = !1
|
|
4794
4795
|
}) => /* @__PURE__ */ b.jsxs(Vc, { value: e, onValueChange: t, disabled: s, children: [
|
|
4795
|
-
/* @__PURE__ */ b.jsxs($c, { className: `${Je.trigger} ${o}`, children: [
|
|
4796
|
+
/* @__PURE__ */ b.jsxs($c, { className: `${Je.trigger} ${o} cursor-pointer`, children: [
|
|
4796
4797
|
/* @__PURE__ */ b.jsx(Hc, { placeholder: r }),
|
|
4797
4798
|
/* @__PURE__ */ b.jsx(zc, { className: Je.icon, children: /* @__PURE__ */ b.jsx(Uo, { size: 14, color: "currentColor" }) })
|
|
4798
4799
|
] }),
|
package/dist/index.umd.js
CHANGED
|
@@ -14,17 +14,17 @@
|
|
|
14
14
|
*
|
|
15
15
|
* This source code is licensed under the MIT license found in the
|
|
16
16
|
* LICENSE file in the root directory of this source tree.
|
|
17
|
-
*/var Cn;function Co(){return Cn||(Cn=1,process.env.NODE_ENV!=="production"&&(function(){function e(S){if(S==null)return null;if(typeof S=="function")return S.$$typeof===W?null:S.displayName||S.name||null;if(typeof S=="string")return S;switch(S){case h:return"Fragment";case y:return"Profiler";case
|
|
17
|
+
*/var Cn;function Co(){return Cn||(Cn=1,process.env.NODE_ENV!=="production"&&(function(){function e(S){if(S==null)return null;if(typeof S=="function")return S.$$typeof===W?null:S.displayName||S.name||null;if(typeof S=="string")return S;switch(S){case h:return"Fragment";case y:return"Profiler";case w:return"StrictMode";case O:return"Suspense";case T:return"SuspenseList";case B:return"Activity"}if(typeof S=="object")switch(typeof S.tag=="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),S.$$typeof){case c:return"Portal";case C:return S.displayName||"Context";case x:return(S._context.displayName||"Context")+".Consumer";case _:var F=S.render;return S=S.displayName,S||(S=F.displayName||F.name||"",S=S!==""?"ForwardRef("+S+")":"ForwardRef"),S;case L:return F=S.displayName||null,F!==null?F:e(S.type)||"Memo";case I:F=S._payload,S=S._init;try{return e(S(F))}catch{}}return null}function t(S){return""+S}function n(S){try{t(S);var F=!1}catch{F=!0}if(F){F=console;var $=F.error,V=typeof Symbol=="function"&&Symbol.toStringTag&&S[Symbol.toStringTag]||S.constructor.name||"Object";return $.call(F,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",V),t(S)}}function r(S){if(S===h)return"<>";if(typeof S=="object"&&S!==null&&S.$$typeof===I)return"<...>";try{var F=e(S);return F?"<"+F+">":"<...>"}catch{return"<...>"}}function o(){var S=E.A;return S===null?null:S.getOwner()}function s(){return Error("react-stack-top-frame")}function i(S){if(R.call(S,"key")){var F=Object.getOwnPropertyDescriptor(S,"key").get;if(F&&F.isReactWarning)return!1}return S.key!==void 0}function a(S,F){function $(){M||(M=!0,console.error("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",F))}$.isReactWarning=!0,Object.defineProperty(S,"key",{get:$,configurable:!0})}function d(){var S=e(this.type);return k[S]||(k[S]=!0,console.error("Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release.")),S=this.props.ref,S!==void 0?S:null}function f(S,F,$,V,q,Q){var D=$.ref;return S={$$typeof:l,type:S,key:F,props:$,_owner:V},(D!==void 0?D:null)!==null?Object.defineProperty(S,"ref",{enumerable:!1,get:d}):Object.defineProperty(S,"ref",{enumerable:!1,value:null}),S._store={},Object.defineProperty(S._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(S,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(S,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:q}),Object.defineProperty(S,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:Q}),Object.freeze&&(Object.freeze(S.props),Object.freeze(S)),S}function g(S,F,$,V,q,Q){var D=F.children;if(D!==void 0)if(V)if(P(D)){for(V=0;V<D.length;V++)m(D[V]);Object.freeze&&Object.freeze(D)}else console.error("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else m(D);if(R.call(F,"key")){D=e(S);var z=Object.keys(F).filter(function(U){return U!=="key"});V=0<z.length?"{key: someKey, "+z.join(": ..., ")+": ...}":"{key: someKey}",H[D+V]||(z=0<z.length?"{"+z.join(": ..., ")+": ...}":"{}",console.error(`A props object containing a "key" prop is being spread into JSX:
|
|
18
18
|
let props = %s;
|
|
19
19
|
<%s {...props} />
|
|
20
20
|
React keys must be passed directly to JSX without using spread:
|
|
21
21
|
let props = %s;
|
|
22
|
-
<%s key={someKey} {...props} />`,$,D,z,D),H[D+$]=!0)}if(D=null,V!==void 0&&(n(V),D=""+V),i(F)&&(n(F.key),D=""+F.key),"key"in F){V={};for(var ee in F)ee!=="key"&&(V[ee]=F[ee])}else V=F;return D&&a(V,typeof S=="function"?S.displayName||S.name||"Unknown":S),f(S,D,V,o(),q,Q)}function m(S){v(S)?S._store&&(S._store.validated=1):typeof S=="object"&&S!==null&&S.$$typeof===I&&(S._payload.status==="fulfilled"?v(S._payload.value)&&S._payload.value._store&&(S._payload.value._store.validated=1):S._store&&(S._store.validated=1))}function v(S){return typeof S=="object"&&S!==null&&S.$$typeof===l}var p=X,l=Symbol.for("react.transitional.element"),c=Symbol.for("react.portal"),h=Symbol.for("react.fragment"),b=Symbol.for("react.strict_mode"),y=Symbol.for("react.profiler"),x=Symbol.for("react.consumer"),C=Symbol.for("react.context"),_=Symbol.for("react.forward_ref"),O=Symbol.for("react.suspense"),T=Symbol.for("react.suspense_list"),L=Symbol.for("react.memo"),I=Symbol.for("react.lazy"),B=Symbol.for("react.activity"),W=Symbol.for("react.client.reference"),E=p.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,R=Object.prototype.hasOwnProperty,P=Array.isArray,N=console.createTask?console.createTask:function(){return null};p={react_stack_bottom_frame:function(S){return S()}};var M,k={},A=p.react_stack_bottom_frame.bind(p,s)(),j=N(r(s)),H={};qe.Fragment=h,qe.jsx=function(S,F,V){var $=1e4>E.recentlyCreatedOwnerStacks++;return g(S,F,V,!1,$?Error("react-stack-top-frame"):A,$?N(r(S)):j)},qe.jsxs=function(S,F,V){var $=1e4>E.recentlyCreatedOwnerStacks++;return g(S,F,V,!0,$?Error("react-stack-top-frame"):A,$?N(r(S)):j)}})()),qe}var Rn;function Ro(){return Rn||(Rn=1,process.env.NODE_ENV==="production"?at.exports=Eo():at.exports=Co()),at.exports}var w=Ro();const Lt={button:"_button_1sns4_1",micro:"_micro_1sns4_22",default:"_default_1sns4_30",large:"_large_1sns4_38",primary:"_primary_1sns4_47",secondary:"_secondary_1sns4_57",ghost:"_ghost_1sns4_67"};function To(e){const{size:t="default",variant:n="primary",iconLeft:r,iconRight:o,className:s,children:i,...a}=e,d=t==="micro"?"14px":t==="large"?"21px":"14px",f=[Lt.button,Lt[t],Lt[n],s].filter(Boolean).join(" ");return w.jsxs("button",{className:f,...a,children:[r&&X.cloneElement(r,{size:d,color:"currentColor"}),i,o&&X.cloneElement(o,{size:d,color:"currentColor"})]})}const Ke={checkboxWrapper:"_checkboxWrapper_1wbyq_1",checkbox:"_checkbox_1wbyq_1",label:"_label_1wbyq_44",score:"_score_1wbyq_48",disabled:"_disabled_1wbyq_55"},Po=({label:e,score:t,className:n="",...r})=>{const o=X.useId(),s=r.disabled;return w.jsxs("label",{htmlFor:o,className:`${Ke.checkboxWrapper} ${n} ${s?Ke.disabled:""}`,children:[w.jsx("input",{id:o,type:"checkbox",className:Ke.checkbox,...r}),e&&w.jsx("span",{className:Ke.label,children:e}),t&&w.jsx("span",{className:Ke.score,children:t})]})},Tn={container:"_container_dlzj1_1",default:"_default_dlzj1_5"};function Oo({children:e,className:t}){return w.jsx("div",{className:`${Tn.container} ${Tn.default} ${t||""}`,children:e})}const Ie={container:"_container_10bfq_1",header:"_header_10bfq_11",title:"_title_10bfq_31",body:"_body_10bfq_49"},Ao=({color:e="black",size:t=21})=>{const n=.7142857142857143,r=t,o=typeof t=="number"?t*n:`calc(${t} * 0.7142857142857143)`;return w.jsx("svg",{width:r,height:o,viewBox:"0 0 7 5",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:w.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M1 1H2V2H1V1ZM3 3H2V2H3V3ZM4 3V4H3V3H4ZM5 2H4V3H5V2ZM5 2V1H6V2H5Z",fill:e})})},ko=({color:e="black",size:t=21})=>{const n=.7142857142857143,r=t,o=typeof t=="number"?t*n:`calc(${t} * 0.7142857142857143)`;return w.jsx("svg",{width:r,height:o,viewBox:"0 0 7 5",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:w.jsx("path",{d:"M6 2V3L1 3L1 2L6 2Z",fill:e})})},Mo=({color:e="black",size:t=21})=>{const n=.7142857142857143,r=t,o=typeof t=="number"?t*n:`calc(${t} * 0.7142857142857143)`;return w.jsx("svg",{width:r,height:o,viewBox:"0 0 7 5",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:w.jsx("path",{d:"M4 5H3V3L1 3L1 2L3 2L3 0L4 0V2L6 2V3H4V5Z",fill:e})})},No=({color:e="black",size:t=21})=>{const n=.7142857142857143,r=t,o=typeof t=="number"?t*n:`calc(${t} * 0.7142857142857143)`;return w.jsx("svg",{width:r,height:o,viewBox:"0 0 7 5",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:w.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M4 0H2V1H1V3H2V4H4V3H5V1H4V0ZM4 1V3H2V1H4ZM6 4H5V5H6V4Z",fill:e})})};function Io({title:e,children:t,className:n="",collapsible:r=!0,collapsed:o=!1}){const[s,i]=X.useState(()=>!o);X.useEffect(()=>{r&&i(!o)},[o,r]);const a=()=>{r&&i(d=>!d)};return w.jsxs("div",{className:`${Ie.container} ${n}`,children:[e&&(r?w.jsxs("button",{type:"button",className:Ie.header,onClick:a,"aria-label":s?"Collapse panel":"Expand panel","aria-expanded":s,children:[w.jsx("div",{className:Ie.title,role:"heading","aria-level":3,children:e}),s?w.jsx(ko,{color:"var(--lv5)",size:14}):w.jsx(Mo,{color:"var(--lv5)",size:14})]}):w.jsx("div",{className:Ie.header,children:w.jsx("div",{className:Ie.title,role:"heading","aria-level":3,children:e})})),(!r||s)&&w.jsx("div",{className:Ie.body,children:t})]})}const ue={wrapper:"_wrapper_tf1yl_1",label:"_label_tf1yl_7",inputContainer:"_inputContainer_tf1yl_12",input:"_input_tf1yl_12",focus:"_focus_tf1yl_35",searchIcon:"_searchIcon_tf1yl_52",rightContent:"_rightContent_tf1yl_67",sizeMicro:"_sizeMicro_tf1yl_78",sizeDefault:"_sizeDefault_tf1yl_87",error:"_error_tf1yl_110",errorText:"_errorText_tf1yl_114"},Do={micro:14,default:21};function jo({label:e,error:t,className:n="",showSearchIcon:r=!0,searchIcon:o,searchIconColor:s,inputSize:i="default",showFocusBorder:a=!1,children:d,...f}){const g=X.useRef(null),m=Do[i],v={};s&&(v["--search-icon-color"]=s);const p="var(--search-icon-color)",l=o??w.jsx(No,{}),c=i==="micro"?ue.sizeMicro:ue.sizeDefault;return w.jsxs("div",{className:`${ue.wrapper} ${n}`,children:[e&&w.jsx("label",{className:ue.label,children:e}),w.jsxs("div",{className:`${ue.inputContainer} ${c}`,children:[r&&w.jsx("span",{className:ue.searchIcon,children:X.cloneElement(l,{size:m,color:s??p})}),w.jsx("input",{ref:g,className:`${ue.input} ${a?ue.focus:""} ${t?ue.error:""}`,style:v,...f}),d&&w.jsx("div",{className:ue.rightContent,children:d})]}),t&&w.jsx("span",{className:ue.errorText,children:t})]})}const De={wrapper:"_wrapper_su5p5_1",label:"_label_su5p5_7",input:"_input_su5p5_12",error:"_error_su5p5_61",errorText:"_errorText_su5p5_69",borderBottom:"_borderBottom_su5p5_75"};function Lo({label:e,error:t,className:n="",isValid:r=!0,variant:o="default",...s}){const i=t||!r;return w.jsxs("div",{className:`${De.wrapper} ${n}`,children:[e&&w.jsx("label",{className:De.label,children:e}),w.jsx("input",{className:`${De.input} ${o==="borderBottom"?De.borderBottom:""} ${i?De.error:""}`,...s}),t&&w.jsx("span",{className:De.errorText,children:t})]})}const Xe={radioWrapper:"_radioWrapper_1faq0_1",radioInput:"_radioInput_1faq0_9",customRadio:"_customRadio_1faq0_23",labelText:"_labelText_1faq0_57",disabled:"_disabled_1faq0_63"},Fo=({id:e,name:t,value:n,label:r,checked:o=!1,onChange:s,disabled:i=!1})=>w.jsxs("label",{className:`${Xe.radioWrapper} ${i?Xe.disabled:""}`,children:[w.jsx("input",{id:e,type:"radio",name:t,value:n,checked:o,onChange:s,disabled:i,className:Xe.radioInput}),w.jsx("span",{className:Xe.customRadio}),w.jsx("span",{className:Xe.labelText,children:r})]}),ct={switch:"_switch_1xsea_1",slider:"_slider_1xsea_23",label:"_label_1xsea_28",disabled:"_disabled_1xsea_43"},Bo=({id:e,checked:t,onChange:n,disabled:r=!1,label:o})=>{const s=X.useId(),i=e||s;return w.jsxs("label",{htmlFor:i,className:`${ct.switch} ${r?ct.disabled:""}`,children:[w.jsx("input",{id:i,type:"checkbox",checked:t,onChange:a=>n(a.target.checked),disabled:r}),w.jsx("span",{className:ct.slider}),o&&w.jsx("span",{className:ct.label,children:o})]})},oe={basetrack:"_basetrack_1ezlq_1",selectedtrack:"_selectedtrack_1ezlq_29",livetrack:"_livetrack_1ezlq_36",livetrackFaceted:"_livetrackFaceted_1ezlq_42",livetrackDefault:"_livetrackDefault_1ezlq_45",thumbs:"_thumbs_1ezlq_48",disabled:"_disabled_1ezlq_82"};var Ze={},ie={},Ge={},Je={},Pn;function Ft(){if(Pn)return Je;Pn=1,Object.defineProperty(Je,"__esModule",{value:!0}),Je.Direction=void 0;var e;return(function(t){t.Right="to right",t.Left="to left",t.Down="to bottom",t.Up="to top"})(e||(Je.Direction=e={})),Je}var On;function An(){return On||(On=1,(function(e){var t=Ge&&Ge.__spreadArray||function(E,R,P){if(P||arguments.length===2)for(var N=0,M=R.length,k;N<M;N++)(k||!(N in R))&&(k||(k=Array.prototype.slice.call(R,0,N)),k[N]=R[N]);return E.concat(k||Array.prototype.slice.call(R))};Object.defineProperty(e,"__esModule",{value:!0}),e.isIOS=e.useThumbOverlap=e.assertUnreachable=e.voidFn=e.getTrackBackground=e.replaceAt=e.schd=e.translate=e.getClosestThumbIndex=e.translateThumbs=e.getPaddingAndBorder=e.getMargin=e.checkInitialOverlap=e.checkValuesAgainstBoundaries=e.checkBoundaries=e.isVertical=e.relativeValue=e.normalizeValue=e.isStepDivisible=e.isTouchEvent=e.getStepDecimals=void 0;var n=X,r=Ft(),o=function(E){var R=E.toString().split(".")[1];return R?R.length:0};e.getStepDecimals=o;function s(E){return E.touches&&E.touches.length||E.changedTouches&&E.changedTouches.length}e.isTouchEvent=s;function i(E,R,P){var N=(R-E)/P,M=8,k=Number(N.toFixed(M));return parseInt(k.toString(),10)===k}e.isStepDivisible=i;function a(E,R,P,N,M,k,A){var j=1e11;if(E=Math.round(E*j)/j,!k){var H=A[R-1],S=A[R+1];if(H&&H>E)return H;if(S&&S<E)return S}if(E>N)return N;if(E<P)return P;var F=Math.floor(E*j-P*j)%Math.floor(M*j),V=Math.floor(E*j-Math.abs(F)),$=F===0?E:V/j,q=Math.abs(F/j)<M/2?$:$+M,Q=(0,e.getStepDecimals)(M);return parseFloat(q.toFixed(Q))}e.normalizeValue=a;function d(E,R,P){return(E-R)/(P-R)}e.relativeValue=d;function f(E){return E===r.Direction.Up||E===r.Direction.Down}e.isVertical=f;function g(E,R,P){if(R>=P)throw new RangeError("min (".concat(R,") is equal/bigger than max (").concat(P,")"));if(E<R)throw new RangeError("value (".concat(E,") is smaller than min (").concat(R,")"));if(E>P)throw new RangeError("value (".concat(E,") is bigger than max (").concat(P,")"))}e.checkBoundaries=g;function m(E,R,P){return E<R?R:E>P?P:E}e.checkValuesAgainstBoundaries=m;function v(E){if(!(E.length<2)&&!E.slice(1).every(function(R,P){return E[P]<=R}))throw new RangeError("values={[".concat(E,"]} needs to be sorted when allowOverlap={false}"))}e.checkInitialOverlap=v;function p(E){var R=window.getComputedStyle(E);return{top:parseInt(R["margin-top"],10),bottom:parseInt(R["margin-bottom"],10),left:parseInt(R["margin-left"],10),right:parseInt(R["margin-right"],10)}}e.getMargin=p;function l(E){var R=window.getComputedStyle(E);return{top:parseInt(R["padding-top"],10)+parseInt(R["border-top-width"],10),bottom:parseInt(R["padding-bottom"],10)+parseInt(R["border-bottom-width"],10),left:parseInt(R["padding-left"],10)+parseInt(R["border-left-width"],10),right:parseInt(R["padding-right"],10)+parseInt(R["border-right-width"],10)}}e.getPaddingAndBorder=l;function c(E,R,P){var N=P?-1:1;E.forEach(function(M,k){return b(M,N*R[k].x,R[k].y)})}e.translateThumbs=c;function h(E,R,P,N){for(var M=0,k=B(E[0],R,P,N),A=1;A<E.length;A++){var j=B(E[A],R,P,N);j<k&&(k=j,M=A)}return M}e.getClosestThumbIndex=h;function b(E,R,P){E.style.transform="translate(".concat(R,"px, ").concat(P,"px)")}e.translate=b;var y=function(E){var R=[],P=null,N=function(){for(var M=[],k=0;k<arguments.length;k++)M[k]=arguments[k];R=M,!P&&(P=requestAnimationFrame(function(){P=null,E.apply(void 0,R)}))};return N};e.schd=y;function x(E,R,P){var N=E.slice(0);return N[R]=P,N}e.replaceAt=x;function C(E){var R=E.values,P=E.colors,N=E.min,M=E.max,k=E.direction,A=k===void 0?r.Direction.Right:k,j=E.rtl,H=j===void 0?!1:j;H&&A===r.Direction.Right?A=r.Direction.Left:H&&r.Direction.Left&&(A=r.Direction.Right);var S=R.slice(0).sort(function(V,$){return V-$}).map(function(V){return(V-N)/(M-N)*100}),F=S.reduce(function(V,$,q){return"".concat(V,", ").concat(P[q]," ").concat($,"%, ").concat(P[q+1]," ").concat($,"%")},"");return"linear-gradient(".concat(A,", ").concat(P[0]," 0%").concat(F,", ").concat(P[P.length-1]," 100%)")}e.getTrackBackground=C;function _(){}e.voidFn=_;function O(E){throw new Error("Didn't expect to get here")}e.assertUnreachable=O;var T=function(E,R,P,N,M){M===void 0&&(M=function(A){return A});var k=Math.ceil(t([E],Array.from(E.children),!0).reduce(function(A,j){var H=Math.ceil(j.getBoundingClientRect().width);if(j.innerText&&j.innerText.includes(P)&&j.childElementCount===0){var S=j.cloneNode(!0);S.innerHTML=M(R.toFixed(N)),S.style.visibility="hidden",document.body.appendChild(S),H=Math.ceil(S.getBoundingClientRect().width),document.body.removeChild(S)}return H>A?H:A},E.getBoundingClientRect().width));return k},L=function(E,R,P,N,M,k,A){A===void 0&&(A=function(S){return S});var j=[],H=function(S){var F=T(P[S],N[S],M,k,A),V=R[S].x;R.forEach(function($,q){var Q=$.x,D=T(P[q],N[q],M,k,A);S!==q&&(V>=Q&&V<=Q+D||V+F>=Q&&V+F<=Q+D)&&(j.includes(q)||(j.push(S),j.push(q),j=t(t([],j,!0),[S,q],!1),H(q)))})};return H(E),Array.from(new Set(j.sort()))},I=function(E,R,P,N,M,k){N===void 0&&(N=.1),M===void 0&&(M=" - "),k===void 0&&(k=function(q){return q});var A=(0,e.getStepDecimals)(N),j=(0,n.useState)({}),H=j[0],S=j[1],F=(0,n.useState)(k(R[P].toFixed(A))),V=F[0],$=F[1];return(0,n.useEffect)(function(){if(E){var q=E.getThumbs();if(q.length<1)return;var Q={},D=E.getOffsets(),z=L(P,D,q,R,M,A,k),ee=k(R[P].toFixed(A));if(z.length){var U=z.reduce(function(le,Pe,Oe,Dt){return le.length?t(t([],le,!0),[D[Dt[Oe]].x],!1):[D[Dt[Oe]].x]},[]);if(Math.min.apply(Math,U)===D[P].x){var Y=[];z.forEach(function(le){Y.push(R[le].toFixed(A))}),ee=Array.from(new Set(Y.sort(function(le,Pe){return parseFloat(le)-parseFloat(Pe)}))).map(k).join(M);var K=Math.min.apply(Math,U),re=Math.max.apply(Math,U),ce=q[z[U.indexOf(re)]].getBoundingClientRect().width;Q.left="".concat(Math.abs(K-(re+ce))/2,"px"),Q.transform="translate(-50%, 0)"}else Q.visibility="hidden"}$(ee),S(Q)}},[E,R]),[V,H]};e.useThumbOverlap=I;function B(E,R,P,N){var M=E.getBoundingClientRect(),k=M.left,A=M.top,j=M.width,H=M.height;return f(N)?Math.abs(P-(A+H/2)):Math.abs(R-(k+j/2))}var W=function(){var E,R=((E=navigator.userAgentData)===null||E===void 0?void 0:E.platform)||navigator.platform;return["iPad Simulator","iPhone Simulator","iPod Simulator","iPad","iPhone","iPod"].includes(R)||navigator.userAgent.includes("Mac")&&"ontouchend"in document};e.isIOS=W})(Ge)),Ge}var kn;function Wo(){if(kn)return ie;kn=1;var e=ie&&ie.__extends||(function(){var m=function(v,p){return m=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(l,c){l.__proto__=c}||function(l,c){for(var h in c)Object.prototype.hasOwnProperty.call(c,h)&&(l[h]=c[h])},m(v,p)};return function(v,p){if(typeof p!="function"&&p!==null)throw new TypeError("Class extends value "+String(p)+" is not a constructor or null");m(v,p);function l(){this.constructor=v}v.prototype=p===null?Object.create(p):(l.prototype=p.prototype,new l)}})(),t=ie&&ie.__createBinding||(Object.create?(function(m,v,p,l){l===void 0&&(l=p);var c=Object.getOwnPropertyDescriptor(v,p);(!c||("get"in c?!v.__esModule:c.writable||c.configurable))&&(c={enumerable:!0,get:function(){return v[p]}}),Object.defineProperty(m,l,c)}):(function(m,v,p,l){l===void 0&&(l=p),m[l]=v[p]})),n=ie&&ie.__setModuleDefault||(Object.create?(function(m,v){Object.defineProperty(m,"default",{enumerable:!0,value:v})}):function(m,v){m.default=v}),r=ie&&ie.__importStar||function(m){if(m&&m.__esModule)return m;var v={};if(m!=null)for(var p in m)p!=="default"&&Object.prototype.hasOwnProperty.call(m,p)&&t(v,m,p);return n(v,m),v},o=ie&&ie.__spreadArray||function(m,v,p){if(p||arguments.length===2)for(var l=0,c=v.length,h;l<c;l++)(h||!(l in v))&&(h||(h=Array.prototype.slice.call(v,0,l)),h[l]=v[l]);return m.concat(h||Array.prototype.slice.call(v))};Object.defineProperty(ie,"__esModule",{value:!0});var s=r(X),i=An(),a=Ft(),d=["ArrowRight","ArrowUp","k","PageUp"],f=["ArrowLeft","ArrowDown","j","PageDown"],g=(function(m){e(v,m);function v(p){var l=m.call(this,p)||this;if(l.trackRef=s.createRef(),l.thumbRefs=[],l.state={draggedTrackPos:[-1,-1],draggedThumbIndex:-1,thumbZIndexes:new Array(l.props.values.length).fill(0).map(function(c,h){return h}),isChanged:!1,markOffsets:[]},l.getOffsets=function(){var c=l.props,h=c.direction,b=c.values,y=c.min,x=c.max,C=l.trackRef.current;if(!C)return console.warn("No track element found."),[];var _=C.getBoundingClientRect(),O=(0,i.getPaddingAndBorder)(C);return l.getThumbs().map(function(T,L){var I={x:0,y:0},B=T.getBoundingClientRect(),W=(0,i.getMargin)(T);switch(h){case a.Direction.Right:return I.x=(W.left+O.left)*-1,I.y=((B.height-_.height)/2+O.top)*-1,I.x+=_.width*(0,i.relativeValue)(b[L],y,x)-B.width/2,I;case a.Direction.Left:return I.x=(W.right+O.right)*-1,I.y=((B.height-_.height)/2+O.top)*-1,I.x+=_.width-_.width*(0,i.relativeValue)(b[L],y,x)-B.width/2,I;case a.Direction.Up:return I.x=((B.width-_.width)/2+W.left+O.left)*-1,I.y=-O.left,I.y+=_.height-_.height*(0,i.relativeValue)(b[L],y,x)-B.height/2,I;case a.Direction.Down:return I.x=((B.width-_.width)/2+W.left+O.left)*-1,I.y=-O.left,I.y+=_.height*(0,i.relativeValue)(b[L],y,x)-B.height/2,I;default:return(0,i.assertUnreachable)(h)}})},l.getThumbs=function(){return l.trackRef&&l.trackRef.current?Array.from(l.trackRef.current.children).filter(function(c){return c.hasAttribute("aria-valuenow")}):(console.warn("No thumbs found in the track container. Did you forget to pass & spread the `props` param in renderTrack?"),[])},l.getTargetIndex=function(c){return l.getThumbs().findIndex(function(h){return h===c.target||h.contains(c.target)})},l.addTouchEvents=function(c){document.addEventListener("touchmove",l.schdOnTouchMove,{passive:!1}),document.addEventListener("touchend",l.schdOnEnd,{passive:!1}),document.addEventListener("touchcancel",l.schdOnEnd,{passive:!1})},l.addMouseEvents=function(c){document.addEventListener("mousemove",l.schdOnMouseMove),document.addEventListener("mouseup",l.schdOnEnd)},l.onMouseDownTrack=function(c){var h;if(!(c.button!==0||(0,i.isIOS)()))if(c.persist(),c.preventDefault(),l.addMouseEvents(c.nativeEvent),l.props.values.length>1&&l.props.draggableTrack){if(l.thumbRefs.some(function(y){var x;return(x=y.current)===null||x===void 0?void 0:x.contains(c.target)}))return;l.setState({draggedTrackPos:[c.clientX,c.clientY]},function(){return l.onMove(c.clientX,c.clientY)})}else{var b=(0,i.getClosestThumbIndex)(l.thumbRefs.map(function(y){return y.current}),c.clientX,c.clientY,l.props.direction);(h=l.thumbRefs[b].current)===null||h===void 0||h.focus(),l.setState({draggedThumbIndex:b},function(){return l.onMove(c.clientX,c.clientY)})}},l.onResize=function(){(0,i.translateThumbs)(l.getThumbs(),l.getOffsets(),l.props.rtl),l.calculateMarkOffsets()},l.onTouchStartTrack=function(c){var h;if(c.persist(),l.addTouchEvents(c.nativeEvent),l.props.values.length>1&&l.props.draggableTrack){if(l.thumbRefs.some(function(y){var x;return(x=y.current)===null||x===void 0?void 0:x.contains(c.target)}))return;l.setState({draggedTrackPos:[c.touches[0].clientX,c.touches[0].clientY]},function(){return l.onMove(c.touches[0].clientX,c.touches[0].clientY)})}else{var b=(0,i.getClosestThumbIndex)(l.thumbRefs.map(function(y){return y.current}),c.touches[0].clientX,c.touches[0].clientY,l.props.direction);(h=l.thumbRefs[b].current)===null||h===void 0||h.focus(),l.setState({draggedThumbIndex:b},function(){return l.onMove(c.touches[0].clientX,c.touches[0].clientY)})}},l.onMouseOrTouchStart=function(c){if(!l.props.disabled){var h=(0,i.isTouchEvent)(c);if(!(!h&&c.button!==0)){var b=l.getTargetIndex(c);b!==-1&&(h?l.addTouchEvents(c):l.addMouseEvents(c),l.setState({draggedThumbIndex:b,thumbZIndexes:l.state.thumbZIndexes.map(function(y,x){return x===b?Math.max.apply(Math,l.state.thumbZIndexes):y<=l.state.thumbZIndexes[b]?y:y-1})}))}}},l.onMouseMove=function(c){c.preventDefault(),l.onMove(c.clientX,c.clientY)},l.onTouchMove=function(c){c.preventDefault(),l.onMove(c.touches[0].clientX,c.touches[0].clientY)},l.onKeyDown=function(c){var h=l.props,b=h.values,y=h.onChange,x=h.step,C=h.rtl,_=h.direction,O=l.state.isChanged,T=l.getTargetIndex(c.nativeEvent),L=C||_===a.Direction.Left||_===a.Direction.Down?-1:1;T!==-1&&(d.includes(c.key)?(c.preventDefault(),l.setState({draggedThumbIndex:T,isChanged:!0}),y((0,i.replaceAt)(b,T,l.normalizeValue(b[T]+L*(c.key==="PageUp"?x*10:x),T)))):f.includes(c.key)?(c.preventDefault(),l.setState({draggedThumbIndex:T,isChanged:!0}),y((0,i.replaceAt)(b,T,l.normalizeValue(b[T]-L*(c.key==="PageDown"?x*10:x),T)))):c.key==="Tab"?l.setState({draggedThumbIndex:-1},function(){O&&l.fireOnFinalChange()}):O&&l.fireOnFinalChange())},l.onKeyUp=function(c){var h=l.state.isChanged;l.setState({draggedThumbIndex:-1},function(){h&&l.fireOnFinalChange()})},l.onMove=function(c,h){var b=l.state,y=b.draggedThumbIndex,x=b.draggedTrackPos,C=l.props,_=C.direction,O=C.min,T=C.max,L=C.onChange,I=C.values,B=C.step,W=C.rtl;if(y===-1&&x[0]===-1&&x[1]===-1)return null;var E=l.trackRef.current;if(!E)return null;var R=E.getBoundingClientRect(),P=(0,i.isVertical)(_)?R.height:R.width;if(x[0]!==-1&&x[1]!==-1){var N=c-x[0],M=h-x[1],k=0;switch(_){case a.Direction.Right:case a.Direction.Left:k=N/P*(T-O);break;case a.Direction.Down:case a.Direction.Up:k=M/P*(T-O);break;default:(0,i.assertUnreachable)(_)}if(W&&(k*=-1),Math.abs(k)>=B/2){for(var A=0;A<l.thumbRefs.length;A++){if(I[A]===T&&Math.sign(k)===1||I[A]===O&&Math.sign(k)===-1)return;var j=I[A]+k;j>T?k=T-I[A]:j<O&&(k=O-I[A])}for(var H=I.slice(0),A=0;A<l.thumbRefs.length;A++)H=(0,i.replaceAt)(H,A,l.normalizeValue(I[A]+k,A));l.setState({draggedTrackPos:[c,h]}),L(H)}}else{var S=0;switch(_){case a.Direction.Right:S=(c-R.left)/P*(T-O)+O;break;case a.Direction.Left:S=(P-(c-R.left))/P*(T-O)+O;break;case a.Direction.Down:S=(h-R.top)/P*(T-O)+O;break;case a.Direction.Up:S=(P-(h-R.top))/P*(T-O)+O;break;default:(0,i.assertUnreachable)(_)}W&&(S=T+O-S),Math.abs(I[y]-S)>=B/2&&L((0,i.replaceAt)(I,y,l.normalizeValue(S,y)))}},l.normalizeValue=function(c,h){var b=l.props,y=b.min,x=b.max,C=b.step,_=b.allowOverlap,O=b.values;return(0,i.normalizeValue)(c,h,y,x,C,_,O)},l.onEnd=function(c){if(c.preventDefault(),document.removeEventListener("mousemove",l.schdOnMouseMove),document.removeEventListener("touchmove",l.schdOnTouchMove),document.removeEventListener("mouseup",l.schdOnEnd),document.removeEventListener("touchend",l.schdOnEnd),document.removeEventListener("touchcancel",l.schdOnEnd),l.state.draggedThumbIndex===-1&&l.state.draggedTrackPos[0]===-1&&l.state.draggedTrackPos[1]===-1)return null;l.setState({draggedThumbIndex:-1,draggedTrackPos:[-1,-1]},function(){l.fireOnFinalChange()})},l.fireOnFinalChange=function(){l.setState({isChanged:!1});var c=l.props,h=c.onFinalChange,b=c.values;h&&h(b)},l.updateMarkRefs=function(c){if(!c.renderMark){l.numOfMarks=void 0,l.markRefs=void 0;return}l.numOfMarks=(c.max-c.min)/l.props.step,l.markRefs=[];for(var h=0;h<l.numOfMarks+1;h++)l.markRefs[h]=s.createRef()},l.calculateMarkOffsets=function(){if(!(!l.props.renderMark||!l.trackRef||!l.numOfMarks||!l.markRefs||l.trackRef.current===null)){for(var c=window.getComputedStyle(l.trackRef.current),h=parseInt(c.width,10),b=parseInt(c.height,10),y=parseInt(c.paddingLeft,10),x=parseInt(c.paddingTop,10),C=[],_=0;_<l.numOfMarks+1;_++){var O=9999,T=9999;if(l.markRefs[_].current){var L=l.markRefs[_].current.getBoundingClientRect();O=L.height,T=L.width}l.props.direction===a.Direction.Left||l.props.direction===a.Direction.Right?C.push([Math.round(h/l.numOfMarks*_+y-T/2),-Math.round((O-b)/2)]):C.push([Math.round(b/l.numOfMarks*_+x-O/2),-Math.round((T-h)/2)])}l.setState({markOffsets:C})}},p.step===0)throw new Error('"step" property should be a positive number');return l.schdOnMouseMove=(0,i.schd)(l.onMouseMove),l.schdOnTouchMove=(0,i.schd)(l.onTouchMove),l.schdOnEnd=(0,i.schd)(l.onEnd),l.thumbRefs=p.values.map(function(){return s.createRef()}),l.updateMarkRefs(p),l}return v.prototype.componentDidMount=function(){var p=this,l=this.props,c=l.values,h=l.min,b=l.step;this.resizeObserver=window.ResizeObserver?new window.ResizeObserver(this.onResize):{observe:function(){return window.addEventListener("resize",p.onResize)},unobserve:function(){return window.removeEventListener("resize",p.onResize)}},document.addEventListener("touchstart",this.onMouseOrTouchStart,{passive:!1}),document.addEventListener("mousedown",this.onMouseOrTouchStart,{passive:!1}),!this.props.allowOverlap&&(0,i.checkInitialOverlap)(this.props.values),this.props.values.forEach(function(y){return(0,i.checkBoundaries)(y,p.props.min,p.props.max)}),this.resizeObserver.observe(this.trackRef.current),(0,i.translateThumbs)(this.getThumbs(),this.getOffsets(),this.props.rtl),this.calculateMarkOffsets(),c.forEach(function(y){(0,i.isStepDivisible)(h,y,b)||console.warn("The `values` property is in conflict with the current `step`, `min`, and `max` properties. Please provide values that are accessible using the min, max, and step values.")})},v.prototype.componentDidUpdate=function(p,l){var c=this.props,h=c.max,b=c.min,y=c.step,x=c.values,C=c.rtl;(p.max!==h||p.min!==b||p.step!==y)&&this.updateMarkRefs(this.props),(0,i.translateThumbs)(this.getThumbs(),this.getOffsets(),C),(p.max!==h||p.min!==b||p.step!==y||l.markOffsets.length!==this.state.markOffsets.length)&&(this.calculateMarkOffsets(),x.forEach(function(_){(0,i.isStepDivisible)(b,_,y)||console.warn("The `values` property is in conflict with the current `step`, `min`, and `max` properties. Please provide values that are accessible using the min, max, and step values.")}))},v.prototype.componentWillUnmount=function(){var p={passive:!1};document.removeEventListener("mousedown",this.onMouseOrTouchStart,p),document.removeEventListener("mousemove",this.schdOnMouseMove),document.removeEventListener("touchmove",this.schdOnTouchMove),document.removeEventListener("touchstart",this.onMouseOrTouchStart),document.removeEventListener("mouseup",this.schdOnEnd),document.removeEventListener("touchend",this.schdOnEnd),this.resizeObserver.unobserve(this.trackRef.current)},v.prototype.render=function(){var p=this,l=this.props,c=l.label,h=l.labelledBy,b=l.renderTrack,y=l.renderThumb,x=l.renderMark,C=x===void 0?function(){return null}:x,_=l.values,O=l.min,T=l.max,L=l.allowOverlap,I=l.disabled,B=this.state,W=B.draggedThumbIndex,E=B.thumbZIndexes,R=B.markOffsets;return b({props:{style:{transform:"scale(1)",cursor:W>-1?"grabbing":this.props.draggableTrack?(0,i.isVertical)(this.props.direction)?"ns-resize":"ew-resize":_.length===1&&!I?"pointer":"inherit"},onMouseDown:I?i.voidFn:this.onMouseDownTrack,onTouchStart:I?i.voidFn:this.onTouchStartTrack,ref:this.trackRef},isDragged:this.state.draggedThumbIndex>-1,disabled:I,children:o(o([],R.map(function(P,N,M){return C({props:{style:p.props.direction===a.Direction.Left||p.props.direction===a.Direction.Right?{position:"absolute",left:"".concat(P[0],"px"),marginTop:"".concat(P[1],"px")}:{position:"absolute",top:"".concat(P[0],"px"),marginLeft:"".concat(P[1],"px")},key:"mark".concat(N),ref:p.markRefs[N]},index:N})}),!0),_.map(function(P,N){var M=p.state.draggedThumbIndex===N;return y({index:N,value:P,isDragged:M,props:{style:{position:"absolute",zIndex:E[N],cursor:I?"inherit":M?"grabbing":"grab",userSelect:"none",touchAction:"none",WebkitUserSelect:"none",MozUserSelect:"none",msUserSelect:"none"},key:N,tabIndex:I?void 0:0,"aria-valuemax":L?T:_[N+1]||T,"aria-valuemin":L?O:_[N-1]||O,"aria-valuenow":P,draggable:!1,ref:p.thumbRefs[N],"aria-label":c,"aria-labelledby":h,role:"slider",onKeyDown:I?i.voidFn:p.onKeyDown,onKeyUp:I?i.voidFn:p.onKeyUp}})}),!0)})},v.defaultProps={label:"Accessibility label",labelledBy:null,step:1,direction:a.Direction.Right,rtl:!1,disabled:!1,allowOverlap:!1,draggableTrack:!1,min:0,max:100},v})(s.Component);return ie.default=g,ie}var Mn;function Vo(){return Mn||(Mn=1,(function(e){var t=Ze&&Ze.__importDefault||function(s){return s&&s.__esModule?s:{default:s}};Object.defineProperty(e,"__esModule",{value:!0}),e.checkValuesAgainstBoundaries=e.relativeValue=e.useThumbOverlap=e.Direction=e.getTrackBackground=e.Range=void 0;var n=t(Wo());e.Range=n.default;var r=An();Object.defineProperty(e,"getTrackBackground",{enumerable:!0,get:function(){return r.getTrackBackground}}),Object.defineProperty(e,"useThumbOverlap",{enumerable:!0,get:function(){return r.useThumbOverlap}}),Object.defineProperty(e,"relativeValue",{enumerable:!0,get:function(){return r.relativeValue}}),Object.defineProperty(e,"checkValuesAgainstBoundaries",{enumerable:!0,get:function(){return r.checkValuesAgainstBoundaries}});var o=Ft();Object.defineProperty(e,"Direction",{enumerable:!0,get:function(){return o.Direction}})})(Ze)),Ze}var Nn=Vo();const $o=e=>{const{min:t,max:n,step:r=1,disabled:o=!1,className:s,activeMin:i,activeMax:a,isFaceted:d=!1,highlightFaceted:f=!0,onChange:g,onFinalChange:m}=e;if("isRange"in e&&e.isRange){const v=e.value,[p,l]=v;return w.jsx("div",{className:s,children:w.jsx(Nn.Range,{step:r,min:t,max:n,values:v,onChange:c=>g(c),onFinalChange:c=>m==null?void 0:m(c),disabled:o,renderTrack:({props:c,children:h})=>{const{key:b,...y}=c,x=n-t,C=(p-t)/x*100,_=(l-p)/x*100;let O=0,T=0;const L=typeof i=="number"&&typeof a=="number"&&a>i&&(i>t||a<n);return L&&(O=(i-t)/x*100,T=(a-i)/x*100),w.jsxs("div",{...y,className:oe.basetrack,style:{...y.style},children:[!L&&w.jsx("div",{className:oe.selectedtrack,style:{left:`${C}%`,width:`${_}%`,zIndex:"1"}}),L&&w.jsx("div",{className:`${oe.livetrack} ${d?oe.livetrackFaceted:oe.livetrackDefault}`,style:{left:`${O}%`,width:`${T}%`,zIndex:"2"}}),h]},b)},renderThumb:({props:c})=>{const{key:h,...b}=c;return w.jsx("div",{...b,className:`${oe.thumbs} ${o?oe.disabled:""}`,style:{...b.style,zIndex:"3"}},h)}})})}else{const v=e.value;return w.jsx("div",{className:s,children:w.jsx(Nn.Range,{step:r,min:t,max:n,values:[v],onChange:p=>g(p[0]),onFinalChange:p=>m==null?void 0:m(p[0]),disabled:o,renderTrack:({props:p,children:l})=>{const{key:c,...h}=p,b=n-t,y=(v-t)/b*100;let x=0,C=0;const _=typeof i=="number"&&typeof a=="number"&&a>i&&(i>t||a<n);return _&&(x=(i-t)/b*100,C=(a-i)/b*100),w.jsxs("div",{...h,className:oe.basetrack,style:{...h.style},children:[!_&&w.jsx("div",{className:oe.selectedtrack,style:{left:"0%",width:`${y}%`,zIndex:"1"}}),_&&w.jsx("div",{className:`${oe.livetrack} ${d?oe.livetrackFaceted:oe.livetrackDefault}`,style:{left:`${x}%`,width:`${C}%`,zIndex:"2"}}),l]},c)},renderThumb:({props:p})=>{const{key:l,...c}=p;return w.jsx("div",{...c,className:`${oe.thumbs} ${o?oe.disabled:""}`,style:{...c.style,zIndex:"3"}},l)}})})}};function In(e,[t,n]){return Math.min(n,Math.max(t,e))}function Z(e,t,{checkForDefaultPrevented:n=!0}={}){return function(o){if(e==null||e(o),n===!1||!o.defaultPrevented)return t==null?void 0:t(o)}}function lt(e,t=[]){let n=[];function r(s,i){const a=u.createContext(i),d=n.length;n=[...n,i];const f=m=>{var b;const{scope:v,children:p,...l}=m,c=((b=v==null?void 0:v[e])==null?void 0:b[d])||a,h=u.useMemo(()=>l,Object.values(l));return w.jsx(c.Provider,{value:h,children:p})};f.displayName=s+"Provider";function g(m,v){var c;const p=((c=v==null?void 0:v[e])==null?void 0:c[d])||a,l=u.useContext(p);if(l)return l;if(i!==void 0)return i;throw new Error(`\`${m}\` must be used within \`${s}\``)}return[f,g]}const o=()=>{const s=n.map(i=>u.createContext(i));return function(a){const d=(a==null?void 0:a[e])||s;return u.useMemo(()=>({[`__scope${e}`]:{...a,[e]:d}}),[a,d])}};return o.scopeName=e,[r,Ho(o,...t)]}function Ho(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const r=e.map(o=>({useScope:o(),scopeName:o.scopeName}));return function(s){const i=r.reduce((a,{useScope:d,scopeName:f})=>{const m=d(s)[`__scope${f}`];return{...a,...m}},{});return u.useMemo(()=>({[`__scope${t.scopeName}`]:i}),[i])}};return n.scopeName=t.scopeName,n}function Dn(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function jn(...e){return t=>{let n=!1;const r=e.map(o=>{const s=Dn(o,t);return!n&&typeof s=="function"&&(n=!0),s});if(n)return()=>{for(let o=0;o<r.length;o++){const s=r[o];typeof s=="function"?s():Dn(e[o],null)}}}}function te(...e){return u.useCallback(jn(...e),e)}function Qe(e){const t=zo(e),n=u.forwardRef((r,o)=>{const{children:s,...i}=r,a=u.Children.toArray(s),d=a.find(Yo);if(d){const f=d.props.children,g=a.map(m=>m===d?u.Children.count(f)>1?u.Children.only(null):u.isValidElement(f)?f.props.children:null:m);return w.jsx(t,{...i,ref:o,children:u.isValidElement(f)?u.cloneElement(f,void 0,g):null})}return w.jsx(t,{...i,ref:o,children:s})});return n.displayName=`${e}.Slot`,n}function zo(e){const t=u.forwardRef((n,r)=>{const{children:o,...s}=n;if(u.isValidElement(o)){const i=Ko(o),a=qo(s,o.props);return o.type!==u.Fragment&&(a.ref=r?jn(r,i):i),u.cloneElement(o,a)}return u.Children.count(o)>1?u.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var Uo=Symbol("radix.slottable");function Yo(e){return u.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===Uo}function qo(e,t){const n={...t};for(const r in t){const o=e[r],s=t[r];/^on[A-Z]/.test(r)?o&&s?n[r]=(...a)=>{const d=s(...a);return o(...a),d}:o&&(n[r]=o):r==="style"?n[r]={...o,...s}:r==="className"&&(n[r]=[o,s].filter(Boolean).join(" "))}return{...e,...n}}function Ko(e){var r,o;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}function Xo(e){const t=e+"CollectionProvider",[n,r]=lt(t),[o,s]=n(t,{collectionRef:{current:null},itemMap:new Map}),i=c=>{const{scope:h,children:b}=c,y=X.useRef(null),x=X.useRef(new Map).current;return w.jsx(o,{scope:h,itemMap:x,collectionRef:y,children:b})};i.displayName=t;const a=e+"CollectionSlot",d=Qe(a),f=X.forwardRef((c,h)=>{const{scope:b,children:y}=c,x=s(a,b),C=te(h,x.collectionRef);return w.jsx(d,{ref:C,children:y})});f.displayName=a;const g=e+"CollectionItemSlot",m="data-radix-collection-item",v=Qe(g),p=X.forwardRef((c,h)=>{const{scope:b,children:y,...x}=c,C=X.useRef(null),_=te(h,C),O=s(g,b);return X.useEffect(()=>(O.itemMap.set(C,{ref:C,...x}),()=>void O.itemMap.delete(C))),w.jsx(v,{[m]:"",ref:_,children:y})});p.displayName=g;function l(c){const h=s(e+"CollectionConsumer",c);return X.useCallback(()=>{const y=h.collectionRef.current;if(!y)return[];const x=Array.from(y.querySelectorAll(`[${m}]`));return Array.from(h.itemMap.values()).sort((O,T)=>x.indexOf(O.ref.current)-x.indexOf(T.ref.current))},[h.collectionRef,h.itemMap])}return[{Provider:i,Slot:f,ItemSlot:p},l,r]}var Zo=u.createContext(void 0);function Go(e){const t=u.useContext(Zo);return e||t||"ltr"}var Jo=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],J=Jo.reduce((e,t)=>{const n=Qe(`Primitive.${t}`),r=u.forwardRef((o,s)=>{const{asChild:i,...a}=o,d=i?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),w.jsx(d,{...a,ref:s})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});function Qo(e,t){e&&st.flushSync(()=>e.dispatchEvent(t))}function Ae(e){const t=u.useRef(e);return u.useEffect(()=>{t.current=e}),u.useMemo(()=>(...n)=>{var r;return(r=t.current)==null?void 0:r.call(t,...n)},[])}function ei(e,t=globalThis==null?void 0:globalThis.document){const n=Ae(e);u.useEffect(()=>{const r=o=>{o.key==="Escape"&&n(o)};return t.addEventListener("keydown",r,{capture:!0}),()=>t.removeEventListener("keydown",r,{capture:!0})},[n,t])}var ti="DismissableLayer",Bt="dismissableLayer.update",ni="dismissableLayer.pointerDownOutside",ri="dismissableLayer.focusOutside",Ln,Fn=u.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),Wt=u.forwardRef((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:r,onPointerDownOutside:o,onFocusOutside:s,onInteractOutside:i,onDismiss:a,...d}=e,f=u.useContext(Fn),[g,m]=u.useState(null),v=(g==null?void 0:g.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,p]=u.useState({}),l=te(t,T=>m(T)),c=Array.from(f.layers),[h]=[...f.layersWithOutsidePointerEventsDisabled].slice(-1),b=c.indexOf(h),y=g?c.indexOf(g):-1,x=f.layersWithOutsidePointerEventsDisabled.size>0,C=y>=b,_=si(T=>{const L=T.target,I=[...f.branches].some(B=>B.contains(L));!C||I||(o==null||o(T),i==null||i(T),T.defaultPrevented||a==null||a())},v),O=ai(T=>{const L=T.target;[...f.branches].some(B=>B.contains(L))||(s==null||s(T),i==null||i(T),T.defaultPrevented||a==null||a())},v);return ei(T=>{y===f.layers.size-1&&(r==null||r(T),!T.defaultPrevented&&a&&(T.preventDefault(),a()))},v),u.useEffect(()=>{if(g)return n&&(f.layersWithOutsidePointerEventsDisabled.size===0&&(Ln=v.body.style.pointerEvents,v.body.style.pointerEvents="none"),f.layersWithOutsidePointerEventsDisabled.add(g)),f.layers.add(g),Bn(),()=>{n&&f.layersWithOutsidePointerEventsDisabled.size===1&&(v.body.style.pointerEvents=Ln)}},[g,v,n,f]),u.useEffect(()=>()=>{g&&(f.layers.delete(g),f.layersWithOutsidePointerEventsDisabled.delete(g),Bn())},[g,f]),u.useEffect(()=>{const T=()=>p({});return document.addEventListener(Bt,T),()=>document.removeEventListener(Bt,T)},[]),w.jsx(J.div,{...d,ref:l,style:{pointerEvents:x?C?"auto":"none":void 0,...e.style},onFocusCapture:Z(e.onFocusCapture,O.onFocusCapture),onBlurCapture:Z(e.onBlurCapture,O.onBlurCapture),onPointerDownCapture:Z(e.onPointerDownCapture,_.onPointerDownCapture)})});Wt.displayName=ti;var oi="DismissableLayerBranch",ii=u.forwardRef((e,t)=>{const n=u.useContext(Fn),r=u.useRef(null),o=te(t,r);return u.useEffect(()=>{const s=r.current;if(s)return n.branches.add(s),()=>{n.branches.delete(s)}},[n.branches]),w.jsx(J.div,{...e,ref:o})});ii.displayName=oi;function si(e,t=globalThis==null?void 0:globalThis.document){const n=Ae(e),r=u.useRef(!1),o=u.useRef(()=>{});return u.useEffect(()=>{const s=a=>{if(a.target&&!r.current){let d=function(){Wn(ni,n,f,{discrete:!0})};const f={originalEvent:a};a.pointerType==="touch"?(t.removeEventListener("click",o.current),o.current=d,t.addEventListener("click",o.current,{once:!0})):d()}else t.removeEventListener("click",o.current);r.current=!1},i=window.setTimeout(()=>{t.addEventListener("pointerdown",s)},0);return()=>{window.clearTimeout(i),t.removeEventListener("pointerdown",s),t.removeEventListener("click",o.current)}},[t,n]),{onPointerDownCapture:()=>r.current=!0}}function ai(e,t=globalThis==null?void 0:globalThis.document){const n=Ae(e),r=u.useRef(!1);return u.useEffect(()=>{const o=s=>{s.target&&!r.current&&Wn(ri,n,{originalEvent:s},{discrete:!1})};return t.addEventListener("focusin",o),()=>t.removeEventListener("focusin",o)},[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}function Bn(){const e=new CustomEvent(Bt);document.dispatchEvent(e)}function Wn(e,t,n,{discrete:r}){const o=n.originalEvent.target,s=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&o.addEventListener(e,t,{once:!0}),r?Qo(o,s):o.dispatchEvent(s)}var Vt=0;function Vn(){u.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??$n()),document.body.insertAdjacentElement("beforeend",e[1]??$n()),Vt++,()=>{Vt===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),Vt--}},[])}function $n(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.style.position="fixed",e.style.pointerEvents="none",e}var $t="focusScope.autoFocusOnMount",Ht="focusScope.autoFocusOnUnmount",Hn={bubbles:!1,cancelable:!0},ci="FocusScope",zt=u.forwardRef((e,t)=>{const{loop:n=!1,trapped:r=!1,onMountAutoFocus:o,onUnmountAutoFocus:s,...i}=e,[a,d]=u.useState(null),f=Ae(o),g=Ae(s),m=u.useRef(null),v=te(t,c=>d(c)),p=u.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;u.useEffect(()=>{if(r){let c=function(x){if(p.paused||!a)return;const C=x.target;a.contains(C)?m.current=C:xe(m.current,{select:!0})},h=function(x){if(p.paused||!a)return;const C=x.relatedTarget;C!==null&&(a.contains(C)||xe(m.current,{select:!0}))},b=function(x){if(document.activeElement===document.body)for(const _ of x)_.removedNodes.length>0&&xe(a)};document.addEventListener("focusin",c),document.addEventListener("focusout",h);const y=new MutationObserver(b);return a&&y.observe(a,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",c),document.removeEventListener("focusout",h),y.disconnect()}}},[r,a,p.paused]),u.useEffect(()=>{if(a){Yn.add(p);const c=document.activeElement;if(!a.contains(c)){const b=new CustomEvent($t,Hn);a.addEventListener($t,f),a.dispatchEvent(b),b.defaultPrevented||(li(hi(zn(a)),{select:!0}),document.activeElement===c&&xe(a))}return()=>{a.removeEventListener($t,f),setTimeout(()=>{const b=new CustomEvent(Ht,Hn);a.addEventListener(Ht,g),a.dispatchEvent(b),b.defaultPrevented||xe(c??document.body,{select:!0}),a.removeEventListener(Ht,g),Yn.remove(p)},0)}}},[a,f,g,p]);const l=u.useCallback(c=>{if(!n&&!r||p.paused)return;const h=c.key==="Tab"&&!c.altKey&&!c.ctrlKey&&!c.metaKey,b=document.activeElement;if(h&&b){const y=c.currentTarget,[x,C]=ui(y);x&&C?!c.shiftKey&&b===C?(c.preventDefault(),n&&xe(x,{select:!0})):c.shiftKey&&b===x&&(c.preventDefault(),n&&xe(C,{select:!0})):b===y&&c.preventDefault()}},[n,r,p.paused]);return w.jsx(J.div,{tabIndex:-1,...i,ref:v,onKeyDown:l})});zt.displayName=ci;function li(e,{select:t=!1}={}){const n=document.activeElement;for(const r of e)if(xe(r,{select:t}),document.activeElement!==n)return}function ui(e){const t=zn(e),n=Un(t,e),r=Un(t.reverse(),e);return[n,r]}function zn(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>{const o=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||o?NodeFilter.FILTER_SKIP:r.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function Un(e,t){for(const n of e)if(!di(n,{upTo:t}))return n}function di(e,{upTo:t}){if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1}function fi(e){return e instanceof HTMLInputElement&&"select"in e}function xe(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&fi(e)&&t&&e.select()}}var Yn=pi();function pi(){let e=[];return{add(t){const n=e[0];t!==n&&(n==null||n.pause()),e=qn(e,t),e.unshift(t)},remove(t){var n;e=qn(e,t),(n=e[0])==null||n.resume()}}}function qn(e,t){const n=[...e],r=n.indexOf(t);return r!==-1&&n.splice(r,1),n}function hi(e){return e.filter(t=>t.tagName!=="A")}var ne=globalThis!=null&&globalThis.document?u.useLayoutEffect:()=>{},mi=u[" useId ".trim().toString()]||(()=>{}),vi=0;function ut(e){const[t,n]=u.useState(mi());return ne(()=>{n(r=>r??String(vi++))},[e]),e||(t?`radix-${t}`:"")}const gi=["top","right","bottom","left"],Se=Math.min,se=Math.max,dt=Math.round,ft=Math.floor,he=e=>({x:e,y:e}),yi={left:"right",right:"left",bottom:"top",top:"bottom"},bi={start:"end",end:"start"};function Ut(e,t,n){return se(e,Se(t,n))}function be(e,t){return typeof e=="function"?e(t):e}function we(e){return e.split("-")[0]}function je(e){return e.split("-")[1]}function Yt(e){return e==="x"?"y":"x"}function qt(e){return e==="y"?"height":"width"}const wi=new Set(["top","bottom"]);function me(e){return wi.has(we(e))?"y":"x"}function Kt(e){return Yt(me(e))}function xi(e,t,n){n===void 0&&(n=!1);const r=je(e),o=Kt(e),s=qt(o);let i=o==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[s]>t.floating[s]&&(i=pt(i)),[i,pt(i)]}function Si(e){const t=pt(e);return[Xt(e),t,Xt(t)]}function Xt(e){return e.replace(/start|end/g,t=>bi[t])}const Kn=["left","right"],Xn=["right","left"],_i=["top","bottom"],Ei=["bottom","top"];function Ci(e,t,n){switch(e){case"top":case"bottom":return n?t?Xn:Kn:t?Kn:Xn;case"left":case"right":return t?_i:Ei;default:return[]}}function Ri(e,t,n,r){const o=je(e);let s=Ci(we(e),n==="start",r);return o&&(s=s.map(i=>i+"-"+o),t&&(s=s.concat(s.map(Xt)))),s}function pt(e){return e.replace(/left|right|bottom|top/g,t=>yi[t])}function Ti(e){return{top:0,right:0,bottom:0,left:0,...e}}function Zn(e){return typeof e!="number"?Ti(e):{top:e,right:e,bottom:e,left:e}}function ht(e){const{x:t,y:n,width:r,height:o}=e;return{width:r,height:o,top:n,left:t,right:t+r,bottom:n+o,x:t,y:n}}function Gn(e,t,n){let{reference:r,floating:o}=e;const s=me(t),i=Kt(t),a=qt(i),d=we(t),f=s==="y",g=r.x+r.width/2-o.width/2,m=r.y+r.height/2-o.height/2,v=r[a]/2-o[a]/2;let p;switch(d){case"top":p={x:g,y:r.y-o.height};break;case"bottom":p={x:g,y:r.y+r.height};break;case"right":p={x:r.x+r.width,y:m};break;case"left":p={x:r.x-o.width,y:m};break;default:p={x:r.x,y:r.y}}switch(je(t)){case"start":p[i]-=v*(n&&f?-1:1);break;case"end":p[i]+=v*(n&&f?-1:1);break}return p}const Pi=async(e,t,n)=>{const{placement:r="bottom",strategy:o="absolute",middleware:s=[],platform:i}=n,a=s.filter(Boolean),d=await(i.isRTL==null?void 0:i.isRTL(t));let f=await i.getElementRects({reference:e,floating:t,strategy:o}),{x:g,y:m}=Gn(f,r,d),v=r,p={},l=0;for(let c=0;c<a.length;c++){const{name:h,fn:b}=a[c],{x:y,y:x,data:C,reset:_}=await b({x:g,y:m,initialPlacement:r,placement:v,strategy:o,middlewareData:p,rects:f,platform:i,elements:{reference:e,floating:t}});g=y??g,m=x??m,p={...p,[h]:{...p[h],...C}},_&&l<=50&&(l++,typeof _=="object"&&(_.placement&&(v=_.placement),_.rects&&(f=_.rects===!0?await i.getElementRects({reference:e,floating:t,strategy:o}):_.rects),{x:g,y:m}=Gn(f,v,d)),c=-1)}return{x:g,y:m,placement:v,strategy:o,middlewareData:p}};async function et(e,t){var n;t===void 0&&(t={});const{x:r,y:o,platform:s,rects:i,elements:a,strategy:d}=e,{boundary:f="clippingAncestors",rootBoundary:g="viewport",elementContext:m="floating",altBoundary:v=!1,padding:p=0}=be(t,e),l=Zn(p),h=a[v?m==="floating"?"reference":"floating":m],b=ht(await s.getClippingRect({element:(n=await(s.isElement==null?void 0:s.isElement(h)))==null||n?h:h.contextElement||await(s.getDocumentElement==null?void 0:s.getDocumentElement(a.floating)),boundary:f,rootBoundary:g,strategy:d})),y=m==="floating"?{x:r,y:o,width:i.floating.width,height:i.floating.height}:i.reference,x=await(s.getOffsetParent==null?void 0:s.getOffsetParent(a.floating)),C=await(s.isElement==null?void 0:s.isElement(x))?await(s.getScale==null?void 0:s.getScale(x))||{x:1,y:1}:{x:1,y:1},_=ht(s.convertOffsetParentRelativeRectToViewportRelativeRect?await s.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:y,offsetParent:x,strategy:d}):y);return{top:(b.top-_.top+l.top)/C.y,bottom:(_.bottom-b.bottom+l.bottom)/C.y,left:(b.left-_.left+l.left)/C.x,right:(_.right-b.right+l.right)/C.x}}const Oi=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:o,rects:s,platform:i,elements:a,middlewareData:d}=t,{element:f,padding:g=0}=be(e,t)||{};if(f==null)return{};const m=Zn(g),v={x:n,y:r},p=Kt(o),l=qt(p),c=await i.getDimensions(f),h=p==="y",b=h?"top":"left",y=h?"bottom":"right",x=h?"clientHeight":"clientWidth",C=s.reference[l]+s.reference[p]-v[p]-s.floating[l],_=v[p]-s.reference[p],O=await(i.getOffsetParent==null?void 0:i.getOffsetParent(f));let T=O?O[x]:0;(!T||!await(i.isElement==null?void 0:i.isElement(O)))&&(T=a.floating[x]||s.floating[l]);const L=C/2-_/2,I=T/2-c[l]/2-1,B=Se(m[b],I),W=Se(m[y],I),E=B,R=T-c[l]-W,P=T/2-c[l]/2+L,N=Ut(E,P,R),M=!d.arrow&&je(o)!=null&&P!==N&&s.reference[l]/2-(P<E?B:W)-c[l]/2<0,k=M?P<E?P-E:P-R:0;return{[p]:v[p]+k,data:{[p]:N,centerOffset:P-N-k,...M&&{alignmentOffset:k}},reset:M}}}),Ai=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:o,middlewareData:s,rects:i,initialPlacement:a,platform:d,elements:f}=t,{mainAxis:g=!0,crossAxis:m=!0,fallbackPlacements:v,fallbackStrategy:p="bestFit",fallbackAxisSideDirection:l="none",flipAlignment:c=!0,...h}=be(e,t);if((n=s.arrow)!=null&&n.alignmentOffset)return{};const b=we(o),y=me(a),x=we(a)===a,C=await(d.isRTL==null?void 0:d.isRTL(f.floating)),_=v||(x||!c?[pt(a)]:Si(a)),O=l!=="none";!v&&O&&_.push(...Ri(a,c,l,C));const T=[a,..._],L=await et(t,h),I=[];let B=((r=s.flip)==null?void 0:r.overflows)||[];if(g&&I.push(L[b]),m){const P=xi(o,i,C);I.push(L[P[0]],L[P[1]])}if(B=[...B,{placement:o,overflows:I}],!I.every(P=>P<=0)){var W,E;const P=(((W=s.flip)==null?void 0:W.index)||0)+1,N=T[P];if(N&&(!(m==="alignment"?y!==me(N):!1)||B.every(A=>me(A.placement)===y?A.overflows[0]>0:!0)))return{data:{index:P,overflows:B},reset:{placement:N}};let M=(E=B.filter(k=>k.overflows[0]<=0).sort((k,A)=>k.overflows[1]-A.overflows[1])[0])==null?void 0:E.placement;if(!M)switch(p){case"bestFit":{var R;const k=(R=B.filter(A=>{if(O){const j=me(A.placement);return j===y||j==="y"}return!0}).map(A=>[A.placement,A.overflows.filter(j=>j>0).reduce((j,H)=>j+H,0)]).sort((A,j)=>A[1]-j[1])[0])==null?void 0:R[0];k&&(M=k);break}case"initialPlacement":M=a;break}if(o!==M)return{reset:{placement:M}}}return{}}}};function Jn(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function Qn(e){return gi.some(t=>e[t]>=0)}const ki=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n}=t,{strategy:r="referenceHidden",...o}=be(e,t);switch(r){case"referenceHidden":{const s=await et(t,{...o,elementContext:"reference"}),i=Jn(s,n.reference);return{data:{referenceHiddenOffsets:i,referenceHidden:Qn(i)}}}case"escaped":{const s=await et(t,{...o,altBoundary:!0}),i=Jn(s,n.floating);return{data:{escapedOffsets:i,escaped:Qn(i)}}}default:return{}}}}},er=new Set(["left","top"]);async function Mi(e,t){const{placement:n,platform:r,elements:o}=e,s=await(r.isRTL==null?void 0:r.isRTL(o.floating)),i=we(n),a=je(n),d=me(n)==="y",f=er.has(i)?-1:1,g=s&&d?-1:1,m=be(t,e);let{mainAxis:v,crossAxis:p,alignmentAxis:l}=typeof m=="number"?{mainAxis:m,crossAxis:0,alignmentAxis:null}:{mainAxis:m.mainAxis||0,crossAxis:m.crossAxis||0,alignmentAxis:m.alignmentAxis};return a&&typeof l=="number"&&(p=a==="end"?l*-1:l),d?{x:p*g,y:v*f}:{x:v*f,y:p*g}}const Ni=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:o,y:s,placement:i,middlewareData:a}=t,d=await Mi(t,e);return i===((n=a.offset)==null?void 0:n.placement)&&(r=a.arrow)!=null&&r.alignmentOffset?{}:{x:o+d.x,y:s+d.y,data:{...d,placement:i}}}}},Ii=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:o}=t,{mainAxis:s=!0,crossAxis:i=!1,limiter:a={fn:h=>{let{x:b,y}=h;return{x:b,y}}},...d}=be(e,t),f={x:n,y:r},g=await et(t,d),m=me(we(o)),v=Yt(m);let p=f[v],l=f[m];if(s){const h=v==="y"?"top":"left",b=v==="y"?"bottom":"right",y=p+g[h],x=p-g[b];p=Ut(y,p,x)}if(i){const h=m==="y"?"top":"left",b=m==="y"?"bottom":"right",y=l+g[h],x=l-g[b];l=Ut(y,l,x)}const c=a.fn({...t,[v]:p,[m]:l});return{...c,data:{x:c.x-n,y:c.y-r,enabled:{[v]:s,[m]:i}}}}}},Di=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:n,y:r,placement:o,rects:s,middlewareData:i}=t,{offset:a=0,mainAxis:d=!0,crossAxis:f=!0}=be(e,t),g={x:n,y:r},m=me(o),v=Yt(m);let p=g[v],l=g[m];const c=be(a,t),h=typeof c=="number"?{mainAxis:c,crossAxis:0}:{mainAxis:0,crossAxis:0,...c};if(d){const x=v==="y"?"height":"width",C=s.reference[v]-s.floating[x]+h.mainAxis,_=s.reference[v]+s.reference[x]-h.mainAxis;p<C?p=C:p>_&&(p=_)}if(f){var b,y;const x=v==="y"?"width":"height",C=er.has(we(o)),_=s.reference[m]-s.floating[x]+(C&&((b=i.offset)==null?void 0:b[m])||0)+(C?0:h.crossAxis),O=s.reference[m]+s.reference[x]+(C?0:((y=i.offset)==null?void 0:y[m])||0)-(C?h.crossAxis:0);l<_?l=_:l>O&&(l=O)}return{[v]:p,[m]:l}}}},ji=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var n,r;const{placement:o,rects:s,platform:i,elements:a}=t,{apply:d=()=>{},...f}=be(e,t),g=await et(t,f),m=we(o),v=je(o),p=me(o)==="y",{width:l,height:c}=s.floating;let h,b;m==="top"||m==="bottom"?(h=m,b=v===(await(i.isRTL==null?void 0:i.isRTL(a.floating))?"start":"end")?"left":"right"):(b=m,h=v==="end"?"top":"bottom");const y=c-g.top-g.bottom,x=l-g.left-g.right,C=Se(c-g[h],y),_=Se(l-g[b],x),O=!t.middlewareData.shift;let T=C,L=_;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(L=x),(r=t.middlewareData.shift)!=null&&r.enabled.y&&(T=y),O&&!v){const B=se(g.left,0),W=se(g.right,0),E=se(g.top,0),R=se(g.bottom,0);p?L=l-2*(B!==0||W!==0?B+W:se(g.left,g.right)):T=c-2*(E!==0||R!==0?E+R:se(g.top,g.bottom))}await d({...t,availableWidth:L,availableHeight:T});const I=await i.getDimensions(a.floating);return l!==I.width||c!==I.height?{reset:{rects:!0}}:{}}}};function mt(){return typeof window<"u"}function Le(e){return tr(e)?(e.nodeName||"").toLowerCase():"#document"}function ae(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function ve(e){var t;return(t=(tr(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function tr(e){return mt()?e instanceof Node||e instanceof ae(e).Node:!1}function de(e){return mt()?e instanceof Element||e instanceof ae(e).Element:!1}function ge(e){return mt()?e instanceof HTMLElement||e instanceof ae(e).HTMLElement:!1}function nr(e){return!mt()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof ae(e).ShadowRoot}const Li=new Set(["inline","contents"]);function tt(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=fe(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!Li.has(o)}const Fi=new Set(["table","td","th"]);function Bi(e){return Fi.has(Le(e))}const Wi=[":popover-open",":modal"];function vt(e){return Wi.some(t=>{try{return e.matches(t)}catch{return!1}})}const Vi=["transform","translate","scale","rotate","perspective"],$i=["transform","translate","scale","rotate","perspective","filter"],Hi=["paint","layout","strict","content"];function Zt(e){const t=Gt(),n=de(e)?fe(e):e;return Vi.some(r=>n[r]?n[r]!=="none":!1)||(n.containerType?n.containerType!=="normal":!1)||!t&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!t&&(n.filter?n.filter!=="none":!1)||$i.some(r=>(n.willChange||"").includes(r))||Hi.some(r=>(n.contain||"").includes(r))}function zi(e){let t=_e(e);for(;ge(t)&&!Fe(t);){if(Zt(t))return t;if(vt(t))return null;t=_e(t)}return null}function Gt(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const Ui=new Set(["html","body","#document"]);function Fe(e){return Ui.has(Le(e))}function fe(e){return ae(e).getComputedStyle(e)}function gt(e){return de(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function _e(e){if(Le(e)==="html")return e;const t=e.assignedSlot||e.parentNode||nr(e)&&e.host||ve(e);return nr(t)?t.host:t}function rr(e){const t=_e(e);return Fe(t)?e.ownerDocument?e.ownerDocument.body:e.body:ge(t)&&tt(t)?t:rr(t)}function nt(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const o=rr(e),s=o===((r=e.ownerDocument)==null?void 0:r.body),i=ae(o);if(s){const a=Jt(i);return t.concat(i,i.visualViewport||[],tt(o)?o:[],a&&n?nt(a):[])}return t.concat(o,nt(o,[],n))}function Jt(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function or(e){const t=fe(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const o=ge(e),s=o?e.offsetWidth:n,i=o?e.offsetHeight:r,a=dt(n)!==s||dt(r)!==i;return a&&(n=s,r=i),{width:n,height:r,$:a}}function Qt(e){return de(e)?e:e.contextElement}function Be(e){const t=Qt(e);if(!ge(t))return he(1);const n=t.getBoundingClientRect(),{width:r,height:o,$:s}=or(t);let i=(s?dt(n.width):n.width)/r,a=(s?dt(n.height):n.height)/o;return(!i||!Number.isFinite(i))&&(i=1),(!a||!Number.isFinite(a))&&(a=1),{x:i,y:a}}const Yi=he(0);function ir(e){const t=ae(e);return!Gt()||!t.visualViewport?Yi:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function qi(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==ae(e)?!1:t}function ke(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const o=e.getBoundingClientRect(),s=Qt(e);let i=he(1);t&&(r?de(r)&&(i=Be(r)):i=Be(e));const a=qi(s,n,r)?ir(s):he(0);let d=(o.left+a.x)/i.x,f=(o.top+a.y)/i.y,g=o.width/i.x,m=o.height/i.y;if(s){const v=ae(s),p=r&&de(r)?ae(r):r;let l=v,c=Jt(l);for(;c&&r&&p!==l;){const h=Be(c),b=c.getBoundingClientRect(),y=fe(c),x=b.left+(c.clientLeft+parseFloat(y.paddingLeft))*h.x,C=b.top+(c.clientTop+parseFloat(y.paddingTop))*h.y;d*=h.x,f*=h.y,g*=h.x,m*=h.y,d+=x,f+=C,l=ae(c),c=Jt(l)}}return ht({width:g,height:m,x:d,y:f})}function yt(e,t){const n=gt(e).scrollLeft;return t?t.left+n:ke(ve(e)).left+n}function sr(e,t){const n=e.getBoundingClientRect(),r=n.left+t.scrollLeft-yt(e,n),o=n.top+t.scrollTop;return{x:r,y:o}}function Ki(e){let{elements:t,rect:n,offsetParent:r,strategy:o}=e;const s=o==="fixed",i=ve(r),a=t?vt(t.floating):!1;if(r===i||a&&s)return n;let d={scrollLeft:0,scrollTop:0},f=he(1);const g=he(0),m=ge(r);if((m||!m&&!s)&&((Le(r)!=="body"||tt(i))&&(d=gt(r)),ge(r))){const p=ke(r);f=Be(r),g.x=p.x+r.clientLeft,g.y=p.y+r.clientTop}const v=i&&!m&&!s?sr(i,d):he(0);return{width:n.width*f.x,height:n.height*f.y,x:n.x*f.x-d.scrollLeft*f.x+g.x+v.x,y:n.y*f.y-d.scrollTop*f.y+g.y+v.y}}function Xi(e){return Array.from(e.getClientRects())}function Zi(e){const t=ve(e),n=gt(e),r=e.ownerDocument.body,o=se(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),s=se(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let i=-n.scrollLeft+yt(e);const a=-n.scrollTop;return fe(r).direction==="rtl"&&(i+=se(t.clientWidth,r.clientWidth)-o),{width:o,height:s,x:i,y:a}}const ar=25;function Gi(e,t){const n=ae(e),r=ve(e),o=n.visualViewport;let s=r.clientWidth,i=r.clientHeight,a=0,d=0;if(o){s=o.width,i=o.height;const g=Gt();(!g||g&&t==="fixed")&&(a=o.offsetLeft,d=o.offsetTop)}const f=yt(r);if(f<=0){const g=r.ownerDocument,m=g.body,v=getComputedStyle(m),p=g.compatMode==="CSS1Compat"&&parseFloat(v.marginLeft)+parseFloat(v.marginRight)||0,l=Math.abs(r.clientWidth-m.clientWidth-p);l<=ar&&(s-=l)}else f<=ar&&(s+=f);return{width:s,height:i,x:a,y:d}}const Ji=new Set(["absolute","fixed"]);function Qi(e,t){const n=ke(e,!0,t==="fixed"),r=n.top+e.clientTop,o=n.left+e.clientLeft,s=ge(e)?Be(e):he(1),i=e.clientWidth*s.x,a=e.clientHeight*s.y,d=o*s.x,f=r*s.y;return{width:i,height:a,x:d,y:f}}function cr(e,t,n){let r;if(t==="viewport")r=Gi(e,n);else if(t==="document")r=Zi(ve(e));else if(de(t))r=Qi(t,n);else{const o=ir(e);r={x:t.x-o.x,y:t.y-o.y,width:t.width,height:t.height}}return ht(r)}function lr(e,t){const n=_e(e);return n===t||!de(n)||Fe(n)?!1:fe(n).position==="fixed"||lr(n,t)}function es(e,t){const n=t.get(e);if(n)return n;let r=nt(e,[],!1).filter(a=>de(a)&&Le(a)!=="body"),o=null;const s=fe(e).position==="fixed";let i=s?_e(e):e;for(;de(i)&&!Fe(i);){const a=fe(i),d=Zt(i);!d&&a.position==="fixed"&&(o=null),(s?!d&&!o:!d&&a.position==="static"&&!!o&&Ji.has(o.position)||tt(i)&&!d&&lr(e,i))?r=r.filter(g=>g!==i):o=a,i=_e(i)}return t.set(e,r),r}function ts(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e;const i=[...n==="clippingAncestors"?vt(t)?[]:es(t,this._c):[].concat(n),r],a=i[0],d=i.reduce((f,g)=>{const m=cr(t,g,o);return f.top=se(m.top,f.top),f.right=Se(m.right,f.right),f.bottom=Se(m.bottom,f.bottom),f.left=se(m.left,f.left),f},cr(t,a,o));return{width:d.right-d.left,height:d.bottom-d.top,x:d.left,y:d.top}}function ns(e){const{width:t,height:n}=or(e);return{width:t,height:n}}function rs(e,t,n){const r=ge(t),o=ve(t),s=n==="fixed",i=ke(e,!0,s,t);let a={scrollLeft:0,scrollTop:0};const d=he(0);function f(){d.x=yt(o)}if(r||!r&&!s)if((Le(t)!=="body"||tt(o))&&(a=gt(t)),r){const p=ke(t,!0,s,t);d.x=p.x+t.clientLeft,d.y=p.y+t.clientTop}else o&&f();s&&!r&&o&&f();const g=o&&!r&&!s?sr(o,a):he(0),m=i.left+a.scrollLeft-d.x-g.x,v=i.top+a.scrollTop-d.y-g.y;return{x:m,y:v,width:i.width,height:i.height}}function en(e){return fe(e).position==="static"}function ur(e,t){if(!ge(e)||fe(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return ve(e)===n&&(n=n.ownerDocument.body),n}function dr(e,t){const n=ae(e);if(vt(e))return n;if(!ge(e)){let o=_e(e);for(;o&&!Fe(o);){if(de(o)&&!en(o))return o;o=_e(o)}return n}let r=ur(e,t);for(;r&&Bi(r)&&en(r);)r=ur(r,t);return r&&Fe(r)&&en(r)&&!Zt(r)?n:r||zi(e)||n}const os=async function(e){const t=this.getOffsetParent||dr,n=this.getDimensions,r=await n(e.floating);return{reference:rs(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function is(e){return fe(e).direction==="rtl"}const ss={convertOffsetParentRelativeRectToViewportRelativeRect:Ki,getDocumentElement:ve,getClippingRect:ts,getOffsetParent:dr,getElementRects:os,getClientRects:Xi,getDimensions:ns,getScale:Be,isElement:de,isRTL:is};function fr(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function as(e,t){let n=null,r;const o=ve(e);function s(){var a;clearTimeout(r),(a=n)==null||a.disconnect(),n=null}function i(a,d){a===void 0&&(a=!1),d===void 0&&(d=1),s();const f=e.getBoundingClientRect(),{left:g,top:m,width:v,height:p}=f;if(a||t(),!v||!p)return;const l=ft(m),c=ft(o.clientWidth-(g+v)),h=ft(o.clientHeight-(m+p)),b=ft(g),x={rootMargin:-l+"px "+-c+"px "+-h+"px "+-b+"px",threshold:se(0,Se(1,d))||1};let C=!0;function _(O){const T=O[0].intersectionRatio;if(T!==d){if(!C)return i();T?i(!1,T):r=setTimeout(()=>{i(!1,1e-7)},1e3)}T===1&&!fr(f,e.getBoundingClientRect())&&i(),C=!1}try{n=new IntersectionObserver(_,{...x,root:o.ownerDocument})}catch{n=new IntersectionObserver(_,x)}n.observe(e)}return i(!0),s}function cs(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:o=!0,ancestorResize:s=!0,elementResize:i=typeof ResizeObserver=="function",layoutShift:a=typeof IntersectionObserver=="function",animationFrame:d=!1}=r,f=Qt(e),g=o||s?[...f?nt(f):[],...nt(t)]:[];g.forEach(b=>{o&&b.addEventListener("scroll",n,{passive:!0}),s&&b.addEventListener("resize",n)});const m=f&&a?as(f,n):null;let v=-1,p=null;i&&(p=new ResizeObserver(b=>{let[y]=b;y&&y.target===f&&p&&(p.unobserve(t),cancelAnimationFrame(v),v=requestAnimationFrame(()=>{var x;(x=p)==null||x.observe(t)})),n()}),f&&!d&&p.observe(f),p.observe(t));let l,c=d?ke(e):null;d&&h();function h(){const b=ke(e);c&&!fr(c,b)&&n(),c=b,l=requestAnimationFrame(h)}return n(),()=>{var b;g.forEach(y=>{o&&y.removeEventListener("scroll",n),s&&y.removeEventListener("resize",n)}),m==null||m(),(b=p)==null||b.disconnect(),p=null,d&&cancelAnimationFrame(l)}}const ls=Ni,us=Ii,ds=Ai,fs=ji,ps=ki,pr=Oi,hs=Di,ms=(e,t,n)=>{const r=new Map,o={platform:ss,...n},s={...o.platform,_c:r};return Pi(e,t,{...o,platform:s})};var vs=typeof document<"u",gs=function(){},bt=vs?X.useLayoutEffect:gs;function wt(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let n,r,o;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(r=n;r--!==0;)if(!wt(e[r],t[r]))return!1;return!0}if(o=Object.keys(e),n=o.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!{}.hasOwnProperty.call(t,o[r]))return!1;for(r=n;r--!==0;){const s=o[r];if(!(s==="_owner"&&e.$$typeof)&&!wt(e[s],t[s]))return!1}return!0}return e!==e&&t!==t}function hr(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function mr(e,t){const n=hr(e);return Math.round(t*n)/n}function tn(e){const t=u.useRef(e);return bt(()=>{t.current=e}),t}function ys(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:o,elements:{reference:s,floating:i}={},transform:a=!0,whileElementsMounted:d,open:f}=e,[g,m]=u.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[v,p]=u.useState(r);wt(v,r)||p(r);const[l,c]=u.useState(null),[h,b]=u.useState(null),y=u.useCallback(A=>{A!==O.current&&(O.current=A,c(A))},[]),x=u.useCallback(A=>{A!==T.current&&(T.current=A,b(A))},[]),C=s||l,_=i||h,O=u.useRef(null),T=u.useRef(null),L=u.useRef(g),I=d!=null,B=tn(d),W=tn(o),E=tn(f),R=u.useCallback(()=>{if(!O.current||!T.current)return;const A={placement:t,strategy:n,middleware:v};W.current&&(A.platform=W.current),ms(O.current,T.current,A).then(j=>{const H={...j,isPositioned:E.current!==!1};P.current&&!wt(L.current,H)&&(L.current=H,st.flushSync(()=>{m(H)}))})},[v,t,n,W,E]);bt(()=>{f===!1&&L.current.isPositioned&&(L.current.isPositioned=!1,m(A=>({...A,isPositioned:!1})))},[f]);const P=u.useRef(!1);bt(()=>(P.current=!0,()=>{P.current=!1}),[]),bt(()=>{if(C&&(O.current=C),_&&(T.current=_),C&&_){if(B.current)return B.current(C,_,R);R()}},[C,_,R,B,I]);const N=u.useMemo(()=>({reference:O,floating:T,setReference:y,setFloating:x}),[y,x]),M=u.useMemo(()=>({reference:C,floating:_}),[C,_]),k=u.useMemo(()=>{const A={position:n,left:0,top:0};if(!M.floating)return A;const j=mr(M.floating,g.x),H=mr(M.floating,g.y);return a?{...A,transform:"translate("+j+"px, "+H+"px)",...hr(M.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:j,top:H}},[n,a,M.floating,g.x,g.y]);return u.useMemo(()=>({...g,update:R,refs:N,elements:M,floatingStyles:k}),[g,R,N,M,k])}const bs=e=>{function t(n){return{}.hasOwnProperty.call(n,"current")}return{name:"arrow",options:e,fn(n){const{element:r,padding:o}=typeof e=="function"?e(n):e;return r&&t(r)?r.current!=null?pr({element:r.current,padding:o}).fn(n):{}:r?pr({element:r,padding:o}).fn(n):{}}}},ws=(e,t)=>({...ls(e),options:[e,t]}),xs=(e,t)=>({...us(e),options:[e,t]}),Ss=(e,t)=>({...hs(e),options:[e,t]}),_s=(e,t)=>({...ds(e),options:[e,t]}),Es=(e,t)=>({...fs(e),options:[e,t]}),Cs=(e,t)=>({...ps(e),options:[e,t]}),Rs=(e,t)=>({...bs(e),options:[e,t]});var Ts="Arrow",vr=u.forwardRef((e,t)=>{const{children:n,width:r=10,height:o=5,...s}=e;return w.jsx(J.svg,{...s,ref:t,width:r,height:o,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:w.jsx("polygon",{points:"0,0 30,0 15,10"})})});vr.displayName=Ts;var Ps=vr;function Os(e){const[t,n]=u.useState(void 0);return ne(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});const r=new ResizeObserver(o=>{if(!Array.isArray(o)||!o.length)return;const s=o[0];let i,a;if("borderBoxSize"in s){const d=s.borderBoxSize,f=Array.isArray(d)?d[0]:d;i=f.inlineSize,a=f.blockSize}else i=e.offsetWidth,a=e.offsetHeight;n({width:i,height:a})});return r.observe(e,{box:"border-box"}),()=>r.unobserve(e)}else n(void 0)},[e]),t}var nn="Popper",[gr,xt]=lt(nn),[As,yr]=gr(nn),br=e=>{const{__scopePopper:t,children:n}=e,[r,o]=u.useState(null);return w.jsx(As,{scope:t,anchor:r,onAnchorChange:o,children:n})};br.displayName=nn;var wr="PopperAnchor",xr=u.forwardRef((e,t)=>{const{__scopePopper:n,virtualRef:r,...o}=e,s=yr(wr,n),i=u.useRef(null),a=te(t,i),d=u.useRef(null);return u.useEffect(()=>{const f=d.current;d.current=(r==null?void 0:r.current)||i.current,f!==d.current&&s.onAnchorChange(d.current)}),r?null:w.jsx(J.div,{...o,ref:a})});xr.displayName=wr;var rn="PopperContent",[ks,Ms]=gr(rn),Sr=u.forwardRef((e,t)=>{var D,z,ee,U,Y,K;const{__scopePopper:n,side:r="bottom",sideOffset:o=0,align:s="center",alignOffset:i=0,arrowPadding:a=0,avoidCollisions:d=!0,collisionBoundary:f=[],collisionPadding:g=0,sticky:m="partial",hideWhenDetached:v=!1,updatePositionStrategy:p="optimized",onPlaced:l,...c}=e,h=yr(rn,n),[b,y]=u.useState(null),x=te(t,re=>y(re)),[C,_]=u.useState(null),O=Os(C),T=(O==null?void 0:O.width)??0,L=(O==null?void 0:O.height)??0,I=r+(s!=="center"?"-"+s:""),B=typeof g=="number"?g:{top:0,right:0,bottom:0,left:0,...g},W=Array.isArray(f)?f:[f],E=W.length>0,R={padding:B,boundary:W.filter(Is),altBoundary:E},{refs:P,floatingStyles:N,placement:M,isPositioned:k,middlewareData:A}=ys({strategy:"fixed",placement:I,whileElementsMounted:(...re)=>cs(...re,{animationFrame:p==="always"}),elements:{reference:h.anchor},middleware:[ws({mainAxis:o+L,alignmentAxis:i}),d&&xs({mainAxis:!0,crossAxis:!1,limiter:m==="partial"?Ss():void 0,...R}),d&&_s({...R}),Es({...R,apply:({elements:re,rects:ce,availableWidth:le,availableHeight:Pe})=>{const{width:Oe,height:Dt}=ce.reference,jt=re.floating.style;jt.setProperty("--radix-popper-available-width",`${le}px`),jt.setProperty("--radix-popper-available-height",`${Pe}px`),jt.setProperty("--radix-popper-anchor-width",`${Oe}px`),jt.setProperty("--radix-popper-anchor-height",`${Dt}px`)}}),C&&Rs({element:C,padding:a}),Ds({arrowWidth:T,arrowHeight:L}),v&&Cs({strategy:"referenceHidden",...R})]}),[j,H]=Cr(M),S=Ae(l);ne(()=>{k&&(S==null||S())},[k,S]);const F=(D=A.arrow)==null?void 0:D.x,V=(z=A.arrow)==null?void 0:z.y,$=((ee=A.arrow)==null?void 0:ee.centerOffset)!==0,[q,Q]=u.useState();return ne(()=>{b&&Q(window.getComputedStyle(b).zIndex)},[b]),w.jsx("div",{ref:P.setFloating,"data-radix-popper-content-wrapper":"",style:{...N,transform:k?N.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:q,"--radix-popper-transform-origin":[(U=A.transformOrigin)==null?void 0:U.x,(Y=A.transformOrigin)==null?void 0:Y.y].join(" "),...((K=A.hide)==null?void 0:K.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:w.jsx(ks,{scope:n,placedSide:j,onArrowChange:_,arrowX:F,arrowY:V,shouldHideArrow:$,children:w.jsx(J.div,{"data-side":j,"data-align":H,...c,ref:x,style:{...c.style,animation:k?void 0:"none"}})})})});Sr.displayName=rn;var _r="PopperArrow",Ns={top:"bottom",right:"left",bottom:"top",left:"right"},Er=u.forwardRef(function(t,n){const{__scopePopper:r,...o}=t,s=Ms(_r,r),i=Ns[s.placedSide];return w.jsx("span",{ref:s.onArrowChange,style:{position:"absolute",left:s.arrowX,top:s.arrowY,[i]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[s.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[s.placedSide],visibility:s.shouldHideArrow?"hidden":void 0},children:w.jsx(Ps,{...o,ref:n,style:{...o.style,display:"block"}})})});Er.displayName=_r;function Is(e){return e!==null}var Ds=e=>({name:"transformOrigin",options:e,fn(t){var h,b,y;const{placement:n,rects:r,middlewareData:o}=t,i=((h=o.arrow)==null?void 0:h.centerOffset)!==0,a=i?0:e.arrowWidth,d=i?0:e.arrowHeight,[f,g]=Cr(n),m={start:"0%",center:"50%",end:"100%"}[g],v=(((b=o.arrow)==null?void 0:b.x)??0)+a/2,p=(((y=o.arrow)==null?void 0:y.y)??0)+d/2;let l="",c="";return f==="bottom"?(l=i?m:`${v}px`,c=`${-d}px`):f==="top"?(l=i?m:`${v}px`,c=`${r.floating.height+d}px`):f==="right"?(l=`${-d}px`,c=i?m:`${p}px`):f==="left"&&(l=`${r.floating.width+d}px`,c=i?m:`${p}px`),{data:{x:l,y:c}}}});function Cr(e){const[t,n="center"]=e.split("-");return[t,n]}var Rr=br,on=xr,Tr=Sr,Pr=Er,js="Portal",sn=u.forwardRef((e,t)=>{var a;const{container:n,...r}=e,[o,s]=u.useState(!1);ne(()=>s(!0),[]);const i=n||o&&((a=globalThis==null?void 0:globalThis.document)==null?void 0:a.body);return i?Sn.createPortal(w.jsx(J.div,{...r,ref:t}),i):null});sn.displayName=js;var Ls=u[" useInsertionEffect ".trim().toString()]||ne;function an({prop:e,defaultProp:t,onChange:n=()=>{},caller:r}){const[o,s,i]=Fs({defaultProp:t,onChange:n}),a=e!==void 0,d=a?e:o;{const g=u.useRef(e!==void 0);u.useEffect(()=>{const m=g.current;m!==a&&console.warn(`${r} is changing from ${m?"controlled":"uncontrolled"} to ${a?"controlled":"uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),g.current=a},[a,r])}const f=u.useCallback(g=>{var m;if(a){const v=Bs(g)?g(e):g;v!==e&&((m=i.current)==null||m.call(i,v))}else s(g)},[a,e,s,i]);return[d,f]}function Fs({defaultProp:e,onChange:t}){const[n,r]=u.useState(e),o=u.useRef(n),s=u.useRef(t);return Ls(()=>{s.current=t},[t]),u.useEffect(()=>{var i;o.current!==n&&((i=s.current)==null||i.call(s,n),o.current=n)},[n,o]),[n,r,s]}function Bs(e){return typeof e=="function"}function Ws(e){const t=u.useRef({value:e,previous:e});return u.useMemo(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}var Or=Object.freeze({position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal"}),Vs="VisuallyHidden",$s=u.forwardRef((e,t)=>w.jsx(J.span,{...e,ref:t,style:{...Or,...e.style}}));$s.displayName=Vs;var Hs=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},We=new WeakMap,St=new WeakMap,_t={},cn=0,Ar=function(e){return e&&(e.host||Ar(e.parentNode))},zs=function(e,t){return t.map(function(n){if(e.contains(n))return n;var r=Ar(n);return r&&e.contains(r)?r:(console.error("aria-hidden",n,"in not contained inside",e,". Doing nothing"),null)}).filter(function(n){return!!n})},Us=function(e,t,n,r){var o=zs(t,Array.isArray(e)?e:[e]);_t[n]||(_t[n]=new WeakMap);var s=_t[n],i=[],a=new Set,d=new Set(o),f=function(m){!m||a.has(m)||(a.add(m),f(m.parentNode))};o.forEach(f);var g=function(m){!m||d.has(m)||Array.prototype.forEach.call(m.children,function(v){if(a.has(v))g(v);else try{var p=v.getAttribute(r),l=p!==null&&p!=="false",c=(We.get(v)||0)+1,h=(s.get(v)||0)+1;We.set(v,c),s.set(v,h),i.push(v),c===1&&l&&St.set(v,!0),h===1&&v.setAttribute(n,"true"),l||v.setAttribute(r,"true")}catch(b){console.error("aria-hidden: cannot operate on ",v,b)}})};return g(t),a.clear(),cn++,function(){i.forEach(function(m){var v=We.get(m)-1,p=s.get(m)-1;We.set(m,v),s.set(m,p),v||(St.has(m)||m.removeAttribute(r),St.delete(m)),p||m.removeAttribute(n)}),cn--,cn||(We=new WeakMap,We=new WeakMap,St=new WeakMap,_t={})}},kr=function(e,t,n){n===void 0&&(n="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),o=Hs(e);return o?(r.push.apply(r,Array.from(o.querySelectorAll("[aria-live], script"))),Us(r,o,n,"aria-hidden")):function(){return null}},ye=function(){return ye=Object.assign||function(t){for(var n,r=1,o=arguments.length;r<o;r++){n=arguments[r];for(var s in n)Object.prototype.hasOwnProperty.call(n,s)&&(t[s]=n[s])}return t},ye.apply(this,arguments)};function Mr(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n}function Ys(e,t,n){if(n||arguments.length===2)for(var r=0,o=t.length,s;r<o;r++)(s||!(r in t))&&(s||(s=Array.prototype.slice.call(t,0,r)),s[r]=t[r]);return e.concat(s||Array.prototype.slice.call(t))}typeof SuppressedError=="function"&&SuppressedError;var Et="right-scroll-bar-position",Ct="width-before-scroll-bar",qs="with-scroll-bars-hidden",Ks="--removed-body-scroll-bar-size";function ln(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function Xs(e,t){var n=X.useState(function(){return{value:e,callback:t,facade:{get current(){return n.value},set current(r){var o=n.value;o!==r&&(n.value=r,n.callback(r,o))}}}})[0];return n.callback=t,n.facade}var Zs=typeof window<"u"?u.useLayoutEffect:u.useEffect,Nr=new WeakMap;function Gs(e,t){var n=Xs(null,function(r){return e.forEach(function(o){return ln(o,r)})});return Zs(function(){var r=Nr.get(n);if(r){var o=new Set(r),s=new Set(e),i=n.current;o.forEach(function(a){s.has(a)||ln(a,null)}),s.forEach(function(a){o.has(a)||ln(a,i)})}Nr.set(n,e)},[e]),n}function Js(e){return e}function Qs(e,t){t===void 0&&(t=Js);var n=[],r=!1,o={read:function(){if(r)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:e},useMedium:function(s){var i=t(s,r);return n.push(i),function(){n=n.filter(function(a){return a!==i})}},assignSyncMedium:function(s){for(r=!0;n.length;){var i=n;n=[],i.forEach(s)}n={push:function(a){return s(a)},filter:function(){return n}}},assignMedium:function(s){r=!0;var i=[];if(n.length){var a=n;n=[],a.forEach(s),i=n}var d=function(){var g=i;i=[],g.forEach(s)},f=function(){return Promise.resolve().then(d)};f(),n={push:function(g){i.push(g),f()},filter:function(g){return i=i.filter(g),n}}}};return o}function ea(e){e===void 0&&(e={});var t=Qs(null);return t.options=ye({async:!0,ssr:!1},e),t}var Ir=function(e){var t=e.sideCar,n=Mr(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var r=t.read();if(!r)throw new Error("Sidecar medium not found");return u.createElement(r,ye({},n))};Ir.isSideCarExport=!0;function ta(e,t){return e.useMedium(t),Ir}var Dr=ea(),un=function(){},Rt=u.forwardRef(function(e,t){var n=u.useRef(null),r=u.useState({onScrollCapture:un,onWheelCapture:un,onTouchMoveCapture:un}),o=r[0],s=r[1],i=e.forwardProps,a=e.children,d=e.className,f=e.removeScrollBar,g=e.enabled,m=e.shards,v=e.sideCar,p=e.noRelative,l=e.noIsolation,c=e.inert,h=e.allowPinchZoom,b=e.as,y=b===void 0?"div":b,x=e.gapMode,C=Mr(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),_=v,O=Gs([n,t]),T=ye(ye({},C),o);return u.createElement(u.Fragment,null,g&&u.createElement(_,{sideCar:Dr,removeScrollBar:f,shards:m,noRelative:p,noIsolation:l,inert:c,setCallbacks:s,allowPinchZoom:!!h,lockRef:n,gapMode:x}),i?u.cloneElement(u.Children.only(a),ye(ye({},T),{ref:O})):u.createElement(y,ye({},T,{className:d,ref:O}),a))});Rt.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},Rt.classNames={fullWidth:Ct,zeroRight:Et};var na=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function ra(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=na();return t&&e.setAttribute("nonce",t),e}function oa(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function ia(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var sa=function(){var e=0,t=null;return{add:function(n){e==0&&(t=ra())&&(oa(t,n),ia(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},aa=function(){var e=sa();return function(t,n){u.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},jr=function(){var e=aa(),t=function(n){var r=n.styles,o=n.dynamic;return e(r,o),null};return t},ca={left:0,top:0,right:0,gap:0},dn=function(e){return parseInt(e||"",10)||0},la=function(e){var t=window.getComputedStyle(document.body),n=t[e==="padding"?"paddingLeft":"marginLeft"],r=t[e==="padding"?"paddingTop":"marginTop"],o=t[e==="padding"?"paddingRight":"marginRight"];return[dn(n),dn(r),dn(o)]},ua=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return ca;var t=la(e),n=document.documentElement.clientWidth,r=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,r-n+t[2]-t[0])}},da=jr(),Ve="data-scroll-locked",fa=function(e,t,n,r){var o=e.left,s=e.top,i=e.right,a=e.gap;return n===void 0&&(n="margin"),`
|
|
22
|
+
<%s key={someKey} {...props} />`,V,D,z,D),H[D+V]=!0)}if(D=null,$!==void 0&&(n($),D=""+$),i(F)&&(n(F.key),D=""+F.key),"key"in F){$={};for(var ee in F)ee!=="key"&&($[ee]=F[ee])}else $=F;return D&&a($,typeof S=="function"?S.displayName||S.name||"Unknown":S),f(S,D,$,o(),q,Q)}function m(S){v(S)?S._store&&(S._store.validated=1):typeof S=="object"&&S!==null&&S.$$typeof===I&&(S._payload.status==="fulfilled"?v(S._payload.value)&&S._payload.value._store&&(S._payload.value._store.validated=1):S._store&&(S._store.validated=1))}function v(S){return typeof S=="object"&&S!==null&&S.$$typeof===l}var p=X,l=Symbol.for("react.transitional.element"),c=Symbol.for("react.portal"),h=Symbol.for("react.fragment"),w=Symbol.for("react.strict_mode"),y=Symbol.for("react.profiler"),x=Symbol.for("react.consumer"),C=Symbol.for("react.context"),_=Symbol.for("react.forward_ref"),O=Symbol.for("react.suspense"),T=Symbol.for("react.suspense_list"),L=Symbol.for("react.memo"),I=Symbol.for("react.lazy"),B=Symbol.for("react.activity"),W=Symbol.for("react.client.reference"),E=p.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,R=Object.prototype.hasOwnProperty,P=Array.isArray,N=console.createTask?console.createTask:function(){return null};p={react_stack_bottom_frame:function(S){return S()}};var M,k={},A=p.react_stack_bottom_frame.bind(p,s)(),j=N(r(s)),H={};qe.Fragment=h,qe.jsx=function(S,F,$){var V=1e4>E.recentlyCreatedOwnerStacks++;return g(S,F,$,!1,V?Error("react-stack-top-frame"):A,V?N(r(S)):j)},qe.jsxs=function(S,F,$){var V=1e4>E.recentlyCreatedOwnerStacks++;return g(S,F,$,!0,V?Error("react-stack-top-frame"):A,V?N(r(S)):j)}})()),qe}var Rn;function Ro(){return Rn||(Rn=1,process.env.NODE_ENV==="production"?at.exports=Eo():at.exports=Co()),at.exports}var b=Ro();const Lt={button:"_button_1sns4_1",micro:"_micro_1sns4_22",default:"_default_1sns4_30",large:"_large_1sns4_38",primary:"_primary_1sns4_47",secondary:"_secondary_1sns4_57",ghost:"_ghost_1sns4_67"};function To(e){const{size:t="default",variant:n="primary",iconLeft:r,iconRight:o,className:s,children:i,...a}=e,d=t==="micro"?"14px":t==="large"?"21px":"14px",f=[Lt.button,Lt[t],Lt[n],a.disabled?"cursor-not-allowed":"cursor-pointer",s].filter(Boolean).join(" ");return b.jsxs("button",{className:f,...a,children:[r&&X.cloneElement(r,{size:d,color:"currentColor"}),i,o&&X.cloneElement(o,{size:d,color:"currentColor"})]})}const Ke={checkboxWrapper:"_checkboxWrapper_1wbyq_1",checkbox:"_checkbox_1wbyq_1",label:"_label_1wbyq_44",score:"_score_1wbyq_48",disabled:"_disabled_1wbyq_55"},Po=({label:e,score:t,className:n="",...r})=>{const o=X.useId(),s=r.disabled;return b.jsxs("label",{htmlFor:o,className:`${Ke.checkboxWrapper} ${n} ${s?Ke.disabled:""} ${s?"cursor-not-allowed":"cursor-pointer"}`,children:[b.jsx("input",{id:o,type:"checkbox",className:Ke.checkbox,...r}),e&&b.jsx("span",{className:Ke.label,children:e}),t&&b.jsx("span",{className:Ke.score,children:t})]})},Tn={container:"_container_dlzj1_1",default:"_default_dlzj1_5"};function Oo({children:e,className:t}){return b.jsx("div",{className:`${Tn.container} ${Tn.default} ${t||""}`,children:e})}const Ie={container:"_container_10bfq_1",header:"_header_10bfq_11",title:"_title_10bfq_31",body:"_body_10bfq_49"},Ao=({color:e="black",size:t=21})=>{const n=.7142857142857143,r=t,o=typeof t=="number"?t*n:`calc(${t} * 0.7142857142857143)`;return b.jsx("svg",{width:r,height:o,viewBox:"0 0 7 5",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:b.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M1 1H2V2H1V1ZM3 3H2V2H3V3ZM4 3V4H3V3H4ZM5 2H4V3H5V2ZM5 2V1H6V2H5Z",fill:e})})},ko=({color:e="black",size:t=21})=>{const n=.7142857142857143,r=t,o=typeof t=="number"?t*n:`calc(${t} * 0.7142857142857143)`;return b.jsx("svg",{width:r,height:o,viewBox:"0 0 7 5",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:b.jsx("path",{d:"M6 2V3L1 3L1 2L6 2Z",fill:e})})},Mo=({color:e="black",size:t=21})=>{const n=.7142857142857143,r=t,o=typeof t=="number"?t*n:`calc(${t} * 0.7142857142857143)`;return b.jsx("svg",{width:r,height:o,viewBox:"0 0 7 5",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:b.jsx("path",{d:"M4 5H3V3L1 3L1 2L3 2L3 0L4 0V2L6 2V3H4V5Z",fill:e})})},No=({color:e="black",size:t=21})=>{const n=.7142857142857143,r=t,o=typeof t=="number"?t*n:`calc(${t} * 0.7142857142857143)`;return b.jsx("svg",{width:r,height:o,viewBox:"0 0 7 5",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:b.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M4 0H2V1H1V3H2V4H4V3H5V1H4V0ZM4 1V3H2V1H4ZM6 4H5V5H6V4Z",fill:e})})};function Io({title:e,children:t,className:n="",collapsible:r=!0,collapsed:o=!1}){const[s,i]=X.useState(()=>!o);X.useEffect(()=>{r&&i(!o)},[o,r]);const a=()=>{r&&i(d=>!d)};return b.jsxs("div",{className:`${Ie.container} ${n}`,children:[e&&(r?b.jsxs("button",{type:"button",className:Ie.header,onClick:a,"aria-label":s?"Collapse panel":"Expand panel","aria-expanded":s,children:[b.jsx("div",{className:Ie.title,role:"heading","aria-level":3,children:e}),s?b.jsx(ko,{color:"var(--lv5)",size:14}):b.jsx(Mo,{color:"var(--lv5)",size:14})]}):b.jsx("div",{className:Ie.header,children:b.jsx("div",{className:Ie.title,role:"heading","aria-level":3,children:e})})),(!r||s)&&b.jsx("div",{className:Ie.body,children:t})]})}const ue={wrapper:"_wrapper_tf1yl_1",label:"_label_tf1yl_7",inputContainer:"_inputContainer_tf1yl_12",input:"_input_tf1yl_12",focus:"_focus_tf1yl_35",searchIcon:"_searchIcon_tf1yl_52",rightContent:"_rightContent_tf1yl_67",sizeMicro:"_sizeMicro_tf1yl_78",sizeDefault:"_sizeDefault_tf1yl_87",error:"_error_tf1yl_110",errorText:"_errorText_tf1yl_114"},Do={micro:14,default:21};function jo({label:e,error:t,className:n="",showSearchIcon:r=!0,searchIcon:o,searchIconColor:s,inputSize:i="default",showFocusBorder:a=!1,children:d,...f}){const g=X.useRef(null),m=Do[i],v={};s&&(v["--search-icon-color"]=s);const p="var(--search-icon-color)",l=o??b.jsx(No,{}),c=i==="micro"?ue.sizeMicro:ue.sizeDefault;return b.jsxs("div",{className:`${ue.wrapper} ${n}`,children:[e&&b.jsx("label",{className:ue.label,children:e}),b.jsxs("div",{className:`${ue.inputContainer} ${c}`,children:[r&&b.jsx("span",{className:ue.searchIcon,children:X.cloneElement(l,{size:m,color:s??p})}),b.jsx("input",{ref:g,className:`${ue.input} ${a?ue.focus:""} ${t?ue.error:""}`,style:v,...f}),d&&b.jsx("div",{className:ue.rightContent,children:d})]}),t&&b.jsx("span",{className:ue.errorText,children:t})]})}const De={wrapper:"_wrapper_su5p5_1",label:"_label_su5p5_7",input:"_input_su5p5_12",error:"_error_su5p5_61",errorText:"_errorText_su5p5_69",borderBottom:"_borderBottom_su5p5_75"};function Lo({label:e,error:t,className:n="",isValid:r=!0,variant:o="default",...s}){const i=t||!r;return b.jsxs("div",{className:`${De.wrapper} ${n}`,children:[e&&b.jsx("label",{className:De.label,children:e}),b.jsx("input",{className:`${De.input} ${o==="borderBottom"?De.borderBottom:""} ${i?De.error:""}`,...s}),t&&b.jsx("span",{className:De.errorText,children:t})]})}const Xe={radioWrapper:"_radioWrapper_1faq0_1",radioInput:"_radioInput_1faq0_9",customRadio:"_customRadio_1faq0_23",labelText:"_labelText_1faq0_57",disabled:"_disabled_1faq0_63"},Fo=({id:e,name:t,value:n,label:r,checked:o=!1,onChange:s,disabled:i=!1})=>b.jsxs("label",{className:`${Xe.radioWrapper} ${i?Xe.disabled:""} ${i?"cursor-not-allowed":"cursor-pointer"}`,children:[b.jsx("input",{id:e,type:"radio",name:t,value:n,checked:o,onChange:s,disabled:i,className:Xe.radioInput}),b.jsx("span",{className:Xe.customRadio}),b.jsx("span",{className:Xe.labelText,children:r})]}),ct={switch:"_switch_1xsea_1",slider:"_slider_1xsea_23",label:"_label_1xsea_28",disabled:"_disabled_1xsea_43"},Bo=({id:e,checked:t,onChange:n,disabled:r=!1,label:o})=>{const s=X.useId(),i=e||s;return b.jsxs("label",{htmlFor:i,className:`${ct.switch} ${r?ct.disabled:""} ${r?"cursor-not-allowed":"cursor-pointer"}`,children:[b.jsx("input",{id:i,type:"checkbox",checked:t,onChange:a=>n(a.target.checked),disabled:r}),b.jsx("span",{className:ct.slider}),o&&b.jsx("span",{className:ct.label,children:o})]})},oe={basetrack:"_basetrack_1ezlq_1",selectedtrack:"_selectedtrack_1ezlq_29",livetrack:"_livetrack_1ezlq_36",livetrackFaceted:"_livetrackFaceted_1ezlq_42",livetrackDefault:"_livetrackDefault_1ezlq_45",thumbs:"_thumbs_1ezlq_48",disabled:"_disabled_1ezlq_82"};var Ze={},ie={},Ge={},Je={},Pn;function Ft(){if(Pn)return Je;Pn=1,Object.defineProperty(Je,"__esModule",{value:!0}),Je.Direction=void 0;var e;return(function(t){t.Right="to right",t.Left="to left",t.Down="to bottom",t.Up="to top"})(e||(Je.Direction=e={})),Je}var On;function An(){return On||(On=1,(function(e){var t=Ge&&Ge.__spreadArray||function(E,R,P){if(P||arguments.length===2)for(var N=0,M=R.length,k;N<M;N++)(k||!(N in R))&&(k||(k=Array.prototype.slice.call(R,0,N)),k[N]=R[N]);return E.concat(k||Array.prototype.slice.call(R))};Object.defineProperty(e,"__esModule",{value:!0}),e.isIOS=e.useThumbOverlap=e.assertUnreachable=e.voidFn=e.getTrackBackground=e.replaceAt=e.schd=e.translate=e.getClosestThumbIndex=e.translateThumbs=e.getPaddingAndBorder=e.getMargin=e.checkInitialOverlap=e.checkValuesAgainstBoundaries=e.checkBoundaries=e.isVertical=e.relativeValue=e.normalizeValue=e.isStepDivisible=e.isTouchEvent=e.getStepDecimals=void 0;var n=X,r=Ft(),o=function(E){var R=E.toString().split(".")[1];return R?R.length:0};e.getStepDecimals=o;function s(E){return E.touches&&E.touches.length||E.changedTouches&&E.changedTouches.length}e.isTouchEvent=s;function i(E,R,P){var N=(R-E)/P,M=8,k=Number(N.toFixed(M));return parseInt(k.toString(),10)===k}e.isStepDivisible=i;function a(E,R,P,N,M,k,A){var j=1e11;if(E=Math.round(E*j)/j,!k){var H=A[R-1],S=A[R+1];if(H&&H>E)return H;if(S&&S<E)return S}if(E>N)return N;if(E<P)return P;var F=Math.floor(E*j-P*j)%Math.floor(M*j),$=Math.floor(E*j-Math.abs(F)),V=F===0?E:$/j,q=Math.abs(F/j)<M/2?V:V+M,Q=(0,e.getStepDecimals)(M);return parseFloat(q.toFixed(Q))}e.normalizeValue=a;function d(E,R,P){return(E-R)/(P-R)}e.relativeValue=d;function f(E){return E===r.Direction.Up||E===r.Direction.Down}e.isVertical=f;function g(E,R,P){if(R>=P)throw new RangeError("min (".concat(R,") is equal/bigger than max (").concat(P,")"));if(E<R)throw new RangeError("value (".concat(E,") is smaller than min (").concat(R,")"));if(E>P)throw new RangeError("value (".concat(E,") is bigger than max (").concat(P,")"))}e.checkBoundaries=g;function m(E,R,P){return E<R?R:E>P?P:E}e.checkValuesAgainstBoundaries=m;function v(E){if(!(E.length<2)&&!E.slice(1).every(function(R,P){return E[P]<=R}))throw new RangeError("values={[".concat(E,"]} needs to be sorted when allowOverlap={false}"))}e.checkInitialOverlap=v;function p(E){var R=window.getComputedStyle(E);return{top:parseInt(R["margin-top"],10),bottom:parseInt(R["margin-bottom"],10),left:parseInt(R["margin-left"],10),right:parseInt(R["margin-right"],10)}}e.getMargin=p;function l(E){var R=window.getComputedStyle(E);return{top:parseInt(R["padding-top"],10)+parseInt(R["border-top-width"],10),bottom:parseInt(R["padding-bottom"],10)+parseInt(R["border-bottom-width"],10),left:parseInt(R["padding-left"],10)+parseInt(R["border-left-width"],10),right:parseInt(R["padding-right"],10)+parseInt(R["border-right-width"],10)}}e.getPaddingAndBorder=l;function c(E,R,P){var N=P?-1:1;E.forEach(function(M,k){return w(M,N*R[k].x,R[k].y)})}e.translateThumbs=c;function h(E,R,P,N){for(var M=0,k=B(E[0],R,P,N),A=1;A<E.length;A++){var j=B(E[A],R,P,N);j<k&&(k=j,M=A)}return M}e.getClosestThumbIndex=h;function w(E,R,P){E.style.transform="translate(".concat(R,"px, ").concat(P,"px)")}e.translate=w;var y=function(E){var R=[],P=null,N=function(){for(var M=[],k=0;k<arguments.length;k++)M[k]=arguments[k];R=M,!P&&(P=requestAnimationFrame(function(){P=null,E.apply(void 0,R)}))};return N};e.schd=y;function x(E,R,P){var N=E.slice(0);return N[R]=P,N}e.replaceAt=x;function C(E){var R=E.values,P=E.colors,N=E.min,M=E.max,k=E.direction,A=k===void 0?r.Direction.Right:k,j=E.rtl,H=j===void 0?!1:j;H&&A===r.Direction.Right?A=r.Direction.Left:H&&r.Direction.Left&&(A=r.Direction.Right);var S=R.slice(0).sort(function($,V){return $-V}).map(function($){return($-N)/(M-N)*100}),F=S.reduce(function($,V,q){return"".concat($,", ").concat(P[q]," ").concat(V,"%, ").concat(P[q+1]," ").concat(V,"%")},"");return"linear-gradient(".concat(A,", ").concat(P[0]," 0%").concat(F,", ").concat(P[P.length-1]," 100%)")}e.getTrackBackground=C;function _(){}e.voidFn=_;function O(E){throw new Error("Didn't expect to get here")}e.assertUnreachable=O;var T=function(E,R,P,N,M){M===void 0&&(M=function(A){return A});var k=Math.ceil(t([E],Array.from(E.children),!0).reduce(function(A,j){var H=Math.ceil(j.getBoundingClientRect().width);if(j.innerText&&j.innerText.includes(P)&&j.childElementCount===0){var S=j.cloneNode(!0);S.innerHTML=M(R.toFixed(N)),S.style.visibility="hidden",document.body.appendChild(S),H=Math.ceil(S.getBoundingClientRect().width),document.body.removeChild(S)}return H>A?H:A},E.getBoundingClientRect().width));return k},L=function(E,R,P,N,M,k,A){A===void 0&&(A=function(S){return S});var j=[],H=function(S){var F=T(P[S],N[S],M,k,A),$=R[S].x;R.forEach(function(V,q){var Q=V.x,D=T(P[q],N[q],M,k,A);S!==q&&($>=Q&&$<=Q+D||$+F>=Q&&$+F<=Q+D)&&(j.includes(q)||(j.push(S),j.push(q),j=t(t([],j,!0),[S,q],!1),H(q)))})};return H(E),Array.from(new Set(j.sort()))},I=function(E,R,P,N,M,k){N===void 0&&(N=.1),M===void 0&&(M=" - "),k===void 0&&(k=function(q){return q});var A=(0,e.getStepDecimals)(N),j=(0,n.useState)({}),H=j[0],S=j[1],F=(0,n.useState)(k(R[P].toFixed(A))),$=F[0],V=F[1];return(0,n.useEffect)(function(){if(E){var q=E.getThumbs();if(q.length<1)return;var Q={},D=E.getOffsets(),z=L(P,D,q,R,M,A,k),ee=k(R[P].toFixed(A));if(z.length){var U=z.reduce(function(le,Pe,Oe,Dt){return le.length?t(t([],le,!0),[D[Dt[Oe]].x],!1):[D[Dt[Oe]].x]},[]);if(Math.min.apply(Math,U)===D[P].x){var Y=[];z.forEach(function(le){Y.push(R[le].toFixed(A))}),ee=Array.from(new Set(Y.sort(function(le,Pe){return parseFloat(le)-parseFloat(Pe)}))).map(k).join(M);var K=Math.min.apply(Math,U),re=Math.max.apply(Math,U),ce=q[z[U.indexOf(re)]].getBoundingClientRect().width;Q.left="".concat(Math.abs(K-(re+ce))/2,"px"),Q.transform="translate(-50%, 0)"}else Q.visibility="hidden"}V(ee),S(Q)}},[E,R]),[$,H]};e.useThumbOverlap=I;function B(E,R,P,N){var M=E.getBoundingClientRect(),k=M.left,A=M.top,j=M.width,H=M.height;return f(N)?Math.abs(P-(A+H/2)):Math.abs(R-(k+j/2))}var W=function(){var E,R=((E=navigator.userAgentData)===null||E===void 0?void 0:E.platform)||navigator.platform;return["iPad Simulator","iPhone Simulator","iPod Simulator","iPad","iPhone","iPod"].includes(R)||navigator.userAgent.includes("Mac")&&"ontouchend"in document};e.isIOS=W})(Ge)),Ge}var kn;function Wo(){if(kn)return ie;kn=1;var e=ie&&ie.__extends||(function(){var m=function(v,p){return m=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(l,c){l.__proto__=c}||function(l,c){for(var h in c)Object.prototype.hasOwnProperty.call(c,h)&&(l[h]=c[h])},m(v,p)};return function(v,p){if(typeof p!="function"&&p!==null)throw new TypeError("Class extends value "+String(p)+" is not a constructor or null");m(v,p);function l(){this.constructor=v}v.prototype=p===null?Object.create(p):(l.prototype=p.prototype,new l)}})(),t=ie&&ie.__createBinding||(Object.create?(function(m,v,p,l){l===void 0&&(l=p);var c=Object.getOwnPropertyDescriptor(v,p);(!c||("get"in c?!v.__esModule:c.writable||c.configurable))&&(c={enumerable:!0,get:function(){return v[p]}}),Object.defineProperty(m,l,c)}):(function(m,v,p,l){l===void 0&&(l=p),m[l]=v[p]})),n=ie&&ie.__setModuleDefault||(Object.create?(function(m,v){Object.defineProperty(m,"default",{enumerable:!0,value:v})}):function(m,v){m.default=v}),r=ie&&ie.__importStar||function(m){if(m&&m.__esModule)return m;var v={};if(m!=null)for(var p in m)p!=="default"&&Object.prototype.hasOwnProperty.call(m,p)&&t(v,m,p);return n(v,m),v},o=ie&&ie.__spreadArray||function(m,v,p){if(p||arguments.length===2)for(var l=0,c=v.length,h;l<c;l++)(h||!(l in v))&&(h||(h=Array.prototype.slice.call(v,0,l)),h[l]=v[l]);return m.concat(h||Array.prototype.slice.call(v))};Object.defineProperty(ie,"__esModule",{value:!0});var s=r(X),i=An(),a=Ft(),d=["ArrowRight","ArrowUp","k","PageUp"],f=["ArrowLeft","ArrowDown","j","PageDown"],g=(function(m){e(v,m);function v(p){var l=m.call(this,p)||this;if(l.trackRef=s.createRef(),l.thumbRefs=[],l.state={draggedTrackPos:[-1,-1],draggedThumbIndex:-1,thumbZIndexes:new Array(l.props.values.length).fill(0).map(function(c,h){return h}),isChanged:!1,markOffsets:[]},l.getOffsets=function(){var c=l.props,h=c.direction,w=c.values,y=c.min,x=c.max,C=l.trackRef.current;if(!C)return console.warn("No track element found."),[];var _=C.getBoundingClientRect(),O=(0,i.getPaddingAndBorder)(C);return l.getThumbs().map(function(T,L){var I={x:0,y:0},B=T.getBoundingClientRect(),W=(0,i.getMargin)(T);switch(h){case a.Direction.Right:return I.x=(W.left+O.left)*-1,I.y=((B.height-_.height)/2+O.top)*-1,I.x+=_.width*(0,i.relativeValue)(w[L],y,x)-B.width/2,I;case a.Direction.Left:return I.x=(W.right+O.right)*-1,I.y=((B.height-_.height)/2+O.top)*-1,I.x+=_.width-_.width*(0,i.relativeValue)(w[L],y,x)-B.width/2,I;case a.Direction.Up:return I.x=((B.width-_.width)/2+W.left+O.left)*-1,I.y=-O.left,I.y+=_.height-_.height*(0,i.relativeValue)(w[L],y,x)-B.height/2,I;case a.Direction.Down:return I.x=((B.width-_.width)/2+W.left+O.left)*-1,I.y=-O.left,I.y+=_.height*(0,i.relativeValue)(w[L],y,x)-B.height/2,I;default:return(0,i.assertUnreachable)(h)}})},l.getThumbs=function(){return l.trackRef&&l.trackRef.current?Array.from(l.trackRef.current.children).filter(function(c){return c.hasAttribute("aria-valuenow")}):(console.warn("No thumbs found in the track container. Did you forget to pass & spread the `props` param in renderTrack?"),[])},l.getTargetIndex=function(c){return l.getThumbs().findIndex(function(h){return h===c.target||h.contains(c.target)})},l.addTouchEvents=function(c){document.addEventListener("touchmove",l.schdOnTouchMove,{passive:!1}),document.addEventListener("touchend",l.schdOnEnd,{passive:!1}),document.addEventListener("touchcancel",l.schdOnEnd,{passive:!1})},l.addMouseEvents=function(c){document.addEventListener("mousemove",l.schdOnMouseMove),document.addEventListener("mouseup",l.schdOnEnd)},l.onMouseDownTrack=function(c){var h;if(!(c.button!==0||(0,i.isIOS)()))if(c.persist(),c.preventDefault(),l.addMouseEvents(c.nativeEvent),l.props.values.length>1&&l.props.draggableTrack){if(l.thumbRefs.some(function(y){var x;return(x=y.current)===null||x===void 0?void 0:x.contains(c.target)}))return;l.setState({draggedTrackPos:[c.clientX,c.clientY]},function(){return l.onMove(c.clientX,c.clientY)})}else{var w=(0,i.getClosestThumbIndex)(l.thumbRefs.map(function(y){return y.current}),c.clientX,c.clientY,l.props.direction);(h=l.thumbRefs[w].current)===null||h===void 0||h.focus(),l.setState({draggedThumbIndex:w},function(){return l.onMove(c.clientX,c.clientY)})}},l.onResize=function(){(0,i.translateThumbs)(l.getThumbs(),l.getOffsets(),l.props.rtl),l.calculateMarkOffsets()},l.onTouchStartTrack=function(c){var h;if(c.persist(),l.addTouchEvents(c.nativeEvent),l.props.values.length>1&&l.props.draggableTrack){if(l.thumbRefs.some(function(y){var x;return(x=y.current)===null||x===void 0?void 0:x.contains(c.target)}))return;l.setState({draggedTrackPos:[c.touches[0].clientX,c.touches[0].clientY]},function(){return l.onMove(c.touches[0].clientX,c.touches[0].clientY)})}else{var w=(0,i.getClosestThumbIndex)(l.thumbRefs.map(function(y){return y.current}),c.touches[0].clientX,c.touches[0].clientY,l.props.direction);(h=l.thumbRefs[w].current)===null||h===void 0||h.focus(),l.setState({draggedThumbIndex:w},function(){return l.onMove(c.touches[0].clientX,c.touches[0].clientY)})}},l.onMouseOrTouchStart=function(c){if(!l.props.disabled){var h=(0,i.isTouchEvent)(c);if(!(!h&&c.button!==0)){var w=l.getTargetIndex(c);w!==-1&&(h?l.addTouchEvents(c):l.addMouseEvents(c),l.setState({draggedThumbIndex:w,thumbZIndexes:l.state.thumbZIndexes.map(function(y,x){return x===w?Math.max.apply(Math,l.state.thumbZIndexes):y<=l.state.thumbZIndexes[w]?y:y-1})}))}}},l.onMouseMove=function(c){c.preventDefault(),l.onMove(c.clientX,c.clientY)},l.onTouchMove=function(c){c.preventDefault(),l.onMove(c.touches[0].clientX,c.touches[0].clientY)},l.onKeyDown=function(c){var h=l.props,w=h.values,y=h.onChange,x=h.step,C=h.rtl,_=h.direction,O=l.state.isChanged,T=l.getTargetIndex(c.nativeEvent),L=C||_===a.Direction.Left||_===a.Direction.Down?-1:1;T!==-1&&(d.includes(c.key)?(c.preventDefault(),l.setState({draggedThumbIndex:T,isChanged:!0}),y((0,i.replaceAt)(w,T,l.normalizeValue(w[T]+L*(c.key==="PageUp"?x*10:x),T)))):f.includes(c.key)?(c.preventDefault(),l.setState({draggedThumbIndex:T,isChanged:!0}),y((0,i.replaceAt)(w,T,l.normalizeValue(w[T]-L*(c.key==="PageDown"?x*10:x),T)))):c.key==="Tab"?l.setState({draggedThumbIndex:-1},function(){O&&l.fireOnFinalChange()}):O&&l.fireOnFinalChange())},l.onKeyUp=function(c){var h=l.state.isChanged;l.setState({draggedThumbIndex:-1},function(){h&&l.fireOnFinalChange()})},l.onMove=function(c,h){var w=l.state,y=w.draggedThumbIndex,x=w.draggedTrackPos,C=l.props,_=C.direction,O=C.min,T=C.max,L=C.onChange,I=C.values,B=C.step,W=C.rtl;if(y===-1&&x[0]===-1&&x[1]===-1)return null;var E=l.trackRef.current;if(!E)return null;var R=E.getBoundingClientRect(),P=(0,i.isVertical)(_)?R.height:R.width;if(x[0]!==-1&&x[1]!==-1){var N=c-x[0],M=h-x[1],k=0;switch(_){case a.Direction.Right:case a.Direction.Left:k=N/P*(T-O);break;case a.Direction.Down:case a.Direction.Up:k=M/P*(T-O);break;default:(0,i.assertUnreachable)(_)}if(W&&(k*=-1),Math.abs(k)>=B/2){for(var A=0;A<l.thumbRefs.length;A++){if(I[A]===T&&Math.sign(k)===1||I[A]===O&&Math.sign(k)===-1)return;var j=I[A]+k;j>T?k=T-I[A]:j<O&&(k=O-I[A])}for(var H=I.slice(0),A=0;A<l.thumbRefs.length;A++)H=(0,i.replaceAt)(H,A,l.normalizeValue(I[A]+k,A));l.setState({draggedTrackPos:[c,h]}),L(H)}}else{var S=0;switch(_){case a.Direction.Right:S=(c-R.left)/P*(T-O)+O;break;case a.Direction.Left:S=(P-(c-R.left))/P*(T-O)+O;break;case a.Direction.Down:S=(h-R.top)/P*(T-O)+O;break;case a.Direction.Up:S=(P-(h-R.top))/P*(T-O)+O;break;default:(0,i.assertUnreachable)(_)}W&&(S=T+O-S),Math.abs(I[y]-S)>=B/2&&L((0,i.replaceAt)(I,y,l.normalizeValue(S,y)))}},l.normalizeValue=function(c,h){var w=l.props,y=w.min,x=w.max,C=w.step,_=w.allowOverlap,O=w.values;return(0,i.normalizeValue)(c,h,y,x,C,_,O)},l.onEnd=function(c){if(c.preventDefault(),document.removeEventListener("mousemove",l.schdOnMouseMove),document.removeEventListener("touchmove",l.schdOnTouchMove),document.removeEventListener("mouseup",l.schdOnEnd),document.removeEventListener("touchend",l.schdOnEnd),document.removeEventListener("touchcancel",l.schdOnEnd),l.state.draggedThumbIndex===-1&&l.state.draggedTrackPos[0]===-1&&l.state.draggedTrackPos[1]===-1)return null;l.setState({draggedThumbIndex:-1,draggedTrackPos:[-1,-1]},function(){l.fireOnFinalChange()})},l.fireOnFinalChange=function(){l.setState({isChanged:!1});var c=l.props,h=c.onFinalChange,w=c.values;h&&h(w)},l.updateMarkRefs=function(c){if(!c.renderMark){l.numOfMarks=void 0,l.markRefs=void 0;return}l.numOfMarks=(c.max-c.min)/l.props.step,l.markRefs=[];for(var h=0;h<l.numOfMarks+1;h++)l.markRefs[h]=s.createRef()},l.calculateMarkOffsets=function(){if(!(!l.props.renderMark||!l.trackRef||!l.numOfMarks||!l.markRefs||l.trackRef.current===null)){for(var c=window.getComputedStyle(l.trackRef.current),h=parseInt(c.width,10),w=parseInt(c.height,10),y=parseInt(c.paddingLeft,10),x=parseInt(c.paddingTop,10),C=[],_=0;_<l.numOfMarks+1;_++){var O=9999,T=9999;if(l.markRefs[_].current){var L=l.markRefs[_].current.getBoundingClientRect();O=L.height,T=L.width}l.props.direction===a.Direction.Left||l.props.direction===a.Direction.Right?C.push([Math.round(h/l.numOfMarks*_+y-T/2),-Math.round((O-w)/2)]):C.push([Math.round(w/l.numOfMarks*_+x-O/2),-Math.round((T-h)/2)])}l.setState({markOffsets:C})}},p.step===0)throw new Error('"step" property should be a positive number');return l.schdOnMouseMove=(0,i.schd)(l.onMouseMove),l.schdOnTouchMove=(0,i.schd)(l.onTouchMove),l.schdOnEnd=(0,i.schd)(l.onEnd),l.thumbRefs=p.values.map(function(){return s.createRef()}),l.updateMarkRefs(p),l}return v.prototype.componentDidMount=function(){var p=this,l=this.props,c=l.values,h=l.min,w=l.step;this.resizeObserver=window.ResizeObserver?new window.ResizeObserver(this.onResize):{observe:function(){return window.addEventListener("resize",p.onResize)},unobserve:function(){return window.removeEventListener("resize",p.onResize)}},document.addEventListener("touchstart",this.onMouseOrTouchStart,{passive:!1}),document.addEventListener("mousedown",this.onMouseOrTouchStart,{passive:!1}),!this.props.allowOverlap&&(0,i.checkInitialOverlap)(this.props.values),this.props.values.forEach(function(y){return(0,i.checkBoundaries)(y,p.props.min,p.props.max)}),this.resizeObserver.observe(this.trackRef.current),(0,i.translateThumbs)(this.getThumbs(),this.getOffsets(),this.props.rtl),this.calculateMarkOffsets(),c.forEach(function(y){(0,i.isStepDivisible)(h,y,w)||console.warn("The `values` property is in conflict with the current `step`, `min`, and `max` properties. Please provide values that are accessible using the min, max, and step values.")})},v.prototype.componentDidUpdate=function(p,l){var c=this.props,h=c.max,w=c.min,y=c.step,x=c.values,C=c.rtl;(p.max!==h||p.min!==w||p.step!==y)&&this.updateMarkRefs(this.props),(0,i.translateThumbs)(this.getThumbs(),this.getOffsets(),C),(p.max!==h||p.min!==w||p.step!==y||l.markOffsets.length!==this.state.markOffsets.length)&&(this.calculateMarkOffsets(),x.forEach(function(_){(0,i.isStepDivisible)(w,_,y)||console.warn("The `values` property is in conflict with the current `step`, `min`, and `max` properties. Please provide values that are accessible using the min, max, and step values.")}))},v.prototype.componentWillUnmount=function(){var p={passive:!1};document.removeEventListener("mousedown",this.onMouseOrTouchStart,p),document.removeEventListener("mousemove",this.schdOnMouseMove),document.removeEventListener("touchmove",this.schdOnTouchMove),document.removeEventListener("touchstart",this.onMouseOrTouchStart),document.removeEventListener("mouseup",this.schdOnEnd),document.removeEventListener("touchend",this.schdOnEnd),this.resizeObserver.unobserve(this.trackRef.current)},v.prototype.render=function(){var p=this,l=this.props,c=l.label,h=l.labelledBy,w=l.renderTrack,y=l.renderThumb,x=l.renderMark,C=x===void 0?function(){return null}:x,_=l.values,O=l.min,T=l.max,L=l.allowOverlap,I=l.disabled,B=this.state,W=B.draggedThumbIndex,E=B.thumbZIndexes,R=B.markOffsets;return w({props:{style:{transform:"scale(1)",cursor:W>-1?"grabbing":this.props.draggableTrack?(0,i.isVertical)(this.props.direction)?"ns-resize":"ew-resize":_.length===1&&!I?"pointer":"inherit"},onMouseDown:I?i.voidFn:this.onMouseDownTrack,onTouchStart:I?i.voidFn:this.onTouchStartTrack,ref:this.trackRef},isDragged:this.state.draggedThumbIndex>-1,disabled:I,children:o(o([],R.map(function(P,N,M){return C({props:{style:p.props.direction===a.Direction.Left||p.props.direction===a.Direction.Right?{position:"absolute",left:"".concat(P[0],"px"),marginTop:"".concat(P[1],"px")}:{position:"absolute",top:"".concat(P[0],"px"),marginLeft:"".concat(P[1],"px")},key:"mark".concat(N),ref:p.markRefs[N]},index:N})}),!0),_.map(function(P,N){var M=p.state.draggedThumbIndex===N;return y({index:N,value:P,isDragged:M,props:{style:{position:"absolute",zIndex:E[N],cursor:I?"inherit":M?"grabbing":"grab",userSelect:"none",touchAction:"none",WebkitUserSelect:"none",MozUserSelect:"none",msUserSelect:"none"},key:N,tabIndex:I?void 0:0,"aria-valuemax":L?T:_[N+1]||T,"aria-valuemin":L?O:_[N-1]||O,"aria-valuenow":P,draggable:!1,ref:p.thumbRefs[N],"aria-label":c,"aria-labelledby":h,role:"slider",onKeyDown:I?i.voidFn:p.onKeyDown,onKeyUp:I?i.voidFn:p.onKeyUp}})}),!0)})},v.defaultProps={label:"Accessibility label",labelledBy:null,step:1,direction:a.Direction.Right,rtl:!1,disabled:!1,allowOverlap:!1,draggableTrack:!1,min:0,max:100},v})(s.Component);return ie.default=g,ie}var Mn;function $o(){return Mn||(Mn=1,(function(e){var t=Ze&&Ze.__importDefault||function(s){return s&&s.__esModule?s:{default:s}};Object.defineProperty(e,"__esModule",{value:!0}),e.checkValuesAgainstBoundaries=e.relativeValue=e.useThumbOverlap=e.Direction=e.getTrackBackground=e.Range=void 0;var n=t(Wo());e.Range=n.default;var r=An();Object.defineProperty(e,"getTrackBackground",{enumerable:!0,get:function(){return r.getTrackBackground}}),Object.defineProperty(e,"useThumbOverlap",{enumerable:!0,get:function(){return r.useThumbOverlap}}),Object.defineProperty(e,"relativeValue",{enumerable:!0,get:function(){return r.relativeValue}}),Object.defineProperty(e,"checkValuesAgainstBoundaries",{enumerable:!0,get:function(){return r.checkValuesAgainstBoundaries}});var o=Ft();Object.defineProperty(e,"Direction",{enumerable:!0,get:function(){return o.Direction}})})(Ze)),Ze}var Nn=$o();const Vo=e=>{const{min:t,max:n,step:r=1,disabled:o=!1,className:s,activeMin:i,activeMax:a,isFaceted:d=!1,highlightFaceted:f=!0,onChange:g,onFinalChange:m}=e;if("isRange"in e&&e.isRange){const v=e.value,[p,l]=v;return b.jsx("div",{className:s,children:b.jsx(Nn.Range,{step:r,min:t,max:n,values:v,onChange:c=>g(c),onFinalChange:c=>m==null?void 0:m(c),disabled:o,renderTrack:({props:c,children:h})=>{const{key:w,...y}=c,x=n-t,C=(p-t)/x*100,_=(l-p)/x*100;let O=0,T=0;const L=typeof i=="number"&&typeof a=="number"&&a>i&&(i>t||a<n);return L&&(O=(i-t)/x*100,T=(a-i)/x*100),b.jsxs("div",{...y,className:oe.basetrack,style:{...y.style},children:[!L&&b.jsx("div",{className:oe.selectedtrack,style:{left:`${C}%`,width:`${_}%`,zIndex:"1"}}),L&&b.jsx("div",{className:`${oe.livetrack} ${d?oe.livetrackFaceted:oe.livetrackDefault}`,style:{left:`${O}%`,width:`${T}%`,zIndex:"2"}}),h]},w)},renderThumb:({props:c})=>{const{key:h,...w}=c;return b.jsx("div",{...w,className:`${oe.thumbs} ${o?oe.disabled:""} ${o?"cursor-not-allowed":"cursor-resize-col"}`,style:{...w.style,zIndex:"3"}},h)}})})}else{const v=e.value;return b.jsx("div",{className:s,children:b.jsx(Nn.Range,{step:r,min:t,max:n,values:[v],onChange:p=>g(p[0]),onFinalChange:p=>m==null?void 0:m(p[0]),disabled:o,renderTrack:({props:p,children:l})=>{const{key:c,...h}=p,w=n-t,y=(v-t)/w*100;let x=0,C=0;const _=typeof i=="number"&&typeof a=="number"&&a>i&&(i>t||a<n);return _&&(x=(i-t)/w*100,C=(a-i)/w*100),b.jsxs("div",{...h,className:oe.basetrack,style:{...h.style},children:[!_&&b.jsx("div",{className:oe.selectedtrack,style:{left:"0%",width:`${y}%`,zIndex:"1"}}),_&&b.jsx("div",{className:`${oe.livetrack} ${d?oe.livetrackFaceted:oe.livetrackDefault}`,style:{left:`${x}%`,width:`${C}%`,zIndex:"2"}}),l]},c)},renderThumb:({props:p})=>{const{key:l,...c}=p;return b.jsx("div",{...c,className:`${oe.thumbs} ${o?oe.disabled:""} ${o?"cursor-not-allowed":"cursor-resize-col"}`,style:{...c.style,zIndex:"3"}},l)}})})}};function In(e,[t,n]){return Math.min(n,Math.max(t,e))}function Z(e,t,{checkForDefaultPrevented:n=!0}={}){return function(o){if(e==null||e(o),n===!1||!o.defaultPrevented)return t==null?void 0:t(o)}}function lt(e,t=[]){let n=[];function r(s,i){const a=u.createContext(i),d=n.length;n=[...n,i];const f=m=>{var w;const{scope:v,children:p,...l}=m,c=((w=v==null?void 0:v[e])==null?void 0:w[d])||a,h=u.useMemo(()=>l,Object.values(l));return b.jsx(c.Provider,{value:h,children:p})};f.displayName=s+"Provider";function g(m,v){var c;const p=((c=v==null?void 0:v[e])==null?void 0:c[d])||a,l=u.useContext(p);if(l)return l;if(i!==void 0)return i;throw new Error(`\`${m}\` must be used within \`${s}\``)}return[f,g]}const o=()=>{const s=n.map(i=>u.createContext(i));return function(a){const d=(a==null?void 0:a[e])||s;return u.useMemo(()=>({[`__scope${e}`]:{...a,[e]:d}}),[a,d])}};return o.scopeName=e,[r,Ho(o,...t)]}function Ho(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const r=e.map(o=>({useScope:o(),scopeName:o.scopeName}));return function(s){const i=r.reduce((a,{useScope:d,scopeName:f})=>{const m=d(s)[`__scope${f}`];return{...a,...m}},{});return u.useMemo(()=>({[`__scope${t.scopeName}`]:i}),[i])}};return n.scopeName=t.scopeName,n}function Dn(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function jn(...e){return t=>{let n=!1;const r=e.map(o=>{const s=Dn(o,t);return!n&&typeof s=="function"&&(n=!0),s});if(n)return()=>{for(let o=0;o<r.length;o++){const s=r[o];typeof s=="function"?s():Dn(e[o],null)}}}}function te(...e){return u.useCallback(jn(...e),e)}function Qe(e){const t=zo(e),n=u.forwardRef((r,o)=>{const{children:s,...i}=r,a=u.Children.toArray(s),d=a.find(Yo);if(d){const f=d.props.children,g=a.map(m=>m===d?u.Children.count(f)>1?u.Children.only(null):u.isValidElement(f)?f.props.children:null:m);return b.jsx(t,{...i,ref:o,children:u.isValidElement(f)?u.cloneElement(f,void 0,g):null})}return b.jsx(t,{...i,ref:o,children:s})});return n.displayName=`${e}.Slot`,n}function zo(e){const t=u.forwardRef((n,r)=>{const{children:o,...s}=n;if(u.isValidElement(o)){const i=Ko(o),a=qo(s,o.props);return o.type!==u.Fragment&&(a.ref=r?jn(r,i):i),u.cloneElement(o,a)}return u.Children.count(o)>1?u.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var Uo=Symbol("radix.slottable");function Yo(e){return u.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===Uo}function qo(e,t){const n={...t};for(const r in t){const o=e[r],s=t[r];/^on[A-Z]/.test(r)?o&&s?n[r]=(...a)=>{const d=s(...a);return o(...a),d}:o&&(n[r]=o):r==="style"?n[r]={...o,...s}:r==="className"&&(n[r]=[o,s].filter(Boolean).join(" "))}return{...e,...n}}function Ko(e){var r,o;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}function Xo(e){const t=e+"CollectionProvider",[n,r]=lt(t),[o,s]=n(t,{collectionRef:{current:null},itemMap:new Map}),i=c=>{const{scope:h,children:w}=c,y=X.useRef(null),x=X.useRef(new Map).current;return b.jsx(o,{scope:h,itemMap:x,collectionRef:y,children:w})};i.displayName=t;const a=e+"CollectionSlot",d=Qe(a),f=X.forwardRef((c,h)=>{const{scope:w,children:y}=c,x=s(a,w),C=te(h,x.collectionRef);return b.jsx(d,{ref:C,children:y})});f.displayName=a;const g=e+"CollectionItemSlot",m="data-radix-collection-item",v=Qe(g),p=X.forwardRef((c,h)=>{const{scope:w,children:y,...x}=c,C=X.useRef(null),_=te(h,C),O=s(g,w);return X.useEffect(()=>(O.itemMap.set(C,{ref:C,...x}),()=>void O.itemMap.delete(C))),b.jsx(v,{[m]:"",ref:_,children:y})});p.displayName=g;function l(c){const h=s(e+"CollectionConsumer",c);return X.useCallback(()=>{const y=h.collectionRef.current;if(!y)return[];const x=Array.from(y.querySelectorAll(`[${m}]`));return Array.from(h.itemMap.values()).sort((O,T)=>x.indexOf(O.ref.current)-x.indexOf(T.ref.current))},[h.collectionRef,h.itemMap])}return[{Provider:i,Slot:f,ItemSlot:p},l,r]}var Zo=u.createContext(void 0);function Go(e){const t=u.useContext(Zo);return e||t||"ltr"}var Jo=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],J=Jo.reduce((e,t)=>{const n=Qe(`Primitive.${t}`),r=u.forwardRef((o,s)=>{const{asChild:i,...a}=o,d=i?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),b.jsx(d,{...a,ref:s})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});function Qo(e,t){e&&st.flushSync(()=>e.dispatchEvent(t))}function Ae(e){const t=u.useRef(e);return u.useEffect(()=>{t.current=e}),u.useMemo(()=>(...n)=>{var r;return(r=t.current)==null?void 0:r.call(t,...n)},[])}function ei(e,t=globalThis==null?void 0:globalThis.document){const n=Ae(e);u.useEffect(()=>{const r=o=>{o.key==="Escape"&&n(o)};return t.addEventListener("keydown",r,{capture:!0}),()=>t.removeEventListener("keydown",r,{capture:!0})},[n,t])}var ti="DismissableLayer",Bt="dismissableLayer.update",ni="dismissableLayer.pointerDownOutside",ri="dismissableLayer.focusOutside",Ln,Fn=u.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),Wt=u.forwardRef((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:r,onPointerDownOutside:o,onFocusOutside:s,onInteractOutside:i,onDismiss:a,...d}=e,f=u.useContext(Fn),[g,m]=u.useState(null),v=(g==null?void 0:g.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,p]=u.useState({}),l=te(t,T=>m(T)),c=Array.from(f.layers),[h]=[...f.layersWithOutsidePointerEventsDisabled].slice(-1),w=c.indexOf(h),y=g?c.indexOf(g):-1,x=f.layersWithOutsidePointerEventsDisabled.size>0,C=y>=w,_=si(T=>{const L=T.target,I=[...f.branches].some(B=>B.contains(L));!C||I||(o==null||o(T),i==null||i(T),T.defaultPrevented||a==null||a())},v),O=ai(T=>{const L=T.target;[...f.branches].some(B=>B.contains(L))||(s==null||s(T),i==null||i(T),T.defaultPrevented||a==null||a())},v);return ei(T=>{y===f.layers.size-1&&(r==null||r(T),!T.defaultPrevented&&a&&(T.preventDefault(),a()))},v),u.useEffect(()=>{if(g)return n&&(f.layersWithOutsidePointerEventsDisabled.size===0&&(Ln=v.body.style.pointerEvents,v.body.style.pointerEvents="none"),f.layersWithOutsidePointerEventsDisabled.add(g)),f.layers.add(g),Bn(),()=>{n&&f.layersWithOutsidePointerEventsDisabled.size===1&&(v.body.style.pointerEvents=Ln)}},[g,v,n,f]),u.useEffect(()=>()=>{g&&(f.layers.delete(g),f.layersWithOutsidePointerEventsDisabled.delete(g),Bn())},[g,f]),u.useEffect(()=>{const T=()=>p({});return document.addEventListener(Bt,T),()=>document.removeEventListener(Bt,T)},[]),b.jsx(J.div,{...d,ref:l,style:{pointerEvents:x?C?"auto":"none":void 0,...e.style},onFocusCapture:Z(e.onFocusCapture,O.onFocusCapture),onBlurCapture:Z(e.onBlurCapture,O.onBlurCapture),onPointerDownCapture:Z(e.onPointerDownCapture,_.onPointerDownCapture)})});Wt.displayName=ti;var oi="DismissableLayerBranch",ii=u.forwardRef((e,t)=>{const n=u.useContext(Fn),r=u.useRef(null),o=te(t,r);return u.useEffect(()=>{const s=r.current;if(s)return n.branches.add(s),()=>{n.branches.delete(s)}},[n.branches]),b.jsx(J.div,{...e,ref:o})});ii.displayName=oi;function si(e,t=globalThis==null?void 0:globalThis.document){const n=Ae(e),r=u.useRef(!1),o=u.useRef(()=>{});return u.useEffect(()=>{const s=a=>{if(a.target&&!r.current){let d=function(){Wn(ni,n,f,{discrete:!0})};const f={originalEvent:a};a.pointerType==="touch"?(t.removeEventListener("click",o.current),o.current=d,t.addEventListener("click",o.current,{once:!0})):d()}else t.removeEventListener("click",o.current);r.current=!1},i=window.setTimeout(()=>{t.addEventListener("pointerdown",s)},0);return()=>{window.clearTimeout(i),t.removeEventListener("pointerdown",s),t.removeEventListener("click",o.current)}},[t,n]),{onPointerDownCapture:()=>r.current=!0}}function ai(e,t=globalThis==null?void 0:globalThis.document){const n=Ae(e),r=u.useRef(!1);return u.useEffect(()=>{const o=s=>{s.target&&!r.current&&Wn(ri,n,{originalEvent:s},{discrete:!1})};return t.addEventListener("focusin",o),()=>t.removeEventListener("focusin",o)},[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}function Bn(){const e=new CustomEvent(Bt);document.dispatchEvent(e)}function Wn(e,t,n,{discrete:r}){const o=n.originalEvent.target,s=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&o.addEventListener(e,t,{once:!0}),r?Qo(o,s):o.dispatchEvent(s)}var $t=0;function $n(){u.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??Vn()),document.body.insertAdjacentElement("beforeend",e[1]??Vn()),$t++,()=>{$t===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),$t--}},[])}function Vn(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.style.position="fixed",e.style.pointerEvents="none",e}var Vt="focusScope.autoFocusOnMount",Ht="focusScope.autoFocusOnUnmount",Hn={bubbles:!1,cancelable:!0},ci="FocusScope",zt=u.forwardRef((e,t)=>{const{loop:n=!1,trapped:r=!1,onMountAutoFocus:o,onUnmountAutoFocus:s,...i}=e,[a,d]=u.useState(null),f=Ae(o),g=Ae(s),m=u.useRef(null),v=te(t,c=>d(c)),p=u.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;u.useEffect(()=>{if(r){let c=function(x){if(p.paused||!a)return;const C=x.target;a.contains(C)?m.current=C:xe(m.current,{select:!0})},h=function(x){if(p.paused||!a)return;const C=x.relatedTarget;C!==null&&(a.contains(C)||xe(m.current,{select:!0}))},w=function(x){if(document.activeElement===document.body)for(const _ of x)_.removedNodes.length>0&&xe(a)};document.addEventListener("focusin",c),document.addEventListener("focusout",h);const y=new MutationObserver(w);return a&&y.observe(a,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",c),document.removeEventListener("focusout",h),y.disconnect()}}},[r,a,p.paused]),u.useEffect(()=>{if(a){Yn.add(p);const c=document.activeElement;if(!a.contains(c)){const w=new CustomEvent(Vt,Hn);a.addEventListener(Vt,f),a.dispatchEvent(w),w.defaultPrevented||(li(hi(zn(a)),{select:!0}),document.activeElement===c&&xe(a))}return()=>{a.removeEventListener(Vt,f),setTimeout(()=>{const w=new CustomEvent(Ht,Hn);a.addEventListener(Ht,g),a.dispatchEvent(w),w.defaultPrevented||xe(c??document.body,{select:!0}),a.removeEventListener(Ht,g),Yn.remove(p)},0)}}},[a,f,g,p]);const l=u.useCallback(c=>{if(!n&&!r||p.paused)return;const h=c.key==="Tab"&&!c.altKey&&!c.ctrlKey&&!c.metaKey,w=document.activeElement;if(h&&w){const y=c.currentTarget,[x,C]=ui(y);x&&C?!c.shiftKey&&w===C?(c.preventDefault(),n&&xe(x,{select:!0})):c.shiftKey&&w===x&&(c.preventDefault(),n&&xe(C,{select:!0})):w===y&&c.preventDefault()}},[n,r,p.paused]);return b.jsx(J.div,{tabIndex:-1,...i,ref:v,onKeyDown:l})});zt.displayName=ci;function li(e,{select:t=!1}={}){const n=document.activeElement;for(const r of e)if(xe(r,{select:t}),document.activeElement!==n)return}function ui(e){const t=zn(e),n=Un(t,e),r=Un(t.reverse(),e);return[n,r]}function zn(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>{const o=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||o?NodeFilter.FILTER_SKIP:r.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function Un(e,t){for(const n of e)if(!di(n,{upTo:t}))return n}function di(e,{upTo:t}){if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1}function fi(e){return e instanceof HTMLInputElement&&"select"in e}function xe(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&fi(e)&&t&&e.select()}}var Yn=pi();function pi(){let e=[];return{add(t){const n=e[0];t!==n&&(n==null||n.pause()),e=qn(e,t),e.unshift(t)},remove(t){var n;e=qn(e,t),(n=e[0])==null||n.resume()}}}function qn(e,t){const n=[...e],r=n.indexOf(t);return r!==-1&&n.splice(r,1),n}function hi(e){return e.filter(t=>t.tagName!=="A")}var ne=globalThis!=null&&globalThis.document?u.useLayoutEffect:()=>{},mi=u[" useId ".trim().toString()]||(()=>{}),vi=0;function ut(e){const[t,n]=u.useState(mi());return ne(()=>{n(r=>r??String(vi++))},[e]),e||(t?`radix-${t}`:"")}const gi=["top","right","bottom","left"],Se=Math.min,se=Math.max,dt=Math.round,ft=Math.floor,he=e=>({x:e,y:e}),yi={left:"right",right:"left",bottom:"top",top:"bottom"},wi={start:"end",end:"start"};function Ut(e,t,n){return se(e,Se(t,n))}function we(e,t){return typeof e=="function"?e(t):e}function be(e){return e.split("-")[0]}function je(e){return e.split("-")[1]}function Yt(e){return e==="x"?"y":"x"}function qt(e){return e==="y"?"height":"width"}const bi=new Set(["top","bottom"]);function me(e){return bi.has(be(e))?"y":"x"}function Kt(e){return Yt(me(e))}function xi(e,t,n){n===void 0&&(n=!1);const r=je(e),o=Kt(e),s=qt(o);let i=o==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[s]>t.floating[s]&&(i=pt(i)),[i,pt(i)]}function Si(e){const t=pt(e);return[Xt(e),t,Xt(t)]}function Xt(e){return e.replace(/start|end/g,t=>wi[t])}const Kn=["left","right"],Xn=["right","left"],_i=["top","bottom"],Ei=["bottom","top"];function Ci(e,t,n){switch(e){case"top":case"bottom":return n?t?Xn:Kn:t?Kn:Xn;case"left":case"right":return t?_i:Ei;default:return[]}}function Ri(e,t,n,r){const o=je(e);let s=Ci(be(e),n==="start",r);return o&&(s=s.map(i=>i+"-"+o),t&&(s=s.concat(s.map(Xt)))),s}function pt(e){return e.replace(/left|right|bottom|top/g,t=>yi[t])}function Ti(e){return{top:0,right:0,bottom:0,left:0,...e}}function Zn(e){return typeof e!="number"?Ti(e):{top:e,right:e,bottom:e,left:e}}function ht(e){const{x:t,y:n,width:r,height:o}=e;return{width:r,height:o,top:n,left:t,right:t+r,bottom:n+o,x:t,y:n}}function Gn(e,t,n){let{reference:r,floating:o}=e;const s=me(t),i=Kt(t),a=qt(i),d=be(t),f=s==="y",g=r.x+r.width/2-o.width/2,m=r.y+r.height/2-o.height/2,v=r[a]/2-o[a]/2;let p;switch(d){case"top":p={x:g,y:r.y-o.height};break;case"bottom":p={x:g,y:r.y+r.height};break;case"right":p={x:r.x+r.width,y:m};break;case"left":p={x:r.x-o.width,y:m};break;default:p={x:r.x,y:r.y}}switch(je(t)){case"start":p[i]-=v*(n&&f?-1:1);break;case"end":p[i]+=v*(n&&f?-1:1);break}return p}const Pi=async(e,t,n)=>{const{placement:r="bottom",strategy:o="absolute",middleware:s=[],platform:i}=n,a=s.filter(Boolean),d=await(i.isRTL==null?void 0:i.isRTL(t));let f=await i.getElementRects({reference:e,floating:t,strategy:o}),{x:g,y:m}=Gn(f,r,d),v=r,p={},l=0;for(let c=0;c<a.length;c++){const{name:h,fn:w}=a[c],{x:y,y:x,data:C,reset:_}=await w({x:g,y:m,initialPlacement:r,placement:v,strategy:o,middlewareData:p,rects:f,platform:i,elements:{reference:e,floating:t}});g=y??g,m=x??m,p={...p,[h]:{...p[h],...C}},_&&l<=50&&(l++,typeof _=="object"&&(_.placement&&(v=_.placement),_.rects&&(f=_.rects===!0?await i.getElementRects({reference:e,floating:t,strategy:o}):_.rects),{x:g,y:m}=Gn(f,v,d)),c=-1)}return{x:g,y:m,placement:v,strategy:o,middlewareData:p}};async function et(e,t){var n;t===void 0&&(t={});const{x:r,y:o,platform:s,rects:i,elements:a,strategy:d}=e,{boundary:f="clippingAncestors",rootBoundary:g="viewport",elementContext:m="floating",altBoundary:v=!1,padding:p=0}=we(t,e),l=Zn(p),h=a[v?m==="floating"?"reference":"floating":m],w=ht(await s.getClippingRect({element:(n=await(s.isElement==null?void 0:s.isElement(h)))==null||n?h:h.contextElement||await(s.getDocumentElement==null?void 0:s.getDocumentElement(a.floating)),boundary:f,rootBoundary:g,strategy:d})),y=m==="floating"?{x:r,y:o,width:i.floating.width,height:i.floating.height}:i.reference,x=await(s.getOffsetParent==null?void 0:s.getOffsetParent(a.floating)),C=await(s.isElement==null?void 0:s.isElement(x))?await(s.getScale==null?void 0:s.getScale(x))||{x:1,y:1}:{x:1,y:1},_=ht(s.convertOffsetParentRelativeRectToViewportRelativeRect?await s.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:y,offsetParent:x,strategy:d}):y);return{top:(w.top-_.top+l.top)/C.y,bottom:(_.bottom-w.bottom+l.bottom)/C.y,left:(w.left-_.left+l.left)/C.x,right:(_.right-w.right+l.right)/C.x}}const Oi=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:o,rects:s,platform:i,elements:a,middlewareData:d}=t,{element:f,padding:g=0}=we(e,t)||{};if(f==null)return{};const m=Zn(g),v={x:n,y:r},p=Kt(o),l=qt(p),c=await i.getDimensions(f),h=p==="y",w=h?"top":"left",y=h?"bottom":"right",x=h?"clientHeight":"clientWidth",C=s.reference[l]+s.reference[p]-v[p]-s.floating[l],_=v[p]-s.reference[p],O=await(i.getOffsetParent==null?void 0:i.getOffsetParent(f));let T=O?O[x]:0;(!T||!await(i.isElement==null?void 0:i.isElement(O)))&&(T=a.floating[x]||s.floating[l]);const L=C/2-_/2,I=T/2-c[l]/2-1,B=Se(m[w],I),W=Se(m[y],I),E=B,R=T-c[l]-W,P=T/2-c[l]/2+L,N=Ut(E,P,R),M=!d.arrow&&je(o)!=null&&P!==N&&s.reference[l]/2-(P<E?B:W)-c[l]/2<0,k=M?P<E?P-E:P-R:0;return{[p]:v[p]+k,data:{[p]:N,centerOffset:P-N-k,...M&&{alignmentOffset:k}},reset:M}}}),Ai=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:o,middlewareData:s,rects:i,initialPlacement:a,platform:d,elements:f}=t,{mainAxis:g=!0,crossAxis:m=!0,fallbackPlacements:v,fallbackStrategy:p="bestFit",fallbackAxisSideDirection:l="none",flipAlignment:c=!0,...h}=we(e,t);if((n=s.arrow)!=null&&n.alignmentOffset)return{};const w=be(o),y=me(a),x=be(a)===a,C=await(d.isRTL==null?void 0:d.isRTL(f.floating)),_=v||(x||!c?[pt(a)]:Si(a)),O=l!=="none";!v&&O&&_.push(...Ri(a,c,l,C));const T=[a,..._],L=await et(t,h),I=[];let B=((r=s.flip)==null?void 0:r.overflows)||[];if(g&&I.push(L[w]),m){const P=xi(o,i,C);I.push(L[P[0]],L[P[1]])}if(B=[...B,{placement:o,overflows:I}],!I.every(P=>P<=0)){var W,E;const P=(((W=s.flip)==null?void 0:W.index)||0)+1,N=T[P];if(N&&(!(m==="alignment"?y!==me(N):!1)||B.every(A=>me(A.placement)===y?A.overflows[0]>0:!0)))return{data:{index:P,overflows:B},reset:{placement:N}};let M=(E=B.filter(k=>k.overflows[0]<=0).sort((k,A)=>k.overflows[1]-A.overflows[1])[0])==null?void 0:E.placement;if(!M)switch(p){case"bestFit":{var R;const k=(R=B.filter(A=>{if(O){const j=me(A.placement);return j===y||j==="y"}return!0}).map(A=>[A.placement,A.overflows.filter(j=>j>0).reduce((j,H)=>j+H,0)]).sort((A,j)=>A[1]-j[1])[0])==null?void 0:R[0];k&&(M=k);break}case"initialPlacement":M=a;break}if(o!==M)return{reset:{placement:M}}}return{}}}};function Jn(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function Qn(e){return gi.some(t=>e[t]>=0)}const ki=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n}=t,{strategy:r="referenceHidden",...o}=we(e,t);switch(r){case"referenceHidden":{const s=await et(t,{...o,elementContext:"reference"}),i=Jn(s,n.reference);return{data:{referenceHiddenOffsets:i,referenceHidden:Qn(i)}}}case"escaped":{const s=await et(t,{...o,altBoundary:!0}),i=Jn(s,n.floating);return{data:{escapedOffsets:i,escaped:Qn(i)}}}default:return{}}}}},er=new Set(["left","top"]);async function Mi(e,t){const{placement:n,platform:r,elements:o}=e,s=await(r.isRTL==null?void 0:r.isRTL(o.floating)),i=be(n),a=je(n),d=me(n)==="y",f=er.has(i)?-1:1,g=s&&d?-1:1,m=we(t,e);let{mainAxis:v,crossAxis:p,alignmentAxis:l}=typeof m=="number"?{mainAxis:m,crossAxis:0,alignmentAxis:null}:{mainAxis:m.mainAxis||0,crossAxis:m.crossAxis||0,alignmentAxis:m.alignmentAxis};return a&&typeof l=="number"&&(p=a==="end"?l*-1:l),d?{x:p*g,y:v*f}:{x:v*f,y:p*g}}const Ni=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:o,y:s,placement:i,middlewareData:a}=t,d=await Mi(t,e);return i===((n=a.offset)==null?void 0:n.placement)&&(r=a.arrow)!=null&&r.alignmentOffset?{}:{x:o+d.x,y:s+d.y,data:{...d,placement:i}}}}},Ii=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:o}=t,{mainAxis:s=!0,crossAxis:i=!1,limiter:a={fn:h=>{let{x:w,y}=h;return{x:w,y}}},...d}=we(e,t),f={x:n,y:r},g=await et(t,d),m=me(be(o)),v=Yt(m);let p=f[v],l=f[m];if(s){const h=v==="y"?"top":"left",w=v==="y"?"bottom":"right",y=p+g[h],x=p-g[w];p=Ut(y,p,x)}if(i){const h=m==="y"?"top":"left",w=m==="y"?"bottom":"right",y=l+g[h],x=l-g[w];l=Ut(y,l,x)}const c=a.fn({...t,[v]:p,[m]:l});return{...c,data:{x:c.x-n,y:c.y-r,enabled:{[v]:s,[m]:i}}}}}},Di=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:n,y:r,placement:o,rects:s,middlewareData:i}=t,{offset:a=0,mainAxis:d=!0,crossAxis:f=!0}=we(e,t),g={x:n,y:r},m=me(o),v=Yt(m);let p=g[v],l=g[m];const c=we(a,t),h=typeof c=="number"?{mainAxis:c,crossAxis:0}:{mainAxis:0,crossAxis:0,...c};if(d){const x=v==="y"?"height":"width",C=s.reference[v]-s.floating[x]+h.mainAxis,_=s.reference[v]+s.reference[x]-h.mainAxis;p<C?p=C:p>_&&(p=_)}if(f){var w,y;const x=v==="y"?"width":"height",C=er.has(be(o)),_=s.reference[m]-s.floating[x]+(C&&((w=i.offset)==null?void 0:w[m])||0)+(C?0:h.crossAxis),O=s.reference[m]+s.reference[x]+(C?0:((y=i.offset)==null?void 0:y[m])||0)-(C?h.crossAxis:0);l<_?l=_:l>O&&(l=O)}return{[v]:p,[m]:l}}}},ji=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var n,r;const{placement:o,rects:s,platform:i,elements:a}=t,{apply:d=()=>{},...f}=we(e,t),g=await et(t,f),m=be(o),v=je(o),p=me(o)==="y",{width:l,height:c}=s.floating;let h,w;m==="top"||m==="bottom"?(h=m,w=v===(await(i.isRTL==null?void 0:i.isRTL(a.floating))?"start":"end")?"left":"right"):(w=m,h=v==="end"?"top":"bottom");const y=c-g.top-g.bottom,x=l-g.left-g.right,C=Se(c-g[h],y),_=Se(l-g[w],x),O=!t.middlewareData.shift;let T=C,L=_;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(L=x),(r=t.middlewareData.shift)!=null&&r.enabled.y&&(T=y),O&&!v){const B=se(g.left,0),W=se(g.right,0),E=se(g.top,0),R=se(g.bottom,0);p?L=l-2*(B!==0||W!==0?B+W:se(g.left,g.right)):T=c-2*(E!==0||R!==0?E+R:se(g.top,g.bottom))}await d({...t,availableWidth:L,availableHeight:T});const I=await i.getDimensions(a.floating);return l!==I.width||c!==I.height?{reset:{rects:!0}}:{}}}};function mt(){return typeof window<"u"}function Le(e){return tr(e)?(e.nodeName||"").toLowerCase():"#document"}function ae(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function ve(e){var t;return(t=(tr(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function tr(e){return mt()?e instanceof Node||e instanceof ae(e).Node:!1}function de(e){return mt()?e instanceof Element||e instanceof ae(e).Element:!1}function ge(e){return mt()?e instanceof HTMLElement||e instanceof ae(e).HTMLElement:!1}function nr(e){return!mt()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof ae(e).ShadowRoot}const Li=new Set(["inline","contents"]);function tt(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=fe(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!Li.has(o)}const Fi=new Set(["table","td","th"]);function Bi(e){return Fi.has(Le(e))}const Wi=[":popover-open",":modal"];function vt(e){return Wi.some(t=>{try{return e.matches(t)}catch{return!1}})}const $i=["transform","translate","scale","rotate","perspective"],Vi=["transform","translate","scale","rotate","perspective","filter"],Hi=["paint","layout","strict","content"];function Zt(e){const t=Gt(),n=de(e)?fe(e):e;return $i.some(r=>n[r]?n[r]!=="none":!1)||(n.containerType?n.containerType!=="normal":!1)||!t&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!t&&(n.filter?n.filter!=="none":!1)||Vi.some(r=>(n.willChange||"").includes(r))||Hi.some(r=>(n.contain||"").includes(r))}function zi(e){let t=_e(e);for(;ge(t)&&!Fe(t);){if(Zt(t))return t;if(vt(t))return null;t=_e(t)}return null}function Gt(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const Ui=new Set(["html","body","#document"]);function Fe(e){return Ui.has(Le(e))}function fe(e){return ae(e).getComputedStyle(e)}function gt(e){return de(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function _e(e){if(Le(e)==="html")return e;const t=e.assignedSlot||e.parentNode||nr(e)&&e.host||ve(e);return nr(t)?t.host:t}function rr(e){const t=_e(e);return Fe(t)?e.ownerDocument?e.ownerDocument.body:e.body:ge(t)&&tt(t)?t:rr(t)}function nt(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const o=rr(e),s=o===((r=e.ownerDocument)==null?void 0:r.body),i=ae(o);if(s){const a=Jt(i);return t.concat(i,i.visualViewport||[],tt(o)?o:[],a&&n?nt(a):[])}return t.concat(o,nt(o,[],n))}function Jt(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function or(e){const t=fe(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const o=ge(e),s=o?e.offsetWidth:n,i=o?e.offsetHeight:r,a=dt(n)!==s||dt(r)!==i;return a&&(n=s,r=i),{width:n,height:r,$:a}}function Qt(e){return de(e)?e:e.contextElement}function Be(e){const t=Qt(e);if(!ge(t))return he(1);const n=t.getBoundingClientRect(),{width:r,height:o,$:s}=or(t);let i=(s?dt(n.width):n.width)/r,a=(s?dt(n.height):n.height)/o;return(!i||!Number.isFinite(i))&&(i=1),(!a||!Number.isFinite(a))&&(a=1),{x:i,y:a}}const Yi=he(0);function ir(e){const t=ae(e);return!Gt()||!t.visualViewport?Yi:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function qi(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==ae(e)?!1:t}function ke(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const o=e.getBoundingClientRect(),s=Qt(e);let i=he(1);t&&(r?de(r)&&(i=Be(r)):i=Be(e));const a=qi(s,n,r)?ir(s):he(0);let d=(o.left+a.x)/i.x,f=(o.top+a.y)/i.y,g=o.width/i.x,m=o.height/i.y;if(s){const v=ae(s),p=r&&de(r)?ae(r):r;let l=v,c=Jt(l);for(;c&&r&&p!==l;){const h=Be(c),w=c.getBoundingClientRect(),y=fe(c),x=w.left+(c.clientLeft+parseFloat(y.paddingLeft))*h.x,C=w.top+(c.clientTop+parseFloat(y.paddingTop))*h.y;d*=h.x,f*=h.y,g*=h.x,m*=h.y,d+=x,f+=C,l=ae(c),c=Jt(l)}}return ht({width:g,height:m,x:d,y:f})}function yt(e,t){const n=gt(e).scrollLeft;return t?t.left+n:ke(ve(e)).left+n}function sr(e,t){const n=e.getBoundingClientRect(),r=n.left+t.scrollLeft-yt(e,n),o=n.top+t.scrollTop;return{x:r,y:o}}function Ki(e){let{elements:t,rect:n,offsetParent:r,strategy:o}=e;const s=o==="fixed",i=ve(r),a=t?vt(t.floating):!1;if(r===i||a&&s)return n;let d={scrollLeft:0,scrollTop:0},f=he(1);const g=he(0),m=ge(r);if((m||!m&&!s)&&((Le(r)!=="body"||tt(i))&&(d=gt(r)),ge(r))){const p=ke(r);f=Be(r),g.x=p.x+r.clientLeft,g.y=p.y+r.clientTop}const v=i&&!m&&!s?sr(i,d):he(0);return{width:n.width*f.x,height:n.height*f.y,x:n.x*f.x-d.scrollLeft*f.x+g.x+v.x,y:n.y*f.y-d.scrollTop*f.y+g.y+v.y}}function Xi(e){return Array.from(e.getClientRects())}function Zi(e){const t=ve(e),n=gt(e),r=e.ownerDocument.body,o=se(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),s=se(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let i=-n.scrollLeft+yt(e);const a=-n.scrollTop;return fe(r).direction==="rtl"&&(i+=se(t.clientWidth,r.clientWidth)-o),{width:o,height:s,x:i,y:a}}const ar=25;function Gi(e,t){const n=ae(e),r=ve(e),o=n.visualViewport;let s=r.clientWidth,i=r.clientHeight,a=0,d=0;if(o){s=o.width,i=o.height;const g=Gt();(!g||g&&t==="fixed")&&(a=o.offsetLeft,d=o.offsetTop)}const f=yt(r);if(f<=0){const g=r.ownerDocument,m=g.body,v=getComputedStyle(m),p=g.compatMode==="CSS1Compat"&&parseFloat(v.marginLeft)+parseFloat(v.marginRight)||0,l=Math.abs(r.clientWidth-m.clientWidth-p);l<=ar&&(s-=l)}else f<=ar&&(s+=f);return{width:s,height:i,x:a,y:d}}const Ji=new Set(["absolute","fixed"]);function Qi(e,t){const n=ke(e,!0,t==="fixed"),r=n.top+e.clientTop,o=n.left+e.clientLeft,s=ge(e)?Be(e):he(1),i=e.clientWidth*s.x,a=e.clientHeight*s.y,d=o*s.x,f=r*s.y;return{width:i,height:a,x:d,y:f}}function cr(e,t,n){let r;if(t==="viewport")r=Gi(e,n);else if(t==="document")r=Zi(ve(e));else if(de(t))r=Qi(t,n);else{const o=ir(e);r={x:t.x-o.x,y:t.y-o.y,width:t.width,height:t.height}}return ht(r)}function lr(e,t){const n=_e(e);return n===t||!de(n)||Fe(n)?!1:fe(n).position==="fixed"||lr(n,t)}function es(e,t){const n=t.get(e);if(n)return n;let r=nt(e,[],!1).filter(a=>de(a)&&Le(a)!=="body"),o=null;const s=fe(e).position==="fixed";let i=s?_e(e):e;for(;de(i)&&!Fe(i);){const a=fe(i),d=Zt(i);!d&&a.position==="fixed"&&(o=null),(s?!d&&!o:!d&&a.position==="static"&&!!o&&Ji.has(o.position)||tt(i)&&!d&&lr(e,i))?r=r.filter(g=>g!==i):o=a,i=_e(i)}return t.set(e,r),r}function ts(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e;const i=[...n==="clippingAncestors"?vt(t)?[]:es(t,this._c):[].concat(n),r],a=i[0],d=i.reduce((f,g)=>{const m=cr(t,g,o);return f.top=se(m.top,f.top),f.right=Se(m.right,f.right),f.bottom=Se(m.bottom,f.bottom),f.left=se(m.left,f.left),f},cr(t,a,o));return{width:d.right-d.left,height:d.bottom-d.top,x:d.left,y:d.top}}function ns(e){const{width:t,height:n}=or(e);return{width:t,height:n}}function rs(e,t,n){const r=ge(t),o=ve(t),s=n==="fixed",i=ke(e,!0,s,t);let a={scrollLeft:0,scrollTop:0};const d=he(0);function f(){d.x=yt(o)}if(r||!r&&!s)if((Le(t)!=="body"||tt(o))&&(a=gt(t)),r){const p=ke(t,!0,s,t);d.x=p.x+t.clientLeft,d.y=p.y+t.clientTop}else o&&f();s&&!r&&o&&f();const g=o&&!r&&!s?sr(o,a):he(0),m=i.left+a.scrollLeft-d.x-g.x,v=i.top+a.scrollTop-d.y-g.y;return{x:m,y:v,width:i.width,height:i.height}}function en(e){return fe(e).position==="static"}function ur(e,t){if(!ge(e)||fe(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return ve(e)===n&&(n=n.ownerDocument.body),n}function dr(e,t){const n=ae(e);if(vt(e))return n;if(!ge(e)){let o=_e(e);for(;o&&!Fe(o);){if(de(o)&&!en(o))return o;o=_e(o)}return n}let r=ur(e,t);for(;r&&Bi(r)&&en(r);)r=ur(r,t);return r&&Fe(r)&&en(r)&&!Zt(r)?n:r||zi(e)||n}const os=async function(e){const t=this.getOffsetParent||dr,n=this.getDimensions,r=await n(e.floating);return{reference:rs(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function is(e){return fe(e).direction==="rtl"}const ss={convertOffsetParentRelativeRectToViewportRelativeRect:Ki,getDocumentElement:ve,getClippingRect:ts,getOffsetParent:dr,getElementRects:os,getClientRects:Xi,getDimensions:ns,getScale:Be,isElement:de,isRTL:is};function fr(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function as(e,t){let n=null,r;const o=ve(e);function s(){var a;clearTimeout(r),(a=n)==null||a.disconnect(),n=null}function i(a,d){a===void 0&&(a=!1),d===void 0&&(d=1),s();const f=e.getBoundingClientRect(),{left:g,top:m,width:v,height:p}=f;if(a||t(),!v||!p)return;const l=ft(m),c=ft(o.clientWidth-(g+v)),h=ft(o.clientHeight-(m+p)),w=ft(g),x={rootMargin:-l+"px "+-c+"px "+-h+"px "+-w+"px",threshold:se(0,Se(1,d))||1};let C=!0;function _(O){const T=O[0].intersectionRatio;if(T!==d){if(!C)return i();T?i(!1,T):r=setTimeout(()=>{i(!1,1e-7)},1e3)}T===1&&!fr(f,e.getBoundingClientRect())&&i(),C=!1}try{n=new IntersectionObserver(_,{...x,root:o.ownerDocument})}catch{n=new IntersectionObserver(_,x)}n.observe(e)}return i(!0),s}function cs(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:o=!0,ancestorResize:s=!0,elementResize:i=typeof ResizeObserver=="function",layoutShift:a=typeof IntersectionObserver=="function",animationFrame:d=!1}=r,f=Qt(e),g=o||s?[...f?nt(f):[],...nt(t)]:[];g.forEach(w=>{o&&w.addEventListener("scroll",n,{passive:!0}),s&&w.addEventListener("resize",n)});const m=f&&a?as(f,n):null;let v=-1,p=null;i&&(p=new ResizeObserver(w=>{let[y]=w;y&&y.target===f&&p&&(p.unobserve(t),cancelAnimationFrame(v),v=requestAnimationFrame(()=>{var x;(x=p)==null||x.observe(t)})),n()}),f&&!d&&p.observe(f),p.observe(t));let l,c=d?ke(e):null;d&&h();function h(){const w=ke(e);c&&!fr(c,w)&&n(),c=w,l=requestAnimationFrame(h)}return n(),()=>{var w;g.forEach(y=>{o&&y.removeEventListener("scroll",n),s&&y.removeEventListener("resize",n)}),m==null||m(),(w=p)==null||w.disconnect(),p=null,d&&cancelAnimationFrame(l)}}const ls=Ni,us=Ii,ds=Ai,fs=ji,ps=ki,pr=Oi,hs=Di,ms=(e,t,n)=>{const r=new Map,o={platform:ss,...n},s={...o.platform,_c:r};return Pi(e,t,{...o,platform:s})};var vs=typeof document<"u",gs=function(){},wt=vs?X.useLayoutEffect:gs;function bt(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let n,r,o;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(r=n;r--!==0;)if(!bt(e[r],t[r]))return!1;return!0}if(o=Object.keys(e),n=o.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!{}.hasOwnProperty.call(t,o[r]))return!1;for(r=n;r--!==0;){const s=o[r];if(!(s==="_owner"&&e.$$typeof)&&!bt(e[s],t[s]))return!1}return!0}return e!==e&&t!==t}function hr(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function mr(e,t){const n=hr(e);return Math.round(t*n)/n}function tn(e){const t=u.useRef(e);return wt(()=>{t.current=e}),t}function ys(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:o,elements:{reference:s,floating:i}={},transform:a=!0,whileElementsMounted:d,open:f}=e,[g,m]=u.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[v,p]=u.useState(r);bt(v,r)||p(r);const[l,c]=u.useState(null),[h,w]=u.useState(null),y=u.useCallback(A=>{A!==O.current&&(O.current=A,c(A))},[]),x=u.useCallback(A=>{A!==T.current&&(T.current=A,w(A))},[]),C=s||l,_=i||h,O=u.useRef(null),T=u.useRef(null),L=u.useRef(g),I=d!=null,B=tn(d),W=tn(o),E=tn(f),R=u.useCallback(()=>{if(!O.current||!T.current)return;const A={placement:t,strategy:n,middleware:v};W.current&&(A.platform=W.current),ms(O.current,T.current,A).then(j=>{const H={...j,isPositioned:E.current!==!1};P.current&&!bt(L.current,H)&&(L.current=H,st.flushSync(()=>{m(H)}))})},[v,t,n,W,E]);wt(()=>{f===!1&&L.current.isPositioned&&(L.current.isPositioned=!1,m(A=>({...A,isPositioned:!1})))},[f]);const P=u.useRef(!1);wt(()=>(P.current=!0,()=>{P.current=!1}),[]),wt(()=>{if(C&&(O.current=C),_&&(T.current=_),C&&_){if(B.current)return B.current(C,_,R);R()}},[C,_,R,B,I]);const N=u.useMemo(()=>({reference:O,floating:T,setReference:y,setFloating:x}),[y,x]),M=u.useMemo(()=>({reference:C,floating:_}),[C,_]),k=u.useMemo(()=>{const A={position:n,left:0,top:0};if(!M.floating)return A;const j=mr(M.floating,g.x),H=mr(M.floating,g.y);return a?{...A,transform:"translate("+j+"px, "+H+"px)",...hr(M.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:j,top:H}},[n,a,M.floating,g.x,g.y]);return u.useMemo(()=>({...g,update:R,refs:N,elements:M,floatingStyles:k}),[g,R,N,M,k])}const ws=e=>{function t(n){return{}.hasOwnProperty.call(n,"current")}return{name:"arrow",options:e,fn(n){const{element:r,padding:o}=typeof e=="function"?e(n):e;return r&&t(r)?r.current!=null?pr({element:r.current,padding:o}).fn(n):{}:r?pr({element:r,padding:o}).fn(n):{}}}},bs=(e,t)=>({...ls(e),options:[e,t]}),xs=(e,t)=>({...us(e),options:[e,t]}),Ss=(e,t)=>({...hs(e),options:[e,t]}),_s=(e,t)=>({...ds(e),options:[e,t]}),Es=(e,t)=>({...fs(e),options:[e,t]}),Cs=(e,t)=>({...ps(e),options:[e,t]}),Rs=(e,t)=>({...ws(e),options:[e,t]});var Ts="Arrow",vr=u.forwardRef((e,t)=>{const{children:n,width:r=10,height:o=5,...s}=e;return b.jsx(J.svg,{...s,ref:t,width:r,height:o,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:b.jsx("polygon",{points:"0,0 30,0 15,10"})})});vr.displayName=Ts;var Ps=vr;function Os(e){const[t,n]=u.useState(void 0);return ne(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});const r=new ResizeObserver(o=>{if(!Array.isArray(o)||!o.length)return;const s=o[0];let i,a;if("borderBoxSize"in s){const d=s.borderBoxSize,f=Array.isArray(d)?d[0]:d;i=f.inlineSize,a=f.blockSize}else i=e.offsetWidth,a=e.offsetHeight;n({width:i,height:a})});return r.observe(e,{box:"border-box"}),()=>r.unobserve(e)}else n(void 0)},[e]),t}var nn="Popper",[gr,xt]=lt(nn),[As,yr]=gr(nn),wr=e=>{const{__scopePopper:t,children:n}=e,[r,o]=u.useState(null);return b.jsx(As,{scope:t,anchor:r,onAnchorChange:o,children:n})};wr.displayName=nn;var br="PopperAnchor",xr=u.forwardRef((e,t)=>{const{__scopePopper:n,virtualRef:r,...o}=e,s=yr(br,n),i=u.useRef(null),a=te(t,i),d=u.useRef(null);return u.useEffect(()=>{const f=d.current;d.current=(r==null?void 0:r.current)||i.current,f!==d.current&&s.onAnchorChange(d.current)}),r?null:b.jsx(J.div,{...o,ref:a})});xr.displayName=br;var rn="PopperContent",[ks,Ms]=gr(rn),Sr=u.forwardRef((e,t)=>{var D,z,ee,U,Y,K;const{__scopePopper:n,side:r="bottom",sideOffset:o=0,align:s="center",alignOffset:i=0,arrowPadding:a=0,avoidCollisions:d=!0,collisionBoundary:f=[],collisionPadding:g=0,sticky:m="partial",hideWhenDetached:v=!1,updatePositionStrategy:p="optimized",onPlaced:l,...c}=e,h=yr(rn,n),[w,y]=u.useState(null),x=te(t,re=>y(re)),[C,_]=u.useState(null),O=Os(C),T=(O==null?void 0:O.width)??0,L=(O==null?void 0:O.height)??0,I=r+(s!=="center"?"-"+s:""),B=typeof g=="number"?g:{top:0,right:0,bottom:0,left:0,...g},W=Array.isArray(f)?f:[f],E=W.length>0,R={padding:B,boundary:W.filter(Is),altBoundary:E},{refs:P,floatingStyles:N,placement:M,isPositioned:k,middlewareData:A}=ys({strategy:"fixed",placement:I,whileElementsMounted:(...re)=>cs(...re,{animationFrame:p==="always"}),elements:{reference:h.anchor},middleware:[bs({mainAxis:o+L,alignmentAxis:i}),d&&xs({mainAxis:!0,crossAxis:!1,limiter:m==="partial"?Ss():void 0,...R}),d&&_s({...R}),Es({...R,apply:({elements:re,rects:ce,availableWidth:le,availableHeight:Pe})=>{const{width:Oe,height:Dt}=ce.reference,jt=re.floating.style;jt.setProperty("--radix-popper-available-width",`${le}px`),jt.setProperty("--radix-popper-available-height",`${Pe}px`),jt.setProperty("--radix-popper-anchor-width",`${Oe}px`),jt.setProperty("--radix-popper-anchor-height",`${Dt}px`)}}),C&&Rs({element:C,padding:a}),Ds({arrowWidth:T,arrowHeight:L}),v&&Cs({strategy:"referenceHidden",...R})]}),[j,H]=Cr(M),S=Ae(l);ne(()=>{k&&(S==null||S())},[k,S]);const F=(D=A.arrow)==null?void 0:D.x,$=(z=A.arrow)==null?void 0:z.y,V=((ee=A.arrow)==null?void 0:ee.centerOffset)!==0,[q,Q]=u.useState();return ne(()=>{w&&Q(window.getComputedStyle(w).zIndex)},[w]),b.jsx("div",{ref:P.setFloating,"data-radix-popper-content-wrapper":"",style:{...N,transform:k?N.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:q,"--radix-popper-transform-origin":[(U=A.transformOrigin)==null?void 0:U.x,(Y=A.transformOrigin)==null?void 0:Y.y].join(" "),...((K=A.hide)==null?void 0:K.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:b.jsx(ks,{scope:n,placedSide:j,onArrowChange:_,arrowX:F,arrowY:$,shouldHideArrow:V,children:b.jsx(J.div,{"data-side":j,"data-align":H,...c,ref:x,style:{...c.style,animation:k?void 0:"none"}})})})});Sr.displayName=rn;var _r="PopperArrow",Ns={top:"bottom",right:"left",bottom:"top",left:"right"},Er=u.forwardRef(function(t,n){const{__scopePopper:r,...o}=t,s=Ms(_r,r),i=Ns[s.placedSide];return b.jsx("span",{ref:s.onArrowChange,style:{position:"absolute",left:s.arrowX,top:s.arrowY,[i]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[s.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[s.placedSide],visibility:s.shouldHideArrow?"hidden":void 0},children:b.jsx(Ps,{...o,ref:n,style:{...o.style,display:"block"}})})});Er.displayName=_r;function Is(e){return e!==null}var Ds=e=>({name:"transformOrigin",options:e,fn(t){var h,w,y;const{placement:n,rects:r,middlewareData:o}=t,i=((h=o.arrow)==null?void 0:h.centerOffset)!==0,a=i?0:e.arrowWidth,d=i?0:e.arrowHeight,[f,g]=Cr(n),m={start:"0%",center:"50%",end:"100%"}[g],v=(((w=o.arrow)==null?void 0:w.x)??0)+a/2,p=(((y=o.arrow)==null?void 0:y.y)??0)+d/2;let l="",c="";return f==="bottom"?(l=i?m:`${v}px`,c=`${-d}px`):f==="top"?(l=i?m:`${v}px`,c=`${r.floating.height+d}px`):f==="right"?(l=`${-d}px`,c=i?m:`${p}px`):f==="left"&&(l=`${r.floating.width+d}px`,c=i?m:`${p}px`),{data:{x:l,y:c}}}});function Cr(e){const[t,n="center"]=e.split("-");return[t,n]}var Rr=wr,on=xr,Tr=Sr,Pr=Er,js="Portal",sn=u.forwardRef((e,t)=>{var a;const{container:n,...r}=e,[o,s]=u.useState(!1);ne(()=>s(!0),[]);const i=n||o&&((a=globalThis==null?void 0:globalThis.document)==null?void 0:a.body);return i?Sn.createPortal(b.jsx(J.div,{...r,ref:t}),i):null});sn.displayName=js;var Ls=u[" useInsertionEffect ".trim().toString()]||ne;function an({prop:e,defaultProp:t,onChange:n=()=>{},caller:r}){const[o,s,i]=Fs({defaultProp:t,onChange:n}),a=e!==void 0,d=a?e:o;{const g=u.useRef(e!==void 0);u.useEffect(()=>{const m=g.current;m!==a&&console.warn(`${r} is changing from ${m?"controlled":"uncontrolled"} to ${a?"controlled":"uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),g.current=a},[a,r])}const f=u.useCallback(g=>{var m;if(a){const v=Bs(g)?g(e):g;v!==e&&((m=i.current)==null||m.call(i,v))}else s(g)},[a,e,s,i]);return[d,f]}function Fs({defaultProp:e,onChange:t}){const[n,r]=u.useState(e),o=u.useRef(n),s=u.useRef(t);return Ls(()=>{s.current=t},[t]),u.useEffect(()=>{var i;o.current!==n&&((i=s.current)==null||i.call(s,n),o.current=n)},[n,o]),[n,r,s]}function Bs(e){return typeof e=="function"}function Ws(e){const t=u.useRef({value:e,previous:e});return u.useMemo(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}var Or=Object.freeze({position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal"}),$s="VisuallyHidden",Vs=u.forwardRef((e,t)=>b.jsx(J.span,{...e,ref:t,style:{...Or,...e.style}}));Vs.displayName=$s;var Hs=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},We=new WeakMap,St=new WeakMap,_t={},cn=0,Ar=function(e){return e&&(e.host||Ar(e.parentNode))},zs=function(e,t){return t.map(function(n){if(e.contains(n))return n;var r=Ar(n);return r&&e.contains(r)?r:(console.error("aria-hidden",n,"in not contained inside",e,". Doing nothing"),null)}).filter(function(n){return!!n})},Us=function(e,t,n,r){var o=zs(t,Array.isArray(e)?e:[e]);_t[n]||(_t[n]=new WeakMap);var s=_t[n],i=[],a=new Set,d=new Set(o),f=function(m){!m||a.has(m)||(a.add(m),f(m.parentNode))};o.forEach(f);var g=function(m){!m||d.has(m)||Array.prototype.forEach.call(m.children,function(v){if(a.has(v))g(v);else try{var p=v.getAttribute(r),l=p!==null&&p!=="false",c=(We.get(v)||0)+1,h=(s.get(v)||0)+1;We.set(v,c),s.set(v,h),i.push(v),c===1&&l&&St.set(v,!0),h===1&&v.setAttribute(n,"true"),l||v.setAttribute(r,"true")}catch(w){console.error("aria-hidden: cannot operate on ",v,w)}})};return g(t),a.clear(),cn++,function(){i.forEach(function(m){var v=We.get(m)-1,p=s.get(m)-1;We.set(m,v),s.set(m,p),v||(St.has(m)||m.removeAttribute(r),St.delete(m)),p||m.removeAttribute(n)}),cn--,cn||(We=new WeakMap,We=new WeakMap,St=new WeakMap,_t={})}},kr=function(e,t,n){n===void 0&&(n="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),o=Hs(e);return o?(r.push.apply(r,Array.from(o.querySelectorAll("[aria-live], script"))),Us(r,o,n,"aria-hidden")):function(){return null}},ye=function(){return ye=Object.assign||function(t){for(var n,r=1,o=arguments.length;r<o;r++){n=arguments[r];for(var s in n)Object.prototype.hasOwnProperty.call(n,s)&&(t[s]=n[s])}return t},ye.apply(this,arguments)};function Mr(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n}function Ys(e,t,n){if(n||arguments.length===2)for(var r=0,o=t.length,s;r<o;r++)(s||!(r in t))&&(s||(s=Array.prototype.slice.call(t,0,r)),s[r]=t[r]);return e.concat(s||Array.prototype.slice.call(t))}typeof SuppressedError=="function"&&SuppressedError;var Et="right-scroll-bar-position",Ct="width-before-scroll-bar",qs="with-scroll-bars-hidden",Ks="--removed-body-scroll-bar-size";function ln(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function Xs(e,t){var n=X.useState(function(){return{value:e,callback:t,facade:{get current(){return n.value},set current(r){var o=n.value;o!==r&&(n.value=r,n.callback(r,o))}}}})[0];return n.callback=t,n.facade}var Zs=typeof window<"u"?u.useLayoutEffect:u.useEffect,Nr=new WeakMap;function Gs(e,t){var n=Xs(null,function(r){return e.forEach(function(o){return ln(o,r)})});return Zs(function(){var r=Nr.get(n);if(r){var o=new Set(r),s=new Set(e),i=n.current;o.forEach(function(a){s.has(a)||ln(a,null)}),s.forEach(function(a){o.has(a)||ln(a,i)})}Nr.set(n,e)},[e]),n}function Js(e){return e}function Qs(e,t){t===void 0&&(t=Js);var n=[],r=!1,o={read:function(){if(r)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:e},useMedium:function(s){var i=t(s,r);return n.push(i),function(){n=n.filter(function(a){return a!==i})}},assignSyncMedium:function(s){for(r=!0;n.length;){var i=n;n=[],i.forEach(s)}n={push:function(a){return s(a)},filter:function(){return n}}},assignMedium:function(s){r=!0;var i=[];if(n.length){var a=n;n=[],a.forEach(s),i=n}var d=function(){var g=i;i=[],g.forEach(s)},f=function(){return Promise.resolve().then(d)};f(),n={push:function(g){i.push(g),f()},filter:function(g){return i=i.filter(g),n}}}};return o}function ea(e){e===void 0&&(e={});var t=Qs(null);return t.options=ye({async:!0,ssr:!1},e),t}var Ir=function(e){var t=e.sideCar,n=Mr(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var r=t.read();if(!r)throw new Error("Sidecar medium not found");return u.createElement(r,ye({},n))};Ir.isSideCarExport=!0;function ta(e,t){return e.useMedium(t),Ir}var Dr=ea(),un=function(){},Rt=u.forwardRef(function(e,t){var n=u.useRef(null),r=u.useState({onScrollCapture:un,onWheelCapture:un,onTouchMoveCapture:un}),o=r[0],s=r[1],i=e.forwardProps,a=e.children,d=e.className,f=e.removeScrollBar,g=e.enabled,m=e.shards,v=e.sideCar,p=e.noRelative,l=e.noIsolation,c=e.inert,h=e.allowPinchZoom,w=e.as,y=w===void 0?"div":w,x=e.gapMode,C=Mr(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),_=v,O=Gs([n,t]),T=ye(ye({},C),o);return u.createElement(u.Fragment,null,g&&u.createElement(_,{sideCar:Dr,removeScrollBar:f,shards:m,noRelative:p,noIsolation:l,inert:c,setCallbacks:s,allowPinchZoom:!!h,lockRef:n,gapMode:x}),i?u.cloneElement(u.Children.only(a),ye(ye({},T),{ref:O})):u.createElement(y,ye({},T,{className:d,ref:O}),a))});Rt.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},Rt.classNames={fullWidth:Ct,zeroRight:Et};var na=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function ra(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=na();return t&&e.setAttribute("nonce",t),e}function oa(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function ia(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var sa=function(){var e=0,t=null;return{add:function(n){e==0&&(t=ra())&&(oa(t,n),ia(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},aa=function(){var e=sa();return function(t,n){u.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},jr=function(){var e=aa(),t=function(n){var r=n.styles,o=n.dynamic;return e(r,o),null};return t},ca={left:0,top:0,right:0,gap:0},dn=function(e){return parseInt(e||"",10)||0},la=function(e){var t=window.getComputedStyle(document.body),n=t[e==="padding"?"paddingLeft":"marginLeft"],r=t[e==="padding"?"paddingTop":"marginTop"],o=t[e==="padding"?"paddingRight":"marginRight"];return[dn(n),dn(r),dn(o)]},ua=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return ca;var t=la(e),n=document.documentElement.clientWidth,r=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,r-n+t[2]-t[0])}},da=jr(),$e="data-scroll-locked",fa=function(e,t,n,r){var o=e.left,s=e.top,i=e.right,a=e.gap;return n===void 0&&(n="margin"),`
|
|
23
23
|
.`.concat(qs,` {
|
|
24
24
|
overflow: hidden `).concat(r,`;
|
|
25
25
|
padding-right: `).concat(a,"px ").concat(r,`;
|
|
26
26
|
}
|
|
27
|
-
body[`).concat(
|
|
27
|
+
body[`).concat($e,`] {
|
|
28
28
|
overflow: hidden `).concat(r,`;
|
|
29
29
|
overscroll-behavior: contain;
|
|
30
30
|
`).concat([t&&"position: relative ".concat(r,";"),n==="margin"&&`
|
|
@@ -53,10 +53,10 @@ React keys must be passed directly to JSX without using spread:
|
|
|
53
53
|
margin-right: 0 `).concat(r,`;
|
|
54
54
|
}
|
|
55
55
|
|
|
56
|
-
body[`).concat(
|
|
56
|
+
body[`).concat($e,`] {
|
|
57
57
|
`).concat(Ks,": ").concat(a,`px;
|
|
58
58
|
}
|
|
59
|
-
`)},Lr=function(){var e=parseInt(document.body.getAttribute(
|
|
59
|
+
`)},Lr=function(){var e=parseInt(document.body.getAttribute($e)||"0",10);return isFinite(e)?e:0},pa=function(){u.useEffect(function(){return document.body.setAttribute($e,(Lr()+1).toString()),function(){var e=Lr()-1;e<=0?document.body.removeAttribute($e):document.body.setAttribute($e,e.toString())}},[])},ha=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,o=r===void 0?"margin":r;pa();var s=u.useMemo(function(){return ua(o)},[o]);return u.createElement(da,{styles:fa(s,!t,o,n?"":"!important")})},fn=!1;if(typeof window<"u")try{var Tt=Object.defineProperty({},"passive",{get:function(){return fn=!0,!0}});window.addEventListener("test",Tt,Tt),window.removeEventListener("test",Tt,Tt)}catch{fn=!1}var Ve=fn?{passive:!1}:!1,ma=function(e){return e.tagName==="TEXTAREA"},Fr=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return n[t]!=="hidden"&&!(n.overflowY===n.overflowX&&!ma(e)&&n[t]==="visible")},va=function(e){return Fr(e,"overflowY")},ga=function(e){return Fr(e,"overflowX")},Br=function(e,t){var n=t.ownerDocument,r=t;do{typeof ShadowRoot<"u"&&r instanceof ShadowRoot&&(r=r.host);var o=Wr(e,r);if(o){var s=$r(e,r),i=s[1],a=s[2];if(i>a)return!0}r=r.parentNode}while(r&&r!==n.body);return!1},ya=function(e){var t=e.scrollTop,n=e.scrollHeight,r=e.clientHeight;return[t,n,r]},wa=function(e){var t=e.scrollLeft,n=e.scrollWidth,r=e.clientWidth;return[t,n,r]},Wr=function(e,t){return e==="v"?va(t):ga(t)},$r=function(e,t){return e==="v"?ya(t):wa(t)},ba=function(e,t){return e==="h"&&t==="rtl"?-1:1},xa=function(e,t,n,r,o){var s=ba(e,window.getComputedStyle(t).direction),i=s*r,a=n.target,d=t.contains(a),f=!1,g=i>0,m=0,v=0;do{if(!a)break;var p=$r(e,a),l=p[0],c=p[1],h=p[2],w=c-h-s*l;(l||w)&&Wr(e,a)&&(m+=w,v+=l);var y=a.parentNode;a=y&&y.nodeType===Node.DOCUMENT_FRAGMENT_NODE?y.host:y}while(!d&&a!==document.body||d&&(t.contains(a)||t===a));return(g&&Math.abs(m)<1||!g&&Math.abs(v)<1)&&(f=!0),f},Pt=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},Vr=function(e){return[e.deltaX,e.deltaY]},Hr=function(e){return e&&"current"in e?e.current:e},Sa=function(e,t){return e[0]===t[0]&&e[1]===t[1]},_a=function(e){return`
|
|
60
60
|
.block-interactivity-`.concat(e,` {pointer-events: none;}
|
|
61
61
|
.allow-interactivity-`).concat(e,` {pointer-events: all;}
|
|
62
|
-
`)},Ea=0,He=[];function Ca(e){var t=u.useRef([]),n=u.useRef([0,0]),r=u.useRef(),o=u.useState(Ea++)[0],s=u.useState(jr)[0],i=u.useRef(e);u.useEffect(function(){i.current=e},[e]),u.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(o));var c=Ys([e.lockRef.current],(e.shards||[]).map(Hr),!0).filter(Boolean);return c.forEach(function(h){return h.classList.add("allow-interactivity-".concat(o))}),function(){document.body.classList.remove("block-interactivity-".concat(o)),c.forEach(function(h){return h.classList.remove("allow-interactivity-".concat(o))})}}},[e.inert,e.lockRef.current,e.shards]);var a=u.useCallback(function(c,h){if("touches"in c&&c.touches.length===2||c.type==="wheel"&&c.ctrlKey)return!i.current.allowPinchZoom;var b=Pt(c),y=n.current,x="deltaX"in c?c.deltaX:y[0]-b[0],C="deltaY"in c?c.deltaY:y[1]-b[1],_,O=c.target,T=Math.abs(x)>Math.abs(C)?"h":"v";if("touches"in c&&T==="h"&&O.type==="range")return!1;var L=window.getSelection(),I=L&&L.anchorNode,B=I?I===O||I.contains(O):!1;if(B)return!1;var W=Br(T,O);if(!W)return!0;if(W?_=T:(_=T==="v"?"h":"v",W=Br(T,O)),!W)return!1;if(!r.current&&"changedTouches"in c&&(x||C)&&(r.current=_),!_)return!0;var E=r.current||_;return xa(E,h,c,E==="h"?x:C)},[]),d=u.useCallback(function(c){var h=c;if(!(!He.length||He[He.length-1]!==s)){var b="deltaY"in h?$r(h):Pt(h),y=t.current.filter(function(_){return _.name===h.type&&(_.target===h.target||h.target===_.shadowParent)&&Sa(_.delta,b)})[0];if(y&&y.should){h.cancelable&&h.preventDefault();return}if(!y){var x=(i.current.shards||[]).map(Hr).filter(Boolean).filter(function(_){return _.contains(h.target)}),C=x.length>0?a(h,x[0]):!i.current.noIsolation;C&&h.cancelable&&h.preventDefault()}}},[]),f=u.useCallback(function(c,h,b,y){var x={name:c,delta:h,target:b,should:y,shadowParent:Ra(b)};t.current.push(x),setTimeout(function(){t.current=t.current.filter(function(C){return C!==x})},1)},[]),g=u.useCallback(function(c){n.current=Pt(c),r.current=void 0},[]),m=u.useCallback(function(c){f(c.type,$r(c),c.target,a(c,e.lockRef.current))},[]),v=u.useCallback(function(c){f(c.type,Pt(c),c.target,a(c,e.lockRef.current))},[]);u.useEffect(function(){return He.push(s),e.setCallbacks({onScrollCapture:m,onWheelCapture:m,onTouchMoveCapture:v}),document.addEventListener("wheel",d,$e),document.addEventListener("touchmove",d,$e),document.addEventListener("touchstart",g,$e),function(){He=He.filter(function(c){return c!==s}),document.removeEventListener("wheel",d,$e),document.removeEventListener("touchmove",d,$e),document.removeEventListener("touchstart",g,$e)}},[]);var p=e.removeScrollBar,l=e.inert;return u.createElement(u.Fragment,null,l?u.createElement(s,{styles:_a(o)}):null,p?u.createElement(ha,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function Ra(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const Ta=ta(Dr,Ca);var pn=u.forwardRef(function(e,t){return u.createElement(Rt,ye({},e,{ref:t,sideCar:Ta}))});pn.classNames=Rt.classNames;var Pa=[" ","Enter","ArrowUp","ArrowDown"],Oa=[" ","Enter"],Me="Select",[Ot,At,Aa]=Xo(Me),[ze]=lt(Me,[Aa,xt]),kt=xt(),[ka,Ee]=ze(Me),[Ma,Na]=ze(Me),zr=e=>{const{__scopeSelect:t,children:n,open:r,defaultOpen:o,onOpenChange:s,value:i,defaultValue:a,onValueChange:d,dir:f,name:g,autoComplete:m,disabled:v,required:p,form:l}=e,c=kt(t),[h,b]=u.useState(null),[y,x]=u.useState(null),[C,_]=u.useState(!1),O=Go(f),[T,L]=an({prop:r,defaultProp:o??!1,onChange:s,caller:Me}),[I,B]=an({prop:i,defaultProp:a,onChange:d,caller:Me}),W=u.useRef(null),E=h?l||!!h.closest("form"):!0,[R,P]=u.useState(new Set),N=Array.from(R).map(M=>M.props.value).join(";");return w.jsx(Rr,{...c,children:w.jsxs(ka,{required:p,scope:t,trigger:h,onTriggerChange:b,valueNode:y,onValueNodeChange:x,valueNodeHasChildren:C,onValueNodeHasChildrenChange:_,contentId:ut(),value:I,onValueChange:B,open:T,onOpenChange:L,dir:O,triggerPointerDownPosRef:W,disabled:v,children:[w.jsx(Ot.Provider,{scope:t,children:w.jsx(Ma,{scope:e.__scopeSelect,onNativeOptionAdd:u.useCallback(M=>{P(k=>new Set(k).add(M))},[]),onNativeOptionRemove:u.useCallback(M=>{P(k=>{const A=new Set(k);return A.delete(M),A})},[]),children:n})}),E?w.jsxs(lo,{"aria-hidden":!0,required:p,tabIndex:-1,name:g,autoComplete:m,value:I,onChange:M=>B(M.target.value),disabled:v,form:l,children:[I===void 0?w.jsx("option",{value:""}):null,Array.from(R)]},N):null]})})};zr.displayName=Me;var Ur="SelectTrigger",Yr=u.forwardRef((e,t)=>{const{__scopeSelect:n,disabled:r=!1,...o}=e,s=kt(n),i=Ee(Ur,n),a=i.disabled||r,d=te(t,i.onTriggerChange),f=At(n),g=u.useRef("touch"),[m,v,p]=fo(c=>{const h=f().filter(x=>!x.disabled),b=h.find(x=>x.value===i.value),y=po(h,c,b);y!==void 0&&i.onValueChange(y.value)}),l=c=>{a||(i.onOpenChange(!0),p()),c&&(i.triggerPointerDownPosRef.current={x:Math.round(c.pageX),y:Math.round(c.pageY)})};return w.jsx(on,{asChild:!0,...s,children:w.jsx(J.button,{type:"button",role:"combobox","aria-controls":i.contentId,"aria-expanded":i.open,"aria-required":i.required,"aria-autocomplete":"none",dir:i.dir,"data-state":i.open?"open":"closed",disabled:a,"data-disabled":a?"":void 0,"data-placeholder":uo(i.value)?"":void 0,...o,ref:d,onClick:Z(o.onClick,c=>{c.currentTarget.focus(),g.current!=="mouse"&&l(c)}),onPointerDown:Z(o.onPointerDown,c=>{g.current=c.pointerType;const h=c.target;h.hasPointerCapture(c.pointerId)&&h.releasePointerCapture(c.pointerId),c.button===0&&c.ctrlKey===!1&&c.pointerType==="mouse"&&(l(c),c.preventDefault())}),onKeyDown:Z(o.onKeyDown,c=>{const h=m.current!=="";!(c.ctrlKey||c.altKey||c.metaKey)&&c.key.length===1&&v(c.key),!(h&&c.key===" ")&&Pa.includes(c.key)&&(l(),c.preventDefault())})})})});Yr.displayName=Ur;var qr="SelectValue",Kr=u.forwardRef((e,t)=>{const{__scopeSelect:n,className:r,style:o,children:s,placeholder:i="",...a}=e,d=Ee(qr,n),{onValueNodeHasChildrenChange:f}=d,g=s!==void 0,m=te(t,d.onValueNodeChange);return ne(()=>{f(g)},[f,g]),w.jsx(J.span,{...a,ref:m,style:{pointerEvents:"none"},children:uo(d.value)?w.jsx(w.Fragment,{children:i}):s})});Kr.displayName=qr;var Ia="SelectIcon",Xr=u.forwardRef((e,t)=>{const{__scopeSelect:n,children:r,...o}=e;return w.jsx(J.span,{"aria-hidden":!0,...o,ref:t,children:r||"▼"})});Xr.displayName=Ia;var Da="SelectPortal",Zr=e=>w.jsx(sn,{asChild:!0,...e});Zr.displayName=Da;var Ne="SelectContent",Gr=u.forwardRef((e,t)=>{const n=Ee(Ne,e.__scopeSelect),[r,o]=u.useState();if(ne(()=>{o(new DocumentFragment)},[]),!n.open){const s=r;return s?st.createPortal(w.jsx(Jr,{scope:e.__scopeSelect,children:w.jsx(Ot.Slot,{scope:e.__scopeSelect,children:w.jsx("div",{children:e.children})})}),s):null}return w.jsx(Qr,{...e,ref:t})});Gr.displayName=Ne;var pe=10,[Jr,Ce]=ze(Ne),ja="SelectContentImpl",La=Qe("SelectContent.RemoveScroll"),Qr=u.forwardRef((e,t)=>{const{__scopeSelect:n,position:r="item-aligned",onCloseAutoFocus:o,onEscapeKeyDown:s,onPointerDownOutside:i,side:a,sideOffset:d,align:f,alignOffset:g,arrowPadding:m,collisionBoundary:v,collisionPadding:p,sticky:l,hideWhenDetached:c,avoidCollisions:h,...b}=e,y=Ee(Ne,n),[x,C]=u.useState(null),[_,O]=u.useState(null),T=te(t,D=>C(D)),[L,I]=u.useState(null),[B,W]=u.useState(null),E=At(n),[R,P]=u.useState(!1),N=u.useRef(!1);u.useEffect(()=>{if(x)return kr(x)},[x]),Vn();const M=u.useCallback(D=>{const[z,...ee]=E().map(K=>K.ref.current),[U]=ee.slice(-1),Y=document.activeElement;for(const K of D)if(K===Y||(K==null||K.scrollIntoView({block:"nearest"}),K===z&&_&&(_.scrollTop=0),K===U&&_&&(_.scrollTop=_.scrollHeight),K==null||K.focus(),document.activeElement!==Y))return},[E,_]),k=u.useCallback(()=>M([L,x]),[M,L,x]);u.useEffect(()=>{R&&k()},[R,k]);const{onOpenChange:A,triggerPointerDownPosRef:j}=y;u.useEffect(()=>{if(x){let D={x:0,y:0};const z=U=>{var Y,K;D={x:Math.abs(Math.round(U.pageX)-(((Y=j.current)==null?void 0:Y.x)??0)),y:Math.abs(Math.round(U.pageY)-(((K=j.current)==null?void 0:K.y)??0))}},ee=U=>{D.x<=10&&D.y<=10?U.preventDefault():x.contains(U.target)||A(!1),document.removeEventListener("pointermove",z),j.current=null};return j.current!==null&&(document.addEventListener("pointermove",z),document.addEventListener("pointerup",ee,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",z),document.removeEventListener("pointerup",ee,{capture:!0})}}},[x,A,j]),u.useEffect(()=>{const D=()=>A(!1);return window.addEventListener("blur",D),window.addEventListener("resize",D),()=>{window.removeEventListener("blur",D),window.removeEventListener("resize",D)}},[A]);const[H,S]=fo(D=>{const z=E().filter(Y=>!Y.disabled),ee=z.find(Y=>Y.ref.current===document.activeElement),U=po(z,D,ee);U&&setTimeout(()=>U.ref.current.focus())}),F=u.useCallback((D,z,ee)=>{const U=!N.current&&!ee;(y.value!==void 0&&y.value===z||U)&&(I(D),U&&(N.current=!0))},[y.value]),V=u.useCallback(()=>x==null?void 0:x.focus(),[x]),$=u.useCallback((D,z,ee)=>{const U=!N.current&&!ee;(y.value!==void 0&&y.value===z||U)&&W(D)},[y.value]),q=r==="popper"?hn:eo,Q=q===hn?{side:a,sideOffset:d,align:f,alignOffset:g,arrowPadding:m,collisionBoundary:v,collisionPadding:p,sticky:l,hideWhenDetached:c,avoidCollisions:h}:{};return w.jsx(Jr,{scope:n,content:x,viewport:_,onViewportChange:O,itemRefCallback:F,selectedItem:L,onItemLeave:V,itemTextRefCallback:$,focusSelectedItem:k,selectedItemText:B,position:r,isPositioned:R,searchRef:H,children:w.jsx(pn,{as:La,allowPinchZoom:!0,children:w.jsx(zt,{asChild:!0,trapped:y.open,onMountAutoFocus:D=>{D.preventDefault()},onUnmountAutoFocus:Z(o,D=>{var z;(z=y.trigger)==null||z.focus({preventScroll:!0}),D.preventDefault()}),children:w.jsx(Wt,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:s,onPointerDownOutside:i,onFocusOutside:D=>D.preventDefault(),onDismiss:()=>y.onOpenChange(!1),children:w.jsx(q,{role:"listbox",id:y.contentId,"data-state":y.open?"open":"closed",dir:y.dir,onContextMenu:D=>D.preventDefault(),...b,...Q,onPlaced:()=>P(!0),ref:T,style:{display:"flex",flexDirection:"column",outline:"none",...b.style},onKeyDown:Z(b.onKeyDown,D=>{const z=D.ctrlKey||D.altKey||D.metaKey;if(D.key==="Tab"&&D.preventDefault(),!z&&D.key.length===1&&S(D.key),["ArrowUp","ArrowDown","Home","End"].includes(D.key)){let U=E().filter(Y=>!Y.disabled).map(Y=>Y.ref.current);if(["ArrowUp","End"].includes(D.key)&&(U=U.slice().reverse()),["ArrowUp","ArrowDown"].includes(D.key)){const Y=D.target,K=U.indexOf(Y);U=U.slice(K+1)}setTimeout(()=>M(U)),D.preventDefault()}})})})})})})});Qr.displayName=ja;var Fa="SelectItemAlignedPosition",eo=u.forwardRef((e,t)=>{const{__scopeSelect:n,onPlaced:r,...o}=e,s=Ee(Ne,n),i=Ce(Ne,n),[a,d]=u.useState(null),[f,g]=u.useState(null),m=te(t,T=>g(T)),v=At(n),p=u.useRef(!1),l=u.useRef(!0),{viewport:c,selectedItem:h,selectedItemText:b,focusSelectedItem:y}=i,x=u.useCallback(()=>{if(s.trigger&&s.valueNode&&a&&f&&c&&h&&b){const T=s.trigger.getBoundingClientRect(),L=f.getBoundingClientRect(),I=s.valueNode.getBoundingClientRect(),B=b.getBoundingClientRect();if(s.dir!=="rtl"){const Y=B.left-L.left,K=I.left-Y,re=T.left-K,ce=T.width+re,le=Math.max(ce,L.width),Pe=window.innerWidth-pe,Oe=In(K,[pe,Math.max(pe,Pe-le)]);a.style.minWidth=ce+"px",a.style.left=Oe+"px"}else{const Y=L.right-B.right,K=window.innerWidth-I.right-Y,re=window.innerWidth-T.right-K,ce=T.width+re,le=Math.max(ce,L.width),Pe=window.innerWidth-pe,Oe=In(K,[pe,Math.max(pe,Pe-le)]);a.style.minWidth=ce+"px",a.style.right=Oe+"px"}const W=v(),E=window.innerHeight-pe*2,R=c.scrollHeight,P=window.getComputedStyle(f),N=parseInt(P.borderTopWidth,10),M=parseInt(P.paddingTop,10),k=parseInt(P.borderBottomWidth,10),A=parseInt(P.paddingBottom,10),j=N+M+R+A+k,H=Math.min(h.offsetHeight*5,j),S=window.getComputedStyle(c),F=parseInt(S.paddingTop,10),V=parseInt(S.paddingBottom,10),$=T.top+T.height/2-pe,q=E-$,Q=h.offsetHeight/2,D=h.offsetTop+Q,z=N+M+D,ee=j-z;if(z<=$){const Y=W.length>0&&h===W[W.length-1].ref.current;a.style.bottom="0px";const K=f.clientHeight-c.offsetTop-c.offsetHeight,re=Math.max(q,Q+(Y?V:0)+K+k),ce=z+re;a.style.height=ce+"px"}else{const Y=W.length>0&&h===W[0].ref.current;a.style.top="0px";const re=Math.max($,N+c.offsetTop+(Y?F:0)+Q)+ee;a.style.height=re+"px",c.scrollTop=z-$+c.offsetTop}a.style.margin=`${pe}px 0`,a.style.minHeight=H+"px",a.style.maxHeight=E+"px",r==null||r(),requestAnimationFrame(()=>p.current=!0)}},[v,s.trigger,s.valueNode,a,f,c,h,b,s.dir,r]);ne(()=>x(),[x]);const[C,_]=u.useState();ne(()=>{f&&_(window.getComputedStyle(f).zIndex)},[f]);const O=u.useCallback(T=>{T&&l.current===!0&&(x(),y==null||y(),l.current=!1)},[x,y]);return w.jsx(Wa,{scope:n,contentWrapper:a,shouldExpandOnScrollRef:p,onScrollButtonChange:O,children:w.jsx("div",{ref:d,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:C},children:w.jsx(J.div,{...o,ref:m,style:{boxSizing:"border-box",maxHeight:"100%",...o.style}})})})});eo.displayName=Fa;var Ba="SelectPopperPosition",hn=u.forwardRef((e,t)=>{const{__scopeSelect:n,align:r="start",collisionPadding:o=pe,...s}=e,i=kt(n);return w.jsx(Tr,{...i,...s,ref:t,align:r,collisionPadding:o,style:{boxSizing:"border-box",...s.style,"--radix-select-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-select-content-available-width":"var(--radix-popper-available-width)","--radix-select-content-available-height":"var(--radix-popper-available-height)","--radix-select-trigger-width":"var(--radix-popper-anchor-width)","--radix-select-trigger-height":"var(--radix-popper-anchor-height)"}})});hn.displayName=Ba;var[Wa,mn]=ze(Ne,{}),vn="SelectViewport",to=u.forwardRef((e,t)=>{const{__scopeSelect:n,nonce:r,...o}=e,s=Ce(vn,n),i=mn(vn,n),a=te(t,s.onViewportChange),d=u.useRef(0);return w.jsxs(w.Fragment,{children:[w.jsx("style",{dangerouslySetInnerHTML:{__html:"[data-radix-select-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-select-viewport]::-webkit-scrollbar{display:none}"},nonce:r}),w.jsx(Ot.Slot,{scope:n,children:w.jsx(J.div,{"data-radix-select-viewport":"",role:"presentation",...o,ref:a,style:{position:"relative",flex:1,overflow:"hidden auto",...o.style},onScroll:Z(o.onScroll,f=>{const g=f.currentTarget,{contentWrapper:m,shouldExpandOnScrollRef:v}=i;if(v!=null&&v.current&&m){const p=Math.abs(d.current-g.scrollTop);if(p>0){const l=window.innerHeight-pe*2,c=parseFloat(m.style.minHeight),h=parseFloat(m.style.height),b=Math.max(c,h);if(b<l){const y=b+p,x=Math.min(l,y),C=y-x;m.style.height=x+"px",m.style.bottom==="0px"&&(g.scrollTop=C>0?C:0,m.style.justifyContent="flex-end")}}}d.current=g.scrollTop})})})]})});to.displayName=vn;var no="SelectGroup",[Va,$a]=ze(no),Ha=u.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e,o=ut();return w.jsx(Va,{scope:n,id:o,children:w.jsx(J.div,{role:"group","aria-labelledby":o,...r,ref:t})})});Ha.displayName=no;var ro="SelectLabel",za=u.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e,o=$a(ro,n);return w.jsx(J.div,{id:o.id,...r,ref:t})});za.displayName=ro;var Mt="SelectItem",[Ua,oo]=ze(Mt),io=u.forwardRef((e,t)=>{const{__scopeSelect:n,value:r,disabled:o=!1,textValue:s,...i}=e,a=Ee(Mt,n),d=Ce(Mt,n),f=a.value===r,[g,m]=u.useState(s??""),[v,p]=u.useState(!1),l=te(t,y=>{var x;return(x=d.itemRefCallback)==null?void 0:x.call(d,y,r,o)}),c=ut(),h=u.useRef("touch"),b=()=>{o||(a.onValueChange(r),a.onOpenChange(!1))};if(r==="")throw new Error("A <Select.Item /> must have a value prop that is not an empty string. This is because the Select value can be set to an empty string to clear the selection and show the placeholder.");return w.jsx(Ua,{scope:n,value:r,disabled:o,textId:c,isSelected:f,onItemTextChange:u.useCallback(y=>{m(x=>x||((y==null?void 0:y.textContent)??"").trim())},[]),children:w.jsx(Ot.ItemSlot,{scope:n,value:r,disabled:o,textValue:g,children:w.jsx(J.div,{role:"option","aria-labelledby":c,"data-highlighted":v?"":void 0,"aria-selected":f&&v,"data-state":f?"checked":"unchecked","aria-disabled":o||void 0,"data-disabled":o?"":void 0,tabIndex:o?void 0:-1,...i,ref:l,onFocus:Z(i.onFocus,()=>p(!0)),onBlur:Z(i.onBlur,()=>p(!1)),onClick:Z(i.onClick,()=>{h.current!=="mouse"&&b()}),onPointerUp:Z(i.onPointerUp,()=>{h.current==="mouse"&&b()}),onPointerDown:Z(i.onPointerDown,y=>{h.current=y.pointerType}),onPointerMove:Z(i.onPointerMove,y=>{var x;h.current=y.pointerType,o?(x=d.onItemLeave)==null||x.call(d):h.current==="mouse"&&y.currentTarget.focus({preventScroll:!0})}),onPointerLeave:Z(i.onPointerLeave,y=>{var x;y.currentTarget===document.activeElement&&((x=d.onItemLeave)==null||x.call(d))}),onKeyDown:Z(i.onKeyDown,y=>{var C;((C=d.searchRef)==null?void 0:C.current)!==""&&y.key===" "||(Oa.includes(y.key)&&b(),y.key===" "&&y.preventDefault())})})})})});io.displayName=Mt;var rt="SelectItemText",so=u.forwardRef((e,t)=>{const{__scopeSelect:n,className:r,style:o,...s}=e,i=Ee(rt,n),a=Ce(rt,n),d=oo(rt,n),f=Na(rt,n),[g,m]=u.useState(null),v=te(t,b=>m(b),d.onItemTextChange,b=>{var y;return(y=a.itemTextRefCallback)==null?void 0:y.call(a,b,d.value,d.disabled)}),p=g==null?void 0:g.textContent,l=u.useMemo(()=>w.jsx("option",{value:d.value,disabled:d.disabled,children:p},d.value),[d.disabled,d.value,p]),{onNativeOptionAdd:c,onNativeOptionRemove:h}=f;return ne(()=>(c(l),()=>h(l)),[c,h,l]),w.jsxs(w.Fragment,{children:[w.jsx(J.span,{id:d.textId,...s,ref:v}),d.isSelected&&i.valueNode&&!i.valueNodeHasChildren?st.createPortal(s.children,i.valueNode):null]})});so.displayName=rt;var ao="SelectItemIndicator",Ya=u.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e;return oo(ao,n).isSelected?w.jsx(J.span,{"aria-hidden":!0,...r,ref:t}):null});Ya.displayName=ao;var gn="SelectScrollUpButton",qa=u.forwardRef((e,t)=>{const n=Ce(gn,e.__scopeSelect),r=mn(gn,e.__scopeSelect),[o,s]=u.useState(!1),i=te(t,r.onScrollButtonChange);return ne(()=>{if(n.viewport&&n.isPositioned){let a=function(){const f=d.scrollTop>0;s(f)};const d=n.viewport;return a(),d.addEventListener("scroll",a),()=>d.removeEventListener("scroll",a)}},[n.viewport,n.isPositioned]),o?w.jsx(co,{...e,ref:i,onAutoScroll:()=>{const{viewport:a,selectedItem:d}=n;a&&d&&(a.scrollTop=a.scrollTop-d.offsetHeight)}}):null});qa.displayName=gn;var yn="SelectScrollDownButton",Ka=u.forwardRef((e,t)=>{const n=Ce(yn,e.__scopeSelect),r=mn(yn,e.__scopeSelect),[o,s]=u.useState(!1),i=te(t,r.onScrollButtonChange);return ne(()=>{if(n.viewport&&n.isPositioned){let a=function(){const f=d.scrollHeight-d.clientHeight,g=Math.ceil(d.scrollTop)<f;s(g)};const d=n.viewport;return a(),d.addEventListener("scroll",a),()=>d.removeEventListener("scroll",a)}},[n.viewport,n.isPositioned]),o?w.jsx(co,{...e,ref:i,onAutoScroll:()=>{const{viewport:a,selectedItem:d}=n;a&&d&&(a.scrollTop=a.scrollTop+d.offsetHeight)}}):null});Ka.displayName=yn;var co=u.forwardRef((e,t)=>{const{__scopeSelect:n,onAutoScroll:r,...o}=e,s=Ce("SelectScrollButton",n),i=u.useRef(null),a=At(n),d=u.useCallback(()=>{i.current!==null&&(window.clearInterval(i.current),i.current=null)},[]);return u.useEffect(()=>()=>d(),[d]),ne(()=>{var g;const f=a().find(m=>m.ref.current===document.activeElement);(g=f==null?void 0:f.ref.current)==null||g.scrollIntoView({block:"nearest"})},[a]),w.jsx(J.div,{"aria-hidden":!0,...o,ref:t,style:{flexShrink:0,...o.style},onPointerDown:Z(o.onPointerDown,()=>{i.current===null&&(i.current=window.setInterval(r,50))}),onPointerMove:Z(o.onPointerMove,()=>{var f;(f=s.onItemLeave)==null||f.call(s),i.current===null&&(i.current=window.setInterval(r,50))}),onPointerLeave:Z(o.onPointerLeave,()=>{d()})})}),Xa="SelectSeparator",Za=u.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e;return w.jsx(J.div,{"aria-hidden":!0,...r,ref:t})});Za.displayName=Xa;var bn="SelectArrow",Ga=u.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e,o=kt(n),s=Ee(bn,n),i=Ce(bn,n);return s.open&&i.position==="popper"?w.jsx(Pr,{...o,...r,ref:t}):null});Ga.displayName=bn;var Ja="SelectBubbleInput",lo=u.forwardRef(({__scopeSelect:e,value:t,...n},r)=>{const o=u.useRef(null),s=te(r,o),i=Ws(t);return u.useEffect(()=>{const a=o.current;if(!a)return;const d=window.HTMLSelectElement.prototype,g=Object.getOwnPropertyDescriptor(d,"value").set;if(i!==t&&g){const m=new Event("change",{bubbles:!0});g.call(a,t),a.dispatchEvent(m)}},[i,t]),w.jsx(J.select,{...n,style:{...Or,...n.style},ref:s,defaultValue:t})});lo.displayName=Ja;function uo(e){return e===""||e===void 0}function fo(e){const t=Ae(e),n=u.useRef(""),r=u.useRef(0),o=u.useCallback(i=>{const a=n.current+i;t(a),(function d(f){n.current=f,window.clearTimeout(r.current),f!==""&&(r.current=window.setTimeout(()=>d(""),1e3))})(a)},[t]),s=u.useCallback(()=>{n.current="",window.clearTimeout(r.current)},[]);return u.useEffect(()=>()=>window.clearTimeout(r.current),[]),[n,o,s]}function po(e,t,n){const o=t.length>1&&Array.from(t).every(f=>f===t[0])?t[0]:t,s=n?e.indexOf(n):-1;let i=Qa(e,Math.max(s,0));o.length===1&&(i=i.filter(f=>f!==n));const d=i.find(f=>f.textValue.toLowerCase().startsWith(o.toLowerCase()));return d!==n?d:void 0}function Qa(e,t){return e.map((n,r)=>e[(t+r)%e.length])}var ec=zr,tc=Yr,nc=Kr,rc=Xr,oc=Zr,ic=Gr,sc=to,ac=io,cc=so;const ot={trigger:"_trigger_14rt8_1",icon:"_icon_14rt8_33",content:"_content_14rt8_39",viewport:"_viewport_14rt8_47",item:"_item_14rt8_51"},lc=({value:e,onValueChange:t,options:n,placeholder:r="Select...",className:o="",disabled:s=!1})=>w.jsxs(ec,{value:e,onValueChange:t,disabled:s,children:[w.jsxs(tc,{className:`${ot.trigger} ${o}`,children:[w.jsx(nc,{placeholder:r}),w.jsx(rc,{className:ot.icon,children:w.jsx(Ao,{size:14,color:"currentColor"})})]}),w.jsx(oc,{children:w.jsx(ic,{className:ot.content,position:"popper",sideOffset:4,children:w.jsx(sc,{className:ot.viewport,children:n.map(i=>w.jsx(ac,{value:i.value,className:ot.item,children:w.jsx(cc,{children:i.label})},i.value))})})})]});function uc(e,t){return u.useReducer((n,r)=>t[n][r]??n,e)}var wn=e=>{const{present:t,children:n}=e,r=dc(t),o=typeof n=="function"?n({present:r.isPresent}):u.Children.only(n),s=te(r.ref,fc(o));return typeof n=="function"||r.isPresent?u.cloneElement(o,{ref:s}):null};wn.displayName="Presence";function dc(e){const[t,n]=u.useState(),r=u.useRef(null),o=u.useRef(e),s=u.useRef("none"),i=e?"mounted":"unmounted",[a,d]=uc(i,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return u.useEffect(()=>{const f=Nt(r.current);s.current=a==="mounted"?f:"none"},[a]),ne(()=>{const f=r.current,g=o.current;if(g!==e){const v=s.current,p=Nt(f);e?d("MOUNT"):p==="none"||(f==null?void 0:f.display)==="none"?d("UNMOUNT"):d(g&&v!==p?"ANIMATION_OUT":"UNMOUNT"),o.current=e}},[e,d]),ne(()=>{if(t){let f;const g=t.ownerDocument.defaultView??window,m=p=>{const c=Nt(r.current).includes(CSS.escape(p.animationName));if(p.target===t&&c&&(d("ANIMATION_END"),!o.current)){const h=t.style.animationFillMode;t.style.animationFillMode="forwards",f=g.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=h)})}},v=p=>{p.target===t&&(s.current=Nt(r.current))};return t.addEventListener("animationstart",v),t.addEventListener("animationcancel",m),t.addEventListener("animationend",m),()=>{g.clearTimeout(f),t.removeEventListener("animationstart",v),t.removeEventListener("animationcancel",m),t.removeEventListener("animationend",m)}}else d("ANIMATION_END")},[t,d]),{isPresent:["mounted","unmountSuspended"].includes(a),ref:u.useCallback(f=>{r.current=f?getComputedStyle(f):null,n(f)},[])}}function Nt(e){return(e==null?void 0:e.animationName)||"none"}function fc(e){var r,o;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var It="Popover",[ho]=lt(It,[xt]),it=xt(),[pc,Re]=ho(It),mo=e=>{const{__scopePopover:t,children:n,open:r,defaultOpen:o,onOpenChange:s,modal:i=!1}=e,a=it(t),d=u.useRef(null),[f,g]=u.useState(!1),[m,v]=an({prop:r,defaultProp:o??!1,onChange:s,caller:It});return w.jsx(Rr,{...a,children:w.jsx(pc,{scope:t,contentId:ut(),triggerRef:d,open:m,onOpenChange:v,onOpenToggle:u.useCallback(()=>v(p=>!p),[v]),hasCustomAnchor:f,onCustomAnchorAdd:u.useCallback(()=>g(!0),[]),onCustomAnchorRemove:u.useCallback(()=>g(!1),[]),modal:i,children:n})})};mo.displayName=It;var vo="PopoverAnchor",hc=u.forwardRef((e,t)=>{const{__scopePopover:n,...r}=e,o=Re(vo,n),s=it(n),{onCustomAnchorAdd:i,onCustomAnchorRemove:a}=o;return u.useEffect(()=>(i(),()=>a()),[i,a]),w.jsx(on,{...s,...r,ref:t})});hc.displayName=vo;var go="PopoverTrigger",yo=u.forwardRef((e,t)=>{const{__scopePopover:n,...r}=e,o=Re(go,n),s=it(n),i=te(t,o.triggerRef),a=w.jsx(J.button,{type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":_o(o.open),...r,ref:i,onClick:Z(e.onClick,o.onOpenToggle)});return o.hasCustomAnchor?a:w.jsx(on,{asChild:!0,...s,children:a})});yo.displayName=go;var xn="PopoverPortal",[mc,vc]=ho(xn,{forceMount:void 0}),bo=e=>{const{__scopePopover:t,forceMount:n,children:r,container:o}=e,s=Re(xn,t);return w.jsx(mc,{scope:t,forceMount:n,children:w.jsx(wn,{present:n||s.open,children:w.jsx(sn,{asChild:!0,container:o,children:r})})})};bo.displayName=xn;var Ue="PopoverContent",wo=u.forwardRef((e,t)=>{const n=vc(Ue,e.__scopePopover),{forceMount:r=n.forceMount,...o}=e,s=Re(Ue,e.__scopePopover);return w.jsx(wn,{present:r||s.open,children:s.modal?w.jsx(yc,{...o,ref:t}):w.jsx(bc,{...o,ref:t})})});wo.displayName=Ue;var gc=Qe("PopoverContent.RemoveScroll"),yc=u.forwardRef((e,t)=>{const n=Re(Ue,e.__scopePopover),r=u.useRef(null),o=te(t,r),s=u.useRef(!1);return u.useEffect(()=>{const i=r.current;if(i)return kr(i)},[]),w.jsx(pn,{as:gc,allowPinchZoom:!0,children:w.jsx(xo,{...e,ref:o,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:Z(e.onCloseAutoFocus,i=>{var a;i.preventDefault(),s.current||(a=n.triggerRef.current)==null||a.focus()}),onPointerDownOutside:Z(e.onPointerDownOutside,i=>{const a=i.detail.originalEvent,d=a.button===0&&a.ctrlKey===!0,f=a.button===2||d;s.current=f},{checkForDefaultPrevented:!1}),onFocusOutside:Z(e.onFocusOutside,i=>i.preventDefault(),{checkForDefaultPrevented:!1})})})}),bc=u.forwardRef((e,t)=>{const n=Re(Ue,e.__scopePopover),r=u.useRef(!1),o=u.useRef(!1);return w.jsx(xo,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:s=>{var i,a;(i=e.onCloseAutoFocus)==null||i.call(e,s),s.defaultPrevented||(r.current||(a=n.triggerRef.current)==null||a.focus(),s.preventDefault()),r.current=!1,o.current=!1},onInteractOutside:s=>{var d,f;(d=e.onInteractOutside)==null||d.call(e,s),s.defaultPrevented||(r.current=!0,s.detail.originalEvent.type==="pointerdown"&&(o.current=!0));const i=s.target;((f=n.triggerRef.current)==null?void 0:f.contains(i))&&s.preventDefault(),s.detail.originalEvent.type==="focusin"&&o.current&&s.preventDefault()}})}),xo=u.forwardRef((e,t)=>{const{__scopePopover:n,trapFocus:r,onOpenAutoFocus:o,onCloseAutoFocus:s,disableOutsidePointerEvents:i,onEscapeKeyDown:a,onPointerDownOutside:d,onFocusOutside:f,onInteractOutside:g,...m}=e,v=Re(Ue,n),p=it(n);return Vn(),w.jsx(zt,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:o,onUnmountAutoFocus:s,children:w.jsx(Wt,{asChild:!0,disableOutsidePointerEvents:i,onInteractOutside:g,onEscapeKeyDown:a,onPointerDownOutside:d,onFocusOutside:f,onDismiss:()=>v.onOpenChange(!1),children:w.jsx(Tr,{"data-state":_o(v.open),role:"dialog",id:v.contentId,...p,...m,ref:t,style:{...m.style,"--radix-popover-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-popover-content-available-width":"var(--radix-popper-available-width)","--radix-popover-content-available-height":"var(--radix-popper-available-height)","--radix-popover-trigger-width":"var(--radix-popper-anchor-width)","--radix-popover-trigger-height":"var(--radix-popper-anchor-height)"}})})})}),So="PopoverClose",wc=u.forwardRef((e,t)=>{const{__scopePopover:n,...r}=e,o=Re(So,n);return w.jsx(J.button,{type:"button",...r,ref:t,onClick:Z(e.onClick,()=>o.onOpenChange(!1))})});wc.displayName=So;var xc="PopoverArrow",Sc=u.forwardRef((e,t)=>{const{__scopePopover:n,...r}=e,o=it(n);return w.jsx(Pr,{...o,...r,ref:t})});Sc.displayName=xc;function _o(e){return e?"open":"closed"}var _c=mo,Ec=yo,Cc=bo,Rc=wo;const Tc={content:"_content_1qahr_1"},Pc=({trigger:e,children:t,open:n,onOpenChange:r,align:o="end",side:s="bottom",sideOffset:i=5,className:a=""})=>w.jsxs(_c,{open:n,onOpenChange:r,children:[w.jsx(Ec,{asChild:!0,children:e}),w.jsx(Cc,{children:w.jsx(Rc,{className:`${Tc.content} ${a}`,align:o,side:s,sideOffset:i,children:t})})]}),Te={table:"_table_1fmit_1",headerRow:"_headerRow_1fmit_16",dataRow:"_dataRow_1fmit_24",cellInner:"_cellInner_1fmit_32",cellLabel:"_cellLabel_1fmit_38",cellContent:"_cellContent_1fmit_43",value:"_value_1fmit_49",icon:"_icon_1fmit_55"};function Oc({children:e}){return w.jsx("table",{className:Te.table,children:e})}function Ac({children:e}){return w.jsx("thead",{children:w.jsx("tr",{className:Te.headerRow,children:e})})}function kc({children:e}){return w.jsx("tr",{className:Te.dataRow,children:e})}function Mc({label:e,children:t}){return e||t?w.jsx("td",{children:w.jsxs("div",{className:Te.cellInner,children:[e&&w.jsx("span",{className:Te.cellLabel,children:e}),t&&w.jsx("div",{className:Te.cellContent,children:t})]})}):w.jsx("td",{children:t})}function Nc({children:e}){return w.jsx("span",{className:Te.value,children:e})}function Ic({children:e}){return w.jsx("span",{className:Te.icon,children:X.cloneElement(e,{size:"14px",color:"currentColor"})})}G.Base=Oo,G.Button=To,G.Checkbox=Po,G.FilterPanelBase=Io,G.InputField=Lo,G.Popover=Pc,G.RadioButton=Fo,G.SearchField=jo,G.Select=lc,G.Slider=$o,G.Table=Oc,G.TableCell=Mc,G.TableHeader=Ac,G.TableIcon=Ic,G.TableRow=kc,G.TableValue=Nc,G.ToggleSwitch=Bo,Object.defineProperty(G,Symbol.toStringTag,{value:"Module"})}));
|
|
62
|
+
`)},Ea=0,He=[];function Ca(e){var t=u.useRef([]),n=u.useRef([0,0]),r=u.useRef(),o=u.useState(Ea++)[0],s=u.useState(jr)[0],i=u.useRef(e);u.useEffect(function(){i.current=e},[e]),u.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(o));var c=Ys([e.lockRef.current],(e.shards||[]).map(Hr),!0).filter(Boolean);return c.forEach(function(h){return h.classList.add("allow-interactivity-".concat(o))}),function(){document.body.classList.remove("block-interactivity-".concat(o)),c.forEach(function(h){return h.classList.remove("allow-interactivity-".concat(o))})}}},[e.inert,e.lockRef.current,e.shards]);var a=u.useCallback(function(c,h){if("touches"in c&&c.touches.length===2||c.type==="wheel"&&c.ctrlKey)return!i.current.allowPinchZoom;var w=Pt(c),y=n.current,x="deltaX"in c?c.deltaX:y[0]-w[0],C="deltaY"in c?c.deltaY:y[1]-w[1],_,O=c.target,T=Math.abs(x)>Math.abs(C)?"h":"v";if("touches"in c&&T==="h"&&O.type==="range")return!1;var L=window.getSelection(),I=L&&L.anchorNode,B=I?I===O||I.contains(O):!1;if(B)return!1;var W=Br(T,O);if(!W)return!0;if(W?_=T:(_=T==="v"?"h":"v",W=Br(T,O)),!W)return!1;if(!r.current&&"changedTouches"in c&&(x||C)&&(r.current=_),!_)return!0;var E=r.current||_;return xa(E,h,c,E==="h"?x:C)},[]),d=u.useCallback(function(c){var h=c;if(!(!He.length||He[He.length-1]!==s)){var w="deltaY"in h?Vr(h):Pt(h),y=t.current.filter(function(_){return _.name===h.type&&(_.target===h.target||h.target===_.shadowParent)&&Sa(_.delta,w)})[0];if(y&&y.should){h.cancelable&&h.preventDefault();return}if(!y){var x=(i.current.shards||[]).map(Hr).filter(Boolean).filter(function(_){return _.contains(h.target)}),C=x.length>0?a(h,x[0]):!i.current.noIsolation;C&&h.cancelable&&h.preventDefault()}}},[]),f=u.useCallback(function(c,h,w,y){var x={name:c,delta:h,target:w,should:y,shadowParent:Ra(w)};t.current.push(x),setTimeout(function(){t.current=t.current.filter(function(C){return C!==x})},1)},[]),g=u.useCallback(function(c){n.current=Pt(c),r.current=void 0},[]),m=u.useCallback(function(c){f(c.type,Vr(c),c.target,a(c,e.lockRef.current))},[]),v=u.useCallback(function(c){f(c.type,Pt(c),c.target,a(c,e.lockRef.current))},[]);u.useEffect(function(){return He.push(s),e.setCallbacks({onScrollCapture:m,onWheelCapture:m,onTouchMoveCapture:v}),document.addEventListener("wheel",d,Ve),document.addEventListener("touchmove",d,Ve),document.addEventListener("touchstart",g,Ve),function(){He=He.filter(function(c){return c!==s}),document.removeEventListener("wheel",d,Ve),document.removeEventListener("touchmove",d,Ve),document.removeEventListener("touchstart",g,Ve)}},[]);var p=e.removeScrollBar,l=e.inert;return u.createElement(u.Fragment,null,l?u.createElement(s,{styles:_a(o)}):null,p?u.createElement(ha,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function Ra(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const Ta=ta(Dr,Ca);var pn=u.forwardRef(function(e,t){return u.createElement(Rt,ye({},e,{ref:t,sideCar:Ta}))});pn.classNames=Rt.classNames;var Pa=[" ","Enter","ArrowUp","ArrowDown"],Oa=[" ","Enter"],Me="Select",[Ot,At,Aa]=Xo(Me),[ze]=lt(Me,[Aa,xt]),kt=xt(),[ka,Ee]=ze(Me),[Ma,Na]=ze(Me),zr=e=>{const{__scopeSelect:t,children:n,open:r,defaultOpen:o,onOpenChange:s,value:i,defaultValue:a,onValueChange:d,dir:f,name:g,autoComplete:m,disabled:v,required:p,form:l}=e,c=kt(t),[h,w]=u.useState(null),[y,x]=u.useState(null),[C,_]=u.useState(!1),O=Go(f),[T,L]=an({prop:r,defaultProp:o??!1,onChange:s,caller:Me}),[I,B]=an({prop:i,defaultProp:a,onChange:d,caller:Me}),W=u.useRef(null),E=h?l||!!h.closest("form"):!0,[R,P]=u.useState(new Set),N=Array.from(R).map(M=>M.props.value).join(";");return b.jsx(Rr,{...c,children:b.jsxs(ka,{required:p,scope:t,trigger:h,onTriggerChange:w,valueNode:y,onValueNodeChange:x,valueNodeHasChildren:C,onValueNodeHasChildrenChange:_,contentId:ut(),value:I,onValueChange:B,open:T,onOpenChange:L,dir:O,triggerPointerDownPosRef:W,disabled:v,children:[b.jsx(Ot.Provider,{scope:t,children:b.jsx(Ma,{scope:e.__scopeSelect,onNativeOptionAdd:u.useCallback(M=>{P(k=>new Set(k).add(M))},[]),onNativeOptionRemove:u.useCallback(M=>{P(k=>{const A=new Set(k);return A.delete(M),A})},[]),children:n})}),E?b.jsxs(lo,{"aria-hidden":!0,required:p,tabIndex:-1,name:g,autoComplete:m,value:I,onChange:M=>B(M.target.value),disabled:v,form:l,children:[I===void 0?b.jsx("option",{value:""}):null,Array.from(R)]},N):null]})})};zr.displayName=Me;var Ur="SelectTrigger",Yr=u.forwardRef((e,t)=>{const{__scopeSelect:n,disabled:r=!1,...o}=e,s=kt(n),i=Ee(Ur,n),a=i.disabled||r,d=te(t,i.onTriggerChange),f=At(n),g=u.useRef("touch"),[m,v,p]=fo(c=>{const h=f().filter(x=>!x.disabled),w=h.find(x=>x.value===i.value),y=po(h,c,w);y!==void 0&&i.onValueChange(y.value)}),l=c=>{a||(i.onOpenChange(!0),p()),c&&(i.triggerPointerDownPosRef.current={x:Math.round(c.pageX),y:Math.round(c.pageY)})};return b.jsx(on,{asChild:!0,...s,children:b.jsx(J.button,{type:"button",role:"combobox","aria-controls":i.contentId,"aria-expanded":i.open,"aria-required":i.required,"aria-autocomplete":"none",dir:i.dir,"data-state":i.open?"open":"closed",disabled:a,"data-disabled":a?"":void 0,"data-placeholder":uo(i.value)?"":void 0,...o,ref:d,onClick:Z(o.onClick,c=>{c.currentTarget.focus(),g.current!=="mouse"&&l(c)}),onPointerDown:Z(o.onPointerDown,c=>{g.current=c.pointerType;const h=c.target;h.hasPointerCapture(c.pointerId)&&h.releasePointerCapture(c.pointerId),c.button===0&&c.ctrlKey===!1&&c.pointerType==="mouse"&&(l(c),c.preventDefault())}),onKeyDown:Z(o.onKeyDown,c=>{const h=m.current!=="";!(c.ctrlKey||c.altKey||c.metaKey)&&c.key.length===1&&v(c.key),!(h&&c.key===" ")&&Pa.includes(c.key)&&(l(),c.preventDefault())})})})});Yr.displayName=Ur;var qr="SelectValue",Kr=u.forwardRef((e,t)=>{const{__scopeSelect:n,className:r,style:o,children:s,placeholder:i="",...a}=e,d=Ee(qr,n),{onValueNodeHasChildrenChange:f}=d,g=s!==void 0,m=te(t,d.onValueNodeChange);return ne(()=>{f(g)},[f,g]),b.jsx(J.span,{...a,ref:m,style:{pointerEvents:"none"},children:uo(d.value)?b.jsx(b.Fragment,{children:i}):s})});Kr.displayName=qr;var Ia="SelectIcon",Xr=u.forwardRef((e,t)=>{const{__scopeSelect:n,children:r,...o}=e;return b.jsx(J.span,{"aria-hidden":!0,...o,ref:t,children:r||"▼"})});Xr.displayName=Ia;var Da="SelectPortal",Zr=e=>b.jsx(sn,{asChild:!0,...e});Zr.displayName=Da;var Ne="SelectContent",Gr=u.forwardRef((e,t)=>{const n=Ee(Ne,e.__scopeSelect),[r,o]=u.useState();if(ne(()=>{o(new DocumentFragment)},[]),!n.open){const s=r;return s?st.createPortal(b.jsx(Jr,{scope:e.__scopeSelect,children:b.jsx(Ot.Slot,{scope:e.__scopeSelect,children:b.jsx("div",{children:e.children})})}),s):null}return b.jsx(Qr,{...e,ref:t})});Gr.displayName=Ne;var pe=10,[Jr,Ce]=ze(Ne),ja="SelectContentImpl",La=Qe("SelectContent.RemoveScroll"),Qr=u.forwardRef((e,t)=>{const{__scopeSelect:n,position:r="item-aligned",onCloseAutoFocus:o,onEscapeKeyDown:s,onPointerDownOutside:i,side:a,sideOffset:d,align:f,alignOffset:g,arrowPadding:m,collisionBoundary:v,collisionPadding:p,sticky:l,hideWhenDetached:c,avoidCollisions:h,...w}=e,y=Ee(Ne,n),[x,C]=u.useState(null),[_,O]=u.useState(null),T=te(t,D=>C(D)),[L,I]=u.useState(null),[B,W]=u.useState(null),E=At(n),[R,P]=u.useState(!1),N=u.useRef(!1);u.useEffect(()=>{if(x)return kr(x)},[x]),$n();const M=u.useCallback(D=>{const[z,...ee]=E().map(K=>K.ref.current),[U]=ee.slice(-1),Y=document.activeElement;for(const K of D)if(K===Y||(K==null||K.scrollIntoView({block:"nearest"}),K===z&&_&&(_.scrollTop=0),K===U&&_&&(_.scrollTop=_.scrollHeight),K==null||K.focus(),document.activeElement!==Y))return},[E,_]),k=u.useCallback(()=>M([L,x]),[M,L,x]);u.useEffect(()=>{R&&k()},[R,k]);const{onOpenChange:A,triggerPointerDownPosRef:j}=y;u.useEffect(()=>{if(x){let D={x:0,y:0};const z=U=>{var Y,K;D={x:Math.abs(Math.round(U.pageX)-(((Y=j.current)==null?void 0:Y.x)??0)),y:Math.abs(Math.round(U.pageY)-(((K=j.current)==null?void 0:K.y)??0))}},ee=U=>{D.x<=10&&D.y<=10?U.preventDefault():x.contains(U.target)||A(!1),document.removeEventListener("pointermove",z),j.current=null};return j.current!==null&&(document.addEventListener("pointermove",z),document.addEventListener("pointerup",ee,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",z),document.removeEventListener("pointerup",ee,{capture:!0})}}},[x,A,j]),u.useEffect(()=>{const D=()=>A(!1);return window.addEventListener("blur",D),window.addEventListener("resize",D),()=>{window.removeEventListener("blur",D),window.removeEventListener("resize",D)}},[A]);const[H,S]=fo(D=>{const z=E().filter(Y=>!Y.disabled),ee=z.find(Y=>Y.ref.current===document.activeElement),U=po(z,D,ee);U&&setTimeout(()=>U.ref.current.focus())}),F=u.useCallback((D,z,ee)=>{const U=!N.current&&!ee;(y.value!==void 0&&y.value===z||U)&&(I(D),U&&(N.current=!0))},[y.value]),$=u.useCallback(()=>x==null?void 0:x.focus(),[x]),V=u.useCallback((D,z,ee)=>{const U=!N.current&&!ee;(y.value!==void 0&&y.value===z||U)&&W(D)},[y.value]),q=r==="popper"?hn:eo,Q=q===hn?{side:a,sideOffset:d,align:f,alignOffset:g,arrowPadding:m,collisionBoundary:v,collisionPadding:p,sticky:l,hideWhenDetached:c,avoidCollisions:h}:{};return b.jsx(Jr,{scope:n,content:x,viewport:_,onViewportChange:O,itemRefCallback:F,selectedItem:L,onItemLeave:$,itemTextRefCallback:V,focusSelectedItem:k,selectedItemText:B,position:r,isPositioned:R,searchRef:H,children:b.jsx(pn,{as:La,allowPinchZoom:!0,children:b.jsx(zt,{asChild:!0,trapped:y.open,onMountAutoFocus:D=>{D.preventDefault()},onUnmountAutoFocus:Z(o,D=>{var z;(z=y.trigger)==null||z.focus({preventScroll:!0}),D.preventDefault()}),children:b.jsx(Wt,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:s,onPointerDownOutside:i,onFocusOutside:D=>D.preventDefault(),onDismiss:()=>y.onOpenChange(!1),children:b.jsx(q,{role:"listbox",id:y.contentId,"data-state":y.open?"open":"closed",dir:y.dir,onContextMenu:D=>D.preventDefault(),...w,...Q,onPlaced:()=>P(!0),ref:T,style:{display:"flex",flexDirection:"column",outline:"none",...w.style},onKeyDown:Z(w.onKeyDown,D=>{const z=D.ctrlKey||D.altKey||D.metaKey;if(D.key==="Tab"&&D.preventDefault(),!z&&D.key.length===1&&S(D.key),["ArrowUp","ArrowDown","Home","End"].includes(D.key)){let U=E().filter(Y=>!Y.disabled).map(Y=>Y.ref.current);if(["ArrowUp","End"].includes(D.key)&&(U=U.slice().reverse()),["ArrowUp","ArrowDown"].includes(D.key)){const Y=D.target,K=U.indexOf(Y);U=U.slice(K+1)}setTimeout(()=>M(U)),D.preventDefault()}})})})})})})});Qr.displayName=ja;var Fa="SelectItemAlignedPosition",eo=u.forwardRef((e,t)=>{const{__scopeSelect:n,onPlaced:r,...o}=e,s=Ee(Ne,n),i=Ce(Ne,n),[a,d]=u.useState(null),[f,g]=u.useState(null),m=te(t,T=>g(T)),v=At(n),p=u.useRef(!1),l=u.useRef(!0),{viewport:c,selectedItem:h,selectedItemText:w,focusSelectedItem:y}=i,x=u.useCallback(()=>{if(s.trigger&&s.valueNode&&a&&f&&c&&h&&w){const T=s.trigger.getBoundingClientRect(),L=f.getBoundingClientRect(),I=s.valueNode.getBoundingClientRect(),B=w.getBoundingClientRect();if(s.dir!=="rtl"){const Y=B.left-L.left,K=I.left-Y,re=T.left-K,ce=T.width+re,le=Math.max(ce,L.width),Pe=window.innerWidth-pe,Oe=In(K,[pe,Math.max(pe,Pe-le)]);a.style.minWidth=ce+"px",a.style.left=Oe+"px"}else{const Y=L.right-B.right,K=window.innerWidth-I.right-Y,re=window.innerWidth-T.right-K,ce=T.width+re,le=Math.max(ce,L.width),Pe=window.innerWidth-pe,Oe=In(K,[pe,Math.max(pe,Pe-le)]);a.style.minWidth=ce+"px",a.style.right=Oe+"px"}const W=v(),E=window.innerHeight-pe*2,R=c.scrollHeight,P=window.getComputedStyle(f),N=parseInt(P.borderTopWidth,10),M=parseInt(P.paddingTop,10),k=parseInt(P.borderBottomWidth,10),A=parseInt(P.paddingBottom,10),j=N+M+R+A+k,H=Math.min(h.offsetHeight*5,j),S=window.getComputedStyle(c),F=parseInt(S.paddingTop,10),$=parseInt(S.paddingBottom,10),V=T.top+T.height/2-pe,q=E-V,Q=h.offsetHeight/2,D=h.offsetTop+Q,z=N+M+D,ee=j-z;if(z<=V){const Y=W.length>0&&h===W[W.length-1].ref.current;a.style.bottom="0px";const K=f.clientHeight-c.offsetTop-c.offsetHeight,re=Math.max(q,Q+(Y?$:0)+K+k),ce=z+re;a.style.height=ce+"px"}else{const Y=W.length>0&&h===W[0].ref.current;a.style.top="0px";const re=Math.max(V,N+c.offsetTop+(Y?F:0)+Q)+ee;a.style.height=re+"px",c.scrollTop=z-V+c.offsetTop}a.style.margin=`${pe}px 0`,a.style.minHeight=H+"px",a.style.maxHeight=E+"px",r==null||r(),requestAnimationFrame(()=>p.current=!0)}},[v,s.trigger,s.valueNode,a,f,c,h,w,s.dir,r]);ne(()=>x(),[x]);const[C,_]=u.useState();ne(()=>{f&&_(window.getComputedStyle(f).zIndex)},[f]);const O=u.useCallback(T=>{T&&l.current===!0&&(x(),y==null||y(),l.current=!1)},[x,y]);return b.jsx(Wa,{scope:n,contentWrapper:a,shouldExpandOnScrollRef:p,onScrollButtonChange:O,children:b.jsx("div",{ref:d,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:C},children:b.jsx(J.div,{...o,ref:m,style:{boxSizing:"border-box",maxHeight:"100%",...o.style}})})})});eo.displayName=Fa;var Ba="SelectPopperPosition",hn=u.forwardRef((e,t)=>{const{__scopeSelect:n,align:r="start",collisionPadding:o=pe,...s}=e,i=kt(n);return b.jsx(Tr,{...i,...s,ref:t,align:r,collisionPadding:o,style:{boxSizing:"border-box",...s.style,"--radix-select-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-select-content-available-width":"var(--radix-popper-available-width)","--radix-select-content-available-height":"var(--radix-popper-available-height)","--radix-select-trigger-width":"var(--radix-popper-anchor-width)","--radix-select-trigger-height":"var(--radix-popper-anchor-height)"}})});hn.displayName=Ba;var[Wa,mn]=ze(Ne,{}),vn="SelectViewport",to=u.forwardRef((e,t)=>{const{__scopeSelect:n,nonce:r,...o}=e,s=Ce(vn,n),i=mn(vn,n),a=te(t,s.onViewportChange),d=u.useRef(0);return b.jsxs(b.Fragment,{children:[b.jsx("style",{dangerouslySetInnerHTML:{__html:"[data-radix-select-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-select-viewport]::-webkit-scrollbar{display:none}"},nonce:r}),b.jsx(Ot.Slot,{scope:n,children:b.jsx(J.div,{"data-radix-select-viewport":"",role:"presentation",...o,ref:a,style:{position:"relative",flex:1,overflow:"hidden auto",...o.style},onScroll:Z(o.onScroll,f=>{const g=f.currentTarget,{contentWrapper:m,shouldExpandOnScrollRef:v}=i;if(v!=null&&v.current&&m){const p=Math.abs(d.current-g.scrollTop);if(p>0){const l=window.innerHeight-pe*2,c=parseFloat(m.style.minHeight),h=parseFloat(m.style.height),w=Math.max(c,h);if(w<l){const y=w+p,x=Math.min(l,y),C=y-x;m.style.height=x+"px",m.style.bottom==="0px"&&(g.scrollTop=C>0?C:0,m.style.justifyContent="flex-end")}}}d.current=g.scrollTop})})})]})});to.displayName=vn;var no="SelectGroup",[$a,Va]=ze(no),Ha=u.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e,o=ut();return b.jsx($a,{scope:n,id:o,children:b.jsx(J.div,{role:"group","aria-labelledby":o,...r,ref:t})})});Ha.displayName=no;var ro="SelectLabel",za=u.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e,o=Va(ro,n);return b.jsx(J.div,{id:o.id,...r,ref:t})});za.displayName=ro;var Mt="SelectItem",[Ua,oo]=ze(Mt),io=u.forwardRef((e,t)=>{const{__scopeSelect:n,value:r,disabled:o=!1,textValue:s,...i}=e,a=Ee(Mt,n),d=Ce(Mt,n),f=a.value===r,[g,m]=u.useState(s??""),[v,p]=u.useState(!1),l=te(t,y=>{var x;return(x=d.itemRefCallback)==null?void 0:x.call(d,y,r,o)}),c=ut(),h=u.useRef("touch"),w=()=>{o||(a.onValueChange(r),a.onOpenChange(!1))};if(r==="")throw new Error("A <Select.Item /> must have a value prop that is not an empty string. This is because the Select value can be set to an empty string to clear the selection and show the placeholder.");return b.jsx(Ua,{scope:n,value:r,disabled:o,textId:c,isSelected:f,onItemTextChange:u.useCallback(y=>{m(x=>x||((y==null?void 0:y.textContent)??"").trim())},[]),children:b.jsx(Ot.ItemSlot,{scope:n,value:r,disabled:o,textValue:g,children:b.jsx(J.div,{role:"option","aria-labelledby":c,"data-highlighted":v?"":void 0,"aria-selected":f&&v,"data-state":f?"checked":"unchecked","aria-disabled":o||void 0,"data-disabled":o?"":void 0,tabIndex:o?void 0:-1,...i,ref:l,onFocus:Z(i.onFocus,()=>p(!0)),onBlur:Z(i.onBlur,()=>p(!1)),onClick:Z(i.onClick,()=>{h.current!=="mouse"&&w()}),onPointerUp:Z(i.onPointerUp,()=>{h.current==="mouse"&&w()}),onPointerDown:Z(i.onPointerDown,y=>{h.current=y.pointerType}),onPointerMove:Z(i.onPointerMove,y=>{var x;h.current=y.pointerType,o?(x=d.onItemLeave)==null||x.call(d):h.current==="mouse"&&y.currentTarget.focus({preventScroll:!0})}),onPointerLeave:Z(i.onPointerLeave,y=>{var x;y.currentTarget===document.activeElement&&((x=d.onItemLeave)==null||x.call(d))}),onKeyDown:Z(i.onKeyDown,y=>{var C;((C=d.searchRef)==null?void 0:C.current)!==""&&y.key===" "||(Oa.includes(y.key)&&w(),y.key===" "&&y.preventDefault())})})})})});io.displayName=Mt;var rt="SelectItemText",so=u.forwardRef((e,t)=>{const{__scopeSelect:n,className:r,style:o,...s}=e,i=Ee(rt,n),a=Ce(rt,n),d=oo(rt,n),f=Na(rt,n),[g,m]=u.useState(null),v=te(t,w=>m(w),d.onItemTextChange,w=>{var y;return(y=a.itemTextRefCallback)==null?void 0:y.call(a,w,d.value,d.disabled)}),p=g==null?void 0:g.textContent,l=u.useMemo(()=>b.jsx("option",{value:d.value,disabled:d.disabled,children:p},d.value),[d.disabled,d.value,p]),{onNativeOptionAdd:c,onNativeOptionRemove:h}=f;return ne(()=>(c(l),()=>h(l)),[c,h,l]),b.jsxs(b.Fragment,{children:[b.jsx(J.span,{id:d.textId,...s,ref:v}),d.isSelected&&i.valueNode&&!i.valueNodeHasChildren?st.createPortal(s.children,i.valueNode):null]})});so.displayName=rt;var ao="SelectItemIndicator",Ya=u.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e;return oo(ao,n).isSelected?b.jsx(J.span,{"aria-hidden":!0,...r,ref:t}):null});Ya.displayName=ao;var gn="SelectScrollUpButton",qa=u.forwardRef((e,t)=>{const n=Ce(gn,e.__scopeSelect),r=mn(gn,e.__scopeSelect),[o,s]=u.useState(!1),i=te(t,r.onScrollButtonChange);return ne(()=>{if(n.viewport&&n.isPositioned){let a=function(){const f=d.scrollTop>0;s(f)};const d=n.viewport;return a(),d.addEventListener("scroll",a),()=>d.removeEventListener("scroll",a)}},[n.viewport,n.isPositioned]),o?b.jsx(co,{...e,ref:i,onAutoScroll:()=>{const{viewport:a,selectedItem:d}=n;a&&d&&(a.scrollTop=a.scrollTop-d.offsetHeight)}}):null});qa.displayName=gn;var yn="SelectScrollDownButton",Ka=u.forwardRef((e,t)=>{const n=Ce(yn,e.__scopeSelect),r=mn(yn,e.__scopeSelect),[o,s]=u.useState(!1),i=te(t,r.onScrollButtonChange);return ne(()=>{if(n.viewport&&n.isPositioned){let a=function(){const f=d.scrollHeight-d.clientHeight,g=Math.ceil(d.scrollTop)<f;s(g)};const d=n.viewport;return a(),d.addEventListener("scroll",a),()=>d.removeEventListener("scroll",a)}},[n.viewport,n.isPositioned]),o?b.jsx(co,{...e,ref:i,onAutoScroll:()=>{const{viewport:a,selectedItem:d}=n;a&&d&&(a.scrollTop=a.scrollTop+d.offsetHeight)}}):null});Ka.displayName=yn;var co=u.forwardRef((e,t)=>{const{__scopeSelect:n,onAutoScroll:r,...o}=e,s=Ce("SelectScrollButton",n),i=u.useRef(null),a=At(n),d=u.useCallback(()=>{i.current!==null&&(window.clearInterval(i.current),i.current=null)},[]);return u.useEffect(()=>()=>d(),[d]),ne(()=>{var g;const f=a().find(m=>m.ref.current===document.activeElement);(g=f==null?void 0:f.ref.current)==null||g.scrollIntoView({block:"nearest"})},[a]),b.jsx(J.div,{"aria-hidden":!0,...o,ref:t,style:{flexShrink:0,...o.style},onPointerDown:Z(o.onPointerDown,()=>{i.current===null&&(i.current=window.setInterval(r,50))}),onPointerMove:Z(o.onPointerMove,()=>{var f;(f=s.onItemLeave)==null||f.call(s),i.current===null&&(i.current=window.setInterval(r,50))}),onPointerLeave:Z(o.onPointerLeave,()=>{d()})})}),Xa="SelectSeparator",Za=u.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e;return b.jsx(J.div,{"aria-hidden":!0,...r,ref:t})});Za.displayName=Xa;var wn="SelectArrow",Ga=u.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e,o=kt(n),s=Ee(wn,n),i=Ce(wn,n);return s.open&&i.position==="popper"?b.jsx(Pr,{...o,...r,ref:t}):null});Ga.displayName=wn;var Ja="SelectBubbleInput",lo=u.forwardRef(({__scopeSelect:e,value:t,...n},r)=>{const o=u.useRef(null),s=te(r,o),i=Ws(t);return u.useEffect(()=>{const a=o.current;if(!a)return;const d=window.HTMLSelectElement.prototype,g=Object.getOwnPropertyDescriptor(d,"value").set;if(i!==t&&g){const m=new Event("change",{bubbles:!0});g.call(a,t),a.dispatchEvent(m)}},[i,t]),b.jsx(J.select,{...n,style:{...Or,...n.style},ref:s,defaultValue:t})});lo.displayName=Ja;function uo(e){return e===""||e===void 0}function fo(e){const t=Ae(e),n=u.useRef(""),r=u.useRef(0),o=u.useCallback(i=>{const a=n.current+i;t(a),(function d(f){n.current=f,window.clearTimeout(r.current),f!==""&&(r.current=window.setTimeout(()=>d(""),1e3))})(a)},[t]),s=u.useCallback(()=>{n.current="",window.clearTimeout(r.current)},[]);return u.useEffect(()=>()=>window.clearTimeout(r.current),[]),[n,o,s]}function po(e,t,n){const o=t.length>1&&Array.from(t).every(f=>f===t[0])?t[0]:t,s=n?e.indexOf(n):-1;let i=Qa(e,Math.max(s,0));o.length===1&&(i=i.filter(f=>f!==n));const d=i.find(f=>f.textValue.toLowerCase().startsWith(o.toLowerCase()));return d!==n?d:void 0}function Qa(e,t){return e.map((n,r)=>e[(t+r)%e.length])}var ec=zr,tc=Yr,nc=Kr,rc=Xr,oc=Zr,ic=Gr,sc=to,ac=io,cc=so;const ot={trigger:"_trigger_14rt8_1",icon:"_icon_14rt8_33",content:"_content_14rt8_39",viewport:"_viewport_14rt8_47",item:"_item_14rt8_51"},lc=({value:e,onValueChange:t,options:n,placeholder:r="Select...",className:o="",disabled:s=!1})=>b.jsxs(ec,{value:e,onValueChange:t,disabled:s,children:[b.jsxs(tc,{className:`${ot.trigger} ${o} cursor-pointer`,children:[b.jsx(nc,{placeholder:r}),b.jsx(rc,{className:ot.icon,children:b.jsx(Ao,{size:14,color:"currentColor"})})]}),b.jsx(oc,{children:b.jsx(ic,{className:ot.content,position:"popper",sideOffset:4,children:b.jsx(sc,{className:ot.viewport,children:n.map(i=>b.jsx(ac,{value:i.value,className:ot.item,children:b.jsx(cc,{children:i.label})},i.value))})})})]});function uc(e,t){return u.useReducer((n,r)=>t[n][r]??n,e)}var bn=e=>{const{present:t,children:n}=e,r=dc(t),o=typeof n=="function"?n({present:r.isPresent}):u.Children.only(n),s=te(r.ref,fc(o));return typeof n=="function"||r.isPresent?u.cloneElement(o,{ref:s}):null};bn.displayName="Presence";function dc(e){const[t,n]=u.useState(),r=u.useRef(null),o=u.useRef(e),s=u.useRef("none"),i=e?"mounted":"unmounted",[a,d]=uc(i,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return u.useEffect(()=>{const f=Nt(r.current);s.current=a==="mounted"?f:"none"},[a]),ne(()=>{const f=r.current,g=o.current;if(g!==e){const v=s.current,p=Nt(f);e?d("MOUNT"):p==="none"||(f==null?void 0:f.display)==="none"?d("UNMOUNT"):d(g&&v!==p?"ANIMATION_OUT":"UNMOUNT"),o.current=e}},[e,d]),ne(()=>{if(t){let f;const g=t.ownerDocument.defaultView??window,m=p=>{const c=Nt(r.current).includes(CSS.escape(p.animationName));if(p.target===t&&c&&(d("ANIMATION_END"),!o.current)){const h=t.style.animationFillMode;t.style.animationFillMode="forwards",f=g.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=h)})}},v=p=>{p.target===t&&(s.current=Nt(r.current))};return t.addEventListener("animationstart",v),t.addEventListener("animationcancel",m),t.addEventListener("animationend",m),()=>{g.clearTimeout(f),t.removeEventListener("animationstart",v),t.removeEventListener("animationcancel",m),t.removeEventListener("animationend",m)}}else d("ANIMATION_END")},[t,d]),{isPresent:["mounted","unmountSuspended"].includes(a),ref:u.useCallback(f=>{r.current=f?getComputedStyle(f):null,n(f)},[])}}function Nt(e){return(e==null?void 0:e.animationName)||"none"}function fc(e){var r,o;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var It="Popover",[ho]=lt(It,[xt]),it=xt(),[pc,Re]=ho(It),mo=e=>{const{__scopePopover:t,children:n,open:r,defaultOpen:o,onOpenChange:s,modal:i=!1}=e,a=it(t),d=u.useRef(null),[f,g]=u.useState(!1),[m,v]=an({prop:r,defaultProp:o??!1,onChange:s,caller:It});return b.jsx(Rr,{...a,children:b.jsx(pc,{scope:t,contentId:ut(),triggerRef:d,open:m,onOpenChange:v,onOpenToggle:u.useCallback(()=>v(p=>!p),[v]),hasCustomAnchor:f,onCustomAnchorAdd:u.useCallback(()=>g(!0),[]),onCustomAnchorRemove:u.useCallback(()=>g(!1),[]),modal:i,children:n})})};mo.displayName=It;var vo="PopoverAnchor",hc=u.forwardRef((e,t)=>{const{__scopePopover:n,...r}=e,o=Re(vo,n),s=it(n),{onCustomAnchorAdd:i,onCustomAnchorRemove:a}=o;return u.useEffect(()=>(i(),()=>a()),[i,a]),b.jsx(on,{...s,...r,ref:t})});hc.displayName=vo;var go="PopoverTrigger",yo=u.forwardRef((e,t)=>{const{__scopePopover:n,...r}=e,o=Re(go,n),s=it(n),i=te(t,o.triggerRef),a=b.jsx(J.button,{type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":_o(o.open),...r,ref:i,onClick:Z(e.onClick,o.onOpenToggle)});return o.hasCustomAnchor?a:b.jsx(on,{asChild:!0,...s,children:a})});yo.displayName=go;var xn="PopoverPortal",[mc,vc]=ho(xn,{forceMount:void 0}),wo=e=>{const{__scopePopover:t,forceMount:n,children:r,container:o}=e,s=Re(xn,t);return b.jsx(mc,{scope:t,forceMount:n,children:b.jsx(bn,{present:n||s.open,children:b.jsx(sn,{asChild:!0,container:o,children:r})})})};wo.displayName=xn;var Ue="PopoverContent",bo=u.forwardRef((e,t)=>{const n=vc(Ue,e.__scopePopover),{forceMount:r=n.forceMount,...o}=e,s=Re(Ue,e.__scopePopover);return b.jsx(bn,{present:r||s.open,children:s.modal?b.jsx(yc,{...o,ref:t}):b.jsx(wc,{...o,ref:t})})});bo.displayName=Ue;var gc=Qe("PopoverContent.RemoveScroll"),yc=u.forwardRef((e,t)=>{const n=Re(Ue,e.__scopePopover),r=u.useRef(null),o=te(t,r),s=u.useRef(!1);return u.useEffect(()=>{const i=r.current;if(i)return kr(i)},[]),b.jsx(pn,{as:gc,allowPinchZoom:!0,children:b.jsx(xo,{...e,ref:o,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:Z(e.onCloseAutoFocus,i=>{var a;i.preventDefault(),s.current||(a=n.triggerRef.current)==null||a.focus()}),onPointerDownOutside:Z(e.onPointerDownOutside,i=>{const a=i.detail.originalEvent,d=a.button===0&&a.ctrlKey===!0,f=a.button===2||d;s.current=f},{checkForDefaultPrevented:!1}),onFocusOutside:Z(e.onFocusOutside,i=>i.preventDefault(),{checkForDefaultPrevented:!1})})})}),wc=u.forwardRef((e,t)=>{const n=Re(Ue,e.__scopePopover),r=u.useRef(!1),o=u.useRef(!1);return b.jsx(xo,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:s=>{var i,a;(i=e.onCloseAutoFocus)==null||i.call(e,s),s.defaultPrevented||(r.current||(a=n.triggerRef.current)==null||a.focus(),s.preventDefault()),r.current=!1,o.current=!1},onInteractOutside:s=>{var d,f;(d=e.onInteractOutside)==null||d.call(e,s),s.defaultPrevented||(r.current=!0,s.detail.originalEvent.type==="pointerdown"&&(o.current=!0));const i=s.target;((f=n.triggerRef.current)==null?void 0:f.contains(i))&&s.preventDefault(),s.detail.originalEvent.type==="focusin"&&o.current&&s.preventDefault()}})}),xo=u.forwardRef((e,t)=>{const{__scopePopover:n,trapFocus:r,onOpenAutoFocus:o,onCloseAutoFocus:s,disableOutsidePointerEvents:i,onEscapeKeyDown:a,onPointerDownOutside:d,onFocusOutside:f,onInteractOutside:g,...m}=e,v=Re(Ue,n),p=it(n);return $n(),b.jsx(zt,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:o,onUnmountAutoFocus:s,children:b.jsx(Wt,{asChild:!0,disableOutsidePointerEvents:i,onInteractOutside:g,onEscapeKeyDown:a,onPointerDownOutside:d,onFocusOutside:f,onDismiss:()=>v.onOpenChange(!1),children:b.jsx(Tr,{"data-state":_o(v.open),role:"dialog",id:v.contentId,...p,...m,ref:t,style:{...m.style,"--radix-popover-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-popover-content-available-width":"var(--radix-popper-available-width)","--radix-popover-content-available-height":"var(--radix-popper-available-height)","--radix-popover-trigger-width":"var(--radix-popper-anchor-width)","--radix-popover-trigger-height":"var(--radix-popper-anchor-height)"}})})})}),So="PopoverClose",bc=u.forwardRef((e,t)=>{const{__scopePopover:n,...r}=e,o=Re(So,n);return b.jsx(J.button,{type:"button",...r,ref:t,onClick:Z(e.onClick,()=>o.onOpenChange(!1))})});bc.displayName=So;var xc="PopoverArrow",Sc=u.forwardRef((e,t)=>{const{__scopePopover:n,...r}=e,o=it(n);return b.jsx(Pr,{...o,...r,ref:t})});Sc.displayName=xc;function _o(e){return e?"open":"closed"}var _c=mo,Ec=yo,Cc=wo,Rc=bo;const Tc={content:"_content_1qahr_1"},Pc=({trigger:e,children:t,open:n,onOpenChange:r,align:o="end",side:s="bottom",sideOffset:i=5,className:a=""})=>b.jsxs(_c,{open:n,onOpenChange:r,children:[b.jsx(Ec,{asChild:!0,children:e}),b.jsx(Cc,{children:b.jsx(Rc,{className:`${Tc.content} ${a}`,align:o,side:s,sideOffset:i,children:t})})]}),Te={table:"_table_1fmit_1",headerRow:"_headerRow_1fmit_16",dataRow:"_dataRow_1fmit_24",cellInner:"_cellInner_1fmit_32",cellLabel:"_cellLabel_1fmit_38",cellContent:"_cellContent_1fmit_43",value:"_value_1fmit_49",icon:"_icon_1fmit_55"};function Oc({children:e}){return b.jsx("table",{className:Te.table,children:e})}function Ac({children:e}){return b.jsx("thead",{children:b.jsx("tr",{className:Te.headerRow,children:e})})}function kc({children:e}){return b.jsx("tr",{className:Te.dataRow,children:e})}function Mc({label:e,children:t}){return e||t?b.jsx("td",{children:b.jsxs("div",{className:Te.cellInner,children:[e&&b.jsx("span",{className:Te.cellLabel,children:e}),t&&b.jsx("div",{className:Te.cellContent,children:t})]})}):b.jsx("td",{children:t})}function Nc({children:e}){return b.jsx("span",{className:Te.value,children:e})}function Ic({children:e}){return b.jsx("span",{className:Te.icon,children:X.cloneElement(e,{size:"14px",color:"currentColor"})})}G.Base=Oo,G.Button=To,G.Checkbox=Po,G.FilterPanelBase=Io,G.InputField=Lo,G.Popover=Pc,G.RadioButton=Fo,G.SearchField=jo,G.Select=lc,G.Slider=Vo,G.Table=Oc,G.TableCell=Mc,G.TableHeader=Ac,G.TableIcon=Ic,G.TableRow=kc,G.TableValue=Nc,G.ToggleSwitch=Bo,Object.defineProperty(G,Symbol.toStringTag,{value:"Module"})}));
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@indxsearch/systm",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.2.0",
|
|
4
4
|
"description": "Base UI component library for indxSearch",
|
|
5
5
|
"keywords": ["react", "components", "ui", "design-system"],
|
|
6
6
|
"author": "Indx Search",
|
|
@@ -41,7 +41,8 @@
|
|
|
41
41
|
"import": "./dist/index.es.js",
|
|
42
42
|
"require": "./dist/index.umd.js"
|
|
43
43
|
},
|
|
44
|
-
"./styles.css": "./dist/systm.css"
|
|
44
|
+
"./styles.css": "./dist/systm.css",
|
|
45
|
+
"./cursors.css": "./dist/cursors.css"
|
|
45
46
|
},
|
|
46
47
|
"dependencies": {
|
|
47
48
|
"@indxsearch/pixl": "^1.1.1",
|