cogpit 2.3.0 → 2.4.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cli.js +5644 -4349
- package/dist/web/assets/{CommandPaletteHost-D-VvT_HL.js → CommandPaletteHost-DJghey7B.js} +1 -1
- package/dist/web/assets/{ConfigBrowser-Cc2lrh85.js → ConfigBrowser-x0UdXG0K.js} +1 -1
- package/dist/web/assets/{HighlightedEditor-DWNz1Jcz.js → HighlightedEditor-D0TDZx8S.js} +1 -1
- package/dist/web/assets/{KeyboardShortcutsDialog-yOs1u5D6.js → KeyboardShortcutsDialog-2606YXAx.js} +1 -1
- package/dist/web/assets/{MobileFileChanges-B1dtcdSZ.js → MobileFileChanges-B4dwGXMS.js} +1 -1
- package/dist/web/assets/{PreviewPanel-BJwfunf9.js → PreviewPanel-CJdf-VLC.js} +1 -1
- package/dist/web/assets/{ProjectFilesPanel-DppuIFEt.js → ProjectFilesPanel-3GzuQyp3.js} +1 -1
- package/dist/web/assets/{ProjectSwitcherModal-DgsuH5CY.js → ProjectSwitcherModal-D8boI2Qx.js} +1 -1
- package/dist/web/assets/{TerminalOutput-DlGDS0Wx.js → TerminalOutput-C-6RWc6C.js} +1 -1
- package/dist/web/assets/{ThemeSelectorModal-oI9Vm3EH.js → ThemeSelectorModal-DZ9JuT6j.js} +1 -1
- package/dist/web/assets/{WorkflowsPanel-SKbsv_IK.js → WorkflowsPanel-i3GanFyN.js} +1 -1
- package/dist/web/assets/{WorktreePanel-CcSLupr7.js → WorktreePanel-D-BUTFL2.js} +1 -1
- package/dist/web/assets/{index-BVkjlOVU.js → index-BBKPLXTq.js} +1 -1
- package/dist/web/assets/index-CMQcske6.js +1 -0
- package/dist/web/assets/index-C_0XOtqJ.css +1 -0
- package/dist/web/assets/index-D6p4gVB_.js +154 -0
- package/dist/web/assets/{index-7FuVzOBC.js → index-ztb2qsgi.js} +1 -1
- package/dist/web/assets/{session-parser.worker-RMitC4X_.js → session-parser.worker-D3MwyNH5.js} +1 -1
- package/dist/web/assets/vendor-ui-RwWl1mlR.js +882 -0
- package/dist/web/index.html +3 -3
- package/package.json +1 -1
- package/dist/web/assets/index-Bw-DFQut.js +0 -1
- package/dist/web/assets/index-Du17HzQD.js +0 -151
- package/dist/web/assets/index-xdv0cIL2.css +0 -1
- package/dist/web/assets/vendor-ui-CdA11Wfh.js +0 -817
|
@@ -0,0 +1,882 @@
|
|
|
1
|
+
var Op=Object.defineProperty;var sc=e=>{throw TypeError(e)};var Ap=(e,t,n)=>t in e?Op(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var Ne=(e,t,n)=>Ap(e,typeof t!="symbol"?t+"":t,n),ic=(e,t,n)=>t.has(e)||sc("Cannot "+n);var Ro=(e,t,n)=>(ic(e,t,"read from private field"),n?n.call(e):t.get(e)),ac=(e,t,n)=>t.has(e)?sc("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,n),cc=(e,t,n,o)=>(ic(e,t,"write to private field"),o?o.call(e,n):t.set(e,n),n);import{r as c,R as mo,j as K,a as At,b as tu}from"./vendor-react-gGw_S5I_.js";/**
|
|
2
|
+
* @license lucide-react v0.577.0 - ISC
|
|
3
|
+
*
|
|
4
|
+
* This source code is licensed under the ISC license.
|
|
5
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
6
|
+
*/const nu=(...e)=>e.filter((t,n,o)=>!!t&&t.trim()!==""&&o.indexOf(t)===n).join(" ").trim();/**
|
|
7
|
+
* @license lucide-react v0.577.0 - ISC
|
|
8
|
+
*
|
|
9
|
+
* This source code is licensed under the ISC license.
|
|
10
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
11
|
+
*/const Np=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase();/**
|
|
12
|
+
* @license lucide-react v0.577.0 - ISC
|
|
13
|
+
*
|
|
14
|
+
* This source code is licensed under the ISC license.
|
|
15
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
16
|
+
*/const Dp=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(t,n,o)=>o?o.toUpperCase():n.toLowerCase());/**
|
|
17
|
+
* @license lucide-react v0.577.0 - ISC
|
|
18
|
+
*
|
|
19
|
+
* This source code is licensed under the ISC license.
|
|
20
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
21
|
+
*/const lc=e=>{const t=Dp(e);return t.charAt(0).toUpperCase()+t.slice(1)};/**
|
|
22
|
+
* @license lucide-react v0.577.0 - ISC
|
|
23
|
+
*
|
|
24
|
+
* This source code is licensed under the ISC license.
|
|
25
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
26
|
+
*/var _p={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"};/**
|
|
27
|
+
* @license lucide-react v0.577.0 - ISC
|
|
28
|
+
*
|
|
29
|
+
* This source code is licensed under the ISC license.
|
|
30
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
31
|
+
*/const Lp=e=>{for(const t in e)if(t.startsWith("aria-")||t==="role"||t==="title")return!0;return!1};/**
|
|
32
|
+
* @license lucide-react v0.577.0 - ISC
|
|
33
|
+
*
|
|
34
|
+
* This source code is licensed under the ISC license.
|
|
35
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
36
|
+
*/const Fp=c.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:n=2,absoluteStrokeWidth:o,className:r="",children:s,iconNode:i,...a},l)=>c.createElement("svg",{ref:l,..._p,width:t,height:t,stroke:e,strokeWidth:o?Number(n)*24/Number(t):n,className:nu("lucide",r),...!s&&!Lp(a)&&{"aria-hidden":"true"},...a},[...i.map(([u,d])=>c.createElement(u,d)),...Array.isArray(s)?s:[s]]));/**
|
|
37
|
+
* @license lucide-react v0.577.0 - ISC
|
|
38
|
+
*
|
|
39
|
+
* This source code is licensed under the ISC license.
|
|
40
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
41
|
+
*/const B=(e,t)=>{const n=c.forwardRef(({className:o,...r},s)=>c.createElement(Fp,{ref:s,iconNode:t,className:nu(`lucide-${Np(lc(e))}`,`lucide-${e}`,o),...r}));return n.displayName=lc(e),n};/**
|
|
42
|
+
* @license lucide-react v0.577.0 - ISC
|
|
43
|
+
*
|
|
44
|
+
* This source code is licensed under the ISC license.
|
|
45
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
46
|
+
*/const zp=[["path",{d:"M22 12h-2.48a2 2 0 0 0-1.93 1.46l-2.35 8.36a.25.25 0 0 1-.48 0L9.24 2.18a.25.25 0 0 0-.48 0l-2.35 8.36A2 2 0 0 1 4.49 12H2",key:"169zse"}]],rS=B("activity",zp);/**
|
|
47
|
+
* @license lucide-react v0.577.0 - ISC
|
|
48
|
+
*
|
|
49
|
+
* This source code is licensed under the ISC license.
|
|
50
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
51
|
+
*/const Vp=[["path",{d:"M17 7 7 17",key:"15tmo1"}],["path",{d:"M17 17H7V7",key:"1org7z"}]],sS=B("arrow-down-left",Vp);/**
|
|
52
|
+
* @license lucide-react v0.577.0 - ISC
|
|
53
|
+
*
|
|
54
|
+
* This source code is licensed under the ISC license.
|
|
55
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
56
|
+
*/const $p=[["path",{d:"M12 5v14",key:"s699le"}],["path",{d:"m19 12-7 7-7-7",key:"1idqje"}]],iS=B("arrow-down",$p);/**
|
|
57
|
+
* @license lucide-react v0.577.0 - ISC
|
|
58
|
+
*
|
|
59
|
+
* This source code is licensed under the ISC license.
|
|
60
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
61
|
+
*/const Hp=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]],aS=B("arrow-right",Hp);/**
|
|
62
|
+
* @license lucide-react v0.577.0 - ISC
|
|
63
|
+
*
|
|
64
|
+
* This source code is licensed under the ISC license.
|
|
65
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
66
|
+
*/const jp=[["path",{d:"M7 7h10v10",key:"1tivn9"}],["path",{d:"M7 17 17 7",key:"1vkiza"}]],cS=B("arrow-up-right",jp);/**
|
|
67
|
+
* @license lucide-react v0.577.0 - ISC
|
|
68
|
+
*
|
|
69
|
+
* This source code is licensed under the ISC license.
|
|
70
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
71
|
+
*/const Bp=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M4.929 4.929 19.07 19.071",key:"196cmz"}]],lS=B("ban",Bp);/**
|
|
72
|
+
* @license lucide-react v0.577.0 - ISC
|
|
73
|
+
*
|
|
74
|
+
* This source code is licensed under the ISC license.
|
|
75
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
76
|
+
*/const Wp=[["path",{d:"M10.268 21a2 2 0 0 0 3.464 0",key:"vwvbt9"}],["path",{d:"M3.262 15.326A1 1 0 0 0 4 17h16a1 1 0 0 0 .74-1.673C19.41 13.956 18 12.499 18 8A6 6 0 0 0 6 8c0 4.499-1.411 5.956-2.738 7.326",key:"11g9vi"}]],uS=B("bell",Wp);/**
|
|
77
|
+
* @license lucide-react v0.577.0 - ISC
|
|
78
|
+
*
|
|
79
|
+
* This source code is licensed under the ISC license.
|
|
80
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
81
|
+
*/const Up=[["path",{d:"M12 7v14",key:"1akyts"}],["path",{d:"M3 18a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1h5a4 4 0 0 1 4 4 4 4 0 0 1 4-4h5a1 1 0 0 1 1 1v13a1 1 0 0 1-1 1h-6a3 3 0 0 0-3 3 3 3 0 0 0-3-3z",key:"ruj8y"}]],dS=B("book-open",Up);/**
|
|
82
|
+
* @license lucide-react v0.577.0 - ISC
|
|
83
|
+
*
|
|
84
|
+
* This source code is licensed under the ISC license.
|
|
85
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
86
|
+
*/const Gp=[["path",{d:"M12 8V4H8",key:"hb8ula"}],["rect",{width:"16",height:"12",x:"4",y:"8",rx:"2",key:"enze0r"}],["path",{d:"M2 14h2",key:"vft8re"}],["path",{d:"M20 14h2",key:"4cs60a"}],["path",{d:"M15 13v2",key:"1xurst"}],["path",{d:"M9 13v2",key:"rq6x2g"}]],fS=B("bot",Gp);/**
|
|
87
|
+
* @license lucide-react v0.577.0 - ISC
|
|
88
|
+
*
|
|
89
|
+
* This source code is licensed under the ISC license.
|
|
90
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
91
|
+
*/const qp=[["path",{d:"M12 18V5",key:"adv99a"}],["path",{d:"M15 13a4.17 4.17 0 0 1-3-4 4.17 4.17 0 0 1-3 4",key:"1e3is1"}],["path",{d:"M17.598 6.5A3 3 0 1 0 12 5a3 3 0 1 0-5.598 1.5",key:"1gqd8o"}],["path",{d:"M17.997 5.125a4 4 0 0 1 2.526 5.77",key:"iwvgf7"}],["path",{d:"M18 18a4 4 0 0 0 2-7.464",key:"efp6ie"}],["path",{d:"M19.967 17.483A4 4 0 1 1 12 18a4 4 0 1 1-7.967-.517",key:"1gq6am"}],["path",{d:"M6 18a4 4 0 0 1-2-7.464",key:"k1g0md"}],["path",{d:"M6.003 5.125a4 4 0 0 0-2.526 5.77",key:"q97ue3"}]],pS=B("brain",qp);/**
|
|
92
|
+
* @license lucide-react v0.577.0 - ISC
|
|
93
|
+
*
|
|
94
|
+
* This source code is licensed under the ISC license.
|
|
95
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
96
|
+
*/const Yp=[["path",{d:"M16 14v2.2l1.6 1",key:"fo4ql5"}],["path",{d:"M16 2v4",key:"4m81vk"}],["path",{d:"M21 7.5V6a2 2 0 0 0-2-2H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h3.5",key:"1osxxc"}],["path",{d:"M3 10h5",key:"r794hk"}],["path",{d:"M8 2v4",key:"1cmpym"}],["circle",{cx:"16",cy:"16",r:"6",key:"qoo3c4"}]],hS=B("calendar-clock",Yp);/**
|
|
97
|
+
* @license lucide-react v0.577.0 - ISC
|
|
98
|
+
*
|
|
99
|
+
* This source code is licensed under the ISC license.
|
|
100
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
101
|
+
*/const Xp=[["path",{d:"M3 3v16a2 2 0 0 0 2 2h16",key:"c24i48"}],["path",{d:"M18 17V9",key:"2bz60n"}],["path",{d:"M13 17V5",key:"1frdt8"}],["path",{d:"M8 17v-3",key:"17ska0"}]],gS=B("chart-column",Xp);/**
|
|
102
|
+
* @license lucide-react v0.577.0 - ISC
|
|
103
|
+
*
|
|
104
|
+
* This source code is licensed under the ISC license.
|
|
105
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
106
|
+
*/const Kp=[["path",{d:"M18 6 7 17l-5-5",key:"116fxf"}],["path",{d:"m22 10-7.5 7.5L13 16",key:"ke71qq"}]],mS=B("check-check",Kp);/**
|
|
107
|
+
* @license lucide-react v0.577.0 - ISC
|
|
108
|
+
*
|
|
109
|
+
* This source code is licensed under the ISC license.
|
|
110
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
111
|
+
*/const Zp=[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]],yS=B("check",Zp);/**
|
|
112
|
+
* @license lucide-react v0.577.0 - ISC
|
|
113
|
+
*
|
|
114
|
+
* This source code is licensed under the ISC license.
|
|
115
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
116
|
+
*/const Qp=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],bS=B("chevron-down",Qp);/**
|
|
117
|
+
* @license lucide-react v0.577.0 - ISC
|
|
118
|
+
*
|
|
119
|
+
* This source code is licensed under the ISC license.
|
|
120
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
121
|
+
*/const Jp=[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]],vS=B("chevron-left",Jp);/**
|
|
122
|
+
* @license lucide-react v0.577.0 - ISC
|
|
123
|
+
*
|
|
124
|
+
* This source code is licensed under the ISC license.
|
|
125
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
126
|
+
*/const eh=[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]],xS=B("chevron-right",eh);/**
|
|
127
|
+
* @license lucide-react v0.577.0 - ISC
|
|
128
|
+
*
|
|
129
|
+
* This source code is licensed under the ISC license.
|
|
130
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
131
|
+
*/const th=[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]],wS=B("chevron-up",th);/**
|
|
132
|
+
* @license lucide-react v0.577.0 - ISC
|
|
133
|
+
*
|
|
134
|
+
* This source code is licensed under the ISC license.
|
|
135
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
136
|
+
*/const nh=[["path",{d:"m7 20 5-5 5 5",key:"13a0gw"}],["path",{d:"m7 4 5 5 5-5",key:"1kwcof"}]],SS=B("chevrons-down-up",nh);/**
|
|
137
|
+
* @license lucide-react v0.577.0 - ISC
|
|
138
|
+
*
|
|
139
|
+
* This source code is licensed under the ISC license.
|
|
140
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
141
|
+
*/const oh=[["path",{d:"m6 17 5-5-5-5",key:"xnjwq"}],["path",{d:"m13 17 5-5-5-5",key:"17xmmf"}]],RS=B("chevrons-right",oh);/**
|
|
142
|
+
* @license lucide-react v0.577.0 - ISC
|
|
143
|
+
*
|
|
144
|
+
* This source code is licensed under the ISC license.
|
|
145
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
146
|
+
*/const rh=[["path",{d:"m7 15 5 5 5-5",key:"1hf1tw"}],["path",{d:"m7 9 5-5 5 5",key:"sgt6xg"}]],kS=B("chevrons-up-down",rh);/**
|
|
147
|
+
* @license lucide-react v0.577.0 - ISC
|
|
148
|
+
*
|
|
149
|
+
* This source code is licensed under the ISC license.
|
|
150
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
151
|
+
*/const sh=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"12",x2:"12",y1:"8",y2:"12",key:"1pkeuh"}],["line",{x1:"12",x2:"12.01",y1:"16",y2:"16",key:"4dfq90"}]],CS=B("circle-alert",sh);/**
|
|
152
|
+
* @license lucide-react v0.577.0 - ISC
|
|
153
|
+
*
|
|
154
|
+
* This source code is licensed under the ISC license.
|
|
155
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
156
|
+
*/const ih=[["path",{d:"M21.801 10A10 10 0 1 1 17 3.335",key:"yps3ct"}],["path",{d:"m9 11 3 3L22 4",key:"1pflzl"}]],ES=B("circle-check-big",ih);/**
|
|
157
|
+
* @license lucide-react v0.577.0 - ISC
|
|
158
|
+
*
|
|
159
|
+
* This source code is licensed under the ISC license.
|
|
160
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
161
|
+
*/const ah=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m16 12-4-4-4 4",key:"177agl"}],["path",{d:"M12 16V8",key:"1sbj14"}]],MS=B("circle-arrow-up",ah);/**
|
|
162
|
+
* @license lucide-react v0.577.0 - ISC
|
|
163
|
+
*
|
|
164
|
+
* This source code is licensed under the ISC license.
|
|
165
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
166
|
+
*/const ch=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]],PS=B("circle-check",ch);/**
|
|
167
|
+
* @license lucide-react v0.577.0 - ISC
|
|
168
|
+
*
|
|
169
|
+
* This source code is licensed under the ISC license.
|
|
170
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
171
|
+
*/const lh=[["path",{d:"M10.1 2.182a10 10 0 0 1 3.8 0",key:"5ilxe3"}],["path",{d:"M13.9 21.818a10 10 0 0 1-3.8 0",key:"11zvb9"}],["path",{d:"M17.609 3.721a10 10 0 0 1 2.69 2.7",key:"1iw5b2"}],["path",{d:"M2.182 13.9a10 10 0 0 1 0-3.8",key:"c0bmvh"}],["path",{d:"M20.279 17.609a10 10 0 0 1-2.7 2.69",key:"1ruxm7"}],["path",{d:"M21.818 10.1a10 10 0 0 1 0 3.8",key:"qkgqxc"}],["path",{d:"M3.721 6.391a10 10 0 0 1 2.7-2.69",key:"1mcia2"}],["path",{d:"M6.391 20.279a10 10 0 0 1-2.69-2.7",key:"1fvljs"}]],TS=B("circle-dashed",lh);/**
|
|
172
|
+
* @license lucide-react v0.577.0 - ISC
|
|
173
|
+
*
|
|
174
|
+
* This source code is licensed under the ISC license.
|
|
175
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
176
|
+
*/const uh=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M16 8h-6a2 2 0 1 0 0 4h4a2 2 0 1 1 0 4H8",key:"1h4pet"}],["path",{d:"M12 18V6",key:"zqpxq5"}]],IS=B("circle-dollar-sign",uh);/**
|
|
177
|
+
* @license lucide-react v0.577.0 - ISC
|
|
178
|
+
*
|
|
179
|
+
* This source code is licensed under the ISC license.
|
|
180
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
181
|
+
*/const dh=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["circle",{cx:"12",cy:"12",r:"1",key:"41hilf"}]],OS=B("circle-dot",dh);/**
|
|
182
|
+
* @license lucide-react v0.577.0 - ISC
|
|
183
|
+
*
|
|
184
|
+
* This source code is licensed under the ISC license.
|
|
185
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
186
|
+
*/const fh=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M17 12h.01",key:"1m0b6t"}],["path",{d:"M12 12h.01",key:"1mp3jc"}],["path",{d:"M7 12h.01",key:"eqddd0"}]],AS=B("circle-ellipsis",fh);/**
|
|
187
|
+
* @license lucide-react v0.577.0 - ISC
|
|
188
|
+
*
|
|
189
|
+
* This source code is licensed under the ISC license.
|
|
190
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
191
|
+
*/const ph=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M8 12h8",key:"1wcyev"}]],NS=B("circle-minus",ph);/**
|
|
192
|
+
* @license lucide-react v0.577.0 - ISC
|
|
193
|
+
*
|
|
194
|
+
* This source code is licensed under the ISC license.
|
|
195
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
196
|
+
*/const hh=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3",key:"1u773s"}],["path",{d:"M12 17h.01",key:"p32p05"}]],DS=B("circle-question-mark",hh);/**
|
|
197
|
+
* @license lucide-react v0.577.0 - ISC
|
|
198
|
+
*
|
|
199
|
+
* This source code is licensed under the ISC license.
|
|
200
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
201
|
+
*/const gh=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"9",x2:"15",y1:"15",y2:"9",key:"1dfufj"}]],_S=B("circle-slash",gh);/**
|
|
202
|
+
* @license lucide-react v0.577.0 - ISC
|
|
203
|
+
*
|
|
204
|
+
* This source code is licensed under the ISC license.
|
|
205
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
206
|
+
*/const mh=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m15 9-6 6",key:"1uzhvr"}],["path",{d:"m9 9 6 6",key:"z0biqf"}]],LS=B("circle-x",mh);/**
|
|
207
|
+
* @license lucide-react v0.577.0 - ISC
|
|
208
|
+
*
|
|
209
|
+
* This source code is licensed under the ISC license.
|
|
210
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
211
|
+
*/const yh=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]],FS=B("circle",yh);/**
|
|
212
|
+
* @license lucide-react v0.577.0 - ISC
|
|
213
|
+
*
|
|
214
|
+
* This source code is licensed under the ISC license.
|
|
215
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
216
|
+
*/const bh=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 6v6h4",key:"135r8i"}]],zS=B("clock-3",bh);/**
|
|
217
|
+
* @license lucide-react v0.577.0 - ISC
|
|
218
|
+
*
|
|
219
|
+
* This source code is licensed under the ISC license.
|
|
220
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
221
|
+
*/const vh=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 6v6l4 2",key:"mmk7yg"}]],VS=B("clock",vh);/**
|
|
222
|
+
* @license lucide-react v0.577.0 - ISC
|
|
223
|
+
*
|
|
224
|
+
* This source code is licensed under the ISC license.
|
|
225
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
226
|
+
*/const xh=[["path",{d:"m18 16 4-4-4-4",key:"1inbqp"}],["path",{d:"m6 8-4 4 4 4",key:"15zrgr"}],["path",{d:"m14.5 4-5 16",key:"e7oirm"}]],$S=B("code-xml",xh);/**
|
|
227
|
+
* @license lucide-react v0.577.0 - ISC
|
|
228
|
+
*
|
|
229
|
+
* This source code is licensed under the ISC license.
|
|
230
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
231
|
+
*/const wh=[["path",{d:"M13.744 17.736a6 6 0 1 1-7.48-7.48",key:"bq4yh3"}],["path",{d:"M15 6h1v4",key:"11y1tn"}],["path",{d:"m6.134 14.768.866-.5 2 3.464",key:"17snzx"}],["circle",{cx:"16",cy:"8",r:"6",key:"14bfc9"}]],HS=B("coins",wh);/**
|
|
232
|
+
* @license lucide-react v0.577.0 - ISC
|
|
233
|
+
*
|
|
234
|
+
* This source code is licensed under the ISC license.
|
|
235
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
236
|
+
*/const Sh=[["line",{x1:"15",x2:"15",y1:"12",y2:"18",key:"1p7wdc"}],["line",{x1:"12",x2:"18",y1:"15",y2:"15",key:"1nscbv"}],["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]],jS=B("copy-plus",Sh);/**
|
|
237
|
+
* @license lucide-react v0.577.0 - ISC
|
|
238
|
+
*
|
|
239
|
+
* This source code is licensed under the ISC license.
|
|
240
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
241
|
+
*/const Rh=[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]],BS=B("copy",Rh);/**
|
|
242
|
+
* @license lucide-react v0.577.0 - ISC
|
|
243
|
+
*
|
|
244
|
+
* This source code is licensed under the ISC license.
|
|
245
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
246
|
+
*/const kh=[["path",{d:"M12 20v2",key:"1lh1kg"}],["path",{d:"M12 2v2",key:"tus03m"}],["path",{d:"M17 20v2",key:"1rnc9c"}],["path",{d:"M17 2v2",key:"11trls"}],["path",{d:"M2 12h2",key:"1t8f8n"}],["path",{d:"M2 17h2",key:"7oei6x"}],["path",{d:"M2 7h2",key:"asdhe0"}],["path",{d:"M20 12h2",key:"1q8mjw"}],["path",{d:"M20 17h2",key:"1fpfkl"}],["path",{d:"M20 7h2",key:"1o8tra"}],["path",{d:"M7 20v2",key:"4gnj0m"}],["path",{d:"M7 2v2",key:"1i4yhu"}],["rect",{x:"4",y:"4",width:"16",height:"16",rx:"2",key:"1vbyd7"}],["rect",{x:"8",y:"8",width:"8",height:"8",rx:"1",key:"z9xiuo"}]],WS=B("cpu",kh);/**
|
|
247
|
+
* @license lucide-react v0.577.0 - ISC
|
|
248
|
+
*
|
|
249
|
+
* This source code is licensed under the ISC license.
|
|
250
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
251
|
+
*/const Ch=[["path",{d:"M11.562 3.266a.5.5 0 0 1 .876 0L15.39 8.87a1 1 0 0 0 1.516.294L21.183 5.5a.5.5 0 0 1 .798.519l-2.834 10.246a1 1 0 0 1-.956.734H5.81a1 1 0 0 1-.957-.734L2.02 6.02a.5.5 0 0 1 .798-.519l4.276 3.664a1 1 0 0 0 1.516-.294z",key:"1vdc57"}],["path",{d:"M5 21h14",key:"11awu3"}]],US=B("crown",Ch);/**
|
|
252
|
+
* @license lucide-react v0.577.0 - ISC
|
|
253
|
+
*
|
|
254
|
+
* This source code is licensed under the ISC license.
|
|
255
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
256
|
+
*/const Eh=[["path",{d:"M12 15V3",key:"m9g1x1"}],["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["path",{d:"m7 10 5 5 5-5",key:"brsn70"}]],GS=B("download",Eh);/**
|
|
257
|
+
* @license lucide-react v0.577.0 - ISC
|
|
258
|
+
*
|
|
259
|
+
* This source code is licensed under the ISC license.
|
|
260
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
261
|
+
*/const Mh=[["path",{d:"M21.54 15H17a2 2 0 0 0-2 2v4.54",key:"1djwo0"}],["path",{d:"M7 3.34V5a3 3 0 0 0 3 3a2 2 0 0 1 2 2c0 1.1.9 2 2 2a2 2 0 0 0 2-2c0-1.1.9-2 2-2h3.17",key:"1tzkfa"}],["path",{d:"M11 21.95V18a2 2 0 0 0-2-2a2 2 0 0 1-2-2v-1a2 2 0 0 0-2-2H2.05",key:"14pb5j"}],["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]],qS=B("earth",Mh);/**
|
|
262
|
+
* @license lucide-react v0.577.0 - ISC
|
|
263
|
+
*
|
|
264
|
+
* This source code is licensed under the ISC license.
|
|
265
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
266
|
+
*/const Ph=[["circle",{cx:"12",cy:"12",r:"1",key:"41hilf"}],["circle",{cx:"19",cy:"12",r:"1",key:"1wjl8i"}],["circle",{cx:"5",cy:"12",r:"1",key:"1pcz8c"}]],YS=B("ellipsis",Ph);/**
|
|
267
|
+
* @license lucide-react v0.577.0 - ISC
|
|
268
|
+
*
|
|
269
|
+
* This source code is licensed under the ISC license.
|
|
270
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
271
|
+
*/const Th=[["path",{d:"M15 3h6v6",key:"1q9fwt"}],["path",{d:"M10 14 21 3",key:"gplh6r"}],["path",{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6",key:"a6xqqp"}]],XS=B("external-link",Th);/**
|
|
272
|
+
* @license lucide-react v0.577.0 - ISC
|
|
273
|
+
*
|
|
274
|
+
* This source code is licensed under the ISC license.
|
|
275
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
276
|
+
*/const Ih=[["path",{d:"M10.733 5.076a10.744 10.744 0 0 1 11.205 6.575 1 1 0 0 1 0 .696 10.747 10.747 0 0 1-1.444 2.49",key:"ct8e1f"}],["path",{d:"M14.084 14.158a3 3 0 0 1-4.242-4.242",key:"151rxh"}],["path",{d:"M17.479 17.499a10.75 10.75 0 0 1-15.417-5.151 1 1 0 0 1 0-.696 10.75 10.75 0 0 1 4.446-5.143",key:"13bj9a"}],["path",{d:"m2 2 20 20",key:"1ooewy"}]],KS=B("eye-off",Ih);/**
|
|
277
|
+
* @license lucide-react v0.577.0 - ISC
|
|
278
|
+
*
|
|
279
|
+
* This source code is licensed under the ISC license.
|
|
280
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
281
|
+
*/const Oh=[["path",{d:"M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0",key:"1nclc0"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]],ZS=B("eye",Oh);/**
|
|
282
|
+
* @license lucide-react v0.577.0 - ISC
|
|
283
|
+
*
|
|
284
|
+
* This source code is licensed under the ISC license.
|
|
285
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
286
|
+
*/const Ah=[["path",{d:"M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z",key:"1oefj6"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["path",{d:"M10 12a1 1 0 0 0-1 1v1a1 1 0 0 1-1 1 1 1 0 0 1 1 1v1a1 1 0 0 0 1 1",key:"1oajmo"}],["path",{d:"M14 18a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1 1 1 0 0 1-1-1v-1a1 1 0 0 0-1-1",key:"mpwhp6"}]],QS=B("file-braces",Ah);/**
|
|
287
|
+
* @license lucide-react v0.577.0 - ISC
|
|
288
|
+
*
|
|
289
|
+
* This source code is licensed under the ISC license.
|
|
290
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
291
|
+
*/const Nh=[["path",{d:"M4 12.15V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.706.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2h-3.35",key:"1wthlu"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["path",{d:"m5 16-3 3 3 3",key:"331omg"}],["path",{d:"m9 22 3-3-3-3",key:"lsp7cz"}]],JS=B("file-code-corner",Nh);/**
|
|
292
|
+
* @license lucide-react v0.577.0 - ISC
|
|
293
|
+
*
|
|
294
|
+
* This source code is licensed under the ISC license.
|
|
295
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
296
|
+
*/const Dh=[["path",{d:"M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z",key:"1oefj6"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["circle",{cx:"10",cy:"12",r:"2",key:"737tya"}],["path",{d:"m20 17-1.296-1.296a2.41 2.41 0 0 0-3.408 0L9 22",key:"wt3hpn"}]],eR=B("file-image",Dh);/**
|
|
297
|
+
* @license lucide-react v0.577.0 - ISC
|
|
298
|
+
*
|
|
299
|
+
* This source code is licensed under the ISC license.
|
|
300
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
301
|
+
*/const _h=[["path",{d:"M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z",key:"1oefj6"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["path",{d:"m8 16 2-2-2-2",key:"10vzyd"}],["path",{d:"M12 18h4",key:"1wd2n7"}]],tR=B("file-terminal",_h);/**
|
|
302
|
+
* @license lucide-react v0.577.0 - ISC
|
|
303
|
+
*
|
|
304
|
+
* This source code is licensed under the ISC license.
|
|
305
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
306
|
+
*/const Lh=[["path",{d:"M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z",key:"1oefj6"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["path",{d:"M10 9H8",key:"b1mrlr"}],["path",{d:"M16 13H8",key:"t4e002"}],["path",{d:"M16 17H8",key:"z1uh3a"}]],nR=B("file-text",Lh);/**
|
|
307
|
+
* @license lucide-react v0.577.0 - ISC
|
|
308
|
+
*
|
|
309
|
+
* This source code is licensed under the ISC license.
|
|
310
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
311
|
+
*/const Fh=[["path",{d:"M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z",key:"1oefj6"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}]],oR=B("file",Fh);/**
|
|
312
|
+
* @license lucide-react v0.577.0 - ISC
|
|
313
|
+
*
|
|
314
|
+
* This source code is licensed under the ISC license.
|
|
315
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
316
|
+
*/const zh=[["path",{d:"M4 22V4a1 1 0 0 1 .4-.8A6 6 0 0 1 8 2c3 0 5 2 7.333 2q2 0 3.067-.8A1 1 0 0 1 20 4v10a1 1 0 0 1-.4.8A6 6 0 0 1 16 16c-3 0-5-2-8-2a6 6 0 0 0-4 1.528",key:"1jaruq"}]],rR=B("flag",zh);/**
|
|
317
|
+
* @license lucide-react v0.577.0 - ISC
|
|
318
|
+
*
|
|
319
|
+
* This source code is licensed under the ISC license.
|
|
320
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
321
|
+
*/const Vh=[["path",{d:"M12 3q1 4 4 6.5t3 5.5a1 1 0 0 1-14 0 5 5 0 0 1 1-3 1 1 0 0 0 5 0c0-2-1.5-3-1.5-5q0-2 2.5-4",key:"1slcih"}]],sR=B("flame",Vh);/**
|
|
322
|
+
* @license lucide-react v0.577.0 - ISC
|
|
323
|
+
*
|
|
324
|
+
* This source code is licensed under the ISC license.
|
|
325
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
326
|
+
*/const $h=[["path",{d:"M10 10.5 8 13l2 2.5",key:"m4t9c1"}],["path",{d:"m14 10.5 2 2.5-2 2.5",key:"14w2eb"}],["path",{d:"M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2z",key:"1u1bxd"}]],iR=B("folder-code",$h);/**
|
|
327
|
+
* @license lucide-react v0.577.0 - ISC
|
|
328
|
+
*
|
|
329
|
+
* This source code is licensed under the ISC license.
|
|
330
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
331
|
+
*/const Hh=[["path",{d:"m6 14 1.5-2.9A2 2 0 0 1 9.24 10H20a2 2 0 0 1 1.94 2.5l-1.54 6a2 2 0 0 1-1.95 1.5H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h3.9a2 2 0 0 1 1.69.9l.81 1.2a2 2 0 0 0 1.67.9H18a2 2 0 0 1 2 2v2",key:"usdka0"}]],aR=B("folder-open",Hh);/**
|
|
332
|
+
* @license lucide-react v0.577.0 - ISC
|
|
333
|
+
*
|
|
334
|
+
* This source code is licensed under the ISC license.
|
|
335
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
336
|
+
*/const jh=[["path",{d:"M12 10v6",key:"1bos4e"}],["path",{d:"M9 13h6",key:"1uhe8q"}],["path",{d:"M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z",key:"1kt360"}]],cR=B("folder-plus",jh);/**
|
|
337
|
+
* @license lucide-react v0.577.0 - ISC
|
|
338
|
+
*
|
|
339
|
+
* This source code is licensed under the ISC license.
|
|
340
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
341
|
+
*/const Bh=[["path",{d:"M10.7 20H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h3.9a2 2 0 0 1 1.69.9l.81 1.2a2 2 0 0 0 1.67.9H20a2 2 0 0 1 2 2v4.1",key:"1bw5m7"}],["path",{d:"m21 21-1.9-1.9",key:"1g2n9r"}],["circle",{cx:"17",cy:"17",r:"3",key:"18b49y"}]],lR=B("folder-search",Bh);/**
|
|
342
|
+
* @license lucide-react v0.577.0 - ISC
|
|
343
|
+
*
|
|
344
|
+
* This source code is licensed under the ISC license.
|
|
345
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
346
|
+
*/const Wh=[["path",{d:"M20 10a1 1 0 0 0 1-1V6a1 1 0 0 0-1-1h-2.5a1 1 0 0 1-.8-.4l-.9-1.2A1 1 0 0 0 15 3h-2a1 1 0 0 0-1 1v5a1 1 0 0 0 1 1Z",key:"hod4my"}],["path",{d:"M20 21a1 1 0 0 0 1-1v-3a1 1 0 0 0-1-1h-2.9a1 1 0 0 1-.88-.55l-.42-.85a1 1 0 0 0-.92-.6H13a1 1 0 0 0-1 1v5a1 1 0 0 0 1 1Z",key:"w4yl2u"}],["path",{d:"M3 5a2 2 0 0 0 2 2h3",key:"f2jnh7"}],["path",{d:"M3 3v13a2 2 0 0 0 2 2h3",key:"k8epm1"}]],uR=B("folder-tree",Wh);/**
|
|
347
|
+
* @license lucide-react v0.577.0 - ISC
|
|
348
|
+
*
|
|
349
|
+
* This source code is licensed under the ISC license.
|
|
350
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
351
|
+
*/const Uh=[["path",{d:"M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z",key:"1kt360"}]],dR=B("folder",Uh);/**
|
|
352
|
+
* @license lucide-react v0.577.0 - ISC
|
|
353
|
+
*
|
|
354
|
+
* This source code is licensed under the ISC license.
|
|
355
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
356
|
+
*/const Gh=[["path",{d:"M15 6a9 9 0 0 0-9 9V3",key:"1cii5b"}],["circle",{cx:"18",cy:"6",r:"3",key:"1h7g24"}],["circle",{cx:"6",cy:"18",r:"3",key:"fqmcym"}]],fR=B("git-branch",Gh);/**
|
|
357
|
+
* @license lucide-react v0.577.0 - ISC
|
|
358
|
+
*
|
|
359
|
+
* This source code is licensed under the ISC license.
|
|
360
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
361
|
+
*/const qh=[["circle",{cx:"5",cy:"6",r:"3",key:"1qnov2"}],["path",{d:"M12 6h5a2 2 0 0 1 2 2v7",key:"1yj91y"}],["path",{d:"m15 9-3-3 3-3",key:"1lwv8l"}],["circle",{cx:"19",cy:"18",r:"3",key:"1qljk2"}],["path",{d:"M12 18H7a2 2 0 0 1-2-2V9",key:"16sdep"}],["path",{d:"m9 15 3 3-3 3",key:"1m3kbl"}]],pR=B("git-compare-arrows",qh);/**
|
|
362
|
+
* @license lucide-react v0.577.0 - ISC
|
|
363
|
+
*
|
|
364
|
+
* This source code is licensed under the ISC license.
|
|
365
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
366
|
+
*/const Yh=[["circle",{cx:"12",cy:"18",r:"3",key:"1mpf1b"}],["circle",{cx:"6",cy:"6",r:"3",key:"1lh9wr"}],["circle",{cx:"18",cy:"6",r:"3",key:"1h7g24"}],["path",{d:"M18 9v2c0 .6-.4 1-1 1H7c-.6 0-1-.4-1-1V9",key:"1uq4wg"}],["path",{d:"M12 12v3",key:"158kv8"}]],hR=B("git-fork",Yh);/**
|
|
367
|
+
* @license lucide-react v0.577.0 - ISC
|
|
368
|
+
*
|
|
369
|
+
* This source code is licensed under the ISC license.
|
|
370
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
371
|
+
*/const Xh=[["circle",{cx:"18",cy:"18",r:"3",key:"1xkwt0"}],["circle",{cx:"6",cy:"6",r:"3",key:"1lh9wr"}],["path",{d:"M6 21V9a9 9 0 0 0 9 9",key:"7kw0sc"}]],gR=B("git-merge",Xh);/**
|
|
372
|
+
* @license lucide-react v0.577.0 - ISC
|
|
373
|
+
*
|
|
374
|
+
* This source code is licensed under the ISC license.
|
|
375
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
376
|
+
*/const Kh=[["circle",{cx:"6",cy:"6",r:"3",key:"1lh9wr"}],["path",{d:"M6 9v12",key:"1sc30k"}],["path",{d:"m21 3-6 6",key:"16nqsk"}],["path",{d:"m21 9-6-6",key:"9j17rh"}],["path",{d:"M18 11.5V15",key:"65xf6f"}],["circle",{cx:"18",cy:"18",r:"3",key:"1xkwt0"}]],mR=B("git-pull-request-closed",Kh);/**
|
|
377
|
+
* @license lucide-react v0.577.0 - ISC
|
|
378
|
+
*
|
|
379
|
+
* This source code is licensed under the ISC license.
|
|
380
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
381
|
+
*/const Zh=[["circle",{cx:"18",cy:"18",r:"3",key:"1xkwt0"}],["circle",{cx:"6",cy:"6",r:"3",key:"1lh9wr"}],["path",{d:"M18 6V5",key:"1oao2s"}],["path",{d:"M18 11v-1",key:"11c8tz"}],["line",{x1:"6",x2:"6",y1:"9",y2:"21",key:"rroup"}]],yR=B("git-pull-request-draft",Zh);/**
|
|
382
|
+
* @license lucide-react v0.577.0 - ISC
|
|
383
|
+
*
|
|
384
|
+
* This source code is licensed under the ISC license.
|
|
385
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
386
|
+
*/const Qh=[["circle",{cx:"18",cy:"18",r:"3",key:"1xkwt0"}],["circle",{cx:"6",cy:"6",r:"3",key:"1lh9wr"}],["path",{d:"M13 6h3a2 2 0 0 1 2 2v7",key:"1yeb86"}],["line",{x1:"6",x2:"6",y1:"9",y2:"21",key:"rroup"}]],bR=B("git-pull-request",Qh);/**
|
|
387
|
+
* @license lucide-react v0.577.0 - ISC
|
|
388
|
+
*
|
|
389
|
+
* This source code is licensed under the ISC license.
|
|
390
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
391
|
+
*/const Jh=[["path",{d:"M15 22v-4a4.8 4.8 0 0 0-1-3.5c3 0 6-2 6-5.5.08-1.25-.27-2.48-1-3.5.28-1.15.28-2.35 0-3.5 0 0-1 0-3 1.5-2.64-.5-5.36-.5-8 0C6 2 5 2 5 2c-.3 1.15-.3 2.35 0 3.5A5.403 5.403 0 0 0 4 9c0 3.5 3 5.5 6 5.5-.39.49-.68 1.05-.85 1.65-.17.6-.22 1.23-.15 1.85v4",key:"tonef"}],["path",{d:"M9 18c-4.51 2-5-2-7-2",key:"9comsn"}]],vR=B("github",Jh);/**
|
|
392
|
+
* @license lucide-react v0.577.0 - ISC
|
|
393
|
+
*
|
|
394
|
+
* This source code is licensed under the ISC license.
|
|
395
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
396
|
+
*/const eg=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20",key:"13o1zl"}],["path",{d:"M2 12h20",key:"9i4pu4"}]],xR=B("globe",eg);/**
|
|
397
|
+
* @license lucide-react v0.577.0 - ISC
|
|
398
|
+
*
|
|
399
|
+
* This source code is licensed under the ISC license.
|
|
400
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
401
|
+
*/const tg=[["path",{d:"M18 11V6a2 2 0 0 0-2-2a2 2 0 0 0-2 2",key:"1fvzgz"}],["path",{d:"M14 10V4a2 2 0 0 0-2-2a2 2 0 0 0-2 2v2",key:"1kc0my"}],["path",{d:"M10 10.5V6a2 2 0 0 0-2-2a2 2 0 0 0-2 2v8",key:"10h0bg"}],["path",{d:"M18 8a2 2 0 1 1 4 0v6a8 8 0 0 1-8 8h-2c-2.8 0-4.5-.86-5.99-2.34l-3.6-3.6a2 2 0 0 1 2.83-2.82L7 15",key:"1s1gnw"}]],wR=B("hand",tg);/**
|
|
402
|
+
* @license lucide-react v0.577.0 - ISC
|
|
403
|
+
*
|
|
404
|
+
* This source code is licensed under the ISC license.
|
|
405
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
406
|
+
*/const ng=[["path",{d:"M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8",key:"1357e3"}],["path",{d:"M3 3v5h5",key:"1xhq8a"}],["path",{d:"M12 7v5l4 2",key:"1fdv2h"}]],SR=B("history",ng);/**
|
|
407
|
+
* @license lucide-react v0.577.0 - ISC
|
|
408
|
+
*
|
|
409
|
+
* This source code is licensed under the ISC license.
|
|
410
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
411
|
+
*/const og=[["path",{d:"M15 21v-8a1 1 0 0 0-1-1h-4a1 1 0 0 0-1 1v8",key:"5wwlr5"}],["path",{d:"M3 10a2 2 0 0 1 .709-1.528l7-6a2 2 0 0 1 2.582 0l7 6A2 2 0 0 1 21 10v9a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z",key:"r6nss1"}]],RR=B("house",og);/**
|
|
412
|
+
* @license lucide-react v0.577.0 - ISC
|
|
413
|
+
*
|
|
414
|
+
* This source code is licensed under the ISC license.
|
|
415
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
416
|
+
*/const rg=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",ry:"2",key:"1m3agn"}],["circle",{cx:"9",cy:"9",r:"2",key:"af1f0g"}],["path",{d:"m21 15-3.086-3.086a2 2 0 0 0-2.828 0L6 21",key:"1xmnt7"}]],kR=B("image",rg);/**
|
|
417
|
+
* @license lucide-react v0.577.0 - ISC
|
|
418
|
+
*
|
|
419
|
+
* This source code is licensed under the ISC license.
|
|
420
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
421
|
+
*/const sg=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 16v-4",key:"1dtifu"}],["path",{d:"M12 8h.01",key:"e9boi3"}]],CR=B("info",sg);/**
|
|
422
|
+
* @license lucide-react v0.577.0 - ISC
|
|
423
|
+
*
|
|
424
|
+
* This source code is licensed under the ISC license.
|
|
425
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
426
|
+
*/const ig=[["path",{d:"M6 16c5 0 7-8 12-8a4 4 0 0 1 0 8c-5 0-7-8-12-8a4 4 0 1 0 0 8",key:"18ogeb"}]],ER=B("infinity",ig);/**
|
|
427
|
+
* @license lucide-react v0.577.0 - ISC
|
|
428
|
+
*
|
|
429
|
+
* This source code is licensed under the ISC license.
|
|
430
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
431
|
+
*/const ag=[["path",{d:"M2.586 17.414A2 2 0 0 0 2 18.828V21a1 1 0 0 0 1 1h3a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1h1a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1h.172a2 2 0 0 0 1.414-.586l.814-.814a6.5 6.5 0 1 0-4-4z",key:"1s6t7t"}],["circle",{cx:"16.5",cy:"7.5",r:".5",fill:"currentColor",key:"w0ekpg"}]],MR=B("key-round",ag);/**
|
|
432
|
+
* @license lucide-react v0.577.0 - ISC
|
|
433
|
+
*
|
|
434
|
+
* This source code is licensed under the ISC license.
|
|
435
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
436
|
+
*/const cg=[["path",{d:"M10 8h.01",key:"1r9ogq"}],["path",{d:"M12 12h.01",key:"1mp3jc"}],["path",{d:"M14 8h.01",key:"1primd"}],["path",{d:"M16 12h.01",key:"1l6xoz"}],["path",{d:"M18 8h.01",key:"emo2bl"}],["path",{d:"M6 8h.01",key:"x9i8wu"}],["path",{d:"M7 16h10",key:"wp8him"}],["path",{d:"M8 12h.01",key:"czm47f"}],["rect",{width:"20",height:"16",x:"2",y:"4",rx:"2",key:"18n3k1"}]],PR=B("keyboard",cg);/**
|
|
437
|
+
* @license lucide-react v0.577.0 - ISC
|
|
438
|
+
*
|
|
439
|
+
* This source code is licensed under the ISC license.
|
|
440
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
441
|
+
*/const lg=[["path",{d:"M18 5a2 2 0 0 1 2 2v8.526a2 2 0 0 0 .212.897l1.068 2.127a1 1 0 0 1-.9 1.45H3.62a1 1 0 0 1-.9-1.45l1.068-2.127A2 2 0 0 0 4 15.526V7a2 2 0 0 1 2-2z",key:"1pdavp"}],["path",{d:"M20.054 15.987H3.946",key:"14rxg9"}]],TR=B("laptop",lg);/**
|
|
442
|
+
* @license lucide-react v0.577.0 - ISC
|
|
443
|
+
*
|
|
444
|
+
* This source code is licensed under the ISC license.
|
|
445
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
446
|
+
*/const ug=[["path",{d:"M12.83 2.18a2 2 0 0 0-1.66 0L2.6 6.08a1 1 0 0 0 0 1.83l8.58 3.91a2 2 0 0 0 1.66 0l8.58-3.9a1 1 0 0 0 0-1.83z",key:"zw3jo"}],["path",{d:"M2 12a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 12",key:"1wduqc"}],["path",{d:"M2 17a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 17",key:"kqbvx6"}]],IR=B("layers",ug);/**
|
|
447
|
+
* @license lucide-react v0.577.0 - ISC
|
|
448
|
+
*
|
|
449
|
+
* This source code is licensed under the ISC license.
|
|
450
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
451
|
+
*/const dg=[["rect",{width:"7",height:"7",x:"3",y:"3",rx:"1",key:"1g98yp"}],["rect",{width:"7",height:"7",x:"14",y:"3",rx:"1",key:"6d4xhi"}],["rect",{width:"7",height:"7",x:"14",y:"14",rx:"1",key:"nxv5o0"}],["rect",{width:"7",height:"7",x:"3",y:"14",rx:"1",key:"1bb6yr"}]],OR=B("layout-grid",dg);/**
|
|
452
|
+
* @license lucide-react v0.577.0 - ISC
|
|
453
|
+
*
|
|
454
|
+
* This source code is licensed under the ISC license.
|
|
455
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
456
|
+
*/const fg=[["path",{d:"M9 17H7A5 5 0 0 1 7 7",key:"10o201"}],["path",{d:"M15 7h2a5 5 0 0 1 4 8",key:"1d3206"}],["line",{x1:"8",x2:"12",y1:"12",y2:"12",key:"rvw6j4"}],["line",{x1:"2",x2:"22",y1:"2",y2:"22",key:"a6p6uj"}]],AR=B("link-2-off",fg);/**
|
|
457
|
+
* @license lucide-react v0.577.0 - ISC
|
|
458
|
+
*
|
|
459
|
+
* This source code is licensed under the ISC license.
|
|
460
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
461
|
+
*/const pg=[["path",{d:"M9 17H7A5 5 0 0 1 7 7h2",key:"8i5ue5"}],["path",{d:"M15 7h2a5 5 0 1 1 0 10h-2",key:"1b9ql8"}],["line",{x1:"8",x2:"16",y1:"12",y2:"12",key:"1jonct"}]],NR=B("link-2",pg);/**
|
|
462
|
+
* @license lucide-react v0.577.0 - ISC
|
|
463
|
+
*
|
|
464
|
+
* This source code is licensed under the ISC license.
|
|
465
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
466
|
+
*/const hg=[["path",{d:"M13 5h8",key:"a7qcls"}],["path",{d:"M13 12h8",key:"h98zly"}],["path",{d:"M13 19h8",key:"c3s6r1"}],["path",{d:"m3 17 2 2 4-4",key:"1jhpwq"}],["path",{d:"m3 7 2 2 4-4",key:"1obspn"}]],DR=B("list-checks",hg);/**
|
|
467
|
+
* @license lucide-react v0.577.0 - ISC
|
|
468
|
+
*
|
|
469
|
+
* This source code is licensed under the ISC license.
|
|
470
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
471
|
+
*/const gg=[["path",{d:"M3 5h.01",key:"18ugdj"}],["path",{d:"M3 12h.01",key:"nlz23k"}],["path",{d:"M3 19h.01",key:"noohij"}],["path",{d:"M8 5h13",key:"1pao27"}],["path",{d:"M8 12h13",key:"1za7za"}],["path",{d:"M8 19h13",key:"m83p4d"}]],_R=B("list",gg);/**
|
|
472
|
+
* @license lucide-react v0.577.0 - ISC
|
|
473
|
+
*
|
|
474
|
+
* This source code is licensed under the ISC license.
|
|
475
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
476
|
+
*/const mg=[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]],LR=B("loader-circle",mg);/**
|
|
477
|
+
* @license lucide-react v0.577.0 - ISC
|
|
478
|
+
*
|
|
479
|
+
* This source code is licensed under the ISC license.
|
|
480
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
481
|
+
*/const yg=[["rect",{width:"18",height:"11",x:"3",y:"11",rx:"2",ry:"2",key:"1w4ew1"}],["path",{d:"M7 11V7a5 5 0 0 1 10 0v4",key:"fwvmzm"}]],FR=B("lock",yg);/**
|
|
482
|
+
* @license lucide-react v0.577.0 - ISC
|
|
483
|
+
*
|
|
484
|
+
* This source code is licensed under the ISC license.
|
|
485
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
486
|
+
*/const bg=[["path",{d:"M15 3h6v6",key:"1q9fwt"}],["path",{d:"m21 3-7 7",key:"1l2asr"}],["path",{d:"m3 21 7-7",key:"tjx5ai"}],["path",{d:"M9 21H3v-6",key:"wtvkvv"}]],zR=B("maximize-2",bg);/**
|
|
487
|
+
* @license lucide-react v0.577.0 - ISC
|
|
488
|
+
*
|
|
489
|
+
* This source code is licensed under the ISC license.
|
|
490
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
491
|
+
*/const vg=[["path",{d:"M2.992 16.342a2 2 0 0 1 .094 1.167l-1.065 3.29a1 1 0 0 0 1.236 1.168l3.413-.998a2 2 0 0 1 1.099.092 10 10 0 1 0-4.777-4.719",key:"1sd12s"}],["path",{d:"M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3",key:"1u773s"}],["path",{d:"M12 17h.01",key:"p32p05"}]],VR=B("message-circle-question-mark",vg);/**
|
|
492
|
+
* @license lucide-react v0.577.0 - ISC
|
|
493
|
+
*
|
|
494
|
+
* This source code is licensed under the ISC license.
|
|
495
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
496
|
+
*/const xg=[["path",{d:"M2.992 16.342a2 2 0 0 1 .094 1.167l-1.065 3.29a1 1 0 0 0 1.236 1.168l3.413-.998a2 2 0 0 1 1.099.092 10 10 0 1 0-4.777-4.719",key:"1sd12s"}]],$R=B("message-circle",xg);/**
|
|
497
|
+
* @license lucide-react v0.577.0 - ISC
|
|
498
|
+
*
|
|
499
|
+
* This source code is licensed under the ISC license.
|
|
500
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
501
|
+
*/const wg=[["path",{d:"M22 17a2 2 0 0 1-2 2H6.828a2 2 0 0 0-1.414.586l-2.202 2.202A.71.71 0 0 1 2 21.286V5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2z",key:"18887p"}],["path",{d:"M12 8v6",key:"1ib9pf"}],["path",{d:"M9 11h6",key:"1fldmi"}]],HR=B("message-square-plus",wg);/**
|
|
502
|
+
* @license lucide-react v0.577.0 - ISC
|
|
503
|
+
*
|
|
504
|
+
* This source code is licensed under the ISC license.
|
|
505
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
506
|
+
*/const Sg=[["path",{d:"M22 17a2 2 0 0 1-2 2H6.828a2 2 0 0 0-1.414.586l-2.202 2.202A.71.71 0 0 1 2 21.286V5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2z",key:"18887p"}],["path",{d:"M7 11h10",key:"1twpyw"}],["path",{d:"M7 15h6",key:"d9of3u"}],["path",{d:"M7 7h8",key:"af5zfr"}]],jR=B("message-square-text",Sg);/**
|
|
507
|
+
* @license lucide-react v0.577.0 - ISC
|
|
508
|
+
*
|
|
509
|
+
* This source code is licensed under the ISC license.
|
|
510
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
511
|
+
*/const Rg=[["path",{d:"M22 17a2 2 0 0 1-2 2H6.828a2 2 0 0 0-1.414.586l-2.202 2.202A.71.71 0 0 1 2 21.286V5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2z",key:"18887p"}]],BR=B("message-square",Rg);/**
|
|
512
|
+
* @license lucide-react v0.577.0 - ISC
|
|
513
|
+
*
|
|
514
|
+
* This source code is licensed under the ISC license.
|
|
515
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
516
|
+
*/const kg=[["path",{d:"M16 10a2 2 0 0 1-2 2H6.828a2 2 0 0 0-1.414.586l-2.202 2.202A.71.71 0 0 1 2 14.286V4a2 2 0 0 1 2-2h10a2 2 0 0 1 2 2z",key:"1n2ejm"}],["path",{d:"M20 9a2 2 0 0 1 2 2v10.286a.71.71 0 0 1-1.212.502l-2.202-2.202A2 2 0 0 0 17.172 19H10a2 2 0 0 1-2-2v-1",key:"1qfcsi"}]],WR=B("messages-square",kg);/**
|
|
517
|
+
* @license lucide-react v0.577.0 - ISC
|
|
518
|
+
*
|
|
519
|
+
* This source code is licensed under the ISC license.
|
|
520
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
521
|
+
*/const Cg=[["path",{d:"m14 10 7-7",key:"oa77jy"}],["path",{d:"M20 10h-6V4",key:"mjg0md"}],["path",{d:"m3 21 7-7",key:"tjx5ai"}],["path",{d:"M4 14h6v6",key:"rmj7iw"}]],UR=B("minimize-2",Cg);/**
|
|
522
|
+
* @license lucide-react v0.577.0 - ISC
|
|
523
|
+
*
|
|
524
|
+
* This source code is licensed under the ISC license.
|
|
525
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
526
|
+
*/const Eg=[["path",{d:"M5 12h14",key:"1ays0h"}]],GR=B("minus",Eg);/**
|
|
527
|
+
* @license lucide-react v0.577.0 - ISC
|
|
528
|
+
*
|
|
529
|
+
* This source code is licensed under the ISC license.
|
|
530
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
531
|
+
*/const Mg=[["rect",{width:"20",height:"14",x:"2",y:"3",rx:"2",key:"48i651"}],["line",{x1:"8",x2:"16",y1:"21",y2:"21",key:"1svkeh"}],["line",{x1:"12",x2:"12",y1:"17",y2:"21",key:"vw1qmm"}]],qR=B("monitor",Mg);/**
|
|
532
|
+
* @license lucide-react v0.577.0 - ISC
|
|
533
|
+
*
|
|
534
|
+
* This source code is licensed under the ISC license.
|
|
535
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
536
|
+
*/const Pg=[["path",{d:"M13.4 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2v-7.4",key:"re6nr2"}],["path",{d:"M2 6h4",key:"aawbzj"}],["path",{d:"M2 10h4",key:"l0bgd4"}],["path",{d:"M2 14h4",key:"1gsvsf"}],["path",{d:"M2 18h4",key:"1bu2t1"}],["path",{d:"M21.378 5.626a1 1 0 1 0-3.004-3.004l-5.01 5.012a2 2 0 0 0-.506.854l-.837 2.87a.5.5 0 0 0 .62.62l2.87-.837a2 2 0 0 0 .854-.506z",key:"pqwjuv"}]],YR=B("notebook-pen",Pg);/**
|
|
537
|
+
* @license lucide-react v0.577.0 - ISC
|
|
538
|
+
*
|
|
539
|
+
* This source code is licensed under the ISC license.
|
|
540
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
541
|
+
*/const Tg=[["path",{d:"m15 9-6 6",key:"1uzhvr"}],["path",{d:"M2.586 16.726A2 2 0 0 1 2 15.312V8.688a2 2 0 0 1 .586-1.414l4.688-4.688A2 2 0 0 1 8.688 2h6.624a2 2 0 0 1 1.414.586l4.688 4.688A2 2 0 0 1 22 8.688v6.624a2 2 0 0 1-.586 1.414l-4.688 4.688a2 2 0 0 1-1.414.586H8.688a2 2 0 0 1-1.414-.586z",key:"2d38gg"}],["path",{d:"m9 9 6 6",key:"z0biqf"}]],XR=B("octagon-x",Tg);/**
|
|
542
|
+
* @license lucide-react v0.577.0 - ISC
|
|
543
|
+
*
|
|
544
|
+
* This source code is licensed under the ISC license.
|
|
545
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
546
|
+
*/const Ig=[["path",{d:"M2.586 16.726A2 2 0 0 1 2 15.312V8.688a2 2 0 0 1 .586-1.414l4.688-4.688A2 2 0 0 1 8.688 2h6.624a2 2 0 0 1 1.414.586l4.688 4.688A2 2 0 0 1 22 8.688v6.624a2 2 0 0 1-.586 1.414l-4.688 4.688a2 2 0 0 1-1.414.586H8.688a2 2 0 0 1-1.414-.586z",key:"2d38gg"}]],KR=B("octagon",Ig);/**
|
|
547
|
+
* @license lucide-react v0.577.0 - ISC
|
|
548
|
+
*
|
|
549
|
+
* This source code is licensed under the ISC license.
|
|
550
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
551
|
+
*/const Og=[["path",{d:"M12 22a1 1 0 0 1 0-20 10 9 0 0 1 10 9 5 5 0 0 1-5 5h-2.25a1.75 1.75 0 0 0-1.4 2.8l.3.4a1.75 1.75 0 0 1-1.4 2.8z",key:"e79jfc"}],["circle",{cx:"13.5",cy:"6.5",r:".5",fill:"currentColor",key:"1okk4w"}],["circle",{cx:"17.5",cy:"10.5",r:".5",fill:"currentColor",key:"f64h9f"}],["circle",{cx:"6.5",cy:"12.5",r:".5",fill:"currentColor",key:"qy21gx"}],["circle",{cx:"8.5",cy:"7.5",r:".5",fill:"currentColor",key:"fotxhn"}]],ZR=B("palette",Og);/**
|
|
552
|
+
* @license lucide-react v0.577.0 - ISC
|
|
553
|
+
*
|
|
554
|
+
* This source code is licensed under the ISC license.
|
|
555
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
556
|
+
*/const Ag=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M9 3v18",key:"fh3hqa"}],["path",{d:"m16 15-3-3 3-3",key:"14y99z"}]],QR=B("panel-left-close",Ag);/**
|
|
557
|
+
* @license lucide-react v0.577.0 - ISC
|
|
558
|
+
*
|
|
559
|
+
* This source code is licensed under the ISC license.
|
|
560
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
561
|
+
*/const Ng=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M9 3v18",key:"fh3hqa"}],["path",{d:"m14 9 3 3-3 3",key:"8010ee"}]],JR=B("panel-left-open",Ng);/**
|
|
562
|
+
* @license lucide-react v0.577.0 - ISC
|
|
563
|
+
*
|
|
564
|
+
* This source code is licensed under the ISC license.
|
|
565
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
566
|
+
*/const Dg=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M9 3v18",key:"fh3hqa"}]],ek=B("panel-left",Dg);/**
|
|
567
|
+
* @license lucide-react v0.577.0 - ISC
|
|
568
|
+
*
|
|
569
|
+
* This source code is licensed under the ISC license.
|
|
570
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
571
|
+
*/const _g=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M15 3v18",key:"14nvp0"}]],tk=B("panel-right",_g);/**
|
|
572
|
+
* @license lucide-react v0.577.0 - ISC
|
|
573
|
+
*
|
|
574
|
+
* This source code is licensed under the ISC license.
|
|
575
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
576
|
+
*/const Lg=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M3 9h18",key:"1pudct"}],["path",{d:"M9 21V9",key:"1oto5p"}]],nk=B("panels-top-left",Lg);/**
|
|
577
|
+
* @license lucide-react v0.577.0 - ISC
|
|
578
|
+
*
|
|
579
|
+
* This source code is licensed under the ISC license.
|
|
580
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
581
|
+
*/const Fg=[["rect",{x:"14",y:"3",width:"5",height:"18",rx:"1",key:"kaeet6"}],["rect",{x:"5",y:"3",width:"5",height:"18",rx:"1",key:"1wsw3u"}]],ok=B("pause",Fg);/**
|
|
582
|
+
* @license lucide-react v0.577.0 - ISC
|
|
583
|
+
*
|
|
584
|
+
* This source code is licensed under the ISC license.
|
|
585
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
586
|
+
*/const zg=[["path",{d:"M13 21h8",key:"1jsn5i"}],["path",{d:"M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z",key:"1a8usu"}]],rk=B("pen-line",zg);/**
|
|
587
|
+
* @license lucide-react v0.577.0 - ISC
|
|
588
|
+
*
|
|
589
|
+
* This source code is licensed under the ISC license.
|
|
590
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
591
|
+
*/const Vg=[["path",{d:"M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z",key:"1a8usu"}],["path",{d:"m15 5 4 4",key:"1mk7zo"}]],sk=B("pencil",Vg);/**
|
|
592
|
+
* @license lucide-react v0.577.0 - ISC
|
|
593
|
+
*
|
|
594
|
+
* This source code is licensed under the ISC license.
|
|
595
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
596
|
+
*/const $g=[["path",{d:"M5 5a2 2 0 0 1 3.008-1.728l11.997 6.998a2 2 0 0 1 .003 3.458l-12 7A2 2 0 0 1 5 19z",key:"10ikf1"}]],ik=B("play",$g);/**
|
|
597
|
+
* @license lucide-react v0.577.0 - ISC
|
|
598
|
+
*
|
|
599
|
+
* This source code is licensed under the ISC license.
|
|
600
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
601
|
+
*/const Hg=[["path",{d:"M12 22v-5",key:"1ega77"}],["path",{d:"M15 8V2",key:"18g5xt"}],["path",{d:"M17 8a1 1 0 0 1 1 1v4a4 4 0 0 1-4 4h-4a4 4 0 0 1-4-4V9a1 1 0 0 1 1-1z",key:"1xoxul"}],["path",{d:"M9 8V2",key:"14iosj"}]],ak=B("plug",Hg);/**
|
|
602
|
+
* @license lucide-react v0.577.0 - ISC
|
|
603
|
+
*
|
|
604
|
+
* This source code is licensed under the ISC license.
|
|
605
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
606
|
+
*/const jg=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]],ck=B("plus",jg);/**
|
|
607
|
+
* @license lucide-react v0.577.0 - ISC
|
|
608
|
+
*
|
|
609
|
+
* This source code is licensed under the ISC license.
|
|
610
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
611
|
+
*/const Bg=[["path",{d:"M12 2v10",key:"mnfbl"}],["path",{d:"M18.4 6.6a9 9 0 1 1-12.77.04",key:"obofu9"}]],lk=B("power",Bg);/**
|
|
612
|
+
* @license lucide-react v0.577.0 - ISC
|
|
613
|
+
*
|
|
614
|
+
* This source code is licensed under the ISC license.
|
|
615
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
616
|
+
*/const Wg=[["path",{d:"M16 3a2 2 0 0 0-2 2v6a2 2 0 0 0 2 2 1 1 0 0 1 1 1v1a2 2 0 0 1-2 2 1 1 0 0 0-1 1v2a1 1 0 0 0 1 1 6 6 0 0 0 6-6V5a2 2 0 0 0-2-2z",key:"rib7q0"}],["path",{d:"M5 3a2 2 0 0 0-2 2v6a2 2 0 0 0 2 2 1 1 0 0 1 1 1v1a2 2 0 0 1-2 2 1 1 0 0 0-1 1v2a1 1 0 0 0 1 1 6 6 0 0 0 6-6V5a2 2 0 0 0-2-2z",key:"1ymkrd"}]],uk=B("quote",Wg);/**
|
|
617
|
+
* @license lucide-react v0.577.0 - ISC
|
|
618
|
+
*
|
|
619
|
+
* This source code is licensed under the ISC license.
|
|
620
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
621
|
+
*/const Ug=[["path",{d:"m15 14 5-5-5-5",key:"12vg1m"}],["path",{d:"M20 9H9.5A5.5 5.5 0 0 0 4 14.5A5.5 5.5 0 0 0 9.5 20H13",key:"6uklza"}]],dk=B("redo-2",Ug);/**
|
|
622
|
+
* @license lucide-react v0.577.0 - ISC
|
|
623
|
+
*
|
|
624
|
+
* This source code is licensed under the ISC license.
|
|
625
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
626
|
+
*/const Gg=[["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"}]],fk=B("refresh-cw",Gg);/**
|
|
627
|
+
* @license lucide-react v0.577.0 - ISC
|
|
628
|
+
*
|
|
629
|
+
* This source code is licensed under the ISC license.
|
|
630
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
631
|
+
*/const qg=[["path",{d:"M12 15v5s3.03-.55 4-2c1.08-1.62 0-5 0-5",key:"qeys4"}],["path",{d:"M4.5 16.5c-1.5 1.26-2 5-2 5s3.74-.5 5-2c.71-.84.7-2.13-.09-2.91a2.18 2.18 0 0 0-2.91-.09",key:"u4xsad"}],["path",{d:"M9 12a22 22 0 0 1 2-3.95A12.88 12.88 0 0 1 22 2c0 2.72-.78 7.5-6 11a22.4 22.4 0 0 1-4 2z",key:"676m9"}],["path",{d:"M9 12H4s.55-3.03 2-4c1.62-1.08 5 .05 5 .05",key:"92ym6u"}]],pk=B("rocket",qg);/**
|
|
632
|
+
* @license lucide-react v0.577.0 - ISC
|
|
633
|
+
*
|
|
634
|
+
* This source code is licensed under the ISC license.
|
|
635
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
636
|
+
*/const Yg=[["path",{d:"M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8",key:"1357e3"}],["path",{d:"M3 3v5h5",key:"1xhq8a"}]],hk=B("rotate-ccw",Yg);/**
|
|
637
|
+
* @license lucide-react v0.577.0 - ISC
|
|
638
|
+
*
|
|
639
|
+
* This source code is licensed under the ISC license.
|
|
640
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
641
|
+
*/const Xg=[["path",{d:"M15.2 3a2 2 0 0 1 1.4.6l3.8 3.8a2 2 0 0 1 .6 1.4V19a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2z",key:"1c8476"}],["path",{d:"M17 21v-7a1 1 0 0 0-1-1H8a1 1 0 0 0-1 1v7",key:"1ydtos"}],["path",{d:"M7 3v4a1 1 0 0 0 1 1h7",key:"t51u73"}]],gk=B("save",Xg);/**
|
|
642
|
+
* @license lucide-react v0.577.0 - ISC
|
|
643
|
+
*
|
|
644
|
+
* This source code is licensed under the ISC license.
|
|
645
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
646
|
+
*/const Kg=[["path",{d:"m13.5 8.5-5 5",key:"1cs55j"}],["path",{d:"m8.5 8.5 5 5",key:"a8mexj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["path",{d:"m21 21-4.3-4.3",key:"1qie3q"}]],mk=B("search-x",Kg);/**
|
|
647
|
+
* @license lucide-react v0.577.0 - ISC
|
|
648
|
+
*
|
|
649
|
+
* This source code is licensed under the ISC license.
|
|
650
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
651
|
+
*/const Zg=[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]],yk=B("search",Zg);/**
|
|
652
|
+
* @license lucide-react v0.577.0 - ISC
|
|
653
|
+
*
|
|
654
|
+
* This source code is licensed under the ISC license.
|
|
655
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
656
|
+
*/const Qg=[["path",{d:"M14.536 21.686a.5.5 0 0 0 .937-.024l6.5-19a.496.496 0 0 0-.635-.635l-19 6.5a.5.5 0 0 0-.024.937l7.93 3.18a2 2 0 0 1 1.112 1.11z",key:"1ffxy3"}],["path",{d:"m21.854 2.147-10.94 10.939",key:"12cjpa"}]],bk=B("send",Qg);/**
|
|
657
|
+
* @license lucide-react v0.577.0 - ISC
|
|
658
|
+
*
|
|
659
|
+
* This source code is licensed under the ISC license.
|
|
660
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
661
|
+
*/const Jg=[["rect",{width:"20",height:"8",x:"2",y:"2",rx:"2",ry:"2",key:"ngkwjq"}],["rect",{width:"20",height:"8",x:"2",y:"14",rx:"2",ry:"2",key:"iecqi9"}],["line",{x1:"6",x2:"6.01",y1:"6",y2:"6",key:"16zg32"}],["line",{x1:"6",x2:"6.01",y1:"18",y2:"18",key:"nzw8ys"}]],vk=B("server",Jg);/**
|
|
662
|
+
* @license lucide-react v0.577.0 - ISC
|
|
663
|
+
*
|
|
664
|
+
* This source code is licensed under the ISC license.
|
|
665
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
666
|
+
*/const em=[["path",{d:"M14 17H5",key:"gfn3mx"}],["path",{d:"M19 7h-9",key:"6i9tg"}],["circle",{cx:"17",cy:"17",r:"3",key:"18b49y"}],["circle",{cx:"7",cy:"7",r:"3",key:"dfmy0x"}]],xk=B("settings-2",em);/**
|
|
667
|
+
* @license lucide-react v0.577.0 - ISC
|
|
668
|
+
*
|
|
669
|
+
* This source code is licensed under the ISC license.
|
|
670
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
671
|
+
*/const tm=[["path",{d:"M9.671 4.136a2.34 2.34 0 0 1 4.659 0 2.34 2.34 0 0 0 3.319 1.915 2.34 2.34 0 0 1 2.33 4.033 2.34 2.34 0 0 0 0 3.831 2.34 2.34 0 0 1-2.33 4.033 2.34 2.34 0 0 0-3.319 1.915 2.34 2.34 0 0 1-4.659 0 2.34 2.34 0 0 0-3.32-1.915 2.34 2.34 0 0 1-2.33-4.033 2.34 2.34 0 0 0 0-3.831A2.34 2.34 0 0 1 6.35 6.051a2.34 2.34 0 0 0 3.319-1.915",key:"1i5ecw"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]],wk=B("settings",tm);/**
|
|
672
|
+
* @license lucide-react v0.577.0 - ISC
|
|
673
|
+
*
|
|
674
|
+
* This source code is licensed under the ISC license.
|
|
675
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
676
|
+
*/const nm=[["circle",{cx:"18",cy:"5",r:"3",key:"gq8acd"}],["circle",{cx:"6",cy:"12",r:"3",key:"w7nqdw"}],["circle",{cx:"18",cy:"19",r:"3",key:"1xt0gg"}],["line",{x1:"8.59",x2:"15.42",y1:"13.51",y2:"17.49",key:"47mynk"}],["line",{x1:"15.41",x2:"8.59",y1:"6.51",y2:"10.49",key:"1n3mei"}]],Sk=B("share-2",nm);/**
|
|
677
|
+
* @license lucide-react v0.577.0 - ISC
|
|
678
|
+
*
|
|
679
|
+
* This source code is licensed under the ISC license.
|
|
680
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
681
|
+
*/const om=[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}],["path",{d:"M12 8v4",key:"1got3b"}],["path",{d:"M12 16h.01",key:"1drbdi"}]],Rk=B("shield-alert",om);/**
|
|
682
|
+
* @license lucide-react v0.577.0 - ISC
|
|
683
|
+
*
|
|
684
|
+
* This source code is licensed under the ISC license.
|
|
685
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
686
|
+
*/const rm=[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}],["path",{d:"M9 12h6",key:"1c52cq"}],["path",{d:"M12 9v6",key:"199k2o"}]],kk=B("shield-plus",rm);/**
|
|
687
|
+
* @license lucide-react v0.577.0 - ISC
|
|
688
|
+
*
|
|
689
|
+
* This source code is licensed under the ISC license.
|
|
690
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
691
|
+
*/const sm=[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}]],Ck=B("shield",sm);/**
|
|
692
|
+
* @license lucide-react v0.577.0 - ISC
|
|
693
|
+
*
|
|
694
|
+
* This source code is licensed under the ISC license.
|
|
695
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
696
|
+
*/const im=[["path",{d:"M18 7V5a1 1 0 0 0-1-1H6.5a.5.5 0 0 0-.4.8l4.5 6a2 2 0 0 1 0 2.4l-4.5 6a.5.5 0 0 0 .4.8H17a1 1 0 0 0 1-1v-2",key:"wuwx1p"}]],Ek=B("sigma",im);/**
|
|
697
|
+
* @license lucide-react v0.577.0 - ISC
|
|
698
|
+
*
|
|
699
|
+
* This source code is licensed under the ISC license.
|
|
700
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
701
|
+
*/const am=[["path",{d:"m12.5 17-.5-1-.5 1h1z",key:"3me087"}],["path",{d:"M15 22a1 1 0 0 0 1-1v-1a2 2 0 0 0 1.56-3.25 8 8 0 1 0-11.12 0A2 2 0 0 0 8 20v1a1 1 0 0 0 1 1z",key:"1o5pge"}],["circle",{cx:"15",cy:"12",r:"1",key:"1tmaij"}],["circle",{cx:"9",cy:"12",r:"1",key:"1vctgf"}]],Mk=B("skull",am);/**
|
|
702
|
+
* @license lucide-react v0.577.0 - ISC
|
|
703
|
+
*
|
|
704
|
+
* This source code is licensed under the ISC license.
|
|
705
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
706
|
+
*/const cm=[["path",{d:"M10 5H3",key:"1qgfaw"}],["path",{d:"M12 19H3",key:"yhmn1j"}],["path",{d:"M14 3v4",key:"1sua03"}],["path",{d:"M16 17v4",key:"1q0r14"}],["path",{d:"M21 12h-9",key:"1o4lsq"}],["path",{d:"M21 19h-5",key:"1rlt1p"}],["path",{d:"M21 5h-7",key:"1oszz2"}],["path",{d:"M8 10v4",key:"tgpxqk"}],["path",{d:"M8 12H3",key:"a7s4jb"}]],Pk=B("sliders-horizontal",cm);/**
|
|
707
|
+
* @license lucide-react v0.577.0 - ISC
|
|
708
|
+
*
|
|
709
|
+
* This source code is licensed under the ISC license.
|
|
710
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
711
|
+
*/const lm=[["rect",{width:"14",height:"20",x:"5",y:"2",rx:"2",ry:"2",key:"1yt0o3"}],["path",{d:"M12 18h.01",key:"mhygvu"}]],Tk=B("smartphone",lm);/**
|
|
712
|
+
* @license lucide-react v0.577.0 - ISC
|
|
713
|
+
*
|
|
714
|
+
* This source code is licensed under the ISC license.
|
|
715
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
716
|
+
*/const um=[["path",{d:"M11.017 2.814a1 1 0 0 1 1.966 0l1.051 5.558a2 2 0 0 0 1.594 1.594l5.558 1.051a1 1 0 0 1 0 1.966l-5.558 1.051a2 2 0 0 0-1.594 1.594l-1.051 5.558a1 1 0 0 1-1.966 0l-1.051-5.558a2 2 0 0 0-1.594-1.594l-5.558-1.051a1 1 0 0 1 0-1.966l5.558-1.051a2 2 0 0 0 1.594-1.594z",key:"1s2grr"}],["path",{d:"M20 2v4",key:"1rf3ol"}],["path",{d:"M22 4h-4",key:"gwowj6"}],["circle",{cx:"4",cy:"20",r:"2",key:"6kqj1y"}]],Ik=B("sparkles",um);/**
|
|
717
|
+
* @license lucide-react v0.577.0 - ISC
|
|
718
|
+
*
|
|
719
|
+
* This source code is licensed under the ISC license.
|
|
720
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
721
|
+
*/const dm=[["path",{d:"m7 11 2-2-2-2",key:"1lz0vl"}],["path",{d:"M11 13h4",key:"1p7l4v"}],["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",ry:"2",key:"1m3agn"}]],Ok=B("square-terminal",dm);/**
|
|
722
|
+
* @license lucide-react v0.577.0 - ISC
|
|
723
|
+
*
|
|
724
|
+
* This source code is licensed under the ISC license.
|
|
725
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
726
|
+
*/const fm=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}]],Ak=B("square",fm);/**
|
|
727
|
+
* @license lucide-react v0.577.0 - ISC
|
|
728
|
+
*
|
|
729
|
+
* This source code is licensed under the ISC license.
|
|
730
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
731
|
+
*/const pm=[["rect",{width:"16",height:"20",x:"4",y:"2",rx:"2",ry:"2",key:"76otgf"}],["line",{x1:"12",x2:"12.01",y1:"18",y2:"18",key:"1dp563"}]],Nk=B("tablet",pm);/**
|
|
732
|
+
* @license lucide-react v0.577.0 - ISC
|
|
733
|
+
*
|
|
734
|
+
* This source code is licensed under the ISC license.
|
|
735
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
736
|
+
*/const hm=[["path",{d:"M12 19h8",key:"baeox8"}],["path",{d:"m4 17 6-6-6-6",key:"1yngyt"}]],Dk=B("terminal",hm);/**
|
|
737
|
+
* @license lucide-react v0.577.0 - ISC
|
|
738
|
+
*
|
|
739
|
+
* This source code is licensed under the ISC license.
|
|
740
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
741
|
+
*/const gm=[["path",{d:"M10 11v6",key:"nco0om"}],["path",{d:"M14 11v6",key:"outv1u"}],["path",{d:"M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6",key:"miytrc"}],["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2",key:"e791ji"}]],_k=B("trash-2",gm);/**
|
|
742
|
+
* @license lucide-react v0.577.0 - ISC
|
|
743
|
+
*
|
|
744
|
+
* This source code is licensed under the ISC license.
|
|
745
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
746
|
+
*/const mm=[["path",{d:"M10 10v.2A3 3 0 0 1 8.9 16H5a3 3 0 0 1-1-5.8V10a3 3 0 0 1 6 0Z",key:"1l6gj6"}],["path",{d:"M7 16v6",key:"1a82de"}],["path",{d:"M13 19v3",key:"13sx9i"}],["path",{d:"M12 19h8.3a1 1 0 0 0 .7-1.7L18 14h.3a1 1 0 0 0 .7-1.7L16 9h.2a1 1 0 0 0 .8-1.7L13 3l-1.4 1.5",key:"1sj9kv"}]],Lk=B("trees",mm);/**
|
|
747
|
+
* @license lucide-react v0.577.0 - ISC
|
|
748
|
+
*
|
|
749
|
+
* This source code is licensed under the ISC license.
|
|
750
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
751
|
+
*/const ym=[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3",key:"wmoenq"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]],Fk=B("triangle-alert",ym);/**
|
|
752
|
+
* @license lucide-react v0.577.0 - ISC
|
|
753
|
+
*
|
|
754
|
+
* This source code is licensed under the ISC license.
|
|
755
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
756
|
+
*/const bm=[["path",{d:"M9 14 4 9l5-5",key:"102s5s"}],["path",{d:"M4 9h10.5a5.5 5.5 0 0 1 5.5 5.5a5.5 5.5 0 0 1-5.5 5.5H11",key:"f3b9sd"}]],zk=B("undo-2",bm);/**
|
|
757
|
+
* @license lucide-react v0.577.0 - ISC
|
|
758
|
+
*
|
|
759
|
+
* This source code is licensed under the ISC license.
|
|
760
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
761
|
+
*/const vm=[["path",{d:"m18.84 12.25 1.72-1.71h-.02a5.004 5.004 0 0 0-.12-7.07 5.006 5.006 0 0 0-6.95 0l-1.72 1.71",key:"yqzxt4"}],["path",{d:"m5.17 11.75-1.71 1.71a5.004 5.004 0 0 0 .12 7.07 5.006 5.006 0 0 0 6.95 0l1.71-1.71",key:"4qinb0"}],["line",{x1:"8",x2:"8",y1:"2",y2:"5",key:"1041cp"}],["line",{x1:"2",x2:"5",y1:"8",y2:"8",key:"14m1p5"}],["line",{x1:"16",x2:"16",y1:"19",y2:"22",key:"rzdirn"}],["line",{x1:"19",x2:"22",y1:"16",y2:"16",key:"ox905f"}]],Vk=B("unlink",vm);/**
|
|
762
|
+
* @license lucide-react v0.577.0 - ISC
|
|
763
|
+
*
|
|
764
|
+
* This source code is licensed under the ISC license.
|
|
765
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
766
|
+
*/const xm=[["path",{d:"m16 11 2 2 4-4",key:"9rsbq5"}],["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}]],$k=B("user-check",xm);/**
|
|
767
|
+
* @license lucide-react v0.577.0 - ISC
|
|
768
|
+
*
|
|
769
|
+
* This source code is licensed under the ISC license.
|
|
770
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
771
|
+
*/const wm=[["path",{d:"M2 21a8 8 0 0 1 11.873-7",key:"74fkxq"}],["circle",{cx:"10",cy:"8",r:"5",key:"o932ke"}],["path",{d:"m17 17 5 5",key:"p7ous7"}],["path",{d:"m22 17-5 5",key:"gqnmv0"}]],Hk=B("user-round-x",wm);/**
|
|
772
|
+
* @license lucide-react v0.577.0 - ISC
|
|
773
|
+
*
|
|
774
|
+
* This source code is licensed under the ISC license.
|
|
775
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
776
|
+
*/const Sm=[["path",{d:"M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2",key:"975kel"}],["circle",{cx:"12",cy:"7",r:"4",key:"17ys0d"}]],jk=B("user",Sm);/**
|
|
777
|
+
* @license lucide-react v0.577.0 - ISC
|
|
778
|
+
*
|
|
779
|
+
* This source code is licensed under the ISC license.
|
|
780
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
781
|
+
*/const Rm=[["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["path",{d:"M16 3.128a4 4 0 0 1 0 7.744",key:"16gr8j"}],["path",{d:"M22 21v-2a4 4 0 0 0-3-3.87",key:"kshegd"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}]],Bk=B("users",Rm);/**
|
|
782
|
+
* @license lucide-react v0.577.0 - ISC
|
|
783
|
+
*
|
|
784
|
+
* This source code is licensed under the ISC license.
|
|
785
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
786
|
+
*/const km=[["path",{d:"M18 16.98h-5.99c-1.1 0-1.95.94-2.48 1.9A4 4 0 0 1 2 17c.01-.7.2-1.4.57-2",key:"q3hayz"}],["path",{d:"m6 17 3.13-5.78c.53-.97.1-2.18-.5-3.1a4 4 0 1 1 6.89-4.06",key:"1go1hn"}],["path",{d:"m12 6 3.13 5.73C15.66 12.7 16.9 13 18 13a4 4 0 0 1 0 8",key:"qlwsc0"}]],Wk=B("webhook",km);/**
|
|
787
|
+
* @license lucide-react v0.577.0 - ISC
|
|
788
|
+
*
|
|
789
|
+
* This source code is licensed under the ISC license.
|
|
790
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
791
|
+
*/const Cm=[["path",{d:"M12 20h.01",key:"zekei9"}],["path",{d:"M8.5 16.429a5 5 0 0 1 7 0",key:"1bycff"}],["path",{d:"M5 12.859a10 10 0 0 1 5.17-2.69",key:"1dl1wf"}],["path",{d:"M19 12.859a10 10 0 0 0-2.007-1.523",key:"4k23kn"}],["path",{d:"M2 8.82a15 15 0 0 1 4.177-2.643",key:"1grhjp"}],["path",{d:"M22 8.82a15 15 0 0 0-11.288-3.764",key:"z3jwby"}],["path",{d:"m2 2 20 20",key:"1ooewy"}]],Uk=B("wifi-off",Cm);/**
|
|
792
|
+
* @license lucide-react v0.577.0 - ISC
|
|
793
|
+
*
|
|
794
|
+
* This source code is licensed under the ISC license.
|
|
795
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
796
|
+
*/const Em=[["path",{d:"M12 20h.01",key:"zekei9"}],["path",{d:"M2 8.82a15 15 0 0 1 20 0",key:"dnpr2z"}],["path",{d:"M5 12.859a10 10 0 0 1 14 0",key:"1x1e6c"}],["path",{d:"M8.5 16.429a5 5 0 0 1 7 0",key:"1bycff"}]],Gk=B("wifi",Em);/**
|
|
797
|
+
* @license lucide-react v0.577.0 - ISC
|
|
798
|
+
*
|
|
799
|
+
* This source code is licensed under the ISC license.
|
|
800
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
801
|
+
*/const Mm=[["rect",{width:"8",height:"8",x:"3",y:"3",rx:"2",key:"by2w9f"}],["path",{d:"M7 11v4a2 2 0 0 0 2 2h4",key:"xkn7yn"}],["rect",{width:"8",height:"8",x:"13",y:"13",rx:"2",key:"1cgmvn"}]],qk=B("workflow",Mm);/**
|
|
802
|
+
* @license lucide-react v0.577.0 - ISC
|
|
803
|
+
*
|
|
804
|
+
* This source code is licensed under the ISC license.
|
|
805
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
806
|
+
*/const Pm=[["path",{d:"M14.7 6.3a1 1 0 0 0 0 1.4l1.6 1.6a1 1 0 0 0 1.4 0l3.106-3.105c.32-.322.863-.22.983.218a6 6 0 0 1-8.259 7.057l-7.91 7.91a1 1 0 0 1-2.999-3l7.91-7.91a6 6 0 0 1 7.057-8.259c.438.12.54.662.219.984z",key:"1ngwbx"}]],Yk=B("wrench",Pm);/**
|
|
807
|
+
* @license lucide-react v0.577.0 - ISC
|
|
808
|
+
*
|
|
809
|
+
* This source code is licensed under the ISC license.
|
|
810
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
811
|
+
*/const Tm=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],Xk=B("x",Tm);/**
|
|
812
|
+
* @license lucide-react v0.577.0 - ISC
|
|
813
|
+
*
|
|
814
|
+
* This source code is licensed under the ISC license.
|
|
815
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
816
|
+
*/const Im=[["path",{d:"M4 14a1 1 0 0 1-.78-1.63l9.9-10.2a.5.5 0 0 1 .86.46l-1.92 6.02A1 1 0 0 0 13 10h7a1 1 0 0 1 .78 1.63l-9.9 10.2a.5.5 0 0 1-.86-.46l1.92-6.02A1 1 0 0 0 11 14z",key:"1xq2db"}]],Kk=B("zap",Im);/**
|
|
817
|
+
* @license lucide-react v0.577.0 - ISC
|
|
818
|
+
*
|
|
819
|
+
* This source code is licensed under the ISC license.
|
|
820
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
821
|
+
*/const Om=[["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["line",{x1:"21",x2:"16.65",y1:"21",y2:"16.65",key:"13gj7c"}],["line",{x1:"11",x2:"11",y1:"8",y2:"14",key:"1vmskp"}],["line",{x1:"8",x2:"14",y1:"11",y2:"11",key:"durymu"}]],Zk=B("zoom-in",Om);/**
|
|
822
|
+
* @license lucide-react v0.577.0 - ISC
|
|
823
|
+
*
|
|
824
|
+
* This source code is licensed under the ISC license.
|
|
825
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
826
|
+
*/const Am=[["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["line",{x1:"21",x2:"16.65",y1:"21",y2:"16.65",key:"13gj7c"}],["line",{x1:"8",x2:"14",y1:"11",y2:"11",key:"durymu"}]],Qk=B("zoom-out",Am);function Ur(){return typeof window<"u"}function ut(e){return Ni(e)?(e.nodeName||"").toLowerCase():"#document"}function He(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function an(e){var t;return(t=(Ni(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function Ni(e){return Ur()?e instanceof Node||e instanceof He(e).Node:!1}function Oe(e){return Ur()?e instanceof Element||e instanceof He(e).Element:!1}function Fe(e){return Ur()?e instanceof HTMLElement||e instanceof He(e).HTMLElement:!1}function so(e){return!Ur()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof He(e).ShadowRoot}function jo(e){const{overflow:t,overflowX:n,overflowY:o,display:r}=xt(e);return/auto|scroll|overlay|hidden|clip/.test(t+o+n)&&r!=="inline"&&r!=="contents"}function Nm(e){return/^(table|td|th)$/.test(ut(e))}function Gr(e){try{if(e.matches(":popover-open"))return!0}catch{}try{return e.matches(":modal")}catch{return!1}}const Dm=/transform|translate|scale|rotate|perspective|filter/,_m=/paint|layout|strict|content/,Tn=e=>!!e&&e!=="none";let Ts;function Di(e){const t=Oe(e)?xt(e):e;return Tn(t.transform)||Tn(t.translate)||Tn(t.scale)||Tn(t.rotate)||Tn(t.perspective)||!_i()&&(Tn(t.backdropFilter)||Tn(t.filter))||Dm.test(t.willChange||"")||_m.test(t.contain||"")}function Lm(e){let t=on(e);for(;Fe(t)&&!en(t);){if(Di(t))return t;if(Gr(t))return null;t=on(t)}return null}function _i(){return Ts==null&&(Ts=typeof CSS<"u"&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),Ts}function en(e){return/^(html|body|#document)$/.test(ut(e))}function xt(e){return He(e).getComputedStyle(e)}function qr(e){return Oe(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function on(e){if(ut(e)==="html")return e;const t=e.assignedSlot||e.parentNode||so(e)&&e.host||an(e);return so(t)?t.host:t}function ou(e){const t=on(e);return en(t)?(e.ownerDocument||e).body:Fe(t)&&jo(t)?t:ou(t)}function _o(e,t,n){var o;t===void 0&&(t=[]),n===void 0&&(n=!0);const r=ou(e),s=r===((o=e.ownerDocument)==null?void 0:o.body),i=He(r);if(s){const a=Qs(i);return t.concat(i,i.visualViewport||[],jo(r)?r:[],a&&n?_o(a):[])}else return t.concat(r,_o(r,[],n))}function Qs(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}const Li={...mo},uc={};function at(e,t){const n=c.useRef(uc);return n.current===uc&&(n.current=e(t)),n}const Is=Li.useInsertionEffect,Fm=Is&&Is!==Li.useLayoutEffect?Is:e=>e();function le(e){const t=at(zm).current;return t.next=e,Fm(t.effect),t.trampoline}function zm(){const e={next:void 0,callback:Vm,trampoline:(...t)=>{var n;return(n=e.callback)==null?void 0:n.call(e,...t)},effect:()=>{e.callback=e.next}};return e}function Vm(){}const $m=()=>{},oe=typeof document<"u"?c.useLayoutEffect:$m;function Js(e,t){if(e&&!t)return e;if(!e&&t)return t;if(e||t)return{...e,...t}}const Fi={};function St(e,t,n,o,r){if(!n&&!o&&!r&&!e)return Ar(t);let s=Ar(e);return t&&(s=Po(s,t)),n&&(s=Po(s,n)),o&&(s=Po(s,o)),r&&(s=Po(s,r)),s}function Hm(e){if(e.length===0)return Fi;if(e.length===1)return Ar(e[0]);let t=Ar(e[0]);for(let n=1;n<e.length;n+=1)t=Po(t,e[n]);return t}function Ar(e){return zi(e)?{...su(e,Fi)}:jm(e)}function Po(e,t){return zi(t)?su(t,e):Bm(e,t)}function jm(e){const t={...e};for(const n in t){const o=t[n];ru(n,o)&&(t[n]=iu(o))}return t}function Bm(e,t){if(!t)return e;for(const n in t){const o=t[n];switch(n){case"style":{e[n]=Js(e.style,o);break}case"className":{e[n]=au(e.className,o);break}default:ru(n,o)?e[n]=Wm(e[n],o):e[n]=o}}return e}function ru(e,t){const n=e.charCodeAt(0),o=e.charCodeAt(1),r=e.charCodeAt(2);return n===111&&o===110&&r>=65&&r<=90&&(typeof t=="function"||typeof t>"u")}function zi(e){return typeof e=="function"}function su(e,t){return zi(e)?e(t):e??Fi}function Wm(e,t){return t?e?(...n)=>{const o=n[0];if(cu(o)){const s=o;Nr(s);const i=t(...n);return s.baseUIHandlerPrevented||e==null||e(...n),i}const r=t(...n);return e==null||e(...n),r}:iu(t):e}function iu(e){return e&&((...t)=>{const n=t[0];return cu(n)&&Nr(n),e(...t)})}function Nr(e){return e.preventBaseUIHandler=()=>{e.baseUIHandlerPrevented=!0},e}function au(e,t){return t?e?t+" "+e:t:e}function cu(e){return e!=null&&typeof e=="object"&&"nativeEvent"in e}function Um(e,t){return function(o,...r){const s=new URL(e);return s.searchParams.set("code",o.toString()),r.forEach(i=>s.searchParams.append("args[]",i)),`${t} error #${o}; visit ${s} for the full message.`}}const De=Um("https://base-ui.com/production-error","Base UI"),lu=c.createContext(void 0);function Yr(e=!1){const t=c.useContext(lu);if(t===void 0&&!e)throw new Error(De(16));return t}function Gm(e){const{focusableWhenDisabled:t,disabled:n,composite:o=!1,tabIndex:r=0,isNativeButton:s}=e,i=o&&t!==!1,a=o&&t===!1;return{props:c.useMemo(()=>{const u={onKeyDown(d){n&&t&&d.key!=="Tab"&&d.preventDefault()}};return o||(u.tabIndex=r,!s&&n&&(u.tabIndex=t?r:-1)),(s&&(t||i)||!s&&n)&&(u["aria-disabled"]=n),s&&(!t||a)&&(u.disabled=n),u},[o,n,t,i,a,s,r])}}function Te(e){return(e==null?void 0:e.ownerDocument)||document}function Qn(e,t,{detail:n=0}={}){e.dispatchEvent(new(He(e)).PointerEvent("click",{bubbles:!0,cancelable:!0,composed:!0,detail:n,shiftKey:t.shiftKey,ctrlKey:t.ctrlKey,altKey:t.altKey,metaKey:t.metaKey}))}function Tt(e={}){const{disabled:t=!1,focusableWhenDisabled:n,tabIndex:o=0,native:r=!0,composite:s}=e,i=c.useRef(null),a=Yr(!0),l=s??a!==void 0,{props:u}=Gm({focusableWhenDisabled:n,disabled:t,composite:l,tabIndex:o,isNativeButton:r}),d=c.useCallback(()=>{const y=i.current;Os(y)&&l&&t&&u.disabled===void 0&&y.disabled&&(y.disabled=!1)},[t,u.disabled,l]);oe(d,[d]);const p=c.useCallback((y={})=>{const{onClick:m,onMouseDown:g,onKeyUp:h,onKeyDown:b,onPointerDown:v,...w}=y;return St({onClick(x){if(t){x.preventDefault();return}m==null||m(x)},onMouseDown(x){t||g==null||g(x)},onKeyDown(x){if(t||(Nr(x),b==null||b(x),x.baseUIHandlerPrevented))return;const S=x.target===x.currentTarget,R=x.currentTarget,C=Os(R),k=!r&&qm(R),P=S&&(r?C:!k),E=x.key==="Enter",O=x.key===" ",I=R.getAttribute("role"),N=(I==null?void 0:I.startsWith("menuitem"))||I==="option"||I==="gridcell";if(S&&l&&O){if(x.defaultPrevented&&N)return;x.preventDefault(),(!r||C)&&(x.preventBaseUIHandler(),Qn(R,x));return}if(!P||r||!O&&!E){S&&k&&O&&x.preventDefault();return}x.defaultPrevented||(x.preventDefault(),E&&(x.preventBaseUIHandler(),Qn(R,x)))},onKeyUp(x){if(!t){if(Nr(x),h==null||h(x),x.target===x.currentTarget&&r&&l&&Os(x.currentTarget)&&x.key===" "){x.preventDefault();return}x.baseUIHandlerPrevented||x.target===x.currentTarget&&!r&&!l&&!x.defaultPrevented&&x.key===" "&&(x.preventBaseUIHandler(),Qn(x.currentTarget,x))}},onPointerDown(x){if(t){x.preventDefault();return}v==null||v(x)}},r?{type:"button"}:{role:"button"},u,w)},[t,u,l,r]),f=le(y=>{i.current=y,d()});return{getButtonProps:p,buttonRef:f}}function Os(e){return Fe(e)&&e.tagName==="BUTTON"}function qm(e){return Fe(e)&&e.tagName==="A"&&!!e.href}function Nt(e,t,n,o){const r=at(uu).current;return Xm(r,e,t,n,o)&&du(r,[e,t,n,o]),r.callback}function Ym(e){const t=at(uu).current;return Km(t,e)&&du(t,e),t.callback}function uu(){return{callback:null,cleanup:null,refs:[]}}function Xm(e,t,n,o,r){return e.refs[0]!==t||e.refs[1]!==n||e.refs[2]!==o||e.refs[3]!==r}function Km(e,t){return e.refs.length!==t.length||e.refs.some((n,o)=>n!==t[o])}function du(e,t){if(e.refs=t,t.every(n=>n==null)){e.callback=null;return}e.callback=n=>{if(e.cleanup&&(e.cleanup(),e.cleanup=null),n!=null){const o=Array(t.length).fill(null);for(let r=0;r<t.length;r+=1){const s=t[r];if(s!=null)switch(typeof s){case"function":{const i=s(n);typeof i=="function"&&(o[r]=i);break}case"object":{s.current=n;break}}}e.cleanup=()=>{for(let r=0;r<t.length;r+=1){const s=t[r];if(s!=null)switch(typeof s){case"function":{const i=o[r];typeof i=="function"?i():s(null);break}case"object":{s.current=null;break}}}}}}}const Zm=parseInt(c.version,10);function Vi(e){return Zm>=e}function dc(e){if(!c.isValidElement(e))return null;const t=e,n=t.props;return(Vi(19)?n==null?void 0:n.ref:t.ref)??null}function Ke(){}const Dt=Object.freeze([]),We=Object.freeze({});function Qm(e,t){const n={};for(const o in e){const r=e[o];if(t!=null&&t.hasOwnProperty(o)){const s=t[o](r);s!=null&&Object.assign(n,s);continue}r===!0?n[`data-${o.toLowerCase()}`]="":r&&(n[`data-${o.toLowerCase()}`]=r.toString())}return n}function Jm(e,t){return typeof e=="function"?e(t):e}function fu(e,t){return typeof e=="function"?e(t):e}function Se(e,t,n={}){const o=t.render,r=e0(t,n);if(n.enabled===!1)return null;const s=n.state??We;return o0(e,o,r,s)}function e0(e,t={}){const{className:n,style:o,render:r}=e,{state:s=We,ref:i,props:a,stateAttributesMapping:l,enabled:u=!0}=t,d=u?Jm(n,s):void 0,p=u?fu(o,s):void 0,f=u?Qm(s,l):We,y=u&&a?t0(a):void 0,m=u?Js(f,y)??{}:We;return typeof document<"u"&&(u?Array.isArray(i)?m.ref=Ym([m.ref,dc(r),...i]):m.ref=Nt(m.ref,dc(r),i):Nt(null,null)),u?(d!==void 0&&(m.className=au(m.className,d)),p!==void 0&&(m.style=Js(m.style,p)),m):We}function t0(e){return Array.isArray(e)?Hm(e):St(void 0,e)}const n0=Symbol.for("react.lazy");function o0(e,t,n,o){if(t){if(typeof t=="function")return t(n,o);const r=St(n,t.props);r.ref=n.ref;let s=t;return(s==null?void 0:s.$$typeof)===n0&&(s=c.Children.toArray(t)[0]),c.cloneElement(s,r)}if(e&&typeof e=="string")return r0(e,n);throw new Error(De(8))}function r0(e,t){return e==="button"?c.createElement("button",{type:"button",...t,key:t.key}):e==="img"?c.createElement("img",{alt:"",...t,key:t.key}):c.createElement(e,t)}const Jk=c.forwardRef(function(t,n){const{render:o,className:r,disabled:s=!1,focusableWhenDisabled:i=!1,nativeButton:a=!0,style:l,...u}=t,{getButtonProps:d,buttonRef:p}=Tt({disabled:s,focusableWhenDisabled:i,native:a});return Se("button",t,{state:{disabled:s},ref:[n,p],props:[u,d]})});function pu(e){var t,n,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]&&(n=pu(e[t]))&&(o&&(o+=" "),o+=n)}else for(n in e)e[n]&&(o&&(o+=" "),o+=n);return o}function s0(){for(var e,t,n=0,o="",r=arguments.length;n<r;n++)(e=arguments[n])&&(t=pu(e))&&(o&&(o+=" "),o+=t);return o}const fc=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,pc=s0,eC=(e,t)=>n=>{var o;if((t==null?void 0:t.variants)==null)return pc(e,n==null?void 0:n.class,n==null?void 0:n.className);const{variants:r,defaultVariants:s}=t,i=Object.keys(r).map(u=>{const d=n==null?void 0:n[u],p=s==null?void 0:s[u];if(d===null)return null;const f=fc(d)||fc(p);return r[u][f]}),a=n&&Object.entries(n).reduce((u,d)=>{let[p,f]=d;return f===void 0||(u[p]=f),u},{}),l=t==null||(o=t.compoundVariants)===null||o===void 0?void 0:o.reduce((u,d)=>{let{class:p,className:f,...y}=d;return Object.entries(y).every(m=>{let[g,h]=m;return Array.isArray(h)?h.includes({...s,...a}[g]):{...s,...a}[g]===h})?[...u,p,f]:u},[]);return pc(e,i,l,n==null?void 0:n.class,n==null?void 0:n.className)},i0=(e,t)=>{const n=new Array(e.length+t.length);for(let o=0;o<e.length;o++)n[o]=e[o];for(let o=0;o<t.length;o++)n[e.length+o]=t[o];return n},a0=(e,t)=>({classGroupId:e,validator:t}),hu=(e=new Map,t=null,n)=>({nextPart:e,validators:t,classGroupId:n}),Dr="-",hc=[],c0="arbitrary..",l0=e=>{const t=d0(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:o}=e;return{getClassGroupId:i=>{if(i.startsWith("[")&&i.endsWith("]"))return u0(i);const a=i.split(Dr),l=a[0]===""&&a.length>1?1:0;return gu(a,l,t)},getConflictingClassGroupIds:(i,a)=>{if(a){const l=o[i],u=n[i];return l?u?i0(u,l):l:u||hc}return n[i]||hc}}},gu=(e,t,n)=>{if(e.length-t===0)return n.classGroupId;const r=e[t],s=n.nextPart.get(r);if(s){const u=gu(e,t+1,s);if(u)return u}const i=n.validators;if(i===null)return;const a=t===0?e.join(Dr):e.slice(t).join(Dr),l=i.length;for(let u=0;u<l;u++){const d=i[u];if(d.validator(a))return d.classGroupId}},u0=e=>e.slice(1,-1).indexOf(":")===-1?void 0:(()=>{const t=e.slice(1,-1),n=t.indexOf(":"),o=t.slice(0,n);return o?c0+o:void 0})(),d0=e=>{const{theme:t,classGroups:n}=e;return f0(n,t)},f0=(e,t)=>{const n=hu();for(const o in e){const r=e[o];$i(r,n,o,t)}return n},$i=(e,t,n,o)=>{const r=e.length;for(let s=0;s<r;s++){const i=e[s];p0(i,t,n,o)}},p0=(e,t,n,o)=>{if(typeof e=="string"){h0(e,t,n);return}if(typeof e=="function"){g0(e,t,n,o);return}m0(e,t,n,o)},h0=(e,t,n)=>{const o=e===""?t:mu(t,e);o.classGroupId=n},g0=(e,t,n,o)=>{if(y0(e)){$i(e(o),t,n,o);return}t.validators===null&&(t.validators=[]),t.validators.push(a0(n,e))},m0=(e,t,n,o)=>{const r=Object.entries(e),s=r.length;for(let i=0;i<s;i++){const[a,l]=r[i];$i(l,mu(t,a),n,o)}},mu=(e,t)=>{let n=e;const o=t.split(Dr),r=o.length;for(let s=0;s<r;s++){const i=o[s];let a=n.nextPart.get(i);a||(a=hu(),n.nextPart.set(i,a)),n=a}return n},y0=e=>"isThemeGetter"in e&&e.isThemeGetter===!0,b0=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,n=Object.create(null),o=Object.create(null);const r=(s,i)=>{n[s]=i,t++,t>e&&(t=0,o=n,n=Object.create(null))};return{get(s){let i=n[s];if(i!==void 0)return i;if((i=o[s])!==void 0)return r(s,i),i},set(s,i){s in n?n[s]=i:r(s,i)}}},ei="!",gc=":",v0=[],mc=(e,t,n,o,r)=>({modifiers:e,hasImportantModifier:t,baseClassName:n,maybePostfixModifierPosition:o,isExternal:r}),x0=e=>{const{prefix:t,experimentalParseClassName:n}=e;let o=r=>{const s=[];let i=0,a=0,l=0,u;const d=r.length;for(let g=0;g<d;g++){const h=r[g];if(i===0&&a===0){if(h===gc){s.push(r.slice(l,g)),l=g+1;continue}if(h==="/"){u=g;continue}}h==="["?i++:h==="]"?i--:h==="("?a++:h===")"&&a--}const p=s.length===0?r:r.slice(l);let f=p,y=!1;p.endsWith(ei)?(f=p.slice(0,-1),y=!0):p.startsWith(ei)&&(f=p.slice(1),y=!0);const m=u&&u>l?u-l:void 0;return mc(s,y,f,m)};if(t){const r=t+gc,s=o;o=i=>i.startsWith(r)?s(i.slice(r.length)):mc(v0,!1,i,void 0,!0)}if(n){const r=o;o=s=>n({className:s,parseClassName:r})}return o},w0=e=>{const t=new Map;return e.orderSensitiveModifiers.forEach((n,o)=>{t.set(n,1e6+o)}),n=>{const o=[];let r=[];for(let s=0;s<n.length;s++){const i=n[s],a=i[0]==="[",l=t.has(i);a||l?(r.length>0&&(r.sort(),o.push(...r),r=[]),o.push(i)):r.push(i)}return r.length>0&&(r.sort(),o.push(...r)),o}},S0=e=>({cache:b0(e.cacheSize),parseClassName:x0(e),sortModifiers:w0(e),postfixLookupClassGroupIds:R0(e),...l0(e)}),R0=e=>{const t=Object.create(null),n=e.postfixLookupClassGroups;if(n)for(let o=0;o<n.length;o++)t[n[o]]=!0;return t},k0=/\s+/,C0=(e,t)=>{const{parseClassName:n,getClassGroupId:o,getConflictingClassGroupIds:r,sortModifiers:s,postfixLookupClassGroupIds:i}=t,a=[],l=e.trim().split(k0);let u="";for(let d=l.length-1;d>=0;d-=1){const p=l[d],{isExternal:f,modifiers:y,hasImportantModifier:m,baseClassName:g,maybePostfixModifierPosition:h}=n(p);if(f){u=p+(u.length>0?" "+u:u);continue}let b=!!h,v;if(b){const C=g.substring(0,h);v=o(C);const k=v&&i[v]?o(g):void 0;k&&k!==v&&(v=k,b=!1)}else v=o(g);if(!v){if(!b){u=p+(u.length>0?" "+u:u);continue}if(v=o(g),!v){u=p+(u.length>0?" "+u:u);continue}b=!1}const w=y.length===0?"":y.length===1?y[0]:s(y).join(":"),x=m?w+ei:w,S=x+v;if(a.indexOf(S)>-1)continue;a.push(S);const R=r(v,b);for(let C=0;C<R.length;++C){const k=R[C];a.push(x+k)}u=p+(u.length>0?" "+u:u)}return u},E0=(...e)=>{let t=0,n,o,r="";for(;t<e.length;)(n=e[t++])&&(o=yu(n))&&(r&&(r+=" "),r+=o);return r},yu=e=>{if(typeof e=="string")return e;let t,n="";for(let o=0;o<e.length;o++)e[o]&&(t=yu(e[o]))&&(n&&(n+=" "),n+=t);return n},M0=(e,...t)=>{let n,o,r,s;const i=l=>{const u=t.reduce((d,p)=>p(d),e());return n=S0(u),o=n.cache.get,r=n.cache.set,s=a,a(l)},a=l=>{const u=o(l);if(u)return u;const d=C0(l,n);return r(l,d),d};return s=i,(...l)=>s(E0(...l))},P0=[],ot=e=>{const t=n=>n[e]||P0;return t.isThemeGetter=!0,t},bu=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,vu=/^\((?:(\w[\w-]*):)?(.+)\)$/i,T0=/^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/,I0=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,O0=/\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$/,A0=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,N0=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,D0=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,dn=e=>T0.test(e),Ie=e=>!!e&&!Number.isNaN(Number(e)),$t=e=>!!e&&Number.isInteger(Number(e)),As=e=>e.endsWith("%")&&Ie(e.slice(0,-1)),Kt=e=>I0.test(e),xu=()=>!0,_0=e=>O0.test(e)&&!A0.test(e),Hi=()=>!1,L0=e=>N0.test(e),F0=e=>D0.test(e),z0=e=>!me(e)&&!ye(e),V0=e=>e.startsWith("@container")&&(e[10]==="/"&&e[11]!==void 0||e[11]==="s"&&e[16]!==void 0&&e.startsWith("-size/",10)||e[11]==="n"&&e[18]!==void 0&&e.startsWith("-normal/",10)),$0=e=>Sn(e,Ru,Hi),me=e=>bu.test(e),In=e=>Sn(e,ku,_0),yc=e=>Sn(e,Y0,Ie),H0=e=>Sn(e,Eu,xu),j0=e=>Sn(e,Cu,Hi),bc=e=>Sn(e,wu,Hi),B0=e=>Sn(e,Su,F0),Jo=e=>Sn(e,Mu,L0),ye=e=>vu.test(e),ko=e=>Vn(e,ku),W0=e=>Vn(e,Cu),vc=e=>Vn(e,wu),U0=e=>Vn(e,Ru),G0=e=>Vn(e,Su),er=e=>Vn(e,Mu,!0),q0=e=>Vn(e,Eu,!0),Sn=(e,t,n)=>{const o=bu.exec(e);return o?o[1]?t(o[1]):n(o[2]):!1},Vn=(e,t,n=!1)=>{const o=vu.exec(e);return o?o[1]?t(o[1]):n:!1},wu=e=>e==="position"||e==="percentage",Su=e=>e==="image"||e==="url",Ru=e=>e==="length"||e==="size"||e==="bg-size",ku=e=>e==="length",Y0=e=>e==="number",Cu=e=>e==="family-name",Eu=e=>e==="number"||e==="weight",Mu=e=>e==="shadow",X0=()=>{const e=ot("color"),t=ot("font"),n=ot("text"),o=ot("font-weight"),r=ot("tracking"),s=ot("leading"),i=ot("breakpoint"),a=ot("container"),l=ot("spacing"),u=ot("radius"),d=ot("shadow"),p=ot("inset-shadow"),f=ot("text-shadow"),y=ot("drop-shadow"),m=ot("blur"),g=ot("perspective"),h=ot("aspect"),b=ot("ease"),v=ot("animate"),w=()=>["auto","avoid","all","avoid-page","page","left","right","column"],x=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],S=()=>[...x(),ye,me],R=()=>["auto","hidden","clip","visible","scroll"],C=()=>["auto","contain","none"],k=()=>[ye,me,l],P=()=>[dn,"full","auto",...k()],E=()=>[$t,"none","subgrid",ye,me],O=()=>["auto",{span:["full",$t,ye,me]},$t,ye,me],I=()=>[$t,"auto",ye,me],N=()=>["auto","min","max","fr",ye,me],D=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],M=()=>["start","end","center","stretch","center-safe","end-safe"],z=()=>["auto",...k()],_=()=>[dn,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...k()],A=()=>[dn,"screen","full","dvw","lvw","svw","min","max","fit",...k()],F=()=>[dn,"screen","full","lh","dvh","lvh","svh","min","max","fit",...k()],T=()=>[e,ye,me],L=()=>[...x(),vc,bc,{position:[ye,me]}],j=()=>["no-repeat",{repeat:["","x","y","space","round"]}],$=()=>["auto","cover","contain",U0,$0,{size:[ye,me]}],U=()=>[As,ko,In],q=()=>["","none","full",u,ye,me],V=()=>["",Ie,ko,In],Q=()=>["solid","dashed","dotted","double"],H=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],G=()=>[Ie,As,vc,bc],ue=()=>["","none",m,ye,me],ne=()=>["none",Ie,ye,me],te=()=>["none",Ie,ye,me],J=()=>[Ie,ye,me],ee=()=>[dn,"full",...k()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[Kt],breakpoint:[Kt],color:[xu],container:[Kt],"drop-shadow":[Kt],ease:["in","out","in-out"],font:[z0],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[Kt],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[Kt],shadow:[Kt],spacing:["px",Ie],text:[Kt],"text-shadow":[Kt],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",dn,me,ye,h]}],container:["container"],"container-type":[{"@container":["","normal","size",ye,me]}],"container-named":[V0],columns:[{columns:[Ie,me,ye,a]}],"break-after":[{"break-after":w()}],"break-before":[{"break-before":w()}],"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"],sr:["sr-only","not-sr-only"],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:S()}],overflow:[{overflow:R()}],"overflow-x":[{"overflow-x":R()}],"overflow-y":[{"overflow-y":R()}],overscroll:[{overscroll:C()}],"overscroll-x":[{"overscroll-x":C()}],"overscroll-y":[{"overscroll-y":C()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:P()}],"inset-x":[{"inset-x":P()}],"inset-y":[{"inset-y":P()}],start:[{"inset-s":P(),start:P()}],end:[{"inset-e":P(),end:P()}],"inset-bs":[{"inset-bs":P()}],"inset-be":[{"inset-be":P()}],top:[{top:P()}],right:[{right:P()}],bottom:[{bottom:P()}],left:[{left:P()}],visibility:["visible","invisible","collapse"],z:[{z:[$t,"auto",ye,me]}],basis:[{basis:[dn,"full","auto",a,...k()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[Ie,dn,"auto","initial","none",me]}],grow:[{grow:["",Ie,ye,me]}],shrink:[{shrink:["",Ie,ye,me]}],order:[{order:[$t,"first","last","none",ye,me]}],"grid-cols":[{"grid-cols":E()}],"col-start-end":[{col:O()}],"col-start":[{"col-start":I()}],"col-end":[{"col-end":I()}],"grid-rows":[{"grid-rows":E()}],"row-start-end":[{row:O()}],"row-start":[{"row-start":I()}],"row-end":[{"row-end":I()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":N()}],"auto-rows":[{"auto-rows":N()}],gap:[{gap:k()}],"gap-x":[{"gap-x":k()}],"gap-y":[{"gap-y":k()}],"justify-content":[{justify:[...D(),"normal"]}],"justify-items":[{"justify-items":[...M(),"normal"]}],"justify-self":[{"justify-self":["auto",...M()]}],"align-content":[{content:["normal",...D()]}],"align-items":[{items:[...M(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...M(),{baseline:["","last"]}]}],"place-content":[{"place-content":D()}],"place-items":[{"place-items":[...M(),"baseline"]}],"place-self":[{"place-self":["auto",...M()]}],p:[{p:k()}],px:[{px:k()}],py:[{py:k()}],ps:[{ps:k()}],pe:[{pe:k()}],pbs:[{pbs:k()}],pbe:[{pbe:k()}],pt:[{pt:k()}],pr:[{pr:k()}],pb:[{pb:k()}],pl:[{pl:k()}],m:[{m:z()}],mx:[{mx:z()}],my:[{my:z()}],ms:[{ms:z()}],me:[{me:z()}],mbs:[{mbs:z()}],mbe:[{mbe:z()}],mt:[{mt:z()}],mr:[{mr:z()}],mb:[{mb:z()}],ml:[{ml:z()}],"space-x":[{"space-x":k()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":k()}],"space-y-reverse":["space-y-reverse"],size:[{size:_()}],"inline-size":[{inline:["auto",...A()]}],"min-inline-size":[{"min-inline":["auto",...A()]}],"max-inline-size":[{"max-inline":["none",...A()]}],"block-size":[{block:["auto",...F()]}],"min-block-size":[{"min-block":["auto",...F()]}],"max-block-size":[{"max-block":["none",...F()]}],w:[{w:[a,"screen",..._()]}],"min-w":[{"min-w":[a,"screen","none",..._()]}],"max-w":[{"max-w":[a,"screen","none","prose",{screen:[i]},..._()]}],h:[{h:["screen","lh",..._()]}],"min-h":[{"min-h":["screen","lh","none",..._()]}],"max-h":[{"max-h":["screen","lh",..._()]}],"font-size":[{text:["base",n,ko,In]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[o,q0,H0]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",As,me]}],"font-family":[{font:[W0,j0,t]}],"font-features":[{"font-features":[me]}],"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:[r,ye,me]}],"line-clamp":[{"line-clamp":[Ie,"none",ye,yc]}],leading:[{leading:[s,...k()]}],"list-image":[{"list-image":["none",ye,me]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",ye,me]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:T()}],"text-color":[{text:T()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...Q(),"wavy"]}],"text-decoration-thickness":[{decoration:[Ie,"from-font","auto",ye,In]}],"text-decoration-color":[{decoration:T()}],"underline-offset":[{"underline-offset":[Ie,"auto",ye,me]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:k()}],"tab-size":[{tab:[$t,ye,me]}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",ye,me]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",ye,me]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:L()}],"bg-repeat":[{bg:j()}],"bg-size":[{bg:$()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},$t,ye,me],radial:["",ye,me],conic:[$t,ye,me]},G0,B0]}],"bg-color":[{bg:T()}],"gradient-from-pos":[{from:U()}],"gradient-via-pos":[{via:U()}],"gradient-to-pos":[{to:U()}],"gradient-from":[{from:T()}],"gradient-via":[{via:T()}],"gradient-to":[{to:T()}],rounded:[{rounded:q()}],"rounded-s":[{"rounded-s":q()}],"rounded-e":[{"rounded-e":q()}],"rounded-t":[{"rounded-t":q()}],"rounded-r":[{"rounded-r":q()}],"rounded-b":[{"rounded-b":q()}],"rounded-l":[{"rounded-l":q()}],"rounded-ss":[{"rounded-ss":q()}],"rounded-se":[{"rounded-se":q()}],"rounded-ee":[{"rounded-ee":q()}],"rounded-es":[{"rounded-es":q()}],"rounded-tl":[{"rounded-tl":q()}],"rounded-tr":[{"rounded-tr":q()}],"rounded-br":[{"rounded-br":q()}],"rounded-bl":[{"rounded-bl":q()}],"border-w":[{border:V()}],"border-w-x":[{"border-x":V()}],"border-w-y":[{"border-y":V()}],"border-w-s":[{"border-s":V()}],"border-w-e":[{"border-e":V()}],"border-w-bs":[{"border-bs":V()}],"border-w-be":[{"border-be":V()}],"border-w-t":[{"border-t":V()}],"border-w-r":[{"border-r":V()}],"border-w-b":[{"border-b":V()}],"border-w-l":[{"border-l":V()}],"divide-x":[{"divide-x":V()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":V()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...Q(),"hidden","none"]}],"divide-style":[{divide:[...Q(),"hidden","none"]}],"border-color":[{border:T()}],"border-color-x":[{"border-x":T()}],"border-color-y":[{"border-y":T()}],"border-color-s":[{"border-s":T()}],"border-color-e":[{"border-e":T()}],"border-color-bs":[{"border-bs":T()}],"border-color-be":[{"border-be":T()}],"border-color-t":[{"border-t":T()}],"border-color-r":[{"border-r":T()}],"border-color-b":[{"border-b":T()}],"border-color-l":[{"border-l":T()}],"divide-color":[{divide:T()}],"outline-style":[{outline:[...Q(),"none","hidden"]}],"outline-offset":[{"outline-offset":[Ie,ye,me]}],"outline-w":[{outline:["",Ie,ko,In]}],"outline-color":[{outline:T()}],shadow:[{shadow:["","none",d,er,Jo]}],"shadow-color":[{shadow:T()}],"inset-shadow":[{"inset-shadow":["none",p,er,Jo]}],"inset-shadow-color":[{"inset-shadow":T()}],"ring-w":[{ring:V()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:T()}],"ring-offset-w":[{"ring-offset":[Ie,In]}],"ring-offset-color":[{"ring-offset":T()}],"inset-ring-w":[{"inset-ring":V()}],"inset-ring-color":[{"inset-ring":T()}],"text-shadow":[{"text-shadow":["none",f,er,Jo]}],"text-shadow-color":[{"text-shadow":T()}],opacity:[{opacity:[Ie,ye,me]}],"mix-blend":[{"mix-blend":[...H(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":H()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[Ie]}],"mask-image-linear-from-pos":[{"mask-linear-from":G()}],"mask-image-linear-to-pos":[{"mask-linear-to":G()}],"mask-image-linear-from-color":[{"mask-linear-from":T()}],"mask-image-linear-to-color":[{"mask-linear-to":T()}],"mask-image-t-from-pos":[{"mask-t-from":G()}],"mask-image-t-to-pos":[{"mask-t-to":G()}],"mask-image-t-from-color":[{"mask-t-from":T()}],"mask-image-t-to-color":[{"mask-t-to":T()}],"mask-image-r-from-pos":[{"mask-r-from":G()}],"mask-image-r-to-pos":[{"mask-r-to":G()}],"mask-image-r-from-color":[{"mask-r-from":T()}],"mask-image-r-to-color":[{"mask-r-to":T()}],"mask-image-b-from-pos":[{"mask-b-from":G()}],"mask-image-b-to-pos":[{"mask-b-to":G()}],"mask-image-b-from-color":[{"mask-b-from":T()}],"mask-image-b-to-color":[{"mask-b-to":T()}],"mask-image-l-from-pos":[{"mask-l-from":G()}],"mask-image-l-to-pos":[{"mask-l-to":G()}],"mask-image-l-from-color":[{"mask-l-from":T()}],"mask-image-l-to-color":[{"mask-l-to":T()}],"mask-image-x-from-pos":[{"mask-x-from":G()}],"mask-image-x-to-pos":[{"mask-x-to":G()}],"mask-image-x-from-color":[{"mask-x-from":T()}],"mask-image-x-to-color":[{"mask-x-to":T()}],"mask-image-y-from-pos":[{"mask-y-from":G()}],"mask-image-y-to-pos":[{"mask-y-to":G()}],"mask-image-y-from-color":[{"mask-y-from":T()}],"mask-image-y-to-color":[{"mask-y-to":T()}],"mask-image-radial":[{"mask-radial":[ye,me]}],"mask-image-radial-from-pos":[{"mask-radial-from":G()}],"mask-image-radial-to-pos":[{"mask-radial-to":G()}],"mask-image-radial-from-color":[{"mask-radial-from":T()}],"mask-image-radial-to-color":[{"mask-radial-to":T()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":x()}],"mask-image-conic-pos":[{"mask-conic":[Ie]}],"mask-image-conic-from-pos":[{"mask-conic-from":G()}],"mask-image-conic-to-pos":[{"mask-conic-to":G()}],"mask-image-conic-from-color":[{"mask-conic-from":T()}],"mask-image-conic-to-color":[{"mask-conic-to":T()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:L()}],"mask-repeat":[{mask:j()}],"mask-size":[{mask:$()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",ye,me]}],filter:[{filter:["","none",ye,me]}],blur:[{blur:ue()}],brightness:[{brightness:[Ie,ye,me]}],contrast:[{contrast:[Ie,ye,me]}],"drop-shadow":[{"drop-shadow":["","none",y,er,Jo]}],"drop-shadow-color":[{"drop-shadow":T()}],grayscale:[{grayscale:["",Ie,ye,me]}],"hue-rotate":[{"hue-rotate":[Ie,ye,me]}],invert:[{invert:["",Ie,ye,me]}],saturate:[{saturate:[Ie,ye,me]}],sepia:[{sepia:["",Ie,ye,me]}],"backdrop-filter":[{"backdrop-filter":["","none",ye,me]}],"backdrop-blur":[{"backdrop-blur":ue()}],"backdrop-brightness":[{"backdrop-brightness":[Ie,ye,me]}],"backdrop-contrast":[{"backdrop-contrast":[Ie,ye,me]}],"backdrop-grayscale":[{"backdrop-grayscale":["",Ie,ye,me]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[Ie,ye,me]}],"backdrop-invert":[{"backdrop-invert":["",Ie,ye,me]}],"backdrop-opacity":[{"backdrop-opacity":[Ie,ye,me]}],"backdrop-saturate":[{"backdrop-saturate":[Ie,ye,me]}],"backdrop-sepia":[{"backdrop-sepia":["",Ie,ye,me]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":k()}],"border-spacing-x":[{"border-spacing-x":k()}],"border-spacing-y":[{"border-spacing-y":k()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",ye,me]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[Ie,"initial",ye,me]}],ease:[{ease:["linear","initial",b,ye,me]}],delay:[{delay:[Ie,ye,me]}],animate:[{animate:["none",v,ye,me]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[g,ye,me]}],"perspective-origin":[{"perspective-origin":S()}],rotate:[{rotate:ne()}],"rotate-x":[{"rotate-x":ne()}],"rotate-y":[{"rotate-y":ne()}],"rotate-z":[{"rotate-z":ne()}],scale:[{scale:te()}],"scale-x":[{"scale-x":te()}],"scale-y":[{"scale-y":te()}],"scale-z":[{"scale-z":te()}],"scale-3d":["scale-3d"],skew:[{skew:J()}],"skew-x":[{"skew-x":J()}],"skew-y":[{"skew-y":J()}],transform:[{transform:[ye,me,"","none","gpu","cpu"]}],"transform-origin":[{origin:S()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:ee()}],"translate-x":[{"translate-x":ee()}],"translate-y":[{"translate-y":ee()}],"translate-z":[{"translate-z":ee()}],"translate-none":["translate-none"],zoom:[{zoom:[$t,ye,me]}],accent:[{accent:T()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:T()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],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",ye,me]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scrollbar-thumb-color":[{"scrollbar-thumb":T()}],"scrollbar-track-color":[{"scrollbar-track":T()}],"scrollbar-gutter":[{"scrollbar-gutter":["auto","stable","both"]}],"scrollbar-w":[{scrollbar:["auto","thin","none"]}],"scroll-m":[{"scroll-m":k()}],"scroll-mx":[{"scroll-mx":k()}],"scroll-my":[{"scroll-my":k()}],"scroll-ms":[{"scroll-ms":k()}],"scroll-me":[{"scroll-me":k()}],"scroll-mbs":[{"scroll-mbs":k()}],"scroll-mbe":[{"scroll-mbe":k()}],"scroll-mt":[{"scroll-mt":k()}],"scroll-mr":[{"scroll-mr":k()}],"scroll-mb":[{"scroll-mb":k()}],"scroll-ml":[{"scroll-ml":k()}],"scroll-p":[{"scroll-p":k()}],"scroll-px":[{"scroll-px":k()}],"scroll-py":[{"scroll-py":k()}],"scroll-ps":[{"scroll-ps":k()}],"scroll-pe":[{"scroll-pe":k()}],"scroll-pbs":[{"scroll-pbs":k()}],"scroll-pbe":[{"scroll-pbe":k()}],"scroll-pt":[{"scroll-pt":k()}],"scroll-pr":[{"scroll-pr":k()}],"scroll-pb":[{"scroll-pb":k()}],"scroll-pl":[{"scroll-pl":k()}],"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",ye,me]}],fill:[{fill:["none",...T()]}],"stroke-w":[{stroke:[Ie,ko,In,yc]}],stroke:[{stroke:["none",...T()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{"container-named":["container-type"],overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","inset-bs","inset-be","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","pbs","pbe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mbs","mbe","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-x","border-w-y","border-w-s","border-w-e","border-w-bs","border-w-be","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-x","border-color-y","border-color-s","border-color-e","border-color-bs","border-color-be","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"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mbs","scroll-mbe","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-pbs","scroll-pbe","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"]},postfixLookupClassGroups:["container-type"],orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}},tC=M0(X0),Pu=c.createContext(void 0);function Xr(e){const t=c.useContext(Pu);if(t===void 0&&!e)throw new Error(De(33));return t}const ji=c.createContext(void 0);function cn(e){const t=c.useContext(ji);if(t===void 0&&!e)throw new Error(De(36));return t}let _r=(function(e){return e.startingStyle="data-starting-style",e.endingStyle="data-ending-style",e})({});const K0={"data-starting-style":""},Z0={"data-ending-style":""},Gt={transitionStatus(e){return e==="starting"?K0:e==="ending"?Z0:null}};(function(e){return e.open="data-open",e.closed="data-closed",e[e.startingStyle=_r.startingStyle]="startingStyle",e[e.endingStyle=_r.endingStyle]="endingStyle",e.anchorHidden="data-anchor-hidden",e.side="data-side",e.align="data-align",e})({});const Q0={"data-popup-open":""},J0={"data-popup-open":"","data-pressed":""},ey={"data-open":""},ty={"data-closed":""},ny={"data-anchor-hidden":""},Bi={open(e){return e?Q0:null}},Lr={open(e){return e?J0:null}},Kr={open(e){return e?ey:ty},anchorHidden(e){return e?ny:null}},Wi={...Kr,...Gt},Tu=c.createContext(void 0);function Zr(e=!0){const t=c.useContext(Tu);if(t===void 0&&!e)throw new Error(De(25));return t}const Rt="none",Rn="trigger-press",rt="trigger-hover",Jn="trigger-focus",Qr="outside-press",An="item-press",oy="close-press",Dn="focus-out",Jr="escape-key",ti="list-navigation",Ui="cancel-open",To="sibling-open",Iu="disabled",xc="missing",wc="initial",Gi="imperative-action",ry="window-resize";function _t({controlled:e,default:t,name:n,state:o="value"}){const{current:r}=c.useRef(e!==void 0),[s,i]=c.useState(t),a=r?e:s,l=c.useCallback(u=>{r||i(u)},[]);return[a,l]}const Ou=c.createContext(void 0);function sy(){const e=c.useContext(Ou);if(e===void 0)throw new Error(De(30));return e}function iy(){return typeof navigator>"u"?{userAgent:"",platform:"",maxTouchPoints:0}:{userAgent:navigator.userAgent,platform:navigator.platform??"",maxTouchPoints:navigator.maxTouchPoints??0}}const{userAgent:ay,platform:cy,maxTouchPoints:ly}=iy(),es=ay.toLowerCase(),Lo=cy.toLowerCase(),ts=/^i(os$|p)/.test(Lo)||Lo==="macintel"&&ly>1,Sc="android",ni=Lo===Sc||es.includes(Sc),qi=!ts&&Lo.startsWith("mac");Lo.startsWith("win");const uy=qi||ts;var eu;const qt=typeof CSS<"u"&&!!((eu=CSS.supports)!=null&&eu.call(CSS,"-webkit-backdrop-filter:none"));!qt&&es.includes("firefox");!qt&&es.includes("chrom");const dy=uy,Yi=/jsdom|happydom/.test(es);function fy(e){const{closeOnClick:t,highlighted:n,id:o,nodeId:r,store:s,typingRef:i,itemRef:a,itemMetadata:l}=e,{events:u}=s.useState("floatingTreeRoot"),d=s.useState("open"),p=Zr(!0),f=p!==void 0;return c.useMemo(()=>({id:o,role:"menuitem",tabIndex:d&&n?0:-1,onKeyDown(y){y.key===" "&&(i!=null&&i.current)&&y.preventDefault()},onMouseMove(y){r&&u.emit("itemhover",{nodeId:r,target:y.currentTarget})},onClick(y){t&&u.emit("close",{domEvent:y,reason:An})},onMouseUp(y){if(p){const m=p.initialCursorPointRef.current;if(p.initialCursorPointRef.current=null,f&&m&&Math.abs(y.clientX-m.x)<=1&&Math.abs(y.clientY-m.y)<=1||f&&!qi&&y.button===2)return}a.current&&s.context.allowMouseUpTriggerRef.current&&(!f||y.button===2)&&l.type==="regular-item"&&Qn(a.current,y,{detail:1})}}),[t,n,o,u,r,d,s,i,a,p,f,l])}const Xi={type:"regular-item"};function Ki(e){const{closeOnClick:t,disabled:n,highlighted:o,id:r,store:s,typingRef:i=s.context.typingRef,nativeButton:a,itemMetadata:l,nodeId:u}=e,d=c.useRef(null),{getButtonProps:p,buttonRef:f}=Tt({disabled:n,focusableWhenDisabled:!0,native:a,composite:!0}),y=fy({closeOnClick:t,highlighted:o,id:r,nodeId:u,store:s,typingRef:i,itemRef:d,itemMetadata:l}),m=c.useCallback(h=>St(y,{onMouseEnter(){l.type==="submenu-trigger"&&l.setActive()}},h,p),[y,p,l]),g=Nt(d,f);return c.useMemo(()=>({getItemProps:m,itemRef:g}),[m,g])}const Au=c.createContext({register:()=>{},unregister:()=>{},subscribeMapChange:()=>()=>{},nextIndexRef:{current:0}});function py(){return c.useContext(Au)}function yo(e={}){const{guess:t,label:n,metadata:o,textRef:r,index:s}=e,{register:i,unregister:a,subscribeMapChange:l,nextIndexRef:u}=py(),d=c.useRef(-1),[p,f]=c.useState(s==null&&t?()=>{if(d.current===-1){const h=u.current;u.current+=1,d.current=h}return d.current}:-1),y=s??p,m=c.useRef(null),g=c.useCallback(h=>{const b=m.current;b&&a(b),m.current=h,h&&i(h,{metadata:o??null,index:s??null,label:n,textRef:r})},[s,i,a,o,n,r]);return oe(()=>{if(s==null)return l(h=>{var v;const b=m.current?(v=h.get(m.current))==null?void 0:v.index:null;b!=null&&f(b)})},[s,l]),{ref:g,index:y}}let Rc=0;function hy(e,t="mui"){const[n,o]=c.useState(e),r=e||n;return c.useEffect(()=>{n==null&&(Rc+=1,o(`${t}-${Rc}`))},[n,t]),r}const kc=Li.useId;function bn(e,t){if(kc!==void 0){const n=kc();return e??(t?`${t}-${n}`:n)}return hy(e,t)}function tt(e){return bn(e,"base-ui")}let Cc=(function(e){return e.checked="data-checked",e.unchecked="data-unchecked",e.disabled="data-disabled",e.highlighted="data-highlighted",e})({});const ns={checked(e){return e?{[Cc.checked]:""}:{[Cc.unchecked]:""}},...Gt};function ke(e,t,n,o){let r=!1,s=!1;const i=o??We;return{reason:e,event:t??new Event("base-ui"),cancel(){r=!0},allowPropagation(){s=!0},get isCanceled(){return r},get isPropagationAllowed(){return s},trigger:n,...i}}const nC=c.forwardRef(function(t,n){const{render:o,className:r,id:s,label:i,nativeButton:a=!1,disabled:l=!1,closeOnClick:u=!1,checked:d,defaultChecked:p,onCheckedChange:f,style:y,...m}=t,g=yo({guess:!0,label:i}),h=Xr(!0),b=tt(s),{store:v}=cn(),w=v.useState("disabled"),x=l||w,S=v.useState("isActive",g.index),R=v.useState("itemProps"),[C,k]=_t({controlled:d,default:p??!1,name:"MenuCheckboxItem",state:"checked"}),{getItemProps:P,itemRef:E}=Ki({closeOnClick:u,disabled:x,highlighted:S,id:b,store:v,nativeButton:a,nodeId:h==null?void 0:h.context.nodeId,itemMetadata:Xi}),O=c.useMemo(()=>({disabled:x,highlighted:S,checked:C}),[x,S,C]);function I(D){const M=ke(An,D.nativeEvent,void 0,{preventUnmountOnClose:Ke});f==null||f(!C,M),!M.isCanceled&&k(z=>!z)}const N=Se("div",t,{state:O,stateAttributesMapping:ns,props:[R,{role:"menuitemcheckbox","aria-checked":C,onClick:I},m,P],ref:[E,n,g.ref]});return K.jsx(Ou.Provider,{value:O,children:N})});function Zi(e){c.useEffect(e,Dt)}const tr=null;class gy{constructor(){Ne(this,"callbacks",[]);Ne(this,"callbacksCount",0);Ne(this,"nextId",1);Ne(this,"startId",1);Ne(this,"isScheduled",!1);Ne(this,"tick",t=>{var r;this.isScheduled=!1;const n=this.callbacks,o=this.callbacksCount;if(this.callbacks=[],this.callbacksCount=0,this.startId=this.nextId,o>0)for(let s=0;s<n.length;s+=1)(r=n[s])==null||r.call(n,t)})}request(t){const n=this.nextId;return this.nextId+=1,this.callbacks.push(t),this.callbacksCount+=1,(!this.isScheduled||!1)&&(requestAnimationFrame(this.tick),this.isScheduled=!0),n}cancel(t){const n=t-this.startId;n<0||n>=this.callbacks.length||(this.callbacks[n]=null,this.callbacksCount-=1)}}let nr=new gy;class vt{constructor(){Ne(this,"currentId",tr);Ne(this,"cancel",()=>{this.currentId!==tr&&(nr.cancel(this.currentId),this.currentId=tr)});Ne(this,"disposeEffect",()=>this.cancel)}static create(){return new vt}static request(t){return nr.request(t)}static cancel(t){return nr.cancel(t)}request(t){this.cancel(),this.currentId=nr.request(()=>{this.currentId=tr,t()})}}function io(){const e=at(vt.create).current;return Zi(e.disposeEffect),e}function ln(e,t=!1,n=!1){const[o,r]=c.useState(e&&t?"idle":void 0),[s,i]=c.useState(e);return e&&!s&&(i(!0),r("starting")),!e&&s&&o!=="ending"&&!n&&r("ending"),!e&&!s&&o==="ending"&&r(void 0),oe(()=>{if(!e&&s&&o!=="ending"&&n){const a=vt.request(()=>{r("ending")});return()=>{vt.cancel(a)}}},[e,s,o,n]),oe(()=>{if(!e||t)return;const a=vt.request(()=>{r(void 0)});return()=>{vt.cancel(a)}},[t,e]),oe(()=>{if(!e||!t)return;e&&s&&o!=="idle"&&r("starting");const a=vt.request(()=>{r("idle")});return()=>{vt.cancel(a)}},[t,e,s,o]),{mounted:s,setMounted:i,transitionStatus:o}}function Zt(e){return e==null?e:"current"in e?e.current:e}function Qi(e,t=!1){const n=io();return le((o,r=null)=>{n.cancel();const s=Zt(e);if(s==null)return;const i=s,a=()=>{At.flushSync(o)};if(typeof i.getAnimations!="function"||globalThis.BASE_UI_ANIMATIONS_DISABLED){o();return}function l(){Promise.all(i.getAnimations().map(u=>u.finished)).then(()=>{r!=null&&r.aborted||a()},()=>{if(r!=null&&r.aborted)return;if(i.getAnimations().some(d=>d.pending||d.playState!=="finished")){l();return}a()})}if(t){const u="data-starting-style";if(!i.hasAttribute(u)){n.request(l);return}const d=new MutationObserver(()=>{i.hasAttribute(u)||(d.disconnect(),l())});d.observe(i,{attributes:!0,attributeFilter:[u]}),r==null||r.addEventListener("abort",()=>d.disconnect(),{once:!0});return}n.request(l)})}function kt(e){const{enabled:t=!0,open:n,ref:o,onComplete:r}=e,s=le(r),i=Qi(o,n);c.useEffect(()=>{if(!t)return;const a=new AbortController;return i(s,a.signal),()=>{a.abort()}},[t,n,s,i])}const oC=c.forwardRef(function(t,n){const{render:o,className:r,style:s,keepMounted:i=!1,...a}=t,l=sy(),u=c.useRef(null),{transitionStatus:d,mounted:p,setMounted:f}=ln(l.checked);kt({open:l.checked,ref:u,onComplete(){l.checked||f(!1)}});const y={checked:l.checked,disabled:l.disabled,highlighted:l.highlighted,transitionStatus:d};return Se("span",t,{state:y,ref:[n,u],stateAttributesMapping:ns,props:{"aria-hidden":!0,...a},enabled:i||p})}),Ji=c.createContext(void 0);function my(){const e=c.useContext(Ji);if(e===void 0)throw new Error(De(31));return e}const rC=c.forwardRef(function(t,n){const{render:o,className:r,style:s,...i}=t,[a,l]=c.useState(void 0),u=Se("div",t,{ref:n,props:{role:"group","aria-labelledby":a,...i}});return K.jsx(Ji.Provider,{value:l,children:u})}),sC=c.forwardRef(function(t,n){const{render:o,className:r,style:s,id:i,...a}=t,l=tt(i),u=my();return oe(()=>(u(l),()=>{u(d=>d===l?void 0:d)}),[u,l]),Se("div",t,{ref:n,props:{id:l,role:"presentation",...a}})}),iC=c.forwardRef(function(t,n){const{render:o,className:r,id:s,label:i,nativeButton:a=!1,disabled:l=!1,closeOnClick:u=!0,style:d,...p}=t,f=yo({guess:!0,label:i}),y=Xr(!0),m=tt(s),{store:g}=cn(),h=g.useState("disabled"),b=l||h,v=g.useState("isActive",f.index),w=g.useState("itemProps"),{getItemProps:x,itemRef:S}=Ki({closeOnClick:u,disabled:b,highlighted:v,id:m,store:g,nativeButton:a,nodeId:y==null?void 0:y.context.nodeId,itemMetadata:Xi});return Se("div",t,{state:{disabled:b,highlighted:v},props:[w,p,x],ref:[S,n,f.ref]})}),Co=0;class Lt{constructor(){Ne(this,"currentId",Co);Ne(this,"clear",()=>{this.currentId!==Co&&(clearTimeout(this.currentId),this.currentId=Co)});Ne(this,"disposeEffect",()=>this.clear)}static create(){return new Lt}start(t,n){this.clear(),this.currentId=setTimeout(()=>{this.currentId=Co,n()},t)}isStarted(){return this.currentId!==Co}}function Ge(){const e=at(Lt.create).current;return Zi(e.disposeEffect),e}function It(e){e.preventDefault(),e.stopPropagation()}function yy(e){return"nativeEvent"in e}function ea(e){return e.pointerType===""&&e.isTrusted?!0:ni&&e.pointerType?e.type==="click"&&e.buttons===1:e.detail===0&&!e.pointerType}function ta(e){return Yi?!1:!ni&&e.width===0&&e.height===0||ni&&e.width===1&&e.height===1&&e.pressure===0&&e.detail===0&&e.pointerType==="mouse"||e.width<1&&e.height<1&&e.pressure===0&&e.detail===0&&e.pointerType==="touch"}function mn(e,t){const n=["mouse","pen"];return t||n.push("",void 0),n.includes(e)}function by(e){const t=e.type;return t==="click"||t==="mousedown"||t==="keydown"||t==="keyup"}const oi="data-base-ui-focusable",Nu="input:not([type='hidden']):not([disabled]),[contenteditable]:not([contenteditable='false']),textarea:not([disabled])",os="ArrowLeft",rs="ArrowRight",Du="ArrowUp",na="ArrowDown";function dt(e){var n;let t=e.activeElement;for(;((n=t==null?void 0:t.shadowRoot)==null?void 0:n.activeElement)!=null;)t=t.shadowRoot.activeElement;return t}function ve(e,t){var o;if(!e||!t)return!1;const n=(o=t.getRootNode)==null?void 0:o.call(t);if(e.contains(t))return!0;if(n&&so(n)){let r=t;for(;r;){if(e===r)return!0;r=r.parentNode||r.host}}return!1}function et(e){return"composedPath"in e?e.composedPath()[0]:e.target}function Fr(e,t){if(!Oe(e))return!1;const n=e;if(t.hasElement(n))return!n.hasAttribute("data-trigger-disabled");for(const[,o]of t.entries())if(ve(o,n))return!o.hasAttribute("data-trigger-disabled");return!1}function Ns(e,t){if(t==null)return!1;if("composedPath"in e)return e.composedPath().includes(t);const n=e;return n.target!=null&&t.contains(n.target)}function vy(e){return e.matches("html,body")}function ss(e){return Fe(e)&&e.matches(Nu)}function xy(e){return(e==null?void 0:e.closest(`button,a[href],[role="button"],select,[tabindex]:not([tabindex="-1"]),${Nu}`))!=null}function ri(e){return e?e.getAttribute("role")==="combobox"&&ss(e):!1}function wy(e){if(!e||Yi)return!0;try{return e.matches(":focus-visible")}catch{return!0}}function zr(e){return e?e.hasAttribute(oi)?e:e.querySelector(`[${oi}]`)||e:null}function Sy(e,t){return t!=null&&!mn(t)?0:typeof e=="function"?e():e}function vn(e,t,n){const o=Sy(e,n);return typeof o=="number"?o:o==null?void 0:o[t]}function Ec(e){return typeof e=="function"?e():e}function _u(e,t){return t||e==="click"||e==="mousedown"}function Ry(e){return(e==null?void 0:e.includes("mouse"))&&e!=="mousedown"}const Lu=c.createContext({hasProvider:!1,timeoutMs:0,delayRef:{current:0},initialDelayRef:{current:0},timeout:new Lt,currentIdRef:{current:null},currentContextRef:{current:null}});function ky(e,t){e.current=t.current}function Cy(e){const{children:t,delay:n,timeoutMs:o=0}=e,r=c.useRef(n),s=c.useRef(n),i=c.useRef(null),a=c.useRef(null),l=Ge();return oe(()=>{if(s.current=n,!i.current){r.current=n;return}r.current={open:vn(r.current,"open"),close:vn(n,"close")}},[n,i,r,s]),K.jsx(Lu.Provider,{value:c.useMemo(()=>({hasProvider:!0,delayRef:r,initialDelayRef:s,currentIdRef:i,timeoutMs:o,currentContextRef:a,timeout:l}),[o,l]),children:t})}function Ey(e,t={open:!1}){const{open:n}=t,o="rootStore"in e?e.rootStore:e,r=o.useState("floatingId"),s=c.useContext(Lu),{currentIdRef:i,delayRef:a,timeoutMs:l,initialDelayRef:u,currentContextRef:d,hasProvider:p,timeout:f}=s,[y,m]=c.useState(!1),g=c.useRef(n);return oe(()=>{g.current=n},[n]),oe(()=>{function h(){var b;(b=d.current)==null||b.setIsInstantPhase(!1),i.current=null,d.current=null,a.current=u.current,f.clear()}if(i.current&&!n&&i.current===r){if(m(!1),l){const b=r;return f.start(l,()=>{o.select("open")||i.current&&i.current!==b||h()}),()=>{(g.current||i.current!==b)&&f.clear()}}h()}},[n,r,i,a,l,u,d,f,o]),oe(()=>{if(!n)return;const h=d.current,b=i.current;f.clear(),d.current={onOpenChange:o.setOpen,setIsInstantPhase:m},i.current=r,a.current={open:0,close:vn(u.current,"close")},b!==null&&b!==r?(m(!0),h==null||h.setIsInstantPhase(!0),h==null||h.onOpenChange(!1,ke(Rt))):(m(!1),h==null||h.setIsInstantPhase(!1))},[n,r,o,i,a,u,d,f]),oe(()=>()=>{if(i.current===r){if(d.current=null,!g.current)return;i.current=null,ky(a,u),f.clear()}},[d,i,a,r,u,f]),c.useMemo(()=>({hasProvider:p,delayRef:a,isInstantPhase:y}),[p,a,y])}function Pe(e,t,n,o){return e.addEventListener(t,n,o),()=>{e.removeEventListener(t,n,o)}}function Ut(...e){return()=>{for(let t=0;t<e.length;t+=1){const n=e[t];n&&n()}}}function Ze(e){const t=at(My,e).current;return t.next=e,oe(t.effect),t}function My(e){const t={current:e,next:e,effect:()=>{t.current=t.next}};return t}const Fu={clipPath:"inset(50%)",overflow:"hidden",whiteSpace:"nowrap",border:0,padding:0,width:1,height:1,margin:-1},Bo={...Fu,position:"fixed",top:0,left:0},oa={...Fu,position:"absolute"},ao=c.forwardRef(function(t,n){const[o,r]=c.useState();oe(()=>{dy&&qt&&r("button")},[]);const s={tabIndex:0,role:o};return K.jsx("span",{...t,ref:n,style:Bo,"aria-hidden":o?void 0:!0,...s,"data-base-ui-focus-guard":""})}),co=Math.min,tn=Math.max,lo=Math.round,or=Math.floor,nn=e=>({x:e,y:e}),Py={left:"right",right:"left",bottom:"top",top:"bottom"};function zu(e,t,n){return tn(e,co(t,n))}function xn(e,t){return typeof e=="function"?e(t):e}function Pt(e){return e.split("-")[0]}function kn(e){return e.split("-")[1]}function ra(e){return e==="x"?"y":"x"}function sa(e){return e==="y"?"height":"width"}function Mt(e){const t=e[0];return t==="t"||t==="b"?"y":"x"}function ia(e){return ra(Mt(e))}function Ty(e,t,n){n===void 0&&(n=!1);const o=kn(e),r=ia(e),s=sa(r);let i=r==="x"?o===(n?"end":"start")?"right":"left":o==="start"?"bottom":"top";return t.reference[s]>t.floating[s]&&(i=Vr(i)),[i,Vr(i)]}function Iy(e){const t=Vr(e);return[si(e),t,si(t)]}function si(e){return e.includes("start")?e.replace("start","end"):e.replace("end","start")}const Mc=["left","right"],Pc=["right","left"],Oy=["top","bottom"],Ay=["bottom","top"];function Ny(e,t,n){switch(e){case"top":case"bottom":return n?t?Pc:Mc:t?Mc:Pc;case"left":case"right":return t?Oy:Ay;default:return[]}}function Dy(e,t,n,o){const r=kn(e);let s=Ny(Pt(e),n==="start",o);return r&&(s=s.map(i=>i+"-"+r),t&&(s=s.concat(s.map(si)))),s}function Vr(e){const t=Pt(e);return Py[t]+e.slice(t.length)}function _y(e){var t,n,o,r;return{top:(t=e.top)!=null?t:0,right:(n=e.right)!=null?n:0,bottom:(o=e.bottom)!=null?o:0,left:(r=e.left)!=null?r:0}}function Vu(e){return typeof e!="number"?_y(e):{top:e,right:e,bottom:e,left:e}}function Fo(e){const{x:t,y:n,width:o,height:r}=e;return{width:o,height:r,top:n,left:t,right:t+o,bottom:n+r,x:t,y:n}}function Ao(e,t){return t<0||t>=e.length}function kr(e,t){return Jt(e.current,{disabledIndices:t})}function ii(e,t){return Jt(e.current,{decrement:!0,startingIndex:e.current.length,disabledIndices:t})}function Jt(e,{startingIndex:t=-1,decrement:n=!1,disabledIndices:o,amount:r=1}={}){let s=t;do s+=n?-r:r;while(s>=0&&s<=e.length-1&&$r(e,s,o));return s}function $r(e,t,n){if(typeof n=="function"?n(t):(n==null?void 0:n.includes(t))??!1)return!0;const r=e[t];return r?!is(r)||r.matches(":disabled")?!0:!n&&(r.hasAttribute("disabled")||r.getAttribute("aria-disabled")==="true"):!1}function Ly(e){return e.visibility==="hidden"||e.visibility==="collapse"}function is(e,t=e?xt(e):null){return!e||!e.isConnected||!t||Ly(t)?!1:typeof e.checkVisibility=="function"?e.checkVisibility():t.display!=="none"&&t.display!=="contents"}const Fy='a[href],button,input,select,textarea,summary,details,iframe,object,embed,[tabindex],[contenteditable]:not([contenteditable="false"]),audio[controls],video[controls]';function zy(e){const t=e.assignedSlot;if(t)return t;if(e.parentElement)return e.parentElement;const n=e.getRootNode();return so(n)?n.host:null}function ai(e){for(const t of Array.from(e.children))if(ut(t)==="summary")return t;return null}function Vy(e,t){const n=ai(t);return!!n&&(e===n||ve(n,e))}function $u(e){const t=e?ut(e):"";return e!=null&&e.matches(Fy)&&(t!=="summary"||e.parentElement!=null&&ut(e.parentElement)==="details"&&ai(e.parentElement)===e)&&(t!=="details"||ai(e)==null)&&(t!=="input"||e.type!=="hidden")}function Hu(e){if(!$u(e)||!e.isConnected||e.matches(":disabled"))return!1;for(let t=e;t;t=zy(t)){const n=t!==e,o=ut(t)==="slot";if(t.hasAttribute("inert")||n&&ut(t)==="details"&&!t.open&&!Vy(e,t)||t.hasAttribute("hidden")||!o&&!$y(t,n))return!1}return!0}function $y(e,t){const n=xt(e);return t?n.display!=="none":is(e,n)}function ju(e){const t=e.tabIndex;if(t<0){const n=ut(e);if(n==="details"||n==="audio"||n==="video"||Fe(e)&&e.isContentEditable)return 0}return t}function Ds(e){if(ut(e)!=="input")return null;const t=e;return t.type==="radio"&&t.name!==""?t:null}function Hy(e,t){const n=Ds(e);if(!n)return!0;const o=t.find(r=>{const s=Ds(r);return(s==null?void 0:s.name)===n.name&&s.form===n.form&&s.checked});return o?o===n:t.find(r=>{const s=Ds(r);return(s==null?void 0:s.name)===n.name&&s.form===n.form})===n}function Bu(e){if(Fe(e)&&ut(e)==="slot"){const t=e.assignedElements({flatten:!0});if(t.length>0)return t}return Fe(e)&&e.shadowRoot?Array.from(e.shadowRoot.children):Array.from(e.children)}function Wu(e,t){Bu(e).forEach(n=>{$u(n)&&t.push(n),Wu(n,t)})}function Uu(e,t,n){Bu(e).forEach(o=>{Fe(o)&&o.matches(t)&&n.push(o),Uu(o,t,n)})}function aa(e){return Hu(e)&&ju(e)>=0}function Gu(e){const t=[];return Wu(e,t),t.filter(Hu)}function Wo(e){const t=Gu(e);return t.filter(n=>ju(n)>=0&&Hy(n,t))}function qu(e,t){const n=Wo(e),o=n.length;if(o===0)return;const r=dt(Te(e)),s=n.indexOf(r),i=s===-1?t===1?0:o-1:s+t;return n[i]}function ca(e){return qu(Te(e).body,1)||e}function Yu(e){return qu(Te(e).body,-1)||e}function Xu(e,t){if(!e)return null;const n=Wo(Te(e).body),o=n.length;if(o===0)return null;const r=n.indexOf(e);if(r===-1)return null;const s=(r+t+o)%o;return n[s]}function jy(e){return Xu(e,1)}function By(e){return Xu(e,-1)}function eo(e,t){const n=t||e.currentTarget,o=e.relatedTarget;return!o||!ve(n,o)}function Wy(e){Wo(e).forEach(n=>{n.dataset.tabindex=n.getAttribute("tabindex")||"",n.setAttribute("tabindex","-1")})}function Tc(e){const t=[];Uu(e,"[data-tabindex]",t),t.forEach(n=>{const o=n.dataset.tabindex;delete n.dataset.tabindex,o?n.setAttribute("tabindex",o):n.removeAttribute("tabindex")})}function wn(e,t,n=!0){return e.filter(r=>r.parentId===t).flatMap(r=>{var s;return[...!n||(s=r.context)!=null&&s.open?[r]:[],...wn(e,r.id,n)]})}function Ic(e,t){var r;let n=[],o=(r=e.find(s=>s.id===t))==null?void 0:r.parentId;for(;o;){const s=e.find(i=>i.id===o);o=s==null?void 0:s.parentId,s&&(n=n.concat(s))}return n}function zo(e){return`data-base-ui-${e}`}let rr=0;function Cr(e,t={}){const{preventScroll:n=!1,sync:o=!1,shouldFocus:r}=t;cancelAnimationFrame(rr);function s(){r&&!r()||e==null||e.focus({preventScroll:n})}if(o)return s(),Ke;const i=requestAnimationFrame(s);return rr=i,()=>{rr===i&&(cancelAnimationFrame(i),rr=0)}}const _s={inert:new WeakMap,"aria-hidden":new WeakMap},Oc="data-base-ui-inert",ci={inert:new WeakSet,"aria-hidden":new WeakSet};let Eo=new WeakMap,Ls=0;function Uy(e){return ci[e]}function Ku(e){return e?so(e)?e.host:Ku(e.parentNode):null}const Ac=(e,t)=>t.map(n=>{if(e.contains(n))return n;const o=Ku(n);return e.contains(o)?o:null}).filter(n=>n!=null),Nc=e=>{const t=new Set;return e.forEach(n=>{let o=n;for(;o&&!t.has(o);)t.add(o),o=o.parentNode}),t},Dc=(e,t,n)=>{const o=[],r=s=>{!s||n.has(s)||Array.from(s.children).forEach(i=>{ut(i)!=="script"&&(t.has(i)?r(i):o.push(i))})};return r(e),o};function Gy(e,t,n,o,{mark:r=!0}){let s=null;o?s="inert":n&&(s="aria-hidden");let i=null,a=null;const l=Ac(t,e),u=r?Dc(t,Nc(l),new Set(l)):[],d=[],p=[];if(s){const f=_s[s],y=Uy(s);a=y,i=f;const m=Ac(t,Array.from(t.querySelectorAll("[aria-live]"))),g=l.concat(m);Dc(t,Nc(g),new Set(g)).forEach(b=>{const v=b.getAttribute(s),w=v!==null&&v!=="false",x=(f.get(b)||0)+1;f.set(b,x),d.push(b),x===1&&w&&y.add(b),w||b.setAttribute(s,s==="inert"?"":"true")})}return r&&u.forEach(f=>{const y=(Eo.get(f)||0)+1;Eo.set(f,y),p.push(f),y===1&&f.setAttribute(Oc,"")}),Ls+=1,()=>{i&&d.forEach(f=>{const m=(i.get(f)||0)-1;i.set(f,m),m||(!(a!=null&&a.has(f))&&s&&f.removeAttribute(s),a==null||a.delete(f))}),r&&p.forEach(f=>{const y=(Eo.get(f)||0)-1;Eo.set(f,y),y||f.removeAttribute(Oc)}),Ls-=1,Ls||(_s.inert=new WeakMap,_s["aria-hidden"]=new WeakMap,ci.inert=new WeakSet,ci["aria-hidden"]=new WeakSet,Eo=new WeakMap)}}function _c(e,t={}){const{ariaHidden:n=!1,inert:o=!1,mark:r=!0}=t,s=Te(e[0]).body;return Gy(e,s,n,o,{mark:r})}const qy=500,Yy=500,Xy={style:{transition:"none"}},Zu="data-base-ui-click-trigger",Qu={fallbackAxisSide:"none"},Ju={fallbackAxisSide:"end"},Ky={clipPath:"inset(50%)",position:"fixed",top:0,left:0},ed=c.createContext(null),td=()=>c.useContext(ed),Zy=zo("portal");function nd(e={}){const{ref:t,container:n,componentProps:o=We,elementProps:r}=e,s=bn(),i=td(),a=i==null?void 0:i.portalNode,[l,u]=c.useState(null),[d,p]=c.useState(null),f=le(h=>{h!==null&&p(h)}),y=c.useRef(null);oe(()=>{if(n===null){y.current&&(y.current=null,p(null),u(null));return}const h=(n&&(Ni(n)?n:n.current))??a??document.body;if(h==null){y.current&&(y.current=null,p(null),u(null));return}y.current!==h&&(y.current=h,p(null),u(h))},[n,a]);const m=Se("div",o,{ref:[t,f],props:[{id:s,[Zy]:""},r]}),g=l&&m?At.createPortal(m,l):null;return{node:d,nodeId:c.isValidElement(m)?m.props.id:void 0,subtree:g}}const la=c.forwardRef(function(t,n){const{render:o,className:r,style:s,children:i,container:a,...l}=t,{node:u,nodeId:d,subtree:p}=nd({container:a,ref:n,componentProps:t,elementProps:l}),f=c.useRef(null),y=c.useRef(null),m=c.useRef(null),g=c.useRef(null),[h,b]=c.useState(null),v=c.useRef(!1),w=h==null?void 0:h.modal,x=h==null?void 0:h.open,S=!!h&&!h.modal&&h.open&&!!u;c.useEffect(()=>{if(!u||w)return;function C(k){u&&k.relatedTarget&&eo(k)&&(k.type==="focusin"?v.current&&(Tc(u),v.current=!1):(Wy(u),v.current=!0))}return Ut(Pe(u,"focusin",C,!0),Pe(u,"focusout",C,!0))},[u,w]),oe(()=>{!u||x!==!0||!v.current||(Tc(u),v.current=!1)},[x,u]);const R=c.useMemo(()=>({beforeOutsideRef:f,afterOutsideRef:y,beforeInsideRef:m,afterInsideRef:g,portalNode:u,setFocusManagerState:b}),[u]);return K.jsxs(c.Fragment,{children:[p,K.jsxs(ed.Provider,{value:R,children:[S&&u&&K.jsx(ao,{"data-type":"outside",ref:f,onFocus:C=>{var k;if(eo(C,u))(k=m.current)==null||k.focus();else{const P=h?h.domReference:null,E=Yu(P);E==null||E.focus()}}}),S&&u&&K.jsx("span",{"aria-owns":d,style:Ky}),u&&At.createPortal(i,u),S&&u&&K.jsx(ao,{"data-type":"outside",ref:y,onFocus:C=>{var k;if(eo(C,u))(k=g.current)==null||k.focus();else{const P=h?h.domReference:null,E=ca(P);E==null||E.focus(),h!=null&&h.closeOnFocusOut&&(h==null||h.onOpenChange(!1,ke(Dn,C.nativeEvent)))}}})]})]})});function od(){const e=new Map;return{emit(t,n){var o;(o=e.get(t))==null||o.forEach(r=>r(n))},on(t,n){e.has(t)||e.set(t,new Set),e.get(t).add(n)},off(t,n){var o;(o=e.get(t))==null||o.delete(n)}}}class ua{constructor(){Ne(this,"nodesRef",{current:[]});Ne(this,"events",od())}addNode(t){this.nodesRef.current.push(t)}removeNode(t){const n=this.nodesRef.current.findIndex(o=>o===t);n!==-1&&this.nodesRef.current.splice(n,1)}}const rd=c.createContext(null),sd=c.createContext(null),Cn=()=>{var e;return((e=c.useContext(rd))==null?void 0:e.id)||null},En=e=>{const t=c.useContext(sd);return e??t};function id(e){const t=bn(),n=En(e),o=Cn();return oe(()=>{if(!t)return;const r={id:t,parentId:o};return n==null||n.addNode(r),()=>{n==null||n.removeNode(r)}},[n,t,o]),t}function Qy(e){const{children:t,id:n}=e,o=Cn();return K.jsx(rd.Provider,{value:c.useMemo(()=>({id:n,parentId:o}),[n,o]),children:t})}function Jy(e){const{children:t,externalTree:n}=e,o=at(()=>n??new ua).current;return K.jsx(sd.Provider,{value:o,children:t})}function e1(e,t){const n=He(et(e));return e instanceof n.KeyboardEvent?"keyboard":e instanceof n.FocusEvent?t||"keyboard":"pointerType"in e?e.pointerType||"keyboard":"touches"in e?"touch":e instanceof n.MouseEvent?t||(e.detail===0?"keyboard":"mouse"):""}const Lc=20;let pn=[];function da(){pn=pn.filter(e=>{var t;return(t=e.deref())==null?void 0:t.isConnected})}function Fc(e){da(),e&&ut(e)!=="body"&&(pn.push(new WeakRef(e)),pn.length>Lc&&(pn=pn.slice(-Lc)))}function zc(){var e;return da(),(e=pn[pn.length-1])==null?void 0:e.deref()}function t1(e){return e?aa(e)?e:Wo(e)[0]||e:null}function Vc(e){var r;if(e.hasAttribute("tabindex")&&!e.hasAttribute("data-tabindex")||!((r=e.getAttribute("role"))!=null&&r.includes("dialog")))return;const n=Gu(e).filter(s=>{const i=s.getAttribute("data-tabindex")||"";return aa(s)||s.hasAttribute("data-tabindex")&&!i.startsWith("-")}),o=e.getAttribute("tabindex");n.length===0?o!=="0"&&(e.setAttribute("tabindex","0"),e.setAttribute("data-tabindex","0")):(o!=="-1"||e.hasAttribute("data-tabindex")&&e.getAttribute("data-tabindex")!=="-1")&&(e.setAttribute("tabindex","-1"),e.setAttribute("data-tabindex","-1"))}function fa(e){const{context:t,children:n,disabled:o=!1,initialFocus:r=!0,returnFocus:s=!0,restoreFocus:i=!1,modal:a=!0,closeOnFocusOut:l=!0,openInteractionType:u="",nextFocusableElement:d,previousFocusableElement:p,beforeContentFocusGuardRef:f,externalTree:y,getInsideElements:m}=e,g="rootStore"in t?t.rootStore:t,h=g.useState("open"),b=g.useState("domReferenceElement"),v=g.useState("floatingElement"),{events:w,dataRef:x}=g.context,S=le(()=>{var te;return(te=x.current.floatingContext)==null?void 0:te.nodeId}),R=r===!1,C=ri(b)&&R,k=Ze(r),P=Ze(s),E=Ze(u),O=Ze(h),I=En(y),N=td(),D=c.useRef(!1),M=c.useRef(!1),z=c.useRef(!1),_=c.useRef(null),A=c.useRef(""),F=c.useRef(""),T=c.useRef(null),L=c.useRef(null),j=Nt(T,f,N==null?void 0:N.beforeInsideRef),$=Nt(L,N==null?void 0:N.afterInsideRef),U=Ge(),q=Ge(),V=io(),Q=N!=null,H=zr(v),G=le((te=H)=>te?Wo(te):[]),ue=le(()=>(m==null?void 0:m().filter(te=>te!=null))??[]);c.useEffect(()=>{if(o||!a)return;function te(ee){ee.key==="Tab"&&ve(H,dt(Te(H)))&&G().length===0&&!C&&It(ee)}const J=Te(H);return Pe(J,"keydown",te)},[o,H,a,C,G]),c.useEffect(()=>{if(o||!h)return;const te=Te(H);function J(){z.current=!1}function ee(xe){const ae=et(xe),he=ue(),re=ve(v,ae)||ve(b,ae)||ve(N==null?void 0:N.portalNode,ae)||he.some(ge=>ge===ae||ve(ge,ae));z.current=!re,F.current=xe.pointerType||"keyboard",ae!=null&&ae.closest(`[${Zu}]`)&&(M.current=!0,q.start(0,()=>{M.current=!1}))}function ie(){F.current="keyboard"}return Ut(Pe(te,"pointerdown",ee,!0),Pe(te,"pointerup",J,!0),Pe(te,"pointercancel",J,!0),Pe(te,"keydown",ie,!0),J)},[o,v,b,H,h,N,q,ue]),c.useEffect(()=>{if(o||!l)return;const te=Te(H);function J(){M.current=!0,q.start(0,()=>{M.current=!1})}function ee(he){const re=et(he);aa(re)&&(_.current=re)}function ie(he){const re=he.relatedTarget,ge=he.currentTarget,de=et(he);a&&re==null&&de!=null&&ve(v,de)&&Fc(de),queueMicrotask(()=>{const ce=S(),fe=g.context.triggerElements,W=ue(),Y=(re==null?void 0:re.hasAttribute(zo("focus-guard")))&&[T.current,L.current,N==null?void 0:N.beforeInsideRef.current,N==null?void 0:N.afterInsideRef.current,N==null?void 0:N.beforeOutsideRef.current,N==null?void 0:N.afterOutsideRef.current,Zt(p),Zt(d)].includes(re),se=!(ve(b,re)||ve(v,re)||ve(re,v)||ve(N==null?void 0:N.portalNode,re)||W.some(Z=>Z===re||ve(Z,re))||fe.hasMatchingElement(Z=>ve(Z,re))||Y||I&&(wn(I.nodesRef.current,ce).find(Z=>{var X,pe;return ve((X=Z.context)==null?void 0:X.elements.floating,re)||ve((pe=Z.context)==null?void 0:pe.elements.domReference,re)})||Ic(I.nodesRef.current,ce).find(Z=>{var X,pe,be;return[(X=Z.context)==null?void 0:X.elements.floating,zr((pe=Z.context)==null?void 0:pe.elements.floating)].includes(re)||((be=Z.context)==null?void 0:be.elements.domReference)===re})));if(ge===b&&H&&Vc(H),i&&ge!==b&&!is(de)&&dt(te)===te.body){if(Fe(H)&&(H.focus(),i==="popup")){V.request(()=>{H.focus()});return}const Z=G(),X=_.current,pe=(X&&Z.includes(X)?X:null)||Z[Z.length-1]||H;Fe(pe)&&pe.focus()}if(x.current.insideReactTree){x.current.insideReactTree=!1;return}(C||!a)&&re&&se&&!M.current&&(C||re!==zc())&&(D.current=!0,g.setOpen(!1,ke(Dn,he)))})}function xe(){z.current||(x.current.insideReactTree=!0,U.start(0,()=>{x.current.insideReactTree=!1}))}const ae=Fe(b)?b:null;if(!(!v&&!ae))return Ut(ae&&Pe(ae,"focusout",ie),ae&&Pe(ae,"pointerdown",J),v&&Pe(v,"focusin",ee),v&&Pe(v,"focusout",ie),v&&N&&Pe(v,"focusout",xe,!0))},[o,b,v,H,a,I,N,g,l,i,G,C,S,x,U,q,V,d,p,ue]),c.useEffect(()=>{var ge,de,ce;if(o||!v||!h)return;const te=Array.from(((ge=N==null?void 0:N.portalNode)==null?void 0:ge.querySelectorAll(`[${zo("portal")}]`))||[]),ee=(ce=(de=(I?Ic(I.nodesRef.current,S()):[]).find(fe=>{var W;return ri(((W=fe.context)==null?void 0:W.elements.domReference)||null)}))==null?void 0:de.context)==null?void 0:ce.elements.domReference,xe=[...[v,...te,T.current,L.current,N==null?void 0:N.beforeOutsideRef.current,N==null?void 0:N.afterOutsideRef.current,...ue()],ee,Zt(p),Zt(d),C?b:null].filter(fe=>fe!=null),ae=_c(xe,{ariaHidden:a||C,mark:!1}),he=[v,...te].filter(fe=>fe!=null),re=_c(he);return()=>{re(),ae()}},[h,o,b,v,a,N,C,I,S,d,p,ue]),oe(()=>{if(!h||o||!Fe(H))return;A.current="",F.current="";const te=Te(H),J=dt(te);queueMicrotask(()=>{const ee=k.current,ie=typeof ee=="function"?ee(E.current||""):ee;if(ie===void 0||ie===!1||ve(H,J))return;let ae=null;const he=()=>(ae==null&&(ae=G(H)),ae[0]||H);let re;ie===!0||ie===null?re=he():re=Zt(ie),re=re||he();const ge=ve(H,dt(te));Cr(re,{preventScroll:re===H,shouldFocus(){if(!O.current)return!1;if(ge)return!0;const de=dt(te);return!(de!==re&&ve(H,de))}})})},[o,h,H,G,k,E,O]),oe(()=>{if(o||!H)return;const te=Te(H),J=dt(te),ee=E.current==null;Fc(J);function ie(ae){if(ae.open||(A.current=e1(ae.nativeEvent,F.current)),ae.reason===rt&&ae.nativeEvent.type==="mouseleave"&&(D.current=!0),ae.reason===Qr)if(ae.nested)D.current=!1;else if(ea(ae.nativeEvent)||ta(ae.nativeEvent))D.current=!1;else{let he=!1;Te(H).createElement("div").focus({get preventScroll(){return he=!0,!1}}),he?D.current=!1:D.current=!0}}w.on("openchange",ie);function xe(ae){const he=P.current;let re=typeof he=="function"?he(ae):he;if(re===void 0||re===!1)return null;re===null&&(re=!0);const ge=b!=null&&b.isConnected?b:null,de=J!=null&&J.isConnected&&ut(J)!=="body"?J:null;let ce=ee?de||ge:ge||de;return ce||(ce=zc()||null),typeof re=="boolean"?ce:Zt(re)||ce||null}return()=>{w.off("openchange",ie);const ae=dt(te),he=ue(),re=ve(v,ae)||he.some(fe=>fe===ae||ve(fe,ae))||I&&wn(I.nodesRef.current,S(),!1).some(fe=>{var W;return ve((W=fe.context)==null?void 0:W.elements.floating,ae)}),ge=P.current,de=A.current,ce=xe(de);queueMicrotask(()=>{const fe=t1(ce),W=typeof ge!="boolean";if(ge&&!D.current&&Fe(fe)&&(!(!W&&fe!==ae&&ae!==te.body)||re)){const Y={preventScroll:!0};de==="keyboard"&&(Y.focusVisible=!0),fe.focus(Y)}D.current=!1})}},[o,v,H,P,E,w,I,b,S,ue]),oe(()=>{if(!qt||h||!v)return;const te=dt(Te(v));!Fe(te)||!ss(te)||ve(v,te)&&te.blur()},[h,v]),oe(()=>{if(!(o||!N))return N.setFocusManagerState({modal:a,closeOnFocusOut:l,open:h,onOpenChange:g.setOpen,domReference:b}),()=>{N.setFocusManagerState(null)}},[o,N,a,h,g,l,b]),oe(()=>{if(!(o||!H))return Vc(H),()=>{queueMicrotask(da)}},[o,H]);const ne=!o&&(a?!C:!0)&&(Q||a);return K.jsxs(c.Fragment,{children:[ne&&K.jsx(ao,{"data-type":"inside",ref:j,onFocus:te=>{var J;if(a){const ee=G();Cr(ee[ee.length-1])}else if(N!=null&&N.portalNode)if(D.current=!1,eo(te,N.portalNode)){const ee=ca(b);ee==null||ee.focus()}else(J=Zt(p??N.beforeOutsideRef))==null||J.focus()}}),n,ne&&K.jsx(ao,{"data-type":"inside",ref:$,onFocus:te=>{var J;if(a)Cr(G()[0]);else if(N!=null&&N.portalNode)if(l&&(D.current=!0),eo(te,N.portalNode)){const ee=Yu(b);ee==null||ee.focus()}else(J=Zt(d??N.afterOutsideRef))==null||J.focus()}})]})}function pa(e,t={}){const{enabled:n=!0,event:o="click",toggle:r=!0,ignoreMouse:s=!1,stickIfOpen:i=!0,touchOpenDelay:a=0,reason:l=Rn}=t,u="rootStore"in e?e.rootStore:e,d=u.context.dataRef,p=c.useRef(void 0),f=io(),y=Ge(),m=c.useMemo(()=>{function g(b,v,w,x){const S=ke(l,v,w);b&&x==="touch"&&a>0?y.start(a,()=>{u.setOpen(!0,S)}):u.setOpen(b,S)}function h(b,v,w){const x=d.current.openEvent,S=u.select("domReferenceElement")!==v;return b&&S||!b||!r?!0:x&&i?!w(x.type):!1}return{onPointerDown(b){p.current=mn(b.pointerType,!0)&&ta(b.nativeEvent)?"virtual":b.pointerType},onMouseDown(b){const v=p.current,w=b.nativeEvent,x=u.select("open");if(b.button!==0||o==="click"||mn(v,!0)&&s)return;const S=h(x,b.currentTarget,k=>k==="click"||k==="mousedown"),R=et(w);if(ss(R)){g(S,w,R,v);return}const C=b.currentTarget;f.request(()=>{g(S,w,C,v)})},onClick(b){if(o==="mousedown-only")return;const v=p.current;if(o==="mousedown"&&v){p.current=void 0;return}if(mn(v,!0)&&s)return;const w=u.select("open"),x=h(w,b.currentTarget,S=>S==="click"||S==="mousedown"||S==="keydown"||S==="keyup");g(x,b.nativeEvent,b.currentTarget,v)},onKeyDown(){p.current=void 0}}},[d,o,s,l,u,i,r,f,y,a]);return c.useMemo(()=>n?{reference:m}:We,[n,m])}function n1(e,t){let n=null,o=null,r=!1;return{contextElement:e||void 0,getBoundingClientRect(){var y;const s=(e==null?void 0:e.getBoundingClientRect())||{width:0,height:0,x:0,y:0},i=t.axis==="x"||t.axis==="both",a=t.axis==="y"||t.axis==="both",l=["mouseenter","mousemove"].includes(((y=t.dataRef.current.openEvent)==null?void 0:y.type)||"")&&t.pointerType!=="touch";let u=s.width,d=s.height,p=s.x,f=s.y;return n==null&&t.x&&i&&(n=s.x-t.x),o==null&&t.y&&a&&(o=s.y-t.y),p-=n||0,f-=o||0,u=0,d=0,!r||l?(u=t.axis==="y"?s.width:0,d=t.axis==="x"?s.height:0,p=i&&t.x!=null?t.x:p,f=a&&t.y!=null?t.y:f):r&&!l&&(d=t.axis==="x"?s.height:d,u=t.axis==="y"?s.width:u),r=!0,{width:u,height:d,x:p,y:f,top:f,right:p+u,bottom:f+d,left:p}}}}function $c(e){return e!=null&&e.clientX!=null}function o1(e,t={}){const{enabled:n=!0,axis:o="both"}=t,r="rootStore"in e?e.rootStore:e,s=r.useState("open"),i=r.useState("floatingElement"),a=r.useState("domReferenceElement"),l=r.context.dataRef,u=c.useRef(!1),d=c.useRef(null),[p,f]=c.useState(),[y,m]=c.useState([]),g=le(x=>{r.set("positionReference",x)}),h=le((x,S,R)=>{u.current||l.current.openEvent&&!$c(l.current.openEvent)||r.set("positionReference",n1(R??a,{x,y:S,axis:o,dataRef:l,pointerType:p}))}),b=le(x=>{s?d.current||(h(x.clientX,x.clientY,x.currentTarget),m([])):h(x.clientX,x.clientY,x.currentTarget)}),v=mn(p)?i:s;c.useEffect(()=>{if(!n){g(a);return}if(!v)return;function x(){var C;(C=d.current)==null||C.call(d),d.current=null}const S=He(i);function R(C){const k=et(C);ve(i,k)?x():h(C.clientX,C.clientY)}return!l.current.openEvent||$c(l.current.openEvent)?d.current=Pe(S,"mousemove",R):g(a),x},[v,n,i,l,a,r,h,g,y]),c.useEffect(()=>()=>{r.set("positionReference",null)},[r]),c.useEffect(()=>{n&&!i&&(u.current=!1)},[n,i]),c.useEffect(()=>{!n&&s&&(u.current=!0)},[n,s]);const w=c.useMemo(()=>{function x(S){f(S.pointerType)}return{onPointerDown:x,onPointerEnter:x,onMouseMove:b,onMouseEnter:b}},[b]);return c.useMemo(()=>n?{reference:w,trigger:w}:{},[n,w])}function r1(){return!1}function s1(e){return{escapeKey:typeof e=="boolean"?e:(e==null?void 0:e.escapeKey)??!1,outsidePress:typeof e=="boolean"?e:(e==null?void 0:e.outsidePress)??!0}}function as(e,t={}){const{enabled:n=!0,escapeKey:o=!0,outsidePress:r=!0,outsidePressEvent:s="sloppy",referencePress:i=r1,bubbles:a,externalTree:l}=t,u="rootStore"in e?e.rootStore:e,d=u.useState("open"),p=u.useState("floatingElement"),{dataRef:f}=u.context,y=En(l),m=le(typeof r=="function"?r:()=>!1),g=typeof r=="function"?m:r,h=g!==!1,b=le(()=>s),{escapeKey:v,outsidePress:w}=s1(a),x=c.useRef(!1),S=c.useRef(!1),R=c.useRef(!1),C=c.useRef(!1),k=c.useRef(""),P=c.useRef(null),E=Ge(),O=Ge(),I=le(()=>{O.clear(),f.current.insideReactTree=!1}),N=le(j=>{var q;const $=(q=f.current.floatingContext)==null?void 0:q.nodeId;return(y?wn(y.nodesRef.current,$):[]).some(V=>{var Q;return((Q=V.context)==null?void 0:Q.open)&&!V.context.dataRef.current[j]})}),D=le(j=>Ns(j,u.select("floatingElement"))||Ns(j,u.select("domReferenceElement"))),M=le(j=>{i()&&u.setOpen(!1,ke(Rn,j.nativeEvent))}),z=le(j=>{if(!d||!n||!o||j.key!=="Escape"||C.current||!v&&N("__escapeKeyBubbles"))return;const $=yy(j)?j.nativeEvent:j,U=ke(Jr,$);u.setOpen(!1,U),U.isCanceled||j.preventDefault(),!v&&!U.isPropagationAllowed&&j.stopPropagation()}),_=le(()=>{f.current.insideReactTree=!0,O.start(0,I)}),A=le(j=>{if(!d||!n||j.button!==0)return;const $=et(j.nativeEvent);ve(u.select("floatingElement"),$)&&(x.current||(x.current=!0,S.current=!1))}),F=le(j=>{!d||!n||(j.defaultPrevented||j.nativeEvent.defaultPrevented)&&x.current&&(S.current=!0)});c.useEffect(()=>{if(!d||!n)return I;f.current.__escapeKeyBubbles=v,f.current.__outsidePressBubbles=w;const j=new Lt,$=new Lt;function U(){j.clear(),C.current=!0}function q(){j.start(qt?5:0,()=>{C.current=!1})}function V(){R.current=!0,$.start(0,()=>{R.current=!1})}function Q(){x.current=!1,S.current=!1}function H(){const W=k.current,Y=W==="pen"||!W?"mouse":W,se=b(),Z=typeof se=="function"?se():se;return typeof Z=="string"?Z:Z[Y]}function G(W){const Y=H();return Y==="intentional"&&W.type!=="click"||Y==="sloppy"&&W.type==="click"}function ue(W){var Z;const Y=(Z=f.current.floatingContext)==null?void 0:Z.nodeId,se=y&&wn(y.nodesRef.current,Y).some(X=>{var pe;return Ns(W,(pe=X.context)==null?void 0:pe.elements.floating)});return D(W)||se}function ne(W){if(G(W)){W.type!=="click"&&!D(W)&&($.clear(),R.current=!1),I();return}if(f.current.insideReactTree){I();return}const Y=et(W),se=`[${zo("inert")}]`,Z=Oe(Y)?Y.getRootNode():null,X=Array.from((so(Z)?Z:Te(u.select("floatingElement"))).querySelectorAll(se)),pe=u.context.triggerElements;if(Y&&(pe.hasElement(Y)||pe.hasMatchingElement(_e=>ve(_e,Y))))return;let be=Oe(Y)?Y:null;for(;be&&!en(be);){const _e=on(be);if(en(_e)||!Oe(_e))break;be=_e}if(!(X.length&&Oe(Y)&&!vy(Y)&&!ve(Y,u.select("floatingElement"))&&X.every(_e=>!ve(be,_e)))){if(Fe(Y)&&!("touches"in W)){const _e=en(Y),Ue=xt(Y),Ye=/auto|scroll/,st=_e||Ye.test(Ue.overflowX),Le=_e||Ye.test(Ue.overflowY),Je=st&&Y.clientWidth>0&&Y.scrollWidth>Y.clientWidth,ct=Le&&Y.clientHeight>0&&Y.scrollHeight>Y.clientHeight,Re=Ue.direction==="rtl",je=ct&&(Re?W.offsetX<=Y.offsetWidth-Y.clientWidth:W.offsetX>Y.clientWidth),qe=Je&&W.offsetY>Y.clientHeight;if(je||qe)return}if(!ue(W)){if(H()==="intentional"&&R.current){$.clear(),R.current=!1;return}typeof g=="function"&&!g(W)||N("__outsidePressBubbles")||(u.setOpen(!1,ke(Qr,W)),I())}}}function te(W){H()!=="sloppy"||W.pointerType==="touch"||!u.select("open")||!n||D(W)||ne(W)}function J(W){if(H()!=="sloppy"||!u.select("open")||!n||D(W))return;const Y=W.touches[0];Y&&(P.current={startTime:Date.now(),startX:Y.clientX,startY:Y.clientY,dismissOnTouchEnd:!1,dismissOnMouseDown:!0},E.start(1e3,()=>{P.current&&(P.current.dismissOnTouchEnd=!1,P.current.dismissOnMouseDown=!1)}))}function ee(W,Y){const se=et(W);if(!se)return;const Z=Pe(se,W.type,()=>{Y(W),Z()})}function ie(W){k.current="touch",ee(W,J)}function xe(W){E.clear(),W.type==="pointerdown"&&(k.current=W.pointerType),!(W.type==="mousedown"&&P.current&&!P.current.dismissOnMouseDown)&&ee(W,Y=>{Y.type==="pointerdown"?te(Y):ne(Y)})}function ae(W){if(!x.current)return;const Y=S.current;if(Q(),H()==="intentional"){if(W.type==="pointercancel"){Y&&V();return}if(!ue(W)){if(Y){V();return}typeof g=="function"&&!g(W)||($.clear(),R.current=!0,I())}}}function he(W){if(H()!=="sloppy"||!P.current||D(W))return;const Y=W.touches[0];if(!Y)return;const se=Math.abs(Y.clientX-P.current.startX),Z=Math.abs(Y.clientY-P.current.startY),X=Math.sqrt(se*se+Z*Z);X>5&&(P.current.dismissOnTouchEnd=!0),X>10&&(ne(W),E.clear(),P.current=null)}function re(W){ee(W,he)}function ge(W){H()!=="sloppy"||!P.current||D(W)||(P.current.dismissOnTouchEnd&&ne(W),E.clear(),P.current=null)}function de(W){ee(W,ge)}const ce=Te(p),fe=Ut(o&&Ut(Pe(ce,"keydown",z),Pe(ce,"compositionstart",U),Pe(ce,"compositionend",q)),h&&Ut(Pe(ce,"click",xe,!0),Pe(ce,"pointerdown",xe,!0),Pe(ce,"pointerup",ae,!0),Pe(ce,"pointercancel",ae,!0),Pe(ce,"mousedown",xe,!0),Pe(ce,"mouseup",ae,!0),Pe(ce,"touchstart",ie,!0),Pe(ce,"touchmove",re,!0),Pe(ce,"touchend",de,!0)));return()=>{fe(),j.clear(),$.clear(),Q(),R.current=!1,I()}},[f,p,o,h,g,d,n,v,w,z,I,b,N,D,y,u,E]);const T=c.useMemo(()=>({onKeyDown:z,onPointerDown:M,onClick:M}),[z,M]),L=c.useMemo(()=>({onKeyDown:z,onPointerDown:F,onMouseDown:F,onClickCapture:_,onMouseDownCapture(j){_(),A(j)},onPointerDownCapture(j){_(),A(j)},onMouseUpCapture:_,onTouchEndCapture:_,onTouchMoveCapture:_}),[z,_,A,F]);return c.useMemo(()=>n?{reference:T,floating:L,trigger:T}:{},[n,T,L])}function Hc(e,t,n){let{reference:o,floating:r}=e;const s=Mt(t),i=ia(t),a=sa(i),l=Pt(t),u=s==="y",d=o.x+o.width/2-r.width/2,p=o.y+o.height/2-r.height/2,f=o[a]/2-r[a]/2;let y;switch(l){case"top":y={x:d,y:o.y-r.height};break;case"bottom":y={x:d,y:o.y+o.height};break;case"right":y={x:o.x+o.width,y:p};break;case"left":y={x:o.x-r.width,y:p};break;default:y={x:o.x,y:o.y}}const m=kn(t);return m&&(y[i]+=f*(m==="end"?1:-1)*(n&&u?-1:1)),y}async function i1(e,t){var n;t===void 0&&(t={});const{x:o,y:r,platform:s,rects:i,elements:a,strategy:l}=e,{boundary:u="clippingAncestors",rootBoundary:d="viewport",elementContext:p="floating",altBoundary:f=!1,padding:y=0}=xn(t,e),m=Vu(y),h=a[f?p==="floating"?"reference":"floating":p],b=Fo(await s.getClippingRect({element:(n=await(s.isElement==null?void 0:s.isElement(h)))==null||n?h:h.contextElement||await(s.getDocumentElement==null?void 0:s.getDocumentElement(a.floating)),boundary:u,rootBoundary:d,strategy:l})),v=p==="floating"?{x:o,y:r,width:i.floating.width,height:i.floating.height}:i.reference,w=await(s.getOffsetParent==null?void 0:s.getOffsetParent(a.floating)),x=await(s.isElement==null?void 0:s.isElement(w))&&await(s.getScale==null?void 0:s.getScale(w))||{x:1,y:1},S=Fo(s.convertOffsetParentRelativeRectToViewportRelativeRect?await s.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:v,offsetParent:w,strategy:l}):v);return{top:(b.top-S.top+m.top)/x.y,bottom:(S.bottom-b.bottom+m.bottom)/x.y,left:(b.left-S.left+m.left)/x.x,right:(S.right-b.right+m.right)/x.x}}const a1=50,c1=async(e,t,n)=>{const{placement:o="bottom",strategy:r="absolute",middleware:s=[],platform:i}=n,a=i.detectOverflow?i:{...i,detectOverflow:i1},l=await(i.isRTL==null?void 0:i.isRTL(t));let u=await i.getElementRects({reference:e,floating:t,strategy:r}),{x:d,y:p}=Hc(u,o,l),f=o,y=0;const m={};for(let g=0;g<s.length;g++){const h=s[g];if(!h)continue;const{name:b,fn:v}=h,{x:w,y:x,data:S,reset:R}=await v({x:d,y:p,initialPlacement:o,placement:f,strategy:r,middlewareData:m,rects:u,platform:a,elements:{reference:e,floating:t}});d=w??d,p=x??p,m[b]={...m[b],...S},R&&y<a1&&(y++,typeof R=="object"&&(R.placement&&(f=R.placement),R.rects&&(u=R.rects===!0?await i.getElementRects({reference:e,floating:t,strategy:r}):R.rects),{x:d,y:p}=Hc(u,f,l)),g=-1)}return{x:d,y:p,placement:f,strategy:r,middlewareData:m}},l1=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,o;const{placement:r,middlewareData:s,rects:i,initialPlacement:a,platform:l,elements:u}=t,{mainAxis:d=!0,crossAxis:p=!0,fallbackPlacements:f,fallbackStrategy:y="bestFit",fallbackAxisSideDirection:m="none",flipAlignment:g=!0,...h}=xn(e,t);if((n=s.arrow)!=null&&n.alignmentOffset)return{};const b=Pt(r),v=Mt(a),w=Pt(a)===a,x=await(l.isRTL==null?void 0:l.isRTL(u.floating)),S=f||(w||!g?[Vr(a)]:Iy(a)),R=m!=="none";!f&&R&&S.push(...Dy(a,g,m,x));const C=[a,...S],k=await l.detectOverflow(t,h),P=[];let E=((o=s.flip)==null?void 0:o.overflows)||[];if(d&&P.push(k[b]),p){const D=Ty(r,i,x);P.push(k[D[0]],k[D[1]])}if(E=[...E,{placement:r,overflows:P}],!P.every(D=>D<=0)){var O,I;const D=(((O=s.flip)==null?void 0:O.index)||0)+1,M=C[D];if(M&&(!(p==="alignment"?v!==Mt(M):!1)||E.every(A=>Mt(A.placement)===v?A.overflows[0]>0:!0)))return{data:{index:D,overflows:E},reset:{placement:M}};let z=(I=E.filter(_=>_.overflows[0]<=0).sort((_,A)=>_.overflows[1]-A.overflows[1])[0])==null?void 0:I.placement;if(!z)switch(y){case"bestFit":{var N;const _=(N=E.filter(A=>{if(R){const F=Mt(A.placement);return F===v||F==="y"}return!0}).map(A=>[A.placement,A.overflows.filter(F=>F>0).reduce((F,T)=>F+T,0)]).sort((A,F)=>A[1]-F[1])[0])==null?void 0:N[0];_&&(z=_);break}case"initialPlacement":z=a;break}if(r!==z)return{reset:{placement:z}}}return{}}}},ad=new Set(["left","top"]);async function u1(e,t){const{placement:n,platform:o,elements:r}=e,s=await(o.isRTL==null?void 0:o.isRTL(r.floating)),i=Pt(n),a=kn(n),l=Mt(n)==="y",u=ad.has(i)?-1:1,d=s&&l?-1:1,p=xn(t,e);let{mainAxis:f,crossAxis:y,alignmentAxis:m}=typeof p=="number"?{mainAxis:p,crossAxis:0,alignmentAxis:null}:{mainAxis:p.mainAxis||0,crossAxis:p.crossAxis||0,alignmentAxis:p.alignmentAxis};return a&&typeof m=="number"&&(y=a==="end"?m*-1:m),l?{x:y*d,y:f*u}:{x:f*u,y:y*d}}const d1=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,o;const{x:r,y:s,placement:i,middlewareData:a}=t,l=await u1(t,e);return i===((n=a.offset)==null?void 0:n.placement)&&(o=a.arrow)!=null&&o.alignmentOffset?{}:{x:r+l.x,y:s+l.y,data:{...l,placement:i}}}}},f1=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:o,placement:r,platform:s}=t,{mainAxis:i=!0,crossAxis:a=!1,limiter:l={fn:v=>{let{x:w,y:x}=v;return{x:w,y:x}}},...u}=xn(e,t),d={x:n,y:o},p=await s.detectOverflow(t,u),f=Mt(r),y=ra(f);let m=d[y],g=d[f];const h=(v,w)=>zu(w+p[v==="y"?"top":"left"],w,w-p[v==="y"?"bottom":"right"]);i&&(m=h(y,m)),a&&(g=h(f,g));const b=l.fn({...t,[y]:m,[f]:g});return{...b,data:{x:b.x-n,y:b.y-o,enabled:{[y]:i,[f]:a}}}}}},p1=function(e){return e===void 0&&(e={}),{options:e,fn(t){var n,o;const{x:r,y:s,placement:i,rects:a,middlewareData:l}=t,{offset:u=0,mainAxis:d=!0,crossAxis:p=!0}=xn(e,t),f={x:r,y:s},y=Mt(i),m=ra(y);let g=f[m],h=f[y];const b=xn(u,t),v=typeof b=="number"?{mainAxis:b,crossAxis:0}:{mainAxis:(n=b.mainAxis)!=null?n:0,crossAxis:(o=b.crossAxis)!=null?o:0};if(d){const S=m==="y"?"height":"width",R=a.reference[m]-a.floating[S]+v.mainAxis,C=a.reference[m]+a.reference[S]-v.mainAxis;g<R?g=R:g>C&&(g=C)}if(p){var w,x;const S=m==="y"?"width":"height",R=ad.has(Pt(i)),C=a.reference[y]-a.floating[S]+(R&&((w=l.offset)==null?void 0:w[y])||0)+(R?0:v.crossAxis),k=a.reference[y]+a.reference[S]+(R?0:((x=l.offset)==null?void 0:x[y])||0)-(R?v.crossAxis:0);h<C?h=C:h>k&&(h=k)}return{[m]:g,[y]:h}}}},h1=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){const{placement:n,rects:o,platform:r,elements:s}=t,{apply:i=()=>{},...a}=xn(e,t),l=await r.detectOverflow(t,a),u=Pt(n),d=kn(n),p=Mt(n)==="y",{width:f,height:y}=o.floating;let m,g;u==="top"||u==="bottom"?(m=u,g=d===(await(r.isRTL==null?void 0:r.isRTL(s.floating))?"start":"end")?"left":"right"):(g=u,m=d==="end"?"top":"bottom");const h=y-l.top-l.bottom,b=f-l.left-l.right,v=co(y-l[m],h),w=co(f-l[g],b),x=t.middlewareData.shift,S=!x;let R=v,C=w;x!=null&&x.enabled.x&&(C=b),x!=null&&x.enabled.y&&(R=h),S&&!d&&(p?C=f-2*tn(l.left,l.right):R=y-2*tn(l.top,l.bottom)),await i({...t,availableWidth:C,availableHeight:R});const k=await r.getDimensions(s.floating);return f!==k.width||y!==k.height?{reset:{rects:!0}}:{}}}};function cd(e){const t=xt(e);let n=parseFloat(t.width)||0,o=parseFloat(t.height)||0;const r=Fe(e),s=r?e.offsetWidth:n,i=r?e.offsetHeight:o,a=lo(n)!==s||lo(o)!==i;return a&&(n=s,o=i),{width:n,height:o,$:a}}function ha(e){return Oe(e)?e:e.contextElement}function to(e){const t=ha(e);if(!Fe(t))return nn(1);const n=t.getBoundingClientRect(),{width:o,height:r,$:s}=cd(t);let i=(s?lo(n.width):n.width)/o,a=(s?lo(n.height):n.height)/r;return(!i||!Number.isFinite(i))&&(i=1),(!a||!Number.isFinite(a))&&(a=1),{x:i,y:a}}const g1=nn(0);function ld(e){const t=He(e);return!_i()||!t.visualViewport?g1:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function m1(e,t,n){return t===void 0&&(t=!1),!!n&&t&&n===He(e)}function _n(e,t,n,o){t===void 0&&(t=!1),n===void 0&&(n=!1);const r=e.getBoundingClientRect(),s=ha(e);let i=nn(1);t&&(o?Oe(o)&&(i=to(o)):i=to(e));const a=m1(s,n,o)?ld(s):nn(0);let l=(r.left+a.x)/i.x,u=(r.top+a.y)/i.y,d=r.width/i.x,p=r.height/i.y;if(s&&o){const f=He(s),y=Oe(o)?He(o):o;let m=f,g=Qs(m);for(;g&&y!==m;){const h=to(g),b=g.getBoundingClientRect(),v=xt(g),w=b.left+(g.clientLeft+parseFloat(v.paddingLeft))*h.x,x=b.top+(g.clientTop+parseFloat(v.paddingTop))*h.y;l*=h.x,u*=h.y,d*=h.x,p*=h.y,l+=w,u+=x,m=He(g),g=Qs(m)}}return Fo({width:d,height:p,x:l,y:u})}function cs(e,t){const n=qr(e).scrollLeft;return t?t.left+n:_n(an(e)).left+n}function ud(e,t){const n=e.getBoundingClientRect(),o=n.left+t.scrollLeft-cs(e,n),r=n.top+t.scrollTop;return{x:o,y:r}}function y1(e){let{elements:t,rect:n,offsetParent:o,strategy:r}=e;const s=r==="fixed",i=an(o),a=t?Gr(t.floating):!1;if(o===i||a&&s)return n;let l={scrollLeft:0,scrollTop:0},u=nn(1);const d=nn(0),p=Fe(o);if((p||!s)&&((ut(o)!=="body"||jo(i))&&(l=qr(o)),p)){const y=_n(o);u=to(o),d.x=y.x+o.clientLeft,d.y=y.y+o.clientTop}const f=i&&!p&&!s?ud(i,l):nn(0);return{width:n.width*u.x,height:n.height*u.y,x:n.x*u.x-l.scrollLeft*u.x+d.x+f.x,y:n.y*u.y-l.scrollTop*u.y+d.y+f.y}}function b1(e){return e.getClientRects?Array.from(e.getClientRects()):[]}function v1(e){const t=qr(e),n=e.ownerDocument.body,o=tn(e.scrollWidth,e.clientWidth,n.scrollWidth,n.clientWidth),r=tn(e.scrollHeight,e.clientHeight,n.scrollHeight,n.clientHeight);let s=-t.scrollLeft+cs(e);const i=-t.scrollTop;return xt(n).direction==="rtl"&&(s+=tn(e.clientWidth,n.clientWidth)-o),{width:o,height:r,x:s,y:i}}const x1=25;function w1(e,t,n){n===void 0&&(n="viewport");const o=n==="layoutViewport",r=He(e),s=an(e),i=r.visualViewport;let a=s.clientWidth,l=s.clientHeight,u=0,d=0;if(i){const f=!_i()||t==="fixed";o?f||(u=-i.offsetLeft,d=-i.offsetTop):(a=i.width,l=i.height,f&&(u=i.offsetLeft,d=i.offsetTop))}if(cs(s)<=0){const f=s.ownerDocument,y=f.body,m=getComputedStyle(y),g=f.compatMode==="CSS1Compat"&&parseFloat(m.marginLeft)+parseFloat(m.marginRight)||0,h=Math.abs(s.clientWidth-y.clientWidth-g),b=getComputedStyle(s).scrollbarGutter==="stable both-edges"?h/2:h;b<=x1&&(a-=b)}return{width:a,height:l,x:u,y:d}}function S1(e,t){const n=_n(e,!0,t==="fixed"),o=n.top+e.clientTop,r=n.left+e.clientLeft,s=to(e),i=e.clientWidth*s.x,a=e.clientHeight*s.y,l=r*s.x,u=o*s.y;return{width:i,height:a,x:l,y:u}}function jc(e,t,n){let o;if(t==="viewport"||t==="layoutViewport")o=w1(e,n,t);else if(t==="document")o=v1(an(e));else if(Oe(t))o=S1(t,n);else{const r=ld(e);o={x:t.x-r.x,y:t.y-r.y,width:t.width,height:t.height}}return Fo(o)}function R1(e,t){const n=t.get(e);if(n)return n;let o=_o(e,[],!1).filter(a=>Oe(a)&&ut(a)!=="body"),r=null;const s=xt(e).position==="fixed";let i=s?on(e):e;for(;Oe(i)&&!en(i);){const a=xt(i),l=Di(i),u=r?r.position:s?"fixed":"";!l&&(u==="fixed"||u==="absolute"&&a.position==="static")?o=o.filter(p=>p!==i):r=a,i=on(i)}return t.set(e,o),o}function k1(e){let{element:t,boundary:n,rootBoundary:o,strategy:r}=e;const i=[...n==="clippingAncestors"?Gr(t)?[]:R1(t,this._c):[].concat(n),o],a=jc(t,i[0],r);let l=a.top,u=a.right,d=a.bottom,p=a.left;for(let f=1;f<i.length;f++){const y=jc(t,i[f],r);l=tn(y.top,l),u=co(y.right,u),d=co(y.bottom,d),p=tn(y.left,p)}return{width:u-p,height:d-l,x:p,y:l}}function C1(e){const{width:t,height:n}=cd(e);return{width:t,height:n}}function E1(e,t,n){const o=Fe(t),r=an(t),s=n==="fixed",i=_n(e,!0,s,t);let a={scrollLeft:0,scrollTop:0};const l=nn(0);if((o||!s)&&((ut(t)!=="body"||jo(r))&&(a=qr(t)),o)){const f=_n(t,!0,s,t);l.x=f.x+t.clientLeft,l.y=f.y+t.clientTop}!o&&r&&(l.x=cs(r));const u=r&&!o&&!s?ud(r,a):nn(0),d=i.left+a.scrollLeft-l.x-u.x,p=i.top+a.scrollTop-l.y-u.y;return{x:d,y:p,width:i.width,height:i.height}}function Fs(e){return xt(e).position==="static"}function Bc(e,t){if(!Fe(e)||xt(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return an(e)===n&&(n=n.ownerDocument.body),n}function dd(e,t){const n=He(e);if(Gr(e))return n;if(!Fe(e)){let r=on(e);for(;r&&!en(r);){if(Oe(r)&&!Fs(r))return r;r=on(r)}return n}let o=Bc(e,t);for(;o&&Nm(o)&&Fs(o);)o=Bc(o,t);return o&&en(o)&&Fs(o)&&!Di(o)?n:o||Lm(e)||n}const M1=async function(e){const t=this.getOffsetParent||dd,n=this.getDimensions,o=await n(e.floating);return{reference:E1(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:o.width,height:o.height}}};function P1(e){return xt(e).direction==="rtl"}const fd={convertOffsetParentRelativeRectToViewportRelativeRect:y1,getDocumentElement:an,getClippingRect:k1,getOffsetParent:dd,getElementRects:M1,getClientRects:b1,getDimensions:C1,getScale:to,isElement:Oe,isRTL:P1};function pd(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function T1(e,t,n){let o=null,r;const s=an(e);function i(){var d;clearTimeout(r),(d=o)==null||d.disconnect(),o=null}function a(d,p){d===void 0&&(d=!1),p===void 0&&(p=1),i();const f=e.getBoundingClientRect(),{left:y,top:m,width:g,height:h}=f;if(d||t(),!g||!h)return;const b=or(m),v=or(s.clientWidth-(y+g)),w=or(s.clientHeight-(m+h)),x=or(y),R={rootMargin:-b+"px "+-v+"px "+-w+"px "+-x+"px",threshold:tn(0,co(1,p))||1};let C=!0;function k(P){const E=P[0].intersectionRatio;if(!pd(f,e.getBoundingClientRect()))return a();if(E!==p){if(!C)return a();E?a(!1,E):r=setTimeout(()=>{a(!1,1e-7)},1e3)}C=!1}try{o=new IntersectionObserver(k,{...R,root:s.ownerDocument})}catch{o=new IntersectionObserver(k,R)}o.observe(e)}const l=He(e),u=()=>a(n);return l.addEventListener("resize",u),a(!0),()=>{l.removeEventListener("resize",u),i()}}function Wc(e,t,n,o){o===void 0&&(o={});const{ancestorScroll:r=!0,ancestorResize:s=!0,elementResize:i=typeof ResizeObserver=="function",layoutShift:a=typeof IntersectionObserver=="function",animationFrame:l=!1}=o,u=ha(e),d=r||s?[...u?_o(u):[],...t?_o(t):[]]:[];d.forEach(b=>{r&&b.addEventListener("scroll",n),s&&b.addEventListener("resize",n)});const p=u&&a?T1(u,n,s):null;let f=-1,y=null;i&&(y=new ResizeObserver(b=>{let[v]=b;v&&v.target===u&&y&&t&&(y.unobserve(t),cancelAnimationFrame(f),f=requestAnimationFrame(()=>{var w;(w=y)==null||w.observe(t)})),n()}),u&&!l&&y.observe(u),t&&y.observe(t));let m,g=l?_n(e):null;l&&h();function h(){const b=_n(e);g&&!pd(g,b)&&n(),g=b,m=requestAnimationFrame(h)}return n(),()=>{var b;d.forEach(v=>{r&&v.removeEventListener("scroll",n),s&&v.removeEventListener("resize",n)}),p==null||p(),(b=y)==null||b.disconnect(),y=null,l&&cancelAnimationFrame(m)}}const I1=d1,O1=f1,A1=l1,N1=h1,D1=p1,_1=(e,t,n)=>{const o=new Map,r=n??{},s={...fd,...r.platform,_c:o};return c1(e,t,{...r,platform:s})};var L1=typeof document<"u",F1=function(){},Er=L1?c.useLayoutEffect:F1;function Hr(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let n,o,r;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(o=n;o--!==0;)if(!Hr(e[o],t[o]))return!1;return!0}if(r=Object.keys(e),n=r.length,n!==Object.keys(t).length)return!1;for(o=n;o--!==0;)if(!{}.hasOwnProperty.call(t,r[o]))return!1;for(o=n;o--!==0;){const s=r[o];if(!(s==="_owner"&&e.$$typeof)&&!Hr(e[s],t[s]))return!1}return!0}return e!==e&&t!==t}function hd(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function Uc(e,t){const n=hd(e);return Math.round(t*n)/n}function zs(e){const t=c.useRef(e);return Er(()=>{t.current=e}),t}function z1(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:o=[],platform:r,elements:{reference:s,floating:i}={},transform:a=!0,whileElementsMounted:l,open:u}=e,[d,p]=c.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[f,y]=c.useState(o);Hr(f,o)||y(o);const[m,g]=c.useState(null),[h,b]=c.useState(null),v=c.useCallback(A=>{A!==R.current&&(R.current=A,g(A))},[]),w=c.useCallback(A=>{A!==C.current&&(C.current=A,b(A))},[]),x=s||m,S=i||h,R=c.useRef(null),C=c.useRef(null),k=c.useRef(d),P=l!=null,E=zs(l),O=zs(r),I=zs(u),N=c.useCallback(()=>{if(!R.current||!C.current)return;const A={placement:t,strategy:n,middleware:f};O.current&&(A.platform=O.current),_1(R.current,C.current,A).then(F=>{const T={...F,isPositioned:I.current!==!1};D.current&&!Hr(k.current,T)&&(k.current=T,At.flushSync(()=>{p(T)}))})},[f,t,n,O,I]);Er(()=>{u===!1&&k.current.isPositioned&&(k.current.isPositioned=!1,p(A=>({...A,isPositioned:!1})))},[u]);const D=c.useRef(!1);Er(()=>(D.current=!0,()=>{D.current=!1}),[]),Er(()=>{if(x&&(R.current=x),S&&(C.current=S),x&&S){if(E.current)return E.current(x,S,N);N()}},[x,S,N,E,P]);const M=c.useMemo(()=>({reference:R,floating:C,setReference:v,setFloating:w}),[v,w]),z=c.useMemo(()=>({reference:x,floating:S}),[x,S]),_=c.useMemo(()=>{const A={position:n,left:0,top:0};if(!z.floating)return A;const F=Uc(z.floating,d.x),T=Uc(z.floating,d.y);return a?{...A,transform:"translate("+F+"px, "+T+"px)",...hd(z.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:F,top:T}},[n,a,z.floating,d.x,d.y]);return c.useMemo(()=>({...d,update:N,refs:M,elements:z,floatingStyles:_}),[d,N,M,z,_])}const V1=(e,t)=>{const n=I1(e);return{name:n.name,fn:n.fn,options:[e,t]}},$1=(e,t)=>{const n=O1(e);return{name:n.name,fn:n.fn,options:[e,t]}},H1=(e,t)=>({fn:D1(e).fn,options:[e,t]}),j1=(e,t)=>{const n=A1(e);return{name:n.name,fn:n.fn,options:[e,t]}},B1=(e,t)=>{const n=N1(e);return{name:n.name,fn:n.fn,options:[e,t]}};var Vs={exports:{}},$s={};/**
|
|
827
|
+
* @license React
|
|
828
|
+
* use-sync-external-store-shim.production.js
|
|
829
|
+
*
|
|
830
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
831
|
+
*
|
|
832
|
+
* This source code is licensed under the MIT license found in the
|
|
833
|
+
* LICENSE file in the root directory of this source tree.
|
|
834
|
+
*/var Gc;function W1(){if(Gc)return $s;Gc=1;var e=tu();function t(p,f){return p===f&&(p!==0||1/p===1/f)||p!==p&&f!==f}var n=typeof Object.is=="function"?Object.is:t,o=e.useState,r=e.useEffect,s=e.useLayoutEffect,i=e.useDebugValue;function a(p,f){var y=f(),m=o({inst:{value:y,getSnapshot:f}}),g=m[0].inst,h=m[1];return s(function(){g.value=y,g.getSnapshot=f,l(g)&&h({inst:g})},[p,y,f]),r(function(){return l(g)&&h({inst:g}),p(function(){l(g)&&h({inst:g})})},[p]),i(y),y}function l(p){var f=p.getSnapshot;p=p.value;try{var y=f();return!n(p,y)}catch{return!0}}function u(p,f){return f()}var d=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?u:a;return $s.useSyncExternalStore=e.useSyncExternalStore!==void 0?e.useSyncExternalStore:d,$s}var qc;function gd(){return qc||(qc=1,Vs.exports=W1()),Vs.exports}var ls=gd(),Hs={exports:{}},js={};/**
|
|
835
|
+
* @license React
|
|
836
|
+
* use-sync-external-store-shim/with-selector.production.js
|
|
837
|
+
*
|
|
838
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
839
|
+
*
|
|
840
|
+
* This source code is licensed under the MIT license found in the
|
|
841
|
+
* LICENSE file in the root directory of this source tree.
|
|
842
|
+
*/var Yc;function U1(){if(Yc)return js;Yc=1;var e=tu(),t=gd();function n(u,d){return u===d&&(u!==0||1/u===1/d)||u!==u&&d!==d}var o=typeof Object.is=="function"?Object.is:n,r=t.useSyncExternalStore,s=e.useRef,i=e.useEffect,a=e.useMemo,l=e.useDebugValue;return js.useSyncExternalStoreWithSelector=function(u,d,p,f,y){var m=s(null);if(m.current===null){var g={hasValue:!1,value:null};m.current=g}else g=m.current;m=a(function(){function b(R){if(!v){if(v=!0,w=R,R=f(R),y!==void 0&&g.hasValue){var C=g.value;if(y(C,R))return x=C}return x=R}if(C=x,o(w,R))return C;var k=f(R);return y!==void 0&&y(C,k)?(w=R,C):(w=R,x=k)}var v=!1,w,x,S=p===void 0?null:p;return[function(){return b(d())},S===null?void 0:function(){return b(S())}]},[d,p,f,y]);var h=r(u,m[0],m[1]);return i(function(){g.hasValue=!0,g.value=h},[h]),l(h),h},js}var Xc;function G1(){return Xc||(Xc=1,Hs.exports=U1()),Hs.exports}var q1=G1();const li=[];let ui;function Y1(){return ui}function X1(e){li.push(e)}function ga(e){const t=(n,o)=>{const r=at(K1).current;let s;try{ui=r;for(const i of li)i.before(r);s=e(n,o);for(const i of li)i.after(r);r.didInitialize=!0}finally{ui=void 0}return s};return t.displayName=e.displayName||e.name,t}function md(e){return c.forwardRef(ga(e))}function K1(){return{didInitialize:!1}}const Z1=Vi(19),Q1=Z1?eb:tb;function Ce(e,t,n,o,r){return Q1(e,t,n,o,r)}function J1(e,t,n,o,r){const s=c.useCallback(()=>t(e.getSnapshot(),n,o,r),[e,t,n,o,r]);return ls.useSyncExternalStore(e.subscribe,s,s)}X1({before(e){e.syncIndex=0,e.didInitialize||(e.syncTick=1,e.syncHooks=[],e.didChangeStore=!0,e.getSnapshot=()=>{let t=!1;for(let n=0;n<e.syncHooks.length;n+=1){const o=e.syncHooks[n],r=o.selector(o.store.state,o.a1,o.a2,o.a3);Object.is(o.value,r)||(t=!0,o.value=r)}return t&&(e.syncTick+=1),e.syncTick})},after(e){e.syncHooks.length>0&&(e.didChangeStore&&(e.didChangeStore=!1,e.subscribe=t=>{const n=new Set;for(const r of e.syncHooks)n.add(r.store);const o=[];for(const r of n)o.push(r.subscribe(t));return()=>{for(const r of o)r()}}),ls.useSyncExternalStore(e.subscribe,e.getSnapshot,e.getSnapshot))}});function eb(e,t,n,o,r){const s=Y1();if(!s)return J1(e,t,n,o,r);const i=s.syncIndex;s.syncIndex+=1;let a;return s.didInitialize?(a=s.syncHooks[i],(a.store!==e||a.selector!==t||!Object.is(a.a1,n)||!Object.is(a.a2,o)||!Object.is(a.a3,r))&&(a.store!==e&&(s.didChangeStore=!0),a.store=e,a.selector=t,a.a1=n,a.a2=o,a.a3=r,a.value=t(e.getSnapshot(),n,o,r))):(a={store:e,selector:t,a1:n,a2:o,a3:r,value:t(e.getSnapshot(),n,o,r)},s.syncHooks.push(a)),a.value}function tb(e,t,n,o,r){return q1.useSyncExternalStoreWithSelector(e.subscribe,e.getSnapshot,e.getSnapshot,s=>t(s,n,o,r))}class nb{constructor(t){Ne(this,"subscribe",t=>(this.listeners.add(t),()=>{this.listeners.delete(t)}));Ne(this,"getSnapshot",()=>this.state);this.state=t,this.listeners=new Set,this.updateTick=0}setState(t){if(this.state===t)return;this.state=t,this.updateTick+=1;const n=this.updateTick;for(const o of this.listeners){if(n!==this.updateTick)return;o(t)}}update(t){for(const n in t)if(!Object.is(this.state[n],t[n])){this.setState({...this.state,...t});return}}set(t,n){Object.is(this.state[t],n)||this.setState({...this.state,[t]:n})}notifyAll(){const t={...this.state};this.setState(t)}use(t,n,o,r){return Ce(this,t,n,o,r)}}class Uo extends nb{constructor(t,n={},o){super(t),this.context=n,this.selectors=o}useSyncedValue(t,n){c.useDebugValue(t);const o=this;oe(()=>{o.state[t]!==n&&o.set(t,n)},[o,t,n])}useSyncedValueWithCleanup(t,n){const o=this;oe(()=>(o.state[t]!==n&&o.set(t,n),()=>{o.set(t,void 0)}),[o,t,n])}useSyncedValues(t){const n=this,o=Object.values(t);oe(()=>{n.update(t)},[n,...o])}useControlledProp(t,n){c.useDebugValue(t);const o=this,r=n!==void 0;oe(()=>{r&&!Object.is(o.state[t],n)&&o.setState({...o.state,[t]:n})},[o,t,n,r])}select(t,n,o,r){const s=this.selectors[t];return s(this.state,n,o,r)}useState(t,n,o,r){return c.useDebugValue(t),Ce(this,this.selectors[t],n,o,r)}useContextCallback(t,n){c.useDebugValue(t);const o=le(n??Ke);this.context[t]=o}useStateSetter(t){const n=c.useRef(void 0);return n.current===void 0&&(n.current=o=>{this.set(t,o)}),n.current}observe(t,n){let o;typeof t=="function"?o=t:o=this.selectors[t];let r=o(this.state);return n(r,r,this),this.subscribe(s=>{const i=o(s);if(!Object.is(r,i)){const a=r;r=i,n(i,a,this)}})}}function ob(){const[,e]=c.useState({});return c.useCallback(()=>{e({})},[])}const rb={open:e=>e.open,transitionStatus:e=>e.transitionStatus,domReferenceElement:e=>e.domReferenceElement,referenceElement:e=>e.positionReference??e.referenceElement,floatingElement:e=>e.floatingElement,floatingId:e=>e.floatingId};class us extends Uo{constructor(n){const{syncOnly:o,nested:r,onOpenChange:s,triggerElements:i,...a}=n;super({...a,positionReference:a.referenceElement,domReferenceElement:a.referenceElement},{onOpenChange:s,dataRef:{current:{}},events:od(),nested:r,triggerElements:i},rb);Ne(this,"syncOpenEvent",(n,o)=>{(!n||!this.state.open||o!=null&&by(o))&&(this.context.dataRef.current.openEvent=n?o:void 0)});Ne(this,"dispatchOpenChange",(n,o)=>{this.syncOpenEvent(n,o.event);const r={open:n,reason:o.reason,nativeEvent:o.event,nested:this.context.nested,triggerElement:o.trigger};this.context.events.emit("openchange",r)});Ne(this,"setOpen",(n,o)=>{var r,s,i,a;if(this.syncOnly){(s=(r=this.context).onOpenChange)==null||s.call(r,n,o);return}this.dispatchOpenChange(n,o),(a=(i=this.context).onOpenChange)==null||a.call(i,n,o)});this.syncOnly=o}}function yd(e){const{popupStore:t,treatPopupAsFloatingElement:n=!1,floatingRootContext:o,floatingId:r,nested:s,onOpenChange:i}=e,a=t.useState("open"),l=t.useState("activeTriggerElement"),u=t.useState(n?"popupElement":"positionerElement"),d=t.context.triggerElements,p=i,f=c.useRef(null);o===void 0&&f.current===null&&(f.current=new us({open:a,transitionStatus:void 0,referenceElement:l,floatingElement:u,triggerElements:d,onOpenChange:p,floatingId:r,syncOnly:!0,nested:s}));const y=o??f.current;return t.useSyncedValue("floatingId",r),oe(()=>{const m={open:a,floatingId:r,referenceElement:l,floatingElement:u};Oe(l)&&(m.domReferenceElement=l),y.state.positionReference===y.state.referenceElement&&(m.positionReference=l),y.update(m)},[a,r,l,u,y]),y.context.onOpenChange=p,y.context.nested=s,y}const ds={tabIndex:-1,[oi]:""};function sb(e){return t=>t==="touch"?e.current:!0}function bd(e,t=!1){const n=bn(),o=Cn()!=null,r=at(()=>e(n,o)).current;return yd({popupStore:r,treatPopupAsFloatingElement:t,floatingRootContext:r.state.floatingRootContext,floatingId:n,nested:o,onOpenChange:r.setOpen}),r}function ma({handle:e,store:t}){return oe(()=>e.attachStore(t),[e,t]),null}function ib(e,t){const n=c.useRef(null),o=c.useRef(null);return c.useCallback(r=>{if(e===void 0)return;let s=!1;if(n.current!==null){const i=n.current,a=o.current,l=t.context.triggerElements.getById(i);a&&l===a&&(t.context.triggerElements.delete(i),s=!0),n.current=null,o.current=null}if(r!==null&&(n.current=e,o.current=r,t.context.triggerElements.add(e,r),s=!0),s){const i=t.context.triggerElements.size;t.select("open")&&t.state.triggerCount!==i&&t.set("triggerCount",i)}},[t,e])}function ya(e,t,n,o=!1){t?e.preventUnmountingOnClose=!1:o&&(e.preventUnmountingOnClose=!0);const r=(n==null?void 0:n.id)??null;(r||t)&&(e.activeTriggerId=r,e.activeTriggerElement=n??null)}function vd(e){let t=!1;return e.preventUnmountOnClose=()=>{t=!0},()=>t}function ab(e,t,n,o={}){var d,p,f;const r=n.reason,s=r===rt,i=t&&r===Jn,a=!t&&(r===Rn||r===Jr),l=vd(n);if((p=(d=e.context).onOpenChange)==null||p.call(d,t,n),n.isCanceled)return;(f=o.onBeforeDispatch)==null||f.call(o),e.state.floatingRootContext.dispatchOpenChange(t,n);const u=()=>{const y={...o.extraState,open:t};i?y.instantType="focus":a?y.instantType="dismiss":s&&(y.instantType=void 0),ya(y,t,n.trigger,l()),e.update(y)};s?At.flushSync(u):u()}function ba(e,t,n,o){const r=n.useState("isMountedByTrigger",e),s=ib(e,n),i=le(l=>{const u=n.select("open"),d=n.select("activeTriggerId");if(d===e){n.update({activeTriggerElement:l,...u?o:null});return}d==null&&u&&n.update({activeTriggerId:e,activeTriggerElement:l,...o})}),a=c.useCallback(l=>{s(l),l&&i(l)},[s,i]);return oe(()=>{r&&n.update({activeTriggerElement:t.current,...o})},[r,n,t,...Object.values(o)]),{registerTrigger:a,isMountedByThisTrigger:r}}function va(e,t={}){const{closeOnActiveTriggerUnmount:n=!1}=t,o=c.useRef(null),r=e.useState("open"),s=e.useState("triggerCount"),i=e.useState("activeTriggerId"),a=e.useState("activeTriggerElement");oe(()=>{if(!r){o.current=null,e.state.triggerCount!==0&&e.set("triggerCount",0);return}const l=e.context.triggerElements.size,u={};e.state.triggerCount!==l&&(u.triggerCount=l);const d=e.select("activeTriggerId");let p=null;if(d){const f=e.context.triggerElements.getById(d);if(f)o.current=d,f!==e.state.activeTriggerElement&&(u.activeTriggerElement=f);else{for(const[y,m]of e.context.triggerElements.entries())if(m===e.state.activeTriggerElement){u.activeTriggerId=y,u.activeTriggerElement=m,o.current=y;break}u.activeTriggerId===void 0&&(o.current===d?p=d:o.current=null)}}else o.current=null;if(!p&&!d&&l===1){const f=e.context.triggerElements.entries().next();if(!f.done){const[y,m]=f.value;u.activeTriggerId=y,u.activeTriggerElement=m,o.current=y}}(u.triggerCount!==void 0||u.activeTriggerId!==void 0||u.activeTriggerElement!==void 0)&&e.update(u),p&&n&&queueMicrotask(()=>{if(e.select("open")&&e.select("activeTriggerId")===p&&!e.context.triggerElements.getById(p)){const f=ke(Rt);e.setOpen(!1,f),f.isCanceled||e.update({activeTriggerId:null,activeTriggerElement:null})}})},[r,e,s,i,a,n])}function xa(e,t,n){const{mounted:o,setMounted:r,transitionStatus:s}=ln(e),i=t.useState("preventUnmountingOnClose"),a=e?!1:i;t.useSyncedValues({mounted:o,transitionStatus:s,preventUnmountingOnClose:a});const l=le(()=>{var u,d;r(!1),t.update({activeTriggerId:null,activeTriggerElement:null,mounted:!1,preventUnmountingOnClose:!1}),n==null||n(),(d=(u=t.context).onOpenChangeComplete)==null||d.call(u,!1)});return kt({enabled:o&&!e&&!a,open:e,ref:t.context.popupRef,onComplete(){e||l()}}),{forceUnmount:l,transitionStatus:s}}function wa(e,t){e.useSyncedValues(t),oe(()=>()=>{e.update({activeTriggerProps:We,inactiveTriggerProps:We,popupProps:We})},[e])}function cb(e,t){oe(()=>{!t&&e.state.openMethod!==null&&e.set("openMethod",null)},[t,e]),oe(()=>()=>{e.state.openMethod!==null&&e.set("openMethod",null)},[e])}class Go{constructor(){this.idMap=new Map}add(t,n){this.idMap.set(t,n)}delete(t){this.idMap.delete(t)}hasElement(t){for(const n of this.idMap.values())if(n===t)return!0;return!1}hasMatchingElement(t){for(const n of this.idMap.values())if(t(n))return!0;return!1}getById(t){return this.idMap.get(t)}entries(){return this.idMap.entries()}elements(){return this.idMap.values()}get size(){return this.idMap.size}}function lb(){return new us({open:!1,transitionStatus:void 0,floatingElement:null,referenceElement:null,triggerElements:new Go,floatingId:void 0,syncOnly:!1,nested:!1,onOpenChange:void 0})}function Sa(){return{open:!1,openProp:void 0,mounted:!1,transitionStatus:void 0,floatingRootContext:lb(),floatingId:void 0,triggerCount:0,preventUnmountingOnClose:!1,payload:void 0,activeTriggerId:null,activeTriggerElement:null,triggerIdProp:void 0,popupElement:null,positionerElement:null,activeTriggerProps:We,inactiveTriggerProps:We,popupProps:We}}function xd(e,t,n=!1){return new us({open:!1,transitionStatus:void 0,floatingElement:null,referenceElement:null,triggerElements:e,floatingId:t,syncOnly:!0,nested:n,onOpenChange:void 0})}const No=e=>e.triggerIdProp??e.activeTriggerId,Ra=e=>e.openProp??e.open,Kc=e=>{var n;return(((n=e.popupElement)==null?void 0:n.id)??e.floatingId)||void 0};function wd(e,t){return t!==void 0&&Ra(e)&&No(e)===t}function ub(e,t){return wd(e,t)?!0:t!==void 0&&Ra(e)&&No(e)==null&&e.triggerCount===1}const ka={open:Ra,mounted:e=>e.mounted,transitionStatus:e=>e.transitionStatus,floatingRootContext:e=>e.floatingRootContext,triggerCount:e=>e.triggerCount,preventUnmountingOnClose:e=>e.preventUnmountingOnClose,payload:e=>e.payload,activeTriggerId:No,activeTriggerElement:e=>e.mounted?e.activeTriggerElement:null,popupId:Kc,isTriggerActive:(e,t)=>t!==void 0&&No(e)===t,isOpenedByTrigger:(e,t)=>wd(e,t),isMountedByTrigger:(e,t)=>t!==void 0&&No(e)===t&&e.mounted,triggerProps:(e,t)=>t?e.activeTriggerProps:e.inactiveTriggerProps,triggerPopupId:(e,t)=>ub(e,t)?Kc(e):void 0,popupProps:e=>e.popupProps,popupElement:e=>e.popupElement,positionerElement:e=>e.positionerElement};function Ca(e){const t=c.useCallback(o=>e===void 0?Ke:e.subscribeStore(o),[e]),n=c.useCallback(()=>e===void 0?void 0:e.store,[e]);return ls.useSyncExternalStore(t,n,()=>e==null?void 0:e.serverStore)}function db(e){const{open:t=!1,onOpenChange:n,elements:o={}}=e,r=bn(),s=Cn()!=null,i=at(()=>new us({open:t,transitionStatus:void 0,onOpenChange:n,referenceElement:o.reference??null,floatingElement:o.floating??null,triggerElements:new Go,floatingId:r,syncOnly:!1,nested:s})).current;return oe(()=>{const a={open:t,floatingId:r};o.reference!==void 0&&(a.referenceElement=o.reference,a.domReferenceElement=Oe(o.reference)?o.reference:null),o.floating!==void 0&&(a.floatingElement=o.floating),i.update(a)},[t,r,o.reference,o.floating,i]),i.context.onOpenChange=n,i.context.nested=s,i}function fb(e){return pb(e,e.rootContext)}function pb(e,t){const{nodeId:n,externalTree:o}=e,r=t.useState("referenceElement"),s=t.useState("floatingElement"),i=t.useState("domReferenceElement"),a=t.useState("open"),l=t.useState("floatingId"),[u,d]=c.useState(null),[p,f]=c.useState(void 0),[y,m]=c.useState(void 0),g=c.useRef(null),h=En(o),b=c.useMemo(()=>({reference:r,floating:s,domReference:i}),[r,s,i]),v=z1({...e,elements:{...b,...u&&{reference:u}}}),w=Oe(p)?p:null,x=y===void 0?t.state.floatingElement:y;t.useSyncedValue("referenceElement",p??null),t.useSyncedValue("domReferenceElement",p===void 0?i:w),t.useSyncedValue("floatingElement",x);const S=c.useCallback(O=>{const I=Oe(O)?{getBoundingClientRect:()=>O.getBoundingClientRect(),getClientRects:()=>O.getClientRects(),contextElement:O}:O;d(I),v.refs.setReference(I)},[v.refs]),R=c.useCallback(O=>{(Oe(O)||O===null)&&(g.current=O,f(O)),(Oe(v.refs.reference.current)||v.refs.reference.current===null||O!==null&&!Oe(O))&&v.refs.setReference(O)},[v.refs,f]),C=c.useCallback(O=>{m(O),v.refs.setFloating(O)},[v.refs]),k=c.useMemo(()=>({...v.refs,setReference:R,setFloating:C,setPositionReference:S,domReference:g}),[v.refs,R,C,S]),P=c.useMemo(()=>({...v.elements,domReference:i}),[v.elements,i]),E=c.useMemo(()=>({...v,dataRef:t.context.dataRef,open:a,onOpenChange:t.setOpen,events:t.context.events,floatingId:l,refs:k,elements:P,nodeId:n,rootStore:t}),[v,k,P,n,t,a,l]);return oe(()=>{i&&(g.current=i)},[i]),oe(()=>{t.context.dataRef.current.floatingContext=E;const O=h==null?void 0:h.nodesRef.current.find(I=>I.id===n);O&&(O.context=E)}),c.useMemo(()=>({...v,context:E,refs:k,elements:P,rootStore:t}),[v,k,P,E,t])}const Bs=qi&&qt;function Sd(e,t={}){const{enabled:n=!0,delay:o}=t,r="rootStore"in e?e.rootStore:e,{events:s,dataRef:i}=r.context,a=c.useRef(!1),l=c.useRef(null),u=c.useRef(!0),d=Ge();c.useEffect(()=>{const f=r.select("domReferenceElement");if(!n)return;const y=He(f);function m(){const b=r.select("domReferenceElement");!r.select("open")&&Fe(b)&&b===dt(Te(b))&&(a.current=!0)}function g(){u.current=!0}function h(){u.current=!1}return Ut(Pe(y,"blur",m),Bs&&Pe(y,"keydown",g,!0),Bs&&Pe(y,"pointerdown",h,!0))},[r,n]),c.useEffect(()=>{if(!n)return;function f(y){if(y.reason===Rn||y.reason===Jr){const m=r.select("domReferenceElement");Oe(m)&&(l.current=m,a.current=!0)}}return s.on("openchange",f),()=>{s.off("openchange",f)}},[s,n,r]);const p=c.useMemo(()=>{function f(){a.current=!1,l.current=null}return{onMouseLeave(){f()},onFocus(y){const m=y.currentTarget;if(a.current){if(l.current===m)return;f()}const g=et(y.nativeEvent);if(Oe(g)){if(Bs&&!y.relatedTarget){if(!u.current&&!ss(g))return}else if(!wy(g))return}const h=Fr(y.relatedTarget,r.context.triggerElements),{nativeEvent:b,currentTarget:v}=y,w=typeof o=="function"?o():o;if(r.select("open")&&h||w===0||w===void 0){r.setOpen(!0,ke(Jn,b,v));return}d.start(w,()=>{a.current||r.setOpen(!0,ke(Jn,b,v))})},onBlur(y){f();const m=y.relatedTarget,g=y.nativeEvent,h=Oe(m)&&m.hasAttribute(zo("focus-guard"))&&m.getAttribute("data-type")==="outside";d.start(0,()=>{var x;const b=r.select("domReferenceElement"),v=dt(Te(b));!m&&v===b||ve((x=i.current.floatingContext)==null?void 0:x.refs.floating.current,v)||ve(b,v)||h||Fr(m??v,r.context.triggerElements)||r.setOpen(!1,ke(Jn,g))})}}},[i,o,r,d]);return c.useMemo(()=>n?{reference:p,trigger:p}:{},[n,p])}class Ea{constructor(){Ne(this,"dispose",()=>{this.openChangeTimeout.clear(),this.restTimeout.clear()});Ne(this,"disposeEffect",()=>this.dispose);this.pointerType=void 0,this.interactedInside=!1,this.handler=void 0,this.blockMouseMove=!0,this.performedPointerEventsMutation=!1,this.pointerEventsScopeElement=null,this.pointerEventsReferenceElement=null,this.pointerEventsFloatingElement=null,this.restTimeoutPending=!1,this.openChangeTimeout=new Lt,this.restTimeout=new Lt,this.handleCloseOptions=void 0}static create(){return new Ea}}const jr=new WeakMap;function Br(e){var n,o,r;if(!e.performedPointerEventsMutation)return;const t=e.pointerEventsScopeElement;t&&jr.get(t)===e&&((n=e.pointerEventsScopeElement)==null||n.style.removeProperty("pointer-events"),(o=e.pointerEventsReferenceElement)==null||o.style.removeProperty("pointer-events"),(r=e.pointerEventsFloatingElement)==null||r.style.removeProperty("pointer-events"),jr.delete(t)),e.performedPointerEventsMutation=!1,e.pointerEventsScopeElement=null,e.pointerEventsReferenceElement=null,e.pointerEventsFloatingElement=null}function Rd(e,t){const{scopeElement:n,referenceElement:o,floatingElement:r}=t,s=jr.get(n);s&&s!==e&&Br(s),Br(e),e.performedPointerEventsMutation=!0,e.pointerEventsScopeElement=n,e.pointerEventsReferenceElement=o,e.pointerEventsFloatingElement=r,jr.set(n,e),n.style.pointerEvents="none",o.style.pointerEvents="auto",r.style.pointerEvents="auto"}function Ma(e){const t=e.context.dataRef.current,n=at(()=>t.hoverInteractionState??Ea.create()).current;return t.hoverInteractionState||(t.hoverInteractionState=n),Zi(t.hoverInteractionState.disposeEffect),t.hoverInteractionState}function kd(e,t={}){const{enabled:n=!0,closeDelay:o=0,nodeId:r}=t,s="rootStore"in e?e.rootStore:e,i=s.useState("open"),a=s.useState("floatingElement"),l=s.useState("domReferenceElement"),{dataRef:u}=s.context,d=En(),p=Cn(),f=Ma(s),y=Ge(),m=le(()=>{var b;return _u((b=u.current.openEvent)==null?void 0:b.type,f.interactedInside)}),g=le(()=>{var b;return Ry((b=u.current.openEvent)==null?void 0:b.type)}),h=le(()=>{Br(f)});oe(()=>{i||(f.pointerType=void 0,f.restTimeoutPending=!1,f.interactedInside=!1,h())},[i,f,h]),c.useEffect(()=>h,[h]),oe(()=>{var b,v,w,x,S;if(n&&i&&(b=f.handleCloseOptions)!=null&&b.blockPointerEvents&&g()&&Oe(l)&&a){const R=l,C=a,k=Te(a),P=(w=(v=d==null?void 0:d.nodesRef.current.find(N=>N.id===p))==null?void 0:v.context)==null?void 0:w.elements.floating;P&&(P.style.pointerEvents="");const E=f.pointerEventsScopeElement!==C?f.pointerEventsScopeElement:null,O=P!==C?P:null,I=((S=(x=f.handleCloseOptions)==null?void 0:x.getScope)==null?void 0:S.call(x))??E??O??R.closest("[data-rootownerid]")??k.body;return Rd(f,{scopeElement:I,referenceElement:R,floatingElement:C}),()=>{h()}}},[n,i,l,a,f,g,d,p,h]),c.useEffect(()=>{if(!n)return;function b(){return!!(d&&p&&wn(d.nodesRef.current,p).length>0)}function v(k){const P=vn(o,"close",f.pointerType),E=()=>{s.setOpen(!1,ke(rt,k)),d==null||d.events.emit("floating.closed",k)};P?f.openChangeTimeout.start(P,E):(f.openChangeTimeout.clear(),E())}function w(k){const P=et(k);if(!xy(P)){f.interactedInside=!1;return}f.interactedInside=(P==null?void 0:P.closest("[aria-haspopup]"))!=null}function x(){f.openChangeTimeout.clear(),y.clear(),d==null||d.events.off("floating.closed",R),h()}function S(k){var I;if(b()&&d){d.events.on("floating.closed",R);return}if(Fr(k.relatedTarget,s.context.triggerElements))return;const P=((I=u.current.floatingContext)==null?void 0:I.nodeId)??r,E=k.relatedTarget;if(!(d&&P&&Oe(E)&&wn(d.nodesRef.current,P,!1).some(N=>{var D;return ve((D=N.context)==null?void 0:D.elements.floating,E)}))){if(f.handler){f.handler(k);return}h(),g()&&!m()&&v(k)}}function R(k){!d||!p||b()||y.start(0,()=>{d.events.off("floating.closed",R),s.setOpen(!1,ke(rt,k)),d.events.emit("floating.closed",k)})}const C=a;return Ut(C&&Pe(C,"mouseenter",x),C&&Pe(C,"mouseleave",S),C&&Pe(C,"pointerdown",w,!0),()=>{d==null||d.events.off("floating.closed",R)})},[n,a,s,u,o,r,g,m,h,f,d,p,y])}const hb={current:null};function Cd(e,t={}){var z;const{enabled:n=!0,delay:o=0,handleClose:r=null,mouseOnly:s=!1,restMs:i=0,move:a=!0,triggerElementRef:l=hb,externalTree:u,isActiveTrigger:d=!0,getHandleCloseContext:p,isClosing:f,shouldOpen:y,guardStaleOpen:m=!1}=t,g="rootStore"in e?e.rootStore:e,{dataRef:h,events:b}=g.context,v=En(u),w=Ma(g),x=c.useRef(!1),S=Ze(r),R=Ze(o),C=Ze(i),k=Ze(n),P=Ze(y),E=Ze(f),O=le(()=>{var _;return _u((_=h.current.openEvent)==null?void 0:_.type,w.interactedInside)}),I=le(()=>{var _;return((_=P.current)==null?void 0:_.call(P))!==!1}),N=le((_,A,F)=>{const T=g.context.triggerElements;if(T.hasElement(A))return!_||!ve(_,A);if(!Oe(F))return!1;const L=F;return T.hasMatchingElement(j=>ve(j,L))&&(!_||!ve(_,L))}),D=le(()=>{if(!w.handler)return;Te(g.select("domReferenceElement")).removeEventListener("mousemove",w.handler),w.handler=void 0}),M=le(()=>{Br(w)});return d&&(w.handleCloseOptions=(z=S.current)==null?void 0:z.__options),c.useEffect(()=>D,[D]),c.useEffect(()=>{if(!n)return;function _(A){A.open?x.current=!1:(x.current=A.reason===rt,D(),w.openChangeTimeout.clear(),w.restTimeout.clear(),w.blockMouseMove=!0,w.restTimeoutPending=!1)}return b.on("openchange",_),()=>{b.off("openchange",_)}},[n,b,w,D]),c.useEffect(()=>{if(!n)return;function _($,U=!0){const q=vn(R.current,"close",w.pointerType);q?w.openChangeTimeout.start(q,()=>{g.setOpen(!1,ke(rt,$)),v==null||v.events.emit("floating.closed",$)}):U&&(w.openChangeTimeout.clear(),g.setOpen(!1,ke(rt,$)),v==null||v.events.emit("floating.closed",$))}const A=l.current??(d?g.select("domReferenceElement"):null);if(!Oe(A))return;function F($){var he;if(w.openChangeTimeout.clear(),w.blockMouseMove=!1,s&&!mn(w.pointerType))return;const U=Ec(C.current),q=vn(R.current,"open",w.pointerType),V=et($),Q=$.currentTarget??null,H=g.select("domReferenceElement");let G=Q;if(Oe(V)&&!g.context.triggerElements.hasElement(V)){for(const re of g.context.triggerElements.elements())if(ve(re,V)){G=re;break}}Oe(Q)&&Oe(H)&&!g.context.triggerElements.hasElement(Q)&&ve(Q,H)&&(G=H);const ue=G==null?!1:N(H,G,V),ne=g.select("open"),te=((he=E.current)==null?void 0:he.call(E))??g.select("transitionStatus")==="ending",J=!ne&&te&&x.current,ee=!ue&&Oe(G)&&Oe(H)&&ve(H,G)&&J,ie=U>0&&!q,xe=ue&&(ne||J)||ee,ae=!ne||ue;if(xe){I()&&g.setOpen(!0,ke(rt,$,G));return}ie||(q?w.openChangeTimeout.start(q,()=>{ae&&I()&&g.setOpen(!0,ke(rt,$,G))}):ae&&I()&&g.setOpen(!0,ke(rt,$,G)))}function T($){if(O()){M();return}D();const U=g.select("domReferenceElement"),q=Te(U);w.restTimeout.clear(),w.restTimeoutPending=!1;const V=h.current.floatingContext??(p==null?void 0:p());if(Fr($.relatedTarget,g.context.triggerElements))return;if(S.current&&V){g.select("open")||w.openChangeTimeout.clear();const H=l.current;w.handler=S.current({...V,tree:v,x:$.clientX,y:$.clientY,onClose(){M(),D(),k.current&&!O()&&H===g.select("domReferenceElement")&&_($,!0)}}),q.addEventListener("mousemove",w.handler),w.handler($);return}(w.pointerType==="touch"?!ve(g.select("floatingElement"),$.relatedTarget):!0)&&_($)}function L($){ve(A,$.relatedTarget)||(w.openChangeTimeout.clear(),w.restTimeout.clear(),w.restTimeoutPending=!1)}const j=m?Pe(A,"mouseout",L):void 0;return a?Ut(Pe(A,"mousemove",F,{once:!0}),Pe(A,"mouseenter",F),Pe(A,"mouseleave",T),j):Ut(Pe(A,"mouseenter",F),Pe(A,"mouseleave",T),j)},[D,M,h,R,g,n,S,w,d,N,O,s,a,C,l,v,k,p,E,I,m]),c.useMemo(()=>{if(!n)return;function _(A){w.pointerType=A.pointerType}return{onPointerDown:_,onPointerEnter:_,onMouseMove(A){var V,Q,H;const{nativeEvent:F}=A,T=A.currentTarget,L=g.select("domReferenceElement"),j=g.select("open"),$=N(L,T,A.target);if(s&&!mn(w.pointerType))return;if(j&&$&&((V=w.handleCloseOptions)!=null&&V.blockPointerEvents)){const G=g.select("floatingElement");if(G){const ue=((H=(Q=w.handleCloseOptions)==null?void 0:Q.getScope)==null?void 0:H.call(Q))??T.ownerDocument.body;Rd(w,{scopeElement:ue,referenceElement:T,floatingElement:G})}}const U=Ec(C.current);if(j&&!$||U===0||!$&&w.restTimeoutPending&&A.movementX**2+A.movementY**2<2)return;w.restTimeout.clear();function q(){if(w.restTimeoutPending=!1,O())return;const G=g.select("open");!w.blockMouseMove&&(!G||$)&&I()&&g.setOpen(!0,ke(rt,F,T))}w.pointerType==="touch"?At.flushSync(()=>{q()}):$&&j?q():(w.restTimeoutPending=!0,w.restTimeout.start(U,q))}}},[n,w,O,N,s,g,C,I])}const gb="Escape";function Zc(e){return qt&&e.movementX===0&&e.movementY===0}function fs(e,t,n){switch(e){case"vertical":return t;case"horizontal":return n;default:return t||n}}function sr(e,t){return fs(t,e===Du||e===na,e===os||e===rs)}function Ws(e,t,n){return fs(t,e===na,n?e===os:e===rs)||e==="Enter"||e===" "||e===""}function mb(e,t,n){return fs(t,n?e===os:e===rs,e===na)}function yb(e,t,n,o){const r=n?e===rs:e===os,s=e===Du;return t==="both"||t==="horizontal"&&o?e===gb:fs(t,r,s)}function Ed(e,t){const{listRef:n,activeIndex:o,onNavigate:r=()=>{},enabled:s=!0,selectedIndex:i=null,allowEscape:a=!1,loopFocus:l=!1,nested:u=!1,rtl:d=!1,virtual:p=!1,focusItemOnOpen:f="auto",focusItemOnHover:y=!0,openOnArrowKeyDown:m=!0,disabledIndices:g=void 0,orientation:h="vertical",parentOrientation:b,id:v,resetOnPointerLeave:w=!0,externalTree:x,grid:S}=t,R=S!=null,C="rootStore"in e?e.rootStore:e,k=C.useState("open"),P=C.useState("floatingElement"),E=C.useState("domReferenceElement"),O=C.context.dataRef,I=zr(P),N=ri(E),D=Ze(I),M=Cn(),z=En(x),_=c.useRef(f),A=c.useRef(i??-1),F=c.useRef(null),T=c.useRef(!0),L=le(W=>{r(A.current===-1?null:A.current,W)}),j=c.useRef(!!P),$=c.useRef(k),U=c.useRef(!1),q=c.useRef(!1),V=c.useRef(null),Q=Ze(g),H=Ze(k),G=Ze(i),ue=Ze(w),ne=io(),te=io(),J=le(()=>{function W(X){p?z==null||z.events.emit("virtualfocus",X):V.current=Cr(X,{sync:U.current,preventScroll:!0})}const Y=n.current[A.current],se=q.current;Y&&W(Y),(U.current?X=>X():X=>ne.request(X))(()=>{var be;const X=n.current[A.current]||Y;if(!X)return;Y||W(X),re&&(se||!T.current)&&((be=X.scrollIntoView)==null||be.call(X,{block:"nearest",inline:"nearest"}))})});oe(()=>{O.current.orientation=h},[O,h]),oe(()=>{s&&(k&&P?(A.current=i??-1,_.current&&i!=null&&(q.current=!0,L())):j.current&&(A.current=-1,L()))},[s,k,P,i,L]),oe(()=>{if(s){if(!k){U.current=!1;return}if(P)if(o==null){if(U.current=!1,G.current!=null)return;if(j.current&&(A.current=-1,J()),(!$.current||!j.current)&&_.current&&(F.current!=null||_.current===!0&&F.current==null)){let W=0;const Y=()=>{n.current[0]==null?(W<2&&(W?Z=>te.request(Z):queueMicrotask)(Y),W+=1):(A.current=F.current==null||Ws(F.current,h,d)||u?kr(n):ii(n),F.current=null,L())};Y()}}else Ao(n.current,o)||(A.current=o,J(),q.current=!1)}},[s,k,P,o,G,u,n,h,d,L,J,te]),oe(()=>{var X,pe;if(!s||P||!z||p||!j.current)return;const W=z.nodesRef.current,Y=(pe=(X=W.find(be=>be.id===M))==null?void 0:X.context)==null?void 0:pe.elements.floating,se=dt(Te(E??Y??null)),Z=W.some(be=>be.context&&ve(be.context.elements.floating,se));Y&&!Z&&T.current&&Y.focus({preventScroll:!0})},[s,P,E,z,M,p]),oe(()=>{$.current=k,j.current=!!P}),oe(()=>{k||(F.current=null,_.current=f)},[k,f]);const ee=o!=null,ie=le(W=>{if(!H.current)return;const Y=n.current.indexOf(W.currentTarget);Y!==-1&&(A.current!==Y||o!==Y)&&(A.current=Y,L(W))}),xe=le(()=>{var W,Y,se;return b??((se=(Y=(W=z==null?void 0:z.nodesRef.current.find(Z=>Z.id===M))==null?void 0:W.context)==null?void 0:Y.dataRef)==null?void 0:se.current.orientation)}),ae=le(()=>kr(n,Q.current)),he=le(W=>{if(T.current=!1,U.current=!0,W.which===229||!H.current&&W.currentTarget===D.current)return;if(u&&yb(W.key,h,d,R)){sr(W.key,xe())||It(W),C.setOpen(!1,ke(ti,W.nativeEvent)),Fe(E)&&(p?z==null||z.events.emit("virtualfocus",E):E.focus());return}const Y=A.current,se=kr(n,g),Z=ii(n,g);if(N||(W.key==="Home"&&(It(W),A.current=se,L(W)),W.key==="End"&&(It(W),A.current=Z,L(W))),S!=null){const X=S(W,A.current,n,h,l,d,g,se,Z);if(X!=null&&(A.current=X,L(W)),h==="both")return}if(sr(W.key,h)){if(It(W),k&&!p&&dt(W.currentTarget.ownerDocument)===W.currentTarget){A.current=Ws(W.key,h,d)?se:Z,L(W);return}Ws(W.key,h,d)?l?Y>=Z?a&&Y!==n.current.length?A.current=-1:(U.current=!1,A.current=se):A.current=Jt(n.current,{startingIndex:Y,disabledIndices:g}):A.current=Math.min(Z,Jt(n.current,{startingIndex:Y,disabledIndices:g})):l?Y<=se?a&&Y!==-1?A.current=n.current.length:(U.current=!1,A.current=Z):A.current=Jt(n.current,{startingIndex:Y,decrement:!0,disabledIndices:g}):A.current=Math.max(se,Jt(n.current,{startingIndex:Y,decrement:!0,disabledIndices:g})),Ao(n.current,A.current)&&(A.current=-1),L(W)}}),re=c.useMemo(()=>({onFocus(Y){U.current=!0,ie(Y)},onClick:({currentTarget:Y})=>Y.focus({preventScroll:!0}),onMouseMove(Y){Zc(Y)||(U.current=!0,q.current=!1,y&&ie(Y))},onPointerLeave(Y){var Z;if(!H.current||!T.current||Y.pointerType==="touch")return;U.current=!0;const se=Y.relatedTarget;if(!(!y||n.current.includes(se))&&ue.current&&((Z=V.current)==null||Z.call(V),V.current=null,A.current=-1,L(Y),!p)){const X=D.current,pe=dt(Te(X));X&&ve(X,pe)&&X.focus({preventScroll:!0})}}}),[ie,H,D,y,n,L,ue,p]),ge=c.useMemo(()=>p&&k&&ee&&{"aria-activedescendant":`${v}-${o}`},[p,k,ee,v,o]),de=c.useMemo(()=>({"aria-orientation":h==="both"?void 0:h,...N?{}:ge,onKeyDown(W){if(W.key==="Tab"&&W.shiftKey&&k&&!p){const Y=et(W.nativeEvent);if(Y&&!ve(D.current,Y))return;It(W),C.setOpen(!1,ke(Dn,W.nativeEvent)),Fe(E)&&E.focus();return}he(W)},onPointerMove(W){Zc(W)||(T.current=!0)}}),[ge,he,D,h,N,C,k,p,E]),ce=c.useMemo(()=>{function W(Z){C.setOpen(!0,ke(ti,Z.nativeEvent,Z.currentTarget))}function Y(Z){f==="auto"&&ea(Z.nativeEvent)&&(_.current=!p)}function se(Z){_.current=f,f==="auto"&&ta(Z.nativeEvent)&&(_.current=!0)}return{onKeyDown(Z){const X=C.select("open");T.current=!1;const pe=Z.key.startsWith("Arrow"),be=mb(Z.key,xe(),d),_e=sr(Z.key,h),Ue=(u?be:_e)||Z.key==="Enter"||Z.key.trim()==="";if(p&&X)return he(Z);if(!(!X&&!m&&pe)){if(Ue){const Ye=sr(Z.key,xe());F.current=u&&Ye?null:Z.key}if(u){be&&(It(Z),X?(A.current=ae(),L(Z)):W(Z));return}_e&&(G.current!=null&&(A.current=G.current),It(Z),!X&&m?W(Z):he(Z),X&&L(Z))}},onFocus(Z){C.select("open")&&!p&&(A.current=-1,L(Z))},onPointerDown:se,onPointerEnter:se,onMouseDown:Y,onClick:Y}},[he,f,ae,u,L,C,m,h,xe,d,G,p]),fe=c.useMemo(()=>({...ge,...ce}),[ge,ce]);return c.useMemo(()=>s?{reference:fe,floating:de,item:re,trigger:ce}:{},[s,fe,de,ce,re])}function Md(e,t){const{listRef:n,elementsRef:o,activeIndex:r,onMatch:s,disabledIndices:i,onTyping:a,enabled:l=!0,resetMs:u=750,selectedIndex:d=null}=t,p="rootStore"in e?e.rootStore:e,f=p.useState("open"),y=Ge(),m=c.useRef(""),g=c.useRef(d??r??-1),h=c.useRef(null),b=le(x=>{function S(D){return o==null?void 0:o.current[D]}function R(D){const M=S(D);return M&&!is(M)||M!=null&&M.matches(":disabled")?!1:i==null||!$r(Dt,D,i)}function C(D,M,z=0){if(D.length===0)return-1;const _=(z%D.length+D.length)%D.length,A=M.toLowerCase();for(let F=0;F<D.length;F+=1){const T=(_+F)%D.length,L=D[T];if(!(!(L!=null&&L.toLowerCase().startsWith(A))||!R(T)))return T}return-1}const k=n.current;if(m.current.length>0&&x.key===" "&&(It(x),a==null||a(!0)),m.current.length>0&&m.current[0]!==" "&&C(k,m.current)===-1&&x.key!==" "&&(a==null||a(!1)),k==null||x.key.length!==1||x.ctrlKey||x.metaKey||x.altKey)return;f&&x.key!==" "&&(It(x),a==null||a(!0));const P=m.current==="";P&&(g.current=d??r??-1),k.every((D,M)=>{var z,_;return D&&R(M)?((z=D[0])==null?void 0:z.toLowerCase())!==((_=D[1])==null?void 0:_.toLowerCase()):!0})&&m.current===x.key&&(m.current="",g.current=h.current),m.current+=x.key,y.start(u,()=>{m.current="",g.current=h.current,a==null||a(!1)});const I=((P?d??r??-1:g.current)??0)+1,N=C(k,m.current,I);N!==-1?(s==null||s(N),h.current=N):x.key!==" "&&(m.current="",a==null||a(!1))}),v=le(x=>{const S=x.relatedTarget,R=p.select("domReferenceElement"),C=p.select("floatingElement");ve(R,S)||ve(C,S)||(y.clear(),m.current="",g.current=h.current,a==null||a(!1))});oe(()=>{!f&&d!==null||(y.clear(),h.current=null,m.current!==""&&(m.current=""))},[f,d,y]);const w=c.useMemo(()=>({onKeyDown:b,onBlur:v}),[b,v]);return c.useMemo(()=>l?{reference:w,floating:w}:{},[l,w])}const Qc=.1,bb=Qc*Qc,Ve=.5;function ir(e,t,n,o,r,s){return o>=t!=s>=t&&e<=(r-n)*(t-o)/(s-o)+n}function ar(e,t,n,o,r,s,i,a,l,u){let d=!1;return ir(e,t,n,o,r,s)&&(d=!d),ir(e,t,r,s,i,a)&&(d=!d),ir(e,t,i,a,l,u)&&(d=!d),ir(e,t,l,u,n,o)&&(d=!d),d}function vb(e,t,n){return e>=n.x&&e<=n.x+n.width&&t>=n.y&&t<=n.y+n.height}function cr(e,t,n,o,r,s){const i=Math.min(n,r),a=Math.max(n,r),l=Math.min(o,s),u=Math.max(o,s);return e>=i&&e<=a&&t>=l&&t<=u}function Pd(e={}){const{blockPointerEvents:t=!1}=e,n=new Lt,o=({x:r,y:s,placement:i,elements:a,onClose:l,nodeId:u,tree:d})=>{const p=i==null?void 0:i.split("-")[0];let f=!1,y=null,m=null,g=typeof performance<"u"?performance.now():0;function h(v,w){const x=performance.now(),S=x-g;if(y===null||m===null||S===0)return y=v,m=w,g=x,!1;const R=v-y,C=w-m,k=R*R+C*C,P=S*S*bb;return y=v,m=w,g=x,k<P}function b(){n.clear(),l()}return function(w){n.clear();const x=a.domReference,S=a.floating;if(!x||!S||p==null||r==null||s==null)return;const{clientX:R,clientY:C}=w,k=et(w),P=w.type==="mouseleave",E=ve(S,k),O=ve(x,k);if(E&&(f=!0,!P))return;if(O&&(f=!1,!P)){f=!0;return}if(P&&Oe(w.relatedTarget)&&ve(S,w.relatedTarget))return;function I(){return!!(d&&wn(d.nodesRef.current,u).length>0)}function N(){I()||b()}if(I())return;const D=x.getBoundingClientRect(),M=S.getBoundingClientRect(),z=r>M.right-M.width/2,_=s>M.bottom-M.height/2,A=M.width>D.width,F=M.height>D.height,T=(A?D:M).left,L=(A?D:M).right,j=(F?D:M).top,$=(F?D:M).bottom;if(p==="top"&&s>=D.bottom-1||p==="bottom"&&s<=D.top+1||p==="left"&&r>=D.right-1||p==="right"&&r<=D.left+1){N();return}let U=!1;switch(p){case"top":U=cr(R,C,T,D.top+1,L,M.bottom-1);break;case"bottom":U=cr(R,C,T,M.top+1,L,D.bottom-1);break;case"left":U=cr(R,C,M.right-1,$,D.left+1,j);break;case"right":U=cr(R,C,D.right-1,$,M.left+1,j);break}if(U)return;if(f&&!vb(R,C,D)){N();return}if(!P&&h(R,C)){N();return}let q=!1;switch(p){case"top":{const V=A?Ve/2:Ve*4,Q=A||z?r+V:r-V,H=A?r-V:z?r+V:r-V,G=s+Ve+1,ue=z||A?M.bottom-Ve:M.top,ne=z?A?M.bottom-Ve:M.top:M.bottom-Ve;q=ar(R,C,Q,G,H,G,M.left,ue,M.right,ne);break}case"bottom":{const V=A?Ve/2:Ve*4,Q=A||z?r+V:r-V,H=A?r-V:z?r+V:r-V,G=s-Ve,ue=z||A?M.top+Ve:M.bottom,ne=z?A?M.top+Ve:M.bottom:M.top+Ve;q=ar(R,C,Q,G,H,G,M.left,ue,M.right,ne);break}case"left":{const V=F?Ve/2:Ve*4,Q=F||_?s+V:s-V,H=F?s-V:_?s+V:s-V,G=r+Ve+1,ue=_||F?M.right-Ve:M.left,ne=_?F?M.right-Ve:M.left:M.right-Ve;q=ar(R,C,ue,M.top,ne,M.bottom,G,Q,G,H);break}case"right":{const V=F?Ve/2:Ve*4,Q=F||_?s+V:s-V,H=F?s-V:_?s+V:s-V,G=r-Ve,ue=_||F?M.left+Ve:M.right,ne=_?F?M.left+Ve:M.right:M.left+Ve;q=ar(R,C,G,Q,G,H,ue,M.top,ne,M.bottom);break}}q?f||n.start(40,N):N()}};return o.__options={...e,blockPointerEvents:t},o}const xb=c.createContext(void 0);function Pa(e){return c.useContext(xb)}const di="ArrowUp",fi="ArrowDown",pi="ArrowLeft",hi="ArrowRight",gi="Home",mi="End",ps=new Set([di,fi,pi,hi,gi,mi]),wb="Shift",Sb=[wb,"Control","Alt","Meta"];function Rb(e){return Fe(e)&&e.tagName==="INPUT"}function Jc(e){return!!(Rb(e)&&e.selectionStart!=null||Fe(e)&&e.tagName==="TEXTAREA")}function el(e,t,n,o){if(!e||!t||!t.scrollTo)return;let r=e.scrollLeft,s=e.scrollTop;const i=e.clientWidth<e.scrollWidth,a=e.clientHeight<e.scrollHeight;if(i&&o!=="vertical"){const l=tl(e,t,"left"),u=lr(e),d=lr(t);n==="ltr"&&(l+t.offsetWidth+d.scrollMarginRight>e.scrollLeft+e.clientWidth-u.scrollPaddingRight?r=l+t.offsetWidth+d.scrollMarginRight-e.clientWidth+u.scrollPaddingRight:l-d.scrollMarginLeft<e.scrollLeft+u.scrollPaddingLeft&&(r=l-d.scrollMarginLeft-u.scrollPaddingLeft)),n==="rtl"&&(l-d.scrollMarginLeft<e.scrollLeft+u.scrollPaddingLeft?r=l-d.scrollMarginLeft-u.scrollPaddingLeft:l+t.offsetWidth+d.scrollMarginRight>e.scrollLeft+e.clientWidth-u.scrollPaddingRight&&(r=l+t.offsetWidth+d.scrollMarginRight-e.clientWidth+u.scrollPaddingRight))}if(a&&o!=="horizontal"){const l=tl(e,t,"top"),u=lr(e),d=lr(t);l-d.scrollMarginTop<e.scrollTop+u.scrollPaddingTop?s=l-d.scrollMarginTop-u.scrollPaddingTop:l+t.offsetHeight+d.scrollMarginBottom>e.scrollTop+e.clientHeight-u.scrollPaddingBottom&&(s=l+t.offsetHeight+d.scrollMarginBottom-e.clientHeight+u.scrollPaddingBottom)}e.scrollTo({left:r,top:s,behavior:"auto"})}function tl(e,t,n){const o=n==="left"?"offsetLeft":"offsetTop";let r=0;for(;t.offsetParent&&(r+=t[o],t.offsetParent!==e);)t=t.offsetParent;return r}function lr(e){const t=getComputedStyle(e);return{scrollMarginTop:parseFloat(t.scrollMarginTop)||0,scrollMarginRight:parseFloat(t.scrollMarginRight)||0,scrollMarginBottom:parseFloat(t.scrollMarginBottom)||0,scrollMarginLeft:parseFloat(t.scrollMarginLeft)||0,scrollPaddingTop:parseFloat(t.scrollPaddingTop)||0,scrollPaddingRight:parseFloat(t.scrollPaddingRight)||0,scrollPaddingBottom:parseFloat(t.scrollPaddingBottom)||0,scrollPaddingLeft:parseFloat(t.scrollPaddingLeft)||0}}function hs(e){return e==="starting"?Xy:We}const aC=c.forwardRef(function(t,n){const{render:o,className:r,style:s,finalFocus:i,...a}=t,{store:l}=cn(),{side:u,align:d}=Xr(),p=Pa()!=null,f=l.useState("open"),y=l.useState("transitionStatus"),m=l.useState("popupProps"),g=l.useState("mounted"),h=l.useState("instantType"),b=l.useState("activeTriggerElement"),v=l.useState("parent"),w=l.useState("lastOpenChangeReason"),x=l.useState("rootId"),S=l.useState("floatingRootContext"),R=l.useState("floatingTreeRoot"),C=l.useState("closeDelay"),k=l.useState("hoverEnabled"),P=l.useState("disabled"),E=l.useState("openMethod"),O=v.type==="context-menu";kt({open:f,ref:l.context.popupRef,onComplete(){var z,_;f&&((_=(z=l.context).onOpenChangeComplete)==null||_.call(z,!0))}}),c.useEffect(()=>{function z(_){l.setOpen(!1,ke(_.reason,_.domEvent))}return R.events.on("close",z),()=>{R.events.off("close",z)}},[R.events,l]),kd(S,{enabled:k&&!P&&!O&&v.type!=="menubar",closeDelay:C});const I=l.useStateSetter("popupElement"),N={transitionStatus:y,side:u,align:d,open:f,nested:v.type==="menu",instant:h},D=Se("div",t,{state:N,ref:[n,l.context.popupRef,I],stateAttributesMapping:Wi,props:[m,{onKeyDown(z){p&&ps.has(z.key)&&z.stopPropagation()}},hs(y),a,{"data-rootownerid":x}]});let M=v.type===void 0||O;return(b||v.type==="menubar"&&w!==Qr)&&(M=!0),K.jsx(fa,{context:S,openInteractionType:E,modal:O,disabled:!g,returnFocus:i===void 0?M:i,initialFocus:v.type!=="menu",restoreFocus:!0,externalTree:v.type!=="menubar"?R:void 0,previousFocusableElement:b,nextFocusableElement:v.type===void 0?l.context.triggerFocusTargetRef:void 0,beforeContentFocusGuardRef:v.type===void 0?l.context.beforeContentFocusGuardRef:void 0,children:D})}),Td=c.createContext(void 0);function kb(){const e=c.useContext(Td);if(e===void 0)throw new Error(De(32));return e}const cC=c.forwardRef(function(t,n){const{keepMounted:o=!1,...r}=t,{store:s}=cn();return s.useState("mounted")||o?K.jsx(Td.Provider,{value:o,children:K.jsx(la,{ref:n,...r})}):null});function gs(e){return Vi(19)?e:e?"true":void 0}const Cb=c.createContext(void 0);function bo(){const e=c.useContext(Cb);return(e==null?void 0:e.direction)??"ltr"}const Eb=e=>({name:"arrow",options:e,async fn(t){var F,T;const{x:n,y:o,placement:r,rects:s,platform:i,elements:a,middlewareData:l}=t,{element:u,padding:d=0,offsetParent:p="real"}=xn(e,t)||{};if(u==null)return{};const f=Vu(d),y={x:n,y:o},m=ia(r),g=sa(m),h=await i.getDimensions(u),b=m==="y",v=b?"top":"left",w=b?"bottom":"right",x=b?"clientHeight":"clientWidth",S=s.reference[g]+s.reference[m]-y[m]-s.floating[g],R=y[m]-s.reference[m],C=p==="real"?await((F=i.getOffsetParent)==null?void 0:F.call(i,u)):a.floating;let k=a.floating[x]||s.floating[g];(!k||!await((T=i.isElement)==null?void 0:T.call(i,C)))&&(k=a.floating[x]||s.floating[g]);const P=S/2-R/2,E=k/2-h[g]/2-1,O=Math.min(f[v],E),I=Math.min(f[w],E),N=O,D=k-h[g]-I,M=k/2-h[g]/2+P,z=zu(N,M,D),_=!l.arrow&&kn(r)!=null&&M!==z&&s.reference[g]/2-(M<N?O:I)-h[g]/2<0,A=_?M<N?M-N:M-D:0;return{[m]:y[m]+A,data:{[m]:z,centerOffset:M-z-A,..._&&{alignmentOffset:A}},reset:_}}}),Mb=(e,t)=>({...Eb(e),options:[e,t]}),Pb={name:"hide",async fn(e){const{width:t,height:n,x:o,y:r}=e.rects.reference,s=t===0&&n===0&&o===0&&r===0,i=await e.platform.detectOverflow(e,{elementContext:"reference"});return{data:{referenceHidden:i.top-n>=0||i.right-t>=0||i.bottom-n>=0||i.left-t>=0||s}}}},Tb={sideX:"left",sideY:"top"},nl="--available-width",ol="--available-height";function Id(e,t,n){const o=e==="inline-start"||e==="inline-end";return{top:"top",right:o?n?"inline-start":"inline-end":"right",bottom:"bottom",left:o?n?"inline-end":"inline-start":"left"}[t]}function rl(e,t,n){const{rects:o,placement:r}=e;return{side:Id(t,Pt(r),n),align:kn(r)||"center",anchor:{width:o.reference.width,height:o.reference.height},positioner:{width:o.floating.width,height:o.floating.height}}}function Ta(e){return Ib(e,fb)}function Ib(e,t){var Xe,pt;const{anchor:n,positionMethod:o="absolute",side:r="bottom",sideOffset:s=0,align:i="center",alignOffset:a=0,collisionBoundary:l,collisionPadding:u=5,sticky:d=!1,arrowPadding:p=5,disableAnchorTracking:f=!1,inline:y,keepMounted:m=!1,floatingRootContext:g,mounted:h,collisionAvoidance:b,shift:v,nodeId:w,adaptiveOrigin:x,lazyFlip:S=!1,externalTree:R}=e,[C,k]=c.useState(null);!h&&C!==null&&k(null);const P=b.side||"flip",E=b.align||"flip",O=b.fallbackAxisSide||"end",I=(v==null?void 0:v.crossAxis)??!1,N=v==null?void 0:v.rootBoundary,D=typeof n=="function"?n:void 0,M=le(D),z=D?M:n,_=Ze(n),A=Ze(h),T=bo()==="rtl",L=C||{top:"top",right:"right",bottom:"bottom",left:"left","inline-end":T?"left":"right","inline-start":T?"right":"left"}[r],j=i==="center"?L:`${L}-${i}`;let $=u;typeof $=="number"?$={top:$,right:$,bottom:$,left:$}:$&&($={top:$.top||0,right:$.right||0,bottom:$.bottom||0,left:$.left||0});const U=1,q=r==="bottom"?U:0,V=r==="top"?U:0,Q=r==="right"?U:0,H=r==="left"?U:0,G={boundary:l==="clipping-ancestors"?"clippingAncestors":l,padding:$},ue=c.useRef(null),ne=Ze(s),te=Ze(a),J=typeof s!="function"?s:0,ee=typeof a!="function"?a:0,ie=[];y&&ie.push(y),ie.push(V1(we=>{const Ae=rl(we,r,T),Qe=typeof ne.current=="function"?ne.current(Ae):ne.current,nt=typeof te.current=="function"?te.current(Ae):te.current;return{mainAxis:Qe,crossAxis:nt,alignmentAxis:nt}},[J,ee,T,r]));const xe=E==="none"&&P!=="shift",ae=!xe&&(d||I||P==="shift"),he=P==="none"?null:j1({...G,padding:{top:$.top+U+q,right:$.right+U+H,bottom:$.bottom+U+V,left:$.left+U+Q},mainAxis:!I&&P==="flip",crossAxis:E==="flip"?"alignment":!1,fallbackAxisSideDirection:O}),re=xe?null:$1({...G,rootBoundary:N,mainAxis:E!=="none",crossAxis:ae,limiter:d||I?void 0:H1(we=>{if(!ue.current)return{};const{width:Ae,height:Qe}=ue.current.getBoundingClientRect(),nt=Mt(Pt(we.placement)),yt=nt==="y"?Ae:Qe,bt=nt==="y"?$.left+$.right:$.top+$.bottom;return{offset:yt/2+bt/2}})},[G,d,I,N,$,E]);P==="shift"||E==="shift"||i==="center"?ie.push(re,he):ie.push(he,re),ie.push(B1({...G,apply({elements:{floating:we},availableWidth:Ae,availableHeight:Qe,rects:nt}){if(!A.current)return;const yt=we.style;yt.setProperty(nl,`${Ae}px`),yt.setProperty(ol,`${Qe}px`);const bt=He(we).devicePixelRatio||1,{x:Xt,y:lt,width:ht,height:Me}=nt.reference,ze=(Math.round((Xt+ht)*bt)-Math.round(Xt*bt))/bt,wt=(Math.round((lt+Me)*bt)-Math.round(lt*bt))/bt;yt.setProperty("--anchor-width",`${ze}px`),yt.setProperty("--anchor-height",`${wt}px`)}}),Mb(we=>({element:ue.current||Te(we.elements.floating).createElement("div"),padding:p,offsetParent:"floating"}),[p]),{name:"transformOrigin",fn(we){var nc,oc,rc;const{elements:Ae,middlewareData:Qe,placement:nt,rects:yt,y:bt}=we,Xt=Pt(nt),lt=Mt(Xt),ht=ue.current,Me=((nc=Qe.arrow)==null?void 0:nc.x)||0,ze=((oc=Qe.arrow)==null?void 0:oc.y)||0,wt=(ht==null?void 0:ht.clientWidth)||0,zt=(ht==null?void 0:ht.clientHeight)||0,Ct=Me+wt/2,Vt=ze+zt/2,Zo=Math.abs(((rc=Qe.shift)==null?void 0:rc.y)||0),So=yt.reference.height/2,Pn=typeof s=="function"?s(rl(we,r,T)):s,Qo=Zo>Pn,Tp={top:`${Ct}px calc(100% + ${Pn}px)`,bottom:`${Ct}px ${-Pn}px`,left:`calc(100% + ${Pn}px) ${Vt}px`,right:`${-Pn}px ${Vt}px`}[Xt],Ip=`${Ct}px ${yt.reference.y+So-bt}px`;return Ae.floating.style.setProperty("--transform-origin",ae&<==="y"&&Qo?Ip:Tp),{}}},Pb,x),oe(()=>{!h&&g&&g.update({referenceElement:null,floatingElement:null,domReferenceElement:null,positionReference:null})},[h,g]);const ge=c.useMemo(()=>({elementResize:!f&&typeof ResizeObserver<"u",layoutShift:!f&&typeof IntersectionObserver<"u"}),[f]),{refs:de,elements:ce,x:fe,y:W,middlewareData:Y,update:se,placement:Z,context:X,isPositioned:pe,floatingStyles:be}=t({rootContext:g,open:m?h:void 0,placement:j,middleware:ie,strategy:o,whileElementsMounted:m?void 0:(...we)=>Wc(...we,ge),nodeId:w,externalTree:R}),{sideX:_e,sideY:Ue}=Y.adaptiveOrigin||Tb,Ye=pe?o:"fixed",st=c.useMemo(()=>{let we;return pe?x?we={position:Ye,[_e]:fe,[Ue]:W}:we={...be,position:Ye}:we={position:Ye,top:0,left:0},we[nl]="100vw",we[ol]="100vh",pe||(we.opacity=0),we},[x,Ye,_e,fe,Ue,W,be,pe]),Le=c.useRef(null);oe(()=>{if(!h)return;const we=_.current,Ae=typeof we=="function"?we():we,nt=(sl(Ae)?Ae.current:Ae)||null||null;nt!==Le.current&&(de.setPositionReference(nt),Le.current=nt)},[h,de,z,_]),c.useEffect(()=>{if(!h)return;const we=_.current;typeof we!="function"&&sl(we)&&we.current!==Le.current&&(de.setPositionReference(we.current),Le.current=we.current)},[h,de,z,_]),c.useEffect(()=>{if(m&&h&&ce.reference&&ce.floating)return Wc(ce.reference,ce.floating,se,ge)},[m,h,ce,se,ge]);const Je=Pt(Z),ct=Id(r,Je,T),Re=kn(Z)||"center",je=!!((Xe=Y.hide)!=null&&Xe.referenceHidden);oe(()=>{S&&h&&pe&&Je!==L&&k(Je)},[S,h,pe,Je,L]);const qe=c.useMemo(()=>{var we,Ae;return{position:"absolute",top:(we=Y.arrow)==null?void 0:we.y,left:(Ae=Y.arrow)==null?void 0:Ae.x}},[Y.arrow]),Be=((pt=Y.arrow)==null?void 0:pt.centerOffset)!==0;return c.useMemo(()=>({positionerStyles:st,arrowStyles:qe,arrowRef:ue,arrowUncentered:Be,side:ct,align:Re,physicalSide:Je,anchorHidden:je,refs:de,context:X,isPositioned:pe,update:se}),[st,qe,ue,Be,ct,Re,Je,je,de,X,pe,se])}function sl(e){return e!=null&&"current"in e}function ms(e){const{children:t,elementsRef:n,labelsRef:o,onMapChange:r}=e,s=le(r),[,i]=c.useState(!1),a=at(Ab).current,l=at(Ob).current,u=c.useRef(0),d=c.useRef(!0),p=c.useRef([]),f=c.useRef(null),y=le(()=>{d.current||(d.current=!0,i(S=>!S))}),m=le((S,R)=>{l.set(S,R),y()}),g=le(S=>{l.delete(S),y()}),h=le(S=>{const R=new Map;return n.current.length=0,o&&(o.current.length=0),S.forEach(C=>{var k,P;R.set(C.element,{...C.registration.metadata??{},index:C.index}),n.current[C.index]=C.element,o&&(o.current[C.index]=C.registration.label!==void 0?C.registration.label:((P=(k=C.registration.textRef)==null?void 0:k.current)==null?void 0:P.textContent)??C.element.textContent)}),u.current=n.current.length,R});function b(S){var k;if((k=f.current)==null||k.disconnect(),f.current=null,typeof MutationObserver!="function"||S.length<2)return;const R=new MutationObserver(P=>{if(!_b(P))return;let E=null;for(const O of S)if(O.isConnected){if(E&&Od(E,O)>0){R.disconnect(),y();return}E=O}});f.current=R;const C=new Set;for(let P=1;P<S.length;P+=1){const E=Db(S[P-1],S[P]);E&&C.add(E)}C.forEach(P=>R.observe(P,{childList:!0}))}const v=le(()=>{const[S,R]=Nb(l),C=h(S);b(R),p.current=S,d.current=!1,a.forEach(k=>k(C)),s(C)});oe(()=>(d.current||h(p.current),()=>{n.current=[],o&&(o.current=[])}),[n,o,h]),oe(()=>{d.current&&v()}),oe(()=>()=>{var S;(S=f.current)==null||S.disconnect(),d.current=!0},[]);const w=le(S=>(a.add(S),()=>{a.delete(S)})),x=c.useMemo(()=>({register:m,unregister:g,subscribeMapChange:w,nextIndexRef:u}),[m,g,w,u]);return K.jsx(Au.Provider,{value:x,children:t})}function Ob(){return new Map}function Ab(){return new Set}function Nb(e){const t=new Set,n=[],o=[];e.forEach((s,i)=>{if(!i.isConnected)return;const a=s.index,l={index:a??-1,element:i,registration:s};a===null?o.push(l):a>=0&&(t.add(a),n.push(l))});let r=0;return o.sort((s,i)=>Od(s.element,i.element)),o.forEach(s=>{for(;t.has(r);)r+=1;s.index=r,n.push(s),r+=1}),t.size>0&&n.sort((s,i)=>s.index-i.index),[n,o.map(s=>s.element)]}function Db(e,t){let n=e.parentElement;for(;n&&!n.contains(t);)n=n.parentElement;return n}function _b(e){for(const t of e)for(let n=0;n<t.removedNodes.length;n+=1)if(t.removedNodes[n].isConnected)return!0;return!1}function Od(e,t){return e.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_FOLLOWING?-1:1}const Ia=c.forwardRef(function(t,n){const{cutout:o,...r}=t;let s;if(o){const i=o.getBoundingClientRect();s=`polygon(0% 0%,100% 0%,100% 100%,0% 100%,0% 0%,${i.left}px ${i.top}px,${i.left}px ${i.bottom}px,${i.right}px ${i.bottom}px,${i.right}px ${i.top}px,${i.left}px ${i.top}px)`}return K.jsx("div",{ref:n,role:"presentation","data-base-ui-inert":"",...r,style:{position:"fixed",inset:0,userSelect:"none",WebkitUserSelect:"none",clipPath:s}})});function Oa(e,t,{styles:n,transitionStatus:o,props:r,refs:s,hidden:i,inert:a=!1}){const l={...n};return a&&(l.pointerEvents="none"),Se("div",e,{state:t,ref:s,props:[{role:"presentation",hidden:i,style:l},hs(o),r],stateAttributesMapping:Kr})}let il={},al={},cl="";function ys(e,t){return jo(e)?e:t}function ll(e,t,n){return/hidden|clip/.test(e.getComputedStyle(ys(t,n)).overflowY)}function Lb(e){if(typeof document>"u")return!1;const t=Te(e);return He(t).innerWidth-t.documentElement.clientWidth>0}function Fb(e){if(!(typeof CSS<"u"&&CSS.supports&&CSS.supports("scrollbar-gutter","stable"))||typeof document>"u")return!1;const n=Te(e),o=n.documentElement,r=n.body,s=ys(o,r),i=s.style.overflowY,a=o.style.scrollbarGutter;o.style.scrollbarGutter="stable",s.style.overflowY="scroll";const l=s.offsetWidth;s.style.overflowY="hidden";const u=s.offsetWidth;return s.style.overflowY=i,o.style.scrollbarGutter=a,l===u}function zb(e){const t=Te(e),n=t.documentElement,o=t.body,r=ys(n,o),s={overflowY:r.style.overflowY,overflowX:r.style.overflowX};return Object.assign(r.style,{overflowY:"hidden",overflowX:"hidden"}),()=>{Object.assign(r.style,s)}}function Vb(e){var y;const t=Te(e),n=t.documentElement,o=t.body,r=He(n);let s=0,i=0,a=!1;const l=vt.create();if(qt&&(((y=r.visualViewport)==null?void 0:y.scale)??1)!==1)return()=>{};function u(){const m=r.getComputedStyle(n),g=r.getComputedStyle(o),v=(m.scrollbarGutter||"").includes("both-edges")?"stable both-edges":"stable";s=n.scrollTop,i=n.scrollLeft,il={scrollbarGutter:n.style.scrollbarGutter,overflowY:n.style.overflowY,overflowX:n.style.overflowX},cl=n.style.scrollBehavior,al={position:o.style.position,height:o.style.height,width:o.style.width,boxSizing:o.style.boxSizing,overflowY:o.style.overflowY,overflowX:o.style.overflowX,scrollBehavior:o.style.scrollBehavior};const w=n.scrollHeight>n.clientHeight,x=n.scrollWidth>n.clientWidth,S=m.overflowY==="scroll"||g.overflowY==="scroll",R=m.overflowX==="scroll"||g.overflowX==="scroll",C=Math.max(0,r.innerWidth-o.clientWidth),k=Math.max(0,r.innerHeight-o.clientHeight),P=parseFloat(g.marginTop)+parseFloat(g.marginBottom),E=parseFloat(g.marginLeft)+parseFloat(g.marginRight),O=ys(n,o);if(a=Fb(e),a){n.style.scrollbarGutter=v,O.style.overflowY="hidden",O.style.overflowX="hidden";return}Object.assign(n.style,{scrollbarGutter:v,overflowY:"hidden",overflowX:"hidden"}),(w||S)&&(n.style.overflowY="scroll"),(x||R)&&(n.style.overflowX="scroll"),Object.assign(o.style,{position:"relative",height:P||k?`calc(100dvh - ${P+k}px)`:"100dvh",width:E||C?`calc(100vw - ${E+C}px)`:"100vw",boxSizing:"border-box",overflowY:"hidden",overflowX:"hidden",scrollBehavior:"unset"}),o.scrollTop=s,o.scrollLeft=i,n.setAttribute("data-base-ui-scroll-locked",""),n.style.scrollBehavior="unset"}function d(){Object.assign(n.style,il),Object.assign(o.style,al),a||(n.scrollTop=s,n.scrollLeft=i,n.removeAttribute("data-base-ui-scroll-locked"),n.style.scrollBehavior=cl)}function p(){d(),l.request(u)}u();const f=Pe(r,"resize",p);return()=>{l.cancel(),d(),typeof r.removeEventListener=="function"&&f()}}class $b{constructor(){Ne(this,"lockCount",0);Ne(this,"restore",null);Ne(this,"timeoutLock",Lt.create());Ne(this,"timeoutUnlock",Lt.create());Ne(this,"release",()=>{this.lockCount-=1,this.lockCount===0&&this.restore&&this.timeoutUnlock.start(0,this.unlock)});Ne(this,"unlock",()=>{var t;this.lockCount===0&&this.restore&&((t=this.restore)==null||t.call(this),this.restore=null)})}acquire(t){return this.lockCount+=1,this.lockCount===1&&this.restore===null&&this.timeoutLock.start(0,()=>this.lock(t)),this.release}lock(t){if(this.lockCount===0||this.restore!==null)return;const n=Te(t),o=n.documentElement,r=n.body,s=He(o);if(ll(s,o,r)){const a=new s.MutationObserver(()=>{ll(s,o,r)||(a.disconnect(),this.restore=null,this.lock(t))}),l={attributes:!0};a.observe(o,l),a.observe(r,l),this.restore=()=>a.disconnect();return}const i=ts||!Lb(t);this.restore=i?zb(t):Vb(t)}}const Hb=new $b;function Ad(e=!0,t=null){oe(()=>{if(e)return Hb.acquire(t)},[e,t])}const jb=20;function Nd(e,t,n,o){const[r,s]=c.useState(!1);oe(()=>{if(!e||!t||n==null){s(!1);return}const i=Te(n).documentElement.clientWidth,a=n.offsetWidth;s(i>0&&a>0&&a>=i-jb)},[e,t,n]),Ad(e&&(!t||r),o)}const lC=c.forwardRef(function(t,n){var ge;const{anchor:o,positionMethod:r="absolute",className:s,render:i,side:a,align:l,sideOffset:u=0,alignOffset:d=0,collisionBoundary:p="clipping-ancestors",collisionPadding:f=5,arrowPadding:y=5,sticky:m=!1,disableAnchorTracking:g=!1,collisionAvoidance:h=Qu,style:b,...v}=t,{store:w}=cn(),x=kb(),S=Zr(!0),R=w.useState("parent"),C=w.useState("floatingRootContext"),k=w.useState("floatingTreeRoot"),P=w.useState("mounted"),E=w.useState("open"),O=w.useState("modal"),I=w.useState("openMethod"),N=w.useState("activeTriggerElement"),D=w.useState("transitionStatus"),M=w.useState("positionerElement"),z=w.useState("instantType"),_=w.useState("adaptiveOrigin"),A=w.useState("lastOpenChangeReason"),F=w.useState("floatingNodeId"),T=w.useState("floatingParentNodeId"),L=C.useState("domReferenceElement"),j=c.useRef(null),$=Qi(M);let U=o,q=u,V=d,Q=l,H=h;R.type==="context-menu"&&(U=o??((ge=R.context)==null?void 0:ge.anchor),Q=Q??"start",!a&&Q!=="center"&&(V=t.alignOffset??2,q=t.sideOffset??-5));let G=a,ue=Q;R.type==="menu"?(G=G??"inline-end",ue=ue??"start",H=t.collisionAvoidance??Ju):R.type==="menubar"&&(G=G??(R.context.orientation==="vertical"?"inline-end":"bottom"),ue=ue??"start");const ne=R.type==="context-menu",te=Ta({anchor:U,floatingRootContext:C,positionMethod:S?"fixed":r,mounted:P,side:G,sideOffset:q,align:ue,alignOffset:V,arrowPadding:ne?0:y,collisionBoundary:p,collisionPadding:f,sticky:m,nodeId:F,keepMounted:x,disableAnchorTracking:g,collisionAvoidance:H,shift:ne?{crossAxis:!("side"in H&&H.side==="flip"),rootBoundary:"layoutViewport"}:void 0,externalTree:k,adaptiveOrigin:_});c.useEffect(()=>{function de(ce){ce.open&&(ce.parentNodeId===F&&w.set("hoverEnabled",!1),ce.nodeId!==F&&ce.parentNodeId===w.select("floatingParentNodeId")&&w.setOpen(!1,ke(To)))}return k.events.on("menuopenchange",de),()=>{k.events.off("menuopenchange",de)}},[w,k.events,F]),c.useEffect(()=>{if(w.select("floatingParentNodeId")==null)return;function de(ce){if(ce.open||ce.nodeId!==w.select("floatingParentNodeId"))return;const fe=ce.reason??To;w.setOpen(!1,ke(fe))}return k.events.on("menuopenchange",de),()=>{k.events.off("menuopenchange",de)}},[k.events,w]);const J=Ge();c.useEffect(()=>{E||J.clear()},[E,J]),c.useEffect(()=>{function de(ce){if(!(!E||ce.nodeId!==w.select("floatingParentNodeId")))if(ce.target&&N&&N!==ce.target){const fe=w.select("closeDelay");fe>0?J.isStarted()||J.start(fe,()=>{w.setOpen(!1,ke(To))}):w.setOpen(!1,ke(To))}else J.clear()}return k.events.on("itemhover",de),()=>{k.events.off("itemhover",de)}},[k.events,E,N,w,J]),c.useEffect(()=>{const de={open:E,nodeId:F,parentNodeId:T,reason:w.select("lastOpenChangeReason")};k.events.emit("menuopenchange",de)},[k.events,E,w,F,T]),oe(()=>{const de=L,ce=j.current;if(de&&(j.current=de),ce&&de&&de!==ce){w.set("instantType",void 0);const fe=new AbortController;return $(()=>{w.set("instantType","trigger-change")},fe.signal),()=>{fe.abort()}}},[L,$,w]);const ee={open:E,side:te.side,align:te.align,anchorHidden:te.anchorHidden,nested:R.type==="menu",instant:z},ie=R.type==="menubar"&&R.context.modal;Nd(E&&(ie||O&&A!==rt),I==="touch",M,N);const ae=Oa(t,ee,{styles:te.positionerStyles,transitionStatus:D,props:v,refs:[n,w.useStateSetter("positionerElement")],hidden:!P,inert:!E}),he=P&&R.type!=="menu"&&(R.type!=="menubar"&&O&&A!==rt||R.type==="menubar"&&R.context.modal);let re=null;return R.type==="menubar"?re=R.context.contentElement:R.type===void 0&&(re=N),K.jsxs(Pu.Provider,{value:te,children:[he&&K.jsx(Ia,{ref:R.type==="context-menu"||R.type==="nested-context-menu"?R.context.internalBackdropRef:null,inert:gs(!E),cutout:re}),K.jsx(Qy,{id:F,children:K.jsx(ms,{elementsRef:w.context.itemDomElements,labelsRef:w.context.itemLabels,children:ae})})]})}),Dd=c.createContext(void 0);function Bb(){const e=c.useContext(Dd);if(e===void 0)throw new Error(De(34));return e}const uC=c.memo(c.forwardRef(function(t,n){const{render:o,className:r,value:s,defaultValue:i,onValueChange:a,disabled:l=!1,style:u,"aria-labelledby":d,...p}=t,[f,y]=c.useState(void 0),[m,g]=_t({controlled:s,default:i,name:"MenuRadioGroup"}),h=le((x,S)=>{a==null||a(x,S),!S.isCanceled&&g(x)}),v=Se("div",t,{state:{disabled:l},ref:n,props:{role:"group","aria-labelledby":d??f,"aria-disabled":l||void 0,...p}}),w=c.useMemo(()=>({value:m,setValue:h,disabled:l}),[m,h,l]);return K.jsx(Ji.Provider,{value:y,children:K.jsx(Dd.Provider,{value:w,children:v})})})),_d=c.createContext(void 0);function Wb(){const e=c.useContext(_d);if(e===void 0)throw new Error(De(35));return e}const dC=c.forwardRef(function(t,n){const{render:o,className:r,id:s,label:i,nativeButton:a=!1,disabled:l=!1,closeOnClick:u=!1,value:d,style:p,...f}=t,y=yo({guess:!0,label:i}),m=Xr(!0),g=tt(s),{store:h}=cn(),b=h.useState("isActive",y.index),v=h.useState("itemProps"),{value:w,setValue:x,disabled:S}=Bb(),R=h.useState("disabled"),C=l||S||R,k=w===d,{getItemProps:P,itemRef:E}=Ki({closeOnClick:u,disabled:C,highlighted:b,id:g,store:h,nativeButton:a,nodeId:m==null?void 0:m.context.nodeId,itemMetadata:Xi}),O=c.useMemo(()=>({disabled:C,highlighted:b,checked:k}),[C,b,k]);function I(D){const M=ke(An,D.nativeEvent,void 0,{preventUnmountOnClose:Ke});x(d,M)}const N=Se("div",t,{state:O,stateAttributesMapping:ns,props:[v,{role:"menuitemradio","aria-checked":k,onClick:I},f,P],ref:[E,n,y.ref]});return K.jsx(_d.Provider,{value:O,children:N})}),fC=c.forwardRef(function(t,n){const{render:o,className:r,style:s,keepMounted:i=!1,...a}=t,l=Wb(),u=c.useRef(null),{transitionStatus:d,mounted:p,setMounted:f}=ln(l.checked);kt({open:l.checked,ref:u,onComplete(){l.checked||f(!1)}});const y={checked:l.checked,disabled:l.disabled,highlighted:l.highlighted,transitionStatus:d};return Se("span",t,{state:y,stateAttributesMapping:ns,ref:[n,u],props:{"aria-hidden":!0,...a},enabled:i||p})}),Ub=c.createContext(null);function Ld(e){return c.useContext(Ub)}function Gb(e){const t=c.useRef(""),n=c.useCallback(r=>{r.defaultPrevented||(t.current=r.pointerType,e(r,r.pointerType))},[e]);return{onClick:c.useCallback(r=>{if(r.detail===0){e(r,"keyboard");return}"pointerType"in r?e(r,r.pointerType):e(r,t.current),t.current=""},[e]),onPointerDown:n}}function bs(e,t){const n=c.useRef(e),o=le(t);oe(()=>{n.current!==e&&o(n.current),n.current=e},[e,o])}function Fd(e,t){const n=le((s,i)=>{(typeof e=="function"?e():e)||t(i||(ts?"touch":""))}),{onClick:o,onPointerDown:r}=Gb(n);return c.useMemo(()=>({onClick:o,onPointerDown:r}),[o,r])}function zd(e){const[t,n]=c.useState(null),o=Fd(e,n);return bs(e,r=>{r&&!e&&n(null)}),c.useMemo(()=>({openMethod:t,triggerProps:o}),[t,o])}const qb={...ka,disabled:e=>e.parent.type==="menubar"&&e.parent.context.disabled||e.disabled,modal:e=>(e.parent.type===void 0||e.parent.type==="context-menu")&&(e.modal??!0),openMethod:e=>e.openMethod,allowMouseEnter:e=>e.allowMouseEnter,highlightItemOnHover:e=>e.highlightItemOnHover,parent:e=>e.parent,rootId:e=>e.parent.type==="menu"?e.parent.store.select("rootId"):e.parent.type!==void 0?e.parent.context.rootId:e.rootId,activeIndex:e=>e.activeIndex,isActive:(e,t)=>e.activeIndex===t,hoverEnabled:e=>e.hoverEnabled,instantType:e=>e.instantType,lastOpenChangeReason:e=>e.openChangeReason,floatingTreeRoot:e=>e.parent.type==="menu"?e.parent.store.select("floatingTreeRoot"):e.floatingTreeRoot,floatingNodeId:e=>e.floatingNodeId,floatingParentNodeId:e=>e.floatingParentNodeId,itemProps:e=>e.itemProps,closeDelay:e=>e.closeDelay,adaptiveOrigin:e=>e.adaptiveOrigin,keyboardEventRelay:e=>{if(e.keyboardEventRelay)return e.keyboardEventRelay;if(e.parent.type==="menu")return e.parent.store.select("keyboardEventRelay")}};class Yb extends Uo{constructor(n){super({...Kb(),...n},Xb(),qb);Ne(this,"unsubscribeParentListener",null);this.unsubscribeParentListener=this.observe("parent",o=>{var r;if((r=this.unsubscribeParentListener)==null||r.call(this),o.type==="menu"){let s=o.store.select("rootId"),i=o.store.select("floatingTreeRoot"),a=o.store.select("keyboardEventRelay");this.unsubscribeParentListener=o.store.subscribe(()=>{const l=o.store.select("rootId"),u=o.store.select("floatingTreeRoot"),d=o.store.select("keyboardEventRelay");s===l&&i===u&&a===d||(s=l,i=u,a=d,this.notifyAll())}),this.context.allowMouseUpTriggerRef=o.store.context.allowMouseUpTriggerRef;return}o.type!==void 0&&(this.context.allowMouseUpTriggerRef=o.context.allowMouseUpTriggerRef),this.unsubscribeParentListener=null})}setOpen(n,o){this.state.floatingRootContext.context.events.emit("setOpen",{open:n,eventDetails:o})}}function Xb(){return{positionerRef:c.createRef(),popupRef:c.createRef(),typingRef:{current:!1},itemDomElements:{current:[]},itemLabels:{current:[]},allowMouseUpTriggerRef:{current:!1},triggerFocusTargetRef:c.createRef(),beforeContentFocusGuardRef:c.createRef(),onOpenChangeComplete:void 0,triggerElements:new Go}}function Kb(){return{...Sa(),disabled:!1,modal:!0,openMethod:null,allowMouseEnter:!1,highlightItemOnHover:!0,parent:{type:void 0},rootId:void 0,activeIndex:null,hoverEnabled:!0,instantType:void 0,openChangeReason:null,floatingTreeRoot:new ua,floatingNodeId:void 0,floatingParentNodeId:null,itemProps:We,keyboardEventRelay:void 0,closeDelay:0,adaptiveOrigin:void 0}}const Zb=c.createContext(void 0);function Qb(){return c.useContext(Zb)}const Jb=ga(function(t){const{children:n,open:o,onOpenChange:r,onOpenChangeComplete:s,defaultOpen:i=!1,disabled:a=!1,modal:l,loopFocus:u=!0,orientation:d="vertical",actionsRef:p,closeParentOnEsc:f=!1,handle:y,triggerId:m,defaultTriggerId:g=null,highlightItemOnHover:h=!0}=t,b=Zr(!0),v=cn(!0),w=Ld(!0),x=Qb(),S=c.useMemo(()=>x&&v?{type:"menu",store:v.store}:w?{type:"menubar",context:w}:b&&!v?{type:"context-menu",context:b}:{type:void 0},[b,v,w,x]),R=ev({open:i,openProp:o,activeTriggerId:g,triggerIdProp:m,parent:S});R.useControlledProp("openProp",o),R.useControlledProp("triggerIdProp",m),R.useContextCallback("onOpenChangeComplete",s);const C=bn(),k=bn(),P=R.useState("floatingTreeRoot"),E=id(P),O=Cn(),I=R.useState("open"),N=R.useState("activeTriggerElement"),D=R.useState("positionerElement"),M=R.useState("hoverEnabled"),z=R.useState("disabled"),_=R.useState("lastOpenChangeReason"),A=R.useState("parent"),F=R.useState("activeIndex"),T=R.useState("payload"),L=R.useState("floatingParentNodeId"),j=c.useRef(null),$=c.useRef(A.type!=="context-menu"),U=Ge(),q=c.useRef(!0),V=Ge(),Q=L!=null,{openMethod:H,triggerProps:G}=zd(I);R.useSyncedValues({disabled:a,highlightItemOnHover:h,modal:A.type===void 0?l:void 0,openMethod:H,rootId:C}),va(R);const{forceUnmount:ue}=xa(I,R,()=>{R.set("allowMouseEnter",!1)});oe(()=>{b&&!v?R.update({parent:{type:"context-menu",context:b},floatingNodeId:E,floatingParentNodeId:O}):v&&R.update({floatingNodeId:E,floatingParentNodeId:O})},[b,v,E,O,R]),c.useEffect(()=>{if(I||(j.current=null),A.type==="context-menu"){if(!I){U.clear(),$.current=!1;return}U.start(500,()=>{$.current=!0})}},[U,I,A.type]),oe(()=>{!I&&!M&&R.set("hoverEnabled",!0)},[I,M,R]);const ne=le((X,pe)=>{const be=pe.reason;if(!X&&!R.select("open")||I===X&&pe.trigger===N&&_===be)return;const _e=vd(pe);if(!X&&pe.trigger==null&&(pe.trigger=N??void 0),r==null||r(X,pe),pe.isCanceled)return;R.state.floatingRootContext.dispatchOpenChange(X,pe);const Ue=pe.event;if(X===!1&&(Ue==null?void 0:Ue.type)==="click"&&Ue.pointerType==="touch"&&!q.current)return;X&&be===Jn?(q.current=!1,V.start(300,()=>{q.current=!0})):(q.current=!0,V.clear());const Ye=(be===Rn||be===An)&&Ue.detail===0,st=!X&&(be===Jr||be==null),Le={open:X,openChangeReason:be};j.current=pe.event,ya(Le,X,pe.trigger,_e()),R.update(Le),A.type==="menubar"&&(be===Jn||be===Dn||be===rt||be===ti||be===To)?R.set("instantType","group"):Ye||st?R.set("instantType",Ye?"click":"dismiss"):R.set("instantType",void 0)}),te=yd({popupStore:R,floatingId:k,nested:O!=null,onOpenChange:ne}),J=te.context.events;oe(()=>{const X=({open:pe,eventDetails:be})=>ne(pe,be);return J.on("setOpen",X),()=>{J==null||J.off("setOpen",X)}},[J,ne]);const ee=c.useCallback(()=>{R.setOpen(!1,ke(Gi))},[R]);c.useImperativeHandle(p,()=>({unmount:ue,close:ee}),[ue,ee]);let ie;A.type==="context-menu"&&(ie=A.context),c.useImperativeHandle(ie==null?void 0:ie.positionerRef,()=>D,[D]),c.useImperativeHandle(ie==null?void 0:ie.actionsRef,()=>({setOpen:ne}),[ne]);const xe=as(te,{enabled:!z,bubbles:{escapeKey:f&&A.type==="menu"},outsidePress(){var X;return A.type!=="context-menu"||((X=j.current)==null?void 0:X.type)==="contextmenu"?!0:$.current},externalTree:Q?P:void 0}),ae=bo(),he=c.useCallback(X=>{R.select("activeIndex")!==X&&R.set("activeIndex",X)},[R]),re=Ed(te,{enabled:!z,listRef:R.context.itemDomElements,activeIndex:F,nested:A.type!==void 0,loopFocus:u,orientation:d,parentOrientation:A.type==="menubar"?A.context.orientation:void 0,rtl:ae==="rtl",disabledIndices:Dt,onNavigate:he,openOnArrowKeyDown:A.type!=="context-menu",externalTree:Q?P:void 0,focusItemOnHover:h}),ge=c.useCallback(X=>{R.context.typingRef.current=X},[R]),de=Md(te,{enabled:!z,listRef:R.context.itemLabels,elementsRef:R.context.itemDomElements,activeIndex:F,resetMs:qy,onMatch:X=>{I&&X!==F&&R.set("activeIndex",X)},onTyping:ge}),ce=c.useMemo(()=>{const X=St(de.reference,re.reference,xe.reference,{onMouseMove(){R.set("allowMouseEnter",!0)}},G);return X["aria-haspopup"]="menu",X["aria-expanded"]=I,X},[R,de.reference,re.reference,xe.reference,G,I]),fe=c.useMemo(()=>{const X=St(re.trigger,xe.trigger,G);return X["aria-haspopup"]="menu",X["aria-expanded"]=!1,X},[re.trigger,xe.trigger,G]),W=c.useMemo(()=>St(ds,{id:k,role:"menu","aria-labelledby":N==null?void 0:N.id,onMouseMove(){R.set("allowMouseEnter",!0),A.type==="menu"&&R.set("hoverEnabled",!1)},onClick(){R.select("hoverEnabled")&&R.set("hoverEnabled",!1)},onKeyDown(X){const pe=R.select("keyboardEventRelay");pe&&!X.isPropagationStopped()&&pe(X)}},de.floating,re.floating,xe.floating),[N,k,A.type,R,de.floating,re.floating,xe.floating]),Y=re.item??We;wa(R,{floatingRootContext:te,activeTriggerProps:ce,inactiveTriggerProps:fe,popupProps:W,itemProps:Y});const se=c.useMemo(()=>({store:R,parent:S}),[R,S]),Z=K.jsxs(ji.Provider,{value:se,children:[y&&K.jsx(ma,{handle:y,store:R}),typeof n=="function"?n({payload:T}):n]});return A.type===void 0||A.type==="context-menu"?K.jsx(Jy,{externalTree:P,children:Z}):Z});function ev(e){return at(()=>new Yb(e)).current}const ur=5;function Vd(e,t){const n=tv(t);return e.clientX>=n.left-ur&&e.clientX<=n.right+ur&&e.clientY>=n.top-ur&&e.clientY<=n.bottom+ur}function tv(e){const t=e.getBoundingClientRect(),n=He(e);if(Yi)return t;const o=n.getComputedStyle(e,"::before"),r=n.getComputedStyle(e,"::after");if(!(o.content!=="none"||r.content!=="none"))return t;const i=parseFloat(o.width)||0,a=parseFloat(o.height)||0,l=parseFloat(r.width)||0,u=parseFloat(r.height)||0,d=Math.max(t.width,i,l),p=Math.max(t.height,a,u),f=d-t.width,y=p-t.height;return{left:t.left-f/2,right:t.right+f/2,top:t.top-y/2,bottom:t.bottom+y/2}}function $d(e={}){const{highlightItemOnHover:t,highlightedIndex:n,onHighlightedIndexChange:o}=Yr(),{ref:r,index:s}=yo(e),i=n===s,a=c.useRef(null),l=Nt(r,a);return{compositeProps:{tabIndex:i?0:-1,onFocus(){o(s)},onMouseMove(){const d=a.current;if(!t||!d)return;const p=d.hasAttribute("disabled")||d.ariaDisabled==="true";!i&&!p&&d.focus()}},compositeRef:l,index:s}}function Hd(e){const{render:t,className:n,style:o,state:r=We,props:s=Dt,refs:i=Dt,metadata:a,stateAttributesMapping:l,tag:u="div",...d}=e,{compositeProps:p,compositeRef:f}=$d({metadata:a});return Se(u,e,{state:r,ref:[f,...i],props:[p,...s,d],stateAttributesMapping:l})}function Aa(e){if(Fe(e)&&e.hasAttribute("data-rootownerid"))return e.getAttribute("data-rootownerid");if(!en(e))return Aa(on(e))}function nv(e,t){const n=c.useRef(null);function o(s){At.flushSync(()=>{e.setOpen(!1,ke(Dn,s.nativeEvent,s.currentTarget))});const i=By(n.current);i==null||i.focus()}function r(s){var a;const i=e.select("positionerElement");if(i&&eo(s,i))(a=e.context.beforeContentFocusGuardRef.current)==null||a.focus();else{At.flushSync(()=>{e.setOpen(!1,ke(Dn,s.nativeEvent,s.currentTarget))});let l=jy(e.context.triggerFocusTargetRef.current||t.current);for(;l!==null&&ve(i,l);){const u=l;if(l=ca(l),l===u)break}l==null||l.focus()}}return{preFocusGuardRef:n,handlePreFocusGuardFocus:o,handleFocusTargetFocus:r}}function ov(e){const{enabled:t=!0,mouseDownAction:n,open:o}=e,r=c.useRef(!1);return c.useMemo(()=>t?{onMouseDown:s=>{(n==="open"&&!o||n==="close"&&o)&&(r.current=!0,Te(s.currentTarget).addEventListener("click",()=>{r.current=!1},{once:!0}))},onClick:s=>{r.current&&(r.current=!1,s.preventBaseUIHandler())}}:We,[t,n,o])}const pC=md(function(t,n){const{render:o,className:r,style:s,disabled:i=!1,nativeButton:a=!0,id:l,openOnHover:u,delay:d=100,closeDelay:p=0,handle:f,payload:y,...m}=t,g=cn(!0),b=Ca(f)??(g==null?void 0:g.store);if(!b)throw new Error(De(85));const v=tt(l),w=b.useState("isTriggerActive",v),x=b.useState("floatingRootContext"),S=b.useState("isOpenedByTrigger",v),R=b.useState("triggerPopupId",v),C=c.useRef(null),k=sv(),P=Yr(!0),E=En(),O=c.useMemo(()=>E??new ua,[E]),I=id(O),N=Cn(),{registerTrigger:D,isMountedByThisTrigger:M}=ba(v,C,b,{payload:y,closeDelay:p,parent:k,floatingTreeRoot:O,floatingNodeId:I,floatingParentNodeId:N,keyboardEventRelay:P==null?void 0:P.relayKeyboardEvent}),z=k.type==="menubar",_=b.useState("disabled"),A=i||_||z&&k.context.disabled,{getButtonProps:F,buttonRef:T}=Tt({disabled:A,native:a});c.useEffect(()=>{!S&&k.type===void 0&&(b.context.allowMouseUpTriggerRef.current=!1)},[b,S,k.type]);const L=c.useRef(null),j=Ge(),$=le(ge=>{if(!L.current)return;j.clear(),b.context.allowMouseUpTriggerRef.current=!1;const de=ge.target;ve(L.current,de)||ve(b.select("positionerElement"),de)||de===L.current||de!=null&&Aa(de)===b.select("rootId")||Vd(ge,L.current)||O.events.emit("close",{domEvent:ge,reason:Ui})});c.useEffect(()=>{S&&b.select("lastOpenChangeReason")===rt&&Te(L.current).addEventListener("mouseup",$,{once:!0})},[S,$,b]);const U=z&&k.context.hasSubmenuOpen,V=Cd(x,{enabled:(u??U)&&!A&&(!z||U&&!M),handleClose:Pd({blockPointerEvents:!z}),mouseOnly:!0,move:!1,restMs:k.type===void 0?d:void 0,delay:{close:p},triggerElementRef:C,externalTree:O,isActiveTrigger:w,isClosing:()=>b.select("transitionStatus")==="ending"}),Q=rv(S,b.select("lastOpenChangeReason")),H=pa(x,{enabled:!A,event:S&&z?"click":"mousedown",toggle:!0,ignoreMouse:!1,stickIfOpen:k.type===void 0?Q:!1}),G=Sd(x,{enabled:!A&&U}),ue=ov({open:S,enabled:z,mouseDownAction:"open"}),ne=c.useMemo(()=>St(G.reference,H.reference),[G.reference,H.reference]),te=b.useState("triggerProps",M),{preFocusGuardRef:J,handlePreFocusGuardFocus:ee,handleFocusTargetFocus:ie}=nv(b,C),xe={disabled:A,open:S},ae=[L,n,T,D,C],he=[ne,V??We,te,{"aria-haspopup":"menu","aria-controls":R,id:v,onMouseDown:ge=>{if(b.select("open"))return;j.start(200,()=>{b.context.allowMouseUpTriggerRef.current=!0}),Te(ge.currentTarget).addEventListener("mouseup",$,{once:!0})}},z?{role:"menuitem"}:{},ue,m,F],re=Se("button",t,{enabled:!z,stateAttributesMapping:Lr,state:xe,ref:ae,props:he});return z?K.jsx(Hd,{tag:"button",render:o,className:r,style:s,state:xe,refs:ae,props:he,stateAttributesMapping:Lr}):S?K.jsxs(c.Fragment,{children:[K.jsx(ao,{ref:J,onFocus:ee},`${v}-pre-focus-guard`),K.jsx(c.Fragment,{children:re},v),K.jsx(ao,{ref:b.context.triggerFocusTargetRef,onFocus:ie},`${v}-post-focus-guard`)]}):K.jsx(c.Fragment,{children:re},v)});function rv(e,t){const n=Ge(),[o,r]=c.useState(!1);return oe(()=>{e&&t===rt?(r(!0),n.start(Yy,()=>{r(!1)})):e||(n.clear(),r(!1))},[e,t,n]),o}function sv(){const e=Ld();return c.useMemo(()=>e?{type:"menubar",context:e}:{type:void 0},[e])}function iv(e){const[t,n]=c.useState({current:e,previous:null});return Object.is(e,t.current)||n({current:e,previous:t.current}),t.previous}function ul(e){const t=xt(e);let n=parseFloat(t.width)||0,o=parseFloat(t.height)||0;const r=Fe(e),s=r?e.offsetWidth:n,i=r?e.offsetHeight:o;return(lo(n)!==s||lo(o)!==i)&&(n=s,o=i),{width:n,height:o}}const hC=c.forwardRef(function(t,n){const{className:o,render:r,orientation:s="horizontal",style:i,...a}=t;return Se("div",t,{state:{orientation:s},ref:n,props:[{role:"separator","aria-orientation":s},a]})});function jd(e){return e==null||e.hasAttribute("disabled")||e.getAttribute("aria-disabled")==="true"}function av(e){const t=c.useRef(!0);t.current&&(t.current=!1,e())}const Bd=c.createContext(null);function Yt(){const e=c.useContext(Bd);if(e===null)throw new Error(De(60));return e}const cv={badInput:!1,customError:!1,patternMismatch:!1,rangeOverflow:!1,rangeUnderflow:!1,stepMismatch:!1,tooLong:!1,tooShort:!1,typeMismatch:!1,valid:null,valueMissing:!1},lv={valid:null,touched:!1,dirty:!1,filled:!1,focused:!1},uv={disabled:!1,...lv},vs={valid(e){return e===null?null:e?{"data-valid":""}:{"data-invalid":""}}},dv={invalid:void 0,name:void 0,validityData:{state:cv,errors:[],error:"",value:"",initialValue:null},setValidityData:Ke,disabled:void 0,setTouched:Ke,setDirty:Ke,setFilled:Ke,setFocused:Ke,validationMode:"onSubmit",shouldValidateOnChange:()=>!1,state:uv,registerFieldControl:Ke,validation:{getValidationProps:(e,t=We)=>t,inputRef:{current:null},registeredInputs:new Map,registerInput:Ke,getInputControl:()=>null,commit:async()=>{},change:Ke}},fv=c.createContext(dv);function vo(e=!0){const t=c.useContext(fv);if(t.setValidityData===Ke&&!e)throw new Error(De(28));return t}function xs(e,t,n,o,r=!0,s){const{registerFieldControl:i}=vo(),a=at(()=>Symbol());oe(()=>{const l=a.current;if(!r){i(l,void 0);return}i(l,{controlRef:e,getValue:o,id:t,name:s,value:n})},[e,r,o,t,s,i,a,n]),oe(()=>{const l=a.current;return()=>{i(l,void 0)}},[i,a])}const pv=c.createContext({controlId:void 0,registerControlId:Ke,labelId:void 0,setLabelId:Ke,messageIds:[],setMessageIds:Ke,getDescriptionProps:e=>e});function qo(){return c.useContext(pv)}function ws(e={}){const{id:t,implicit:n=!1,controlRef:o}=e,{controlId:r,registerControlId:s}=qo(),i=tt(t),a=n?r:void 0,l=at(()=>Symbol()),u=c.useRef(!1),d=c.useRef(t!=null),p=le(()=>{!u.current||s===Ke||(u.current=!1,s(l.current,void 0))});return oe(()=>{if(s===Ke)return;let f;if(n){const y=o==null?void 0:o.current;Oe(y)&&y.closest("label")!=null?f=t??null:f=a??i}else if(t!=null)d.current=!0,f=t;else if(d.current)f=i;else{p();return}if(f===void 0){p();return}u.current=!0,s(l.current,f)},[t,o,a,s,n,i,l,p]),c.useEffect(()=>p,[p]),r??i}const hv=(e,t)=>Object.is(e,t);function uo(e,t,n){return e==null||t==null?Object.is(e,t):n(e,t)}function Mr(e,t,n){return!e||e.length===0?-1:e.findIndex(o=>o===void 0?!1:uo(o,t,n))}function gv(e,t,n){return e.filter(o=>!uo(t,o,n))}function yi(e){if(e==null)return"";if(typeof e=="string")return e;try{return JSON.stringify(e)}catch{return String(e)}}function Wd(e){return e!=null&&e.length>0&&typeof e[0]=="object"&&e[0]!=null&&"items"in e[0]}function mv(e){if(!Array.isArray(e))return e!=null&&"null"in e;const t=e;if(Wd(t)){for(const n of t)for(const o of n.items)if(o&&o.value==null&&o.label!=null)return!0;return!1}for(const n of t)if(n&&n.value==null&&n.label!=null)return!0;return!1}function Ud(e,t){if(t&&e!=null)return t(e)??"";if(e&&typeof e=="object"){if("label"in e&&e.label!=null)return String(e.label);if("value"in e)return String(e.value)}return yi(e)}function Xn(e,t){return t&&e!=null?t(e)??"":e&&typeof e=="object"&&"value"in e&&"label"in e?yi(e.value):yi(e)}function Gd(e,t,n){function o(){return Ud(e,n)}if(n&&e!=null)return n(e);if(e&&typeof e=="object"&&"label"in e&&e.label!=null)return e.label;if(t&&!Array.isArray(t))return t[e]??o();if(Array.isArray(t)){const r=t,s=Wd(r)?r.flatMap(i=>i.items):r;if(e==null||typeof e!="object"){const i=s.find(a=>a.value===e);return i&&i.label!=null?i.label:o()}if("value"in e){const i=s.find(a=>a&&a.value===e.value);if(i&&i.label!=null)return i.label}}return o()}function yv(e,t,n){return e.reduce((o,r,s)=>(s>0&&o.push(", "),o.push(K.jsx(c.Fragment,{children:Gd(r,t,n)},s)),o),[])}const Ee={id:e=>e.id,labelId:e=>e.labelId,modal:e=>e.modal,items:e=>e.items,itemToStringLabel:e=>e.itemToStringLabel,isItemEqualToValue:e=>e.isItemEqualToValue,value:e=>e.value,hasSelectedValue:e=>{const{value:t,multiple:n,itemToStringValue:o}=e;return t==null?!1:n&&Array.isArray(t)?t.length>0:Xn(t,o)!==""},hasNullItemLabel:(e,t)=>t?mv(e.items):!1,open:e=>e.open,mounted:e=>e.mounted,forceMount:e=>e.forceMount,transitionStatus:e=>e.transitionStatus,openMethod:e=>e.openMethod,activeIndex:e=>e.activeIndex,selectedIndex:e=>e.selectedIndex,isActive:(e,t)=>e.activeIndex===t,isSelected:(e,t)=>{const n=e.isItemEqualToValue,o=e.value;return e.multiple?Array.isArray(o)&&o.some(r=>uo(t,r,n)):uo(t,o,n)},isSelectedByFocus:(e,t)=>e.selectedIndex===t,popupProps:e=>e.popupProps,triggerProps:e=>e.triggerProps,triggerElement:e=>e.triggerElement,positionerElement:e=>e.positionerElement,listElement:e=>e.listElement,popupSide:e=>e.popupSide,scrollUpArrowVisible:e=>e.scrollUpArrowVisible,scrollDownArrowVisible:e=>e.scrollDownArrowVisible,hasScrollArrows:e=>e.hasScrollArrows},bv=c.createContext({elementRef:{current:null},formRef:{current:{fields:new Map}},errors:{},clearErrors:Ke,validationMode:"onSubmit",submitAttemptedRef:{current:!1}});function Ss(){return c.useContext(bv)}function vv(e,t,n=(o,r)=>o===r){return e.length===t.length&&e.every((o,r)=>n(o,t[r]))}function hn(e,t=Number.MIN_SAFE_INTEGER,n=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,n))}const Ot=1;function Na(e,t){return Math.max(0,e-t)}function fo(e,t){if(t<=0)return 0;const n=hn(e,0,t),o=n,r=t-n,s=o<=Ot,i=r<=Ot;return s&&i?o<=r?0:t:s?0:i?t:n}function gC(e){const{id:t,value:n,defaultValue:o=null,onValueChange:r,open:s,defaultOpen:i=!1,onOpenChange:a,name:l,form:u,autoComplete:d,disabled:p=!1,readOnly:f=!1,required:y=!1,modal:m=!0,actionsRef:g,inputRef:h,onOpenChangeComplete:b,items:v,multiple:w=!1,itemToStringLabel:x,itemToStringValue:S,isItemEqualToValue:R=hv,highlightItemOnHover:C=!0,children:k}=e,{clearErrors:P}=Ss(),{setDirty:E,setTouched:O,setFocused:I,validityData:N,setFilled:D,name:M,disabled:z,validation:_,validationMode:A}=vo(),F=ws({id:t}),T=z||p,L=M??l,[j,$]=_t({controlled:n,default:w?o??Dt:o,name:"Select",state:"value"}),[U,q]=_t({controlled:s,default:i,name:"Select",state:"open"}),V=c.useRef([]),Q=c.useRef([]),H=c.useRef(null),G=c.useRef(null),ue=c.useRef(0),ne=c.useRef(null),te=c.useRef([]),J=c.useRef(!1),ee=c.useRef(null),ie=c.useRef(null),xe=c.useRef({allowSelectedMouseUp:!1,allowUnselectedMouseUp:!1,dragY:0}),ae=c.useRef(!1),{mounted:he,setMounted:re,transitionStatus:ge}=ln(U),{openMethod:de,triggerProps:ce}=zd(U),fe=at(()=>new Uo({id:F,labelId:void 0,modal:m,multiple:w,itemToStringLabel:x,itemToStringValue:S,isItemEqualToValue:R,value:j,open:U,mounted:he,transitionStatus:ge,items:v,forceMount:!1,openMethod:null,activeIndex:null,selectedIndex:null,popupProps:{},triggerProps:{},triggerElement:null,positionerElement:null,listElement:null,popupSide:null,scrollUpArrowVisible:!1,scrollDownArrowVisible:!1,hasScrollArrows:!1})).current,W=Ce(fe,Ee.activeIndex),Y=Ce(fe,Ee.selectedIndex),se=Ce(fe,Ee.triggerElement),Z=Ce(fe,Ee.positionerElement),X=iv(de),pe=de??X,be=c.useMemo(()=>w?"":Xn(j,S),[w,j,S]),_e=c.useMemo(()=>w&&Array.isArray(j)?j.map(Me=>Xn(Me,S)):Xn(j,S),[w,j,S]),Ue=Ze(se),Ye=le(()=>_e);xs(Ue,F,j,Ye,!T,l);const st=c.useRef(j),Le=w?Array.isArray(j)&&j.length>0:j!=null&&be!=="";oe(()=>{D(Le)},[Le,D]),oe(function(){let ze=j,wt=!1;if(w){const Vt=Array.isArray(j)?j:[];wt=Vt.length===0,ze=Vt[Vt.length-1]}const zt=wt?-1:Mr(te.current,ze,R),Ct=zt===-1?null:zt;Ct===null&&(ie.current=null),!U&&fe.set("selectedIndex",Ct)},[w,U,j,R,fe]);function Je(Me){const ze=N.initialValue;return Array.isArray(Me)&&Array.isArray(ze)?!vv(Me,ze,(wt,zt)=>uo(wt,zt,R)):Me!==ze}bs(j,()=>{P(L),E(Je(j)),_.change(j)});const ct=le((Me,ze)=>{a==null||a(Me,ze),!ze.isCanceled&&(q(Me),!Me&&(ze.reason===Dn||ze.reason===Qr)&&(O(!0),I(!1),A==="onBlur"&&_.commit(j)))}),Re=le(()=>{re(!1),fe.update({activeIndex:null,openMethod:null,scrollUpArrowVisible:!1,scrollDownArrowVisible:!1}),b==null||b(!1)});kt({enabled:!g,open:U,ref:H,onComplete(){U||Re()}}),c.useImperativeHandle(g,()=>({unmount:Re}),[Re]);const je=le((Me,ze)=>{r==null||r(Me,ze),!ze.isCanceled&&$(Me)}),qe=le(Me=>{const ze=Na(Me.scrollHeight,Me.clientHeight),wt=fo(Me.scrollTop,ze),zt=wt>0,Ct=wt<ze;fe.set("scrollUpArrowVisible",zt),fe.set("scrollDownArrowVisible",Ct)}),Be=db({open:U,onOpenChange:ct,elements:{reference:se,floating:Z}}),Xe=pa(Be,{enabled:!f&&!T,event:"mousedown"}),pt=as(Be),we=Ed(Be,{enabled:!f&&!T,listRef:V,activeIndex:W,selectedIndex:Y,disabledIndices:Dt,onNavigate(Me){Me===null&&!U||fe.set("activeIndex",Me)},focusItemOnHover:C}),Ae=Md(Be,{enabled:!f&&!T&&(U||!w),listRef:Q,activeIndex:W,selectedIndex:Y,disabledIndices:Me=>jd(V.current[Me]),onMatch(Me){U?fe.set("activeIndex",Me):je(te.current[Me],ke(Rt))},onTyping(Me){J.current=Me}}),Qe=c.useMemo(()=>St(Ae.reference,we.reference,pt.reference,Xe.reference,ce),[Xe.reference,Ae.reference,we.reference,pt.reference,ce]),nt=c.useMemo(()=>St(ds,Ae.floating,we.floating,pt.floating),[Ae.floating,we.floating,pt.floating]),yt=we.item??We;av(()=>{fe.update({popupProps:nt,triggerProps:Qe})}),fe.useSyncedValues({id:F,modal:m,multiple:w,value:j,open:U,mounted:he,transitionStatus:ge,popupProps:nt,triggerProps:Qe,items:v,itemToStringLabel:x,itemToStringValue:S,isItemEqualToValue:R,openMethod:pe});const bt=c.useMemo(()=>({store:fe,floatingContext:Be,required:y,disabled:T,readOnly:f,multiple:w,highlightItemOnHover:C,setValue:je,setOpen:ct,listRef:V,popupRef:H,scrollHandlerRef:G,handleScrollArrowVisibility:qe,scrollArrowsMountedCountRef:ue,itemProps:yt,valueRef:ne,valuesRef:te,labelsRef:Q,typingRef:J,selectionRef:xe,firstItemTextRef:ee,selectedItemTextRef:ie,validation:_,onOpenChangeComplete:b,alignItemWithTriggerActiveRef:ae,initialValueRef:st}),[fe,Be,y,T,f,w,C,je,ct,yt,_,b,qe]),Xt=Nt(h,_.inputRef),lt=w?void 0:L,ht=c.useMemo(()=>!w||!Array.isArray(j)||!L?null:j.map(Me=>{const ze=Xn(Me,S);return K.jsx("input",{type:"hidden",form:u,name:L,value:ze,disabled:T},ze)}),[w,j,u,L,S,T]);return K.jsxs(Bd.Provider,{value:bt,children:[k,K.jsx("input",{..._.getValidationProps(T,{onFocus(){var Me;(Me=fe.state.triggerElement)==null||Me.focus({focusVisible:!0})},onChange(Me){if(Me.nativeEvent.defaultPrevented||T||f)return;const ze=Me.currentTarget.value,wt=ke(Rt,Me.nativeEvent);function zt(){if(w)return;const Ct=ze.toLowerCase();let Vt=te.current.findIndex(So=>Xn(So,S).toLowerCase()===Ct||Ud(So,x).toLowerCase()===Ct);Vt===-1&&(Vt=te.current.findIndex((So,Pn)=>{const Qo=Q.current[Pn];return Qo!=null&&Qo.toLowerCase()===Ct}));const Zo=te.current[Vt];Zo!=null&&je(Zo,wt)}fe.set("forceMount",!0),queueMicrotask(zt)}}),id:F&<==null?`${F}-hidden-input`:void 0,form:u,name:lt,autoComplete:d,value:be,disabled:T,required:y&&!(w&&Le),readOnly:f,ref:Xt,style:L?oa:Bo,tabIndex:-1,"aria-hidden":!0,suppressHydrationWarning:!0}),ht]})}function xv(e,t){const n=tt(e);return oe(()=>(t(n),()=>{t(o=>o===n?void 0:o)}),[n,t]),n}function wv(e,t){return e??t}const Sv=400,Rv={...Lr,...vs,popupSide:e=>e?{"data-popup-side":e}:null,value:()=>null},mC=c.forwardRef(function(t,n){var J;const{render:o,className:r,id:s,disabled:i=!1,nativeButton:a=!0,style:l,...u}=t,{setTouched:d,setFocused:p,validationMode:f,state:y,disabled:m}=vo(),{labelId:g}=qo(),{store:h,setOpen:b,selectionRef:v,validation:w,readOnly:x,required:S,alignItemWithTriggerActiveRef:R,disabled:C}=Yt(),k=m||C||i,P=Ce(h,Ee.open),E=Ce(h,Ee.mounted),O=Ce(h,Ee.value),I=Ce(h,Ee.triggerProps),N=Ce(h,Ee.positionerElement),D=Ce(h,Ee.listElement),M=Ce(h,Ee.popupSide),z=Ce(h,Ee.id),_=Ce(h,Ee.labelId),A=Ce(h,Ee.hasSelectedValue),F=E&&N?M:null,T=s??z,L=wv(g,_);ws({id:T});const j=Ze(N),$=c.useRef(null),{getButtonProps:U,buttonRef:q}=Tt({disabled:k,native:a}),V=h.useStateSetter("triggerElement"),Q=Ge(),H=Ge(),G=Ge();c.useEffect(()=>{if(P)return G.start(Sv,()=>{v.current.allowUnselectedMouseUp=!0,v.current.allowSelectedMouseUp=!0}),()=>{G.clear()};v.current={allowSelectedMouseUp:!1,allowUnselectedMouseUp:!1,dragY:0},H.clear()},[P,v,H,G]);const ue=St(I,{id:T,role:"combobox","aria-expanded":P,"aria-haspopup":"listbox","aria-controls":P?(D==null?void 0:D.id)??((J=zr(N))==null?void 0:J.id):void 0,"aria-labelledby":L,"aria-readonly":x||void 0,"aria-required":S||void 0,tabIndex:k?-1:0,onFocus(ee){p(!0),P&&R.current&&b(!1,ke(Rt,ee.nativeEvent)),Q.start(0,()=>{h.set("forceMount",!0)})},onBlur(ee){ve(N,ee.relatedTarget)||(d(!0),p(!1),f==="onBlur"&&w.commit(O))},onMouseDown(ee){if(P)return;const ie=Te(ee.currentTarget);function xe(ae){if(!$.current)return;const he=ae.target;ve($.current,he)||ve(j.current,he)||Vd(ae,$.current)||b(!1,ke(Ui,ae))}H.start(0,()=>{ie.addEventListener("mouseup",xe,{once:!0})})}},u,U),ne=w.getValidationProps(k,ue);ne.role="combobox";const te={...y,open:P,disabled:k,value:O,readOnly:x,popupSide:F,placeholder:!A};return Se("button",t,{ref:[n,$,q,V],state:te,stateAttributesMapping:Rv,props:ne})}),kv={value:()=>null},yC=c.forwardRef(function(t,n){const{className:o,render:r,children:s,placeholder:i,style:a,...l}=t,{store:u,valueRef:d}=Yt(),p=Ce(u,Ee.value),f=Ce(u,Ee.items),y=Ce(u,Ee.itemToStringLabel),m=Ce(u,Ee.hasSelectedValue),g=!m&&i!=null&&s==null,h=Ce(u,Ee.hasNullItemLabel,g),b={value:p,placeholder:!m};let v=null;return typeof s=="function"?v=s(p):s!=null?v=s:g&&!h?v=i:Array.isArray(p)?v=yv(p,f,y):v=Gd(p,f,y),Se("span",t,{state:b,ref:[n,d],props:[{children:v},l],stateAttributesMapping:kv})}),bC=c.forwardRef(function(t,n){const{render:o,className:r,style:s,...i}=t,{store:a}=Yt(),u={open:Ce(a,Ee.open)};return Se("span",t,{state:u,ref:n,props:[{"aria-hidden":!0,children:"▼"},i],stateAttributesMapping:Bi})}),vC=c.forwardRef(function(t,n){const{store:o}=Yt(),r=Ce(o,Ee.mounted),s=Ce(o,Ee.forceMount);return r||s?K.jsx(la,{ref:n,...t}):null}),qd=c.createContext(void 0);function Da(){const e=c.useContext(qd);if(!e)throw new Error(De(59));return e}function Wr(e,t){e&&Object.assign(e.style,t)}const Yd={position:"relative",maxHeight:"100%",overflowX:"hidden",overflowY:"auto"},Cv={position:"fixed"},xC=c.forwardRef(function(t,n){const{anchor:o,className:r,render:s,positionMethod:i,side:a,align:l,sideOffset:u,alignOffset:d,collisionBoundary:p="clipping-ancestors",collisionPadding:f,arrowPadding:y,sticky:m,disableAnchorTracking:g,alignItemWithTrigger:h=!0,collisionAvoidance:b=Qu,style:v,...w}=t,{store:x,listRef:S,labelsRef:R,alignItemWithTriggerActiveRef:C,selectedItemTextRef:k,valuesRef:P,initialValueRef:E,popupRef:O,setValue:I,floatingContext:N}=Yt(),D=Ce(x,Ee.open),M=Ce(x,Ee.mounted),z=Ce(x,Ee.modal),_=Ce(x,Ee.value),A=Ce(x,Ee.openMethod),F=Ce(x,Ee.positionerElement),T=Ce(x,Ee.triggerElement),L=Ce(x,Ee.isItemEqualToValue),j=Ce(x,Ee.transitionStatus),$=c.useRef(null),U=c.useRef(null),[q,V]=c.useState(h),Q=M&&q&&A!=="touch";!M&&q!==h&&V(h),c.useImperativeHandle(C,()=>Q),Nd((Q||z)&&D,A==="touch",F,T);const H=Ta({anchor:o,floatingRootContext:N,positionMethod:i,mounted:M,side:a,sideOffset:u,align:l,alignOffset:d,arrowPadding:y,collisionBoundary:p,collisionPadding:f,sticky:m,disableAnchorTracking:g??Q,collisionAvoidance:b,keepMounted:!0}),G=Q?"none":H.side,ue=Q?Cv:H.positionerStyles,ne={open:D,side:G,align:H.align,anchorHidden:H.anchorHidden};oe(()=>{x.set("popupSide",H.side)},[x,H.side]);const te=x.useStateSetter("positionerElement"),J=Oa(t,ne,{styles:ue,transitionStatus:j,props:w,refs:[n,te],hidden:!M,inert:!D}),ee=c.useRef(0),ie=le(ae=>{if(P.current.length===0)return;const he=ee.current;if(ee.current=ae.size,ae.size===he)return;const re=ke(Rt);if(he!==0&&!x.state.multiple&&_!==null&&Mr(P.current,_,L)===-1){const de=E.current,fe=de!=null&&Mr(P.current,de,L)!==-1?de:null;I(fe,re),fe===null&&(x.set("selectedIndex",null),k.current=null)}if(he!==0&&x.state.multiple&&Array.isArray(_)){const ge=_.filter(de=>Mr(P.current,de,L)!==-1);ge.length!==_.length&&(I(ge,re),ge.length===0&&(x.set("selectedIndex",null),k.current=null))}if(D&&Q){x.update({scrollUpArrowVisible:!1,scrollDownArrowVisible:!1});const ge={height:""};Wr(F,ge),Wr(O.current,ge)}}),xe=c.useMemo(()=>({...H,side:G,alignItemWithTriggerActive:Q,setControlledAlignItemWithTrigger:V,scrollUpArrowRef:$,scrollDownArrowRef:U}),[H,G,Q,V]);return K.jsx(ms,{elementsRef:S,labelsRef:R,onMapChange:ie,children:K.jsxs(qd.Provider,{value:xe,children:[M&&z&&K.jsx(Ia,{inert:gs(!D),cutout:T}),J]})})}),dr="base-ui-disable-scrollbar",Vo={className:dr,getElement(e){return K.jsx("style",{nonce:e,href:dr,precedence:"base-ui:low",children:`.${dr}{scrollbar-width:none}.${dr}::-webkit-scrollbar{display:none}`})}},Ev=c.createContext(void 0),Mv={disableStyleElements:!1};function _a(){return c.useContext(Ev)??Mv}const Pv={...Kr,...Gt},wC=c.forwardRef(function(t,n){const{render:o,className:r,style:s,finalFocus:i,...a}=t,{store:l,popupRef:u,onOpenChangeComplete:d,setOpen:p,valueRef:f,firstItemTextRef:y,selectedItemTextRef:m,multiple:g,handleScrollArrowVisibility:h,scrollHandlerRef:b,listRef:v,highlightItemOnHover:w,floatingContext:x}=Yt(),{side:S,align:R,alignItemWithTriggerActive:C,isPositioned:k,setControlledAlignItemWithTrigger:P}=Da(),E=Pa()!=null,O=bo(),{nonce:I,disableStyleElements:N}=_a(),D=Ce(l,Ee.id),M=Ce(l,Ee.open),z=Ce(l,Ee.openMethod),_=Ce(l,Ee.mounted),A=Ce(l,Ee.popupProps),F=Ce(l,Ee.transitionStatus),T=Ce(l,Ee.triggerElement),L=Ce(l,Ee.positionerElement),j=Ce(l,Ee.listElement),$=c.useRef(!1),U=c.useRef(!1),q=c.useRef({}),V=io(),Q=le(ne=>{if(!L||!u.current||!U.current)return;const te=L.style.top==="0px",J=L.style.bottom==="0px";if($.current||!C||!te&&!J){h(ne);return}const ee=fl(L),ie=Io(L.getBoundingClientRect().height,"y",ee),xe=Te(L),ae=He(L),he=ae.getComputedStyle(L),re=parseFloat(he.marginTop),ge=parseFloat(he.marginBottom),de=dl(ae.getComputedStyle(u.current)),ce=Math.min(xe.documentElement.clientHeight-re-ge,de),fe=ne.scrollTop,W=fr(ne);let Y=null;const se=be=>{L.style.height=`${be}px`},Z=te?W-fe:fe,X=Math.min(ie+Z,ce);if(Z<=Ot){const be=hn(Z,0,ce-ie);be>0&&se(ie+be),ne.scrollTop=te?W:0,ce-(ie+be)<=Ot&&($.current=!0),h(ne);return}if(ce-X>Ot)Y=te?1/0:0;else if(J&&fe<W){const be=ie+Z-ce;Y=fe-(Z-be)}const pe=Math.ceil(X);if(pe!==0&&se(pe),Y!=null){const be=hn(Y,0,fr(ne));Math.abs(ne.scrollTop-be)>Ot&&(ne.scrollTop=be)}pe>=ce-Ot&&($.current=!0),h(ne)});c.useImperativeHandle(b,()=>Q,[Q]),kt({open:M,ref:u,onComplete(){M&&(d==null||d(!0))}});const H={open:M,transitionStatus:F,side:S,align:R};oe(()=>{!L||!u.current||Object.keys(q.current).length||(q.current={top:L.style.top||"0",left:L.style.left||"0",right:L.style.right,height:L.style.height,bottom:L.style.bottom,minHeight:L.style.minHeight,maxHeight:L.style.maxHeight,marginTop:L.style.marginTop,marginBottom:L.style.marginBottom})},[u,L]),oe(()=>{M||C||(U.current=!1,$.current=!1,Wr(L,q.current))},[M,C,L,u]),oe(()=>{var J,ee;const ne=u.current;if(!M||!T||!L||!ne||C&&!k||l.state.transitionStatus==="ending")return;if(U.current=!0,ne.style.removeProperty("--transform-origin"),!C){V.request(()=>h(j||ne));return}const te=Tv(ne);try{let ie=m.current;ie!=null&&ie.isConnected||(ie=!Ee.hasSelectedValue(l.state)&&((J=y.current)!=null&&J.isConnected)?y.current:null);const xe=f.current,ae=He(L),he=ae.getComputedStyle(L),re=ae.getComputedStyle(ne),ge=Te(T),de=fl(T),ce=pr(T.getBoundingClientRect(),de),fe=pr(L.getBoundingClientRect(),de),W=ce.height,Y=j||ne,se=Y.scrollHeight,Z=parseFloat(re.borderBottomWidth),X=parseFloat(he.marginTop)||10,pe=parseFloat(he.marginBottom)||10,be=parseFloat(he.minHeight)||100,_e=dl(re),Ue=5,Ye=5,st=20,Le=ge.documentElement.clientHeight-X-pe,Je=ge.documentElement.clientWidth,ct=Le-ce.bottom+W;let Re,je=O==="rtl"?ce.right-fe.width:ce.left,qe=0;if(ie&&xe){const lt=pr(xe.getBoundingClientRect(),de);Re=pr(ie.getBoundingClientRect(),de),je=fe.left+(O==="rtl"?lt.right-Re.right:lt.left-Re.left);const ht=lt.top-ce.top+lt.height/2;qe=Re.top-fe.top+Re.height/2-ht}const Be=ct+qe+pe+Z;let Xe=Math.min(Le,Be);const pt=Le-X-pe,we=Be-Xe,Ae=Je-Ye;L.style.left=`${hn(je,Ue,Ae-fe.width)}px`,L.style.height=`${Xe}px`,L.style.maxHeight="none",L.style.marginTop=`${X}px`,L.style.marginBottom=`${pe}px`,ne.style.height="100%";const Qe=fr(Y),nt=we>=Qe-Ot;nt&&(Xe=Math.min(Le,fe.height)-(we-Qe));const yt=ce.top<st||ce.bottom>Le-st||Math.ceil(Xe)+Ot<Math.min(se,be),bt=(((ee=ae.visualViewport)==null?void 0:ee.scale)??1)!==1&&qt;if(yt||bt){Wr(L,q.current),P(!1);return}const Xt=Math.max(be,Xe);if(nt){const lt=Math.max(0,Le-Be);L.style.top=fe.height>=pt?"0":`${lt}px`,L.style.height=`${Xe}px`,Y.scrollTop=fr(Y)}else L.style.bottom="0",Y.scrollTop=we;if(Re){const lt=fe.top,ht=fe.height,Me=Re.top+Re.height/2,ze=hn(ht>0?(Me-lt)/ht*100:50,0,100);ne.style.setProperty("--transform-origin",`50% ${ze}%`)}(Xt===Le||Xe>=_e)&&($.current=!0),h(Y),w&&l.state.selectedIndex===null&&l.state.activeIndex===null&&v.current[0]!=null&&l.set("activeIndex",0)}finally{te()}},[l,M,L,T,f,y,m,u,h,C,P,V,j,v,w,O,k]),c.useEffect(()=>{if(!C||!L||!M)return;const ne=He(L);function te(J){p(!1,ke(ry,J))}return Pe(ne,"resize",te)},[p,C,L,M]);const G={...j?{role:"presentation","aria-orientation":void 0}:{role:"listbox","aria-multiselectable":g||void 0,id:`${D}-list`},onKeyDown(ne){E&&ps.has(ne.key)&&ne.stopPropagation()},onScroll(ne){j||Q(ne.currentTarget)},...C&&{style:j?{height:"100%"}:Yd},className:!j&&C?Vo.className:void 0},ue=Se("div",t,{ref:[n,u],state:H,stateAttributesMapping:Pv,props:[A,G,hs(F),a]});return K.jsxs(c.Fragment,{children:[!N&&Vo.getElement(I),K.jsx(fa,{context:x,modal:!1,disabled:!_,openInteractionType:z,returnFocus:i,restoreFocus:!0,children:ue})]})});function dl(e){const t=e.maxHeight;return t.endsWith("px")&&parseFloat(t)||1/0}function fr(e){return Na(e.scrollHeight,e.clientHeight)}function fl(e){return fd.getScale(e)}function Io(e,t,n){return e/n[t]}function pr(e,t){return Fo({x:Io(e.x,"x",t),y:Io(e.y,"y",t),width:Io(e.width,"x",t),height:Io(e.height,"y",t)})}const pl=[["transform","none"],["scale","1"],["translate","0 0"]];function Tv(e){const{style:t}=e,n={};for(const[o,r]of pl)n[o]=t.getPropertyValue(o),t.setProperty(o,r,"important");return()=>{for(const[o]of pl){const r=n[o];r?t.setProperty(o,r):t.removeProperty(o)}}}const SC=c.forwardRef(function(t,n){const{render:o,className:r,style:s,...i}=t,{store:a,scrollHandlerRef:l,multiple:u}=Yt(),{alignItemWithTriggerActive:d}=Da(),p=Ce(a,Ee.hasScrollArrows),f=Ce(a,Ee.openMethod),m={id:`${Ce(a,Ee.id)}-list`,role:"listbox","aria-multiselectable":u||void 0,onScroll(h){var b;(b=l.current)==null||b.call(l,h.currentTarget)},...d&&{style:Yd},className:p&&f!=="touch"?Vo.className:void 0},g=a.useStateSetter("listElement");return Se("div",t,{ref:[n,g],props:[m,i]})}),Xd=c.createContext(void 0);function La(){const e=c.useContext(Xd);if(!e)throw new Error(De(57));return e}const RC=c.memo(c.forwardRef(function(t,n){const{render:o,className:r,style:s,value:i=null,label:a,disabled:l=!1,nativeButton:u=!1,...d}=t,p=c.useRef(null),f=yo({guess:!0,label:a,textRef:p}),{store:y,itemProps:m,setOpen:g,setValue:h,selectionRef:b,typingRef:v,valuesRef:w,multiple:x,selectedItemTextRef:S,disabled:R,readOnly:C}=Yt(),k=R||l,P=Ce(y,Ee.isActive,f.index),E=Ce(y,Ee.open),O=Ce(y,Ee.isSelected,i),I=Ce(y,Ee.isSelectedByFocus,f.index),N=Ce(y,Ee.isItemEqualToValue),D=f.index,M=c.useRef(null);oe(()=>{const V=w.current;return V[D]=i,()=>{delete V[D]}},[D,i,w]),oe(()=>{const V=y.state.value;let Q=V;x&&Array.isArray(V)&&(Q=V.length>0?V[V.length-1]:void 0),Q!==void 0&&uo(i,Q,N)&&(y.set("selectedIndex",D),p.current&&(S.current=p.current))},[D,x,N,y,i,S]);const z=c.useRef("mouse"),_=c.useRef(!1),{getButtonProps:A,buttonRef:F}=Tt({disabled:k,focusableWhenDisabled:!0,native:u,composite:!0}),T={disabled:k,selected:O,highlighted:P};function L(V){if(R||C)return;const Q=y.state.value;if(x){const H=Array.isArray(Q)?Q:[],G=O?gv(H,i,N):[...H,i];h(G,ke(An,V))}else h(i,ke(An,V)),g(!1,ke(An,V))}function j(){b.current.dragY=0}const $={role:"option","aria-selected":O,tabIndex:E&&P?0:-1,onKeyDown(V){y.set("activeIndex",D),V.key===" "&&v.current&&V.preventDefault()},onClick(V){const Q=z.current!=="touch",H=V.nativeEvent.pointerType,G=Q&&ea(V.nativeEvent)&&(H!==void 0||P),ue=Q&&!G&&!_.current;_.current=!1,!(k||ue)&&L(V.nativeEvent)},onPointerEnter(V){z.current=V.pointerType},onPointerMove(V){if(V.pointerType==="mouse"&&V.buttons===1){const Q=b.current;Q.dragY+=V.movementY,Q.dragY**2>=64&&(Q.allowUnselectedMouseUp=!0)}},onPointerDown(V){z.current=V.pointerType,_.current=!0,j()},onMouseUp(){var H;if(j(),k||z.current==="touch"||_.current)return;const V=!b.current.allowSelectedMouseUp&&O,Q=!b.current.allowUnselectedMouseUp&&!O;V||Q||(_.current=!0,(H=M.current)==null||H.click(),_.current=!1)}},U=Se("div",t,{ref:[F,n,f.ref,M],state:T,props:[m,$,d,A]}),q=c.useMemo(()=>({selected:O,index:D,textRef:p,selectedByFocus:I}),[O,D,p,I]);return K.jsx(Xd.Provider,{value:q,children:U})})),kC=c.forwardRef(function(t,n){const{selected:o}=La();return t.keepMounted||o?K.jsx(Iv,{...t,ref:n}):null}),Iv=c.memo(c.forwardRef((e,t)=>{const{render:n,className:o,style:r,keepMounted:s,...i}=e,{selected:a}=La(),l=c.useRef(null),{transitionStatus:u,setMounted:d}=ln(a),f=Se("span",e,{ref:[t,l],state:{selected:a,transitionStatus:u},props:[{"aria-hidden":!0,children:"✔️"},i],stateAttributesMapping:Gt});return kt({open:a,ref:l,onComplete(){a||d(!1)}}),f})),CC=c.memo(c.forwardRef(function(t,n){const{index:o,textRef:r,selectedByFocus:s}=La(),{firstItemTextRef:i,selectedItemTextRef:a}=Yt(),{render:l,className:u,style:d,...p}=t,f=c.useCallback(m=>{m&&(o===0&&(i.current=m),s&&(a.current=m))},[i,a,o,s]);return Se("div",t,{ref:[f,n,r],props:p})})),Kd=c.forwardRef(function(t,n){const{render:o,className:r,style:s,direction:i,keepMounted:a,...l}=t,u=i==="up",{store:d,popupRef:p,listRef:f,handleScrollArrowVisibility:y,scrollArrowsMountedCountRef:m}=Yt(),{side:g,scrollDownArrowRef:h,scrollUpArrowRef:b}=Da(),v=u?Ee.scrollUpArrowVisible:Ee.scrollDownArrowVisible,w=Ce(d,v),x=Ce(d,Ee.openMethod),S=w&&x!=="touch",R=Ge(),C=u?b:h,{mounted:k,transitionStatus:P,setMounted:E}=ln(S);oe(()=>(m.current+=1,d.set("hasScrollArrows",!0),()=>{m.current=Math.max(0,m.current-1),m.current===0&&d.set("hasScrollArrows",!1)}),[d,m]),kt({open:S,ref:C,onComplete(){S||E(!1)}});const N=Se("div",t,{ref:[n,C],state:{direction:i,visible:S,side:g,transitionStatus:P},props:[{"aria-hidden":!0,children:u?"▲":"▼",style:{position:"absolute"},onMouseMove(M){if(M.movementX===0&&M.movementY===0||R.isStarted())return;d.set("activeIndex",null);function z(){var j;const _=d.state.listElement??p.current;if(!_)return;d.set("activeIndex",null),y(_);const A=Na(_.scrollHeight,_.clientHeight),F=fo(_.scrollTop,A),T=F===(u?0:A),L=f.current;if(F!==_.scrollTop&&(_.scrollTop=F),T){R.clear();return}if(L.length>0){const $=((j=C.current)==null?void 0:j.offsetHeight)||0;_.scrollTop=Ov(L,u,F,_.clientHeight,$,A)}R.start(40,z)}R.start(40,z)},onMouseLeave(){R.clear()}},l],stateAttributesMapping:Gt});return k||a?N:null});function Ov(e,t,n,o,r,s){if(t){let d=0;const p=n+r-Ot;for(let m=0;m<e.length;m+=1){const g=e[m];if(g&&g.offsetTop>=p){d=m;break}}const f=Math.max(0,d-1),y=e[f];return f<d&&y?fo(y.offsetTop-r,s):0}let i=e.length-1;const a=n+o-r+Ot;for(let d=0;d<e.length;d+=1){const p=e[d];if(p&&p.offsetTop+p.offsetHeight>a){i=Math.max(0,d-1);break}}const l=Math.min(e.length-1,i+1),u=e[l];return l>i&&u?fo(u.offsetTop+u.offsetHeight-o+r,s):s}const EC=c.forwardRef(function(t,n){return K.jsx(Kd,{...t,ref:n,direction:"down"})}),MC=c.forwardRef(function(t,n){return K.jsx(Kd,{...t,ref:n,direction:"up"})}),Av=c.createContext(void 0),PC=c.forwardRef(function(t,n){const{render:o,className:r,style:s,...i}=t,[a,l]=c.useState(),u=c.useMemo(()=>({labelId:a,setLabelId:l}),[a,l]),d=Se("div",t,{ref:n,props:[{role:"group","aria-labelledby":a},i]});return K.jsx(Av.Provider,{value:u,children:d})}),Zd=c.createContext(void 0);function Mn(e){const t=c.useContext(Zd);if(!e&&t===void 0)throw new Error(De(27));return t}const TC=c.forwardRef(function(t,n){const{render:o,className:r,style:s,forceRender:i=!1,...a}=t,l=Mn(),u=l.useState("open"),d=l.useState("nested"),p=l.useState("mounted"),f=l.useState("transitionStatus");return Se("div",t,{state:{open:u,transitionStatus:f},ref:[l.context.backdropRef,n],stateAttributesMapping:Wi,props:[{role:"presentation",hidden:!p,style:{userSelect:"none",WebkitUserSelect:"none"}},a],enabled:i||!d})}),IC=c.forwardRef(function(t,n){const{render:o,className:r,style:s,disabled:i=!1,nativeButton:a=!0,...l}=t,u=Mn(),d=u.useState("open"),{getButtonProps:p,buttonRef:f}=Tt({disabled:i,native:a}),y={disabled:i};function m(g){d&&u.setOpen(!1,ke(oy,g.nativeEvent))}return Se("button",t,{state:y,ref:[n,f],props:[{onClick:m},l,p]})}),OC=c.forwardRef(function(t,n){const{render:o,className:r,style:s,id:i,...a}=t,l=Mn(),u=tt(i);return l.useSyncedValueWithCleanup("descriptionElementId",u),Se("p",t,{ref:n,props:[{id:u},a]})}),Qd=c.createContext(void 0);function Nv(){const e=c.useContext(Qd);if(e===void 0)throw new Error(De(26));return e}const Dv={...Kr,...Gt,nestedDialogOpen(e){return e?{"data-nested-dialog-open":""}:null}},AC=c.forwardRef(function(t,n){const{render:o,className:r,style:s,finalFocus:i,initialFocus:a,...l}=t,u=Mn(),d=u.useState("descriptionElementId"),p=u.useState("disablePointerDismissal"),f=u.useState("floatingRootContext"),y=u.useState("popupProps"),m=u.useState("modal"),g=u.useState("mounted"),h=u.useState("nested"),b=u.useState("nestedOpenDialogCount"),v=u.useState("open"),w=u.useState("openMethod"),x=u.useState("titleElementId"),S=u.useState("transitionStatus"),R=u.useState("role"),C=f.useState("floatingId");Nv(),kt({open:v,ref:u.context.popupRef,onComplete(){var N,D;v&&((D=(N=u.context).onOpenChangeComplete)==null||D.call(N,!0))}});const k=a===void 0?sb(u.context.popupRef):a,P=b>0,E=u.useStateSetter("popupElement"),I=Se("div",t,{state:{open:v,nested:h,transitionStatus:S,nestedDialogOpen:P},props:[y,{id:C,"aria-labelledby":x,"aria-describedby":d,role:R,...ds,hidden:!g,onKeyDown(N){ps.has(N.key)&&N.stopPropagation()},style:{"--nested-dialogs":b}},l],ref:[n,u.context.popupRef,E],stateAttributesMapping:Dv});return K.jsx(fa,{context:f,openInteractionType:w,disabled:!g,closeOnFocusOut:!p,initialFocus:k,returnFocus:i,modal:m!==!1,restoreFocus:"popup",children:I})}),NC=c.forwardRef(function(t,n){const{keepMounted:o=!1,...r}=t,s=Mn(),i=s.useState("mounted"),a=s.useState("modal"),l=s.useState("open");return i||o?K.jsx(Qd.Provider,{value:o,children:K.jsxs(la,{ref:n,...r,children:[i&&a===!0&&K.jsx(Ia,{ref:s.context.internalBackdropRef,inert:gs(!l)}),t.children]})}):null});function _v({store:e,parentContext:t,isDrawer:n}){const o=e.useState("open"),r=e.useState("disablePointerDismissal"),s=e.useState("modal"),i=e.useState("popupElement"),a=e.useState("floatingRootContext"),[l,u]=c.useState(0),[d,p]=c.useState(0),f=l===0,y=as(a,{outsidePressEvent(){return e.context.internalBackdropRef.current||e.context.backdropRef.current?"intentional":{mouse:s==="trap-focus"?"sloppy":"intentional",touch:"sloppy"}},outsidePress(m){if(!e.context.outsidePressEnabledRef.current||"button"in m&&m.button!==0)return!1;if("touches"in m){if(m.type==="touchend"){if(m.changedTouches.length!==1||m.touches.length!==0)return!1}else if(m.touches.length!==1)return!1}const g=et(m);if(f&&!r){if(s){const h=e.context.internalBackdropRef.current,b=e.context.backdropRef.current;return h||b?h===g||b===g||ve(g,i)&&!(g!=null&&g.hasAttribute("data-base-ui-portal")):!0}return!0}return!1},escapeKey:f});return Ad(o&&s===!0,i),e.useContextCallback("onNestedDialogOpen",(m,g)=>{u(m),p(g)}),oe(()=>(t!=null&&t.onNestedDialogOpen&&(o?t.onNestedDialogOpen(l+1,d+(n?1:0)):t.onNestedDialogOpen(0,0)),()=>{t!=null&&t.onNestedDialogOpen&&o&&t.onNestedDialogOpen(0,0)}),[n,o,l,d,t]),wa(e,{activeTriggerProps:y.reference,inactiveTriggerProps:y.trigger,popupProps:y.floating,nestedOpenDialogCount:l,nestedOpenDrawerCount:d}),null}const Lv={...ka,modal:e=>e.modal,nested:e=>e.nested,nestedOpenDialogCount:e=>e.nestedOpenDialogCount,nestedOpenDrawerCount:e=>e.nestedOpenDrawerCount,disablePointerDismissal:e=>e.disablePointerDismissal,openMethod:e=>e.openMethod,descriptionElementId:e=>e.descriptionElementId,titleElementId:e=>e.titleElementId,viewportElement:e=>e.viewportElement,role:e=>e.role};class Fv extends Uo{constructor(n,o,r){const s=new Go,i=zv(n,s,o,r);super(i,Vv(s),Lv);Ne(this,"setOpen",(n,o)=>{var s,i;if(o.preventUnmountOnClose=()=>{this.set("preventUnmountingOnClose",!0)},!n&&o.trigger==null&&this.state.activeTriggerId!=null&&(o.trigger=this.state.activeTriggerElement??void 0),(i=(s=this.context).onOpenChange)==null||i.call(s,n,o),o.isCanceled)return;this.state.floatingRootContext.dispatchOpenChange(n,o);const r={open:n};ya(r,n,o.trigger),this.update(r)})}}function zv(e,t,n,o=!1){const r={...Sa(),modal:!0,disablePointerDismissal:!1,viewportElement:null,descriptionElementId:void 0,titleElementId:void 0,openMethod:null,nested:!1,nestedOpenDialogCount:0,nestedOpenDrawerCount:0,role:"dialog",...e};return r.floatingRootContext=xd(t,n,o),r}function Vv(e){return{popupRef:c.createRef(),backdropRef:c.createRef(),internalBackdropRef:c.createRef(),outsidePressEnabledRef:{current:!0},triggerElements:e,onOpenChange:void 0,onOpenChangeComplete:void 0}}function Jd(e,t){const{children:n,open:o,defaultOpen:r=!1,onOpenChange:s,onOpenChangeComplete:i,disablePointerDismissal:a=!1,modal:l=!0,actionsRef:u,handle:d,triggerId:p,defaultTriggerId:f=null}=t,y=e==="drawer",m=e==="alert-dialog",g=m?!0:l,h=m||a,b=m?"alertdialog":"dialog",v=Mn(!0),w=v!=null,x={modal:g,disablePointerDismissal:h,nested:w,role:b},S=bd((O,I)=>new Fv({open:r,openProp:o,activeTriggerId:f,triggerIdProp:p,...x},O,I),!0);S.useControlledProp("openProp",o),S.useControlledProp("triggerIdProp",p),S.useSyncedValues(x),S.useContextCallback("onOpenChange",s),S.useContextCallback("onOpenChangeComplete",i);const R=S.useState("open"),C=S.useState("mounted"),k=S.useState("payload");cb(S,R),va(S);const{forceUnmount:P}=xa(R,S);c.useImperativeHandle(u,()=>({unmount:P,close:()=>S.setOpen(!1,ke(Gi))}),[P,S]);const E=R||C;return K.jsxs(Zd.Provider,{value:S,children:[d&&K.jsx(ma,{handle:d,store:S}),E&&K.jsx(_v,{store:S,parentContext:v==null?void 0:v.context,isDrawer:y}),typeof n=="function"?n({payload:k}):n]})}function DC(e){return Jd("dialog",e)}const _C=c.forwardRef(function(t,n){const{render:o,className:r,style:s,id:i,...a}=t,l=Mn(),u=tt(i);return l.useSyncedValueWithCleanup("titleElementId",u),Se("h2",t,{ref:n,props:[{id:u},a]})}),$v=c.forwardRef(function(t,n){const{render:o,className:r,style:s,disabled:i=!1,nativeButton:a=!0,id:l,payload:u,handle:d,...p}=t,f=Mn(!0),m=Ca(d)??f;if(!m)throw new Error(De(79));const g=tt(l),h=m.useState("floatingRootContext"),b=m.useState("isOpenedByTrigger",g),v=m.useState("triggerPopupId",g),w=c.useRef(null),{registerTrigger:x,isMountedByThisTrigger:S}=ba(g,w,m,{payload:u}),{getButtonProps:R,buttonRef:C}=Tt({disabled:i,native:a}),k=pa(h),P=Fd(()=>m.select("open"),I=>{m.set("openMethod",I)}),E={disabled:i,open:b},O=m.useState("triggerProps",S);return Se("button",t,{state:E,ref:[C,n,x,w],props:[k.reference,O,P,{[Zu]:"",id:g,"aria-haspopup":"dialog","aria-expanded":b,"aria-controls":v},p,R],stateAttributesMapping:Bi})});function LC(e){return Se(e.defaultTagName??"div",e,e)}var Hv=Object.defineProperty,xo=(e,t)=>Hv(e,"name",{value:t,configurable:!0}),ef=!!(typeof window<"u"&&window.document&&window.document.createElement);function Nn(e,t,{checkForDefaultPrevented:n=!0}={}){return xo(function(r){if(e==null||e(r),n===!1||!r||!r.defaultPrevented)return t==null?void 0:t(r)},"handleEvent")}xo(Nn,"composeEventHandlers");function jv(e){var t;if(!ef)throw new Error("Cannot access window outside of the DOM");return((t=e==null?void 0:e.ownerDocument)==null?void 0:t.defaultView)??window}xo(jv,"getOwnerWindow");function bi(e){if(!ef)throw new Error("Cannot access document outside of the DOM");return(e==null?void 0:e.ownerDocument)??document}xo(bi,"getOwnerDocument");function tf(e,t=!1){const{activeElement:n}=bi(e);if(!(n!=null&&n.nodeName))return null;if(nf(n)&&n.contentDocument)return tf(n.contentDocument.body,t);if(t){const o=n.getAttribute("aria-activedescendant");if(o){const r=bi(n).getElementById(o);if(r)return r}}return n}xo(tf,"getActiveElement");function nf(e){return e.tagName==="IFRAME"}xo(nf,"isFrame");var Bv=Object.defineProperty,Fa=(e,t)=>Bv(e,"name",{value:t,configurable:!0});function vi(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}Fa(vi,"setRef");function of(...e){return t=>{let n=!1;const o=e.map(r=>{const s=vi(r,t);return!n&&typeof s=="function"&&(n=!0),s});if(n)return()=>{for(let r=0;r<o.length;r++){const s=o[r];typeof s=="function"?s():vi(e[r],null)}}}}Fa(of,"composeRefs");function wo(...e){return c.useCallback(of(...e),e)}Fa(wo,"useComposedRefs");var Wv=Object.defineProperty,Et=(e,t)=>Wv(e,"name",{value:t,configurable:!0});function Uv(e,t){const n=c.createContext(t);n.displayName=e+"Context";const o=Et(s=>{const{children:i,...a}=s,l=c.useMemo(()=>a,Object.values(a));return K.jsx(n.Provider,{value:l,children:i})},"Provider");o.displayName=e+"Provider";function r(s,i={}){const{optional:a=!1}=i,l=c.useContext(n);if(l)return l;if(t!==void 0)return t;if(!a)throw new Error(`\`${s}\` must be used within \`${e}\``)}return Et(r,"useContext"),[o,r]}Et(Uv,"createContext");function rf(e,t=[]){let n=[];function o(s,i){const a=c.createContext(i);a.displayName=s+"Context";const l=n.length;n=[...n,i];const u=Et(p=>{var b;const{scope:f,children:y,...m}=p,g=((b=f==null?void 0:f[e])==null?void 0:b[l])||a,h=c.useMemo(()=>m,Object.values(m));return K.jsx(g.Provider,{value:h,children:y})},"Provider");u.displayName=s+"Provider";function d(p,f,y={}){var b;const{optional:m=!1}=y,g=((b=f==null?void 0:f[e])==null?void 0:b[l])||a,h=c.useContext(g);if(h)return h;if(i!==void 0)return i;if(!m)throw new Error(`\`${p}\` must be used within \`${s}\``)}return Et(d,"useContext"),[u,d]}Et(o,"createContext");const r=Et(()=>{const s=n.map(i=>c.createContext(i));return Et(function(a){const l=(a==null?void 0:a[e])||s;return c.useMemo(()=>({[`__scope${e}`]:{...a,[e]:l}}),[a,l])},"useScope")},"createScope");return r.scopeName=e,[o,sf(r,...t)]}Et(rf,"createContextScope");function sf(...e){const t=e[0];if(e.length===1)return t;const n=Et(()=>{const o=e.map(r=>({useScope:r(),scopeName:r.scopeName}));return Et(function(s){const i=o.reduce((a,{useScope:l,scopeName:u})=>{const p=l(s)[`__scope${u}`];return{...a,...p}},{});return c.useMemo(()=>({[`__scope${t.scopeName}`]:i}),[i])},"useComposedScopes")},"createScope");return n.scopeName=t.scopeName,n}Et(sf,"composeContextScopes");var po=globalThis!=null&&globalThis.document?c.useLayoutEffect:()=>{},Gv=Object.defineProperty,qv=(e,t)=>Gv(e,"name",{value:t,configurable:!0}),Yv=mo[" useId ".trim().toString()]||(()=>{}),Xv=0;function Pr(e){const[t,n]=c.useState(Yv());return po(()=>{e||n(o=>o??String(Xv++))},[e]),e||(t?`radix-${t}`:"")}qv(Pr,"useId");var Kv=Object.defineProperty,Zv=(e,t)=>Kv(e,"name",{value:t,configurable:!0}),hl=mo[" useEffectEvent ".trim().toString()],gl=mo[" useInsertionEffect ".trim().toString()];function af(e){if(typeof hl=="function")return hl(e);const t=c.useRef(()=>{throw new Error("Cannot call an event handler while rendering.")});return typeof gl=="function"?gl(()=>{t.current=e}):po(()=>{t.current=e}),c.useMemo(()=>((...n)=>{var o;return(o=t.current)==null?void 0:o.call(t,...n)}),[])}Zv(af,"useEffectEvent");var Qv=Object.defineProperty,Yo=(e,t)=>Qv(e,"name",{value:t,configurable:!0}),Jv=mo[" useInsertionEffect ".trim().toString()]||po;function cf({prop:e,defaultProp:t,onChange:n=Yo(()=>{},"onChange"),caller:o}){const[r,s,i]=lf({defaultProp:t,onChange:n}),a=e!==void 0,l=a?e:r,u=c.useCallback(d=>{var p;if(a){const f=uf(d)?d(e):d;f!==e&&((p=i.current)==null||p.call(i,f))}else s(d)},[a,e,s,i]);return[l,u]}Yo(cf,"useControllableState");function lf({defaultProp:e,onChange:t}){const[n,o]=c.useState(e),r=c.useRef(n),s=c.useRef(t);return Jv(()=>{s.current=t},[t]),c.useEffect(()=>{var i;r.current!==n&&((i=s.current)==null||i.call(s,n),r.current=n)},[n,r]),[n,o,s]}Yo(lf,"useUncontrolledState");function uf(e){return typeof e=="function"}Yo(uf,"isFunction");var ml=Symbol("RADIX:SYNC_STATE");function ex(e,t,n,o){const{prop:r,defaultProp:s,onChange:i,caller:a}=t,l=r!==void 0,u=af(i),d=[{...n,state:s}];o&&d.push(o);const[p,f]=c.useReducer((h,b)=>{if(b.type===ml)return{...h,state:b.state};const v=e(h,b);return l&&!Object.is(v.state,h.state)&&u(v.state),v},...d),y=p.state,m=c.useRef(y);c.useEffect(()=>{m.current!==y&&(m.current=y,l||u(y))},[y,m,l]);const g=c.useMemo(()=>r!==void 0?{...p,state:r}:p,[p,r]);return c.useEffect(()=>{l&&!Object.is(r,p.state)&&f({type:ml,state:r})},[r,p.state,l]),[g,f]}Yo(ex,"useControllableStateReducer");var tx=Object.defineProperty,Ft=(e,t)=>tx(e,"name",{value:t,configurable:!0});function za(e){const t=c.forwardRef((n,o)=>{let{children:r,...s}=n,i=null,a=!1;const l=[];xi(r)&&typeof hr=="function"&&(r=hr(r._payload)),c.Children.forEach(r,f=>{var y;if(hf(f)){a=!0;const m=f;let g="child"in m.props?m.props.child:m.props.children;xi(g)&&typeof hr=="function"&&(g=hr(g._payload)),i=ox(m,g),l.push((y=i==null?void 0:i.props)==null?void 0:y.children)}else l.push(f)}),i?i=c.cloneElement(i,void 0,l):!a&&c.Children.count(r)===1&&c.isValidElement(r)&&(i=r);const u=i?pf(i):void 0,d=wo(o,u);if(!i){if(r||r===0)throw new Error(a?ix(e):sx(e));return r}const p=ff(s,i.props??{});return i.type!==c.Fragment&&(p.ref=o?d:u),c.cloneElement(i,p)});return t.displayName=`${e}.Slot`,t}Ft(za,"createSlot");var df=Symbol.for("radix.slottable");function nx(e){const t=Ft(n=>"child"in n?n.children(n.child):n.children,"Slottable");return t.displayName=`${e}.Slottable`,t.__radixId=df,t}Ft(nx,"createSlottable");var ox=Ft((e,t)=>{if("child"in e.props){const n=e.props.child;return c.isValidElement(n)?c.cloneElement(n,void 0,e.props.children(n.props.children)):null}return c.isValidElement(t)?t:null},"getSlottableElementFromSlottable");function ff(e,t){const n={...t};for(const o in t){const r=e[o],s=t[o];/^on[A-Z]/.test(o)?r&&s?n[o]=(...a)=>{const l=s(...a);return r(...a),l}:r&&(n[o]=r):o==="style"?n[o]={...r,...s}:o==="className"&&(n[o]=[r,s].filter(Boolean).join(" "))}return{...e,...n}}Ft(ff,"mergeProps");function pf(e){var o,r;let t=(o=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:o.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(r=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}Ft(pf,"getElementRef");function hf(e){return c.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===df}Ft(hf,"isSlottable");var rx=Symbol.for("react.lazy");function xi(e){return e!=null&&typeof e=="object"&&"$$typeof"in e&&e.$$typeof===rx&&"_payload"in e&&gf(e._payload)}Ft(xi,"isLazyComponent");function gf(e){return typeof e=="object"&&e!==null&&"then"in e}Ft(gf,"isPromiseLike");var sx=Ft(e=>`${e} failed to slot onto its children. Expected a single React element child or \`Slottable\`.`,"createSlotError"),ix=Ft(e=>`${e} failed to slot onto its \`Slottable\`. Expected \`Slottable\` to receive a single React element child.`,"createSlottableError"),hr=mo[" use ".trim().toString()],ax=Object.defineProperty,cx=(e,t)=>ax(e,"name",{value:t,configurable:!0}),lx=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],Rs=lx.reduce((e,t)=>{const n=za(`Primitive.${t}`),o=c.forwardRef((r,s)=>{const{asChild:i,...a}=r,l=i?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),K.jsx(l,{...a,ref:s})});return o.displayName=`Primitive.${t}`,{...e,[t]:o}},{});function mf(e,t){e&&At.flushSync(()=>e.dispatchEvent(t))}cx(mf,"dispatchDiscreteCustomEvent");var ux=Object.defineProperty,dx=(e,t)=>ux(e,"name",{value:t,configurable:!0});function ho(e){const t=c.useRef(e);return c.useEffect(()=>{t.current=e}),c.useMemo(()=>((...n)=>{var o;return(o=t.current)==null?void 0:o.call(t,...n)}),[])}dx(ho,"useCallbackRef");var fx=Object.defineProperty,it=(e,t)=>fx(e,"name",{value:t,configurable:!0}),wi="dismissableLayer.update",px="dismissableLayer.pointerDownOutside",hx="dismissableLayer.focusOutside",yl,yf=c.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set,dismissableSurfaces:new Set}),gx=c.forwardRef(it(function(t,n){const{disableOutsidePointerEvents:o=!1,deferPointerDownOutside:r=!1,onEscapeKeyDown:s,onPointerDownOutside:i,onFocusOutside:a,onInteractOutside:l,onDismiss:u,...d}=t,p=c.useContext(yf),[f,y]=c.useState(null),m=(f==null?void 0:f.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,g]=c.useState({}),h=wo(n,y),b=Array.from(p.layers),[v]=[...p.layersWithOutsidePointerEventsDisabled].slice(-1),w=v?b.indexOf(v):-1,x=f?b.indexOf(f):-1,S=p.layersWithOutsidePointerEventsDisabled.size>0,R=x>=w,C=c.useRef(!1),k=vf(I=>{i==null||i(I),l==null||l(I),I.defaultPrevented||u==null||u()},{ownerDocument:m,deferPointerDownOutside:r,isDeferredPointerDownOutsideRef:C,dismissableSurfaces:p.dismissableSurfaces,shouldHandlePointerDownOutside:c.useCallback(I=>{if(!(I instanceof Node))return!1;const N=[...p.branches].some(D=>D.contains(I));return R&&!N},[p.branches,R])}),P=xf(I=>{if(r&&C.current)return;const N=I.target;[...p.branches].some(M=>M.contains(N))||(a==null||a(I),l==null||l(I),I.defaultPrevented||u==null||u())},m),E=f?x===b.length-1:!1,O=ho(I=>{I.key==="Escape"&&(s==null||s(I),!I.defaultPrevented&&u&&(I.preventDefault(),u()))});return c.useEffect(()=>{if(E)return m.addEventListener("keydown",O,{capture:!0}),()=>m.removeEventListener("keydown",O,{capture:!0})},[m,E,O]),c.useEffect(()=>{if(f)return o&&(p.layersWithOutsidePointerEventsDisabled.size===0&&(yl=m.body.style.pointerEvents,m.body.style.pointerEvents="none"),p.layersWithOutsidePointerEventsDisabled.add(f)),p.layers.add(f),Si(),()=>{o&&(p.layersWithOutsidePointerEventsDisabled.delete(f),p.layersWithOutsidePointerEventsDisabled.size===0&&(m.body.style.pointerEvents=yl))}},[f,m,o,p]),c.useEffect(()=>()=>{f&&(p.layers.delete(f),p.layersWithOutsidePointerEventsDisabled.delete(f),Si())},[f,p]),c.useEffect(()=>{const I=it(()=>g({}),"handleUpdate");return document.addEventListener(wi,I),()=>document.removeEventListener(wi,I)},[]),K.jsx(Rs.div,{...d,ref:h,style:{pointerEvents:S?R?"auto":"none":void 0,...t.style},onFocusCapture:Nn(t.onFocusCapture,P.onFocusCapture),onBlurCapture:Nn(t.onBlurCapture,P.onBlurCapture),onPointerDownCapture:Nn(t.onPointerDownCapture,k.onPointerDownCapture)})},"DismissableLayer"));function bf(){const e=c.useContext(yf),[t,n]=c.useState(null);return c.useEffect(()=>{if(t)return e.dismissableSurfaces.add(t),()=>{e.dismissableSurfaces.delete(t)}},[t,e.dismissableSurfaces]),n}it(bf,"useDismissableLayerSurface");var mx=it(()=>!0,"IS_TRUE");function vf(e,t){const{ownerDocument:n=globalThis==null?void 0:globalThis.document,deferPointerDownOutside:o=!1,isDeferredPointerDownOutsideRef:r,dismissableSurfaces:s,shouldHandlePointerDownOutside:i=mx}=t,a=ho(e),l=c.useRef(!1),u=c.useRef(!1),d=c.useRef(new Map),p=c.useRef(()=>{});return c.useEffect(()=>{function f(){u.current=!1,r.current=!1,d.current.clear()}it(f,"resetOutsideInteraction");function y(){return Array.from(d.current.values()).some(Boolean)}it(y,"isOutsideInteractionIntercepted");function m(w){if(!u.current)return;const x=w.target;x instanceof Node&&[...s].some(R=>R.contains(x))||d.current.set(w.type,!0),w.type==="click"&&window.setTimeout(()=>{u.current&&p.current()},0)}it(m,"handleInteractionCapture");function g(w){u.current&&d.current.set(w.type,!1)}it(g,"handleInteractionBubble");const h=it(w=>{if(w.target&&!l.current){let x=function(){n.removeEventListener("click",p.current);const R=y();f(),R||Va(px,a,S,{discrete:!0})};if(it(x,"handleAndDispatchPointerDownOutsideEvent"),!i(w.target)){n.removeEventListener("click",p.current),f(),l.current=!1;return}const S={originalEvent:w};u.current=!0,r.current=o&&w.button===0,d.current.clear(),!o||w.button!==0?x():(n.removeEventListener("click",p.current),p.current=x,n.addEventListener("click",p.current,{once:!0}))}else n.removeEventListener("click",p.current),f();l.current=!1},"handlePointerDown"),b=["pointerup","mousedown","mouseup","touchstart","touchend","click"];for(const w of b)n.addEventListener(w,m,!0),n.addEventListener(w,g);const v=window.setTimeout(()=>{n.addEventListener("pointerdown",h)},0);return()=>{window.clearTimeout(v),n.removeEventListener("pointerdown",h),n.removeEventListener("click",p.current);for(const w of b)n.removeEventListener(w,m,!0),n.removeEventListener(w,g)}},[n,a,o,r,s,i]),{onPointerDownCapture:it(()=>l.current=!0,"onPointerDownCapture")}}it(vf,"usePointerDownOutside");function xf(e,t=globalThis==null?void 0:globalThis.document){const n=ho(e),o=c.useRef(!1);return c.useEffect(()=>{const r=it(s=>{s.target&&!o.current&&Va(hx,n,{originalEvent:s},{discrete:!1})},"handleFocus");return t.addEventListener("focusin",r),()=>t.removeEventListener("focusin",r)},[t,n]),{onFocusCapture:it(()=>o.current=!0,"onFocusCapture"),onBlurCapture:it(()=>o.current=!1,"onBlurCapture")}}it(xf,"useFocusOutside");function Si(){const e=new CustomEvent(wi);document.dispatchEvent(e)}it(Si,"dispatchUpdate");function Va(e,t,n,{discrete:o}){const r=n.originalEvent.target,s=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&r.addEventListener(e,t,{once:!0}),o?mf(r,s):r.dispatchEvent(s)}it(Va,"handleAndDispatchCustomEvent");var yx=Object.defineProperty,gt=(e,t)=>yx(e,"name",{value:t,configurable:!0}),Us="focusScope.autoFocusOnMount",Gs="focusScope.autoFocusOnUnmount",bl={bubbles:!1,cancelable:!0},bx=c.forwardRef(gt(function(t,n){const{loop:o=!1,trapped:r=!1,onMountAutoFocus:s,onUnmountAutoFocus:i,...a}=t,[l,u]=c.useState(null),d=ho(s),p=ho(i),f=c.useRef(null),y=wo(n,u),m=c.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;c.useEffect(()=>{if(r){let h=function(x){if(m.paused||!l)return;const S=x.target;l.contains(S)?f.current=S:Qt(f.current,{select:!0})},b=function(x){if(m.paused||!l)return;const S=x.relatedTarget;S!==null&&(l.contains(S)||Qt(f.current,{select:!0}))},v=function(x){if(document.activeElement===document.body)for(const R of x)R.removedNodes.length>0&&Qt(l)};gt(h,"handleFocusIn"),gt(b,"handleFocusOut"),gt(v,"handleMutations"),document.addEventListener("focusin",h),document.addEventListener("focusout",b);const w=new MutationObserver(v);return l&&w.observe(l,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",h),document.removeEventListener("focusout",b),w.disconnect()}}},[r,l,m.paused]),c.useEffect(()=>{if(l){vl.add(m);const h=document.activeElement;if(!l.contains(h)){const v=new CustomEvent(Us,bl);l.addEventListener(Us,d),l.dispatchEvent(v),v.defaultPrevented||(wf(Ef($a(l)),{select:!0}),document.activeElement===h&&Qt(l))}return()=>{l.removeEventListener(Us,d),setTimeout(()=>{const v=new CustomEvent(Gs,bl);l.addEventListener(Gs,p),l.dispatchEvent(v),v.defaultPrevented||Qt(h??document.body,{select:!0}),l.removeEventListener(Gs,p),vl.remove(m)},0)}}},[l,d,p,m]);const g=c.useCallback(h=>{if(!o&&!r||m.paused)return;const b=h.key==="Tab"&&!h.altKey&&!h.ctrlKey&&!h.metaKey,v=document.activeElement;if(b&&v){const w=h.currentTarget,[x,S]=Sf(w);x&&S?!h.shiftKey&&v===S?(h.preventDefault(),o&&Qt(x,{select:!0})):h.shiftKey&&v===x&&(h.preventDefault(),o&&Qt(S,{select:!0})):v===w&&h.preventDefault()}},[o,r,m.paused]);return K.jsx(Rs.div,{tabIndex:-1,...a,ref:y,onKeyDown:g})},"FocusScope"));function wf(e,{select:t=!1}={}){const n=document.activeElement;for(const o of e)if(Qt(o,{select:t}),document.activeElement!==n)return}gt(wf,"focusFirst");function Sf(e){const t=$a(e),n=Ri(t,e),o=Ri(t.reverse(),e);return[n,o]}gt(Sf,"getTabbableEdges");function $a(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:gt(o=>{const 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(;n.nextNode();)t.push(n.currentNode);return t}gt($a,"getTabbableCandidates");function Ri(e,t){const n=typeof t.checkVisibility=="function"&&t.checkVisibility({checkVisibilityCSS:!0});for(const o of e)if(!(n?!o.checkVisibility({checkVisibilityCSS:!0}):Rf(o,{upTo:t})))return o}gt(Ri,"findVisible");function Rf(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}gt(Rf,"isHidden");function kf(e){return e instanceof HTMLInputElement&&"select"in e}gt(kf,"isSelectableInput");function Qt(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&kf(e)&&t&&e.select()}}gt(Qt,"focus");var vl=Cf();function Cf(){let e=[];return{add(t){const n=e[0];t!==n&&(n==null||n.pause()),e=ki(e,t),e.unshift(t)},remove(t){var n;e=ki(e,t),(n=e[0])==null||n.resume()}}}gt(Cf,"createFocusScopesStack");function ki(e,t){const n=[...e],o=n.indexOf(t);return o!==-1&&n.splice(o,1),n}gt(ki,"arrayRemove");function Ef(e){return e.filter(t=>t.tagName!=="A")}gt(Ef,"removeLinks");var vx=Object.defineProperty,xx=(e,t)=>vx(e,"name",{value:t,configurable:!0}),wx=c.forwardRef(xx(function(t,n){var l;const{container:o,...r}=t,[s,i]=c.useState(!1);po(()=>i(!0),[]);const a=o||s&&((l=globalThis==null?void 0:globalThis.document)==null?void 0:l.body);return a?At.createPortal(K.jsx(Rs.div,{...r,ref:n}),a):null},"Portal")),Sx=Object.defineProperty,rn=(e,t)=>Sx(e,"name",{value:t,configurable:!0});function Mf(e,t){return c.useReducer((n,o)=>t[n][o]??n,e)}rn(Mf,"useStateMachine");var Ha=rn(e=>{const{present:t,children:n}=e,o=Pf(t),r=typeof n=="function"?n({present:o.isPresent}):c.Children.only(n),s=Tf(o.ref,If(r));return typeof n=="function"||o.isPresent?c.cloneElement(r,{ref:s}):null},"Presence");function Pf(e){const[t,n]=c.useState(),o=c.useRef(null),r=c.useRef(e),s=c.useRef("none"),i=c.useRef(void 0),a=e?"mounted":"unmounted",[l,u]=Mf(a,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return c.useEffect(()=>{l==="mounted"?(s.current=i.current??Kn(o.current),i.current=void 0):s.current="none"},[l]),po(()=>{const d=o.current,p=r.current;if(p!==e){const y=s.current,m=Kn(d);e?(i.current=m,u("MOUNT")):m==="none"||(d==null?void 0:d.display)==="none"?u("UNMOUNT"):u(p&&y!==m?"ANIMATION_OUT":"UNMOUNT"),r.current=e}},[e,u]),po(()=>{if(t){let d;const p=t.ownerDocument.defaultView??window,f=rn(m=>{const h=Kn(o.current).includes(CSS.escape(m.animationName));if(m.target===t&&h&&(u("ANIMATION_END"),!r.current)){const b=t.style.animationFillMode;t.style.animationFillMode="forwards",d=p.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=b)})}},"handleAnimationEnd"),y=rn(m=>{m.target===t&&(s.current=Kn(o.current))},"handleAnimationStart");return t.addEventListener("animationstart",y),t.addEventListener("animationcancel",f),t.addEventListener("animationend",f),()=>{p.clearTimeout(d),t.removeEventListener("animationstart",y),t.removeEventListener("animationcancel",f),t.removeEventListener("animationend",f)}}else u("ANIMATION_END")},[t,u]),{isPresent:["mounted","unmountSuspended"].includes(l),ref:c.useCallback(d=>{if(d){const p=getComputedStyle(d);o.current=p,i.current=Kn(p)}else o.current=null;n(d)},[])}}rn(Pf,"usePresence");function Ci(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}rn(Ci,"setRef");function Tf(...e){const t=c.useRef(e);return t.current=e,c.useCallback(n=>{const o=t.current;let r=!1;const s=o.map(i=>{const a=Ci(i,n);return!r&&typeof a=="function"&&(r=!0),a});if(r)return()=>{for(let i=0;i<s.length;i++){const a=s[i];typeof a=="function"?a():Ci(o[i],null)}}},[])}rn(Tf,"useStableComposedRefs");function Kn(e){return(e==null?void 0:e.animationName)||"none"}rn(Kn,"getAnimationName");function If(e){var o,r;let t=(o=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:o.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(r=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}rn(If,"getElementRef");var Rx=Object.defineProperty,ja=(e,t)=>Rx(e,"name",{value:t,configurable:!0}),gr=0,Ht=null;function kx(e){return Ba(),e.children}ja(kx,"FocusGuards");function Ba(){c.useEffect(()=>{Ht||(Ht={start:Ei(),end:Ei()});const{start:e,end:t}=Ht;return document.body.firstElementChild!==e&&document.body.insertAdjacentElement("afterbegin",e),document.body.lastElementChild!==t&&document.body.insertAdjacentElement("beforeend",t),gr++,()=>{gr===1&&(Ht==null||Ht.start.remove(),Ht==null||Ht.end.remove(),Ht=null),gr=Math.max(0,gr-1)}},[])}ja(Ba,"useFocusGuards");function Ei(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.style.position="fixed",e.style.pointerEvents="none",e}ja(Ei,"createFocusGuard");var Bt=function(){return Bt=Object.assign||function(t){for(var n,o=1,r=arguments.length;o<r;o++){n=arguments[o];for(var s in n)Object.prototype.hasOwnProperty.call(n,s)&&(t[s]=n[s])}return t},Bt.apply(this,arguments)};function Of(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[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])&&(n[o[r]]=e[o[r]]);return n}function Cx(e,t,n){if(n||arguments.length===2)for(var o=0,r=t.length,s;o<r;o++)(s||!(o in t))&&(s||(s=Array.prototype.slice.call(t,0,o)),s[o]=t[o]);return e.concat(s||Array.prototype.slice.call(t))}var Tr="right-scroll-bar-position",Ir="width-before-scroll-bar",Ex="with-scroll-bars-hidden",Mx="--removed-body-scroll-bar-size";function qs(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function Px(e,t){var n=c.useState(function(){return{value:e,callback:t,facade:{get current(){return n.value},set current(o){var r=n.value;r!==o&&(n.value=o,n.callback(o,r))}}}})[0];return n.callback=t,n.facade}var Tx=typeof window<"u"?c.useLayoutEffect:c.useEffect,xl=new WeakMap;function Ix(e,t){var n=Px(null,function(o){return e.forEach(function(r){return qs(r,o)})});return Tx(function(){var o=xl.get(n);if(o){var r=new Set(o),s=new Set(e),i=n.current;r.forEach(function(a){s.has(a)||qs(a,null)}),s.forEach(function(a){r.has(a)||qs(a,i)})}xl.set(n,e)},[e]),n}function Ox(e){return e}function Ax(e,t){t===void 0&&(t=Ox);var n=[],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 n.length?n[n.length-1]:e},useMedium:function(s){var i=t(s,o);return n.push(i),function(){n=n.filter(function(a){return a!==i})}},assignSyncMedium:function(s){for(o=!0;n.length;){var i=n;n=[],i.forEach(s)}n={push:function(a){return s(a)},filter:function(){return n}}},assignMedium:function(s){o=!0;var i=[];if(n.length){var a=n;n=[],a.forEach(s),i=n}var l=function(){var d=i;i=[],d.forEach(s)},u=function(){return Promise.resolve().then(l)};u(),n={push:function(d){i.push(d),u()},filter:function(d){return i=i.filter(d),n}}}};return r}function Nx(e){e===void 0&&(e={});var t=Ax(null);return t.options=Bt({async:!0,ssr:!1},e),t}var Af=function(e){var t=e.sideCar,n=Of(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 c.createElement(o,Bt({},n))};Af.isSideCarExport=!0;function Dx(e,t){return e.useMedium(t),Af}var Nf=Nx(),Ys=function(){},ks=c.forwardRef(function(e,t){var n=c.useRef(null),o=c.useState({onScrollCapture:Ys,onWheelCapture:Ys,onTouchMoveCapture:Ys}),r=o[0],s=o[1],i=e.forwardProps,a=e.children,l=e.className,u=e.removeScrollBar,d=e.enabled,p=e.shards,f=e.sideCar,y=e.noRelative,m=e.noIsolation,g=e.inert,h=e.allowPinchZoom,b=e.as,v=b===void 0?"div":b,w=e.gapMode,x=Of(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),S=f,R=Ix([n,t]),C=Bt(Bt({},x),r);return c.createElement(c.Fragment,null,d&&c.createElement(S,{sideCar:Nf,removeScrollBar:u,shards:p,noRelative:y,noIsolation:m,inert:g,setCallbacks:s,allowPinchZoom:!!h,lockRef:n,gapMode:w}),i?c.cloneElement(c.Children.only(a),Bt(Bt({},C),{ref:R})):c.createElement(v,Bt({},C,{className:l,ref:R}),a))});ks.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};ks.classNames={fullWidth:Ir,zeroRight:Tr};var _x=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function Lx(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=_x();return t&&e.setAttribute("nonce",t),e}function Fx(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function zx(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var Vx=function(){var e=0,t=null;return{add:function(n){e==0&&(t=Lx())&&(Fx(t,n),zx(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},$x=function(){var e=Vx();return function(t,n){c.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},Df=function(){var e=$x(),t=function(n){var o=n.styles,r=n.dynamic;return e(o,r),null};return t},Hx={left:0,top:0,right:0,gap:0},Xs=function(e){return parseInt(e||"",10)||0},jx=function(e){var t=window.getComputedStyle(document.body),n=t[e==="padding"?"paddingLeft":"marginLeft"],o=t[e==="padding"?"paddingTop":"marginTop"],r=t[e==="padding"?"paddingRight":"marginRight"];return[Xs(n),Xs(o),Xs(r)]},Bx=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return Hx;var t=jx(e),n=document.documentElement.clientWidth,o=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,o-n+t[2]-t[0])}},Wx=Df(),no="data-scroll-locked",Ux=function(e,t,n,o){var r=e.left,s=e.top,i=e.right,a=e.gap;return n===void 0&&(n="margin"),`
|
|
843
|
+
.`.concat(Ex,` {
|
|
844
|
+
overflow: hidden `).concat(o,`;
|
|
845
|
+
padding-right: `).concat(a,"px ").concat(o,`;
|
|
846
|
+
}
|
|
847
|
+
body[`).concat(no,`] {
|
|
848
|
+
overflow: hidden `).concat(o,`;
|
|
849
|
+
overscroll-behavior: contain;
|
|
850
|
+
`).concat([t&&"position: relative ".concat(o,";"),n==="margin"&&`
|
|
851
|
+
padding-left: `.concat(r,`px;
|
|
852
|
+
padding-top: `).concat(s,`px;
|
|
853
|
+
padding-right: `).concat(i,`px;
|
|
854
|
+
margin-left:0;
|
|
855
|
+
margin-top:0;
|
|
856
|
+
margin-right: `).concat(a,"px ").concat(o,`;
|
|
857
|
+
`),n==="padding"&&"padding-right: ".concat(a,"px ").concat(o,";")].filter(Boolean).join(""),`
|
|
858
|
+
}
|
|
859
|
+
|
|
860
|
+
.`).concat(Tr,` {
|
|
861
|
+
right: `).concat(a,"px ").concat(o,`;
|
|
862
|
+
}
|
|
863
|
+
|
|
864
|
+
.`).concat(Ir,` {
|
|
865
|
+
margin-right: `).concat(a,"px ").concat(o,`;
|
|
866
|
+
}
|
|
867
|
+
|
|
868
|
+
.`).concat(Tr," .").concat(Tr,` {
|
|
869
|
+
right: 0 `).concat(o,`;
|
|
870
|
+
}
|
|
871
|
+
|
|
872
|
+
.`).concat(Ir," .").concat(Ir,` {
|
|
873
|
+
margin-right: 0 `).concat(o,`;
|
|
874
|
+
}
|
|
875
|
+
|
|
876
|
+
body[`).concat(no,`] {
|
|
877
|
+
`).concat(Mx,": ").concat(a,`px;
|
|
878
|
+
}
|
|
879
|
+
`)},wl=function(){var e=parseInt(document.body.getAttribute(no)||"0",10);return isFinite(e)?e:0},Gx=function(){c.useEffect(function(){return document.body.setAttribute(no,(wl()+1).toString()),function(){var e=wl()-1;e<=0?document.body.removeAttribute(no):document.body.setAttribute(no,e.toString())}},[])},qx=function(e){var t=e.noRelative,n=e.noImportant,o=e.gapMode,r=o===void 0?"margin":o;Gx();var s=c.useMemo(function(){return Bx(r)},[r]);return c.createElement(Wx,{styles:Ux(s,!t,r,n?"":"!important")})},Mi=!1;if(typeof window<"u")try{var mr=Object.defineProperty({},"passive",{get:function(){return Mi=!0,!0}});window.addEventListener("test",mr,mr),window.removeEventListener("test",mr,mr)}catch{Mi=!1}var Bn=Mi?{passive:!1}:!1,Yx=function(e){return e.tagName==="TEXTAREA"},_f=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return n[t]!=="hidden"&&!(n.overflowY===n.overflowX&&!Yx(e)&&n[t]==="visible")},Xx=function(e){return _f(e,"overflowY")},Kx=function(e){return _f(e,"overflowX")},Sl=function(e,t){var n=t.ownerDocument,o=t;do{typeof ShadowRoot<"u"&&o instanceof ShadowRoot&&(o=o.host);var r=Lf(e,o);if(r){var s=Ff(e,o),i=s[1],a=s[2];if(i>a)return!0}o=o.parentNode}while(o&&o!==n.body);return!1},Zx=function(e){var t=e.scrollTop,n=e.scrollHeight,o=e.clientHeight;return[t,n,o]},Qx=function(e){var t=e.scrollLeft,n=e.scrollWidth,o=e.clientWidth;return[t,n,o]},Lf=function(e,t){return e==="v"?Xx(t):Kx(t)},Ff=function(e,t){return e==="v"?Zx(t):Qx(t)},Jx=function(e,t){return e==="h"&&t==="rtl"?-1:1},e2=function(e,t,n,o,r){var s=Jx(e,window.getComputedStyle(t).direction),i=s*o,a=n.target,l=t.contains(a),u=!1,d=i>0,p=0,f=0;do{if(!a)break;var y=Ff(e,a),m=y[0],g=y[1],h=y[2],b=g-h-s*m;(m||b)&&Lf(e,a)&&(p+=b,f+=m);var v=a.parentNode;a=v&&v.nodeType===Node.DOCUMENT_FRAGMENT_NODE?v.host:v}while(!l&&a!==document.body||l&&(t.contains(a)||t===a));return(d&&Math.abs(p)<1||!d&&Math.abs(f)<1)&&(u=!0),u},yr=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},Rl=function(e){return[e.deltaX,e.deltaY]},kl=function(e){return e&&"current"in e?e.current:e},t2=function(e,t){return e[0]===t[0]&&e[1]===t[1]},n2=function(e){return`
|
|
880
|
+
.block-interactivity-`.concat(e,` {pointer-events: none;}
|
|
881
|
+
.allow-interactivity-`).concat(e,` {pointer-events: all;}
|
|
882
|
+
`)},o2=0,Wn=[];function r2(e){var t=c.useRef([]),n=c.useRef([0,0]),o=c.useRef(),r=c.useState(o2++)[0],s=c.useState(Df)[0],i=c.useRef(e);c.useEffect(function(){i.current=e},[e]),c.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(r));var g=Cx([e.lockRef.current],(e.shards||[]).map(kl),!0).filter(Boolean);return g.forEach(function(h){return h.classList.add("allow-interactivity-".concat(r))}),function(){document.body.classList.remove("block-interactivity-".concat(r)),g.forEach(function(h){return h.classList.remove("allow-interactivity-".concat(r))})}}},[e.inert,e.lockRef.current,e.shards]);var a=c.useCallback(function(g,h){if("touches"in g&&g.touches.length===2||g.type==="wheel"&&g.ctrlKey)return!i.current.allowPinchZoom;var b=yr(g),v=n.current,w="deltaX"in g?g.deltaX:v[0]-b[0],x="deltaY"in g?g.deltaY:v[1]-b[1],S,R=g.target,C=Math.abs(w)>Math.abs(x)?"h":"v";if("touches"in g&&C==="h"&&R.type==="range")return!1;var k=window.getSelection(),P=k&&k.anchorNode,E=P?P===R||P.contains(R):!1;if(E)return!1;var O=Sl(C,R);if(!O)return!0;if(O?S=C:(S=C==="v"?"h":"v",O=Sl(C,R)),!O)return!1;if(!o.current&&"changedTouches"in g&&(w||x)&&(o.current=S),!S)return!0;var I=o.current||S;return e2(I,h,g,I==="h"?w:x)},[]),l=c.useCallback(function(g){var h=g;if(!(!Wn.length||Wn[Wn.length-1]!==s)){var b="deltaY"in h?Rl(h):yr(h),v=t.current.filter(function(S){return S.name===h.type&&(S.target===h.target||h.target===S.shadowParent)&&t2(S.delta,b)})[0];if(v&&v.should){h.cancelable&&h.preventDefault();return}if(!v){var w=(i.current.shards||[]).map(kl).filter(Boolean).filter(function(S){return S.contains(h.target)}),x=w.length>0?a(h,w[0]):!i.current.noIsolation;x&&h.cancelable&&h.preventDefault()}}},[]),u=c.useCallback(function(g,h,b,v){var w={name:g,delta:h,target:b,should:v,shadowParent:s2(b)};t.current.push(w),setTimeout(function(){t.current=t.current.filter(function(x){return x!==w})},1)},[]),d=c.useCallback(function(g){n.current=yr(g),o.current=void 0},[]),p=c.useCallback(function(g){u(g.type,Rl(g),g.target,a(g,e.lockRef.current))},[]),f=c.useCallback(function(g){u(g.type,yr(g),g.target,a(g,e.lockRef.current))},[]);c.useEffect(function(){return Wn.push(s),e.setCallbacks({onScrollCapture:p,onWheelCapture:p,onTouchMoveCapture:f}),document.addEventListener("wheel",l,Bn),document.addEventListener("touchmove",l,Bn),document.addEventListener("touchstart",d,Bn),function(){Wn=Wn.filter(function(g){return g!==s}),document.removeEventListener("wheel",l,Bn),document.removeEventListener("touchmove",l,Bn),document.removeEventListener("touchstart",d,Bn)}},[]);var y=e.removeScrollBar,m=e.inert;return c.createElement(c.Fragment,null,m?c.createElement(s,{styles:n2(r)}):null,y?c.createElement(qx,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function s2(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const i2=Dx(Nf,r2);var zf=c.forwardRef(function(e,t){return c.createElement(ks,Bt({},e,{ref:t,sideCar:i2}))});zf.classNames=ks.classNames;var a2=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},Un=new WeakMap,br=new WeakMap,vr={},Ks=0,Vf=function(e){return e&&(e.host||Vf(e.parentNode))},c2=function(e,t){return t.map(function(n){if(e.contains(n))return n;var o=Vf(n);return o&&e.contains(o)?o:(console.error("aria-hidden",n,"in not contained inside",e,". Doing nothing"),null)}).filter(function(n){return!!n})},l2=function(e,t,n,o){var r=c2(t,Array.isArray(e)?e:[e]);vr[n]||(vr[n]=new WeakMap);var s=vr[n],i=[],a=new Set,l=new Set(r),u=function(p){!p||a.has(p)||(a.add(p),u(p.parentNode))};r.forEach(u);var d=function(p){!p||l.has(p)||Array.prototype.forEach.call(p.children,function(f){if(a.has(f))d(f);else try{var y=f.getAttribute(o),m=y!==null&&y!=="false",g=(Un.get(f)||0)+1,h=(s.get(f)||0)+1;Un.set(f,g),s.set(f,h),i.push(f),g===1&&m&&br.set(f,!0),h===1&&f.setAttribute(n,"true"),m||f.setAttribute(o,"true")}catch(b){console.error("aria-hidden: cannot operate on ",f,b)}})};return d(t),a.clear(),Ks++,function(){i.forEach(function(p){var f=Un.get(p)-1,y=s.get(p)-1;Un.set(p,f),s.set(p,y),f||(br.has(p)||p.removeAttribute(o),br.delete(p)),y||p.removeAttribute(n)}),Ks--,Ks||(Un=new WeakMap,Un=new WeakMap,br=new WeakMap,vr={})}},u2=function(e,t,n){n===void 0&&(n="data-aria-hidden");var o=Array.from(Array.isArray(e)?e:[e]),r=a2(e);return r?(o.push.apply(o,Array.from(r.querySelectorAll("[aria-live], script"))),l2(o,r,n,"aria-hidden")):function(){return null}},d2=Object.defineProperty,un=(e,t)=>d2(e,"name",{value:t,configurable:!0}),Wa="Dialog",[$f,FC]=rf(Wa),[f2,$n]=$f(Wa),zC=un(e=>{const{__scopeDialog:t,children:n,open:o,defaultOpen:r,onOpenChange:s,modal:i=!0}=e,a=c.useRef(null),l=c.useRef(null),[u,d]=cf({prop:o,defaultProp:r??!1,onChange:s,caller:Wa}),[p,f]=c.useState(0),[y,m]=c.useState(0);return K.jsx(f2,{scope:t,triggerRef:a,contentRef:l,contentId:Pr(),titleId:Pr(),descriptionId:Pr(),titlePresent:p>0,descriptionPresent:y>0,setTitleCount:f,setDescriptionCount:m,open:u,onOpenChange:d,onOpenToggle:c.useCallback(()=>d(g=>!g),[d]),modal:i,children:n})},"Dialog"),Hf="DialogPortal",[p2,jf]=$f(Hf,{forceMount:void 0}),VC=un(e=>{const{__scopeDialog:t,forceMount:n,children:o,container:r}=e,s=$n(Hf,t);return K.jsx(p2,{scope:t,forceMount:n,children:c.Children.map(o,i=>K.jsx(Ha,{present:n||s.open,children:K.jsx(wx,{asChild:!0,container:r,children:i})}))})},"DialogPortal"),Pi="DialogOverlay",$C=c.forwardRef(un(function(t,n){const o=jf(Pi,t.__scopeDialog),{forceMount:r=o.forceMount,...s}=t,i=$n(Pi,t.__scopeDialog);return i.modal?K.jsx(Ha,{present:r||i.open,children:K.jsx(g2,{...s,ref:n})}):null},"DialogOverlay")),h2=za("DialogOverlay.RemoveScroll"),g2=c.forwardRef(un(function(t,n){const{__scopeDialog:o,...r}=t,s=$n(Pi,o),i=bf(),a=wo(n,i);return K.jsx(zf,{as:h2,allowPinchZoom:!0,shards:[s.contentRef],children:K.jsx(Rs.div,{"data-state":Ua(s.open),...r,ref:a,style:{pointerEvents:"auto",...r.style}})})},"DialogOverlayImpl")),$o="DialogContent",HC=c.forwardRef(un(function(t,n){const o=jf($o,t.__scopeDialog),{forceMount:r=o.forceMount,...s}=t,i=$n($o,t.__scopeDialog);return K.jsx(Ha,{present:r||i.open,children:i.modal?K.jsx(m2,{...s,ref:n}):K.jsx(y2,{...s,ref:n})})},"DialogContent")),m2=c.forwardRef(un(function(t,n){const o=$n($o,t.__scopeDialog),r=c.useRef(null),s=wo(n,o.contentRef,r);return c.useEffect(()=>{const i=r.current;if(i)return u2(i)},[]),K.jsx(Bf,{...t,ref:s,trapFocus:o.open,disableOutsidePointerEvents:o.open,onCloseAutoFocus:Nn(t.onCloseAutoFocus,i=>{var a;i.preventDefault(),(a=o.triggerRef.current)==null||a.focus()}),onPointerDownOutside:Nn(t.onPointerDownOutside,i=>{const a=i.detail.originalEvent,l=a.button===0&&a.ctrlKey===!0;(a.button===2||l)&&i.preventDefault()}),onFocusOutside:Nn(t.onFocusOutside,i=>i.preventDefault())})},"DialogContentModal")),y2=c.forwardRef(un(function(t,n){const o=$n($o,t.__scopeDialog),r=c.useRef(!1),s=c.useRef(!1);return K.jsx(Bf,{...t,ref:n,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:i=>{var a,l;(a=t.onCloseAutoFocus)==null||a.call(t,i),i.defaultPrevented||(r.current||(l=o.triggerRef.current)==null||l.focus(),i.preventDefault()),r.current=!1,s.current=!1},onInteractOutside:i=>{var u,d;(u=t.onInteractOutside)==null||u.call(t,i),i.defaultPrevented||(r.current=!0,i.detail.originalEvent.type==="pointerdown"&&(s.current=!0));const a=i.target;((d=o.triggerRef.current)==null?void 0:d.contains(a))&&i.preventDefault(),i.detail.originalEvent.type==="focusin"&&s.current&&i.preventDefault()}})},"DialogContentNonModal")),Bf=c.forwardRef(un(function(t,n){const{__scopeDialog:o,trapFocus:r,onOpenAutoFocus:s,onCloseAutoFocus:i,...a}=t,l=$n($o,o);return Ba(),K.jsx(K.Fragment,{children:K.jsx(bx,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:s,onUnmountAutoFocus:i,children:K.jsx(gx,{role:"dialog",id:l.contentId,"aria-describedby":l.descriptionPresent?l.descriptionId:void 0,"aria-labelledby":l.titlePresent?l.titleId:void 0,"data-state":Ua(l.open),...a,ref:n,deferPointerDownOutside:!0,onDismiss:()=>l.onOpenChange(!1)})})})},"DialogContentImpl"));function Ua(e){return e?"open":"closed"}un(Ua,"getState");function b2(e){const{open:t,defaultOpen:n,onOpenChange:o,disabled:r}=e,[s,i]=_t({controlled:t,default:n,name:"Collapsible",state:"open"}),{mounted:a,setMounted:l,transitionStatus:u}=ln(s,!0,!0),d=tt(),[p,f]=c.useState(),y=p===null?void 0:p??d,m=le(g=>{const h=!s,b=ke(Rn,g.nativeEvent);o(h,b),!b.isCanceled&&i(h)});return c.useMemo(()=>({defaultPanelId:d,disabled:r,handleTrigger:m,mounted:a,open:s,panelId:y,setMounted:l,setOpen:i,setPanelIdState:f,transitionStatus:u}),[d,r,m,a,s,y,l,i,f,u])}const Wf=c.createContext(void 0);function Uf(){const e=c.useContext(Wf);if(e===void 0)throw new Error(De(15));return e}let Ga=(function(e){return e.open="data-open",e.closed="data-closed",e[e.startingStyle=_r.startingStyle]="startingStyle",e[e.endingStyle=_r.endingStyle]="endingStyle",e})({}),v2=(function(e){return e.panelOpen="data-panel-open",e})({});const x2={[Ga.open]:""},w2={[Ga.closed]:""},S2={open(e){return e?{[v2.panelOpen]:""}:null}},R2={open(e){return e?x2:w2}},Gf={...R2,...Gt},jC=c.forwardRef(function(t,n){const{render:o,className:r,defaultOpen:s=!1,disabled:i=!1,onOpenChange:a,open:l,style:u,...d}=t,p=le(a),f=b2({open:l,defaultOpen:s,onOpenChange:p,disabled:i}),y=c.useMemo(()=>({open:f.open,disabled:f.disabled,transitionStatus:f.transitionStatus}),[f.open,f.disabled,f.transitionStatus]),m=c.useMemo(()=>({...f,onOpenChange:p,state:y}),[f,p,y]),g=Se("div",t,{state:y,ref:n,props:d,stateAttributesMapping:Gf});return K.jsx(Wf.Provider,{value:m,children:g})}),k2={...S2,...Gt},BC=c.forwardRef(function(t,n){const{panelId:o,open:r,handleTrigger:s,state:i,disabled:a}=Uf(),{className:l,disabled:u=a,render:d,nativeButton:p=!0,style:f,...y}=t,{getButtonProps:m,buttonRef:g}=Tt({disabled:u,focusableWhenDisabled:!0,native:p});return Se("button",t,{state:i,ref:[n,g],props:[{"aria-controls":r?o:void 0,"aria-expanded":r,onClick:s},y,m],stateAttributesMapping:k2})}),Mo={height:void 0,width:void 0};function C2(e){const{externalRef:t,hiddenUntilFound:n,id:o,keepMounted:r,mounted:s,onOpenChange:i,open:a,setMounted:l,setOpen:u,transitionStatus:d}=e,p=c.useRef(null),f=c.useRef(null),[y,m]=c.useState(Mo),g=c.useRef(Mo),h=c.useRef(!1),b=c.useRef(a),v=c.useRef(!1),[w,x]=c.useState(!1),S=c.useRef(null),R=Nt(t,p),C=Ze(a),k=Qi(p),P=!a&&!s,E=w?"idle":d,O=a&&(b.current||v.current),I=!a&&s&&f.current==="css-animation"&&y.height===void 0&&y.width===void 0?g.current:y,N=n&&P&&f.current!=="css-animation",D=le((F,T=!0)=>{T&&(g.current=F),m(F)}),M=le(()=>{var F;(F=S.current)==null||F.call(S),S.current=null}),z=le(F=>{M(),S.current=()=>{S.current=null,F()}}),_=le(()=>{a&&s&&f.current==="css-animation"&&(v.current=!0)});oe(()=>{!w||d==="starting"||x(!1)},[w,d]),c.useEffect(()=>()=>{_(),M()},[_,M]),oe(()=>{const F=p.current;if(!F)return;!a&&S.current&&M();const T=E2(F,O);if(f.current=T,a&&d==="idle"&&b.current&&T==="css-animation"){g.current=Gn(F);return}if(a&&d==="starting"){const $=h.current;if(h.current=!1,T==="none"){D(Gn(F)),x(!0);return}if(T==="css-transition"){const V=M2(F);if(D(Gn(F)),!$)return V;const Q=xr(F,"transition-duration","0s");return z(Q),x(!0),V}D(Gn(F));const U=xr(F,"animation-name","none");if(!$){U();return}const q=xr(F,"animation-duration","0s");U(),z(q),x(!0);return}if(!a&&s&&(d==="idle"||d==="starting")){if(b.current=!1,v.current=!1,T==="none"){D(Mo,!1),l(!1);return}D(Gn(F));return}if(d!=="ending")return;if(T==="none"){l(!1);return}const L=Gn(F);if(!(L.height>0||L.width>0)){l(!1);return}D(L),T==="css-animation"&&xr(F,"animation-name","none")()},[s,a,M,D,l,z,O,d]),kt({enabled:a&&s&&E==="idle",open:!0,ref:p,onComplete(){a&&D(Mo,!1)}}),c.useEffect(()=>{if(a||!s||E!=="ending"||!p.current)return;const T=new AbortController;let L=-1;function j(){C.current||(l(!1),D(Mo,!1))}return L=vt.request(()=>{k(j,T.signal)}),()=>{vt.cancel(L),T.abort()}},[C,s,a,E,k,D,l]),oe(()=>{const F=p.current;!F||!n||!P||F.setAttribute("hidden","until-found")},[P,n]),c.useEffect(function(){const T=p.current;if(!T)return;function L(j){const $=ke(Rt,j);i(!0,$),!$.isCanceled&&(h.current=!0,u(!0))}return Pe(T,"beforematch",L)},[i,u]);const A=r||n||s||a;return{height:I.height,props:{...N?{[Ga.startingStyle]:""}:void 0,hidden:P,id:o},ref:R,shouldPreventOpenAnimation:O,shouldRender:A,transitionStatus:E,width:I.width}}function Gn(e){return{height:e.scrollHeight,width:e.scrollWidth}}function E2(e,t){const n=He(e).getComputedStyle(e),o=(n.animationName.split(",").map(s=>s.trim()).some(s=>s!==""&&s!=="none")||t)&&Cl(n.animationDuration),r=Cl(n.transitionDuration);return o&&r||r?"css-transition":o?"css-animation":"none"}function Cl(e){return e.split(",").map(t=>t.trim()).some(t=>t!==""&&Number.parseFloat(t)>0)}function xr(e,t,n){const o=e.style.getPropertyValue(t),r=e.style.getPropertyPriority(t);return e.style.setProperty(t,n),()=>{if(o===""){e.style.removeProperty(t);return}e.style.setProperty(t,o,r)}}function M2(e){const t={"justify-content":e.style.justifyContent,"align-items":e.style.alignItems,"align-content":e.style.alignContent,"justify-items":e.style.justifyItems};Object.keys(t).forEach(r=>{e.style.setProperty(r,"initial","important")});function n(){Object.entries(t).forEach(([r,s])=>{if(s===""){e.style.removeProperty(r);return}e.style.setProperty(r,s)})}const o=vt.request(n);return()=>{vt.cancel(o),n()}}let El=(function(e){return e.collapsiblePanelHeight="--collapsible-panel-height",e.collapsiblePanelWidth="--collapsible-panel-width",e})({});const WC=c.forwardRef(function(t,n){const{className:o,hiddenUntilFound:r,keepMounted:s,render:i,id:a,style:l,...u}=t,{defaultPanelId:d,mounted:p,onOpenChange:f,open:y,setMounted:m,setPanelIdState:g,setOpen:h,state:b,transitionStatus:v}=Uf(),w=r??!1,x=s??!1,S=a||void 0,R=S??d;oe(()=>(g(_=>S??(_===null?void 0:_)),()=>{g(_=>_===S?null:_)}),[S,g]);const{height:C,props:k,ref:P,shouldPreventOpenAnimation:E,shouldRender:O,transitionStatus:I,width:N}=C2({externalRef:n,hiddenUntilFound:w,id:R,keepMounted:x,mounted:p,onOpenChange:f,open:y,setMounted:m,setOpen:h,transitionStatus:v}),D={...b,transitionStatus:I},M=fu(l,D),z=Se("div",{...t,style:void 0},{state:D,ref:P,props:[k,{style:{[El.collapsiblePanelHeight]:C===void 0?"auto":`${C}px`,[El.collapsiblePanelWidth]:N===void 0?"auto":`${N}px`}},u,M?{style:M}:void 0,E?{style:{animationName:"none"}}:void 0],stateAttributesMapping:Gf});return O?z:null}),qf=c.createContext(void 0);function Cs(e){const t=c.useContext(qf);if(t===void 0&&!e)throw new Error(De(72));return t}const P2={...ka,disabled:e=>e.disabled,instantType:e=>e.instantType,isInstantPhase:e=>e.isInstantPhase,trackCursorAxis:e=>e.trackCursorAxis,disableHoverablePopup:e=>e.disableHoverablePopup,lastOpenChangeReason:e=>e.openChangeReason,closeOnClick:e=>e.closeOnClick,closeDelay:e=>e.closeDelay,adaptiveOrigin:e=>e.adaptiveOrigin};class T2 extends Uo{constructor(n,o,r){const s=new Go;super(I2(n,s,o,r),O2(s),P2);Ne(this,"setOpen",(n,o)=>{ab(this,n,o,{extraState:{openChangeReason:o.reason}})})}cancelPendingOpen(n){this.state.floatingRootContext.dispatchOpenChange(!1,ke(Rn,n))}}function I2(e,t,n,o=!1){const r={...Sa(),disabled:!1,instantType:void 0,isInstantPhase:!1,trackCursorAxis:"none",disableHoverablePopup:!1,openChangeReason:null,closeOnClick:!0,closeDelay:0,adaptiveOrigin:void 0,...e};return r.floatingRootContext=xd(t,n,o),r}function O2(e){return{popupRef:c.createRef(),onOpenChange:void 0,onOpenChangeComplete:void 0,triggerElements:e}}const UC=ga(function(t){const{disabled:n=!1,defaultOpen:o=!1,open:r,disableHoverablePopup:s=!1,trackCursorAxis:i="none",actionsRef:a,onOpenChange:l,onOpenChangeComplete:u,handle:d,triggerId:p,defaultTriggerId:f=null,children:y}=t,m=bd((O,I)=>new T2({open:o,openProp:r,activeTriggerId:f,triggerIdProp:p},O,I));m.useControlledProp("openProp",r),m.useControlledProp("triggerIdProp",p),m.useContextCallback("onOpenChange",l),m.useContextCallback("onOpenChangeComplete",u);const g=m.useState("open"),h=!n&&g,b=m.useState("activeTriggerId"),v=m.useState("mounted"),w=m.useState("payload");m.useSyncedValues({trackCursorAxis:i,disableHoverablePopup:s,disabled:n}),va(m,{closeOnActiveTriggerUnmount:!0});const{forceUnmount:x,transitionStatus:S}=xa(h,m),R=m.useState("isInstantPhase"),C=m.useState("instantType"),k=m.useState("lastOpenChangeReason"),P=c.useRef(null);oe(()=>{g&&n&&m.setOpen(!1,ke(Iu))},[g,n,m]),oe(()=>{S==="ending"&&k===Rt||S!=="ending"&&R?(C!=="delay"&&(P.current=C),m.set("instantType","delay")):P.current!==null&&(m.set("instantType",P.current),P.current=null)},[S,R,k,C,m]),oe(()=>{h&&b==null&&m.set("payload",void 0)},[m,b,h]),c.useImperativeHandle(a,()=>({unmount:x,close:()=>m.setOpen(!1,ke(Gi))}),[x,m]);const E=h||v||!n&&i!=="none";return K.jsxs(qf.Provider,{value:m,children:[d&&K.jsx(ma,{handle:d,store:m}),E&&K.jsx(A2,{store:m,disabled:n,trackCursorAxis:i}),typeof y=="function"?y({payload:w}):y]})});function A2({store:e,disabled:t,trackCursorAxis:n}){const o=e.useState("floatingRootContext"),r=as(o,{enabled:!t,referencePress:()=>e.select("closeOnClick")}),s=o1(o,{enabled:!t&&n!=="none",axis:n==="none"?void 0:n}),i=c.useMemo(()=>St(s.reference,r.reference),[s.reference,r.reference]);return wa(e,{activeTriggerProps:i,inactiveTriggerProps:i,popupProps:r.floating??We}),null}const Yf=c.createContext(void 0);function N2(){return c.useContext(Yf)}const Ml=600,Xf="data-base-ui-tooltip-trigger";function Pl(e){if("composedPath"in e){const n=e.composedPath();for(let o=0;o<n.length;o+=1){const r=n[o];if(Oe(r))return r}}const t=e.target;return Oe(t)?t:null}function D2(e){let t=e;for(;t;){const n=t.closest(`[${Xf}]`);if(n)return n;const o=t.getRootNode();t="host"in o&&Oe(o.host)?o.host:null}return null}const GC=md(function(t,n){const{render:o,className:r,style:s,handle:i,payload:a,disabled:l,delay:u,closeOnClick:d=!0,closeDelay:p,id:f,...y}=t,m=Cs(!0),h=Ca(i)??m;if(!h)throw new Error(De(82));const b=tt(f),v=h.useState("isTriggerActive",b),w=h.useState("isOpenedByTrigger",b),x=h.useState("floatingRootContext"),S=c.useRef(null),R=u??Ml,C=p??0,{registerTrigger:k,isMountedByThisTrigger:P}=ba(b,S,h,{payload:a,closeOnClick:d,closeDelay:C}),E=N2(),{delayRef:O,isInstantPhase:I,hasProvider:N}=Ey(x,{open:w}),D=Ma(x);h.useSyncedValue("isInstantPhase",I);const M=h.useState("disabled"),z=l??M,_=Ze(z),A=h.useState("trackCursorAxis"),F=h.useState("disableHoverablePopup"),T=c.useRef(!1),L=Ge(),j=c.useRef(void 0);function $(){return N?vn(O.current,"open")===0?0:u??E??Ml:R}function U(J){const ee=S.current;if(!ee||!J)return!1;const ie=D2(J);return ie!==null&&ie!==ee&&ve(ee,ie)}function q(J){const ee=U(J);return T.current=ee,ee&&(D.openChangeTimeout.clear(),D.restTimeout.clear(),D.restTimeoutPending=!1,L.clear()),ee}const V=Cd(x,{enabled:!z,mouseOnly:!0,move:!1,handleClose:!F&&A!=="both"?Pd():null,restMs:$,delay(){return p==null&&N?{close:vn(O.current,"close")}:{close:C}},triggerElementRef:S,isActiveTrigger:v,isClosing:()=>h.select("transitionStatus")==="ending",shouldOpen(){return!T.current}}),Q=Sd(x,{enabled:!z}).reference,H=J=>{const ee=T.current,ie=Pl(J),xe=q(ie),ae=S.current,he=ae&&ie&&ve(ae,ie);if(xe&&h.select("open")&&h.select("lastOpenChangeReason")===rt){h.setOpen(!1,ke(rt,J));return}if(ee&&!xe&&he&&!_.current&&!h.select("open")&&ae&&mn(j.current)){const re=()=>{!T.current&&!_.current&&!h.select("open")&&h.setOpen(!0,ke(rt,J,ae))},ge=$();ge===0?(L.clear(),re()):L.start(ge,re)}},G=h.useState("triggerProps",P);return Se("button",t,{state:{open:w},ref:[n,k,S],props:[V,Q,P||A!=="none"?G:void 0,{onMouseOver(J){H(J.nativeEvent)},onFocus(J){U(Pl(J.nativeEvent))&&J.preventBaseUIHandler()},onMouseLeave(){T.current=!1,L.clear(),j.current=void 0},onPointerEnter(J){j.current=J.pointerType},onPointerDown(J){j.current=J.pointerType,h.set("closeOnClick",d),d&&!h.select("open")&&h.cancelPendingOpen(J.nativeEvent)},onClick(J){d&&!h.select("open")&&h.cancelPendingOpen(J.nativeEvent)},id:b,"data-trigger-disabled":z?"":void 0,[Xf]:z?void 0:""},y],stateAttributesMapping:Bi})}),Kf=c.createContext(void 0);function _2(){const e=c.useContext(Kf);if(e===void 0)throw new Error(De(70));return e}const L2=c.forwardRef(function(t,n){const{children:o,container:r,className:s,render:i,style:a,...l}=t,{node:u,subtree:d}=nd({container:r,ref:n,componentProps:t,elementProps:l});return!d&&!u?null:K.jsxs(c.Fragment,{children:[d,u&&At.createPortal(o,u)]})}),qC=c.forwardRef(function(t,n){const{keepMounted:o=!1,...r}=t;return Cs().useState("mounted")||o?K.jsx(Kf.Provider,{value:o,children:K.jsx(L2,{ref:n,...r})}):null}),Zf=c.createContext(void 0);function F2(){const e=c.useContext(Zf);if(e===void 0)throw new Error(De(71));return e}const YC=c.forwardRef(function(t,n){const{render:o,className:r,anchor:s,positionMethod:i="absolute",side:a="top",align:l="center",sideOffset:u=0,alignOffset:d=0,collisionBoundary:p="clipping-ancestors",collisionPadding:f=5,arrowPadding:y=5,sticky:m=!1,disableAnchorTracking:g=!1,collisionAvoidance:h=Ju,style:b,...v}=t,w=Cs(),x=_2(),S=w.useState("open"),R=w.useState("mounted"),C=w.useState("trackCursorAxis"),k=w.useState("disableHoverablePopup"),P=w.useState("floatingRootContext"),E=w.useState("instantType"),O=w.useState("transitionStatus"),I=w.useState("adaptiveOrigin"),N=Ta({anchor:s,positionMethod:i,floatingRootContext:P,mounted:R,side:a,sideOffset:u,align:l,alignOffset:d,collisionBoundary:p,collisionPadding:f,sticky:m,arrowPadding:y,disableAnchorTracking:g,keepMounted:x,collisionAvoidance:h,adaptiveOrigin:I}),D=c.useMemo(()=>({open:S,side:N.side,align:N.align,anchorHidden:N.anchorHidden,instant:C!=="none"?"tracking-cursor":E}),[S,N.side,N.align,N.anchorHidden,C,E]),M=Oa(t,D,{styles:N.positionerStyles,transitionStatus:O,props:v,refs:[n,w.useStateSetter("positionerElement")],hidden:!R,inert:!S||C==="both"||k});return K.jsx(Zf.Provider,{value:N,children:M})}),XC=c.forwardRef(function(t,n){const{render:o,className:r,style:s,...i}=t,a=Cs(),{side:l,align:u}=F2(),d=a.useState("open"),p=a.useState("instantType"),f=a.useState("transitionStatus"),y=a.useState("popupProps"),m=a.useState("floatingRootContext"),g=a.useState("disabled"),h=a.useState("closeDelay");kt({open:d,ref:a.context.popupRef,onComplete(){var x,S;d&&((S=(x=a.context).onOpenChangeComplete)==null||S.call(x,!0))}}),kd(m,{enabled:!g,closeDelay:h});const b=a.useStateSetter("popupElement");return Se("div",t,{state:{open:d,side:l,align:u,instant:p,transitionStatus:f},ref:[n,a.context.popupRef,b],props:[ds,y,hs(f),i],stateAttributesMapping:Wi})}),KC=function(t){const{delay:n,closeDelay:o,timeout:r=400}=t,s=c.useMemo(()=>({open:n,close:o}),[n,o]);return K.jsx(Yf.Provider,{value:n,children:K.jsx(Cy,{delay:s,timeoutMs:r,children:t.children})})};function Qf(e,t,n,o=!0,r){const[s,i]=c.useState(),a=tt(r?`${r}-label`:void 0),l=e??t??s;return oe(()=>{const u=e||t||!o?void 0:z2(n.current,a);s!==u&&i(u)}),l}function z2(e,t){const n=V2(e);if(n)return!n.id&&t&&(n.id=t),n.id||void 0}function V2(e){if(!e)return;const t=e.parentElement;if(t&&t.tagName==="LABEL")return t;const n=e.id;if(n){const r=e.nextElementSibling;if(r&&r.htmlFor===n)return r}const o=e.labels;return o&&o[0]}const $2=c.createContext({disabled:!1});function H2(){return c.useContext($2)}const j2=c.forwardRef(function(t,n){const{render:o,className:r,id:s,name:i,value:a,disabled:l=!1,onValueChange:u,defaultValue:d,autoFocus:p=!1,style:f,...y}=t,{state:m,name:g,disabled:h,setTouched:b,setDirty:v,validityData:w,setFocused:x,setFilled:S,validationMode:R,validation:C}=vo(),{clearErrors:k}=Ss(),P=h||l,E=g??i,O={...m,disabled:P},{labelId:I}=qo(),N=ws({id:s});oe(()=>{var L;const T=a!=null;(L=C.inputRef.current)!=null&&L.value||T&&a!==""?S(!0):T&&a===""&&S(!1)},[C.inputRef,S,a]);const D=c.useRef(null);oe(()=>{p&&D.current===dt(Te(D.current))&&x(!0)},[p,x]);const[M]=_t({controlled:a,default:d,name:"FieldControl",state:"value"}),z=a!==void 0,_=z?M:void 0,A=le(()=>{var T;return(T=C.inputRef.current)==null?void 0:T.value});return xs(C.inputRef,N,_,A,!P,i),Se("input",t,{ref:[n,D],state:O,props:[{id:N,disabled:P,name:E,ref:C.inputRef,"aria-labelledby":I,autoFocus:p,...z?{value:_}:{defaultValue:d},onChange(T){const L=T.currentTarget.value;u==null||u(L,ke(Rt,T.nativeEvent)),v(L!==(w.initialValue??"")),S(L!==""),T.nativeEvent.defaultPrevented||(k(E),C.change(L))},onFocus(){x(!0)},onBlur(T){b(!0),x(!1),R==="onBlur"&&C.commit(T.currentTarget.value)},onKeyDown(T){T.currentTarget.tagName==="INPUT"&&T.key==="Enter"&&(b(!0),C.commit(T.currentTarget.value))}},y,T=>C.getValidationProps(P,T)],stateAttributesMapping:vs})}),ZC=c.forwardRef(function(t,n){return K.jsx(j2,{ref:n,...t})});function Jf(e){return Array.isArray(e)?e.map(t=>Jf(t)).join(","):e==null?"":String(e)}const Tl=new Map;function B2(e,t){const n=JSON.stringify({locale:Jf(e),options:t}),o=Tl.get(n);if(o)return o;const r=new Intl.NumberFormat(e,t);return Tl.set(n,r),r}function Il(e,t,n){return e==null?"":B2(t,n).format(e)}function W2(e,t,n){return(e-t)*100/(n-t)}const ep=c.createContext(void 0);function Es(){const e=c.useContext(ep);if(e===void 0)throw new Error(De(51));return e}const Xo={status(e){return{[`data-${e}`]:""}}},QC=c.forwardRef(function(t,n){const{format:o,getAriaValueText:r,locale:s,max:i=100,min:a=0,value:l,render:u,className:d,children:p,style:f,...y}=t,[m,g]=c.useState();let h="indeterminate",b=null,v=null,w="",x="indeterminate progress";if(l!=null&&Number.isFinite(l)){const P=W2(l,a,i);b=hn(Number.isNaN(P)?0:P,0,100),v=hn(l,a,i),h=v===i?"complete":"progressing",w=o?Il(v,s,o):Il(b/100,s,{style:"percent"}),x=w}const S=c.useMemo(()=>({status:h}),[h]),R={"aria-labelledby":m,"aria-valuemax":i,"aria-valuemin":a,"aria-valuenow":v??void 0,"aria-valuetext":r?r(w,l):x,role:"progressbar",children:K.jsxs(c.Fragment,{children:[p,K.jsx("span",{role:"presentation",style:Bo,children:"x"})]})},C=c.useMemo(()=>({formattedValue:w,percentageValue:b,setLabelId:g,state:S,value:l}),[w,b,g,S,l]),k=Se("div",t,{state:S,ref:n,props:[R,y],stateAttributesMapping:Xo});return K.jsx(ep.Provider,{value:C,children:k})}),JC=c.forwardRef(function(t,n){const{render:o,className:r,style:s,...i}=t,{state:a}=Es();return Se("div",t,{state:a,ref:n,props:i,stateAttributesMapping:Xo})}),eE=c.forwardRef(function(t,n){const{render:o,className:r,style:s,...i}=t,{percentageValue:a,state:l}=Es(),u=a==null?{}:{insetInlineStart:0,height:"inherit",width:`${a}%`};return Se("div",t,{state:l,ref:n,props:[{style:u},i],stateAttributesMapping:Xo})}),tE=c.forwardRef(function(t,n){const{className:o,render:r,children:s,style:i,...a}=t,{value:l,formattedValue:u,state:d}=Es(),p=d.status==="indeterminate";return Se("span",t,{state:d,ref:n,props:[{"aria-hidden":!0,children:typeof s=="function"?s(p?"indeterminate":u,l):p?null:u},a],stateAttributesMapping:Xo})}),nE=c.forwardRef(function(t,n){const{render:o,className:r,style:s,id:i,...a}=t,{setLabelId:l,state:u}=Es(),d=xv(i,l);return Se("span",t,{state:u,ref:n,props:[{id:d,role:"presentation"},a],stateAttributesMapping:Xo})}),tp=c.createContext(void 0);function Ms(){const e=c.useContext(tp);if(e===void 0)throw new Error(De(53));return e}const U2=500,Ti=16;function gn(e,t,n){if(!e)return 0;const o=getComputedStyle(e),r=`${t}${n==="x"?"Inline":"Block"}`,s=parseFloat(o[`${r}Start`]);return n==="x"&&t==="margin"?s*2:s+parseFloat(o[`${r}End`])}const qn=e=>t=>t?{[e]:""}:null,qa={hasOverflowX:qn("data-has-overflow-x"),hasOverflowY:qn("data-has-overflow-y"),overflowXStart:qn("data-overflow-x-start"),overflowXEnd:qn("data-overflow-x-end"),overflowYStart:qn("data-overflow-y-start"),overflowYEnd:qn("data-overflow-y-end"),cornerHidden:()=>null},G2={x:0,y:0},Ol={width:0,height:0},q2={xStart:!1,xEnd:!1,yStart:!1,yEnd:!1},Y2={x:!0,y:!0,corner:!0},oE=c.forwardRef(function(t,n){const{render:o,className:r,overflowEdgeThreshold:s,style:i,...a}=t,{xStart:l,xEnd:u,yStart:d,yEnd:p}=X2(s),f=tt(),y=Ge(),m=Ge(),{nonce:g,disableStyleElements:h}=_a(),[b,v]=c.useState(!1),[w,x]=c.useState(!1),[S,R]=c.useState(!1),[C,k]=c.useState(!1),[P,E]=c.useState(!1),[O,I]=c.useState(Ol),[N,D]=c.useState(Ol),[M,z]=c.useState(q2),[_,A]=c.useState(Y2),F=c.useRef(null),T=c.useRef(null),L=c.useRef(null),j=c.useRef(null),$=c.useRef(null),U=c.useRef(null),q=c.useRef(null),V=c.useRef(null),Q=c.useRef(0),H=c.useRef(0),G=c.useRef(0),ue=c.useRef(0),ne=c.useRef("vertical"),te=c.useRef(G2),J=c.useRef(null);function ee(se){const Z=se?R:x,X=se?y:m;Z(!0),X.start(U2,()=>{Z(!1)})}const ie=le(se=>{const Z=se.x-te.current.x,X=se.y-te.current.y;te.current=se,X!==0&&ee(!0),Z!==0&&ee(!1)}),xe=le(()=>{const se=T.current;se&&J.current===null&&(J.current=se.style.scrollSnapType,se.style.scrollSnapType="none")}),ae=le(se=>{if(se.button!==0)return;if(V.current!==null){const pe=ne.current==="vertical"?$.current:U.current;if(pe!=null&&pe.hasPointerCapture(V.current))return}V.current=se.pointerId,Q.current=se.clientY,H.current=se.clientX,ne.current=se.currentTarget.getAttribute("data-orientation");const Z=T.current;Z&&(G.current=Z.scrollTop,ue.current=Z.scrollLeft,xe());const X=ne.current==="vertical"?$.current:U.current;X==null||X.setPointerCapture(se.pointerId)}),he=le(se=>{if(se.pointerId!==V.current)return;V.current=null,(ne.current==="vertical"?R:x)(!1),J.current!==null&&(T.current&&(T.current.style.scrollSnapType=J.current),J.current=null);const Z=ne.current==="vertical"?$.current:U.current;Z!=null&&Z.hasPointerCapture(se.pointerId)&&Z.releasePointerCapture(se.pointerId)}),re=le(se=>{if(se.pointerId!==V.current)return;if(se.buttons%2===0){he(se);return}const Z=T.current;if(!Z)return;const X=ne.current==="vertical",pe=X?$.current:U.current,be=X?L.current:j.current;if(!pe||!be)return;const _e=X?"y":"x",Ue=gn(be,"padding",_e),Ye=gn(pe,"margin",_e),st=X?pe.offsetHeight:pe.offsetWidth,Je=(X?be.offsetHeight:be.offsetWidth)-st-Ue-Ye,ct=X?se.clientY-Q.current:se.clientX-H.current,Re=Je<=0?0:ct/Je,je=X?Z.scrollHeight:Z.scrollWidth,qe=X?Z.clientHeight:Z.clientWidth,Xe=(X?G.current:ue.current)+Re*(je-qe);X?Z.scrollTop=Xe:Z.scrollLeft=Xe,se.preventDefault(),ee(X)});function ge(se){k(se.pointerType==="touch")}function de(se){if(ge(se),se.pointerType!=="touch"){const Z=ve(F.current,se.target);v(Z)}}const ce=c.useMemo(()=>({scrolling:w||S,hasOverflowX:!_.x,hasOverflowY:!_.y,overflowXStart:M.xStart,overflowXEnd:M.xEnd,overflowYStart:M.yStart,overflowYEnd:M.yEnd,cornerHidden:_.corner}),[w,S,_.x,_.y,_.corner,M]),fe={role:"presentation",onPointerEnter:de,onPointerMove:de,onPointerDown:ge,onPointerLeave(){v(!1)},style:{position:"relative","--scroll-area-corner-height":`${O.height}px`,"--scroll-area-corner-width":`${O.width}px`}},W=Se("div",t,{state:ce,ref:[n,F],props:[fe,a],stateAttributesMapping:qa}),Y=c.useMemo(()=>({handlePointerDown:ae,handlePointerMove:re,handlePointerUp:he,handleScroll:ie,disableViewportSnap:xe,cornerSize:O,setCornerSize:I,thumbSize:N,setThumbSize:D,hasMeasuredScrollbar:P,setHasMeasuredScrollbar:E,touchModality:C,cornerRef:q,scrollingX:w,scrollingY:S,hovering:b,setHovering:v,viewportRef:T,scrollbarYRef:L,scrollbarXRef:j,thumbYRef:$,thumbXRef:U,rootId:f,hiddenState:_,setHiddenState:A,overflowEdges:M,setOverflowEdges:z,viewportState:ce,overflowEdgeThreshold:{xStart:l,xEnd:u,yStart:d,yEnd:p}}),[ae,re,he,ie,xe,O,N,P,C,w,S,b,f,_,M,ce,l,u,d,p]);return K.jsxs(tp.Provider,{value:Y,children:[!h&&Vo.getElement(g),W]})});function X2(e){const t=typeof e=="number"?{xStart:e,xEnd:e,yStart:e,yEnd:e}:e;return{xStart:Math.max(0,(t==null?void 0:t.xStart)||0),xEnd:Math.max(0,(t==null?void 0:t.xEnd)||0),yStart:Math.max(0,(t==null?void 0:t.yStart)||0),yEnd:Math.max(0,(t==null?void 0:t.yEnd)||0)}}const K2=c.createContext(void 0),np=["--scroll-area-overflow-x-start","--scroll-area-overflow-x-end","--scroll-area-overflow-y-start","--scroll-area-overflow-y-end"];let Al=!1;function Z2(){Al||qt||(typeof CSS<"u"&&"registerProperty"in CSS&&np.forEach(e=>{try{CSS.registerProperty({name:e,syntax:"<length>",inherits:!1,initialValue:"0px"})}catch{}}),Al=!0)}const rE=c.forwardRef(function(t,n){const{render:o,className:r,style:s,...i}=t,{viewportRef:a,scrollbarYRef:l,scrollbarXRef:u,thumbYRef:d,thumbXRef:p,cornerRef:f,cornerSize:y,setCornerSize:m,setThumbSize:g,rootId:h,setHiddenState:b,hiddenState:v,setHasMeasuredScrollbar:w,handleScroll:x,touchModality:S,setHovering:R,setOverflowEdges:C,overflowEdgeThreshold:k,viewportState:P}=Ms(),E=bo(),O=c.useRef(!0),I=c.useRef([NaN,NaN,NaN,NaN]),N=Ge(),D=Ge(),M=le(()=>{const T=a.current,L=l.current,j=u.current,$=d.current,U=p.current,q=f.current;if(!T)return;const V=T.scrollHeight,Q=T.scrollWidth,H=T.clientHeight,G=T.clientWidth,ue=T.scrollTop,ne=T.scrollLeft,te=I.current,J=Number.isNaN(te[0]);if(te[0]=H,te[1]=V,te[2]=G,te[3]=Q,J&&w(!0),V===0||Q===0)return;const ee=Q2(T),ie=ee.y,xe=ee.x,ae=G/Q,he=H/V,re=Math.max(0,Q-G),ge=Math.max(0,V-H);let de=0,ce=0;xe||(de=fo(E==="rtl"?-ne:ne,re),ce=re-de);const fe=ie?0:fo(ue,ge),W=ie?0:ge-fe,Y=xe?0:G,se=ie?0:H;let Z=0,X=0;!xe&&!ie&&(Z=(L==null?void 0:L.offsetWidth)||0,X=(j==null?void 0:j.offsetHeight)||0);const pe=y.width===0&&y.height===0,be=pe?Z:0,_e=pe?X:0,Ue=gn(j,"padding","x"),Ye=gn(L,"padding","y"),st=gn(U,"margin","x"),Le=gn($,"margin","y"),Je=Y-Ue-st,ct=se-Ye-Le,Re=j?Math.min(j.offsetWidth-be,Je):Je,je=L?Math.min(L.offsetHeight-_e,ct):ct,qe=Math.max(Ti,Re*ae),Be=Math.max(Ti,je*he);if(g(we=>wr(we,{width:qe,height:Be})),L&&$){const we=L.offsetHeight-Be-Ye-Le,Ae=Nl($,"--scroll-area-thumb-height",ue,ge,V,Be,we);$.style.transform=`translate3d(0,${Ae}px,0)`}if(j&&U){const we=j.offsetWidth-qe-Ue-st,Ae=E==="rtl"?-ne:ne,Qe=Nl(U,"--scroll-area-thumb-width",Ae,re,Q,qe,we);U.style.transform=`translate3d(${E==="rtl"?-Qe:Qe}px,0,0)`}const Xe=[de,ce,fe,W];np.forEach((we,Ae)=>{T.style.setProperty(we,`${Xe[Ae]}px`)}),q&&m(we=>wr(we,{width:Z,height:X})),b(we=>wr(we,ee));const pt={xStart:!xe&&de>k.xStart,xEnd:!xe&&ce>k.xEnd,yStart:!ie&&fe>k.yStart,yEnd:!ie&&W>k.yEnd};C(we=>wr(we,pt))});oe(()=>{Z2()},[]),oe(()=>{queueMicrotask(M)},[M,v,E,k.xStart,k.xEnd,k.yStart,k.yEnd]),oe(()=>{var T;(T=a.current)!=null&&T.matches(":hover")&&R(!0)},[a,R]),oe(()=>{const T=a.current;if(typeof ResizeObserver>"u"||!T)return;let L=!1;const j=new ResizeObserver(()=>{if(!L){L=!0;const $=I.current;if($[0]===T.clientHeight&&$[1]===T.scrollHeight&&$[2]===T.clientWidth&&$[3]===T.scrollWidth)return}M()});return j.observe(T),D.start(0,()=>{const $=T.getAnimations({subtree:!0});$.length!==0&&Promise.allSettled($.map(U=>U.finished)).then(M).catch(()=>{})}),()=>{j.disconnect(),D.clear()}},[M,a,D]);function z(){O.current=!1}const _={role:"presentation",...h&&{"data-id":`${h}-viewport`},tabIndex:v.x&&v.y?-1:0,className:Vo.className,style:{overflow:"scroll"},onScroll(){a.current&&(M(),(S||!O.current)&&x({x:a.current.scrollLeft,y:a.current.scrollTop}),N.start(100,()=>{O.current=!0}))},onWheel:z,onPointerMove:z,onPointerEnter:z,onKeyDown:z},A=Se("div",t,{ref:[n,a],state:P,props:[_,i],stateAttributesMapping:qa}),F=c.useMemo(()=>({computeThumbPosition:M}),[M]);return K.jsx(K2.Provider,{value:F,children:A})});function Q2(e){const t=e.clientHeight>=e.scrollHeight,n=e.clientWidth>=e.scrollWidth;return{y:t,x:n,corner:t||n}}function wr(e,t){for(const n in t)if(e[n]!==t[n])return t;return e}function Nl(e,t,n,o,r,s,i){const a=hn(n,0,o),l=n-a,u=Math.max(Ti,s*r/(r+Math.abs(l)));return e.style.setProperty(t,l?`${u}px`:""),(o?a/o*i:0)+(l>0?s-u:0)}const op=c.createContext(void 0);function J2(){const e=c.useContext(op);if(e===void 0)throw new Error(De(54));return e}const sE=c.forwardRef(function(t,n){const{render:o,className:r,orientation:s="vertical",keepMounted:i=!1,style:a,...l}=t,{hovering:u,scrollingX:d,scrollingY:p,hiddenState:f,scrollbarYRef:y,scrollbarXRef:m,viewportRef:g,thumbYRef:h,thumbXRef:b,handlePointerDown:v,handlePointerUp:w,handleScroll:x,disableViewportSnap:S,rootId:R,thumbSize:C,hasMeasuredScrollbar:k,viewportState:P}=Ms(),E=s==="vertical",O={...P,hovering:u,scrolling:E?p:d,orientation:s},I=bo(),N=!k&&!i,D=E?f.y:f.x,M=i||!D;c.useEffect(()=>{if(!M)return;const A=g.current,F=E?y.current:m.current;if(!F)return;function T(L){if(!A||L.ctrlKey)return;const j=!E,$=j?"scrollLeft":"scrollTop",U=j?L.deltaX:L.deltaY;if(U===0)return;const q=j?A.scrollWidth-A.clientWidth:A.scrollHeight-A.clientHeight,V=j&&I==="rtl"?-q:0,Q=j&&I==="rtl"?0:q,H=A[$];H<=V&&U<0||H>=Q&&U>0||(L.preventDefault(),A[$]=Math.min(Q,Math.max(V,H+U)),x({x:A.scrollLeft,y:A.scrollTop}))}return Pe(F,"wheel",T,{passive:!1})},[I,x,E,m,y,M,g]);const z={...R&&{"data-id":`${R}-scrollbar`},onPointerDown(A){if(A.button!==0)return;const F=et(A.nativeEvent),T=E?h.current:b.current;if(T&&ve(T,F))return;const L=g.current;if(!L)return;const j=E?y.current:m.current;if(!T||!j)return;const $=E?"y":"x",U=gn(T,"margin",$),q=gn(j,"padding",$),V=E?T.offsetHeight:T.offsetWidth,Q=j.getBoundingClientRect(),H=E?A.clientY-Q.top-V/2-q+U/2:A.clientX-Q.left-V/2-q+U/2,G=E?L.scrollHeight:L.scrollWidth,ue=E?L.clientHeight:L.clientWidth,te=(E?j.offsetHeight:j.offsetWidth)-V-q-U;if(te<=0)return;const J=H/te,ee=G-ue;S(),E?L.scrollTop=J*ee:I==="rtl"?L.scrollLeft=-(1-J)*ee:L.scrollLeft=J*ee,x({x:L.scrollLeft,y:L.scrollTop}),v(A)},onPointerUp:w,onPointerCancel:w,style:{position:"absolute",touchAction:"none",WebkitUserSelect:"none",userSelect:"none",visibility:N?"hidden":void 0,...E?{top:0,bottom:"var(--scroll-area-corner-height)",insetInlineEnd:0,"--scroll-area-thumb-height":`${C.height}px`}:{insetInlineStart:0,insetInlineEnd:"var(--scroll-area-corner-width)",bottom:0,"--scroll-area-thumb-width":`${C.width}px`}}},_=Se("div",t,{ref:[n,E?y:m],state:O,props:[z,l],stateAttributesMapping:qa});return M?K.jsx(op.Provider,{value:s,children:_}):null}),iE=c.forwardRef(function(t,n){const{render:o,className:r,style:s,...i}=t,{thumbYRef:a,thumbXRef:l,handlePointerDown:u,handlePointerMove:d,handlePointerUp:p,scrollingX:f,scrollingY:y,hasMeasuredScrollbar:m}=Ms(),g=J2(),h=g==="vertical";return Se("div",t,{ref:[n,h?a:l],state:{scrolling:h?y:f,orientation:g},props:[{onPointerDown:u,onPointerMove:d,onPointerUp:p,onPointerCancel:p,style:{visibility:m?void 0:"hidden",...h?{height:"var(--scroll-area-thumb-height)"}:{width:"var(--scroll-area-thumb-width)"}}},i]})}),aE=c.forwardRef(function(t,n){const{render:o,className:r,style:s,...i}=t,{cornerRef:a,cornerSize:l,hiddenState:u}=Ms(),d=Se("div",t,{ref:[n,a],props:[{style:{position:"absolute",bottom:0,insetInlineEnd:0,width:l.width,height:l.height}},i]});return u.corner?null:d}),rp=c.createContext(void 0);function Ps(){const e=c.useContext(rp);if(e===void 0)throw new Error(De(64));return e}const Ko={tabActivationDirection:e=>({"data-activation-direction":e})},cE=c.forwardRef(function(t,n){const{className:o,defaultValue:r=0,onValueChange:s,orientation:i="horizontal",render:a,value:l,style:u,...d}=t,p=t.defaultValue!==void 0,f=c.useRef([]),[y,m]=c.useState(()=>new Map),[g,h]=_t({controlled:l,default:r,name:"Tabs",state:"value"}),b=l!==void 0,[v,w]=c.useState(()=>new Map),x=c.useRef(void 0),S=c.useCallback(H=>Ii(v,H),[v]),[R,C]=c.useState(()=>({previousValue:g,tabActivationDirection:"none"})),{previousValue:k,tabActivationDirection:P}=R;let E=P,O=!1;k!==g&&(E=Dl(k,g,i,v),O=k!=null&&g!=null&&S(g)==null);const I=O?k:g,N=k!==I||P!==E;oe(()=>{N&&C({previousValue:I,tabActivationDirection:E})},[I,N,E]);const D=le((H,G)=>{const ue=Dl(g,H,i,v);G.activationDirection=ue,s==null||s(H,G),!G.isCanceled&&h(H)}),M=le((H,G)=>{s==null||s(H,ke(G,void 0,void 0,{activationDirection:"none"}))}),z=le((H,G)=>(m(ue=>{const ne=new Map(ue);return ne.set(H,G),ne}),()=>{m(ue=>{if(ue.get(H)!==G)return ue;const ne=new Map(ue);return ne.delete(H),ne})})),_=c.useCallback(H=>y.get(H),[y]),A=c.useCallback(H=>{for(const G of v.values())if(H===G.value)return G.id},[v]),F=c.useMemo(()=>({getTabElementBySelectedValue:S,getTabIdByPanelValue:A,getTabPanelIdByValue:_,onValueChange:D,orientation:i,registerMountedTabPanel:z,setTabMap:w,tabActivationDirection:E,value:g}),[S,A,_,D,i,z,w,E,g]),T=c.useMemo(()=>{for(const H of v.values())if(H.value===g)return H},[v,g]),L=c.useMemo(()=>{for(const H of v.values())if(!H.disabled)return H.value},[v]),j=c.useRef(!p),$=c.useRef(r),U=c.useRef(p),q=c.useRef(!1);oe(()=>{var te;if(b)return;function H(J,ee){h(J),C({previousValue:J,tabActivationDirection:"none"}),M(J,ee),j.current=!1}if(v.size===0){q.current&&g!==null&&!((te=x.current)!=null&&te.isConnected)&&H(null,xc);return}q.current=!0,x.current=v.keys().next().value;const G=T==null?void 0:T.disabled,ue=T==null&&g!==null;if(!G&&g===$.current&&(U.current=!1),U.current&&G&&g===$.current)return;const ne=j.current;if(G||ue){const J=L??null;if(g===J){j.current=!1;return}let ee=xc;ne?ee=wc:G&&(ee=Iu),H(J,ee);return}ne&&T!=null&&(M(g,wc),j.current=!1)},[L,b,M,T,h,v,g]);const Q=Se("div",t,{state:{orientation:i,tabActivationDirection:E},ref:n,props:d,stateAttributesMapping:Ko});return K.jsx(rp.Provider,{value:F,children:K.jsx(ms,{elementsRef:f,children:Q})})});function Ii(e,t){for(const[n,o]of e.entries())if(t===o.value)return n;return null}function Dl(e,t,n,o){if(e==null||t==null)return"none";const[r,s,i]=n==="horizontal"?["left","left","right"]:["top","up","down"],a=Ii(o,e),l=Ii(o,t);if(a==null||l==null)return a!==l&&(typeof e=="number"||typeof e=="string")&&typeof e==typeof t?t>e?i:s:"none";const u=a.getBoundingClientRect()[r],d=l.getBoundingClientRect()[r];return d<u?s:d>u?i:"none"}const sp="data-composite-item-active",ip=c.createContext(void 0);function ap(){const e=c.useContext(ip);if(e===void 0)throw new Error(De(65));return e}const lE=c.forwardRef(function(t,n){const{className:o,disabled:r=!1,render:s,value:i,id:a,nativeButton:l=!0,style:u,...d}=t,{value:p,getTabPanelIdByValue:f,onValueChange:y,orientation:m,tabActivationDirection:g}=Ps(),{activateOnFocus:h,registerTabResizeObserverElement:b,tabsListElement:v}=ap(),{highlightedIndex:w,onHighlightedIndexChange:x}=Yr(),S=tt(a),R=c.useMemo(()=>({disabled:r,id:S,value:i}),[r,S,i]),{compositeProps:C,compositeRef:k,index:P}=$d({metadata:R}),E=i===p,O=c.useRef(!1),I=c.useRef(null),N=le(q=>{var V;(V=I.current)==null||V.call(I),I.current=q?b(q):null});oe(()=>{if(O.current){O.current=!1;return}if(!(E&&P>-1&&w!==P))return;const q=v;if(q!=null){const V=dt(Te(q));if(V&&ve(q,V))return}r||x(P)},[E,P,w,x,r,v]);const{getButtonProps:D,buttonRef:M}=Tt({disabled:r,native:l,focusableWhenDisabled:!0}),z=f(i),_=c.useRef(!1),A=c.useRef(!1);function F(q){y(i,ke(Rt,q.nativeEvent,void 0,{activationDirection:"none"}))}function T(q){E||r||F(q)}function L(q){E||r||h&&(!_.current||A.current)&&F(q)}function j(q){if(E||r)return;_.current=!0,A.current=q.button===0;const V=Te(q.currentTarget);function Q(){_.current=!1,A.current=!1,V.removeEventListener("pointerup",Q),V.removeEventListener("pointercancel",Q)}V.addEventListener("pointerup",Q),V.addEventListener("pointercancel",Q)}return Se("button",t,{state:{disabled:r,active:E,orientation:m,tabActivationDirection:g},ref:[n,M,k,N],props:[C,{role:"tab","aria-controls":z,"aria-selected":E,id:S,onClick:T,onFocus:L,onPointerDown:j,[sp]:E?"":void 0,onKeyDownCapture(){O.current=!0}},d,D],stateAttributesMapping:Ko})}),ew="";function tw(){return Ke}function nw(){return!1}function ow(){return!0}function rw(){return ls.useSyncExternalStore(tw,nw,ow)}function sw(e){const{script:t}=e,{nonce:n}=_a();return rw()?K.jsx("script",{nonce:n,dangerouslySetInnerHTML:{__html:t},suppressHydrationWarning:!0}):null}var _l;const iw={...Ko,activeTabPosition:()=>null,activeTabSize:()=>null},uE=c.forwardRef(function(t,n){const{className:o,render:r,renderBeforeHydration:s=!1,style:i,...a}=t,{getTabElementBySelectedValue:l,orientation:u,tabActivationDirection:d,value:p}=Ps(),{tabsListElement:f,registerIndicatorUpdateListener:y}=ap(),m=ob();c.useEffect(()=>y(m),[y,m]);let g=0,h=0,b=0,v=0,w=0,x=0,S=!1;if(p!=null&&f!=null){const I=l(p);if(I!=null){S=!0;const{width:N,height:D}=ul(I),{width:M,height:z}=ul(f),_=I.getBoundingClientRect(),A=f.getBoundingClientRect(),F=M>0?A.width/M:1,T=z>0?A.height/z:1;if(F>Number.EPSILON&&T>Number.EPSILON){const j=_.left-A.left,$=_.top-A.top;g=j/F+f.scrollLeft-f.clientLeft,b=$/T+f.scrollTop-f.clientTop}else g=I.offsetLeft,b=I.offsetTop;w=N,x=D,h=f.scrollWidth-g-w,v=f.scrollHeight-b-x}}const R=S?{left:g,right:h,top:b,bottom:v}:null,C=S?{width:w,height:x}:null,k=S?{"--active-tab-left":`${g}px`,"--active-tab-right":`${h}px`,"--active-tab-top":`${b}px`,"--active-tab-bottom":`${v}px`,"--active-tab-width":`${w}px`,"--active-tab-height":`${x}px`}:void 0,P=S&&w>0&&x>0,O=Se("span",t,{state:{orientation:u,activeTabPosition:R,activeTabSize:C,tabActivationDirection:d},ref:n,props:[{role:"presentation",style:k,hidden:!P},a,{suppressHydrationWarning:!0}],stateAttributesMapping:iw});return p==null?null:K.jsxs(c.Fragment,{children:[O,s&&(_l||(_l=K.jsx(sw,{script:ew})))]})}),aw={...Ko,...Gt},dE=c.forwardRef(function(t,n){const{className:o,value:r,render:s,keepMounted:i=!1,style:a,...l}=t,{value:u,getTabIdByPanelValue:d,orientation:p,tabActivationDirection:f,registerMountedTabPanel:y}=Ps(),m=tt(),{ref:g,index:h}=yo(),b=r===u,{mounted:v,transitionStatus:w,setMounted:x}=ln(b),S=!v,R=d(r),C={hidden:S,orientation:p,tabActivationDirection:f,transitionStatus:w},k=c.useRef(null),P=Se("div",t,{state:C,ref:[n,g,k],props:[{"aria-labelledby":R,hidden:S,id:m,role:"tabpanel",tabIndex:b?0:-1,inert:gs(!b),"data-index":h},l],stateAttributesMapping:aw});return kt({open:b,ref:k,onComplete(){b||x(!1)}}),oe(()=>{if(!(m==null||S&&!i))return y(r,m)},[S,i,r,m,y]),i||v?P:null}),cw=[];function lw(e){const{loopFocus:t=!0,orientation:n="both",grid:o,onLoop:r,direction:s,highlightedIndex:i,onHighlightedIndexChange:a,rootRef:l,enableHomeAndEndKeys:u=!1,stopEventPropagation:d,disabledIndices:p,modifierKeys:f=cw}=e,[y,m]=c.useState(0),g=o!=null,h=c.useRef(null),b=Nt(h,l),v=c.useRef([]),w=c.useRef(!1),x=i??y,S=le((E,O=!1)=>{if((a??m)(E),O){const I=v.current[E];el(h.current,I,s,n)}}),R=le(E=>{var D;if(E.size===0||w.current)return;w.current=!0;const O=Array.from(E.keys()),I=O.find(M=>M==null?void 0:M.hasAttribute(sp))??null,N=I?((D=E.get(I))==null?void 0:D.index)??-1:-1;if(N!==-1)S(N);else if($r(O,x,p)){const M=Jt(O,{disabledIndices:p});Ao(O,M)||S(M)}el(h.current,I,s,n)});oe(()=>{if(p==null||i!=null||!w.current)return;const E=v.current;if($r(E,x,p)){const O=Jt(E,{disabledIndices:p});Ao(E,O)||S(O)}},[p,i,x,v,S]);const C=le((E,O,I)=>r?r(E,O,I,v):I),k=le(E=>{const O=E.key===gi||E.key===mi;if(!ps.has(E.key)||!u&&O||uw(E,f)||!h.current)return;const N=s==="rtl",D=N?pi:hi,M=N?hi:pi,z=n==="vertical"?fi:D,_=n==="vertical"?di:M,A=et(E.nativeEvent);if(A!=null&&Jc(A)&&!jd(A)){const U=A.selectionStart,q=A.selectionEnd,V=A.value;if(U==null||E.shiftKey||U!==q||E.key!==_&&U<V.length||E.key!==z&&U>0)return}let F=x;const T=kr(v,p),L=ii(v,p);o!=null&&(F=o({disabledIndices:p,elementsRef:v,event:E,highlightedIndex:x,loopFocus:t,maxIndex:L,minIndex:T,onLoop:C,orientation:n,rtl:N}));const j=n!=="vertical"&&E.key===D||n!=="horizontal"&&E.key===fi,$=n!=="vertical"&&E.key===M||n!=="horizontal"&&E.key===di;u&&(E.key===gi?F=T:E.key===mi&&(F=L)),F===x&&(j||$)&&(t&&F===L&&j?(F=T,r&&(F=r(E,x,F,v))):t&&F===T&&$?(F=L,r&&(F=r(E,x,F,v))):F=Jt(v.current,{startingIndex:F,decrement:$,disabledIndices:p})),F!==x&&!Ao(v.current,F)&&(d&&E.stopPropagation(),(g||O||j||$)&&E.preventDefault(),S(F,!0),queueMicrotask(()=>{var U;(U=v.current[F])==null||U.focus()}))});return{props:{ref:b,onFocus(E){const O=h.current,I=et(E.nativeEvent);!O||I==null||!Jc(I)||I.setSelectionRange(0,I.value.length)},onKeyDown:k},highlightedIndex:x,onHighlightedIndexChange:S,elementsRef:v,onMapChange:R,relayKeyboardEvent:k}}function uw(e,t){for(const n of Sb)if(!t.includes(n)&&e.getModifierState(n))return!0;return!1}function cp(e){const{render:t,className:n,style:o,refs:r=Dt,props:s=Dt,state:i=We,stateAttributesMapping:a,highlightedIndex:l,onHighlightedIndexChange:u,orientation:d,grid:p,loopFocus:f,onLoop:y,enableHomeAndEndKeys:m,onMapChange:g,stopEventPropagation:h=!0,rootRef:b,disabledIndices:v,modifierKeys:w,highlightItemOnHover:x=!1,tag:S="div",...R}=e,C=bo(),{props:k,highlightedIndex:P,onHighlightedIndexChange:E,elementsRef:O,onMapChange:I,relayKeyboardEvent:N}=lw({grid:p,loopFocus:f,onLoop:y,orientation:d,highlightedIndex:l,onHighlightedIndexChange:u,rootRef:b,stopEventPropagation:h,enableHomeAndEndKeys:m,direction:C,disabledIndices:v,modifierKeys:w}),D=Se(S,e,{state:i,ref:r,props:[k,...s,R],stateAttributesMapping:a}),M=c.useMemo(()=>({highlightedIndex:P,onHighlightedIndexChange:E,highlightItemOnHover:x,relayKeyboardEvent:N}),[P,E,x,N]);return K.jsx(lu.Provider,{value:M,children:K.jsx(ms,{elementsRef:O,onMapChange:z=>{g==null||g(z),I(z)},children:D})})}const fE=c.forwardRef(function(t,n){const{activateOnFocus:o=!1,className:r,loopFocus:s=!0,render:i,style:a,...l}=t,{orientation:u,setTabMap:d,tabActivationDirection:p}=Ps(),[f,y]=c.useState(0),[m,g]=c.useState(null),h=c.useRef(new Set),b=c.useRef(new Set),v=c.useRef(null);oe(()=>{if(typeof ResizeObserver>"u")return;const k=new ResizeObserver(()=>{h.current.forEach(P=>{P()})});return v.current=k,m&&k.observe(m),b.current.forEach(P=>{k.observe(P)}),()=>{k.disconnect(),v.current=null}},[m]);const w=le(k=>(h.current.add(k),()=>{h.current.delete(k)})),x=le(k=>{var P;return b.current.add(k),(P=v.current)==null||P.observe(k),()=>{var E;b.current.delete(k),(E=v.current)==null||E.unobserve(k)}}),S={orientation:u,tabActivationDirection:p},R={"aria-orientation":u==="vertical"?"vertical":void 0,role:"tablist"},C=c.useMemo(()=>({activateOnFocus:o,registerIndicatorUpdateListener:w,registerTabResizeObserverElement:x,tabsListElement:m}),[o,w,x,m]);return K.jsx(ip.Provider,{value:C,children:K.jsx(cp,{render:i,className:r,style:a,state:S,refs:[n,g],props:[R,l],stateAttributesMapping:Ko,highlightedIndex:f,enableHomeAndEndKeys:!0,loopFocus:s,orientation:u,onHighlightedIndexChange:y,onMapChange:d,disabledIndices:Dt})})});function pE(e){return Jd("alert-dialog",e)}const hE=$v;function dw(e){if(!e)return null;for(const t of e.elements){const n=t.tagName;if(n==="BUTTON"||n==="INPUT"){const o=t;if(o.type==="submit")return o}}return null}function lp(e){return{checked(t){return e.indeterminate?{}:t?{"data-checked":""}:{"data-unchecked":""}},...vs}}const fw=c.createContext(void 0);function pw(){return c.useContext(fw)}const up=c.createContext(void 0);function hw(){const e=c.useContext(up);if(e===void 0)throw new Error(De(14));return e}const gw="data-parent",gE=c.forwardRef(function(t,n){const{checked:o,className:r,defaultChecked:s=!1,"aria-labelledby":i,disabled:a=!1,form:l,id:u,indeterminate:d=!1,inputRef:p,name:f,onCheckedChange:y,parent:m=!1,readOnly:g=!1,render:h,required:b=!1,uncheckedValue:v,value:w,nativeButton:x=!1,style:S,...R}=t,{clearErrors:C}=Ss(),{disabled:k,name:P,setDirty:E,setFilled:O,setFocused:I,setTouched:N,state:D,validationMode:M,validityData:z,validation:_}=vo(),A=H2(),{labelId:F,controlId:T,registerControlId:L,getDescriptionProps:j}=qo(),$=pw(),U=($==null?void 0:$.allValues)===void 0?void 0:$.parent,q=U!==void 0,V=k||A.disabled||($==null?void 0:$.disabled)||a,Q=P??f,H=w??Q,G=tt(),ue=tt();let ne=u||T;q&&(m?ne=ue:H!==void 0?ne=`${U.id}-${H}`:ne||(ne=ue));let te={};q&&(m?te=U.getParentProps():H!==void 0&&(te=U.getChildProps(H)));const{checked:J=o,indeterminate:ee=d,onCheckedChange:ie,...xe}=te,ae=$==null?void 0:$.value,he=c.useRef(null),re=at(()=>Symbol()),ge=c.useRef(!1),{getButtonProps:de,buttonRef:ce}=Tt({disabled:V,native:x}),fe=($==null?void 0:$.validation)??_,[W,Y]=_t({controlled:H!==void 0&&ae!==void 0&&!m?ae.includes(H):J,default:s,name:"Checkbox",state:"checked"}),se=q?!!J:W,Z=q&&ee||d;oe(()=>{L!==Ke&&(ge.current=!0,L(re.current,ne))},[ne,L,re]),c.useEffect(()=>{const Re=re.current;return()=>{!ge.current||L===Ke||(ge.current=!1,L(Re,void 0))}},[L,re]),xs(he,G,W,void 0,!$&&!V,f);const X=c.useRef(null),pe=fe.registerInput,be=$?H:void 0,_e=c.useCallback(Re=>pe(Re,{controlRef:he,value:be}),[pe,be]),Ue=Nt(p,X,m?void 0:_e),Ye=Qf(i,F,X,!x,ne??void 0);oe(()=>{X.current&&(X.current.indeterminate=Z,W&&O(!0))},[W,Z,O]),bs(W,()=>{$||(C(Q),O(W),E(W!==z.initialValue),fe.change(W))});const st=St({checked:W,disabled:V,form:l,name:m?void 0:Q,id:x?void 0:ne??void 0,required:b,ref:Ue,style:Q?oa:Bo,tabIndex:-1,type:"checkbox","aria-hidden":!0,onChange(Re){if(Re.nativeEvent.defaultPrevented)return;if(g){Re.preventDefault();return}const je=Re.currentTarget.checked,qe=ke(Rt,Re.nativeEvent);if(y==null||y(je,qe),!qe.isCanceled&&(ie==null||ie(je,qe),!qe.isCanceled&&(Y(je),H!==void 0&&$!==void 0&&!m&&!q))){const Be=je?[...$.value,H]:$.value.filter(Xe=>Xe!==H);$.setValue(Be,qe)}},onClick(Re){Re.stopPropagation()},onFocus(){var Re;(Re=he.current)==null||Re.focus()}},w!==void 0?{value:($?W&&w:w)||""}:We,j,Re=>fe.getValidationProps(V,Re));c.useEffect(()=>{if(!U||H===void 0)return;const Re=U.disabledStatesRef.current;return Re.set(H,V),()=>{Re.delete(H)}},[U,V,H]);const Le=c.useMemo(()=>({...D,checked:se,disabled:V,readOnly:g,required:b,indeterminate:Z}),[D,se,V,g,b,Z]),Je=lp(Le),ct=Se("span",t,{state:Le,ref:[ce,he,n],props:[{id:x?ne??void 0:G,role:"checkbox","aria-checked":Z?"mixed":se,"aria-readonly":g||void 0,"aria-required":b||void 0,"aria-labelledby":Ye,[gw]:m?"":void 0,onFocus(){V||I(!0)},onBlur(){const Re=X.current;Re&&(N(!0),I(!1),M==="onBlur"&&fe.commit($?ae:Re.checked))},onKeyDown(Re){var Ae;if(Re.key!=="Enter"||(Re.preventBaseUIHandler(),Re.defaultPrevented))return;const je=((Ae=X.current)==null?void 0:Ae.form)??null,qe=Re.currentTarget,Be=Re.nativeEvent,Xe=Re.preventDefault,pt=Be.preventDefault;let we=!1;Re.preventDefault=()=>{we=!0,Xe.call(Re)},Be.preventDefault=()=>{we=!0,pt.call(Be)},pt.call(Be),He(qe).queueMicrotask(()=>{var Qe;Re.preventDefault=Xe,Be.preventDefault=pt,we||(Qe=dw(je))==null||Qe.click()})},onClick(Re){if(g||V)return;Re.preventDefault();const je=X.current;je&&Qn(je,Re)}},R,xe,de,j,Re=>fe.getValidationProps(V,Re)],stateAttributesMapping:Je});return K.jsxs(up.Provider,{value:Le,children:[ct,!W&&!$&&Q&&!m&&v!==void 0&&K.jsx("input",{type:"hidden",form:l,name:Q,value:v,disabled:V}),K.jsx("input",{...st,suppressHydrationWarning:!0})]})}),mE=c.forwardRef(function(t,n){const{render:o,className:r,style:s,keepMounted:i=!1,...a}=t,l=hw(),u=l.checked||l.indeterminate,{mounted:d,transitionStatus:p,setMounted:f}=ln(u),y=c.useRef(null),m={...l,transitionStatus:p};kt({open:u,ref:y,onComplete(){u||f(!1)}});const h={...lp(l),...Gt},b=i||d,v=Se("span",t,{ref:[n,y],state:m,stateAttributesMapping:h,props:a});return b?v:null}),dp=c.createContext(void 0);function mw(){return c.useContext(dp)}const yE=c.forwardRef(function(t,n){const{className:o,defaultPressed:r=!1,disabled:s=!1,form:i,onPressedChange:a,pressed:l,render:u,type:d,value:p,nativeButton:f=!0,style:y,...m}=t,g=tt(p||void 0),h=mw(),b=(h==null?void 0:h.value)??[],v=h?void 0:r,w=(s||(h==null?void 0:h.disabled))??!1,[x,S]=_t({controlled:h?g!==void 0&&b.indexOf(g)>-1:l,default:v,name:"Toggle",state:"pressed"}),{getButtonProps:R,buttonRef:C}=Tt({disabled:w,native:f}),k={disabled:w,pressed:x},P=[C,n],E=[{"aria-pressed":x,onClick(N){var z;const D=!x,M=ke(Rt,N.nativeEvent);a==null||a(D,M),!M.isCanceled&&(g&&((z=h==null?void 0:h.setGroupValue)==null||z.call(h,g,D,M)),!M.isCanceled&&S(D))}},m,R],O=Se("button",t,{enabled:!h,state:k,ref:P,props:E}),I=c.useMemo(()=>({disabled:w,focusableWhenDisabled:!1}),[w]);return h?K.jsx(Hd,{tag:"button",render:u,className:o,style:y,metadata:I,state:k,refs:P,props:E}):O}),yw=c.createContext(void 0);function bw(){return c.useContext(yw)}const bE=c.forwardRef(function(t,n){const{defaultValue:o,disabled:r=!1,loopFocus:s=!0,onValueChange:i,orientation:a="horizontal",multiple:l=!1,value:u,className:d,render:p,style:f,...y}=t,m=Pa(),g=bw(),h=u!==void 0||o!==void 0,b=((m==null?void 0:m.disabled)??!1)||((g==null?void 0:g.disabled)??!1)||r,[v,w]=_t({controlled:u,default:u===void 0?o??Dt:void 0,name:"ToggleGroup",state:"value"}),x=le((P,E,O)=>{let I;l?(I=v.slice(),E?I.push(P):I.splice(v.indexOf(P),1)):I=E?[P]:[],i==null||i(I,O),!O.isCanceled&&w(I)}),S={disabled:b,multiple:l,orientation:a},R=c.useMemo(()=>({disabled:b,setGroupValue:x,value:v,isValueInitialized:h}),[b,x,v,h]),C={role:"group"},k=Se("div",t,{enabled:!!m,state:S,ref:n,props:[C,y]});return K.jsx(dp.Provider,{value:R,children:m?k:K.jsx(cp,{render:p,className:d,style:f,state:S,refs:[n],props:[C,y],loopFocus:s,enableHomeAndEndKeys:!0,orientation:a})})});function vE(e){const[t,n]=c.useState({getBoundingClientRect(){return DOMRect.fromRect({width:0,height:0,x:0,y:0})}}),o=c.useRef(null),r=c.useRef(null),s=c.useRef(null),i=c.useRef(null),a=c.useRef(!0),l=c.useRef(null),u=bn(),d=c.useMemo(()=>({anchor:t,setAnchor:n,actionsRef:s,backdropRef:o,internalBackdropRef:r,positionerRef:i,allowMouseUpTriggerRef:a,initialCursorPointRef:l,rootId:u}),[t,u]);return K.jsx(Tu.Provider,{value:d,children:K.jsx(ji.Provider,{value:void 0,children:K.jsx(Jb,{...e})})})}const Ll=500,xE=c.forwardRef(function(t,n){const{render:o,className:r,style:s,...i}=t,{setAnchor:a,actionsRef:l,internalBackdropRef:u,backdropRef:d,positionerRef:p,allowMouseUpTriggerRef:f,initialCursorPointRef:y,rootId:m}=Zr(!1),{store:g}=cn(!1),h=g.useState("open"),b=g.useState("disabled"),v=c.useRef(null),w=c.useRef(null),x=Ge(),S=Ge(),R=c.useRef(!1),C=c.useRef(null);function k(M,z,_){var F;const A=_.type.startsWith("touch");y.current={x:M,y:z},a({getBoundingClientRect(){return DOMRect.fromRect({width:A?10:0,height:A?10:0,x:M,y:z})}}),R.current=!1,(F=l.current)==null||F.setOpen(!0,ke(Rn,_)),S.start(Ll,()=>{R.current=!0})}function P(M){var A;if(b)return;f.current=!0,It(M),k(M.clientX,M.clientY,M.nativeEvent);const z=Te(v.current);(A=C.current)==null||A.abort();const _=new AbortController;C.current=_,z.addEventListener("mouseup",F=>{var L;if(f.current=!1,!R.current)return;S.clear(),R.current=!1;const T=et(F);ve(p.current,T)||m&&T&&Aa(T)===m||(L=l.current)==null||L.setOpen(!1,ke(Ui,F))},{once:!0,signal:_.signal})}function E(){x.clear(),w.current=null}function O(M){if(b){E();return}if(f.current=!1,M.touches.length!==1){E();return}M.stopPropagation();const z=M.touches[0],_={x:z.clientX,y:z.clientY};w.current=_,x.start(Ll,()=>{k(_.x,_.y,M.nativeEvent)})}function I(M){if(M.touches.length!==1){E();return}if(x.isStarted()&&w.current){const z=M.touches[0],_=10,A=Math.abs(z.clientX-w.current.x),F=Math.abs(z.clientY-w.current.y);(A>_||F>_)&&E()}}return c.useEffect(()=>()=>{var M;(M=C.current)==null||M.abort()},[]),c.useEffect(()=>{function M(_){if(b)return;const F=et(_);(ve(v.current,F)||ve(u.current,F)||ve(d.current,F))&&_.preventDefault()}const z=Te(v.current);return Pe(z,"contextmenu",M)},[d,b,u]),Se("div",t,{state:{open:h},ref:[v,n],props:[{onContextMenu:P,onTouchStart:O,onTouchMove:I,onTouchEnd:E,onTouchCancel:E,style:{WebkitTouchCallout:"none"}},i],stateAttributesMapping:Lr})});function vw(e,t){const n=getComputedStyle(e),o=parseFloat(n.fontSize);return t*o}function xw(e,t){const n=getComputedStyle(e.ownerDocument.documentElement),o=parseFloat(n.fontSize);return t*o}function ww(e){return e/100*window.innerHeight}function Sw(e){return e/100*window.innerWidth}function Rw(e){switch(typeof e){case"number":return[e,"px"];case"string":{const t=parseFloat(e);return e.endsWith("%")?[t,"%"]:e.endsWith("px")?[t,"px"]:e.endsWith("rem")?[t,"rem"]:e.endsWith("em")?[t,"em"]:e.endsWith("vh")?[t,"vh"]:e.endsWith("vw")?[t,"vw"]:[t,"%"]}}}function Oo({groupSize:e,panelElement:t,styleProp:n}){let o;const[r,s]=Rw(n);switch(s){case"%":{o=r/100*e;break}case"px":{o=r;break}case"rem":{o=xw(t,r);break}case"em":{o=vw(t,r);break}case"vh":{o=ww(r);break}case"vw":{o=Sw(r);break}}return o}function mt(e){return parseFloat(e.toFixed(3))}function go({group:e}){const{orientation:t,panels:n}=e;return n.reduce((o,r)=>(o+=t==="horizontal"?r.element.offsetWidth:r.element.offsetHeight,o),0)}function Oi(e){const{panels:t}=e,n=go({group:e});return n===0?t.map(o=>({groupResizeBehavior:o.panelConstraints.groupResizeBehavior,collapsedSize:0,collapsible:o.panelConstraints.collapsible===!0,defaultSize:void 0,disabled:o.panelConstraints.disabled,minSize:0,maxSize:100,panelId:o.id})):t.map(o=>{const{element:r,panelConstraints:s}=o;let i=0;if(s.collapsedSize!==void 0){const d=Oo({groupSize:n,panelElement:r,styleProp:s.collapsedSize});i=mt(d/n*100)}let a;if(s.defaultSize!==void 0){const d=Oo({groupSize:n,panelElement:r,styleProp:s.defaultSize});a=mt(d/n*100)}let l=0;if(s.minSize!==void 0){const d=Oo({groupSize:n,panelElement:r,styleProp:s.minSize});l=mt(d/n*100)}let u=100;if(s.maxSize!==void 0){const d=Oo({groupSize:n,panelElement:r,styleProp:s.maxSize});u=mt(d/n*100)}return{groupResizeBehavior:s.groupResizeBehavior,collapsedSize:i,collapsible:s.collapsible===!0,defaultSize:a,disabled:s.disabled,minSize:l,maxSize:u,panelId:o.id}})}function $e(e,t="Assertion error"){if(!e)throw Error(t)}function Ai(e,t){return Array.from(t).sort(e==="horizontal"?kw:Cw)}function kw(e,t){const n=e.element.offsetLeft-t.element.offsetLeft;return n!==0?n:e.element.offsetWidth-t.element.offsetWidth}function Cw(e,t){const n=e.element.offsetTop-t.element.offsetTop;return n!==0?n:e.element.offsetHeight-t.element.offsetHeight}function fp(e){return e!==null&&typeof e=="object"&&"nodeType"in e&&e.nodeType===Node.ELEMENT_NODE}function pp(e,t){return{x:e.x>=t.left&&e.x<=t.right?0:Math.min(Math.abs(e.x-t.left),Math.abs(e.x-t.right)),y:e.y>=t.top&&e.y<=t.bottom?0:Math.min(Math.abs(e.y-t.top),Math.abs(e.y-t.bottom))}}function Ew({orientation:e,rects:t,targetRect:n}){const o={x:n.x+n.width/2,y:n.y+n.height/2};let r,s=Number.MAX_VALUE;for(const i of t){const{x:a,y:l}=pp(o,i),u=e==="horizontal"?a:l;u<s&&(s=u,r=i)}return $e(r,"No rect found"),r}let Sr;function Mw(){return Sr===void 0&&(typeof matchMedia=="function"?Sr=!!matchMedia("(pointer:coarse)").matches:Sr=!1),Sr}function hp(e){const{element:t,orientation:n,panels:o,separators:r}=e,s=Ai(n,Array.from(t.children).filter(fp).map(m=>({element:m}))).map(({element:m})=>m),i=[];let a=!1,l=!1,u=-1,d=-1,p=0,f,y=[];{let m=-1;for(const g of s)g.hasAttribute("data-panel")&&(m++,g.hasAttribute("data-disabled")||(p++,u===-1&&(u=m),d=m))}if(p>1){let m=-1;for(const g of s)if(g.hasAttribute("data-panel")){m++;const h=o.find(b=>b.element===g);if(h){if(f){const b=f.element.getBoundingClientRect(),v=g.getBoundingClientRect();let w;if(l){const x=n==="horizontal"?new DOMRect(b.right,b.top,0,b.height):new DOMRect(b.left,b.bottom,b.width,0),S=n==="horizontal"?new DOMRect(v.left,v.top,0,v.height):new DOMRect(v.left,v.top,v.width,0);switch(y.length){case 0:{w=[x,S];break}case 1:{const R=y[0],C=Ew({orientation:n,rects:[b,v],targetRect:R.element.getBoundingClientRect()});w=[R,C===b?S:x];break}default:{w=y;break}}}else y.length?w=y:w=[n==="horizontal"?new DOMRect(b.right,v.top,v.left-b.right,v.height):new DOMRect(v.left,b.bottom,v.width,v.top-b.bottom)];for(const x of w){let S="width"in x?x:x.element.getBoundingClientRect();const R=Mw()?e.resizeTargetMinimumSize.coarse:e.resizeTargetMinimumSize.fine;if(S.width<R){const k=R-S.width;S=new DOMRect(S.x-k/2,S.y,S.width+k,S.height)}if(S.height<R){const k=R-S.height;S=new DOMRect(S.x,S.y-k/2,S.width,S.height+k)}const C=m<=u||m>d;!a&&!C&&i.push({group:e,groupSize:go({group:e}),panels:[f,h],separator:"width"in x?void 0:x,rect:S}),a=!1}}l=!1,f=h,y=[]}}else if(g.hasAttribute("data-separator")){g.ariaDisabled!==null&&(a=!0);const h=r.find(b=>b.element===g);h?y.push(h):(f=void 0,y=[])}else l=!0}return i}var fn;class gp{constructor(){ac(this,fn,{})}addListener(t,n){const o=Ro(this,fn)[t];return o===void 0?Ro(this,fn)[t]=[n]:o.includes(n)||o.push(n),()=>{this.removeListener(t,n)}}emit(t,n){const o=Ro(this,fn)[t];if(o!==void 0)if(o.length===1)o[0].call(null,n);else{let r=!1,s=null;const i=Array.from(o);for(let a=0;a<i.length;a++){const l=i[a];try{l.call(null,n)}catch(u){s===null&&(r=!0,s=u)}}if(r)throw s}}removeAllListeners(){cc(this,fn,{})}removeListener(t,n){const o=Ro(this,fn)[t];if(o!==void 0){const r=o.indexOf(n);r>=0&&o.splice(r,1)}}}fn=new WeakMap;let oo={cursorFlags:0,state:"inactive"};const Ya=new gp;function Ln(){return oo}function Pw(e){return Ya.addListener("change",e)}function Tw(e){const t=oo,n={...oo};n.cursorFlags=e,oo=n,Ya.emit("change",{prev:t,next:n})}function ro(e){const t=oo;oo=e,Ya.emit("change",{prev:t,next:e})}const Iw=e=>e,Zs=()=>{},mp=1,yp=2,bp=4,vp=8,Fl=3,zl=12;let Rr;function Vl(){return Rr===void 0&&(Rr=!1,typeof window<"u"&&(window.navigator.userAgent.includes("Chrome")||window.navigator.userAgent.includes("Firefox"))&&(Rr=!0)),Rr}function Ow({cursorFlags:e,groups:t,state:n}){let o=0,r=0;switch(n){case"active":case"hover":t.forEach(s=>{if(!s.mutableState.disableCursor)switch(s.orientation){case"horizontal":{o++;break}case"vertical":{r++;break}}})}if(!(o===0&&r===0)){switch(n){case"active":{if(e&&Vl()){const s=(e&mp)!==0,i=(e&yp)!==0,a=(e&bp)!==0,l=(e&vp)!==0;if(s)return a?"se-resize":l?"ne-resize":"e-resize";if(i)return a?"sw-resize":l?"nw-resize":"w-resize";if(a)return"s-resize";if(l)return"n-resize"}break}}return Vl()?o>0&&r>0?"move":o>0?"ew-resize":"ns-resize":o>0&&r>0?"grab":o>0?"col-resize":"row-resize"}}const $l=new WeakMap;function Xa(e){if(e.defaultView===null||e.defaultView===void 0)return;let{prevStyle:t,styleSheet:n}=$l.get(e)??{};n===void 0&&(n=new e.defaultView.CSSStyleSheet,e.adoptedStyleSheets&&(Object.isExtensible(e.adoptedStyleSheets)?e.adoptedStyleSheets.push(n):e.adoptedStyleSheets=[...e.adoptedStyleSheets,n]));const o=Ln();switch(o.state){case"active":case"hover":{const r=Ow({cursorFlags:o.cursorFlags,groups:o.hitRegions.map(i=>i.group),state:o.state}),s=`*, *:hover {cursor: ${r} !important; }`;if(t===s)return;t=s,r?n.cssRules.length===0?n.insertRule(s):n.replaceSync(s):n.cssRules.length===1&&n.deleteRule(0);break}case"inactive":{t=void 0,n.cssRules.length===1&&n.deleteRule(0);break}}$l.set(e,{prevStyle:t,styleSheet:n})}let Wt=new Map;const xp=new gp;function Aw(e){Wt=new Map(Wt),Wt.delete(e)}function Hl(e,t){for(const[n]of Wt)if(n.id===e)return n}function yn(e,t){for(const[n,o]of Wt)if(n.id===e)return o;if(t)throw Error(`Could not find data for Group with id ${e}`)}function Hn(){return Wt}function Ka(e,t){return xp.addListener("groupChange",n=>{n.group.id===e&&t(n)})}function sn(e,t,n){const o=Wt.get(e);Wt=new Map(Wt),Wt.set(e,t),xp.emit("groupChange",{group:e,isUserInteraction:(n==null?void 0:n.isUserInteraction)===!0,prev:o,next:t})}function wp(e){const t=Ln();let n=!1;switch(t.state){case"active":ro({cursorFlags:0,state:"inactive"}),t.hitRegions.length>0&&(Xa(e),n=!0,t.hitRegions.forEach(o=>{const r=yn(o.group.id,!0);sn(o.group,r,{isUserInteraction:!0})}))}return n}function jl(e){e.defaultPrevented||wp(e.currentTarget)}function Nw(e,t,n){let o,r={x:1/0,y:1/0};for(const s of t){const i=pp(n,s.rect);switch(e){case"horizontal":{i.x<=r.x&&(o=s,r=i);break}case"vertical":{i.y<=r.y&&(o=s,r=i);break}}}return o?{distance:r,hitRegion:o}:void 0}function Dw(e){return e!==null&&typeof e=="object"&&"nodeType"in e&&e.nodeType===Node.DOCUMENT_FRAGMENT_NODE}function _w(e,t){if(e===t)throw new Error("Cannot compare node with itself");const n={a:Ul(e),b:Ul(t)};let o;for(;n.a.at(-1)===n.b.at(-1);)o=n.a.pop(),n.b.pop();$e(o,"Stacking order can only be calculated for elements with a common ancestor");const r={a:Wl(Bl(n.a)),b:Wl(Bl(n.b))};if(r.a===r.b){const s=o.childNodes,i={a:n.a.at(-1),b:n.b.at(-1)};let a=s.length;for(;a--;){const l=s[a];if(l===i.a)return 1;if(l===i.b)return-1}}return Math.sign(r.a-r.b)}const Lw=/\b(?:position|zIndex|opacity|transform|webkitTransform|mixBlendMode|filter|webkitFilter|isolation)\b/;function Fw(e){const t=getComputedStyle(Sp(e)??e).display;return t==="flex"||t==="inline-flex"}function zw(e){const t=getComputedStyle(e);return!!(t.position==="fixed"||t.zIndex!=="auto"&&(t.position!=="static"||Fw(e))||+t.opacity<1||"transform"in t&&t.transform!=="none"||"webkitTransform"in t&&t.webkitTransform!=="none"||"mixBlendMode"in t&&t.mixBlendMode!=="normal"||"filter"in t&&t.filter!=="none"||"webkitFilter"in t&&t.webkitFilter!=="none"||"isolation"in t&&t.isolation==="isolate"||Lw.test(t.willChange)||t.webkitOverflowScrolling==="touch")}function Bl(e){let t=e.length;for(;t--;){const n=e[t];if($e(n,"Missing node"),zw(n))return n}return null}function Wl(e){return e&&Number(getComputedStyle(e).zIndex)||0}function Ul(e){const t=[];for(;e;)t.push(e),e=Sp(e);return t}function Sp(e){const{parentNode:t}=e;return Dw(t)?t.host:t}function Vw(e,t){return e.x<t.x+t.width&&e.x+e.width>t.x&&e.y<t.y+t.height&&e.y+e.height>t.y}function $w({groupElement:e,hitRegion:t,pointerEventTarget:n}){if(!fp(n)||n.contains(e)||e.contains(n))return!0;if(_w(n,e)>0){let o=n;for(;o;){if(o.contains(e))return!0;if(Vw(o.getBoundingClientRect(),t))return!1;o=o.parentElement}}return!0}function Za(e,t){const n=[];return t.forEach((o,r)=>{if(r.disabled)return;const s=hp(r),i=Nw(r.orientation,s,{x:e.clientX,y:e.clientY});i&&i.distance.x<=0&&i.distance.y<=0&&$w({groupElement:r.element,hitRegion:i.hitRegion.rect,pointerEventTarget:e.target})&&n.push(i.hitRegion)}),n}function Hw(e,t){if(e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(e[n]!=t[n])return!1;return!0}function ft(e,t,n=0){return Math.abs(mt(e)-mt(t))<=n}function jt(e,t){return ft(e,t)?0:e>t?1:-1}function Zn({overrideDisabledPanels:e,panelConstraints:t,prevSize:n,size:o}){const{collapsedSize:r=0,collapsible:s,disabled:i,maxSize:a=100,minSize:l=0}=t;if(i&&!e)return n;if(jt(o,l)<0)if(s){const u=(r+l)/2;jt(o,u)<0?o=r:o=l}else o=l;return o=Math.min(a,o),o=mt(o),o}function Ho({delta:e,initialLayout:t,panelConstraints:n,pivotIndices:o,prevLayout:r,trigger:s}){if(ft(e,0))return t;const i=s==="imperative-api",a=Object.values(t),l=Object.values(r),u=[...a],[d,p]=o;$e(d!=null,"Invalid first pivot index"),$e(p!=null,"Invalid second pivot index");let f=0;switch(s){case"keyboard":{{const g=e<0?p:d,h=n[g];$e(h,`Panel constraints not found for index ${g}`);const{collapsedSize:b=0,collapsible:v,minSize:w=0}=h;if(v){const x=a[g];if($e(x!=null,`Previous layout not found for panel index ${g}`),ft(x,b)){const S=w-x;jt(S,Math.abs(e))>0&&(e=e<0?0-S:S)}}}{const g=e<0?d:p,h=n[g];$e(h,`No panel constraints found for index ${g}`);const{collapsedSize:b=0,collapsible:v,minSize:w=0}=h;if(v){const x=a[g];if($e(x!=null,`Previous layout not found for panel index ${g}`),ft(x,w)){const S=x-b;jt(S,Math.abs(e))>0&&(e=e<0?0-S:S)}}}break}default:{const g=e<0?p:d,h=n[g];$e(h,`Panel constraints not found for index ${g}`);const b=a[g],{collapsible:v,collapsedSize:w,minSize:x}=h;if(v&&jt(b,x)<0)if(e>0){const S=x-w,R=S/2,C=b+e;jt(C,x)<0&&(e=jt(e,R)<=0?0:S)}else{const S=x-w,R=100-S/2,C=b-e;jt(C,x)<0&&(e=jt(100+e,R)>0?0:-S)}break}}{const g=e<0?1:-1;let h=e<0?p:d,b=0;for(;;){const w=a[h];$e(w!=null,`Previous layout not found for panel index ${h}`);const x=Zn({overrideDisabledPanels:i,panelConstraints:n[h],prevSize:w,size:100})-w;if(b+=x,h+=g,h<0||h>=n.length)break}const v=Math.min(Math.abs(e),Math.abs(b));e=e<0?0-v:v}{let g=e<0?d:p;for(;g>=0&&g<n.length;){const h=Math.abs(e)-Math.abs(f),b=a[g];$e(b!=null,`Previous layout not found for panel index ${g}`);const v=b-h,w=Zn({overrideDisabledPanels:i,panelConstraints:n[g],prevSize:b,size:v});if(!ft(b,w)&&(f+=b-w,u[g]=w,f.toFixed(3).localeCompare(Math.abs(e).toFixed(3),void 0,{numeric:!0})>=0))break;e<0?g--:g++}}if(Hw(l,u))return r;{const g=e<0?p:d,h=a[g];$e(h!=null,`Previous layout not found for panel index ${g}`);const b=h+f,v=Zn({overrideDisabledPanels:i,panelConstraints:n[g],prevSize:h,size:b});if(u[g]=v,!ft(v,b)){let w=b-v,x=e<0?p:d;for(;x>=0&&x<n.length;){const S=u[x];$e(S!=null,`Previous layout not found for panel index ${x}`);const R=S+w,C=Zn({overrideDisabledPanels:i,panelConstraints:n[x],prevSize:S,size:R});if(ft(S,C)||(w-=C-S,u[x]=C),ft(w,0))break;e>0?x--:x++}}}const y=Object.values(u).reduce((g,h)=>h+g,0);if(!ft(y,100,.1))return r;const m=Object.keys(r);return u.reduce((g,h,b)=>(g[m[b]]=h,g),{})}function Fn(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(t[n]===void 0||jt(e[n],t[n])!==0)return!1;return!0}function zn({layout:e,panelConstraints:t}){const n=Object.values(e),o=[...n],r=o.reduce((a,l)=>a+l,0);if(o.length!==t.length)throw Error(`Invalid ${t.length} panel layout: ${o.map(a=>`${a}%`).join(", ")}`);if(!ft(r,100)&&o.length>0)for(let a=0;a<t.length;a++){const l=o[a];$e(l!=null,`No layout data found for index ${a}`);const u=100/r*l;o[a]=u}let s=0;for(let a=0;a<t.length;a++){const l=n[a];$e(l!=null,`No layout data found for index ${a}`);const u=o[a];$e(u!=null,`No layout data found for index ${a}`);const d=Zn({overrideDisabledPanels:!0,panelConstraints:t[a],prevSize:l,size:u});u!=d&&(s+=u-d,o[a]=d)}if(!ft(s,0))for(let a=0;a<t.length;a++){const l=o[a];$e(l!=null,`No layout data found for index ${a}`);const u=l+s,d=Zn({overrideDisabledPanels:!0,panelConstraints:t[a],prevSize:l,size:u});if(l!==d&&(s-=d-l,o[a]=d,ft(s,0)))break}const i=Object.keys(e);return o.reduce((a,l,u)=>(a[i[u]]=l,a),{})}function Rp({groupId:e,panelId:t}){const n=()=>{const l=Hn();for(const[u,{defaultLayoutDeferred:d,derivedPanelConstraints:p,layout:f,groupSize:y,separatorToPanels:m}]of l)if(u.id===e)return{defaultLayoutDeferred:d,derivedPanelConstraints:p,group:u,groupSize:y,layout:f,separatorToPanels:m};throw Error(`Group ${e} not found`)},o=()=>{const l=n().derivedPanelConstraints.find(u=>u.panelId===t);if(l!==void 0)return l;throw Error(`Panel constraints not found for Panel ${t}`)},r=()=>{const l=n().group.panels.find(u=>u.id===t);if(l!==void 0)return l;throw Error(`Layout not found for Panel ${t}`)},s=()=>{const l=n().layout[t];if(l!==void 0)return l;throw Error(`Layout not found for Panel ${t}`)},i=({nextSize:l,panels:u,prevLayout:d,derivedPanelConstraints:p})=>{const f=s(),y=u.findIndex(h=>h.id===t),m=y===0,g=y===u.length-1;if(g&&l<f&&(m||u.slice(0,y).every((h,b)=>{const v=p[b];return(v==null?void 0:v.collapsible)&&ft(v.collapsedSize,d[v.panelId])}))){const h=u.slice(0,y).reduce((b,v)=>b+d[v.id],0);return{...d,[t]:mt(100-h)}}return Ho({delta:g?f-l:l-f,initialLayout:d,panelConstraints:p,pivotIndices:g?[y-1,y]:[y,y+1],prevLayout:d,trigger:"imperative-api"})},a=l=>{const u=s();if(l===u)return;const{defaultLayoutDeferred:d,derivedPanelConstraints:p,group:f,groupSize:y,layout:m,separatorToPanels:g}=n(),h=i({nextSize:l,panels:f.panels,prevLayout:m,derivedPanelConstraints:p}),b=zn({layout:h,panelConstraints:p});Fn(m,b)||sn(f,{defaultLayoutDeferred:d,derivedPanelConstraints:p,groupSize:y,layout:b,separatorToPanels:g})};return{collapse:()=>{const{collapsible:l,collapsedSize:u}=o(),{mutableValues:d}=r(),p=s();l&&p!==u&&(d.expandToSize=p,a(u))},expand:()=>{const{collapsible:l,collapsedSize:u,minSize:d}=o(),{mutableValues:p}=r(),f=s();if(l&&f===u){let y=p.expandToSize??d;y===0&&(y=1),a(y)}},getSize:()=>{const{group:l}=n(),u=s(),{element:d}=r(),p=l.orientation==="horizontal"?d.offsetWidth:d.offsetHeight;return{asPercentage:u,inPixels:p}},isCollapsed:()=>{const{collapsible:l,collapsedSize:u}=o(),d=s();return l&&ft(u,d)},resize:l=>{const{group:u}=n(),{element:d}=r(),p=go({group:u}),f=Oo({groupSize:p,panelElement:d,styleProp:l}),y=mt(f/p*100);a(y)}}}function Gl(e){if(e.defaultPrevented)return;const t=Hn();Za(e,t).forEach(n=>{if(n.separator&&!n.separator.disableDoubleClick){const o=n.panels.find(r=>r.panelConstraints.defaultSize!==void 0);if(o){const r=o.panelConstraints.defaultSize,s=Rp({groupId:n.group.id,panelId:o.id});s&&r!==void 0&&(s.resize(r),e.preventDefault())}}})}function Or(e){const t=Hn();for(const[n]of t)if(n.separators.some(o=>o.element===e))return n;throw Error("Could not find parent Group for separator element")}function kp({groupId:e}){const t=()=>{const n=Hn();for(const[o,r]of n)if(o.id===e)return{group:o,...r};throw Error(`Could not find Group with id "${e}"`)};return{getLayout(){const{defaultLayoutDeferred:n,layout:o}=t();return n?{}:o},setLayout(n){const{defaultLayoutDeferred:o,derivedPanelConstraints:r,group:s,groupSize:i,layout:a,separatorToPanels:l}=t(),u=zn({layout:n,panelConstraints:r});return o?a:(Fn(a,u)||sn(s,{defaultLayoutDeferred:o,derivedPanelConstraints:r,groupSize:i,layout:u,separatorToPanels:l}),u)}}}function On(e,t){const n=Or(e),o=yn(n.id,!0),r=n.separators.find(d=>d.element===e);$e(r,"Matching separator not found");const s=o.separatorToPanels.get(r);$e(s,"Matching panels not found");const i=s.map(d=>n.panels.indexOf(d)),a=kp({groupId:n.id}).getLayout(),l=Ho({delta:t,initialLayout:a,panelConstraints:o.derivedPanelConstraints,pivotIndices:i,prevLayout:a,trigger:"keyboard"}),u=zn({layout:l,panelConstraints:o.derivedPanelConstraints});Fn(a,u)||sn(n,{defaultLayoutDeferred:o.defaultLayoutDeferred,derivedPanelConstraints:o.derivedPanelConstraints,groupSize:o.groupSize,layout:u,separatorToPanels:o.separatorToPanels},{isUserInteraction:!0})}function ql(e){if(e.defaultPrevented)return;const t=e.currentTarget,n=Or(t);if(!n.disabled)switch(e.key){case"ArrowDown":{e.preventDefault(),n.orientation==="vertical"&&On(t,5);break}case"ArrowLeft":{e.preventDefault(),n.orientation==="horizontal"&&On(t,-5);break}case"ArrowRight":{e.preventDefault(),n.orientation==="horizontal"&&On(t,5);break}case"ArrowUp":{e.preventDefault(),n.orientation==="vertical"&&On(t,-5);break}case"End":{e.preventDefault(),On(t,100);break}case"Enter":{e.preventDefault();const o=Or(t),r=yn(o.id,!0),{derivedPanelConstraints:s,layout:i,separatorToPanels:a}=r,l=o.separators.find(f=>f.element===t);$e(l,"Matching separator not found");const u=a.get(l);$e(u,"Matching panels not found");const d=u[0],p=s.find(f=>f.panelId===d.id);if($e(p,"Panel metadata not found"),p.collapsible){const f=i[d.id],y=p.collapsedSize===f?o.mutableState.expandedPanelSizes[d.id]??p.minSize:p.collapsedSize;On(t,y-f)}break}case"F6":{e.preventDefault();const o=Or(t).separators.map(i=>i.element),r=Array.from(o).findIndex(i=>i===e.currentTarget);$e(r!==null,"Index not found");const s=e.shiftKey?r>0?r-1:o.length-1:r+1<o.length?r+1:0;o[s].focus({preventScroll:!0});break}case"Home":{e.preventDefault(),On(t,-100);break}}}function Yl(e){if(e.defaultPrevented||e.pointerType==="mouse"&&e.button>0)return;const t=Hn(),n=Za(e,t),o=new Map;let r=!1;n.forEach(s=>{s.separator&&(r||(r=!0,s.separator.element.focus({focusVisible:!1,preventScroll:!0})));const i=t.get(s.group);i&&o.set(s.group,i.layout)}),ro({cursorFlags:0,hitRegions:n,initialLayoutMap:o,pointerDownAtPoint:{x:e.clientX,y:e.clientY},state:"active"}),n.length&&e.preventDefault()}function Cp({document:e,event:t,hitRegions:n,initialLayoutMap:o,mountedGroups:r,pointerDownAtPoint:s,prevCursorFlags:i}){let a=0;n.forEach(u=>{const{group:d,groupSize:p}=u,{orientation:f,panels:y}=d,{disableCursor:m}=d.mutableState;let g=0;s?f==="horizontal"?g=(t.clientX-s.x)/p*100:g=(t.clientY-s.y)/p*100:f==="horizontal"?g=t.clientX<0?-100:100:g=t.clientY<0?-100:100;const h=o.get(d),b=r.get(d);if(!h||!b)return;const{defaultLayoutDeferred:v,derivedPanelConstraints:w,groupSize:x,layout:S,separatorToPanels:R}=b;if(w&&S&&R){const C=Ho({delta:g,initialLayout:h,panelConstraints:w,pivotIndices:u.panels.map(k=>y.indexOf(k)),prevLayout:S,trigger:"mouse-or-touch"});if(Fn(C,S)){if(g!==0&&!m)switch(f){case"horizontal":{a|=g<0?mp:yp;break}case"vertical":{a|=g<0?bp:vp;break}}}else sn(u.group,{defaultLayoutDeferred:v,derivedPanelConstraints:w,groupSize:x,layout:C,separatorToPanels:R})}});let l=0;t.movementX===0?l|=i&Fl:l|=a&Fl,t.movementY===0?l|=i&zl:l|=a&zl,Tw(l),Xa(e)}function Xl(e){const t=Hn(),n=Ln();switch(n.state){case"active":Cp({document:e.currentTarget,event:e,hitRegions:n.hitRegions,initialLayoutMap:n.initialLayoutMap,mountedGroups:t,prevCursorFlags:n.cursorFlags})}}function Kl(e){var o,r;if(e.defaultPrevented)return;const t=Ln(),n=Hn();switch(t.state){case"active":{if(e.buttons===0){ro({cursorFlags:0,state:"inactive"}),t.hitRegions.forEach(s=>{const i=yn(s.group.id,!0);sn(s.group,i,{isUserInteraction:!0})});return}for(const s of t.hitRegions)if(s.separator){const{element:i}=s.separator;(o=i.hasPointerCapture)!=null&&o.call(i,e.pointerId)||((r=i.setPointerCapture)==null||r.call(i,e.pointerId))}Cp({document:e.currentTarget,event:e,hitRegions:t.hitRegions,initialLayoutMap:t.initialLayoutMap,mountedGroups:n,pointerDownAtPoint:t.pointerDownAtPoint,prevCursorFlags:t.cursorFlags});break}default:{const s=Za(e,n);s.length===0?t.state!=="inactive"&&ro({cursorFlags:0,state:"inactive"}):ro({cursorFlags:0,hitRegions:s,state:"hover"}),Xa(e.currentTarget);break}}}function Zl(e){if(e.relatedTarget instanceof HTMLIFrameElement)switch(Ln().state){case"hover":ro({cursorFlags:0,state:"inactive"})}}function Ql(e){e.defaultPrevented||e.pointerType==="mouse"&&e.button>0||wp(e.currentTarget)&&e.preventDefault()}function Jl(e){let t=0,n=0;const o={};for(const s of e)if(s.defaultSize!==void 0){t++;const i=mt(s.defaultSize);n+=i,o[s.panelId]=i}else o[s.panelId]=void 0;const r=e.length-t;if(r!==0){const s=mt((100-n)/r);for(const i of e)i.defaultSize===void 0&&(o[i.panelId]=s)}return o}function jw(e,t,n){if(!n[0])return;const o=e.panels.find(l=>l.element===t);if(!o||!o.onResize)return;const r=go({group:e}),s=e.orientation==="horizontal"?o.element.offsetWidth:o.element.offsetHeight,i=o.mutableValues.prevSize,a={asPercentage:mt(s/r*100),inPixels:s};o.mutableValues.prevSize=a,o.onResize(a,o.id,i)}function Bw(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(e[n]!==t[n])return!1;return!0}function Ww({group:e,nextGroupSize:t,prevGroupSize:n,prevLayout:o}){if(n<=0||t<=0||n===t)return o;let r=0,s=0,i=!1;const a=new Map,l=[];for(const p of e.panels){const f=o[p.id]??0;switch(p.panelConstraints.groupResizeBehavior){case"preserve-pixel-size":{i=!0;const y=f/100*n,m=mt(y/t*100);a.set(p.id,m),r+=m;break}case"preserve-relative-size":default:{l.push(p.id),s+=f;break}}}if(!i||l.length===0)return o;const u=100-r,d={...o};if(a.forEach((p,f)=>{d[f]=p}),s>0)for(const p of l){const f=o[p]??0;d[p]=mt(f/s*u)}else{const p=mt(u/l.length);for(const f of l)d[f]=p}return d}function Uw(e,t){const n=e.map(r=>r.id),o=Object.keys(t);if(n.length!==o.length)return!1;for(const r of n)if(!o.includes(r))return!1;return!0}const Yn=new Map;function Gw(e){let t=!0;$e(e.element.ownerDocument.defaultView,"Cannot register an unmounted Group");const n=e.element.ownerDocument.defaultView.ResizeObserver,o=new Set,r=new Set,s=new n(m=>{for(const g of m){const{borderBoxSize:h,target:b}=g;if(b===e.element){if(t){const v=go({group:e});if(v===0)return;const w=yn(e.id);if(!w)return;const x=Oi(e),S=w.defaultLayoutDeferred?Jl(x):w.layout,R=Ww({group:e,nextGroupSize:v,prevGroupSize:w.groupSize,prevLayout:S}),C=zn({layout:R,panelConstraints:x});if(!w.defaultLayoutDeferred&&Fn(w.layout,C)&&Bw(w.derivedPanelConstraints,x)&&w.groupSize===v)return;sn(e,{defaultLayoutDeferred:!1,derivedPanelConstraints:x,groupSize:v,layout:C,separatorToPanels:w.separatorToPanels})}}else jw(e,b,h)}});s.observe(e.element),e.panels.forEach(m=>{$e(!o.has(m.id),`Panel ids must be unique; id "${m.id}" was used more than once`),o.add(m.id),m.onResize&&s.observe(m.element)});const i=go({group:e}),a=Oi(e),l=e.panels.map(({id:m})=>m).join(",");let u=e.mutableState.defaultLayout;u&&(Uw(e.panels,u)||(u=void 0));const d=e.mutableState.layouts[l]??u??Jl(a),p=zn({layout:d,panelConstraints:a}),f=e.element.ownerDocument;Yn.set(f,(Yn.get(f)??0)+1);const y=new Map;return hp(e).forEach(m=>{m.separator&&y.set(m.separator,m.panels)}),sn(e,{defaultLayoutDeferred:i===0,derivedPanelConstraints:a,groupSize:i,layout:p,separatorToPanels:y}),e.separators.forEach(m=>{$e(!r.has(m.id),`Separator ids must be unique; id "${m.id}" was used more than once`),r.add(m.id),m.element.addEventListener("keydown",ql)}),Yn.get(f)===1&&(f.addEventListener("contextmenu",jl,!0),f.addEventListener("dblclick",Gl,!0),f.addEventListener("pointerdown",Yl,!0),f.addEventListener("pointerleave",Xl),f.addEventListener("pointermove",Kl),f.addEventListener("pointerout",Zl),f.addEventListener("pointerup",Ql,!0)),function(){t=!1,Yn.set(f,Math.max(0,(Yn.get(f)??0)-1)),Aw(e),e.separators.forEach(m=>{m.element.removeEventListener("keydown",ql)}),Yn.get(f)||(f.removeEventListener("contextmenu",jl,!0),f.removeEventListener("dblclick",Gl,!0),f.removeEventListener("pointerdown",Yl,!0),f.removeEventListener("pointerleave",Xl),f.removeEventListener("pointermove",Kl),f.removeEventListener("pointerout",Zl),f.removeEventListener("pointerup",Ql,!0)),s.disconnect()}}function qw(){const[e,t]=c.useState({}),n=c.useCallback(()=>t({}),[]);return[e,n]}function Qa(e){const t=c.useId();return`${e??t}`}const jn=typeof window<"u"?c.useLayoutEffect:c.useEffect;function Do(e){const t=c.useRef(e);return jn(()=>{t.current=e},[e]),c.useCallback((...n)=>{var o;return(o=t.current)==null?void 0:o.call(t,...n)},[t])}function Ja(...e){return Do(t=>{e.forEach(n=>{if(n)switch(typeof n){case"function":{n(t);break}case"object":{n.current=t;break}}})})}function ec(e){const t=c.useRef({...e});return jn(()=>{for(const n in e)t.current[n]=e[n]},[e]),t.current}const Ep=c.createContext(null);function Yw(e,t){const n=c.useRef({getLayout:()=>({}),setLayout:Iw});c.useImperativeHandle(t,()=>n.current,[]),jn(()=>{Object.assign(n.current,kp({groupId:e}))})}function Xw({children:e,className:t,defaultLayout:n,disableCursor:o,disabled:r,elementRef:s,groupRef:i,id:a,onLayoutChange:l,onLayoutChanged:u,orientation:d="horizontal",resizeTargetMinimumSize:p={coarse:20,fine:10},style:f,...y}){const m=c.useRef({onLayoutChange:{},onLayoutChanged:{}}),g=Do(O=>{Fn(m.current.onLayoutChange,O)||(m.current.onLayoutChange=O,l==null||l(O))}),h=Do((O,I)=>{Fn(m.current.onLayoutChanged,O)||(m.current.onLayoutChanged=O,u==null||u(O,{isUserInteraction:I}))}),b=Qa(a),v=c.useRef(null),[w,x]=qw(),S=c.useRef({lastExpandedPanelSizes:{},layouts:{},panels:[],resizeTargetMinimumSize:p,separators:[]}),R=Ja(v,s);Yw(b,i);const C=Do((O,I)=>{const N=Ln(),D=Hl(O),M=yn(O);if(M){let z=!1;switch(N.state){case"active":{z=N.hitRegions.some(_=>_.group===D);break}}return{flexGrow:M.layout[I]??1,pointerEvents:z?"none":void 0}}if(n!=null&&n[I])return{flexGrow:n==null?void 0:n[I]}}),k=ec({defaultLayout:n,disableCursor:o}),P=c.useMemo(()=>({get disableCursor(){return!!k.disableCursor},getPanelStyles:C,id:b,orientation:d,registerPanel:O=>{const I=S.current;return I.panels=Ai(d,[...I.panels,O]),x(),()=>{I.panels=I.panels.filter(N=>N!==O),x()}},registerSeparator:O=>{const I=S.current;return I.separators=Ai(d,[...I.separators,O]),x(),()=>{I.separators=I.separators.filter(N=>N!==O),x()}},updatePanelProps:(O,{disabled:I})=>{const N=S.current.panels.find(z=>z.id===O);N&&(N.panelConstraints.disabled=I);const D=Hl(b),M=yn(b);D&&M&&sn(D,{...M,derivedPanelConstraints:Oi(D)})},updateSeparatorProps:(O,{disabled:I,disableDoubleClick:N})=>{const D=S.current.separators.find(M=>M.id===O);D&&(D.disabled=I,D.disableDoubleClick=N)}}),[C,b,x,d,k]),E=c.useRef(null);return jn(()=>{const O=v.current;if(O===null)return;const I=S.current;let N;if(k.defaultLayout!==void 0&&Object.keys(k.defaultLayout).length===I.panels.length){N={};for(const T of I.panels){const L=k.defaultLayout[T.id];L!==void 0&&(N[T.id]=L)}}const D={disabled:!!r,element:O,id:b,mutableState:{defaultLayout:N,disableCursor:!!k.disableCursor,expandedPanelSizes:S.current.lastExpandedPanelSizes,layouts:S.current.layouts},orientation:d,panels:I.panels,resizeTargetMinimumSize:I.resizeTargetMinimumSize,separators:I.separators};E.current=D;const M=Gw(D),{defaultLayoutDeferred:z,derivedPanelConstraints:_,layout:A}=yn(D.id,!0);!z&&_.length>0&&(g(A),h(A,!1));const F=Ka(b,T=>{const{defaultLayoutDeferred:L,derivedPanelConstraints:j,layout:$}=T.next;if(L||j.length===0)return;const U=D.panels.map(({id:V})=>V).join(",");D.mutableState.layouts[U]=$,j.forEach(V=>{if(V.collapsible){const{layout:Q}=T.prev??{};if(Q){const H=ft(V.collapsedSize,$[V.panelId]),G=ft(V.collapsedSize,Q[V.panelId]);H&&!G&&(D.mutableState.expandedPanelSizes[V.panelId]=Q[V.panelId])}}});const q=Ln().state!=="active";g($),q&&h($,T.isUserInteraction)});return()=>{E.current=null,M(),F()}},[r,b,h,g,d,w,k]),c.useEffect(()=>{const O=E.current;O&&(O.mutableState.defaultLayout=n,O.mutableState.disableCursor=!!o)}),K.jsx(Ep.Provider,{value:P,children:K.jsx("div",{...y,className:t,"data-group":!0,"data-testid":b,id:b,ref:R,style:{height:"100%",width:"100%",overflow:"hidden",...f,display:"flex",flexDirection:d==="horizontal"?"row":"column",flexWrap:"nowrap",touchAction:d==="horizontal"?"pan-y":"pan-x"},children:e})})}Xw.displayName="Group";function tc(){const e=c.useContext(Ep);return $e(e,"Group Context not found; did you render a Panel or Separator outside of a Group?"),e}function Kw(e,t){const{id:n}=tc(),o=c.useRef({collapse:Zs,expand:Zs,getSize:()=>({asPercentage:0,inPixels:0}),isCollapsed:()=>!1,resize:Zs});c.useImperativeHandle(t,()=>o.current,[]),jn(()=>{Object.assign(o.current,Rp({groupId:n,panelId:e}))})}function Zw({children:e,className:t,collapsedSize:n="0%",collapsible:o=!1,defaultSize:r,disabled:s,elementRef:i,groupResizeBehavior:a="preserve-relative-size",id:l,maxSize:u="100%",minSize:d="0%",onResize:p,panelRef:f,style:y,...m}){const g=!!l,h=Qa(l),b=ec({disabled:s}),v=c.useRef(null),w=Ja(v,i),{getPanelStyles:x,id:S,orientation:R,registerPanel:C,updatePanelProps:k}=tc(),P=p!==null,E=Do((D,M,z)=>{p==null||p(D,l,z)});jn(()=>{const D=v.current;if(D!==null){const M={element:D,id:h,idIsStable:g,mutableValues:{expandToSize:void 0,prevSize:void 0},onResize:P?E:void 0,panelConstraints:{groupResizeBehavior:a,collapsedSize:n,collapsible:o,defaultSize:r,disabled:b.disabled,maxSize:u,minSize:d}};return C(M)}},[a,n,o,r,P,h,g,u,d,E,C,b]),c.useEffect(()=>{k(h,{disabled:s})},[s,h,k]),Kw(h,f);const O=()=>{const D=x(S,h);if(D)return JSON.stringify(D)},I=c.useSyncExternalStore(D=>Ka(S,D),O,O);let N;return I?N=JSON.parse(I):r!==void 0?N={flexGrow:void 0,flexShrink:void 0,flexBasis:r}:N={flexGrow:1},K.jsx("div",{...m,"data-disabled":s||void 0,"data-panel":!0,"data-testid":h,id:h,ref:w,style:{...Qw,display:"flex",flexBasis:0,flexShrink:1,overflow:"visible",...N},children:K.jsx("div",{className:t,style:{maxHeight:"100%",maxWidth:"100%",flexGrow:1,overflow:"auto",...y,touchAction:R==="horizontal"?"pan-y":"pan-x"},children:e})})}Zw.displayName="Panel";const Qw={minHeight:0,maxHeight:"100%",height:"auto",minWidth:0,maxWidth:"100%",width:"auto",border:"none",borderWidth:0,padding:0,margin:0};function Jw({layout:e,panelConstraints:t,panelId:n,panelIndex:o}){let r,s;const i=e[n],a=t.find(l=>l.panelId===n);if(a){const l=a.maxSize,u=a.collapsible?a.collapsedSize:a.minSize,d=[o,o+1];s=zn({layout:Ho({delta:u-i,initialLayout:e,panelConstraints:t,pivotIndices:d,prevLayout:e}),panelConstraints:t})[n],r=zn({layout:Ho({delta:l-i,initialLayout:e,panelConstraints:t,pivotIndices:d,prevLayout:e}),panelConstraints:t})[n]}return{valueControls:n,valueMax:r,valueMin:s,valueNow:i}}function eS({children:e,className:t,disabled:n,disableDoubleClick:o,elementRef:r,id:s,style:i,...a}){const l=Qa(s),u=ec({disabled:n,disableDoubleClick:o}),[d,p]=c.useState({}),[f,y]=c.useState("inactive"),[m,g]=c.useState(!1),h=c.useRef(null),b=Ja(h,r),{disableCursor:v,id:w,orientation:x,registerSeparator:S,updateSeparatorProps:R}=tc(),C=x==="horizontal"?"vertical":"horizontal";jn(()=>{const E=h.current;if(E!==null){const O={disabled:u.disabled,disableDoubleClick:u.disableDoubleClick,element:E,id:l},I=S(O),N=Pw(M=>{y(M.next.state!=="inactive"&&M.next.hitRegions.some(z=>z.separator===O)?M.next.state:"inactive")}),D=Ka(w,M=>{const{derivedPanelConstraints:z,layout:_,separatorToPanels:A}=M.next,F=A.get(O);if(F){const T=F[0],L=F.indexOf(T);p(Jw({layout:_,panelConstraints:z,panelId:T.id,panelIndex:L}))}});return()=>{N(),D(),I()}}},[w,l,S,u]),c.useEffect(()=>{R(l,{disabled:n,disableDoubleClick:o})},[n,o,l,R]);let k;n&&!v&&(k="not-allowed");let P;if(n)P="disabled";else switch(f){case"active":{P="active";break}default:m?P="focus":P=f}return K.jsx("div",{...a,"aria-controls":d.valueControls,"aria-disabled":n||void 0,"aria-orientation":C,"aria-valuemax":d.valueMax,"aria-valuemin":d.valueMin,"aria-valuenow":d.valueNow,children:e,className:t,"data-separator":P,"data-testid":l,id:l,onBlur:()=>g(!1),onFocus:()=>g(!0),ref:b,role:"separator",style:{flexBasis:"auto",cursor:k,...i,flexGrow:0,flexShrink:0,touchAction:"none"},tabIndex:n?void 0:0})}eS.displayName="Separator";const Mp=c.createContext(void 0);function tS(){const e=c.useContext(Mp);if(e===void 0)throw new Error(De(63));return e}const Pp={...vs,checked(e){return e?{"data-checked":""}:{"data-unchecked":""}}},wE=c.forwardRef(function(t,n){const{checked:o,className:r,defaultChecked:s,"aria-labelledby":i,form:a,id:l,inputRef:u,name:d,nativeButton:p=!1,onCheckedChange:f,readOnly:y=!1,required:m=!1,disabled:g=!1,render:h,uncheckedValue:b,value:v,style:w,...x}=t,{clearErrors:S}=Ss(),{state:R,setTouched:C,setDirty:k,validityData:P,setFilled:E,setFocused:O,validationMode:I,disabled:N,name:D,validation:M}=vo(),{labelId:z}=qo(),_=N||g,A=D??d,F=c.useRef(null),T=Nt(F,u,M.inputRef),L=c.useRef(null),j=tt(),$=ws({id:l,implicit:!1,controlRef:L}),U=p?void 0:$,[q,V]=_t({controlled:o,default:!!s,name:"Switch",state:"checked"});xs(L,j,q,void 0,!_,d),oe(()=>{F.current&&E(F.current.checked)},[E]),bs(q,()=>{S(A),k(q!==P.initialValue),E(q),M.change(q)});const{getButtonProps:Q,buttonRef:H}=Tt({disabled:_,native:p}),G=Qf(i,z,F,!p,U),ue={id:p?$:j,role:"switch","aria-checked":q,"aria-readonly":y||void 0,"aria-required":m||void 0,"aria-labelledby":G,onFocus(){_||O(!0)},onBlur(){const ee=F.current;!ee||_||(C(!0),O(!1),I==="onBlur"&&M.commit(ee.checked))},onClick(ee){if(y||_)return;ee.preventDefault();const ie=F.current;ie&&Qn(ie,ee)}},ne={...M.getValidationProps(_),checked:q,disabled:_,form:a,id:U,name:A,required:m,style:A?oa:Bo,tabIndex:-1,type:"checkbox","aria-hidden":!0,ref:T,onChange(ee){if(ee.nativeEvent.defaultPrevented)return;if(y){ee.preventDefault();return}const ie=ee.currentTarget.checked,xe=ke(Rt,ee.nativeEvent);f==null||f(ie,xe),!xe.isCanceled&&V(ie)},onClick(ee){ee.stopPropagation()},onFocus(){var ee;(ee=L.current)==null||ee.focus()},...v!==void 0?{value:v}:We},te=c.useMemo(()=>({...R,checked:q,disabled:_,readOnly:y,required:m}),[R,q,_,y,m]),J=Se("span",t,{state:te,ref:[n,L,H],props:[ue,x,Q,ee=>M.getValidationProps(_,ee)],stateAttributesMapping:Pp});return K.jsxs(Mp.Provider,{value:te,children:[J,!q&&A&&b!==void 0&&K.jsx("input",{type:"hidden",form:a,name:A,value:b,disabled:_}),K.jsx("input",{...ne,suppressHydrationWarning:!0})]})}),SE=c.forwardRef(function(t,n){const{render:o,className:r,style:s,...i}=t,a=tS();return Se("span",t,{state:a,ref:n,stateAttributesMapping:Pp,props:i})});export{bS as $,Ok as A,Dk as B,xS as C,BS as D,qS as E,aR as F,fR as G,RR as H,lR as I,$S as J,PR as K,OR as L,qR as M,xk as N,yS as O,ck as P,hR as Q,hk as R,yk as S,Nk as T,vS as U,HS as V,Yk as W,Xk as X,VS as Y,Qk as Z,nR as _,cR as a,CC as a$,KR as a0,fS as a1,IR as a2,qk as a3,uk as a4,wE as a5,SE as a6,KS as a7,ZS as a8,Gk as a9,CR as aA,iC as aB,dC as aC,Jb as aD,pC as aE,aC as aF,rC as aG,hC as aH,cC as aI,lC as aJ,fC as aK,sC as aL,nC as aM,uC as aN,oC as aO,vR as aP,Ck as aQ,Kk as aR,RC as aS,gC as aT,mC as aU,yC as aV,wC as aW,bC as aX,SC as aY,vC as aZ,xC as a_,Uk as aa,WS as ab,LR as ac,Bk as ad,nk as ae,ES as af,LS as ag,QS as ah,dS as ai,ak as aj,iR as ak,xR as al,Vk as am,NR as an,FR as ao,zk as ap,Rk as aq,VR as ar,PS as as,_R as at,rS as au,tC as av,s0 as aw,Jk as ax,eC as ay,XR as az,fk as b,kR as b$,kC as b0,MC as b1,EC as b2,wS as b3,PC as b4,_C as b5,OC as b6,AC as b7,DC as b8,NC as b9,lk as bA,Ak as bB,bk as bC,CS as bD,ZC as bE,QC as bF,JC as bG,eE as bH,nE as bI,tE as bJ,rR as bK,ik as bL,ok as bM,oE as bN,rE as bO,aE as bP,sE as bQ,iE as bR,dE as bS,fE as bT,cE as bU,lE as bV,uE as bW,pE as bX,hE as bY,gE as bZ,mE as b_,IC as ba,TC as bb,$v as bc,US as bd,St as be,LC as bf,Pr as bg,Rs as bh,zC as bi,VC as bj,$C as bk,HC as bl,of as bm,sk as bn,oR as bo,WC as bp,jC as bq,BC as br,ER as bs,rk as bt,GC as bu,XC as bv,UC as bw,KC as bx,qC as by,YC as bz,XS as c,GR as c0,wR as c1,FS as c2,MS as c3,GS as c4,RS as c5,sS as c6,Wk as c7,zS as c8,yE as c9,YS as cA,QR as cB,eS as cC,Zw as cD,Xw as cE,TS as cF,cS as cG,hS as cH,DR as cI,NS as cJ,OS as cK,$k as cL,jk as cM,Hk as cN,_S as cO,gR as cP,mR as cQ,WR as cR,aS as cS,lS as cT,pk as cU,IS as cV,tk as cW,Lk as cX,kk as cY,AR as cZ,bE as ca,DS as cb,YR as cc,SR as cd,tR as ce,eR as cf,pR as cg,Ek as ch,dR as ci,xE as cj,vE as ck,AS as cl,pS as cm,UR as cn,dk as co,mk as cp,jR as cq,iS as cr,$R as cs,MR as ct,sR as cu,uS as cv,mS as cw,yR as cx,Sk as cy,JR as cz,vk as d,Tk as e,zR as f,Zk as g,uR as h,Fk as i,HR as j,gk as k,JS as l,Ik as m,bR as n,_k as o,BR as p,jS as q,TR as r,gS as s,ek as t,Mk as u,kS as v,SS as w,ZR as x,wk as y,Pk as z};
|