@alpacachen/dsh-kanban 1.3.2 → 1.3.3
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/lib/client.js +1166 -1929
- package/package.json +3 -9
package/lib/client.js
CHANGED
|
@@ -3,1981 +3,1218 @@ window.__ModuleLoader__.load({
|
|
|
3
3
|
factory: function (require) {
|
|
4
4
|
var module = { exports: {} }
|
|
5
5
|
var exports = module.exports
|
|
6
|
-
"use strict";var
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
"Courier New", monospace;
|
|
16
|
-
--color-amber-500: oklch(76.9% 0.188 70.08);
|
|
17
|
-
--color-amber-600: oklch(66.6% 0.179 58.318);
|
|
18
|
-
--color-emerald-500: oklch(69.6% 0.17 162.48);
|
|
19
|
-
--color-sky-500: oklch(68.5% 0.169 237.323);
|
|
20
|
-
--color-black: #000;
|
|
21
|
-
--spacing: 0.25rem;
|
|
22
|
-
--container-md: 28rem;
|
|
23
|
-
--container-lg: 32rem;
|
|
24
|
-
--container-xl: 36rem;
|
|
25
|
-
--text-xs: 0.75rem;
|
|
26
|
-
--text-xs--line-height: calc(1 / 0.75);
|
|
27
|
-
--text-sm: 0.875rem;
|
|
28
|
-
--text-sm--line-height: calc(1.25 / 0.875);
|
|
29
|
-
--text-lg: 1.125rem;
|
|
30
|
-
--text-lg--line-height: calc(1.75 / 1.125);
|
|
31
|
-
--font-weight-medium: 500;
|
|
32
|
-
--font-weight-semibold: 600;
|
|
33
|
-
--tracking-tight: -0.025em;
|
|
34
|
-
--leading-snug: 1.375;
|
|
35
|
-
--leading-relaxed: 1.625;
|
|
36
|
-
--radius-2xl: 1rem;
|
|
37
|
-
--animate-spin: spin 1s linear infinite;
|
|
38
|
-
--default-transition-duration: 150ms;
|
|
39
|
-
--default-transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
|
|
40
|
-
--default-font-family: var(--font-sans);
|
|
41
|
-
--default-mono-font-family: var(--font-mono);
|
|
42
|
-
}
|
|
6
|
+
"use strict";var gp=Object.create;var Sr=Object.defineProperty;var hp=Object.getOwnPropertyDescriptor;var xp=Object.getOwnPropertyNames;var vp=Object.getPrototypeOf,Cp=Object.prototype.hasOwnProperty;var Js=e=>{throw TypeError(e)};var Lp=(e,t)=>{for(var a in t)Sr(e,a,{get:t[a],enumerable:!0})},Qs=(e,t,a,o)=>{if(t&&typeof t=="object"||typeof t=="function")for(let r of xp(t))!Cp.call(e,r)&&r!==a&&Sr(e,r,{get:()=>t[r],enumerable:!(o=hp(t,r))||o.enumerable});return e};var U=(e,t,a)=>(a=e!=null?gp(vp(e)):{},Qs(t||!e||!e.__esModule?Sr(a,"default",{value:e,enumerable:!0}):a,e)),bp=e=>Qs(Sr({},"__esModule",{value:!0}),e);var ei=(e,t,a)=>t.has(e)||Js("Cannot "+a);var He=(e,t,a)=>(ei(e,t,"read from private field"),a?a.call(e):t.get(e)),ti=(e,t,a)=>t.has(e)?Js("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,a),Vn=(e,t,a,o)=>(ei(e,t,"write to private field"),o?o.call(e,a):t.set(e,a),a);var mC={};Lp(mC,{default:()=>pC});module.exports=bp(mC);var ai=`/*
|
|
7
|
+
* Kanban plugin styles.
|
|
8
|
+
* All selectors are namespaced so this stylesheet can live in DSH's <head>.
|
|
9
|
+
* Typography, colors, borders and shadows use DSH theme tokens directly.
|
|
10
|
+
*/
|
|
11
|
+
|
|
12
|
+
.kanban-root {
|
|
13
|
+
color: var(--dsw-alias-label-primary);
|
|
14
|
+
font: var(--dsw-font-s-14);
|
|
43
15
|
}
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
padding: 0;
|
|
49
|
-
border: 0 solid;
|
|
50
|
-
}
|
|
51
|
-
html, :host {
|
|
52
|
-
line-height: 1.5;
|
|
53
|
-
-webkit-text-size-adjust: 100%;
|
|
54
|
-
tab-size: 4;
|
|
55
|
-
font-family: var(--default-font-family, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", "Noto Sans", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji");
|
|
56
|
-
font-feature-settings: var(--default-font-feature-settings, normal);
|
|
57
|
-
font-variation-settings: var(--default-font-variation-settings, normal);
|
|
58
|
-
-webkit-tap-highlight-color: transparent;
|
|
59
|
-
}
|
|
60
|
-
hr {
|
|
61
|
-
height: 0;
|
|
62
|
-
color: inherit;
|
|
63
|
-
border-top-width: 1px;
|
|
64
|
-
}
|
|
65
|
-
abbr:where([title]) {
|
|
66
|
-
-webkit-text-decoration: underline dotted;
|
|
67
|
-
text-decoration: underline dotted;
|
|
68
|
-
}
|
|
69
|
-
h1, h2, h3, h4, h5, h6 {
|
|
70
|
-
font-size: inherit;
|
|
71
|
-
font-weight: inherit;
|
|
72
|
-
}
|
|
73
|
-
a {
|
|
74
|
-
color: inherit;
|
|
75
|
-
-webkit-text-decoration: inherit;
|
|
76
|
-
text-decoration: inherit;
|
|
77
|
-
}
|
|
78
|
-
b, strong {
|
|
79
|
-
font-weight: bolder;
|
|
80
|
-
}
|
|
81
|
-
code, kbd, samp, pre {
|
|
82
|
-
font-family: var(--default-mono-font-family, ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace);
|
|
83
|
-
font-feature-settings: var(--default-mono-font-feature-settings, normal);
|
|
84
|
-
font-variation-settings: var(--default-mono-font-variation-settings, normal);
|
|
85
|
-
font-size: 1em;
|
|
86
|
-
}
|
|
87
|
-
small {
|
|
88
|
-
font-size: 80%;
|
|
89
|
-
}
|
|
90
|
-
sub, sup {
|
|
91
|
-
font-size: 75%;
|
|
92
|
-
line-height: 0;
|
|
93
|
-
position: relative;
|
|
94
|
-
vertical-align: baseline;
|
|
95
|
-
}
|
|
96
|
-
sub {
|
|
97
|
-
bottom: -0.25em;
|
|
98
|
-
}
|
|
99
|
-
sup {
|
|
100
|
-
top: -0.5em;
|
|
101
|
-
}
|
|
102
|
-
table {
|
|
103
|
-
text-indent: 0;
|
|
104
|
-
border-color: inherit;
|
|
105
|
-
border-collapse: collapse;
|
|
106
|
-
}
|
|
107
|
-
:-moz-focusring:where(:not(iframe)) {
|
|
108
|
-
outline: auto;
|
|
109
|
-
}
|
|
110
|
-
progress {
|
|
111
|
-
vertical-align: baseline;
|
|
112
|
-
}
|
|
113
|
-
summary {
|
|
114
|
-
display: list-item;
|
|
115
|
-
}
|
|
116
|
-
ol, ul, menu {
|
|
117
|
-
list-style: none;
|
|
118
|
-
}
|
|
119
|
-
img, svg, video, canvas, audio, iframe, embed, object {
|
|
120
|
-
display: block;
|
|
121
|
-
vertical-align: middle;
|
|
122
|
-
}
|
|
123
|
-
img, video {
|
|
124
|
-
max-width: 100%;
|
|
125
|
-
height: auto;
|
|
126
|
-
}
|
|
127
|
-
button, input, select, optgroup, textarea, ::file-selector-button {
|
|
128
|
-
font: inherit;
|
|
129
|
-
font-feature-settings: inherit;
|
|
130
|
-
font-variation-settings: inherit;
|
|
131
|
-
letter-spacing: inherit;
|
|
132
|
-
color: inherit;
|
|
133
|
-
border-radius: 0;
|
|
134
|
-
background-color: transparent;
|
|
135
|
-
opacity: 1;
|
|
136
|
-
}
|
|
137
|
-
:where(select:is([multiple], [size])) optgroup {
|
|
138
|
-
font-weight: bolder;
|
|
139
|
-
}
|
|
140
|
-
:where(select:is([multiple], [size])) optgroup option {
|
|
141
|
-
padding-inline-start: 20px;
|
|
142
|
-
}
|
|
143
|
-
::file-selector-button {
|
|
144
|
-
margin-inline-end: 4px;
|
|
145
|
-
}
|
|
146
|
-
::placeholder {
|
|
147
|
-
opacity: 1;
|
|
148
|
-
}
|
|
149
|
-
@supports (not (-webkit-appearance: -apple-pay-button)) or (contain-intrinsic-size: 1px) {
|
|
150
|
-
::placeholder {
|
|
151
|
-
color: currentcolor;
|
|
152
|
-
@supports (color: color-mix(in lab, red, red)) {
|
|
153
|
-
color: color-mix(in oklab, currentcolor 50%, transparent);
|
|
154
|
-
}
|
|
155
|
-
}
|
|
156
|
-
}
|
|
157
|
-
textarea {
|
|
158
|
-
resize: vertical;
|
|
159
|
-
}
|
|
160
|
-
::-webkit-search-decoration {
|
|
161
|
-
-webkit-appearance: none;
|
|
162
|
-
}
|
|
163
|
-
::-webkit-date-and-time-value {
|
|
164
|
-
min-height: 1lh;
|
|
165
|
-
text-align: inherit;
|
|
166
|
-
}
|
|
167
|
-
::-webkit-datetime-edit {
|
|
168
|
-
display: inline-flex;
|
|
169
|
-
}
|
|
170
|
-
::-webkit-datetime-edit-fields-wrapper {
|
|
171
|
-
padding: 0;
|
|
172
|
-
}
|
|
173
|
-
::-webkit-datetime-edit, ::-webkit-datetime-edit-year-field, ::-webkit-datetime-edit-month-field, ::-webkit-datetime-edit-day-field, ::-webkit-datetime-edit-hour-field, ::-webkit-datetime-edit-minute-field, ::-webkit-datetime-edit-second-field, ::-webkit-datetime-edit-millisecond-field, ::-webkit-datetime-edit-meridiem-field {
|
|
174
|
-
padding-block: 0;
|
|
175
|
-
}
|
|
176
|
-
::-webkit-calendar-picker-indicator {
|
|
177
|
-
line-height: 1;
|
|
178
|
-
}
|
|
179
|
-
:-moz-ui-invalid {
|
|
180
|
-
box-shadow: none;
|
|
181
|
-
}
|
|
182
|
-
button, input:where([type="button"], [type="reset"], [type="submit"]), ::file-selector-button {
|
|
183
|
-
appearance: button;
|
|
184
|
-
}
|
|
185
|
-
::-webkit-inner-spin-button, ::-webkit-outer-spin-button {
|
|
186
|
-
height: auto;
|
|
187
|
-
}
|
|
188
|
-
[hidden]:where(:not([hidden="until-found"])) {
|
|
189
|
-
display: none !important;
|
|
190
|
-
}
|
|
16
|
+
|
|
17
|
+
.kanban-portal {
|
|
18
|
+
color: var(--dsw-alias-label-primary);
|
|
19
|
+
font: var(--dsw-font-s-14);
|
|
191
20
|
}
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
|
|
537
|
-
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
|
|
550
|
-
|
|
551
|
-
|
|
552
|
-
|
|
553
|
-
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
|
|
578
|
-
gap: calc(var(--spacing) * 3);
|
|
579
|
-
}
|
|
580
|
-
.gap-4 {
|
|
581
|
-
gap: calc(var(--spacing) * 4);
|
|
582
|
-
}
|
|
583
|
-
:where(.space-y-1 > :not(:last-child)) {
|
|
584
|
-
--tw-space-y-reverse: 0;
|
|
585
|
-
margin-block-start: calc(var(--spacing) * var(--tw-space-y-reverse));
|
|
586
|
-
margin-block-end: calc(var(--spacing) * calc(1 - var(--tw-space-y-reverse)));
|
|
587
|
-
}
|
|
588
|
-
:where(.space-y-1\\.5 > :not(:last-child)) {
|
|
589
|
-
--tw-space-y-reverse: 0;
|
|
590
|
-
margin-block-start: calc(calc(var(--spacing) * 1.5) * var(--tw-space-y-reverse));
|
|
591
|
-
margin-block-end: calc(calc(var(--spacing) * 1.5) * calc(1 - var(--tw-space-y-reverse)));
|
|
592
|
-
}
|
|
593
|
-
:where(.space-y-3 > :not(:last-child)) {
|
|
594
|
-
--tw-space-y-reverse: 0;
|
|
595
|
-
margin-block-start: calc(calc(var(--spacing) * 3) * var(--tw-space-y-reverse));
|
|
596
|
-
margin-block-end: calc(calc(var(--spacing) * 3) * calc(1 - var(--tw-space-y-reverse)));
|
|
597
|
-
}
|
|
598
|
-
:where(.space-y-3\\.5 > :not(:last-child)) {
|
|
599
|
-
--tw-space-y-reverse: 0;
|
|
600
|
-
margin-block-start: calc(calc(var(--spacing) * 3.5) * var(--tw-space-y-reverse));
|
|
601
|
-
margin-block-end: calc(calc(var(--spacing) * 3.5) * calc(1 - var(--tw-space-y-reverse)));
|
|
602
|
-
}
|
|
603
|
-
:where(.space-y-reverse > :not(:last-child)) {
|
|
604
|
-
--tw-space-y-reverse: 1;
|
|
605
|
-
}
|
|
606
|
-
:where(.space-x-reverse > :not(:last-child)) {
|
|
607
|
-
--tw-space-x-reverse: 1;
|
|
608
|
-
}
|
|
609
|
-
:where(.divide-x > :not(:last-child)) {
|
|
610
|
-
--tw-divide-x-reverse: 0;
|
|
611
|
-
border-inline-style: var(--tw-border-style);
|
|
612
|
-
border-inline-start-width: calc(1px * var(--tw-divide-x-reverse));
|
|
613
|
-
border-inline-end-width: calc(1px * calc(1 - var(--tw-divide-x-reverse)));
|
|
614
|
-
}
|
|
615
|
-
:where(.divide-y > :not(:last-child)) {
|
|
616
|
-
--tw-divide-y-reverse: 0;
|
|
617
|
-
border-bottom-style: var(--tw-border-style);
|
|
618
|
-
border-top-style: var(--tw-border-style);
|
|
619
|
-
border-top-width: calc(1px * var(--tw-divide-y-reverse));
|
|
620
|
-
border-bottom-width: calc(1px * calc(1 - var(--tw-divide-y-reverse)));
|
|
621
|
-
}
|
|
622
|
-
:where(.divide-y-reverse > :not(:last-child)) {
|
|
623
|
-
--tw-divide-y-reverse: 1;
|
|
624
|
-
}
|
|
625
|
-
.self-start {
|
|
626
|
-
align-self: flex-start;
|
|
627
|
-
}
|
|
628
|
-
.truncate {
|
|
629
|
-
overflow: hidden;
|
|
630
|
-
text-overflow: ellipsis;
|
|
631
|
-
white-space: nowrap;
|
|
632
|
-
}
|
|
633
|
-
.overflow-hidden {
|
|
634
|
-
overflow: hidden;
|
|
635
|
-
}
|
|
636
|
-
.overflow-x-auto {
|
|
637
|
-
overflow-x: auto;
|
|
638
|
-
}
|
|
639
|
-
.overflow-y-auto {
|
|
640
|
-
overflow-y: auto;
|
|
641
|
-
}
|
|
642
|
-
.overflow-y-hidden {
|
|
643
|
-
overflow-y: hidden;
|
|
644
|
-
}
|
|
645
|
-
.rounded-2xl {
|
|
646
|
-
border-radius: var(--radius-2xl);
|
|
647
|
-
}
|
|
648
|
-
.rounded-full {
|
|
649
|
-
border-radius: calc(infinity * 1px);
|
|
650
|
-
}
|
|
651
|
-
.rounded-lg {
|
|
652
|
-
border-radius: 0.75rem;
|
|
653
|
-
}
|
|
654
|
-
.rounded-md {
|
|
655
|
-
border-radius: 0.625rem;
|
|
656
|
-
}
|
|
657
|
-
.rounded-sm {
|
|
658
|
-
border-radius: 0.5rem;
|
|
659
|
-
}
|
|
660
|
-
.rounded-xl {
|
|
661
|
-
border-radius: 1rem;
|
|
662
|
-
}
|
|
663
|
-
.rounded-s {
|
|
664
|
-
border-start-start-radius: 0.25rem;
|
|
665
|
-
border-end-start-radius: 0.25rem;
|
|
666
|
-
}
|
|
667
|
-
.rounded-ss {
|
|
668
|
-
border-start-start-radius: 0.25rem;
|
|
669
|
-
}
|
|
670
|
-
.rounded-e {
|
|
671
|
-
border-start-end-radius: 0.25rem;
|
|
672
|
-
border-end-end-radius: 0.25rem;
|
|
673
|
-
}
|
|
674
|
-
.rounded-se {
|
|
675
|
-
border-start-end-radius: 0.25rem;
|
|
676
|
-
}
|
|
677
|
-
.rounded-ee {
|
|
678
|
-
border-end-end-radius: 0.25rem;
|
|
679
|
-
}
|
|
680
|
-
.rounded-es {
|
|
681
|
-
border-end-start-radius: 0.25rem;
|
|
682
|
-
}
|
|
683
|
-
.rounded-t {
|
|
684
|
-
border-top-left-radius: 0.25rem;
|
|
685
|
-
border-top-right-radius: 0.25rem;
|
|
686
|
-
}
|
|
687
|
-
.rounded-l {
|
|
688
|
-
border-top-left-radius: 0.25rem;
|
|
689
|
-
border-bottom-left-radius: 0.25rem;
|
|
690
|
-
}
|
|
691
|
-
.rounded-tl {
|
|
692
|
-
border-top-left-radius: 0.25rem;
|
|
693
|
-
}
|
|
694
|
-
.rounded-r {
|
|
695
|
-
border-top-right-radius: 0.25rem;
|
|
696
|
-
border-bottom-right-radius: 0.25rem;
|
|
697
|
-
}
|
|
698
|
-
.rounded-tr {
|
|
699
|
-
border-top-right-radius: 0.25rem;
|
|
700
|
-
}
|
|
701
|
-
.rounded-b {
|
|
702
|
-
border-bottom-right-radius: 0.25rem;
|
|
703
|
-
border-bottom-left-radius: 0.25rem;
|
|
704
|
-
}
|
|
705
|
-
.rounded-br {
|
|
706
|
-
border-bottom-right-radius: 0.25rem;
|
|
707
|
-
}
|
|
708
|
-
.rounded-bl {
|
|
709
|
-
border-bottom-left-radius: 0.25rem;
|
|
710
|
-
}
|
|
711
|
-
.border {
|
|
712
|
-
border-style: var(--tw-border-style);
|
|
713
|
-
border-width: 1px;
|
|
714
|
-
}
|
|
715
|
-
.border-x {
|
|
716
|
-
border-inline-style: var(--tw-border-style);
|
|
717
|
-
border-inline-width: 1px;
|
|
718
|
-
}
|
|
719
|
-
.border-y {
|
|
720
|
-
border-block-style: var(--tw-border-style);
|
|
721
|
-
border-block-width: 1px;
|
|
722
|
-
}
|
|
723
|
-
.border-s {
|
|
724
|
-
border-inline-start-style: var(--tw-border-style);
|
|
725
|
-
border-inline-start-width: 1px;
|
|
726
|
-
}
|
|
727
|
-
.border-e {
|
|
728
|
-
border-inline-end-style: var(--tw-border-style);
|
|
729
|
-
border-inline-end-width: 1px;
|
|
730
|
-
}
|
|
731
|
-
.border-t {
|
|
732
|
-
border-top-style: var(--tw-border-style);
|
|
733
|
-
border-top-width: 1px;
|
|
734
|
-
}
|
|
735
|
-
.border-r {
|
|
736
|
-
border-right-style: var(--tw-border-style);
|
|
737
|
-
border-right-width: 1px;
|
|
738
|
-
}
|
|
739
|
-
.border-b {
|
|
740
|
-
border-bottom-style: var(--tw-border-style);
|
|
741
|
-
border-bottom-width: 1px;
|
|
742
|
-
}
|
|
743
|
-
.border-l {
|
|
744
|
-
border-left-style: var(--tw-border-style);
|
|
745
|
-
border-left-width: 1px;
|
|
746
|
-
}
|
|
747
|
-
.border-\\[var\\(--dsw-alias-border-l2\\)\\] {
|
|
748
|
-
border-color: var(--dsw-alias-border-l2);
|
|
749
|
-
}
|
|
750
|
-
.border-amber-500 {
|
|
751
|
-
border-color: var(--color-amber-500);
|
|
752
|
-
}
|
|
753
|
-
.border-amber-500\\/40 {
|
|
754
|
-
border-color: color-mix(in srgb, oklch(76.9% 0.188 70.08) 40%, transparent);
|
|
755
|
-
@supports (color: color-mix(in lab, red, red)) {
|
|
756
|
-
border-color: color-mix(in oklab, var(--color-amber-500) 40%, transparent);
|
|
757
|
-
}
|
|
758
|
-
}
|
|
759
|
-
.border-input {
|
|
760
|
-
border-color: var(--dsw-alias-border-l1);
|
|
761
|
-
}
|
|
762
|
-
.border-primary {
|
|
763
|
-
border-color: var(--dsw-alias-brand-primary);
|
|
764
|
-
}
|
|
765
|
-
.border-transparent {
|
|
766
|
-
border-color: transparent;
|
|
767
|
-
}
|
|
768
|
-
.bg-amber-500 {
|
|
769
|
-
background-color: var(--color-amber-500);
|
|
770
|
-
}
|
|
771
|
-
.bg-amber-500\\/10 {
|
|
772
|
-
background-color: color-mix(in srgb, oklch(76.9% 0.188 70.08) 10%, transparent);
|
|
773
|
-
@supports (color: color-mix(in lab, red, red)) {
|
|
774
|
-
background-color: color-mix(in oklab, var(--color-amber-500) 10%, transparent);
|
|
775
|
-
}
|
|
776
|
-
}
|
|
777
|
-
.bg-background {
|
|
778
|
-
background-color: var(--dsw-alias-bg-base);
|
|
779
|
-
}
|
|
780
|
-
.bg-black {
|
|
781
|
-
background-color: var(--color-black);
|
|
782
|
-
}
|
|
783
|
-
.bg-black\\/80 {
|
|
784
|
-
background-color: color-mix(in srgb, #000 80%, transparent);
|
|
785
|
-
@supports (color: color-mix(in lab, red, red)) {
|
|
786
|
-
background-color: color-mix(in oklab, var(--color-black) 80%, transparent);
|
|
787
|
-
}
|
|
788
|
-
}
|
|
789
|
-
.bg-border {
|
|
790
|
-
background-color: var(--dsw-alias-border-l1);
|
|
791
|
-
}
|
|
792
|
-
.bg-card {
|
|
793
|
-
background-color: var(--dsw-alias-bg-layer-1);
|
|
794
|
-
}
|
|
795
|
-
.bg-destructive {
|
|
796
|
-
background-color: var(--dsw-alias-state-error-primary);
|
|
797
|
-
}
|
|
798
|
-
.bg-emerald-500 {
|
|
799
|
-
background-color: var(--color-emerald-500);
|
|
800
|
-
}
|
|
801
|
-
.bg-muted {
|
|
802
|
-
background-color: var(--dsw-alias-bg-layer-1);
|
|
803
|
-
}
|
|
804
|
-
.bg-popover {
|
|
805
|
-
background-color: var(--dsw-alias-bg-overlay);
|
|
806
|
-
}
|
|
807
|
-
.bg-primary {
|
|
808
|
-
background-color: var(--dsw-alias-brand-primary);
|
|
809
|
-
}
|
|
810
|
-
.bg-secondary {
|
|
811
|
-
background-color: var(--dsw-alias-bg-layer-2);
|
|
812
|
-
}
|
|
813
|
-
.bg-secondary\\/70 {
|
|
814
|
-
background-color: var(--dsw-alias-bg-layer-2);
|
|
815
|
-
@supports (color: color-mix(in lab, red, red)) {
|
|
816
|
-
background-color: color-mix(in oklab, var(--dsw-alias-bg-layer-2) 70%, transparent);
|
|
817
|
-
}
|
|
818
|
-
}
|
|
819
|
-
.bg-sky-500 {
|
|
820
|
-
background-color: var(--color-sky-500);
|
|
821
|
-
}
|
|
822
|
-
.bg-transparent {
|
|
823
|
-
background-color: transparent;
|
|
824
|
-
}
|
|
825
|
-
.bg-repeat {
|
|
826
|
-
background-repeat: repeat;
|
|
827
|
-
}
|
|
828
|
-
.p-0 {
|
|
829
|
-
padding: 0px;
|
|
830
|
-
}
|
|
831
|
-
.p-0\\.5 {
|
|
832
|
-
padding: calc(var(--spacing) * 0.5);
|
|
833
|
-
}
|
|
834
|
-
.p-1 {
|
|
835
|
-
padding: var(--spacing);
|
|
836
|
-
}
|
|
837
|
-
.p-1\\.5 {
|
|
838
|
-
padding: calc(var(--spacing) * 1.5);
|
|
839
|
-
}
|
|
840
|
-
.p-2 {
|
|
841
|
-
padding: calc(var(--spacing) * 2);
|
|
842
|
-
}
|
|
843
|
-
.p-2\\.5 {
|
|
844
|
-
padding: calc(var(--spacing) * 2.5);
|
|
845
|
-
}
|
|
846
|
-
.p-3 {
|
|
847
|
-
padding: calc(var(--spacing) * 3);
|
|
848
|
-
}
|
|
849
|
-
.p-3\\.5 {
|
|
850
|
-
padding: calc(var(--spacing) * 3.5);
|
|
851
|
-
}
|
|
852
|
-
.p-5 {
|
|
853
|
-
padding: calc(var(--spacing) * 5);
|
|
854
|
-
}
|
|
855
|
-
.p-6 {
|
|
856
|
-
padding: calc(var(--spacing) * 6);
|
|
857
|
-
}
|
|
858
|
-
.px-1 {
|
|
859
|
-
padding-inline: var(--spacing);
|
|
860
|
-
}
|
|
861
|
-
.px-1\\.5 {
|
|
862
|
-
padding-inline: calc(var(--spacing) * 1.5);
|
|
863
|
-
}
|
|
864
|
-
.px-2 {
|
|
865
|
-
padding-inline: calc(var(--spacing) * 2);
|
|
866
|
-
}
|
|
867
|
-
.px-2\\.5 {
|
|
868
|
-
padding-inline: calc(var(--spacing) * 2.5);
|
|
869
|
-
}
|
|
870
|
-
.px-3 {
|
|
871
|
-
padding-inline: calc(var(--spacing) * 3);
|
|
872
|
-
}
|
|
873
|
-
.px-4 {
|
|
874
|
-
padding-inline: calc(var(--spacing) * 4);
|
|
875
|
-
}
|
|
876
|
-
.px-8 {
|
|
877
|
-
padding-inline: calc(var(--spacing) * 8);
|
|
878
|
-
}
|
|
879
|
-
.py-0 {
|
|
880
|
-
padding-block: 0px;
|
|
881
|
-
}
|
|
882
|
-
.py-0\\.5 {
|
|
883
|
-
padding-block: calc(var(--spacing) * 0.5);
|
|
884
|
-
}
|
|
885
|
-
.py-1 {
|
|
886
|
-
padding-block: var(--spacing);
|
|
887
|
-
}
|
|
888
|
-
.py-1\\.5 {
|
|
889
|
-
padding-block: calc(var(--spacing) * 1.5);
|
|
890
|
-
}
|
|
891
|
-
.py-2 {
|
|
892
|
-
padding-block: calc(var(--spacing) * 2);
|
|
893
|
-
}
|
|
894
|
-
.py-3 {
|
|
895
|
-
padding-block: calc(var(--spacing) * 3);
|
|
896
|
-
}
|
|
897
|
-
.py-5 {
|
|
898
|
-
padding-block: calc(var(--spacing) * 5);
|
|
899
|
-
}
|
|
900
|
-
.pt-0 {
|
|
901
|
-
padding-top: 0px;
|
|
902
|
-
}
|
|
903
|
-
.pt-1 {
|
|
904
|
-
padding-top: var(--spacing);
|
|
905
|
-
}
|
|
906
|
-
.pr-1 {
|
|
907
|
-
padding-right: var(--spacing);
|
|
908
|
-
}
|
|
909
|
-
.pr-8 {
|
|
910
|
-
padding-right: calc(var(--spacing) * 8);
|
|
911
|
-
}
|
|
912
|
-
.pb-2 {
|
|
913
|
-
padding-bottom: calc(var(--spacing) * 2);
|
|
914
|
-
}
|
|
915
|
-
.pb-2\\.5 {
|
|
916
|
-
padding-bottom: calc(var(--spacing) * 2.5);
|
|
917
|
-
}
|
|
918
|
-
.pl-2 {
|
|
919
|
-
padding-left: calc(var(--spacing) * 2);
|
|
920
|
-
}
|
|
921
|
-
.pl-4 {
|
|
922
|
-
padding-left: calc(var(--spacing) * 4);
|
|
923
|
-
}
|
|
924
|
-
.pl-8 {
|
|
925
|
-
padding-left: calc(var(--spacing) * 8);
|
|
926
|
-
}
|
|
927
|
-
.text-center {
|
|
928
|
-
text-align: center;
|
|
929
|
-
}
|
|
930
|
-
.text-lg {
|
|
931
|
-
font-size: var(--text-lg);
|
|
932
|
-
line-height: var(--tw-leading, var(--text-lg--line-height));
|
|
933
|
-
}
|
|
934
|
-
.text-sm {
|
|
935
|
-
font-size: var(--text-sm);
|
|
936
|
-
line-height: var(--tw-leading, var(--text-sm--line-height));
|
|
937
|
-
}
|
|
938
|
-
.text-xs {
|
|
939
|
-
font-size: var(--text-xs);
|
|
940
|
-
line-height: var(--tw-leading, var(--text-xs--line-height));
|
|
941
|
-
}
|
|
942
|
-
.text-\\[10\\.5px\\] {
|
|
943
|
-
font-size: 10.5px;
|
|
944
|
-
}
|
|
945
|
-
.text-\\[11px\\] {
|
|
946
|
-
font-size: 11px;
|
|
947
|
-
}
|
|
948
|
-
.text-\\[13\\.5px\\] {
|
|
949
|
-
font-size: 13.5px;
|
|
950
|
-
}
|
|
951
|
-
.text-\\[13px\\] {
|
|
952
|
-
font-size: 13px;
|
|
953
|
-
}
|
|
954
|
-
.leading-4 {
|
|
955
|
-
--tw-leading: calc(var(--spacing) * 4);
|
|
956
|
-
line-height: calc(var(--spacing) * 4);
|
|
957
|
-
}
|
|
958
|
-
.leading-none {
|
|
959
|
-
--tw-leading: 1;
|
|
960
|
-
line-height: 1;
|
|
961
|
-
}
|
|
962
|
-
.leading-relaxed {
|
|
963
|
-
--tw-leading: var(--leading-relaxed);
|
|
964
|
-
line-height: var(--leading-relaxed);
|
|
965
|
-
}
|
|
966
|
-
.leading-snug {
|
|
967
|
-
--tw-leading: var(--leading-snug);
|
|
968
|
-
line-height: var(--leading-snug);
|
|
969
|
-
}
|
|
970
|
-
.font-medium {
|
|
971
|
-
--tw-font-weight: var(--font-weight-medium);
|
|
972
|
-
font-weight: var(--font-weight-medium);
|
|
973
|
-
}
|
|
974
|
-
.font-semibold {
|
|
975
|
-
--tw-font-weight: var(--font-weight-semibold);
|
|
976
|
-
font-weight: var(--font-weight-semibold);
|
|
977
|
-
}
|
|
978
|
-
.tracking-tight {
|
|
979
|
-
--tw-tracking: var(--tracking-tight);
|
|
980
|
-
letter-spacing: var(--tracking-tight);
|
|
981
|
-
}
|
|
982
|
-
.text-wrap {
|
|
983
|
-
text-wrap: wrap;
|
|
984
|
-
}
|
|
985
|
-
.break-words {
|
|
986
|
-
overflow-wrap: break-word;
|
|
987
|
-
}
|
|
988
|
-
.text-clip {
|
|
989
|
-
text-overflow: clip;
|
|
990
|
-
}
|
|
991
|
-
.text-ellipsis {
|
|
992
|
-
text-overflow: ellipsis;
|
|
993
|
-
}
|
|
994
|
-
.whitespace-nowrap {
|
|
995
|
-
white-space: nowrap;
|
|
996
|
-
}
|
|
997
|
-
.whitespace-pre-wrap {
|
|
998
|
-
white-space: pre-wrap;
|
|
999
|
-
}
|
|
1000
|
-
.text-amber-500 {
|
|
1001
|
-
color: var(--color-amber-500);
|
|
1002
|
-
}
|
|
1003
|
-
.text-amber-600 {
|
|
1004
|
-
color: var(--color-amber-600);
|
|
1005
|
-
}
|
|
1006
|
-
.text-card-foreground {
|
|
1007
|
-
color: var(--dsw-alias-label-primary);
|
|
1008
|
-
}
|
|
1009
|
-
.text-destructive {
|
|
1010
|
-
color: var(--dsw-alias-state-error-primary);
|
|
1011
|
-
}
|
|
1012
|
-
.text-destructive-foreground {
|
|
1013
|
-
color: var(--dsw-alias-label-primary-foreground, #ffffff);
|
|
1014
|
-
}
|
|
1015
|
-
.text-emerald-500 {
|
|
1016
|
-
color: var(--color-emerald-500);
|
|
1017
|
-
}
|
|
1018
|
-
.text-foreground {
|
|
1019
|
-
color: var(--dsw-alias-label-primary);
|
|
1020
|
-
}
|
|
1021
|
-
.text-muted-foreground {
|
|
1022
|
-
color: var(--dsw-alias-label-secondary);
|
|
1023
|
-
}
|
|
1024
|
-
.text-muted-foreground\\/60 {
|
|
1025
|
-
color: var(--dsw-alias-label-secondary);
|
|
1026
|
-
@supports (color: color-mix(in lab, red, red)) {
|
|
1027
|
-
color: color-mix(in oklab, var(--dsw-alias-label-secondary) 60%, transparent);
|
|
1028
|
-
}
|
|
1029
|
-
}
|
|
1030
|
-
.text-muted-foreground\\/70 {
|
|
1031
|
-
color: var(--dsw-alias-label-secondary);
|
|
1032
|
-
@supports (color: color-mix(in lab, red, red)) {
|
|
1033
|
-
color: color-mix(in oklab, var(--dsw-alias-label-secondary) 70%, transparent);
|
|
1034
|
-
}
|
|
1035
|
-
}
|
|
1036
|
-
.text-popover-foreground {
|
|
1037
|
-
color: var(--dsw-alias-label-primary);
|
|
1038
|
-
}
|
|
1039
|
-
.text-primary {
|
|
1040
|
-
color: var(--dsw-alias-brand-primary);
|
|
1041
|
-
}
|
|
1042
|
-
.text-primary-foreground {
|
|
1043
|
-
color: var(--dsw-alias-label-primary-foreground, #ffffff);
|
|
1044
|
-
}
|
|
1045
|
-
.text-secondary-foreground {
|
|
1046
|
-
color: var(--dsw-alias-label-primary);
|
|
1047
|
-
}
|
|
1048
|
-
.text-sky-500 {
|
|
1049
|
-
color: var(--color-sky-500);
|
|
1050
|
-
}
|
|
1051
|
-
.capitalize {
|
|
1052
|
-
text-transform: capitalize;
|
|
1053
|
-
}
|
|
1054
|
-
.lowercase {
|
|
1055
|
-
text-transform: lowercase;
|
|
1056
|
-
}
|
|
1057
|
-
.normal-case {
|
|
1058
|
-
text-transform: none;
|
|
1059
|
-
}
|
|
1060
|
-
.uppercase {
|
|
1061
|
-
text-transform: uppercase;
|
|
1062
|
-
}
|
|
1063
|
-
.italic {
|
|
1064
|
-
font-style: italic;
|
|
1065
|
-
}
|
|
1066
|
-
.not-italic {
|
|
1067
|
-
font-style: normal;
|
|
1068
|
-
}
|
|
1069
|
-
.diagonal-fractions {
|
|
1070
|
-
--tw-numeric-fraction: diagonal-fractions;
|
|
1071
|
-
font-variant-numeric: var(--tw-ordinal,) var(--tw-slashed-zero,) var(--tw-numeric-figure,) var(--tw-numeric-spacing,) var(--tw-numeric-fraction,);
|
|
1072
|
-
}
|
|
1073
|
-
.lining-nums {
|
|
1074
|
-
--tw-numeric-figure: lining-nums;
|
|
1075
|
-
font-variant-numeric: var(--tw-ordinal,) var(--tw-slashed-zero,) var(--tw-numeric-figure,) var(--tw-numeric-spacing,) var(--tw-numeric-fraction,);
|
|
1076
|
-
}
|
|
1077
|
-
.oldstyle-nums {
|
|
1078
|
-
--tw-numeric-figure: oldstyle-nums;
|
|
1079
|
-
font-variant-numeric: var(--tw-ordinal,) var(--tw-slashed-zero,) var(--tw-numeric-figure,) var(--tw-numeric-spacing,) var(--tw-numeric-fraction,);
|
|
1080
|
-
}
|
|
1081
|
-
.ordinal {
|
|
1082
|
-
--tw-ordinal: ordinal;
|
|
1083
|
-
font-variant-numeric: var(--tw-ordinal,) var(--tw-slashed-zero,) var(--tw-numeric-figure,) var(--tw-numeric-spacing,) var(--tw-numeric-fraction,);
|
|
1084
|
-
}
|
|
1085
|
-
.proportional-nums {
|
|
1086
|
-
--tw-numeric-spacing: proportional-nums;
|
|
1087
|
-
font-variant-numeric: var(--tw-ordinal,) var(--tw-slashed-zero,) var(--tw-numeric-figure,) var(--tw-numeric-spacing,) var(--tw-numeric-fraction,);
|
|
1088
|
-
}
|
|
1089
|
-
.slashed-zero {
|
|
1090
|
-
--tw-slashed-zero: slashed-zero;
|
|
1091
|
-
font-variant-numeric: var(--tw-ordinal,) var(--tw-slashed-zero,) var(--tw-numeric-figure,) var(--tw-numeric-spacing,) var(--tw-numeric-fraction,);
|
|
1092
|
-
}
|
|
1093
|
-
.stacked-fractions {
|
|
1094
|
-
--tw-numeric-fraction: stacked-fractions;
|
|
1095
|
-
font-variant-numeric: var(--tw-ordinal,) var(--tw-slashed-zero,) var(--tw-numeric-figure,) var(--tw-numeric-spacing,) var(--tw-numeric-fraction,);
|
|
1096
|
-
}
|
|
1097
|
-
.tabular-nums {
|
|
1098
|
-
--tw-numeric-spacing: tabular-nums;
|
|
1099
|
-
font-variant-numeric: var(--tw-ordinal,) var(--tw-slashed-zero,) var(--tw-numeric-figure,) var(--tw-numeric-spacing,) var(--tw-numeric-fraction,);
|
|
1100
|
-
}
|
|
1101
|
-
.normal-nums {
|
|
1102
|
-
font-variant-numeric: normal;
|
|
1103
|
-
}
|
|
1104
|
-
.line-through {
|
|
1105
|
-
text-decoration-line: line-through;
|
|
1106
|
-
}
|
|
1107
|
-
.no-underline {
|
|
1108
|
-
text-decoration-line: none;
|
|
1109
|
-
}
|
|
1110
|
-
.overline {
|
|
1111
|
-
text-decoration-line: overline;
|
|
1112
|
-
}
|
|
1113
|
-
.underline {
|
|
1114
|
-
text-decoration-line: underline;
|
|
1115
|
-
}
|
|
1116
|
-
.underline-offset-4 {
|
|
1117
|
-
text-underline-offset: 4px;
|
|
1118
|
-
}
|
|
1119
|
-
.antialiased {
|
|
1120
|
-
-webkit-font-smoothing: antialiased;
|
|
1121
|
-
-moz-osx-font-smoothing: grayscale;
|
|
1122
|
-
}
|
|
1123
|
-
.subpixel-antialiased {
|
|
1124
|
-
-webkit-font-smoothing: auto;
|
|
1125
|
-
-moz-osx-font-smoothing: auto;
|
|
1126
|
-
}
|
|
1127
|
-
.opacity-40 {
|
|
1128
|
-
opacity: 40%;
|
|
1129
|
-
}
|
|
1130
|
-
.opacity-50 {
|
|
1131
|
-
opacity: 50%;
|
|
1132
|
-
}
|
|
1133
|
-
.opacity-70 {
|
|
1134
|
-
opacity: 70%;
|
|
1135
|
-
}
|
|
1136
|
-
.shadow {
|
|
1137
|
-
--tw-shadow: 0 1px 3px 0 var(--tw-shadow-color, rgb(0 0 0 / 0.1)), 0 1px 2px -1px var(--tw-shadow-color, rgb(0 0 0 / 0.1));
|
|
1138
|
-
box-shadow: var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow);
|
|
1139
|
-
}
|
|
1140
|
-
.shadow-card {
|
|
1141
|
-
--tw-shadow: var(--dsw-shadow-lv2);
|
|
1142
|
-
box-shadow: var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow);
|
|
1143
|
-
}
|
|
1144
|
-
.shadow-column {
|
|
1145
|
-
--tw-shadow: 0 1px 2px var(--tw-shadow-color, rgb(0 0 0 / 0.06)), 0 4px 12px var(--tw-shadow-color, rgb(0 0 0 / 0.05));
|
|
1146
|
-
box-shadow: var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow);
|
|
1147
|
-
}
|
|
1148
|
-
.shadow-float {
|
|
1149
|
-
--tw-shadow: var(--dsw-shadow-lv3);
|
|
1150
|
-
box-shadow: var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow);
|
|
1151
|
-
}
|
|
1152
|
-
.shadow-lg {
|
|
1153
|
-
--tw-shadow: 0 10px 15px -3px var(--tw-shadow-color, rgb(0 0 0 / 0.1)), 0 4px 6px -4px var(--tw-shadow-color, rgb(0 0 0 / 0.1));
|
|
1154
|
-
box-shadow: var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow);
|
|
1155
|
-
}
|
|
1156
|
-
.shadow-md {
|
|
1157
|
-
--tw-shadow: 0 4px 6px -1px var(--tw-shadow-color, rgb(0 0 0 / 0.1)), 0 2px 4px -2px var(--tw-shadow-color, rgb(0 0 0 / 0.1));
|
|
1158
|
-
box-shadow: var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow);
|
|
1159
|
-
}
|
|
1160
|
-
.shadow-sm {
|
|
1161
|
-
--tw-shadow: 0 1px 3px 0 var(--tw-shadow-color, rgb(0 0 0 / 0.1)), 0 1px 2px -1px var(--tw-shadow-color, rgb(0 0 0 / 0.1));
|
|
1162
|
-
box-shadow: var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow);
|
|
1163
|
-
}
|
|
1164
|
-
.ring-offset-background {
|
|
1165
|
-
--tw-ring-offset-color: var(--dsw-alias-bg-base);
|
|
1166
|
-
}
|
|
1167
|
-
.outline {
|
|
1168
|
-
outline-style: var(--tw-outline-style);
|
|
1169
|
-
outline-width: 1px;
|
|
1170
|
-
}
|
|
1171
|
-
.blur {
|
|
1172
|
-
--tw-blur: blur(8px);
|
|
1173
|
-
filter: var(--tw-blur,) var(--tw-brightness,) var(--tw-contrast,) var(--tw-grayscale,) var(--tw-hue-rotate,) var(--tw-invert,) var(--tw-saturate,) var(--tw-sepia,) var(--tw-drop-shadow,);
|
|
1174
|
-
}
|
|
1175
|
-
.drop-shadow {
|
|
1176
|
-
--tw-drop-shadow-size: drop-shadow(0 1px 2px var(--tw-drop-shadow-color, rgb(0 0 0 / 0.1))) drop-shadow(0 1px 1px var(--tw-drop-shadow-color, rgb(0 0 0 / 0.06)));
|
|
1177
|
-
--tw-drop-shadow: drop-shadow(0 1px 2px rgb(0 0 0 / 0.1)) drop-shadow( 0 1px 1px rgb(0 0 0 / 0.06));
|
|
1178
|
-
filter: var(--tw-blur,) var(--tw-brightness,) var(--tw-contrast,) var(--tw-grayscale,) var(--tw-hue-rotate,) var(--tw-invert,) var(--tw-saturate,) var(--tw-sepia,) var(--tw-drop-shadow,);
|
|
1179
|
-
}
|
|
1180
|
-
.grayscale {
|
|
1181
|
-
--tw-grayscale: grayscale(100%);
|
|
1182
|
-
filter: var(--tw-blur,) var(--tw-brightness,) var(--tw-contrast,) var(--tw-grayscale,) var(--tw-hue-rotate,) var(--tw-invert,) var(--tw-saturate,) var(--tw-sepia,) var(--tw-drop-shadow,);
|
|
1183
|
-
}
|
|
1184
|
-
.invert {
|
|
1185
|
-
--tw-invert: invert(100%);
|
|
1186
|
-
filter: var(--tw-blur,) var(--tw-brightness,) var(--tw-contrast,) var(--tw-grayscale,) var(--tw-hue-rotate,) var(--tw-invert,) var(--tw-saturate,) var(--tw-sepia,) var(--tw-drop-shadow,);
|
|
1187
|
-
}
|
|
1188
|
-
.sepia {
|
|
1189
|
-
--tw-sepia: sepia(100%);
|
|
1190
|
-
filter: var(--tw-blur,) var(--tw-brightness,) var(--tw-contrast,) var(--tw-grayscale,) var(--tw-hue-rotate,) var(--tw-invert,) var(--tw-saturate,) var(--tw-sepia,) var(--tw-drop-shadow,);
|
|
1191
|
-
}
|
|
1192
|
-
.filter {
|
|
1193
|
-
filter: var(--tw-blur,) var(--tw-brightness,) var(--tw-contrast,) var(--tw-grayscale,) var(--tw-hue-rotate,) var(--tw-invert,) var(--tw-saturate,) var(--tw-sepia,) var(--tw-drop-shadow,);
|
|
1194
|
-
}
|
|
1195
|
-
.backdrop-blur {
|
|
1196
|
-
--tw-backdrop-blur: blur(8px);
|
|
1197
|
-
-webkit-backdrop-filter: var(--tw-backdrop-blur,) var(--tw-backdrop-brightness,) var(--tw-backdrop-contrast,) var(--tw-backdrop-grayscale,) var(--tw-backdrop-hue-rotate,) var(--tw-backdrop-invert,) var(--tw-backdrop-opacity,) var(--tw-backdrop-saturate,) var(--tw-backdrop-sepia,);
|
|
1198
|
-
backdrop-filter: var(--tw-backdrop-blur,) var(--tw-backdrop-brightness,) var(--tw-backdrop-contrast,) var(--tw-backdrop-grayscale,) var(--tw-backdrop-hue-rotate,) var(--tw-backdrop-invert,) var(--tw-backdrop-opacity,) var(--tw-backdrop-saturate,) var(--tw-backdrop-sepia,);
|
|
1199
|
-
}
|
|
1200
|
-
.backdrop-grayscale {
|
|
1201
|
-
--tw-backdrop-grayscale: grayscale(100%);
|
|
1202
|
-
-webkit-backdrop-filter: var(--tw-backdrop-blur,) var(--tw-backdrop-brightness,) var(--tw-backdrop-contrast,) var(--tw-backdrop-grayscale,) var(--tw-backdrop-hue-rotate,) var(--tw-backdrop-invert,) var(--tw-backdrop-opacity,) var(--tw-backdrop-saturate,) var(--tw-backdrop-sepia,);
|
|
1203
|
-
backdrop-filter: var(--tw-backdrop-blur,) var(--tw-backdrop-brightness,) var(--tw-backdrop-contrast,) var(--tw-backdrop-grayscale,) var(--tw-backdrop-hue-rotate,) var(--tw-backdrop-invert,) var(--tw-backdrop-opacity,) var(--tw-backdrop-saturate,) var(--tw-backdrop-sepia,);
|
|
1204
|
-
}
|
|
1205
|
-
.backdrop-invert {
|
|
1206
|
-
--tw-backdrop-invert: invert(100%);
|
|
1207
|
-
-webkit-backdrop-filter: var(--tw-backdrop-blur,) var(--tw-backdrop-brightness,) var(--tw-backdrop-contrast,) var(--tw-backdrop-grayscale,) var(--tw-backdrop-hue-rotate,) var(--tw-backdrop-invert,) var(--tw-backdrop-opacity,) var(--tw-backdrop-saturate,) var(--tw-backdrop-sepia,);
|
|
1208
|
-
backdrop-filter: var(--tw-backdrop-blur,) var(--tw-backdrop-brightness,) var(--tw-backdrop-contrast,) var(--tw-backdrop-grayscale,) var(--tw-backdrop-hue-rotate,) var(--tw-backdrop-invert,) var(--tw-backdrop-opacity,) var(--tw-backdrop-saturate,) var(--tw-backdrop-sepia,);
|
|
1209
|
-
}
|
|
1210
|
-
.backdrop-sepia {
|
|
1211
|
-
--tw-backdrop-sepia: sepia(100%);
|
|
1212
|
-
-webkit-backdrop-filter: var(--tw-backdrop-blur,) var(--tw-backdrop-brightness,) var(--tw-backdrop-contrast,) var(--tw-backdrop-grayscale,) var(--tw-backdrop-hue-rotate,) var(--tw-backdrop-invert,) var(--tw-backdrop-opacity,) var(--tw-backdrop-saturate,) var(--tw-backdrop-sepia,);
|
|
1213
|
-
backdrop-filter: var(--tw-backdrop-blur,) var(--tw-backdrop-brightness,) var(--tw-backdrop-contrast,) var(--tw-backdrop-grayscale,) var(--tw-backdrop-hue-rotate,) var(--tw-backdrop-invert,) var(--tw-backdrop-opacity,) var(--tw-backdrop-saturate,) var(--tw-backdrop-sepia,);
|
|
1214
|
-
}
|
|
1215
|
-
.backdrop-filter {
|
|
1216
|
-
-webkit-backdrop-filter: var(--tw-backdrop-blur,) var(--tw-backdrop-brightness,) var(--tw-backdrop-contrast,) var(--tw-backdrop-grayscale,) var(--tw-backdrop-hue-rotate,) var(--tw-backdrop-invert,) var(--tw-backdrop-opacity,) var(--tw-backdrop-saturate,) var(--tw-backdrop-sepia,);
|
|
1217
|
-
backdrop-filter: var(--tw-backdrop-blur,) var(--tw-backdrop-brightness,) var(--tw-backdrop-contrast,) var(--tw-backdrop-grayscale,) var(--tw-backdrop-hue-rotate,) var(--tw-backdrop-invert,) var(--tw-backdrop-opacity,) var(--tw-backdrop-saturate,) var(--tw-backdrop-sepia,);
|
|
1218
|
-
}
|
|
1219
|
-
.transition {
|
|
1220
|
-
transition-property: color, background-color, border-color, outline-color, text-decoration-color, fill, stroke, --tw-gradient-from, --tw-gradient-via, --tw-gradient-to, opacity, box-shadow, transform, translate, scale, rotate, filter, -webkit-backdrop-filter, backdrop-filter, display, content-visibility, overlay, pointer-events;
|
|
1221
|
-
transition-timing-function: var(--tw-ease, var(--default-transition-timing-function));
|
|
1222
|
-
transition-duration: var(--tw-duration, var(--default-transition-duration));
|
|
1223
|
-
}
|
|
1224
|
-
.transition-\\[transform\\,color\\,background-color\\,border-color\\,box-shadow\\] {
|
|
1225
|
-
transition-property: transform,color,background-color,border-color,box-shadow;
|
|
1226
|
-
transition-timing-function: var(--tw-ease, var(--default-transition-timing-function));
|
|
1227
|
-
transition-duration: var(--tw-duration, var(--default-transition-duration));
|
|
1228
|
-
}
|
|
1229
|
-
.transition-colors {
|
|
1230
|
-
transition-property: color, background-color, border-color, outline-color, text-decoration-color, fill, stroke, --tw-gradient-from, --tw-gradient-via, --tw-gradient-to;
|
|
1231
|
-
transition-timing-function: var(--tw-ease, var(--default-transition-timing-function));
|
|
1232
|
-
transition-duration: var(--tw-duration, var(--default-transition-duration));
|
|
1233
|
-
}
|
|
1234
|
-
.transition-opacity {
|
|
1235
|
-
transition-property: opacity;
|
|
1236
|
-
transition-timing-function: var(--tw-ease, var(--default-transition-timing-function));
|
|
1237
|
-
transition-duration: var(--tw-duration, var(--default-transition-duration));
|
|
1238
|
-
}
|
|
1239
|
-
.transition-shadow {
|
|
1240
|
-
transition-property: box-shadow;
|
|
1241
|
-
transition-timing-function: var(--tw-ease, var(--default-transition-timing-function));
|
|
1242
|
-
transition-duration: var(--tw-duration, var(--default-transition-duration));
|
|
1243
|
-
}
|
|
1244
|
-
.duration-150 {
|
|
1245
|
-
--tw-duration: 150ms;
|
|
1246
|
-
transition-duration: 150ms;
|
|
1247
|
-
}
|
|
1248
|
-
.duration-200 {
|
|
1249
|
-
--tw-duration: 200ms;
|
|
1250
|
-
transition-duration: 200ms;
|
|
1251
|
-
}
|
|
1252
|
-
.animate-in {
|
|
1253
|
-
animation-name: enter;
|
|
1254
|
-
animation-duration: 150ms;
|
|
1255
|
-
--tw-enter-opacity: initial;
|
|
1256
|
-
--tw-enter-scale: initial;
|
|
1257
|
-
--tw-enter-rotate: initial;
|
|
1258
|
-
--tw-enter-translate-x: initial;
|
|
1259
|
-
--tw-enter-translate-y: initial;
|
|
1260
|
-
}
|
|
1261
|
-
.outline-none {
|
|
1262
|
-
--tw-outline-style: none;
|
|
1263
|
-
outline-style: none;
|
|
1264
|
-
}
|
|
1265
|
-
.select-none {
|
|
1266
|
-
-webkit-user-select: none;
|
|
1267
|
-
user-select: none;
|
|
1268
|
-
}
|
|
1269
|
-
:where(.divide-x-reverse > :not(:last-child)) {
|
|
1270
|
-
--tw-divide-x-reverse: 1;
|
|
1271
|
-
}
|
|
1272
|
-
.duration-150 {
|
|
1273
|
-
animation-duration: 150ms;
|
|
1274
|
-
}
|
|
1275
|
-
.duration-200 {
|
|
1276
|
-
animation-duration: 200ms;
|
|
1277
|
-
}
|
|
1278
|
-
.fade-in-0 {
|
|
1279
|
-
--tw-enter-opacity: 0;
|
|
1280
|
-
}
|
|
1281
|
-
.paused {
|
|
1282
|
-
animation-play-state: paused;
|
|
1283
|
-
}
|
|
1284
|
-
.ring-inset {
|
|
1285
|
-
--tw-ring-inset: inset;
|
|
1286
|
-
}
|
|
1287
|
-
.zoom-in {
|
|
1288
|
-
--tw-enter-scale: 0;
|
|
1289
|
-
}
|
|
1290
|
-
.zoom-in-95 {
|
|
1291
|
-
--tw-enter-scale: .95;
|
|
1292
|
-
}
|
|
1293
|
-
.zoom-out {
|
|
1294
|
-
--tw-exit-scale: 0;
|
|
1295
|
-
}
|
|
1296
|
-
@media (hover: hover) {
|
|
1297
|
-
.group-hover\\:shadow-float:is(:where(.group):hover *) {
|
|
1298
|
-
--tw-shadow: var(--dsw-shadow-lv3);
|
|
1299
|
-
box-shadow: var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow);
|
|
1300
|
-
}
|
|
1301
|
-
}
|
|
1302
|
-
.peer-disabled\\:cursor-not-allowed:is(:where(.peer):disabled ~ *) {
|
|
1303
|
-
cursor: not-allowed;
|
|
1304
|
-
}
|
|
1305
|
-
.peer-disabled\\:opacity-70:is(:where(.peer):disabled ~ *) {
|
|
1306
|
-
opacity: 70%;
|
|
1307
|
-
}
|
|
1308
|
-
.file\\:border-0::file-selector-button {
|
|
1309
|
-
border-style: var(--tw-border-style);
|
|
1310
|
-
border-width: 0px;
|
|
1311
|
-
}
|
|
1312
|
-
.file\\:bg-transparent::file-selector-button {
|
|
1313
|
-
background-color: transparent;
|
|
1314
|
-
}
|
|
1315
|
-
.file\\:text-sm::file-selector-button {
|
|
1316
|
-
font-size: var(--text-sm);
|
|
1317
|
-
line-height: var(--tw-leading, var(--text-sm--line-height));
|
|
1318
|
-
}
|
|
1319
|
-
.file\\:font-medium::file-selector-button {
|
|
1320
|
-
--tw-font-weight: var(--font-weight-medium);
|
|
1321
|
-
font-weight: var(--font-weight-medium);
|
|
1322
|
-
}
|
|
1323
|
-
.file\\:text-foreground::file-selector-button {
|
|
1324
|
-
color: var(--dsw-alias-label-primary);
|
|
1325
|
-
}
|
|
1326
|
-
.placeholder\\:text-muted-foreground::placeholder {
|
|
1327
|
-
color: var(--dsw-alias-label-secondary);
|
|
1328
|
-
}
|
|
1329
|
-
@media (hover: hover) {
|
|
1330
|
-
.hover\\:bg-accent:hover {
|
|
1331
|
-
background-color: var(--dsw-alias-bg-layer-2);
|
|
1332
|
-
}
|
|
1333
|
-
.hover\\:bg-destructive\\/90:hover {
|
|
1334
|
-
background-color: var(--dsw-alias-state-error-primary);
|
|
1335
|
-
}
|
|
1336
|
-
@supports (color: color-mix(in lab, red, red)) {
|
|
1337
|
-
.hover\\:bg-destructive\\/90:hover {
|
|
1338
|
-
background-color: color-mix(in oklab, var(--dsw-alias-state-error-primary) 90%, transparent);
|
|
1339
|
-
}
|
|
1340
|
-
}
|
|
1341
|
-
.hover\\:bg-primary\\/90:hover {
|
|
1342
|
-
background-color: var(--dsw-alias-brand-primary);
|
|
1343
|
-
}
|
|
1344
|
-
@supports (color: color-mix(in lab, red, red)) {
|
|
1345
|
-
.hover\\:bg-primary\\/90:hover {
|
|
1346
|
-
background-color: color-mix(in oklab, var(--dsw-alias-brand-primary) 90%, transparent);
|
|
1347
|
-
}
|
|
1348
|
-
}
|
|
1349
|
-
.hover\\:bg-secondary\\/80:hover {
|
|
1350
|
-
background-color: var(--dsw-alias-bg-layer-2);
|
|
1351
|
-
}
|
|
1352
|
-
@supports (color: color-mix(in lab, red, red)) {
|
|
1353
|
-
.hover\\:bg-secondary\\/80:hover {
|
|
1354
|
-
background-color: color-mix(in oklab, var(--dsw-alias-bg-layer-2) 80%, transparent);
|
|
1355
|
-
}
|
|
1356
|
-
}
|
|
1357
|
-
.hover\\:text-accent-foreground:hover {
|
|
1358
|
-
color: var(--dsw-alias-label-primary);
|
|
1359
|
-
}
|
|
1360
|
-
.hover\\:text-amber-500:hover {
|
|
1361
|
-
color: var(--color-amber-500);
|
|
1362
|
-
}
|
|
1363
|
-
.hover\\:text-foreground:hover {
|
|
1364
|
-
color: var(--dsw-alias-label-primary);
|
|
1365
|
-
}
|
|
1366
|
-
.hover\\:underline:hover {
|
|
1367
|
-
text-decoration-line: underline;
|
|
1368
|
-
}
|
|
1369
|
-
.hover\\:opacity-100:hover {
|
|
1370
|
-
opacity: 100%;
|
|
1371
|
-
}
|
|
1372
|
-
}
|
|
1373
|
-
.focus\\:bg-accent:focus {
|
|
1374
|
-
background-color: var(--dsw-alias-bg-layer-2);
|
|
1375
|
-
}
|
|
1376
|
-
.focus\\:text-accent-foreground:focus {
|
|
1377
|
-
color: var(--dsw-alias-label-primary);
|
|
1378
|
-
}
|
|
1379
|
-
.focus\\:ring-1:focus {
|
|
1380
|
-
--tw-ring-shadow: var(--tw-ring-inset,) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color, currentcolor);
|
|
1381
|
-
box-shadow: var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow);
|
|
1382
|
-
}
|
|
1383
|
-
.focus\\:ring-2:focus {
|
|
1384
|
-
--tw-ring-shadow: var(--tw-ring-inset,) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color, currentcolor);
|
|
1385
|
-
box-shadow: var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow);
|
|
1386
|
-
}
|
|
1387
|
-
.focus\\:ring-ring:focus {
|
|
1388
|
-
--tw-ring-color: var(--dsw-alias-brand-primary);
|
|
1389
|
-
}
|
|
1390
|
-
.focus\\:ring-offset-2:focus {
|
|
1391
|
-
--tw-ring-offset-width: 2px;
|
|
1392
|
-
--tw-ring-offset-shadow: var(--tw-ring-inset,) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);
|
|
1393
|
-
}
|
|
1394
|
-
.focus\\:outline-none:focus {
|
|
1395
|
-
--tw-outline-style: none;
|
|
1396
|
-
outline-style: none;
|
|
1397
|
-
}
|
|
1398
|
-
.focus-visible\\:ring-1:focus-visible {
|
|
1399
|
-
--tw-ring-shadow: var(--tw-ring-inset,) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color, currentcolor);
|
|
1400
|
-
box-shadow: var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow);
|
|
1401
|
-
}
|
|
1402
|
-
.focus-visible\\:ring-ring:focus-visible {
|
|
1403
|
-
--tw-ring-color: var(--dsw-alias-brand-primary);
|
|
1404
|
-
}
|
|
1405
|
-
.focus-visible\\:outline-none:focus-visible {
|
|
1406
|
-
--tw-outline-style: none;
|
|
1407
|
-
outline-style: none;
|
|
1408
|
-
}
|
|
1409
|
-
.active\\:scale-\\[0\\.97\\]:active {
|
|
1410
|
-
scale: 0.97;
|
|
1411
|
-
}
|
|
1412
|
-
.active\\:cursor-grabbing:active {
|
|
1413
|
-
cursor: grabbing;
|
|
1414
|
-
}
|
|
1415
|
-
.disabled\\:pointer-events-none:disabled {
|
|
1416
|
-
pointer-events: none;
|
|
1417
|
-
}
|
|
1418
|
-
.disabled\\:cursor-not-allowed:disabled {
|
|
1419
|
-
cursor: not-allowed;
|
|
1420
|
-
}
|
|
1421
|
-
.disabled\\:opacity-50:disabled {
|
|
1422
|
-
opacity: 50%;
|
|
1423
|
-
}
|
|
1424
|
-
.data-\\[disabled\\]\\:pointer-events-none[data-disabled] {
|
|
1425
|
-
pointer-events: none;
|
|
1426
|
-
}
|
|
1427
|
-
.data-\\[disabled\\]\\:opacity-50[data-disabled] {
|
|
1428
|
-
opacity: 50%;
|
|
1429
|
-
}
|
|
1430
|
-
.data-\\[side\\=bottom\\]\\:translate-y-1[data-side="bottom"] {
|
|
1431
|
-
--tw-translate-y: var(--spacing);
|
|
1432
|
-
translate: var(--tw-translate-x) var(--tw-translate-y);
|
|
1433
|
-
}
|
|
1434
|
-
.data-\\[side\\=bottom\\]\\:slide-in-from-top-2[data-side="bottom"] {
|
|
1435
|
-
--tw-enter-translate-y: -0.5rem;
|
|
1436
|
-
}
|
|
1437
|
-
.data-\\[side\\=left\\]\\:-translate-x-1[data-side="left"] {
|
|
1438
|
-
--tw-translate-x: calc(var(--spacing) * -1);
|
|
1439
|
-
translate: var(--tw-translate-x) var(--tw-translate-y);
|
|
1440
|
-
}
|
|
1441
|
-
.data-\\[side\\=left\\]\\:slide-in-from-right-2[data-side="left"] {
|
|
1442
|
-
--tw-enter-translate-x: 0.5rem;
|
|
1443
|
-
}
|
|
1444
|
-
.data-\\[side\\=right\\]\\:translate-x-1[data-side="right"] {
|
|
1445
|
-
--tw-translate-x: var(--spacing);
|
|
1446
|
-
translate: var(--tw-translate-x) var(--tw-translate-y);
|
|
1447
|
-
}
|
|
1448
|
-
.data-\\[side\\=right\\]\\:slide-in-from-left-2[data-side="right"] {
|
|
1449
|
-
--tw-enter-translate-x: -0.5rem;
|
|
1450
|
-
}
|
|
1451
|
-
.data-\\[side\\=top\\]\\:-translate-y-1[data-side="top"] {
|
|
1452
|
-
--tw-translate-y: calc(var(--spacing) * -1);
|
|
1453
|
-
translate: var(--tw-translate-x) var(--tw-translate-y);
|
|
1454
|
-
}
|
|
1455
|
-
.data-\\[side\\=top\\]\\:slide-in-from-bottom-2[data-side="top"] {
|
|
1456
|
-
--tw-enter-translate-y: 0.5rem;
|
|
1457
|
-
}
|
|
1458
|
-
.data-\\[state\\=closed\\]\\:animate-out[data-state="closed"] {
|
|
1459
|
-
animation-name: exit;
|
|
1460
|
-
animation-duration: 150ms;
|
|
1461
|
-
--tw-exit-opacity: initial;
|
|
1462
|
-
--tw-exit-scale: initial;
|
|
1463
|
-
--tw-exit-rotate: initial;
|
|
1464
|
-
--tw-exit-translate-x: initial;
|
|
1465
|
-
--tw-exit-translate-y: initial;
|
|
1466
|
-
}
|
|
1467
|
-
.data-\\[state\\=closed\\]\\:fade-out-0[data-state="closed"] {
|
|
1468
|
-
--tw-exit-opacity: 0;
|
|
1469
|
-
}
|
|
1470
|
-
.data-\\[state\\=closed\\]\\:slide-out-to-left-1\\/2[data-state="closed"] {
|
|
1471
|
-
--tw-exit-translate-x: -50%;
|
|
1472
|
-
}
|
|
1473
|
-
.data-\\[state\\=closed\\]\\:slide-out-to-top-\\[48\\%\\][data-state="closed"] {
|
|
1474
|
-
--tw-exit-translate-y: -48%;
|
|
1475
|
-
}
|
|
1476
|
-
.data-\\[state\\=closed\\]\\:zoom-out-95[data-state="closed"] {
|
|
1477
|
-
--tw-exit-scale: .95;
|
|
1478
|
-
}
|
|
1479
|
-
.data-\\[state\\=open\\]\\:bg-accent[data-state="open"] {
|
|
1480
|
-
background-color: var(--dsw-alias-bg-layer-2);
|
|
1481
|
-
}
|
|
1482
|
-
.data-\\[state\\=open\\]\\:text-muted-foreground[data-state="open"] {
|
|
1483
|
-
color: var(--dsw-alias-label-secondary);
|
|
1484
|
-
}
|
|
1485
|
-
.data-\\[state\\=open\\]\\:animate-in[data-state="open"] {
|
|
1486
|
-
animation-name: enter;
|
|
1487
|
-
animation-duration: 150ms;
|
|
1488
|
-
--tw-enter-opacity: initial;
|
|
1489
|
-
--tw-enter-scale: initial;
|
|
1490
|
-
--tw-enter-rotate: initial;
|
|
1491
|
-
--tw-enter-translate-x: initial;
|
|
1492
|
-
--tw-enter-translate-y: initial;
|
|
1493
|
-
}
|
|
1494
|
-
.data-\\[state\\=open\\]\\:fade-in-0[data-state="open"] {
|
|
1495
|
-
--tw-enter-opacity: 0;
|
|
1496
|
-
}
|
|
1497
|
-
.data-\\[state\\=open\\]\\:slide-in-from-left-1\\/2[data-state="open"] {
|
|
1498
|
-
--tw-enter-translate-x: -50%;
|
|
1499
|
-
}
|
|
1500
|
-
.data-\\[state\\=open\\]\\:slide-in-from-top-\\[48\\%\\][data-state="open"] {
|
|
1501
|
-
--tw-enter-translate-y: -48%;
|
|
1502
|
-
}
|
|
1503
|
-
.data-\\[state\\=open\\]\\:zoom-in-95[data-state="open"] {
|
|
1504
|
-
--tw-enter-scale: .95;
|
|
1505
|
-
}
|
|
1506
|
-
@media (width >= 40rem) {
|
|
1507
|
-
.sm\\:max-w-md {
|
|
1508
|
-
max-width: var(--container-md);
|
|
1509
|
-
}
|
|
1510
|
-
.sm\\:max-w-xl {
|
|
1511
|
-
max-width: var(--container-xl);
|
|
1512
|
-
}
|
|
1513
|
-
.sm\\:flex-row {
|
|
1514
|
-
flex-direction: row;
|
|
1515
|
-
}
|
|
1516
|
-
.sm\\:items-center {
|
|
1517
|
-
align-items: center;
|
|
1518
|
-
}
|
|
1519
|
-
.sm\\:justify-end {
|
|
1520
|
-
justify-content: flex-end;
|
|
1521
|
-
}
|
|
1522
|
-
:where(.sm\\:space-x-2 > :not(:last-child)) {
|
|
1523
|
-
--tw-space-x-reverse: 0;
|
|
1524
|
-
margin-inline-start: calc(calc(var(--spacing) * 2) * var(--tw-space-x-reverse));
|
|
1525
|
-
margin-inline-end: calc(calc(var(--spacing) * 2) * calc(1 - var(--tw-space-x-reverse)));
|
|
1526
|
-
}
|
|
1527
|
-
.sm\\:rounded-lg {
|
|
1528
|
-
border-radius: 0.75rem;
|
|
1529
|
-
}
|
|
1530
|
-
.sm\\:text-left {
|
|
1531
|
-
text-align: left;
|
|
1532
|
-
}
|
|
1533
|
-
}
|
|
1534
|
-
.\\[\\&_svg\\]\\:pointer-events-none svg {
|
|
1535
|
-
pointer-events: none;
|
|
1536
|
-
}
|
|
1537
|
-
.\\[\\&_svg\\]\\:size-4 svg {
|
|
1538
|
-
width: calc(var(--spacing) * 4);
|
|
1539
|
-
height: calc(var(--spacing) * 4);
|
|
1540
|
-
}
|
|
1541
|
-
.\\[\\&_svg\\]\\:shrink-0 svg {
|
|
1542
|
-
flex-shrink: 0;
|
|
1543
|
-
}
|
|
1544
|
-
.\\[\\&\\>span\\]\\:line-clamp-1 > span {
|
|
1545
|
-
overflow: hidden;
|
|
1546
|
-
display: -webkit-box;
|
|
1547
|
-
-webkit-box-orient: vertical;
|
|
1548
|
-
-webkit-line-clamp: 1;
|
|
1549
|
-
}
|
|
21
|
+
|
|
22
|
+
.kanban-root *,
|
|
23
|
+
.kanban-portal * {
|
|
24
|
+
box-sizing: border-box;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
.kanban-root button,
|
|
28
|
+
.kanban-root input,
|
|
29
|
+
.kanban-root textarea,
|
|
30
|
+
.kanban-portal button,
|
|
31
|
+
.kanban-portal input,
|
|
32
|
+
.kanban-portal textarea {
|
|
33
|
+
font: inherit;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
.kanban-root button,
|
|
37
|
+
.kanban-portal button {
|
|
38
|
+
color: inherit;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
.kanban-root svg,
|
|
42
|
+
.kanban-portal svg {
|
|
43
|
+
display: block;
|
|
44
|
+
flex-shrink: 0;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
.kanban-root p,
|
|
48
|
+
.kanban-root h3,
|
|
49
|
+
.kanban-root ol,
|
|
50
|
+
.kanban-portal p,
|
|
51
|
+
.kanban-portal h3,
|
|
52
|
+
.kanban-portal ol {
|
|
53
|
+
margin: 0;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
.kanban-root :focus-visible,
|
|
57
|
+
.kanban-portal :focus-visible {
|
|
58
|
+
outline: 2px solid var(--dsw-alias-brand-primary);
|
|
59
|
+
outline-offset: 2px;
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
/* Main board */
|
|
63
|
+
.kanban-loading {
|
|
64
|
+
display: flex;
|
|
65
|
+
height: 100%;
|
|
66
|
+
min-height: 420px;
|
|
67
|
+
align-items: center;
|
|
68
|
+
justify-content: center;
|
|
69
|
+
padding: 20px;
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
.kanban-view {
|
|
73
|
+
display: flex;
|
|
74
|
+
height: 100%;
|
|
75
|
+
flex-direction: column;
|
|
76
|
+
gap: 12px;
|
|
77
|
+
padding: 20px;
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
.kanban-error {
|
|
81
|
+
color: var(--dsw-alias-state-error-primary);
|
|
82
|
+
font: var(--dsw-font-s-14);
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
.kanban-muted-text {
|
|
86
|
+
color: var(--dsw-alias-label-secondary);
|
|
87
|
+
font: var(--dsw-font-s-14);
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
.kanban-warning {
|
|
91
|
+
display: flex;
|
|
92
|
+
align-items: flex-start;
|
|
93
|
+
gap: 8px;
|
|
94
|
+
padding: 8px 12px;
|
|
95
|
+
border: 1px solid var(--dsw-alias-state-warn-primary);
|
|
96
|
+
border-radius: 12px;
|
|
97
|
+
background: var(--dsw-alias-bg-layer-2);
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
.kanban-warning-body {
|
|
101
|
+
min-width: 0;
|
|
102
|
+
flex: 1;
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
.kanban-warning-title {
|
|
106
|
+
color: var(--dsw-alias-state-warn-label);
|
|
107
|
+
font: var(--dsw-font-xxs-strong-12);
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
.kanban-warning-item {
|
|
111
|
+
margin-top: 2px;
|
|
112
|
+
overflow-wrap: anywhere;
|
|
113
|
+
color: var(--dsw-alias-state-warn-label);
|
|
114
|
+
font: var(--dsw-font-xxs-12);
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
.kanban-warning-dismiss {
|
|
118
|
+
flex-shrink: 0;
|
|
119
|
+
height: 24px;
|
|
120
|
+
padding: 0 8px;
|
|
121
|
+
color: var(--dsw-alias-state-warn-label);
|
|
122
|
+
font: var(--dsw-font-xxs-strong-12);
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
.kanban-warning-dismiss:hover {
|
|
126
|
+
color: var(--dsw-alias-state-warn-primary);
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
.kanban-content {
|
|
130
|
+
display: flex;
|
|
131
|
+
min-height: 0;
|
|
132
|
+
flex: 1;
|
|
133
|
+
gap: 12px;
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
.kanban-toolbar {
|
|
137
|
+
display: flex;
|
|
138
|
+
flex-shrink: 0;
|
|
139
|
+
flex-direction: column;
|
|
140
|
+
align-items: center;
|
|
141
|
+
align-self: flex-start;
|
|
142
|
+
gap: 6px;
|
|
143
|
+
padding: 6px;
|
|
144
|
+
border: 1px solid var(--dsw-alias-border-l2);
|
|
145
|
+
border-radius: 16px;
|
|
146
|
+
background: var(--dsw-alias-bg-layer-1);
|
|
147
|
+
box-shadow: var(--dsw-shadow-lv2);
|
|
148
|
+
}
|
|
149
|
+
|
|
150
|
+
.kanban-toolbar-button {
|
|
151
|
+
width: 32px;
|
|
152
|
+
height: 32px;
|
|
153
|
+
padding: 0;
|
|
154
|
+
border: 0;
|
|
155
|
+
border-radius: 8px;
|
|
156
|
+
background: transparent;
|
|
157
|
+
color: var(--dsw-alias-label-secondary);
|
|
158
|
+
box-shadow: none;
|
|
159
|
+
}
|
|
160
|
+
|
|
161
|
+
.kanban-toolbar-button:hover {
|
|
162
|
+
color: var(--dsw-alias-label-primary);
|
|
163
|
+
background: var(--dsw-alias-interactive-bg-hover);
|
|
164
|
+
}
|
|
165
|
+
|
|
166
|
+
.kanban-toolbar-button:active {
|
|
167
|
+
background: var(--dsw-alias-button-ghost-active-fill);
|
|
168
|
+
}
|
|
169
|
+
|
|
170
|
+
.kanban-board-scroll {
|
|
171
|
+
display: flex;
|
|
172
|
+
min-width: 0;
|
|
173
|
+
min-height: 0;
|
|
174
|
+
flex: 1;
|
|
175
|
+
gap: 12px;
|
|
176
|
+
overflow-x: auto;
|
|
177
|
+
overflow-y: hidden;
|
|
178
|
+
padding-bottom: 8px;
|
|
179
|
+
}
|
|
180
|
+
|
|
181
|
+
.kanban-scroll::-webkit-scrollbar {
|
|
182
|
+
width: 8px;
|
|
183
|
+
height: 8px;
|
|
184
|
+
}
|
|
185
|
+
|
|
186
|
+
.kanban-scroll::-webkit-scrollbar-thumb {
|
|
187
|
+
border-radius: 999px;
|
|
188
|
+
background: var(--dsw-alias-scrollbar-bg-l1);
|
|
189
|
+
}
|
|
190
|
+
|
|
191
|
+
.kanban-scroll::-webkit-scrollbar-thumb:hover {
|
|
192
|
+
background: var(--dsw-alias-scrollbar-hover-l1);
|
|
193
|
+
}
|
|
194
|
+
|
|
195
|
+
.kanban-scroll::-webkit-scrollbar-track {
|
|
196
|
+
background: transparent;
|
|
197
|
+
}
|
|
198
|
+
|
|
199
|
+
.kanban-filter-check {
|
|
200
|
+
display: flex;
|
|
201
|
+
width: 16px;
|
|
202
|
+
height: 16px;
|
|
203
|
+
align-items: center;
|
|
204
|
+
}
|
|
205
|
+
|
|
206
|
+
.kanban-priority-dot {
|
|
207
|
+
width: 8px;
|
|
208
|
+
height: 8px;
|
|
209
|
+
border-radius: 50%;
|
|
210
|
+
}
|
|
211
|
+
|
|
212
|
+
/* Columns and cards */
|
|
213
|
+
.kanban-column {
|
|
214
|
+
display: flex;
|
|
215
|
+
width: 288px;
|
|
216
|
+
min-width: 288px;
|
|
217
|
+
min-height: 0;
|
|
218
|
+
flex-shrink: 0;
|
|
219
|
+
flex-direction: column;
|
|
220
|
+
border: 1px solid var(--dsw-alias-border-l2);
|
|
221
|
+
border-radius: 16px;
|
|
222
|
+
background: var(--dsw-alias-bg-layer-1);
|
|
223
|
+
box-shadow: var(--dsw-shadow-lv2);
|
|
224
|
+
transition: border-color 150ms ease;
|
|
225
|
+
}
|
|
226
|
+
|
|
227
|
+
.kanban-column.is-over {
|
|
228
|
+
border-color: var(--dsw-alias-brand-primary);
|
|
229
|
+
}
|
|
230
|
+
|
|
231
|
+
.kanban-column-header {
|
|
232
|
+
display: flex;
|
|
233
|
+
align-items: center;
|
|
234
|
+
gap: 6px;
|
|
235
|
+
padding: 12px;
|
|
236
|
+
}
|
|
237
|
+
|
|
238
|
+
.kanban-column-title {
|
|
239
|
+
min-width: 0;
|
|
240
|
+
flex: 1;
|
|
241
|
+
overflow: hidden;
|
|
242
|
+
color: var(--dsw-alias-label-primary);
|
|
243
|
+
text-overflow: ellipsis;
|
|
244
|
+
white-space: nowrap;
|
|
245
|
+
font: var(--dsw-font-xs-strong-13);
|
|
246
|
+
font-size: 13.5px;
|
|
247
|
+
}
|
|
248
|
+
|
|
249
|
+
.kanban-column-count {
|
|
250
|
+
padding: 2px 6px;
|
|
251
|
+
border-radius: 999px;
|
|
252
|
+
background: var(--dsw-alias-bg-layer-2);
|
|
253
|
+
color: var(--dsw-alias-label-secondary);
|
|
254
|
+
font: var(--dsw-font-xxxs-11);
|
|
255
|
+
}
|
|
256
|
+
|
|
257
|
+
.kanban-column-cards {
|
|
258
|
+
display: flex;
|
|
259
|
+
min-height: 64px;
|
|
260
|
+
flex: 1;
|
|
261
|
+
flex-direction: column;
|
|
262
|
+
gap: 8px;
|
|
263
|
+
overflow-y: auto;
|
|
264
|
+
padding: 0 10px 10px;
|
|
265
|
+
}
|
|
266
|
+
|
|
267
|
+
.kanban-column-empty {
|
|
268
|
+
padding: 20px 0;
|
|
269
|
+
text-align: center;
|
|
270
|
+
color: var(--dsw-alias-label-tertiary);
|
|
271
|
+
font: var(--dsw-font-xxs-12);
|
|
272
|
+
}
|
|
273
|
+
|
|
274
|
+
.kanban-column-footer {
|
|
275
|
+
padding: 4px 10px 10px;
|
|
276
|
+
}
|
|
277
|
+
|
|
278
|
+
.kanban-add-card {
|
|
279
|
+
display: flex;
|
|
280
|
+
width: 100%;
|
|
281
|
+
justify-content: flex-start;
|
|
282
|
+
border: 0;
|
|
283
|
+
border-radius: 12px;
|
|
284
|
+
background: transparent;
|
|
285
|
+
color: var(--dsw-alias-label-secondary);
|
|
286
|
+
box-shadow: none;
|
|
287
|
+
}
|
|
288
|
+
|
|
289
|
+
.kanban-add-card:hover {
|
|
290
|
+
color: var(--dsw-alias-label-primary);
|
|
291
|
+
background: var(--dsw-alias-interactive-bg-hover);
|
|
292
|
+
}
|
|
293
|
+
|
|
294
|
+
.kanban-add-card:active {
|
|
295
|
+
background: var(--dsw-alias-button-ghost-active-fill);
|
|
296
|
+
}
|
|
297
|
+
|
|
298
|
+
.kanban-sortable-card {
|
|
299
|
+
cursor: grab;
|
|
300
|
+
touch-action: none;
|
|
301
|
+
user-select: none;
|
|
302
|
+
}
|
|
303
|
+
|
|
304
|
+
.kanban-sortable-card:active {
|
|
305
|
+
cursor: grabbing;
|
|
306
|
+
}
|
|
307
|
+
|
|
308
|
+
.kanban-sortable-card.is-dragging {
|
|
309
|
+
opacity: 0.4;
|
|
310
|
+
}
|
|
311
|
+
|
|
312
|
+
.kanban-card {
|
|
313
|
+
border: 1px solid var(--dsw-alias-border-l2);
|
|
314
|
+
border-radius: 12px;
|
|
315
|
+
background: var(--dsw-alias-bg-layer-1);
|
|
316
|
+
color: var(--dsw-alias-label-primary);
|
|
317
|
+
box-shadow: var(--dsw-shadow-lv2);
|
|
318
|
+
transition: box-shadow 200ms ease;
|
|
319
|
+
}
|
|
320
|
+
|
|
321
|
+
.kanban-sortable-card:hover .kanban-card {
|
|
322
|
+
box-shadow: var(--dsw-shadow-lv3);
|
|
323
|
+
}
|
|
324
|
+
|
|
325
|
+
.kanban-sortable-card-content {
|
|
326
|
+
padding: 14px;
|
|
327
|
+
}
|
|
328
|
+
|
|
329
|
+
.kanban-card-meta {
|
|
330
|
+
display: flex;
|
|
331
|
+
align-items: center;
|
|
332
|
+
gap: 6px;
|
|
333
|
+
margin-bottom: 6px;
|
|
334
|
+
}
|
|
335
|
+
|
|
336
|
+
.kanban-card-badge {
|
|
337
|
+
display: inline-flex;
|
|
338
|
+
align-items: center;
|
|
339
|
+
padding: 0 8px;
|
|
340
|
+
border: 0;
|
|
341
|
+
border-radius: 999px;
|
|
342
|
+
font: var(--dsw-font-xxs-strong-12);
|
|
343
|
+
font-size: 10.5px;
|
|
344
|
+
line-height: 16px;
|
|
345
|
+
}
|
|
346
|
+
|
|
347
|
+
.kanban-card-title {
|
|
348
|
+
overflow-wrap: anywhere;
|
|
349
|
+
color: var(--dsw-alias-label-primary);
|
|
350
|
+
font: var(--dsw-font-xs-strong-13);
|
|
351
|
+
font-size: 13.5px;
|
|
352
|
+
}
|
|
353
|
+
|
|
354
|
+
.kanban-card-note {
|
|
355
|
+
display: -webkit-box;
|
|
356
|
+
max-height: 4.875em;
|
|
357
|
+
margin-top: 6px;
|
|
358
|
+
overflow: hidden;
|
|
359
|
+
color: var(--dsw-alias-label-secondary);
|
|
360
|
+
font: var(--dsw-font-xxs-12);
|
|
361
|
+
white-space: pre-wrap;
|
|
362
|
+
overflow-wrap: anywhere;
|
|
363
|
+
-webkit-box-orient: vertical;
|
|
364
|
+
-webkit-line-clamp: 3;
|
|
365
|
+
}
|
|
366
|
+
|
|
367
|
+
.kanban-drag-preview {
|
|
368
|
+
width: 256px;
|
|
369
|
+
transform: rotate(2deg);
|
|
370
|
+
border-color: var(--dsw-alias-border-l2);
|
|
371
|
+
background: var(--dsw-alias-bg-layer-2);
|
|
372
|
+
box-shadow: var(--dsw-shadow-lv3);
|
|
373
|
+
}
|
|
374
|
+
|
|
375
|
+
.kanban-drag-preview-content {
|
|
376
|
+
padding: 14px;
|
|
377
|
+
}
|
|
378
|
+
|
|
379
|
+
.kanban-drag-preview-title {
|
|
380
|
+
overflow-wrap: anywhere;
|
|
381
|
+
color: var(--dsw-alias-label-primary);
|
|
382
|
+
font: var(--dsw-font-xs-strong-13);
|
|
383
|
+
font-size: 13.5px;
|
|
384
|
+
}
|
|
385
|
+
|
|
386
|
+
/* Form and activity */
|
|
387
|
+
.kanban-form-stack {
|
|
388
|
+
display: grid;
|
|
389
|
+
gap: 16px;
|
|
390
|
+
padding: 8px 0;
|
|
391
|
+
}
|
|
392
|
+
|
|
393
|
+
.kanban-form-field {
|
|
394
|
+
display: grid;
|
|
395
|
+
gap: 8px;
|
|
396
|
+
}
|
|
397
|
+
|
|
398
|
+
.kanban-field-label {
|
|
399
|
+
display: flex;
|
|
400
|
+
align-items: center;
|
|
401
|
+
justify-content: space-between;
|
|
402
|
+
}
|
|
403
|
+
|
|
404
|
+
.kanban-field-id {
|
|
405
|
+
color: var(--dsw-alias-label-secondary);
|
|
406
|
+
font: var(--dsw-font-xxxs-strong-11);
|
|
1550
407
|
}
|
|
1551
|
-
|
|
1552
|
-
|
|
1553
|
-
|
|
1554
|
-
|
|
408
|
+
|
|
409
|
+
.kanban-inline-priority {
|
|
410
|
+
display: flex;
|
|
411
|
+
align-items: center;
|
|
412
|
+
gap: 8px;
|
|
1555
413
|
}
|
|
1556
|
-
|
|
1557
|
-
|
|
414
|
+
|
|
415
|
+
.kanban-activity-box {
|
|
416
|
+
display: grid;
|
|
417
|
+
gap: 8px;
|
|
418
|
+
padding: 12px;
|
|
419
|
+
border: 1px solid var(--dsw-alias-border-l2);
|
|
420
|
+
border-radius: 12px;
|
|
421
|
+
}
|
|
422
|
+
|
|
423
|
+
.kanban-activity-scroll {
|
|
424
|
+
max-height: 192px;
|
|
425
|
+
overflow-y: auto;
|
|
426
|
+
padding-right: 4px;
|
|
427
|
+
}
|
|
428
|
+
|
|
429
|
+
.kanban-activity-list {
|
|
430
|
+
position: relative;
|
|
431
|
+
display: grid;
|
|
432
|
+
gap: 14px;
|
|
433
|
+
padding-left: 16px;
|
|
434
|
+
border-left: 1px solid var(--dsw-alias-border-l2);
|
|
435
|
+
}
|
|
436
|
+
|
|
437
|
+
.kanban-activity-item {
|
|
438
|
+
position: relative;
|
|
439
|
+
}
|
|
440
|
+
|
|
441
|
+
.kanban-activity-dot {
|
|
442
|
+
position: absolute;
|
|
443
|
+
top: 6px;
|
|
444
|
+
left: -21px;
|
|
1558
445
|
width: 8px;
|
|
446
|
+
height: 8px;
|
|
447
|
+
border-radius: 50%;
|
|
1559
448
|
}
|
|
1560
|
-
|
|
1561
|
-
|
|
1562
|
-
|
|
449
|
+
|
|
450
|
+
.kanban-activity-dot.is-agent {
|
|
451
|
+
background: var(--dsw-alias-state-business-primary);
|
|
452
|
+
}
|
|
453
|
+
|
|
454
|
+
.kanban-activity-dot.is-human {
|
|
455
|
+
background: var(--dsw-alias-state-success-primary);
|
|
456
|
+
}
|
|
457
|
+
|
|
458
|
+
.kanban-activity-meta {
|
|
459
|
+
display: flex;
|
|
460
|
+
align-items: center;
|
|
461
|
+
gap: 6px;
|
|
462
|
+
color: var(--dsw-alias-label-secondary);
|
|
463
|
+
font: var(--dsw-font-xxxs-11);
|
|
464
|
+
}
|
|
465
|
+
|
|
466
|
+
.kanban-activity-actor {
|
|
467
|
+
font: var(--dsw-font-xxxs-strong-11);
|
|
468
|
+
}
|
|
469
|
+
|
|
470
|
+
.kanban-activity-actor.is-agent {
|
|
471
|
+
color: var(--dsw-alias-state-business-primary);
|
|
472
|
+
}
|
|
473
|
+
|
|
474
|
+
.kanban-activity-actor.is-human {
|
|
475
|
+
color: var(--dsw-alias-state-success-primary);
|
|
476
|
+
}
|
|
477
|
+
|
|
478
|
+
.kanban-activity-description {
|
|
479
|
+
margin-top: 4px;
|
|
480
|
+
color: var(--dsw-alias-label-primary);
|
|
481
|
+
font: var(--dsw-font-xs-13);
|
|
482
|
+
}
|
|
483
|
+
|
|
484
|
+
.kanban-muted-small {
|
|
485
|
+
color: var(--dsw-alias-label-secondary);
|
|
486
|
+
font: var(--dsw-font-xxs-12);
|
|
487
|
+
}
|
|
488
|
+
|
|
489
|
+
.kanban-tiny-icon {
|
|
490
|
+
width: 12px;
|
|
491
|
+
height: 12px;
|
|
1563
492
|
}
|
|
1564
|
-
|
|
1565
|
-
|
|
493
|
+
|
|
494
|
+
.kanban-tabular {
|
|
495
|
+
font-variant-numeric: tabular-nums;
|
|
496
|
+
}
|
|
497
|
+
|
|
498
|
+
/* Primitive components */
|
|
499
|
+
.kanban-button {
|
|
500
|
+
display: inline-flex;
|
|
501
|
+
appearance: none;
|
|
502
|
+
align-items: center;
|
|
503
|
+
justify-content: center;
|
|
504
|
+
gap: 8px;
|
|
505
|
+
white-space: nowrap;
|
|
506
|
+
border: 1px solid transparent;
|
|
507
|
+
border-radius: 8px;
|
|
508
|
+
font: var(--dsw-font-s-strong-14);
|
|
509
|
+
transition: transform 150ms ease, color 150ms ease, background-color 150ms ease, border-color 150ms ease, box-shadow 150ms ease;
|
|
510
|
+
}
|
|
511
|
+
|
|
512
|
+
.kanban-button:active {
|
|
513
|
+
transform: scale(0.97);
|
|
514
|
+
}
|
|
515
|
+
|
|
516
|
+
.kanban-button:disabled {
|
|
517
|
+
pointer-events: none;
|
|
518
|
+
opacity: 0.5;
|
|
519
|
+
}
|
|
520
|
+
|
|
521
|
+
.kanban-button svg {
|
|
522
|
+
width: 16px;
|
|
523
|
+
height: 16px;
|
|
524
|
+
pointer-events: none;
|
|
525
|
+
}
|
|
526
|
+
|
|
527
|
+
.kanban-button--size-default {
|
|
528
|
+
height: 36px;
|
|
529
|
+
padding: 8px 16px;
|
|
530
|
+
}
|
|
531
|
+
|
|
532
|
+
.kanban-button--size-sm {
|
|
533
|
+
height: 32px;
|
|
534
|
+
padding: 6px 12px;
|
|
535
|
+
border-radius: 6px;
|
|
536
|
+
font: var(--dsw-font-xxs-strong-12);
|
|
537
|
+
}
|
|
538
|
+
|
|
539
|
+
.kanban-button--size-lg {
|
|
540
|
+
height: 40px;
|
|
541
|
+
padding: 8px 32px;
|
|
542
|
+
}
|
|
543
|
+
|
|
544
|
+
.kanban-button--size-icon {
|
|
545
|
+
width: 32px;
|
|
546
|
+
height: 32px;
|
|
547
|
+
padding: 0;
|
|
548
|
+
}
|
|
549
|
+
|
|
550
|
+
.kanban-button--default {
|
|
551
|
+
background: var(--dsw-alias-button-primary-fill);
|
|
552
|
+
color: var(--dsw-alias-label-primary-foreground);
|
|
553
|
+
box-shadow: var(--dsw-shadow-lv1);
|
|
1566
554
|
}
|
|
1567
|
-
|
|
555
|
+
|
|
556
|
+
.kanban-button--ghost {
|
|
557
|
+
border-color: transparent;
|
|
1568
558
|
background: transparent;
|
|
559
|
+
box-shadow: none;
|
|
1569
560
|
}
|
|
1570
|
-
|
|
1571
|
-
|
|
561
|
+
|
|
562
|
+
.kanban-button--default:hover {
|
|
563
|
+
background: var(--dsw-alias-button-primary-hover);
|
|
1572
564
|
}
|
|
1573
|
-
|
|
1574
|
-
|
|
1575
|
-
|
|
1576
|
-
|
|
1577
|
-
|
|
1578
|
-
animation-iteration-count: 1 !important;
|
|
1579
|
-
transition-duration: 0.01ms !important;
|
|
1580
|
-
}
|
|
565
|
+
|
|
566
|
+
.kanban-button--destructive {
|
|
567
|
+
background: var(--dsw-alias-state-error-primary);
|
|
568
|
+
color: var(--dsw-static-neutral-00);
|
|
569
|
+
box-shadow: var(--dsw-shadow-lv1);
|
|
1581
570
|
}
|
|
1582
|
-
|
|
1583
|
-
|
|
1584
|
-
|
|
1585
|
-
transform: translate3d(var(--tw-enter-translate-x, 0), var(--tw-enter-translate-y, 0), 0) scale3d(var(--tw-enter-scale, 1), var(--tw-enter-scale, 1), var(--tw-enter-scale, 1)) rotate(var(--tw-enter-rotate, 0));
|
|
1586
|
-
}
|
|
571
|
+
|
|
572
|
+
.kanban-button--destructive:hover {
|
|
573
|
+
background: var(--dsw-alias-state-error-secondary);
|
|
1587
574
|
}
|
|
1588
|
-
|
|
1589
|
-
|
|
1590
|
-
|
|
1591
|
-
|
|
1592
|
-
|
|
575
|
+
|
|
576
|
+
.kanban-button--outline {
|
|
577
|
+
border-color: var(--dsw-alias-border-l1);
|
|
578
|
+
background: var(--dsw-alias-bg-base);
|
|
579
|
+
box-shadow: var(--dsw-shadow-lv1);
|
|
580
|
+
}
|
|
581
|
+
|
|
582
|
+
.kanban-button--outline:hover {
|
|
583
|
+
background: var(--dsw-alias-interactive-bg-hover);
|
|
584
|
+
}
|
|
585
|
+
|
|
586
|
+
.kanban-button--secondary {
|
|
587
|
+
background: var(--dsw-alias-bg-layer-2);
|
|
588
|
+
color: var(--dsw-alias-label-primary);
|
|
589
|
+
box-shadow: var(--dsw-shadow-lv1);
|
|
590
|
+
}
|
|
591
|
+
|
|
592
|
+
.kanban-button--secondary:hover,
|
|
593
|
+
.kanban-button--ghost:hover {
|
|
594
|
+
background: var(--dsw-alias-interactive-bg-hover);
|
|
595
|
+
}
|
|
596
|
+
|
|
597
|
+
.kanban-button--ghost:active {
|
|
598
|
+
background: var(--dsw-alias-button-ghost-active-fill);
|
|
599
|
+
}
|
|
600
|
+
|
|
601
|
+
.kanban-button--link {
|
|
602
|
+
border-color: transparent;
|
|
603
|
+
background: transparent;
|
|
604
|
+
color: var(--dsw-alias-brand-primary);
|
|
605
|
+
text-underline-offset: 4px;
|
|
606
|
+
}
|
|
607
|
+
|
|
608
|
+
.kanban-button--link:hover {
|
|
609
|
+
text-decoration: underline;
|
|
610
|
+
}
|
|
611
|
+
|
|
612
|
+
.kanban-icon {
|
|
613
|
+
width: 16px;
|
|
614
|
+
height: 16px;
|
|
615
|
+
}
|
|
616
|
+
|
|
617
|
+
.kanban-icon-button {
|
|
618
|
+
width: 32px;
|
|
619
|
+
height: 32px;
|
|
620
|
+
flex-shrink: 0;
|
|
621
|
+
padding: 0;
|
|
622
|
+
}
|
|
623
|
+
|
|
624
|
+
.kanban-danger-button {
|
|
625
|
+
color: var(--dsw-alias-state-error-primary);
|
|
626
|
+
}
|
|
627
|
+
|
|
628
|
+
.kanban-card-content {
|
|
629
|
+
padding: 24px;
|
|
630
|
+
}
|
|
631
|
+
|
|
632
|
+
.kanban-card-header {
|
|
633
|
+
display: flex;
|
|
634
|
+
flex-direction: column;
|
|
635
|
+
gap: 6px;
|
|
636
|
+
padding: 24px;
|
|
637
|
+
}
|
|
638
|
+
|
|
639
|
+
.kanban-ui-card-title {
|
|
640
|
+
font-weight: 600;
|
|
641
|
+
line-height: 1;
|
|
642
|
+
letter-spacing: -0.01em;
|
|
643
|
+
}
|
|
644
|
+
|
|
645
|
+
.kanban-card-description {
|
|
646
|
+
color: var(--dsw-alias-label-secondary);
|
|
647
|
+
font: var(--dsw-font-s-14);
|
|
648
|
+
}
|
|
649
|
+
|
|
650
|
+
.kanban-card-footer {
|
|
651
|
+
display: flex;
|
|
652
|
+
align-items: center;
|
|
653
|
+
padding: 24px 24px 0;
|
|
654
|
+
}
|
|
655
|
+
|
|
656
|
+
.kanban-badge {
|
|
657
|
+
display: inline-flex;
|
|
658
|
+
align-items: center;
|
|
659
|
+
border: 1px solid transparent;
|
|
660
|
+
border-radius: 6px;
|
|
661
|
+
padding: 2px 10px;
|
|
662
|
+
font: var(--dsw-font-xxs-strong-12);
|
|
663
|
+
}
|
|
664
|
+
|
|
665
|
+
.kanban-badge--default {
|
|
666
|
+
background: var(--dsw-alias-brand-primary);
|
|
667
|
+
color: var(--dsw-alias-label-primary-foreground);
|
|
668
|
+
box-shadow: var(--dsw-shadow-lv1);
|
|
669
|
+
}
|
|
670
|
+
|
|
671
|
+
.kanban-badge--secondary {
|
|
672
|
+
background: var(--dsw-alias-bg-layer-2);
|
|
673
|
+
color: var(--dsw-alias-label-primary);
|
|
674
|
+
}
|
|
675
|
+
|
|
676
|
+
.kanban-badge--destructive {
|
|
677
|
+
background: var(--dsw-alias-state-error-primary);
|
|
678
|
+
color: var(--dsw-alias-label-primary-foreground);
|
|
679
|
+
box-shadow: var(--dsw-shadow-lv1);
|
|
680
|
+
}
|
|
681
|
+
|
|
682
|
+
.kanban-badge--outline {
|
|
683
|
+
color: var(--dsw-alias-label-primary);
|
|
684
|
+
}
|
|
685
|
+
|
|
686
|
+
.kanban-input,
|
|
687
|
+
.kanban-textarea {
|
|
688
|
+
width: 100%;
|
|
689
|
+
border: 1px solid var(--dsw-alias-border-l1);
|
|
690
|
+
border-radius: 6px;
|
|
691
|
+
background: transparent;
|
|
692
|
+
color: var(--dsw-alias-label-primary);
|
|
693
|
+
font: var(--dsw-font-s-14);
|
|
694
|
+
box-shadow: var(--dsw-shadow-lv1);
|
|
695
|
+
}
|
|
696
|
+
|
|
697
|
+
.kanban-input {
|
|
698
|
+
height: 36px;
|
|
699
|
+
padding: 4px 12px;
|
|
700
|
+
}
|
|
701
|
+
|
|
702
|
+
.kanban-textarea {
|
|
703
|
+
min-height: 60px;
|
|
704
|
+
padding: 8px 12px;
|
|
705
|
+
resize: vertical;
|
|
706
|
+
}
|
|
707
|
+
|
|
708
|
+
.kanban-input::placeholder,
|
|
709
|
+
.kanban-textarea::placeholder {
|
|
710
|
+
color: var(--dsw-alias-label-secondary);
|
|
711
|
+
}
|
|
712
|
+
|
|
713
|
+
.kanban-input:focus-visible,
|
|
714
|
+
.kanban-textarea:focus-visible {
|
|
715
|
+
border-color: var(--dsw-alias-brand-primary);
|
|
716
|
+
outline: none;
|
|
717
|
+
box-shadow: 0 0 0 1px var(--dsw-alias-brand-primary);
|
|
718
|
+
}
|
|
719
|
+
|
|
720
|
+
.kanban-input:disabled,
|
|
721
|
+
.kanban-textarea:disabled {
|
|
722
|
+
cursor: not-allowed;
|
|
723
|
+
opacity: 0.5;
|
|
724
|
+
}
|
|
725
|
+
|
|
726
|
+
.kanban-label {
|
|
727
|
+
color: var(--dsw-alias-label-primary);
|
|
728
|
+
font: var(--dsw-font-s-strong-14);
|
|
729
|
+
}
|
|
730
|
+
|
|
731
|
+
.kanban-separator {
|
|
732
|
+
flex-shrink: 0;
|
|
733
|
+
background: var(--dsw-alias-border-l1);
|
|
734
|
+
}
|
|
735
|
+
|
|
736
|
+
.kanban-separator--horizontal {
|
|
737
|
+
width: 100%;
|
|
738
|
+
height: 1px;
|
|
739
|
+
}
|
|
740
|
+
|
|
741
|
+
.kanban-separator--vertical {
|
|
742
|
+
width: 1px;
|
|
743
|
+
height: 100%;
|
|
744
|
+
}
|
|
745
|
+
|
|
746
|
+
/* Radix portals */
|
|
747
|
+
.kanban-dialog-overlay {
|
|
748
|
+
position: fixed;
|
|
749
|
+
z-index: 50;
|
|
750
|
+
inset: 0;
|
|
751
|
+
background: var(--dsw-alias-bg-mask-1);
|
|
752
|
+
}
|
|
753
|
+
|
|
754
|
+
.kanban-dialog-overlay[data-state="open"] {
|
|
755
|
+
animation: kanban-fade-in 150ms ease-out;
|
|
1593
756
|
}
|
|
1594
|
-
|
|
1595
|
-
|
|
1596
|
-
|
|
1597
|
-
|
|
1598
|
-
|
|
1599
|
-
|
|
1600
|
-
|
|
1601
|
-
|
|
1602
|
-
|
|
1603
|
-
|
|
1604
|
-
|
|
1605
|
-
|
|
1606
|
-
|
|
1607
|
-
|
|
1608
|
-
|
|
1609
|
-
|
|
1610
|
-
|
|
1611
|
-
|
|
1612
|
-
|
|
1613
|
-
|
|
1614
|
-
|
|
1615
|
-
|
|
1616
|
-
}
|
|
1617
|
-
|
|
1618
|
-
|
|
1619
|
-
|
|
1620
|
-
}
|
|
1621
|
-
|
|
1622
|
-
|
|
1623
|
-
|
|
1624
|
-
}
|
|
1625
|
-
|
|
1626
|
-
|
|
1627
|
-
|
|
1628
|
-
}
|
|
1629
|
-
|
|
1630
|
-
|
|
1631
|
-
|
|
1632
|
-
}
|
|
1633
|
-
|
|
1634
|
-
|
|
1635
|
-
|
|
1636
|
-
|
|
1637
|
-
|
|
1638
|
-
|
|
1639
|
-
|
|
1640
|
-
|
|
1641
|
-
|
|
1642
|
-
|
|
1643
|
-
|
|
1644
|
-
|
|
1645
|
-
|
|
1646
|
-
|
|
1647
|
-
|
|
1648
|
-
|
|
1649
|
-
|
|
1650
|
-
|
|
1651
|
-
|
|
1652
|
-
|
|
1653
|
-
|
|
1654
|
-
|
|
1655
|
-
|
|
1656
|
-
|
|
1657
|
-
|
|
1658
|
-
|
|
1659
|
-
|
|
1660
|
-
|
|
1661
|
-
|
|
1662
|
-
|
|
1663
|
-
|
|
1664
|
-
|
|
1665
|
-
|
|
1666
|
-
|
|
1667
|
-
|
|
1668
|
-
|
|
1669
|
-
|
|
1670
|
-
|
|
1671
|
-
|
|
1672
|
-
|
|
1673
|
-
|
|
1674
|
-
|
|
1675
|
-
|
|
1676
|
-
|
|
1677
|
-
}
|
|
1678
|
-
|
|
1679
|
-
|
|
1680
|
-
|
|
1681
|
-
|
|
1682
|
-
|
|
1683
|
-
|
|
1684
|
-
|
|
1685
|
-
|
|
1686
|
-
|
|
1687
|
-
|
|
1688
|
-
|
|
1689
|
-
|
|
1690
|
-
|
|
1691
|
-
|
|
1692
|
-
|
|
1693
|
-
|
|
1694
|
-
|
|
1695
|
-
|
|
1696
|
-
|
|
1697
|
-
|
|
1698
|
-
|
|
1699
|
-
|
|
1700
|
-
|
|
1701
|
-
|
|
1702
|
-
|
|
1703
|
-
|
|
1704
|
-
|
|
1705
|
-
|
|
1706
|
-
|
|
1707
|
-
|
|
1708
|
-
|
|
1709
|
-
|
|
1710
|
-
|
|
1711
|
-
|
|
1712
|
-
|
|
1713
|
-
|
|
1714
|
-
|
|
1715
|
-
|
|
1716
|
-
|
|
1717
|
-
|
|
1718
|
-
|
|
1719
|
-
|
|
1720
|
-
|
|
1721
|
-
|
|
1722
|
-
|
|
1723
|
-
|
|
1724
|
-
|
|
1725
|
-
|
|
1726
|
-
|
|
1727
|
-
|
|
1728
|
-
|
|
1729
|
-
|
|
1730
|
-
|
|
1731
|
-
|
|
1732
|
-
|
|
1733
|
-
|
|
1734
|
-
|
|
1735
|
-
|
|
1736
|
-
|
|
1737
|
-
|
|
1738
|
-
|
|
1739
|
-
|
|
1740
|
-
|
|
1741
|
-
|
|
1742
|
-
|
|
1743
|
-
|
|
1744
|
-
|
|
1745
|
-
|
|
1746
|
-
|
|
1747
|
-
}
|
|
1748
|
-
|
|
1749
|
-
|
|
1750
|
-
|
|
1751
|
-
|
|
1752
|
-
|
|
1753
|
-
|
|
1754
|
-
|
|
1755
|
-
|
|
1756
|
-
|
|
1757
|
-
}
|
|
1758
|
-
|
|
1759
|
-
|
|
1760
|
-
|
|
1761
|
-
|
|
1762
|
-
|
|
1763
|
-
|
|
1764
|
-
|
|
1765
|
-
|
|
1766
|
-
|
|
1767
|
-
|
|
1768
|
-
|
|
1769
|
-
|
|
1770
|
-
|
|
1771
|
-
|
|
1772
|
-
|
|
1773
|
-
|
|
1774
|
-
|
|
1775
|
-
|
|
1776
|
-
|
|
1777
|
-
|
|
1778
|
-
|
|
1779
|
-
}
|
|
1780
|
-
|
|
1781
|
-
|
|
1782
|
-
|
|
1783
|
-
|
|
1784
|
-
|
|
1785
|
-
|
|
1786
|
-
|
|
1787
|
-
|
|
1788
|
-
|
|
1789
|
-
|
|
1790
|
-
|
|
1791
|
-
|
|
1792
|
-
|
|
1793
|
-
|
|
1794
|
-
|
|
1795
|
-
|
|
1796
|
-
|
|
1797
|
-
|
|
1798
|
-
|
|
1799
|
-
|
|
1800
|
-
|
|
1801
|
-
|
|
1802
|
-
|
|
1803
|
-
|
|
1804
|
-
|
|
1805
|
-
|
|
1806
|
-
|
|
1807
|
-
}
|
|
1808
|
-
|
|
1809
|
-
|
|
1810
|
-
|
|
1811
|
-
|
|
1812
|
-
|
|
1813
|
-
|
|
1814
|
-
|
|
1815
|
-
|
|
1816
|
-
|
|
1817
|
-
|
|
1818
|
-
|
|
1819
|
-
|
|
1820
|
-
}
|
|
1821
|
-
|
|
1822
|
-
|
|
1823
|
-
|
|
1824
|
-
|
|
1825
|
-
|
|
1826
|
-
|
|
1827
|
-
|
|
1828
|
-
|
|
1829
|
-
|
|
1830
|
-
|
|
1831
|
-
|
|
1832
|
-
|
|
1833
|
-
|
|
1834
|
-
|
|
1835
|
-
|
|
1836
|
-
|
|
1837
|
-
|
|
1838
|
-
|
|
1839
|
-
|
|
1840
|
-
|
|
1841
|
-
|
|
1842
|
-
|
|
1843
|
-
|
|
1844
|
-
|
|
1845
|
-
|
|
1846
|
-
|
|
1847
|
-
|
|
1848
|
-
|
|
1849
|
-
|
|
1850
|
-
|
|
1851
|
-
|
|
1852
|
-
|
|
1853
|
-
|
|
1854
|
-
|
|
1855
|
-
|
|
1856
|
-
|
|
1857
|
-
|
|
1858
|
-
|
|
1859
|
-
|
|
1860
|
-
|
|
1861
|
-
|
|
1862
|
-
|
|
1863
|
-
|
|
757
|
+
|
|
758
|
+
.kanban-dialog-overlay[data-state="closed"] {
|
|
759
|
+
animation: kanban-fade-out 150ms ease-in;
|
|
760
|
+
}
|
|
761
|
+
|
|
762
|
+
.kanban-dialog-content {
|
|
763
|
+
position: fixed;
|
|
764
|
+
z-index: 50;
|
|
765
|
+
top: 50%;
|
|
766
|
+
left: 50%;
|
|
767
|
+
display: grid;
|
|
768
|
+
width: calc(100% - 32px);
|
|
769
|
+
max-width: 512px;
|
|
770
|
+
gap: 16px;
|
|
771
|
+
border: 1px solid var(--dsw-alias-border-l2);
|
|
772
|
+
border-radius: 8px;
|
|
773
|
+
padding: 24px;
|
|
774
|
+
background: var(--dsw-specific-input-major);
|
|
775
|
+
color: var(--dsw-alias-label-primary);
|
|
776
|
+
font: var(--dsw-font-s-14);
|
|
777
|
+
box-shadow: var(--dsw-shadow-lv3);
|
|
778
|
+
transform: translate(-50%, -50%);
|
|
779
|
+
}
|
|
780
|
+
|
|
781
|
+
.kanban-dialog-wide {
|
|
782
|
+
max-width: 576px;
|
|
783
|
+
}
|
|
784
|
+
|
|
785
|
+
.kanban-dialog-medium {
|
|
786
|
+
max-width: 448px;
|
|
787
|
+
}
|
|
788
|
+
|
|
789
|
+
.kanban-dialog-content[data-state="open"] {
|
|
790
|
+
animation: kanban-fade-in 150ms ease-out, kanban-dialog-in 150ms ease-out;
|
|
791
|
+
}
|
|
792
|
+
|
|
793
|
+
.kanban-dialog-content[data-state="closed"] {
|
|
794
|
+
animation: kanban-fade-out 150ms ease-in, kanban-dialog-out 150ms ease-in;
|
|
795
|
+
}
|
|
796
|
+
|
|
797
|
+
.kanban-dialog-close {
|
|
798
|
+
position: absolute;
|
|
799
|
+
top: 16px;
|
|
800
|
+
right: 16px;
|
|
801
|
+
padding: 4px;
|
|
802
|
+
border: 0;
|
|
803
|
+
border-radius: 4px;
|
|
804
|
+
background: transparent;
|
|
805
|
+
color: var(--dsw-alias-label-secondary);
|
|
806
|
+
font: inherit;
|
|
807
|
+
cursor: pointer;
|
|
808
|
+
opacity: 0.7;
|
|
809
|
+
}
|
|
810
|
+
|
|
811
|
+
.kanban-dialog-close:hover {
|
|
812
|
+
background: var(--dsw-alias-interactive-bg-hover);
|
|
813
|
+
color: var(--dsw-alias-label-primary);
|
|
814
|
+
opacity: 1;
|
|
815
|
+
}
|
|
816
|
+
|
|
817
|
+
.kanban-dialog-close-icon {
|
|
818
|
+
width: 16px;
|
|
819
|
+
height: 16px;
|
|
820
|
+
}
|
|
821
|
+
|
|
822
|
+
.kanban-dialog-header {
|
|
823
|
+
display: flex;
|
|
824
|
+
flex-direction: column;
|
|
825
|
+
gap: 6px;
|
|
826
|
+
text-align: center;
|
|
827
|
+
}
|
|
828
|
+
|
|
829
|
+
.kanban-dialog-footer {
|
|
830
|
+
display: flex;
|
|
831
|
+
flex-direction: column-reverse;
|
|
832
|
+
gap: 8px;
|
|
833
|
+
justify-content: flex-end;
|
|
834
|
+
}
|
|
835
|
+
|
|
836
|
+
.kanban-dialog-title {
|
|
837
|
+
color: var(--dsw-alias-label-primary);
|
|
838
|
+
font: var(--dsw-font-m-18);
|
|
839
|
+
font-weight: 600;
|
|
840
|
+
}
|
|
841
|
+
|
|
842
|
+
.kanban-dialog-description {
|
|
843
|
+
color: var(--dsw-alias-label-secondary);
|
|
844
|
+
font: var(--dsw-font-s-14);
|
|
845
|
+
}
|
|
846
|
+
|
|
847
|
+
.kanban-dialog-delete {
|
|
848
|
+
margin-right: auto;
|
|
849
|
+
}
|
|
850
|
+
|
|
851
|
+
.kanban-sr-only {
|
|
852
|
+
position: absolute;
|
|
853
|
+
width: 1px;
|
|
854
|
+
height: 1px;
|
|
855
|
+
margin: -1px;
|
|
856
|
+
padding: 0;
|
|
857
|
+
overflow: hidden;
|
|
858
|
+
clip: rect(0, 0, 0, 0);
|
|
859
|
+
white-space: nowrap;
|
|
860
|
+
border: 0;
|
|
861
|
+
}
|
|
862
|
+
|
|
863
|
+
.kanban-dropdown-content {
|
|
864
|
+
z-index: 50;
|
|
865
|
+
min-width: 128px;
|
|
866
|
+
overflow: hidden;
|
|
867
|
+
border: 1px solid var(--dsw-alias-border-inverted);
|
|
868
|
+
border-radius: 8px;
|
|
869
|
+
padding: 4px;
|
|
870
|
+
background: var(--dsw-specific-menu);
|
|
871
|
+
color: var(--dsw-alias-label-primary);
|
|
872
|
+
box-shadow: var(--dsw-shadow-lv2);
|
|
873
|
+
}
|
|
874
|
+
|
|
875
|
+
.kanban-dropdown-content[data-state="open"] {
|
|
876
|
+
animation: kanban-fade-in 120ms ease-out, kanban-scale-in 120ms ease-out;
|
|
877
|
+
}
|
|
878
|
+
|
|
879
|
+
.kanban-dropdown-item {
|
|
880
|
+
position: relative;
|
|
881
|
+
display: flex;
|
|
882
|
+
align-items: center;
|
|
883
|
+
gap: 8px;
|
|
884
|
+
border-radius: 6px;
|
|
885
|
+
padding: 6px 8px;
|
|
886
|
+
color: var(--dsw-alias-label-primary);
|
|
887
|
+
font: var(--dsw-font-s-14);
|
|
888
|
+
cursor: default;
|
|
889
|
+
user-select: none;
|
|
890
|
+
outline: none;
|
|
891
|
+
}
|
|
892
|
+
|
|
893
|
+
.kanban-dropdown-item--inset {
|
|
894
|
+
padding-left: 32px;
|
|
895
|
+
}
|
|
896
|
+
|
|
897
|
+
.kanban-dropdown-item:hover,
|
|
898
|
+
.kanban-dropdown-item[data-highlighted] {
|
|
899
|
+
background: var(--dsw-alias-interactive-bg-hover);
|
|
900
|
+
}
|
|
901
|
+
|
|
902
|
+
.kanban-dropdown-item[data-disabled] {
|
|
903
|
+
pointer-events: none;
|
|
904
|
+
opacity: 0.5;
|
|
905
|
+
}
|
|
906
|
+
|
|
907
|
+
.kanban-dropdown-item svg {
|
|
908
|
+
width: 16px;
|
|
909
|
+
height: 16px;
|
|
910
|
+
}
|
|
911
|
+
|
|
912
|
+
.kanban-dropdown-label {
|
|
913
|
+
padding: 6px 8px;
|
|
914
|
+
color: var(--dsw-alias-label-primary);
|
|
915
|
+
font: var(--dsw-font-s-strong-14);
|
|
916
|
+
}
|
|
917
|
+
|
|
918
|
+
.kanban-dropdown-label--inset {
|
|
919
|
+
padding-left: 32px;
|
|
920
|
+
}
|
|
921
|
+
|
|
922
|
+
.kanban-dropdown-separator {
|
|
923
|
+
height: 1px;
|
|
924
|
+
margin: 4px -4px;
|
|
925
|
+
background: var(--dsw-alias-border-l1);
|
|
926
|
+
}
|
|
927
|
+
|
|
928
|
+
.kanban-select-trigger {
|
|
929
|
+
display: flex;
|
|
930
|
+
width: 100%;
|
|
931
|
+
height: 36px;
|
|
932
|
+
align-items: center;
|
|
933
|
+
justify-content: space-between;
|
|
934
|
+
white-space: nowrap;
|
|
935
|
+
border: 1px solid var(--dsw-alias-border-l1);
|
|
936
|
+
border-radius: 6px;
|
|
937
|
+
padding: 8px 12px;
|
|
938
|
+
background: transparent;
|
|
939
|
+
color: var(--dsw-alias-label-primary);
|
|
940
|
+
font: var(--dsw-font-s-14);
|
|
941
|
+
box-shadow: var(--dsw-shadow-lv1);
|
|
942
|
+
}
|
|
943
|
+
|
|
944
|
+
.kanban-select-trigger:disabled {
|
|
945
|
+
cursor: not-allowed;
|
|
946
|
+
opacity: 0.5;
|
|
947
|
+
}
|
|
948
|
+
|
|
949
|
+
.kanban-select-trigger > span {
|
|
950
|
+
overflow: hidden;
|
|
951
|
+
text-overflow: ellipsis;
|
|
952
|
+
white-space: nowrap;
|
|
953
|
+
}
|
|
954
|
+
|
|
955
|
+
.kanban-select-icon,
|
|
956
|
+
.kanban-select-scroll-icon,
|
|
957
|
+
.kanban-select-check {
|
|
958
|
+
width: 16px;
|
|
959
|
+
height: 16px;
|
|
960
|
+
}
|
|
961
|
+
|
|
962
|
+
.kanban-select-scroll-button {
|
|
963
|
+
display: flex;
|
|
964
|
+
align-items: center;
|
|
965
|
+
justify-content: center;
|
|
966
|
+
padding: 4px 0;
|
|
967
|
+
border: 0;
|
|
968
|
+
background: transparent;
|
|
969
|
+
color: var(--dsw-alias-label-secondary);
|
|
970
|
+
}
|
|
971
|
+
|
|
972
|
+
.kanban-select-content {
|
|
973
|
+
position: relative;
|
|
974
|
+
z-index: 50;
|
|
975
|
+
max-height: 384px;
|
|
976
|
+
min-width: 128px;
|
|
977
|
+
overflow: hidden;
|
|
978
|
+
border: 1px solid var(--dsw-alias-border-inverted);
|
|
979
|
+
border-radius: 6px;
|
|
980
|
+
background: var(--dsw-specific-menu);
|
|
981
|
+
color: var(--dsw-alias-label-primary);
|
|
982
|
+
box-shadow: var(--dsw-shadow-lv2);
|
|
983
|
+
}
|
|
984
|
+
|
|
985
|
+
.kanban-select-content--popper .kanban-select-viewport--popper {
|
|
986
|
+
min-width: var(--radix-select-trigger-width);
|
|
987
|
+
height: var(--radix-select-trigger-height);
|
|
988
|
+
}
|
|
989
|
+
|
|
990
|
+
.kanban-select-content[data-state="open"] {
|
|
991
|
+
animation: kanban-fade-in 120ms ease-out, kanban-scale-in 120ms ease-out;
|
|
992
|
+
}
|
|
993
|
+
|
|
994
|
+
.kanban-select-viewport {
|
|
995
|
+
padding: 4px;
|
|
996
|
+
}
|
|
997
|
+
|
|
998
|
+
.kanban-select-label {
|
|
999
|
+
padding: 6px 8px;
|
|
1000
|
+
color: var(--dsw-alias-label-primary);
|
|
1001
|
+
font: var(--dsw-font-s-strong-14);
|
|
1002
|
+
}
|
|
1003
|
+
|
|
1004
|
+
.kanban-select-item {
|
|
1005
|
+
position: relative;
|
|
1006
|
+
display: flex;
|
|
1007
|
+
width: 100%;
|
|
1008
|
+
align-items: center;
|
|
1009
|
+
border-radius: 4px;
|
|
1010
|
+
padding: 6px 32px 6px 8px;
|
|
1011
|
+
color: var(--dsw-alias-label-primary);
|
|
1012
|
+
font: var(--dsw-font-s-14);
|
|
1013
|
+
cursor: default;
|
|
1014
|
+
user-select: none;
|
|
1015
|
+
outline: none;
|
|
1016
|
+
}
|
|
1017
|
+
|
|
1018
|
+
.kanban-select-item:hover,
|
|
1019
|
+
.kanban-select-item[data-highlighted] {
|
|
1020
|
+
background: var(--dsw-alias-interactive-bg-hover);
|
|
1021
|
+
}
|
|
1022
|
+
|
|
1023
|
+
.kanban-select-item[data-disabled] {
|
|
1024
|
+
pointer-events: none;
|
|
1025
|
+
opacity: 0.5;
|
|
1026
|
+
}
|
|
1027
|
+
|
|
1028
|
+
.kanban-select-item-indicator {
|
|
1029
|
+
position: absolute;
|
|
1030
|
+
right: 8px;
|
|
1031
|
+
display: flex;
|
|
1032
|
+
width: 14px;
|
|
1033
|
+
height: 14px;
|
|
1034
|
+
align-items: center;
|
|
1035
|
+
justify-content: center;
|
|
1036
|
+
}
|
|
1037
|
+
|
|
1038
|
+
.kanban-select-separator {
|
|
1039
|
+
height: 1px;
|
|
1040
|
+
margin: 4px -4px;
|
|
1041
|
+
background: var(--dsw-alias-border-l1);
|
|
1042
|
+
}
|
|
1043
|
+
|
|
1044
|
+
.kanban-tooltip-content {
|
|
1045
|
+
z-index: 50;
|
|
1046
|
+
overflow: hidden;
|
|
1047
|
+
border-radius: 6px;
|
|
1048
|
+
padding: 6px 12px;
|
|
1049
|
+
background: var(--dsw-specific-tip);
|
|
1050
|
+
color: var(--dsw-alias-label-primary);
|
|
1051
|
+
font: var(--dsw-font-xxs-12);
|
|
1052
|
+
}
|
|
1053
|
+
|
|
1054
|
+
.kanban-tooltip-content[data-state="open"] {
|
|
1055
|
+
animation: kanban-fade-in 120ms ease-out, kanban-scale-in 120ms ease-out;
|
|
1056
|
+
}
|
|
1057
|
+
|
|
1058
|
+
/* Dialog controls and drag handles */
|
|
1059
|
+
.kanban-sortable-row,
|
|
1060
|
+
.kanban-label-row,
|
|
1061
|
+
.kanban-label-add-row {
|
|
1062
|
+
display: flex;
|
|
1063
|
+
align-items: center;
|
|
1064
|
+
gap: 6px;
|
|
1065
|
+
}
|
|
1066
|
+
|
|
1067
|
+
.kanban-sortable-list,
|
|
1068
|
+
.kanban-label-list {
|
|
1069
|
+
display: flex;
|
|
1070
|
+
max-height: 60vh;
|
|
1071
|
+
flex-direction: column;
|
|
1072
|
+
gap: 8px;
|
|
1073
|
+
overflow-y: auto;
|
|
1074
|
+
padding: 8px 0;
|
|
1075
|
+
}
|
|
1076
|
+
|
|
1077
|
+
.kanban-drag-handle {
|
|
1078
|
+
flex-shrink: 0;
|
|
1079
|
+
padding: 4px;
|
|
1080
|
+
border: 0;
|
|
1081
|
+
border-radius: 6px;
|
|
1082
|
+
background: transparent;
|
|
1083
|
+
color: var(--dsw-alias-label-secondary);
|
|
1084
|
+
font: inherit;
|
|
1085
|
+
cursor: grab;
|
|
1086
|
+
touch-action: none;
|
|
1087
|
+
}
|
|
1088
|
+
|
|
1089
|
+
.kanban-drag-handle:hover {
|
|
1090
|
+
background: var(--dsw-alias-interactive-bg-hover);
|
|
1091
|
+
color: var(--dsw-alias-label-primary);
|
|
1092
|
+
}
|
|
1093
|
+
|
|
1094
|
+
.kanban-label-add-row {
|
|
1095
|
+
flex: 1;
|
|
1096
|
+
}
|
|
1097
|
+
|
|
1098
|
+
.kanban-color-input {
|
|
1099
|
+
width: 32px;
|
|
1100
|
+
height: 32px;
|
|
1101
|
+
flex-shrink: 0;
|
|
1102
|
+
cursor: pointer;
|
|
1103
|
+
border: 1px solid var(--dsw-alias-border-l1);
|
|
1104
|
+
border-radius: 6px;
|
|
1105
|
+
padding: 2px;
|
|
1106
|
+
background: transparent;
|
|
1107
|
+
}
|
|
1108
|
+
|
|
1109
|
+
.kanban-dialog-footer-layout {
|
|
1110
|
+
display: flex;
|
|
1111
|
+
flex-direction: column;
|
|
1112
|
+
gap: 8px;
|
|
1113
|
+
}
|
|
1114
|
+
|
|
1115
|
+
.kanban-animate-spin {
|
|
1116
|
+
animation: kanban-spin 1s linear infinite;
|
|
1117
|
+
}
|
|
1118
|
+
|
|
1119
|
+
@keyframes kanban-spin {
|
|
1120
|
+
to { transform: rotate(360deg); }
|
|
1121
|
+
}
|
|
1122
|
+
|
|
1123
|
+
@keyframes kanban-fade-in {
|
|
1124
|
+
from { opacity: 0; }
|
|
1125
|
+
to { opacity: 1; }
|
|
1126
|
+
}
|
|
1127
|
+
|
|
1128
|
+
@keyframes kanban-fade-out {
|
|
1129
|
+
from { opacity: 1; }
|
|
1130
|
+
to { opacity: 0; }
|
|
1131
|
+
}
|
|
1132
|
+
|
|
1133
|
+
@keyframes kanban-scale-in {
|
|
1134
|
+
from { transform: scale(0.95); }
|
|
1135
|
+
to { transform: scale(1); }
|
|
1136
|
+
}
|
|
1137
|
+
|
|
1138
|
+
@keyframes kanban-dialog-in {
|
|
1139
|
+
from { transform: translate(-50%, -50%) scale(0.95); }
|
|
1140
|
+
to { transform: translate(-50%, -50%) scale(1); }
|
|
1141
|
+
}
|
|
1142
|
+
|
|
1143
|
+
@keyframes kanban-dialog-out {
|
|
1144
|
+
from { transform: translate(-50%, -50%) scale(1); }
|
|
1145
|
+
to { transform: translate(-50%, -50%) scale(0.95); }
|
|
1146
|
+
}
|
|
1147
|
+
|
|
1148
|
+
@media (min-width: 640px) {
|
|
1149
|
+
.kanban-dialog-header {
|
|
1150
|
+
text-align: left;
|
|
1151
|
+
}
|
|
1152
|
+
|
|
1153
|
+
.kanban-dialog-footer {
|
|
1154
|
+
flex-direction: row;
|
|
1155
|
+
}
|
|
1156
|
+
|
|
1157
|
+
.kanban-dialog-footer-layout {
|
|
1158
|
+
flex-direction: row;
|
|
1159
|
+
align-items: center;
|
|
1864
1160
|
}
|
|
1865
1161
|
}
|
|
1866
|
-
|
|
1867
|
-
|
|
1868
|
-
|
|
1869
|
-
|
|
1870
|
-
|
|
1871
|
-
|
|
1872
|
-
|
|
1873
|
-
--tw-rotate-y: initial;
|
|
1874
|
-
--tw-rotate-z: initial;
|
|
1875
|
-
--tw-skew-x: initial;
|
|
1876
|
-
--tw-skew-y: initial;
|
|
1877
|
-
--tw-pan-x: initial;
|
|
1878
|
-
--tw-pan-y: initial;
|
|
1879
|
-
--tw-pinch-zoom: initial;
|
|
1880
|
-
--tw-space-y-reverse: 0;
|
|
1881
|
-
--tw-space-x-reverse: 0;
|
|
1882
|
-
--tw-divide-x-reverse: 0;
|
|
1883
|
-
--tw-border-style: solid;
|
|
1884
|
-
--tw-divide-y-reverse: 0;
|
|
1885
|
-
--tw-leading: initial;
|
|
1886
|
-
--tw-font-weight: initial;
|
|
1887
|
-
--tw-tracking: initial;
|
|
1888
|
-
--tw-ordinal: initial;
|
|
1889
|
-
--tw-slashed-zero: initial;
|
|
1890
|
-
--tw-numeric-figure: initial;
|
|
1891
|
-
--tw-numeric-spacing: initial;
|
|
1892
|
-
--tw-numeric-fraction: initial;
|
|
1893
|
-
--tw-shadow: 0 0 #0000;
|
|
1894
|
-
--tw-shadow-color: initial;
|
|
1895
|
-
--tw-shadow-alpha: 100%;
|
|
1896
|
-
--tw-inset-shadow: 0 0 #0000;
|
|
1897
|
-
--tw-inset-shadow-color: initial;
|
|
1898
|
-
--tw-inset-shadow-alpha: 100%;
|
|
1899
|
-
--tw-ring-color: initial;
|
|
1900
|
-
--tw-ring-shadow: 0 0 #0000;
|
|
1901
|
-
--tw-inset-ring-color: initial;
|
|
1902
|
-
--tw-inset-ring-shadow: 0 0 #0000;
|
|
1903
|
-
--tw-ring-inset: initial;
|
|
1904
|
-
--tw-ring-offset-width: 0px;
|
|
1905
|
-
--tw-ring-offset-color: #fff;
|
|
1906
|
-
--tw-ring-offset-shadow: 0 0 #0000;
|
|
1907
|
-
--tw-outline-style: solid;
|
|
1908
|
-
--tw-blur: initial;
|
|
1909
|
-
--tw-brightness: initial;
|
|
1910
|
-
--tw-contrast: initial;
|
|
1911
|
-
--tw-grayscale: initial;
|
|
1912
|
-
--tw-hue-rotate: initial;
|
|
1913
|
-
--tw-invert: initial;
|
|
1914
|
-
--tw-opacity: initial;
|
|
1915
|
-
--tw-saturate: initial;
|
|
1916
|
-
--tw-sepia: initial;
|
|
1917
|
-
--tw-drop-shadow: initial;
|
|
1918
|
-
--tw-drop-shadow-color: initial;
|
|
1919
|
-
--tw-drop-shadow-alpha: 100%;
|
|
1920
|
-
--tw-drop-shadow-size: initial;
|
|
1921
|
-
--tw-backdrop-blur: initial;
|
|
1922
|
-
--tw-backdrop-brightness: initial;
|
|
1923
|
-
--tw-backdrop-contrast: initial;
|
|
1924
|
-
--tw-backdrop-grayscale: initial;
|
|
1925
|
-
--tw-backdrop-hue-rotate: initial;
|
|
1926
|
-
--tw-backdrop-invert: initial;
|
|
1927
|
-
--tw-backdrop-opacity: initial;
|
|
1928
|
-
--tw-backdrop-saturate: initial;
|
|
1929
|
-
--tw-backdrop-sepia: initial;
|
|
1930
|
-
--tw-duration: initial;
|
|
1931
|
-
}
|
|
1162
|
+
|
|
1163
|
+
@media (prefers-reduced-motion: reduce) {
|
|
1164
|
+
.kanban-root *,
|
|
1165
|
+
.kanban-portal * {
|
|
1166
|
+
animation-duration: 0.01ms !important;
|
|
1167
|
+
animation-iteration-count: 1 !important;
|
|
1168
|
+
transition-duration: 0.01ms !important;
|
|
1932
1169
|
}
|
|
1933
1170
|
}
|
|
1934
|
-
`;var
|
|
1171
|
+
`;var zs=require("react");var ge=require("react");var w=U(require("react")),pa=require("react-dom");var Ce=require("react");function ri(){for(var e=arguments.length,t=new Array(e),a=0;a<e;a++)t[a]=arguments[a];return(0,Ce.useMemo)(()=>o=>{t.forEach(r=>r(o))},t)}var Mo=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";function sa(e){let t=Object.prototype.toString.call(e);return t==="[object Window]"||t==="[object global]"}function yr(e){return"nodeType"in e}function Ue(e){var t,a;return e?sa(e)?e:yr(e)&&(t=(a=e.ownerDocument)==null?void 0:a.defaultView)!=null?t:window:window}function Rr(e){let{Document:t}=Ue(e);return e instanceof t}function $a(e){return sa(e)?!1:e instanceof Ue(e).HTMLElement}function Gn(e){return e instanceof Ue(e).SVGElement}function ia(e){return e?sa(e)?e.document:yr(e)?Rr(e)?e:$a(e)||Gn(e)?e.ownerDocument:document:document:document}var et=Mo?Ce.useLayoutEffect:Ce.useEffect;function Ao(e){let t=(0,Ce.useRef)(e);return et(()=>{t.current=e}),(0,Ce.useCallback)(function(){for(var a=arguments.length,o=new Array(a),r=0;r<a;r++)o[r]=arguments[r];return t.current==null?void 0:t.current(...o)},[])}function ni(){let e=(0,Ce.useRef)(null),t=(0,Ce.useCallback)((o,r)=>{e.current=setInterval(o,r)},[]),a=(0,Ce.useCallback)(()=>{e.current!==null&&(clearInterval(e.current),e.current=null)},[]);return[t,a]}function Ya(e,t){t===void 0&&(t=[e]);let a=(0,Ce.useRef)(e);return et(()=>{a.current!==e&&(a.current=e)},t),a}function Za(e,t){let a=(0,Ce.useRef)();return(0,Ce.useMemo)(()=>{let o=e(a.current);return a.current=o,o},[...t])}function To(e){let t=Ao(e),a=(0,Ce.useRef)(null),o=(0,Ce.useCallback)(r=>{r!==a.current&&t?.(r,a.current),a.current=r},[]);return[a,o]}function Eo(e){let t=(0,Ce.useRef)();return(0,Ce.useEffect)(()=>{t.current=e},[e]),t.current}var Wn={};function ua(e,t){return(0,Ce.useMemo)(()=>{if(t)return t;let a=Wn[e]==null?0:Wn[e]+1;return Wn[e]=a,e+"-"+a},[e,t])}function li(e){return function(t){for(var a=arguments.length,o=new Array(a>1?a-1:0),r=1;r<a;r++)o[r-1]=arguments[r];return o.reduce((n,l)=>{let s=Object.entries(l);for(let[i,u]of s){let c=n[i];c!=null&&(n[i]=c+e*u)}return n},{...t})}}var da=li(1),ca=li(-1);function wp(e){return"clientX"in e&&"clientY"in e}function Ja(e){if(!e)return!1;let{KeyboardEvent:t}=Ue(e.target);return t&&e instanceof t}function Sp(e){if(!e)return!1;let{TouchEvent:t}=Ue(e.target);return t&&e instanceof t}function Oo(e){if(Sp(e)){if(e.touches&&e.touches.length){let{clientX:t,clientY:a}=e.touches[0];return{x:t,y:a}}else if(e.changedTouches&&e.changedTouches.length){let{clientX:t,clientY:a}=e.changedTouches[0];return{x:t,y:a}}}return wp(e)?{x:e.clientX,y:e.clientY}:null}var Qe=Object.freeze({Translate:{toString(e){if(!e)return;let{x:t,y:a}=e;return"translate3d("+(t?Math.round(t):0)+"px, "+(a?Math.round(a):0)+"px, 0)"}},Scale:{toString(e){if(!e)return;let{scaleX:t,scaleY:a}=e;return"scaleX("+t+") scaleY("+a+")"}},Transform:{toString(e){if(e)return[Qe.Translate.toString(e),Qe.Scale.toString(e)].join(" ")}},Transition:{toString(e){let{property:t,duration:a,easing:o}=e;return t+" "+a+"ms "+o}}}),oi="a,frame,iframe,input:not([type=hidden]):not(:disabled),select:not(:disabled),textarea:not(:disabled),button:not(:disabled),*[tabindex]";function si(e){return e.matches(oi)?e:e.querySelector(oi)}var fa=U(require("react")),yp={display:"none"};function ii(e){let{id:t,value:a}=e;return fa.default.createElement("div",{id:t,style:yp},a)}function ui(e){let{id:t,announcement:a,ariaLiveType:o="assertive"}=e,r={position:"fixed",top:0,left:0,width:1,height:1,margin:-1,border:0,padding:0,overflow:"hidden",clip:"rect(0 0 0 0)",clipPath:"inset(100%)",whiteSpace:"nowrap"};return fa.default.createElement("div",{id:t,style:r,role:"status","aria-live":o,"aria-atomic":!0},a)}function di(){let[e,t]=(0,fa.useState)("");return{announce:(0,fa.useCallback)(o=>{o!=null&&t(o)},[]),announcement:e}}var wi=(0,w.createContext)(null);function Rp(e){let t=(0,w.useContext)(wi);(0,w.useEffect)(()=>{if(!t)throw new Error("useDndMonitor must be used within a children of <DndContext>");return t(e)},[e,t])}function Pp(){let[e]=(0,w.useState)(()=>new Set),t=(0,w.useCallback)(o=>(e.add(o),()=>e.delete(o)),[e]);return[(0,w.useCallback)(o=>{let{type:r,event:n}=o;e.forEach(l=>{var s;return(s=l[r])==null?void 0:s.call(l,n)})},[e]),t]}var kp={draggable:`
|
|
1935
1172
|
To pick up a draggable item, press the space bar.
|
|
1936
1173
|
While dragging, use the arrow keys to move the item.
|
|
1937
1174
|
Press space again to drop the item in its new position, or press escape to cancel.
|
|
1938
|
-
`},Yp={onDragStart(e){let{active:t}=e;return"Picked up draggable item "+t.id+"."},onDragOver(e){let{active:t,over:a}=e;return a?"Draggable item "+t.id+" was moved over droppable area "+a.id+".":"Draggable item "+t.id+" is no longer over a droppable area."},onDragEnd(e){let{active:t,over:a}=e;return a?"Draggable item "+t.id+" was dropped over droppable area "+a.id:"Draggable item "+t.id+" was dropped."},onDragCancel(e){let{active:t}=e;return"Dragging was cancelled. Draggable item "+t.id+" was dropped."}};function Zp(e){let{announcements:t=Yp,container:a,hiddenTextDescribedById:o,screenReaderInstructions:r=$p}=e,{announce:n,announcement:s}=yi(),l=ma("DndLiveRegion"),[i,u]=(0,y.useState)(!1);if((0,y.useEffect)(()=>{u(!0)},[]),Kp((0,y.useMemo)(()=>({onDragStart(d){let{active:f}=d;n(t.onDragStart({active:f}))},onDragMove(d){let{active:f,over:g}=d;t.onDragMove&&n(t.onDragMove({active:f,over:g}))},onDragOver(d){let{active:f,over:g}=d;n(t.onDragOver({active:f,over:g}))},onDragEnd(d){let{active:f,over:g}=d;n(t.onDragEnd({active:f,over:g}))},onDragCancel(d){let{active:f,over:g}=d;n(t.onDragCancel({active:f,over:g}))}}),[n,t])),!i)return null;let c=y.default.createElement(y.default.Fragment,null,y.default.createElement(Ci,{id:o,value:r.draggable}),y.default.createElement(Li,{id:l,announcement:s}));return a?(0,va.createPortal)(c,a):c}var De;(function(e){e.DragStart="dragStart",e.DragMove="dragMove",e.DragEnd="dragEnd",e.DragCancel="dragCancel",e.DragOver="dragOver",e.RegisterDroppable="registerDroppable",e.SetDroppableDisabled="setDroppableDisabled",e.UnregisterDroppable="unregisterDroppable"})(De||(De={}));function Nr(){}function ro(e,t){return(0,y.useMemo)(()=>({sensor:e,options:t??{}}),[e,t])}function Ur(){for(var e=arguments.length,t=new Array(e),a=0;a<e;a++)t[a]=arguments[a];return(0,y.useMemo)(()=>[...t].filter(o=>o!=null),[...t])}var gt=Object.freeze({x:0,y:0});function cs(e,t){return Math.sqrt(Math.pow(e.x-t.x,2)+Math.pow(e.y-t.y,2))}function Jp(e,t){let a=qo(e);if(!a)return"0 0";let o={x:(a.x-t.left)/t.width*100,y:(a.y-t.top)/t.height*100};return o.x+"% "+o.y+"%"}function fs(e,t){let{data:{value:a}}=e,{data:{value:o}}=t;return a-o}function Qp(e,t){let{data:{value:a}}=e,{data:{value:o}}=t;return o-a}function ns(e){let{left:t,top:a,height:o,width:r}=e;return[{x:t,y:a},{x:t+r,y:a},{x:t,y:a+o},{x:t+r,y:a+o}]}function jo(e,t){if(!e||e.length===0)return null;let[a]=e;return t?a[t]:a}function Ii(e,t,a){return t===void 0&&(t=e.left),a===void 0&&(a=e.top),{x:t+e.width*.5,y:a+e.height*.5}}var Ni=e=>{let{collisionRect:t,droppableRects:a,droppableContainers:o}=e,r=Ii(t,t.left,t.top),n=[];for(let s of o){let{id:l}=s,i=a.get(l);if(i){let u=cs(Ii(i),r);n.push({id:l,data:{droppableContainer:s,value:u}})}}return n.sort(fs)},Hr=e=>{let{collisionRect:t,droppableRects:a,droppableContainers:o}=e,r=ns(t),n=[];for(let s of o){let{id:l}=s,i=a.get(l);if(i){let u=ns(i),c=r.reduce((f,g,h)=>f+cs(u[h],g),0),d=Number((c/4).toFixed(4));n.push({id:l,data:{droppableContainer:s,value:d}})}}return n.sort(fs)};function em(e,t){let a=Math.max(t.top,e.top),o=Math.max(t.left,e.left),r=Math.min(t.left+t.width,e.left+e.width),n=Math.min(t.top+t.height,e.top+e.height),s=r-o,l=n-a;if(o<r&&a<n){let i=t.width*t.height,u=e.width*e.height,c=s*l,d=c/(i+u-c);return Number(d.toFixed(4))}return 0}var ps=e=>{let{collisionRect:t,droppableRects:a,droppableContainers:o}=e,r=[];for(let n of o){let{id:s}=n,l=a.get(s);if(l){let i=em(l,t);i>0&&r.push({id:s,data:{droppableContainer:n,value:i}})}}return r.sort(Qp)};function tm(e,t){let{top:a,left:o,bottom:r,right:n}=t;return a<=e.y&&e.y<=r&&o<=e.x&&e.x<=n}var _i=e=>{let{droppableContainers:t,droppableRects:a,pointerCoordinates:o}=e;if(!o)return[];let r=[];for(let n of t){let{id:s}=n,l=a.get(s);if(l&&tm(o,l)){let u=ns(l).reduce((d,f)=>d+cs(o,f),0),c=Number((u/4).toFixed(4));r.push({id:s,data:{droppableContainer:n,value:c}})}}return r.sort(fs)};function am(e,t,a){return{...e,scaleX:t&&a?t.width/a.width:1,scaleY:t&&a?t.height/a.height:1}}function Ui(e,t){return e&&t?{x:e.left-t.left,y:e.top-t.top}:gt}function om(e){return function(a){for(var o=arguments.length,r=new Array(o>1?o-1:0),n=1;n<o;n++)r[n-1]=arguments[n];return r.reduce((s,l)=>({...s,top:s.top+e*l.y,bottom:s.bottom+e*l.y,left:s.left+e*l.x,right:s.right+e*l.x}),{...a})}}var rm=om(1);function Hi(e){if(e.startsWith("matrix3d(")){let t=e.slice(9,-1).split(/, /);return{x:+t[12],y:+t[13],scaleX:+t[0],scaleY:+t[5]}}else if(e.startsWith("matrix(")){let t=e.slice(7,-1).split(/, /);return{x:+t[4],y:+t[5],scaleX:+t[0],scaleY:+t[3]}}return null}function nm(e,t,a){let o=Hi(t);if(!o)return e;let{scaleX:r,scaleY:n,x:s,y:l}=o,i=e.left-s-(1-r)*parseFloat(a),u=e.top-l-(1-n)*parseFloat(a.slice(a.indexOf(" ")+1)),c=r?e.width/r:e.width,d=n?e.height/n:e.height;return{width:c,height:d,top:u,right:i+c,bottom:u+d,left:i}}var sm={ignoreTransform:!1};function Ca(e,t){t===void 0&&(t=sm);let a=e.getBoundingClientRect();if(t.ignoreTransform){let{transform:u,transformOrigin:c}=ze(e).getComputedStyle(e);u&&(a=nm(a,u,c))}let{top:o,left:r,width:n,height:s,bottom:l,right:i}=a;return{top:o,left:r,width:n,height:s,bottom:l,right:i}}function Si(e){return Ca(e,{ignoreTransform:!0})}function lm(e){let t=e.innerWidth,a=e.innerHeight;return{top:0,left:0,right:t,bottom:a,width:t,height:a}}function im(e,t){return t===void 0&&(t=ze(e).getComputedStyle(e)),t.position==="fixed"}function um(e,t){t===void 0&&(t=ze(e).getComputedStyle(e));let a=/(auto|scroll|overlay)/;return["overflow","overflowX","overflowY"].some(r=>{let n=t[r];return typeof n=="string"?a.test(n):!1})}function Ko(e,t){let a=[];function o(r){if(t!=null&&a.length>=t||!r)return a;if(Fr(r)&&r.scrollingElement!=null&&!a.includes(r.scrollingElement))return a.push(r.scrollingElement),a;if(!eo(r)||ts(r)||a.includes(r))return a;let n=ze(e).getComputedStyle(r);return r!==e&&um(r,n)&&a.push(r),im(r,n)?a:o(r.parentNode)}return e?o(e):a}function qi(e){let[t]=Ko(e,1);return t??null}function as(e){return!No||!e?null:fa(e)?e:Or(e)?Fr(e)||e===pa(e).scrollingElement?window:eo(e)?e:null:null}function zi(e){return fa(e)?e.scrollX:e.scrollLeft}function Vi(e){return fa(e)?e.scrollY:e.scrollTop}function ss(e){return{x:zi(e),y:Vi(e)}}var Me;(function(e){e[e.Forward=1]="Forward",e[e.Backward=-1]="Backward"})(Me||(Me={}));function Gi(e){return!No||!e?!1:e===document.scrollingElement}function Wi(e){let t={x:0,y:0},a=Gi(e)?{height:window.innerHeight,width:window.innerWidth}:{height:e.clientHeight,width:e.clientWidth},o={x:e.scrollWidth-a.width,y:e.scrollHeight-a.height},r=e.scrollTop<=t.y,n=e.scrollLeft<=t.x,s=e.scrollTop>=o.y,l=e.scrollLeft>=o.x;return{isTop:r,isLeft:n,isBottom:s,isRight:l,maxScroll:o,minScroll:t}}var dm={x:.2,y:.2};function cm(e,t,a,o,r){let{top:n,left:s,right:l,bottom:i}=a;o===void 0&&(o=10),r===void 0&&(r=dm);let{isTop:u,isBottom:c,isLeft:d,isRight:f}=Wi(e),g={x:0,y:0},h={x:0,y:0},p={height:t.height*r.y,width:t.width*r.x};return!u&&n<=t.top+p.height?(g.y=Me.Backward,h.y=o*Math.abs((t.top+p.height-n)/p.height)):!c&&i>=t.bottom-p.height&&(g.y=Me.Forward,h.y=o*Math.abs((t.bottom-p.height-i)/p.height)),!f&&l>=t.right-p.width?(g.x=Me.Forward,h.x=o*Math.abs((t.right-p.width-l)/p.width)):!d&&s<=t.left+p.width&&(g.x=Me.Backward,h.x=o*Math.abs((t.left+p.width-s)/p.width)),{direction:g,speed:h}}function fm(e){if(e===document.scrollingElement){let{innerWidth:n,innerHeight:s}=window;return{top:0,left:0,right:n,bottom:s,width:n,height:s}}let{top:t,left:a,right:o,bottom:r}=e.getBoundingClientRect();return{top:t,left:a,right:o,bottom:r,width:e.clientWidth,height:e.clientHeight}}function ji(e){return e.reduce((t,a)=>ga(t,ss(a)),gt)}function pm(e){return e.reduce((t,a)=>t+zi(a),0)}function mm(e){return e.reduce((t,a)=>t+Vi(a),0)}function Ki(e,t){if(t===void 0&&(t=Ca),!e)return;let{top:a,left:o,bottom:r,right:n}=t(e);qi(e)&&(r<=0||n<=0||a>=window.innerHeight||o>=window.innerWidth)&&e.scrollIntoView({block:"center",inline:"center"})}var gm=[["x",["left","right"],pm],["y",["top","bottom"],mm]],Vo=class{constructor(t,a){this.rect=void 0,this.width=void 0,this.height=void 0,this.top=void 0,this.bottom=void 0,this.right=void 0,this.left=void 0;let o=Ko(a),r=ji(o);this.rect={...t},this.width=t.width,this.height=t.height;for(let[n,s,l]of gm)for(let i of s)Object.defineProperty(this,i,{get:()=>{let u=l(o),c=r[n]-u;return this.rect[i]+c},enumerable:!0});Object.defineProperty(this,"rect",{enumerable:!1})}},wa=class{constructor(t){this.target=void 0,this.listeners=[],this.removeAll=()=>{this.listeners.forEach(a=>{var o;return(o=this.target)==null?void 0:o.removeEventListener(...a)})},this.target=t}add(t,a,o){var r;(r=this.target)==null||r.addEventListener(t,a,o),this.listeners.push([t,a,o])}};function hm(e){let{EventTarget:t}=ze(e);return e instanceof t?e:pa(e)}function os(e,t){let a=Math.abs(e.x),o=Math.abs(e.y);return typeof t=="number"?Math.sqrt(a**2+o**2)>t:"x"in t&&"y"in t?a>t.x&&o>t.y:"x"in t?a>t.x:"y"in t?o>t.y:!1}var it;(function(e){e.Click="click",e.DragStart="dragstart",e.Keydown="keydown",e.ContextMenu="contextmenu",e.Resize="resize",e.SelectionChange="selectionchange",e.VisibilityChange="visibilitychange"})(it||(it={}));function Ri(e){e.preventDefault()}function xm(e){e.stopPropagation()}var ne;(function(e){e.Space="Space",e.Down="ArrowDown",e.Right="ArrowRight",e.Left="ArrowLeft",e.Up="ArrowUp",e.Esc="Escape",e.Enter="Enter",e.Tab="Tab"})(ne||(ne={}));var Xi={start:[ne.Space,ne.Enter],cancel:[ne.Esc],end:[ne.Space,ne.Enter,ne.Tab]},vm=(e,t)=>{let{currentCoordinates:a}=t;switch(e.code){case ne.Right:return{...a,x:a.x+25};case ne.Left:return{...a,x:a.x-25};case ne.Down:return{...a,y:a.y+25};case ne.Up:return{...a,y:a.y-25}}},ea=class{constructor(t){this.props=void 0,this.autoScrollEnabled=!1,this.referenceCoordinates=void 0,this.listeners=void 0,this.windowListeners=void 0,this.props=t;let{event:{target:a}}=t;this.props=t,this.listeners=new wa(pa(a)),this.windowListeners=new wa(ze(a)),this.handleKeyDown=this.handleKeyDown.bind(this),this.handleCancel=this.handleCancel.bind(this),this.attach()}attach(){this.handleStart(),this.windowListeners.add(it.Resize,this.handleCancel),this.windowListeners.add(it.VisibilityChange,this.handleCancel),setTimeout(()=>this.listeners.add(it.Keydown,this.handleKeyDown))}handleStart(){let{activeNode:t,onStart:a}=this.props,o=t.node.current;o&&Ki(o),a(gt)}handleKeyDown(t){if(oo(t)){let{active:a,context:o,options:r}=this.props,{keyboardCodes:n=Xi,coordinateGetter:s=vm,scrollBehavior:l="smooth"}=r,{code:i}=t;if(n.end.includes(i)){this.handleEnd(t);return}if(n.cancel.includes(i)){this.handleCancel(t);return}let{collisionRect:u}=o.current,c=u?{x:u.left,y:u.top}:gt;this.referenceCoordinates||(this.referenceCoordinates=c);let d=s(t,{active:a,context:o.current,currentCoordinates:c});if(d){let f=ha(d,c),g={x:0,y:0},{scrollableAncestors:h}=o.current;for(let p of h){let m=t.code,{isTop:x,isRight:w,isLeft:v,isBottom:b,maxScroll:C,minScroll:L}=Wi(p),I=fm(p),S={x:Math.min(m===ne.Right?I.right-I.width/2:I.right,Math.max(m===ne.Right?I.left:I.left+I.width/2,d.x)),y:Math.min(m===ne.Down?I.bottom-I.height/2:I.bottom,Math.max(m===ne.Down?I.top:I.top+I.height/2,d.y))},P=m===ne.Right&&!w||m===ne.Left&&!v,E=m===ne.Down&&!b||m===ne.Up&&!x;if(P&&S.x!==d.x){let M=p.scrollLeft+f.x,D=m===ne.Right&&M<=C.x||m===ne.Left&&M>=L.x;if(D&&!f.y){p.scrollTo({left:M,behavior:l});return}D?g.x=p.scrollLeft-M:g.x=m===ne.Right?p.scrollLeft-C.x:p.scrollLeft-L.x,g.x&&p.scrollBy({left:-g.x,behavior:l});break}else if(E&&S.y!==d.y){let M=p.scrollTop+f.y,D=m===ne.Down&&M<=C.y||m===ne.Up&&M>=L.y;if(D&&!f.x){p.scrollTo({top:M,behavior:l});return}D?g.y=p.scrollTop-M:g.y=m===ne.Down?p.scrollTop-C.y:p.scrollTop-L.y,g.y&&p.scrollBy({top:-g.y,behavior:l});break}}this.handleMove(t,ga(ha(d,this.referenceCoordinates),g))}}}handleMove(t,a){let{onMove:o}=this.props;t.preventDefault(),o(a)}handleEnd(t){let{onEnd:a}=this.props;t.preventDefault(),this.detach(),a()}handleCancel(t){let{onCancel:a}=this.props;t.preventDefault(),this.detach(),a()}detach(){this.listeners.removeAll(),this.windowListeners.removeAll()}};ea.activators=[{eventName:"onKeyDown",handler:(e,t,a)=>{let{keyboardCodes:o=Xi,onActivation:r}=t,{active:n}=a,{code:s}=e.nativeEvent;if(o.start.includes(s)){let l=n.activatorNode.current;return l&&e.target!==l?!1:(e.preventDefault(),r?.({event:e.nativeEvent}),!0)}return!1}}];function Pi(e){return!!(e&&"distance"in e)}function Di(e){return!!(e&&"delay"in e)}var Go=class{constructor(t,a,o){var r;o===void 0&&(o=hm(t.event.target)),this.props=void 0,this.events=void 0,this.autoScrollEnabled=!0,this.document=void 0,this.activated=!1,this.initialCoordinates=void 0,this.timeoutId=null,this.listeners=void 0,this.documentListeners=void 0,this.windowListeners=void 0,this.props=t,this.events=a;let{event:n}=t,{target:s}=n;this.props=t,this.events=a,this.document=pa(s),this.documentListeners=new wa(this.document),this.listeners=new wa(o),this.windowListeners=new wa(ze(s)),this.initialCoordinates=(r=qo(n))!=null?r:gt,this.handleStart=this.handleStart.bind(this),this.handleMove=this.handleMove.bind(this),this.handleEnd=this.handleEnd.bind(this),this.handleCancel=this.handleCancel.bind(this),this.handleKeydown=this.handleKeydown.bind(this),this.removeTextSelection=this.removeTextSelection.bind(this),this.attach()}attach(){let{events:t,props:{options:{activationConstraint:a,bypassActivationConstraint:o}}}=this;if(this.listeners.add(t.move.name,this.handleMove,{passive:!1}),this.listeners.add(t.end.name,this.handleEnd),t.cancel&&this.listeners.add(t.cancel.name,this.handleCancel),this.windowListeners.add(it.Resize,this.handleCancel),this.windowListeners.add(it.DragStart,Ri),this.windowListeners.add(it.VisibilityChange,this.handleCancel),this.windowListeners.add(it.ContextMenu,Ri),this.documentListeners.add(it.Keydown,this.handleKeydown),a){if(o!=null&&o({event:this.props.event,activeNode:this.props.activeNode,options:this.props.options}))return this.handleStart();if(Di(a)){this.timeoutId=setTimeout(this.handleStart,a.delay),this.handlePending(a);return}if(Pi(a)){this.handlePending(a);return}}this.handleStart()}detach(){this.listeners.removeAll(),this.windowListeners.removeAll(),setTimeout(this.documentListeners.removeAll,50),this.timeoutId!==null&&(clearTimeout(this.timeoutId),this.timeoutId=null)}handlePending(t,a){let{active:o,onPending:r}=this.props;r(o,t,this.initialCoordinates,a)}handleStart(){let{initialCoordinates:t}=this,{onStart:a}=this.props;t&&(this.activated=!0,this.documentListeners.add(it.Click,xm,{capture:!0}),this.removeTextSelection(),this.documentListeners.add(it.SelectionChange,this.removeTextSelection),a(t))}handleMove(t){var a;let{activated:o,initialCoordinates:r,props:n}=this,{onMove:s,options:{activationConstraint:l}}=n;if(!r)return;let i=(a=qo(t))!=null?a:gt,u=ha(r,i);if(!o&&l){if(Pi(l)){if(l.tolerance!=null&&os(u,l.tolerance))return this.handleCancel();if(os(u,l.distance))return this.handleStart()}if(Di(l)&&os(u,l.tolerance))return this.handleCancel();this.handlePending(l,u);return}t.cancelable&&t.preventDefault(),s(i)}handleEnd(){let{onAbort:t,onEnd:a}=this.props;this.detach(),this.activated||t(this.props.active),a()}handleCancel(){let{onAbort:t,onCancel:a}=this.props;this.detach(),this.activated||t(this.props.active),a()}handleKeydown(t){t.code===ne.Esc&&this.handleCancel()}removeTextSelection(){var t;(t=this.document.getSelection())==null||t.removeAllRanges()}},wm={cancel:{name:"pointercancel"},move:{name:"pointermove"},end:{name:"pointerup"}},ta=class extends Go{constructor(t){let{event:a}=t,o=pa(a.target);super(t,wm,o)}};ta.activators=[{eventName:"onPointerDown",handler:(e,t)=>{let{nativeEvent:a}=e,{onActivation:o}=t;return!a.isPrimary||a.button!==0?!1:(o?.({event:a}),!0)}}];var bm={move:{name:"mousemove"},end:{name:"mouseup"}},ls;(function(e){e[e.RightClick=2]="RightClick"})(ls||(ls={}));var is=class extends Go{constructor(t){super(t,bm,pa(t.event.target))}};is.activators=[{eventName:"onMouseDown",handler:(e,t)=>{let{nativeEvent:a}=e,{onActivation:o}=t;return a.button===ls.RightClick?!1:(o?.({event:a}),!0)}}];var rs={cancel:{name:"touchcancel"},move:{name:"touchmove"},end:{name:"touchend"}},us=class extends Go{constructor(t){super(t,rs)}static setup(){return window.addEventListener(rs.move.name,t,{capture:!1,passive:!1}),function(){window.removeEventListener(rs.move.name,t)};function t(){}}};us.activators=[{eventName:"onTouchStart",handler:(e,t)=>{let{nativeEvent:a}=e,{onActivation:o}=t,{touches:r}=a;return r.length>1?!1:(o?.({event:a}),!0)}}];var zo;(function(e){e[e.Pointer=0]="Pointer",e[e.DraggableRect=1]="DraggableRect"})(zo||(zo={}));var _r;(function(e){e[e.TreeOrder=0]="TreeOrder",e[e.ReversedTreeOrder=1]="ReversedTreeOrder"})(_r||(_r={}));function Cm(e){let{acceleration:t,activator:a=zo.Pointer,canScroll:o,draggingRect:r,enabled:n,interval:s=5,order:l=_r.TreeOrder,pointerCoordinates:i,scrollableAncestors:u,scrollableAncestorRects:c,delta:d,threshold:f}=e,g=ym({delta:d,disabled:!n}),[h,p]=vi(),m=(0,y.useRef)({x:0,y:0}),x=(0,y.useRef)({x:0,y:0}),w=(0,y.useMemo)(()=>{switch(a){case zo.Pointer:return i?{top:i.y,bottom:i.y,left:i.x,right:i.x}:null;case zo.DraggableRect:return r}},[a,r,i]),v=(0,y.useRef)(null),b=(0,y.useCallback)(()=>{let L=v.current;if(!L)return;let I=m.current.x*x.current.x,S=m.current.y*x.current.y;L.scrollBy(I,S)},[]),C=(0,y.useMemo)(()=>l===_r.TreeOrder?[...u].reverse():u,[l,u]);(0,y.useEffect)(()=>{if(!n||!u.length||!w){p();return}for(let L of C){if(o?.(L)===!1)continue;let I=u.indexOf(L),S=c[I];if(!S)continue;let{direction:P,speed:E}=cm(L,S,w,t,f);for(let M of["x","y"])g[M][P[M]]||(E[M]=0,P[M]=0);if(E.x>0||E.y>0){p(),v.current=L,h(b,s),m.current=E,x.current=P;return}}m.current={x:0,y:0},x.current={x:0,y:0},p()},[t,b,o,p,n,s,JSON.stringify(w),JSON.stringify(g),h,u,C,c,JSON.stringify(f)])}var Lm={x:{[Me.Backward]:!1,[Me.Forward]:!1},y:{[Me.Backward]:!1,[Me.Forward]:!1}};function ym(e){let{delta:t,disabled:a}=e,o=Ho(t);return ao(r=>{if(a||!o||!r)return Lm;let n={x:Math.sign(t.x-o.x),y:Math.sign(t.y-o.y)};return{x:{[Me.Backward]:r.x[Me.Backward]||n.x===-1,[Me.Forward]:r.x[Me.Forward]||n.x===1},y:{[Me.Backward]:r.y[Me.Backward]||n.y===-1,[Me.Forward]:r.y[Me.Forward]||n.y===1}}},[a,t,o])}function Im(e,t){let a=t!=null?e.get(t):void 0,o=a?a.node.current:null;return ao(r=>{var n;return t==null?null:(n=o??r)!=null?n:null},[o,t])}function Sm(e,t){return(0,y.useMemo)(()=>e.reduce((a,o)=>{let{sensor:r}=o,n=r.activators.map(s=>({eventName:s.eventName,handler:t(s.handler,o)}));return[...a,...n]},[]),[e,t])}var Wo;(function(e){e[e.Always=0]="Always",e[e.BeforeDragging=1]="BeforeDragging",e[e.WhileDragging=2]="WhileDragging"})(Wo||(Wo={}));var ds;(function(e){e.Optimized="optimized"})(ds||(ds={}));var ki=new Map;function Rm(e,t){let{dragging:a,dependencies:o,config:r}=t,[n,s]=(0,y.useState)(null),{frequency:l,measure:i,strategy:u}=r,c=(0,y.useRef)(e),d=m(),f=to(d),g=(0,y.useCallback)(function(x){x===void 0&&(x=[]),!f.current&&s(w=>w===null?x:w.concat(x.filter(v=>!w.includes(v))))},[f]),h=(0,y.useRef)(null),p=ao(x=>{if(d&&!a)return ki;if(!x||x===ki||c.current!==e||n!=null){let w=new Map;for(let v of e){if(!v)continue;if(n&&n.length>0&&!n.includes(v.id)&&v.rect.current){w.set(v.id,v.rect.current);continue}let b=v.node.current,C=b?new Vo(i(b),b):null;v.rect.current=C,C&&w.set(v.id,C)}return w}return x},[e,n,a,d,i]);return(0,y.useEffect)(()=>{c.current=e},[e]),(0,y.useEffect)(()=>{d||g()},[a,d]),(0,y.useEffect)(()=>{n&&n.length>0&&s(null)},[JSON.stringify(n)]),(0,y.useEffect)(()=>{d||typeof l!="number"||h.current!==null||(h.current=setTimeout(()=>{g(),h.current=null},l))},[l,d,g,...o]),{droppableRects:p,measureDroppableContainers:g,measuringScheduled:n!=null};function m(){switch(u){case Wo.Always:return!1;case Wo.BeforeDragging:return a;default:return!a}}}function ms(e,t){return ao(a=>e?a||(typeof t=="function"?t(e):e):null,[t,e])}function Pm(e,t){return ms(e,t)}function Dm(e){let{callback:t,disabled:a}=e,o=_o(t),r=(0,y.useMemo)(()=>{if(a||typeof window>"u"||typeof window.MutationObserver>"u")return;let{MutationObserver:n}=window;return new n(o)},[o,a]);return(0,y.useEffect)(()=>()=>r?.disconnect(),[r]),r}function qr(e){let{callback:t,disabled:a}=e,o=_o(t),r=(0,y.useMemo)(()=>{if(a||typeof window>"u"||typeof window.ResizeObserver>"u")return;let{ResizeObserver:n}=window;return new n(o)},[a]);return(0,y.useEffect)(()=>()=>r?.disconnect(),[r]),r}function km(e){return new Vo(Ca(e),e)}function Mi(e,t,a){t===void 0&&(t=km);let[o,r]=(0,y.useState)(null);function n(){r(i=>{if(!e)return null;if(e.isConnected===!1){var u;return(u=i??a)!=null?u:null}let c=t(e);return JSON.stringify(i)===JSON.stringify(c)?i:c})}let s=Dm({callback(i){if(e)for(let u of i){let{type:c,target:d}=u;if(c==="childList"&&d instanceof HTMLElement&&d.contains(e)){n();break}}}}),l=qr({callback:n});return at(()=>{n(),e?(l?.observe(e),s?.observe(document.body,{childList:!0,subtree:!0})):(l?.disconnect(),s?.disconnect())},[e]),o}function Mm(e){let t=ms(e);return Ui(e,t)}var Ai=[];function Am(e){let t=(0,y.useRef)(e),a=ao(o=>e?o&&o!==Ai&&e&&t.current&&e.parentNode===t.current.parentNode?o:Ko(e):Ai,[e]);return(0,y.useEffect)(()=>{t.current=e},[e]),a}function Tm(e){let[t,a]=(0,y.useState)(null),o=(0,y.useRef)(e),r=(0,y.useCallback)(n=>{let s=as(n.target);s&&a(l=>l?(l.set(s,ss(s)),new Map(l)):null)},[]);return(0,y.useEffect)(()=>{let n=o.current;if(e!==n){s(n);let l=e.map(i=>{let u=as(i);return u?(u.addEventListener("scroll",r,{passive:!0}),[u,ss(u)]):null}).filter(i=>i!=null);a(l.length?new Map(l):null),o.current=e}return()=>{s(e),s(n)};function s(l){l.forEach(i=>{let u=as(i);u?.removeEventListener("scroll",r)})}},[r,e]),(0,y.useMemo)(()=>e.length?t?Array.from(t.values()).reduce((n,s)=>ga(n,s),gt):ji(e):gt,[e,t])}function Ti(e,t){t===void 0&&(t=[]);let a=(0,y.useRef)(null);return(0,y.useEffect)(()=>{a.current=null},t),(0,y.useEffect)(()=>{let o=e!==gt;o&&!a.current&&(a.current=e),!o&&a.current&&(a.current=null)},[e]),a.current?ha(e,a.current):gt}function Em(e){(0,y.useEffect)(()=>{if(!No)return;let t=e.map(a=>{let{sensor:o}=a;return o.setup==null?void 0:o.setup()});return()=>{for(let a of t)a?.()}},e.map(t=>{let{sensor:a}=t;return a}))}function Om(e,t){return(0,y.useMemo)(()=>e.reduce((a,o)=>{let{eventName:r,handler:n}=o;return a[r]=s=>{n(s,t)},a},{}),[e,t])}function $i(e){return(0,y.useMemo)(()=>e?lm(e):null,[e])}var Ei=[];function Fm(e,t){t===void 0&&(t=Ca);let[a]=e,o=$i(a?ze(a):null),[r,n]=(0,y.useState)(Ei);function s(){n(()=>e.length?e.map(i=>Gi(i)?o:new Vo(t(i),i)):Ei)}let l=qr({callback:s});return at(()=>{l?.disconnect(),s(),e.forEach(i=>l?.observe(i))},[e]),r}function Yi(e){if(!e)return null;if(e.children.length>1)return e;let t=e.children[0];return eo(t)?t:e}function Bm(e){let{measure:t}=e,[a,o]=(0,y.useState)(null),r=(0,y.useCallback)(u=>{for(let{target:c}of u)if(eo(c)){o(d=>{let f=t(c);return d?{...d,width:f.width,height:f.height}:f});break}},[t]),n=qr({callback:r}),s=(0,y.useCallback)(u=>{let c=Yi(u);n?.disconnect(),c&&n?.observe(c),o(c?t(c):null)},[t,n]),[l,i]=Uo(s);return(0,y.useMemo)(()=>({nodeRef:l,rect:a,setRef:i}),[a,l,i])}var Nm=[{sensor:ta,options:{}},{sensor:ea,options:{}}],_m={current:{}},Br={draggable:{measure:Si},droppable:{measure:Si,strategy:Wo.WhileDragging,frequency:ds.Optimized},dragOverlay:{measure:Ca}},ba=class extends Map{get(t){var a;return t!=null&&(a=super.get(t))!=null?a:void 0}toArray(){return Array.from(this.values())}getEnabled(){return this.toArray().filter(t=>{let{disabled:a}=t;return!a})}getNodeFor(t){var a,o;return(a=(o=this.get(t))==null?void 0:o.node.current)!=null?a:void 0}},Um={activatorEvent:null,active:null,activeNode:null,activeNodeRect:null,collisions:null,containerNodeRect:null,draggableNodes:new Map,droppableRects:new Map,droppableContainers:new ba,over:null,dragOverlay:{nodeRef:{current:null},rect:null,setRef:Nr},scrollableAncestors:[],scrollableAncestorRects:[],measuringConfiguration:Br,measureDroppableContainers:Nr,windowRect:null,measuringScheduled:!1},Zi={activatorEvent:null,activators:[],active:null,activeNodeRect:null,ariaDescribedById:{draggable:""},dispatch:Nr,draggableNodes:new Map,over:null,measureDroppableContainers:Nr},Xo=(0,y.createContext)(Zi),Ji=(0,y.createContext)(Um);function Hm(){return{draggable:{active:null,initialCoordinates:{x:0,y:0},nodes:new Map,translate:{x:0,y:0}},droppable:{containers:new ba}}}function qm(e,t){switch(t.type){case De.DragStart:return{...e,draggable:{...e.draggable,initialCoordinates:t.initialCoordinates,active:t.active}};case De.DragMove:return e.draggable.active==null?e:{...e,draggable:{...e.draggable,translate:{x:t.coordinates.x-e.draggable.initialCoordinates.x,y:t.coordinates.y-e.draggable.initialCoordinates.y}}};case De.DragEnd:case De.DragCancel:return{...e,draggable:{...e.draggable,active:null,initialCoordinates:{x:0,y:0},translate:{x:0,y:0}}};case De.RegisterDroppable:{let{element:a}=t,{id:o}=a,r=new ba(e.droppable.containers);return r.set(o,a),{...e,droppable:{...e.droppable,containers:r}}}case De.SetDroppableDisabled:{let{id:a,key:o,disabled:r}=t,n=e.droppable.containers.get(a);if(!n||o!==n.key)return e;let s=new ba(e.droppable.containers);return s.set(a,{...n,disabled:r}),{...e,droppable:{...e.droppable,containers:s}}}case De.UnregisterDroppable:{let{id:a,key:o}=t,r=e.droppable.containers.get(a);if(!r||o!==r.key)return e;let n=new ba(e.droppable.containers);return n.delete(a),{...e,droppable:{...e.droppable,containers:n}}}default:return e}}function zm(e){let{disabled:t}=e,{active:a,activatorEvent:o,draggableNodes:r}=(0,y.useContext)(Xo),n=Ho(o),s=Ho(a?.id);return(0,y.useEffect)(()=>{if(!t&&!o&&n&&s!=null){if(!oo(n)||document.activeElement===n.target)return;let l=r.get(s);if(!l)return;let{activatorNode:i,node:u}=l;if(!i.current&&!u.current)return;requestAnimationFrame(()=>{for(let c of[i.current,u.current]){if(!c)continue;let d=bi(c);if(d){d.focus();break}}})}},[o,t,r,s,n]),null}function Qi(e,t){let{transform:a,...o}=t;return e!=null&&e.length?e.reduce((r,n)=>n({transform:r,...o}),a):a}function Vm(e){return(0,y.useMemo)(()=>({draggable:{...Br.draggable,...e?.draggable},droppable:{...Br.droppable,...e?.droppable},dragOverlay:{...Br.dragOverlay,...e?.dragOverlay}}),[e?.draggable,e?.droppable,e?.dragOverlay])}function Gm(e){let{activeNode:t,measure:a,initialRect:o,config:r=!0}=e,n=(0,y.useRef)(!1),{x:s,y:l}=typeof r=="boolean"?{x:r,y:r}:r;at(()=>{if(!s&&!l||!t){n.current=!1;return}if(n.current||!o)return;let u=t?.node.current;if(!u||u.isConnected===!1)return;let c=a(u),d=Ui(c,o);if(s||(d.x=0),l||(d.y=0),n.current=!0,Math.abs(d.x)>0||Math.abs(d.y)>0){let f=qi(u);f&&f.scrollBy({top:d.y,left:d.x})}},[t,s,l,o,a])}var zr=(0,y.createContext)({...gt,scaleX:1,scaleY:1}),Qt;(function(e){e[e.Uninitialized=0]="Uninitialized",e[e.Initializing=1]="Initializing",e[e.Initialized=2]="Initialized"})(Qt||(Qt={}));var Vr=(0,y.memo)(function(t){var a,o,r,n;let{id:s,accessibility:l,autoScroll:i=!0,children:u,sensors:c=Nm,collisionDetection:d=ps,measuring:f,modifiers:g,...h}=t,p=(0,y.useReducer)(qm,void 0,Hm),[m,x]=p,[w,v]=Xp(),[b,C]=(0,y.useState)(Qt.Uninitialized),L=b===Qt.Initialized,{draggable:{active:I,nodes:S,translate:P},droppable:{containers:E}}=m,M=I!=null?S.get(I):null,D=(0,y.useRef)({initial:null,translated:null}),F=(0,y.useMemo)(()=>{var He;return I!=null?{id:I,data:(He=M?.data)!=null?He:_m,rect:D}:null},[I,M]),U=(0,y.useRef)(null),[Z,W]=(0,y.useState)(null),[O,B]=(0,y.useState)(null),H=to(h,Object.values(h)),T=ma("DndDescribedBy",s),le=(0,y.useMemo)(()=>E.getEnabled(),[E]),Q=Vm(f),{droppableRects:ie,measureDroppableContainers:ve,measuringScheduled:R}=Rm(le,{dragging:L,dependencies:[P.x,P.y],config:Q.droppable}),N=Im(S,I),G=(0,y.useMemo)(()=>O?qo(O):null,[O]),k=Fp(),X=Pm(N,Q.draggable.measure);Gm({activeNode:I!=null?S.get(I):null,config:k.layoutShiftCompensation,initialRect:X,measure:Q.draggable.measure});let _=Mi(N,Q.draggable.measure,X),$=Mi(N?N.parentElement:null),Y=(0,y.useRef)({activatorEvent:null,active:null,activeNode:N,collisionRect:null,collisions:null,droppableRects:ie,draggableNodes:S,draggingNode:null,draggingNodeRect:null,droppableContainers:E,over:null,scrollableAncestors:[],scrollAdjustedTranslate:null}),oe=E.getNodeFor((a=Y.current.over)==null?void 0:a.id),we=Bm({measure:Q.dragOverlay.measure}),Pe=(o=we.nodeRef.current)!=null?o:N,St=L?(r=we.rect)!=null?r:_:null,$a=!!(we.nodeRef.current&&we.rect),Ya=Mm($a?null:_),Yn=$i(Pe?ze(Pe):null),Xt=Am(L?oe??N:null),Ar=Fm(Xt),Tr=Qi(g,{transform:{x:P.x-Ya.x,y:P.y-Ya.y,scaleX:1,scaleY:1},activatorEvent:O,active:F,activeNodeRect:_,containerNodeRect:$,draggingNodeRect:St,over:Y.current.over,overlayNodeRect:we.rect,scrollableAncestors:Xt,scrollableAncestorRects:Ar,windowRect:Yn}),ni=G?ga(G,P):null,si=Tm(Xt),Dp=Ti(si),kp=Ti(si,[_]),Za=ga(Tr,Dp),Ja=St?rm(St,Tr):null,Eo=F&&Ja?d({active:F,collisionRect:Ja,droppableRects:ie,droppableContainers:le,pointerCoordinates:ni}):null,li=jo(Eo,"id"),[$t,ii]=(0,y.useState)(null),Mp=$a?Tr:ga(Tr,kp),Ap=am(Mp,(n=$t?.rect)!=null?n:null,_),Zn=(0,y.useRef)(null),ui=(0,y.useCallback)((He,Je)=>{let{sensor:Qe,options:Yt}=Je;if(U.current==null)return;let lt=S.get(U.current);if(!lt)return;let et=He.nativeEvent,Rt=new Qe({active:U.current,activeNode:lt,event:et,options:Yt,context:Y,onAbort(Be){if(!S.get(Be))return;let{onDragAbort:Pt}=H.current,Bt={id:Be};Pt?.(Bt),w({type:"onDragAbort",event:Bt})},onPending(Be,Zt,Pt,Bt){if(!S.get(Be))return;let{onDragPending:Fo}=H.current,Jt={id:Be,constraint:Zt,initialCoordinates:Pt,offset:Bt};Fo?.(Jt),w({type:"onDragPending",event:Jt})},onStart(Be){let Zt=U.current;if(Zt==null)return;let Pt=S.get(Zt);if(!Pt)return;let{onDragStart:Bt}=H.current,Oo={activatorEvent:et,active:{id:Zt,data:Pt.data,rect:D}};(0,va.unstable_batchedUpdates)(()=>{Bt?.(Oo),C(Qt.Initializing),x({type:De.DragStart,initialCoordinates:Be,active:Zt}),w({type:"onDragStart",event:Oo}),W(Zn.current),B(et)})},onMove(Be){x({type:De.DragMove,coordinates:Be})},onEnd:Qa(De.DragEnd),onCancel:Qa(De.DragCancel)});Zn.current=Rt;function Qa(Be){return async function(){let{active:Pt,collisions:Bt,over:Oo,scrollAdjustedTranslate:Fo}=Y.current,Jt=null;if(Pt&&Fo){let{cancelDrop:Bo}=H.current;Jt={activatorEvent:et,active:Pt,collisions:Bt,delta:Fo,over:Oo},Be===De.DragEnd&&typeof Bo=="function"&&await Promise.resolve(Bo(Jt))&&(Be=De.DragCancel)}U.current=null,(0,va.unstable_batchedUpdates)(()=>{x({type:Be}),C(Qt.Uninitialized),ii(null),W(null),B(null),Zn.current=null;let Bo=Be===De.DragEnd?"onDragEnd":"onDragCancel";if(Jt){let Jn=H.current[Bo];Jn?.(Jt),w({type:Bo,event:Jt})}})}}},[S]),Tp=(0,y.useCallback)((He,Je)=>(Qe,Yt)=>{let lt=Qe.nativeEvent,et=S.get(Yt);if(U.current!==null||!et||lt.dndKit||lt.defaultPrevented)return;let Rt={active:et};He(Qe,Je.options,Rt)===!0&&(lt.dndKit={capturedBy:Je.sensor},U.current=Yt,ui(Qe,Je))},[S,ui]),di=Sm(c,Tp);Em(c),at(()=>{_&&b===Qt.Initializing&&C(Qt.Initialized)},[_,b]),(0,y.useEffect)(()=>{let{onDragMove:He}=H.current,{active:Je,activatorEvent:Qe,collisions:Yt,over:lt}=Y.current;if(!Je||!Qe)return;let et={active:Je,activatorEvent:Qe,collisions:Yt,delta:{x:Za.x,y:Za.y},over:lt};(0,va.unstable_batchedUpdates)(()=>{He?.(et),w({type:"onDragMove",event:et})})},[Za.x,Za.y]),(0,y.useEffect)(()=>{let{active:He,activatorEvent:Je,collisions:Qe,droppableContainers:Yt,scrollAdjustedTranslate:lt}=Y.current;if(!He||U.current==null||!Je||!lt)return;let{onDragOver:et}=H.current,Rt=Yt.get(li),Qa=Rt&&Rt.rect.current?{id:Rt.id,rect:Rt.rect.current,data:Rt.data,disabled:Rt.disabled}:null,Be={active:He,activatorEvent:Je,collisions:Qe,delta:{x:lt.x,y:lt.y},over:Qa};(0,va.unstable_batchedUpdates)(()=>{ii(Qa),et?.(Be),w({type:"onDragOver",event:Be})})},[li]),at(()=>{Y.current={activatorEvent:O,active:F,activeNode:N,collisionRect:Ja,collisions:Eo,droppableRects:ie,draggableNodes:S,draggingNode:Pe,draggingNodeRect:St,droppableContainers:E,over:$t,scrollableAncestors:Xt,scrollAdjustedTranslate:Za},D.current={initial:St,translated:Ja}},[F,N,Eo,Ja,S,Pe,St,ie,E,$t,Xt,Za]),Cm({...k,delta:P,draggingRect:Ja,pointerCoordinates:ni,scrollableAncestors:Xt,scrollableAncestorRects:Ar});let Ep=(0,y.useMemo)(()=>({active:F,activeNode:N,activeNodeRect:_,activatorEvent:O,collisions:Eo,containerNodeRect:$,dragOverlay:we,draggableNodes:S,droppableContainers:E,droppableRects:ie,over:$t,measureDroppableContainers:ve,scrollableAncestors:Xt,scrollableAncestorRects:Ar,measuringConfiguration:Q,measuringScheduled:R,windowRect:Yn}),[F,N,_,O,Eo,$,we,S,E,ie,$t,ve,Xt,Ar,Q,R,Yn]),Op=(0,y.useMemo)(()=>({activatorEvent:O,activators:di,active:F,activeNodeRect:_,ariaDescribedById:{draggable:T},dispatch:x,draggableNodes:S,over:$t,measureDroppableContainers:ve}),[O,di,F,_,x,T,S,$t,ve]);return y.default.createElement(Bi.Provider,{value:v},y.default.createElement(Xo.Provider,{value:Op},y.default.createElement(Ji.Provider,{value:Ep},y.default.createElement(zr.Provider,{value:Ap},u)),y.default.createElement(zm,{disabled:l?.restoreFocus===!1})),y.default.createElement(Zp,{...l,hiddenTextDescribedById:T}));function Fp(){let He=Z?.autoScrollEnabled===!1,Je=typeof i=="object"?i.enabled===!1:i===!1,Qe=L&&!He&&!Je;return typeof i=="object"?{...i,enabled:Qe}:{enabled:Qe}}}),Wm=(0,y.createContext)(null),Oi="button",jm="Draggable";function eu(e){let{id:t,data:a,disabled:o=!1,attributes:r}=e,n=ma(jm),{activators:s,activatorEvent:l,active:i,activeNodeRect:u,ariaDescribedById:c,draggableNodes:d,over:f}=(0,y.useContext)(Xo),{role:g=Oi,roleDescription:h="draggable",tabIndex:p=0}=r??{},m=i?.id===t,x=(0,y.useContext)(m?zr:Wm),[w,v]=Uo(),[b,C]=Uo(),L=Om(s,t),I=to(a);at(()=>(d.set(t,{id:t,key:n,node:w,activatorNode:b,data:I}),()=>{let P=d.get(t);P&&P.key===n&&d.delete(t)}),[d,t]);let S=(0,y.useMemo)(()=>({role:g,tabIndex:p,"aria-disabled":o,"aria-pressed":m&&g===Oi?!0:void 0,"aria-roledescription":h,"aria-describedby":c.draggable}),[o,g,p,m,h,c.draggable]);return{active:i,activatorEvent:l,activeNodeRect:u,attributes:S,isDragging:m,listeners:o?void 0:L,node:w,over:f,setNodeRef:v,setActivatorNodeRef:C,transform:x}}function gs(){return(0,y.useContext)(Ji)}var Km="Droppable",Xm={timeout:25};function Gr(e){let{data:t,disabled:a=!1,id:o,resizeObserverConfig:r}=e,n=ma(Km),{active:s,dispatch:l,over:i,measureDroppableContainers:u}=(0,y.useContext)(Xo),c=(0,y.useRef)({disabled:a}),d=(0,y.useRef)(!1),f=(0,y.useRef)(null),g=(0,y.useRef)(null),{disabled:h,updateMeasurementsFor:p,timeout:m}={...Xm,...r},x=to(p??o),w=(0,y.useCallback)(()=>{if(!d.current){d.current=!0;return}g.current!=null&&clearTimeout(g.current),g.current=setTimeout(()=>{u(Array.isArray(x.current)?x.current:[x.current]),g.current=null},m)},[m]),v=qr({callback:w,disabled:h||!s}),b=(0,y.useCallback)((S,P)=>{v&&(P&&(v.unobserve(P),d.current=!1),S&&v.observe(S))},[v]),[C,L]=Uo(b),I=to(t);return(0,y.useEffect)(()=>{!v||!C.current||(v.disconnect(),d.current=!1,v.observe(C.current))},[C,v]),(0,y.useEffect)(()=>(l({type:De.RegisterDroppable,element:{id:o,key:n,disabled:a,node:C,rect:f,data:I}}),()=>l({type:De.UnregisterDroppable,key:n,id:o})),[o]),(0,y.useEffect)(()=>{a!==c.current.disabled&&(l({type:De.SetDroppableDisabled,id:o,key:n,disabled:a}),c.current.disabled=a)},[o,n,a,l]),{active:s,rect:f,isOver:i?.id===o,node:C,over:i,setNodeRef:L}}function $m(e){let{animation:t,children:a}=e,[o,r]=(0,y.useState)(null),[n,s]=(0,y.useState)(null),l=Ho(a);return!a&&!o&&l&&r(l),at(()=>{if(!n)return;let i=o?.key,u=o?.props.id;if(i==null||u==null){r(null);return}Promise.resolve(t(u,n)).then(()=>{r(null)})},[t,o,n]),y.default.createElement(y.default.Fragment,null,a,o?(0,y.cloneElement)(o,{ref:s}):null)}var Ym={x:0,y:0,scaleX:1,scaleY:1};function Zm(e){let{children:t}=e;return y.default.createElement(Xo.Provider,{value:Zi},y.default.createElement(zr.Provider,{value:Ym},t))}var Jm={position:"fixed",touchAction:"none"},Qm=e=>oo(e)?"transform 250ms ease":void 0,eg=(0,y.forwardRef)((e,t)=>{let{as:a,activatorEvent:o,adjustScale:r,children:n,className:s,rect:l,style:i,transform:u,transition:c=Qm}=e;if(!l)return null;let d=r?u:{...u,scaleX:1,scaleY:1},f={...Jm,width:l.width,height:l.height,top:l.top,left:l.left,transform:tt.Transform.toString(d),transformOrigin:r&&o?Jp(o,l):void 0,transition:typeof c=="function"?c(o):c,...i};return y.default.createElement(a,{className:s,style:f,ref:t},n)}),tg=e=>t=>{let{active:a,dragOverlay:o}=t,r={},{styles:n,className:s}=e;if(n!=null&&n.active)for(let[l,i]of Object.entries(n.active))i!==void 0&&(r[l]=a.node.style.getPropertyValue(l),a.node.style.setProperty(l,i));if(n!=null&&n.dragOverlay)for(let[l,i]of Object.entries(n.dragOverlay))i!==void 0&&o.node.style.setProperty(l,i);return s!=null&&s.active&&a.node.classList.add(s.active),s!=null&&s.dragOverlay&&o.node.classList.add(s.dragOverlay),function(){for(let[i,u]of Object.entries(r))a.node.style.setProperty(i,u);s!=null&&s.active&&a.node.classList.remove(s.active)}},ag=e=>{let{transform:{initial:t,final:a}}=e;return[{transform:tt.Transform.toString(t)},{transform:tt.Transform.toString(a)}]},og={duration:250,easing:"ease",keyframes:ag,sideEffects:tg({styles:{active:{opacity:"0"}}})};function rg(e){let{config:t,draggableNodes:a,droppableContainers:o,measuringConfiguration:r}=e;return _o((n,s)=>{if(t===null)return;let l=a.get(n);if(!l)return;let i=l.node.current;if(!i)return;let u=Yi(s);if(!u)return;let{transform:c}=ze(s).getComputedStyle(s),d=Hi(c);if(!d)return;let f=typeof t=="function"?t:ng(t);return Ki(i,r.draggable.measure),f({active:{id:n,data:l.data,node:i,rect:r.draggable.measure(i)},draggableNodes:a,dragOverlay:{node:s,rect:r.dragOverlay.measure(u)},droppableContainers:o,measuringConfiguration:r,transform:d})})}function ng(e){let{duration:t,easing:a,sideEffects:o,keyframes:r}={...og,...e};return n=>{let{active:s,dragOverlay:l,transform:i,...u}=n;if(!t)return;let c={x:l.rect.left-s.rect.left,y:l.rect.top-s.rect.top},d={scaleX:i.scaleX!==1?s.rect.width*i.scaleX/l.rect.width:1,scaleY:i.scaleY!==1?s.rect.height*i.scaleY/l.rect.height:1},f={x:i.x-c.x,y:i.y-c.y,...d},g=r({...u,active:s,dragOverlay:l,transform:{initial:i,final:f}}),[h]=g,p=g[g.length-1];if(JSON.stringify(h)===JSON.stringify(p))return;let m=o?.({active:s,dragOverlay:l,...u}),x=l.node.animate(g,{duration:t,easing:a,fill:"forwards"});return new Promise(w=>{x.onfinish=()=>{m?.(),w()}})}}var Fi=0;function sg(e){return(0,y.useMemo)(()=>{if(e!=null)return Fi++,Fi},[e])}var tu=y.default.memo(e=>{let{adjustScale:t=!1,children:a,dropAnimation:o,style:r,transition:n,modifiers:s,wrapperElement:l="div",className:i,zIndex:u=999}=e,{activatorEvent:c,active:d,activeNodeRect:f,containerNodeRect:g,draggableNodes:h,droppableContainers:p,dragOverlay:m,over:x,measuringConfiguration:w,scrollableAncestors:v,scrollableAncestorRects:b,windowRect:C}=gs(),L=(0,y.useContext)(zr),I=sg(d?.id),S=Qi(s,{activatorEvent:c,active:d,activeNodeRect:f,containerNodeRect:g,draggingNodeRect:m.rect,over:x,overlayNodeRect:m.rect,scrollableAncestors:v,scrollableAncestorRects:b,transform:L,windowRect:C}),P=ms(f),E=rg({config:o,draggableNodes:h,droppableContainers:p,measuringConfiguration:w}),M=P?m.setRef:void 0;return y.default.createElement(Zm,null,y.default.createElement($m,{animation:E},d&&I?y.default.createElement(eg,{key:I,id:d.id,ref:M,as:l,activatorEvent:c,adjustScale:t,className:i,transition:n,rect:P,style:{zIndex:u,...r},transform:S},a):null))});var Le=q(require("react"));function au(e,t,a){let o=e.slice();return o.splice(a<0?o.length+a:a,0,o.splice(t,1)[0]),o}function lg(e,t){return e.reduce((a,o,r)=>{let n=t.get(o);return n&&(a[r]=n),a},Array(e.length))}function Wr(e){return e!==null&&e>=0}function ig(e,t){if(e===t)return!0;if(e.length!==t.length)return!1;for(let a=0;a<e.length;a++)if(e[a]!==t[a])return!1;return!0}function ug(e){return typeof e=="boolean"?{draggable:e,droppable:e}:e}var ou=e=>{let{rects:t,activeIndex:a,overIndex:o,index:r}=e,n=au(t,o,a),s=t[r],l=n[r];return!l||!s?null:{x:l.left-s.left,y:l.top-s.top,scaleX:l.width/s.width,scaleY:l.height/s.height}};var jr={scaleX:1,scaleY:1},Xr=e=>{var t;let{activeIndex:a,activeNodeRect:o,index:r,rects:n,overIndex:s}=e,l=(t=n[a])!=null?t:o;if(!l)return null;if(r===a){let u=n[s];return u?{x:0,y:a<s?u.top+u.height-(l.top+l.height):u.top-l.top,...jr}:null}let i=dg(n,r,a);return r>a&&r<=s?{x:0,y:-l.height-i,...jr}:r<a&&r>=s?{x:0,y:l.height+i,...jr}:{x:0,y:0,...jr}};function dg(e,t,a){let o=e[t],r=e[t-1],n=e[t+1];return o?a<t?r?o.top-(r.top+r.height):n?n.top-(o.top+o.height):0:n?n.top-(o.top+o.height):r?o.top-(r.top+r.height):0:0}var ru="Sortable",nu=Le.default.createContext({activeIndex:-1,containerId:ru,disableTransforms:!1,items:[],overIndex:-1,useDragOverlay:!1,sortedRects:[],strategy:ou,disabled:{draggable:!1,droppable:!1}});function $r(e){let{children:t,id:a,items:o,strategy:r=ou,disabled:n=!1}=e,{active:s,dragOverlay:l,droppableRects:i,over:u,measureDroppableContainers:c}=gs(),d=ma(ru,a),f=l.rect!==null,g=(0,Le.useMemo)(()=>o.map(L=>typeof L=="object"&&"id"in L?L.id:L),[o]),h=s!=null,p=s?g.indexOf(s.id):-1,m=u?g.indexOf(u.id):-1,x=(0,Le.useRef)(g),w=!ig(g,x.current),v=m!==-1&&p===-1||w,b=ug(n);at(()=>{w&&h&&c(g)},[w,g,h,c]),(0,Le.useEffect)(()=>{x.current=g},[g]);let C=(0,Le.useMemo)(()=>({activeIndex:p,containerId:d,disabled:b,disableTransforms:v,items:g,overIndex:m,useDragOverlay:f,sortedRects:lg(g,i),strategy:r}),[p,d,b.draggable,b.droppable,v,g,m,i,f,r]);return Le.default.createElement(nu.Provider,{value:C},t)}var cg=e=>{let{id:t,items:a,activeIndex:o,overIndex:r}=e;return au(a,o,r).indexOf(t)},fg=e=>{let{containerId:t,isSorting:a,wasDragging:o,index:r,items:n,newIndex:s,previousItems:l,previousContainerId:i,transition:u}=e;return!u||!o||l!==n&&r===s?!1:a?!0:s!==r&&t===i},pg={duration:200,easing:"ease"},su="transform",mg=tt.Transition.toString({property:su,duration:0,easing:"linear"}),gg={roleDescription:"sortable"};function hg(e){let{disabled:t,index:a,node:o,rect:r}=e,[n,s]=(0,Le.useState)(null),l=(0,Le.useRef)(a);return at(()=>{if(!t&&a!==l.current&&o.current){let i=r.current;if(i){let u=Ca(o.current,{ignoreTransform:!0}),c={x:i.left-u.left,y:i.top-u.top,scaleX:i.width/u.width,scaleY:i.height/u.height};(c.x||c.y)&&s(c)}}a!==l.current&&(l.current=a)},[t,a,o,r]),(0,Le.useEffect)(()=>{n&&s(null)},[n]),n}function Yr(e){let{animateLayoutChanges:t=fg,attributes:a,disabled:o,data:r,getNewIndex:n=cg,id:s,strategy:l,resizeObserverConfig:i,transition:u=pg}=e,{items:c,containerId:d,activeIndex:f,disabled:g,disableTransforms:h,sortedRects:p,overIndex:m,useDragOverlay:x,strategy:w}=(0,Le.useContext)(nu),v=xg(o,g),b=c.indexOf(s),C=(0,Le.useMemo)(()=>({sortable:{containerId:d,index:b,items:c},...r}),[d,r,b,c]),L=(0,Le.useMemo)(()=>c.slice(c.indexOf(s)),[c,s]),{rect:I,node:S,isOver:P,setNodeRef:E}=Gr({id:s,data:C,disabled:v.droppable,resizeObserverConfig:{updateMeasurementsFor:L,...i}}),{active:M,activatorEvent:D,activeNodeRect:F,attributes:U,setNodeRef:Z,listeners:W,isDragging:O,over:B,setActivatorNodeRef:H,transform:T}=eu({id:s,data:C,attributes:{...gg,...a},disabled:v.draggable}),le=xi(E,Z),Q=!!M,ie=Q&&!h&&Wr(f)&&Wr(m),ve=!x&&O,R=ve&&ie?T:null,G=ie?R??(l??w)({rects:p,activeNodeRect:F,activeIndex:f,overIndex:m,index:b}):null,k=Wr(f)&&Wr(m)?n({id:s,items:c,activeIndex:f,overIndex:m}):b,X=M?.id,_=(0,Le.useRef)({activeId:X,items:c,newIndex:k,containerId:d}),$=c!==_.current.items,Y=t({active:M,containerId:d,isDragging:O,isSorting:Q,id:s,index:b,items:c,newIndex:_.current.newIndex,previousItems:_.current.items,previousContainerId:_.current.containerId,transition:u,wasDragging:_.current.activeId!=null}),oe=hg({disabled:!Y,index:b,node:S,rect:I});return(0,Le.useEffect)(()=>{Q&&_.current.newIndex!==k&&(_.current.newIndex=k),d!==_.current.containerId&&(_.current.containerId=d),c!==_.current.items&&(_.current.items=c)},[Q,k,d,c]),(0,Le.useEffect)(()=>{if(X===_.current.activeId)return;if(X&&!_.current.activeId){_.current.activeId=X;return}let Pe=setTimeout(()=>{_.current.activeId=X},50);return()=>clearTimeout(Pe)},[X]),{active:M,activeIndex:f,attributes:U,data:C,rect:I,index:b,newIndex:k,items:c,isOver:P,isSorting:Q,isDragging:O,listeners:W,node:S,overIndex:m,over:B,setNodeRef:le,setActivatorNodeRef:H,setDroppableNodeRef:E,setDraggableNodeRef:Z,transform:oe??G,transition:we()};function we(){if(oe||$&&_.current.newIndex===b)return mg;if(!(ve&&!oo(D)||!u)&&(Q||Y))return tt.Transition.toString({...u,property:su})}}function xg(e,t){var a,o;return typeof e=="boolean"?{draggable:e,droppable:!1}:{draggable:(a=e?.draggable)!=null?a:t.draggable,droppable:(o=e?.droppable)!=null?o:t.droppable}}function Kr(e){if(!e)return!1;let t=e.data.current;return!!(t&&"sortable"in t&&typeof t.sortable=="object"&&"containerId"in t.sortable&&"items"in t.sortable&&"index"in t.sortable)}var vg=[ne.Down,ne.Right,ne.Up,ne.Left],Zr=(e,t)=>{let{context:{active:a,collisionRect:o,droppableRects:r,droppableContainers:n,over:s,scrollableAncestors:l}}=t;if(vg.includes(e.code)){if(e.preventDefault(),!a||!o)return;let i=[];n.getEnabled().forEach(d=>{if(!d||d!=null&&d.disabled)return;let f=r.get(d.id);if(f)switch(e.code){case ne.Down:o.top<f.top&&i.push(d);break;case ne.Up:o.top>f.top&&i.push(d);break;case ne.Left:o.left>f.left&&i.push(d);break;case ne.Right:o.left<f.left&&i.push(d);break}});let u=Hr({active:a,collisionRect:o,droppableRects:r,droppableContainers:i,pointerCoordinates:null}),c=jo(u,"id");if(c===s?.id&&u.length>1&&(c=u[1].id),c!=null){let d=n.get(a.id),f=n.get(c),g=f?r.get(f.id):null,h=f?.node.current;if(h&&g&&d&&f){let m=Ko(h).some((L,I)=>l[I]!==L),x=lu(d,f),w=wg(d,f),v=m||!x?{x:0,y:0}:{x:w?o.width-g.width:0,y:w?o.height-g.height:0},b={x:g.left,y:g.top};return v.x&&v.y?b:ha(b,v)}}}};function lu(e,t){return!Kr(e)||!Kr(t)?!1:e.data.current.sortable.containerId===t.data.current.sortable.containerId}function wg(e,t){return!Kr(e)||!Kr(t)||!lu(e,t)?!1:e.data.current.sortable.index<t.data.current.sortable.index}var Qr=require("react");var iu=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),Jr=(...e)=>e.filter((t,a,o)=>!!t&&t.trim()!==""&&o.indexOf(t)===a).join(" ").trim();var $o=require("react");var uu={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};var du=(0,$o.forwardRef)(({color:e="currentColor",size:t=24,strokeWidth:a=2,absoluteStrokeWidth:o,className:r="",children:n,iconNode:s,...l},i)=>(0,$o.createElement)("svg",{ref:i,...uu,width:t,height:t,stroke:e,strokeWidth:o?Number(a)*24/Number(t):a,className:Jr("lucide",r),...l},[...s.map(([u,c])=>(0,$o.createElement)(u,c)),...Array.isArray(n)?n:[n]]));var de=(e,t)=>{let a=(0,Qr.forwardRef)(({className:o,...r},n)=>(0,Qr.createElement)(du,{ref:n,iconNode:t,className:Jr(`lucide-${iu(e)}`,o),...r}));return a.displayName=`${e}`,a};var bg=[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]],aa=de("Check",bg);var Cg=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],no=de("ChevronDown",Cg);var Lg=[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]],Yo=de("ChevronUp",Lg);var yg=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["polyline",{points:"12 6 12 12 16 14",key:"68esgv"}]],Zo=de("Clock",yg);var Ig=[["polygon",{points:"22 3 2 3 10 12.46 10 19 14 21 14 12.46 22 3",key:"1yg77f"}]],Jo=de("Filter",Ig);var Sg=[["circle",{cx:"9",cy:"12",r:"1",key:"1vctgf"}],["circle",{cx:"9",cy:"5",r:"1",key:"hp0tcf"}],["circle",{cx:"9",cy:"19",r:"1",key:"fkjjf6"}],["circle",{cx:"15",cy:"12",r:"1",key:"1tmaij"}],["circle",{cx:"15",cy:"5",r:"1",key:"19l28e"}],["circle",{cx:"15",cy:"19",r:"1",key:"f4zoj3"}]],Qo=de("GripVertical",Sg);var Rg=[["path",{d:"M3 12h.01",key:"nlz23k"}],["path",{d:"M3 18h.01",key:"1tta3j"}],["path",{d:"M3 6h.01",key:"1rqtza"}],["path",{d:"M8 12h13",key:"1za7za"}],["path",{d:"M8 18h13",key:"1lx6n3"}],["path",{d:"M8 6h13",key:"ik3vkj"}]],er=de("List",Rg);var Pg=[["path",{d:"M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z",key:"1lielz"}]],tr=de("MessageSquare",Pg);var Dg=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]],Nt=de("Plus",Dg);var kg=[["path",{d:"M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8",key:"v9h5vc"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}],["path",{d:"M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16",key:"3uifl3"}],["path",{d:"M8 16H3v5",key:"1cv678"}]],ar=de("RefreshCw",kg);var Mg=[["path",{d:"M20 7h-9",key:"3s1dr2"}],["path",{d:"M14 17H5",key:"gfn3mx"}],["circle",{cx:"17",cy:"17",r:"3",key:"18b49y"}],["circle",{cx:"7",cy:"7",r:"3",key:"dfmy0x"}]],or=de("Settings2",Mg);var Ag=[["path",{d:"M12.586 2.586A2 2 0 0 0 11.172 2H4a2 2 0 0 0-2 2v7.172a2 2 0 0 0 .586 1.414l8.704 8.704a2.426 2.426 0 0 0 3.42 0l6.58-6.58a2.426 2.426 0 0 0 0-3.42z",key:"vktsd0"}],["circle",{cx:"7.5",cy:"7.5",r:".5",fill:"currentColor",key:"kqv944"}]],rr=de("Tag",Ag);var Tg=[["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M19 6v14c0 1-1 2-2 2H7c-1 0-2-1-2-2V6",key:"4alrt4"}],["path",{d:"M8 6V4c0-1 1-2 2-2h4c1 0 2 1 2 2v2",key:"v07s0e"}],["line",{x1:"10",x2:"10",y1:"11",y2:"17",key:"1uufr5"}],["line",{x1:"14",x2:"14",y1:"11",y2:"17",key:"xtxkd"}]],_t=de("Trash2",Tg);var Eg=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],nr=de("X",Eg);var jn=require("react");var ku=q(require("react"),1);var Ne=q(require("react"),1);var cu=q(require("react"),1),Og=Object.defineProperty,xs=(e,t)=>Og(e,"name",{value:t,configurable:!0});function hs(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}xs(hs,"setRef");function fu(...e){return t=>{let a=!1,o=e.map(r=>{let n=hs(r,t);return!a&&typeof n=="function"&&(a=!0),n});if(a)return()=>{for(let r=0;r<o.length;r++){let n=o[r];typeof n=="function"?n():hs(e[r],null)}}}}xs(fu,"composeRefs");function ae(...e){return cu.useCallback(fu(...e),e)}xs(ae,"useComposedRefs");var Fg=Object.defineProperty,ht=(e,t)=>Fg(e,"name",{value:t,configurable:!0});function Ve(e){let t=Ne.forwardRef((a,o)=>{let{children:r,...n}=a,s=null,l=!1,i=[];vs(r)&&typeof en=="function"&&(r=en(r._payload)),Ne.Children.forEach(r,f=>{if(xu(f)){l=!0;let g=f,h="child"in g.props?g.props.child:g.props.children;vs(h)&&typeof en=="function"&&(h=en(h._payload)),s=Ng(g,h),i.push(s?.props?.children)}else i.push(f)}),s?s=Ne.cloneElement(s,void 0,i):!l&&Ne.Children.count(r)===1&&Ne.isValidElement(r)&&(s=r);let u=s?hu(s):void 0,c=ae(o,u);if(!s){if(r||r===0)throw new Error(l?Hg(e):Ug(e));return r}let d=gu(n,s.props??{});return s.type!==Ne.Fragment&&(d.ref=o?c:u),Ne.cloneElement(s,d)});return t.displayName=`${e}.Slot`,t}ht(Ve,"createSlot");var pu=Ve("Slot"),mu=Symbol.for("radix.slottable");function Bg(e){let t=ht(a=>"child"in a?a.children(a.child):a.children,"Slottable");return t.displayName=`${e}.Slottable`,t.__radixId=mu,t}ht(Bg,"createSlottable");var Ng=ht((e,t)=>{if("child"in e.props){let a=e.props.child;return Ne.isValidElement(a)?Ne.cloneElement(a,void 0,e.props.children(a.props.children)):null}return Ne.isValidElement(t)?t:null},"getSlottableElementFromSlottable");function gu(e,t){let a={...t};for(let o in t){let r=e[o],n=t[o];/^on[A-Z]/.test(o)?r&&n?a[o]=(...l)=>{let i=n(...l);return r(...l),i}:r&&(a[o]=r):o==="style"?a[o]={...r,...n}:o==="className"&&(a[o]=[r,n].filter(Boolean).join(" "))}return{...e,...a}}ht(gu,"mergeProps");function hu(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,a=t&&"isReactWarning"in t&&t.isReactWarning;return a?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,a=t&&"isReactWarning"in t&&t.isReactWarning,a?e.props.ref:e.props.ref||e.ref)}ht(hu,"getElementRef");function xu(e){return Ne.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===mu}ht(xu,"isSlottable");var _g=Symbol.for("react.lazy");function vs(e){return e!=null&&typeof e=="object"&&"$$typeof"in e&&e.$$typeof===_g&&"_payload"in e&&vu(e._payload)}ht(vs,"isLazyComponent");function vu(e){return typeof e=="object"&&e!==null&&"then"in e}ht(vu,"isPromiseLike");var Ug=ht(e=>`${e} failed to slot onto its children. Expected a single React element child or \`Slottable\`.`,"createSlotError"),Hg=ht(e=>`${e} failed to slot onto its \`Slottable\`. Expected \`Slottable\` to receive a single React element child.`,"createSlottableError"),en=Ne[" use ".trim().toString()];function wu(e){var t,a,o="";if(typeof e=="string"||typeof e=="number")o+=e;else if(typeof e=="object")if(Array.isArray(e)){var r=e.length;for(t=0;t<r;t++)e[t]&&(a=wu(e[t]))&&(o&&(o+=" "),o+=a)}else for(a in e)e[a]&&(o&&(o+=" "),o+=a);return o}function tn(){for(var e,t,a=0,o="",r=arguments.length;a<r;a++)(e=arguments[a])&&(t=wu(e))&&(o&&(o+=" "),o+=t);return o}var bu=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,Cu=tn,an=(e,t)=>a=>{var o;if(t?.variants==null)return Cu(e,a?.class,a?.className);let{variants:r,defaultVariants:n}=t,s=Object.keys(r).map(u=>{let c=a?.[u],d=n?.[u];if(c===null)return null;let f=bu(c)||bu(d);return r[u][f]}),l=a&&Object.entries(a).reduce((u,c)=>{let[d,f]=c;return f===void 0||(u[d]=f),u},{}),i=t==null||(o=t.compoundVariants)===null||o===void 0?void 0:o.reduce((u,c)=>{let{class:d,className:f,...g}=c;return Object.entries(g).every(h=>{let[p,m]=h;return Array.isArray(m)?m.includes({...n,...l}[p]):{...n,...l}[p]===m})?[...u,d,f]:u},[]);return Cu(e,s,i,a?.class,a?.className)};var qg=e=>{let t=Vg(e),{conflictingClassGroups:a,conflictingClassGroupModifiers:o}=e;return{getClassGroupId:s=>{let l=s.split("-");return l[0]===""&&l.length!==1&&l.shift(),Iu(l,t)||zg(s)},getConflictingClassGroupIds:(s,l)=>{let i=a[s]||[];return l&&o[s]?[...i,...o[s]]:i}}},Iu=(e,t)=>{if(e.length===0)return t.classGroupId;let a=e[0],o=t.nextPart.get(a),r=o?Iu(e.slice(1),o):void 0;if(r)return r;if(t.validators.length===0)return;let n=e.join("-");return t.validators.find(({validator:s})=>s(n))?.classGroupId},Lu=/^\[(.+)\]$/,zg=e=>{if(Lu.test(e)){let t=Lu.exec(e)[1],a=t?.substring(0,t.indexOf(":"));if(a)return"arbitrary.."+a}},Vg=e=>{let{theme:t,prefix:a}=e,o={nextPart:new Map,validators:[]};return Wg(Object.entries(e.classGroups),a).forEach(([n,s])=>{bs(s,o,n,t)}),o},bs=(e,t,a,o)=>{e.forEach(r=>{if(typeof r=="string"){let n=r===""?t:yu(t,r);n.classGroupId=a;return}if(typeof r=="function"){if(Gg(r)){bs(r(o),t,a,o);return}t.validators.push({validator:r,classGroupId:a});return}Object.entries(r).forEach(([n,s])=>{bs(s,yu(t,n),a,o)})})},yu=(e,t)=>{let a=e;return t.split("-").forEach(o=>{a.nextPart.has(o)||a.nextPart.set(o,{nextPart:new Map,validators:[]}),a=a.nextPart.get(o)}),a},Gg=e=>e.isThemeGetter,Wg=(e,t)=>t?e.map(([a,o])=>{let r=o.map(n=>typeof n=="string"?t+n:typeof n=="object"?Object.fromEntries(Object.entries(n).map(([s,l])=>[t+s,l])):n);return[a,r]}):e,jg=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,a=new Map,o=new Map,r=(n,s)=>{a.set(n,s),t++,t>e&&(t=0,o=a,a=new Map)};return{get(n){let s=a.get(n);if(s!==void 0)return s;if((s=o.get(n))!==void 0)return r(n,s),s},set(n,s){a.has(n)?a.set(n,s):r(n,s)}}};var Kg=e=>{let{separator:t,experimentalParseClassName:a}=e,o=t.length===1,r=t[0],n=t.length,s=l=>{let i=[],u=0,c=0,d;for(let m=0;m<l.length;m++){let x=l[m];if(u===0){if(x===r&&(o||l.slice(m,m+n)===t)){i.push(l.slice(c,m)),c=m+n;continue}if(x==="/"){d=m;continue}}x==="["?u++:x==="]"&&u--}let f=i.length===0?l:l.substring(c),g=f.startsWith("!"),h=g?f.substring(1):f,p=d&&d>c?d-c:void 0;return{modifiers:i,hasImportantModifier:g,baseClassName:h,maybePostfixModifierPosition:p}};return a?l=>a({className:l,parseClassName:s}):s},Xg=e=>{if(e.length<=1)return e;let t=[],a=[];return e.forEach(o=>{o[0]==="["?(t.push(...a.sort(),o),a=[]):a.push(o)}),t.push(...a.sort()),t},$g=e=>({cache:jg(e.cacheSize),parseClassName:Kg(e),...qg(e)}),Yg=/\s+/,Zg=(e,t)=>{let{parseClassName:a,getClassGroupId:o,getConflictingClassGroupIds:r}=t,n=[],s=e.trim().split(Yg),l="";for(let i=s.length-1;i>=0;i-=1){let u=s[i],{modifiers:c,hasImportantModifier:d,baseClassName:f,maybePostfixModifierPosition:g}=a(u),h=!!g,p=o(h?f.substring(0,g):f);if(!p){if(!h){l=u+(l.length>0?" "+l:l);continue}if(p=o(f),!p){l=u+(l.length>0?" "+l:l);continue}h=!1}let m=Xg(c).join(":"),x=d?m+"!":m,w=x+p;if(n.includes(w))continue;n.push(w);let v=r(p,h);for(let b=0;b<v.length;++b){let C=v[b];n.push(x+C)}l=u+(l.length>0?" "+l:l)}return l};function Jg(){let e=0,t,a,o="";for(;e<arguments.length;)(t=arguments[e++])&&(a=Su(t))&&(o&&(o+=" "),o+=a);return o}var Su=e=>{if(typeof e=="string")return e;let t,a="";for(let o=0;o<e.length;o++)e[o]&&(t=Su(e[o]))&&(a&&(a+=" "),a+=t);return a};function Qg(e,...t){let a,o,r,n=s;function s(i){let u=t.reduce((c,d)=>d(c),e());return a=$g(u),o=a.cache.get,r=a.cache.set,n=l,l(i)}function l(i){let u=o(i);if(u)return u;let c=Zg(i,a);return r(i,c),c}return function(){return n(Jg.apply(null,arguments))}}var me=e=>{let t=a=>a[e]||[];return t.isThemeGetter=!0,t},Ru=/^\[(?:([a-z-]+):)?(.+)\]$/i,eh=/^\d+\/\d+$/,th=new Set(["px","full","screen"]),ah=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,oh=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,rh=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,nh=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,sh=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Ut=e=>so(e)||th.has(e)||eh.test(e),oa=e=>lo(e,"length",mh),so=e=>!!e&&!Number.isNaN(Number(e)),ws=e=>lo(e,"number",so),sr=e=>!!e&&Number.isInteger(Number(e)),lh=e=>e.endsWith("%")&&so(e.slice(0,-1)),te=e=>Ru.test(e),ra=e=>ah.test(e),ih=new Set(["length","size","percentage"]),uh=e=>lo(e,ih,Pu),dh=e=>lo(e,"position",Pu),ch=new Set(["image","url"]),fh=e=>lo(e,ch,hh),ph=e=>lo(e,"",gh),lr=()=>!0,lo=(e,t,a)=>{let o=Ru.exec(e);return o?o[1]?typeof t=="string"?o[1]===t:t.has(o[1]):a(o[2]):!1},mh=e=>oh.test(e)&&!rh.test(e),Pu=()=>!1,gh=e=>nh.test(e),hh=e=>sh.test(e);var xh=()=>{let e=me("colors"),t=me("spacing"),a=me("blur"),o=me("brightness"),r=me("borderColor"),n=me("borderRadius"),s=me("borderSpacing"),l=me("borderWidth"),i=me("contrast"),u=me("grayscale"),c=me("hueRotate"),d=me("invert"),f=me("gap"),g=me("gradientColorStops"),h=me("gradientColorStopPositions"),p=me("inset"),m=me("margin"),x=me("opacity"),w=me("padding"),v=me("saturate"),b=me("scale"),C=me("sepia"),L=me("skew"),I=me("space"),S=me("translate"),P=()=>["auto","contain","none"],E=()=>["auto","hidden","clip","visible","scroll"],M=()=>["auto",te,t],D=()=>[te,t],F=()=>["",Ut,oa],U=()=>["auto",so,te],Z=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],W=()=>["solid","dashed","dotted","double","none"],O=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],B=()=>["start","end","center","between","around","evenly","stretch"],H=()=>["","0",te],T=()=>["auto","avoid","all","avoid-page","page","left","right","column"],le=()=>[so,te];return{cacheSize:500,separator:":",theme:{colors:[lr],spacing:[Ut,oa],blur:["none","",ra,te],brightness:le(),borderColor:[e],borderRadius:["none","","full",ra,te],borderSpacing:D(),borderWidth:F(),contrast:le(),grayscale:H(),hueRotate:le(),invert:H(),gap:D(),gradientColorStops:[e],gradientColorStopPositions:[lh,oa],inset:M(),margin:M(),opacity:le(),padding:D(),saturate:le(),scale:le(),sepia:H(),skew:le(),space:D(),translate:D()},classGroups:{aspect:[{aspect:["auto","square","video",te]}],container:["container"],columns:[{columns:[ra]}],"break-after":[{"break-after":T()}],"break-before":[{"break-before":T()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:[...Z(),te]}],overflow:[{overflow:E()}],"overflow-x":[{"overflow-x":E()}],"overflow-y":[{"overflow-y":E()}],overscroll:[{overscroll:P()}],"overscroll-x":[{"overscroll-x":P()}],"overscroll-y":[{"overscroll-y":P()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[p]}],"inset-x":[{"inset-x":[p]}],"inset-y":[{"inset-y":[p]}],start:[{start:[p]}],end:[{end:[p]}],top:[{top:[p]}],right:[{right:[p]}],bottom:[{bottom:[p]}],left:[{left:[p]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",sr,te]}],basis:[{basis:M()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",te]}],grow:[{grow:H()}],shrink:[{shrink:H()}],order:[{order:["first","last","none",sr,te]}],"grid-cols":[{"grid-cols":[lr]}],"col-start-end":[{col:["auto",{span:["full",sr,te]},te]}],"col-start":[{"col-start":U()}],"col-end":[{"col-end":U()}],"grid-rows":[{"grid-rows":[lr]}],"row-start-end":[{row:["auto",{span:[sr,te]},te]}],"row-start":[{"row-start":U()}],"row-end":[{"row-end":U()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",te]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",te]}],gap:[{gap:[f]}],"gap-x":[{"gap-x":[f]}],"gap-y":[{"gap-y":[f]}],"justify-content":[{justify:["normal",...B()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...B(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...B(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[w]}],px:[{px:[w]}],py:[{py:[w]}],ps:[{ps:[w]}],pe:[{pe:[w]}],pt:[{pt:[w]}],pr:[{pr:[w]}],pb:[{pb:[w]}],pl:[{pl:[w]}],m:[{m:[m]}],mx:[{mx:[m]}],my:[{my:[m]}],ms:[{ms:[m]}],me:[{me:[m]}],mt:[{mt:[m]}],mr:[{mr:[m]}],mb:[{mb:[m]}],ml:[{ml:[m]}],"space-x":[{"space-x":[I]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[I]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",te,t]}],"min-w":[{"min-w":[te,t,"min","max","fit"]}],"max-w":[{"max-w":[te,t,"none","full","min","max","fit","prose",{screen:[ra]},ra]}],h:[{h:[te,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[te,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[te,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[te,t,"auto","min","max","fit"]}],"font-size":[{text:["base",ra,oa]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",ws]}],"font-family":[{font:[lr]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",te]}],"line-clamp":[{"line-clamp":["none",so,ws]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",Ut,te]}],"list-image":[{"list-image":["none",te]}],"list-style-type":[{list:["none","disc","decimal",te]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[x]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[x]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...W(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",Ut,oa]}],"underline-offset":[{"underline-offset":["auto",Ut,te]}],"text-decoration-color":[{decoration:[e]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:D()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",te]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",te]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[x]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...Z(),dh]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",uh]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},fh]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[h]}],"gradient-via-pos":[{via:[h]}],"gradient-to-pos":[{to:[h]}],"gradient-from":[{from:[g]}],"gradient-via":[{via:[g]}],"gradient-to":[{to:[g]}],rounded:[{rounded:[n]}],"rounded-s":[{"rounded-s":[n]}],"rounded-e":[{"rounded-e":[n]}],"rounded-t":[{"rounded-t":[n]}],"rounded-r":[{"rounded-r":[n]}],"rounded-b":[{"rounded-b":[n]}],"rounded-l":[{"rounded-l":[n]}],"rounded-ss":[{"rounded-ss":[n]}],"rounded-se":[{"rounded-se":[n]}],"rounded-ee":[{"rounded-ee":[n]}],"rounded-es":[{"rounded-es":[n]}],"rounded-tl":[{"rounded-tl":[n]}],"rounded-tr":[{"rounded-tr":[n]}],"rounded-br":[{"rounded-br":[n]}],"rounded-bl":[{"rounded-bl":[n]}],"border-w":[{border:[l]}],"border-w-x":[{"border-x":[l]}],"border-w-y":[{"border-y":[l]}],"border-w-s":[{"border-s":[l]}],"border-w-e":[{"border-e":[l]}],"border-w-t":[{"border-t":[l]}],"border-w-r":[{"border-r":[l]}],"border-w-b":[{"border-b":[l]}],"border-w-l":[{"border-l":[l]}],"border-opacity":[{"border-opacity":[x]}],"border-style":[{border:[...W(),"hidden"]}],"divide-x":[{"divide-x":[l]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[l]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[x]}],"divide-style":[{divide:W()}],"border-color":[{border:[r]}],"border-color-x":[{"border-x":[r]}],"border-color-y":[{"border-y":[r]}],"border-color-s":[{"border-s":[r]}],"border-color-e":[{"border-e":[r]}],"border-color-t":[{"border-t":[r]}],"border-color-r":[{"border-r":[r]}],"border-color-b":[{"border-b":[r]}],"border-color-l":[{"border-l":[r]}],"divide-color":[{divide:[r]}],"outline-style":[{outline:["",...W()]}],"outline-offset":[{"outline-offset":[Ut,te]}],"outline-w":[{outline:[Ut,oa]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:F()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[x]}],"ring-offset-w":[{"ring-offset":[Ut,oa]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",ra,ph]}],"shadow-color":[{shadow:[lr]}],opacity:[{opacity:[x]}],"mix-blend":[{"mix-blend":[...O(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":O()}],filter:[{filter:["","none"]}],blur:[{blur:[a]}],brightness:[{brightness:[o]}],contrast:[{contrast:[i]}],"drop-shadow":[{"drop-shadow":["","none",ra,te]}],grayscale:[{grayscale:[u]}],"hue-rotate":[{"hue-rotate":[c]}],invert:[{invert:[d]}],saturate:[{saturate:[v]}],sepia:[{sepia:[C]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[a]}],"backdrop-brightness":[{"backdrop-brightness":[o]}],"backdrop-contrast":[{"backdrop-contrast":[i]}],"backdrop-grayscale":[{"backdrop-grayscale":[u]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[c]}],"backdrop-invert":[{"backdrop-invert":[d]}],"backdrop-opacity":[{"backdrop-opacity":[x]}],"backdrop-saturate":[{"backdrop-saturate":[v]}],"backdrop-sepia":[{"backdrop-sepia":[C]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[s]}],"border-spacing-x":[{"border-spacing-x":[s]}],"border-spacing-y":[{"border-spacing-y":[s]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",te]}],duration:[{duration:le()}],ease:[{ease:["linear","in","out","in-out",te]}],delay:[{delay:le()}],animate:[{animate:["none","spin","ping","pulse","bounce",te]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[b]}],"scale-x":[{"scale-x":[b]}],"scale-y":[{"scale-y":[b]}],rotate:[{rotate:[sr,te]}],"translate-x":[{"translate-x":[S]}],"translate-y":[{"translate-y":[S]}],"skew-x":[{"skew-x":[L]}],"skew-y":[{"skew-y":[L]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",te]}],accent:[{accent:["auto",e]}],appearance:[{appearance:["none","auto"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",te]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":D()}],"scroll-mx":[{"scroll-mx":D()}],"scroll-my":[{"scroll-my":D()}],"scroll-ms":[{"scroll-ms":D()}],"scroll-me":[{"scroll-me":D()}],"scroll-mt":[{"scroll-mt":D()}],"scroll-mr":[{"scroll-mr":D()}],"scroll-mb":[{"scroll-mb":D()}],"scroll-ml":[{"scroll-ml":D()}],"scroll-p":[{"scroll-p":D()}],"scroll-px":[{"scroll-px":D()}],"scroll-py":[{"scroll-py":D()}],"scroll-ps":[{"scroll-ps":D()}],"scroll-pe":[{"scroll-pe":D()}],"scroll-pt":[{"scroll-pt":D()}],"scroll-pr":[{"scroll-pr":D()}],"scroll-pb":[{"scroll-pb":D()}],"scroll-pl":[{"scroll-pl":D()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",te]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[Ut,oa,ws]}],stroke:[{stroke:[e,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}};var Du=Qg(xh);function ee(...e){return Du(tn(e))}var Mu=require("react/jsx-runtime"),vh=an("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-lg text-sm font-medium transition-[transform,color,background-color,border-color,box-shadow] duration-150 active:scale-[0.97] focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",{variants:{variant:{default:"bg-primary text-primary-foreground shadow hover:bg-primary/90",destructive:"bg-destructive text-destructive-foreground shadow-sm hover:bg-destructive/90",outline:"border border-input bg-background shadow-sm hover:bg-accent hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground shadow-sm hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-9 px-4 py-2",sm:"h-8 rounded-md px-3 text-xs",lg:"h-10 rounded-md px-8",icon:"h-8 w-8"}},defaultVariants:{variant:"default",size:"default"}}),Ae=ku.forwardRef(({className:e,variant:t,size:a,asChild:o=!1,...r},n)=>(0,Mu.jsx)(o?pu:"button",{className:ee(vh({variant:t,size:a,className:e})),ref:n,...r}));Ae.displayName="Button";var mr=q(require("react"),1);var he=q(require("react"),1);var wh=Object.defineProperty,io=(e,t)=>wh(e,"name",{value:t,configurable:!0}),Au=!!(typeof window<"u"&&window.document&&window.document.createElement);function z(e,t,{checkForDefaultPrevented:a=!0}={}){return io(function(r){if(e?.(r),a===!1||!r||!r.defaultPrevented)return t?.(r)},"handleEvent")}io(z,"composeEventHandlers");function bh(e){if(!Au)throw new Error("Cannot access window outside of the DOM");return e?.ownerDocument?.defaultView??window}io(bh,"getOwnerWindow");function Cs(e){if(!Au)throw new Error("Cannot access document outside of the DOM");return e?.ownerDocument??document}io(Cs,"getOwnerDocument");function Tu(e,t=!1){let{activeElement:a}=Cs(e);if(!a?.nodeName)return null;if(Eu(a)&&a.contentDocument)return Tu(a.contentDocument.body,t);if(t){let o=a.getAttribute("aria-activedescendant");if(o){let r=Cs(a).getElementById(o);if(r)return r}}return a}io(Tu,"getActiveElement");function Eu(e){return e.tagName==="IFRAME"}io(Eu,"isFrame");var dt=q(require("react"),1),Ls=require("react/jsx-runtime"),Ch=Object.defineProperty,ut=(e,t)=>Ch(e,"name",{value:t,configurable:!0});function Lh(e,t){let a=dt.createContext(t);a.displayName=e+"Context";let o=ut(n=>{let{children:s,...l}=n,i=dt.useMemo(()=>l,Object.values(l));return(0,Ls.jsx)(a.Provider,{value:i,children:s})},"Provider");o.displayName=e+"Provider";function r(n,s={}){let{optional:l=!1}=s,i=dt.useContext(a);if(i)return i;if(t!==void 0)return t;if(!l)throw new Error(`\`${n}\` must be used within \`${e}\``)}return ut(r,"useContext"),[o,r]}ut(Lh,"createContext");function _e(e,t=[]){let a=[];function o(n,s){let l=dt.createContext(s);l.displayName=n+"Context";let i=a.length;a=[...a,s];let u=ut(d=>{let{scope:f,children:g,...h}=d,p=f?.[e]?.[i]||l,m=dt.useMemo(()=>h,Object.values(h));return(0,Ls.jsx)(p.Provider,{value:m,children:g})},"Provider");u.displayName=n+"Provider";function c(d,f,g={}){let{optional:h=!1}=g,p=f?.[e]?.[i]||l,m=dt.useContext(p);if(m)return m;if(s!==void 0)return s;if(!h)throw new Error(`\`${d}\` must be used within \`${n}\``)}return ut(c,"useContext"),[u,c]}ut(o,"createContext");let r=ut(()=>{let n=a.map(s=>dt.createContext(s));return ut(function(l){let i=l?.[e]||n;return dt.useMemo(()=>({[`__scope${e}`]:{...l,[e]:i}}),[l,i])},"useScope")},"createScope");return r.scopeName=e,[o,Ou(r,...t)]}ut(_e,"createContextScope");function Ou(...e){let t=e[0];if(e.length===1)return t;let a=ut(()=>{let o=e.map(r=>({useScope:r(),scopeName:r.scopeName}));return ut(function(n){let s=o.reduce((l,{useScope:i,scopeName:u})=>{let d=i(n)[`__scope${u}`];return{...l,...d}},{});return dt.useMemo(()=>({[`__scope${t.scopeName}`]:s}),[s])},"useComposedScopes")},"createScope");return a.scopeName=t.scopeName,a}ut(Ou,"composeContextScopes");var ys=q(require("react"),1);var Fu=q(require("react"),1),ue=globalThis?.document?Fu.useLayoutEffect:()=>{};var yh=Object.defineProperty,Ih=(e,t)=>yh(e,"name",{value:t,configurable:!0}),Sh=ys[" useId ".trim().toString()]||(()=>{}),Rh=0;function ot(e){let[t,a]=ys.useState(Sh());return ue(()=>{e||a(o=>o??String(Rh++))},[e]),e||(t?`radix-${t}`:"")}Ih(ot,"useId");var ct=q(require("react"),1);var on=!1;var xt=q(require("react"),1);var uo=q(require("react"),1),Ph=Object.defineProperty,Dh=(e,t)=>Ph(e,"name",{value:t,configurable:!0}),Bu=uo[" useEffectEvent ".trim().toString()],Nu=uo[" useInsertionEffect ".trim().toString()];function Is(e){if(typeof Bu=="function")return Bu(e);let t=uo.useRef(()=>{throw new Error("Cannot call an event handler while rendering.")});return typeof Nu=="function"?Nu(()=>{t.current=e}):ue(()=>{t.current=e}),uo.useMemo(()=>((...a)=>t.current?.(...a)),[])}Dh(Is,"useEffectEvent");var kh=Object.defineProperty,ir=(e,t)=>kh(e,"name",{value:t,configurable:!0}),Mh=ct[" useInsertionEffect ".trim().toString()]||ue;function Dt({prop:e,defaultProp:t,onChange:a=ir(()=>{},"onChange"),caller:o}){let[r,n,s]=Uu({defaultProp:t,onChange:a}),l=e!==void 0,i=l?e:r;if(on){let c=ct.useRef(e!==void 0);ct.useEffect(()=>{let d=c.current;d!==l&&console.warn(`${o} is changing from ${d?"controlled":"uncontrolled"} to ${l?"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.`),c.current=l},[l,o])}let u=ct.useCallback(c=>{if(l){let d=Hu(c)?c(e):c;d!==e&&s.current?.(d)}else n(c)},[l,e,n,s]);return[i,u]}ir(Dt,"useControllableState");function Uu({defaultProp:e,onChange:t}){let[a,o]=ct.useState(e),r=ct.useRef(a),n=ct.useRef(t);return Mh(()=>{n.current=t},[t]),ct.useEffect(()=>{r.current!==a&&(n.current?.(a),r.current=a)},[a,r]),[a,o,n]}ir(Uu,"useUncontrolledState");function Hu(e){return typeof e=="function"}ir(Hu,"isFunction");var _u=Symbol("RADIX:SYNC_STATE");function Ah(e,t,a,o){let{prop:r,defaultProp:n,onChange:s,caller:l}=t,i=r!==void 0,u=Is(s);if(on){let m=xt.useRef(r!==void 0);xt.useEffect(()=>{let x=m.current;x!==i&&console.warn(`${l} is changing from ${x?"controlled":"uncontrolled"} to ${i?"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.`),m.current=i},[i,l])}let c=[{...a,state:n}];o&&c.push(o);let[d,f]=xt.useReducer((m,x)=>{if(x.type===_u)return{...m,state:x.state};let w=e(m,x);return i&&!Object.is(w.state,m.state)&&u(w.state),w},...c),g=d.state,h=xt.useRef(g);xt.useEffect(()=>{h.current!==g&&(h.current=g,i||u(g))},[g,h,i]);let p=xt.useMemo(()=>r!==void 0?{...d,state:r}:d,[d,r]);return xt.useEffect(()=>{i&&!Object.is(r,d.state)&&f({type:_u,state:r})},[r,d.state,i]),[p,f]}ir(Ah,"useControllableStateReducer");var ce=q(require("react"),1);var qu=q(require("react"),1),zu=q(require("react-dom"),1);var Vu=require("react/jsx-runtime"),Th=Object.defineProperty,Eh=(e,t)=>Th(e,"name",{value:t,configurable:!0}),Oh=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],re=Oh.reduce((e,t)=>{let a=Ve(`Primitive.${t}`),o=qu.forwardRef((r,n)=>{let{asChild:s,...l}=r,i=s?a:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),(0,Vu.jsx)(i,{...l,ref:n})});return o.displayName=`Primitive.${t}`,{...e,[t]:o}},{});function ur(e,t){e&&zu.flushSync(()=>e.dispatchEvent(t))}Eh(ur,"dispatchDiscreteCustomEvent");var co=q(require("react"),1),Fh=Object.defineProperty,Bh=(e,t)=>Fh(e,"name",{value:t,configurable:!0});function Te(e){let t=co.useRef(e);return co.useEffect(()=>{t.current=e}),co.useMemo(()=>((...a)=>t.current?.(...a)),[])}Bh(Te,"useCallbackRef");var Wu=require("react/jsx-runtime"),Nh=Object.defineProperty,Ee=(e,t)=>Nh(e,"name",{value:t,configurable:!0}),Ss="dismissableLayer.update",_h="dismissableLayer.pointerDownOutside",Uh="dismissableLayer.focusOutside",Gu,ju=ce.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set,dismissableSurfaces:new Set}),fo=ce.forwardRef(Ee(function(t,a){let{disableOutsidePointerEvents:o=!1,deferPointerDownOutside:r=!1,onEscapeKeyDown:n,onPointerDownOutside:s,onFocusOutside:l,onInteractOutside:i,onDismiss:u,...c}=t,d=ce.useContext(ju),[f,g]=ce.useState(null),h=f?.ownerDocument??globalThis?.document,[,p]=ce.useState({}),m=ae(a,g),x=Array.from(d.layers),[w]=[...d.layersWithOutsidePointerEventsDisabled].slice(-1),v=w?x.indexOf(w):-1,b=f?x.indexOf(f):-1,C=d.layersWithOutsidePointerEventsDisabled.size>0,L=b>=v,I=ce.useRef(!1),S=Ku(D=>{s?.(D),i?.(D),D.defaultPrevented||u?.()},{ownerDocument:h,deferPointerDownOutside:r,isDeferredPointerDownOutsideRef:I,dismissableSurfaces:d.dismissableSurfaces,shouldHandlePointerDownOutside:ce.useCallback(D=>{if(!(D instanceof Node))return!1;let F=[...d.branches].some(U=>U.contains(D));return L&&!F},[d.branches,L])}),P=Xu(D=>{if(r&&I.current)return;let F=D.target;[...d.branches].some(Z=>Z.contains(F))||(l?.(D),i?.(D),D.defaultPrevented||u?.())},h),E=f?b===x.length-1:!1,M=Te(D=>{D.key==="Escape"&&(n?.(D),!D.defaultPrevented&&u&&(D.preventDefault(),u()))});return ce.useEffect(()=>{if(E)return h.addEventListener("keydown",M,{capture:!0}),()=>h.removeEventListener("keydown",M,{capture:!0})},[h,E,M]),ce.useEffect(()=>{if(f)return o&&(d.layersWithOutsidePointerEventsDisabled.size===0&&(Gu=h.body.style.pointerEvents,h.body.style.pointerEvents="none"),d.layersWithOutsidePointerEventsDisabled.add(f)),d.layers.add(f),Rs(),()=>{o&&(d.layersWithOutsidePointerEventsDisabled.delete(f),d.layersWithOutsidePointerEventsDisabled.size===0&&(h.body.style.pointerEvents=Gu))}},[f,h,o,d]),ce.useEffect(()=>()=>{f&&(d.layers.delete(f),d.layersWithOutsidePointerEventsDisabled.delete(f),Rs())},[f,d]),ce.useEffect(()=>{let D=Ee(()=>p({}),"handleUpdate");return document.addEventListener(Ss,D),()=>document.removeEventListener(Ss,D)},[]),(0,Wu.jsx)(re.div,{...c,ref:m,style:{pointerEvents:C?L?"auto":"none":void 0,...t.style},onFocusCapture:z(t.onFocusCapture,P.onFocusCapture),onBlurCapture:z(t.onBlurCapture,P.onBlurCapture),onPointerDownCapture:z(t.onPointerDownCapture,S.onPointerDownCapture)})},"DismissableLayer"));function Ps(){let e=ce.useContext(ju),[t,a]=ce.useState(null);return ce.useEffect(()=>{if(t)return e.dismissableSurfaces.add(t),()=>{e.dismissableSurfaces.delete(t)}},[t,e.dismissableSurfaces]),a}Ee(Ps,"useDismissableLayerSurface");var Hh=Ee(()=>!0,"IS_TRUE");function Ku(e,t){let{ownerDocument:a=globalThis?.document,deferPointerDownOutside:o=!1,isDeferredPointerDownOutsideRef:r,dismissableSurfaces:n,shouldHandlePointerDownOutside:s=Hh}=t,l=Te(e),i=ce.useRef(!1),u=ce.useRef(!1),c=ce.useRef(new Map),d=ce.useRef(()=>{});return ce.useEffect(()=>{function f(){u.current=!1,r.current=!1,c.current.clear()}Ee(f,"resetOutsideInteraction");function g(){return Array.from(c.current.values()).some(Boolean)}Ee(g,"isOutsideInteractionIntercepted");function h(v){if(!u.current)return;let b=v.target;b instanceof Node&&[...n].some(L=>L.contains(b))||c.current.set(v.type,!0),v.type==="click"&&window.setTimeout(()=>{u.current&&d.current()},0)}Ee(h,"handleInteractionCapture");function p(v){u.current&&c.current.set(v.type,!1)}Ee(p,"handleInteractionBubble");let m=Ee(v=>{if(v.target&&!i.current){let C=function(){a.removeEventListener("click",d.current);let I=g();f(),I||Ds(_h,l,L,{discrete:!0})};var b=C;if(Ee(C,"handleAndDispatchPointerDownOutsideEvent"),!s(v.target)){a.removeEventListener("click",d.current),f(),i.current=!1;return}let L={originalEvent:v};u.current=!0,r.current=o&&v.button===0,c.current.clear(),!o||v.button!==0?C():(a.removeEventListener("click",d.current),d.current=C,a.addEventListener("click",d.current,{once:!0}))}else a.removeEventListener("click",d.current),f();i.current=!1},"handlePointerDown"),x=["pointerup","mousedown","mouseup","touchstart","touchend","click"];for(let v of x)a.addEventListener(v,h,!0),a.addEventListener(v,p);let w=window.setTimeout(()=>{a.addEventListener("pointerdown",m)},0);return()=>{window.clearTimeout(w),a.removeEventListener("pointerdown",m),a.removeEventListener("click",d.current);for(let v of x)a.removeEventListener(v,h,!0),a.removeEventListener(v,p)}},[a,l,o,r,n,s]),{onPointerDownCapture:Ee(()=>i.current=!0,"onPointerDownCapture")}}Ee(Ku,"usePointerDownOutside");function Xu(e,t=globalThis?.document){let a=Te(e),o=ce.useRef(!1);return ce.useEffect(()=>{let r=Ee(n=>{n.target&&!o.current&&Ds(Uh,a,{originalEvent:n},{discrete:!1})},"handleFocus");return t.addEventListener("focusin",r),()=>t.removeEventListener("focusin",r)},[t,a]),{onFocusCapture:Ee(()=>o.current=!0,"onFocusCapture"),onBlurCapture:Ee(()=>o.current=!1,"onBlurCapture")}}Ee(Xu,"useFocusOutside");function Rs(){let e=new CustomEvent(Ss);document.dispatchEvent(e)}Ee(Rs,"dispatchUpdate");function Ds(e,t,a,{discrete:o}){let r=a.originalEvent.target,n=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:a});t&&r.addEventListener(e,t,{once:!0}),o?ur(r,n):r.dispatchEvent(n)}Ee(Ds,"handleAndDispatchCustomEvent");var ft=q(require("react"),1);var Zu=require("react/jsx-runtime"),qh=Object.defineProperty,Ke=(e,t)=>qh(e,"name",{value:t,configurable:!0}),ks="focusScope.autoFocusOnMount",Ms="focusScope.autoFocusOnUnmount",$u={bubbles:!1,cancelable:!0},po=ft.forwardRef(Ke(function(t,a){let{loop:o=!1,trapped:r=!1,onMountAutoFocus:n,onUnmountAutoFocus:s,...l}=t,[i,u]=ft.useState(null),c=Te(n),d=Te(s),f=ft.useRef(null),g=ae(a,u),h=ft.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;ft.useEffect(()=>{if(r){let v=function(I){if(h.paused||!i)return;let S=I.target;i.contains(S)?f.current=S:Ht(f.current,{select:!0})},b=function(I){if(h.paused||!i)return;let S=I.relatedTarget;S!==null&&(i.contains(S)||Ht(f.current,{select:!0}))},C=function(I){if(document.activeElement===document.body)for(let P of I)P.removedNodes.length>0&&Ht(i)};var m=v,x=b,w=C;Ke(v,"handleFocusIn"),Ke(b,"handleFocusOut"),Ke(C,"handleMutations"),document.addEventListener("focusin",v),document.addEventListener("focusout",b);let L=new MutationObserver(C);return i&&L.observe(i,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",v),document.removeEventListener("focusout",b),L.disconnect()}}},[r,i,h.paused]),ft.useEffect(()=>{if(i){Yu.add(h);let m=document.activeElement;if(!i.contains(m)){let w=new CustomEvent(ks,$u);i.addEventListener(ks,c),i.dispatchEvent(w),w.defaultPrevented||(Ju(od(Es(i)),{select:!0}),document.activeElement===m&&Ht(i))}return()=>{i.removeEventListener(ks,c),setTimeout(()=>{let w=new CustomEvent(Ms,$u);i.addEventListener(Ms,d),i.dispatchEvent(w),w.defaultPrevented||Ht(m??document.body,{select:!0}),i.removeEventListener(Ms,d),Yu.remove(h)},0)}}},[i,c,d,h]);let p=ft.useCallback(m=>{if(!o&&!r||h.paused)return;let x=m.key==="Tab"&&!m.altKey&&!m.ctrlKey&&!m.metaKey,w=document.activeElement;if(x&&w){let v=m.currentTarget,[b,C]=Qu(v);b&&C?!m.shiftKey&&w===C?(m.preventDefault(),o&&Ht(b,{select:!0})):m.shiftKey&&w===b&&(m.preventDefault(),o&&Ht(C,{select:!0})):w===v&&m.preventDefault()}},[o,r,h.paused]);return(0,Zu.jsx)(re.div,{tabIndex:-1,...l,ref:g,onKeyDown:p})},"FocusScope"));function Ju(e,{select:t=!1}={}){let a=document.activeElement;for(let o of e)if(Ht(o,{select:t}),document.activeElement!==a)return}Ke(Ju,"focusFirst");function Qu(e){let t=Es(e),a=As(t,e),o=As(t.reverse(),e);return[a,o]}Ke(Qu,"getTabbableEdges");function Es(e){let t=[],a=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:Ke(o=>{let r=o.tagName==="INPUT"&&o.type==="hidden";return o.disabled||o.hidden||r?NodeFilter.FILTER_SKIP:o.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP},"acceptNode")});for(;a.nextNode();)t.push(a.currentNode);return t}Ke(Es,"getTabbableCandidates");function As(e,t){let a=typeof t.checkVisibility=="function"&&t.checkVisibility({checkVisibilityCSS:!0});for(let o of e)if(!(a?!o.checkVisibility({checkVisibilityCSS:!0}):ed(o,{upTo:t})))return o}Ke(As,"findVisible");function ed(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}Ke(ed,"isHidden");function td(e){return e instanceof HTMLInputElement&&"select"in e}Ke(td,"isSelectableInput");function Ht(e,{select:t=!1}={}){if(e&&e.focus){let a=document.activeElement;e.focus({preventScroll:!0}),e!==a&&td(e)&&t&&e.select()}}Ke(Ht,"focus");var Yu=ad();function ad(){let e=[];return{add(t){let a=e[0];t!==a&&a?.pause(),e=Ts(e,t),e.unshift(t)},remove(t){e=Ts(e,t),e[0]?.resume()}}}Ke(ad,"createFocusScopesStack");function Ts(e,t){let a=[...e],o=a.indexOf(t);return o!==-1&&a.splice(o,1),a}Ke(Ts,"arrayRemove");function od(e){return e.filter(t=>t.tagName!=="A")}Ke(od,"removeLinks");var rn=q(require("react"),1),rd=q(require("react-dom"),1);var nd=require("react/jsx-runtime"),zh=Object.defineProperty,Vh=(e,t)=>zh(e,"name",{value:t,configurable:!0}),mo=rn.forwardRef(Vh(function(t,a){let{container:o,...r}=t,[n,s]=rn.useState(!1);ue(()=>s(!0),[]);let l=o||n&&globalThis?.document?.body;return l?rd.createPortal((0,nd.jsx)(re.div,{...r,ref:a}),l):null},"Portal"));var Ue=q(require("react"),1);var sd=q(require("react"),1),Gh=Object.defineProperty,qt=(e,t)=>Gh(e,"name",{value:t,configurable:!0});function ld(e,t){return sd.useReducer((a,o)=>t[a][o]??a,e)}qt(ld,"useStateMachine");var zt=qt(e=>{let{present:t,children:a}=e,o=id(t),r=typeof a=="function"?a({present:o.isPresent}):Ue.Children.only(a),n=ud(o.ref,dd(r));return typeof a=="function"||o.isPresent?Ue.cloneElement(r,{ref:n}):null},"Presence");function id(e){let[t,a]=Ue.useState(),o=Ue.useRef(null),r=Ue.useRef(e),n=Ue.useRef("none"),s=Ue.useRef(void 0),l=e?"mounted":"unmounted",[i,u]=ld(l,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return Ue.useEffect(()=>{i==="mounted"?(n.current=s.current??go(o.current),s.current=void 0):n.current="none"},[i]),ue(()=>{let c=o.current,d=r.current;if(d!==e){let g=n.current,h=go(c);e?(s.current=h,u("MOUNT")):h==="none"||c?.display==="none"?u("UNMOUNT"):u(d&&g!==h?"ANIMATION_OUT":"UNMOUNT"),r.current=e}},[e,u]),ue(()=>{if(t){let c,d=t.ownerDocument.defaultView??window,f=qt(h=>{let m=go(o.current).includes(CSS.escape(h.animationName));if(h.target===t&&m&&(u("ANIMATION_END"),!r.current)){let x=t.style.animationFillMode;t.style.animationFillMode="forwards",c=d.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=x)})}},"handleAnimationEnd"),g=qt(h=>{h.target===t&&(n.current=go(o.current))},"handleAnimationStart");return t.addEventListener("animationstart",g),t.addEventListener("animationcancel",f),t.addEventListener("animationend",f),()=>{d.clearTimeout(c),t.removeEventListener("animationstart",g),t.removeEventListener("animationcancel",f),t.removeEventListener("animationend",f)}}else u("ANIMATION_END")},[t,u]),{isPresent:["mounted","unmountSuspended"].includes(i),ref:Ue.useCallback(c=>{if(c){let d=getComputedStyle(c);o.current=d,s.current=go(d)}else o.current=null;a(c)},[])}}qt(id,"usePresence");function Os(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}qt(Os,"setRef");function ud(...e){let t=Ue.useRef(e);return t.current=e,Ue.useCallback(a=>{let o=t.current,r=!1,n=o.map(s=>{let l=Os(s,a);return!r&&typeof l=="function"&&(r=!0),l});if(r)return()=>{for(let s=0;s<n.length;s++){let l=n[s];typeof l=="function"?l():Os(o[s],null)}}},[])}qt(ud,"useStableComposedRefs");function go(e){return e?.animationName||"none"}qt(go,"getAnimationName");function dd(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,a=t&&"isReactWarning"in t&&t.isReactWarning;return a?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,a=t&&"isReactWarning"in t&&t.isReactWarning,a?e.props.ref:e.props.ref||e.ref)}qt(dd,"getElementRef");var cd=q(require("react"),1),Wh=Object.defineProperty,Bs=(e,t)=>Wh(e,"name",{value:t,configurable:!0}),nn=0,ho=null;function jh(e){return na(),e.children}Bs(jh,"FocusGuards");function na(){cd.useEffect(()=>{ho||(ho={start:Fs(),end:Fs()});let{start:e,end:t}=ho;return document.body.firstElementChild!==e&&document.body.insertAdjacentElement("afterbegin",e),document.body.lastElementChild!==t&&document.body.insertAdjacentElement("beforeend",t),nn++,()=>{nn===1&&(ho?.start.remove(),ho?.end.remove(),ho=null),nn=Math.max(0,nn-1)}},[])}Bs(na,"useFocusGuards");function Fs(){let 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}Bs(Fs,"createFocusGuard");var Ye=function(){return Ye=Object.assign||function(t){for(var a,o=1,r=arguments.length;o<r;o++){a=arguments[o];for(var n in a)Object.prototype.hasOwnProperty.call(a,n)&&(t[n]=a[n])}return t},Ye.apply(this,arguments)};function sn(e,t){var a={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(a[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(a[o[r]]=e[o[r]]);return a}function fd(e,t,a){if(a||arguments.length===2)for(var o=0,r=t.length,n;o<r;o++)(n||!(o in t))&&(n||(n=Array.prototype.slice.call(t,0,o)),n[o]=t[o]);return e.concat(n||Array.prototype.slice.call(t))}var fn=q(require("react"));var Ge=q(require("react"));var La="right-scroll-bar-position",ya="width-before-scroll-bar",Ns="with-scroll-bars-hidden",_s="--removed-body-scroll-bar-size";function ln(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}var pd=require("react");function md(e,t){var a=(0,pd.useState)(function(){return{value:e,callback:t,facade:{get current(){return a.value},set current(o){var r=a.value;r!==o&&(a.value=o,a.callback(o,r))}}}})[0];return a.callback=t,a.facade}var un=q(require("react"));var Kh=typeof window<"u"?un.useLayoutEffect:un.useEffect,gd=new WeakMap;function Us(e,t){var a=md(t||null,function(o){return e.forEach(function(r){return ln(r,o)})});return Kh(function(){var o=gd.get(a);if(o){var r=new Set(o),n=new Set(e),s=a.current;r.forEach(function(l){n.has(l)||ln(l,null)}),n.forEach(function(l){r.has(l)||ln(l,s)})}gd.set(a,e)},[e]),a}function Xh(e){return e}function $h(e,t){t===void 0&&(t=Xh);var a=[],o=!1,r={read:function(){if(o)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return a.length?a[a.length-1]:e},useMedium:function(n){var s=t(n,o);return a.push(s),function(){a=a.filter(function(l){return l!==s})}},assignSyncMedium:function(n){for(o=!0;a.length;){var s=a;a=[],s.forEach(n)}a={push:function(l){return n(l)},filter:function(){return a}}},assignMedium:function(n){o=!0;var s=[];if(a.length){var l=a;a=[],l.forEach(n),s=a}var i=function(){var c=s;s=[],c.forEach(n)},u=function(){return Promise.resolve().then(i)};u(),a={push:function(c){s.push(c),u()},filter:function(c){return s=s.filter(c),a}}}};return r}function Hs(e){e===void 0&&(e={});var t=$h(null);return t.options=Ye({async:!0,ssr:!1},e),t}var hd=q(require("react")),xd=function(e){var t=e.sideCar,a=sn(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var o=t.read();if(!o)throw new Error("Sidecar medium not found");return hd.createElement(o,Ye({},a))};xd.isSideCarExport=!0;function qs(e,t){return e.useMedium(t),xd}var dn=Hs();var zs=function(){},dr=Ge.forwardRef(function(e,t){var a=Ge.useRef(null),o=Ge.useState({onScrollCapture:zs,onWheelCapture:zs,onTouchMoveCapture:zs}),r=o[0],n=o[1],s=e.forwardProps,l=e.children,i=e.className,u=e.removeScrollBar,c=e.enabled,d=e.shards,f=e.sideCar,g=e.noRelative,h=e.noIsolation,p=e.inert,m=e.allowPinchZoom,x=e.as,w=x===void 0?"div":x,v=e.gapMode,b=sn(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),C=f,L=Us([a,t]),I=Ye(Ye({},b),r);return Ge.createElement(Ge.Fragment,null,c&&Ge.createElement(C,{sideCar:dn,removeScrollBar:u,shards:d,noRelative:g,noIsolation:h,inert:p,setCallbacks:n,allowPinchZoom:!!m,lockRef:a,gapMode:v}),s?Ge.cloneElement(Ge.Children.only(l),Ye(Ye({},I),{ref:L})):Ge.createElement(w,Ye({},I,{className:i,ref:L}),l))});dr.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};dr.classNames={fullWidth:ya,zeroRight:La};var ge=q(require("react"));var vo=q(require("react"));var bd=q(require("react"));var vd;var wd=function(){if(vd)return vd;if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function Yh(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=wd();return t&&e.setAttribute("nonce",t),e}function Zh(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function Jh(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var Vs=function(){var e=0,t=null;return{add:function(a){e==0&&(t=Yh())&&(Zh(t,a),Jh(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}};var Gs=function(){var e=Vs();return function(t,a){bd.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&a])}};var cr=function(){var e=Gs(),t=function(a){var o=a.styles,r=a.dynamic;return e(o,r),null};return t};var Qh={left:0,top:0,right:0,gap:0},Ws=function(e){return parseInt(e||"",10)||0},ex=function(e){var t=window.getComputedStyle(document.body),a=t[e==="padding"?"paddingLeft":"marginLeft"],o=t[e==="padding"?"paddingTop":"marginTop"],r=t[e==="padding"?"paddingRight":"marginRight"];return[Ws(a),Ws(o),Ws(r)]},js=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return Qh;var t=ex(e),a=document.documentElement.clientWidth,o=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,o-a+t[2]-t[0])}};var tx=cr(),xo="data-scroll-locked",ax=function(e,t,a,o){var r=e.left,n=e.top,s=e.right,l=e.gap;return a===void 0&&(a="margin"),`
|
|
1939
|
-
.`.concat(
|
|
1175
|
+
`},Dp={onDragStart(e){let{active:t}=e;return"Picked up draggable item "+t.id+"."},onDragOver(e){let{active:t,over:a}=e;return a?"Draggable item "+t.id+" was moved over droppable area "+a.id+".":"Draggable item "+t.id+" is no longer over a droppable area."},onDragEnd(e){let{active:t,over:a}=e;return a?"Draggable item "+t.id+" was dropped over droppable area "+a.id:"Draggable item "+t.id+" was dropped."},onDragCancel(e){let{active:t}=e;return"Dragging was cancelled. Draggable item "+t.id+" was dropped."}};function Mp(e){let{announcements:t=Dp,container:a,hiddenTextDescribedById:o,screenReaderInstructions:r=kp}=e,{announce:n,announcement:l}=di(),s=ua("DndLiveRegion"),[i,u]=(0,w.useState)(!1);if((0,w.useEffect)(()=>{u(!0)},[]),Rp((0,w.useMemo)(()=>({onDragStart(d){let{active:f}=d;n(t.onDragStart({active:f}))},onDragMove(d){let{active:f,over:g}=d;t.onDragMove&&n(t.onDragMove({active:f,over:g}))},onDragOver(d){let{active:f,over:g}=d;n(t.onDragOver({active:f,over:g}))},onDragEnd(d){let{active:f,over:g}=d;n(t.onDragEnd({active:f,over:g}))},onDragCancel(d){let{active:f,over:g}=d;n(t.onDragCancel({active:f,over:g}))}}),[n,t])),!i)return null;let c=w.default.createElement(w.default.Fragment,null,w.default.createElement(ii,{id:o,value:r.draggable}),w.default.createElement(ui,{id:s,announcement:l}));return a?(0,pa.createPortal)(c,a):c}var Re;(function(e){e.DragStart="dragStart",e.DragMove="dragMove",e.DragEnd="dragEnd",e.DragCancel="dragCancel",e.DragOver="dragOver",e.RegisterDroppable="registerDroppable",e.SetDroppableDisabled="setDroppableDisabled",e.UnregisterDroppable="unregisterDroppable"})(Re||(Re={}));function kr(){}function Qa(e,t){return(0,w.useMemo)(()=>({sensor:e,options:t??{}}),[e,t])}function Mr(){for(var e=arguments.length,t=new Array(e),a=0;a<e;a++)t[a]=arguments[a];return(0,w.useMemo)(()=>[...t].filter(o=>o!=null),[...t])}var pt=Object.freeze({x:0,y:0});function el(e,t){return Math.sqrt(Math.pow(e.x-t.x,2)+Math.pow(e.y-t.y,2))}function Ap(e,t){let a=Oo(e);if(!a)return"0 0";let o={x:(a.x-t.left)/t.width*100,y:(a.y-t.top)/t.height*100};return o.x+"% "+o.y+"%"}function tl(e,t){let{data:{value:a}}=e,{data:{value:o}}=t;return a-o}function Tp(e,t){let{data:{value:a}}=e,{data:{value:o}}=t;return o-a}function jn(e){let{left:t,top:a,height:o,width:r}=e;return[{x:t,y:a},{x:t+r,y:a},{x:t,y:a+o},{x:t+r,y:a+o}]}function Ho(e,t){if(!e||e.length===0)return null;let[a]=e;return t?a[t]:a}function ci(e,t,a){return t===void 0&&(t=e.left),a===void 0&&(a=e.top),{x:t+e.width*.5,y:a+e.height*.5}}var Si=e=>{let{collisionRect:t,droppableRects:a,droppableContainers:o}=e,r=ci(t,t.left,t.top),n=[];for(let l of o){let{id:s}=l,i=a.get(s);if(i){let u=el(ci(i),r);n.push({id:s,data:{droppableContainer:l,value:u}})}}return n.sort(tl)},Ar=e=>{let{collisionRect:t,droppableRects:a,droppableContainers:o}=e,r=jn(t),n=[];for(let l of o){let{id:s}=l,i=a.get(s);if(i){let u=jn(i),c=r.reduce((f,g,h)=>f+el(u[h],g),0),d=Number((c/4).toFixed(4));n.push({id:s,data:{droppableContainer:l,value:d}})}}return n.sort(tl)};function Ep(e,t){let a=Math.max(t.top,e.top),o=Math.max(t.left,e.left),r=Math.min(t.left+t.width,e.left+e.width),n=Math.min(t.top+t.height,e.top+e.height),l=r-o,s=n-a;if(o<r&&a<n){let i=t.width*t.height,u=e.width*e.height,c=l*s,d=c/(i+u-c);return Number(d.toFixed(4))}return 0}var al=e=>{let{collisionRect:t,droppableRects:a,droppableContainers:o}=e,r=[];for(let n of o){let{id:l}=n,s=a.get(l);if(s){let i=Ep(s,t);i>0&&r.push({id:l,data:{droppableContainer:n,value:i}})}}return r.sort(Tp)};function Op(e,t){let{top:a,left:o,bottom:r,right:n}=t;return a<=e.y&&e.y<=r&&o<=e.x&&e.x<=n}var yi=e=>{let{droppableContainers:t,droppableRects:a,pointerCoordinates:o}=e;if(!o)return[];let r=[];for(let n of t){let{id:l}=n,s=a.get(l);if(s&&Op(o,s)){let u=jn(s).reduce((d,f)=>d+el(o,f),0),c=Number((u/4).toFixed(4));r.push({id:l,data:{droppableContainer:n,value:c}})}}return r.sort(tl)};function Fp(e,t,a){return{...e,scaleX:t&&a?t.width/a.width:1,scaleY:t&&a?t.height/a.height:1}}function Ri(e,t){return e&&t?{x:e.left-t.left,y:e.top-t.top}:pt}function Bp(e){return function(a){for(var o=arguments.length,r=new Array(o>1?o-1:0),n=1;n<o;n++)r[n-1]=arguments[n];return r.reduce((l,s)=>({...l,top:l.top+e*s.y,bottom:l.bottom+e*s.y,left:l.left+e*s.x,right:l.right+e*s.x}),{...a})}}var Np=Bp(1);function Pi(e){if(e.startsWith("matrix3d(")){let t=e.slice(9,-1).split(/, /);return{x:+t[12],y:+t[13],scaleX:+t[0],scaleY:+t[5]}}else if(e.startsWith("matrix(")){let t=e.slice(7,-1).split(/, /);return{x:+t[4],y:+t[5],scaleX:+t[0],scaleY:+t[3]}}return null}function _p(e,t,a){let o=Pi(t);if(!o)return e;let{scaleX:r,scaleY:n,x:l,y:s}=o,i=e.left-l-(1-r)*parseFloat(a),u=e.top-s-(1-n)*parseFloat(a.slice(a.indexOf(" ")+1)),c=r?e.width/r:e.width,d=n?e.height/n:e.height;return{width:c,height:d,top:u,right:i+c,bottom:u+d,left:i}}var Hp={ignoreTransform:!1};function ha(e,t){t===void 0&&(t=Hp);let a=e.getBoundingClientRect();if(t.ignoreTransform){let{transform:u,transformOrigin:c}=Ue(e).getComputedStyle(e);u&&(a=_p(a,u,c))}let{top:o,left:r,width:n,height:l,bottom:s,right:i}=a;return{top:o,left:r,width:n,height:l,bottom:s,right:i}}function fi(e){return ha(e,{ignoreTransform:!0})}function Up(e){let t=e.innerWidth,a=e.innerHeight;return{top:0,left:0,right:t,bottom:a,width:t,height:a}}function qp(e,t){return t===void 0&&(t=Ue(e).getComputedStyle(e)),t.position==="fixed"}function Vp(e,t){t===void 0&&(t=Ue(e).getComputedStyle(e));let a=/(auto|scroll|overlay)/;return["overflow","overflowX","overflowY"].some(r=>{let n=t[r];return typeof n=="string"?a.test(n):!1})}function Uo(e,t){let a=[];function o(r){if(t!=null&&a.length>=t||!r)return a;if(Rr(r)&&r.scrollingElement!=null&&!a.includes(r.scrollingElement))return a.push(r.scrollingElement),a;if(!$a(r)||Gn(r)||a.includes(r))return a;let n=Ue(e).getComputedStyle(r);return r!==e&&Vp(r,n)&&a.push(r),qp(r,n)?a:o(r.parentNode)}return e?o(e):a}function ki(e){let[t]=Uo(e,1);return t??null}function zn(e){return!Mo||!e?null:sa(e)?e:yr(e)?Rr(e)||e===ia(e).scrollingElement?window:$a(e)?e:null:null}function Di(e){return sa(e)?e.scrollX:e.scrollLeft}function Mi(e){return sa(e)?e.scrollY:e.scrollTop}function $n(e){return{x:Di(e),y:Mi(e)}}var ke;(function(e){e[e.Forward=1]="Forward",e[e.Backward=-1]="Backward"})(ke||(ke={}));function Ai(e){return!Mo||!e?!1:e===document.scrollingElement}function Ti(e){let t={x:0,y:0},a=Ai(e)?{height:window.innerHeight,width:window.innerWidth}:{height:e.clientHeight,width:e.clientWidth},o={x:e.scrollWidth-a.width,y:e.scrollHeight-a.height},r=e.scrollTop<=t.y,n=e.scrollLeft<=t.x,l=e.scrollTop>=o.y,s=e.scrollLeft>=o.x;return{isTop:r,isLeft:n,isBottom:l,isRight:s,maxScroll:o,minScroll:t}}var Wp={x:.2,y:.2};function Gp(e,t,a,o,r){let{top:n,left:l,right:s,bottom:i}=a;o===void 0&&(o=10),r===void 0&&(r=Wp);let{isTop:u,isBottom:c,isLeft:d,isRight:f}=Ti(e),g={x:0,y:0},h={x:0,y:0},p={height:t.height*r.y,width:t.width*r.x};return!u&&n<=t.top+p.height?(g.y=ke.Backward,h.y=o*Math.abs((t.top+p.height-n)/p.height)):!c&&i>=t.bottom-p.height&&(g.y=ke.Forward,h.y=o*Math.abs((t.bottom-p.height-i)/p.height)),!f&&s>=t.right-p.width?(g.x=ke.Forward,h.x=o*Math.abs((t.right-p.width-s)/p.width)):!d&&l<=t.left+p.width&&(g.x=ke.Backward,h.x=o*Math.abs((t.left+p.width-l)/p.width)),{direction:g,speed:h}}function zp(e){if(e===document.scrollingElement){let{innerWidth:n,innerHeight:l}=window;return{top:0,left:0,right:n,bottom:l,width:n,height:l}}let{top:t,left:a,right:o,bottom:r}=e.getBoundingClientRect();return{top:t,left:a,right:o,bottom:r,width:e.clientWidth,height:e.clientHeight}}function Ei(e){return e.reduce((t,a)=>da(t,$n(a)),pt)}function Kp(e){return e.reduce((t,a)=>t+Di(a),0)}function Xp(e){return e.reduce((t,a)=>t+Mi(a),0)}function Oi(e,t){if(t===void 0&&(t=ha),!e)return;let{top:a,left:o,bottom:r,right:n}=t(e);ki(e)&&(r<=0||n<=0||a>=window.innerHeight||o>=window.innerWidth)&&e.scrollIntoView({block:"center",inline:"center"})}var jp=[["x",["left","right"],Kp],["y",["top","bottom"],Xp]],Bo=class{constructor(t,a){this.rect=void 0,this.width=void 0,this.height=void 0,this.top=void 0,this.bottom=void 0,this.right=void 0,this.left=void 0;let o=Uo(a),r=Ei(o);this.rect={...t},this.width=t.width,this.height=t.height;for(let[n,l,s]of jp)for(let i of l)Object.defineProperty(this,i,{get:()=>{let u=s(o),c=r[n]-u;return this.rect[i]+c},enumerable:!0});Object.defineProperty(this,"rect",{enumerable:!1})}},ma=class{constructor(t){this.target=void 0,this.listeners=[],this.removeAll=()=>{this.listeners.forEach(a=>{var o;return(o=this.target)==null?void 0:o.removeEventListener(...a)})},this.target=t}add(t,a,o){var r;(r=this.target)==null||r.addEventListener(t,a,o),this.listeners.push([t,a,o])}};function $p(e){let{EventTarget:t}=Ue(e);return e instanceof t?e:ia(e)}function Kn(e,t){let a=Math.abs(e.x),o=Math.abs(e.y);return typeof t=="number"?Math.sqrt(a**2+o**2)>t:"x"in t&&"y"in t?a>t.x&&o>t.y:"x"in t?a>t.x:"y"in t?o>t.y:!1}var lt;(function(e){e.Click="click",e.DragStart="dragstart",e.Keydown="keydown",e.ContextMenu="contextmenu",e.Resize="resize",e.SelectionChange="selectionchange",e.VisibilityChange="visibilitychange"})(lt||(lt={}));function pi(e){e.preventDefault()}function Yp(e){e.stopPropagation()}var re;(function(e){e.Space="Space",e.Down="ArrowDown",e.Right="ArrowRight",e.Left="ArrowLeft",e.Up="ArrowUp",e.Esc="Escape",e.Enter="Enter",e.Tab="Tab"})(re||(re={}));var Fi={start:[re.Space,re.Enter],cancel:[re.Esc],end:[re.Space,re.Enter,re.Tab]},Zp=(e,t)=>{let{currentCoordinates:a}=t;switch(e.code){case re.Right:return{...a,x:a.x+25};case re.Left:return{...a,x:a.x-25};case re.Down:return{...a,y:a.y+25};case re.Up:return{...a,y:a.y-25}}},Zt=class{constructor(t){this.props=void 0,this.autoScrollEnabled=!1,this.referenceCoordinates=void 0,this.listeners=void 0,this.windowListeners=void 0,this.props=t;let{event:{target:a}}=t;this.props=t,this.listeners=new ma(ia(a)),this.windowListeners=new ma(Ue(a)),this.handleKeyDown=this.handleKeyDown.bind(this),this.handleCancel=this.handleCancel.bind(this),this.attach()}attach(){this.handleStart(),this.windowListeners.add(lt.Resize,this.handleCancel),this.windowListeners.add(lt.VisibilityChange,this.handleCancel),setTimeout(()=>this.listeners.add(lt.Keydown,this.handleKeyDown))}handleStart(){let{activeNode:t,onStart:a}=this.props,o=t.node.current;o&&Oi(o),a(pt)}handleKeyDown(t){if(Ja(t)){let{active:a,context:o,options:r}=this.props,{keyboardCodes:n=Fi,coordinateGetter:l=Zp,scrollBehavior:s="smooth"}=r,{code:i}=t;if(n.end.includes(i)){this.handleEnd(t);return}if(n.cancel.includes(i)){this.handleCancel(t);return}let{collisionRect:u}=o.current,c=u?{x:u.left,y:u.top}:pt;this.referenceCoordinates||(this.referenceCoordinates=c);let d=l(t,{active:a,context:o.current,currentCoordinates:c});if(d){let f=ca(d,c),g={x:0,y:0},{scrollableAncestors:h}=o.current;for(let p of h){let m=t.code,{isTop:x,isRight:C,isLeft:v,isBottom:L,maxScroll:I,minScroll:b}=Ti(p),S=zp(p),y={x:Math.min(m===re.Right?S.right-S.width/2:S.right,Math.max(m===re.Right?S.left:S.left+S.width/2,d.x)),y:Math.min(m===re.Down?S.bottom-S.height/2:S.bottom,Math.max(m===re.Down?S.top:S.top+S.height/2,d.y))},P=m===re.Right&&!C||m===re.Left&&!v,T=m===re.Down&&!L||m===re.Up&&!x;if(P&&y.x!==d.x){let M=p.scrollLeft+f.x,E=m===re.Right&&M<=I.x||m===re.Left&&M>=b.x;if(E&&!f.y){p.scrollTo({left:M,behavior:s});return}E?g.x=p.scrollLeft-M:g.x=m===re.Right?p.scrollLeft-I.x:p.scrollLeft-b.x,g.x&&p.scrollBy({left:-g.x,behavior:s});break}else if(T&&y.y!==d.y){let M=p.scrollTop+f.y,E=m===re.Down&&M<=I.y||m===re.Up&&M>=b.y;if(E&&!f.x){p.scrollTo({top:M,behavior:s});return}E?g.y=p.scrollTop-M:g.y=m===re.Down?p.scrollTop-I.y:p.scrollTop-b.y,g.y&&p.scrollBy({top:-g.y,behavior:s});break}}this.handleMove(t,da(ca(d,this.referenceCoordinates),g))}}}handleMove(t,a){let{onMove:o}=this.props;t.preventDefault(),o(a)}handleEnd(t){let{onEnd:a}=this.props;t.preventDefault(),this.detach(),a()}handleCancel(t){let{onCancel:a}=this.props;t.preventDefault(),this.detach(),a()}detach(){this.listeners.removeAll(),this.windowListeners.removeAll()}};Zt.activators=[{eventName:"onKeyDown",handler:(e,t,a)=>{let{keyboardCodes:o=Fi,onActivation:r}=t,{active:n}=a,{code:l}=e.nativeEvent;if(o.start.includes(l)){let s=n.activatorNode.current;return s&&e.target!==s?!1:(e.preventDefault(),r?.({event:e.nativeEvent}),!0)}return!1}}];function mi(e){return!!(e&&"distance"in e)}function gi(e){return!!(e&&"delay"in e)}var No=class{constructor(t,a,o){var r;o===void 0&&(o=$p(t.event.target)),this.props=void 0,this.events=void 0,this.autoScrollEnabled=!0,this.document=void 0,this.activated=!1,this.initialCoordinates=void 0,this.timeoutId=null,this.listeners=void 0,this.documentListeners=void 0,this.windowListeners=void 0,this.props=t,this.events=a;let{event:n}=t,{target:l}=n;this.props=t,this.events=a,this.document=ia(l),this.documentListeners=new ma(this.document),this.listeners=new ma(o),this.windowListeners=new ma(Ue(l)),this.initialCoordinates=(r=Oo(n))!=null?r:pt,this.handleStart=this.handleStart.bind(this),this.handleMove=this.handleMove.bind(this),this.handleEnd=this.handleEnd.bind(this),this.handleCancel=this.handleCancel.bind(this),this.handleKeydown=this.handleKeydown.bind(this),this.removeTextSelection=this.removeTextSelection.bind(this),this.attach()}attach(){let{events:t,props:{options:{activationConstraint:a,bypassActivationConstraint:o}}}=this;if(this.listeners.add(t.move.name,this.handleMove,{passive:!1}),this.listeners.add(t.end.name,this.handleEnd),t.cancel&&this.listeners.add(t.cancel.name,this.handleCancel),this.windowListeners.add(lt.Resize,this.handleCancel),this.windowListeners.add(lt.DragStart,pi),this.windowListeners.add(lt.VisibilityChange,this.handleCancel),this.windowListeners.add(lt.ContextMenu,pi),this.documentListeners.add(lt.Keydown,this.handleKeydown),a){if(o!=null&&o({event:this.props.event,activeNode:this.props.activeNode,options:this.props.options}))return this.handleStart();if(gi(a)){this.timeoutId=setTimeout(this.handleStart,a.delay),this.handlePending(a);return}if(mi(a)){this.handlePending(a);return}}this.handleStart()}detach(){this.listeners.removeAll(),this.windowListeners.removeAll(),setTimeout(this.documentListeners.removeAll,50),this.timeoutId!==null&&(clearTimeout(this.timeoutId),this.timeoutId=null)}handlePending(t,a){let{active:o,onPending:r}=this.props;r(o,t,this.initialCoordinates,a)}handleStart(){let{initialCoordinates:t}=this,{onStart:a}=this.props;t&&(this.activated=!0,this.documentListeners.add(lt.Click,Yp,{capture:!0}),this.removeTextSelection(),this.documentListeners.add(lt.SelectionChange,this.removeTextSelection),a(t))}handleMove(t){var a;let{activated:o,initialCoordinates:r,props:n}=this,{onMove:l,options:{activationConstraint:s}}=n;if(!r)return;let i=(a=Oo(t))!=null?a:pt,u=ca(r,i);if(!o&&s){if(mi(s)){if(s.tolerance!=null&&Kn(u,s.tolerance))return this.handleCancel();if(Kn(u,s.distance))return this.handleStart()}if(gi(s)&&Kn(u,s.tolerance))return this.handleCancel();this.handlePending(s,u);return}t.cancelable&&t.preventDefault(),l(i)}handleEnd(){let{onAbort:t,onEnd:a}=this.props;this.detach(),this.activated||t(this.props.active),a()}handleCancel(){let{onAbort:t,onCancel:a}=this.props;this.detach(),this.activated||t(this.props.active),a()}handleKeydown(t){t.code===re.Esc&&this.handleCancel()}removeTextSelection(){var t;(t=this.document.getSelection())==null||t.removeAllRanges()}},Jp={cancel:{name:"pointercancel"},move:{name:"pointermove"},end:{name:"pointerup"}},Jt=class extends No{constructor(t){let{event:a}=t,o=ia(a.target);super(t,Jp,o)}};Jt.activators=[{eventName:"onPointerDown",handler:(e,t)=>{let{nativeEvent:a}=e,{onActivation:o}=t;return!a.isPrimary||a.button!==0?!1:(o?.({event:a}),!0)}}];var Qp={move:{name:"mousemove"},end:{name:"mouseup"}},Yn;(function(e){e[e.RightClick=2]="RightClick"})(Yn||(Yn={}));var Zn=class extends No{constructor(t){super(t,Qp,ia(t.event.target))}};Zn.activators=[{eventName:"onMouseDown",handler:(e,t)=>{let{nativeEvent:a}=e,{onActivation:o}=t;return a.button===Yn.RightClick?!1:(o?.({event:a}),!0)}}];var Xn={cancel:{name:"touchcancel"},move:{name:"touchmove"},end:{name:"touchend"}},Jn=class extends No{constructor(t){super(t,Xn)}static setup(){return window.addEventListener(Xn.move.name,t,{capture:!1,passive:!1}),function(){window.removeEventListener(Xn.move.name,t)};function t(){}}};Jn.activators=[{eventName:"onTouchStart",handler:(e,t)=>{let{nativeEvent:a}=e,{onActivation:o}=t,{touches:r}=a;return r.length>1?!1:(o?.({event:a}),!0)}}];var Fo;(function(e){e[e.Pointer=0]="Pointer",e[e.DraggableRect=1]="DraggableRect"})(Fo||(Fo={}));var Dr;(function(e){e[e.TreeOrder=0]="TreeOrder",e[e.ReversedTreeOrder=1]="ReversedTreeOrder"})(Dr||(Dr={}));function em(e){let{acceleration:t,activator:a=Fo.Pointer,canScroll:o,draggingRect:r,enabled:n,interval:l=5,order:s=Dr.TreeOrder,pointerCoordinates:i,scrollableAncestors:u,scrollableAncestorRects:c,delta:d,threshold:f}=e,g=am({delta:d,disabled:!n}),[h,p]=ni(),m=(0,w.useRef)({x:0,y:0}),x=(0,w.useRef)({x:0,y:0}),C=(0,w.useMemo)(()=>{switch(a){case Fo.Pointer:return i?{top:i.y,bottom:i.y,left:i.x,right:i.x}:null;case Fo.DraggableRect:return r}},[a,r,i]),v=(0,w.useRef)(null),L=(0,w.useCallback)(()=>{let b=v.current;if(!b)return;let S=m.current.x*x.current.x,y=m.current.y*x.current.y;b.scrollBy(S,y)},[]),I=(0,w.useMemo)(()=>s===Dr.TreeOrder?[...u].reverse():u,[s,u]);(0,w.useEffect)(()=>{if(!n||!u.length||!C){p();return}for(let b of I){if(o?.(b)===!1)continue;let S=u.indexOf(b),y=c[S];if(!y)continue;let{direction:P,speed:T}=Gp(b,y,C,t,f);for(let M of["x","y"])g[M][P[M]]||(T[M]=0,P[M]=0);if(T.x>0||T.y>0){p(),v.current=b,h(L,l),m.current=T,x.current=P;return}}m.current={x:0,y:0},x.current={x:0,y:0},p()},[t,L,o,p,n,l,JSON.stringify(C),JSON.stringify(g),h,u,I,c,JSON.stringify(f)])}var tm={x:{[ke.Backward]:!1,[ke.Forward]:!1},y:{[ke.Backward]:!1,[ke.Forward]:!1}};function am(e){let{delta:t,disabled:a}=e,o=Eo(t);return Za(r=>{if(a||!o||!r)return tm;let n={x:Math.sign(t.x-o.x),y:Math.sign(t.y-o.y)};return{x:{[ke.Backward]:r.x[ke.Backward]||n.x===-1,[ke.Forward]:r.x[ke.Forward]||n.x===1},y:{[ke.Backward]:r.y[ke.Backward]||n.y===-1,[ke.Forward]:r.y[ke.Forward]||n.y===1}}},[a,t,o])}function om(e,t){let a=t!=null?e.get(t):void 0,o=a?a.node.current:null;return Za(r=>{var n;return t==null?null:(n=o??r)!=null?n:null},[o,t])}function rm(e,t){return(0,w.useMemo)(()=>e.reduce((a,o)=>{let{sensor:r}=o,n=r.activators.map(l=>({eventName:l.eventName,handler:t(l.handler,o)}));return[...a,...n]},[]),[e,t])}var _o;(function(e){e[e.Always=0]="Always",e[e.BeforeDragging=1]="BeforeDragging",e[e.WhileDragging=2]="WhileDragging"})(_o||(_o={}));var Qn;(function(e){e.Optimized="optimized"})(Qn||(Qn={}));var hi=new Map;function nm(e,t){let{dragging:a,dependencies:o,config:r}=t,[n,l]=(0,w.useState)(null),{frequency:s,measure:i,strategy:u}=r,c=(0,w.useRef)(e),d=m(),f=Ya(d),g=(0,w.useCallback)(function(x){x===void 0&&(x=[]),!f.current&&l(C=>C===null?x:C.concat(x.filter(v=>!C.includes(v))))},[f]),h=(0,w.useRef)(null),p=Za(x=>{if(d&&!a)return hi;if(!x||x===hi||c.current!==e||n!=null){let C=new Map;for(let v of e){if(!v)continue;if(n&&n.length>0&&!n.includes(v.id)&&v.rect.current){C.set(v.id,v.rect.current);continue}let L=v.node.current,I=L?new Bo(i(L),L):null;v.rect.current=I,I&&C.set(v.id,I)}return C}return x},[e,n,a,d,i]);return(0,w.useEffect)(()=>{c.current=e},[e]),(0,w.useEffect)(()=>{d||g()},[a,d]),(0,w.useEffect)(()=>{n&&n.length>0&&l(null)},[JSON.stringify(n)]),(0,w.useEffect)(()=>{d||typeof s!="number"||h.current!==null||(h.current=setTimeout(()=>{g(),h.current=null},s))},[s,d,g,...o]),{droppableRects:p,measureDroppableContainers:g,measuringScheduled:n!=null};function m(){switch(u){case _o.Always:return!1;case _o.BeforeDragging:return a;default:return!a}}}function ol(e,t){return Za(a=>e?a||(typeof t=="function"?t(e):e):null,[t,e])}function lm(e,t){return ol(e,t)}function sm(e){let{callback:t,disabled:a}=e,o=Ao(t),r=(0,w.useMemo)(()=>{if(a||typeof window>"u"||typeof window.MutationObserver>"u")return;let{MutationObserver:n}=window;return new n(o)},[o,a]);return(0,w.useEffect)(()=>()=>r?.disconnect(),[r]),r}function Tr(e){let{callback:t,disabled:a}=e,o=Ao(t),r=(0,w.useMemo)(()=>{if(a||typeof window>"u"||typeof window.ResizeObserver>"u")return;let{ResizeObserver:n}=window;return new n(o)},[a]);return(0,w.useEffect)(()=>()=>r?.disconnect(),[r]),r}function im(e){return new Bo(ha(e),e)}function xi(e,t,a){t===void 0&&(t=im);let[o,r]=(0,w.useState)(null);function n(){r(i=>{if(!e)return null;if(e.isConnected===!1){var u;return(u=i??a)!=null?u:null}let c=t(e);return JSON.stringify(i)===JSON.stringify(c)?i:c})}let l=sm({callback(i){if(e)for(let u of i){let{type:c,target:d}=u;if(c==="childList"&&d instanceof HTMLElement&&d.contains(e)){n();break}}}}),s=Tr({callback:n});return et(()=>{n(),e?(s?.observe(e),l?.observe(document.body,{childList:!0,subtree:!0})):(s?.disconnect(),l?.disconnect())},[e]),o}function um(e){let t=ol(e);return Ri(e,t)}var vi=[];function dm(e){let t=(0,w.useRef)(e),a=Za(o=>e?o&&o!==vi&&e&&t.current&&e.parentNode===t.current.parentNode?o:Uo(e):vi,[e]);return(0,w.useEffect)(()=>{t.current=e},[e]),a}function cm(e){let[t,a]=(0,w.useState)(null),o=(0,w.useRef)(e),r=(0,w.useCallback)(n=>{let l=zn(n.target);l&&a(s=>s?(s.set(l,$n(l)),new Map(s)):null)},[]);return(0,w.useEffect)(()=>{let n=o.current;if(e!==n){l(n);let s=e.map(i=>{let u=zn(i);return u?(u.addEventListener("scroll",r,{passive:!0}),[u,$n(u)]):null}).filter(i=>i!=null);a(s.length?new Map(s):null),o.current=e}return()=>{l(e),l(n)};function l(s){s.forEach(i=>{let u=zn(i);u?.removeEventListener("scroll",r)})}},[r,e]),(0,w.useMemo)(()=>e.length?t?Array.from(t.values()).reduce((n,l)=>da(n,l),pt):Ei(e):pt,[e,t])}function Ci(e,t){t===void 0&&(t=[]);let a=(0,w.useRef)(null);return(0,w.useEffect)(()=>{a.current=null},t),(0,w.useEffect)(()=>{let o=e!==pt;o&&!a.current&&(a.current=e),!o&&a.current&&(a.current=null)},[e]),a.current?ca(e,a.current):pt}function fm(e){(0,w.useEffect)(()=>{if(!Mo)return;let t=e.map(a=>{let{sensor:o}=a;return o.setup==null?void 0:o.setup()});return()=>{for(let a of t)a?.()}},e.map(t=>{let{sensor:a}=t;return a}))}function pm(e,t){return(0,w.useMemo)(()=>e.reduce((a,o)=>{let{eventName:r,handler:n}=o;return a[r]=l=>{n(l,t)},a},{}),[e,t])}function Bi(e){return(0,w.useMemo)(()=>e?Up(e):null,[e])}var Li=[];function mm(e,t){t===void 0&&(t=ha);let[a]=e,o=Bi(a?Ue(a):null),[r,n]=(0,w.useState)(Li);function l(){n(()=>e.length?e.map(i=>Ai(i)?o:new Bo(t(i),i)):Li)}let s=Tr({callback:l});return et(()=>{s?.disconnect(),l(),e.forEach(i=>s?.observe(i))},[e]),r}function Ni(e){if(!e)return null;if(e.children.length>1)return e;let t=e.children[0];return $a(t)?t:e}function gm(e){let{measure:t}=e,[a,o]=(0,w.useState)(null),r=(0,w.useCallback)(u=>{for(let{target:c}of u)if($a(c)){o(d=>{let f=t(c);return d?{...d,width:f.width,height:f.height}:f});break}},[t]),n=Tr({callback:r}),l=(0,w.useCallback)(u=>{let c=Ni(u);n?.disconnect(),c&&n?.observe(c),o(c?t(c):null)},[t,n]),[s,i]=To(l);return(0,w.useMemo)(()=>({nodeRef:s,rect:a,setRef:i}),[a,s,i])}var hm=[{sensor:Jt,options:{}},{sensor:Zt,options:{}}],xm={current:{}},Pr={draggable:{measure:fi},droppable:{measure:fi,strategy:_o.WhileDragging,frequency:Qn.Optimized},dragOverlay:{measure:ha}},ga=class extends Map{get(t){var a;return t!=null&&(a=super.get(t))!=null?a:void 0}toArray(){return Array.from(this.values())}getEnabled(){return this.toArray().filter(t=>{let{disabled:a}=t;return!a})}getNodeFor(t){var a,o;return(a=(o=this.get(t))==null?void 0:o.node.current)!=null?a:void 0}},vm={activatorEvent:null,active:null,activeNode:null,activeNodeRect:null,collisions:null,containerNodeRect:null,draggableNodes:new Map,droppableRects:new Map,droppableContainers:new ga,over:null,dragOverlay:{nodeRef:{current:null},rect:null,setRef:kr},scrollableAncestors:[],scrollableAncestorRects:[],measuringConfiguration:Pr,measureDroppableContainers:kr,windowRect:null,measuringScheduled:!1},_i={activatorEvent:null,activators:[],active:null,activeNodeRect:null,ariaDescribedById:{draggable:""},dispatch:kr,draggableNodes:new Map,over:null,measureDroppableContainers:kr},qo=(0,w.createContext)(_i),Hi=(0,w.createContext)(vm);function Cm(){return{draggable:{active:null,initialCoordinates:{x:0,y:0},nodes:new Map,translate:{x:0,y:0}},droppable:{containers:new ga}}}function Lm(e,t){switch(t.type){case Re.DragStart:return{...e,draggable:{...e.draggable,initialCoordinates:t.initialCoordinates,active:t.active}};case Re.DragMove:return e.draggable.active==null?e:{...e,draggable:{...e.draggable,translate:{x:t.coordinates.x-e.draggable.initialCoordinates.x,y:t.coordinates.y-e.draggable.initialCoordinates.y}}};case Re.DragEnd:case Re.DragCancel:return{...e,draggable:{...e.draggable,active:null,initialCoordinates:{x:0,y:0},translate:{x:0,y:0}}};case Re.RegisterDroppable:{let{element:a}=t,{id:o}=a,r=new ga(e.droppable.containers);return r.set(o,a),{...e,droppable:{...e.droppable,containers:r}}}case Re.SetDroppableDisabled:{let{id:a,key:o,disabled:r}=t,n=e.droppable.containers.get(a);if(!n||o!==n.key)return e;let l=new ga(e.droppable.containers);return l.set(a,{...n,disabled:r}),{...e,droppable:{...e.droppable,containers:l}}}case Re.UnregisterDroppable:{let{id:a,key:o}=t,r=e.droppable.containers.get(a);if(!r||o!==r.key)return e;let n=new ga(e.droppable.containers);return n.delete(a),{...e,droppable:{...e.droppable,containers:n}}}default:return e}}function bm(e){let{disabled:t}=e,{active:a,activatorEvent:o,draggableNodes:r}=(0,w.useContext)(qo),n=Eo(o),l=Eo(a?.id);return(0,w.useEffect)(()=>{if(!t&&!o&&n&&l!=null){if(!Ja(n)||document.activeElement===n.target)return;let s=r.get(l);if(!s)return;let{activatorNode:i,node:u}=s;if(!i.current&&!u.current)return;requestAnimationFrame(()=>{for(let c of[i.current,u.current]){if(!c)continue;let d=si(c);if(d){d.focus();break}}})}},[o,t,r,l,n]),null}function Ui(e,t){let{transform:a,...o}=t;return e!=null&&e.length?e.reduce((r,n)=>n({transform:r,...o}),a):a}function Im(e){return(0,w.useMemo)(()=>({draggable:{...Pr.draggable,...e?.draggable},droppable:{...Pr.droppable,...e?.droppable},dragOverlay:{...Pr.dragOverlay,...e?.dragOverlay}}),[e?.draggable,e?.droppable,e?.dragOverlay])}function wm(e){let{activeNode:t,measure:a,initialRect:o,config:r=!0}=e,n=(0,w.useRef)(!1),{x:l,y:s}=typeof r=="boolean"?{x:r,y:r}:r;et(()=>{if(!l&&!s||!t){n.current=!1;return}if(n.current||!o)return;let u=t?.node.current;if(!u||u.isConnected===!1)return;let c=a(u),d=Ri(c,o);if(l||(d.x=0),s||(d.y=0),n.current=!0,Math.abs(d.x)>0||Math.abs(d.y)>0){let f=ki(u);f&&f.scrollBy({top:d.y,left:d.x})}},[t,l,s,o,a])}var Er=(0,w.createContext)({...pt,scaleX:1,scaleY:1}),Yt;(function(e){e[e.Uninitialized=0]="Uninitialized",e[e.Initializing=1]="Initializing",e[e.Initialized=2]="Initialized"})(Yt||(Yt={}));var Or=(0,w.memo)(function(t){var a,o,r,n;let{id:l,accessibility:s,autoScroll:i=!0,children:u,sensors:c=hm,collisionDetection:d=al,measuring:f,modifiers:g,...h}=t,p=(0,w.useReducer)(Lm,void 0,Cm),[m,x]=p,[C,v]=Pp(),[L,I]=(0,w.useState)(Yt.Uninitialized),b=L===Yt.Initialized,{draggable:{active:S,nodes:y,translate:P},droppable:{containers:T}}=m,M=S!=null?y.get(S):null,E=(0,w.useRef)({initial:null,translated:null}),N=(0,w.useMemo)(()=>{var _e;return S!=null?{id:S,data:(_e=M?.data)!=null?_e:xm,rect:E}:null},[S,M]),H=(0,w.useRef)(null),[Q,$]=(0,w.useState)(null),[O,_]=(0,w.useState)(null),G=Ya(h,Object.values(h)),A=ua("DndDescribedBy",l),me=(0,w.useMemo)(()=>T.getEnabled(),[T]),J=Im(f),{droppableRects:le,measureDroppableContainers:he,measuringScheduled:R}=nm(me,{dragging:b,dependencies:[P.x,P.y],config:J.droppable}),F=om(y,S),W=(0,w.useMemo)(()=>O?Oo(O):null,[O]),k=mp(),X=lm(F,J.draggable.measure);wm({activeNode:S!=null?y.get(S):null,config:k.layoutShiftCompensation,initialRect:X,measure:J.draggable.measure});let B=xi(F,J.draggable.measure,X),j=xi(F?F.parentElement:null),Y=(0,w.useRef)({activatorEvent:null,active:null,activeNode:F,collisionRect:null,collisions:null,droppableRects:le,draggableNodes:y,draggingNode:null,draggingNodeRect:null,droppableContainers:T,over:null,scrollableAncestors:[],scrollAdjustedTranslate:null}),te=T.getNodeFor((a=Y.current.over)==null?void 0:a.id),xe=gm({measure:J.dragOverlay.measure}),ye=(o=xe.nodeRef.current)!=null?o:F,wt=b?(r=xe.rect)!=null?r:B:null,Ga=!!(xe.nodeRef.current&&xe.rect),za=um(Ga?null:B),Hn=Bi(ye?Ue(ye):null),zt=dm(b?te??F:null),Ir=mm(zt),wr=Ui(g,{transform:{x:P.x-za.x,y:P.y-za.y,scaleX:1,scaleY:1},activatorEvent:O,active:N,activeNodeRect:B,containerNodeRect:j,draggingNodeRect:wt,over:Y.current.over,overlayNodeRect:xe.rect,scrollableAncestors:zt,scrollableAncestorRects:Ir,windowRect:Hn}),Ks=W?da(W,P):null,Xs=cm(zt),sp=Ci(Xs),ip=Ci(Xs,[B]),Ka=da(wr,sp),Xa=wt?Np(wt,wr):null,Ro=N&&Xa?d({active:N,collisionRect:Xa,droppableRects:le,droppableContainers:me,pointerCoordinates:Ks}):null,js=Ho(Ro,"id"),[Kt,$s]=(0,w.useState)(null),up=Ga?wr:da(wr,ip),dp=Fp(up,(n=Kt?.rect)!=null?n:null,B),Un=(0,w.useRef)(null),Ys=(0,w.useCallback)((_e,Ye)=>{let{sensor:Ze,options:Xt}=Ye;if(H.current==null)return;let nt=y.get(H.current);if(!nt)return;let Je=_e.nativeEvent,St=new Ze({active:H.current,activeNode:nt,event:Je,options:Xt,context:Y,onAbort(Oe){if(!y.get(Oe))return;let{onDragAbort:yt}=G.current,Ot={id:Oe};yt?.(Ot),C({type:"onDragAbort",event:Ot})},onPending(Oe,jt,yt,Ot){if(!y.get(Oe))return;let{onDragPending:ko}=G.current,$t={id:Oe,constraint:jt,initialCoordinates:yt,offset:Ot};ko?.($t),C({type:"onDragPending",event:$t})},onStart(Oe){let jt=H.current;if(jt==null)return;let yt=y.get(jt);if(!yt)return;let{onDragStart:Ot}=G.current,Po={activatorEvent:Je,active:{id:jt,data:yt.data,rect:E}};(0,pa.unstable_batchedUpdates)(()=>{Ot?.(Po),I(Yt.Initializing),x({type:Re.DragStart,initialCoordinates:Oe,active:jt}),C({type:"onDragStart",event:Po}),$(Un.current),_(Je)})},onMove(Oe){x({type:Re.DragMove,coordinates:Oe})},onEnd:ja(Re.DragEnd),onCancel:ja(Re.DragCancel)});Un.current=St;function ja(Oe){return async function(){let{active:yt,collisions:Ot,over:Po,scrollAdjustedTranslate:ko}=Y.current,$t=null;if(yt&&ko){let{cancelDrop:Do}=G.current;$t={activatorEvent:Je,active:yt,collisions:Ot,delta:ko,over:Po},Oe===Re.DragEnd&&typeof Do=="function"&&await Promise.resolve(Do($t))&&(Oe=Re.DragCancel)}H.current=null,(0,pa.unstable_batchedUpdates)(()=>{x({type:Oe}),I(Yt.Uninitialized),$s(null),$(null),_(null),Un.current=null;let Do=Oe===Re.DragEnd?"onDragEnd":"onDragCancel";if($t){let qn=G.current[Do];qn?.($t),C({type:Do,event:$t})}})}}},[y]),cp=(0,w.useCallback)((_e,Ye)=>(Ze,Xt)=>{let nt=Ze.nativeEvent,Je=y.get(Xt);if(H.current!==null||!Je||nt.dndKit||nt.defaultPrevented)return;let St={active:Je};_e(Ze,Ye.options,St)===!0&&(nt.dndKit={capturedBy:Ye.sensor},H.current=Xt,Ys(Ze,Ye))},[y,Ys]),Zs=rm(c,cp);fm(c),et(()=>{B&&L===Yt.Initializing&&I(Yt.Initialized)},[B,L]),(0,w.useEffect)(()=>{let{onDragMove:_e}=G.current,{active:Ye,activatorEvent:Ze,collisions:Xt,over:nt}=Y.current;if(!Ye||!Ze)return;let Je={active:Ye,activatorEvent:Ze,collisions:Xt,delta:{x:Ka.x,y:Ka.y},over:nt};(0,pa.unstable_batchedUpdates)(()=>{_e?.(Je),C({type:"onDragMove",event:Je})})},[Ka.x,Ka.y]),(0,w.useEffect)(()=>{let{active:_e,activatorEvent:Ye,collisions:Ze,droppableContainers:Xt,scrollAdjustedTranslate:nt}=Y.current;if(!_e||H.current==null||!Ye||!nt)return;let{onDragOver:Je}=G.current,St=Xt.get(js),ja=St&&St.rect.current?{id:St.id,rect:St.rect.current,data:St.data,disabled:St.disabled}:null,Oe={active:_e,activatorEvent:Ye,collisions:Ze,delta:{x:nt.x,y:nt.y},over:ja};(0,pa.unstable_batchedUpdates)(()=>{$s(ja),Je?.(Oe),C({type:"onDragOver",event:Oe})})},[js]),et(()=>{Y.current={activatorEvent:O,active:N,activeNode:F,collisionRect:Xa,collisions:Ro,droppableRects:le,draggableNodes:y,draggingNode:ye,draggingNodeRect:wt,droppableContainers:T,over:Kt,scrollableAncestors:zt,scrollAdjustedTranslate:Ka},E.current={initial:wt,translated:Xa}},[N,F,Ro,Xa,y,ye,wt,le,T,Kt,zt,Ka]),em({...k,delta:P,draggingRect:Xa,pointerCoordinates:Ks,scrollableAncestors:zt,scrollableAncestorRects:Ir});let fp=(0,w.useMemo)(()=>({active:N,activeNode:F,activeNodeRect:B,activatorEvent:O,collisions:Ro,containerNodeRect:j,dragOverlay:xe,draggableNodes:y,droppableContainers:T,droppableRects:le,over:Kt,measureDroppableContainers:he,scrollableAncestors:zt,scrollableAncestorRects:Ir,measuringConfiguration:J,measuringScheduled:R,windowRect:Hn}),[N,F,B,O,Ro,j,xe,y,T,le,Kt,he,zt,Ir,J,R,Hn]),pp=(0,w.useMemo)(()=>({activatorEvent:O,activators:Zs,active:N,activeNodeRect:B,ariaDescribedById:{draggable:A},dispatch:x,draggableNodes:y,over:Kt,measureDroppableContainers:he}),[O,Zs,N,B,x,A,y,Kt,he]);return w.default.createElement(wi.Provider,{value:v},w.default.createElement(qo.Provider,{value:pp},w.default.createElement(Hi.Provider,{value:fp},w.default.createElement(Er.Provider,{value:dp},u)),w.default.createElement(bm,{disabled:s?.restoreFocus===!1})),w.default.createElement(Mp,{...s,hiddenTextDescribedById:A}));function mp(){let _e=Q?.autoScrollEnabled===!1,Ye=typeof i=="object"?i.enabled===!1:i===!1,Ze=b&&!_e&&!Ye;return typeof i=="object"?{...i,enabled:Ze}:{enabled:Ze}}}),Sm=(0,w.createContext)(null),bi="button",ym="Draggable";function qi(e){let{id:t,data:a,disabled:o=!1,attributes:r}=e,n=ua(ym),{activators:l,activatorEvent:s,active:i,activeNodeRect:u,ariaDescribedById:c,draggableNodes:d,over:f}=(0,w.useContext)(qo),{role:g=bi,roleDescription:h="draggable",tabIndex:p=0}=r??{},m=i?.id===t,x=(0,w.useContext)(m?Er:Sm),[C,v]=To(),[L,I]=To(),b=pm(l,t),S=Ya(a);et(()=>(d.set(t,{id:t,key:n,node:C,activatorNode:L,data:S}),()=>{let P=d.get(t);P&&P.key===n&&d.delete(t)}),[d,t]);let y=(0,w.useMemo)(()=>({role:g,tabIndex:p,"aria-disabled":o,"aria-pressed":m&&g===bi?!0:void 0,"aria-roledescription":h,"aria-describedby":c.draggable}),[o,g,p,m,h,c.draggable]);return{active:i,activatorEvent:s,activeNodeRect:u,attributes:y,isDragging:m,listeners:o?void 0:b,node:C,over:f,setNodeRef:v,setActivatorNodeRef:I,transform:x}}function rl(){return(0,w.useContext)(Hi)}var Rm="Droppable",Pm={timeout:25};function Fr(e){let{data:t,disabled:a=!1,id:o,resizeObserverConfig:r}=e,n=ua(Rm),{active:l,dispatch:s,over:i,measureDroppableContainers:u}=(0,w.useContext)(qo),c=(0,w.useRef)({disabled:a}),d=(0,w.useRef)(!1),f=(0,w.useRef)(null),g=(0,w.useRef)(null),{disabled:h,updateMeasurementsFor:p,timeout:m}={...Pm,...r},x=Ya(p??o),C=(0,w.useCallback)(()=>{if(!d.current){d.current=!0;return}g.current!=null&&clearTimeout(g.current),g.current=setTimeout(()=>{u(Array.isArray(x.current)?x.current:[x.current]),g.current=null},m)},[m]),v=Tr({callback:C,disabled:h||!l}),L=(0,w.useCallback)((y,P)=>{v&&(P&&(v.unobserve(P),d.current=!1),y&&v.observe(y))},[v]),[I,b]=To(L),S=Ya(t);return(0,w.useEffect)(()=>{!v||!I.current||(v.disconnect(),d.current=!1,v.observe(I.current))},[I,v]),(0,w.useEffect)(()=>(s({type:Re.RegisterDroppable,element:{id:o,key:n,disabled:a,node:I,rect:f,data:S}}),()=>s({type:Re.UnregisterDroppable,key:n,id:o})),[o]),(0,w.useEffect)(()=>{a!==c.current.disabled&&(s({type:Re.SetDroppableDisabled,id:o,key:n,disabled:a}),c.current.disabled=a)},[o,n,a,s]),{active:l,rect:f,isOver:i?.id===o,node:I,over:i,setNodeRef:b}}function km(e){let{animation:t,children:a}=e,[o,r]=(0,w.useState)(null),[n,l]=(0,w.useState)(null),s=Eo(a);return!a&&!o&&s&&r(s),et(()=>{if(!n)return;let i=o?.key,u=o?.props.id;if(i==null||u==null){r(null);return}Promise.resolve(t(u,n)).then(()=>{r(null)})},[t,o,n]),w.default.createElement(w.default.Fragment,null,a,o?(0,w.cloneElement)(o,{ref:l}):null)}var Dm={x:0,y:0,scaleX:1,scaleY:1};function Mm(e){let{children:t}=e;return w.default.createElement(qo.Provider,{value:_i},w.default.createElement(Er.Provider,{value:Dm},t))}var Am={position:"fixed",touchAction:"none"},Tm=e=>Ja(e)?"transform 250ms ease":void 0,Em=(0,w.forwardRef)((e,t)=>{let{as:a,activatorEvent:o,adjustScale:r,children:n,className:l,rect:s,style:i,transform:u,transition:c=Tm}=e;if(!s)return null;let d=r?u:{...u,scaleX:1,scaleY:1},f={...Am,width:s.width,height:s.height,top:s.top,left:s.left,transform:Qe.Transform.toString(d),transformOrigin:r&&o?Ap(o,s):void 0,transition:typeof c=="function"?c(o):c,...i};return w.default.createElement(a,{className:l,style:f,ref:t},n)}),Om=e=>t=>{let{active:a,dragOverlay:o}=t,r={},{styles:n,className:l}=e;if(n!=null&&n.active)for(let[s,i]of Object.entries(n.active))i!==void 0&&(r[s]=a.node.style.getPropertyValue(s),a.node.style.setProperty(s,i));if(n!=null&&n.dragOverlay)for(let[s,i]of Object.entries(n.dragOverlay))i!==void 0&&o.node.style.setProperty(s,i);return l!=null&&l.active&&a.node.classList.add(l.active),l!=null&&l.dragOverlay&&o.node.classList.add(l.dragOverlay),function(){for(let[i,u]of Object.entries(r))a.node.style.setProperty(i,u);l!=null&&l.active&&a.node.classList.remove(l.active)}},Fm=e=>{let{transform:{initial:t,final:a}}=e;return[{transform:Qe.Transform.toString(t)},{transform:Qe.Transform.toString(a)}]},Bm={duration:250,easing:"ease",keyframes:Fm,sideEffects:Om({styles:{active:{opacity:"0"}}})};function Nm(e){let{config:t,draggableNodes:a,droppableContainers:o,measuringConfiguration:r}=e;return Ao((n,l)=>{if(t===null)return;let s=a.get(n);if(!s)return;let i=s.node.current;if(!i)return;let u=Ni(l);if(!u)return;let{transform:c}=Ue(l).getComputedStyle(l),d=Pi(c);if(!d)return;let f=typeof t=="function"?t:_m(t);return Oi(i,r.draggable.measure),f({active:{id:n,data:s.data,node:i,rect:r.draggable.measure(i)},draggableNodes:a,dragOverlay:{node:l,rect:r.dragOverlay.measure(u)},droppableContainers:o,measuringConfiguration:r,transform:d})})}function _m(e){let{duration:t,easing:a,sideEffects:o,keyframes:r}={...Bm,...e};return n=>{let{active:l,dragOverlay:s,transform:i,...u}=n;if(!t)return;let c={x:s.rect.left-l.rect.left,y:s.rect.top-l.rect.top},d={scaleX:i.scaleX!==1?l.rect.width*i.scaleX/s.rect.width:1,scaleY:i.scaleY!==1?l.rect.height*i.scaleY/s.rect.height:1},f={x:i.x-c.x,y:i.y-c.y,...d},g=r({...u,active:l,dragOverlay:s,transform:{initial:i,final:f}}),[h]=g,p=g[g.length-1];if(JSON.stringify(h)===JSON.stringify(p))return;let m=o?.({active:l,dragOverlay:s,...u}),x=s.node.animate(g,{duration:t,easing:a,fill:"forwards"});return new Promise(C=>{x.onfinish=()=>{m?.(),C()}})}}var Ii=0;function Hm(e){return(0,w.useMemo)(()=>{if(e!=null)return Ii++,Ii},[e])}var Vi=w.default.memo(e=>{let{adjustScale:t=!1,children:a,dropAnimation:o,style:r,transition:n,modifiers:l,wrapperElement:s="div",className:i,zIndex:u=999}=e,{activatorEvent:c,active:d,activeNodeRect:f,containerNodeRect:g,draggableNodes:h,droppableContainers:p,dragOverlay:m,over:x,measuringConfiguration:C,scrollableAncestors:v,scrollableAncestorRects:L,windowRect:I}=rl(),b=(0,w.useContext)(Er),S=Hm(d?.id),y=Ui(l,{activatorEvent:c,active:d,activeNodeRect:f,containerNodeRect:g,draggingNodeRect:m.rect,over:x,overlayNodeRect:m.rect,scrollableAncestors:v,scrollableAncestorRects:L,transform:b,windowRect:I}),P=ol(f),T=Nm({config:o,draggableNodes:h,droppableContainers:p,measuringConfiguration:C}),M=P?m.setRef:void 0;return w.default.createElement(Mm,null,w.default.createElement(km,{animation:T},d&&S?w.default.createElement(Em,{key:S,id:d.id,ref:M,as:s,activatorEvent:c,adjustScale:t,className:i,transition:n,rect:P,style:{zIndex:u,...r},transform:y},a):null))});var Le=U(require("react"));function Wi(e,t,a){let o=e.slice();return o.splice(a<0?o.length+a:a,0,o.splice(t,1)[0]),o}function Um(e,t){return e.reduce((a,o,r)=>{let n=t.get(o);return n&&(a[r]=n),a},Array(e.length))}function Br(e){return e!==null&&e>=0}function qm(e,t){if(e===t)return!0;if(e.length!==t.length)return!1;for(let a=0;a<e.length;a++)if(e[a]!==t[a])return!1;return!0}function Vm(e){return typeof e=="boolean"?{draggable:e,droppable:e}:e}var Gi=e=>{let{rects:t,activeIndex:a,overIndex:o,index:r}=e,n=Wi(t,o,a),l=t[r],s=n[r];return!s||!l?null:{x:s.left-l.left,y:s.top-l.top,scaleX:s.width/l.width,scaleY:s.height/l.height}};var Nr={scaleX:1,scaleY:1},Hr=e=>{var t;let{activeIndex:a,activeNodeRect:o,index:r,rects:n,overIndex:l}=e,s=(t=n[a])!=null?t:o;if(!s)return null;if(r===a){let u=n[l];return u?{x:0,y:a<l?u.top+u.height-(s.top+s.height):u.top-s.top,...Nr}:null}let i=Wm(n,r,a);return r>a&&r<=l?{x:0,y:-s.height-i,...Nr}:r<a&&r>=l?{x:0,y:s.height+i,...Nr}:{x:0,y:0,...Nr}};function Wm(e,t,a){let o=e[t],r=e[t-1],n=e[t+1];return o?a<t?r?o.top-(r.top+r.height):n?n.top-(o.top+o.height):0:n?n.top-(o.top+o.height):r?o.top-(r.top+r.height):0:0}var zi="Sortable",Ki=Le.default.createContext({activeIndex:-1,containerId:zi,disableTransforms:!1,items:[],overIndex:-1,useDragOverlay:!1,sortedRects:[],strategy:Gi,disabled:{draggable:!1,droppable:!1}});function Ur(e){let{children:t,id:a,items:o,strategy:r=Gi,disabled:n=!1}=e,{active:l,dragOverlay:s,droppableRects:i,over:u,measureDroppableContainers:c}=rl(),d=ua(zi,a),f=s.rect!==null,g=(0,Le.useMemo)(()=>o.map(b=>typeof b=="object"&&"id"in b?b.id:b),[o]),h=l!=null,p=l?g.indexOf(l.id):-1,m=u?g.indexOf(u.id):-1,x=(0,Le.useRef)(g),C=!qm(g,x.current),v=m!==-1&&p===-1||C,L=Vm(n);et(()=>{C&&h&&c(g)},[C,g,h,c]),(0,Le.useEffect)(()=>{x.current=g},[g]);let I=(0,Le.useMemo)(()=>({activeIndex:p,containerId:d,disabled:L,disableTransforms:v,items:g,overIndex:m,useDragOverlay:f,sortedRects:Um(g,i),strategy:r}),[p,d,L.draggable,L.droppable,v,g,m,i,f,r]);return Le.default.createElement(Ki.Provider,{value:I},t)}var Gm=e=>{let{id:t,items:a,activeIndex:o,overIndex:r}=e;return Wi(a,o,r).indexOf(t)},zm=e=>{let{containerId:t,isSorting:a,wasDragging:o,index:r,items:n,newIndex:l,previousItems:s,previousContainerId:i,transition:u}=e;return!u||!o||s!==n&&r===l?!1:a?!0:l!==r&&t===i},Km={duration:200,easing:"ease"},Xi="transform",Xm=Qe.Transition.toString({property:Xi,duration:0,easing:"linear"}),jm={roleDescription:"sortable"};function $m(e){let{disabled:t,index:a,node:o,rect:r}=e,[n,l]=(0,Le.useState)(null),s=(0,Le.useRef)(a);return et(()=>{if(!t&&a!==s.current&&o.current){let i=r.current;if(i){let u=ha(o.current,{ignoreTransform:!0}),c={x:i.left-u.left,y:i.top-u.top,scaleX:i.width/u.width,scaleY:i.height/u.height};(c.x||c.y)&&l(c)}}a!==s.current&&(s.current=a)},[t,a,o,r]),(0,Le.useEffect)(()=>{n&&l(null)},[n]),n}function qr(e){let{animateLayoutChanges:t=zm,attributes:a,disabled:o,data:r,getNewIndex:n=Gm,id:l,strategy:s,resizeObserverConfig:i,transition:u=Km}=e,{items:c,containerId:d,activeIndex:f,disabled:g,disableTransforms:h,sortedRects:p,overIndex:m,useDragOverlay:x,strategy:C}=(0,Le.useContext)(Ki),v=Ym(o,g),L=c.indexOf(l),I=(0,Le.useMemo)(()=>({sortable:{containerId:d,index:L,items:c},...r}),[d,r,L,c]),b=(0,Le.useMemo)(()=>c.slice(c.indexOf(l)),[c,l]),{rect:S,node:y,isOver:P,setNodeRef:T}=Fr({id:l,data:I,disabled:v.droppable,resizeObserverConfig:{updateMeasurementsFor:b,...i}}),{active:M,activatorEvent:E,activeNodeRect:N,attributes:H,setNodeRef:Q,listeners:$,isDragging:O,over:_,setActivatorNodeRef:G,transform:A}=qi({id:l,data:I,attributes:{...jm,...a},disabled:v.draggable}),me=ri(T,Q),J=!!M,le=J&&!h&&Br(f)&&Br(m),he=!x&&O,R=he&&le?A:null,W=le?R??(s??C)({rects:p,activeNodeRect:N,activeIndex:f,overIndex:m,index:L}):null,k=Br(f)&&Br(m)?n({id:l,items:c,activeIndex:f,overIndex:m}):L,X=M?.id,B=(0,Le.useRef)({activeId:X,items:c,newIndex:k,containerId:d}),j=c!==B.current.items,Y=t({active:M,containerId:d,isDragging:O,isSorting:J,id:l,index:L,items:c,newIndex:B.current.newIndex,previousItems:B.current.items,previousContainerId:B.current.containerId,transition:u,wasDragging:B.current.activeId!=null}),te=$m({disabled:!Y,index:L,node:y,rect:S});return(0,Le.useEffect)(()=>{J&&B.current.newIndex!==k&&(B.current.newIndex=k),d!==B.current.containerId&&(B.current.containerId=d),c!==B.current.items&&(B.current.items=c)},[J,k,d,c]),(0,Le.useEffect)(()=>{if(X===B.current.activeId)return;if(X&&!B.current.activeId){B.current.activeId=X;return}let ye=setTimeout(()=>{B.current.activeId=X},50);return()=>clearTimeout(ye)},[X]),{active:M,activeIndex:f,attributes:H,data:I,rect:S,index:L,newIndex:k,items:c,isOver:P,isSorting:J,isDragging:O,listeners:$,node:y,overIndex:m,over:_,setNodeRef:me,setActivatorNodeRef:G,setDroppableNodeRef:T,setDraggableNodeRef:Q,transform:te??W,transition:xe()};function xe(){if(te||j&&B.current.newIndex===L)return Xm;if(!(he&&!Ja(E)||!u)&&(J||Y))return Qe.Transition.toString({...u,property:Xi})}}function Ym(e,t){var a,o;return typeof e=="boolean"?{draggable:e,droppable:!1}:{draggable:(a=e?.draggable)!=null?a:t.draggable,droppable:(o=e?.droppable)!=null?o:t.droppable}}function _r(e){if(!e)return!1;let t=e.data.current;return!!(t&&"sortable"in t&&typeof t.sortable=="object"&&"containerId"in t.sortable&&"items"in t.sortable&&"index"in t.sortable)}var Zm=[re.Down,re.Right,re.Up,re.Left],Vr=(e,t)=>{let{context:{active:a,collisionRect:o,droppableRects:r,droppableContainers:n,over:l,scrollableAncestors:s}}=t;if(Zm.includes(e.code)){if(e.preventDefault(),!a||!o)return;let i=[];n.getEnabled().forEach(d=>{if(!d||d!=null&&d.disabled)return;let f=r.get(d.id);if(f)switch(e.code){case re.Down:o.top<f.top&&i.push(d);break;case re.Up:o.top>f.top&&i.push(d);break;case re.Left:o.left>f.left&&i.push(d);break;case re.Right:o.left<f.left&&i.push(d);break}});let u=Ar({active:a,collisionRect:o,droppableRects:r,droppableContainers:i,pointerCoordinates:null}),c=Ho(u,"id");if(c===l?.id&&u.length>1&&(c=u[1].id),c!=null){let d=n.get(a.id),f=n.get(c),g=f?r.get(f.id):null,h=f?.node.current;if(h&&g&&d&&f){let m=Uo(h).some((b,S)=>s[S]!==b),x=ji(d,f),C=Jm(d,f),v=m||!x?{x:0,y:0}:{x:C?o.width-g.width:0,y:C?o.height-g.height:0},L={x:g.left,y:g.top};return v.x&&v.y?L:ca(L,v)}}}};function ji(e,t){return!_r(e)||!_r(t)?!1:e.data.current.sortable.containerId===t.data.current.sortable.containerId}function Jm(e,t){return!_r(e)||!_r(t)||!ji(e,t)?!1:e.data.current.sortable.index<t.data.current.sortable.index}var Gr=require("react");var $i=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),Wr=(...e)=>e.filter((t,a,o)=>!!t&&t.trim()!==""&&o.indexOf(t)===a).join(" ").trim();var Vo=require("react");var Yi={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};var Zi=(0,Vo.forwardRef)(({color:e="currentColor",size:t=24,strokeWidth:a=2,absoluteStrokeWidth:o,className:r="",children:n,iconNode:l,...s},i)=>(0,Vo.createElement)("svg",{ref:i,...Yi,width:t,height:t,stroke:e,strokeWidth:o?Number(a)*24/Number(t):a,className:Wr("lucide",r),...s},[...l.map(([u,c])=>(0,Vo.createElement)(u,c)),...Array.isArray(n)?n:[n]]));var ie=(e,t)=>{let a=(0,Gr.forwardRef)(({className:o,...r},n)=>(0,Gr.createElement)(Zi,{ref:n,iconNode:t,className:Wr(`lucide-${$i(e)}`,o),...r}));return a.displayName=`${e}`,a};var Qm=[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]],Qt=ie("Check",Qm);var eg=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],eo=ie("ChevronDown",eg);var tg=[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]],Wo=ie("ChevronUp",tg);var ag=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["polyline",{points:"12 6 12 12 16 14",key:"68esgv"}]],Go=ie("Clock",ag);var og=[["polygon",{points:"22 3 2 3 10 12.46 10 19 14 21 14 12.46 22 3",key:"1yg77f"}]],zo=ie("Filter",og);var rg=[["circle",{cx:"9",cy:"12",r:"1",key:"1vctgf"}],["circle",{cx:"9",cy:"5",r:"1",key:"hp0tcf"}],["circle",{cx:"9",cy:"19",r:"1",key:"fkjjf6"}],["circle",{cx:"15",cy:"12",r:"1",key:"1tmaij"}],["circle",{cx:"15",cy:"5",r:"1",key:"19l28e"}],["circle",{cx:"15",cy:"19",r:"1",key:"f4zoj3"}]],Ko=ie("GripVertical",rg);var ng=[["path",{d:"M3 12h.01",key:"nlz23k"}],["path",{d:"M3 18h.01",key:"1tta3j"}],["path",{d:"M3 6h.01",key:"1rqtza"}],["path",{d:"M8 12h13",key:"1za7za"}],["path",{d:"M8 18h13",key:"1lx6n3"}],["path",{d:"M8 6h13",key:"ik3vkj"}]],Xo=ie("List",ng);var lg=[["path",{d:"M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z",key:"1lielz"}]],jo=ie("MessageSquare",lg);var sg=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]],Ft=ie("Plus",sg);var ig=[["path",{d:"M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8",key:"v9h5vc"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}],["path",{d:"M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16",key:"3uifl3"}],["path",{d:"M8 16H3v5",key:"1cv678"}]],$o=ie("RefreshCw",ig);var ug=[["path",{d:"M20 7h-9",key:"3s1dr2"}],["path",{d:"M14 17H5",key:"gfn3mx"}],["circle",{cx:"17",cy:"17",r:"3",key:"18b49y"}],["circle",{cx:"7",cy:"7",r:"3",key:"dfmy0x"}]],Yo=ie("Settings2",ug);var dg=[["path",{d:"M12.586 2.586A2 2 0 0 0 11.172 2H4a2 2 0 0 0-2 2v7.172a2 2 0 0 0 .586 1.414l8.704 8.704a2.426 2.426 0 0 0 3.42 0l6.58-6.58a2.426 2.426 0 0 0 0-3.42z",key:"vktsd0"}],["circle",{cx:"7.5",cy:"7.5",r:".5",fill:"currentColor",key:"kqv944"}]],Zo=ie("Tag",dg);var cg=[["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M19 6v14c0 1-1 2-2 2H7c-1 0-2-1-2-2V6",key:"4alrt4"}],["path",{d:"M8 6V4c0-1 1-2 2-2h4c1 0 2 1 2 2v2",key:"v07s0e"}],["line",{x1:"10",x2:"10",y1:"11",y2:"17",key:"1uufr5"}],["line",{x1:"14",x2:"14",y1:"11",y2:"17",key:"xtxkd"}]],Bt=ie("Trash2",cg);var fg=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],Jo=ie("X",fg);var Fn=require("react");var iu=U(require("react"),1);var Fe=U(require("react"),1);var Ji=U(require("react"),1),pg=Object.defineProperty,ll=(e,t)=>pg(e,"name",{value:t,configurable:!0});function nl(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}ll(nl,"setRef");function Qi(...e){return t=>{let a=!1,o=e.map(r=>{let n=nl(r,t);return!a&&typeof n=="function"&&(a=!0),n});if(a)return()=>{for(let r=0;r<o.length;r++){let n=o[r];typeof n=="function"?n():nl(e[r],null)}}}}ll(Qi,"composeRefs");function ee(...e){return Ji.useCallback(Qi(...e),e)}ll(ee,"useComposedRefs");var mg=Object.defineProperty,mt=(e,t)=>mg(e,"name",{value:t,configurable:!0});function qe(e){let t=Fe.forwardRef((a,o)=>{let{children:r,...n}=a,l=null,s=!1,i=[];sl(r)&&typeof zr=="function"&&(r=zr(r._payload)),Fe.Children.forEach(r,f=>{if(ru(f)){s=!0;let g=f,h="child"in g.props?g.props.child:g.props.children;sl(h)&&typeof zr=="function"&&(h=zr(h._payload)),l=hg(g,h),i.push(l?.props?.children)}else i.push(f)}),l?l=Fe.cloneElement(l,void 0,i):!s&&Fe.Children.count(r)===1&&Fe.isValidElement(r)&&(l=r);let u=l?ou(l):void 0,c=ee(o,u);if(!l){if(r||r===0)throw new Error(s?Cg(e):vg(e));return r}let d=au(n,l.props??{});return l.type!==Fe.Fragment&&(d.ref=o?c:u),Fe.cloneElement(l,d)});return t.displayName=`${e}.Slot`,t}mt(qe,"createSlot");var eu=qe("Slot"),tu=Symbol.for("radix.slottable");function gg(e){let t=mt(a=>"child"in a?a.children(a.child):a.children,"Slottable");return t.displayName=`${e}.Slottable`,t.__radixId=tu,t}mt(gg,"createSlottable");var hg=mt((e,t)=>{if("child"in e.props){let a=e.props.child;return Fe.isValidElement(a)?Fe.cloneElement(a,void 0,e.props.children(a.props.children)):null}return Fe.isValidElement(t)?t:null},"getSlottableElementFromSlottable");function au(e,t){let a={...t};for(let o in t){let r=e[o],n=t[o];/^on[A-Z]/.test(o)?r&&n?a[o]=(...s)=>{let i=n(...s);return r(...s),i}:r&&(a[o]=r):o==="style"?a[o]={...r,...n}:o==="className"&&(a[o]=[r,n].filter(Boolean).join(" "))}return{...e,...a}}mt(au,"mergeProps");function ou(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,a=t&&"isReactWarning"in t&&t.isReactWarning;return a?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,a=t&&"isReactWarning"in t&&t.isReactWarning,a?e.props.ref:e.props.ref||e.ref)}mt(ou,"getElementRef");function ru(e){return Fe.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===tu}mt(ru,"isSlottable");var xg=Symbol.for("react.lazy");function sl(e){return e!=null&&typeof e=="object"&&"$$typeof"in e&&e.$$typeof===xg&&"_payload"in e&&nu(e._payload)}mt(sl,"isLazyComponent");function nu(e){return typeof e=="object"&&e!==null&&"then"in e}mt(nu,"isPromiseLike");var vg=mt(e=>`${e} failed to slot onto its children. Expected a single React element child or \`Slottable\`.`,"createSlotError"),Cg=mt(e=>`${e} failed to slot onto its \`Slottable\`. Expected \`Slottable\` to receive a single React element child.`,"createSlottableError"),zr=Fe[" use ".trim().toString()];function lu(e){var t,a,o="";if(typeof e=="string"||typeof e=="number")o+=e;else if(typeof e=="object")if(Array.isArray(e)){var r=e.length;for(t=0;t<r;t++)e[t]&&(a=lu(e[t]))&&(o&&(o+=" "),o+=a)}else for(a in e)e[a]&&(o&&(o+=" "),o+=a);return o}function su(){for(var e,t,a=0,o="",r=arguments.length;a<r;a++)(e=arguments[a])&&(t=lu(e))&&(o&&(o+=" "),o+=t);return o}function ae(...e){return su(e)}var uu=require("react/jsx-runtime");function Lg({variant:e="default",size:t="default",className:a}={}){let o=e??"default",r=t??"default";return ae("kanban-button",`kanban-button--${o}`,`kanban-button--size-${r}`,a)}var De=iu.forwardRef(({className:e,variant:t,size:a,asChild:o=!1,...r},n)=>(0,uu.jsx)(o?eu:"button",{className:Lg({variant:t,size:a,className:e}),ref:n,...r}));De.displayName="Button";var nr=U(require("react"),1);var pe=U(require("react"),1);var bg=Object.defineProperty,to=(e,t)=>bg(e,"name",{value:t,configurable:!0}),du=!!(typeof window<"u"&&window.document&&window.document.createElement);function q(e,t,{checkForDefaultPrevented:a=!0}={}){return to(function(r){if(e?.(r),a===!1||!r||!r.defaultPrevented)return t?.(r)},"handleEvent")}to(q,"composeEventHandlers");function Ig(e){if(!du)throw new Error("Cannot access window outside of the DOM");return e?.ownerDocument?.defaultView??window}to(Ig,"getOwnerWindow");function il(e){if(!du)throw new Error("Cannot access document outside of the DOM");return e?.ownerDocument??document}to(il,"getOwnerDocument");function cu(e,t=!1){let{activeElement:a}=il(e);if(!a?.nodeName)return null;if(fu(a)&&a.contentDocument)return cu(a.contentDocument.body,t);if(t){let o=a.getAttribute("aria-activedescendant");if(o){let r=il(a).getElementById(o);if(r)return r}}return a}to(cu,"getActiveElement");function fu(e){return e.tagName==="IFRAME"}to(fu,"isFrame");var it=U(require("react"),1),ul=require("react/jsx-runtime"),wg=Object.defineProperty,st=(e,t)=>wg(e,"name",{value:t,configurable:!0});function Sg(e,t){let a=it.createContext(t);a.displayName=e+"Context";let o=st(n=>{let{children:l,...s}=n,i=it.useMemo(()=>s,Object.values(s));return(0,ul.jsx)(a.Provider,{value:i,children:l})},"Provider");o.displayName=e+"Provider";function r(n,l={}){let{optional:s=!1}=l,i=it.useContext(a);if(i)return i;if(t!==void 0)return t;if(!s)throw new Error(`\`${n}\` must be used within \`${e}\``)}return st(r,"useContext"),[o,r]}st(Sg,"createContext");function Be(e,t=[]){let a=[];function o(n,l){let s=it.createContext(l);s.displayName=n+"Context";let i=a.length;a=[...a,l];let u=st(d=>{let{scope:f,children:g,...h}=d,p=f?.[e]?.[i]||s,m=it.useMemo(()=>h,Object.values(h));return(0,ul.jsx)(p.Provider,{value:m,children:g})},"Provider");u.displayName=n+"Provider";function c(d,f,g={}){let{optional:h=!1}=g,p=f?.[e]?.[i]||s,m=it.useContext(p);if(m)return m;if(l!==void 0)return l;if(!h)throw new Error(`\`${d}\` must be used within \`${n}\``)}return st(c,"useContext"),[u,c]}st(o,"createContext");let r=st(()=>{let n=a.map(l=>it.createContext(l));return st(function(s){let i=s?.[e]||n;return it.useMemo(()=>({[`__scope${e}`]:{...s,[e]:i}}),[s,i])},"useScope")},"createScope");return r.scopeName=e,[o,pu(r,...t)]}st(Be,"createContextScope");function pu(...e){let t=e[0];if(e.length===1)return t;let a=st(()=>{let o=e.map(r=>({useScope:r(),scopeName:r.scopeName}));return st(function(n){let l=o.reduce((s,{useScope:i,scopeName:u})=>{let d=i(n)[`__scope${u}`];return{...s,...d}},{});return it.useMemo(()=>({[`__scope${t.scopeName}`]:l}),[l])},"useComposedScopes")},"createScope");return a.scopeName=t.scopeName,a}st(pu,"composeContextScopes");var dl=U(require("react"),1);var mu=U(require("react"),1),se=globalThis?.document?mu.useLayoutEffect:()=>{};var yg=Object.defineProperty,Rg=(e,t)=>yg(e,"name",{value:t,configurable:!0}),Pg=dl[" useId ".trim().toString()]||(()=>{}),kg=0;function tt(e){let[t,a]=dl.useState(Pg());return se(()=>{e||a(o=>o??String(kg++))},[e]),e||(t?`radix-${t}`:"")}Rg(tt,"useId");var ut=U(require("react"),1);var Kr=!1;var gt=U(require("react"),1);var ao=U(require("react"),1),Dg=Object.defineProperty,Mg=(e,t)=>Dg(e,"name",{value:t,configurable:!0}),gu=ao[" useEffectEvent ".trim().toString()],hu=ao[" useInsertionEffect ".trim().toString()];function cl(e){if(typeof gu=="function")return gu(e);let t=ao.useRef(()=>{throw new Error("Cannot call an event handler while rendering.")});return typeof hu=="function"?hu(()=>{t.current=e}):se(()=>{t.current=e}),ao.useMemo(()=>((...a)=>t.current?.(...a)),[])}Mg(cl,"useEffectEvent");var Ag=Object.defineProperty,Qo=(e,t)=>Ag(e,"name",{value:t,configurable:!0}),Tg=ut[" useInsertionEffect ".trim().toString()]||se;function Rt({prop:e,defaultProp:t,onChange:a=Qo(()=>{},"onChange"),caller:o}){let[r,n,l]=vu({defaultProp:t,onChange:a}),s=e!==void 0,i=s?e:r;if(Kr){let c=ut.useRef(e!==void 0);ut.useEffect(()=>{let d=c.current;d!==s&&console.warn(`${o} is changing from ${d?"controlled":"uncontrolled"} to ${s?"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.`),c.current=s},[s,o])}let u=ut.useCallback(c=>{if(s){let d=Cu(c)?c(e):c;d!==e&&l.current?.(d)}else n(c)},[s,e,n,l]);return[i,u]}Qo(Rt,"useControllableState");function vu({defaultProp:e,onChange:t}){let[a,o]=ut.useState(e),r=ut.useRef(a),n=ut.useRef(t);return Tg(()=>{n.current=t},[t]),ut.useEffect(()=>{r.current!==a&&(n.current?.(a),r.current=a)},[a,r]),[a,o,n]}Qo(vu,"useUncontrolledState");function Cu(e){return typeof e=="function"}Qo(Cu,"isFunction");var xu=Symbol("RADIX:SYNC_STATE");function Eg(e,t,a,o){let{prop:r,defaultProp:n,onChange:l,caller:s}=t,i=r!==void 0,u=cl(l);if(Kr){let m=gt.useRef(r!==void 0);gt.useEffect(()=>{let x=m.current;x!==i&&console.warn(`${s} is changing from ${x?"controlled":"uncontrolled"} to ${i?"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.`),m.current=i},[i,s])}let c=[{...a,state:n}];o&&c.push(o);let[d,f]=gt.useReducer((m,x)=>{if(x.type===xu)return{...m,state:x.state};let C=e(m,x);return i&&!Object.is(C.state,m.state)&&u(C.state),C},...c),g=d.state,h=gt.useRef(g);gt.useEffect(()=>{h.current!==g&&(h.current=g,i||u(g))},[g,h,i]);let p=gt.useMemo(()=>r!==void 0?{...d,state:r}:d,[d,r]);return gt.useEffect(()=>{i&&!Object.is(r,d.state)&&f({type:xu,state:r})},[r,d.state,i]),[p,f]}Qo(Eg,"useControllableStateReducer");var ue=U(require("react"),1);var Lu=U(require("react"),1),bu=U(require("react-dom"),1);var Iu=require("react/jsx-runtime"),Og=Object.defineProperty,Fg=(e,t)=>Og(e,"name",{value:t,configurable:!0}),Bg=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],oe=Bg.reduce((e,t)=>{let a=qe(`Primitive.${t}`),o=Lu.forwardRef((r,n)=>{let{asChild:l,...s}=r,i=l?a:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),(0,Iu.jsx)(i,{...s,ref:n})});return o.displayName=`Primitive.${t}`,{...e,[t]:o}},{});function er(e,t){e&&bu.flushSync(()=>e.dispatchEvent(t))}Fg(er,"dispatchDiscreteCustomEvent");var oo=U(require("react"),1),Ng=Object.defineProperty,_g=(e,t)=>Ng(e,"name",{value:t,configurable:!0});function Me(e){let t=oo.useRef(e);return oo.useEffect(()=>{t.current=e}),oo.useMemo(()=>((...a)=>t.current?.(...a)),[])}_g(Me,"useCallbackRef");var Su=require("react/jsx-runtime"),Hg=Object.defineProperty,Ae=(e,t)=>Hg(e,"name",{value:t,configurable:!0}),fl="dismissableLayer.update",Ug="dismissableLayer.pointerDownOutside",qg="dismissableLayer.focusOutside",wu,yu=ue.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set,dismissableSurfaces:new Set}),ro=ue.forwardRef(Ae(function(t,a){let{disableOutsidePointerEvents:o=!1,deferPointerDownOutside:r=!1,onEscapeKeyDown:n,onPointerDownOutside:l,onFocusOutside:s,onInteractOutside:i,onDismiss:u,...c}=t,d=ue.useContext(yu),[f,g]=ue.useState(null),h=f?.ownerDocument??globalThis?.document,[,p]=ue.useState({}),m=ee(a,g),x=Array.from(d.layers),[C]=[...d.layersWithOutsidePointerEventsDisabled].slice(-1),v=C?x.indexOf(C):-1,L=f?x.indexOf(f):-1,I=d.layersWithOutsidePointerEventsDisabled.size>0,b=L>=v,S=ue.useRef(!1),y=Ru(E=>{l?.(E),i?.(E),E.defaultPrevented||u?.()},{ownerDocument:h,deferPointerDownOutside:r,isDeferredPointerDownOutsideRef:S,dismissableSurfaces:d.dismissableSurfaces,shouldHandlePointerDownOutside:ue.useCallback(E=>{if(!(E instanceof Node))return!1;let N=[...d.branches].some(H=>H.contains(E));return b&&!N},[d.branches,b])}),P=Pu(E=>{if(r&&S.current)return;let N=E.target;[...d.branches].some(Q=>Q.contains(N))||(s?.(E),i?.(E),E.defaultPrevented||u?.())},h),T=f?L===x.length-1:!1,M=Me(E=>{E.key==="Escape"&&(n?.(E),!E.defaultPrevented&&u&&(E.preventDefault(),u()))});return ue.useEffect(()=>{if(T)return h.addEventListener("keydown",M,{capture:!0}),()=>h.removeEventListener("keydown",M,{capture:!0})},[h,T,M]),ue.useEffect(()=>{if(f)return o&&(d.layersWithOutsidePointerEventsDisabled.size===0&&(wu=h.body.style.pointerEvents,h.body.style.pointerEvents="none"),d.layersWithOutsidePointerEventsDisabled.add(f)),d.layers.add(f),pl(),()=>{o&&(d.layersWithOutsidePointerEventsDisabled.delete(f),d.layersWithOutsidePointerEventsDisabled.size===0&&(h.body.style.pointerEvents=wu))}},[f,h,o,d]),ue.useEffect(()=>()=>{f&&(d.layers.delete(f),d.layersWithOutsidePointerEventsDisabled.delete(f),pl())},[f,d]),ue.useEffect(()=>{let E=Ae(()=>p({}),"handleUpdate");return document.addEventListener(fl,E),()=>document.removeEventListener(fl,E)},[]),(0,Su.jsx)(oe.div,{...c,ref:m,style:{pointerEvents:I?b?"auto":"none":void 0,...t.style},onFocusCapture:q(t.onFocusCapture,P.onFocusCapture),onBlurCapture:q(t.onBlurCapture,P.onBlurCapture),onPointerDownCapture:q(t.onPointerDownCapture,y.onPointerDownCapture)})},"DismissableLayer"));function ml(){let e=ue.useContext(yu),[t,a]=ue.useState(null);return ue.useEffect(()=>{if(t)return e.dismissableSurfaces.add(t),()=>{e.dismissableSurfaces.delete(t)}},[t,e.dismissableSurfaces]),a}Ae(ml,"useDismissableLayerSurface");var Vg=Ae(()=>!0,"IS_TRUE");function Ru(e,t){let{ownerDocument:a=globalThis?.document,deferPointerDownOutside:o=!1,isDeferredPointerDownOutsideRef:r,dismissableSurfaces:n,shouldHandlePointerDownOutside:l=Vg}=t,s=Me(e),i=ue.useRef(!1),u=ue.useRef(!1),c=ue.useRef(new Map),d=ue.useRef(()=>{});return ue.useEffect(()=>{function f(){u.current=!1,r.current=!1,c.current.clear()}Ae(f,"resetOutsideInteraction");function g(){return Array.from(c.current.values()).some(Boolean)}Ae(g,"isOutsideInteractionIntercepted");function h(v){if(!u.current)return;let L=v.target;L instanceof Node&&[...n].some(b=>b.contains(L))||c.current.set(v.type,!0),v.type==="click"&&window.setTimeout(()=>{u.current&&d.current()},0)}Ae(h,"handleInteractionCapture");function p(v){u.current&&c.current.set(v.type,!1)}Ae(p,"handleInteractionBubble");let m=Ae(v=>{if(v.target&&!i.current){let I=function(){a.removeEventListener("click",d.current);let S=g();f(),S||gl(Ug,s,b,{discrete:!0})};var L=I;if(Ae(I,"handleAndDispatchPointerDownOutsideEvent"),!l(v.target)){a.removeEventListener("click",d.current),f(),i.current=!1;return}let b={originalEvent:v};u.current=!0,r.current=o&&v.button===0,c.current.clear(),!o||v.button!==0?I():(a.removeEventListener("click",d.current),d.current=I,a.addEventListener("click",d.current,{once:!0}))}else a.removeEventListener("click",d.current),f();i.current=!1},"handlePointerDown"),x=["pointerup","mousedown","mouseup","touchstart","touchend","click"];for(let v of x)a.addEventListener(v,h,!0),a.addEventListener(v,p);let C=window.setTimeout(()=>{a.addEventListener("pointerdown",m)},0);return()=>{window.clearTimeout(C),a.removeEventListener("pointerdown",m),a.removeEventListener("click",d.current);for(let v of x)a.removeEventListener(v,h,!0),a.removeEventListener(v,p)}},[a,s,o,r,n,l]),{onPointerDownCapture:Ae(()=>i.current=!0,"onPointerDownCapture")}}Ae(Ru,"usePointerDownOutside");function Pu(e,t=globalThis?.document){let a=Me(e),o=ue.useRef(!1);return ue.useEffect(()=>{let r=Ae(n=>{n.target&&!o.current&&gl(qg,a,{originalEvent:n},{discrete:!1})},"handleFocus");return t.addEventListener("focusin",r),()=>t.removeEventListener("focusin",r)},[t,a]),{onFocusCapture:Ae(()=>o.current=!0,"onFocusCapture"),onBlurCapture:Ae(()=>o.current=!1,"onBlurCapture")}}Ae(Pu,"useFocusOutside");function pl(){let e=new CustomEvent(fl);document.dispatchEvent(e)}Ae(pl,"dispatchUpdate");function gl(e,t,a,{discrete:o}){let r=a.originalEvent.target,n=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:a});t&&r.addEventListener(e,t,{once:!0}),o?er(r,n):r.dispatchEvent(n)}Ae(gl,"handleAndDispatchCustomEvent");var dt=U(require("react"),1);var Mu=require("react/jsx-runtime"),Wg=Object.defineProperty,ze=(e,t)=>Wg(e,"name",{value:t,configurable:!0}),hl="focusScope.autoFocusOnMount",xl="focusScope.autoFocusOnUnmount",ku={bubbles:!1,cancelable:!0},no=dt.forwardRef(ze(function(t,a){let{loop:o=!1,trapped:r=!1,onMountAutoFocus:n,onUnmountAutoFocus:l,...s}=t,[i,u]=dt.useState(null),c=Me(n),d=Me(l),f=dt.useRef(null),g=ee(a,u),h=dt.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;dt.useEffect(()=>{if(r){let v=function(S){if(h.paused||!i)return;let y=S.target;i.contains(y)?f.current=y:Nt(f.current,{select:!0})},L=function(S){if(h.paused||!i)return;let y=S.relatedTarget;y!==null&&(i.contains(y)||Nt(f.current,{select:!0}))},I=function(S){if(document.activeElement===document.body)for(let P of S)P.removedNodes.length>0&&Nt(i)};var m=v,x=L,C=I;ze(v,"handleFocusIn"),ze(L,"handleFocusOut"),ze(I,"handleMutations"),document.addEventListener("focusin",v),document.addEventListener("focusout",L);let b=new MutationObserver(I);return i&&b.observe(i,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",v),document.removeEventListener("focusout",L),b.disconnect()}}},[r,i,h.paused]),dt.useEffect(()=>{if(i){Du.add(h);let m=document.activeElement;if(!i.contains(m)){let C=new CustomEvent(hl,ku);i.addEventListener(hl,c),i.dispatchEvent(C),C.defaultPrevented||(Au(Bu(Ll(i)),{select:!0}),document.activeElement===m&&Nt(i))}return()=>{i.removeEventListener(hl,c),setTimeout(()=>{let C=new CustomEvent(xl,ku);i.addEventListener(xl,d),i.dispatchEvent(C),C.defaultPrevented||Nt(m??document.body,{select:!0}),i.removeEventListener(xl,d),Du.remove(h)},0)}}},[i,c,d,h]);let p=dt.useCallback(m=>{if(!o&&!r||h.paused)return;let x=m.key==="Tab"&&!m.altKey&&!m.ctrlKey&&!m.metaKey,C=document.activeElement;if(x&&C){let v=m.currentTarget,[L,I]=Tu(v);L&&I?!m.shiftKey&&C===I?(m.preventDefault(),o&&Nt(L,{select:!0})):m.shiftKey&&C===L&&(m.preventDefault(),o&&Nt(I,{select:!0})):C===v&&m.preventDefault()}},[o,r,h.paused]);return(0,Mu.jsx)(oe.div,{tabIndex:-1,...s,ref:g,onKeyDown:p})},"FocusScope"));function Au(e,{select:t=!1}={}){let a=document.activeElement;for(let o of e)if(Nt(o,{select:t}),document.activeElement!==a)return}ze(Au,"focusFirst");function Tu(e){let t=Ll(e),a=vl(t,e),o=vl(t.reverse(),e);return[a,o]}ze(Tu,"getTabbableEdges");function Ll(e){let t=[],a=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:ze(o=>{let r=o.tagName==="INPUT"&&o.type==="hidden";return o.disabled||o.hidden||r?NodeFilter.FILTER_SKIP:o.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP},"acceptNode")});for(;a.nextNode();)t.push(a.currentNode);return t}ze(Ll,"getTabbableCandidates");function vl(e,t){let a=typeof t.checkVisibility=="function"&&t.checkVisibility({checkVisibilityCSS:!0});for(let o of e)if(!(a?!o.checkVisibility({checkVisibilityCSS:!0}):Eu(o,{upTo:t})))return o}ze(vl,"findVisible");function Eu(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}ze(Eu,"isHidden");function Ou(e){return e instanceof HTMLInputElement&&"select"in e}ze(Ou,"isSelectableInput");function Nt(e,{select:t=!1}={}){if(e&&e.focus){let a=document.activeElement;e.focus({preventScroll:!0}),e!==a&&Ou(e)&&t&&e.select()}}ze(Nt,"focus");var Du=Fu();function Fu(){let e=[];return{add(t){let a=e[0];t!==a&&a?.pause(),e=Cl(e,t),e.unshift(t)},remove(t){e=Cl(e,t),e[0]?.resume()}}}ze(Fu,"createFocusScopesStack");function Cl(e,t){let a=[...e],o=a.indexOf(t);return o!==-1&&a.splice(o,1),a}ze(Cl,"arrayRemove");function Bu(e){return e.filter(t=>t.tagName!=="A")}ze(Bu,"removeLinks");var Xr=U(require("react"),1),Nu=U(require("react-dom"),1);var _u=require("react/jsx-runtime"),Gg=Object.defineProperty,zg=(e,t)=>Gg(e,"name",{value:t,configurable:!0}),lo=Xr.forwardRef(zg(function(t,a){let{container:o,...r}=t,[n,l]=Xr.useState(!1);se(()=>l(!0),[]);let s=o||n&&globalThis?.document?.body;return s?Nu.createPortal((0,_u.jsx)(oe.div,{...r,ref:a}),s):null},"Portal"));var Ne=U(require("react"),1);var Hu=U(require("react"),1),Kg=Object.defineProperty,_t=(e,t)=>Kg(e,"name",{value:t,configurable:!0});function Uu(e,t){return Hu.useReducer((a,o)=>t[a][o]??a,e)}_t(Uu,"useStateMachine");var Ht=_t(e=>{let{present:t,children:a}=e,o=qu(t),r=typeof a=="function"?a({present:o.isPresent}):Ne.Children.only(a),n=Vu(o.ref,Wu(r));return typeof a=="function"||o.isPresent?Ne.cloneElement(r,{ref:n}):null},"Presence");function qu(e){let[t,a]=Ne.useState(),o=Ne.useRef(null),r=Ne.useRef(e),n=Ne.useRef("none"),l=Ne.useRef(void 0),s=e?"mounted":"unmounted",[i,u]=Uu(s,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return Ne.useEffect(()=>{i==="mounted"?(n.current=l.current??so(o.current),l.current=void 0):n.current="none"},[i]),se(()=>{let c=o.current,d=r.current;if(d!==e){let g=n.current,h=so(c);e?(l.current=h,u("MOUNT")):h==="none"||c?.display==="none"?u("UNMOUNT"):u(d&&g!==h?"ANIMATION_OUT":"UNMOUNT"),r.current=e}},[e,u]),se(()=>{if(t){let c,d=t.ownerDocument.defaultView??window,f=_t(h=>{let m=so(o.current).includes(CSS.escape(h.animationName));if(h.target===t&&m&&(u("ANIMATION_END"),!r.current)){let x=t.style.animationFillMode;t.style.animationFillMode="forwards",c=d.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=x)})}},"handleAnimationEnd"),g=_t(h=>{h.target===t&&(n.current=so(o.current))},"handleAnimationStart");return t.addEventListener("animationstart",g),t.addEventListener("animationcancel",f),t.addEventListener("animationend",f),()=>{d.clearTimeout(c),t.removeEventListener("animationstart",g),t.removeEventListener("animationcancel",f),t.removeEventListener("animationend",f)}}else u("ANIMATION_END")},[t,u]),{isPresent:["mounted","unmountSuspended"].includes(i),ref:Ne.useCallback(c=>{if(c){let d=getComputedStyle(c);o.current=d,l.current=so(d)}else o.current=null;a(c)},[])}}_t(qu,"usePresence");function bl(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}_t(bl,"setRef");function Vu(...e){let t=Ne.useRef(e);return t.current=e,Ne.useCallback(a=>{let o=t.current,r=!1,n=o.map(l=>{let s=bl(l,a);return!r&&typeof s=="function"&&(r=!0),s});if(r)return()=>{for(let l=0;l<n.length;l++){let s=n[l];typeof s=="function"?s():bl(o[l],null)}}},[])}_t(Vu,"useStableComposedRefs");function so(e){return e?.animationName||"none"}_t(so,"getAnimationName");function Wu(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,a=t&&"isReactWarning"in t&&t.isReactWarning;return a?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,a=t&&"isReactWarning"in t&&t.isReactWarning,a?e.props.ref:e.props.ref||e.ref)}_t(Wu,"getElementRef");var Gu=U(require("react"),1),Xg=Object.defineProperty,wl=(e,t)=>Xg(e,"name",{value:t,configurable:!0}),jr=0,io=null;function jg(e){return ea(),e.children}wl(jg,"FocusGuards");function ea(){Gu.useEffect(()=>{io||(io={start:Il(),end:Il()});let{start:e,end:t}=io;return document.body.firstElementChild!==e&&document.body.insertAdjacentElement("afterbegin",e),document.body.lastElementChild!==t&&document.body.insertAdjacentElement("beforeend",t),jr++,()=>{jr===1&&(io?.start.remove(),io?.end.remove(),io=null),jr=Math.max(0,jr-1)}},[])}wl(ea,"useFocusGuards");function Il(){let 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}wl(Il,"createFocusGuard");var je=function(){return je=Object.assign||function(t){for(var a,o=1,r=arguments.length;o<r;o++){a=arguments[o];for(var n in a)Object.prototype.hasOwnProperty.call(a,n)&&(t[n]=a[n])}return t},je.apply(this,arguments)};function $r(e,t){var a={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(a[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(a[o[r]]=e[o[r]]);return a}function zu(e,t,a){if(a||arguments.length===2)for(var o=0,r=t.length,n;o<r;o++)(n||!(o in t))&&(n||(n=Array.prototype.slice.call(t,0,o)),n[o]=t[o]);return e.concat(n||Array.prototype.slice.call(t))}var en=U(require("react"));var Ve=U(require("react"));var xa="right-scroll-bar-position",va="width-before-scroll-bar",Sl="with-scroll-bars-hidden",yl="--removed-body-scroll-bar-size";function Yr(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}var Ku=require("react");function Xu(e,t){var a=(0,Ku.useState)(function(){return{value:e,callback:t,facade:{get current(){return a.value},set current(o){var r=a.value;r!==o&&(a.value=o,a.callback(o,r))}}}})[0];return a.callback=t,a.facade}var Zr=U(require("react"));var $g=typeof window<"u"?Zr.useLayoutEffect:Zr.useEffect,ju=new WeakMap;function Rl(e,t){var a=Xu(t||null,function(o){return e.forEach(function(r){return Yr(r,o)})});return $g(function(){var o=ju.get(a);if(o){var r=new Set(o),n=new Set(e),l=a.current;r.forEach(function(s){n.has(s)||Yr(s,null)}),n.forEach(function(s){r.has(s)||Yr(s,l)})}ju.set(a,e)},[e]),a}function Yg(e){return e}function Zg(e,t){t===void 0&&(t=Yg);var a=[],o=!1,r={read:function(){if(o)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return a.length?a[a.length-1]:e},useMedium:function(n){var l=t(n,o);return a.push(l),function(){a=a.filter(function(s){return s!==l})}},assignSyncMedium:function(n){for(o=!0;a.length;){var l=a;a=[],l.forEach(n)}a={push:function(s){return n(s)},filter:function(){return a}}},assignMedium:function(n){o=!0;var l=[];if(a.length){var s=a;a=[],s.forEach(n),l=a}var i=function(){var c=l;l=[],c.forEach(n)},u=function(){return Promise.resolve().then(i)};u(),a={push:function(c){l.push(c),u()},filter:function(c){return l=l.filter(c),a}}}};return r}function Pl(e){e===void 0&&(e={});var t=Zg(null);return t.options=je({async:!0,ssr:!1},e),t}var $u=U(require("react")),Yu=function(e){var t=e.sideCar,a=$r(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var o=t.read();if(!o)throw new Error("Sidecar medium not found");return $u.createElement(o,je({},a))};Yu.isSideCarExport=!0;function kl(e,t){return e.useMedium(t),Yu}var Jr=Pl();var Dl=function(){},tr=Ve.forwardRef(function(e,t){var a=Ve.useRef(null),o=Ve.useState({onScrollCapture:Dl,onWheelCapture:Dl,onTouchMoveCapture:Dl}),r=o[0],n=o[1],l=e.forwardProps,s=e.children,i=e.className,u=e.removeScrollBar,c=e.enabled,d=e.shards,f=e.sideCar,g=e.noRelative,h=e.noIsolation,p=e.inert,m=e.allowPinchZoom,x=e.as,C=x===void 0?"div":x,v=e.gapMode,L=$r(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),I=f,b=Rl([a,t]),S=je(je({},L),r);return Ve.createElement(Ve.Fragment,null,c&&Ve.createElement(I,{sideCar:Jr,removeScrollBar:u,shards:d,noRelative:g,noIsolation:h,inert:p,setCallbacks:n,allowPinchZoom:!!m,lockRef:a,gapMode:v}),l?Ve.cloneElement(Ve.Children.only(s),je(je({},S),{ref:b})):Ve.createElement(C,je({},S,{className:i,ref:b}),s))});tr.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};tr.classNames={fullWidth:va,zeroRight:xa};var fe=U(require("react"));var co=U(require("react"));var Qu=U(require("react"));var Zu;var Ju=function(){if(Zu)return Zu;if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function Jg(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=Ju();return t&&e.setAttribute("nonce",t),e}function Qg(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function eh(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var Ml=function(){var e=0,t=null;return{add:function(a){e==0&&(t=Jg())&&(Qg(t,a),eh(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}};var Al=function(){var e=Ml();return function(t,a){Qu.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&a])}};var ar=function(){var e=Al(),t=function(a){var o=a.styles,r=a.dynamic;return e(o,r),null};return t};var th={left:0,top:0,right:0,gap:0},Tl=function(e){return parseInt(e||"",10)||0},ah=function(e){var t=window.getComputedStyle(document.body),a=t[e==="padding"?"paddingLeft":"marginLeft"],o=t[e==="padding"?"paddingTop":"marginTop"],r=t[e==="padding"?"paddingRight":"marginRight"];return[Tl(a),Tl(o),Tl(r)]},El=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return th;var t=ah(e),a=document.documentElement.clientWidth,o=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,o-a+t[2]-t[0])}};var oh=ar(),uo="data-scroll-locked",rh=function(e,t,a,o){var r=e.left,n=e.top,l=e.right,s=e.gap;return a===void 0&&(a="margin"),`
|
|
1176
|
+
.`.concat(Sl,` {
|
|
1940
1177
|
overflow: hidden `).concat(o,`;
|
|
1941
|
-
padding-right: `).concat(
|
|
1178
|
+
padding-right: `).concat(s,"px ").concat(o,`;
|
|
1942
1179
|
}
|
|
1943
|
-
body[`).concat(
|
|
1180
|
+
body[`).concat(uo,`] {
|
|
1944
1181
|
overflow: hidden `).concat(o,`;
|
|
1945
1182
|
overscroll-behavior: contain;
|
|
1946
1183
|
`).concat([t&&"position: relative ".concat(o,";"),a==="margin"&&`
|
|
1947
1184
|
padding-left: `.concat(r,`px;
|
|
1948
1185
|
padding-top: `).concat(n,`px;
|
|
1949
|
-
padding-right: `).concat(
|
|
1186
|
+
padding-right: `).concat(l,`px;
|
|
1950
1187
|
margin-left:0;
|
|
1951
1188
|
margin-top:0;
|
|
1952
|
-
margin-right: `).concat(
|
|
1953
|
-
`),a==="padding"&&"padding-right: ".concat(
|
|
1189
|
+
margin-right: `).concat(s,"px ").concat(o,`;
|
|
1190
|
+
`),a==="padding"&&"padding-right: ".concat(s,"px ").concat(o,";")].filter(Boolean).join(""),`
|
|
1954
1191
|
}
|
|
1955
1192
|
|
|
1956
|
-
.`).concat(
|
|
1957
|
-
right: `).concat(
|
|
1193
|
+
.`).concat(xa,` {
|
|
1194
|
+
right: `).concat(s,"px ").concat(o,`;
|
|
1958
1195
|
}
|
|
1959
1196
|
|
|
1960
|
-
.`).concat(
|
|
1961
|
-
margin-right: `).concat(
|
|
1197
|
+
.`).concat(va,` {
|
|
1198
|
+
margin-right: `).concat(s,"px ").concat(o,`;
|
|
1962
1199
|
}
|
|
1963
1200
|
|
|
1964
|
-
.`).concat(
|
|
1201
|
+
.`).concat(xa," .").concat(xa,` {
|
|
1965
1202
|
right: 0 `).concat(o,`;
|
|
1966
1203
|
}
|
|
1967
1204
|
|
|
1968
|
-
.`).concat(
|
|
1205
|
+
.`).concat(va," .").concat(va,` {
|
|
1969
1206
|
margin-right: 0 `).concat(o,`;
|
|
1970
1207
|
}
|
|
1971
1208
|
|
|
1972
|
-
body[`).concat(
|
|
1973
|
-
`).concat(
|
|
1209
|
+
body[`).concat(uo,`] {
|
|
1210
|
+
`).concat(yl,": ").concat(s,`px;
|
|
1974
1211
|
}
|
|
1975
|
-
`)},
|
|
1212
|
+
`)},ed=function(){var e=parseInt(document.body.getAttribute(uo)||"0",10);return isFinite(e)?e:0},nh=function(){co.useEffect(function(){return document.body.setAttribute(uo,(ed()+1).toString()),function(){var e=ed()-1;e<=0?document.body.removeAttribute(uo):document.body.setAttribute(uo,e.toString())}},[])},Ol=function(e){var t=e.noRelative,a=e.noImportant,o=e.gapMode,r=o===void 0?"margin":o;nh();var n=co.useMemo(function(){return El(r)},[r]);return co.createElement(oh,{styles:rh(n,!t,r,a?"":"!important")})};var Fl=!1;if(typeof window<"u")try{or=Object.defineProperty({},"passive",{get:function(){return Fl=!0,!0}}),window.addEventListener("test",or,or),window.removeEventListener("test",or,or)}catch{Fl=!1}var or,Ca=Fl?{passive:!1}:!1;var lh=function(e){return e.tagName==="TEXTAREA"},td=function(e,t){if(!(e instanceof Element))return!1;var a=window.getComputedStyle(e);return a[t]!=="hidden"&&!(a.overflowY===a.overflowX&&!lh(e)&&a[t]==="visible")},sh=function(e){return td(e,"overflowY")},ih=function(e){return td(e,"overflowX")},Bl=function(e,t){var a=t.ownerDocument,o=t;do{typeof ShadowRoot<"u"&&o instanceof ShadowRoot&&(o=o.host);var r=ad(e,o);if(r){var n=od(e,o),l=n[1],s=n[2];if(l>s)return!0}o=o.parentNode}while(o&&o!==a.body);return!1},uh=function(e){var t=e.scrollTop,a=e.scrollHeight,o=e.clientHeight;return[t,a,o]},dh=function(e){var t=e.scrollLeft,a=e.scrollWidth,o=e.clientWidth;return[t,a,o]},ad=function(e,t){return e==="v"?sh(t):ih(t)},od=function(e,t){return e==="v"?uh(t):dh(t)},ch=function(e,t){return e==="h"&&t==="rtl"?-1:1},rd=function(e,t,a,o,r){var n=ch(e,window.getComputedStyle(t).direction),l=n*o,s=a.target,i=t.contains(s),u=!1,c=l>0,d=0,f=0;do{if(!s)break;var g=od(e,s),h=g[0],p=g[1],m=g[2],x=p-m-n*h;(h||x)&&ad(e,s)&&(d+=x,f+=h);var C=s.parentNode;s=C&&C.nodeType===Node.DOCUMENT_FRAGMENT_NODE?C.host:C}while(!i&&s!==document.body||i&&(t.contains(s)||t===s));return(c&&(r&&Math.abs(d)<1||!r&&l>d)||!c&&(r&&Math.abs(f)<1||!r&&-l>f))&&(u=!0),u};var Qr=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},nd=function(e){return[e.deltaX,e.deltaY]},ld=function(e){return e&&"current"in e?e.current:e},fh=function(e,t){return e[0]===t[0]&&e[1]===t[1]},ph=function(e){return`
|
|
1976
1213
|
.block-interactivity-`.concat(e,` {pointer-events: none;}
|
|
1977
1214
|
.allow-interactivity-`).concat(e,` {pointer-events: all;}
|
|
1978
|
-
`)},fx=0,wo=[];function Dd(e){var t=ge.useRef([]),a=ge.useRef([0,0]),o=ge.useRef(),r=ge.useState(fx++)[0],n=ge.useState(cr)[0],s=ge.useRef(e);ge.useEffect(function(){s.current=e},[e]),ge.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(r));var p=fd([e.lockRef.current],(e.shards||[]).map(Pd),!0).filter(Boolean);return p.forEach(function(m){return m.classList.add("allow-interactivity-".concat(r))}),function(){document.body.classList.remove("block-interactivity-".concat(r)),p.forEach(function(m){return m.classList.remove("allow-interactivity-".concat(r))})}}},[e.inert,e.lockRef.current,e.shards]);var l=ge.useCallback(function(p,m){if("touches"in p&&p.touches.length===2||p.type==="wheel"&&p.ctrlKey)return!s.current.allowPinchZoom;var x=cn(p),w=a.current,v="deltaX"in p?p.deltaX:w[0]-x[0],b="deltaY"in p?p.deltaY:w[1]-x[1],C,L=p.target,I=Math.abs(v)>Math.abs(b)?"h":"v";if("touches"in p&&I==="h"&&L.type==="range")return!1;var S=window.getSelection(),P=S&&S.anchorNode,E=P?P===L||P.contains(L):!1;if(E)return!1;var M=$s(I,L);if(!M)return!0;if(M?C=I:(C=I==="v"?"h":"v",M=$s(I,L)),!M)return!1;if(!o.current&&"changedTouches"in p&&(v||b)&&(o.current=C),!C)return!0;var D=o.current||C;return Sd(D,m,p,D==="h"?v:b,!0)},[]),i=ge.useCallback(function(p){var m=p;if(!(!wo.length||wo[wo.length-1]!==n)){var x="deltaY"in m?Rd(m):cn(m),w=t.current.filter(function(C){return C.name===m.type&&(C.target===m.target||m.target===C.shadowParent)&&dx(C.delta,x)})[0];if(w&&w.should){m.cancelable&&m.preventDefault();return}if(!w){var v=(s.current.shards||[]).map(Pd).filter(Boolean).filter(function(C){return C.contains(m.target)}),b=v.length>0?l(m,v[0]):!s.current.noIsolation;b&&m.cancelable&&m.preventDefault()}}},[]),u=ge.useCallback(function(p,m,x,w){var v={name:p,delta:m,target:x,should:w,shadowParent:px(x)};t.current.push(v),setTimeout(function(){t.current=t.current.filter(function(b){return b!==v})},1)},[]),c=ge.useCallback(function(p){a.current=cn(p),o.current=void 0},[]),d=ge.useCallback(function(p){u(p.type,Rd(p),p.target,l(p,e.lockRef.current))},[]),f=ge.useCallback(function(p){u(p.type,cn(p),p.target,l(p,e.lockRef.current))},[]);ge.useEffect(function(){return wo.push(n),e.setCallbacks({onScrollCapture:d,onWheelCapture:d,onTouchMoveCapture:f}),document.addEventListener("wheel",i,Ia),document.addEventListener("touchmove",i,Ia),document.addEventListener("touchstart",c,Ia),function(){wo=wo.filter(function(p){return p!==n}),document.removeEventListener("wheel",i,Ia),document.removeEventListener("touchmove",i,Ia),document.removeEventListener("touchstart",c,Ia)}},[]);var g=e.removeScrollBar,h=e.inert;return ge.createElement(ge.Fragment,null,h?ge.createElement(n,{styles:cx(r)}):null,g?ge.createElement(Ks,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function px(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}var kd=qs(dn,Dd);var Md=fn.forwardRef(function(e,t){return fn.createElement(dr,Ye({},e,{ref:t,sideCar:kd}))});Md.classNames=dr.classNames;var Sa=Md;var mx=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},bo=new WeakMap,pn=new WeakMap,mn={},Ys=0,Ad=function(e){return e&&(e.host||Ad(e.parentNode))},gx=function(e,t){return t.map(function(a){if(e.contains(a))return a;var o=Ad(a);return o&&e.contains(o)?o:(console.error("aria-hidden",a,"in not contained inside",e,". Doing nothing"),null)}).filter(function(a){return!!a})},hx=function(e,t,a,o){var r=gx(t,Array.isArray(e)?e:[e]);mn[a]||(mn[a]=new WeakMap);var n=mn[a],s=[],l=new Set,i=new Set(r),u=function(d){!d||l.has(d)||(l.add(d),u(d.parentNode))};r.forEach(u);var c=function(d){!d||i.has(d)||Array.prototype.forEach.call(d.children,function(f){if(l.has(f))c(f);else try{var g=f.getAttribute(o),h=g!==null&&g!=="false",p=(bo.get(f)||0)+1,m=(n.get(f)||0)+1;bo.set(f,p),n.set(f,m),s.push(f),p===1&&h&&pn.set(f,!0),m===1&&f.setAttribute(a,"true"),h||f.setAttribute(o,"true")}catch(x){console.error("aria-hidden: cannot operate on ",f,x)}})};return c(t),l.clear(),Ys++,function(){s.forEach(function(d){var f=bo.get(d)-1,g=n.get(d)-1;bo.set(d,f),n.set(d,g),f||(pn.has(d)||d.removeAttribute(o),pn.delete(d)),g||d.removeAttribute(a)}),Ys--,Ys||(bo=new WeakMap,bo=new WeakMap,pn=new WeakMap,mn={})}},Co=function(e,t,a){a===void 0&&(a="data-aria-hidden");var o=Array.from(Array.isArray(e)?e:[e]),r=t||mx(e);return r?(o.push.apply(o,Array.from(r.querySelectorAll("[aria-live], script"))),hx(o,r,a,"aria-hidden")):function(){return null}};var be=require("react/jsx-runtime"),xx=Object.defineProperty,pt=(e,t)=>xx(e,"name",{value:t,configurable:!0}),Js="Dialog",[Td,Fy]=_e(Js),[vx,kt]=Td(Js),Ed=pt(e=>{let{__scopeDialog:t,children:a,open:o,defaultOpen:r,onOpenChange:n,modal:s=!0}=e,l=he.useRef(null),i=he.useRef(null),[u,c]=Dt({prop:o,defaultProp:r??!1,onChange:n,caller:Js}),[d,f]=he.useState(0),[g,h]=he.useState(0);return(0,be.jsx)(vx,{scope:t,triggerRef:l,contentRef:i,contentId:ot(),titleId:ot(),descriptionId:ot(),titlePresent:d>0,descriptionPresent:g>0,setTitleCount:f,setDescriptionCount:h,open:u,onOpenChange:c,onOpenToggle:he.useCallback(()=>c(p=>!p),[c]),modal:s,children:a})},"Dialog");var Od="DialogPortal",[wx,Fd]=Td(Od,{forceMount:void 0}),Bd=pt(e=>{let{__scopeDialog:t,forceMount:a,children:o,container:r}=e,n=kt(Od,t);return(0,be.jsx)(wx,{scope:t,forceMount:a,children:he.Children.map(o,s=>(0,be.jsx)(zt,{present:a||n.open,children:(0,be.jsx)(mo,{asChild:!0,container:r,children:s})}))})},"DialogPortal"),Zs="DialogOverlay",Qs=he.forwardRef(pt(function(t,a){let o=Fd(Zs,t.__scopeDialog),{forceMount:r=o.forceMount,...n}=t,s=kt(Zs,t.__scopeDialog);return s.modal?(0,be.jsx)(zt,{present:r||s.open,children:(0,be.jsx)(Cx,{...n,ref:a})}):null},"DialogOverlay")),bx=Ve("DialogOverlay.RemoveScroll"),Cx=he.forwardRef(pt(function(t,a){let{__scopeDialog:o,...r}=t,n=kt(Zs,o),s=Ps(),l=ae(a,s);return(0,be.jsx)(Sa,{as:bx,allowPinchZoom:!0,shards:[n.contentRef],children:(0,be.jsx)(re.div,{"data-state":ol(n.open),...r,ref:l,style:{pointerEvents:"auto",...r.style}})})},"DialogOverlayImpl")),pr="DialogContent",el=he.forwardRef(pt(function(t,a){let o=Fd(pr,t.__scopeDialog),{forceMount:r=o.forceMount,...n}=t,s=kt(pr,t.__scopeDialog);return(0,be.jsx)(zt,{present:r||s.open,children:s.modal?(0,be.jsx)(Lx,{...n,ref:a}):(0,be.jsx)(yx,{...n,ref:a})})},"DialogContent")),Lx=he.forwardRef(pt(function(t,a){let o=kt(pr,t.__scopeDialog),r=he.useRef(null),n=ae(a,o.contentRef,r);return he.useEffect(()=>{let s=r.current;if(s)return Co(s)},[]),(0,be.jsx)(Nd,{...t,ref:n,trapFocus:o.open,disableOutsidePointerEvents:o.open,onCloseAutoFocus:z(t.onCloseAutoFocus,s=>{s.preventDefault(),o.triggerRef.current?.focus()}),onPointerDownOutside:z(t.onPointerDownOutside,s=>{let l=s.detail.originalEvent,i=l.button===0&&l.ctrlKey===!0;(l.button===2||i)&&s.preventDefault()}),onFocusOutside:z(t.onFocusOutside,s=>s.preventDefault())})},"DialogContentModal")),yx=he.forwardRef(pt(function(t,a){let o=kt(pr,t.__scopeDialog),r=he.useRef(!1),n=he.useRef(!1);return(0,be.jsx)(Nd,{...t,ref:a,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:s=>{t.onCloseAutoFocus?.(s),s.defaultPrevented||(r.current||o.triggerRef.current?.focus(),s.preventDefault()),r.current=!1,n.current=!1},onInteractOutside:s=>{t.onInteractOutside?.(s),s.defaultPrevented||(r.current=!0,s.detail.originalEvent.type==="pointerdown"&&(n.current=!0));let l=s.target;o.triggerRef.current?.contains(l)&&s.preventDefault(),s.detail.originalEvent.type==="focusin"&&n.current&&s.preventDefault()}})},"DialogContentNonModal")),Nd=he.forwardRef(pt(function(t,a){let{__scopeDialog:o,trapFocus:r,onOpenAutoFocus:n,onCloseAutoFocus:s,...l}=t,i=kt(pr,o);return na(),(0,be.jsx)(be.Fragment,{children:(0,be.jsx)(po,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:n,onUnmountAutoFocus:s,children:(0,be.jsx)(fo,{role:"dialog",id:i.contentId,"aria-describedby":i.descriptionPresent?i.descriptionId:void 0,"aria-labelledby":i.titlePresent?i.titleId:void 0,"data-state":ol(i.open),...l,ref:a,deferPointerDownOutside:!0,onDismiss:()=>i.onOpenChange(!1)})})})},"DialogContentImpl")),Ix="DialogTitle",tl=he.forwardRef(pt(function(t,a){let{__scopeDialog:o,...r}=t,n=kt(Ix,o),{setTitleCount:s}=n;return ue(()=>(s(l=>l+1),()=>s(l=>l-1)),[s]),(0,be.jsx)(re.h2,{id:n.titleId,...r,ref:a})},"DialogTitle")),Sx="DialogDescription",al=he.forwardRef(pt(function(t,a){let{__scopeDialog:o,...r}=t,n=kt(Sx,o),{setDescriptionCount:s}=n;return ue(()=>(s(l=>l+1),()=>s(l=>l-1)),[s]),(0,be.jsx)(re.p,{id:n.descriptionId,...r,ref:a})},"DialogDescription")),Rx="DialogClose",_d=he.forwardRef(pt(function(t,a){let{__scopeDialog:o,...r}=t,n=kt(Rx,o);return(0,be.jsx)(re.button,{type:"button",...r,ref:a,onClick:z(t.onClick,()=>n.onOpenChange(!1))})},"DialogClose"));function ol(e){return e?"open":"closed"}pt(ol,"getState");var Hd=require("react"),rl="dsh-kanban",qd={boardTab:"\u770B\u677F",loading:"\u770B\u677F\u52A0\u8F7D\u4E2D\u2026",loadFailed:"\u770B\u677F\u52A0\u8F7D\u5931\u8D25\uFF1A",actionFailed:"\u64CD\u4F5C\u5931\u8D25\uFF1A",refresh:"\u5237\u65B0\u770B\u677F",settings:"\u8BBE\u7F6E",columnEdit:"\u5217\u7F16\u8F91",labelEdit:"\u6807\u7B7E\u7F16\u8F91",emptyColumn:"\u6682\u65E0\u5361\u7247",addCard:"\u6DFB\u52A0\u5361\u7247",dragSort:"\u62D6\u62FD\u6392\u5E8F",editCard:"\u7F16\u8F91\u5361\u7247",fieldTitle:"\u6807\u9898",fieldId:"\u4EFB\u52A1 ID",titlePlaceholder:"\u5361\u7247\u6807\u9898",fieldLabel:"\u6807\u7B7E",noLabel:"\u65E0\u6807\u7B7E",fieldPriority:"\u4F18\u5148\u7EA7",noPriority:"\u65E0\u4F18\u5148\u7EA7",fieldNote:"\u5907\u6CE8",notePlaceholder:"\u5907\u6CE8\uFF08\u53EF\u9009\uFF09",cancel:"\u53D6\u6D88",save:"\u4FDD\u5B58",chatWithAgent:"\u4E0E agent \u804A\u4E00\u804A",chatCurrentSession:"\u5F53\u524D\u5BF9\u8BDD",chatNewSession:"\u65B0\u5EFA\u5BF9\u8BDD",delete:"\u5220\u9664",add:"\u6DFB\u52A0",close:"\u5173\u95ED",columnEditDesc:"\u62D6\u62FD\u8C03\u6574\u5217\u7684\u987A\u5E8F\uFF0C\u6216\u91CD\u547D\u540D\u3001\u5220\u9664\u3001\u65B0\u589E\u5217\u8868",newColumnPlaceholder:"\u65B0\u5217\u8868\u540D\u79F0",labelEditDesc:"\u521B\u5EFA\u3001\u5220\u9664\u6216\u4FEE\u6539\u6807\u7B7E\uFF0C\u989C\u8272\u4E0E\u6807\u7B7E\u7ED1\u5B9A",newLabelPlaceholder:"\u65B0\u6807\u7B7E\u540D\u79F0",priorityFilter:"\u6309\u4F18\u5148\u7EA7\u7B5B\u9009",all:"\u5168\u90E8",warnings:"\u6570\u636E\u63D0\u793A",dismiss:"\u77E5\u9053\u4E86",activityTitle:"\u6D3B\u52A8\u8BB0\u5F55",activityEmpty:"\u6682\u65E0\u6D3B\u52A8\u8BB0\u5F55",actorHuman:"\u4F60",actorAgent:"Agent",actCreated:"\u521B\u5EFA\u4E8E\u300C{column}\u300D\uFF0C\u6807\u7B7E {label}\uFF0C\u4F18\u5148\u7EA7 {priority}",actMoved:"\u4ECE\u300C{from}\u300D\u79FB\u5230\u300C{to}\u300D",actLabel:"\u6807\u7B7E {from} \u2192 {to}",actLabelSet:"\u8BBE\u7F6E\u6807\u7B7E {to}",actLabelCleared:"\u6E05\u9664\u6807\u7B7E {from}",actPriority:"\u4F18\u5148\u7EA7 {from} \u2192 {to}",actPrioritySet:"\u8BBE\u7F6E\u4F18\u5148\u7EA7 {to}",actPriorityCleared:"\u6E05\u9664\u4F18\u5148\u7EA7 {from}",actTitle:'\u6807\u9898 "{from}" \u2192 "{to}"',actNote:"\u66F4\u65B0\u4E86\u5907\u6CE8",actDeleted:"\u5220\u9664\u4E86\u5361\u7247",actColumnAdded:"\u65B0\u589E\u5217\u8868\u300C{column}\u300D",actColumnRenamed:"\u5217\u8868\u300C{from}\u300D\u2192\u300C{to}\u300D",actColumnDeleted:"\u5220\u9664\u4E86\u5217\u8868\u300C{column}\u300D",actLabelAdded:"\u65B0\u589E\u6807\u7B7E\u300C{label}\u300D",actLabelRenamed:"\u6807\u7B7E\u300C{from}\u300D\u2192\u300C{to}\u300D",actLabelDeleted:"\u5220\u9664\u4E86\u6807\u7B7E\u300C{label}\u300D",actLabelColor:"\u6807\u7B7E\u300C{label}\u300D\u6539\u8272 {from} \u2192 {to}",noValue:"\u65E0"},Dx={boardTab:"Board",loading:"Loading board\u2026",loadFailed:"Failed to load board: ",actionFailed:"Action failed: ",refresh:"Refresh board",settings:"Settings",columnEdit:"Edit lists",labelEdit:"Edit labels",emptyColumn:"No cards",addCard:"Add card",dragSort:"Drag to reorder",editCard:"Edit card",fieldTitle:"Title",fieldId:"Task ID",titlePlaceholder:"Card title",fieldLabel:"Label",noLabel:"No label",fieldPriority:"Priority",noPriority:"No priority",fieldNote:"Note",notePlaceholder:"Note (optional)",cancel:"Cancel",save:"Save",chatWithAgent:"Chat with agent",chatCurrentSession:"Current session",chatNewSession:"New session",delete:"Delete",add:"Add",close:"Close",columnEditDesc:"Drag to reorder lists, or rename, delete and add lists",newColumnPlaceholder:"New list name",labelEditDesc:"Create, delete or edit labels; color is bound to the label",newLabelPlaceholder:"New label name",priorityFilter:"Filter by priority",all:"All",warnings:"Data notice",dismiss:"Got it",activityTitle:"Activity",activityEmpty:"No activity yet",actorHuman:"You",actorAgent:"Agent",actCreated:'Created in "{column}" with label {label}, priority {priority}',actMoved:'Moved from "{from}" to "{to}"',actLabel:"Label {from} \u2192 {to}",actLabelSet:"Set label {to}",actLabelCleared:"Cleared label {from}",actPriority:"Priority {from} \u2192 {to}",actPrioritySet:"Set priority {to}",actPriorityCleared:"Cleared priority {from}",actTitle:'Title "{from}" \u2192 "{to}"',actNote:"Updated the note",actDeleted:"Deleted the card",actColumnAdded:'Added list "{column}"',actColumnRenamed:'List "{from}" \u2192 "{to}"',actColumnDeleted:'Deleted list "{column}"',actLabelAdded:'Added label "{label}"',actLabelRenamed:'Label "{from}" \u2192 "{to}"',actLabelDeleted:'Deleted label "{label}"',actLabelColor:'Label "{label}" color {from} \u2192 {to}',noValue:"None"},Ra=null,nl=null;function zd(e){let t=e.get("locale");if(t!==void 0){Ra=t;try{t.register(rl,"zh",qd),t.register(rl,"en",Dx)}catch{}nl=t.bind(rl)}}function Lo(e){return nl?nl(e):qd[e]??e}var kx=e=>Ra&&typeof Ra.subscribe=="function"?Ra.subscribe(e):()=>{},Ud=()=>Ra&&typeof Ra.getSnapshot=="function"?Ra.getSnapshot():null;function Xe(){return(0,Hd.useSyncExternalStore)(kx,Ud,Ud),Lo}var rt=require("react/jsx-runtime"),yo=Ed;var Mx=Bd;var Vd=mr.forwardRef(({className:e,...t},a)=>(0,rt.jsx)(Qs,{ref:a,className:ee("fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",e),...t}));Vd.displayName=Qs.displayName;var Pa=mr.forwardRef(({className:e,children:t,...a},o)=>{let r=Xe();return(0,rt.jsxs)(Mx,{children:[(0,rt.jsx)(Vd,{}),(0,rt.jsxs)(el,{ref:o,className:ee("fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border bg-background p-6 shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] sm:rounded-lg",e),...a,children:[t,(0,rt.jsxs)(_d,{className:"absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-accent data-[state=open]:text-muted-foreground",children:[(0,rt.jsx)(nr,{className:"h-4 w-4"}),(0,rt.jsx)("span",{className:"sr-only",children:r("close")})]})]})]})});Pa.displayName=el.displayName;var Da=({className:e,...t})=>(0,rt.jsx)("div",{className:ee("flex flex-col space-y-1.5 text-center sm:text-left",e),...t});Da.displayName="DialogHeader";var gr=({className:e,...t})=>(0,rt.jsx)("div",{className:ee("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",e),...t});gr.displayName="DialogFooter";var ka=mr.forwardRef(({className:e,...t},a)=>(0,rt.jsx)(tl,{ref:a,className:ee("text-lg font-semibold leading-none tracking-tight",e),...t}));ka.displayName=tl.displayName;var hr=mr.forwardRef(({className:e,...t},a)=>(0,rt.jsx)(al,{ref:a,className:ee("text-sm text-muted-foreground",e),...t}));hr.displayName=al.displayName;var Ir=q(require("react"),1);var yt=q(require("react"),1);var J=q(require("react"),1);var vt=q(require("react"),1);var gn=require("react/jsx-runtime"),Ze=q(require("react"),1);var Ma=require("react/jsx-runtime");var Ax=Object.defineProperty,Oe=(e,t)=>Ax(e,"name",{value:t,configurable:!0});function Aa(e){let t=e+"CollectionProvider",[a,o]=_e(t),[r,n]=a(t,{collectionRef:{current:null},itemMap:new Map}),s=Oe(p=>{let{scope:m,children:x}=p,w=vt.useRef(null),v=vt.useRef(new Map).current;return(0,gn.jsx)(r,{scope:m,itemMap:v,collectionRef:w,children:x})},"CollectionProvider");s.displayName=t;let l=e+"CollectionSlot",i=Ve(l),u=vt.forwardRef((p,m)=>{let{scope:x,children:w}=p,v=n(l,x),b=ae(m,v.collectionRef);return(0,gn.jsx)(i,{ref:b,children:w})});u.displayName=l;let c=e+"CollectionItemSlot",d="data-radix-collection-item",f=Ve(c),g=vt.forwardRef((p,m)=>{let{scope:x,children:w,...v}=p,b=vt.useRef(null),C=ae(m,b),L=n(c,x);return vt.useEffect(()=>(L.itemMap.set(b,{ref:b,...v}),()=>{L.itemMap.delete(b)})),(0,gn.jsx)(f,{[d]:"",ref:C,children:w})});g.displayName=c;function h(p){let m=n(e+"CollectionConsumer",p);return vt.useCallback(()=>{let w=m.collectionRef.current;if(!w)return[];let v=Array.from(w.querySelectorAll(`[${d}]`));return Array.from(m.itemMap.values()).sort((L,I)=>v.indexOf(L.ref.current)-v.indexOf(I.ref.current))},[m.collectionRef,m.itemMap])}return Oe(h,"useCollection"),[{Provider:s,Slot:u,ItemSlot:g},h,o]}Oe(Aa,"createCollection");var Gd=new WeakMap,Se,nt,sl=(nt=class extends Map{constructor(a){super(a);mi(this,Se);Qn(this,Se,[...super.keys()]),Gd.set(this,!0)}set(a,o){return Gd.get(this)&&(this.has(a)?qe(this,Se)[qe(this,Se).indexOf(a)]=a:qe(this,Se).push(a)),super.set(a,o),this}insert(a,o,r){let n=this.has(o),s=qe(this,Se).length,l=il(a),i=l>=0?l:s+l,u=i<0||i>=s?-1:i;if(u===this.size||n&&u===this.size-1||u===-1)return this.set(o,r),this;let c=this.size+(n?0:1);l<0&&i++;let d=[...qe(this,Se)],f,g=!1;for(let h=i;h<c;h++)if(i===h){let p=d[h];d[h]===o&&(p=d[h+1]),n&&this.delete(o),f=this.get(p),this.set(o,r)}else{!g&&d[h-1]===o&&(g=!0);let p=d[g?h:h-1],m=f;f=this.get(p),this.delete(p),this.set(p,m)}return this}with(a,o,r){let n=new nt(this);return n.insert(a,o,r),n}before(a){let o=qe(this,Se).indexOf(a)-1;if(!(o<0))return this.entryAt(o)}setBefore(a,o,r){let n=qe(this,Se).indexOf(a);return n===-1?this:this.insert(n,o,r)}after(a){let o=qe(this,Se).indexOf(a);if(o=o===-1||o===this.size-1?-1:o+1,o!==-1)return this.entryAt(o)}setAfter(a,o,r){let n=qe(this,Se).indexOf(a);return n===-1?this:this.insert(n+1,o,r)}first(){return this.entryAt(0)}last(){return this.entryAt(-1)}clear(){return Qn(this,Se,[]),super.clear()}delete(a){let o=super.delete(a);return o&&qe(this,Se).splice(qe(this,Se).indexOf(a),1),o}deleteAt(a){let o=this.keyAt(a);return o!==void 0?this.delete(o):!1}at(a){let o=hn(qe(this,Se),a);if(o!==void 0)return this.get(o)}entryAt(a){let o=hn(qe(this,Se),a);if(o!==void 0)return[o,this.get(o)]}indexOf(a){return qe(this,Se).indexOf(a)}keyAt(a){return hn(qe(this,Se),a)}from(a,o){let r=this.indexOf(a);if(r===-1)return;let n=r+o;return n<0&&(n=0),n>=this.size&&(n=this.size-1),this.at(n)}keyFrom(a,o){let r=this.indexOf(a);if(r===-1)return;let n=r+o;return n<0&&(n=0),n>=this.size&&(n=this.size-1),this.keyAt(n)}find(a,o){let r=0;for(let n of this){if(Reflect.apply(a,o,[n,r,this]))return n;r++}}findIndex(a,o){let r=0;for(let n of this){if(Reflect.apply(a,o,[n,r,this]))return r;r++}return-1}filter(a,o){let r=[],n=0;for(let s of this)Reflect.apply(a,o,[s,n,this])&&r.push(s),n++;return new nt(r)}map(a,o){let r=[],n=0;for(let s of this)r.push([s[0],Reflect.apply(a,o,[s,n,this])]),n++;return new nt(r)}reduce(...a){let[o,r]=a,n=0,s=r??this.at(0);for(let l of this)n===0&&a.length===1?s=l:s=Reflect.apply(o,this,[s,l,n,this]),n++;return s}reduceRight(...a){let[o,r]=a,n=r??this.at(-1);for(let s=this.size-1;s>=0;s--){let l=this.at(s);s===this.size-1&&a.length===1?n=l:n=Reflect.apply(o,this,[n,l,s,this])}return n}toSorted(a){let o=[...this.entries()].sort(a);return new nt(o)}toReversed(){let a=new nt;for(let o=this.size-1;o>=0;o--){let r=this.keyAt(o),n=this.get(r);a.set(r,n)}return a}toSpliced(...a){let o=[...this.entries()];return o.splice(...a),new nt(o)}slice(a,o){let r=new nt,n=this.size-1;if(a===void 0)return r;a<0&&(a=a+this.size),o!==void 0&&o>0&&(n=o-1);for(let s=a;s<=n;s++){let l=this.keyAt(s),i=this.get(l);r.set(l,i)}return r}every(a,o){let r=0;for(let n of this){if(!Reflect.apply(a,o,[n,r,this]))return!1;r++}return!0}some(a,o){let r=0;for(let n of this){if(Reflect.apply(a,o,[n,r,this]))return!0;r++}return!1}},Se=new WeakMap,Oe(nt,"OrderedDict"),nt);function hn(e,t){if("at"in Array.prototype)return Array.prototype.at.call(e,t);let a=Wd(e,t);return a===-1?void 0:e[a]}Oe(hn,"at");function Wd(e,t){let a=e.length,o=il(t),r=o>=0?o:a+o;return r<0||r>=a?-1:r}Oe(Wd,"toSafeIndex");function il(e){return e!==e||e===0?0:Math.trunc(e)}Oe(il,"toSafeInteger");function Tx(e){let t=e+"CollectionProvider",[a,o]=_e(t),[r,n]=a(t,{collectionElement:null,collectionRef:{current:null},collectionRefObject:{current:null},itemMap:new sl,setItemMap:Oe(()=>{},"setItemMap")}),s=Oe(({state:v,...b})=>v?(0,Ma.jsx)(i,{...b,state:v}):(0,Ma.jsx)(l,{...b}),"CollectionProvider");s.displayName=t;let l=Oe(v=>{let b=m();return(0,Ma.jsx)(i,{...v,state:b})},"CollectionInit");l.displayName=t+"Init";let i=Oe(v=>{let{scope:b,children:C,state:L}=v,I=Ze.useRef(null),[S,P]=Ze.useState(null),E=ae(I,P),[M,D]=L;return Ze.useEffect(()=>{if(!S)return;let F=Xd(()=>{});return F.observe(S,{childList:!0,subtree:!0}),()=>{F.disconnect()}},[S]),(0,Ma.jsx)(r,{scope:b,itemMap:M,setItemMap:D,collectionRef:E,collectionRefObject:I,collectionElement:S,children:C})},"CollectionProviderImpl");i.displayName=t+"Impl";let u=e+"CollectionSlot",c=Ve(u),d=Ze.forwardRef((v,b)=>{let{scope:C,children:L}=v,I=n(u,C),S=ae(b,I.collectionRef);return(0,Ma.jsx)(c,{ref:S,children:L})});d.displayName=u;let f=e+"CollectionItemSlot",g="data-radix-collection-item",h=Ve(f),p=Ze.forwardRef((v,b)=>{let{scope:C,children:L,...I}=v,S=Ze.useRef(null),[P,E]=Ze.useState(null),M=ae(b,S,E),D=n(f,C),{setItemMap:F}=D,U=Ze.useRef(I);jd(U.current,I)||(U.current=I);let Z=U.current;return Ze.useEffect(()=>{let W=Z;return F(O=>P?O.has(P)?O.set(P,{...W,element:P}).toSorted(ll):(O.set(P,{...W,element:P}),O.toSorted(ll)):O),()=>{F(O=>!P||!O.has(P)?O:(O.delete(P),new sl(O)))}},[P,Z,F]),(0,Ma.jsx)(h,{[g]:"",ref:M,children:L})});p.displayName=f;function m(){return Ze.useState(new sl)}Oe(m,"useInitCollection");function x(v){let{itemMap:b}=n(e+"CollectionConsumer",v);return b}return Oe(x,"useCollection"),[{Provider:s,Slot:d,ItemSlot:p},{createCollectionScope:o,useCollection:x,useInitCollection:m}]}Oe(Tx,"createCollection");function jd(e,t){if(e===t)return!0;if(typeof e!="object"||typeof t!="object"||e==null||t==null)return!1;let a=Object.keys(e),o=Object.keys(t);if(a.length!==o.length)return!1;for(let r of a)if(!Object.prototype.hasOwnProperty.call(t,r)||e[r]!==t[r])return!1;return!0}Oe(jd,"shallowEqual");function Kd(e,t){return!!(t.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_PRECEDING)}Oe(Kd,"isElementPreceding");function ll(e,t){return!e[1].element||!t[1].element?0:Kd(e[1].element,t[1].element)?-1:1}Oe(ll,"sortByDocumentPosition");function Xd(e){return new MutationObserver(a=>{for(let o of a)if(o.type==="childList"){e();return}})}Oe(Xd,"getChildListObserver");var xn=q(require("react"),1),Fx=require("react/jsx-runtime"),Ex=Object.defineProperty,Ox=(e,t)=>Ex(e,"name",{value:t,configurable:!0}),Bx=xn.createContext(void 0);function Ta(e){let t=xn.useContext(Bx);return e||t||"ltr"}Ox(Ta,"useDirection");var We=q(require("react"),1);var Zd=["top","right","bottom","left"];var Mt=Math.min,wt=Math.max,vr=Math.round,wr=Math.floor,At=e=>({x:e,y:e}),Nx={left:"right",right:"left",bottom:"top",top:"bottom"};function ul(e,t,a){return wt(e,Mt(t,a))}function Tt(e,t){return typeof e=="function"?e(t):e}function Vt(e){return e.split("-")[0]}function Ea(e){return e.split("-")[1]}function wn(e){return e==="x"?"y":"x"}function bn(e){return e==="y"?"height":"width"}function bt(e){let t=e[0];return t==="t"||t==="b"?"y":"x"}function Cn(e){return wn(bt(e))}function Jd(e,t,a){a===void 0&&(a=!1);let o=Ea(e),r=Cn(e),n=bn(r),s=r==="x"?o===(a?"end":"start")?"right":"left":o==="start"?"bottom":"top";return t.reference[n]>t.floating[n]&&(s=xr(s)),[s,xr(s)]}function Qd(e){let t=xr(e);return[vn(e),t,vn(t)]}function vn(e){return e.includes("start")?e.replace("start","end"):e.replace("end","start")}var $d=["left","right"],Yd=["right","left"],_x=["top","bottom"],Ux=["bottom","top"];function Hx(e,t,a){switch(e){case"top":case"bottom":return a?t?Yd:$d:t?$d:Yd;case"left":case"right":return t?_x:Ux;default:return[]}}function ec(e,t,a,o){let r=Ea(e),n=Hx(Vt(e),a==="start",o);return r&&(n=n.map(s=>s+"-"+r),t&&(n=n.concat(n.map(vn)))),n}function xr(e){let t=Vt(e);return Nx[t]+e.slice(t.length)}function qx(e){var t,a,o,r;return{top:(t=e.top)!=null?t:0,right:(a=e.right)!=null?a:0,bottom:(o=e.bottom)!=null?o:0,left:(r=e.left)!=null?r:0}}function dl(e){return typeof e!="number"?qx(e):{top:e,right:e,bottom:e,left:e}}function Oa(e){let{x:t,y:a,width:o,height:r}=e;return{width:o,height:r,top:a,left:t,right:t+o,bottom:a+r,x:t,y:a}}function tc(e,t,a){let{reference:o,floating:r}=e,n=bt(t),s=Cn(t),l=bn(s),i=Vt(t),u=n==="y",c=o.x+o.width/2-r.width/2,d=o.y+o.height/2-r.height/2,f=o[l]/2-r[l]/2,g;switch(i){case"top":g={x:c,y:o.y-r.height};break;case"bottom":g={x:c,y:o.y+o.height};break;case"right":g={x:o.x+o.width,y:d};break;case"left":g={x:o.x-r.width,y:d};break;default:g={x:o.x,y:o.y}}let h=Ea(t);return h&&(g[s]+=f*(h==="end"?1:-1)*(a&&u?-1:1)),g}async function rc(e,t){var a;t===void 0&&(t={});let{x:o,y:r,platform:n,rects:s,elements:l,strategy:i}=e,{boundary:u="clippingAncestors",rootBoundary:c="viewport",elementContext:d="floating",altBoundary:f=!1,padding:g=0}=Tt(t,e),h=dl(g),m=l[f?d==="floating"?"reference":"floating":d],x=Oa(await n.getClippingRect({element:(a=await(n.isElement==null?void 0:n.isElement(m)))==null||a?m:m.contextElement||await(n.getDocumentElement==null?void 0:n.getDocumentElement(l.floating)),boundary:u,rootBoundary:c,strategy:i})),w=d==="floating"?{x:o,y:r,width:s.floating.width,height:s.floating.height}:s.reference,v=await(n.getOffsetParent==null?void 0:n.getOffsetParent(l.floating)),b=await(n.isElement==null?void 0:n.isElement(v))&&await(n.getScale==null?void 0:n.getScale(v))||{x:1,y:1},C=Oa(n.convertOffsetParentRelativeRectToViewportRelativeRect?await n.convertOffsetParentRelativeRectToViewportRelativeRect({elements:l,rect:w,offsetParent:v,strategy:i}):w);return{top:(x.top-C.top+h.top)/b.y,bottom:(C.bottom-x.bottom+h.bottom)/b.y,left:(x.left-C.left+h.left)/b.x,right:(C.right-x.right+h.right)/b.x}}var zx=50,nc=async(e,t,a)=>{let{placement:o="bottom",strategy:r="absolute",middleware:n=[],platform:s}=a,l=s.detectOverflow?s:{...s,detectOverflow:rc},i=await(s.isRTL==null?void 0:s.isRTL(t)),u=await s.getElementRects({reference:e,floating:t,strategy:r}),{x:c,y:d}=tc(u,o,i),f=o,g=0,h={};for(let p=0;p<n.length;p++){let m=n[p];if(!m)continue;let{name:x,fn:w}=m,{x:v,y:b,data:C,reset:L}=await w({x:c,y:d,initialPlacement:o,placement:f,strategy:r,middlewareData:h,rects:u,platform:l,elements:{reference:e,floating:t}});c=v??c,d=b??d,h[x]={...h[x],...C},L&&g<zx&&(g++,typeof L=="object"&&(L.placement&&(f=L.placement),L.rects&&(u=L.rects===!0?await s.getElementRects({reference:e,floating:t,strategy:r}):L.rects),{x:c,y:d}=tc(u,f,i)),p=-1)}return{x:c,y:d,placement:f,strategy:r,middlewareData:h}},sc=e=>({name:"arrow",options:e,async fn(t){let{x:a,y:o,placement:r,rects:n,platform:s,elements:l,middlewareData:i}=t,{element:u,padding:c=0}=Tt(e,t)||{};if(u==null)return{};let d=dl(c),f={x:a,y:o},g=Cn(r),h=bn(g),p=await s.getDimensions(u),m=g==="y",x=m?"top":"left",w=m?"bottom":"right",v=m?"clientHeight":"clientWidth",b=n.reference[h]+n.reference[g]-f[g]-n.floating[h],C=f[g]-n.reference[g],L=await(s.getOffsetParent==null?void 0:s.getOffsetParent(u)),I=L?L[v]:0;(!I||!await(s.isElement==null?void 0:s.isElement(L)))&&(I=l.floating[v]||n.floating[h]);let S=b/2-C/2,P=I/2-p[h]/2-1,E=Mt(d[x],P),M=Mt(d[w],P),D=I-p[h]-M,F=I/2-p[h]/2+S,U=ul(E,F,D),Z=!i.arrow&&Ea(r)!=null&&F!==U&&n.reference[h]/2-(F<E?E:M)-p[h]/2<0,W=Z?F<E?F-E:F-D:0;return{[g]:f[g]+W,data:{[g]:U,centerOffset:F-U-W,...Z&&{alignmentOffset:W}},reset:Z}}});var lc=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var a,o;let{placement:r,middlewareData:n,rects:s,initialPlacement:l,platform:i,elements:u}=t,{mainAxis:c=!0,crossAxis:d=!0,fallbackPlacements:f,fallbackStrategy:g="bestFit",fallbackAxisSideDirection:h="none",flipAlignment:p=!0,...m}=Tt(e,t);if((a=n.arrow)!=null&&a.alignmentOffset)return{};let x=Vt(r),w=bt(l),v=Vt(l)===l,b=await(i.isRTL==null?void 0:i.isRTL(u.floating)),C=f||(v||!p?[xr(l)]:Qd(l)),L=h!=="none";!f&&L&&C.push(...ec(l,p,h,b));let I=[l,...C],S=await i.detectOverflow(t,m),P=[],E=((o=n.flip)==null?void 0:o.overflows)||[];if(c&&P.push(S[x]),d){let U=Jd(r,s,b);P.push(S[U[0]],S[U[1]])}if(E=[...E,{placement:r,overflows:P}],!P.every(U=>U<=0)){var M,D;let U=(((M=n.flip)==null?void 0:M.index)||0)+1,Z=I[U];if(Z&&(!(d==="alignment"?w!==bt(Z):!1)||E.every(B=>bt(B.placement)===w?B.overflows[0]>0:!0)))return{data:{index:U,overflows:E},reset:{placement:Z}};let W=(D=E.filter(O=>O.overflows[0]<=0).sort((O,B)=>O.overflows[1]-B.overflows[1])[0])==null?void 0:D.placement;if(!W)switch(g){case"bestFit":{var F;let O=(F=E.filter(B=>{if(L){let H=bt(B.placement);return H===w||H==="y"}return!0}).map(B=>[B.placement,B.overflows.filter(H=>H>0).reduce((H,T)=>H+T,0)]).sort((B,H)=>B[1]-H[1])[0])==null?void 0:F[0];O&&(W=O);break}case"initialPlacement":W=l;break}if(r!==W)return{reset:{placement:W}}}return{}}}};function ac(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function oc(e){return Zd.some(t=>e[t]>=0)}var ic=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){let{rects:a,platform:o}=t,{strategy:r="referenceHidden",...n}=Tt(e,t);switch(r){case"referenceHidden":{let s=await o.detectOverflow(t,{...n,elementContext:"reference"}),l=ac(s,a.reference);return{data:{referenceHiddenOffsets:l,referenceHidden:oc(l)}}}case"escaped":{let s=await o.detectOverflow(t,{...n,altBoundary:!0}),l=ac(s,a.floating);return{data:{escapedOffsets:l,escaped:oc(l)}}}default:return{}}}}};var uc=new Set(["left","top"]);async function Vx(e,t){let{placement:a,platform:o,elements:r}=e,n=await(o.isRTL==null?void 0:o.isRTL(r.floating)),s=Vt(a),l=Ea(a),i=bt(a)==="y",u=uc.has(s)?-1:1,c=n&&i?-1:1,d=Tt(t,e),{mainAxis:f,crossAxis:g,alignmentAxis:h}=typeof d=="number"?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:d.mainAxis||0,crossAxis:d.crossAxis||0,alignmentAxis:d.alignmentAxis};return l&&typeof h=="number"&&(g=l==="end"?h*-1:h),i?{x:g*c,y:f*u}:{x:f*u,y:g*c}}var dc=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var a,o;let{x:r,y:n,placement:s,middlewareData:l}=t,i=await Vx(t,e);return s===((a=l.offset)==null?void 0:a.placement)&&(o=l.arrow)!=null&&o.alignmentOffset?{}:{x:r+i.x,y:n+i.y,data:{...i,placement:s}}}}},cc=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){let{x:a,y:o,placement:r,platform:n}=t,{mainAxis:s=!0,crossAxis:l=!1,limiter:i={fn:w=>{let{x:v,y:b}=w;return{x:v,y:b}}},...u}=Tt(e,t),c={x:a,y:o},d=await n.detectOverflow(t,u),f=bt(r),g=wn(f),h=c[g],p=c[f],m=(w,v)=>ul(v+d[w==="y"?"top":"left"],v,v-d[w==="y"?"bottom":"right"]);s&&(h=m(g,h)),l&&(p=m(f,p));let x=i.fn({...t,[g]:h,[f]:p});return{...x,data:{x:x.x-a,y:x.y-o,enabled:{[g]:s,[f]:l}}}}}},fc=function(e){return e===void 0&&(e={}),{options:e,fn(t){var a,o;let{x:r,y:n,placement:s,rects:l,middlewareData:i}=t,{offset:u=0,mainAxis:c=!0,crossAxis:d=!0}=Tt(e,t),f={x:r,y:n},g=bt(s),h=wn(g),p=f[h],m=f[g],x=Tt(u,t),w=typeof x=="number"?{mainAxis:x,crossAxis:0}:{mainAxis:(a=x.mainAxis)!=null?a:0,crossAxis:(o=x.crossAxis)!=null?o:0};if(c){let C=h==="y"?"height":"width",L=l.reference[h]-l.floating[C]+w.mainAxis,I=l.reference[h]+l.reference[C]-w.mainAxis;p<L?p=L:p>I&&(p=I)}if(d){var v,b;let C=h==="y"?"width":"height",L=uc.has(Vt(s)),I=l.reference[g]-l.floating[C]+(L&&((v=i.offset)==null?void 0:v[g])||0)+(L?0:w.crossAxis),S=l.reference[g]+l.reference[C]+(L?0:((b=i.offset)==null?void 0:b[g])||0)-(L?w.crossAxis:0);m<I?m=I:m>S&&(m=S)}return{[h]:p,[g]:m}}}},pc=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){let{placement:a,rects:o,platform:r,elements:n}=t,{apply:s=()=>{},...l}=Tt(e,t),i=await r.detectOverflow(t,l),u=Vt(a),c=Ea(a),d=bt(a)==="y",{width:f,height:g}=o.floating,h,p;u==="top"||u==="bottom"?(h=u,p=c===(await(r.isRTL==null?void 0:r.isRTL(n.floating))?"start":"end")?"left":"right"):(p=u,h=c==="end"?"top":"bottom");let m=g-i.top-i.bottom,x=f-i.left-i.right,w=Mt(g-i[h],m),v=Mt(f-i[p],x),b=t.middlewareData.shift,C=!b,L=w,I=v;b!=null&&b.enabled.x&&(I=x),b!=null&&b.enabled.y&&(L=m),C&&!c&&(d?I=f-2*wt(i.left,i.right):L=g-2*wt(i.top,i.bottom)),await s({...t,availableWidth:I,availableHeight:L});let S=await r.getDimensions(n.floating);return f!==S.width||g!==S.height?{reset:{rects:!0}}:{}}}};function Ln(){return typeof window<"u"}function Na(e){return gc(e)?(e.nodeName||"").toLowerCase():"#document"}function $e(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Et(e){var t;return(t=(gc(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function gc(e){return Ln()?e instanceof Node||e instanceof $e(e).Node:!1}function Ct(e){return Ln()?e instanceof Element||e instanceof $e(e).Element:!1}function Gt(e){return Ln()?e instanceof HTMLElement||e instanceof $e(e).HTMLElement:!1}function mc(e){return!Ln()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof $e(e).ShadowRoot}function br(e){let{overflow:t,overflowX:a,overflowY:o,display:r}=Lt(e);return/auto|scroll|overlay|hidden|clip/.test(t+o+a)&&r!=="inline"&&r!=="contents"}function hc(e){return/^(table|td|th)$/.test(Na(e))}function Cr(e){try{if(e.matches(":popover-open"))return!0}catch{}try{return e.matches(":modal")}catch{return!1}}var Gx=/transform|translate|scale|rotate|perspective|filter/,Wx=/paint|layout|strict|content/,Fa=e=>!!e&&e!=="none",cl;function yn(e){let t=Ct(e)?Lt(e):e;return Fa(t.transform)||Fa(t.translate)||Fa(t.scale)||Fa(t.rotate)||Fa(t.perspective)||!In()&&(Fa(t.backdropFilter)||Fa(t.filter))||Gx.test(t.willChange||"")||Wx.test(t.contain||"")}function xc(e){let t=sa(e);for(;Gt(t)&&!Io(t);){if(yn(t))return t;if(Cr(t))return null;t=sa(t)}return null}function In(){return cl==null&&(cl=typeof CSS<"u"&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),cl}function Io(e){return/^(html|body|#document)$/.test(Na(e))}function Lt(e){return $e(e).getComputedStyle(e)}function Lr(e){return Ct(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function sa(e){if(Na(e)==="html")return e;let t=e.assignedSlot||e.parentNode||mc(e)&&e.host||Et(e);return mc(t)?t.host:t}function vc(e){let t=sa(e);return Io(t)?(e.ownerDocument||e).body:Gt(t)&&br(t)?t:vc(t)}function Ba(e,t,a){var o;t===void 0&&(t=[]),a===void 0&&(a=!0);let r=vc(e),n=r===((o=e.ownerDocument)==null?void 0:o.body),s=$e(r);if(n){let l=Sn(s);return t.concat(s,s.visualViewport||[],br(r)?r:[],l&&a?Ba(l):[])}else return t.concat(r,Ba(r,[],a))}function Sn(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function Cc(e){let t=Lt(e),a=parseFloat(t.width)||0,o=parseFloat(t.height)||0,r=Gt(e),n=r?e.offsetWidth:a,s=r?e.offsetHeight:o,l=vr(a)!==n||vr(o)!==s;return l&&(a=n,o=s),{width:a,height:o,$:l}}function pl(e){return Ct(e)?e:e.contextElement}function So(e){let t=pl(e);if(!Gt(t))return At(1);let a=t.getBoundingClientRect(),{width:o,height:r,$:n}=Cc(t),s=(n?vr(a.width):a.width)/o,l=(n?vr(a.height):a.height)/r;return(!s||!Number.isFinite(s))&&(s=1),(!l||!Number.isFinite(l))&&(l=1),{x:s,y:l}}var jx=At(0);function Lc(e){let t=$e(e);return!In()||!t.visualViewport?jx:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function Kx(e,t,a){return t===void 0&&(t=!1),!!a&&t&&a===$e(e)}function _a(e,t,a,o){t===void 0&&(t=!1),a===void 0&&(a=!1);let r=e.getBoundingClientRect(),n=pl(e),s=At(1);t&&(o?Ct(o)&&(s=So(o)):s=So(e));let l=Kx(n,a,o)?Lc(n):At(0),i=(r.left+l.x)/s.x,u=(r.top+l.y)/s.y,c=r.width/s.x,d=r.height/s.y;if(n&&o){let f=$e(n),g=Ct(o)?$e(o):o,h=f,p=Sn(h);for(;p&&g!==h;){let m=So(p),x=p.getBoundingClientRect(),w=Lt(p),v=x.left+(p.clientLeft+parseFloat(w.paddingLeft))*m.x,b=x.top+(p.clientTop+parseFloat(w.paddingTop))*m.y;i*=m.x,u*=m.y,c*=m.x,d*=m.y,i+=v,u+=b,h=$e(p),p=Sn(h)}}return Oa({width:c,height:d,x:i,y:u})}function Rn(e,t){let a=Lr(e).scrollLeft;return t?t.left+a:_a(Et(e)).left+a}function yc(e,t){let a=e.getBoundingClientRect(),o=a.left+t.scrollLeft-Rn(e,a),r=a.top+t.scrollTop;return{x:o,y:r}}function Xx(e){let{elements:t,rect:a,offsetParent:o,strategy:r}=e,n=r==="fixed",s=Et(o),l=t?Cr(t.floating):!1;if(o===s||l&&n)return a;let i={scrollLeft:0,scrollTop:0},u=At(1),c=At(0),d=Gt(o);if((d||!n)&&((Na(o)!=="body"||br(s))&&(i=Lr(o)),d)){let g=_a(o);u=So(o),c.x=g.x+o.clientLeft,c.y=g.y+o.clientTop}let f=s&&!d&&!n?yc(s,i):At(0);return{width:a.width*u.x,height:a.height*u.y,x:a.x*u.x-i.scrollLeft*u.x+c.x+f.x,y:a.y*u.y-i.scrollTop*u.y+c.y+f.y}}function $x(e){return e.getClientRects?Array.from(e.getClientRects()):[]}function Yx(e){let t=Lr(e),a=e.ownerDocument.body,o=wt(e.scrollWidth,e.clientWidth,a.scrollWidth,a.clientWidth),r=wt(e.scrollHeight,e.clientHeight,a.scrollHeight,a.clientHeight),n=-t.scrollLeft+Rn(e),s=-t.scrollTop;return Lt(a).direction==="rtl"&&(n+=wt(e.clientWidth,a.clientWidth)-o),{width:o,height:r,x:n,y:s}}var Zx=25;function Jx(e,t,a){a===void 0&&(a="viewport");let o=a==="layoutViewport",r=$e(e),n=Et(e),s=r.visualViewport,l=n.clientWidth,i=n.clientHeight,u=0,c=0;if(s){let f=!In()||t==="fixed";o?f||(u=-s.offsetLeft,c=-s.offsetTop):(l=s.width,i=s.height,f&&(u=s.offsetLeft,c=s.offsetTop))}if(Rn(n)<=0){let f=n.ownerDocument,g=f.body,h=getComputedStyle(g),p=f.compatMode==="CSS1Compat"&&parseFloat(h.marginLeft)+parseFloat(h.marginRight)||0,m=Math.abs(n.clientWidth-g.clientWidth-p),x=getComputedStyle(n).scrollbarGutter==="stable both-edges"?m/2:m;x<=Zx&&(l-=x)}return{width:l,height:i,x:u,y:c}}function Qx(e,t){let a=_a(e,!0,t==="fixed"),o=a.top+e.clientTop,r=a.left+e.clientLeft,n=So(e),s=e.clientWidth*n.x,l=e.clientHeight*n.y,i=r*n.x,u=o*n.y;return{width:s,height:l,x:i,y:u}}function wc(e,t,a){let o;if(t==="viewport"||t==="layoutViewport")o=Jx(e,a,t);else if(t==="document")o=Yx(Et(e));else if(Ct(t))o=Qx(t,a);else{let r=Lc(e);o={x:t.x-r.x,y:t.y-r.y,width:t.width,height:t.height}}return Oa(o)}function ev(e,t){let a=t.get(e);if(a)return a;let o=Ba(e,[],!1).filter(l=>Ct(l)&&Na(l)!=="body"),r=null,n=Lt(e).position==="fixed",s=n?sa(e):e;for(;Ct(s)&&!Io(s);){let l=Lt(s),i=yn(s),u=r?r.position:n?"fixed":"";!i&&(u==="fixed"||u==="absolute"&&l.position==="static")?o=o.filter(d=>d!==s):r=l,s=sa(s)}return t.set(e,o),o}function tv(e){let{element:t,boundary:a,rootBoundary:o,strategy:r}=e,s=[...a==="clippingAncestors"?Cr(t)?[]:ev(t,this._c):[].concat(a),o],l=wc(t,s[0],r),i=l.top,u=l.right,c=l.bottom,d=l.left;for(let f=1;f<s.length;f++){let g=wc(t,s[f],r);i=wt(g.top,i),u=Mt(g.right,u),c=Mt(g.bottom,c),d=wt(g.left,d)}return{width:u-d,height:c-i,x:d,y:i}}function av(e){let{width:t,height:a}=Cc(e);return{width:t,height:a}}function ov(e,t,a){let o=Gt(t),r=Et(t),n=a==="fixed",s=_a(e,!0,n,t),l={scrollLeft:0,scrollTop:0},i=At(0);if((o||!n)&&((Na(t)!=="body"||br(r))&&(l=Lr(t)),o)){let f=_a(t,!0,n,t);i.x=f.x+t.clientLeft,i.y=f.y+t.clientTop}!o&&r&&(i.x=Rn(r));let u=r&&!o&&!n?yc(r,l):At(0),c=s.left+l.scrollLeft-i.x-u.x,d=s.top+l.scrollTop-i.y-u.y;return{x:c,y:d,width:s.width,height:s.height}}function fl(e){return Lt(e).position==="static"}function bc(e,t){if(!Gt(e)||Lt(e).position==="fixed")return null;if(t)return t(e);let a=e.offsetParent;return Et(e)===a&&(a=a.ownerDocument.body),a}function Ic(e,t){let a=$e(e);if(Cr(e))return a;if(!Gt(e)){let r=sa(e);for(;r&&!Io(r);){if(Ct(r)&&!fl(r))return r;r=sa(r)}return a}let o=bc(e,t);for(;o&&hc(o)&&fl(o);)o=bc(o,t);return o&&Io(o)&&fl(o)&&!yn(o)?a:o||xc(e)||a}var rv=async function(e){let t=this.getOffsetParent||Ic,a=this.getDimensions,o=await a(e.floating);return{reference:ov(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:o.width,height:o.height}}};function nv(e){return Lt(e).direction==="rtl"}var Sc={convertOffsetParentRelativeRectToViewportRelativeRect:Xx,getDocumentElement:Et,getClippingRect:tv,getOffsetParent:Ic,getElementRects:rv,getClientRects:$x,getDimensions:av,getScale:So,isElement:Ct,isRTL:nv};function Rc(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function sv(e,t,a){let o=null,r,n=Et(e);function s(){var c;clearTimeout(r),(c=o)==null||c.disconnect(),o=null}function l(c,d){c===void 0&&(c=!1),d===void 0&&(d=1),s();let f=e.getBoundingClientRect(),{left:g,top:h,width:p,height:m}=f;if(c||t(),!p||!m)return;let x=wr(h),w=wr(n.clientWidth-(g+p)),v=wr(n.clientHeight-(h+m)),b=wr(g),L={rootMargin:-x+"px "+-w+"px "+-v+"px "+-b+"px",threshold:wt(0,Mt(1,d))||1},I=!0;function S(P){let E=P[0].intersectionRatio;if(!Rc(f,e.getBoundingClientRect()))return l();if(E!==d){if(!I)return l();E?l(!1,E):r=setTimeout(()=>{l(!1,1e-7)},1e3)}I=!1}try{o=new IntersectionObserver(S,{...L,root:n.ownerDocument})}catch{o=new IntersectionObserver(S,L)}o.observe(e)}let i=$e(e),u=()=>l(a);return i.addEventListener("resize",u),l(!0),()=>{i.removeEventListener("resize",u),s()}}function ml(e,t,a,o){o===void 0&&(o={});let{ancestorScroll:r=!0,ancestorResize:n=!0,elementResize:s=typeof ResizeObserver=="function",layoutShift:l=typeof IntersectionObserver=="function",animationFrame:i=!1}=o,u=pl(e),c=r||n?[...u?Ba(u):[],...t?Ba(t):[]]:[];c.forEach(x=>{r&&x.addEventListener("scroll",a),n&&x.addEventListener("resize",a)});let d=u&&l?sv(u,a,n):null,f=-1,g=null;s&&(g=new ResizeObserver(x=>{let[w]=x;w&&w.target===u&&g&&t&&(g.unobserve(t),cancelAnimationFrame(f),f=requestAnimationFrame(()=>{var v;(v=g)==null||v.observe(t)})),a()}),u&&!i&&g.observe(u),t&&g.observe(t));let h,p=i?_a(e):null;i&&m();function m(){let x=_a(e);p&&!Rc(p,x)&&a(),p=x,h=requestAnimationFrame(m)}return a(),()=>{var x;c.forEach(w=>{r&&w.removeEventListener("scroll",a),n&&w.removeEventListener("resize",a)}),d?.(),(x=g)==null||x.disconnect(),g=null,i&&cancelAnimationFrame(h)}}var Pc=dc;var Dc=cc,kc=lc,Mc=pc,Ac=ic,gl=sc;var Tc=fc,hl=(e,t,a)=>{let o=new Map,r=a??{},n={...Sc,...r.platform,_c:o};return nc(e,t,{...r,platform:n})};var Re=q(require("react"),1),Oc=require("react"),Fc=q(require("react-dom"),1),lv=typeof document<"u",iv=function(){},Pn=lv?Oc.useLayoutEffect:iv;function Dn(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 a,o,r;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(a=e.length,a!==t.length)return!1;for(o=a;o--!==0;)if(!Dn(e[o],t[o]))return!1;return!0}if(r=Object.keys(e),a=r.length,a!==Object.keys(t).length)return!1;for(o=a;o--!==0;)if(!{}.hasOwnProperty.call(t,r[o]))return!1;for(o=a;o--!==0;){let n=r[o];if(!(n==="_owner"&&e.$$typeof)&&!Dn(e[n],t[n]))return!1}return!0}return e!==e&&t!==t}function Bc(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function Ec(e,t){let a=Bc(e);return Math.round(t*a)/a}function xl(e){let t=Re.useRef(e);return Pn(()=>{t.current=e}),t}function Nc(e){e===void 0&&(e={});let{placement:t="bottom",strategy:a="absolute",middleware:o=[],platform:r,elements:{reference:n,floating:s}={},transform:l=!0,whileElementsMounted:i,open:u}=e,[c,d]=Re.useState({x:0,y:0,strategy:a,placement:t,middlewareData:{},isPositioned:!1}),[f,g]=Re.useState(o);Dn(f,o)||g(o);let[h,p]=Re.useState(null),[m,x]=Re.useState(null),w=Re.useCallback(B=>{B!==L.current&&(L.current=B,p(B))},[]),v=Re.useCallback(B=>{B!==I.current&&(I.current=B,x(B))},[]),b=n||h,C=s||m,L=Re.useRef(null),I=Re.useRef(null),S=Re.useRef(c),P=i!=null,E=xl(i),M=xl(r),D=xl(u),F=Re.useCallback(()=>{if(!L.current||!I.current)return;let B={placement:t,strategy:a,middleware:f};M.current&&(B.platform=M.current),hl(L.current,I.current,B).then(H=>{let T={...H,isPositioned:D.current!==!1};U.current&&!Dn(S.current,T)&&(S.current=T,Fc.flushSync(()=>{d(T)}))})},[f,t,a,M,D]);Pn(()=>{u===!1&&S.current.isPositioned&&(S.current.isPositioned=!1,d(B=>({...B,isPositioned:!1})))},[u]);let U=Re.useRef(!1);Pn(()=>(U.current=!0,()=>{U.current=!1}),[]),Pn(()=>{if(b&&(L.current=b),C&&(I.current=C),b&&C){if(E.current)return E.current(b,C,F);F()}},[b,C,F,E,P]);let Z=Re.useMemo(()=>({reference:L,floating:I,setReference:w,setFloating:v}),[w,v]),W=Re.useMemo(()=>({reference:b,floating:C}),[b,C]),O=Re.useMemo(()=>{let B={position:a,left:0,top:0};if(!W.floating)return B;let H=Ec(W.floating,c.x),T=Ec(W.floating,c.y);return l?{...B,transform:"translate("+H+"px, "+T+"px)",...Bc(W.floating)>=1.5&&{willChange:"transform"}}:{position:a,left:H,top:T}},[a,l,W.floating,c.x,c.y]);return Re.useMemo(()=>({...c,update:F,refs:Z,elements:W,floatingStyles:O}),[c,F,Z,W,O])}var uv=e=>{function t(a){return{}.hasOwnProperty.call(a,"current")}return{name:"arrow",options:e,fn(a){let{element:o,padding:r}=typeof e=="function"?e(a):e;return o&&t(o)?o.current!=null?gl({element:o.current,padding:r}).fn(a):{}:o?gl({element:o,padding:r}).fn(a):{}}}},_c=(e,t)=>{let a=Pc(e);return{name:a.name,fn:a.fn,options:[e,t]}},Uc=(e,t)=>{let a=Dc(e);return{name:a.name,fn:a.fn,options:[e,t]}},Hc=(e,t)=>({fn:Tc(e).fn,options:[e,t]}),qc=(e,t)=>{let a=kc(e);return{name:a.name,fn:a.fn,options:[e,t]}},zc=(e,t)=>{let a=Mc(e);return{name:a.name,fn:a.fn,options:[e,t]}};var Vc=(e,t)=>{let a=Ac(e);return{name:a.name,fn:a.fn,options:[e,t]}};var Gc=(e,t)=>{let a=uv(e);return{name:a.name,fn:a.fn,options:[e,t]}};var Wc=q(require("react"),1);var dv=Object.defineProperty,cv=(e,t)=>dv(e,"name",{value:t,configurable:!0});function vl(e){let[t,a]=Wc.useState(void 0);return ue(()=>{if(e){a({width:e.offsetWidth,height:e.offsetHeight});let o=new ResizeObserver(r=>{if(!Array.isArray(r)||!r.length)return;let n=r[0],s,l;if("borderBoxSize"in n){let i=n.borderBoxSize,u=Array.isArray(i)?i[0]:i;s=u.inlineSize,l=u.blockSize}else s=e.offsetWidth,l=e.offsetHeight;a({width:s,height:l})});return o.observe(e,{box:"border-box"}),()=>o.unobserve(e)}else a(void 0)},[e]),t}cv(vl,"useSize");var Ro=require("react/jsx-runtime"),fv=Object.defineProperty,la=(e,t)=>fv(e,"name",{value:t,configurable:!0});var jc="Popper",[Kc,Po]=_e(jc),[pv,Xc]=Kc(jc),mv=la(e=>{let{__scopePopper:t,children:a}=e,[o,r]=We.useState(null),[n,s]=We.useState(void 0);return(0,Ro.jsx)(pv,{scope:t,anchor:o,onAnchorChange:r,placementState:n,setPlacementState:s,children:a})},"Popper"),gv="PopperAnchor",hv=We.forwardRef(la(function(t,a){let{__scopePopper:o,virtualRef:r,...n}=t,s=Xc(gv,o),l=We.useRef(null),i=s.onAnchorChange,u=We.useCallback(p=>{l.current=p,p&&i(p)},[i]),c=ae(a,u),d=We.useRef(null);We.useEffect(()=>{if(!r)return;let p=d.current;d.current=r.current,p!==d.current&&i(d.current)});let f=s.placementState&&kn(s.placementState),g=f?.[0],h=f?.[1];return r?null:(0,Ro.jsx)(re.div,{"data-radix-popper-side":g,"data-radix-popper-align":h,...n,ref:c})},"PopperAnchor")),$c="PopperContent",[xv,II]=Kc($c),vv=We.forwardRef(la(function(t,a){let{__scopePopper:o,side:r="bottom",sideOffset:n=0,align:s="center",alignOffset:l=0,arrowPadding:i=0,avoidCollisions:u=!0,collisionBoundary:c=[],collisionPadding:d=0,sticky:f="partial",hideWhenDetached:g=!1,updatePositionStrategy:h="optimized",onPlaced:p,...m}=t,x=Xc($c,o),[w,v]=We.useState(null),b=ae(a,v),[C,L]=We.useState(null),I=vl(C),S=I?.width??0,P=I?.height??0,E=r+(s!=="center"?"-"+s:""),M=typeof d=="number"?d:{top:0,right:0,bottom:0,left:0,...d},D=Array.isArray(c)?c:[c],F=D.length>0,U={padding:M,boundary:D.filter(Yc),altBoundary:F},{refs:Z,floatingStyles:W,placement:O,isPositioned:B,middlewareData:H}=Nc({strategy:"fixed",placement:E,whileElementsMounted:la((...X)=>ml(...X,{animationFrame:h==="always"}),"whileElementsMounted"),elements:{reference:x.anchor},middleware:[_c({mainAxis:n+P,alignmentAxis:l}),u&&Uc({mainAxis:!0,crossAxis:!1,limiter:f==="partial"?Hc():void 0,...U}),u&&qc({...U}),zc({...U,apply:la(({elements:X,rects:_,availableWidth:$,availableHeight:Y})=>{let{width:oe,height:we}=_.reference,Pe=X.floating.style;Pe.setProperty("--radix-popper-available-width",`${$}px`),Pe.setProperty("--radix-popper-available-height",`${Y}px`),Pe.setProperty("--radix-popper-anchor-width",`${oe}px`),Pe.setProperty("--radix-popper-anchor-height",`${we}px`)},"apply")}),C&&Gc({element:C,padding:i}),wv({arrowWidth:S,arrowHeight:P}),g&&Vc({strategy:"referenceHidden",...U,boundary:F?U.boundary:void 0})]}),T=x.setPlacementState;ue(()=>(T(O),()=>{T(void 0)}),[O,T]);let[le,Q]=kn(O),ie=Te(p);ue(()=>{B&&ie?.()},[B,ie]);let ve=H.arrow?.x,R=H.arrow?.y,N=H.arrow?.centerOffset!==0,[G,k]=We.useState();return ue(()=>{w&&k(window.getComputedStyle(w).zIndex)},[w]),(0,Ro.jsx)("div",{ref:Z.setFloating,"data-radix-popper-content-wrapper":"",style:{...W,transform:B?W.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:G,"--radix-popper-transform-origin":[H.transformOrigin?.x,H.transformOrigin?.y].join(" "),...H.hide?.referenceHidden&&{visibility:"hidden",pointerEvents:"none"}},dir:t.dir,children:(0,Ro.jsx)(xv,{scope:o,placedSide:le,placedAlign:Q,onArrowChange:L,arrowX:ve,arrowY:R,shouldHideArrow:N,children:(0,Ro.jsx)(re.div,{"data-side":le,"data-align":Q,...m,ref:b,style:{...m.style,animation:B?m.style?.animation:"none"}})})})},"PopperContent"));function Yc(e){return e!==null}la(Yc,"isNotNull");var wv=la(e=>({name:"transformOrigin",options:e,fn(t){let{placement:a,rects:o,middlewareData:r}=t,s=r.arrow?.centerOffset!==0,l=s?0:e.arrowWidth,i=s?0:e.arrowHeight,[u,c]=kn(a),d={start:"0%",center:"50%",end:"100%"}[c],f=(r.arrow?.x??0)+l/2,g=(r.arrow?.y??0)+i/2,h="",p="";return u==="bottom"?(h=s?d:`${f}px`,p=`${-i}px`):u==="top"?(h=s?d:`${f}px`,p=`${o.floating.height+i}px`):u==="right"?(h=`${-i}px`,p=s?d:`${g}px`):u==="left"&&(h=`${o.floating.width+i}px`,p=s?d:`${g}px`),{data:{x:h,y:p}}}}),"transformOrigin");function kn(e){let[t,a="center"]=e.split("-");return[t,a]}la(kn,"getSideAndAlignFromPlacement");var Mn=mv,An=hv,Tn=vv;var Fe=q(require("react"),1);var Cv=q(require("react"),1),En=q(require("react"),1),bv=Object.defineProperty,bl=(e,t)=>bv(e,"name",{value:t,configurable:!0}),wl=!1;function Jc(){let[e,t]=En.useState(wl);return En.useEffect(()=>{wl||(wl=!0,t(!0))},[]),e}bl(Jc,"useIsHydrated");var Qc=Cv[" useSyncExternalStore ".trim().toString()];function ef(){return()=>{}}bl(ef,"subscribe");function tf(){return Qc(ef,()=>!0,()=>!1)}bl(tf,"useIsHydratedModern");var af=typeof Qc=="function"?tf:Jc;var ia=require("react/jsx-runtime"),Lv=Object.defineProperty,Ua=(e,t)=>Lv(e,"name",{value:t,configurable:!0}),Cl="rovingFocusGroup.onEntryFocus",yv={bubbles:!1,cancelable:!0},On="RovingFocusGroup",[Ll,of,Iv]=Aa(On),[Sv,yl]=_e(On,[Iv]),[Rv,Pv]=Sv(On),Dv=Fe.forwardRef(Ua(function(t,a){return(0,ia.jsx)(Ll.Provider,{scope:t.__scopeRovingFocusGroup,children:(0,ia.jsx)(Ll.Slot,{scope:t.__scopeRovingFocusGroup,children:(0,ia.jsx)(kv,{...t,ref:a})})})},"RovingFocusGroup")),kv=Fe.forwardRef(Ua(function(t,a){let{__scopeRovingFocusGroup:o,orientation:r,loop:n=!1,dir:s,currentTabStopId:l,defaultCurrentTabStopId:i,onCurrentTabStopIdChange:u,onEntryFocus:c,preventScrollOnEntryFocus:d=!1,...f}=t,g=Fe.useRef(null),h=ae(a,g),p=Ta(s),[m,x]=Dt({prop:l,defaultProp:i??null,onChange:u,caller:On}),[w,v]=Fe.useState(!1),b=Te(c),C=of(o),L=Fe.useRef(!1),[I,S]=Fe.useState(0);return Fe.useEffect(()=>{let P=g.current;if(P)return P.addEventListener(Cl,b),()=>P.removeEventListener(Cl,b)},[b]),(0,ia.jsx)(Rv,{scope:o,orientation:r,dir:p,loop:n,currentTabStopId:m,onItemFocus:Fe.useCallback(P=>x(P),[x]),onItemShiftTab:Fe.useCallback(()=>v(!0),[]),onFocusableItemAdd:Fe.useCallback(()=>S(P=>P+1),[]),onFocusableItemRemove:Fe.useCallback(()=>S(P=>P-1),[]),children:(0,ia.jsx)(re.div,{tabIndex:w||I===0?-1:0,"data-orientation":r,...f,ref:h,style:{outline:"none",...t.style},onMouseDown:z(t.onMouseDown,()=>{L.current=!0}),onFocus:z(t.onFocus,P=>{let E=!L.current;if(P.target===P.currentTarget&&E&&!w){let M=new CustomEvent(Cl,yv);if(P.currentTarget.dispatchEvent(M),!M.defaultPrevented){let D=C().filter(O=>O.focusable),F=D.find(O=>O.active),U=D.find(O=>O.id===m),W=[F,U,...D].filter(Boolean).map(O=>O.ref.current);Il(W,d)}}L.current=!1}),onBlur:z(t.onBlur,()=>v(!1))})})},"RovingFocusGroupImpl")),Mv="RovingFocusGroupItem",Av=Fe.forwardRef(Ua(function(t,a){let{__scopeRovingFocusGroup:o,focusable:r=!0,active:n=!1,tabStopId:s,children:l,...i}=t,u=ot(),c=s||u,d=Pv(Mv,o),f=d.currentTabStopId===c,g=of(o),{onFocusableItemAdd:h,onFocusableItemRemove:p,currentTabStopId:m}=d,x=af();return ue(()=>{if(!(!x||!r))return h(),()=>p()},[x,r,h,p]),Fe.useEffect(()=>{if(!(x||!r))return h(),()=>p()},[x,r,h,p]),(0,ia.jsx)(Ll.ItemSlot,{scope:o,id:c,focusable:r,active:n,children:(0,ia.jsx)(re.span,{tabIndex:f?0:-1,"data-orientation":d.orientation,...i,ref:a,onMouseDown:z(t.onMouseDown,w=>{r?d.onItemFocus(c):w.preventDefault()}),onFocus:z(t.onFocus,()=>d.onItemFocus(c)),onKeyDown:z(t.onKeyDown,w=>{if(w.key==="Tab"&&w.shiftKey){d.onItemShiftTab();return}if(w.target!==w.currentTarget)return;let v=nf(w,d.orientation,d.dir);if(v!==void 0){if(w.metaKey||w.ctrlKey||w.altKey||w.shiftKey)return;w.preventDefault();let C=g().filter(L=>L.focusable).map(L=>L.ref.current);if(v==="last")C.reverse();else if(v==="prev"||v==="next"){v==="prev"&&C.reverse();let L=C.indexOf(w.currentTarget);C=d.loop?sf(C,L+1):C.slice(L+1)}setTimeout(()=>Il(C))}}),children:typeof l=="function"?l({isCurrentTabStop:f,hasTabStop:m!=null}):l})})},"RovingFocusGroupItem")),Tv={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function rf(e,t){return t!=="rtl"?e:e==="ArrowLeft"?"ArrowRight":e==="ArrowRight"?"ArrowLeft":e}Ua(rf,"getDirectionAwareKey");function nf(e,t,a){let o=rf(e.key,a);if(!(t==="vertical"&&["ArrowLeft","ArrowRight"].includes(o))&&!(t==="horizontal"&&["ArrowUp","ArrowDown"].includes(o)))return Tv[o]}Ua(nf,"getFocusIntent");function Il(e,t=!1){let a=document.activeElement;for(let o of e)if(o===a||(o.focus({preventScroll:t}),document.activeElement!==a))return}Ua(Il,"focusFirst");function sf(e,t){return e.map((a,o)=>e[(t+o)%e.length])}Ua(sf,"wrapArray");var lf=Dv,uf=Av;var fe=require("react/jsx-runtime"),Fv=Object.defineProperty,pe=(e,t)=>Fv(e,"name",{value:t,configurable:!0}),Sl=["Enter"," "],Bv=["ArrowDown","PageUp","Home"],cf=["ArrowUp","PageDown","End"],Nv=[...Bv,...cf],eS={ltr:[...Sl,"ArrowRight"],rtl:[...Sl,"ArrowLeft"]};var Bn="Menu",[Rl,_v,Uv]=Aa(Bn),[Ha,Dl]=_e(Bn,[Uv,Po,yl]),kl=Po(),ff=yl(),[Hv,yr]=Ha(Bn),[qv,Ml]=Ha(Bn),zv=pe(e=>{let{__scopeMenu:t,open:a=!1,children:o,dir:r,onOpenChange:n,modal:s=!0}=e,l=kl(t),[i,u]=J.useState(null),c=J.useRef(!1),d=Te(n),f=Ta(r);return J.useEffect(()=>{let g=pe(()=>{c.current=!0,document.addEventListener("pointerdown",h,{capture:!0,once:!0}),document.addEventListener("pointermove",h,{capture:!0,once:!0})},"handleKeyDown"),h=pe(()=>c.current=!1,"handlePointer");return document.addEventListener("keydown",g,{capture:!0}),()=>{document.removeEventListener("keydown",g,{capture:!0}),document.removeEventListener("pointerdown",h,{capture:!0}),document.removeEventListener("pointermove",h,{capture:!0})}},[]),J.useEffect(()=>{if(!a)return;let g=pe(()=>d(!1),"handleBlur");return window.addEventListener("blur",g),()=>window.removeEventListener("blur",g)},[a,d]),(0,fe.jsx)(Mn,{...l,children:(0,fe.jsx)(Hv,{scope:t,open:a,onOpenChange:d,content:i,onContentChange:u,children:(0,fe.jsx)(qv,{scope:t,onClose:J.useCallback(()=>d(!1),[d]),isUsingKeyboardRef:c,dir:f,modal:s,children:o})})})},"Menu"),Vv=J.forwardRef(pe(function(t,a){let{__scopeMenu:o,...r}=t,n=kl(o);return(0,fe.jsx)(An,{...n,...r,ref:a})},"MenuAnchor")),pf="MenuPortal",[Gv,Wv]=Ha(pf,{forceMount:void 0}),jv=pe(e=>{let{__scopeMenu:t,forceMount:a,children:o,container:r}=e,n=yr(pf,t);return(0,fe.jsx)(Gv,{scope:t,forceMount:a,children:(0,fe.jsx)(zt,{present:a||n.open,children:(0,fe.jsx)(mo,{asChild:!0,container:r,children:o})})})},"MenuPortal"),ua="MenuContent",[Kv,mf]=Ha(ua),Xv=J.forwardRef(pe(function(t,a){let o=Wv(ua,t.__scopeMenu),{forceMount:r=o.forceMount,...n}=t,s=yr(ua,t.__scopeMenu),l=Ml(ua,t.__scopeMenu);return(0,fe.jsx)(Rl.Provider,{scope:t.__scopeMenu,children:(0,fe.jsx)(zt,{present:r||s.open,children:(0,fe.jsx)(Rl.Slot,{scope:t.__scopeMenu,children:l.modal?(0,fe.jsx)($v,{...n,ref:a}):(0,fe.jsx)(Yv,{...n,ref:a})})})})},"MenuContent")),$v=J.forwardRef(pe(function(t,a){let o=yr(ua,t.__scopeMenu),r=J.useRef(null),n=ae(a,r);return J.useEffect(()=>{let s=r.current;if(s)return Co(s)},[]),(0,fe.jsx)(gf,{...t,ref:n,trapFocus:o.open,disableOutsidePointerEvents:o.open,disableOutsideScroll:!0,onFocusOutside:z(t.onFocusOutside,s=>s.preventDefault(),{checkForDefaultPrevented:!1}),onDismiss:()=>o.onOpenChange(!1)})},"MenuRootContentModal")),Yv=J.forwardRef(pe(function(t,a){let o=yr(ua,t.__scopeMenu);return(0,fe.jsx)(gf,{...t,ref:a,trapFocus:!1,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,onDismiss:()=>o.onOpenChange(!1)})},"MenuRootContentNonModal")),Zv=Ve("MenuContent.ScrollLock"),gf=J.forwardRef(pe(function(t,a){let{__scopeMenu:o,loop:r=!1,trapFocus:n,onOpenAutoFocus:s,onCloseAutoFocus:l,disableOutsidePointerEvents:i,onEntryFocus:u,onEscapeKeyDown:c,onPointerDownOutside:d,onFocusOutside:f,onInteractOutside:g,onDismiss:h,disableOutsideScroll:p,...m}=t,x=yr(ua,o),w=Ml(ua,o),v=kl(o),b=ff(o),C=_v(o),[L,I]=J.useState(null),S=J.useRef(null),P=ae(a,S,x.onContentChange),E=J.useRef(0),M=J.useRef(""),D=J.useRef(0),F=J.useRef(null),U=J.useRef("right"),Z=J.useRef(0),W=p?Sa:J.Fragment,O=p?{as:Zv,allowPinchZoom:!0}:void 0,B=pe(T=>{let le=M.current+T,Q=C().filter(k=>!k.disabled),ie=document.activeElement,ve=Q.find(k=>k.ref.current===ie)?.textValue,R=Q.map(k=>k.textValue),N=bf(R,le,ve),G=Q.find(k=>k.textValue===N)?.ref.current;pe((function k(X){M.current=X,window.clearTimeout(E.current),X!==""&&(E.current=window.setTimeout(()=>k(""),1e3))}),"updateSearch")(le),G&&setTimeout(()=>G.focus())},"handleTypeaheadSearch");J.useEffect(()=>()=>window.clearTimeout(E.current),[]),na();let H=J.useCallback(T=>U.current===F.current?.side&&Lf(T,F.current?.area),[]);return(0,fe.jsx)(Kv,{scope:o,searchRef:M,onItemEnter:J.useCallback(T=>{H(T)&&T.preventDefault()},[H]),onItemLeave:J.useCallback(T=>{H(T)||(S.current?.focus(),I(null))},[H]),onTriggerLeave:J.useCallback(T=>{H(T)&&T.preventDefault()},[H]),pointerGraceTimerRef:D,onPointerGraceIntentChange:J.useCallback(T=>{F.current=T},[]),children:(0,fe.jsx)(W,{...O,children:(0,fe.jsx)(po,{asChild:!0,trapped:n,onMountAutoFocus:z(s,T=>{T.preventDefault(),S.current?.focus({preventScroll:!0})}),onUnmountAutoFocus:l,children:(0,fe.jsx)(fo,{asChild:!0,disableOutsidePointerEvents:i,onEscapeKeyDown:c,onPointerDownOutside:d,onFocusOutside:f,onInteractOutside:g,onDismiss:h,children:(0,fe.jsx)(lf,{asChild:!0,...b,dir:w.dir,orientation:"vertical",loop:r,currentTabStopId:L,onCurrentTabStopIdChange:I,onEntryFocus:z(u,T=>{w.isUsingKeyboardRef.current||T.preventDefault()}),preventScrollOnEntryFocus:!0,children:(0,fe.jsx)(Tn,{role:"menu","aria-orientation":"vertical","data-state":hf(x.open),"data-radix-menu-content":"",dir:w.dir,...v,...m,ref:P,style:{outline:"none",...m.style},onKeyDown:z(m.onKeyDown,T=>{let Q=T.target.closest("[data-radix-menu-content]")===T.currentTarget,ie=T.ctrlKey||T.altKey||T.metaKey,ve=T.key.length===1;Q&&(T.key==="Tab"&&T.preventDefault(),!ie&&ve&&B(T.key));let R=S.current;if(T.target!==R||!Nv.includes(T.key))return;T.preventDefault();let G=C().filter(k=>!k.disabled).map(k=>k.ref.current);cf.includes(T.key)&&G.reverse(),vf(G)}),onBlur:z(t.onBlur,T=>{T.currentTarget.contains(T.target)||(window.clearTimeout(E.current),M.current="")}),onPointerMove:z(t.onPointerMove,Fn(T=>{let le=T.target,Q=Z.current!==T.clientX;if(T.currentTarget.contains(le)&&Q){let ie=T.clientX>Z.current?"right":"left";U.current=ie,Z.current=T.clientX}}))})})})})})})},"MenuContentImpl"));var Jv=J.forwardRef(pe(function(t,a){let{__scopeMenu:o,...r}=t;return(0,fe.jsx)(re.div,{...r,ref:a})},"MenuLabel")),Pl="MenuItem",df="menu.itemSelect",Qv=J.forwardRef(pe(function(t,a){let{disabled:o=!1,onSelect:r,...n}=t,s=J.useRef(null),l=Ml(Pl,t.__scopeMenu),i=mf(Pl,t.__scopeMenu),u=ae(a,s),c=J.useRef(!1),d=pe(()=>{let f=s.current;if(!o&&f){let g=new CustomEvent(df,{bubbles:!0,cancelable:!0});f.addEventListener(df,h=>r?.(h),{once:!0}),ur(f,g),g.defaultPrevented?c.current=!1:l.onClose()}},"handleSelect");return(0,fe.jsx)(ew,{...n,ref:u,disabled:o,onClick:z(t.onClick,d),onPointerDown:f=>{t.onPointerDown?.(f),c.current=!0},onPointerUp:z(t.onPointerUp,f=>{c.current||f.currentTarget?.click()}),onKeyDown:z(t.onKeyDown,f=>{o||f.target!==f.currentTarget||i.searchRef.current!==""&&f.key===" "||Sl.includes(f.key)&&(f.currentTarget.click(),f.preventDefault())})})},"MenuItem")),ew=J.forwardRef(pe(function(t,a){let{__scopeMenu:o,disabled:r=!1,textValue:n,...s}=t,l=mf(Pl,o),i=ff(o),u=J.useRef(null),c=ae(a,u),[d,f]=J.useState(!1),[g,h]=J.useState("");return J.useEffect(()=>{let p=u.current;p&&h((p.textContent??"").trim())},[s.children]),(0,fe.jsx)(Rl.ItemSlot,{scope:o,disabled:r,textValue:n??g,children:(0,fe.jsx)(uf,{asChild:!0,...i,focusable:!r,children:(0,fe.jsx)(re.div,{role:"menuitem","data-highlighted":d?"":void 0,"aria-disabled":r||void 0,"data-disabled":r?"":void 0,...s,ref:c,onPointerMove:z(t.onPointerMove,Fn(p=>{r?l.onItemLeave(p):(l.onItemEnter(p),p.defaultPrevented||p.currentTarget.focus({preventScroll:!0}))})),onPointerLeave:z(t.onPointerLeave,Fn(p=>l.onItemLeave(p))),onFocus:z(t.onFocus,()=>f(!0)),onBlur:z(t.onBlur,()=>f(!1))})})})},"MenuItemImpl"));var tw="MenuRadioGroup",[tS,aS]=Ha(tw,{value:void 0,onValueChange:pe(()=>{},"onValueChange")});var aw="MenuItemIndicator",[oS,rS]=Ha(aw,{checked:!1});var ow=J.forwardRef(pe(function(t,a){let{__scopeMenu:o,...r}=t;return(0,fe.jsx)(re.div,{role:"separator","aria-orientation":"horizontal",...r,ref:a})},"MenuSeparator"));var rw="MenuSub",[nS,sS]=Ha(rw);function hf(e){return e?"open":"closed"}pe(hf,"getOpenState");function xf(e){return e==="indeterminate"}pe(xf,"isIndeterminate");function nw(e){return xf(e)?"indeterminate":e?"checked":"unchecked"}pe(nw,"getCheckedState");function vf(e){let t=document.activeElement;for(let a of e)if(a===t||(a.focus(),document.activeElement!==t))return}pe(vf,"focusFirst");function wf(e,t){return e.map((a,o)=>e[(t+o)%e.length])}pe(wf,"wrapArray");function bf(e,t,a){let r=t.length>1&&Array.from(t).every(u=>u===t[0])?t[0]:t,n=a?e.indexOf(a):-1,s=wf(e,Math.max(n,0));r.length===1&&(s=s.filter(u=>u!==a));let i=s.find(u=>u.toLowerCase().startsWith(r.toLowerCase()));return i!==a?i:void 0}pe(bf,"getNextMatch");function Cf(e,t){let{x:a,y:o}=e,r=!1;for(let n=0,s=t.length-1;n<t.length;s=n++){let l=t[n],i=t[s],u=l.x,c=l.y,d=i.x,f=i.y;c>o!=f>o&&a<(d-u)*(o-c)/(f-c)+u&&(r=!r)}return r}pe(Cf,"isPointInPolygon");function Lf(e,t){if(!t)return!1;let a={x:e.clientX,y:e.clientY};return Cf(a,t)}pe(Lf,"isPointerInGraceArea");function Fn(e){return t=>t.pointerType==="mouse"?e(t):void 0}pe(Fn,"whenMouse");var yf=zv,If=Vv,Sf=jv,Rf=Xv;var Pf=Jv,Df=Qv;var kf=ow;var Ot=require("react/jsx-runtime"),lw=Object.defineProperty,qa=(e,t)=>lw(e,"name",{value:t,configurable:!0}),Al="DropdownMenu",[iw,yS]=_e(Al,[Dl]),za=Dl(),[uw,Mf]=iw(Al),dw=qa(e=>{let{__scopeDropdownMenu:t,children:a,dir:o,open:r,defaultOpen:n,onOpenChange:s,modal:l=!0}=e,i=za(t),u=yt.useRef(null),[c,d]=Dt({prop:r,defaultProp:n??!1,onChange:s,caller:Al});return(0,Ot.jsx)(uw,{scope:t,triggerId:ot(),triggerRef:u,contentId:ot(),open:c,onOpenChange:d,onOpenToggle:yt.useCallback(()=>d(f=>!f),[d]),modal:l,children:(0,Ot.jsx)(yf,{...i,open:c,onOpenChange:d,dir:o,modal:l,children:a})})},"DropdownMenu"),cw="DropdownMenuTrigger",fw=yt.forwardRef(qa(function(t,a){let{__scopeDropdownMenu:o,disabled:r=!1,...n}=t,s=Mf(cw,o),l=za(o),i=ae(a,s.triggerRef);return(0,Ot.jsx)(If,{asChild:!0,...l,children:(0,Ot.jsx)(re.button,{type:"button",id:s.triggerId,"aria-haspopup":"menu","aria-expanded":s.open,"aria-controls":s.open?s.contentId:void 0,"data-state":s.open?"open":"closed","data-disabled":r?"":void 0,disabled:r,...n,ref:i,onPointerDown:z(t.onPointerDown,u=>{!r&&u.button===0&&u.ctrlKey===!1&&(s.onOpenToggle(),s.open||u.preventDefault())}),onKeyDown:z(t.onKeyDown,u=>{r||(["Enter"," "].includes(u.key)&&s.onOpenToggle(),u.key==="ArrowDown"&&s.onOpenChange(!0),["Enter"," ","ArrowDown"].includes(u.key)&&u.preventDefault())})})})},"DropdownMenuTrigger")),pw=qa(e=>{let{__scopeDropdownMenu:t,...a}=e,o=za(t);return(0,Ot.jsx)(Sf,{...o,...a})},"DropdownMenuPortal"),mw="DropdownMenuContent",gw=yt.forwardRef(qa(function(t,a){let{__scopeDropdownMenu:o,...r}=t,n=Mf(mw,o),s=za(o),l=yt.useRef(!1);return(0,Ot.jsx)(Rf,{id:n.contentId,"aria-labelledby":n.triggerId,...s,...r,ref:a,onCloseAutoFocus:z(t.onCloseAutoFocus,i=>{l.current||n.triggerRef.current?.focus(),l.current=!1,i.preventDefault()}),onInteractOutside:z(t.onInteractOutside,i=>{let u=i.detail.originalEvent,c=u.button===0&&u.ctrlKey===!0,d=u.button===2||c;(!n.modal||d)&&(l.current=!0)}),style:{...t.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}})},"DropdownMenuContent"));var hw=yt.forwardRef(qa(function(t,a){let{__scopeDropdownMenu:o,...r}=t,n=za(o);return(0,Ot.jsx)(Pf,{...n,...r,ref:a})},"DropdownMenuLabel")),xw=yt.forwardRef(qa(function(t,a){let{__scopeDropdownMenu:o,...r}=t,n=za(o);return(0,Ot.jsx)(Df,{...n,...r,ref:a})},"DropdownMenuItem"));var vw=yt.forwardRef(qa(function(t,a){let{__scopeDropdownMenu:o,...r}=t,n=za(o);return(0,Ot.jsx)(kf,{...n,...r,ref:a})},"DropdownMenuSeparator"));var Af=dw,Tf=fw,Ef=pw,Tl=gw;var El=hw,Ol=xw;var Fl=vw;var Do=require("react/jsx-runtime"),Sr=Af,Rr=Tf;var ko=Ir.forwardRef(({className:e,sideOffset:t=4,...a},o)=>(0,Do.jsx)(Ef,{children:(0,Do.jsx)(Tl,{ref:o,sideOffset:t,className:ee("z-50 min-w-[8rem] overflow-hidden rounded-lg border bg-popover p-1 text-popover-foreground shadow-md data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95",e),...a})}));ko.displayName=Tl.displayName;var Wt=Ir.forwardRef(({className:e,inset:t,...a},o)=>(0,Do.jsx)(Ol,{ref:o,className:ee("relative flex cursor-default select-none items-center gap-2 rounded-md px-2 py-1.5 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",t&&"pl-8",e),...a}));Wt.displayName=Ol.displayName;var bw=Ir.forwardRef(({className:e,inset:t,...a},o)=>(0,Do.jsx)(El,{ref:o,className:ee("px-2 py-1.5 text-sm font-semibold",t&&"pl-8",e),...a}));bw.displayName=El.displayName;var Cw=Ir.forwardRef(({className:e,...t},a)=>(0,Do.jsx)(Fl,{ref:a,className:ee("-mx-1 my-1 h-px bg-muted",e),...t}));Cw.displayName=Fl.displayName;var Of=q(require("react"),1);var Ff=require("react/jsx-runtime"),jt=Of.forwardRef(({className:e,type:t,...a},o)=>(0,Ff.jsx)("input",{type:t,className:ee("flex h-9 w-full rounded-md border border-input bg-transparent px-3 py-1 text-sm shadow-sm transition-colors file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50",e),ref:o,...a}));jt.displayName="Input";var _f=q(require("react"),1);var Bf=q(require("react"),1);var Nf=require("react/jsx-runtime"),Lw=Object.defineProperty,yw=(e,t)=>Lw(e,"name",{value:t,configurable:!0}),Iw=Bf.forwardRef(yw(function(t,a){return(0,Nf.jsx)(re.label,{...t,ref:a,onMouseDown:o=>{o.target.closest("button, input, select, textarea")||(t.onMouseDown?.(o),!o.defaultPrevented&&o.detail>1&&o.preventDefault())}})},"Label")),Bl=Iw;var Uf=require("react/jsx-runtime"),Va=_f.forwardRef(({className:e,...t},a)=>(0,Uf.jsx)(Bl,{ref:a,className:ee("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70",e),...t}));Va.displayName=Bl.displayName;var ca=q(require("react"),1);var A=q(require("react"),1),Ul=q(require("react-dom"),1);var Rw=Object.defineProperty,Pw=(e,t)=>Rw(e,"name",{value:t,configurable:!0});function Nn(e,[t,a]){return Math.min(a,Math.max(t,e))}Pw(Nn,"clamp");var _n=q(require("react"),1),Dw=Object.defineProperty,kw=(e,t)=>Dw(e,"name",{value:t,configurable:!0});function Nl(e){let t=_n.useRef({value:e,previous:e});return _n.useMemo(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}kw(Nl,"usePrevious");var Mw=q(require("react"),1);var Aw=require("react/jsx-runtime");var Hf=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"});var V=require("react/jsx-runtime"),Tw=Object.defineProperty,se=(e,t)=>Tw(e,"name",{value:t,configurable:!0}),Ew=[" ","Enter","ArrowUp","ArrowDown"],Ow=[" ","Enter"],Mo="Select",[Hn,qn,Fw]=Aa(Mo),[Wa,oR]=_e(Mo,[Fw,Po]),Hl=Po(),[Bw,da]=Wa(Mo),[Nw,_w]=Wa(Mo);function Wf(e){let{__scopeSelect:t,children:a,open:o,defaultOpen:r,onOpenChange:n,value:s,defaultValue:l,onValueChange:i,dir:u,name:c,autoComplete:d,disabled:f,required:g,form:h,internal_do_not_use_render:p}=e,m=Hl(t),[x,w]=A.useState(null),[v,b]=A.useState(null),[C,L]=A.useState(!1),I=Ta(u),[S,P]=Dt({prop:o,defaultProp:r??!1,onChange:n,caller:Mo}),[E,M]=Dt({prop:s,defaultProp:l,onChange:i,caller:Mo}),D=A.useRef(null),F=A.useRef(E);A.useEffect(()=>{let Q=h?x?.ownerDocument.getElementById(h):x?.form;if(Q instanceof HTMLFormElement){let ie=se(()=>M(F.current),"reset");return Q.addEventListener("reset",ie),()=>Q.removeEventListener("reset",ie)}},[h,x,M]);let U=x?!!h||!!x.closest("form"):!0,[Z,W]=A.useState(new Set),O=ot(),B=Array.from(Z).map(Q=>Q.props.value).join(";"),H=A.useCallback(Q=>{W(ie=>new Set(ie).add(Q))},[]),T=A.useCallback(Q=>{W(ie=>{let ve=new Set(ie);return ve.delete(Q),ve})},[]),le={required:g,trigger:x,onTriggerChange:w,valueNode:v,onValueNodeChange:b,valueNodeHasChildren:C,onValueNodeHasChildrenChange:L,contentId:O,value:E,onValueChange:M,open:S,onOpenChange:P,dir:I,triggerPointerDownPosRef:D,disabled:f,name:c,autoComplete:d,form:h,nativeOptions:Z,nativeSelectKey:B,isFormControl:U};return(0,V.jsx)(Mn,{...m,children:(0,V.jsx)(Bw,{scope:t,...le,children:(0,V.jsx)(Hn.Provider,{scope:t,children:(0,V.jsx)(Nw,{scope:t,onNativeOptionAdd:H,onNativeOptionRemove:T,children:ap(p)?p(le):a})})})})}se(Wf,"SelectProvider");var jf=se(e=>{let{__scopeSelect:t,children:a,...o}=e;return(0,V.jsx)(Wf,{__scopeSelect:t,...o,internal_do_not_use_render:({isFormControl:r})=>(0,V.jsxs)(V.Fragment,{children:[a,r?(0,V.jsx)(tb,{__scopeSelect:t}):null]})})},"Select"),Uw="SelectTrigger",ql=A.forwardRef(se(function(t,a){let{__scopeSelect:o,disabled:r=!1,...n}=t,s=Hl(o),l=da(Uw,o),i=l.disabled||r,u=ae(a,l.onTriggerChange),c=qn(o),d=A.useRef("touch"),[f,g,h]=$l(m=>{let x=c().filter(b=>!b.disabled),w=x.find(b=>b.value===l.value),v=Yl(x,m,w);v!==void 0&&l.onValueChange(v.value)}),p=se(m=>{i||(l.onOpenChange(!0),h()),m&&(l.triggerPointerDownPosRef.current={x:Math.round(m.pageX),y:Math.round(m.pageY)})},"handleOpen");return(0,V.jsx)(An,{asChild:!0,...s,children:(0,V.jsx)(re.button,{type:"button",role:"combobox","aria-controls":l.open?l.contentId:void 0,"aria-expanded":l.open,"aria-required":l.required,"aria-autocomplete":"none",dir:l.dir,"data-state":l.open?"open":"closed",disabled:i,"data-disabled":i?"":void 0,"data-placeholder":Pr(l.value)?"":void 0,...n,ref:u,onClick:z(n.onClick,m=>{m.currentTarget.focus(),d.current!=="mouse"&&p(m)}),onPointerDown:z(n.onPointerDown,m=>{d.current=m.pointerType;let x=m.target;x.hasPointerCapture(m.pointerId)&&x.releasePointerCapture(m.pointerId),m.button===0&&m.ctrlKey===!1&&m.pointerType==="mouse"&&(p(m),m.preventDefault())}),onKeyDown:z(n.onKeyDown,m=>{let x=f.current!=="";!(m.ctrlKey||m.altKey||m.metaKey)&&m.key.length===1&&g(m.key),!(x&&m.key===" ")&&Ew.includes(m.key)&&(p(),m.preventDefault())})})})},"SelectTrigger")),Hw="SelectValue",Kf=A.forwardRef(se(function(t,a){let{__scopeSelect:o,className:r,style:n,children:s,placeholder:l="",...i}=t,u=da(Hw,o),{onValueNodeHasChildrenChange:c}=u,d=s!==void 0,f=ae(a,u.onValueNodeChange);ue(()=>{c(d)},[c,d]);let g=Pr(u.value);return(0,V.jsx)(re.span,{...i,asChild:g?!1:i.asChild,ref:f,style:{pointerEvents:"none"},children:(0,V.jsx)(A.Fragment,{children:g?l:s},g?"placeholder":"value")})},"SelectValue")),Xf=A.forwardRef(se(function(t,a){let{__scopeSelect:o,children:r,...n}=t;return(0,V.jsx)(re.span,{"aria-hidden":!0,...n,ref:a,children:r||"\u25BC"})},"SelectIcon")),qw="SelectPortal",[zw,Vw]=Wa(qw,{forceMount:void 0}),$f=se(e=>{let{__scopeSelect:t,forceMount:a,...o}=e;return(0,V.jsx)(zw,{scope:e.__scopeSelect,forceMount:a,children:(0,V.jsx)(mo,{asChild:!0,...o})})},"SelectPortal"),Ga="SelectContent",zl=A.forwardRef(se(function(t,a){let o=Vw(Ga,t.__scopeSelect),{forceMount:r=o.forceMount,...n}=t,s=da(Ga,t.__scopeSelect),[l,i]=A.useState();return ue(()=>{i(new DocumentFragment)},[]),(0,V.jsx)(zt,{present:r||s.open,children:({present:u})=>u?(0,V.jsx)(jw,{...n,ref:a}):(0,V.jsx)(Gw,{...n,fragment:l})})},"SelectContent")),Gw=A.forwardRef(se(function(t,a){let{__scopeSelect:o,children:r,fragment:n}=t;return n?Ul.createPortal((0,V.jsx)(Yf,{scope:o,children:(0,V.jsx)(Hn.Slot,{scope:o,children:(0,V.jsx)("div",{ref:a,children:r})})}),n):null},"SelectContentFragment")),It=10,[Yf,ja]=Wa(Ga),Ww=Ve("SelectContent.RemoveScroll"),jw=A.forwardRef(se(function(t,a){let{__scopeSelect:o}=t,{position:r="item-aligned",onCloseAutoFocus:n,onEscapeKeyDown:s,onPointerDownOutside:l,side:i,sideOffset:u,align:c,alignOffset:d,arrowPadding:f,collisionBoundary:g,collisionPadding:h,sticky:p,hideWhenDetached:m,avoidCollisions:x,...w}=t,v=da(Ga,o),[b,C]=A.useState(null),[L,I]=A.useState(null),S=ae(a,C),[P,E]=A.useState(null),[M,D]=A.useState(null),F=qn(o),[U,Z]=A.useState(!1),W=A.useRef(!1);A.useEffect(()=>{if(b)return Co(b)},[b]),na();let O=A.useCallback(k=>{let[X,..._]=F().map(oe=>oe.ref.current),[$]=_.slice(-1),Y=document.activeElement;for(let oe of k)if(oe===Y||(oe?.scrollIntoView({block:"nearest"}),oe===X&&L&&(L.scrollTop=0),oe===$&&L&&(L.scrollTop=L.scrollHeight),oe?.focus(),document.activeElement!==Y))return},[F,L]),B=A.useCallback(()=>O([P,b]),[O,P,b]);A.useEffect(()=>{U&&B()},[U,B]);let{onOpenChange:H,triggerPointerDownPosRef:T}=v;A.useEffect(()=>{if(b){let k={x:0,y:0},X=se($=>{k={x:Math.abs(Math.round($.pageX)-(T.current?.x??0)),y:Math.abs(Math.round($.pageY)-(T.current?.y??0))}},"handlePointerMove"),_=se($=>{k.x<=10&&k.y<=10?$.preventDefault():$.composedPath().includes(b)||H(!1),document.removeEventListener("pointermove",X),T.current=null},"handlePointerUp");return T.current!==null&&(document.addEventListener("pointermove",X),document.addEventListener("pointerup",_,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",X),document.removeEventListener("pointerup",_,{capture:!0})}}},[b,H,T]),A.useEffect(()=>{let k=se(()=>H(!1),"close");return window.addEventListener("blur",k),window.addEventListener("resize",k),()=>{window.removeEventListener("blur",k),window.removeEventListener("resize",k)}},[H]);let[le,Q]=$l(k=>{let X=F().filter(Y=>!Y.disabled),_=X.find(Y=>Y.ref.current===document.activeElement),$=Yl(X,k,_);$&&setTimeout(()=>$.ref.current?.focus())}),ie=A.useCallback((k,X,_)=>{let $=!W.current&&!_;(v.value!==void 0&&v.value===X||$)&&(E(k),$&&(W.current=!0))},[v.value]),ve=A.useCallback(()=>b?.focus(),[b]),R=A.useCallback((k,X,_)=>{let $=!W.current&&!_;(v.value!==void 0&&v.value===X||$)&&D(k)},[v.value]),N=r==="popper"?qf:Kw,G=N===qf?{side:i,sideOffset:u,align:c,alignOffset:d,arrowPadding:f,collisionBoundary:g,collisionPadding:h,sticky:p,hideWhenDetached:m,avoidCollisions:x}:{};return(0,V.jsx)(Yf,{scope:o,content:b,viewport:L,onViewportChange:I,itemRefCallback:ie,selectedItem:P,onItemLeave:ve,itemTextRefCallback:R,focusSelectedItem:B,selectedItemText:M,position:r,isPositioned:U,searchRef:le,children:(0,V.jsx)(Sa,{as:Ww,allowPinchZoom:!0,children:(0,V.jsx)(po,{asChild:!0,trapped:v.open,onMountAutoFocus:k=>{k.preventDefault()},onUnmountAutoFocus:z(n,k=>{v.trigger?.focus({preventScroll:!0}),k.preventDefault()}),children:(0,V.jsx)(fo,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:s,onPointerDownOutside:l,onFocusOutside:k=>k.preventDefault(),onDismiss:()=>v.onOpenChange(!1),children:(0,V.jsx)(N,{role:"listbox",id:v.contentId,"data-state":v.open?"open":"closed",dir:v.dir,onContextMenu:k=>k.preventDefault(),...w,...G,onPlaced:()=>Z(!0),ref:S,style:{display:"flex",flexDirection:"column",outline:"none",...w.style},onKeyDown:z(w.onKeyDown,k=>{let X=k.ctrlKey||k.altKey||k.metaKey;if(k.key==="Tab"&&k.preventDefault(),!X&&k.key.length===1&&Q(k.key),["ArrowUp","ArrowDown","Home","End"].includes(k.key)){let $=F().filter(Y=>!Y.disabled).map(Y=>Y.ref.current);if(["ArrowUp","End"].includes(k.key)&&($=$.slice().reverse()),["ArrowUp","ArrowDown"].includes(k.key)){let Y=k.target,oe=$.indexOf(Y);$=$.slice(oe+1)}setTimeout(()=>O($)),k.preventDefault()}})})})})})})},"SelectContentImpl")),Kw=A.forwardRef(se(function(t,a){let{__scopeSelect:o,onPlaced:r,...n}=t,s=da(Ga,o),l=ja(Ga,o),[i,u]=A.useState(null),[c,d]=A.useState(null),f=ae(a,d),g=qn(o),h=A.useRef(!1),p=A.useRef(!0),{viewport:m,selectedItem:x,selectedItemText:w,focusSelectedItem:v}=l,b=A.useCallback(()=>{if(s.trigger&&s.valueNode&&i&&c&&m&&x&&w){let S=s.trigger.getBoundingClientRect(),P=c.getBoundingClientRect(),E=s.valueNode.getBoundingClientRect(),M=w.getBoundingClientRect();if(s.dir!=="rtl"){let Y=M.left-P.left,oe=E.left-Y,we=S.left-oe,Pe=S.width+we,St=Math.max(Pe,P.width),$a=window.innerWidth-It,Ya=Nn(oe,[It,Math.max(It,$a-St)]);i.style.minWidth=Pe+"px",i.style.left=Ya+"px"}else{let Y=P.right-M.right,oe=window.innerWidth-E.right-Y,we=window.innerWidth-S.right-oe,Pe=S.width+we,St=Math.max(Pe,P.width),$a=window.innerWidth-It,Ya=Nn(oe,[It,Math.max(It,$a-St)]);i.style.minWidth=Pe+"px",i.style.right=Ya+"px"}let D=g(),F=window.innerHeight-It*2,U=m.scrollHeight,Z=window.getComputedStyle(c),W=parseInt(Z.borderTopWidth,10),O=parseInt(Z.paddingTop,10),B=parseInt(Z.borderBottomWidth,10),H=parseInt(Z.paddingBottom,10),T=W+O+U+H+B,le=Math.min(x.offsetHeight*5,T),Q=window.getComputedStyle(m),ie=parseInt(Q.paddingTop,10),ve=parseInt(Q.paddingBottom,10),R=S.top+S.height/2-It,N=F-R,G=x.offsetHeight/2,k=x.offsetTop+G,X=W+O+k,_=T-X;if(X<=R){let Y=D.length>0&&x===D[D.length-1].ref.current;i.style.bottom="0px";let oe=c.clientHeight-m.offsetTop-m.offsetHeight,we=Math.max(N,G+(Y?ve:0)+oe+B),Pe=X+we;i.style.height=Pe+"px"}else{let Y=D.length>0&&x===D[0].ref.current;i.style.top="0px";let we=Math.max(R,W+m.offsetTop+(Y?ie:0)+G)+_;i.style.height=we+"px",m.scrollTop=X-R+m.offsetTop}i.style.margin=`${It}px 0`,i.style.minHeight=le+"px",i.style.maxHeight=F+"px",r?.(),requestAnimationFrame(()=>h.current=!0)}},[g,s.trigger,s.valueNode,i,c,m,x,w,s.dir,r]);ue(()=>b(),[b]);let[C,L]=A.useState();ue(()=>{c&&L(window.getComputedStyle(c).zIndex)},[c]);let I=A.useCallback(S=>{S&&p.current===!0&&(b(),v?.(),p.current=!1)},[b,v]);return(0,V.jsx)(Xw,{scope:o,contentWrapper:i,shouldExpandOnScrollRef:h,onScrollButtonChange:I,children:(0,V.jsx)("div",{ref:u,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:C},children:(0,V.jsx)(re.div,{...n,ref:f,style:{boxSizing:"border-box",maxHeight:"100%",...n.style}})})})},"SelectItemAlignedPosition")),qf=A.forwardRef(se(function(t,a){let{__scopeSelect:o,align:r="start",collisionPadding:n=It,...s}=t,l=Hl(o);return(0,V.jsx)(Tn,{...l,...s,ref:a,align:r,collisionPadding:n,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)"}})},"SelectPopperPosition")),[Xw,Vl]=Wa(Ga,{}),zf="SelectViewport",Zf=A.forwardRef(se(function(t,a){let{__scopeSelect:o,nonce:r,...n}=t,s=ja(zf,o),l=Vl(zf,o),i=ae(a,s.onViewportChange),u=A.useRef(0);return(0,V.jsxs)(V.Fragment,{children:[(0,V.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}),(0,V.jsx)(Hn.Slot,{scope:o,children:(0,V.jsx)(re.div,{"data-radix-select-viewport":"",role:"presentation",...n,ref:i,style:{position:"relative",flex:1,overflow:"hidden auto",...n.style},onScroll:z(n.onScroll,c=>{let d=c.currentTarget,{contentWrapper:f,shouldExpandOnScrollRef:g}=l;if(g?.current&&f){let h=Math.abs(u.current-d.scrollTop);if(h>0){let p=window.innerHeight-It*2,m=parseFloat(f.style.minHeight),x=parseFloat(f.style.height),w=Math.max(m,x);if(w<p){let v=w+h,b=Math.min(p,v),C=v-b;f.style.height=b+"px",f.style.bottom==="0px"&&(d.scrollTop=C>0?C:0,f.style.justifyContent="flex-end")}}}u.current=d.scrollTop})})})]})},"SelectViewport")),$w="SelectGroup",[rR,Yw]=Wa($w);var Zw="SelectLabel",Gl=A.forwardRef(se(function(t,a){let{__scopeSelect:o,...r}=t,n=Yw(Zw,o);return(0,V.jsx)(re.div,{id:n.id,...r,ref:a})},"SelectLabel")),_l="SelectItem",[Jw,Jf]=Wa(_l),Wl=A.forwardRef(se(function(t,a){let{__scopeSelect:o,value:r,disabled:n=!1,textValue:s,...l}=t,i=da(_l,o),u=ja(_l,o),c=i.value===r,[d,f]=A.useState(s??""),[g,h]=A.useState(!1),p=Te(b=>u.itemRefCallback?.(b,r,n)),m=ae(a,p),x=ot(),w=A.useRef("touch"),v=se(()=>{n||(i.onValueChange(r),i.onOpenChange(!1))},"handleSelect");return(0,V.jsx)(Jw,{scope:o,value:r,disabled:n,textId:x,isSelected:c,onItemTextChange:A.useCallback(b=>{f(C=>C||(b?.textContent??"").trim())},[]),children:(0,V.jsx)(Hn.ItemSlot,{scope:o,value:r,disabled:n,textValue:d,children:(0,V.jsx)(re.div,{role:"option","aria-labelledby":x,"data-highlighted":g?"":void 0,"aria-selected":c&&g,"data-state":c?"checked":"unchecked","aria-disabled":n||void 0,"data-disabled":n?"":void 0,tabIndex:n?void 0:-1,...l,ref:m,onFocus:z(l.onFocus,()=>h(!0)),onBlur:z(l.onBlur,()=>h(!1)),onClick:z(l.onClick,()=>{w.current!=="mouse"&&v()}),onPointerUp:z(l.onPointerUp,()=>{w.current==="mouse"&&v()}),onPointerDown:z(l.onPointerDown,b=>{w.current=b.pointerType}),onPointerMove:z(l.onPointerMove,b=>{w.current=b.pointerType,n?u.onItemLeave?.():w.current==="mouse"&&b.currentTarget.focus({preventScroll:!0})}),onPointerLeave:z(l.onPointerLeave,b=>{b.currentTarget===document.activeElement&&u.onItemLeave?.()}),onKeyDown:z(l.onKeyDown,b=>{n||b.target!==b.currentTarget||u.searchRef?.current!==""&&b.key===" "||(Ow.includes(b.key)&&v(),b.key===" "&&b.preventDefault())})})})})},"SelectItem")),Un="SelectItemText",Qf=A.forwardRef(se(function(t,a){let{__scopeSelect:o,className:r,style:n,...s}=t,l=da(Un,o),i=ja(Un,o),u=Jf(Un,o),c=_w(Un,o),[d,f]=A.useState(null),g=Te(v=>i.itemTextRefCallback?.(v,u.value,u.disabled)),h=ae(a,f,u.onItemTextChange,g),p=d?.textContent,m=A.useMemo(()=>(0,V.jsx)("option",{value:u.value,disabled:u.disabled,children:p},u.value),[u.disabled,u.value,p]),{onNativeOptionAdd:x,onNativeOptionRemove:w}=c;return ue(()=>(x(m),()=>w(m)),[x,w,m]),(0,V.jsxs)(V.Fragment,{children:[(0,V.jsx)(re.span,{id:u.textId,...s,ref:h}),u.isSelected&&l.valueNode&&!l.valueNodeHasChildren&&!Pr(l.value)?Ul.createPortal(s.children,l.valueNode):null]})},"SelectItemText")),Qw="SelectItemIndicator",ep=A.forwardRef(se(function(t,a){let{__scopeSelect:o,...r}=t;return Jf(Qw,o).isSelected?(0,V.jsx)(re.span,{"aria-hidden":!0,...r,ref:a}):null},"SelectItemIndicator")),Vf="SelectScrollUpButton",jl=A.forwardRef(se(function(t,a){let o=ja(Vf,t.__scopeSelect),r=Vl(Vf,t.__scopeSelect),[n,s]=A.useState(!1),l=ae(a,r.onScrollButtonChange);return ue(()=>{if(o.viewport&&o.isPositioned){let u=function(){let d=c.scrollTop>0;s(d)};var i=u;se(u,"handleScroll");let c=o.viewport;return u(),c.addEventListener("scroll",u),()=>c.removeEventListener("scroll",u)}},[o.viewport,o.isPositioned]),n?(0,V.jsx)(tp,{...t,ref:l,onAutoScroll:()=>{let{viewport:i,selectedItem:u}=o;i&&u&&(i.scrollTop=i.scrollTop-u.offsetHeight)}}):null},"SelectScrollUpButton")),Gf="SelectScrollDownButton",Kl=A.forwardRef(se(function(t,a){let o=ja(Gf,t.__scopeSelect),r=Vl(Gf,t.__scopeSelect),[n,s]=A.useState(!1),l=ae(a,r.onScrollButtonChange);return ue(()=>{if(o.viewport&&o.isPositioned){let u=function(){let d=c.scrollHeight-c.clientHeight,f=Math.ceil(c.scrollTop)<d;s(f)};var i=u;se(u,"handleScroll");let c=o.viewport;return u(),c.addEventListener("scroll",u),()=>c.removeEventListener("scroll",u)}},[o.viewport,o.isPositioned]),n?(0,V.jsx)(tp,{...t,ref:l,onAutoScroll:()=>{let{viewport:i,selectedItem:u}=o;i&&u&&(i.scrollTop=i.scrollTop+u.offsetHeight)}}):null},"SelectScrollDownButton")),tp=A.forwardRef(se(function(t,a){let{__scopeSelect:o,onAutoScroll:r,...n}=t,s=ja("SelectScrollButton",o),l=A.useRef(null),i=qn(o),u=A.useCallback(()=>{l.current!==null&&(window.clearInterval(l.current),l.current=null)},[]);return A.useEffect(()=>()=>u(),[u]),ue(()=>{i().find(d=>d.ref.current===document.activeElement)?.ref.current?.scrollIntoView({block:"nearest"})},[i]),(0,V.jsx)(re.div,{"aria-hidden":!0,...n,ref:a,style:{flexShrink:0,...n.style},onPointerDown:z(n.onPointerDown,()=>{l.current===null&&(l.current=window.setInterval(r,50))}),onPointerMove:z(n.onPointerMove,()=>{s.onItemLeave?.(),l.current===null&&(l.current=window.setInterval(r,50))}),onPointerLeave:z(n.onPointerLeave,()=>{u()})})},"SelectScrollButtonImpl")),Xl=A.forwardRef(se(function(t,a){let{__scopeSelect:o,...r}=t;return(0,V.jsx)(re.div,{"aria-hidden":!0,...r,ref:a})},"SelectSeparator"));var eb="SelectBubbleInput",tb=A.forwardRef(se(function({__scopeSelect:t,...a},o){let r=da(eb,t),{value:n,onValueChange:s,required:l,disabled:i,name:u,autoComplete:c,form:d}=r,{nativeOptions:f,nativeSelectKey:g}=r,h=A.useRef(null),p=ae(o,h),m=n??"",x=Nl(m),w=Array.from(f).some(v=>(v.props.value??"")==="");return A.useEffect(()=>{let v=h.current;if(!v)return;let b=window.HTMLSelectElement.prototype,L=Object.getOwnPropertyDescriptor(b,"value").set;if(x!==m&&L){let I=new Event("change",{bubbles:!0});L.call(v,m),v.dispatchEvent(I)}},[x,m]),(0,V.jsxs)(re.select,{"aria-hidden":!0,required:l,tabIndex:-1,name:u,autoComplete:c,disabled:i,form:d,onChange:v=>s(v.target.value),...a,style:{...Hf,...a.style},ref:p,defaultValue:m,children:[Pr(n)&&!w?(0,V.jsx)("option",{value:""}):null,Array.from(f)]},g)},"SelectBubbleInput"));function ap(e){return typeof e=="function"}se(ap,"isFunction");function Pr(e){return e===""||e===void 0}se(Pr,"shouldShowPlaceholder");function $l(e){let t=Te(e),a=A.useRef(""),o=A.useRef(0),r=A.useCallback(s=>{let l=a.current+s;t(l),se((function i(u){a.current=u,window.clearTimeout(o.current),u!==""&&(o.current=window.setTimeout(()=>i(""),1e3))}),"updateSearch")(l)},[t]),n=A.useCallback(()=>{a.current="",window.clearTimeout(o.current)},[]);return A.useEffect(()=>()=>window.clearTimeout(o.current),[]),[a,r,n]}se($l,"useTypeaheadSearch");function Yl(e,t,a){let r=t.length>1&&Array.from(t).every(u=>u===t[0])?t[0]:t,n=a?e.indexOf(a):-1,s=op(e,Math.max(n,0));r.length===1&&(s=s.filter(u=>u!==a));let i=s.find(u=>u.textValue.toLowerCase().startsWith(r.toLowerCase()));return i!==a?i:void 0}se(Yl,"findNextItem");function op(e,t){return e.map((a,o)=>e[(t+o)%e.length])}se(op,"wrapArray");var ye=require("react/jsx-runtime"),Zl=jf;var Jl=Kf,zn=ca.forwardRef(({className:e,children:t,...a},o)=>(0,ye.jsxs)(ql,{ref:o,className:ee("flex h-9 w-full items-center justify-between whitespace-nowrap rounded-md border border-input bg-transparent px-3 py-2 text-sm shadow-sm ring-offset-background placeholder:text-muted-foreground focus:outline-none focus:ring-1 focus:ring-ring disabled:cursor-not-allowed disabled:opacity-50 [&>span]:line-clamp-1",e),...a,children:[t,(0,ye.jsx)(Xf,{asChild:!0,children:(0,ye.jsx)(no,{className:"h-4 w-4 opacity-50"})})]}));zn.displayName=ql.displayName;var rp=ca.forwardRef(({className:e,...t},a)=>(0,ye.jsx)(jl,{ref:a,className:ee("flex cursor-default items-center justify-center py-1",e),...t,children:(0,ye.jsx)(Yo,{className:"h-4 w-4"})}));rp.displayName=jl.displayName;var np=ca.forwardRef(({className:e,...t},a)=>(0,ye.jsx)(Kl,{ref:a,className:ee("flex cursor-default items-center justify-center py-1",e),...t,children:(0,ye.jsx)(no,{className:"h-4 w-4"})}));np.displayName=Kl.displayName;var Vn=ca.forwardRef(({className:e,children:t,position:a="popper",...o},r)=>(0,ye.jsx)($f,{children:(0,ye.jsxs)(zl,{ref:r,className:ee("relative z-50 max-h-96 min-w-[8rem] overflow-hidden rounded-md border bg-popover text-popover-foreground shadow-md data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",a==="popper"&&"data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",e),position:a,...o,children:[(0,ye.jsx)(rp,{}),(0,ye.jsx)(Zf,{className:ee("p-1",a==="popper"&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"),children:t}),(0,ye.jsx)(np,{})]})}));Vn.displayName=zl.displayName;var ob=ca.forwardRef(({className:e,...t},a)=>(0,ye.jsx)(Gl,{ref:a,className:ee("px-2 py-1.5 text-sm font-semibold",e),...t}));ob.displayName=Gl.displayName;var Ao=ca.forwardRef(({className:e,children:t,...a},o)=>(0,ye.jsxs)(Wl,{ref:o,className:ee("relative flex w-full cursor-default select-none items-center rounded-sm py-1.5 pl-2 pr-8 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e),...a,children:[(0,ye.jsx)("span",{className:"absolute right-2 flex h-3.5 w-3.5 items-center justify-center",children:(0,ye.jsx)(ep,{children:(0,ye.jsx)(aa,{className:"h-4 w-4"})})}),(0,ye.jsx)(Qf,{children:t})]}));Ao.displayName=Wl.displayName;var rb=ca.forwardRef(({className:e,...t},a)=>(0,ye.jsx)(Xl,{ref:a,className:ee("-mx-1 my-1 h-px bg-muted",e),...t}));rb.displayName=Xl.displayName;var sp=q(require("react"),1);var lp=require("react/jsx-runtime"),Ql=sp.forwardRef(({className:e,...t},a)=>(0,lp.jsx)("textarea",{className:ee("flex min-h-[60px] w-full rounded-md border border-input bg-transparent px-3 py-2 text-sm shadow-sm placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50",e),ref:a,...t}));Ql.displayName="Textarea";var Kt={high:{label:"P0",color:"#f87171"},medium:{label:"P1",color:"#fbbf24"},low:{label:"P2",color:"#38bdf8"}},Gn=["high","medium","low"],ip="#94a3b8";function up(e,t){return t?e.find(a=>a.name===t)?.color??ip:ip}var je=(e,t)=>e.replace(/\{(\w+)\}/g,(a,o)=>t[o]??""),ei=e=>e==="high"||e==="medium"||e==="low"?Kt[e].label:"";function dp(e,t){let a=e.meta||{},o=t("noValue"),r=e.from??null,n=e.to??null;switch(e.type){case"card_created":{let s=a.label??o,l=a.priority&&ei(a.priority)||o;return je(t("actCreated"),{column:a.column??"",label:s,priority:l})}case"card_moved":return je(t("actMoved"),{from:r??o,to:n??o});case"card_label_changed":return r==null&&n!=null?je(t("actLabelSet"),{to:n}):r!=null&&n==null?je(t("actLabelCleared"),{from:r}):je(t("actLabel"),{from:r??o,to:n??o});case"card_priority_changed":{let s=r?ei(r)||r:o,l=n?ei(n)||n:o;return r==null&&n!=null?je(t("actPrioritySet"),{to:l}):r!=null&&n==null?je(t("actPriorityCleared"),{from:s}):je(t("actPriority"),{from:s,to:l})}case"card_title_changed":return je(t("actTitle"),{from:r??o,to:n??o});case"card_note_changed":return t("actNote");case"card_deleted":return t("actDeleted");case"column_added":return je(t("actColumnAdded"),{column:a.column??""});case"column_renamed":return je(t("actColumnRenamed"),{from:r??o,to:n??o});case"column_deleted":return je(t("actColumnDeleted"),{column:a.column??""});case"label_added":return je(t("actLabelAdded"),{label:a.label??""});case"label_renamed":return je(t("actLabelRenamed"),{from:r??o,to:n??o});case"label_deleted":return je(t("actLabelDeleted"),{label:a.label??""});case"label_color_changed":return je(t("actLabelColor"),{label:a.label??"",from:r??o,to:n??o});default:return e.type}}var Wn=e=>String(e).padStart(2,"0");function cp(e){let t=new Date(e);return Number.isNaN(t.getTime())?e:`${t.getFullYear()}-${Wn(t.getMonth()+1)}-${Wn(t.getDate())} ${Wn(t.getHours())}:${Wn(t.getMinutes())}`}var mt=require("react/jsx-runtime");function fp({activities:e}){let t=Xe();if(e.length===0)return(0,mt.jsx)("p",{className:"text-xs text-muted-foreground",children:t("activityEmpty")});let a=[...e].reverse();return(0,mt.jsx)("ol",{className:"relative space-y-3.5 border-l border-[var(--dsw-alias-border-l2)] pl-4",children:a.map(o=>{let r=o.source==="agent";return(0,mt.jsxs)("li",{className:"relative",children:[(0,mt.jsx)("span",{className:`absolute -left-[21px] top-1.5 h-2 w-2 rounded-full ${r?"bg-sky-500":"bg-emerald-500"}`}),(0,mt.jsxs)("div",{className:"flex items-center gap-1.5 text-[11px] text-muted-foreground",children:[(0,mt.jsx)(Zo,{className:"h-3 w-3"}),(0,mt.jsx)("time",{className:"tabular-nums",children:cp(o.ts)}),(0,mt.jsx)("span",{children:"\xB7"}),(0,mt.jsx)("span",{className:`font-medium ${r?"text-sky-500":"text-emerald-500"}`,children:t(r?"actorAgent":"actorHuman")})]}),(0,mt.jsx)("p",{className:"mt-1 text-[13px] leading-snug text-foreground",children:dp(o,t)})]},o.id)})})}var j=require("react/jsx-runtime");function pp({open:e,card:t,labels:a,activities:o,onOpenChange:r,onSave:n,onDelete:s,onChatWithAgent:l}){let i=Xe(),[u,c]=(0,jn.useState)({id:"",title:"",note:"",label:"",priority:""});(0,jn.useEffect)(()=>{e&&c({id:t?.id??"",title:t?.title??"",note:t?.note??"",label:t?.label??"",priority:t?.priority??""})},[e,t]);let d=f=>c(g=>({...g,...f}));return(0,j.jsx)(yo,{open:e,onOpenChange:r,children:(0,j.jsxs)(Pa,{className:"sm:max-w-xl","aria-describedby":void 0,onOpenAutoFocus:f=>f.preventDefault(),children:[(0,j.jsx)(Da,{children:(0,j.jsx)(ka,{className:"sr-only",children:i(t?"editCard":"addCard")})}),(0,j.jsxs)("div",{className:"grid gap-4 py-2",children:[(0,j.jsxs)("div",{className:"grid gap-2",children:[(0,j.jsxs)(Va,{htmlFor:"card-title",className:"flex items-center justify-between",children:[(0,j.jsx)("span",{children:i("fieldTitle")}),t&&(0,j.jsxs)("span",{className:"text-[11px] font-medium text-muted-foreground",children:[i("fieldId"),": ",t.id]})]}),(0,j.jsx)(jt,{id:"card-title",value:u.title,placeholder:i("titlePlaceholder"),onChange:f=>d({title:f.target.value})})]}),(0,j.jsxs)("div",{className:"grid gap-2",children:[(0,j.jsx)(Va,{children:i("fieldLabel")}),(0,j.jsxs)(Zl,{value:u.label||"__none__",onValueChange:f=>d({label:f==="__none__"?"":f}),children:[(0,j.jsx)(zn,{children:(0,j.jsx)(Jl,{placeholder:i("noLabel")})}),(0,j.jsxs)(Vn,{children:[(0,j.jsx)(Ao,{value:"__none__",children:i("noLabel")}),a.map(f=>(0,j.jsx)(Ao,{value:f.name,children:f.name},f.name))]})]})]}),(0,j.jsxs)("div",{className:"grid gap-2",children:[(0,j.jsx)(Va,{children:i("fieldPriority")}),(0,j.jsxs)(Zl,{value:u.priority||"__none__",onValueChange:f=>d({priority:f==="__none__"?"":f}),children:[(0,j.jsx)(zn,{children:(0,j.jsx)(Jl,{placeholder:i("noPriority")})}),(0,j.jsxs)(Vn,{children:[(0,j.jsx)(Ao,{value:"__none__",children:i("noPriority")}),Gn.map(f=>{let g=Kt[f];return(0,j.jsx)(Ao,{value:f,children:(0,j.jsxs)("span",{className:"flex items-center gap-2",children:[(0,j.jsx)("span",{className:"h-2 w-2 rounded-full",style:{background:g.color}}),g.label]})},f)})]})]})]}),(0,j.jsxs)("div",{className:"grid gap-2",children:[(0,j.jsx)(Va,{htmlFor:"card-note",children:i("fieldNote")}),(0,j.jsx)(Ql,{id:"card-note",value:u.note,placeholder:i("notePlaceholder"),rows:5,onChange:f=>d({note:f.target.value})})]}),t&&(0,j.jsxs)("div",{className:"grid gap-2 rounded-xl border border-[var(--dsw-alias-border-l2)] p-3",children:[(0,j.jsx)(Va,{className:"text-xs text-muted-foreground",children:i("activityTitle")}),(0,j.jsx)("div",{className:"max-h-48 overflow-y-auto pr-1",children:(0,j.jsx)(fp,{activities:o})})]})]}),(0,j.jsxs)(gr,{children:[t&&s&&(0,j.jsxs)(Ae,{variant:"destructive",className:"mr-auto",onClick:()=>{s(t),r(!1)},children:[(0,j.jsx)(_t,{className:"h-4 w-4"}),i("delete")]}),(0,j.jsxs)(Sr,{children:[(0,j.jsx)(Rr,{asChild:!0,children:(0,j.jsxs)(Ae,{variant:"outline",disabled:!u.title.trim()&&!u.note.trim(),children:[(0,j.jsx)(tr,{className:"h-4 w-4"}),i("chatWithAgent")]})}),(0,j.jsxs)(ko,{align:"end",children:[(0,j.jsx)(Wt,{onClick:()=>{l(u,"current"),r(!1)},children:i("chatCurrentSession")}),(0,j.jsx)(Wt,{onClick:()=>{l(u,"new"),r(!1)},children:i("chatNewSession")})]})]}),(0,j.jsx)(Ae,{disabled:!u.title.trim(),onClick:()=>{n(u),r(!1)},children:i("save")})]})]})})}var mp=require("react/jsx-runtime"),nb=an("inline-flex items-center rounded-md border px-2.5 py-0.5 text-xs font-semibold transition-colors focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2",{variants:{variant:{default:"border-transparent bg-primary text-primary-foreground shadow",secondary:"border-transparent bg-secondary text-secondary-foreground",destructive:"border-transparent bg-destructive text-destructive-foreground shadow",outline:"text-foreground"}},defaultVariants:{variant:"default"}});function ti({className:e,variant:t,...a}){return(0,mp.jsx)("div",{className:ee(nb({variant:t}),e),...a})}var Ka=q(require("react"),1);var Xa=require("react/jsx-runtime"),Dr=Ka.forwardRef(({className:e,...t},a)=>(0,Xa.jsx)("div",{ref:a,className:ee("rounded-xl border bg-card text-card-foreground shadow",e),...t}));Dr.displayName="Card";var sb=Ka.forwardRef(({className:e,...t},a)=>(0,Xa.jsx)("div",{ref:a,className:ee("flex flex-col space-y-1.5 p-6",e),...t}));sb.displayName="CardHeader";var lb=Ka.forwardRef(({className:e,...t},a)=>(0,Xa.jsx)("div",{ref:a,className:ee("font-semibold leading-none tracking-tight",e),...t}));lb.displayName="CardTitle";var ib=Ka.forwardRef(({className:e,...t},a)=>(0,Xa.jsx)("div",{ref:a,className:ee("text-sm text-muted-foreground",e),...t}));ib.displayName="CardDescription";var kr=Ka.forwardRef(({className:e,...t},a)=>(0,Xa.jsx)("div",{ref:a,className:ee("p-6 pt-0",e),...t}));kr.displayName="CardContent";var ub=Ka.forwardRef(({className:e,...t},a)=>(0,Xa.jsx)("div",{ref:a,className:ee("flex items-center p-6 pt-0",e),...t}));ub.displayName="CardFooter";var Ft=require("react/jsx-runtime");function gp({card:e,labels:t,onOpen:a}){let{attributes:o,listeners:r,setNodeRef:n,transform:s,transition:l,isDragging:i}=Yr({id:e.id,data:{type:"card",cardId:e.id,columnId:e.columnId}}),u=e.priority?Kt[e.priority]:null,c=up(t,e.label);return(0,Ft.jsx)("div",{ref:n,style:{transform:tt.Transform.toString(s),transition:l},...o,...r,onClick:()=>a(e),className:ee("group cursor-grab touch-none select-none active:cursor-grabbing",i&&"opacity-40"),children:(0,Ft.jsx)(Dr,{className:"pointer-events-none rounded-xl border-[var(--dsw-alias-border-l2)] shadow-card transition-shadow duration-200 group-hover:shadow-float",children:(0,Ft.jsxs)(kr,{className:"p-3.5",children:[(e.label||u)&&(0,Ft.jsxs)("div",{className:"mb-1.5 flex items-center gap-1.5",children:[e.label&&(0,Ft.jsx)(ti,{variant:"secondary",className:"rounded-full px-2 py-0 text-[10.5px] font-medium leading-4",style:{background:c,color:"#0b1220"},children:e.label}),u&&(0,Ft.jsx)(ti,{variant:"secondary",className:"rounded-full px-2 py-0 text-[10.5px] font-medium leading-4",style:{background:u.color,color:"#0b1220"},children:u.label})]}),(0,Ft.jsx)("p",{className:"text-[13.5px] font-medium leading-snug tracking-tight break-words",children:e.title}),e.note&&(0,Ft.jsx)("p",{className:"mt-1.5 text-xs leading-relaxed text-muted-foreground line-clamp-3 whitespace-pre-wrap break-words",children:e.note})]})})})}var st=require("react/jsx-runtime");function hp({column:e,cards:t,labels:a,onAddCard:o,onOpenCard:r}){let{setNodeRef:n,isOver:s}=Gr({id:e.id,data:{type:"column"}}),l=Xe();return(0,st.jsxs)("div",{ref:n,className:ee("flex min-h-0 w-72 shrink-0 flex-col rounded-2xl border border-[var(--dsw-alias-border-l2)] bg-card shadow-column transition-colors",s&&"border-primary"),children:[(0,st.jsxs)("div",{className:"flex items-center gap-1.5 px-3 py-3",children:[(0,st.jsx)("h3",{className:"flex-1 truncate text-[13.5px] font-semibold tracking-tight",children:e.title}),(0,st.jsx)("span",{className:"rounded-full bg-secondary/70 px-1.5 py-0.5 text-[11px] font-medium text-muted-foreground",children:t.length})]}),(0,st.jsxs)("div",{className:"kan-scroll flex min-h-[4rem] flex-1 flex-col gap-2 overflow-y-auto px-2.5 pb-2.5",children:[(0,st.jsx)($r,{items:t.map(i=>i.id),strategy:Xr,children:t.map(i=>(0,st.jsx)(gp,{card:i,labels:a,onOpen:r},i.id))}),t.length===0&&(0,st.jsx)("p",{className:"py-5 text-center text-xs text-muted-foreground/70",children:l("emptyColumn")})]}),(0,st.jsx)("div",{className:"p-2.5 pt-1",children:(0,st.jsxs)(Ae,{variant:"ghost",size:"sm",className:"w-full justify-start rounded-xl text-muted-foreground hover:text-foreground",onClick:()=>o(e),children:[(0,st.jsx)(Nt,{className:"h-4 w-4"}),l("addCard")]})})]})}var Mr=require("react");var Ie=require("react/jsx-runtime");function db({column:e,value:t,onValueChange:a,onCommit:o,onDelete:r,canDelete:n}){let{attributes:s,listeners:l,setNodeRef:i,transform:u,transition:c}=Yr({id:e.id}),d=Xe();return(0,Ie.jsxs)("div",{ref:i,style:{transform:tt.Transform.toString(u),transition:c},className:"flex items-center gap-1.5",children:[(0,Ie.jsx)("button",{...s,...l,className:"shrink-0 cursor-grab touch-none rounded-md p-1 text-muted-foreground/60 hover:bg-accent hover:text-foreground","aria-label":d("dragSort"),children:(0,Ie.jsx)(Qo,{className:"h-4 w-4"})}),(0,Ie.jsx)(jt,{value:t,onChange:f=>a(f.target.value),onBlur:o,onKeyDown:f=>{f.key==="Enter"&&f.target.blur()}}),(0,Ie.jsx)(Ae,{variant:"ghost",size:"icon",className:"h-8 w-8 shrink-0 text-destructive","aria-label":d("delete"),disabled:!n,onClick:r,children:(0,Ie.jsx)(_t,{className:"h-4 w-4"})})]})}function xp({open:e,columns:t,onOpenChange:a,onReorder:o,onRename:r,onDelete:n,onAdd:s}){let l=Xe(),[i,u]=(0,Mr.useState)({}),[c,d]=(0,Mr.useState)(""),f=Ur(ro(ta,{activationConstraint:{distance:8}}),ro(ea,{coordinateGetter:Zr}));(0,Mr.useEffect)(()=>{e&&u(Object.fromEntries(t.map(p=>[p.id,p.title])))},[e,t]);let g=p=>{let m=(i[p]??"").trim(),x=t.find(w=>w.id===p);x&&m&&m!==x.title&&r(p,m)},h=p=>{let{active:m,over:x}=p;x&&m.id!==x.id&&o(String(m.id),String(x.id))};return(0,Ie.jsx)(yo,{open:e,onOpenChange:a,children:(0,Ie.jsxs)(Pa,{className:"sm:max-w-md",children:[(0,Ie.jsxs)(Da,{children:[(0,Ie.jsx)(ka,{children:l("columnEdit")}),(0,Ie.jsx)(hr,{children:l("columnEditDesc")})]}),(0,Ie.jsx)(Vr,{sensors:f,collisionDetection:Ni,onDragEnd:h,children:(0,Ie.jsx)($r,{items:t.map(p=>p.id),strategy:Xr,children:(0,Ie.jsx)("div",{className:"flex max-h-[60vh] flex-col gap-2 overflow-y-auto py-2",children:t.map(p=>(0,Ie.jsx)(db,{column:p,value:i[p.id]??p.title,onValueChange:m=>u(x=>({...x,[p.id]:m})),onCommit:()=>g(p.id),onDelete:()=>n(p.id),canDelete:t.length>1},p.id))})})}),(0,Ie.jsxs)("div",{className:"flex items-center gap-1.5",children:[(0,Ie.jsx)(jt,{value:c,placeholder:l("newColumnPlaceholder"),onChange:p=>d(p.target.value),onKeyDown:p=>{p.key==="Enter"&&c.trim()&&(s(c.trim()),d(""))}}),(0,Ie.jsxs)(Ae,{size:"sm",onClick:()=>{c.trim()&&(s(c.trim()),d(""))},children:[(0,Ie.jsx)(Nt,{className:"h-4 w-4"}),l("add")]})]})]})})}var To=require("react");var ke=require("react/jsx-runtime");function vp({open:e,labels:t,onOpenChange:a,onAdd:o,onUpdate:r,onDelete:n}){let s=Xe(),[l,i]=(0,To.useState)({}),[u,c]=(0,To.useState)(""),[d,f]=(0,To.useState)("#38bdf8");(0,To.useEffect)(()=>{e&&i(Object.fromEntries(t.map(h=>[h.name,{name:h.name,color:h.color}])))},[e,t]);let g=h=>{let p=l[h];if(!p)return;let m=t.find(w=>w.name===h),x=p.name.trim();m&&x&&(x!==h||p.color!==m.color)&&r(h,x,p.color)};return(0,ke.jsx)(yo,{open:e,onOpenChange:a,children:(0,ke.jsxs)(Pa,{className:"sm:max-w-md",children:[(0,ke.jsxs)(Da,{children:[(0,ke.jsx)(ka,{children:s("labelEdit")}),(0,ke.jsx)(hr,{children:s("labelEditDesc")})]}),(0,ke.jsx)("div",{className:"flex max-h-[60vh] flex-col gap-2 overflow-y-auto py-2",children:t.map(h=>{let p=l[h.name]??{name:h.name,color:h.color};return(0,ke.jsxs)("div",{className:"flex items-center gap-1.5",children:[(0,ke.jsx)("input",{type:"color",value:p.color,className:"h-8 w-8 shrink-0 cursor-pointer rounded-md border border-input bg-transparent p-0.5",onChange:m=>i(x=>({...x,[h.name]:{...p,color:m.target.value}})),onBlur:()=>g(h.name)}),(0,ke.jsx)(jt,{value:p.name,onChange:m=>i(x=>({...x,[h.name]:{...p,name:m.target.value}})),onBlur:()=>g(h.name),onKeyDown:m=>{m.key==="Enter"&&m.target.blur()}}),(0,ke.jsx)(Ae,{variant:"ghost",size:"icon",className:"h-8 w-8 shrink-0 text-destructive",onClick:()=>n(h.name),children:(0,ke.jsx)(_t,{className:"h-4 w-4"})})]},h.name)})}),(0,ke.jsx)(gr,{className:"flex-col gap-2 sm:flex-row sm:items-center",children:(0,ke.jsxs)("div",{className:"flex flex-1 items-center gap-1.5",children:[(0,ke.jsx)("input",{type:"color",value:d,className:"h-8 w-8 shrink-0 cursor-pointer rounded-md border border-input bg-transparent p-0.5",onChange:h=>f(h.target.value)}),(0,ke.jsx)(jt,{value:u,placeholder:s("newLabelPlaceholder"),onChange:h=>c(h.target.value),onKeyDown:h=>{h.key==="Enter"&&u.trim()&&(o(u.trim(),d),c(""))}}),(0,ke.jsxs)(Ae,{size:"sm",onClick:()=>{u.trim()&&(o(u.trim(),d),c(""))},children:[(0,ke.jsx)(Nt,{className:"h-4 w-4"}),s("add")]})]})})]})})}function Kn(e,t={},a="default"){return fetch("/api/kanban",{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify({method:e,args:{...t,workspaceId:a}})}).then(o=>o.json())}var ai=new Map,oi=0,Xn=new Set;function wp(e,t){ai.set(e,t),oi++;for(let a of Xn)a()}function bp(e){let t=ai.get(e);if(t==null)return null;ai.delete(e),oi++;for(let a of Xn)a();return t}function Cp(e){return Xn.add(e),()=>{Xn.delete(e)}}function Lp(){return oi}function yp(e){let t=(e.id??"").trim(),a=(e.title??"").trim(),o=(e.note??"").trim(),r=(e.label??"").trim(),n=[];return t&&n.push(Lo("fieldId")+": "+t),a&&n.push(a),r&&n.push(Lo("fieldLabel")+": "+r),o&&n.push(o),n.join(`
|
|
1215
|
+
`)},mh=0,fo=[];function sd(e){var t=fe.useRef([]),a=fe.useRef([0,0]),o=fe.useRef(),r=fe.useState(mh++)[0],n=fe.useState(ar)[0],l=fe.useRef(e);fe.useEffect(function(){l.current=e},[e]),fe.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(r));var p=zu([e.lockRef.current],(e.shards||[]).map(ld),!0).filter(Boolean);return p.forEach(function(m){return m.classList.add("allow-interactivity-".concat(r))}),function(){document.body.classList.remove("block-interactivity-".concat(r)),p.forEach(function(m){return m.classList.remove("allow-interactivity-".concat(r))})}}},[e.inert,e.lockRef.current,e.shards]);var s=fe.useCallback(function(p,m){if("touches"in p&&p.touches.length===2||p.type==="wheel"&&p.ctrlKey)return!l.current.allowPinchZoom;var x=Qr(p),C=a.current,v="deltaX"in p?p.deltaX:C[0]-x[0],L="deltaY"in p?p.deltaY:C[1]-x[1],I,b=p.target,S=Math.abs(v)>Math.abs(L)?"h":"v";if("touches"in p&&S==="h"&&b.type==="range")return!1;var y=window.getSelection(),P=y&&y.anchorNode,T=P?P===b||P.contains(b):!1;if(T)return!1;var M=Bl(S,b);if(!M)return!0;if(M?I=S:(I=S==="v"?"h":"v",M=Bl(S,b)),!M)return!1;if(!o.current&&"changedTouches"in p&&(v||L)&&(o.current=I),!I)return!0;var E=o.current||I;return rd(E,m,p,E==="h"?v:L,!0)},[]),i=fe.useCallback(function(p){var m=p;if(!(!fo.length||fo[fo.length-1]!==n)){var x="deltaY"in m?nd(m):Qr(m),C=t.current.filter(function(I){return I.name===m.type&&(I.target===m.target||m.target===I.shadowParent)&&fh(I.delta,x)})[0];if(C&&C.should){m.cancelable&&m.preventDefault();return}if(!C){var v=(l.current.shards||[]).map(ld).filter(Boolean).filter(function(I){return I.contains(m.target)}),L=v.length>0?s(m,v[0]):!l.current.noIsolation;L&&m.cancelable&&m.preventDefault()}}},[]),u=fe.useCallback(function(p,m,x,C){var v={name:p,delta:m,target:x,should:C,shadowParent:gh(x)};t.current.push(v),setTimeout(function(){t.current=t.current.filter(function(L){return L!==v})},1)},[]),c=fe.useCallback(function(p){a.current=Qr(p),o.current=void 0},[]),d=fe.useCallback(function(p){u(p.type,nd(p),p.target,s(p,e.lockRef.current))},[]),f=fe.useCallback(function(p){u(p.type,Qr(p),p.target,s(p,e.lockRef.current))},[]);fe.useEffect(function(){return fo.push(n),e.setCallbacks({onScrollCapture:d,onWheelCapture:d,onTouchMoveCapture:f}),document.addEventListener("wheel",i,Ca),document.addEventListener("touchmove",i,Ca),document.addEventListener("touchstart",c,Ca),function(){fo=fo.filter(function(p){return p!==n}),document.removeEventListener("wheel",i,Ca),document.removeEventListener("touchmove",i,Ca),document.removeEventListener("touchstart",c,Ca)}},[]);var g=e.removeScrollBar,h=e.inert;return fe.createElement(fe.Fragment,null,h?fe.createElement(n,{styles:ph(r)}):null,g?fe.createElement(Ol,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function gh(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}var id=kl(Jr,sd);var ud=en.forwardRef(function(e,t){return en.createElement(tr,je({},e,{ref:t,sideCar:id}))});ud.classNames=tr.classNames;var La=ud;var hh=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},po=new WeakMap,tn=new WeakMap,an={},Nl=0,dd=function(e){return e&&(e.host||dd(e.parentNode))},xh=function(e,t){return t.map(function(a){if(e.contains(a))return a;var o=dd(a);return o&&e.contains(o)?o:(console.error("aria-hidden",a,"in not contained inside",e,". Doing nothing"),null)}).filter(function(a){return!!a})},vh=function(e,t,a,o){var r=xh(t,Array.isArray(e)?e:[e]);an[a]||(an[a]=new WeakMap);var n=an[a],l=[],s=new Set,i=new Set(r),u=function(d){!d||s.has(d)||(s.add(d),u(d.parentNode))};r.forEach(u);var c=function(d){!d||i.has(d)||Array.prototype.forEach.call(d.children,function(f){if(s.has(f))c(f);else try{var g=f.getAttribute(o),h=g!==null&&g!=="false",p=(po.get(f)||0)+1,m=(n.get(f)||0)+1;po.set(f,p),n.set(f,m),l.push(f),p===1&&h&&tn.set(f,!0),m===1&&f.setAttribute(a,"true"),h||f.setAttribute(o,"true")}catch(x){console.error("aria-hidden: cannot operate on ",f,x)}})};return c(t),s.clear(),Nl++,function(){l.forEach(function(d){var f=po.get(d)-1,g=n.get(d)-1;po.set(d,f),n.set(d,g),f||(tn.has(d)||d.removeAttribute(o),tn.delete(d)),g||d.removeAttribute(a)}),Nl--,Nl||(po=new WeakMap,po=new WeakMap,tn=new WeakMap,an={})}},mo=function(e,t,a){a===void 0&&(a="data-aria-hidden");var o=Array.from(Array.isArray(e)?e:[e]),r=t||hh(e);return r?(o.push.apply(o,Array.from(r.querySelectorAll("[aria-live], script"))),vh(o,r,a,"aria-hidden")):function(){return null}};var ve=require("react/jsx-runtime"),Ch=Object.defineProperty,ct=(e,t)=>Ch(e,"name",{value:t,configurable:!0}),Hl="Dialog",[cd,TI]=Be(Hl),[Lh,Pt]=cd(Hl),fd=ct(e=>{let{__scopeDialog:t,children:a,open:o,defaultOpen:r,onOpenChange:n,modal:l=!0}=e,s=pe.useRef(null),i=pe.useRef(null),[u,c]=Rt({prop:o,defaultProp:r??!1,onChange:n,caller:Hl}),[d,f]=pe.useState(0),[g,h]=pe.useState(0);return(0,ve.jsx)(Lh,{scope:t,triggerRef:s,contentRef:i,contentId:tt(),titleId:tt(),descriptionId:tt(),titlePresent:d>0,descriptionPresent:g>0,setTitleCount:f,setDescriptionCount:h,open:u,onOpenChange:c,onOpenToggle:pe.useCallback(()=>c(p=>!p),[c]),modal:l,children:a})},"Dialog");var pd="DialogPortal",[bh,md]=cd(pd,{forceMount:void 0}),gd=ct(e=>{let{__scopeDialog:t,forceMount:a,children:o,container:r}=e,n=Pt(pd,t);return(0,ve.jsx)(bh,{scope:t,forceMount:a,children:pe.Children.map(o,l=>(0,ve.jsx)(Ht,{present:a||n.open,children:(0,ve.jsx)(lo,{asChild:!0,container:r,children:l})}))})},"DialogPortal"),_l="DialogOverlay",Ul=pe.forwardRef(ct(function(t,a){let o=md(_l,t.__scopeDialog),{forceMount:r=o.forceMount,...n}=t,l=Pt(_l,t.__scopeDialog);return l.modal?(0,ve.jsx)(Ht,{present:r||l.open,children:(0,ve.jsx)(wh,{...n,ref:a})}):null},"DialogOverlay")),Ih=qe("DialogOverlay.RemoveScroll"),wh=pe.forwardRef(ct(function(t,a){let{__scopeDialog:o,...r}=t,n=Pt(_l,o),l=ml(),s=ee(a,l);return(0,ve.jsx)(La,{as:Ih,allowPinchZoom:!0,shards:[n.contentRef],children:(0,ve.jsx)(oe.div,{"data-state":Gl(n.open),...r,ref:s,style:{pointerEvents:"auto",...r.style}})})},"DialogOverlayImpl")),rr="DialogContent",ql=pe.forwardRef(ct(function(t,a){let o=md(rr,t.__scopeDialog),{forceMount:r=o.forceMount,...n}=t,l=Pt(rr,t.__scopeDialog);return(0,ve.jsx)(Ht,{present:r||l.open,children:l.modal?(0,ve.jsx)(Sh,{...n,ref:a}):(0,ve.jsx)(yh,{...n,ref:a})})},"DialogContent")),Sh=pe.forwardRef(ct(function(t,a){let o=Pt(rr,t.__scopeDialog),r=pe.useRef(null),n=ee(a,o.contentRef,r);return pe.useEffect(()=>{let l=r.current;if(l)return mo(l)},[]),(0,ve.jsx)(hd,{...t,ref:n,trapFocus:o.open,disableOutsidePointerEvents:o.open,onCloseAutoFocus:q(t.onCloseAutoFocus,l=>{l.preventDefault(),o.triggerRef.current?.focus()}),onPointerDownOutside:q(t.onPointerDownOutside,l=>{let s=l.detail.originalEvent,i=s.button===0&&s.ctrlKey===!0;(s.button===2||i)&&l.preventDefault()}),onFocusOutside:q(t.onFocusOutside,l=>l.preventDefault())})},"DialogContentModal")),yh=pe.forwardRef(ct(function(t,a){let o=Pt(rr,t.__scopeDialog),r=pe.useRef(!1),n=pe.useRef(!1);return(0,ve.jsx)(hd,{...t,ref:a,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:l=>{t.onCloseAutoFocus?.(l),l.defaultPrevented||(r.current||o.triggerRef.current?.focus(),l.preventDefault()),r.current=!1,n.current=!1},onInteractOutside:l=>{t.onInteractOutside?.(l),l.defaultPrevented||(r.current=!0,l.detail.originalEvent.type==="pointerdown"&&(n.current=!0));let s=l.target;o.triggerRef.current?.contains(s)&&l.preventDefault(),l.detail.originalEvent.type==="focusin"&&n.current&&l.preventDefault()}})},"DialogContentNonModal")),hd=pe.forwardRef(ct(function(t,a){let{__scopeDialog:o,trapFocus:r,onOpenAutoFocus:n,onCloseAutoFocus:l,...s}=t,i=Pt(rr,o);return ea(),(0,ve.jsx)(ve.Fragment,{children:(0,ve.jsx)(no,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:n,onUnmountAutoFocus:l,children:(0,ve.jsx)(ro,{role:"dialog",id:i.contentId,"aria-describedby":i.descriptionPresent?i.descriptionId:void 0,"aria-labelledby":i.titlePresent?i.titleId:void 0,"data-state":Gl(i.open),...s,ref:a,deferPointerDownOutside:!0,onDismiss:()=>i.onOpenChange(!1)})})})},"DialogContentImpl")),Rh="DialogTitle",Vl=pe.forwardRef(ct(function(t,a){let{__scopeDialog:o,...r}=t,n=Pt(Rh,o),{setTitleCount:l}=n;return se(()=>(l(s=>s+1),()=>l(s=>s-1)),[l]),(0,ve.jsx)(oe.h2,{id:n.titleId,...r,ref:a})},"DialogTitle")),Ph="DialogDescription",Wl=pe.forwardRef(ct(function(t,a){let{__scopeDialog:o,...r}=t,n=Pt(Ph,o),{setDescriptionCount:l}=n;return se(()=>(l(s=>s+1),()=>l(s=>s-1)),[l]),(0,ve.jsx)(oe.p,{id:n.descriptionId,...r,ref:a})},"DialogDescription")),kh="DialogClose",xd=pe.forwardRef(ct(function(t,a){let{__scopeDialog:o,...r}=t,n=Pt(kh,o);return(0,ve.jsx)(oe.button,{type:"button",...r,ref:a,onClick:q(t.onClick,()=>n.onOpenChange(!1))})},"DialogClose"));function Gl(e){return e?"open":"closed"}ct(Gl,"getState");var Cd=require("react"),zl="dsh-kanban",Ld={boardTab:"\u770B\u677F",loading:"\u770B\u677F\u52A0\u8F7D\u4E2D\u2026",loadFailed:"\u770B\u677F\u52A0\u8F7D\u5931\u8D25\uFF1A",actionFailed:"\u64CD\u4F5C\u5931\u8D25\uFF1A",refresh:"\u5237\u65B0\u770B\u677F",settings:"\u8BBE\u7F6E",columnEdit:"\u5217\u7F16\u8F91",labelEdit:"\u6807\u7B7E\u7F16\u8F91",emptyColumn:"\u6682\u65E0\u5361\u7247",addCard:"\u6DFB\u52A0\u5361\u7247",dragSort:"\u62D6\u62FD\u6392\u5E8F",editCard:"\u7F16\u8F91\u5361\u7247",fieldTitle:"\u6807\u9898",fieldId:"\u4EFB\u52A1 ID",titlePlaceholder:"\u5361\u7247\u6807\u9898",fieldLabel:"\u6807\u7B7E",noLabel:"\u65E0\u6807\u7B7E",fieldPriority:"\u4F18\u5148\u7EA7",noPriority:"\u65E0\u4F18\u5148\u7EA7",fieldNote:"\u5907\u6CE8",notePlaceholder:"\u5907\u6CE8\uFF08\u53EF\u9009\uFF09",cancel:"\u53D6\u6D88",save:"\u4FDD\u5B58",chatWithAgent:"\u4E0E agent \u804A\u4E00\u804A",chatCurrentSession:"\u5F53\u524D\u5BF9\u8BDD",chatNewSession:"\u65B0\u5EFA\u5BF9\u8BDD",delete:"\u5220\u9664",add:"\u6DFB\u52A0",close:"\u5173\u95ED",columnEditDesc:"\u62D6\u62FD\u8C03\u6574\u5217\u7684\u987A\u5E8F\uFF0C\u6216\u91CD\u547D\u540D\u3001\u5220\u9664\u3001\u65B0\u589E\u5217\u8868",newColumnPlaceholder:"\u65B0\u5217\u8868\u540D\u79F0",labelEditDesc:"\u521B\u5EFA\u3001\u5220\u9664\u6216\u4FEE\u6539\u6807\u7B7E\uFF0C\u989C\u8272\u4E0E\u6807\u7B7E\u7ED1\u5B9A",newLabelPlaceholder:"\u65B0\u6807\u7B7E\u540D\u79F0",priorityFilter:"\u6309\u4F18\u5148\u7EA7\u7B5B\u9009",all:"\u5168\u90E8",warnings:"\u6570\u636E\u63D0\u793A",dismiss:"\u77E5\u9053\u4E86",activityTitle:"\u6D3B\u52A8\u8BB0\u5F55",activityEmpty:"\u6682\u65E0\u6D3B\u52A8\u8BB0\u5F55",actorHuman:"\u4F60",actorAgent:"Agent",actCreated:"\u521B\u5EFA\u4E8E\u300C{column}\u300D\uFF0C\u6807\u7B7E {label}\uFF0C\u4F18\u5148\u7EA7 {priority}",actMoved:"\u4ECE\u300C{from}\u300D\u79FB\u5230\u300C{to}\u300D",actLabel:"\u6807\u7B7E {from} \u2192 {to}",actLabelSet:"\u8BBE\u7F6E\u6807\u7B7E {to}",actLabelCleared:"\u6E05\u9664\u6807\u7B7E {from}",actPriority:"\u4F18\u5148\u7EA7 {from} \u2192 {to}",actPrioritySet:"\u8BBE\u7F6E\u4F18\u5148\u7EA7 {to}",actPriorityCleared:"\u6E05\u9664\u4F18\u5148\u7EA7 {from}",actTitle:'\u6807\u9898 "{from}" \u2192 "{to}"',actNote:"\u66F4\u65B0\u4E86\u5907\u6CE8",actDeleted:"\u5220\u9664\u4E86\u5361\u7247",actColumnAdded:"\u65B0\u589E\u5217\u8868\u300C{column}\u300D",actColumnRenamed:"\u5217\u8868\u300C{from}\u300D\u2192\u300C{to}\u300D",actColumnDeleted:"\u5220\u9664\u4E86\u5217\u8868\u300C{column}\u300D",actLabelAdded:"\u65B0\u589E\u6807\u7B7E\u300C{label}\u300D",actLabelRenamed:"\u6807\u7B7E\u300C{from}\u300D\u2192\u300C{to}\u300D",actLabelDeleted:"\u5220\u9664\u4E86\u6807\u7B7E\u300C{label}\u300D",actLabelColor:"\u6807\u7B7E\u300C{label}\u300D\u6539\u8272 {from} \u2192 {to}",noValue:"\u65E0"},Mh={boardTab:"Board",loading:"Loading board\u2026",loadFailed:"Failed to load board: ",actionFailed:"Action failed: ",refresh:"Refresh board",settings:"Settings",columnEdit:"Edit lists",labelEdit:"Edit labels",emptyColumn:"No cards",addCard:"Add card",dragSort:"Drag to reorder",editCard:"Edit card",fieldTitle:"Title",fieldId:"Task ID",titlePlaceholder:"Card title",fieldLabel:"Label",noLabel:"No label",fieldPriority:"Priority",noPriority:"No priority",fieldNote:"Note",notePlaceholder:"Note (optional)",cancel:"Cancel",save:"Save",chatWithAgent:"Chat with agent",chatCurrentSession:"Current session",chatNewSession:"New session",delete:"Delete",add:"Add",close:"Close",columnEditDesc:"Drag to reorder lists, or rename, delete and add lists",newColumnPlaceholder:"New list name",labelEditDesc:"Create, delete or edit labels; color is bound to the label",newLabelPlaceholder:"New label name",priorityFilter:"Filter by priority",all:"All",warnings:"Data notice",dismiss:"Got it",activityTitle:"Activity",activityEmpty:"No activity yet",actorHuman:"You",actorAgent:"Agent",actCreated:'Created in "{column}" with label {label}, priority {priority}',actMoved:'Moved from "{from}" to "{to}"',actLabel:"Label {from} \u2192 {to}",actLabelSet:"Set label {to}",actLabelCleared:"Cleared label {from}",actPriority:"Priority {from} \u2192 {to}",actPrioritySet:"Set priority {to}",actPriorityCleared:"Cleared priority {from}",actTitle:'Title "{from}" \u2192 "{to}"',actNote:"Updated the note",actDeleted:"Deleted the card",actColumnAdded:'Added list "{column}"',actColumnRenamed:'List "{from}" \u2192 "{to}"',actColumnDeleted:'Deleted list "{column}"',actLabelAdded:'Added label "{label}"',actLabelRenamed:'Label "{from}" \u2192 "{to}"',actLabelDeleted:'Deleted label "{label}"',actLabelColor:'Label "{label}" color {from} \u2192 {to}',noValue:"None"},ba=null,Kl=null;function bd(e){let t=e.get("locale");if(t!==void 0){ba=t;try{t.register(zl,"zh",Ld),t.register(zl,"en",Mh)}catch{}Kl=t.bind(zl)}}function go(e){return Kl?Kl(e):Ld[e]??e}var Ah=e=>ba&&typeof ba.subscribe=="function"?ba.subscribe(e):()=>{},vd=()=>ba&&typeof ba.getSnapshot=="function"?ba.getSnapshot():null;function Ke(){return(0,Cd.useSyncExternalStore)(Ah,vd,vd),go}var at=require("react/jsx-runtime"),ho=fd;var Th=gd;var Id=nr.forwardRef(({className:e,...t},a)=>(0,at.jsx)(Ul,{ref:a,className:ae("kanban-portal kanban-dialog-overlay",e),...t}));Id.displayName=Ul.displayName;var Ia=nr.forwardRef(({className:e,children:t,...a},o)=>{let r=Ke();return(0,at.jsxs)(Th,{children:[(0,at.jsx)(Id,{}),(0,at.jsxs)(ql,{ref:o,className:ae("kanban-portal kanban-dialog-content",e),...a,children:[t,(0,at.jsxs)(xd,{className:"kanban-dialog-close",children:[(0,at.jsx)(Jo,{className:"kanban-dialog-close-icon"}),(0,at.jsx)("span",{className:"kanban-sr-only",children:r("close")})]})]})]})});Ia.displayName=ql.displayName;var wa=({className:e,...t})=>(0,at.jsx)("div",{className:ae("kanban-dialog-header",e),...t});wa.displayName="DialogHeader";var lr=({className:e,...t})=>(0,at.jsx)("div",{className:ae("kanban-dialog-footer",e),...t});lr.displayName="DialogFooter";var Sa=nr.forwardRef(({className:e,...t},a)=>(0,at.jsx)(Vl,{ref:a,className:ae("kanban-dialog-title",e),...t}));Sa.displayName=Vl.displayName;var sr=nr.forwardRef(({className:e,...t},a)=>(0,at.jsx)(Wl,{ref:a,className:ae("kanban-dialog-description",e),...t}));sr.displayName=Wl.displayName;var gr=U(require("react"),1);var bt=U(require("react"),1);var Z=U(require("react"),1);var ht=U(require("react"),1);var on=require("react/jsx-runtime"),$e=U(require("react"),1);var ya=require("react/jsx-runtime");var Eh=Object.defineProperty,Te=(e,t)=>Eh(e,"name",{value:t,configurable:!0});function Ra(e){let t=e+"CollectionProvider",[a,o]=Be(t),[r,n]=a(t,{collectionRef:{current:null},itemMap:new Map}),l=Te(p=>{let{scope:m,children:x}=p,C=ht.useRef(null),v=ht.useRef(new Map).current;return(0,on.jsx)(r,{scope:m,itemMap:v,collectionRef:C,children:x})},"CollectionProvider");l.displayName=t;let s=e+"CollectionSlot",i=qe(s),u=ht.forwardRef((p,m)=>{let{scope:x,children:C}=p,v=n(s,x),L=ee(m,v.collectionRef);return(0,on.jsx)(i,{ref:L,children:C})});u.displayName=s;let c=e+"CollectionItemSlot",d="data-radix-collection-item",f=qe(c),g=ht.forwardRef((p,m)=>{let{scope:x,children:C,...v}=p,L=ht.useRef(null),I=ee(m,L),b=n(c,x);return ht.useEffect(()=>(b.itemMap.set(L,{ref:L,...v}),()=>{b.itemMap.delete(L)})),(0,on.jsx)(f,{[d]:"",ref:I,children:C})});g.displayName=c;function h(p){let m=n(e+"CollectionConsumer",p);return ht.useCallback(()=>{let C=m.collectionRef.current;if(!C)return[];let v=Array.from(C.querySelectorAll(`[${d}]`));return Array.from(m.itemMap.values()).sort((b,S)=>v.indexOf(b.ref.current)-v.indexOf(S.ref.current))},[m.collectionRef,m.itemMap])}return Te(h,"useCollection"),[{Provider:l,Slot:u,ItemSlot:g},h,o]}Te(Ra,"createCollection");var wd=new WeakMap,we,ot,Xl=(ot=class extends Map{constructor(a){super(a);ti(this,we);Vn(this,we,[...super.keys()]),wd.set(this,!0)}set(a,o){return wd.get(this)&&(this.has(a)?He(this,we)[He(this,we).indexOf(a)]=a:He(this,we).push(a)),super.set(a,o),this}insert(a,o,r){let n=this.has(o),l=He(this,we).length,s=$l(a),i=s>=0?s:l+s,u=i<0||i>=l?-1:i;if(u===this.size||n&&u===this.size-1||u===-1)return this.set(o,r),this;let c=this.size+(n?0:1);s<0&&i++;let d=[...He(this,we)],f,g=!1;for(let h=i;h<c;h++)if(i===h){let p=d[h];d[h]===o&&(p=d[h+1]),n&&this.delete(o),f=this.get(p),this.set(o,r)}else{!g&&d[h-1]===o&&(g=!0);let p=d[g?h:h-1],m=f;f=this.get(p),this.delete(p),this.set(p,m)}return this}with(a,o,r){let n=new ot(this);return n.insert(a,o,r),n}before(a){let o=He(this,we).indexOf(a)-1;if(!(o<0))return this.entryAt(o)}setBefore(a,o,r){let n=He(this,we).indexOf(a);return n===-1?this:this.insert(n,o,r)}after(a){let o=He(this,we).indexOf(a);if(o=o===-1||o===this.size-1?-1:o+1,o!==-1)return this.entryAt(o)}setAfter(a,o,r){let n=He(this,we).indexOf(a);return n===-1?this:this.insert(n+1,o,r)}first(){return this.entryAt(0)}last(){return this.entryAt(-1)}clear(){return Vn(this,we,[]),super.clear()}delete(a){let o=super.delete(a);return o&&He(this,we).splice(He(this,we).indexOf(a),1),o}deleteAt(a){let o=this.keyAt(a);return o!==void 0?this.delete(o):!1}at(a){let o=rn(He(this,we),a);if(o!==void 0)return this.get(o)}entryAt(a){let o=rn(He(this,we),a);if(o!==void 0)return[o,this.get(o)]}indexOf(a){return He(this,we).indexOf(a)}keyAt(a){return rn(He(this,we),a)}from(a,o){let r=this.indexOf(a);if(r===-1)return;let n=r+o;return n<0&&(n=0),n>=this.size&&(n=this.size-1),this.at(n)}keyFrom(a,o){let r=this.indexOf(a);if(r===-1)return;let n=r+o;return n<0&&(n=0),n>=this.size&&(n=this.size-1),this.keyAt(n)}find(a,o){let r=0;for(let n of this){if(Reflect.apply(a,o,[n,r,this]))return n;r++}}findIndex(a,o){let r=0;for(let n of this){if(Reflect.apply(a,o,[n,r,this]))return r;r++}return-1}filter(a,o){let r=[],n=0;for(let l of this)Reflect.apply(a,o,[l,n,this])&&r.push(l),n++;return new ot(r)}map(a,o){let r=[],n=0;for(let l of this)r.push([l[0],Reflect.apply(a,o,[l,n,this])]),n++;return new ot(r)}reduce(...a){let[o,r]=a,n=0,l=r??this.at(0);for(let s of this)n===0&&a.length===1?l=s:l=Reflect.apply(o,this,[l,s,n,this]),n++;return l}reduceRight(...a){let[o,r]=a,n=r??this.at(-1);for(let l=this.size-1;l>=0;l--){let s=this.at(l);l===this.size-1&&a.length===1?n=s:n=Reflect.apply(o,this,[n,s,l,this])}return n}toSorted(a){let o=[...this.entries()].sort(a);return new ot(o)}toReversed(){let a=new ot;for(let o=this.size-1;o>=0;o--){let r=this.keyAt(o),n=this.get(r);a.set(r,n)}return a}toSpliced(...a){let o=[...this.entries()];return o.splice(...a),new ot(o)}slice(a,o){let r=new ot,n=this.size-1;if(a===void 0)return r;a<0&&(a=a+this.size),o!==void 0&&o>0&&(n=o-1);for(let l=a;l<=n;l++){let s=this.keyAt(l),i=this.get(s);r.set(s,i)}return r}every(a,o){let r=0;for(let n of this){if(!Reflect.apply(a,o,[n,r,this]))return!1;r++}return!0}some(a,o){let r=0;for(let n of this){if(Reflect.apply(a,o,[n,r,this]))return!0;r++}return!1}},we=new WeakMap,Te(ot,"OrderedDict"),ot);function rn(e,t){if("at"in Array.prototype)return Array.prototype.at.call(e,t);let a=Sd(e,t);return a===-1?void 0:e[a]}Te(rn,"at");function Sd(e,t){let a=e.length,o=$l(t),r=o>=0?o:a+o;return r<0||r>=a?-1:r}Te(Sd,"toSafeIndex");function $l(e){return e!==e||e===0?0:Math.trunc(e)}Te($l,"toSafeInteger");function Oh(e){let t=e+"CollectionProvider",[a,o]=Be(t),[r,n]=a(t,{collectionElement:null,collectionRef:{current:null},collectionRefObject:{current:null},itemMap:new Xl,setItemMap:Te(()=>{},"setItemMap")}),l=Te(({state:v,...L})=>v?(0,ya.jsx)(i,{...L,state:v}):(0,ya.jsx)(s,{...L}),"CollectionProvider");l.displayName=t;let s=Te(v=>{let L=m();return(0,ya.jsx)(i,{...v,state:L})},"CollectionInit");s.displayName=t+"Init";let i=Te(v=>{let{scope:L,children:I,state:b}=v,S=$e.useRef(null),[y,P]=$e.useState(null),T=ee(S,P),[M,E]=b;return $e.useEffect(()=>{if(!y)return;let N=Pd(()=>{});return N.observe(y,{childList:!0,subtree:!0}),()=>{N.disconnect()}},[y]),(0,ya.jsx)(r,{scope:L,itemMap:M,setItemMap:E,collectionRef:T,collectionRefObject:S,collectionElement:y,children:I})},"CollectionProviderImpl");i.displayName=t+"Impl";let u=e+"CollectionSlot",c=qe(u),d=$e.forwardRef((v,L)=>{let{scope:I,children:b}=v,S=n(u,I),y=ee(L,S.collectionRef);return(0,ya.jsx)(c,{ref:y,children:b})});d.displayName=u;let f=e+"CollectionItemSlot",g="data-radix-collection-item",h=qe(f),p=$e.forwardRef((v,L)=>{let{scope:I,children:b,...S}=v,y=$e.useRef(null),[P,T]=$e.useState(null),M=ee(L,y,T),E=n(f,I),{setItemMap:N}=E,H=$e.useRef(S);yd(H.current,S)||(H.current=S);let Q=H.current;return $e.useEffect(()=>{let $=Q;return N(O=>P?O.has(P)?O.set(P,{...$,element:P}).toSorted(jl):(O.set(P,{...$,element:P}),O.toSorted(jl)):O),()=>{N(O=>!P||!O.has(P)?O:(O.delete(P),new Xl(O)))}},[P,Q,N]),(0,ya.jsx)(h,{[g]:"",ref:M,children:b})});p.displayName=f;function m(){return $e.useState(new Xl)}Te(m,"useInitCollection");function x(v){let{itemMap:L}=n(e+"CollectionConsumer",v);return L}return Te(x,"useCollection"),[{Provider:l,Slot:d,ItemSlot:p},{createCollectionScope:o,useCollection:x,useInitCollection:m}]}Te(Oh,"createCollection");function yd(e,t){if(e===t)return!0;if(typeof e!="object"||typeof t!="object"||e==null||t==null)return!1;let a=Object.keys(e),o=Object.keys(t);if(a.length!==o.length)return!1;for(let r of a)if(!Object.prototype.hasOwnProperty.call(t,r)||e[r]!==t[r])return!1;return!0}Te(yd,"shallowEqual");function Rd(e,t){return!!(t.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_PRECEDING)}Te(Rd,"isElementPreceding");function jl(e,t){return!e[1].element||!t[1].element?0:Rd(e[1].element,t[1].element)?-1:1}Te(jl,"sortByDocumentPosition");function Pd(e){return new MutationObserver(a=>{for(let o of a)if(o.type==="childList"){e();return}})}Te(Pd,"getChildListObserver");var nn=U(require("react"),1),Nh=require("react/jsx-runtime"),Fh=Object.defineProperty,Bh=(e,t)=>Fh(e,"name",{value:t,configurable:!0}),_h=nn.createContext(void 0);function Pa(e){let t=nn.useContext(_h);return e||t||"ltr"}Bh(Pa,"useDirection");var We=U(require("react"),1);var Md=["top","right","bottom","left"];var kt=Math.min,xt=Math.max,ur=Math.round,dr=Math.floor,Dt=e=>({x:e,y:e}),Hh={left:"right",right:"left",bottom:"top",top:"bottom"};function Yl(e,t,a){return xt(e,kt(t,a))}function Mt(e,t){return typeof e=="function"?e(t):e}function Ut(e){return e.split("-")[0]}function ka(e){return e.split("-")[1]}function sn(e){return e==="x"?"y":"x"}function un(e){return e==="y"?"height":"width"}function vt(e){let t=e[0];return t==="t"||t==="b"?"y":"x"}function dn(e){return sn(vt(e))}function Ad(e,t,a){a===void 0&&(a=!1);let o=ka(e),r=dn(e),n=un(r),l=r==="x"?o===(a?"end":"start")?"right":"left":o==="start"?"bottom":"top";return t.reference[n]>t.floating[n]&&(l=ir(l)),[l,ir(l)]}function Td(e){let t=ir(e);return[ln(e),t,ln(t)]}function ln(e){return e.includes("start")?e.replace("start","end"):e.replace("end","start")}var kd=["left","right"],Dd=["right","left"],Uh=["top","bottom"],qh=["bottom","top"];function Vh(e,t,a){switch(e){case"top":case"bottom":return a?t?Dd:kd:t?kd:Dd;case"left":case"right":return t?Uh:qh;default:return[]}}function Ed(e,t,a,o){let r=ka(e),n=Vh(Ut(e),a==="start",o);return r&&(n=n.map(l=>l+"-"+r),t&&(n=n.concat(n.map(ln)))),n}function ir(e){let t=Ut(e);return Hh[t]+e.slice(t.length)}function Wh(e){var t,a,o,r;return{top:(t=e.top)!=null?t:0,right:(a=e.right)!=null?a:0,bottom:(o=e.bottom)!=null?o:0,left:(r=e.left)!=null?r:0}}function Zl(e){return typeof e!="number"?Wh(e):{top:e,right:e,bottom:e,left:e}}function Da(e){let{x:t,y:a,width:o,height:r}=e;return{width:o,height:r,top:a,left:t,right:t+o,bottom:a+r,x:t,y:a}}function Od(e,t,a){let{reference:o,floating:r}=e,n=vt(t),l=dn(t),s=un(l),i=Ut(t),u=n==="y",c=o.x+o.width/2-r.width/2,d=o.y+o.height/2-r.height/2,f=o[s]/2-r[s]/2,g;switch(i){case"top":g={x:c,y:o.y-r.height};break;case"bottom":g={x:c,y:o.y+o.height};break;case"right":g={x:o.x+o.width,y:d};break;case"left":g={x:o.x-r.width,y:d};break;default:g={x:o.x,y:o.y}}let h=ka(t);return h&&(g[l]+=f*(h==="end"?1:-1)*(a&&u?-1:1)),g}async function Nd(e,t){var a;t===void 0&&(t={});let{x:o,y:r,platform:n,rects:l,elements:s,strategy:i}=e,{boundary:u="clippingAncestors",rootBoundary:c="viewport",elementContext:d="floating",altBoundary:f=!1,padding:g=0}=Mt(t,e),h=Zl(g),m=s[f?d==="floating"?"reference":"floating":d],x=Da(await n.getClippingRect({element:(a=await(n.isElement==null?void 0:n.isElement(m)))==null||a?m:m.contextElement||await(n.getDocumentElement==null?void 0:n.getDocumentElement(s.floating)),boundary:u,rootBoundary:c,strategy:i})),C=d==="floating"?{x:o,y:r,width:l.floating.width,height:l.floating.height}:l.reference,v=await(n.getOffsetParent==null?void 0:n.getOffsetParent(s.floating)),L=await(n.isElement==null?void 0:n.isElement(v))&&await(n.getScale==null?void 0:n.getScale(v))||{x:1,y:1},I=Da(n.convertOffsetParentRelativeRectToViewportRelativeRect?await n.convertOffsetParentRelativeRectToViewportRelativeRect({elements:s,rect:C,offsetParent:v,strategy:i}):C);return{top:(x.top-I.top+h.top)/L.y,bottom:(I.bottom-x.bottom+h.bottom)/L.y,left:(x.left-I.left+h.left)/L.x,right:(I.right-x.right+h.right)/L.x}}var Gh=50,_d=async(e,t,a)=>{let{placement:o="bottom",strategy:r="absolute",middleware:n=[],platform:l}=a,s=l.detectOverflow?l:{...l,detectOverflow:Nd},i=await(l.isRTL==null?void 0:l.isRTL(t)),u=await l.getElementRects({reference:e,floating:t,strategy:r}),{x:c,y:d}=Od(u,o,i),f=o,g=0,h={};for(let p=0;p<n.length;p++){let m=n[p];if(!m)continue;let{name:x,fn:C}=m,{x:v,y:L,data:I,reset:b}=await C({x:c,y:d,initialPlacement:o,placement:f,strategy:r,middlewareData:h,rects:u,platform:s,elements:{reference:e,floating:t}});c=v??c,d=L??d,h[x]={...h[x],...I},b&&g<Gh&&(g++,typeof b=="object"&&(b.placement&&(f=b.placement),b.rects&&(u=b.rects===!0?await l.getElementRects({reference:e,floating:t,strategy:r}):b.rects),{x:c,y:d}=Od(u,f,i)),p=-1)}return{x:c,y:d,placement:f,strategy:r,middlewareData:h}},Hd=e=>({name:"arrow",options:e,async fn(t){let{x:a,y:o,placement:r,rects:n,platform:l,elements:s,middlewareData:i}=t,{element:u,padding:c=0}=Mt(e,t)||{};if(u==null)return{};let d=Zl(c),f={x:a,y:o},g=dn(r),h=un(g),p=await l.getDimensions(u),m=g==="y",x=m?"top":"left",C=m?"bottom":"right",v=m?"clientHeight":"clientWidth",L=n.reference[h]+n.reference[g]-f[g]-n.floating[h],I=f[g]-n.reference[g],b=await(l.getOffsetParent==null?void 0:l.getOffsetParent(u)),S=b?b[v]:0;(!S||!await(l.isElement==null?void 0:l.isElement(b)))&&(S=s.floating[v]||n.floating[h]);let y=L/2-I/2,P=S/2-p[h]/2-1,T=kt(d[x],P),M=kt(d[C],P),E=S-p[h]-M,N=S/2-p[h]/2+y,H=Yl(T,N,E),Q=!i.arrow&&ka(r)!=null&&N!==H&&n.reference[h]/2-(N<T?T:M)-p[h]/2<0,$=Q?N<T?N-T:N-E:0;return{[g]:f[g]+$,data:{[g]:H,centerOffset:N-H-$,...Q&&{alignmentOffset:$}},reset:Q}}});var Ud=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var a,o;let{placement:r,middlewareData:n,rects:l,initialPlacement:s,platform:i,elements:u}=t,{mainAxis:c=!0,crossAxis:d=!0,fallbackPlacements:f,fallbackStrategy:g="bestFit",fallbackAxisSideDirection:h="none",flipAlignment:p=!0,...m}=Mt(e,t);if((a=n.arrow)!=null&&a.alignmentOffset)return{};let x=Ut(r),C=vt(s),v=Ut(s)===s,L=await(i.isRTL==null?void 0:i.isRTL(u.floating)),I=f||(v||!p?[ir(s)]:Td(s)),b=h!=="none";!f&&b&&I.push(...Ed(s,p,h,L));let S=[s,...I],y=await i.detectOverflow(t,m),P=[],T=((o=n.flip)==null?void 0:o.overflows)||[];if(c&&P.push(y[x]),d){let H=Ad(r,l,L);P.push(y[H[0]],y[H[1]])}if(T=[...T,{placement:r,overflows:P}],!P.every(H=>H<=0)){var M,E;let H=(((M=n.flip)==null?void 0:M.index)||0)+1,Q=S[H];if(Q&&(!(d==="alignment"?C!==vt(Q):!1)||T.every(_=>vt(_.placement)===C?_.overflows[0]>0:!0)))return{data:{index:H,overflows:T},reset:{placement:Q}};let $=(E=T.filter(O=>O.overflows[0]<=0).sort((O,_)=>O.overflows[1]-_.overflows[1])[0])==null?void 0:E.placement;if(!$)switch(g){case"bestFit":{var N;let O=(N=T.filter(_=>{if(b){let G=vt(_.placement);return G===C||G==="y"}return!0}).map(_=>[_.placement,_.overflows.filter(G=>G>0).reduce((G,A)=>G+A,0)]).sort((_,G)=>_[1]-G[1])[0])==null?void 0:N[0];O&&($=O);break}case"initialPlacement":$=s;break}if(r!==$)return{reset:{placement:$}}}return{}}}};function Fd(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function Bd(e){return Md.some(t=>e[t]>=0)}var qd=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){let{rects:a,platform:o}=t,{strategy:r="referenceHidden",...n}=Mt(e,t);switch(r){case"referenceHidden":{let l=await o.detectOverflow(t,{...n,elementContext:"reference"}),s=Fd(l,a.reference);return{data:{referenceHiddenOffsets:s,referenceHidden:Bd(s)}}}case"escaped":{let l=await o.detectOverflow(t,{...n,altBoundary:!0}),s=Fd(l,a.floating);return{data:{escapedOffsets:s,escaped:Bd(s)}}}default:return{}}}}};var Vd=new Set(["left","top"]);async function zh(e,t){let{placement:a,platform:o,elements:r}=e,n=await(o.isRTL==null?void 0:o.isRTL(r.floating)),l=Ut(a),s=ka(a),i=vt(a)==="y",u=Vd.has(l)?-1:1,c=n&&i?-1:1,d=Mt(t,e),{mainAxis:f,crossAxis:g,alignmentAxis:h}=typeof d=="number"?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:d.mainAxis||0,crossAxis:d.crossAxis||0,alignmentAxis:d.alignmentAxis};return s&&typeof h=="number"&&(g=s==="end"?h*-1:h),i?{x:g*c,y:f*u}:{x:f*u,y:g*c}}var Wd=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var a,o;let{x:r,y:n,placement:l,middlewareData:s}=t,i=await zh(t,e);return l===((a=s.offset)==null?void 0:a.placement)&&(o=s.arrow)!=null&&o.alignmentOffset?{}:{x:r+i.x,y:n+i.y,data:{...i,placement:l}}}}},Gd=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){let{x:a,y:o,placement:r,platform:n}=t,{mainAxis:l=!0,crossAxis:s=!1,limiter:i={fn:C=>{let{x:v,y:L}=C;return{x:v,y:L}}},...u}=Mt(e,t),c={x:a,y:o},d=await n.detectOverflow(t,u),f=vt(r),g=sn(f),h=c[g],p=c[f],m=(C,v)=>Yl(v+d[C==="y"?"top":"left"],v,v-d[C==="y"?"bottom":"right"]);l&&(h=m(g,h)),s&&(p=m(f,p));let x=i.fn({...t,[g]:h,[f]:p});return{...x,data:{x:x.x-a,y:x.y-o,enabled:{[g]:l,[f]:s}}}}}},zd=function(e){return e===void 0&&(e={}),{options:e,fn(t){var a,o;let{x:r,y:n,placement:l,rects:s,middlewareData:i}=t,{offset:u=0,mainAxis:c=!0,crossAxis:d=!0}=Mt(e,t),f={x:r,y:n},g=vt(l),h=sn(g),p=f[h],m=f[g],x=Mt(u,t),C=typeof x=="number"?{mainAxis:x,crossAxis:0}:{mainAxis:(a=x.mainAxis)!=null?a:0,crossAxis:(o=x.crossAxis)!=null?o:0};if(c){let I=h==="y"?"height":"width",b=s.reference[h]-s.floating[I]+C.mainAxis,S=s.reference[h]+s.reference[I]-C.mainAxis;p<b?p=b:p>S&&(p=S)}if(d){var v,L;let I=h==="y"?"width":"height",b=Vd.has(Ut(l)),S=s.reference[g]-s.floating[I]+(b&&((v=i.offset)==null?void 0:v[g])||0)+(b?0:C.crossAxis),y=s.reference[g]+s.reference[I]+(b?0:((L=i.offset)==null?void 0:L[g])||0)-(b?C.crossAxis:0);m<S?m=S:m>y&&(m=y)}return{[h]:p,[g]:m}}}},Kd=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){let{placement:a,rects:o,platform:r,elements:n}=t,{apply:l=()=>{},...s}=Mt(e,t),i=await r.detectOverflow(t,s),u=Ut(a),c=ka(a),d=vt(a)==="y",{width:f,height:g}=o.floating,h,p;u==="top"||u==="bottom"?(h=u,p=c===(await(r.isRTL==null?void 0:r.isRTL(n.floating))?"start":"end")?"left":"right"):(p=u,h=c==="end"?"top":"bottom");let m=g-i.top-i.bottom,x=f-i.left-i.right,C=kt(g-i[h],m),v=kt(f-i[p],x),L=t.middlewareData.shift,I=!L,b=C,S=v;L!=null&&L.enabled.x&&(S=x),L!=null&&L.enabled.y&&(b=m),I&&!c&&(d?S=f-2*xt(i.left,i.right):b=g-2*xt(i.top,i.bottom)),await l({...t,availableWidth:S,availableHeight:b});let y=await r.getDimensions(n.floating);return f!==y.width||g!==y.height?{reset:{rects:!0}}:{}}}};function cn(){return typeof window<"u"}function Ta(e){return jd(e)?(e.nodeName||"").toLowerCase():"#document"}function Xe(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function At(e){var t;return(t=(jd(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function jd(e){return cn()?e instanceof Node||e instanceof Xe(e).Node:!1}function Ct(e){return cn()?e instanceof Element||e instanceof Xe(e).Element:!1}function qt(e){return cn()?e instanceof HTMLElement||e instanceof Xe(e).HTMLElement:!1}function Xd(e){return!cn()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof Xe(e).ShadowRoot}function cr(e){let{overflow:t,overflowX:a,overflowY:o,display:r}=Lt(e);return/auto|scroll|overlay|hidden|clip/.test(t+o+a)&&r!=="inline"&&r!=="contents"}function $d(e){return/^(table|td|th)$/.test(Ta(e))}function fr(e){try{if(e.matches(":popover-open"))return!0}catch{}try{return e.matches(":modal")}catch{return!1}}var Kh=/transform|translate|scale|rotate|perspective|filter/,Xh=/paint|layout|strict|content/,Ma=e=>!!e&&e!=="none",Jl;function fn(e){let t=Ct(e)?Lt(e):e;return Ma(t.transform)||Ma(t.translate)||Ma(t.scale)||Ma(t.rotate)||Ma(t.perspective)||!pn()&&(Ma(t.backdropFilter)||Ma(t.filter))||Kh.test(t.willChange||"")||Xh.test(t.contain||"")}function Yd(e){let t=ta(e);for(;qt(t)&&!xo(t);){if(fn(t))return t;if(fr(t))return null;t=ta(t)}return null}function pn(){return Jl==null&&(Jl=typeof CSS<"u"&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),Jl}function xo(e){return/^(html|body|#document)$/.test(Ta(e))}function Lt(e){return Xe(e).getComputedStyle(e)}function pr(e){return Ct(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function ta(e){if(Ta(e)==="html")return e;let t=e.assignedSlot||e.parentNode||Xd(e)&&e.host||At(e);return Xd(t)?t.host:t}function Zd(e){let t=ta(e);return xo(t)?(e.ownerDocument||e).body:qt(t)&&cr(t)?t:Zd(t)}function Aa(e,t,a){var o;t===void 0&&(t=[]),a===void 0&&(a=!0);let r=Zd(e),n=r===((o=e.ownerDocument)==null?void 0:o.body),l=Xe(r);if(n){let s=mn(l);return t.concat(l,l.visualViewport||[],cr(r)?r:[],s&&a?Aa(s):[])}else return t.concat(r,Aa(r,[],a))}function mn(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function ec(e){let t=Lt(e),a=parseFloat(t.width)||0,o=parseFloat(t.height)||0,r=qt(e),n=r?e.offsetWidth:a,l=r?e.offsetHeight:o,s=ur(a)!==n||ur(o)!==l;return s&&(a=n,o=l),{width:a,height:o,$:s}}function es(e){return Ct(e)?e:e.contextElement}function vo(e){let t=es(e);if(!qt(t))return Dt(1);let a=t.getBoundingClientRect(),{width:o,height:r,$:n}=ec(t),l=(n?ur(a.width):a.width)/o,s=(n?ur(a.height):a.height)/r;return(!l||!Number.isFinite(l))&&(l=1),(!s||!Number.isFinite(s))&&(s=1),{x:l,y:s}}var jh=Dt(0);function tc(e){let t=Xe(e);return!pn()||!t.visualViewport?jh:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function $h(e,t,a){return t===void 0&&(t=!1),!!a&&t&&a===Xe(e)}function Ea(e,t,a,o){t===void 0&&(t=!1),a===void 0&&(a=!1);let r=e.getBoundingClientRect(),n=es(e),l=Dt(1);t&&(o?Ct(o)&&(l=vo(o)):l=vo(e));let s=$h(n,a,o)?tc(n):Dt(0),i=(r.left+s.x)/l.x,u=(r.top+s.y)/l.y,c=r.width/l.x,d=r.height/l.y;if(n&&o){let f=Xe(n),g=Ct(o)?Xe(o):o,h=f,p=mn(h);for(;p&&g!==h;){let m=vo(p),x=p.getBoundingClientRect(),C=Lt(p),v=x.left+(p.clientLeft+parseFloat(C.paddingLeft))*m.x,L=x.top+(p.clientTop+parseFloat(C.paddingTop))*m.y;i*=m.x,u*=m.y,c*=m.x,d*=m.y,i+=v,u+=L,h=Xe(p),p=mn(h)}}return Da({width:c,height:d,x:i,y:u})}function gn(e,t){let a=pr(e).scrollLeft;return t?t.left+a:Ea(At(e)).left+a}function ac(e,t){let a=e.getBoundingClientRect(),o=a.left+t.scrollLeft-gn(e,a),r=a.top+t.scrollTop;return{x:o,y:r}}function Yh(e){let{elements:t,rect:a,offsetParent:o,strategy:r}=e,n=r==="fixed",l=At(o),s=t?fr(t.floating):!1;if(o===l||s&&n)return a;let i={scrollLeft:0,scrollTop:0},u=Dt(1),c=Dt(0),d=qt(o);if((d||!n)&&((Ta(o)!=="body"||cr(l))&&(i=pr(o)),d)){let g=Ea(o);u=vo(o),c.x=g.x+o.clientLeft,c.y=g.y+o.clientTop}let f=l&&!d&&!n?ac(l,i):Dt(0);return{width:a.width*u.x,height:a.height*u.y,x:a.x*u.x-i.scrollLeft*u.x+c.x+f.x,y:a.y*u.y-i.scrollTop*u.y+c.y+f.y}}function Zh(e){return e.getClientRects?Array.from(e.getClientRects()):[]}function Jh(e){let t=pr(e),a=e.ownerDocument.body,o=xt(e.scrollWidth,e.clientWidth,a.scrollWidth,a.clientWidth),r=xt(e.scrollHeight,e.clientHeight,a.scrollHeight,a.clientHeight),n=-t.scrollLeft+gn(e),l=-t.scrollTop;return Lt(a).direction==="rtl"&&(n+=xt(e.clientWidth,a.clientWidth)-o),{width:o,height:r,x:n,y:l}}var Qh=25;function ex(e,t,a){a===void 0&&(a="viewport");let o=a==="layoutViewport",r=Xe(e),n=At(e),l=r.visualViewport,s=n.clientWidth,i=n.clientHeight,u=0,c=0;if(l){let f=!pn()||t==="fixed";o?f||(u=-l.offsetLeft,c=-l.offsetTop):(s=l.width,i=l.height,f&&(u=l.offsetLeft,c=l.offsetTop))}if(gn(n)<=0){let f=n.ownerDocument,g=f.body,h=getComputedStyle(g),p=f.compatMode==="CSS1Compat"&&parseFloat(h.marginLeft)+parseFloat(h.marginRight)||0,m=Math.abs(n.clientWidth-g.clientWidth-p),x=getComputedStyle(n).scrollbarGutter==="stable both-edges"?m/2:m;x<=Qh&&(s-=x)}return{width:s,height:i,x:u,y:c}}function tx(e,t){let a=Ea(e,!0,t==="fixed"),o=a.top+e.clientTop,r=a.left+e.clientLeft,n=vo(e),l=e.clientWidth*n.x,s=e.clientHeight*n.y,i=r*n.x,u=o*n.y;return{width:l,height:s,x:i,y:u}}function Jd(e,t,a){let o;if(t==="viewport"||t==="layoutViewport")o=ex(e,a,t);else if(t==="document")o=Jh(At(e));else if(Ct(t))o=tx(t,a);else{let r=tc(e);o={x:t.x-r.x,y:t.y-r.y,width:t.width,height:t.height}}return Da(o)}function ax(e,t){let a=t.get(e);if(a)return a;let o=Aa(e,[],!1).filter(s=>Ct(s)&&Ta(s)!=="body"),r=null,n=Lt(e).position==="fixed",l=n?ta(e):e;for(;Ct(l)&&!xo(l);){let s=Lt(l),i=fn(l),u=r?r.position:n?"fixed":"";!i&&(u==="fixed"||u==="absolute"&&s.position==="static")?o=o.filter(d=>d!==l):r=s,l=ta(l)}return t.set(e,o),o}function ox(e){let{element:t,boundary:a,rootBoundary:o,strategy:r}=e,l=[...a==="clippingAncestors"?fr(t)?[]:ax(t,this._c):[].concat(a),o],s=Jd(t,l[0],r),i=s.top,u=s.right,c=s.bottom,d=s.left;for(let f=1;f<l.length;f++){let g=Jd(t,l[f],r);i=xt(g.top,i),u=kt(g.right,u),c=kt(g.bottom,c),d=xt(g.left,d)}return{width:u-d,height:c-i,x:d,y:i}}function rx(e){let{width:t,height:a}=ec(e);return{width:t,height:a}}function nx(e,t,a){let o=qt(t),r=At(t),n=a==="fixed",l=Ea(e,!0,n,t),s={scrollLeft:0,scrollTop:0},i=Dt(0);if((o||!n)&&((Ta(t)!=="body"||cr(r))&&(s=pr(t)),o)){let f=Ea(t,!0,n,t);i.x=f.x+t.clientLeft,i.y=f.y+t.clientTop}!o&&r&&(i.x=gn(r));let u=r&&!o&&!n?ac(r,s):Dt(0),c=l.left+s.scrollLeft-i.x-u.x,d=l.top+s.scrollTop-i.y-u.y;return{x:c,y:d,width:l.width,height:l.height}}function Ql(e){return Lt(e).position==="static"}function Qd(e,t){if(!qt(e)||Lt(e).position==="fixed")return null;if(t)return t(e);let a=e.offsetParent;return At(e)===a&&(a=a.ownerDocument.body),a}function oc(e,t){let a=Xe(e);if(fr(e))return a;if(!qt(e)){let r=ta(e);for(;r&&!xo(r);){if(Ct(r)&&!Ql(r))return r;r=ta(r)}return a}let o=Qd(e,t);for(;o&&$d(o)&&Ql(o);)o=Qd(o,t);return o&&xo(o)&&Ql(o)&&!fn(o)?a:o||Yd(e)||a}var lx=async function(e){let t=this.getOffsetParent||oc,a=this.getDimensions,o=await a(e.floating);return{reference:nx(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:o.width,height:o.height}}};function sx(e){return Lt(e).direction==="rtl"}var rc={convertOffsetParentRelativeRectToViewportRelativeRect:Yh,getDocumentElement:At,getClippingRect:ox,getOffsetParent:oc,getElementRects:lx,getClientRects:Zh,getDimensions:rx,getScale:vo,isElement:Ct,isRTL:sx};function nc(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function ix(e,t,a){let o=null,r,n=At(e);function l(){var c;clearTimeout(r),(c=o)==null||c.disconnect(),o=null}function s(c,d){c===void 0&&(c=!1),d===void 0&&(d=1),l();let f=e.getBoundingClientRect(),{left:g,top:h,width:p,height:m}=f;if(c||t(),!p||!m)return;let x=dr(h),C=dr(n.clientWidth-(g+p)),v=dr(n.clientHeight-(h+m)),L=dr(g),b={rootMargin:-x+"px "+-C+"px "+-v+"px "+-L+"px",threshold:xt(0,kt(1,d))||1},S=!0;function y(P){let T=P[0].intersectionRatio;if(!nc(f,e.getBoundingClientRect()))return s();if(T!==d){if(!S)return s();T?s(!1,T):r=setTimeout(()=>{s(!1,1e-7)},1e3)}S=!1}try{o=new IntersectionObserver(y,{...b,root:n.ownerDocument})}catch{o=new IntersectionObserver(y,b)}o.observe(e)}let i=Xe(e),u=()=>s(a);return i.addEventListener("resize",u),s(!0),()=>{i.removeEventListener("resize",u),l()}}function ts(e,t,a,o){o===void 0&&(o={});let{ancestorScroll:r=!0,ancestorResize:n=!0,elementResize:l=typeof ResizeObserver=="function",layoutShift:s=typeof IntersectionObserver=="function",animationFrame:i=!1}=o,u=es(e),c=r||n?[...u?Aa(u):[],...t?Aa(t):[]]:[];c.forEach(x=>{r&&x.addEventListener("scroll",a),n&&x.addEventListener("resize",a)});let d=u&&s?ix(u,a,n):null,f=-1,g=null;l&&(g=new ResizeObserver(x=>{let[C]=x;C&&C.target===u&&g&&t&&(g.unobserve(t),cancelAnimationFrame(f),f=requestAnimationFrame(()=>{var v;(v=g)==null||v.observe(t)})),a()}),u&&!i&&g.observe(u),t&&g.observe(t));let h,p=i?Ea(e):null;i&&m();function m(){let x=Ea(e);p&&!nc(p,x)&&a(),p=x,h=requestAnimationFrame(m)}return a(),()=>{var x;c.forEach(C=>{r&&C.removeEventListener("scroll",a),n&&C.removeEventListener("resize",a)}),d?.(),(x=g)==null||x.disconnect(),g=null,i&&cancelAnimationFrame(h)}}var lc=Wd;var sc=Gd,ic=Ud,uc=Kd,dc=qd,as=Hd;var cc=zd,os=(e,t,a)=>{let o=new Map,r=a??{},n={...rc,...r.platform,_c:o};return _d(e,t,{...r,platform:n})};var Se=U(require("react"),1),pc=require("react"),mc=U(require("react-dom"),1),ux=typeof document<"u",dx=function(){},hn=ux?pc.useLayoutEffect:dx;function xn(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 a,o,r;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(a=e.length,a!==t.length)return!1;for(o=a;o--!==0;)if(!xn(e[o],t[o]))return!1;return!0}if(r=Object.keys(e),a=r.length,a!==Object.keys(t).length)return!1;for(o=a;o--!==0;)if(!{}.hasOwnProperty.call(t,r[o]))return!1;for(o=a;o--!==0;){let n=r[o];if(!(n==="_owner"&&e.$$typeof)&&!xn(e[n],t[n]))return!1}return!0}return e!==e&&t!==t}function gc(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function fc(e,t){let a=gc(e);return Math.round(t*a)/a}function rs(e){let t=Se.useRef(e);return hn(()=>{t.current=e}),t}function hc(e){e===void 0&&(e={});let{placement:t="bottom",strategy:a="absolute",middleware:o=[],platform:r,elements:{reference:n,floating:l}={},transform:s=!0,whileElementsMounted:i,open:u}=e,[c,d]=Se.useState({x:0,y:0,strategy:a,placement:t,middlewareData:{},isPositioned:!1}),[f,g]=Se.useState(o);xn(f,o)||g(o);let[h,p]=Se.useState(null),[m,x]=Se.useState(null),C=Se.useCallback(_=>{_!==b.current&&(b.current=_,p(_))},[]),v=Se.useCallback(_=>{_!==S.current&&(S.current=_,x(_))},[]),L=n||h,I=l||m,b=Se.useRef(null),S=Se.useRef(null),y=Se.useRef(c),P=i!=null,T=rs(i),M=rs(r),E=rs(u),N=Se.useCallback(()=>{if(!b.current||!S.current)return;let _={placement:t,strategy:a,middleware:f};M.current&&(_.platform=M.current),os(b.current,S.current,_).then(G=>{let A={...G,isPositioned:E.current!==!1};H.current&&!xn(y.current,A)&&(y.current=A,mc.flushSync(()=>{d(A)}))})},[f,t,a,M,E]);hn(()=>{u===!1&&y.current.isPositioned&&(y.current.isPositioned=!1,d(_=>({..._,isPositioned:!1})))},[u]);let H=Se.useRef(!1);hn(()=>(H.current=!0,()=>{H.current=!1}),[]),hn(()=>{if(L&&(b.current=L),I&&(S.current=I),L&&I){if(T.current)return T.current(L,I,N);N()}},[L,I,N,T,P]);let Q=Se.useMemo(()=>({reference:b,floating:S,setReference:C,setFloating:v}),[C,v]),$=Se.useMemo(()=>({reference:L,floating:I}),[L,I]),O=Se.useMemo(()=>{let _={position:a,left:0,top:0};if(!$.floating)return _;let G=fc($.floating,c.x),A=fc($.floating,c.y);return s?{..._,transform:"translate("+G+"px, "+A+"px)",...gc($.floating)>=1.5&&{willChange:"transform"}}:{position:a,left:G,top:A}},[a,s,$.floating,c.x,c.y]);return Se.useMemo(()=>({...c,update:N,refs:Q,elements:$,floatingStyles:O}),[c,N,Q,$,O])}var cx=e=>{function t(a){return{}.hasOwnProperty.call(a,"current")}return{name:"arrow",options:e,fn(a){let{element:o,padding:r}=typeof e=="function"?e(a):e;return o&&t(o)?o.current!=null?as({element:o.current,padding:r}).fn(a):{}:o?as({element:o,padding:r}).fn(a):{}}}},xc=(e,t)=>{let a=lc(e);return{name:a.name,fn:a.fn,options:[e,t]}},vc=(e,t)=>{let a=sc(e);return{name:a.name,fn:a.fn,options:[e,t]}},Cc=(e,t)=>({fn:cc(e).fn,options:[e,t]}),Lc=(e,t)=>{let a=ic(e);return{name:a.name,fn:a.fn,options:[e,t]}},bc=(e,t)=>{let a=uc(e);return{name:a.name,fn:a.fn,options:[e,t]}};var Ic=(e,t)=>{let a=dc(e);return{name:a.name,fn:a.fn,options:[e,t]}};var wc=(e,t)=>{let a=cx(e);return{name:a.name,fn:a.fn,options:[e,t]}};var Sc=U(require("react"),1);var fx=Object.defineProperty,px=(e,t)=>fx(e,"name",{value:t,configurable:!0});function ns(e){let[t,a]=Sc.useState(void 0);return se(()=>{if(e){a({width:e.offsetWidth,height:e.offsetHeight});let o=new ResizeObserver(r=>{if(!Array.isArray(r)||!r.length)return;let n=r[0],l,s;if("borderBoxSize"in n){let i=n.borderBoxSize,u=Array.isArray(i)?i[0]:i;l=u.inlineSize,s=u.blockSize}else l=e.offsetWidth,s=e.offsetHeight;a({width:l,height:s})});return o.observe(e,{box:"border-box"}),()=>o.unobserve(e)}else a(void 0)},[e]),t}px(ns,"useSize");var Co=require("react/jsx-runtime"),mx=Object.defineProperty,aa=(e,t)=>mx(e,"name",{value:t,configurable:!0});var yc="Popper",[Rc,Lo]=Be(yc),[gx,Pc]=Rc(yc),hx=aa(e=>{let{__scopePopper:t,children:a}=e,[o,r]=We.useState(null),[n,l]=We.useState(void 0);return(0,Co.jsx)(gx,{scope:t,anchor:o,onAnchorChange:r,placementState:n,setPlacementState:l,children:a})},"Popper"),xx="PopperAnchor",vx=We.forwardRef(aa(function(t,a){let{__scopePopper:o,virtualRef:r,...n}=t,l=Pc(xx,o),s=We.useRef(null),i=l.onAnchorChange,u=We.useCallback(p=>{s.current=p,p&&i(p)},[i]),c=ee(a,u),d=We.useRef(null);We.useEffect(()=>{if(!r)return;let p=d.current;d.current=r.current,p!==d.current&&i(d.current)});let f=l.placementState&&vn(l.placementState),g=f?.[0],h=f?.[1];return r?null:(0,Co.jsx)(oe.div,{"data-radix-popper-side":g,"data-radix-popper-align":h,...n,ref:c})},"PopperAnchor")),kc="PopperContent",[Cx,bw]=Rc(kc),Lx=We.forwardRef(aa(function(t,a){let{__scopePopper:o,side:r="bottom",sideOffset:n=0,align:l="center",alignOffset:s=0,arrowPadding:i=0,avoidCollisions:u=!0,collisionBoundary:c=[],collisionPadding:d=0,sticky:f="partial",hideWhenDetached:g=!1,updatePositionStrategy:h="optimized",onPlaced:p,...m}=t,x=Pc(kc,o),[C,v]=We.useState(null),L=ee(a,v),[I,b]=We.useState(null),S=ns(I),y=S?.width??0,P=S?.height??0,T=r+(l!=="center"?"-"+l:""),M=typeof d=="number"?d:{top:0,right:0,bottom:0,left:0,...d},E=Array.isArray(c)?c:[c],N=E.length>0,H={padding:M,boundary:E.filter(Dc),altBoundary:N},{refs:Q,floatingStyles:$,placement:O,isPositioned:_,middlewareData:G}=hc({strategy:"fixed",placement:T,whileElementsMounted:aa((...X)=>ts(...X,{animationFrame:h==="always"}),"whileElementsMounted"),elements:{reference:x.anchor},middleware:[xc({mainAxis:n+P,alignmentAxis:s}),u&&vc({mainAxis:!0,crossAxis:!1,limiter:f==="partial"?Cc():void 0,...H}),u&&Lc({...H}),bc({...H,apply:aa(({elements:X,rects:B,availableWidth:j,availableHeight:Y})=>{let{width:te,height:xe}=B.reference,ye=X.floating.style;ye.setProperty("--radix-popper-available-width",`${j}px`),ye.setProperty("--radix-popper-available-height",`${Y}px`),ye.setProperty("--radix-popper-anchor-width",`${te}px`),ye.setProperty("--radix-popper-anchor-height",`${xe}px`)},"apply")}),I&&wc({element:I,padding:i}),bx({arrowWidth:y,arrowHeight:P}),g&&Ic({strategy:"referenceHidden",...H,boundary:N?H.boundary:void 0})]}),A=x.setPlacementState;se(()=>(A(O),()=>{A(void 0)}),[O,A]);let[me,J]=vn(O),le=Me(p);se(()=>{_&&le?.()},[_,le]);let he=G.arrow?.x,R=G.arrow?.y,F=G.arrow?.centerOffset!==0,[W,k]=We.useState();return se(()=>{C&&k(window.getComputedStyle(C).zIndex)},[C]),(0,Co.jsx)("div",{ref:Q.setFloating,"data-radix-popper-content-wrapper":"",style:{...$,transform:_?$.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:W,"--radix-popper-transform-origin":[G.transformOrigin?.x,G.transformOrigin?.y].join(" "),...G.hide?.referenceHidden&&{visibility:"hidden",pointerEvents:"none"}},dir:t.dir,children:(0,Co.jsx)(Cx,{scope:o,placedSide:me,placedAlign:J,onArrowChange:b,arrowX:he,arrowY:R,shouldHideArrow:F,children:(0,Co.jsx)(oe.div,{"data-side":me,"data-align":J,...m,ref:L,style:{...m.style,animation:_?m.style?.animation:"none"}})})})},"PopperContent"));function Dc(e){return e!==null}aa(Dc,"isNotNull");var bx=aa(e=>({name:"transformOrigin",options:e,fn(t){let{placement:a,rects:o,middlewareData:r}=t,l=r.arrow?.centerOffset!==0,s=l?0:e.arrowWidth,i=l?0:e.arrowHeight,[u,c]=vn(a),d={start:"0%",center:"50%",end:"100%"}[c],f=(r.arrow?.x??0)+s/2,g=(r.arrow?.y??0)+i/2,h="",p="";return u==="bottom"?(h=l?d:`${f}px`,p=`${-i}px`):u==="top"?(h=l?d:`${f}px`,p=`${o.floating.height+i}px`):u==="right"?(h=`${-i}px`,p=l?d:`${g}px`):u==="left"&&(h=`${o.floating.width+i}px`,p=l?d:`${g}px`),{data:{x:h,y:p}}}}),"transformOrigin");function vn(e){let[t,a="center"]=e.split("-");return[t,a]}aa(vn,"getSideAndAlignFromPlacement");var Cn=hx,Ln=vx,bn=Lx;var Ee=U(require("react"),1);var wx=U(require("react"),1),In=U(require("react"),1),Ix=Object.defineProperty,ss=(e,t)=>Ix(e,"name",{value:t,configurable:!0}),ls=!1;function Ac(){let[e,t]=In.useState(ls);return In.useEffect(()=>{ls||(ls=!0,t(!0))},[]),e}ss(Ac,"useIsHydrated");var Tc=wx[" useSyncExternalStore ".trim().toString()];function Ec(){return()=>{}}ss(Ec,"subscribe");function Oc(){return Tc(Ec,()=>!0,()=>!1)}ss(Oc,"useIsHydratedModern");var Fc=typeof Tc=="function"?Oc:Ac;var oa=require("react/jsx-runtime"),Sx=Object.defineProperty,Oa=(e,t)=>Sx(e,"name",{value:t,configurable:!0}),is="rovingFocusGroup.onEntryFocus",yx={bubbles:!1,cancelable:!0},wn="RovingFocusGroup",[us,Bc,Rx]=Ra(wn),[Px,ds]=Be(wn,[Rx]),[kx,Dx]=Px(wn),Mx=Ee.forwardRef(Oa(function(t,a){return(0,oa.jsx)(us.Provider,{scope:t.__scopeRovingFocusGroup,children:(0,oa.jsx)(us.Slot,{scope:t.__scopeRovingFocusGroup,children:(0,oa.jsx)(Ax,{...t,ref:a})})})},"RovingFocusGroup")),Ax=Ee.forwardRef(Oa(function(t,a){let{__scopeRovingFocusGroup:o,orientation:r,loop:n=!1,dir:l,currentTabStopId:s,defaultCurrentTabStopId:i,onCurrentTabStopIdChange:u,onEntryFocus:c,preventScrollOnEntryFocus:d=!1,...f}=t,g=Ee.useRef(null),h=ee(a,g),p=Pa(l),[m,x]=Rt({prop:s,defaultProp:i??null,onChange:u,caller:wn}),[C,v]=Ee.useState(!1),L=Me(c),I=Bc(o),b=Ee.useRef(!1),[S,y]=Ee.useState(0);return Ee.useEffect(()=>{let P=g.current;if(P)return P.addEventListener(is,L),()=>P.removeEventListener(is,L)},[L]),(0,oa.jsx)(kx,{scope:o,orientation:r,dir:p,loop:n,currentTabStopId:m,onItemFocus:Ee.useCallback(P=>x(P),[x]),onItemShiftTab:Ee.useCallback(()=>v(!0),[]),onFocusableItemAdd:Ee.useCallback(()=>y(P=>P+1),[]),onFocusableItemRemove:Ee.useCallback(()=>y(P=>P-1),[]),children:(0,oa.jsx)(oe.div,{tabIndex:C||S===0?-1:0,"data-orientation":r,...f,ref:h,style:{outline:"none",...t.style},onMouseDown:q(t.onMouseDown,()=>{b.current=!0}),onFocus:q(t.onFocus,P=>{let T=!b.current;if(P.target===P.currentTarget&&T&&!C){let M=new CustomEvent(is,yx);if(P.currentTarget.dispatchEvent(M),!M.defaultPrevented){let E=I().filter(O=>O.focusable),N=E.find(O=>O.active),H=E.find(O=>O.id===m),$=[N,H,...E].filter(Boolean).map(O=>O.ref.current);cs($,d)}}b.current=!1}),onBlur:q(t.onBlur,()=>v(!1))})})},"RovingFocusGroupImpl")),Tx="RovingFocusGroupItem",Ex=Ee.forwardRef(Oa(function(t,a){let{__scopeRovingFocusGroup:o,focusable:r=!0,active:n=!1,tabStopId:l,children:s,...i}=t,u=tt(),c=l||u,d=Dx(Tx,o),f=d.currentTabStopId===c,g=Bc(o),{onFocusableItemAdd:h,onFocusableItemRemove:p,currentTabStopId:m}=d,x=Fc();return se(()=>{if(!(!x||!r))return h(),()=>p()},[x,r,h,p]),Ee.useEffect(()=>{if(!(x||!r))return h(),()=>p()},[x,r,h,p]),(0,oa.jsx)(us.ItemSlot,{scope:o,id:c,focusable:r,active:n,children:(0,oa.jsx)(oe.span,{tabIndex:f?0:-1,"data-orientation":d.orientation,...i,ref:a,onMouseDown:q(t.onMouseDown,C=>{r?d.onItemFocus(c):C.preventDefault()}),onFocus:q(t.onFocus,()=>d.onItemFocus(c)),onKeyDown:q(t.onKeyDown,C=>{if(C.key==="Tab"&&C.shiftKey){d.onItemShiftTab();return}if(C.target!==C.currentTarget)return;let v=_c(C,d.orientation,d.dir);if(v!==void 0){if(C.metaKey||C.ctrlKey||C.altKey||C.shiftKey)return;C.preventDefault();let I=g().filter(b=>b.focusable).map(b=>b.ref.current);if(v==="last")I.reverse();else if(v==="prev"||v==="next"){v==="prev"&&I.reverse();let b=I.indexOf(C.currentTarget);I=d.loop?Hc(I,b+1):I.slice(b+1)}setTimeout(()=>cs(I))}}),children:typeof s=="function"?s({isCurrentTabStop:f,hasTabStop:m!=null}):s})})},"RovingFocusGroupItem")),Ox={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function Nc(e,t){return t!=="rtl"?e:e==="ArrowLeft"?"ArrowRight":e==="ArrowRight"?"ArrowLeft":e}Oa(Nc,"getDirectionAwareKey");function _c(e,t,a){let o=Nc(e.key,a);if(!(t==="vertical"&&["ArrowLeft","ArrowRight"].includes(o))&&!(t==="horizontal"&&["ArrowUp","ArrowDown"].includes(o)))return Ox[o]}Oa(_c,"getFocusIntent");function cs(e,t=!1){let a=document.activeElement;for(let o of e)if(o===a||(o.focus({preventScroll:t}),document.activeElement!==a))return}Oa(cs,"focusFirst");function Hc(e,t){return e.map((a,o)=>e[(t+o)%e.length])}Oa(Hc,"wrapArray");var Uc=Mx,qc=Ex;var de=require("react/jsx-runtime"),Nx=Object.defineProperty,ce=(e,t)=>Nx(e,"name",{value:t,configurable:!0}),fs=["Enter"," "],_x=["ArrowDown","PageUp","Home"],Wc=["ArrowUp","PageDown","End"],Hx=[..._x,...Wc],Zw={ltr:[...fs,"ArrowRight"],rtl:[...fs,"ArrowLeft"]};var yn="Menu",[ps,Ux,qx]=Ra(yn),[Fa,gs]=Be(yn,[qx,Lo,ds]),hs=Lo(),Gc=ds(),[Vx,mr]=Fa(yn),[Wx,xs]=Fa(yn),Gx=ce(e=>{let{__scopeMenu:t,open:a=!1,children:o,dir:r,onOpenChange:n,modal:l=!0}=e,s=hs(t),[i,u]=Z.useState(null),c=Z.useRef(!1),d=Me(n),f=Pa(r);return Z.useEffect(()=>{let g=ce(()=>{c.current=!0,document.addEventListener("pointerdown",h,{capture:!0,once:!0}),document.addEventListener("pointermove",h,{capture:!0,once:!0})},"handleKeyDown"),h=ce(()=>c.current=!1,"handlePointer");return document.addEventListener("keydown",g,{capture:!0}),()=>{document.removeEventListener("keydown",g,{capture:!0}),document.removeEventListener("pointerdown",h,{capture:!0}),document.removeEventListener("pointermove",h,{capture:!0})}},[]),Z.useEffect(()=>{if(!a)return;let g=ce(()=>d(!1),"handleBlur");return window.addEventListener("blur",g),()=>window.removeEventListener("blur",g)},[a,d]),(0,de.jsx)(Cn,{...s,children:(0,de.jsx)(Vx,{scope:t,open:a,onOpenChange:d,content:i,onContentChange:u,children:(0,de.jsx)(Wx,{scope:t,onClose:Z.useCallback(()=>d(!1),[d]),isUsingKeyboardRef:c,dir:f,modal:l,children:o})})})},"Menu"),zx=Z.forwardRef(ce(function(t,a){let{__scopeMenu:o,...r}=t,n=hs(o);return(0,de.jsx)(Ln,{...n,...r,ref:a})},"MenuAnchor")),zc="MenuPortal",[Kx,Xx]=Fa(zc,{forceMount:void 0}),jx=ce(e=>{let{__scopeMenu:t,forceMount:a,children:o,container:r}=e,n=mr(zc,t);return(0,de.jsx)(Kx,{scope:t,forceMount:a,children:(0,de.jsx)(Ht,{present:a||n.open,children:(0,de.jsx)(lo,{asChild:!0,container:r,children:o})})})},"MenuPortal"),ra="MenuContent",[$x,Kc]=Fa(ra),Yx=Z.forwardRef(ce(function(t,a){let o=Xx(ra,t.__scopeMenu),{forceMount:r=o.forceMount,...n}=t,l=mr(ra,t.__scopeMenu),s=xs(ra,t.__scopeMenu);return(0,de.jsx)(ps.Provider,{scope:t.__scopeMenu,children:(0,de.jsx)(Ht,{present:r||l.open,children:(0,de.jsx)(ps.Slot,{scope:t.__scopeMenu,children:s.modal?(0,de.jsx)(Zx,{...n,ref:a}):(0,de.jsx)(Jx,{...n,ref:a})})})})},"MenuContent")),Zx=Z.forwardRef(ce(function(t,a){let o=mr(ra,t.__scopeMenu),r=Z.useRef(null),n=ee(a,r);return Z.useEffect(()=>{let l=r.current;if(l)return mo(l)},[]),(0,de.jsx)(Xc,{...t,ref:n,trapFocus:o.open,disableOutsidePointerEvents:o.open,disableOutsideScroll:!0,onFocusOutside:q(t.onFocusOutside,l=>l.preventDefault(),{checkForDefaultPrevented:!1}),onDismiss:()=>o.onOpenChange(!1)})},"MenuRootContentModal")),Jx=Z.forwardRef(ce(function(t,a){let o=mr(ra,t.__scopeMenu);return(0,de.jsx)(Xc,{...t,ref:a,trapFocus:!1,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,onDismiss:()=>o.onOpenChange(!1)})},"MenuRootContentNonModal")),Qx=qe("MenuContent.ScrollLock"),Xc=Z.forwardRef(ce(function(t,a){let{__scopeMenu:o,loop:r=!1,trapFocus:n,onOpenAutoFocus:l,onCloseAutoFocus:s,disableOutsidePointerEvents:i,onEntryFocus:u,onEscapeKeyDown:c,onPointerDownOutside:d,onFocusOutside:f,onInteractOutside:g,onDismiss:h,disableOutsideScroll:p,...m}=t,x=mr(ra,o),C=xs(ra,o),v=hs(o),L=Gc(o),I=Ux(o),[b,S]=Z.useState(null),y=Z.useRef(null),P=ee(a,y,x.onContentChange),T=Z.useRef(0),M=Z.useRef(""),E=Z.useRef(0),N=Z.useRef(null),H=Z.useRef("right"),Q=Z.useRef(0),$=p?La:Z.Fragment,O=p?{as:Qx,allowPinchZoom:!0}:void 0,_=ce(A=>{let me=M.current+A,J=I().filter(k=>!k.disabled),le=document.activeElement,he=J.find(k=>k.ref.current===le)?.textValue,R=J.map(k=>k.textValue),F=Jc(R,me,he),W=J.find(k=>k.textValue===F)?.ref.current;ce((function k(X){M.current=X,window.clearTimeout(T.current),X!==""&&(T.current=window.setTimeout(()=>k(""),1e3))}),"updateSearch")(me),W&&setTimeout(()=>W.focus())},"handleTypeaheadSearch");Z.useEffect(()=>()=>window.clearTimeout(T.current),[]),ea();let G=Z.useCallback(A=>H.current===N.current?.side&&ef(A,N.current?.area),[]);return(0,de.jsx)($x,{scope:o,searchRef:M,onItemEnter:Z.useCallback(A=>{G(A)&&A.preventDefault()},[G]),onItemLeave:Z.useCallback(A=>{G(A)||(y.current?.focus(),S(null))},[G]),onTriggerLeave:Z.useCallback(A=>{G(A)&&A.preventDefault()},[G]),pointerGraceTimerRef:E,onPointerGraceIntentChange:Z.useCallback(A=>{N.current=A},[]),children:(0,de.jsx)($,{...O,children:(0,de.jsx)(no,{asChild:!0,trapped:n,onMountAutoFocus:q(l,A=>{A.preventDefault(),y.current?.focus({preventScroll:!0})}),onUnmountAutoFocus:s,children:(0,de.jsx)(ro,{asChild:!0,disableOutsidePointerEvents:i,onEscapeKeyDown:c,onPointerDownOutside:d,onFocusOutside:f,onInteractOutside:g,onDismiss:h,children:(0,de.jsx)(Uc,{asChild:!0,...L,dir:C.dir,orientation:"vertical",loop:r,currentTabStopId:b,onCurrentTabStopIdChange:S,onEntryFocus:q(u,A=>{C.isUsingKeyboardRef.current||A.preventDefault()}),preventScrollOnEntryFocus:!0,children:(0,de.jsx)(bn,{role:"menu","aria-orientation":"vertical","data-state":jc(x.open),"data-radix-menu-content":"",dir:C.dir,...v,...m,ref:P,style:{outline:"none",...m.style},onKeyDown:q(m.onKeyDown,A=>{let J=A.target.closest("[data-radix-menu-content]")===A.currentTarget,le=A.ctrlKey||A.altKey||A.metaKey,he=A.key.length===1;J&&(A.key==="Tab"&&A.preventDefault(),!le&&he&&_(A.key));let R=y.current;if(A.target!==R||!Hx.includes(A.key))return;A.preventDefault();let W=I().filter(k=>!k.disabled).map(k=>k.ref.current);Wc.includes(A.key)&&W.reverse(),Yc(W)}),onBlur:q(t.onBlur,A=>{A.currentTarget.contains(A.target)||(window.clearTimeout(T.current),M.current="")}),onPointerMove:q(t.onPointerMove,Sn(A=>{let me=A.target,J=Q.current!==A.clientX;if(A.currentTarget.contains(me)&&J){let le=A.clientX>Q.current?"right":"left";H.current=le,Q.current=A.clientX}}))})})})})})})},"MenuContentImpl"));var ev=Z.forwardRef(ce(function(t,a){let{__scopeMenu:o,...r}=t;return(0,de.jsx)(oe.div,{...r,ref:a})},"MenuLabel")),ms="MenuItem",Vc="menu.itemSelect",tv=Z.forwardRef(ce(function(t,a){let{disabled:o=!1,onSelect:r,...n}=t,l=Z.useRef(null),s=xs(ms,t.__scopeMenu),i=Kc(ms,t.__scopeMenu),u=ee(a,l),c=Z.useRef(!1),d=ce(()=>{let f=l.current;if(!o&&f){let g=new CustomEvent(Vc,{bubbles:!0,cancelable:!0});f.addEventListener(Vc,h=>r?.(h),{once:!0}),er(f,g),g.defaultPrevented?c.current=!1:s.onClose()}},"handleSelect");return(0,de.jsx)(av,{...n,ref:u,disabled:o,onClick:q(t.onClick,d),onPointerDown:f=>{t.onPointerDown?.(f),c.current=!0},onPointerUp:q(t.onPointerUp,f=>{c.current||f.currentTarget?.click()}),onKeyDown:q(t.onKeyDown,f=>{o||f.target!==f.currentTarget||i.searchRef.current!==""&&f.key===" "||fs.includes(f.key)&&(f.currentTarget.click(),f.preventDefault())})})},"MenuItem")),av=Z.forwardRef(ce(function(t,a){let{__scopeMenu:o,disabled:r=!1,textValue:n,...l}=t,s=Kc(ms,o),i=Gc(o),u=Z.useRef(null),c=ee(a,u),[d,f]=Z.useState(!1),[g,h]=Z.useState("");return Z.useEffect(()=>{let p=u.current;p&&h((p.textContent??"").trim())},[l.children]),(0,de.jsx)(ps.ItemSlot,{scope:o,disabled:r,textValue:n??g,children:(0,de.jsx)(qc,{asChild:!0,...i,focusable:!r,children:(0,de.jsx)(oe.div,{role:"menuitem","data-highlighted":d?"":void 0,"aria-disabled":r||void 0,"data-disabled":r?"":void 0,...l,ref:c,onPointerMove:q(t.onPointerMove,Sn(p=>{r?s.onItemLeave(p):(s.onItemEnter(p),p.defaultPrevented||p.currentTarget.focus({preventScroll:!0}))})),onPointerLeave:q(t.onPointerLeave,Sn(p=>s.onItemLeave(p))),onFocus:q(t.onFocus,()=>f(!0)),onBlur:q(t.onBlur,()=>f(!1))})})})},"MenuItemImpl"));var ov="MenuRadioGroup",[Jw,Qw]=Fa(ov,{value:void 0,onValueChange:ce(()=>{},"onValueChange")});var rv="MenuItemIndicator",[eS,tS]=Fa(rv,{checked:!1});var nv=Z.forwardRef(ce(function(t,a){let{__scopeMenu:o,...r}=t;return(0,de.jsx)(oe.div,{role:"separator","aria-orientation":"horizontal",...r,ref:a})},"MenuSeparator"));var lv="MenuSub",[aS,oS]=Fa(lv);function jc(e){return e?"open":"closed"}ce(jc,"getOpenState");function $c(e){return e==="indeterminate"}ce($c,"isIndeterminate");function sv(e){return $c(e)?"indeterminate":e?"checked":"unchecked"}ce(sv,"getCheckedState");function Yc(e){let t=document.activeElement;for(let a of e)if(a===t||(a.focus(),document.activeElement!==t))return}ce(Yc,"focusFirst");function Zc(e,t){return e.map((a,o)=>e[(t+o)%e.length])}ce(Zc,"wrapArray");function Jc(e,t,a){let r=t.length>1&&Array.from(t).every(u=>u===t[0])?t[0]:t,n=a?e.indexOf(a):-1,l=Zc(e,Math.max(n,0));r.length===1&&(l=l.filter(u=>u!==a));let i=l.find(u=>u.toLowerCase().startsWith(r.toLowerCase()));return i!==a?i:void 0}ce(Jc,"getNextMatch");function Qc(e,t){let{x:a,y:o}=e,r=!1;for(let n=0,l=t.length-1;n<t.length;l=n++){let s=t[n],i=t[l],u=s.x,c=s.y,d=i.x,f=i.y;c>o!=f>o&&a<(d-u)*(o-c)/(f-c)+u&&(r=!r)}return r}ce(Qc,"isPointInPolygon");function ef(e,t){if(!t)return!1;let a={x:e.clientX,y:e.clientY};return Qc(a,t)}ce(ef,"isPointerInGraceArea");function Sn(e){return t=>t.pointerType==="mouse"?e(t):void 0}ce(Sn,"whenMouse");var tf=Gx,af=zx,of=jx,rf=Yx;var nf=ev,lf=tv;var sf=nv;var Tt=require("react/jsx-runtime"),uv=Object.defineProperty,Ba=(e,t)=>uv(e,"name",{value:t,configurable:!0}),vs="DropdownMenu",[dv,LS]=Be(vs,[gs]),Na=gs(),[cv,uf]=dv(vs),fv=Ba(e=>{let{__scopeDropdownMenu:t,children:a,dir:o,open:r,defaultOpen:n,onOpenChange:l,modal:s=!0}=e,i=Na(t),u=bt.useRef(null),[c,d]=Rt({prop:r,defaultProp:n??!1,onChange:l,caller:vs});return(0,Tt.jsx)(cv,{scope:t,triggerId:tt(),triggerRef:u,contentId:tt(),open:c,onOpenChange:d,onOpenToggle:bt.useCallback(()=>d(f=>!f),[d]),modal:s,children:(0,Tt.jsx)(tf,{...i,open:c,onOpenChange:d,dir:o,modal:s,children:a})})},"DropdownMenu"),pv="DropdownMenuTrigger",mv=bt.forwardRef(Ba(function(t,a){let{__scopeDropdownMenu:o,disabled:r=!1,...n}=t,l=uf(pv,o),s=Na(o),i=ee(a,l.triggerRef);return(0,Tt.jsx)(af,{asChild:!0,...s,children:(0,Tt.jsx)(oe.button,{type:"button",id:l.triggerId,"aria-haspopup":"menu","aria-expanded":l.open,"aria-controls":l.open?l.contentId:void 0,"data-state":l.open?"open":"closed","data-disabled":r?"":void 0,disabled:r,...n,ref:i,onPointerDown:q(t.onPointerDown,u=>{!r&&u.button===0&&u.ctrlKey===!1&&(l.onOpenToggle(),l.open||u.preventDefault())}),onKeyDown:q(t.onKeyDown,u=>{r||(["Enter"," "].includes(u.key)&&l.onOpenToggle(),u.key==="ArrowDown"&&l.onOpenChange(!0),["Enter"," ","ArrowDown"].includes(u.key)&&u.preventDefault())})})})},"DropdownMenuTrigger")),gv=Ba(e=>{let{__scopeDropdownMenu:t,...a}=e,o=Na(t);return(0,Tt.jsx)(of,{...o,...a})},"DropdownMenuPortal"),hv="DropdownMenuContent",xv=bt.forwardRef(Ba(function(t,a){let{__scopeDropdownMenu:o,...r}=t,n=uf(hv,o),l=Na(o),s=bt.useRef(!1);return(0,Tt.jsx)(rf,{id:n.contentId,"aria-labelledby":n.triggerId,...l,...r,ref:a,onCloseAutoFocus:q(t.onCloseAutoFocus,i=>{s.current||n.triggerRef.current?.focus(),s.current=!1,i.preventDefault()}),onInteractOutside:q(t.onInteractOutside,i=>{let u=i.detail.originalEvent,c=u.button===0&&u.ctrlKey===!0,d=u.button===2||c;(!n.modal||d)&&(s.current=!0)}),style:{...t.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}})},"DropdownMenuContent"));var vv=bt.forwardRef(Ba(function(t,a){let{__scopeDropdownMenu:o,...r}=t,n=Na(o);return(0,Tt.jsx)(nf,{...n,...r,ref:a})},"DropdownMenuLabel")),Cv=bt.forwardRef(Ba(function(t,a){let{__scopeDropdownMenu:o,...r}=t,n=Na(o);return(0,Tt.jsx)(lf,{...n,...r,ref:a})},"DropdownMenuItem"));var Lv=bt.forwardRef(Ba(function(t,a){let{__scopeDropdownMenu:o,...r}=t,n=Na(o);return(0,Tt.jsx)(sf,{...n,...r,ref:a})},"DropdownMenuSeparator"));var df=fv,cf=mv,ff=gv,Cs=xv;var Ls=vv,bs=Cv;var Is=Lv;var bo=require("react/jsx-runtime"),hr=df,xr=cf;var Io=gr.forwardRef(({className:e,sideOffset:t=4,...a},o)=>(0,bo.jsx)(ff,{children:(0,bo.jsx)(Cs,{ref:o,sideOffset:t,className:ae("kanban-portal kanban-dropdown-content",e),...a})}));Io.displayName=Cs.displayName;var Vt=gr.forwardRef(({className:e,inset:t,...a},o)=>(0,bo.jsx)(bs,{ref:o,className:ae("kanban-dropdown-item",t&&"kanban-dropdown-item--inset",e),...a}));Vt.displayName=bs.displayName;var Iv=gr.forwardRef(({className:e,inset:t,...a},o)=>(0,bo.jsx)(Ls,{ref:o,className:ae("kanban-dropdown-label",t&&"kanban-dropdown-label--inset",e),...a}));Iv.displayName=Ls.displayName;var wv=gr.forwardRef(({className:e,...t},a)=>(0,bo.jsx)(Is,{ref:a,className:ae("kanban-dropdown-separator",e),...t}));wv.displayName=Is.displayName;var pf=U(require("react"),1);var mf=require("react/jsx-runtime"),Wt=pf.forwardRef(({className:e,type:t,...a},o)=>(0,mf.jsx)("input",{type:t,className:ae("kanban-input",e),ref:o,...a}));Wt.displayName="Input";var xf=U(require("react"),1);var gf=U(require("react"),1);var hf=require("react/jsx-runtime"),Sv=Object.defineProperty,yv=(e,t)=>Sv(e,"name",{value:t,configurable:!0}),Rv=gf.forwardRef(yv(function(t,a){return(0,hf.jsx)(oe.label,{...t,ref:a,onMouseDown:o=>{o.target.closest("button, input, select, textarea")||(t.onMouseDown?.(o),!o.defaultPrevented&&o.detail>1&&o.preventDefault())}})},"Label")),ws=Rv;var vf=require("react/jsx-runtime"),_a=xf.forwardRef(({className:e,...t},a)=>(0,vf.jsx)(ws,{ref:a,className:ae("kanban-label",e),...t}));_a.displayName=ws.displayName;var la=U(require("react"),1);var D=U(require("react"),1),Rs=U(require("react-dom"),1);var kv=Object.defineProperty,Dv=(e,t)=>kv(e,"name",{value:t,configurable:!0});function Rn(e,[t,a]){return Math.min(a,Math.max(t,e))}Dv(Rn,"clamp");var Pn=U(require("react"),1),Mv=Object.defineProperty,Av=(e,t)=>Mv(e,"name",{value:t,configurable:!0});function Ss(e){let t=Pn.useRef({value:e,previous:e});return Pn.useMemo(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}Av(Ss,"usePrevious");var Tv=U(require("react"),1);var Ev=require("react/jsx-runtime");var Cf=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"});var V=require("react/jsx-runtime"),Ov=Object.defineProperty,ne=(e,t)=>Ov(e,"name",{value:t,configurable:!0}),Fv=[" ","Enter","ArrowUp","ArrowDown"],Bv=[" ","Enter"],wo="Select",[Dn,Mn,Nv]=Ra(wo),[Ua,ey]=Be(wo,[Nv,Lo]),Ps=Lo(),[_v,na]=Ua(wo),[Hv,Uv]=Ua(wo);function Sf(e){let{__scopeSelect:t,children:a,open:o,defaultOpen:r,onOpenChange:n,value:l,defaultValue:s,onValueChange:i,dir:u,name:c,autoComplete:d,disabled:f,required:g,form:h,internal_do_not_use_render:p}=e,m=Ps(t),[x,C]=D.useState(null),[v,L]=D.useState(null),[I,b]=D.useState(!1),S=Pa(u),[y,P]=Rt({prop:o,defaultProp:r??!1,onChange:n,caller:wo}),[T,M]=Rt({prop:l,defaultProp:s,onChange:i,caller:wo}),E=D.useRef(null),N=D.useRef(T);D.useEffect(()=>{let J=h?x?.ownerDocument.getElementById(h):x?.form;if(J instanceof HTMLFormElement){let le=ne(()=>M(N.current),"reset");return J.addEventListener("reset",le),()=>J.removeEventListener("reset",le)}},[h,x,M]);let H=x?!!h||!!x.closest("form"):!0,[Q,$]=D.useState(new Set),O=tt(),_=Array.from(Q).map(J=>J.props.value).join(";"),G=D.useCallback(J=>{$(le=>new Set(le).add(J))},[]),A=D.useCallback(J=>{$(le=>{let he=new Set(le);return he.delete(J),he})},[]),me={required:g,trigger:x,onTriggerChange:C,valueNode:v,onValueNodeChange:L,valueNodeHasChildren:I,onValueNodeHasChildrenChange:b,contentId:O,value:T,onValueChange:M,open:y,onOpenChange:P,dir:S,triggerPointerDownPosRef:E,disabled:f,name:c,autoComplete:d,form:h,nativeOptions:Q,nativeSelectKey:_,isFormControl:H};return(0,V.jsx)(Cn,{...m,children:(0,V.jsx)(_v,{scope:t,...me,children:(0,V.jsx)(Dn.Provider,{scope:t,children:(0,V.jsx)(Hv,{scope:t,onNativeOptionAdd:G,onNativeOptionRemove:A,children:Ff(p)?p(me):a})})})})}ne(Sf,"SelectProvider");var yf=ne(e=>{let{__scopeSelect:t,children:a,...o}=e;return(0,V.jsx)(Sf,{__scopeSelect:t,...o,internal_do_not_use_render:({isFormControl:r})=>(0,V.jsxs)(V.Fragment,{children:[a,r?(0,V.jsx)(oC,{__scopeSelect:t}):null]})})},"Select"),qv="SelectTrigger",ks=D.forwardRef(ne(function(t,a){let{__scopeSelect:o,disabled:r=!1,...n}=t,l=Ps(o),s=na(qv,o),i=s.disabled||r,u=ee(a,s.onTriggerChange),c=Mn(o),d=D.useRef("touch"),[f,g,h]=Bs(m=>{let x=c().filter(L=>!L.disabled),C=x.find(L=>L.value===s.value),v=Ns(x,m,C);v!==void 0&&s.onValueChange(v.value)}),p=ne(m=>{i||(s.onOpenChange(!0),h()),m&&(s.triggerPointerDownPosRef.current={x:Math.round(m.pageX),y:Math.round(m.pageY)})},"handleOpen");return(0,V.jsx)(Ln,{asChild:!0,...l,children:(0,V.jsx)(oe.button,{type:"button",role:"combobox","aria-controls":s.open?s.contentId:void 0,"aria-expanded":s.open,"aria-required":s.required,"aria-autocomplete":"none",dir:s.dir,"data-state":s.open?"open":"closed",disabled:i,"data-disabled":i?"":void 0,"data-placeholder":vr(s.value)?"":void 0,...n,ref:u,onClick:q(n.onClick,m=>{m.currentTarget.focus(),d.current!=="mouse"&&p(m)}),onPointerDown:q(n.onPointerDown,m=>{d.current=m.pointerType;let x=m.target;x.hasPointerCapture(m.pointerId)&&x.releasePointerCapture(m.pointerId),m.button===0&&m.ctrlKey===!1&&m.pointerType==="mouse"&&(p(m),m.preventDefault())}),onKeyDown:q(n.onKeyDown,m=>{let x=f.current!=="";!(m.ctrlKey||m.altKey||m.metaKey)&&m.key.length===1&&g(m.key),!(x&&m.key===" ")&&Fv.includes(m.key)&&(p(),m.preventDefault())})})})},"SelectTrigger")),Vv="SelectValue",Rf=D.forwardRef(ne(function(t,a){let{__scopeSelect:o,className:r,style:n,children:l,placeholder:s="",...i}=t,u=na(Vv,o),{onValueNodeHasChildrenChange:c}=u,d=l!==void 0,f=ee(a,u.onValueNodeChange);se(()=>{c(d)},[c,d]);let g=vr(u.value);return(0,V.jsx)(oe.span,{...i,asChild:g?!1:i.asChild,ref:f,style:{pointerEvents:"none"},children:(0,V.jsx)(D.Fragment,{children:g?s:l},g?"placeholder":"value")})},"SelectValue")),Pf=D.forwardRef(ne(function(t,a){let{__scopeSelect:o,children:r,...n}=t;return(0,V.jsx)(oe.span,{"aria-hidden":!0,...n,ref:a,children:r||"\u25BC"})},"SelectIcon")),Wv="SelectPortal",[Gv,zv]=Ua(Wv,{forceMount:void 0}),kf=ne(e=>{let{__scopeSelect:t,forceMount:a,...o}=e;return(0,V.jsx)(Gv,{scope:e.__scopeSelect,forceMount:a,children:(0,V.jsx)(lo,{asChild:!0,...o})})},"SelectPortal"),Ha="SelectContent",Ds=D.forwardRef(ne(function(t,a){let o=zv(Ha,t.__scopeSelect),{forceMount:r=o.forceMount,...n}=t,l=na(Ha,t.__scopeSelect),[s,i]=D.useState();return se(()=>{i(new DocumentFragment)},[]),(0,V.jsx)(Ht,{present:r||l.open,children:({present:u})=>u?(0,V.jsx)(jv,{...n,ref:a}):(0,V.jsx)(Kv,{...n,fragment:s})})},"SelectContent")),Kv=D.forwardRef(ne(function(t,a){let{__scopeSelect:o,children:r,fragment:n}=t;return n?Rs.createPortal((0,V.jsx)(Df,{scope:o,children:(0,V.jsx)(Dn.Slot,{scope:o,children:(0,V.jsx)("div",{ref:a,children:r})})}),n):null},"SelectContentFragment")),It=10,[Df,qa]=Ua(Ha),Xv=qe("SelectContent.RemoveScroll"),jv=D.forwardRef(ne(function(t,a){let{__scopeSelect:o}=t,{position:r="item-aligned",onCloseAutoFocus:n,onEscapeKeyDown:l,onPointerDownOutside:s,side:i,sideOffset:u,align:c,alignOffset:d,arrowPadding:f,collisionBoundary:g,collisionPadding:h,sticky:p,hideWhenDetached:m,avoidCollisions:x,...C}=t,v=na(Ha,o),[L,I]=D.useState(null),[b,S]=D.useState(null),y=ee(a,I),[P,T]=D.useState(null),[M,E]=D.useState(null),N=Mn(o),[H,Q]=D.useState(!1),$=D.useRef(!1);D.useEffect(()=>{if(L)return mo(L)},[L]),ea();let O=D.useCallback(k=>{let[X,...B]=N().map(te=>te.ref.current),[j]=B.slice(-1),Y=document.activeElement;for(let te of k)if(te===Y||(te?.scrollIntoView({block:"nearest"}),te===X&&b&&(b.scrollTop=0),te===j&&b&&(b.scrollTop=b.scrollHeight),te?.focus(),document.activeElement!==Y))return},[N,b]),_=D.useCallback(()=>O([P,L]),[O,P,L]);D.useEffect(()=>{H&&_()},[H,_]);let{onOpenChange:G,triggerPointerDownPosRef:A}=v;D.useEffect(()=>{if(L){let k={x:0,y:0},X=ne(j=>{k={x:Math.abs(Math.round(j.pageX)-(A.current?.x??0)),y:Math.abs(Math.round(j.pageY)-(A.current?.y??0))}},"handlePointerMove"),B=ne(j=>{k.x<=10&&k.y<=10?j.preventDefault():j.composedPath().includes(L)||G(!1),document.removeEventListener("pointermove",X),A.current=null},"handlePointerUp");return A.current!==null&&(document.addEventListener("pointermove",X),document.addEventListener("pointerup",B,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",X),document.removeEventListener("pointerup",B,{capture:!0})}}},[L,G,A]),D.useEffect(()=>{let k=ne(()=>G(!1),"close");return window.addEventListener("blur",k),window.addEventListener("resize",k),()=>{window.removeEventListener("blur",k),window.removeEventListener("resize",k)}},[G]);let[me,J]=Bs(k=>{let X=N().filter(Y=>!Y.disabled),B=X.find(Y=>Y.ref.current===document.activeElement),j=Ns(X,k,B);j&&setTimeout(()=>j.ref.current?.focus())}),le=D.useCallback((k,X,B)=>{let j=!$.current&&!B;(v.value!==void 0&&v.value===X||j)&&(T(k),j&&($.current=!0))},[v.value]),he=D.useCallback(()=>L?.focus(),[L]),R=D.useCallback((k,X,B)=>{let j=!$.current&&!B;(v.value!==void 0&&v.value===X||j)&&E(k)},[v.value]),F=r==="popper"?Lf:$v,W=F===Lf?{side:i,sideOffset:u,align:c,alignOffset:d,arrowPadding:f,collisionBoundary:g,collisionPadding:h,sticky:p,hideWhenDetached:m,avoidCollisions:x}:{};return(0,V.jsx)(Df,{scope:o,content:L,viewport:b,onViewportChange:S,itemRefCallback:le,selectedItem:P,onItemLeave:he,itemTextRefCallback:R,focusSelectedItem:_,selectedItemText:M,position:r,isPositioned:H,searchRef:me,children:(0,V.jsx)(La,{as:Xv,allowPinchZoom:!0,children:(0,V.jsx)(no,{asChild:!0,trapped:v.open,onMountAutoFocus:k=>{k.preventDefault()},onUnmountAutoFocus:q(n,k=>{v.trigger?.focus({preventScroll:!0}),k.preventDefault()}),children:(0,V.jsx)(ro,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:l,onPointerDownOutside:s,onFocusOutside:k=>k.preventDefault(),onDismiss:()=>v.onOpenChange(!1),children:(0,V.jsx)(F,{role:"listbox",id:v.contentId,"data-state":v.open?"open":"closed",dir:v.dir,onContextMenu:k=>k.preventDefault(),...C,...W,onPlaced:()=>Q(!0),ref:y,style:{display:"flex",flexDirection:"column",outline:"none",...C.style},onKeyDown:q(C.onKeyDown,k=>{let X=k.ctrlKey||k.altKey||k.metaKey;if(k.key==="Tab"&&k.preventDefault(),!X&&k.key.length===1&&J(k.key),["ArrowUp","ArrowDown","Home","End"].includes(k.key)){let j=N().filter(Y=>!Y.disabled).map(Y=>Y.ref.current);if(["ArrowUp","End"].includes(k.key)&&(j=j.slice().reverse()),["ArrowUp","ArrowDown"].includes(k.key)){let Y=k.target,te=j.indexOf(Y);j=j.slice(te+1)}setTimeout(()=>O(j)),k.preventDefault()}})})})})})})},"SelectContentImpl")),$v=D.forwardRef(ne(function(t,a){let{__scopeSelect:o,onPlaced:r,...n}=t,l=na(Ha,o),s=qa(Ha,o),[i,u]=D.useState(null),[c,d]=D.useState(null),f=ee(a,d),g=Mn(o),h=D.useRef(!1),p=D.useRef(!0),{viewport:m,selectedItem:x,selectedItemText:C,focusSelectedItem:v}=s,L=D.useCallback(()=>{if(l.trigger&&l.valueNode&&i&&c&&m&&x&&C){let y=l.trigger.getBoundingClientRect(),P=c.getBoundingClientRect(),T=l.valueNode.getBoundingClientRect(),M=C.getBoundingClientRect();if(l.dir!=="rtl"){let Y=M.left-P.left,te=T.left-Y,xe=y.left-te,ye=y.width+xe,wt=Math.max(ye,P.width),Ga=window.innerWidth-It,za=Rn(te,[It,Math.max(It,Ga-wt)]);i.style.minWidth=ye+"px",i.style.left=za+"px"}else{let Y=P.right-M.right,te=window.innerWidth-T.right-Y,xe=window.innerWidth-y.right-te,ye=y.width+xe,wt=Math.max(ye,P.width),Ga=window.innerWidth-It,za=Rn(te,[It,Math.max(It,Ga-wt)]);i.style.minWidth=ye+"px",i.style.right=za+"px"}let E=g(),N=window.innerHeight-It*2,H=m.scrollHeight,Q=window.getComputedStyle(c),$=parseInt(Q.borderTopWidth,10),O=parseInt(Q.paddingTop,10),_=parseInt(Q.borderBottomWidth,10),G=parseInt(Q.paddingBottom,10),A=$+O+H+G+_,me=Math.min(x.offsetHeight*5,A),J=window.getComputedStyle(m),le=parseInt(J.paddingTop,10),he=parseInt(J.paddingBottom,10),R=y.top+y.height/2-It,F=N-R,W=x.offsetHeight/2,k=x.offsetTop+W,X=$+O+k,B=A-X;if(X<=R){let Y=E.length>0&&x===E[E.length-1].ref.current;i.style.bottom="0px";let te=c.clientHeight-m.offsetTop-m.offsetHeight,xe=Math.max(F,W+(Y?he:0)+te+_),ye=X+xe;i.style.height=ye+"px"}else{let Y=E.length>0&&x===E[0].ref.current;i.style.top="0px";let xe=Math.max(R,$+m.offsetTop+(Y?le:0)+W)+B;i.style.height=xe+"px",m.scrollTop=X-R+m.offsetTop}i.style.margin=`${It}px 0`,i.style.minHeight=me+"px",i.style.maxHeight=N+"px",r?.(),requestAnimationFrame(()=>h.current=!0)}},[g,l.trigger,l.valueNode,i,c,m,x,C,l.dir,r]);se(()=>L(),[L]);let[I,b]=D.useState();se(()=>{c&&b(window.getComputedStyle(c).zIndex)},[c]);let S=D.useCallback(y=>{y&&p.current===!0&&(L(),v?.(),p.current=!1)},[L,v]);return(0,V.jsx)(Yv,{scope:o,contentWrapper:i,shouldExpandOnScrollRef:h,onScrollButtonChange:S,children:(0,V.jsx)("div",{ref:u,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:I},children:(0,V.jsx)(oe.div,{...n,ref:f,style:{boxSizing:"border-box",maxHeight:"100%",...n.style}})})})},"SelectItemAlignedPosition")),Lf=D.forwardRef(ne(function(t,a){let{__scopeSelect:o,align:r="start",collisionPadding:n=It,...l}=t,s=Ps(o);return(0,V.jsx)(bn,{...s,...l,ref:a,align:r,collisionPadding:n,style:{boxSizing:"border-box",...l.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)"}})},"SelectPopperPosition")),[Yv,Ms]=Ua(Ha,{}),bf="SelectViewport",Mf=D.forwardRef(ne(function(t,a){let{__scopeSelect:o,nonce:r,...n}=t,l=qa(bf,o),s=Ms(bf,o),i=ee(a,l.onViewportChange),u=D.useRef(0);return(0,V.jsxs)(V.Fragment,{children:[(0,V.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}),(0,V.jsx)(Dn.Slot,{scope:o,children:(0,V.jsx)(oe.div,{"data-radix-select-viewport":"",role:"presentation",...n,ref:i,style:{position:"relative",flex:1,overflow:"hidden auto",...n.style},onScroll:q(n.onScroll,c=>{let d=c.currentTarget,{contentWrapper:f,shouldExpandOnScrollRef:g}=s;if(g?.current&&f){let h=Math.abs(u.current-d.scrollTop);if(h>0){let p=window.innerHeight-It*2,m=parseFloat(f.style.minHeight),x=parseFloat(f.style.height),C=Math.max(m,x);if(C<p){let v=C+h,L=Math.min(p,v),I=v-L;f.style.height=L+"px",f.style.bottom==="0px"&&(d.scrollTop=I>0?I:0,f.style.justifyContent="flex-end")}}}u.current=d.scrollTop})})})]})},"SelectViewport")),Zv="SelectGroup",[ty,Jv]=Ua(Zv);var Qv="SelectLabel",As=D.forwardRef(ne(function(t,a){let{__scopeSelect:o,...r}=t,n=Jv(Qv,o);return(0,V.jsx)(oe.div,{id:n.id,...r,ref:a})},"SelectLabel")),ys="SelectItem",[eC,Af]=Ua(ys),Ts=D.forwardRef(ne(function(t,a){let{__scopeSelect:o,value:r,disabled:n=!1,textValue:l,...s}=t,i=na(ys,o),u=qa(ys,o),c=i.value===r,[d,f]=D.useState(l??""),[g,h]=D.useState(!1),p=Me(L=>u.itemRefCallback?.(L,r,n)),m=ee(a,p),x=tt(),C=D.useRef("touch"),v=ne(()=>{n||(i.onValueChange(r),i.onOpenChange(!1))},"handleSelect");return(0,V.jsx)(eC,{scope:o,value:r,disabled:n,textId:x,isSelected:c,onItemTextChange:D.useCallback(L=>{f(I=>I||(L?.textContent??"").trim())},[]),children:(0,V.jsx)(Dn.ItemSlot,{scope:o,value:r,disabled:n,textValue:d,children:(0,V.jsx)(oe.div,{role:"option","aria-labelledby":x,"data-highlighted":g?"":void 0,"aria-selected":c&&g,"data-state":c?"checked":"unchecked","aria-disabled":n||void 0,"data-disabled":n?"":void 0,tabIndex:n?void 0:-1,...s,ref:m,onFocus:q(s.onFocus,()=>h(!0)),onBlur:q(s.onBlur,()=>h(!1)),onClick:q(s.onClick,()=>{C.current!=="mouse"&&v()}),onPointerUp:q(s.onPointerUp,()=>{C.current==="mouse"&&v()}),onPointerDown:q(s.onPointerDown,L=>{C.current=L.pointerType}),onPointerMove:q(s.onPointerMove,L=>{C.current=L.pointerType,n?u.onItemLeave?.():C.current==="mouse"&&L.currentTarget.focus({preventScroll:!0})}),onPointerLeave:q(s.onPointerLeave,L=>{L.currentTarget===document.activeElement&&u.onItemLeave?.()}),onKeyDown:q(s.onKeyDown,L=>{n||L.target!==L.currentTarget||u.searchRef?.current!==""&&L.key===" "||(Bv.includes(L.key)&&v(),L.key===" "&&L.preventDefault())})})})})},"SelectItem")),kn="SelectItemText",Tf=D.forwardRef(ne(function(t,a){let{__scopeSelect:o,className:r,style:n,...l}=t,s=na(kn,o),i=qa(kn,o),u=Af(kn,o),c=Uv(kn,o),[d,f]=D.useState(null),g=Me(v=>i.itemTextRefCallback?.(v,u.value,u.disabled)),h=ee(a,f,u.onItemTextChange,g),p=d?.textContent,m=D.useMemo(()=>(0,V.jsx)("option",{value:u.value,disabled:u.disabled,children:p},u.value),[u.disabled,u.value,p]),{onNativeOptionAdd:x,onNativeOptionRemove:C}=c;return se(()=>(x(m),()=>C(m)),[x,C,m]),(0,V.jsxs)(V.Fragment,{children:[(0,V.jsx)(oe.span,{id:u.textId,...l,ref:h}),u.isSelected&&s.valueNode&&!s.valueNodeHasChildren&&!vr(s.value)?Rs.createPortal(l.children,s.valueNode):null]})},"SelectItemText")),tC="SelectItemIndicator",Ef=D.forwardRef(ne(function(t,a){let{__scopeSelect:o,...r}=t;return Af(tC,o).isSelected?(0,V.jsx)(oe.span,{"aria-hidden":!0,...r,ref:a}):null},"SelectItemIndicator")),If="SelectScrollUpButton",Es=D.forwardRef(ne(function(t,a){let o=qa(If,t.__scopeSelect),r=Ms(If,t.__scopeSelect),[n,l]=D.useState(!1),s=ee(a,r.onScrollButtonChange);return se(()=>{if(o.viewport&&o.isPositioned){let u=function(){let d=c.scrollTop>0;l(d)};var i=u;ne(u,"handleScroll");let c=o.viewport;return u(),c.addEventListener("scroll",u),()=>c.removeEventListener("scroll",u)}},[o.viewport,o.isPositioned]),n?(0,V.jsx)(Of,{...t,ref:s,onAutoScroll:()=>{let{viewport:i,selectedItem:u}=o;i&&u&&(i.scrollTop=i.scrollTop-u.offsetHeight)}}):null},"SelectScrollUpButton")),wf="SelectScrollDownButton",Os=D.forwardRef(ne(function(t,a){let o=qa(wf,t.__scopeSelect),r=Ms(wf,t.__scopeSelect),[n,l]=D.useState(!1),s=ee(a,r.onScrollButtonChange);return se(()=>{if(o.viewport&&o.isPositioned){let u=function(){let d=c.scrollHeight-c.clientHeight,f=Math.ceil(c.scrollTop)<d;l(f)};var i=u;ne(u,"handleScroll");let c=o.viewport;return u(),c.addEventListener("scroll",u),()=>c.removeEventListener("scroll",u)}},[o.viewport,o.isPositioned]),n?(0,V.jsx)(Of,{...t,ref:s,onAutoScroll:()=>{let{viewport:i,selectedItem:u}=o;i&&u&&(i.scrollTop=i.scrollTop+u.offsetHeight)}}):null},"SelectScrollDownButton")),Of=D.forwardRef(ne(function(t,a){let{__scopeSelect:o,onAutoScroll:r,...n}=t,l=qa("SelectScrollButton",o),s=D.useRef(null),i=Mn(o),u=D.useCallback(()=>{s.current!==null&&(window.clearInterval(s.current),s.current=null)},[]);return D.useEffect(()=>()=>u(),[u]),se(()=>{i().find(d=>d.ref.current===document.activeElement)?.ref.current?.scrollIntoView({block:"nearest"})},[i]),(0,V.jsx)(oe.div,{"aria-hidden":!0,...n,ref:a,style:{flexShrink:0,...n.style},onPointerDown:q(n.onPointerDown,()=>{s.current===null&&(s.current=window.setInterval(r,50))}),onPointerMove:q(n.onPointerMove,()=>{l.onItemLeave?.(),s.current===null&&(s.current=window.setInterval(r,50))}),onPointerLeave:q(n.onPointerLeave,()=>{u()})})},"SelectScrollButtonImpl")),Fs=D.forwardRef(ne(function(t,a){let{__scopeSelect:o,...r}=t;return(0,V.jsx)(oe.div,{"aria-hidden":!0,...r,ref:a})},"SelectSeparator"));var aC="SelectBubbleInput",oC=D.forwardRef(ne(function({__scopeSelect:t,...a},o){let r=na(aC,t),{value:n,onValueChange:l,required:s,disabled:i,name:u,autoComplete:c,form:d}=r,{nativeOptions:f,nativeSelectKey:g}=r,h=D.useRef(null),p=ee(o,h),m=n??"",x=Ss(m),C=Array.from(f).some(v=>(v.props.value??"")==="");return D.useEffect(()=>{let v=h.current;if(!v)return;let L=window.HTMLSelectElement.prototype,b=Object.getOwnPropertyDescriptor(L,"value").set;if(x!==m&&b){let S=new Event("change",{bubbles:!0});b.call(v,m),v.dispatchEvent(S)}},[x,m]),(0,V.jsxs)(oe.select,{"aria-hidden":!0,required:s,tabIndex:-1,name:u,autoComplete:c,disabled:i,form:d,onChange:v=>l(v.target.value),...a,style:{...Cf,...a.style},ref:p,defaultValue:m,children:[vr(n)&&!C?(0,V.jsx)("option",{value:""}):null,Array.from(f)]},g)},"SelectBubbleInput"));function Ff(e){return typeof e=="function"}ne(Ff,"isFunction");function vr(e){return e===""||e===void 0}ne(vr,"shouldShowPlaceholder");function Bs(e){let t=Me(e),a=D.useRef(""),o=D.useRef(0),r=D.useCallback(l=>{let s=a.current+l;t(s),ne((function i(u){a.current=u,window.clearTimeout(o.current),u!==""&&(o.current=window.setTimeout(()=>i(""),1e3))}),"updateSearch")(s)},[t]),n=D.useCallback(()=>{a.current="",window.clearTimeout(o.current)},[]);return D.useEffect(()=>()=>window.clearTimeout(o.current),[]),[a,r,n]}ne(Bs,"useTypeaheadSearch");function Ns(e,t,a){let r=t.length>1&&Array.from(t).every(u=>u===t[0])?t[0]:t,n=a?e.indexOf(a):-1,l=Bf(e,Math.max(n,0));r.length===1&&(l=l.filter(u=>u!==a));let i=l.find(u=>u.textValue.toLowerCase().startsWith(r.toLowerCase()));return i!==a?i:void 0}ne(Ns,"findNextItem");function Bf(e,t){return e.map((a,o)=>e[(t+o)%e.length])}ne(Bf,"wrapArray");var be=require("react/jsx-runtime"),_s=yf;var Hs=Rf,An=la.forwardRef(({className:e,children:t,...a},o)=>(0,be.jsxs)(ks,{ref:o,className:ae("kanban-select-trigger",e),...a,children:[t,(0,be.jsx)(Pf,{asChild:!0,children:(0,be.jsx)(eo,{className:"kanban-select-icon"})})]}));An.displayName=ks.displayName;var Nf=la.forwardRef(({className:e,...t},a)=>(0,be.jsx)(Es,{ref:a,className:ae("kanban-select-scroll-button",e),...t,children:(0,be.jsx)(Wo,{className:"kanban-select-scroll-icon"})}));Nf.displayName=Es.displayName;var _f=la.forwardRef(({className:e,...t},a)=>(0,be.jsx)(Os,{ref:a,className:ae("kanban-select-scroll-button",e),...t,children:(0,be.jsx)(eo,{className:"kanban-select-scroll-icon"})}));_f.displayName=Os.displayName;var Tn=la.forwardRef(({className:e,children:t,position:a="popper",...o},r)=>(0,be.jsx)(kf,{children:(0,be.jsxs)(Ds,{ref:r,className:ae("kanban-portal kanban-select-content",a==="popper"&&"kanban-select-content--popper",e),position:a,...o,children:[(0,be.jsx)(Nf,{}),(0,be.jsx)(Mf,{className:ae("kanban-select-viewport",a==="popper"&&"kanban-select-viewport--popper"),children:t}),(0,be.jsx)(_f,{})]})}));Tn.displayName=Ds.displayName;var nC=la.forwardRef(({className:e,...t},a)=>(0,be.jsx)(As,{ref:a,className:ae("kanban-select-label",e),...t}));nC.displayName=As.displayName;var So=la.forwardRef(({className:e,children:t,...a},o)=>(0,be.jsxs)(Ts,{ref:o,className:ae("kanban-select-item",e),...a,children:[(0,be.jsx)("span",{className:"kanban-select-item-indicator",children:(0,be.jsx)(Ef,{children:(0,be.jsx)(Qt,{className:"kanban-select-check"})})}),(0,be.jsx)(Tf,{children:t})]}));So.displayName=Ts.displayName;var lC=la.forwardRef(({className:e,...t},a)=>(0,be.jsx)(Fs,{ref:a,className:ae("kanban-select-separator",e),...t}));lC.displayName=Fs.displayName;var Hf=U(require("react"),1);var Uf=require("react/jsx-runtime"),Us=Hf.forwardRef(({className:e,...t},a)=>(0,Uf.jsx)("textarea",{className:ae("kanban-textarea",e),ref:a,...t}));Us.displayName="Textarea";var Gt={high:{label:"P0",color:"#f87171"},medium:{label:"P1",color:"#fbbf24"},low:{label:"P2",color:"#38bdf8"}},En=["high","medium","low"],qf="#94a3b8";function Vf(e,t){return t?e.find(a=>a.name===t)?.color??qf:qf}var Ge=(e,t)=>e.replace(/\{(\w+)\}/g,(a,o)=>t[o]??""),qs=e=>e==="high"||e==="medium"||e==="low"?Gt[e].label:"";function Wf(e,t){let a=e.meta||{},o=t("noValue"),r=e.from??null,n=e.to??null;switch(e.type){case"card_created":{let l=a.label??o,s=a.priority&&qs(a.priority)||o;return Ge(t("actCreated"),{column:a.column??"",label:l,priority:s})}case"card_moved":return Ge(t("actMoved"),{from:r??o,to:n??o});case"card_label_changed":return r==null&&n!=null?Ge(t("actLabelSet"),{to:n}):r!=null&&n==null?Ge(t("actLabelCleared"),{from:r}):Ge(t("actLabel"),{from:r??o,to:n??o});case"card_priority_changed":{let l=r?qs(r)||r:o,s=n?qs(n)||n:o;return r==null&&n!=null?Ge(t("actPrioritySet"),{to:s}):r!=null&&n==null?Ge(t("actPriorityCleared"),{from:l}):Ge(t("actPriority"),{from:l,to:s})}case"card_title_changed":return Ge(t("actTitle"),{from:r??o,to:n??o});case"card_note_changed":return t("actNote");case"card_deleted":return t("actDeleted");case"column_added":return Ge(t("actColumnAdded"),{column:a.column??""});case"column_renamed":return Ge(t("actColumnRenamed"),{from:r??o,to:n??o});case"column_deleted":return Ge(t("actColumnDeleted"),{column:a.column??""});case"label_added":return Ge(t("actLabelAdded"),{label:a.label??""});case"label_renamed":return Ge(t("actLabelRenamed"),{from:r??o,to:n??o});case"label_deleted":return Ge(t("actLabelDeleted"),{label:a.label??""});case"label_color_changed":return Ge(t("actLabelColor"),{label:a.label??"",from:r??o,to:n??o});default:return e.type}}var On=e=>String(e).padStart(2,"0");function Gf(e){let t=new Date(e);return Number.isNaN(t.getTime())?e:`${t.getFullYear()}-${On(t.getMonth()+1)}-${On(t.getDate())} ${On(t.getHours())}:${On(t.getMinutes())}`}var ft=require("react/jsx-runtime");function zf({activities:e}){let t=Ke();if(e.length===0)return(0,ft.jsx)("p",{className:"kanban-muted-small",children:t("activityEmpty")});let a=[...e].reverse();return(0,ft.jsx)("ol",{className:"kanban-activity-list",children:a.map(o=>{let r=o.source==="agent";return(0,ft.jsxs)("li",{className:"kanban-activity-item",children:[(0,ft.jsx)("span",{className:`kanban-activity-dot ${r?"is-agent":"is-human"}`}),(0,ft.jsxs)("div",{className:"kanban-activity-meta",children:[(0,ft.jsx)(Go,{className:"kanban-tiny-icon"}),(0,ft.jsx)("time",{className:"kanban-tabular",children:Gf(o.ts)}),(0,ft.jsx)("span",{children:"\xB7"}),(0,ft.jsx)("span",{className:`kanban-activity-actor ${r?"is-agent":"is-human"}`,children:t(r?"actorAgent":"actorHuman")})]}),(0,ft.jsx)("p",{className:"kanban-activity-description",children:Wf(o,t)})]},o.id)})})}var z=require("react/jsx-runtime");function Kf({open:e,card:t,labels:a,activities:o,onOpenChange:r,onSave:n,onDelete:l,onChatWithAgent:s}){let i=Ke(),[u,c]=(0,Fn.useState)({id:"",title:"",note:"",label:"",priority:""});(0,Fn.useEffect)(()=>{e&&c({id:t?.id??"",title:t?.title??"",note:t?.note??"",label:t?.label??"",priority:t?.priority??""})},[e,t]);let d=f=>c(g=>({...g,...f}));return(0,z.jsx)(ho,{open:e,onOpenChange:r,children:(0,z.jsxs)(Ia,{className:"kanban-dialog-wide","aria-describedby":void 0,onOpenAutoFocus:f=>f.preventDefault(),children:[(0,z.jsx)(wa,{children:(0,z.jsx)(Sa,{className:"kanban-sr-only",children:i(t?"editCard":"addCard")})}),(0,z.jsxs)("div",{className:"kanban-form-stack",children:[(0,z.jsxs)("div",{className:"kanban-form-field",children:[(0,z.jsxs)(_a,{htmlFor:"card-title",className:"kanban-field-label",children:[(0,z.jsx)("span",{children:i("fieldTitle")}),t&&(0,z.jsxs)("span",{className:"kanban-field-id",children:[i("fieldId"),": ",t.id]})]}),(0,z.jsx)(Wt,{id:"card-title",value:u.title,placeholder:i("titlePlaceholder"),onChange:f=>d({title:f.target.value})})]}),(0,z.jsxs)("div",{className:"kanban-form-field",children:[(0,z.jsx)(_a,{children:i("fieldLabel")}),(0,z.jsxs)(_s,{value:u.label||"__none__",onValueChange:f=>d({label:f==="__none__"?"":f}),children:[(0,z.jsx)(An,{children:(0,z.jsx)(Hs,{placeholder:i("noLabel")})}),(0,z.jsxs)(Tn,{children:[(0,z.jsx)(So,{value:"__none__",children:i("noLabel")}),a.map(f=>(0,z.jsx)(So,{value:f.name,children:f.name},f.name))]})]})]}),(0,z.jsxs)("div",{className:"kanban-form-field",children:[(0,z.jsx)(_a,{children:i("fieldPriority")}),(0,z.jsxs)(_s,{value:u.priority||"__none__",onValueChange:f=>d({priority:f==="__none__"?"":f}),children:[(0,z.jsx)(An,{children:(0,z.jsx)(Hs,{placeholder:i("noPriority")})}),(0,z.jsxs)(Tn,{children:[(0,z.jsx)(So,{value:"__none__",children:i("noPriority")}),En.map(f=>{let g=Gt[f];return(0,z.jsx)(So,{value:f,children:(0,z.jsxs)("span",{className:"kanban-inline-priority",children:[(0,z.jsx)("span",{className:"kanban-priority-dot",style:{background:g.color}}),g.label]})},f)})]})]})]}),(0,z.jsxs)("div",{className:"kanban-form-field",children:[(0,z.jsx)(_a,{htmlFor:"card-note",children:i("fieldNote")}),(0,z.jsx)(Us,{id:"card-note",value:u.note,placeholder:i("notePlaceholder"),rows:5,onChange:f=>d({note:f.target.value})})]}),t&&(0,z.jsxs)("div",{className:"kanban-activity-box",children:[(0,z.jsx)(_a,{className:"kanban-muted-small",children:i("activityTitle")}),(0,z.jsx)("div",{className:"kanban-activity-scroll",children:(0,z.jsx)(zf,{activities:o})})]})]}),(0,z.jsxs)(lr,{children:[t&&l&&(0,z.jsxs)(De,{variant:"outline",className:"kanban-dialog-delete",onClick:()=>{l(t),r(!1)},children:[(0,z.jsx)(Bt,{className:"kanban-icon"}),i("delete")]}),(0,z.jsxs)(hr,{children:[(0,z.jsx)(xr,{asChild:!0,children:(0,z.jsxs)(De,{variant:"outline",disabled:!u.title.trim()&&!u.note.trim(),children:[(0,z.jsx)(jo,{className:"kanban-icon"}),i("chatWithAgent")]})}),(0,z.jsxs)(Io,{align:"end",children:[(0,z.jsx)(Vt,{onClick:()=>{s(u,"current"),r(!1)},children:i("chatCurrentSession")}),(0,z.jsx)(Vt,{onClick:()=>{s(u,"new"),r(!1)},children:i("chatNewSession")})]})]}),(0,z.jsx)(De,{variant:"outline",disabled:!u.title.trim(),onClick:()=>{n(u),r(!1)},children:i("save")})]})]})})}var Xf=require("react/jsx-runtime");function sC({variant:e,className:t}={}){return ae("kanban-badge",`kanban-badge--${e??"default"}`,t)}function Vs({className:e,variant:t,...a}){return(0,Xf.jsx)("div",{className:sC({variant:t,className:e}),...a})}var Va=U(require("react"),1);var Wa=require("react/jsx-runtime"),Cr=Va.forwardRef(({className:e,...t},a)=>(0,Wa.jsx)("div",{ref:a,className:ae("kanban-card",e),...t}));Cr.displayName="Card";var iC=Va.forwardRef(({className:e,...t},a)=>(0,Wa.jsx)("div",{ref:a,className:ae("kanban-card-header",e),...t}));iC.displayName="CardHeader";var uC=Va.forwardRef(({className:e,...t},a)=>(0,Wa.jsx)("div",{ref:a,className:ae("kanban-ui-card-title",e),...t}));uC.displayName="CardTitle";var dC=Va.forwardRef(({className:e,...t},a)=>(0,Wa.jsx)("div",{ref:a,className:ae("kanban-card-description",e),...t}));dC.displayName="CardDescription";var Lr=Va.forwardRef(({className:e,...t},a)=>(0,Wa.jsx)("div",{ref:a,className:ae("kanban-card-content",e),...t}));Lr.displayName="CardContent";var cC=Va.forwardRef(({className:e,...t},a)=>(0,Wa.jsx)("div",{ref:a,className:ae("kanban-card-footer",e),...t}));cC.displayName="CardFooter";var Et=require("react/jsx-runtime");function jf({card:e,labels:t,onOpen:a}){let{attributes:o,listeners:r,setNodeRef:n,transform:l,transition:s,isDragging:i}=qr({id:e.id,data:{type:"card",cardId:e.id,columnId:e.columnId}}),u=e.priority?Gt[e.priority]:null,c=Vf(t,e.label);return(0,Et.jsx)("div",{ref:n,style:{transform:Qe.Transform.toString(l),transition:s},...o,...r,onClick:()=>a(e),className:`kanban-sortable-card${i?" is-dragging":""}`,children:(0,Et.jsx)(Cr,{className:"kanban-card",children:(0,Et.jsxs)(Lr,{className:"kanban-sortable-card-content",children:[(e.label||u)&&(0,Et.jsxs)("div",{className:"kanban-card-meta",children:[e.label&&(0,Et.jsx)(Vs,{variant:"secondary",className:"kanban-card-badge",style:{background:c,color:"#0b1220"},children:e.label}),u&&(0,Et.jsx)(Vs,{variant:"secondary",className:"kanban-card-badge",style:{background:u.color,color:"#0b1220"},children:u.label})]}),(0,Et.jsx)("p",{className:"kanban-card-title",children:e.title}),e.note&&(0,Et.jsx)("p",{className:"kanban-card-note",children:e.note})]})})})}var rt=require("react/jsx-runtime");function $f({column:e,cards:t,labels:a,onAddCard:o,onOpenCard:r}){let{setNodeRef:n,isOver:l}=Fr({id:e.id,data:{type:"column"}}),s=Ke();return(0,rt.jsxs)("div",{ref:n,className:`kanban-column${l?" is-over":""}`,children:[(0,rt.jsxs)("div",{className:"kanban-column-header",children:[(0,rt.jsx)("h3",{className:"kanban-column-title",children:e.title}),(0,rt.jsx)("span",{className:"kanban-column-count",children:t.length})]}),(0,rt.jsxs)("div",{className:"kanban-column-cards kan-scroll",children:[(0,rt.jsx)(Ur,{items:t.map(i=>i.id),strategy:Hr,children:t.map(i=>(0,rt.jsx)(jf,{card:i,labels:a,onOpen:r},i.id))}),t.length===0&&(0,rt.jsx)("p",{className:"kanban-column-empty",children:s("emptyColumn")})]}),(0,rt.jsx)("div",{className:"kanban-column-footer",children:(0,rt.jsxs)(De,{variant:"ghost",size:"sm",className:"kanban-add-card",onClick:()=>o(e),children:[(0,rt.jsx)(Ft,{className:"kanban-icon"}),s("addCard")]})})]})}var br=require("react");var Ie=require("react/jsx-runtime");function fC({column:e,value:t,onValueChange:a,onCommit:o,onDelete:r,canDelete:n}){let{attributes:l,listeners:s,setNodeRef:i,transform:u,transition:c}=qr({id:e.id}),d=Ke();return(0,Ie.jsxs)("div",{ref:i,style:{transform:Qe.Transform.toString(u),transition:c},className:"kanban-sortable-row",children:[(0,Ie.jsx)("button",{...l,...s,className:"kanban-drag-handle","aria-label":d("dragSort"),children:(0,Ie.jsx)(Ko,{className:"kanban-icon"})}),(0,Ie.jsx)(Wt,{value:t,onChange:f=>a(f.target.value),onBlur:o,onKeyDown:f=>{f.key==="Enter"&&f.target.blur()}}),(0,Ie.jsx)(De,{variant:"ghost",size:"icon",className:"kanban-icon-button kanban-danger-button","aria-label":d("delete"),disabled:!n,onClick:r,children:(0,Ie.jsx)(Bt,{className:"kanban-icon"})})]})}function Yf({open:e,columns:t,onOpenChange:a,onReorder:o,onRename:r,onDelete:n,onAdd:l}){let s=Ke(),[i,u]=(0,br.useState)({}),[c,d]=(0,br.useState)(""),f=Mr(Qa(Jt,{activationConstraint:{distance:8}}),Qa(Zt,{coordinateGetter:Vr}));(0,br.useEffect)(()=>{e&&u(Object.fromEntries(t.map(p=>[p.id,p.title])))},[e,t]);let g=p=>{let m=(i[p]??"").trim(),x=t.find(C=>C.id===p);x&&m&&m!==x.title&&r(p,m)},h=p=>{let{active:m,over:x}=p;x&&m.id!==x.id&&o(String(m.id),String(x.id))};return(0,Ie.jsx)(ho,{open:e,onOpenChange:a,children:(0,Ie.jsxs)(Ia,{className:"kanban-dialog-medium",children:[(0,Ie.jsxs)(wa,{children:[(0,Ie.jsx)(Sa,{children:s("columnEdit")}),(0,Ie.jsx)(sr,{children:s("columnEditDesc")})]}),(0,Ie.jsx)(Or,{sensors:f,collisionDetection:Si,onDragEnd:h,children:(0,Ie.jsx)(Ur,{items:t.map(p=>p.id),strategy:Hr,children:(0,Ie.jsx)("div",{className:"kanban-sortable-list",children:t.map(p=>(0,Ie.jsx)(fC,{column:p,value:i[p.id]??p.title,onValueChange:m=>u(x=>({...x,[p.id]:m})),onCommit:()=>g(p.id),onDelete:()=>n(p.id),canDelete:t.length>1},p.id))})})}),(0,Ie.jsxs)("div",{className:"kanban-sortable-row",children:[(0,Ie.jsx)(Wt,{value:c,placeholder:s("newColumnPlaceholder"),onChange:p=>d(p.target.value),onKeyDown:p=>{p.key==="Enter"&&c.trim()&&(l(c.trim()),d(""))}}),(0,Ie.jsxs)(De,{size:"sm",onClick:()=>{c.trim()&&(l(c.trim()),d(""))},children:[(0,Ie.jsx)(Ft,{className:"kanban-icon"}),s("add")]})]})]})})}var yo=require("react");var Pe=require("react/jsx-runtime");function Zf({open:e,labels:t,onOpenChange:a,onAdd:o,onUpdate:r,onDelete:n}){let l=Ke(),[s,i]=(0,yo.useState)({}),[u,c]=(0,yo.useState)(""),[d,f]=(0,yo.useState)("#38bdf8");(0,yo.useEffect)(()=>{e&&i(Object.fromEntries(t.map(h=>[h.name,{name:h.name,color:h.color}])))},[e,t]);let g=h=>{let p=s[h];if(!p)return;let m=t.find(C=>C.name===h),x=p.name.trim();m&&x&&(x!==h||p.color!==m.color)&&r(h,x,p.color)};return(0,Pe.jsx)(ho,{open:e,onOpenChange:a,children:(0,Pe.jsxs)(Ia,{className:"kanban-dialog-medium",children:[(0,Pe.jsxs)(wa,{children:[(0,Pe.jsx)(Sa,{children:l("labelEdit")}),(0,Pe.jsx)(sr,{children:l("labelEditDesc")})]}),(0,Pe.jsx)("div",{className:"kanban-label-list",children:t.map(h=>{let p=s[h.name]??{name:h.name,color:h.color};return(0,Pe.jsxs)("div",{className:"kanban-label-row",children:[(0,Pe.jsx)("input",{type:"color",value:p.color,className:"kanban-color-input",onChange:m=>i(x=>({...x,[h.name]:{...p,color:m.target.value}})),onBlur:()=>g(h.name)}),(0,Pe.jsx)(Wt,{value:p.name,onChange:m=>i(x=>({...x,[h.name]:{...p,name:m.target.value}})),onBlur:()=>g(h.name),onKeyDown:m=>{m.key==="Enter"&&m.target.blur()}}),(0,Pe.jsx)(De,{variant:"ghost",size:"icon",className:"kanban-icon-button kanban-danger-button",onClick:()=>n(h.name),children:(0,Pe.jsx)(Bt,{className:"kanban-icon"})})]},h.name)})}),(0,Pe.jsx)(lr,{className:"kanban-dialog-footer-layout",children:(0,Pe.jsxs)("div",{className:"kanban-label-add-row",children:[(0,Pe.jsx)("input",{type:"color",value:d,className:"kanban-color-input",onChange:h=>f(h.target.value)}),(0,Pe.jsx)(Wt,{value:u,placeholder:l("newLabelPlaceholder"),onChange:h=>c(h.target.value),onKeyDown:h=>{h.key==="Enter"&&u.trim()&&(o(u.trim(),d),c(""))}}),(0,Pe.jsxs)(De,{size:"sm",onClick:()=>{u.trim()&&(o(u.trim(),d),c(""))},children:[(0,Pe.jsx)(Ft,{className:"kanban-icon"}),l("add")]})]})})]})})}function Bn(e,t={},a="default"){return fetch("/api/kanban",{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify({method:e,args:{...t,workspaceId:a}})}).then(o=>o.json())}var Ws=new Map,Gs=0,Nn=new Set;function Jf(e,t){Ws.set(e,t),Gs++;for(let a of Nn)a()}function Qf(e){let t=Ws.get(e);if(t==null)return null;Ws.delete(e),Gs++;for(let a of Nn)a();return t}function ep(e){return Nn.add(e),()=>{Nn.delete(e)}}function tp(){return Gs}function ap(e){let t=(e.id??"").trim(),a=(e.title??"").trim(),o=(e.note??"").trim(),r=(e.label??"").trim(),n=[];return t&&n.push(go("fieldId")+": "+t),a&&n.push(a),r&&n.push(go("fieldLabel")+": "+r),o&&n.push(o),n.join(`
|
|
1979
1216
|
|
|
1980
|
-
`)}var K=require("react/jsx-runtime");function
|
|
1217
|
+
`)}var K=require("react/jsx-runtime");function op(e){let{sessionId:t}=e,a=e.useWorkspaces,o=e.inputActions,r=e.workspaces,n=e.sessions,l=a?a(R=>R.items):[],s=a?a(R=>R.recentWorkspaceId):void 0,i=Array.isArray(l)?l.find(R=>Array.isArray(R.sessionIds)&&R.sessionIds.includes(t)):void 0,u=i?i.workspaceId:s||"default",c=Ke(),[d,f]=(0,ge.useState)(null),[g,h]=(0,ge.useState)(""),[p,m]=(0,ge.useState)([]),[x,C]=(0,ge.useState)(null),[v,L]=(0,ge.useState)(null),[I,b]=(0,ge.useState)(!1),[S,y]=(0,ge.useState)(!1),[P,T]=(0,ge.useState)(!1),[M,E]=(0,ge.useState)(""),N=(0,ge.useRef)(null),[H,Q]=(0,ge.useState)(null),$=Mr(Qa(Jt,{activationConstraint:{distance:8}}),Qa(Zt,{coordinateGetter:Vr})),O=(0,ge.useCallback)(R=>{R&&R.board&&(f({...R.board,activities:Array.isArray(R.board.activities)?R.board.activities:[]}),h("")),Array.isArray(R&&R.warnings)&&R.warnings.length>0&&m(F=>[...F,...R.warnings])},[]),_=(0,ge.useCallback)((R,F={})=>{Bn(R,F,u).then(O).catch(W=>h(c("actionFailed")+String(W&&W.message||W)))},[u,O]),G=(0,ge.useCallback)(()=>{T(!0),Bn("get",{},u).then(O).catch(R=>h(c("loadFailed")+String(R&&R.message||R))).finally(()=>T(!1))},[u,O,c]);(0,ge.useEffect)(()=>{let R=!0;return Bn("get",{},u).then(F=>{R&&O(F)}).catch(F=>{R&&h(c("loadFailed")+String(F&&F.message||F))}),()=>{R=!1}},[u,O]),(0,ge.useLayoutEffect)(()=>{let R=X=>{let B=X;for(;B;){let j=getComputedStyle(B).overflowY;if(j==="auto"||j==="scroll")return B;B=B.parentElement}return null},F=()=>{let X=N.current;if(!X)return;let B=X.getBoundingClientRect().top,j=R(X.parentElement),Y=window.innerHeight;if(j){let te=j.querySelector("[data-composer-seat]"),xe=te?te.getBoundingClientRect().top:0;te&&te.offsetHeight>0&&xe>B?Y=xe:Y=j.getBoundingClientRect().bottom}Q(Math.max(0,Math.floor(Y-B)))};F();let W=R(N.current?.parentElement??null),k=new ResizeObserver(F);return k.observe(document.documentElement),W&&k.observe(W),window.addEventListener("resize",F),()=>{k.disconnect(),window.removeEventListener("resize",F)}},[d!==null]);let A=(0,ge.useCallback)(R=>{let F=yi(R),W=F.length>0?F:al(R),k=Ho(W,"id");if(k==null)return[];if(new Set((d?.columns??[]).map(B=>B.id)).has(String(k))){let B=(d?.cards??[]).filter(j=>j.columnId===k).map(j=>j.id);if(B.length>0){let j=Ar({...R,droppableContainers:R.droppableContainers.filter(Y=>Y.id!==k&&B.includes(String(Y.id)))});j.length>0&&(k=j[0].id)}}return[{id:k}]},[d]),me=R=>{if(R.active.data.current?.type==="card"){let F=d?.cards.find(W=>W.id===R.active.id);F&&C(F)}},J=R=>{let{active:F,over:W}=R;if(C(null),!W||!d)return;let k=F.data.current?.type,X=W.data.current?.type;if(k==="card")if(X==="card"){let B=d.cards.find(te=>te.id===W.id);if(!B||B.id===F.id)return;let Y=d.cards.filter(te=>te.columnId===B.columnId).findIndex(te=>te.id===B.id);_("moveCard",{id:String(F.id),columnId:B.columnId,toIndex:Y>=0?Y:void 0})}else X==="column"&&_("moveCard",{id:String(F.id),columnId:String(W.id)})},le=R=>{if(!v)return;let F={title:R.title,note:R.note,label:R.label||void 0,priority:R.priority||void 0};v.card?_("updateCard",{id:v.card.id,...F}):_("addCard",{columnId:v.columnId,...F})},he=(0,ge.useCallback)((R,F)=>{let W=ap(R);if(W){if(F==="current"){o?.setDraft(W);return}!r?.connectWorkspace||!n?.open||r.connectWorkspace(u).then(k=>{k&&(Jf(k,W),n.open(k))}).catch(k=>h(c("actionFailed")+String(k&&k.message||k)))}},[o,r,n,u,c]);return d?(0,K.jsxs)("div",{ref:N,className:"kanban-root kanban-view",style:H!=null?{height:H}:void 0,children:[g&&(0,K.jsx)("p",{className:"kanban-error",children:g}),p.length>0&&(0,K.jsxs)("div",{className:"kanban-warning",children:[(0,K.jsxs)("div",{className:"kanban-warning-body",children:[(0,K.jsx)("p",{className:"kanban-warning-title",children:c("warnings")}),p.map((R,F)=>(0,K.jsx)("p",{className:"kanban-warning-item",children:R},F))]}),(0,K.jsx)(De,{variant:"ghost",size:"sm",className:"kanban-warning-dismiss",onClick:()=>m([]),children:c("dismiss")})]}),(0,K.jsxs)(Or,{sensors:$,collisionDetection:A,onDragStart:me,onDragEnd:J,children:[(0,K.jsxs)("div",{className:"kanban-content",children:[(0,K.jsxs)("div",{className:"kanban-toolbar",children:[(0,K.jsx)(De,{variant:"ghost",size:"icon",className:"kanban-toolbar-button",title:c("refresh"),"aria-label":c("refresh"),disabled:P,onClick:G,children:(0,K.jsx)($o,{className:P?"kanban-animate-spin":void 0})}),(0,K.jsxs)(hr,{children:[(0,K.jsx)(xr,{asChild:!0,children:(0,K.jsx)(De,{variant:"ghost",size:"icon",className:"kanban-toolbar-button",title:c("settings"),children:(0,K.jsx)(Yo,{className:"kanban-icon"})})}),(0,K.jsxs)(Io,{align:"start",children:[(0,K.jsxs)(Vt,{onClick:()=>b(!0),children:[(0,K.jsx)(Xo,{className:"kanban-icon"}),c("columnEdit")]}),(0,K.jsxs)(Vt,{onClick:()=>y(!0),children:[(0,K.jsx)(Zo,{className:"kanban-icon"}),c("labelEdit")]})]})]}),(0,K.jsxs)(hr,{children:[(0,K.jsx)(xr,{asChild:!0,children:(0,K.jsx)(De,{variant:M?"secondary":"ghost",size:"icon",className:"kanban-toolbar-button",title:c("priorityFilter"),children:(0,K.jsx)(zo,{className:"kanban-icon"})})}),(0,K.jsxs)(Io,{align:"start",children:[(0,K.jsxs)(Vt,{onClick:()=>E(""),children:[(0,K.jsx)("span",{className:"kanban-filter-check",children:!M&&(0,K.jsx)(Qt,{className:"kanban-icon"})}),c("all")]}),En.map(R=>(0,K.jsxs)(Vt,{onClick:()=>E(R),children:[(0,K.jsx)("span",{className:"kanban-filter-check",children:M===R&&(0,K.jsx)(Qt,{className:"kanban-icon"})}),(0,K.jsx)("span",{className:"kanban-priority-dot",style:{background:Gt[R].color}}),Gt[R].label]},R))]})]})]}),(0,K.jsx)("div",{className:"kanban-board-scroll",children:d.columns.map(R=>{let F=d.cards.filter(W=>W.columnId===R.id&&(!M||W.priority===M));return(0,K.jsx)($f,{column:R,cards:F,labels:d.labels,onAddCard:W=>L({card:null,columnId:W.id}),onOpenCard:W=>L({card:W,columnId:W.columnId})},R.id)})})]}),(0,K.jsx)(Vi,{children:x?(0,K.jsx)(Cr,{className:"kanban-drag-preview",children:(0,K.jsx)(Lr,{className:"kanban-drag-preview-content",children:(0,K.jsx)("p",{className:"kanban-drag-preview-title",children:x.title})})}):null})]}),(0,K.jsx)(Kf,{open:v!==null,card:v?.card??null,labels:d.labels,activities:v?.card?d.activities.filter(R=>R.cardId===v.card.id):[],onOpenChange:R=>{R||L(null)},onSave:le,onDelete:R=>_("deleteCard",{id:R.id}),onChatWithAgent:he}),(0,K.jsx)(Yf,{open:I,columns:d.columns,onOpenChange:b,onReorder:(R,F)=>{let W=d.columns.findIndex(k=>k.id===F);W>=0&&_("moveColumn",{id:R,toIndex:W})},onRename:(R,F)=>_("renameColumn",{id:R,title:F}),onDelete:R=>_("deleteColumn",{id:R}),onAdd:R=>_("addColumn",{title:R})}),(0,K.jsx)(Zf,{open:S,labels:d.labels,onOpenChange:y,onAdd:(R,F)=>_("addLabel",{name:R,color:F}),onUpdate:(R,F,W)=>_("updateLabel",{name:R,newName:F,color:W}),onDelete:R=>_("deleteLabel",{name:R})})]}):(0,K.jsx)("div",{className:"kanban-root kanban-loading",children:g?(0,K.jsx)("p",{className:"kanban-error",children:g}):(0,K.jsx)("p",{className:"kanban-muted-text",children:c("loading")})})}var _n=require("react");function rp({sessionId:e,inputActions:t}){let a=(0,_n.useSyncExternalStore)(ep,tp);return(0,_n.useEffect)(()=>{if(!e||!t?.setDraft)return;let o=Qf(e);o!=null&&t.setDraft(o)},[a,e,t]),null}var np={name:"dsh-kanban",inject:["slots","locale"],apply(e){bd(e);let t=e.get("slots");if(t===void 0)return;let a=e.get("workspaces"),o=e.get("sessions");t.inject("conversation.view",()=>t.register({name:"conversation.view",id:"kanban",order:20,label:()=>go("boardTab")},r=>(0,zs.createElement)(op,{...r,workspaces:a,sessions:o}))),t.inject("conversation.input.dock",()=>t.register({name:"conversation.input.dock",id:"kanban-chat-draft",order:100},r=>(0,zs.createElement)(rp,r)))}};var lp="data-dsh-kanban-style";if(typeof document<"u"&&!document.querySelector("style["+lp+"]")){let e=document.createElement("style");e.setAttribute(lp,""),e.textContent=ai,document.head.appendChild(e)}var pC=np;
|
|
1981
1218
|
/*! Bundled license information:
|
|
1982
1219
|
|
|
1983
1220
|
lucide-react/dist/esm/shared/src/utils.js:
|