cogpit 2.7.4 → 3.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cli.js +5524 -3838
- package/dist/web/assets/CommandPaletteHost-fa5vgo7-.js +1 -0
- package/dist/web/assets/ConfigBrowser-CXvr5BFb.js +1 -0
- package/dist/web/assets/HighlightedEditor-DWc-xoSc.js +2 -0
- package/dist/web/assets/{KeyboardShortcutsDialog-DQuepxQo.js → KeyboardShortcutsDialog-C1of2PBc.js} +1 -1
- package/dist/web/assets/{MobileFileChanges-B6rggNR6.js → MobileFileChanges-BAEIKapA.js} +1 -1
- package/dist/web/assets/PluginsDialog-BgnTB0-z.js +1 -0
- package/dist/web/assets/PreviewPanel-DgbgRibz.js +1 -0
- package/dist/web/assets/ProjectFilesPanel-BGpyS_aw.js +4 -0
- package/dist/web/assets/ProjectSwitcherModal-CEypvUNm.js +1 -0
- package/dist/web/assets/{TerminalOutput-CUmbXM9h.js → TerminalOutput-Dq6QP83Y.js} +13 -13
- package/dist/web/assets/ThemeSelectorModal-DeYABHF9.js +1 -0
- package/dist/web/assets/WorkflowsPanel-CNxUSC9Q.js +1 -0
- package/dist/web/assets/WorktreePanel-DJYEUobs.js +1 -0
- package/dist/web/assets/edition-ui-CFlDe2_U.js +2 -0
- package/dist/web/assets/index-Bm91RnFy.js +1 -0
- package/dist/web/assets/index-Ch-IpPaH.js +1 -0
- package/dist/web/assets/index-DVp2Xjmx.js +1 -0
- package/dist/web/assets/{index-BA1eUNuR.js → index-DYugSKH5.js} +4 -4
- package/dist/web/assets/index-DsnL-sXV.js +472 -0
- package/dist/web/assets/index-TCQKag8a.css +1 -0
- package/dist/web/assets/password-BV9mqUzz.js +1 -0
- package/dist/web/assets/{session-parser.worker-CnA52U1J.js → session-parser.worker-CXlsiJzz.js} +24 -24
- package/dist/web/assets/{vendor-ui-ZKZkD5k3.js → vendor-ui-Br3ZTAXZ.js} +237 -167
- package/dist/web/index.html +6 -6
- package/dist/web/theme-bootstrap.js +1 -25
- package/package.json +1 -1
- package/dist/web/assets/CommandPaletteHost-ByD_7YRK.js +0 -1
- package/dist/web/assets/ConfigBrowser-vXK8JNMg.js +0 -1
- package/dist/web/assets/HighlightedEditor-BwET41dr.js +0 -2
- package/dist/web/assets/PluginsDialog-DTF9NnK7.js +0 -1
- package/dist/web/assets/PreviewPanel-BaXxki5D.js +0 -1
- package/dist/web/assets/ProjectFilesPanel-CO6Znhgi.js +0 -4
- package/dist/web/assets/ProjectSwitcherModal-Chi-U3vv.js +0 -1
- package/dist/web/assets/TerminalOutput-6GBZ9nXN.css +0 -32
- package/dist/web/assets/ThemeSelectorModal-B2m42_1f.js +0 -1
- package/dist/web/assets/WorkflowsPanel-CiYzHaQg.js +0 -1
- package/dist/web/assets/WorktreePanel-CldMZY3n.js +0 -1
- package/dist/web/assets/index-C-0I_ZqI.js +0 -1
- package/dist/web/assets/index-C6wvrmo0.js +0 -221
- package/dist/web/assets/index-CYN2JttE.js +0 -1
- package/dist/web/assets/index-DYWsIgvZ.css +0 -1
- package/dist/web/assets/index-QH_v3Ygj.js +0 -1
|
@@ -38,797 +38,867 @@ var uh=Object.defineProperty;var Cc=e=>{throw TypeError(e)};var dh=(e,t,n)=>t in
|
|
|
38
38
|
*
|
|
39
39
|
* This source code is licensed under the ISC license.
|
|
40
40
|
* See the LICENSE file in the root directory of this source tree.
|
|
41
|
-
*/const
|
|
41
|
+
*/const B=(e,t)=>{const n=c.forwardRef(({className:o,...r},s)=>c.createElement(mh,{ref:s,iconNode:t,className:ku(`lucide-${fh(Tc(e))}`,`lucide-${e}`,o),...r}));return n.displayName=Tc(e),n};/**
|
|
42
42
|
* @license lucide-react v0.577.0 - ISC
|
|
43
43
|
*
|
|
44
44
|
* This source code is licensed under the ISC license.
|
|
45
45
|
* See the LICENSE file in the root directory of this source tree.
|
|
46
|
-
*/const yh=[["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"}]],
|
|
46
|
+
*/const yh=[["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"}]],dR=B("activity",yh);/**
|
|
47
47
|
* @license lucide-react v0.577.0 - ISC
|
|
48
48
|
*
|
|
49
49
|
* This source code is licensed under the ISC license.
|
|
50
50
|
* See the LICENSE file in the root directory of this source tree.
|
|
51
|
-
*/const bh=[["rect",{width:"20",height:"5",x:"2",y:"3",rx:"1",key:"1wp1u1"}],["path",{d:"M4 8v11a2 2 0 0 0 2 2h2",key:"tvwodi"}],["path",{d:"M20 8v11a2 2 0 0 1-2 2h-2",key:"1gkqxj"}],["path",{d:"m9 15 3-3 3 3",key:"1pd0qc"}],["path",{d:"M12 12v9",key:"192myk"}]],
|
|
51
|
+
*/const bh=[["rect",{width:"20",height:"5",x:"2",y:"3",rx:"1",key:"1wp1u1"}],["path",{d:"M4 8v11a2 2 0 0 0 2 2h2",key:"tvwodi"}],["path",{d:"M20 8v11a2 2 0 0 1-2 2h-2",key:"1gkqxj"}],["path",{d:"m9 15 3-3 3 3",key:"1pd0qc"}],["path",{d:"M12 12v9",key:"192myk"}]],fR=B("archive-restore",bh);/**
|
|
52
52
|
* @license lucide-react v0.577.0 - ISC
|
|
53
53
|
*
|
|
54
54
|
* This source code is licensed under the ISC license.
|
|
55
55
|
* See the LICENSE file in the root directory of this source tree.
|
|
56
|
-
*/const vh=[["rect",{width:"20",height:"5",x:"2",y:"3",rx:"1",key:"1wp1u1"}],["path",{d:"M4 8v11a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8",key:"1s80jp"}],["path",{d:"M10 12h4",key:"a56b0p"}]],
|
|
56
|
+
*/const vh=[["rect",{width:"20",height:"5",x:"2",y:"3",rx:"1",key:"1wp1u1"}],["path",{d:"M4 8v11a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8",key:"1s80jp"}],["path",{d:"M10 12h4",key:"a56b0p"}]],pR=B("archive",vh);/**
|
|
57
57
|
* @license lucide-react v0.577.0 - ISC
|
|
58
58
|
*
|
|
59
59
|
* This source code is licensed under the ISC license.
|
|
60
60
|
* See the LICENSE file in the root directory of this source tree.
|
|
61
|
-
*/const xh=[["path",{d:"M17 7 7 17",key:"15tmo1"}],["path",{d:"M17 17H7V7",key:"1org7z"}]],
|
|
61
|
+
*/const xh=[["path",{d:"M17 7 7 17",key:"15tmo1"}],["path",{d:"M17 17H7V7",key:"1org7z"}]],hR=B("arrow-down-left",xh);/**
|
|
62
62
|
* @license lucide-react v0.577.0 - ISC
|
|
63
63
|
*
|
|
64
64
|
* This source code is licensed under the ISC license.
|
|
65
65
|
* See the LICENSE file in the root directory of this source tree.
|
|
66
|
-
*/const Sh=[["path",{d:"M12 5v14",key:"s699le"}],["path",{d:"m19 12-7 7-7-7",key:"1idqje"}]],
|
|
66
|
+
*/const Sh=[["path",{d:"M12 5v14",key:"s699le"}],["path",{d:"m19 12-7 7-7-7",key:"1idqje"}]],gR=B("arrow-down",Sh);/**
|
|
67
67
|
* @license lucide-react v0.577.0 - ISC
|
|
68
68
|
*
|
|
69
69
|
* This source code is licensed under the ISC license.
|
|
70
70
|
* See the LICENSE file in the root directory of this source tree.
|
|
71
|
-
*/const wh=[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]],
|
|
71
|
+
*/const wh=[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]],mR=B("arrow-left",wh);/**
|
|
72
72
|
* @license lucide-react v0.577.0 - ISC
|
|
73
73
|
*
|
|
74
74
|
* This source code is licensed under the ISC license.
|
|
75
75
|
* See the LICENSE file in the root directory of this source tree.
|
|
76
|
-
*/const Rh=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]],
|
|
76
|
+
*/const Rh=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]],yR=B("arrow-right",Rh);/**
|
|
77
77
|
* @license lucide-react v0.577.0 - ISC
|
|
78
78
|
*
|
|
79
79
|
* This source code is licensed under the ISC license.
|
|
80
80
|
* See the LICENSE file in the root directory of this source tree.
|
|
81
|
-
*/const kh=[["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"}]],
|
|
81
|
+
*/const kh=[["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"}]],bR=B("bell",kh);/**
|
|
82
82
|
* @license lucide-react v0.577.0 - ISC
|
|
83
83
|
*
|
|
84
84
|
* This source code is licensed under the ISC license.
|
|
85
85
|
* See the LICENSE file in the root directory of this source tree.
|
|
86
|
-
*/const Ch=[["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"}]],
|
|
86
|
+
*/const Ch=[["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"}]],vR=B("book-open",Ch);/**
|
|
87
87
|
* @license lucide-react v0.577.0 - ISC
|
|
88
88
|
*
|
|
89
89
|
* This source code is licensed under the ISC license.
|
|
90
90
|
* See the LICENSE file in the root directory of this source tree.
|
|
91
|
-
*/const Eh=[["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"}]],
|
|
91
|
+
*/const Eh=[["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"}]],xR=B("bot",Eh);/**
|
|
92
92
|
* @license lucide-react v0.577.0 - ISC
|
|
93
93
|
*
|
|
94
94
|
* This source code is licensed under the ISC license.
|
|
95
95
|
* See the LICENSE file in the root directory of this source tree.
|
|
96
|
-
*/const Ph=[["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"}]],
|
|
96
|
+
*/const Ph=[["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"}]],SR=B("brain",Ph);/**
|
|
97
97
|
* @license lucide-react v0.577.0 - ISC
|
|
98
98
|
*
|
|
99
99
|
* This source code is licensed under the ISC license.
|
|
100
100
|
* See the LICENSE file in the root directory of this source tree.
|
|
101
|
-
*/const Mh=[["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"}]],
|
|
101
|
+
*/const Mh=[["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"}]],wR=B("chart-column",Mh);/**
|
|
102
102
|
* @license lucide-react v0.577.0 - ISC
|
|
103
103
|
*
|
|
104
104
|
* This source code is licensed under the ISC license.
|
|
105
105
|
* See the LICENSE file in the root directory of this source tree.
|
|
106
|
-
*/const Th=[["path",{d:"M18 6 7 17l-5-5",key:"116fxf"}],["path",{d:"m22 10-7.5 7.5L13 16",key:"ke71qq"}]],
|
|
106
|
+
*/const Th=[["path",{d:"M18 6 7 17l-5-5",key:"116fxf"}],["path",{d:"m22 10-7.5 7.5L13 16",key:"ke71qq"}]],RR=B("check-check",Th);/**
|
|
107
107
|
* @license lucide-react v0.577.0 - ISC
|
|
108
108
|
*
|
|
109
109
|
* This source code is licensed under the ISC license.
|
|
110
110
|
* See the LICENSE file in the root directory of this source tree.
|
|
111
|
-
*/const Ih=[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]],
|
|
111
|
+
*/const Ih=[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]],kR=B("check",Ih);/**
|
|
112
112
|
* @license lucide-react v0.577.0 - ISC
|
|
113
113
|
*
|
|
114
114
|
* This source code is licensed under the ISC license.
|
|
115
115
|
* See the LICENSE file in the root directory of this source tree.
|
|
116
|
-
*/const Oh=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],
|
|
116
|
+
*/const Oh=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],CR=B("chevron-down",Oh);/**
|
|
117
117
|
* @license lucide-react v0.577.0 - ISC
|
|
118
118
|
*
|
|
119
119
|
* This source code is licensed under the ISC license.
|
|
120
120
|
* See the LICENSE file in the root directory of this source tree.
|
|
121
|
-
*/const Ah=[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]],
|
|
121
|
+
*/const Ah=[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]],ER=B("chevron-left",Ah);/**
|
|
122
122
|
* @license lucide-react v0.577.0 - ISC
|
|
123
123
|
*
|
|
124
124
|
* This source code is licensed under the ISC license.
|
|
125
125
|
* See the LICENSE file in the root directory of this source tree.
|
|
126
|
-
*/const Nh=[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]],
|
|
126
|
+
*/const Nh=[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]],PR=B("chevron-right",Nh);/**
|
|
127
127
|
* @license lucide-react v0.577.0 - ISC
|
|
128
128
|
*
|
|
129
129
|
* This source code is licensed under the ISC license.
|
|
130
130
|
* See the LICENSE file in the root directory of this source tree.
|
|
131
|
-
*/const Dh=[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]],
|
|
131
|
+
*/const Dh=[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]],MR=B("chevron-up",Dh);/**
|
|
132
132
|
* @license lucide-react v0.577.0 - ISC
|
|
133
133
|
*
|
|
134
134
|
* This source code is licensed under the ISC license.
|
|
135
135
|
* See the LICENSE file in the root directory of this source tree.
|
|
136
|
-
*/const
|
|
136
|
+
*/const _h=[["path",{d:"m7 20 5-5 5 5",key:"13a0gw"}],["path",{d:"m7 4 5 5 5-5",key:"1kwcof"}]],TR=B("chevrons-down-up",_h);/**
|
|
137
137
|
* @license lucide-react v0.577.0 - ISC
|
|
138
138
|
*
|
|
139
139
|
* This source code is licensed under the ISC license.
|
|
140
140
|
* See the LICENSE file in the root directory of this source tree.
|
|
141
|
-
*/const
|
|
141
|
+
*/const Lh=[["path",{d:"m6 17 5-5-5-5",key:"xnjwq"}],["path",{d:"m13 17 5-5-5-5",key:"17xmmf"}]],IR=B("chevrons-right",Lh);/**
|
|
142
142
|
* @license lucide-react v0.577.0 - ISC
|
|
143
143
|
*
|
|
144
144
|
* This source code is licensed under the ISC license.
|
|
145
145
|
* See the LICENSE file in the root directory of this source tree.
|
|
146
|
-
*/const Fh=[["path",{d:"m7 15 5 5 5-5",key:"1hf1tw"}],["path",{d:"m7 9 5-5 5 5",key:"sgt6xg"}]],
|
|
146
|
+
*/const Fh=[["path",{d:"m7 15 5 5 5-5",key:"1hf1tw"}],["path",{d:"m7 9 5-5 5 5",key:"sgt6xg"}]],OR=B("chevrons-up-down",Fh);/**
|
|
147
147
|
* @license lucide-react v0.577.0 - ISC
|
|
148
148
|
*
|
|
149
149
|
* This source code is licensed under the ISC license.
|
|
150
150
|
* See the LICENSE file in the root directory of this source tree.
|
|
151
|
-
*/const zh=[["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"}]],
|
|
151
|
+
*/const zh=[["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"}]],AR=B("circle-alert",zh);/**
|
|
152
152
|
* @license lucide-react v0.577.0 - ISC
|
|
153
153
|
*
|
|
154
154
|
* This source code is licensed under the ISC license.
|
|
155
155
|
* See the LICENSE file in the root directory of this source tree.
|
|
156
|
-
*/const Vh=[["path",{d:"M21.801 10A10 10 0 1 1 17 3.335",key:"yps3ct"}],["path",{d:"m9 11 3 3L22 4",key:"1pflzl"}]],
|
|
156
|
+
*/const Vh=[["path",{d:"M21.801 10A10 10 0 1 1 17 3.335",key:"yps3ct"}],["path",{d:"m9 11 3 3L22 4",key:"1pflzl"}]],NR=B("circle-check-big",Vh);/**
|
|
157
157
|
* @license lucide-react v0.577.0 - ISC
|
|
158
158
|
*
|
|
159
159
|
* This source code is licensed under the ISC license.
|
|
160
160
|
* See the LICENSE file in the root directory of this source tree.
|
|
161
|
-
*/const $h=[["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"}]],
|
|
161
|
+
*/const $h=[["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"}]],DR=B("circle-arrow-up",$h);/**
|
|
162
162
|
* @license lucide-react v0.577.0 - ISC
|
|
163
163
|
*
|
|
164
164
|
* This source code is licensed under the ISC license.
|
|
165
165
|
* See the LICENSE file in the root directory of this source tree.
|
|
166
|
-
*/const Hh=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]],
|
|
166
|
+
*/const Hh=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]],_R=B("circle-check",Hh);/**
|
|
167
167
|
* @license lucide-react v0.577.0 - ISC
|
|
168
168
|
*
|
|
169
169
|
* This source code is licensed under the ISC license.
|
|
170
170
|
* See the LICENSE file in the root directory of this source tree.
|
|
171
|
-
*/const jh=[["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"}]],
|
|
171
|
+
*/const jh=[["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"}]],LR=B("circle-dollar-sign",jh);/**
|
|
172
172
|
* @license lucide-react v0.577.0 - ISC
|
|
173
173
|
*
|
|
174
174
|
* This source code is licensed under the ISC license.
|
|
175
175
|
* See the LICENSE file in the root directory of this source tree.
|
|
176
|
-
*/const Bh=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["circle",{cx:"12",cy:"12",r:"1",key:"41hilf"}]],
|
|
176
|
+
*/const Bh=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["circle",{cx:"12",cy:"12",r:"1",key:"41hilf"}]],FR=B("circle-dot",Bh);/**
|
|
177
177
|
* @license lucide-react v0.577.0 - ISC
|
|
178
178
|
*
|
|
179
179
|
* This source code is licensed under the ISC license.
|
|
180
180
|
* See the LICENSE file in the root directory of this source tree.
|
|
181
|
-
*/const Wh=[["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"}]],
|
|
181
|
+
*/const Wh=[["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"}]],zR=B("circle-ellipsis",Wh);/**
|
|
182
182
|
* @license lucide-react v0.577.0 - ISC
|
|
183
183
|
*
|
|
184
184
|
* This source code is licensed under the ISC license.
|
|
185
185
|
* See the LICENSE file in the root directory of this source tree.
|
|
186
|
-
*/const Uh=[["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"}]],
|
|
186
|
+
*/const Uh=[["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"}]],VR=B("circle-question-mark",Uh);/**
|
|
187
187
|
* @license lucide-react v0.577.0 - ISC
|
|
188
188
|
*
|
|
189
189
|
* This source code is licensed under the ISC license.
|
|
190
190
|
* See the LICENSE file in the root directory of this source tree.
|
|
191
|
-
*/const
|
|
191
|
+
*/const qh=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["rect",{x:"9",y:"9",width:"6",height:"6",rx:"1",key:"1ssd4o"}]],$R=B("circle-stop",qh);/**
|
|
192
192
|
* @license lucide-react v0.577.0 - ISC
|
|
193
193
|
*
|
|
194
194
|
* This source code is licensed under the ISC license.
|
|
195
195
|
* See the LICENSE file in the root directory of this source tree.
|
|
196
|
-
*/const
|
|
196
|
+
*/const Gh=[["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"}]],HR=B("circle-x",Gh);/**
|
|
197
197
|
* @license lucide-react v0.577.0 - ISC
|
|
198
198
|
*
|
|
199
199
|
* This source code is licensed under the ISC license.
|
|
200
200
|
* See the LICENSE file in the root directory of this source tree.
|
|
201
|
-
*/const Yh=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]],
|
|
201
|
+
*/const Yh=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]],jR=B("circle",Yh);/**
|
|
202
202
|
* @license lucide-react v0.577.0 - ISC
|
|
203
203
|
*
|
|
204
204
|
* This source code is licensed under the ISC license.
|
|
205
205
|
* See the LICENSE file in the root directory of this source tree.
|
|
206
|
-
*/const Xh=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 6v6h4",key:"135r8i"}]],
|
|
206
|
+
*/const Xh=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 6v6h4",key:"135r8i"}]],BR=B("clock-3",Xh);/**
|
|
207
207
|
* @license lucide-react v0.577.0 - ISC
|
|
208
208
|
*
|
|
209
209
|
* This source code is licensed under the ISC license.
|
|
210
210
|
* See the LICENSE file in the root directory of this source tree.
|
|
211
|
-
*/const Kh=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 6v6l4 2",key:"mmk7yg"}]],
|
|
211
|
+
*/const Kh=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 6v6l4 2",key:"mmk7yg"}]],WR=B("clock",Kh);/**
|
|
212
212
|
* @license lucide-react v0.577.0 - ISC
|
|
213
213
|
*
|
|
214
214
|
* This source code is licensed under the ISC license.
|
|
215
215
|
* See the LICENSE file in the root directory of this source tree.
|
|
216
|
-
*/const Zh=[["path",{d:"
|
|
216
|
+
*/const Zh=[["path",{d:"M10.94 5.274A7 7 0 0 1 15.71 10h1.79a4.5 4.5 0 0 1 4.222 6.057",key:"1uxyv8"}],["path",{d:"M18.796 18.81A4.5 4.5 0 0 1 17.5 19H9A7 7 0 0 1 5.79 5.78",key:"99tcn7"}],["path",{d:"m2 2 20 20",key:"1ooewy"}]],UR=B("cloud-off",Zh);/**
|
|
217
217
|
* @license lucide-react v0.577.0 - ISC
|
|
218
218
|
*
|
|
219
219
|
* This source code is licensed under the ISC license.
|
|
220
220
|
* See the LICENSE file in the root directory of this source tree.
|
|
221
|
-
*/const Qh=[["path",{d:"
|
|
221
|
+
*/const Qh=[["path",{d:"M17.5 19H9a7 7 0 1 1 6.71-9h1.79a4.5 4.5 0 1 1 0 9Z",key:"p7xjir"}]],qR=B("cloud",Qh);/**
|
|
222
222
|
* @license lucide-react v0.577.0 - ISC
|
|
223
223
|
*
|
|
224
224
|
* This source code is licensed under the ISC license.
|
|
225
225
|
* See the LICENSE file in the root directory of this source tree.
|
|
226
|
-
*/const Jh=[["path",{d:"
|
|
226
|
+
*/const Jh=[["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"}]],GR=B("code-xml",Jh);/**
|
|
227
227
|
* @license lucide-react v0.577.0 - ISC
|
|
228
228
|
*
|
|
229
229
|
* This source code is licensed under the ISC license.
|
|
230
230
|
* See the LICENSE file in the root directory of this source tree.
|
|
231
|
-
*/const eg=[["
|
|
231
|
+
*/const eg=[["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"}]],YR=B("coins",eg);/**
|
|
232
232
|
* @license lucide-react v0.577.0 - ISC
|
|
233
233
|
*
|
|
234
234
|
* This source code is licensed under the ISC license.
|
|
235
235
|
* See the LICENSE file in the root directory of this source tree.
|
|
236
|
-
*/const tg=[["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"}]],
|
|
236
|
+
*/const tg=[["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"}]],XR=B("copy-plus",tg);/**
|
|
237
237
|
* @license lucide-react v0.577.0 - ISC
|
|
238
238
|
*
|
|
239
239
|
* This source code is licensed under the ISC license.
|
|
240
240
|
* See the LICENSE file in the root directory of this source tree.
|
|
241
|
-
*/const ng=[["
|
|
241
|
+
*/const ng=[["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"}]],KR=B("copy",ng);/**
|
|
242
242
|
* @license lucide-react v0.577.0 - ISC
|
|
243
243
|
*
|
|
244
244
|
* This source code is licensed under the ISC license.
|
|
245
245
|
* See the LICENSE file in the root directory of this source tree.
|
|
246
|
-
*/const og=[["
|
|
246
|
+
*/const og=[["path",{d:"M14 9 9 4 4 9",key:"1af5af"}],["path",{d:"M20 20h-7a4 4 0 0 1-4-4V4",key:"1blwi3"}]],ZR=B("corner-left-up",og);/**
|
|
247
247
|
* @license lucide-react v0.577.0 - ISC
|
|
248
248
|
*
|
|
249
249
|
* This source code is licensed under the ISC license.
|
|
250
250
|
* See the LICENSE file in the root directory of this source tree.
|
|
251
|
-
*/const rg=[["path",{d:"
|
|
251
|
+
*/const rg=[["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"}]],QR=B("cpu",rg);/**
|
|
252
252
|
* @license lucide-react v0.577.0 - ISC
|
|
253
253
|
*
|
|
254
254
|
* This source code is licensed under the ISC license.
|
|
255
255
|
* See the LICENSE file in the root directory of this source tree.
|
|
256
|
-
*/const sg=[["
|
|
256
|
+
*/const sg=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"22",x2:"18",y1:"12",y2:"12",key:"l9bcsi"}],["line",{x1:"6",x2:"2",y1:"12",y2:"12",key:"13hhkx"}],["line",{x1:"12",x2:"12",y1:"6",y2:"2",key:"10w3f3"}],["line",{x1:"12",x2:"12",y1:"22",y2:"18",key:"15g9kq"}]],JR=B("crosshair",sg);/**
|
|
257
257
|
* @license lucide-react v0.577.0 - ISC
|
|
258
258
|
*
|
|
259
259
|
* This source code is licensed under the ISC license.
|
|
260
260
|
* See the LICENSE file in the root directory of this source tree.
|
|
261
|
-
*/const ig=[["path",{d:"
|
|
261
|
+
*/const ig=[["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"}]],ek=B("crown",ig);/**
|
|
262
262
|
* @license lucide-react v0.577.0 - ISC
|
|
263
263
|
*
|
|
264
264
|
* This source code is licensed under the ISC license.
|
|
265
265
|
* See the LICENSE file in the root directory of this source tree.
|
|
266
|
-
*/const ag=[["
|
|
266
|
+
*/const ag=[["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"}]],tk=B("download",ag);/**
|
|
267
267
|
* @license lucide-react v0.577.0 - ISC
|
|
268
268
|
*
|
|
269
269
|
* This source code is licensed under the ISC license.
|
|
270
270
|
* See the LICENSE file in the root directory of this source tree.
|
|
271
|
-
*/const cg=[["path",{d:"
|
|
271
|
+
*/const cg=[["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"}]],nk=B("earth",cg);/**
|
|
272
272
|
* @license lucide-react v0.577.0 - ISC
|
|
273
273
|
*
|
|
274
274
|
* This source code is licensed under the ISC license.
|
|
275
275
|
* See the LICENSE file in the root directory of this source tree.
|
|
276
|
-
*/const lg=[["
|
|
276
|
+
*/const lg=[["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"}]],ok=B("ellipsis",lg);/**
|
|
277
277
|
* @license lucide-react v0.577.0 - ISC
|
|
278
278
|
*
|
|
279
279
|
* This source code is licensed under the ISC license.
|
|
280
280
|
* See the LICENSE file in the root directory of this source tree.
|
|
281
|
-
*/const ug=[["path",{d:"
|
|
281
|
+
*/const ug=[["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"}]],rk=B("external-link",ug);/**
|
|
282
282
|
* @license lucide-react v0.577.0 - ISC
|
|
283
283
|
*
|
|
284
284
|
* This source code is licensed under the ISC license.
|
|
285
285
|
* See the LICENSE file in the root directory of this source tree.
|
|
286
|
-
*/const dg=[["path",{d:"
|
|
286
|
+
*/const dg=[["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"}]],sk=B("eye-off",dg);/**
|
|
287
287
|
* @license lucide-react v0.577.0 - ISC
|
|
288
288
|
*
|
|
289
289
|
* This source code is licensed under the ISC license.
|
|
290
290
|
* See the LICENSE file in the root directory of this source tree.
|
|
291
|
-
*/const fg=[["path",{d:"
|
|
291
|
+
*/const fg=[["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"}]],ik=B("eye",fg);/**
|
|
292
292
|
* @license lucide-react v0.577.0 - ISC
|
|
293
293
|
*
|
|
294
294
|
* This source code is licensed under the ISC license.
|
|
295
295
|
* See the LICENSE file in the root directory of this source tree.
|
|
296
|
-
*/const pg=[["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"}],["
|
|
296
|
+
*/const pg=[["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"}]],ak=B("file-braces",pg);/**
|
|
297
297
|
* @license lucide-react v0.577.0 - ISC
|
|
298
298
|
*
|
|
299
299
|
* This source code is licensed under the ISC license.
|
|
300
300
|
* See the LICENSE file in the root directory of this source tree.
|
|
301
|
-
*/const hg=[["path",{d:"
|
|
301
|
+
*/const hg=[["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"}]],ck=B("file-code-corner",hg);/**
|
|
302
302
|
* @license lucide-react v0.577.0 - ISC
|
|
303
303
|
*
|
|
304
304
|
* This source code is licensed under the ISC license.
|
|
305
305
|
* See the LICENSE file in the root directory of this source tree.
|
|
306
|
-
*/const gg=[["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"}],["
|
|
306
|
+
*/const gg=[["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"}]],lk=B("file-image",gg);/**
|
|
307
307
|
* @license lucide-react v0.577.0 - ISC
|
|
308
308
|
*
|
|
309
309
|
* This source code is licensed under the ISC license.
|
|
310
310
|
* See the LICENSE file in the root directory of this source tree.
|
|
311
|
-
*/const mg=[["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"}],["
|
|
311
|
+
*/const mg=[["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:"11.5",cy:"14.5",r:"2.5",key:"1bq0ko"}],["path",{d:"M13.3 16.3 15 18",key:"2quom7"}]],uk=B("file-search",mg);/**
|
|
312
312
|
* @license lucide-react v0.577.0 - ISC
|
|
313
313
|
*
|
|
314
314
|
* This source code is licensed under the ISC license.
|
|
315
315
|
* See the LICENSE file in the root directory of this source tree.
|
|
316
|
-
*/const yg=[["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"}]],
|
|
316
|
+
*/const yg=[["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"}]],dk=B("file-terminal",yg);/**
|
|
317
317
|
* @license lucide-react v0.577.0 - ISC
|
|
318
318
|
*
|
|
319
319
|
* This source code is licensed under the ISC license.
|
|
320
320
|
* See the LICENSE file in the root directory of this source tree.
|
|
321
|
-
*/const bg=[["path",{d:"
|
|
321
|
+
*/const bg=[["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"}]],fk=B("file-text",bg);/**
|
|
322
322
|
* @license lucide-react v0.577.0 - ISC
|
|
323
323
|
*
|
|
324
324
|
* This source code is licensed under the ISC license.
|
|
325
325
|
* See the LICENSE file in the root directory of this source tree.
|
|
326
|
-
*/const vg=[["path",{d:"
|
|
326
|
+
*/const vg=[["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"}]],pk=B("file",vg);/**
|
|
327
327
|
* @license lucide-react v0.577.0 - ISC
|
|
328
328
|
*
|
|
329
329
|
* This source code is licensed under the ISC license.
|
|
330
330
|
* See the LICENSE file in the root directory of this source tree.
|
|
331
|
-
*/const xg=[["path",{d:"
|
|
331
|
+
*/const xg=[["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"}]],hk=B("flag",xg);/**
|
|
332
332
|
* @license lucide-react v0.577.0 - ISC
|
|
333
333
|
*
|
|
334
334
|
* This source code is licensed under the ISC license.
|
|
335
335
|
* See the LICENSE file in the root directory of this source tree.
|
|
336
|
-
*/const Sg=[["path",{d:"
|
|
336
|
+
*/const Sg=[["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"}]],gk=B("flame",Sg);/**
|
|
337
337
|
* @license lucide-react v0.577.0 - ISC
|
|
338
338
|
*
|
|
339
339
|
* This source code is licensed under the ISC license.
|
|
340
340
|
* See the LICENSE file in the root directory of this source tree.
|
|
341
|
-
*/const wg=[["path",{d:"
|
|
341
|
+
*/const wg=[["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"}]],mk=B("folder-code",wg);/**
|
|
342
342
|
* @license lucide-react v0.577.0 - ISC
|
|
343
343
|
*
|
|
344
344
|
* This source code is licensed under the ISC license.
|
|
345
345
|
* See the LICENSE file in the root directory of this source tree.
|
|
346
|
-
*/const Rg=[["path",{d:"
|
|
346
|
+
*/const Rg=[["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"}]],yk=B("folder-open",Rg);/**
|
|
347
347
|
* @license lucide-react v0.577.0 - ISC
|
|
348
348
|
*
|
|
349
349
|
* This source code is licensed under the ISC license.
|
|
350
350
|
* See the LICENSE file in the root directory of this source tree.
|
|
351
|
-
*/const kg=[["path",{d:"
|
|
351
|
+
*/const kg=[["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"}]],bk=B("folder-plus",kg);/**
|
|
352
352
|
* @license lucide-react v0.577.0 - ISC
|
|
353
353
|
*
|
|
354
354
|
* This source code is licensed under the ISC license.
|
|
355
355
|
* See the LICENSE file in the root directory of this source tree.
|
|
356
|
-
*/const Cg=[["path",{d:"
|
|
356
|
+
*/const Cg=[["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"}]],vk=B("folder-search",Cg);/**
|
|
357
357
|
* @license lucide-react v0.577.0 - ISC
|
|
358
358
|
*
|
|
359
359
|
* This source code is licensed under the ISC license.
|
|
360
360
|
* See the LICENSE file in the root directory of this source tree.
|
|
361
|
-
*/const Eg=[["path",{d:"
|
|
361
|
+
*/const Eg=[["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"}]],xk=B("folder-tree",Eg);/**
|
|
362
362
|
* @license lucide-react v0.577.0 - ISC
|
|
363
363
|
*
|
|
364
364
|
* This source code is licensed under the ISC license.
|
|
365
365
|
* See the LICENSE file in the root directory of this source tree.
|
|
366
|
-
*/const Pg=[["
|
|
366
|
+
*/const Pg=[["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"}]],Sk=B("folder",Pg);/**
|
|
367
367
|
* @license lucide-react v0.577.0 - ISC
|
|
368
368
|
*
|
|
369
369
|
* This source code is licensed under the ISC license.
|
|
370
370
|
* See the LICENSE file in the root directory of this source tree.
|
|
371
|
-
*/const Mg=[["
|
|
371
|
+
*/const Mg=[["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"}]],wk=B("git-branch",Mg);/**
|
|
372
372
|
* @license lucide-react v0.577.0 - ISC
|
|
373
373
|
*
|
|
374
374
|
* This source code is licensed under the ISC license.
|
|
375
375
|
* See the LICENSE file in the root directory of this source tree.
|
|
376
|
-
*/const Tg=[["circle",{cx:"
|
|
376
|
+
*/const Tg=[["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"}]],Rk=B("git-compare-arrows",Tg);/**
|
|
377
377
|
* @license lucide-react v0.577.0 - ISC
|
|
378
378
|
*
|
|
379
379
|
* This source code is licensed under the ISC license.
|
|
380
380
|
* See the LICENSE file in the root directory of this source tree.
|
|
381
|
-
*/const Ig=[["circle",{cx:"
|
|
381
|
+
*/const Ig=[["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"}]],kk=B("git-fork",Ig);/**
|
|
382
382
|
* @license lucide-react v0.577.0 - ISC
|
|
383
383
|
*
|
|
384
384
|
* This source code is licensed under the ISC license.
|
|
385
385
|
* See the LICENSE file in the root directory of this source tree.
|
|
386
|
-
*/const Og=[["
|
|
386
|
+
*/const Og=[["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"}]],Ck=B("git-pull-request-draft",Og);/**
|
|
387
387
|
* @license lucide-react v0.577.0 - ISC
|
|
388
388
|
*
|
|
389
389
|
* This source code is licensed under the ISC license.
|
|
390
390
|
* See the LICENSE file in the root directory of this source tree.
|
|
391
|
-
*/const Ag=[["circle",{cx:"
|
|
391
|
+
*/const Ag=[["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"}]],Ek=B("git-pull-request",Ag);/**
|
|
392
392
|
* @license lucide-react v0.577.0 - ISC
|
|
393
393
|
*
|
|
394
394
|
* This source code is licensed under the ISC license.
|
|
395
395
|
* See the LICENSE file in the root directory of this source tree.
|
|
396
|
-
*/const Ng=[["path",{d:"
|
|
396
|
+
*/const Ng=[["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"}]],Pk=B("github",Ng);/**
|
|
397
397
|
* @license lucide-react v0.577.0 - ISC
|
|
398
398
|
*
|
|
399
399
|
* This source code is licensed under the ISC license.
|
|
400
400
|
* See the LICENSE file in the root directory of this source tree.
|
|
401
|
-
*/const Dg=[["path",{d:"
|
|
401
|
+
*/const Dg=[["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"}]],Mk=B("globe",Dg);/**
|
|
402
402
|
* @license lucide-react v0.577.0 - ISC
|
|
403
403
|
*
|
|
404
404
|
* This source code is licensed under the ISC license.
|
|
405
405
|
* See the LICENSE file in the root directory of this source tree.
|
|
406
|
-
*/const
|
|
406
|
+
*/const _g=[["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"}]],Tk=B("hand",_g);/**
|
|
407
407
|
* @license lucide-react v0.577.0 - ISC
|
|
408
408
|
*
|
|
409
409
|
* This source code is licensed under the ISC license.
|
|
410
410
|
* See the LICENSE file in the root directory of this source tree.
|
|
411
|
-
*/const
|
|
411
|
+
*/const Lg=[["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"}]],Ik=B("history",Lg);/**
|
|
412
412
|
* @license lucide-react v0.577.0 - ISC
|
|
413
413
|
*
|
|
414
414
|
* This source code is licensed under the ISC license.
|
|
415
415
|
* See the LICENSE file in the root directory of this source tree.
|
|
416
|
-
*/const Fg=[["
|
|
416
|
+
*/const Fg=[["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"}]],Ok=B("house",Fg);/**
|
|
417
417
|
* @license lucide-react v0.577.0 - ISC
|
|
418
418
|
*
|
|
419
419
|
* This source code is licensed under the ISC license.
|
|
420
420
|
* See the LICENSE file in the root directory of this source tree.
|
|
421
|
-
*/const zg=[["path",{d:"
|
|
421
|
+
*/const zg=[["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"}]],Ak=B("image",zg);/**
|
|
422
422
|
* @license lucide-react v0.577.0 - ISC
|
|
423
423
|
*
|
|
424
424
|
* This source code is licensed under the ISC license.
|
|
425
425
|
* See the LICENSE file in the root directory of this source tree.
|
|
426
|
-
*/const Vg=[["
|
|
426
|
+
*/const Vg=[["polyline",{points:"22 12 16 12 14 15 10 15 8 12 2 12",key:"o97t9d"}],["path",{d:"M5.45 5.11 2 12v6a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-6l-3.45-6.89A2 2 0 0 0 16.76 4H7.24a2 2 0 0 0-1.79 1.11z",key:"oot6mr"}]],Nk=B("inbox",Vg);/**
|
|
427
427
|
* @license lucide-react v0.577.0 - ISC
|
|
428
428
|
*
|
|
429
429
|
* This source code is licensed under the ISC license.
|
|
430
430
|
* See the LICENSE file in the root directory of this source tree.
|
|
431
|
-
*/const $g=[["
|
|
431
|
+
*/const $g=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 16v-4",key:"1dtifu"}],["path",{d:"M12 8h.01",key:"e9boi3"}]],Dk=B("info",$g);/**
|
|
432
432
|
* @license lucide-react v0.577.0 - ISC
|
|
433
433
|
*
|
|
434
434
|
* This source code is licensed under the ISC license.
|
|
435
435
|
* See the LICENSE file in the root directory of this source tree.
|
|
436
|
-
*/const Hg=[["path",{d:"
|
|
436
|
+
*/const Hg=[["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"}]],_k=B("infinity",Hg);/**
|
|
437
437
|
* @license lucide-react v0.577.0 - ISC
|
|
438
438
|
*
|
|
439
439
|
* This source code is licensed under the ISC license.
|
|
440
440
|
* See the LICENSE file in the root directory of this source tree.
|
|
441
|
-
*/const jg=[["path",{d:"
|
|
441
|
+
*/const jg=[["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"}]],Lk=B("key-round",jg);/**
|
|
442
442
|
* @license lucide-react v0.577.0 - ISC
|
|
443
443
|
*
|
|
444
444
|
* This source code is licensed under the ISC license.
|
|
445
445
|
* See the LICENSE file in the root directory of this source tree.
|
|
446
|
-
*/const Bg=[["
|
|
446
|
+
*/const Bg=[["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"}]],Fk=B("keyboard",Bg);/**
|
|
447
447
|
* @license lucide-react v0.577.0 - ISC
|
|
448
448
|
*
|
|
449
449
|
* This source code is licensed under the ISC license.
|
|
450
450
|
* See the LICENSE file in the root directory of this source tree.
|
|
451
|
-
*/const Wg=[["path",{d:"
|
|
451
|
+
*/const Wg=[["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"}]],zk=B("laptop",Wg);/**
|
|
452
452
|
* @license lucide-react v0.577.0 - ISC
|
|
453
453
|
*
|
|
454
454
|
* This source code is licensed under the ISC license.
|
|
455
455
|
* See the LICENSE file in the root directory of this source tree.
|
|
456
|
-
*/const Ug=[["path",{d:"
|
|
456
|
+
*/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"}]],Vk=B("layers",Ug);/**
|
|
457
457
|
* @license lucide-react v0.577.0 - ISC
|
|
458
458
|
*
|
|
459
459
|
* This source code is licensed under the ISC license.
|
|
460
460
|
* See the LICENSE file in the root directory of this source tree.
|
|
461
|
-
*/const
|
|
461
|
+
*/const qg=[["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"}]],$k=B("layout-grid",qg);/**
|
|
462
462
|
* @license lucide-react v0.577.0 - ISC
|
|
463
463
|
*
|
|
464
464
|
* This source code is licensed under the ISC license.
|
|
465
465
|
* See the LICENSE file in the root directory of this source tree.
|
|
466
|
-
*/const
|
|
466
|
+
*/const Gg=[["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"}]],Hk=B("link-2-off",Gg);/**
|
|
467
467
|
* @license lucide-react v0.577.0 - ISC
|
|
468
468
|
*
|
|
469
469
|
* This source code is licensed under the ISC license.
|
|
470
470
|
* See the LICENSE file in the root directory of this source tree.
|
|
471
|
-
*/const Yg=[["path",{d:"
|
|
471
|
+
*/const Yg=[["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"}]],jk=B("link-2",Yg);/**
|
|
472
472
|
* @license lucide-react v0.577.0 - ISC
|
|
473
473
|
*
|
|
474
474
|
* This source code is licensed under the ISC license.
|
|
475
475
|
* See the LICENSE file in the root directory of this source tree.
|
|
476
|
-
*/const Xg=[["path",{d:"
|
|
476
|
+
*/const Xg=[["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"}]],Bk=B("list-checks",Xg);/**
|
|
477
477
|
* @license lucide-react v0.577.0 - ISC
|
|
478
478
|
*
|
|
479
479
|
* This source code is licensed under the ISC license.
|
|
480
480
|
* See the LICENSE file in the root directory of this source tree.
|
|
481
|
-
*/const Kg=[["path",{d:"
|
|
481
|
+
*/const Kg=[["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"}],["rect",{x:"3",y:"4",width:"6",height:"6",rx:"1",key:"cif1o7"}]],Wk=B("list-todo",Kg);/**
|
|
482
482
|
* @license lucide-react v0.577.0 - ISC
|
|
483
483
|
*
|
|
484
484
|
* This source code is licensed under the ISC license.
|
|
485
485
|
* See the LICENSE file in the root directory of this source tree.
|
|
486
|
-
*/const Zg=[["path",{d:"
|
|
486
|
+
*/const Zg=[["path",{d:"M8 5h13",key:"1pao27"}],["path",{d:"M13 12h8",key:"h98zly"}],["path",{d:"M13 19h8",key:"c3s6r1"}],["path",{d:"M3 10a2 2 0 0 0 2 2h3",key:"1npucw"}],["path",{d:"M3 5v12a2 2 0 0 0 2 2h3",key:"x1gjn2"}]],Uk=B("list-tree",Zg);/**
|
|
487
487
|
* @license lucide-react v0.577.0 - ISC
|
|
488
488
|
*
|
|
489
489
|
* This source code is licensed under the ISC license.
|
|
490
490
|
* See the LICENSE file in the root directory of this source tree.
|
|
491
|
-
*/const Qg=[["
|
|
491
|
+
*/const Qg=[["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"}]],qk=B("list",Qg);/**
|
|
492
492
|
* @license lucide-react v0.577.0 - ISC
|
|
493
493
|
*
|
|
494
494
|
* This source code is licensed under the ISC license.
|
|
495
495
|
* See the LICENSE file in the root directory of this source tree.
|
|
496
|
-
*/const Jg=[["path",{d:"
|
|
496
|
+
*/const Jg=[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]],Gk=B("loader-circle",Jg);/**
|
|
497
497
|
* @license lucide-react v0.577.0 - ISC
|
|
498
498
|
*
|
|
499
499
|
* This source code is licensed under the ISC license.
|
|
500
500
|
* See the LICENSE file in the root directory of this source tree.
|
|
501
|
-
*/const em=[["path",{d:"
|
|
501
|
+
*/const em=[["path",{d:"m10 17 5-5-5-5",key:"1bsop3"}],["path",{d:"M15 12H3",key:"6jk70r"}],["path",{d:"M15 3h4a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2h-4",key:"u53s6r"}]],Yk=B("log-in",em);/**
|
|
502
502
|
* @license lucide-react v0.577.0 - ISC
|
|
503
503
|
*
|
|
504
504
|
* This source code is licensed under the ISC license.
|
|
505
505
|
* See the LICENSE file in the root directory of this source tree.
|
|
506
|
-
*/const tm=[["
|
|
506
|
+
*/const tm=[["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"}]],Xk=B("lock",tm);/**
|
|
507
507
|
* @license lucide-react v0.577.0 - ISC
|
|
508
508
|
*
|
|
509
509
|
* This source code is licensed under the ISC license.
|
|
510
510
|
* See the LICENSE file in the root directory of this source tree.
|
|
511
|
-
*/const nm=[["path",{d:"
|
|
511
|
+
*/const nm=[["path",{d:"m16 17 5-5-5-5",key:"1bji2h"}],["path",{d:"M21 12H9",key:"dn1m92"}],["path",{d:"M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4",key:"1uf3rs"}]],Kk=B("log-out",nm);/**
|
|
512
512
|
* @license lucide-react v0.577.0 - ISC
|
|
513
513
|
*
|
|
514
514
|
* This source code is licensed under the ISC license.
|
|
515
515
|
* See the LICENSE file in the root directory of this source tree.
|
|
516
|
-
*/const om=[["path",{d:"
|
|
516
|
+
*/const om=[["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"}]],Zk=B("maximize-2",om);/**
|
|
517
517
|
* @license lucide-react v0.577.0 - ISC
|
|
518
518
|
*
|
|
519
519
|
* This source code is licensed under the ISC license.
|
|
520
520
|
* See the LICENSE file in the root directory of this source tree.
|
|
521
|
-
*/const rm=[["path",{d:"
|
|
521
|
+
*/const rm=[["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"}]],Qk=B("message-circle-question-mark",rm);/**
|
|
522
522
|
* @license lucide-react v0.577.0 - ISC
|
|
523
523
|
*
|
|
524
524
|
* This source code is licensed under the ISC license.
|
|
525
525
|
* See the LICENSE file in the root directory of this source tree.
|
|
526
|
-
*/const sm=[["path",{d:"
|
|
526
|
+
*/const sm=[["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"}]],Jk=B("message-square-plus",sm);/**
|
|
527
527
|
* @license lucide-react v0.577.0 - ISC
|
|
528
528
|
*
|
|
529
529
|
* This source code is licensed under the ISC license.
|
|
530
530
|
* See the LICENSE file in the root directory of this source tree.
|
|
531
|
-
*/const im=[["path",{d:"
|
|
531
|
+
*/const im=[["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"}]],eC=B("message-square-text",im);/**
|
|
532
532
|
* @license lucide-react v0.577.0 - ISC
|
|
533
533
|
*
|
|
534
534
|
* This source code is licensed under the ISC license.
|
|
535
535
|
* See the LICENSE file in the root directory of this source tree.
|
|
536
|
-
*/const am=[["
|
|
536
|
+
*/const am=[["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"}]],tC=B("message-square",am);/**
|
|
537
537
|
* @license lucide-react v0.577.0 - ISC
|
|
538
538
|
*
|
|
539
539
|
* This source code is licensed under the ISC license.
|
|
540
540
|
* See the LICENSE file in the root directory of this source tree.
|
|
541
|
-
*/const cm=[["path",{d:"
|
|
541
|
+
*/const cm=[["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"}]],nC=B("messages-square",cm);/**
|
|
542
542
|
* @license lucide-react v0.577.0 - ISC
|
|
543
543
|
*
|
|
544
544
|
* This source code is licensed under the ISC license.
|
|
545
545
|
* See the LICENSE file in the root directory of this source tree.
|
|
546
|
-
*/const lm=[["path",{d:"
|
|
546
|
+
*/const lm=[["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"}]],oC=B("minimize-2",lm);/**
|
|
547
547
|
* @license lucide-react v0.577.0 - ISC
|
|
548
548
|
*
|
|
549
549
|
* This source code is licensed under the ISC license.
|
|
550
550
|
* See the LICENSE file in the root directory of this source tree.
|
|
551
|
-
*/const um=[["path",{d:"
|
|
551
|
+
*/const um=[["path",{d:"M5 12h14",key:"1ays0h"}]],rC=B("minus",um);/**
|
|
552
552
|
* @license lucide-react v0.577.0 - ISC
|
|
553
553
|
*
|
|
554
554
|
* This source code is licensed under the ISC license.
|
|
555
555
|
* See the LICENSE file in the root directory of this source tree.
|
|
556
|
-
*/const dm=[["
|
|
556
|
+
*/const dm=[["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"}]],sC=B("monitor",dm);/**
|
|
557
557
|
* @license lucide-react v0.577.0 - ISC
|
|
558
558
|
*
|
|
559
559
|
* This source code is licensed under the ISC license.
|
|
560
560
|
* See the LICENSE file in the root directory of this source tree.
|
|
561
|
-
*/const fm=[["
|
|
561
|
+
*/const fm=[["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"}]],iC=B("notebook-pen",fm);/**
|
|
562
562
|
* @license lucide-react v0.577.0 - ISC
|
|
563
563
|
*
|
|
564
564
|
* This source code is licensed under the ISC license.
|
|
565
565
|
* See the LICENSE file in the root directory of this source tree.
|
|
566
|
-
*/const pm=[["
|
|
566
|
+
*/const pm=[["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"}]],aC=B("octagon-x",pm);/**
|
|
567
567
|
* @license lucide-react v0.577.0 - ISC
|
|
568
568
|
*
|
|
569
569
|
* This source code is licensed under the ISC license.
|
|
570
570
|
* See the LICENSE file in the root directory of this source tree.
|
|
571
|
-
*/const hm=[["
|
|
571
|
+
*/const hm=[["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"}]],cC=B("octagon",hm);/**
|
|
572
572
|
* @license lucide-react v0.577.0 - ISC
|
|
573
573
|
*
|
|
574
574
|
* This source code is licensed under the ISC license.
|
|
575
575
|
* See the LICENSE file in the root directory of this source tree.
|
|
576
|
-
*/const gm=[["
|
|
576
|
+
*/const gm=[["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"}]],lC=B("palette",gm);/**
|
|
577
577
|
* @license lucide-react v0.577.0 - ISC
|
|
578
578
|
*
|
|
579
579
|
* This source code is licensed under the ISC license.
|
|
580
580
|
* See the LICENSE file in the root directory of this source tree.
|
|
581
|
-
*/const mm=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"
|
|
581
|
+
*/const mm=[["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"}]],uC=B("panel-left-close",mm);/**
|
|
582
582
|
* @license lucide-react v0.577.0 - ISC
|
|
583
583
|
*
|
|
584
584
|
* This source code is licensed under the ISC license.
|
|
585
585
|
* See the LICENSE file in the root directory of this source tree.
|
|
586
|
-
*/const ym=[["rect",{
|
|
586
|
+
*/const ym=[["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"}]],dC=B("panel-left-open",ym);/**
|
|
587
587
|
* @license lucide-react v0.577.0 - ISC
|
|
588
588
|
*
|
|
589
589
|
* This source code is licensed under the ISC license.
|
|
590
590
|
* See the LICENSE file in the root directory of this source tree.
|
|
591
|
-
*/const bm=[["
|
|
591
|
+
*/const bm=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M9 3v18",key:"fh3hqa"}]],fC=B("panel-left",bm);/**
|
|
592
592
|
* @license lucide-react v0.577.0 - ISC
|
|
593
593
|
*
|
|
594
594
|
* This source code is licensed under the ISC license.
|
|
595
595
|
* See the LICENSE file in the root directory of this source tree.
|
|
596
|
-
*/const vm=[["
|
|
596
|
+
*/const vm=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M15 3v18",key:"14nvp0"}]],pC=B("panel-right",vm);/**
|
|
597
597
|
* @license lucide-react v0.577.0 - ISC
|
|
598
598
|
*
|
|
599
599
|
* This source code is licensed under the ISC license.
|
|
600
600
|
* See the LICENSE file in the root directory of this source tree.
|
|
601
|
-
*/const xm=[["
|
|
601
|
+
*/const xm=[["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"}]],hC=B("panels-top-left",xm);/**
|
|
602
602
|
* @license lucide-react v0.577.0 - ISC
|
|
603
603
|
*
|
|
604
604
|
* This source code is licensed under the ISC license.
|
|
605
605
|
* See the LICENSE file in the root directory of this source tree.
|
|
606
|
-
*/const Sm=[["
|
|
606
|
+
*/const Sm=[["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"}]],gC=B("pause",Sm);/**
|
|
607
607
|
* @license lucide-react v0.577.0 - ISC
|
|
608
608
|
*
|
|
609
609
|
* This source code is licensed under the ISC license.
|
|
610
610
|
* See the LICENSE file in the root directory of this source tree.
|
|
611
|
-
*/const wm=[["path",{d:"
|
|
611
|
+
*/const wm=[["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"}]],mC=B("pen-line",wm);/**
|
|
612
612
|
* @license lucide-react v0.577.0 - ISC
|
|
613
613
|
*
|
|
614
614
|
* This source code is licensed under the ISC license.
|
|
615
615
|
* See the LICENSE file in the root directory of this source tree.
|
|
616
|
-
*/const Rm=[["path",{d:"
|
|
616
|
+
*/const Rm=[["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"}]],yC=B("pencil",Rm);/**
|
|
617
617
|
* @license lucide-react v0.577.0 - ISC
|
|
618
618
|
*
|
|
619
619
|
* This source code is licensed under the ISC license.
|
|
620
620
|
* See the LICENSE file in the root directory of this source tree.
|
|
621
|
-
*/const km=[["path",{d:"
|
|
621
|
+
*/const km=[["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"}]],bC=B("play",km);/**
|
|
622
622
|
* @license lucide-react v0.577.0 - ISC
|
|
623
623
|
*
|
|
624
624
|
* This source code is licensed under the ISC license.
|
|
625
625
|
* See the LICENSE file in the root directory of this source tree.
|
|
626
|
-
*/const Cm=[["path",{d:"
|
|
626
|
+
*/const Cm=[["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"}]],vC=B("plug",Cm);/**
|
|
627
627
|
* @license lucide-react v0.577.0 - ISC
|
|
628
628
|
*
|
|
629
629
|
* This source code is licensed under the ISC license.
|
|
630
630
|
* See the LICENSE file in the root directory of this source tree.
|
|
631
|
-
*/const Em=[["path",{d:"
|
|
631
|
+
*/const Em=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]],xC=B("plus",Em);/**
|
|
632
632
|
* @license lucide-react v0.577.0 - ISC
|
|
633
633
|
*
|
|
634
634
|
* This source code is licensed under the ISC license.
|
|
635
635
|
* See the LICENSE file in the root directory of this source tree.
|
|
636
|
-
*/const Pm=[["path",{d:"
|
|
636
|
+
*/const Pm=[["path",{d:"M18.36 6.64A9 9 0 0 1 20.77 15",key:"dxknvb"}],["path",{d:"M6.16 6.16a9 9 0 1 0 12.68 12.68",key:"1x7qb5"}],["path",{d:"M12 2v4",key:"3427ic"}],["path",{d:"m2 2 20 20",key:"1ooewy"}]],SC=B("power-off",Pm);/**
|
|
637
637
|
* @license lucide-react v0.577.0 - ISC
|
|
638
638
|
*
|
|
639
639
|
* This source code is licensed under the ISC license.
|
|
640
640
|
* See the LICENSE file in the root directory of this source tree.
|
|
641
|
-
*/const Mm=[["path",{d:"
|
|
641
|
+
*/const Mm=[["path",{d:"M12 2v10",key:"mnfbl"}],["path",{d:"M18.4 6.6a9 9 0 1 1-12.77.04",key:"obofu9"}]],wC=B("power",Mm);/**
|
|
642
642
|
* @license lucide-react v0.577.0 - ISC
|
|
643
643
|
*
|
|
644
644
|
* This source code is licensed under the ISC license.
|
|
645
645
|
* See the LICENSE file in the root directory of this source tree.
|
|
646
|
-
*/const Tm=[["path",{d:"
|
|
646
|
+
*/const Tm=[["path",{d:"M15.39 4.39a1 1 0 0 0 1.68-.474 2.5 2.5 0 1 1 3.014 3.015 1 1 0 0 0-.474 1.68l1.683 1.682a2.414 2.414 0 0 1 0 3.414L19.61 15.39a1 1 0 0 1-1.68-.474 2.5 2.5 0 1 0-3.014 3.015 1 1 0 0 1 .474 1.68l-1.683 1.682a2.414 2.414 0 0 1-3.414 0L8.61 19.61a1 1 0 0 0-1.68.474 2.5 2.5 0 1 1-3.014-3.015 1 1 0 0 0 .474-1.68l-1.683-1.682a2.414 2.414 0 0 1 0-3.414L4.39 8.61a1 1 0 0 1 1.68.474 2.5 2.5 0 1 0 3.014-3.015 1 1 0 0 1-.474-1.68l1.683-1.682a2.414 2.414 0 0 1 3.414 0z",key:"w46dr5"}]],RC=B("puzzle",Tm);/**
|
|
647
647
|
* @license lucide-react v0.577.0 - ISC
|
|
648
648
|
*
|
|
649
649
|
* This source code is licensed under the ISC license.
|
|
650
650
|
* See the LICENSE file in the root directory of this source tree.
|
|
651
|
-
*/const Im=[["path",{d:"
|
|
651
|
+
*/const Im=[["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"}]],kC=B("quote",Im);/**
|
|
652
652
|
* @license lucide-react v0.577.0 - ISC
|
|
653
653
|
*
|
|
654
654
|
* This source code is licensed under the ISC license.
|
|
655
655
|
* See the LICENSE file in the root directory of this source tree.
|
|
656
|
-
*/const Om=[["path",{d:"
|
|
656
|
+
*/const Om=[["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"}]],CC=B("redo-2",Om);/**
|
|
657
657
|
* @license lucide-react v0.577.0 - ISC
|
|
658
658
|
*
|
|
659
659
|
* This source code is licensed under the ISC license.
|
|
660
660
|
* See the LICENSE file in the root directory of this source tree.
|
|
661
|
-
*/const Am=[["path",{d:"
|
|
661
|
+
*/const Am=[["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"}]],EC=B("refresh-cw",Am);/**
|
|
662
662
|
* @license lucide-react v0.577.0 - ISC
|
|
663
663
|
*
|
|
664
664
|
* This source code is licensed under the ISC license.
|
|
665
665
|
* See the LICENSE file in the root directory of this source tree.
|
|
666
|
-
*/const Nm=[["path",{d:"
|
|
666
|
+
*/const Nm=[["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"}]],PC=B("rocket",Nm);/**
|
|
667
667
|
* @license lucide-react v0.577.0 - ISC
|
|
668
668
|
*
|
|
669
669
|
* This source code is licensed under the ISC license.
|
|
670
670
|
* See the LICENSE file in the root directory of this source tree.
|
|
671
|
-
*/const Dm=[["path",{d:"
|
|
671
|
+
*/const Dm=[["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"}]],MC=B("rotate-ccw",Dm);/**
|
|
672
672
|
* @license lucide-react v0.577.0 - ISC
|
|
673
673
|
*
|
|
674
674
|
* This source code is licensed under the ISC license.
|
|
675
675
|
* See the LICENSE file in the root directory of this source tree.
|
|
676
|
-
*/const
|
|
676
|
+
*/const _m=[["path",{d:"M21 12a9 9 0 1 1-9-9c2.52 0 4.93 1 6.74 2.74L21 8",key:"1p45f6"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}]],TC=B("rotate-cw",_m);/**
|
|
677
677
|
* @license lucide-react v0.577.0 - ISC
|
|
678
678
|
*
|
|
679
679
|
* This source code is licensed under the ISC license.
|
|
680
680
|
* See the LICENSE file in the root directory of this source tree.
|
|
681
|
-
*/const
|
|
681
|
+
*/const Lm=[["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"}]],IC=B("save",Lm);/**
|
|
682
682
|
* @license lucide-react v0.577.0 - ISC
|
|
683
683
|
*
|
|
684
684
|
* This source code is licensed under the ISC license.
|
|
685
685
|
* See the LICENSE file in the root directory of this source tree.
|
|
686
|
-
*/const Fm=[["path",{d:"
|
|
686
|
+
*/const Fm=[["path",{d:"M15 12h-5",key:"r7krc0"}],["path",{d:"M15 8h-5",key:"1khuty"}],["path",{d:"M19 17V5a2 2 0 0 0-2-2H4",key:"zz82l3"}],["path",{d:"M8 21h12a2 2 0 0 0 2-2v-1a1 1 0 0 0-1-1H11a1 1 0 0 0-1 1v1a2 2 0 1 1-4 0V5a2 2 0 1 0-4 0v2a1 1 0 0 0 1 1h3",key:"1ph1d7"}]],OC=B("scroll-text",Fm);/**
|
|
687
687
|
* @license lucide-react v0.577.0 - ISC
|
|
688
688
|
*
|
|
689
689
|
* This source code is licensed under the ISC license.
|
|
690
690
|
* See the LICENSE file in the root directory of this source tree.
|
|
691
|
-
*/const zm=[["path",{d:"
|
|
691
|
+
*/const zm=[["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"}]],AC=B("search-x",zm);/**
|
|
692
692
|
* @license lucide-react v0.577.0 - ISC
|
|
693
693
|
*
|
|
694
694
|
* This source code is licensed under the ISC license.
|
|
695
695
|
* See the LICENSE file in the root directory of this source tree.
|
|
696
|
-
*/const Vm=[["
|
|
696
|
+
*/const Vm=[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]],NC=B("search",Vm);/**
|
|
697
697
|
* @license lucide-react v0.577.0 - ISC
|
|
698
698
|
*
|
|
699
699
|
* This source code is licensed under the ISC license.
|
|
700
700
|
* See the LICENSE file in the root directory of this source tree.
|
|
701
|
-
*/const $m=[["path",{d:"
|
|
701
|
+
*/const $m=[["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"}]],DC=B("send",$m);/**
|
|
702
702
|
* @license lucide-react v0.577.0 - ISC
|
|
703
703
|
*
|
|
704
704
|
* This source code is licensed under the ISC license.
|
|
705
705
|
* See the LICENSE file in the root directory of this source tree.
|
|
706
|
-
*/const Hm=[["
|
|
706
|
+
*/const Hm=[["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"}]],_C=B("server",Hm);/**
|
|
707
707
|
* @license lucide-react v0.577.0 - ISC
|
|
708
708
|
*
|
|
709
709
|
* This source code is licensed under the ISC license.
|
|
710
710
|
* See the LICENSE file in the root directory of this source tree.
|
|
711
|
-
*/const jm=[["path",{d:"
|
|
711
|
+
*/const jm=[["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"}]],LC=B("settings-2",jm);/**
|
|
712
712
|
* @license lucide-react v0.577.0 - ISC
|
|
713
713
|
*
|
|
714
714
|
* This source code is licensed under the ISC license.
|
|
715
715
|
* See the LICENSE file in the root directory of this source tree.
|
|
716
|
-
*/const Bm=[["path",{d:"
|
|
716
|
+
*/const Bm=[["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"}]],FC=B("settings",Bm);/**
|
|
717
717
|
* @license lucide-react v0.577.0 - ISC
|
|
718
718
|
*
|
|
719
719
|
* This source code is licensed under the ISC license.
|
|
720
720
|
* See the LICENSE file in the root directory of this source tree.
|
|
721
|
-
*/const Wm=[["
|
|
721
|
+
*/const Wm=[["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"}]],zC=B("share-2",Wm);/**
|
|
722
722
|
* @license lucide-react v0.577.0 - ISC
|
|
723
723
|
*
|
|
724
724
|
* This source code is licensed under the ISC license.
|
|
725
725
|
* See the LICENSE file in the root directory of this source tree.
|
|
726
|
-
*/const Um=[["path",{d:"
|
|
726
|
+
*/const Um=[["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"}]],VC=B("shield-alert",Um);/**
|
|
727
727
|
* @license lucide-react v0.577.0 - ISC
|
|
728
728
|
*
|
|
729
729
|
* This source code is licensed under the ISC license.
|
|
730
730
|
* See the LICENSE file in the root directory of this source tree.
|
|
731
|
-
*/const
|
|
731
|
+
*/const qm=[["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 12 2 2 4-4",key:"dzmm74"}]],$C=B("shield-check",qm);/**
|
|
732
732
|
* @license lucide-react v0.577.0 - ISC
|
|
733
733
|
*
|
|
734
734
|
* This source code is licensed under the ISC license.
|
|
735
735
|
* See the LICENSE file in the root directory of this source tree.
|
|
736
|
-
*/const
|
|
736
|
+
*/const Gm=[["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:"M8 12h.01",key:"czm47f"}],["path",{d:"M12 12h.01",key:"1mp3jc"}],["path",{d:"M16 12h.01",key:"1l6xoz"}]],HC=B("shield-ellipsis",Gm);/**
|
|
737
737
|
* @license lucide-react v0.577.0 - ISC
|
|
738
738
|
*
|
|
739
739
|
* This source code is licensed under the ISC license.
|
|
740
740
|
* See the LICENSE file in the root directory of this source tree.
|
|
741
|
-
*/const Ym=[["path",{d:"
|
|
741
|
+
*/const Ym=[["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"}]],jC=B("shield-plus",Ym);/**
|
|
742
742
|
* @license lucide-react v0.577.0 - ISC
|
|
743
743
|
*
|
|
744
744
|
* This source code is licensed under the ISC license.
|
|
745
745
|
* See the LICENSE file in the root directory of this source tree.
|
|
746
|
-
*/const Xm=[["
|
|
746
|
+
*/const Xm=[["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:"m14.5 9.5-5 5",key:"17q4r4"}],["path",{d:"m9.5 9.5 5 5",key:"18nt4w"}]],BC=B("shield-x",Xm);/**
|
|
747
747
|
* @license lucide-react v0.577.0 - ISC
|
|
748
748
|
*
|
|
749
749
|
* This source code is licensed under the ISC license.
|
|
750
750
|
* See the LICENSE file in the root directory of this source tree.
|
|
751
|
-
*/const Km=[["
|
|
751
|
+
*/const Km=[["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"}]],WC=B("shield",Km);/**
|
|
752
752
|
* @license lucide-react v0.577.0 - ISC
|
|
753
753
|
*
|
|
754
754
|
* This source code is licensed under the ISC license.
|
|
755
755
|
* See the LICENSE file in the root directory of this source tree.
|
|
756
|
-
*/const Zm=[["path",{d:"
|
|
756
|
+
*/const Zm=[["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"}]],UC=B("sigma",Zm);/**
|
|
757
757
|
* @license lucide-react v0.577.0 - ISC
|
|
758
758
|
*
|
|
759
759
|
* This source code is licensed under the ISC license.
|
|
760
760
|
* See the LICENSE file in the root directory of this source tree.
|
|
761
|
-
*/const Qm=[["path",{d:"
|
|
761
|
+
*/const Qm=[["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"}]],qC=B("skull",Qm);/**
|
|
762
762
|
* @license lucide-react v0.577.0 - ISC
|
|
763
763
|
*
|
|
764
764
|
* This source code is licensed under the ISC license.
|
|
765
765
|
* See the LICENSE file in the root directory of this source tree.
|
|
766
|
-
*/const Jm=[["path",{d:"M10
|
|
766
|
+
*/const Jm=[["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"}]],GC=B("sliders-horizontal",Jm);/**
|
|
767
767
|
* @license lucide-react v0.577.0 - ISC
|
|
768
768
|
*
|
|
769
769
|
* This source code is licensed under the ISC license.
|
|
770
770
|
* See the LICENSE file in the root directory of this source tree.
|
|
771
|
-
*/const
|
|
771
|
+
*/const e1=[["rect",{width:"14",height:"20",x:"5",y:"2",rx:"2",ry:"2",key:"1yt0o3"}],["path",{d:"M12 18h.01",key:"mhygvu"}]],YC=B("smartphone",e1);/**
|
|
772
772
|
* @license lucide-react v0.577.0 - ISC
|
|
773
773
|
*
|
|
774
774
|
* This source code is licensed under the ISC license.
|
|
775
775
|
* See the LICENSE file in the root directory of this source tree.
|
|
776
|
-
*/const
|
|
776
|
+
*/const t1=[["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"}]],XC=B("sparkles",t1);/**
|
|
777
777
|
* @license lucide-react v0.577.0 - ISC
|
|
778
778
|
*
|
|
779
779
|
* This source code is licensed under the ISC license.
|
|
780
780
|
* See the LICENSE file in the root directory of this source tree.
|
|
781
|
-
*/const
|
|
781
|
+
*/const n1=[["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"}]],KC=B("square-terminal",n1);/**
|
|
782
782
|
* @license lucide-react v0.577.0 - ISC
|
|
783
783
|
*
|
|
784
784
|
* This source code is licensed under the ISC license.
|
|
785
785
|
* See the LICENSE file in the root directory of this source tree.
|
|
786
|
-
*/const
|
|
786
|
+
*/const o1=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}]],ZC=B("square",o1);/**
|
|
787
787
|
* @license lucide-react v0.577.0 - ISC
|
|
788
788
|
*
|
|
789
789
|
* This source code is licensed under the ISC license.
|
|
790
790
|
* See the LICENSE file in the root directory of this source tree.
|
|
791
|
-
*/const
|
|
791
|
+
*/const r1=[["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"}]],QC=B("tablet",r1);/**
|
|
792
792
|
* @license lucide-react v0.577.0 - ISC
|
|
793
793
|
*
|
|
794
794
|
* This source code is licensed under the ISC license.
|
|
795
795
|
* See the LICENSE file in the root directory of this source tree.
|
|
796
|
-
*/const
|
|
796
|
+
*/const s1=[["path",{d:"M12 19h8",key:"baeox8"}],["path",{d:"m4 17 6-6-6-6",key:"1yngyt"}]],JC=B("terminal",s1);/**
|
|
797
797
|
* @license lucide-react v0.577.0 - ISC
|
|
798
798
|
*
|
|
799
799
|
* This source code is licensed under the ISC license.
|
|
800
800
|
* See the LICENSE file in the root directory of this source tree.
|
|
801
|
-
*/const
|
|
801
|
+
*/const i1=[["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"}]],eE=B("trash-2",i1);/**
|
|
802
802
|
* @license lucide-react v0.577.0 - ISC
|
|
803
803
|
*
|
|
804
804
|
* This source code is licensed under the ISC license.
|
|
805
805
|
* See the LICENSE file in the root directory of this source tree.
|
|
806
|
-
*/const
|
|
806
|
+
*/const a1=[["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"}]],tE=B("trees",a1);/**
|
|
807
807
|
* @license lucide-react v0.577.0 - ISC
|
|
808
808
|
*
|
|
809
809
|
* This source code is licensed under the ISC license.
|
|
810
810
|
* See the LICENSE file in the root directory of this source tree.
|
|
811
|
-
*/const
|
|
811
|
+
*/const c1=[["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"}]],nE=B("triangle-alert",c1);/**
|
|
812
812
|
* @license lucide-react v0.577.0 - ISC
|
|
813
813
|
*
|
|
814
814
|
* This source code is licensed under the ISC license.
|
|
815
815
|
* See the LICENSE file in the root directory of this source tree.
|
|
816
|
-
*/const
|
|
816
|
+
*/const l1=[["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"}]],oE=B("undo-2",l1);/**
|
|
817
817
|
* @license lucide-react v0.577.0 - ISC
|
|
818
818
|
*
|
|
819
819
|
* This source code is licensed under the ISC license.
|
|
820
820
|
* See the LICENSE file in the root directory of this source tree.
|
|
821
|
-
*/const
|
|
821
|
+
*/const u1=[["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"}]],rE=B("unlink",u1);/**
|
|
822
822
|
* @license lucide-react v0.577.0 - ISC
|
|
823
823
|
*
|
|
824
824
|
* This source code is licensed under the ISC license.
|
|
825
825
|
* See the LICENSE file in the root directory of this source tree.
|
|
826
|
-
*/const
|
|
826
|
+
*/const d1=[["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"}]],sE=B("user-check",d1);/**
|
|
827
827
|
* @license lucide-react v0.577.0 - ISC
|
|
828
828
|
*
|
|
829
829
|
* This source code is licensed under the ISC license.
|
|
830
830
|
* See the LICENSE file in the root directory of this source tree.
|
|
831
|
-
*/const fy=[["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"}]],GC=W("zoom-out",fy);function ms(){return typeof window<"u"}function mt(e){return ia(e)?(e.nodeName||"").toLowerCase():"#document"}function Xe(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function un(e){var t;return(t=(ia(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function ia(e){return ms()?e instanceof Node||e instanceof Xe(e).Node:!1}function Ne(e){return ms()?e instanceof Element||e instanceof Xe(e).Element:!1}function Ye(e){return ms()?e instanceof HTMLElement||e instanceof Xe(e).HTMLElement:!1}function go(e){return!ms()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof Xe(e).ShadowRoot}function nr(e){const{overflow:t,overflowX:n,overflowY:o,display:r}=Pt(e);return/auto|scroll|overlay|hidden|clip/.test(t+o+n)&&r!=="inline"&&r!=="contents"}function py(e){return/^(table|td|th)$/.test(mt(e))}function ys(e){try{if(e.matches(":popover-open"))return!0}catch{}try{return e.matches(":modal")}catch{return!1}}const hy=/transform|translate|scale|rotate|perspective|filter/,gy=/paint|layout|strict|content/,Ln=e=>!!e&&e!=="none";let ci;function aa(e){const t=Ne(e)?Pt(e):e;return Ln(t.transform)||Ln(t.translate)||Ln(t.scale)||Ln(t.rotate)||Ln(t.perspective)||!ca()&&(Ln(t.backdropFilter)||Ln(t.filter))||hy.test(t.willChange||"")||gy.test(t.contain||"")}function my(e){let t=an(e);for(;Ye(t)&&!on(t);){if(aa(t))return t;if(ys(t))return null;t=an(t)}return null}function ca(){return ci==null&&(ci=typeof CSS<"u"&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),ci}function on(e){return/^(html|body|#document)$/.test(mt(e))}function Pt(e){return Xe(e).getComputedStyle(e)}function bs(e){return Ne(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function an(e){if(mt(e)==="html")return e;const t=e.assignedSlot||e.parentNode||go(e)&&e.host||un(e);return go(t)?t.host:t}function Cu(e){const t=an(e);return on(t)?(e.ownerDocument||e).body:Ye(t)&&nr(t)?t:Cu(t)}function qo(e,t,n){var o;t===void 0&&(t=[]),n===void 0&&(n=!0);const r=Cu(e),s=r===((o=e.ownerDocument)==null?void 0:o.body),i=Xe(r);if(s){const a=Oi(i);return t.concat(i,i.visualViewport||[],nr(r)?r:[],a&&n?qo(a):[])}else return t.concat(r,qo(r,[],n))}function Oi(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}const la={...Ro},Ic={};function gt(e,t){const n=c.useRef(Ic);return n.current===Ic&&(n.current=e(t)),n}const li=la.useInsertionEffect,yy=li&&li!==la.useLayoutEffect?li:e=>e();function he(e){const t=gt(by).current;return t.next=e,yy(t.effect),t.trampoline}function by(){const e={next:void 0,callback:vy,trampoline:(...t)=>{var n;return(n=e.callback)==null?void 0:n.call(e,...t)},effect:()=>{e.callback=e.next}};return e}function vy(){}const xy=()=>{},pe=typeof document<"u"?c.useLayoutEffect:xy;function Ai(e,t){if(e&&!t)return e;if(!e&&t)return t;if(e||t)return{...e,...t}}const ua={};function Et(e,t,n,o,r){if(!n&&!o&&!r&&!e)return Kr(t);let s=Kr(e);return t&&(s=zo(s,t)),n&&(s=zo(s,n)),o&&(s=zo(s,o)),r&&(s=zo(s,r)),s}function Sy(e){if(e.length===0)return ua;if(e.length===1)return Kr(e[0]);let t=Kr(e[0]);for(let n=1;n<e.length;n+=1)t=zo(t,e[n]);return t}function Kr(e){return da(e)?{...Pu(e,ua)}:wy(e)}function zo(e,t){return da(t)?Pu(t,e):Ry(e,t)}function wy(e){const t={...e};for(const n in t){const o=t[n];Eu(n,o)&&(t[n]=Mu(o))}return t}function Ry(e,t){if(!t)return e;for(const n in t){const o=t[n];switch(n){case"style":{e[n]=Ai(e.style,o);break}case"className":{e[n]=Tu(e.className,o);break}default:Eu(n,o)?e[n]=ky(e[n],o):e[n]=o}}return e}function Eu(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 da(e){return typeof e=="function"}function Pu(e,t){return da(e)?e(t):e??ua}function ky(e,t){return t?e?(...n)=>{const o=n[0];if(Iu(o)){const s=o;Zr(s);const i=t(...n);return s.baseUIHandlerPrevented||e==null||e(...n),i}const r=t(...n);return e==null||e(...n),r}:Mu(t):e}function Mu(e){return e&&((...t)=>{const n=t[0];return Iu(n)&&Zr(n),e(...t)})}function Zr(e){return e.preventBaseUIHandler=()=>{e.baseUIHandlerPrevented=!0},e}function Tu(e,t){return t?e?t+" "+e:t:e}function Iu(e){return e!=null&&typeof e=="object"&&"nativeEvent"in e}function Cy(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 We=Cy("https://base-ui.com/production-error","Base UI"),Ou=c.createContext(void 0);function vs(e=!1){const t=c.useContext(Ou);if(t===void 0&&!e)throw new Error(We(16));return t}function Ey(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 Ie(e){return(e==null?void 0:e.ownerDocument)||document}function zn(e,t,{detail:n=0}={}){e.dispatchEvent(new(Xe(e)).PointerEvent("click",{bubbles:!0,cancelable:!0,composed:!0,detail:n,shiftKey:t.shiftKey,ctrlKey:t.ctrlKey,altKey:t.altKey,metaKey:t.metaKey}))}function Mt(e={}){const{disabled:t=!1,focusableWhenDisabled:n,tabIndex:o=0,native:r=!0,composite:s}=e,i=c.useRef(null),a=vs(!0),l=s??a!==void 0,{props:u}=Ey({focusableWhenDisabled:n,disabled:t,composite:l,tabIndex:o,isNativeButton:r}),d=c.useCallback(()=>{const y=i.current;ui(y)&&l&&t&&u.disabled===void 0&&y.disabled&&(y.disabled=!1)},[t,u.disabled,l]);pe(d,[d]);const p=c.useCallback((y={})=>{const{onClick:h,onMouseDown:g,onKeyUp:m,onKeyDown:b,onPointerDown:v,...x}=y;return Et({onClick(S){if(t){S.preventDefault();return}h==null||h(S)},onMouseDown(S){t||g==null||g(S)},onKeyDown(S){if(t||(Zr(S),b==null||b(S),S.baseUIHandlerPrevented))return;const w=S.target===S.currentTarget,R=S.currentTarget,C=ui(R),k=!r&&Py(R),T=w&&(r?C:!k),E=S.key==="Enter",N=S.key===" ",O=R.getAttribute("role"),D=(O==null?void 0:O.startsWith("menuitem"))||O==="option"||O==="gridcell";if(w&&l&&N){if(S.defaultPrevented&&D)return;S.preventDefault(),(!r||C)&&(S.preventBaseUIHandler(),zn(R,S));return}if(!T||r||!N&&!E){w&&k&&N&&S.preventDefault();return}S.defaultPrevented||(S.preventDefault(),E&&(S.preventBaseUIHandler(),zn(R,S)))},onKeyUp(S){if(!t){if(Zr(S),m==null||m(S),S.target===S.currentTarget&&r&&l&&ui(S.currentTarget)&&S.key===" "){S.preventDefault();return}S.baseUIHandlerPrevented||S.target===S.currentTarget&&!r&&!l&&!S.defaultPrevented&&S.key===" "&&(S.preventBaseUIHandler(),zn(S.currentTarget,S))}},onPointerDown(S){if(t){S.preventDefault();return}v==null||v(S)}},r?{type:"button"}:{role:"button"},u,x)},[t,u,l,r]),f=he(y=>{i.current=y,d()});return{getButtonProps:p,buttonRef:f}}function ui(e){return Ye(e)&&e.tagName==="BUTTON"}function Py(e){return Ye(e)&&e.tagName==="A"&&!!e.href}function Tt(e,t,n,o){const r=gt(Au).current;return Ty(r,e,t,n,o)&&Nu(r,[e,t,n,o]),r.callback}function My(e){const t=gt(Au).current;return Iy(t,e)&&Nu(t,e),t.callback}function Au(){return{callback:null,cleanup:null,refs:[]}}function Ty(e,t,n,o,r){return e.refs[0]!==t||e.refs[1]!==n||e.refs[2]!==o||e.refs[3]!==r}function Iy(e,t){return e.refs.length!==t.length||e.refs.some((n,o)=>n!==t[o])}function Nu(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 Oy=parseInt(c.version,10);function fa(e){return Oy>=e}function Oc(e){if(!c.isValidElement(e))return null;const t=e,n=t.props;return(fa(19)?n==null?void 0:n.ref:t.ref)??null}function ot(){}const Vt=Object.freeze([]),Ke=Object.freeze({});function Ay(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 Ny(e,t){return typeof e=="function"?e(t):e}function Du(e,t){return typeof e=="function"?e(t):e}function Re(e,t,n={}){const o=t.render,r=Dy(t,n);if(n.enabled===!1)return null;const s=n.state??Ke;return Fy(e,o,r,s)}function Dy(e,t={}){const{className:n,style:o,render:r}=e,{state:s=Ke,ref:i,props:a,stateAttributesMapping:l,enabled:u=!0}=t,d=u?Ny(n,s):void 0,p=u?Du(o,s):void 0,f=u?Ay(s,l):Ke,y=u&&a?Ly(a):void 0,h=u?Ai(f,y)??{}:Ke;return typeof document<"u"&&(u?Array.isArray(i)?h.ref=My([h.ref,Oc(r),...i]):h.ref=Tt(h.ref,Oc(r),i):Tt(null,null)),u?(d!==void 0&&(h.className=Tu(h.className,d)),p!==void 0&&(h.style=Ai(h.style,p)),h):Ke}function Ly(e){return Array.isArray(e)?Sy(e):Et(void 0,e)}const _y=Symbol.for("react.lazy");function Fy(e,t,n,o){if(t){if(typeof t=="function")return t(n,o);const r=Et(n,t.props);r.ref=n.ref;let s=t;return(s==null?void 0:s.$$typeof)===_y&&(s=c.Children.toArray(t)[0]),c.cloneElement(s,r)}if(e&&typeof e=="string")return zy(e,n);throw new Error(We(8))}function zy(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 qC=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}=Mt({disabled:s,focusableWhenDisabled:i,native:a});return Re("button",t,{state:{disabled:s},ref:[n,p],props:[u,d]})});function Lu(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=Lu(e[t]))&&(o&&(o+=" "),o+=n)}else for(n in e)e[n]&&(o&&(o+=" "),o+=n);return o}function Vy(){for(var e,t,n=0,o="",r=arguments.length;n<r;n++)(e=arguments[n])&&(t=Lu(e))&&(o&&(o+=" "),o+=t);return o}const Ac=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,Nc=Vy,YC=(e,t)=>n=>{var o;if((t==null?void 0:t.variants)==null)return Nc(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=Ac(d)||Ac(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(h=>{let[g,m]=h;return Array.isArray(m)?m.includes({...s,...a}[g]):{...s,...a}[g]===m})?[...u,p,f]:u},[]);return Nc(e,i,l,n==null?void 0:n.class,n==null?void 0:n.className)},$y=(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},Hy=(e,t)=>({classGroupId:e,validator:t}),_u=(e=new Map,t=null,n)=>({nextPart:e,validators:t,classGroupId:n}),Qr="-",Dc=[],jy="arbitrary..",By=e=>{const t=Uy(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:o}=e;return{getClassGroupId:i=>{if(i.startsWith("[")&&i.endsWith("]"))return Wy(i);const a=i.split(Qr),l=a[0]===""&&a.length>1?1:0;return Fu(a,l,t)},getConflictingClassGroupIds:(i,a)=>{if(a){const l=o[i],u=n[i];return l?u?$y(u,l):l:u||Dc}return n[i]||Dc}}},Fu=(e,t,n)=>{if(e.length-t===0)return n.classGroupId;const r=e[t],s=n.nextPart.get(r);if(s){const u=Fu(e,t+1,s);if(u)return u}const i=n.validators;if(i===null)return;const a=t===0?e.join(Qr):e.slice(t).join(Qr),l=i.length;for(let u=0;u<l;u++){const d=i[u];if(d.validator(a))return d.classGroupId}},Wy=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?jy+o:void 0})(),Uy=e=>{const{theme:t,classGroups:n}=e;return Gy(n,t)},Gy=(e,t)=>{const n=_u();for(const o in e){const r=e[o];pa(r,n,o,t)}return n},pa=(e,t,n,o)=>{const r=e.length;for(let s=0;s<r;s++){const i=e[s];qy(i,t,n,o)}},qy=(e,t,n,o)=>{if(typeof e=="string"){Yy(e,t,n);return}if(typeof e=="function"){Xy(e,t,n,o);return}Ky(e,t,n,o)},Yy=(e,t,n)=>{const o=e===""?t:zu(t,e);o.classGroupId=n},Xy=(e,t,n,o)=>{if(Zy(e)){pa(e(o),t,n,o);return}t.validators===null&&(t.validators=[]),t.validators.push(Hy(n,e))},Ky=(e,t,n,o)=>{const r=Object.entries(e),s=r.length;for(let i=0;i<s;i++){const[a,l]=r[i];pa(l,zu(t,a),n,o)}},zu=(e,t)=>{let n=e;const o=t.split(Qr),r=o.length;for(let s=0;s<r;s++){const i=o[s];let a=n.nextPart.get(i);a||(a=_u(),n.nextPart.set(i,a)),n=a}return n},Zy=e=>"isThemeGetter"in e&&e.isThemeGetter===!0,Qy=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)}}},Ni="!",Lc=":",Jy=[],_c=(e,t,n,o,r)=>({modifiers:e,hasImportantModifier:t,baseClassName:n,maybePostfixModifierPosition:o,isExternal:r}),e0=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 m=r[g];if(i===0&&a===0){if(m===Lc){s.push(r.slice(l,g)),l=g+1;continue}if(m==="/"){u=g;continue}}m==="["?i++:m==="]"?i--:m==="("?a++:m===")"&&a--}const p=s.length===0?r:r.slice(l);let f=p,y=!1;p.endsWith(Ni)?(f=p.slice(0,-1),y=!0):p.startsWith(Ni)&&(f=p.slice(1),y=!0);const h=u&&u>l?u-l:void 0;return _c(s,y,f,h)};if(t){const r=t+Lc,s=o;o=i=>i.startsWith(r)?s(i.slice(r.length)):_c(Jy,!1,i,void 0,!0)}if(n){const r=o;o=s=>n({className:s,parseClassName:r})}return o},t0=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}},n0=e=>({cache:Qy(e.cacheSize),parseClassName:e0(e),sortModifiers:t0(e),postfixLookupClassGroupIds:o0(e),...By(e)}),o0=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},r0=/\s+/,s0=(e,t)=>{const{parseClassName:n,getClassGroupId:o,getConflictingClassGroupIds:r,sortModifiers:s,postfixLookupClassGroupIds:i}=t,a=[],l=e.trim().split(r0);let u="";for(let d=l.length-1;d>=0;d-=1){const p=l[d],{isExternal:f,modifiers:y,hasImportantModifier:h,baseClassName:g,maybePostfixModifierPosition:m}=n(p);if(f){u=p+(u.length>0?" "+u:u);continue}let b=!!m,v;if(b){const C=g.substring(0,m);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 x=y.length===0?"":y.length===1?y[0]:s(y).join(":"),S=h?x+Ni:x,w=S+v;if(a.indexOf(w)>-1)continue;a.push(w);const R=r(v,b);for(let C=0;C<R.length;++C){const k=R[C];a.push(S+k)}u=p+(u.length>0?" "+u:u)}return u},i0=(...e)=>{let t=0,n,o,r="";for(;t<e.length;)(n=e[t++])&&(o=Vu(n))&&(r&&(r+=" "),r+=o);return r},Vu=e=>{if(typeof e=="string")return e;let t,n="";for(let o=0;o<e.length;o++)e[o]&&(t=Vu(e[o]))&&(n&&(n+=" "),n+=t);return n},a0=(e,...t)=>{let n,o,r,s;const i=l=>{const u=t.reduce((d,p)=>p(d),e());return n=n0(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=s0(l,n);return r(l,d),d};return s=i,(...l)=>s(i0(...l))},c0=[],ft=e=>{const t=n=>n[e]||c0;return t.isThemeGetter=!0,t},$u=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,Hu=/^\((?:(\w[\w-]*):)?(.+)\)$/i,l0=/^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/,u0=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,d0=/\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$/,f0=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,p0=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,h0=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,pn=e=>l0.test(e),Le=e=>!!e&&!Number.isNaN(Number(e)),Bt=e=>!!e&&Number.isInteger(Number(e)),di=e=>e.endsWith("%")&&Le(e.slice(0,-1)),Jt=e=>u0.test(e),ju=()=>!0,g0=e=>d0.test(e)&&!f0.test(e),ha=()=>!1,m0=e=>p0.test(e),y0=e=>h0.test(e),b0=e=>!xe(e)&&!we(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)),x0=e=>En(e,Uu,ha),xe=e=>$u.test(e),_n=e=>En(e,Gu,g0),Fc=e=>En(e,M0,Le),S0=e=>En(e,Yu,ju),w0=e=>En(e,qu,ha),zc=e=>En(e,Bu,ha),R0=e=>En(e,Wu,y0),yr=e=>En(e,Xu,m0),we=e=>Hu.test(e),Do=e=>Un(e,Gu),k0=e=>Un(e,qu),Vc=e=>Un(e,Bu),C0=e=>Un(e,Uu),E0=e=>Un(e,Wu),br=e=>Un(e,Xu,!0),P0=e=>Un(e,Yu,!0),En=(e,t,n)=>{const o=$u.exec(e);return o?o[1]?t(o[1]):n(o[2]):!1},Un=(e,t,n=!1)=>{const o=Hu.exec(e);return o?o[1]?t(o[1]):n:!1},Bu=e=>e==="position"||e==="percentage",Wu=e=>e==="image"||e==="url",Uu=e=>e==="length"||e==="size"||e==="bg-size",Gu=e=>e==="length",M0=e=>e==="number",qu=e=>e==="family-name",Yu=e=>e==="number"||e==="weight",Xu=e=>e==="shadow",T0=()=>{const e=ft("color"),t=ft("font"),n=ft("text"),o=ft("font-weight"),r=ft("tracking"),s=ft("leading"),i=ft("breakpoint"),a=ft("container"),l=ft("spacing"),u=ft("radius"),d=ft("shadow"),p=ft("inset-shadow"),f=ft("text-shadow"),y=ft("drop-shadow"),h=ft("blur"),g=ft("perspective"),m=ft("aspect"),b=ft("ease"),v=ft("animate"),x=()=>["auto","avoid","all","avoid-page","page","left","right","column"],S=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],w=()=>[...S(),we,xe],R=()=>["auto","hidden","clip","visible","scroll"],C=()=>["auto","contain","none"],k=()=>[we,xe,l],T=()=>[pn,"full","auto",...k()],E=()=>[Bt,"none","subgrid",we,xe],N=()=>["auto",{span:["full",Bt,we,xe]},Bt,we,xe],O=()=>[Bt,"auto",we,xe],D=()=>["auto","min","max","fr",we,xe],A=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],P=()=>["start","end","center","stretch","center-safe","end-safe"],z=()=>["auto",...k()],F=()=>[pn,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...k()],I=()=>[pn,"screen","full","dvw","lvw","svw","min","max","fit",...k()],L=()=>[pn,"screen","full","lh","dvh","lvh","svh","min","max","fit",...k()],M=()=>[e,we,xe],_=()=>[...S(),Vc,zc,{position:[we,xe]}],H=()=>["no-repeat",{repeat:["","x","y","space","round"]}],$=()=>["auto","cover","contain",C0,x0,{size:[we,xe]}],U=()=>[di,Do,_n],G=()=>["","none","full",u,we,xe],V=()=>["",Le,Do,_n],X=()=>["solid","dashed","dotted","double"],j=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],K=()=>[Le,di,Vc,zc],de=()=>["","none",h,we,xe],se=()=>["none",Le,we,xe],ne=()=>["none",Le,we,xe],re=()=>[Le,we,xe],q=()=>[pn,"full",...k()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[Jt],breakpoint:[Jt],color:[ju],container:[Jt],"drop-shadow":[Jt],ease:["in","out","in-out"],font:[b0],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[Jt],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[Jt],shadow:[Jt],spacing:["px",Le],text:[Jt],"text-shadow":[Jt],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",pn,xe,we,m]}],container:["container"],"container-type":[{"@container":["","normal","size",we,xe]}],"container-named":[v0],columns:[{columns:[Le,xe,we,a]}],"break-after":[{"break-after":x()}],"break-before":[{"break-before":x()}],"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:w()}],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:T()}],"inset-x":[{"inset-x":T()}],"inset-y":[{"inset-y":T()}],start:[{"inset-s":T(),start:T()}],end:[{"inset-e":T(),end:T()}],"inset-bs":[{"inset-bs":T()}],"inset-be":[{"inset-be":T()}],top:[{top:T()}],right:[{right:T()}],bottom:[{bottom:T()}],left:[{left:T()}],visibility:["visible","invisible","collapse"],z:[{z:[Bt,"auto",we,xe]}],basis:[{basis:[pn,"full","auto",a,...k()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[Le,pn,"auto","initial","none",xe]}],grow:[{grow:["",Le,we,xe]}],shrink:[{shrink:["",Le,we,xe]}],order:[{order:[Bt,"first","last","none",we,xe]}],"grid-cols":[{"grid-cols":E()}],"col-start-end":[{col:N()}],"col-start":[{"col-start":O()}],"col-end":[{"col-end":O()}],"grid-rows":[{"grid-rows":E()}],"row-start-end":[{row:N()}],"row-start":[{"row-start":O()}],"row-end":[{"row-end":O()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":D()}],"auto-rows":[{"auto-rows":D()}],gap:[{gap:k()}],"gap-x":[{"gap-x":k()}],"gap-y":[{"gap-y":k()}],"justify-content":[{justify:[...A(),"normal"]}],"justify-items":[{"justify-items":[...P(),"normal"]}],"justify-self":[{"justify-self":["auto",...P()]}],"align-content":[{content:["normal",...A()]}],"align-items":[{items:[...P(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...P(),{baseline:["","last"]}]}],"place-content":[{"place-content":A()}],"place-items":[{"place-items":[...P(),"baseline"]}],"place-self":[{"place-self":["auto",...P()]}],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:F()}],"inline-size":[{inline:["auto",...I()]}],"min-inline-size":[{"min-inline":["auto",...I()]}],"max-inline-size":[{"max-inline":["none",...I()]}],"block-size":[{block:["auto",...L()]}],"min-block-size":[{"min-block":["auto",...L()]}],"max-block-size":[{"max-block":["none",...L()]}],w:[{w:[a,"screen",...F()]}],"min-w":[{"min-w":[a,"screen","none",...F()]}],"max-w":[{"max-w":[a,"screen","none","prose",{screen:[i]},...F()]}],h:[{h:["screen","lh",...F()]}],"min-h":[{"min-h":["screen","lh","none",...F()]}],"max-h":[{"max-h":["screen","lh",...F()]}],"font-size":[{text:["base",n,Do,_n]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[o,P0,S0]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",di,xe]}],"font-family":[{font:[k0,w0,t]}],"font-features":[{"font-features":[xe]}],"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,we,xe]}],"line-clamp":[{"line-clamp":[Le,"none",we,Fc]}],leading:[{leading:[s,...k()]}],"list-image":[{"list-image":["none",we,xe]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",we,xe]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:M()}],"text-color":[{text:M()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...X(),"wavy"]}],"text-decoration-thickness":[{decoration:[Le,"from-font","auto",we,_n]}],"text-decoration-color":[{decoration:M()}],"underline-offset":[{"underline-offset":[Le,"auto",we,xe]}],"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:[Bt,we,xe]}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",we,xe]}],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",we,xe]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:_()}],"bg-repeat":[{bg:H()}],"bg-size":[{bg:$()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},Bt,we,xe],radial:["",we,xe],conic:[Bt,we,xe]},E0,R0]}],"bg-color":[{bg:M()}],"gradient-from-pos":[{from:U()}],"gradient-via-pos":[{via:U()}],"gradient-to-pos":[{to:U()}],"gradient-from":[{from:M()}],"gradient-via":[{via:M()}],"gradient-to":[{to:M()}],rounded:[{rounded:G()}],"rounded-s":[{"rounded-s":G()}],"rounded-e":[{"rounded-e":G()}],"rounded-t":[{"rounded-t":G()}],"rounded-r":[{"rounded-r":G()}],"rounded-b":[{"rounded-b":G()}],"rounded-l":[{"rounded-l":G()}],"rounded-ss":[{"rounded-ss":G()}],"rounded-se":[{"rounded-se":G()}],"rounded-ee":[{"rounded-ee":G()}],"rounded-es":[{"rounded-es":G()}],"rounded-tl":[{"rounded-tl":G()}],"rounded-tr":[{"rounded-tr":G()}],"rounded-br":[{"rounded-br":G()}],"rounded-bl":[{"rounded-bl":G()}],"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:[...X(),"hidden","none"]}],"divide-style":[{divide:[...X(),"hidden","none"]}],"border-color":[{border:M()}],"border-color-x":[{"border-x":M()}],"border-color-y":[{"border-y":M()}],"border-color-s":[{"border-s":M()}],"border-color-e":[{"border-e":M()}],"border-color-bs":[{"border-bs":M()}],"border-color-be":[{"border-be":M()}],"border-color-t":[{"border-t":M()}],"border-color-r":[{"border-r":M()}],"border-color-b":[{"border-b":M()}],"border-color-l":[{"border-l":M()}],"divide-color":[{divide:M()}],"outline-style":[{outline:[...X(),"none","hidden"]}],"outline-offset":[{"outline-offset":[Le,we,xe]}],"outline-w":[{outline:["",Le,Do,_n]}],"outline-color":[{outline:M()}],shadow:[{shadow:["","none",d,br,yr]}],"shadow-color":[{shadow:M()}],"inset-shadow":[{"inset-shadow":["none",p,br,yr]}],"inset-shadow-color":[{"inset-shadow":M()}],"ring-w":[{ring:V()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:M()}],"ring-offset-w":[{"ring-offset":[Le,_n]}],"ring-offset-color":[{"ring-offset":M()}],"inset-ring-w":[{"inset-ring":V()}],"inset-ring-color":[{"inset-ring":M()}],"text-shadow":[{"text-shadow":["none",f,br,yr]}],"text-shadow-color":[{"text-shadow":M()}],opacity:[{opacity:[Le,we,xe]}],"mix-blend":[{"mix-blend":[...j(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":j()}],"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":[Le]}],"mask-image-linear-from-pos":[{"mask-linear-from":K()}],"mask-image-linear-to-pos":[{"mask-linear-to":K()}],"mask-image-linear-from-color":[{"mask-linear-from":M()}],"mask-image-linear-to-color":[{"mask-linear-to":M()}],"mask-image-t-from-pos":[{"mask-t-from":K()}],"mask-image-t-to-pos":[{"mask-t-to":K()}],"mask-image-t-from-color":[{"mask-t-from":M()}],"mask-image-t-to-color":[{"mask-t-to":M()}],"mask-image-r-from-pos":[{"mask-r-from":K()}],"mask-image-r-to-pos":[{"mask-r-to":K()}],"mask-image-r-from-color":[{"mask-r-from":M()}],"mask-image-r-to-color":[{"mask-r-to":M()}],"mask-image-b-from-pos":[{"mask-b-from":K()}],"mask-image-b-to-pos":[{"mask-b-to":K()}],"mask-image-b-from-color":[{"mask-b-from":M()}],"mask-image-b-to-color":[{"mask-b-to":M()}],"mask-image-l-from-pos":[{"mask-l-from":K()}],"mask-image-l-to-pos":[{"mask-l-to":K()}],"mask-image-l-from-color":[{"mask-l-from":M()}],"mask-image-l-to-color":[{"mask-l-to":M()}],"mask-image-x-from-pos":[{"mask-x-from":K()}],"mask-image-x-to-pos":[{"mask-x-to":K()}],"mask-image-x-from-color":[{"mask-x-from":M()}],"mask-image-x-to-color":[{"mask-x-to":M()}],"mask-image-y-from-pos":[{"mask-y-from":K()}],"mask-image-y-to-pos":[{"mask-y-to":K()}],"mask-image-y-from-color":[{"mask-y-from":M()}],"mask-image-y-to-color":[{"mask-y-to":M()}],"mask-image-radial":[{"mask-radial":[we,xe]}],"mask-image-radial-from-pos":[{"mask-radial-from":K()}],"mask-image-radial-to-pos":[{"mask-radial-to":K()}],"mask-image-radial-from-color":[{"mask-radial-from":M()}],"mask-image-radial-to-color":[{"mask-radial-to":M()}],"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":S()}],"mask-image-conic-pos":[{"mask-conic":[Le]}],"mask-image-conic-from-pos":[{"mask-conic-from":K()}],"mask-image-conic-to-pos":[{"mask-conic-to":K()}],"mask-image-conic-from-color":[{"mask-conic-from":M()}],"mask-image-conic-to-color":[{"mask-conic-to":M()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:_()}],"mask-repeat":[{mask:H()}],"mask-size":[{mask:$()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",we,xe]}],filter:[{filter:["","none",we,xe]}],blur:[{blur:de()}],brightness:[{brightness:[Le,we,xe]}],contrast:[{contrast:[Le,we,xe]}],"drop-shadow":[{"drop-shadow":["","none",y,br,yr]}],"drop-shadow-color":[{"drop-shadow":M()}],grayscale:[{grayscale:["",Le,we,xe]}],"hue-rotate":[{"hue-rotate":[Le,we,xe]}],invert:[{invert:["",Le,we,xe]}],saturate:[{saturate:[Le,we,xe]}],sepia:[{sepia:["",Le,we,xe]}],"backdrop-filter":[{"backdrop-filter":["","none",we,xe]}],"backdrop-blur":[{"backdrop-blur":de()}],"backdrop-brightness":[{"backdrop-brightness":[Le,we,xe]}],"backdrop-contrast":[{"backdrop-contrast":[Le,we,xe]}],"backdrop-grayscale":[{"backdrop-grayscale":["",Le,we,xe]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[Le,we,xe]}],"backdrop-invert":[{"backdrop-invert":["",Le,we,xe]}],"backdrop-opacity":[{"backdrop-opacity":[Le,we,xe]}],"backdrop-saturate":[{"backdrop-saturate":[Le,we,xe]}],"backdrop-sepia":[{"backdrop-sepia":["",Le,we,xe]}],"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",we,xe]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[Le,"initial",we,xe]}],ease:[{ease:["linear","initial",b,we,xe]}],delay:[{delay:[Le,we,xe]}],animate:[{animate:["none",v,we,xe]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[g,we,xe]}],"perspective-origin":[{"perspective-origin":w()}],rotate:[{rotate:se()}],"rotate-x":[{"rotate-x":se()}],"rotate-y":[{"rotate-y":se()}],"rotate-z":[{"rotate-z":se()}],scale:[{scale:ne()}],"scale-x":[{"scale-x":ne()}],"scale-y":[{"scale-y":ne()}],"scale-z":[{"scale-z":ne()}],"scale-3d":["scale-3d"],skew:[{skew:re()}],"skew-x":[{"skew-x":re()}],"skew-y":[{"skew-y":re()}],transform:[{transform:[we,xe,"","none","gpu","cpu"]}],"transform-origin":[{origin:w()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:q()}],"translate-x":[{"translate-x":q()}],"translate-y":[{"translate-y":q()}],"translate-z":[{"translate-z":q()}],"translate-none":["translate-none"],zoom:[{zoom:[Bt,we,xe]}],accent:[{accent:M()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:M()}],"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",we,xe]}],"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":M()}],"scrollbar-track-color":[{"scrollbar-track":M()}],"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",we,xe]}],fill:[{fill:["none",...M()]}],"stroke-w":[{stroke:[Le,Do,_n,Fc]}],stroke:[{stroke:["none",...M()]}],"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"]}},XC=a0(T0);function ga(e){c.useEffect(e,Vt)}const Lo=0;class Lt{constructor(){Ue(this,"currentId",Lo);Ue(this,"clear",()=>{this.currentId!==Lo&&(clearTimeout(this.currentId),this.currentId=Lo)});Ue(this,"disposeEffect",()=>this.clear)}static create(){return new Lt}start(t,n){this.clear(),this.currentId=setTimeout(()=>{this.currentId=Lo,n()},t)}isStarted(){return this.currentId!==Lo}}function nt(){const e=gt(Lt.create).current;return ga(e.disposeEffect),e}function I0(){return typeof navigator>"u"?{userAgent:"",platform:"",maxTouchPoints:0}:{userAgent:navigator.userAgent,platform:navigator.platform??"",maxTouchPoints:navigator.maxTouchPoints??0}}const{userAgent:O0,platform:A0,maxTouchPoints:N0}=I0(),xs=O0.toLowerCase(),Yo=A0.toLowerCase(),Ss=/^i(os$|p)/.test(Yo)||Yo==="macintel"&&N0>1,$c="android",Di=Yo===$c||xs.includes($c),ma=!Ss&&Yo.startsWith("mac");Yo.startsWith("win");const D0=ma||Ss;var wu;const Xt=typeof CSS<"u"&&!!((wu=CSS.supports)!=null&&wu.call(CSS,"-webkit-backdrop-filter:none"));!Xt&&xs.includes("firefox");!Xt&&xs.includes("chrom");const L0=D0,ya=/jsdom|happydom/.test(xs);function Ft(e){e.preventDefault(),e.stopPropagation()}function _0(e){return"nativeEvent"in e}function ba(e){return e.pointerType===""&&e.isTrusted?!0:Di&&e.pointerType?e.type==="click"&&e.buttons===1:e.detail===0&&!e.pointerType}function va(e){return ya?!1:!Di&&e.width===0&&e.height===0||Di&&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 yn(e,t){const n=["mouse","pen"];return t||n.push("",void 0),n.includes(e)}function F0(e){const t=e.type;return t==="click"||t==="mousedown"||t==="keydown"||t==="keyup"}const Li="data-base-ui-focusable",Ku="input:not([type='hidden']):not([disabled]),[contenteditable]:not([contenteditable='false']),textarea:not([disabled])",ws="ArrowLeft",Rs="ArrowRight",Zu="ArrowUp",xa="ArrowDown";function pt(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&&go(n)){let r=t;for(;r;){if(e===r)return!0;r=r.parentNode||r.host}}return!1}function at(e){return"composedPath"in e?e.composedPath()[0]:e.target}function Jr(e,t){if(!Ne(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 fi(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 z0(e){return e.matches("html,body")}function ks(e){return Ye(e)&&e.matches(Ku)}function V0(e){return(e==null?void 0:e.closest(`button,a[href],[role="button"],select,[tabindex]:not([tabindex="-1"]),${Ku}`))!=null}function _i(e){return e?e.getAttribute("role")==="combobox"&&ks(e):!1}function Qu(e){if(!e||ya)return!0;try{return e.matches(":focus-visible")}catch{return!0}}function es(e){return e?e.hasAttribute(Li)?e:e.querySelector(`[${Li}]`)||e:null}function $0(e,t){return t!=null&&!yn(t)?0:typeof e=="function"?e():e}function vn(e,t,n){const o=$0(e,n);return typeof o=="number"?o:o==null?void 0:o[t]}function Hc(e){return typeof e=="function"?e():e}function Ju(e,t){return t||e==="click"||e==="mousedown"}function H0(e){return(e==null?void 0:e.includes("mouse"))&&e!=="mousedown"}const Rt="none",$t="trigger-press",it="trigger-hover",co="trigger-focus",Cs="outside-press",jo="item-press",ed="close-press",jc="track-press",j0="input-change",xn="focus-out",or="escape-key",Fi="list-navigation",B0="keyboard",W0="drag",Sa="cancel-open",Vo="sibling-open",td="disabled",Bc="missing",Wc="initial",Es="imperative-action",U0="window-resize";function ke(e,t,n,o){let r=!1,s=!1;const i=o??Ke;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}}function nd(e,t,n){const o=Ke;return{reason:e,event:t??new Event("base-ui"),...o}}const od=c.createContext({hasProvider:!1,timeoutMs:0,delayRef:{current:0},initialDelayRef:{current:0},timeout:new Lt,currentIdRef:{current:null},currentContextRef:{current:null}});function G0(e,t){e.current=t.current}function q0(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=nt();return pe(()=>{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]),Y.jsx(od.Provider,{value:c.useMemo(()=>({hasProvider:!0,delayRef:r,initialDelayRef:s,currentIdRef:i,timeoutMs:o,currentContextRef:a,timeout:l}),[o,l]),children:t})}function Y0(e,t={open:!1}){const{open:n}=t,o="rootStore"in e?e.rootStore:e,r=o.useState("floatingId"),s=c.useContext(od),{currentIdRef:i,delayRef:a,timeoutMs:l,initialDelayRef:u,currentContextRef:d,hasProvider:p,timeout:f}=s,[y,h]=c.useState(!1),g=c.useRef(n);return pe(()=>{g.current=n},[n]),pe(()=>{function m(){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(h(!1),l){const b=r;return f.start(l,()=>{o.select("open")||i.current&&i.current!==b||m()}),()=>{(g.current||i.current!==b)&&f.clear()}}m()}},[n,r,i,a,l,u,d,f,o]),pe(()=>{if(!n)return;const m=d.current,b=i.current;f.clear(),d.current={onOpenChange:o.setOpen,setIsInstantPhase:h},i.current=r,a.current={open:0,close:vn(u.current,"close")},b!==null&&b!==r?(h(!0),m==null||m.setIsInstantPhase(!0),m==null||m.onOpenChange(!1,ke(Rt))):(h(!1),m==null||m.setIsInstantPhase(!1))},[n,r,o,i,a,u,d,f]),pe(()=>()=>{if(i.current===r){if(d.current=null,!g.current)return;i.current=null,G0(a,u),f.clear()}},[d,i,a,r,u,f]),c.useMemo(()=>({hasProvider:p,delayRef:a,isInstantPhase:y}),[p,a,y])}function Ae(e,t,n,o){return e.addEventListener(t,n,o),()=>{e.removeEventListener(t,n,o)}}function Yt(...e){return()=>{for(let t=0;t<e.length;t+=1){const n=e[t];n&&n()}}}function rt(e){const t=gt(X0,e).current;return t.next=e,pe(t.effect),t}function X0(e){const t={current:e,next:e,effect:()=>{t.current=t.next}};return t}const vr=null;class K0{constructor(){Ue(this,"callbacks",[]);Ue(this,"callbacksCount",0);Ue(this,"nextId",1);Ue(this,"startId",1);Ue(this,"isScheduled",!1);Ue(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 xr=new K0;class Ct{constructor(){Ue(this,"currentId",vr);Ue(this,"cancel",()=>{this.currentId!==vr&&(xr.cancel(this.currentId),this.currentId=vr)});Ue(this,"disposeEffect",()=>this.cancel)}static create(){return new Ct}static request(t){return xr.request(t)}static cancel(t){return xr.cancel(t)}request(t){this.cancel(),this.currentId=xr.request(()=>{this.currentId=vr,t()})}}function $n(){const e=gt(Ct.create).current;return ga(e.disposeEffect),e}const rd={clipPath:"inset(50%)",overflow:"hidden",whiteSpace:"nowrap",border:0,padding:0,width:1,height:1,margin:-1},Sn={...rd,position:"fixed",top:0,left:0},Ps={...rd,position:"absolute"},wn=c.forwardRef(function(t,n){const[o,r]=c.useState();pe(()=>{L0&&Xt&&r("button")},[]);const s={tabIndex:0,role:o};return Y.jsx("span",{...t,ref:n,style:Sn,"aria-hidden":o?void 0:!0,...s,"data-base-ui-focus-guard":""})}),mo=Math.min,rn=Math.max,yo=Math.round,Sr=Math.floor,sn=e=>({x:e,y:e}),Z0={left:"right",right:"left",bottom:"top",top:"bottom"};function sd(e,t,n){return rn(e,mo(t,n))}function Rn(e,t){return typeof e=="function"?e(t):e}function Nt(e){return e.split("-")[0]}function Pn(e){return e.split("-")[1]}function wa(e){return e==="x"?"y":"x"}function Ra(e){return e==="y"?"height":"width"}function At(e){const t=e[0];return t==="t"||t==="b"?"y":"x"}function ka(e){return wa(At(e))}function Q0(e,t,n){n===void 0&&(n=!1);const o=Pn(e),r=ka(e),s=Ra(r);let i=r==="x"?o===(n?"end":"start")?"right":"left":o==="start"?"bottom":"top";return t.reference[s]>t.floating[s]&&(i=ts(i)),[i,ts(i)]}function J0(e){const t=ts(e);return[zi(e),t,zi(t)]}function zi(e){return e.includes("start")?e.replace("start","end"):e.replace("end","start")}const Uc=["left","right"],Gc=["right","left"],e1=["top","bottom"],t1=["bottom","top"];function n1(e,t,n){switch(e){case"top":case"bottom":return n?t?Gc:Uc:t?Uc:Gc;case"left":case"right":return t?e1:t1;default:return[]}}function o1(e,t,n,o){const r=Pn(e);let s=n1(Nt(e),n==="start",o);return r&&(s=s.map(i=>i+"-"+r),t&&(s=s.concat(s.map(zi)))),s}function ts(e){const t=Nt(e);return Z0[t]+e.slice(t.length)}function r1(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 id(e){return typeof e!="number"?r1(e):{top:e,right:e,bottom:e,left:e}}function Xo(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 Bo(e,t){return t<0||t>=e.length}function jr(e,t){return nn(e.current,{disabledIndices:t})}function Vi(e,t){return nn(e.current,{decrement:!0,startingIndex:e.current.length,disabledIndices:t})}function nn(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&&ns(e,s,o));return s}function ns(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?!Ms(r)||r.matches(":disabled")?!0:!n&&(r.hasAttribute("disabled")||r.getAttribute("aria-disabled")==="true"):!1}function s1(e){return e.visibility==="hidden"||e.visibility==="collapse"}function Ms(e,t=e?Pt(e):null){return!e||!e.isConnected||!t||s1(t)?!1:typeof e.checkVisibility=="function"?e.checkVisibility():t.display!=="none"&&t.display!=="contents"}const i1='a[href],button,input,select,textarea,summary,details,iframe,object,embed,[tabindex],[contenteditable]:not([contenteditable="false"]),audio[controls],video[controls]';function a1(e){const t=e.assignedSlot;if(t)return t;if(e.parentElement)return e.parentElement;const n=e.getRootNode();return go(n)?n.host:null}function $i(e){for(const t of Array.from(e.children))if(mt(t)==="summary")return t;return null}function c1(e,t){const n=$i(t);return!!n&&(e===n||ve(n,e))}function ad(e){const t=e?mt(e):"";return e!=null&&e.matches(i1)&&(t!=="summary"||e.parentElement!=null&&mt(e.parentElement)==="details"&&$i(e.parentElement)===e)&&(t!=="details"||$i(e)==null)&&(t!=="input"||e.type!=="hidden")}function cd(e){if(!ad(e)||!e.isConnected||e.matches(":disabled"))return!1;for(let t=e;t;t=a1(t)){const n=t!==e,o=mt(t)==="slot";if(t.hasAttribute("inert")||n&&mt(t)==="details"&&!t.open&&!c1(e,t)||t.hasAttribute("hidden")||!o&&!l1(t,n))return!1}return!0}function l1(e,t){const n=Pt(e);return t?n.display!=="none":Ms(e,n)}function ld(e){const t=e.tabIndex;if(t<0){const n=mt(e);if(n==="details"||n==="audio"||n==="video"||Ye(e)&&e.isContentEditable)return 0}return t}function pi(e){if(mt(e)!=="input")return null;const t=e;return t.type==="radio"&&t.name!==""?t:null}function u1(e,t){const n=pi(e);if(!n)return!0;const o=t.find(r=>{const s=pi(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=pi(r);return(s==null?void 0:s.name)===n.name&&s.form===n.form})===n}function ud(e){if(Ye(e)&&mt(e)==="slot"){const t=e.assignedElements({flatten:!0});if(t.length>0)return t}return Ye(e)&&e.shadowRoot?Array.from(e.shadowRoot.children):Array.from(e.children)}function dd(e,t){ud(e).forEach(n=>{ad(n)&&t.push(n),dd(n,t)})}function fd(e,t,n){ud(e).forEach(o=>{Ye(o)&&o.matches(t)&&n.push(o),fd(o,t,n)})}function Ca(e){return cd(e)&&ld(e)>=0}function pd(e){const t=[];return dd(e,t),t.filter(cd)}function rr(e){const t=pd(e);return t.filter(n=>ld(n)>=0&&u1(n,t))}function hd(e,t){const n=rr(e),o=n.length;if(o===0)return;const r=pt(Ie(e)),s=n.indexOf(r),i=s===-1?t===1?0:o-1:s+t;return n[i]}function Ea(e){return hd(Ie(e).body,1)||e}function gd(e){return hd(Ie(e).body,-1)||e}function md(e,t){if(!e)return null;const n=rr(Ie(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 d1(e){return md(e,1)}function f1(e){return md(e,-1)}function lo(e,t){const n=t||e.currentTarget,o=e.relatedTarget;return!o||!ve(n,o)}function p1(e){rr(e).forEach(n=>{n.dataset.tabindex=n.getAttribute("tabindex")||"",n.setAttribute("tabindex","-1")})}function qc(e){const t=[];fd(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 kn(e,t,n=!0){return e.filter(r=>r.parentId===t).flatMap(r=>{var s;return[...!n||(s=r.context)!=null&&s.open?[r]:[],...kn(e,r.id,n)]})}function Yc(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 Ko(e){return`data-base-ui-${e}`}let wr=0;function Br(e,t={}){const{preventScroll:n=!1,sync:o=!1,shouldFocus:r}=t;cancelAnimationFrame(wr);function s(){r&&!r()||e==null||e.focus({preventScroll:n})}if(o)return s(),ot;const i=requestAnimationFrame(s);return wr=i,()=>{wr===i&&(cancelAnimationFrame(i),wr=0)}}const hi={inert:new WeakMap,"aria-hidden":new WeakMap},Xc="data-base-ui-inert",Hi={inert:new WeakSet,"aria-hidden":new WeakSet};let _o=new WeakMap,gi=0;function h1(e){return Hi[e]}function yd(e){return e?go(e)?e.host:yd(e.parentNode):null}const Kc=(e,t)=>t.map(n=>{if(e.contains(n))return n;const o=yd(n);return e.contains(o)?o:null}).filter(n=>n!=null),Zc=e=>{const t=new Set;return e.forEach(n=>{let o=n;for(;o&&!t.has(o);)t.add(o),o=o.parentNode}),t},Qc=(e,t,n)=>{const o=[],r=s=>{!s||n.has(s)||Array.from(s.children).forEach(i=>{mt(i)!=="script"&&(t.has(i)?r(i):o.push(i))})};return r(e),o};function g1(e,t,n,o,{mark:r=!0}){let s=null;o?s="inert":n&&(s="aria-hidden");let i=null,a=null;const l=Kc(t,e),u=r?Qc(t,Zc(l),new Set(l)):[],d=[],p=[];if(s){const f=hi[s],y=h1(s);a=y,i=f;const h=Kc(t,Array.from(t.querySelectorAll("[aria-live]"))),g=l.concat(h);Qc(t,Zc(g),new Set(g)).forEach(b=>{const v=b.getAttribute(s),x=v!==null&&v!=="false",S=(f.get(b)||0)+1;f.set(b,S),d.push(b),S===1&&x&&y.add(b),x||b.setAttribute(s,s==="inert"?"":"true")})}return r&&u.forEach(f=>{const y=(_o.get(f)||0)+1;_o.set(f,y),p.push(f),y===1&&f.setAttribute(Xc,"")}),gi+=1,()=>{i&&d.forEach(f=>{const h=(i.get(f)||0)-1;i.set(f,h),h||(!(a!=null&&a.has(f))&&s&&f.removeAttribute(s),a==null||a.delete(f))}),r&&p.forEach(f=>{const y=(_o.get(f)||0)-1;_o.set(f,y),y||f.removeAttribute(Xc)}),gi-=1,gi||(hi.inert=new WeakMap,hi["aria-hidden"]=new WeakMap,Hi.inert=new WeakSet,Hi["aria-hidden"]=new WeakSet,_o=new WeakMap)}}function Jc(e,t={}){const{ariaHidden:n=!1,inert:o=!1,mark:r=!0}=t,s=Ie(e[0]).body;return g1(e,s,n,o,{mark:r})}let el=0;function m1(e,t="mui"){const[n,o]=c.useState(e),r=e||n;return c.useEffect(()=>{n==null&&(el+=1,o(`${t}-${el}`))},[n,t]),r}const tl=la.useId;function Cn(e,t){if(tl!==void 0){const n=tl();return e??(t?`${t}-${n}`:n)}return m1(e,t)}const y1=500,bd=500,b1={style:{transition:"none"}},Pa="data-base-ui-click-trigger",vd={fallbackAxisSide:"none"},Ma={fallbackAxisSide:"end"},v1={clipPath:"inset(50%)",position:"fixed",top:0,left:0},xd=c.createContext(null),Sd=()=>c.useContext(xd),x1=Ko("portal");function wd(e={}){const{ref:t,container:n,componentProps:o=Ke,elementProps:r}=e,s=Cn(),i=Sd(),a=i==null?void 0:i.portalNode,[l,u]=c.useState(null),[d,p]=c.useState(null),f=he(m=>{m!==null&&p(m)}),y=c.useRef(null);pe(()=>{if(n===null){y.current&&(y.current=null,p(null),u(null));return}const m=(n&&(ia(n)?n:n.current))??a??document.body;if(m==null){y.current&&(y.current=null,p(null),u(null));return}y.current!==m&&(y.current=m,p(null),u(m))},[n,a]);const h=Re("div",o,{ref:[t,f],props:[{id:s,[x1]:""},r]}),g=l&&h?Dt.createPortal(h,l):null;return{node:d,nodeId:c.isValidElement(h)?h.props.id:void 0,subtree:g}}const Ts=c.forwardRef(function(t,n){const{render:o,className:r,style:s,children:i,container:a,...l}=t,{node:u,nodeId:d,subtree:p}=wd({container:a,ref:n,componentProps:t,elementProps:l}),f=c.useRef(null),y=c.useRef(null),h=c.useRef(null),g=c.useRef(null),[m,b]=c.useState(null),v=c.useRef(!1),x=m==null?void 0:m.modal,S=m==null?void 0:m.open,w=!!m&&!m.modal&&m.open&&!!u;c.useEffect(()=>{if(!u||x)return;function C(k){u&&k.relatedTarget&&lo(k)&&(k.type==="focusin"?v.current&&(qc(u),v.current=!1):(p1(u),v.current=!0))}return Yt(Ae(u,"focusin",C,!0),Ae(u,"focusout",C,!0))},[u,x]),pe(()=>{!u||S!==!0||!v.current||(qc(u),v.current=!1)},[S,u]);const R=c.useMemo(()=>({beforeOutsideRef:f,afterOutsideRef:y,beforeInsideRef:h,afterInsideRef:g,portalNode:u,setFocusManagerState:b}),[u]);return Y.jsxs(c.Fragment,{children:[p,Y.jsxs(xd.Provider,{value:R,children:[w&&u&&Y.jsx(wn,{"data-type":"outside",ref:f,onFocus:C=>{var k;if(lo(C,u))(k=h.current)==null||k.focus();else{const T=m?m.domReference:null,E=gd(T);E==null||E.focus()}}}),w&&u&&Y.jsx("span",{"aria-owns":d,style:v1}),u&&Dt.createPortal(i,u),w&&u&&Y.jsx(wn,{"data-type":"outside",ref:y,onFocus:C=>{var k;if(lo(C,u))(k=g.current)==null||k.focus();else{const T=m?m.domReference:null,E=Ea(T);E==null||E.focus(),m!=null&&m.closeOnFocusOut&&(m==null||m.onOpenChange(!1,ke(xn,C.nativeEvent)))}}})]})]})});function Rd(){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 Ta{constructor(){Ue(this,"nodesRef",{current:[]});Ue(this,"events",Rd())}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 kd=c.createContext(null),Cd=c.createContext(null),Mn=()=>{var e;return((e=c.useContext(kd))==null?void 0:e.id)||null},Tn=e=>{const t=c.useContext(Cd);return e??t};function Ia(e){const t=Cn(),n=Tn(e),o=Mn();return pe(()=>{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 Ed(e){const{children:t,id:n}=e,o=Mn();return Y.jsx(kd.Provider,{value:c.useMemo(()=>({id:n,parentId:o}),[n,o]),children:t})}function Pd(e){const{children:t,externalTree:n}=e,o=gt(()=>n??new Ta).current;return Y.jsx(Cd.Provider,{value:o,children:t})}function en(e){return e==null?e:"current"in e?e.current:e}function S1(e,t){const n=Xe(at(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 nl=20;let gn=[];function Oa(){gn=gn.filter(e=>{var t;return(t=e.deref())==null?void 0:t.isConnected})}function ol(e){Oa(),e&&mt(e)!=="body"&&(gn.push(new WeakRef(e)),gn.length>nl&&(gn=gn.slice(-nl)))}function rl(){var e;return Oa(),(e=gn[gn.length-1])==null?void 0:e.deref()}function w1(e){return e?Ca(e)?e:rr(e)[0]||e:null}function sl(e){var r;if(e.hasAttribute("tabindex")&&!e.hasAttribute("data-tabindex")||!((r=e.getAttribute("role"))!=null&&r.includes("dialog")))return;const n=pd(e).filter(s=>{const i=s.getAttribute("data-tabindex")||"";return Ca(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 Is(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:h}=e,g="rootStore"in t?t.rootStore:t,m=g.useState("open"),b=g.useState("domReferenceElement"),v=g.useState("floatingElement"),{events:x,dataRef:S}=g.context,w=he(()=>{var ne;return(ne=S.current.floatingContext)==null?void 0:ne.nodeId}),R=r===!1,C=_i(b)&&R,k=rt(r),T=rt(s),E=rt(u),N=rt(m),O=Tn(y),D=Sd(),A=c.useRef(!1),P=c.useRef(!1),z=c.useRef(!1),F=c.useRef(null),I=c.useRef(""),L=c.useRef(""),M=c.useRef(null),_=c.useRef(null),H=Tt(M,f,D==null?void 0:D.beforeInsideRef),$=Tt(_,D==null?void 0:D.afterInsideRef),U=nt(),G=nt(),V=$n(),X=D!=null,j=es(v),K=he((ne=j)=>ne?rr(ne):[]),de=he(()=>(h==null?void 0:h().filter(ne=>ne!=null))??[]);c.useEffect(()=>{if(o||!a)return;function ne(q){q.key==="Tab"&&ve(j,pt(Ie(j)))&&K().length===0&&!C&&Ft(q)}const re=Ie(j);return Ae(re,"keydown",ne)},[o,j,a,C,K]),c.useEffect(()=>{if(o||!m)return;const ne=Ie(j);function re(){z.current=!1}function q(ge){const ue=at(ge),Z=de(),J=ve(v,ue)||ve(b,ue)||ve(D==null?void 0:D.portalNode,ue)||Z.some(ae=>ae===ue||ve(ae,ue));z.current=!J,L.current=ge.pointerType||"keyboard",ue!=null&&ue.closest(`[${Pa}]`)&&(P.current=!0,G.start(0,()=>{P.current=!1}))}function ie(){L.current="keyboard"}return Yt(Ae(ne,"pointerdown",q,!0),Ae(ne,"pointerup",re,!0),Ae(ne,"pointercancel",re,!0),Ae(ne,"keydown",ie,!0),re)},[o,v,b,j,m,D,G,de]),c.useEffect(()=>{if(o||!l)return;const ne=Ie(j);function re(){P.current=!0,G.start(0,()=>{P.current=!1})}function q(Z){const J=at(Z);Ca(J)&&(F.current=J)}function ie(Z){const J=Z.relatedTarget,ae=Z.currentTarget,ce=at(Z);a&&J==null&&ce!=null&&ve(v,ce)&&ol(ce),queueMicrotask(()=>{const oe=w(),le=g.context.triggerElements,B=de(),Q=(J==null?void 0:J.hasAttribute(Ko("focus-guard")))&&[M.current,_.current,D==null?void 0:D.beforeInsideRef.current,D==null?void 0:D.afterInsideRef.current,D==null?void 0:D.beforeOutsideRef.current,D==null?void 0:D.afterOutsideRef.current,en(p),en(d)].includes(J),fe=!(ve(b,J)||ve(v,J)||ve(J,v)||ve(D==null?void 0:D.portalNode,J)||B.some(te=>te===J||ve(te,J))||le.hasMatchingElement(te=>ve(te,J))||Q||O&&(kn(O.nodesRef.current,oe).find(te=>{var ee,me;return ve((ee=te.context)==null?void 0:ee.elements.floating,J)||ve((me=te.context)==null?void 0:me.elements.domReference,J)})||Yc(O.nodesRef.current,oe).find(te=>{var ee,me,ye;return[(ee=te.context)==null?void 0:ee.elements.floating,es((me=te.context)==null?void 0:me.elements.floating)].includes(J)||((ye=te.context)==null?void 0:ye.elements.domReference)===J})));if(ae===b&&j&&sl(j),i&&ae!==b&&!Ms(ce)&&pt(ne)===ne.body){if(Ye(j)&&(j.focus(),i==="popup")){V.request(()=>{j.focus()});return}const te=K(),ee=F.current,me=(ee&&te.includes(ee)?ee:null)||te[te.length-1]||j;Ye(me)&&me.focus()}if(S.current.insideReactTree){S.current.insideReactTree=!1;return}(C||!a)&&J&&fe&&!P.current&&(C||J!==rl())&&(A.current=!0,g.setOpen(!1,ke(xn,Z)))})}function ge(){z.current||(S.current.insideReactTree=!0,U.start(0,()=>{S.current.insideReactTree=!1}))}const ue=Ye(b)?b:null;if(!(!v&&!ue))return Yt(ue&&Ae(ue,"focusout",ie),ue&&Ae(ue,"pointerdown",re),v&&Ae(v,"focusin",q),v&&Ae(v,"focusout",ie),v&&D&&Ae(v,"focusout",ge,!0))},[o,b,v,j,a,O,D,g,l,i,K,C,w,S,U,G,V,d,p,de]),c.useEffect(()=>{var ae,ce,oe;if(o||!v||!m)return;const ne=Array.from(((ae=D==null?void 0:D.portalNode)==null?void 0:ae.querySelectorAll(`[${Ko("portal")}]`))||[]),q=(oe=(ce=(O?Yc(O.nodesRef.current,w()):[]).find(le=>{var B;return _i(((B=le.context)==null?void 0:B.elements.domReference)||null)}))==null?void 0:ce.context)==null?void 0:oe.elements.domReference,ge=[...[v,...ne,M.current,_.current,D==null?void 0:D.beforeOutsideRef.current,D==null?void 0:D.afterOutsideRef.current,...de()],q,en(p),en(d),C?b:null].filter(le=>le!=null),ue=Jc(ge,{ariaHidden:a||C,mark:!1}),Z=[v,...ne].filter(le=>le!=null),J=Jc(Z);return()=>{J(),ue()}},[m,o,b,v,a,D,C,O,w,d,p,de]),pe(()=>{if(!m||o||!Ye(j))return;I.current="",L.current="";const ne=Ie(j),re=pt(ne);queueMicrotask(()=>{const q=k.current,ie=typeof q=="function"?q(E.current||""):q;if(ie===void 0||ie===!1||ve(j,re))return;let ue=null;const Z=()=>(ue==null&&(ue=K(j)),ue[0]||j);let J;ie===!0||ie===null?J=Z():J=en(ie),J=J||Z();const ae=ve(j,pt(ne));Br(J,{preventScroll:J===j,shouldFocus(){if(!N.current)return!1;if(ae)return!0;const ce=pt(ne);return!(ce!==J&&ve(j,ce))}})})},[o,m,j,K,k,E,N]),pe(()=>{if(o||!j)return;const ne=Ie(j),re=pt(ne),q=E.current==null;ol(re);function ie(ue){if(ue.open||(I.current=S1(ue.nativeEvent,L.current)),ue.reason===it&&ue.nativeEvent.type==="mouseleave"&&(A.current=!0),ue.reason===Cs)if(ue.nested)A.current=!1;else if(ba(ue.nativeEvent)||va(ue.nativeEvent))A.current=!1;else{let Z=!1;Ie(j).createElement("div").focus({get preventScroll(){return Z=!0,!1}}),Z?A.current=!1:A.current=!0}}x.on("openchange",ie);function ge(ue){const Z=T.current;let J=typeof Z=="function"?Z(ue):Z;if(J===void 0||J===!1)return null;J===null&&(J=!0);const ae=b!=null&&b.isConnected?b:null,ce=re!=null&&re.isConnected&&mt(re)!=="body"?re:null;let oe=q?ce||ae:ae||ce;return oe||(oe=rl()||null),typeof J=="boolean"?oe:en(J)||oe||null}return()=>{x.off("openchange",ie);const ue=pt(ne),Z=de(),J=ve(v,ue)||Z.some(le=>le===ue||ve(le,ue))||O&&kn(O.nodesRef.current,w(),!1).some(le=>{var B;return ve((B=le.context)==null?void 0:B.elements.floating,ue)}),ae=T.current,ce=I.current,oe=ge(ce);queueMicrotask(()=>{const le=w1(oe),B=typeof ae!="boolean";if(ae&&!A.current&&Ye(le)&&(!(!B&&le!==ue&&ue!==ne.body)||J)){const Q={preventScroll:!0};ce==="keyboard"&&(Q.focusVisible=!0),le.focus(Q)}A.current=!1})}},[o,v,j,T,E,x,O,b,w,de]),pe(()=>{if(!Xt||m||!v)return;const ne=pt(Ie(v));!Ye(ne)||!ks(ne)||ve(v,ne)&&ne.blur()},[m,v]),pe(()=>{if(!(o||!D))return D.setFocusManagerState({modal:a,closeOnFocusOut:l,open:m,onOpenChange:g.setOpen,domReference:b}),()=>{D.setFocusManagerState(null)}},[o,D,a,m,g,l,b]),pe(()=>{if(!(o||!j))return sl(j),()=>{queueMicrotask(Oa)}},[o,j]);const se=!o&&(a?!C:!0)&&(X||a);return Y.jsxs(c.Fragment,{children:[se&&Y.jsx(wn,{"data-type":"inside",ref:H,onFocus:ne=>{var re;if(a){const q=K();Br(q[q.length-1])}else if(D!=null&&D.portalNode)if(A.current=!1,lo(ne,D.portalNode)){const q=Ea(b);q==null||q.focus()}else(re=en(p??D.beforeOutsideRef))==null||re.focus()}}),n,se&&Y.jsx(wn,{"data-type":"inside",ref:$,onFocus:ne=>{var re;if(a)Br(K()[0]);else if(D!=null&&D.portalNode)if(l&&(A.current=!0),lo(ne,D.portalNode)){const q=gd(b);q==null||q.focus()}else(re=en(d??D.afterOutsideRef))==null||re.focus()}})]})}function Os(e,t={}){const{enabled:n=!0,event:o="click",toggle:r=!0,ignoreMouse:s=!1,stickIfOpen:i=!0,touchOpenDelay:a=0,reason:l=$t}=t,u="rootStore"in e?e.rootStore:e,d=u.context.dataRef,p=c.useRef(void 0),f=$n(),y=nt(),h=c.useMemo(()=>{function g(b,v,x,S){const w=ke(l,v,x);b&&S==="touch"&&a>0?y.start(a,()=>{u.setOpen(!0,w)}):u.setOpen(b,w)}function m(b,v,x){const S=d.current.openEvent,w=u.select("domReferenceElement")!==v;return b&&w||!b||!r?!0:S&&i?!x(S.type):!1}return{onPointerDown(b){p.current=yn(b.pointerType,!0)&&va(b.nativeEvent)?"virtual":b.pointerType},onMouseDown(b){const v=p.current,x=b.nativeEvent,S=u.select("open");if(b.button!==0||o==="click"||yn(v,!0)&&s)return;const w=m(S,b.currentTarget,k=>k==="click"||k==="mousedown"),R=at(x);if(ks(R)){g(w,x,R,v);return}const C=b.currentTarget;f.request(()=>{g(w,x,C,v)})},onClick(b){if(o==="mousedown-only")return;const v=p.current;if(o==="mousedown"&&v){p.current=void 0;return}if(yn(v,!0)&&s)return;const x=u.select("open"),S=m(x,b.currentTarget,w=>w==="click"||w==="mousedown"||w==="keydown"||w==="keyup");g(S,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:h}:Ke,[n,h])}function R1(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 il(e){return e!=null&&e.clientX!=null}function k1(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,h]=c.useState([]),g=he(S=>{r.set("positionReference",S)}),m=he((S,w,R)=>{u.current||l.current.openEvent&&!il(l.current.openEvent)||r.set("positionReference",R1(R??a,{x:S,y:w,axis:o,dataRef:l,pointerType:p}))}),b=he(S=>{s?d.current||(m(S.clientX,S.clientY,S.currentTarget),h([])):m(S.clientX,S.clientY,S.currentTarget)}),v=yn(p)?i:s;c.useEffect(()=>{if(!n){g(a);return}if(!v)return;function S(){var C;(C=d.current)==null||C.call(d),d.current=null}const w=Xe(i);function R(C){const k=at(C);ve(i,k)?S():m(C.clientX,C.clientY)}return!l.current.openEvent||il(l.current.openEvent)?d.current=Ae(w,"mousemove",R):g(a),S},[v,n,i,l,a,r,m,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 x=c.useMemo(()=>{function S(w){f(w.pointerType)}return{onPointerDown:S,onPointerEnter:S,onMouseMove:b,onMouseEnter:b}},[b]);return c.useMemo(()=>n?{reference:x,trigger:x}:{},[n,x])}function C1(){return!1}function E1(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 sr(e,t={}){const{enabled:n=!0,escapeKey:o=!0,outsidePress:r=!0,outsidePressEvent:s="sloppy",referencePress:i=C1,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=Tn(l),h=he(typeof r=="function"?r:()=>!1),g=typeof r=="function"?h:r,m=g!==!1,b=he(()=>s),{escapeKey:v,outsidePress:x}=E1(a),S=c.useRef(!1),w=c.useRef(!1),R=c.useRef(!1),C=c.useRef(!1),k=c.useRef(""),T=c.useRef(null),E=nt(),N=nt(),O=he(()=>{N.clear(),f.current.insideReactTree=!1}),D=he(H=>{var G;const $=(G=f.current.floatingContext)==null?void 0:G.nodeId;return(y?kn(y.nodesRef.current,$):[]).some(V=>{var X;return((X=V.context)==null?void 0:X.open)&&!V.context.dataRef.current[H]})}),A=he(H=>fi(H,u.select("floatingElement"))||fi(H,u.select("domReferenceElement"))),P=he(H=>{i()&&u.setOpen(!1,ke($t,H.nativeEvent))}),z=he(H=>{if(!d||!n||!o||H.key!=="Escape"||C.current||!v&&D("__escapeKeyBubbles"))return;const $=_0(H)?H.nativeEvent:H,U=ke(or,$);u.setOpen(!1,U),U.isCanceled||H.preventDefault(),!v&&!U.isPropagationAllowed&&H.stopPropagation()}),F=he(()=>{f.current.insideReactTree=!0,N.start(0,O)}),I=he(H=>{if(!d||!n||H.button!==0)return;const $=at(H.nativeEvent);ve(u.select("floatingElement"),$)&&(S.current||(S.current=!0,w.current=!1))}),L=he(H=>{!d||!n||(H.defaultPrevented||H.nativeEvent.defaultPrevented)&&S.current&&(w.current=!0)});c.useEffect(()=>{if(!d||!n)return O;f.current.__escapeKeyBubbles=v,f.current.__outsidePressBubbles=x;const H=new Lt,$=new Lt;function U(){H.clear(),C.current=!0}function G(){H.start(Xt?5:0,()=>{C.current=!1})}function V(){R.current=!0,$.start(0,()=>{R.current=!1})}function X(){S.current=!1,w.current=!1}function j(){const B=k.current,Q=B==="pen"||!B?"mouse":B,fe=b(),te=typeof fe=="function"?fe():fe;return typeof te=="string"?te:te[Q]}function K(B){const Q=j();return Q==="intentional"&&B.type!=="click"||Q==="sloppy"&&B.type==="click"}function de(B){var te;const Q=(te=f.current.floatingContext)==null?void 0:te.nodeId,fe=y&&kn(y.nodesRef.current,Q).some(ee=>{var me;return fi(B,(me=ee.context)==null?void 0:me.elements.floating)});return A(B)||fe}function se(B){if(K(B)){B.type!=="click"&&!A(B)&&($.clear(),R.current=!1),O();return}if(f.current.insideReactTree){O();return}const Q=at(B),fe=`[${Ko("inert")}]`,te=Ne(Q)?Q.getRootNode():null,ee=Array.from((go(te)?te:Ie(u.select("floatingElement"))).querySelectorAll(fe)),me=u.context.triggerElements;if(Q&&(me.hasElement(Q)||me.hasMatchingElement(De=>ve(De,Q))))return;let ye=Ne(Q)?Q:null;for(;ye&&!on(ye);){const De=an(ye);if(on(De)||!Ne(De))break;ye=De}if(!(ee.length&&Ne(Q)&&!z0(Q)&&!ve(Q,u.select("floatingElement"))&&ee.every(De=>!ve(ye,De)))){if(Ye(Q)&&!("touches"in B)){const De=on(Q),Me=Pt(Q),Ge=/auto|scroll/,_e=De||Ge.test(Me.overflowX),ze=De||Ge.test(Me.overflowY),et=_e&&Q.clientWidth>0&&Q.scrollWidth>Q.clientWidth,Te=ze&&Q.clientHeight>0&&Q.scrollHeight>Q.clientHeight,be=Me.direction==="rtl",Ve=Te&&(be?B.offsetX<=Q.offsetWidth-Q.clientWidth:B.offsetX>Q.clientWidth),Fe=et&&B.offsetY>Q.clientHeight;if(Ve||Fe)return}if(!de(B)){if(j()==="intentional"&&R.current){$.clear(),R.current=!1;return}typeof g=="function"&&!g(B)||D("__outsidePressBubbles")||(u.setOpen(!1,ke(Cs,B)),O())}}}function ne(B){j()!=="sloppy"||B.pointerType==="touch"||!u.select("open")||!n||A(B)||se(B)}function re(B){if(j()!=="sloppy"||!u.select("open")||!n||A(B))return;const Q=B.touches[0];Q&&(T.current={startTime:Date.now(),startX:Q.clientX,startY:Q.clientY,dismissOnTouchEnd:!1,dismissOnMouseDown:!0},E.start(1e3,()=>{T.current&&(T.current.dismissOnTouchEnd=!1,T.current.dismissOnMouseDown=!1)}))}function q(B,Q){const fe=at(B);if(!fe)return;const te=Ae(fe,B.type,()=>{Q(B),te()})}function ie(B){k.current="touch",q(B,re)}function ge(B){E.clear(),B.type==="pointerdown"&&(k.current=B.pointerType),!(B.type==="mousedown"&&T.current&&!T.current.dismissOnMouseDown)&&q(B,Q=>{Q.type==="pointerdown"?ne(Q):se(Q)})}function ue(B){if(!S.current)return;const Q=w.current;if(X(),j()==="intentional"){if(B.type==="pointercancel"){Q&&V();return}if(!de(B)){if(Q){V();return}typeof g=="function"&&!g(B)||($.clear(),R.current=!0,O())}}}function Z(B){if(j()!=="sloppy"||!T.current||A(B))return;const Q=B.touches[0];if(!Q)return;const fe=Math.abs(Q.clientX-T.current.startX),te=Math.abs(Q.clientY-T.current.startY),ee=Math.sqrt(fe*fe+te*te);ee>5&&(T.current.dismissOnTouchEnd=!0),ee>10&&(se(B),E.clear(),T.current=null)}function J(B){q(B,Z)}function ae(B){j()!=="sloppy"||!T.current||A(B)||(T.current.dismissOnTouchEnd&&se(B),E.clear(),T.current=null)}function ce(B){q(B,ae)}const oe=Ie(p),le=Yt(o&&Yt(Ae(oe,"keydown",z),Ae(oe,"compositionstart",U),Ae(oe,"compositionend",G)),m&&Yt(Ae(oe,"click",ge,!0),Ae(oe,"pointerdown",ge,!0),Ae(oe,"pointerup",ue,!0),Ae(oe,"pointercancel",ue,!0),Ae(oe,"mousedown",ge,!0),Ae(oe,"mouseup",ue,!0),Ae(oe,"touchstart",ie,!0),Ae(oe,"touchmove",J,!0),Ae(oe,"touchend",ce,!0)));return()=>{le(),H.clear(),$.clear(),X(),R.current=!1,O()}},[f,p,o,m,g,d,n,v,x,z,O,b,D,A,y,u,E]);const M=c.useMemo(()=>({onKeyDown:z,onPointerDown:P,onClick:P}),[z,P]),_=c.useMemo(()=>({onKeyDown:z,onPointerDown:L,onMouseDown:L,onClickCapture:F,onMouseDownCapture(H){F(),I(H)},onPointerDownCapture(H){F(),I(H)},onMouseUpCapture:F,onTouchEndCapture:F,onTouchMoveCapture:F}),[z,F,I,L]);return c.useMemo(()=>n?{reference:M,floating:_,trigger:M}:{},[n,M,_])}function al(e,t,n){let{reference:o,floating:r}=e;const s=At(t),i=ka(t),a=Ra(i),l=Nt(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 h=Pn(t);return h&&(y[i]+=f*(h==="end"?1:-1)*(n&&u?-1:1)),y}async function P1(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}=Rn(t,e),h=id(y),m=a[f?p==="floating"?"reference":"floating":p],b=Xo(await s.getClippingRect({element:(n=await(s.isElement==null?void 0:s.isElement(m)))==null||n?m:m.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,x=await(s.getOffsetParent==null?void 0:s.getOffsetParent(a.floating)),S=await(s.isElement==null?void 0:s.isElement(x))&&await(s.getScale==null?void 0:s.getScale(x))||{x:1,y:1},w=Xo(s.convertOffsetParentRelativeRectToViewportRelativeRect?await s.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:v,offsetParent:x,strategy:l}):v);return{top:(b.top-w.top+h.top)/S.y,bottom:(w.bottom-b.bottom+h.bottom)/S.y,left:(b.left-w.left+h.left)/S.x,right:(w.right-b.right+h.right)/S.x}}const M1=50,T1=async(e,t,n)=>{const{placement:o="bottom",strategy:r="absolute",middleware:s=[],platform:i}=n,a=i.detectOverflow?i:{...i,detectOverflow:P1},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}=al(u,o,l),f=o,y=0;const h={};for(let g=0;g<s.length;g++){const m=s[g];if(!m)continue;const{name:b,fn:v}=m,{x,y:S,data:w,reset:R}=await v({x:d,y:p,initialPlacement:o,placement:f,strategy:r,middlewareData:h,rects:u,platform:a,elements:{reference:e,floating:t}});d=x??d,p=S??p,h[b]={...h[b],...w},R&&y<M1&&(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}=al(u,f,l)),g=-1)}return{x:d,y:p,placement:f,strategy:r,middlewareData:h}},I1=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:h="none",flipAlignment:g=!0,...m}=Rn(e,t);if((n=s.arrow)!=null&&n.alignmentOffset)return{};const b=Nt(r),v=At(a),x=Nt(a)===a,S=await(l.isRTL==null?void 0:l.isRTL(u.floating)),w=f||(x||!g?[ts(a)]:J0(a)),R=h!=="none";!f&&R&&w.push(...o1(a,g,h,S));const C=[a,...w],k=await l.detectOverflow(t,m),T=[];let E=((o=s.flip)==null?void 0:o.overflows)||[];if(d&&T.push(k[b]),p){const A=Q0(r,i,S);T.push(k[A[0]],k[A[1]])}if(E=[...E,{placement:r,overflows:T}],!T.every(A=>A<=0)){var N,O;const A=(((N=s.flip)==null?void 0:N.index)||0)+1,P=C[A];if(P&&(!(p==="alignment"?v!==At(P):!1)||E.every(I=>At(I.placement)===v?I.overflows[0]>0:!0)))return{data:{index:A,overflows:E},reset:{placement:P}};let z=(O=E.filter(F=>F.overflows[0]<=0).sort((F,I)=>F.overflows[1]-I.overflows[1])[0])==null?void 0:O.placement;if(!z)switch(y){case"bestFit":{var D;const F=(D=E.filter(I=>{if(R){const L=At(I.placement);return L===v||L==="y"}return!0}).map(I=>[I.placement,I.overflows.filter(L=>L>0).reduce((L,M)=>L+M,0)]).sort((I,L)=>I[1]-L[1])[0])==null?void 0:D[0];F&&(z=F);break}case"initialPlacement":z=a;break}if(r!==z)return{reset:{placement:z}}}return{}}}},Md=new Set(["left","top"]);async function O1(e,t){const{placement:n,platform:o,elements:r}=e,s=await(o.isRTL==null?void 0:o.isRTL(r.floating)),i=Nt(n),a=Pn(n),l=At(n)==="y",u=Md.has(i)?-1:1,d=s&&l?-1:1,p=Rn(t,e);let{mainAxis:f,crossAxis:y,alignmentAxis:h}=typeof p=="number"?{mainAxis:p,crossAxis:0,alignmentAxis:null}:{mainAxis:p.mainAxis||0,crossAxis:p.crossAxis||0,alignmentAxis:p.alignmentAxis};return a&&typeof h=="number"&&(y=a==="end"?h*-1:h),l?{x:y*d,y:f*u}:{x:f*u,y:y*d}}const A1=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 O1(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}}}}},N1=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,y:S}=v;return{x,y:S}}},...u}=Rn(e,t),d={x:n,y:o},p=await s.detectOverflow(t,u),f=At(r),y=wa(f);let h=d[y],g=d[f];const m=(v,x)=>sd(x+p[v==="y"?"top":"left"],x,x-p[v==="y"?"bottom":"right"]);i&&(h=m(y,h)),a&&(g=m(f,g));const b=l.fn({...t,[y]:h,[f]:g});return{...b,data:{x:b.x-n,y:b.y-o,enabled:{[y]:i,[f]:a}}}}}},D1=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}=Rn(e,t),f={x:r,y:s},y=At(i),h=wa(y);let g=f[h],m=f[y];const b=Rn(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 w=h==="y"?"height":"width",R=a.reference[h]-a.floating[w]+v.mainAxis,C=a.reference[h]+a.reference[w]-v.mainAxis;g<R?g=R:g>C&&(g=C)}if(p){var x,S;const w=h==="y"?"width":"height",R=Md.has(Nt(i)),C=a.reference[y]-a.floating[w]+(R&&((x=l.offset)==null?void 0:x[y])||0)+(R?0:v.crossAxis),k=a.reference[y]+a.reference[w]+(R?0:((S=l.offset)==null?void 0:S[y])||0)-(R?v.crossAxis:0);m<C?m=C:m>k&&(m=k)}return{[h]:g,[y]:m}}}},L1=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}=Rn(e,t),l=await r.detectOverflow(t,a),u=Nt(n),d=Pn(n),p=At(n)==="y",{width:f,height:y}=o.floating;let h,g;u==="top"||u==="bottom"?(h=u,g=d===(await(r.isRTL==null?void 0:r.isRTL(s.floating))?"start":"end")?"left":"right"):(g=u,h=d==="end"?"top":"bottom");const m=y-l.top-l.bottom,b=f-l.left-l.right,v=mo(y-l[h],m),x=mo(f-l[g],b),S=t.middlewareData.shift,w=!S;let R=v,C=x;S!=null&&S.enabled.x&&(C=b),S!=null&&S.enabled.y&&(R=m),w&&!d&&(p?C=f-2*rn(l.left,l.right):R=y-2*rn(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 Td(e){const t=Pt(e);let n=parseFloat(t.width)||0,o=parseFloat(t.height)||0;const r=Ye(e),s=r?e.offsetWidth:n,i=r?e.offsetHeight:o,a=yo(n)!==s||yo(o)!==i;return a&&(n=s,o=i),{width:n,height:o,$:a}}function Aa(e){return Ne(e)?e:e.contextElement}function uo(e){const t=Aa(e);if(!Ye(t))return sn(1);const n=t.getBoundingClientRect(),{width:o,height:r,$:s}=Td(t);let i=(s?yo(n.width):n.width)/o,a=(s?yo(n.height):n.height)/r;return(!i||!Number.isFinite(i))&&(i=1),(!a||!Number.isFinite(a))&&(a=1),{x:i,y:a}}const _1=sn(0);function Id(e){const t=Xe(e);return!ca()||!t.visualViewport?_1:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function F1(e,t,n){return t===void 0&&(t=!1),!!n&&t&&n===Xe(e)}function Hn(e,t,n,o){t===void 0&&(t=!1),n===void 0&&(n=!1);const r=e.getBoundingClientRect(),s=Aa(e);let i=sn(1);t&&(o?Ne(o)&&(i=uo(o)):i=uo(e));const a=F1(s,n,o)?Id(s):sn(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=Xe(s),y=Ne(o)?Xe(o):o;let h=f,g=Oi(h);for(;g&&y!==h;){const m=uo(g),b=g.getBoundingClientRect(),v=Pt(g),x=b.left+(g.clientLeft+parseFloat(v.paddingLeft))*m.x,S=b.top+(g.clientTop+parseFloat(v.paddingTop))*m.y;l*=m.x,u*=m.y,d*=m.x,p*=m.y,l+=x,u+=S,h=Xe(g),g=Oi(h)}}return Xo({width:d,height:p,x:l,y:u})}function As(e,t){const n=bs(e).scrollLeft;return t?t.left+n:Hn(un(e)).left+n}function Od(e,t){const n=e.getBoundingClientRect(),o=n.left+t.scrollLeft-As(e,n),r=n.top+t.scrollTop;return{x:o,y:r}}function z1(e){let{elements:t,rect:n,offsetParent:o,strategy:r}=e;const s=r==="fixed",i=un(o),a=t?ys(t.floating):!1;if(o===i||a&&s)return n;let l={scrollLeft:0,scrollTop:0},u=sn(1);const d=sn(0),p=Ye(o);if((p||!s)&&((mt(o)!=="body"||nr(i))&&(l=bs(o)),p)){const y=Hn(o);u=uo(o),d.x=y.x+o.clientLeft,d.y=y.y+o.clientTop}const f=i&&!p&&!s?Od(i,l):sn(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 V1(e){return e.getClientRects?Array.from(e.getClientRects()):[]}function $1(e){const t=bs(e),n=e.ownerDocument.body,o=rn(e.scrollWidth,e.clientWidth,n.scrollWidth,n.clientWidth),r=rn(e.scrollHeight,e.clientHeight,n.scrollHeight,n.clientHeight);let s=-t.scrollLeft+As(e);const i=-t.scrollTop;return Pt(n).direction==="rtl"&&(s+=rn(e.clientWidth,n.clientWidth)-o),{width:o,height:r,x:s,y:i}}const H1=25;function j1(e,t,n){n===void 0&&(n="viewport");const o=n==="layoutViewport",r=Xe(e),s=un(e),i=r.visualViewport;let a=s.clientWidth,l=s.clientHeight,u=0,d=0;if(i){const f=!ca()||t==="fixed";o?f||(u=-i.offsetLeft,d=-i.offsetTop):(a=i.width,l=i.height,f&&(u=i.offsetLeft,d=i.offsetTop))}if(As(s)<=0){const f=s.ownerDocument,y=f.body,h=getComputedStyle(y),g=f.compatMode==="CSS1Compat"&&parseFloat(h.marginLeft)+parseFloat(h.marginRight)||0,m=Math.abs(s.clientWidth-y.clientWidth-g),b=getComputedStyle(s).scrollbarGutter==="stable both-edges"?m/2:m;b<=H1&&(a-=b)}return{width:a,height:l,x:u,y:d}}function B1(e,t){const n=Hn(e,!0,t==="fixed"),o=n.top+e.clientTop,r=n.left+e.clientLeft,s=uo(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 cl(e,t,n){let o;if(t==="viewport"||t==="layoutViewport")o=j1(e,n,t);else if(t==="document")o=$1(un(e));else if(Ne(t))o=B1(t,n);else{const r=Id(e);o={x:t.x-r.x,y:t.y-r.y,width:t.width,height:t.height}}return Xo(o)}function W1(e,t){const n=t.get(e);if(n)return n;let o=qo(e,[],!1).filter(a=>Ne(a)&&mt(a)!=="body"),r=null;const s=Pt(e).position==="fixed";let i=s?an(e):e;for(;Ne(i)&&!on(i);){const a=Pt(i),l=aa(i),u=r?r.position:s?"fixed":"";!l&&(u==="fixed"||u==="absolute"&&a.position==="static")?o=o.filter(p=>p!==i):r=a,i=an(i)}return t.set(e,o),o}function U1(e){let{element:t,boundary:n,rootBoundary:o,strategy:r}=e;const i=[...n==="clippingAncestors"?ys(t)?[]:W1(t,this._c):[].concat(n),o],a=cl(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=cl(t,i[f],r);l=rn(y.top,l),u=mo(y.right,u),d=mo(y.bottom,d),p=rn(y.left,p)}return{width:u-p,height:d-l,x:p,y:l}}function G1(e){const{width:t,height:n}=Td(e);return{width:t,height:n}}function q1(e,t,n){const o=Ye(t),r=un(t),s=n==="fixed",i=Hn(e,!0,s,t);let a={scrollLeft:0,scrollTop:0};const l=sn(0);if((o||!s)&&((mt(t)!=="body"||nr(r))&&(a=bs(t)),o)){const f=Hn(t,!0,s,t);l.x=f.x+t.clientLeft,l.y=f.y+t.clientTop}!o&&r&&(l.x=As(r));const u=r&&!o&&!s?Od(r,a):sn(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 mi(e){return Pt(e).position==="static"}function ll(e,t){if(!Ye(e)||Pt(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return un(e)===n&&(n=n.ownerDocument.body),n}function Ad(e,t){const n=Xe(e);if(ys(e))return n;if(!Ye(e)){let r=an(e);for(;r&&!on(r);){if(Ne(r)&&!mi(r))return r;r=an(r)}return n}let o=ll(e,t);for(;o&&py(o)&&mi(o);)o=ll(o,t);return o&&on(o)&&mi(o)&&!aa(o)?n:o||my(e)||n}const Y1=async function(e){const t=this.getOffsetParent||Ad,n=this.getDimensions,o=await n(e.floating);return{reference:q1(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:o.width,height:o.height}}};function X1(e){return Pt(e).direction==="rtl"}const Nd={convertOffsetParentRelativeRectToViewportRelativeRect:z1,getDocumentElement:un,getClippingRect:U1,getOffsetParent:Ad,getElementRects:Y1,getClientRects:V1,getDimensions:G1,getScale:uo,isElement:Ne,isRTL:X1};function Dd(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function K1(e,t,n){let o=null,r;const s=un(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:h,width:g,height:m}=f;if(d||t(),!g||!m)return;const b=Sr(h),v=Sr(s.clientWidth-(y+g)),x=Sr(s.clientHeight-(h+m)),S=Sr(y),R={rootMargin:-b+"px "+-v+"px "+-x+"px "+-S+"px",threshold:rn(0,mo(1,p))||1};let C=!0;function k(T){const E=T[0].intersectionRatio;if(!Dd(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=Xe(e),u=()=>a(n);return l.addEventListener("resize",u),a(!0),()=>{l.removeEventListener("resize",u),i()}}function ul(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=Aa(e),d=r||s?[...u?qo(u):[],...t?qo(t):[]]:[];d.forEach(b=>{r&&b.addEventListener("scroll",n),s&&b.addEventListener("resize",n)});const p=u&&a?K1(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 x;(x=y)==null||x.observe(t)})),n()}),u&&!l&&y.observe(u),t&&y.observe(t));let h,g=l?Hn(e):null;l&&m();function m(){const b=Hn(e);g&&!Dd(g,b)&&n(),g=b,h=requestAnimationFrame(m)}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(h)}}const Z1=A1,Q1=N1,J1=I1,eb=L1,tb=D1,nb=(e,t,n)=>{const o=new Map,r=n??{},s={...Nd,...r.platform,_c:o};return T1(e,t,{...r,platform:s})};var ob=typeof document<"u",rb=function(){},Wr=ob?c.useLayoutEffect:rb;function os(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(!os(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)&&!os(e[s],t[s]))return!1}return!0}return e!==e&&t!==t}function Ld(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function dl(e,t){const n=Ld(e);return Math.round(t*n)/n}function yi(e){const t=c.useRef(e);return Wr(()=>{t.current=e}),t}function sb(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);os(f,o)||y(o);const[h,g]=c.useState(null),[m,b]=c.useState(null),v=c.useCallback(I=>{I!==R.current&&(R.current=I,g(I))},[]),x=c.useCallback(I=>{I!==C.current&&(C.current=I,b(I))},[]),S=s||h,w=i||m,R=c.useRef(null),C=c.useRef(null),k=c.useRef(d),T=l!=null,E=yi(l),N=yi(r),O=yi(u),D=c.useCallback(()=>{if(!R.current||!C.current)return;const I={placement:t,strategy:n,middleware:f};N.current&&(I.platform=N.current),nb(R.current,C.current,I).then(L=>{const M={...L,isPositioned:O.current!==!1};A.current&&!os(k.current,M)&&(k.current=M,Dt.flushSync(()=>{p(M)}))})},[f,t,n,N,O]);Wr(()=>{u===!1&&k.current.isPositioned&&(k.current.isPositioned=!1,p(I=>({...I,isPositioned:!1})))},[u]);const A=c.useRef(!1);Wr(()=>(A.current=!0,()=>{A.current=!1}),[]),Wr(()=>{if(S&&(R.current=S),w&&(C.current=w),S&&w){if(E.current)return E.current(S,w,D);D()}},[S,w,D,E,T]);const P=c.useMemo(()=>({reference:R,floating:C,setReference:v,setFloating:x}),[v,x]),z=c.useMemo(()=>({reference:S,floating:w}),[S,w]),F=c.useMemo(()=>{const I={position:n,left:0,top:0};if(!z.floating)return I;const L=dl(z.floating,d.x),M=dl(z.floating,d.y);return a?{...I,transform:"translate("+L+"px, "+M+"px)",...Ld(z.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:L,top:M}},[n,a,z.floating,d.x,d.y]);return c.useMemo(()=>({...d,update:D,refs:P,elements:z,floatingStyles:F}),[d,D,P,z,F])}const ib=(e,t)=>{const n=Z1(e);return{name:n.name,fn:n.fn,options:[e,t]}},ab=(e,t)=>{const n=Q1(e);return{name:n.name,fn:n.fn,options:[e,t]}},cb=(e,t)=>({fn:tb(e).fn,options:[e,t]}),lb=(e,t)=>{const n=J1(e);return{name:n.name,fn:n.fn,options:[e,t]}},ub=(e,t)=>{const n=eb(e);return{name:n.name,fn:n.fn,options:[e,t]}};var bi={exports:{}},vi={};/**
|
|
831
|
+
*/const f1=[["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"}],["line",{x1:"19",x2:"19",y1:"8",y2:"14",key:"1bvyxn"}],["line",{x1:"22",x2:"16",y1:"11",y2:"11",key:"1shjgl"}]],iE=B("user-plus",f1);/**
|
|
832
|
+
* @license lucide-react v0.577.0 - ISC
|
|
833
|
+
*
|
|
834
|
+
* This source code is licensed under the ISC license.
|
|
835
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
836
|
+
*/const p1=[["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"}]],aE=B("user-round-x",p1);/**
|
|
837
|
+
* @license lucide-react v0.577.0 - ISC
|
|
838
|
+
*
|
|
839
|
+
* This source code is licensed under the ISC license.
|
|
840
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
841
|
+
*/const h1=[["circle",{cx:"12",cy:"8",r:"5",key:"1hypcn"}],["path",{d:"M20 21a8 8 0 0 0-16 0",key:"rfgkzh"}]],cE=B("user-round",h1);/**
|
|
842
|
+
* @license lucide-react v0.577.0 - ISC
|
|
843
|
+
*
|
|
844
|
+
* This source code is licensed under the ISC license.
|
|
845
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
846
|
+
*/const g1=[["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"}],["line",{x1:"17",x2:"22",y1:"8",y2:"13",key:"3nzzx3"}],["line",{x1:"22",x2:"17",y1:"8",y2:"13",key:"1swrse"}]],lE=B("user-x",g1);/**
|
|
847
|
+
* @license lucide-react v0.577.0 - ISC
|
|
848
|
+
*
|
|
849
|
+
* This source code is licensed under the ISC license.
|
|
850
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
851
|
+
*/const m1=[["path",{d:"M18 21a8 8 0 0 0-16 0",key:"3ypg7q"}],["circle",{cx:"10",cy:"8",r:"5",key:"o932ke"}],["path",{d:"M22 20c0-3.37-2-6.5-4-8a5 5 0 0 0-.45-8.3",key:"10s06x"}]],uE=B("users-round",m1);/**
|
|
852
|
+
* @license lucide-react v0.577.0 - ISC
|
|
853
|
+
*
|
|
854
|
+
* This source code is licensed under the ISC license.
|
|
855
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
856
|
+
*/const y1=[["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"}]],dE=B("users",y1);/**
|
|
857
|
+
* @license lucide-react v0.577.0 - ISC
|
|
858
|
+
*
|
|
859
|
+
* This source code is licensed under the ISC license.
|
|
860
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
861
|
+
*/const b1=[["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"}]],fE=B("webhook",b1);/**
|
|
862
|
+
* @license lucide-react v0.577.0 - ISC
|
|
863
|
+
*
|
|
864
|
+
* This source code is licensed under the ISC license.
|
|
865
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
866
|
+
*/const v1=[["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"}]],pE=B("wifi-off",v1);/**
|
|
867
|
+
* @license lucide-react v0.577.0 - ISC
|
|
868
|
+
*
|
|
869
|
+
* This source code is licensed under the ISC license.
|
|
870
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
871
|
+
*/const x1=[["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"}]],hE=B("wifi",x1);/**
|
|
872
|
+
* @license lucide-react v0.577.0 - ISC
|
|
873
|
+
*
|
|
874
|
+
* This source code is licensed under the ISC license.
|
|
875
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
876
|
+
*/const S1=[["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"}]],gE=B("workflow",S1);/**
|
|
877
|
+
* @license lucide-react v0.577.0 - ISC
|
|
878
|
+
*
|
|
879
|
+
* This source code is licensed under the ISC license.
|
|
880
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
881
|
+
*/const w1=[["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"}]],mE=B("wrench",w1);/**
|
|
882
|
+
* @license lucide-react v0.577.0 - ISC
|
|
883
|
+
*
|
|
884
|
+
* This source code is licensed under the ISC license.
|
|
885
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
886
|
+
*/const R1=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],yE=B("x",R1);/**
|
|
887
|
+
* @license lucide-react v0.577.0 - ISC
|
|
888
|
+
*
|
|
889
|
+
* This source code is licensed under the ISC license.
|
|
890
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
891
|
+
*/const k1=[["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"}]],bE=B("zap",k1);/**
|
|
892
|
+
* @license lucide-react v0.577.0 - ISC
|
|
893
|
+
*
|
|
894
|
+
* This source code is licensed under the ISC license.
|
|
895
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
896
|
+
*/const C1=[["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"}]],vE=B("zoom-in",C1);/**
|
|
897
|
+
* @license lucide-react v0.577.0 - ISC
|
|
898
|
+
*
|
|
899
|
+
* This source code is licensed under the ISC license.
|
|
900
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
901
|
+
*/const E1=[["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"}]],xE=B("zoom-out",E1);function ms(){return typeof window<"u"}function mt(e){return ia(e)?(e.nodeName||"").toLowerCase():"#document"}function Xe(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function un(e){var t;return(t=(ia(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function ia(e){return ms()?e instanceof Node||e instanceof Xe(e).Node:!1}function Ne(e){return ms()?e instanceof Element||e instanceof Xe(e).Element:!1}function Ye(e){return ms()?e instanceof HTMLElement||e instanceof Xe(e).HTMLElement:!1}function go(e){return!ms()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof Xe(e).ShadowRoot}function nr(e){const{overflow:t,overflowX:n,overflowY:o,display:r}=Pt(e);return/auto|scroll|overlay|hidden|clip/.test(t+o+n)&&r!=="inline"&&r!=="contents"}function P1(e){return/^(table|td|th)$/.test(mt(e))}function ys(e){try{if(e.matches(":popover-open"))return!0}catch{}try{return e.matches(":modal")}catch{return!1}}const M1=/transform|translate|scale|rotate|perspective|filter/,T1=/paint|layout|strict|content/,_n=e=>!!e&&e!=="none";let ci;function aa(e){const t=Ne(e)?Pt(e):e;return _n(t.transform)||_n(t.translate)||_n(t.scale)||_n(t.rotate)||_n(t.perspective)||!ca()&&(_n(t.backdropFilter)||_n(t.filter))||M1.test(t.willChange||"")||T1.test(t.contain||"")}function I1(e){let t=an(e);for(;Ye(t)&&!on(t);){if(aa(t))return t;if(ys(t))return null;t=an(t)}return null}function ca(){return ci==null&&(ci=typeof CSS<"u"&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),ci}function on(e){return/^(html|body|#document)$/.test(mt(e))}function Pt(e){return Xe(e).getComputedStyle(e)}function bs(e){return Ne(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function an(e){if(mt(e)==="html")return e;const t=e.assignedSlot||e.parentNode||go(e)&&e.host||un(e);return go(t)?t.host:t}function Cu(e){const t=an(e);return on(t)?(e.ownerDocument||e).body:Ye(t)&&nr(t)?t:Cu(t)}function Go(e,t,n){var o;t===void 0&&(t=[]),n===void 0&&(n=!0);const r=Cu(e),s=r===((o=e.ownerDocument)==null?void 0:o.body),i=Xe(r);if(s){const a=Oi(i);return t.concat(i,i.visualViewport||[],nr(r)?r:[],a&&n?Go(a):[])}else return t.concat(r,Go(r,[],n))}function Oi(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}const la={...Ro},Ic={};function gt(e,t){const n=c.useRef(Ic);return n.current===Ic&&(n.current=e(t)),n}const li=la.useInsertionEffect,O1=li&&li!==la.useLayoutEffect?li:e=>e();function he(e){const t=gt(A1).current;return t.next=e,O1(t.effect),t.trampoline}function A1(){const e={next:void 0,callback:N1,trampoline:(...t)=>{var n;return(n=e.callback)==null?void 0:n.call(e,...t)},effect:()=>{e.callback=e.next}};return e}function N1(){}const D1=()=>{},pe=typeof document<"u"?c.useLayoutEffect:D1;function Ai(e,t){if(e&&!t)return e;if(!e&&t)return t;if(e||t)return{...e,...t}}const ua={};function Et(e,t,n,o,r){if(!n&&!o&&!r&&!e)return Kr(t);let s=Kr(e);return t&&(s=zo(s,t)),n&&(s=zo(s,n)),o&&(s=zo(s,o)),r&&(s=zo(s,r)),s}function _1(e){if(e.length===0)return ua;if(e.length===1)return Kr(e[0]);let t=Kr(e[0]);for(let n=1;n<e.length;n+=1)t=zo(t,e[n]);return t}function Kr(e){return da(e)?{...Pu(e,ua)}:L1(e)}function zo(e,t){return da(t)?Pu(t,e):F1(e,t)}function L1(e){const t={...e};for(const n in t){const o=t[n];Eu(n,o)&&(t[n]=Mu(o))}return t}function F1(e,t){if(!t)return e;for(const n in t){const o=t[n];switch(n){case"style":{e[n]=Ai(e.style,o);break}case"className":{e[n]=Tu(e.className,o);break}default:Eu(n,o)?e[n]=z1(e[n],o):e[n]=o}}return e}function Eu(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 da(e){return typeof e=="function"}function Pu(e,t){return da(e)?e(t):e??ua}function z1(e,t){return t?e?(...n)=>{const o=n[0];if(Iu(o)){const s=o;Zr(s);const i=t(...n);return s.baseUIHandlerPrevented||e==null||e(...n),i}const r=t(...n);return e==null||e(...n),r}:Mu(t):e}function Mu(e){return e&&((...t)=>{const n=t[0];return Iu(n)&&Zr(n),e(...t)})}function Zr(e){return e.preventBaseUIHandler=()=>{e.baseUIHandlerPrevented=!0},e}function Tu(e,t){return t?e?t+" "+e:t:e}function Iu(e){return e!=null&&typeof e=="object"&&"nativeEvent"in e}function V1(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 We=V1("https://base-ui.com/production-error","Base UI"),Ou=c.createContext(void 0);function vs(e=!1){const t=c.useContext(Ou);if(t===void 0&&!e)throw new Error(We(16));return t}function $1(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 Ie(e){return(e==null?void 0:e.ownerDocument)||document}function zn(e,t,{detail:n=0}={}){e.dispatchEvent(new(Xe(e)).PointerEvent("click",{bubbles:!0,cancelable:!0,composed:!0,detail:n,shiftKey:t.shiftKey,ctrlKey:t.ctrlKey,altKey:t.altKey,metaKey:t.metaKey}))}function Mt(e={}){const{disabled:t=!1,focusableWhenDisabled:n,tabIndex:o=0,native:r=!0,composite:s}=e,i=c.useRef(null),a=vs(!0),l=s??a!==void 0,{props:u}=$1({focusableWhenDisabled:n,disabled:t,composite:l,tabIndex:o,isNativeButton:r}),d=c.useCallback(()=>{const y=i.current;ui(y)&&l&&t&&u.disabled===void 0&&y.disabled&&(y.disabled=!1)},[t,u.disabled,l]);pe(d,[d]);const p=c.useCallback((y={})=>{const{onClick:h,onMouseDown:g,onKeyUp:m,onKeyDown:b,onPointerDown:v,...x}=y;return Et({onClick(S){if(t){S.preventDefault();return}h==null||h(S)},onMouseDown(S){t||g==null||g(S)},onKeyDown(S){if(t||(Zr(S),b==null||b(S),S.baseUIHandlerPrevented))return;const w=S.target===S.currentTarget,R=S.currentTarget,C=ui(R),k=!r&&H1(R),T=w&&(r?C:!k),E=S.key==="Enter",N=S.key===" ",O=R.getAttribute("role"),D=(O==null?void 0:O.startsWith("menuitem"))||O==="option"||O==="gridcell";if(w&&l&&N){if(S.defaultPrevented&&D)return;S.preventDefault(),(!r||C)&&(S.preventBaseUIHandler(),zn(R,S));return}if(!T||r||!N&&!E){w&&k&&N&&S.preventDefault();return}S.defaultPrevented||(S.preventDefault(),E&&(S.preventBaseUIHandler(),zn(R,S)))},onKeyUp(S){if(!t){if(Zr(S),m==null||m(S),S.target===S.currentTarget&&r&&l&&ui(S.currentTarget)&&S.key===" "){S.preventDefault();return}S.baseUIHandlerPrevented||S.target===S.currentTarget&&!r&&!l&&!S.defaultPrevented&&S.key===" "&&(S.preventBaseUIHandler(),zn(S.currentTarget,S))}},onPointerDown(S){if(t){S.preventDefault();return}v==null||v(S)}},r?{type:"button"}:{role:"button"},u,x)},[t,u,l,r]),f=he(y=>{i.current=y,d()});return{getButtonProps:p,buttonRef:f}}function ui(e){return Ye(e)&&e.tagName==="BUTTON"}function H1(e){return Ye(e)&&e.tagName==="A"&&!!e.href}function Tt(e,t,n,o){const r=gt(Au).current;return B1(r,e,t,n,o)&&Nu(r,[e,t,n,o]),r.callback}function j1(e){const t=gt(Au).current;return W1(t,e)&&Nu(t,e),t.callback}function Au(){return{callback:null,cleanup:null,refs:[]}}function B1(e,t,n,o,r){return e.refs[0]!==t||e.refs[1]!==n||e.refs[2]!==o||e.refs[3]!==r}function W1(e,t){return e.refs.length!==t.length||e.refs.some((n,o)=>n!==t[o])}function Nu(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 U1=parseInt(c.version,10);function fa(e){return U1>=e}function Oc(e){if(!c.isValidElement(e))return null;const t=e,n=t.props;return(fa(19)?n==null?void 0:n.ref:t.ref)??null}function ot(){}const Vt=Object.freeze([]),Ke=Object.freeze({});function q1(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 G1(e,t){return typeof e=="function"?e(t):e}function Du(e,t){return typeof e=="function"?e(t):e}function Re(e,t,n={}){const o=t.render,r=Y1(t,n);if(n.enabled===!1)return null;const s=n.state??Ke;return Z1(e,o,r,s)}function Y1(e,t={}){const{className:n,style:o,render:r}=e,{state:s=Ke,ref:i,props:a,stateAttributesMapping:l,enabled:u=!0}=t,d=u?G1(n,s):void 0,p=u?Du(o,s):void 0,f=u?q1(s,l):Ke,y=u&&a?X1(a):void 0,h=u?Ai(f,y)??{}:Ke;return typeof document<"u"&&(u?Array.isArray(i)?h.ref=j1([h.ref,Oc(r),...i]):h.ref=Tt(h.ref,Oc(r),i):Tt(null,null)),u?(d!==void 0&&(h.className=Tu(h.className,d)),p!==void 0&&(h.style=Ai(h.style,p)),h):Ke}function X1(e){return Array.isArray(e)?_1(e):Et(void 0,e)}const K1=Symbol.for("react.lazy");function Z1(e,t,n,o){if(t){if(typeof t=="function")return t(n,o);const r=Et(n,t.props);r.ref=n.ref;let s=t;return(s==null?void 0:s.$$typeof)===K1&&(s=c.Children.toArray(t)[0]),c.cloneElement(s,r)}if(e&&typeof e=="string")return Q1(e,n);throw new Error(We(8))}function Q1(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 SE=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}=Mt({disabled:s,focusableWhenDisabled:i,native:a});return Re("button",t,{state:{disabled:s},ref:[n,p],props:[u,d]})});function _u(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=_u(e[t]))&&(o&&(o+=" "),o+=n)}else for(n in e)e[n]&&(o&&(o+=" "),o+=n);return o}function J1(){for(var e,t,n=0,o="",r=arguments.length;n<r;n++)(e=arguments[n])&&(t=_u(e))&&(o&&(o+=" "),o+=t);return o}const Ac=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,Nc=J1,wE=(e,t)=>n=>{var o;if((t==null?void 0:t.variants)==null)return Nc(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=Ac(d)||Ac(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(h=>{let[g,m]=h;return Array.isArray(m)?m.includes({...s,...a}[g]):{...s,...a}[g]===m})?[...u,p,f]:u},[]);return Nc(e,i,l,n==null?void 0:n.class,n==null?void 0:n.className)},e0=(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},t0=(e,t)=>({classGroupId:e,validator:t}),Lu=(e=new Map,t=null,n)=>({nextPart:e,validators:t,classGroupId:n}),Qr="-",Dc=[],n0="arbitrary..",o0=e=>{const t=s0(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:o}=e;return{getClassGroupId:i=>{if(i.startsWith("[")&&i.endsWith("]"))return r0(i);const a=i.split(Qr),l=a[0]===""&&a.length>1?1:0;return Fu(a,l,t)},getConflictingClassGroupIds:(i,a)=>{if(a){const l=o[i],u=n[i];return l?u?e0(u,l):l:u||Dc}return n[i]||Dc}}},Fu=(e,t,n)=>{if(e.length-t===0)return n.classGroupId;const r=e[t],s=n.nextPart.get(r);if(s){const u=Fu(e,t+1,s);if(u)return u}const i=n.validators;if(i===null)return;const a=t===0?e.join(Qr):e.slice(t).join(Qr),l=i.length;for(let u=0;u<l;u++){const d=i[u];if(d.validator(a))return d.classGroupId}},r0=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?n0+o:void 0})(),s0=e=>{const{theme:t,classGroups:n}=e;return i0(n,t)},i0=(e,t)=>{const n=Lu();for(const o in e){const r=e[o];pa(r,n,o,t)}return n},pa=(e,t,n,o)=>{const r=e.length;for(let s=0;s<r;s++){const i=e[s];a0(i,t,n,o)}},a0=(e,t,n,o)=>{if(typeof e=="string"){c0(e,t,n);return}if(typeof e=="function"){l0(e,t,n,o);return}u0(e,t,n,o)},c0=(e,t,n)=>{const o=e===""?t:zu(t,e);o.classGroupId=n},l0=(e,t,n,o)=>{if(d0(e)){pa(e(o),t,n,o);return}t.validators===null&&(t.validators=[]),t.validators.push(t0(n,e))},u0=(e,t,n,o)=>{const r=Object.entries(e),s=r.length;for(let i=0;i<s;i++){const[a,l]=r[i];pa(l,zu(t,a),n,o)}},zu=(e,t)=>{let n=e;const o=t.split(Qr),r=o.length;for(let s=0;s<r;s++){const i=o[s];let a=n.nextPart.get(i);a||(a=Lu(),n.nextPart.set(i,a)),n=a}return n},d0=e=>"isThemeGetter"in e&&e.isThemeGetter===!0,f0=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)}}},Ni="!",_c=":",p0=[],Lc=(e,t,n,o,r)=>({modifiers:e,hasImportantModifier:t,baseClassName:n,maybePostfixModifierPosition:o,isExternal:r}),h0=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 m=r[g];if(i===0&&a===0){if(m===_c){s.push(r.slice(l,g)),l=g+1;continue}if(m==="/"){u=g;continue}}m==="["?i++:m==="]"?i--:m==="("?a++:m===")"&&a--}const p=s.length===0?r:r.slice(l);let f=p,y=!1;p.endsWith(Ni)?(f=p.slice(0,-1),y=!0):p.startsWith(Ni)&&(f=p.slice(1),y=!0);const h=u&&u>l?u-l:void 0;return Lc(s,y,f,h)};if(t){const r=t+_c,s=o;o=i=>i.startsWith(r)?s(i.slice(r.length)):Lc(p0,!1,i,void 0,!0)}if(n){const r=o;o=s=>n({className:s,parseClassName:r})}return o},g0=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}},m0=e=>({cache:f0(e.cacheSize),parseClassName:h0(e),sortModifiers:g0(e),postfixLookupClassGroupIds:y0(e),...o0(e)}),y0=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},b0=/\s+/,v0=(e,t)=>{const{parseClassName:n,getClassGroupId:o,getConflictingClassGroupIds:r,sortModifiers:s,postfixLookupClassGroupIds:i}=t,a=[],l=e.trim().split(b0);let u="";for(let d=l.length-1;d>=0;d-=1){const p=l[d],{isExternal:f,modifiers:y,hasImportantModifier:h,baseClassName:g,maybePostfixModifierPosition:m}=n(p);if(f){u=p+(u.length>0?" "+u:u);continue}let b=!!m,v;if(b){const C=g.substring(0,m);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 x=y.length===0?"":y.length===1?y[0]:s(y).join(":"),S=h?x+Ni:x,w=S+v;if(a.indexOf(w)>-1)continue;a.push(w);const R=r(v,b);for(let C=0;C<R.length;++C){const k=R[C];a.push(S+k)}u=p+(u.length>0?" "+u:u)}return u},x0=(...e)=>{let t=0,n,o,r="";for(;t<e.length;)(n=e[t++])&&(o=Vu(n))&&(r&&(r+=" "),r+=o);return r},Vu=e=>{if(typeof e=="string")return e;let t,n="";for(let o=0;o<e.length;o++)e[o]&&(t=Vu(e[o]))&&(n&&(n+=" "),n+=t);return n},S0=(e,...t)=>{let n,o,r,s;const i=l=>{const u=t.reduce((d,p)=>p(d),e());return n=m0(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=v0(l,n);return r(l,d),d};return s=i,(...l)=>s(x0(...l))},w0=[],ft=e=>{const t=n=>n[e]||w0;return t.isThemeGetter=!0,t},$u=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,Hu=/^\((?:(\w[\w-]*):)?(.+)\)$/i,R0=/^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/,k0=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,C0=/\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$/,E0=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,P0=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,M0=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,pn=e=>R0.test(e),_e=e=>!!e&&!Number.isNaN(Number(e)),Bt=e=>!!e&&Number.isInteger(Number(e)),di=e=>e.endsWith("%")&&_e(e.slice(0,-1)),Jt=e=>k0.test(e),ju=()=>!0,T0=e=>C0.test(e)&&!E0.test(e),ha=()=>!1,I0=e=>P0.test(e),O0=e=>M0.test(e),A0=e=>!xe(e)&&!we(e),N0=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)),D0=e=>En(e,Uu,ha),xe=e=>$u.test(e),Ln=e=>En(e,qu,T0),Fc=e=>En(e,j0,_e),_0=e=>En(e,Yu,ju),L0=e=>En(e,Gu,ha),zc=e=>En(e,Bu,ha),F0=e=>En(e,Wu,O0),yr=e=>En(e,Xu,I0),we=e=>Hu.test(e),Do=e=>Un(e,qu),z0=e=>Un(e,Gu),Vc=e=>Un(e,Bu),V0=e=>Un(e,Uu),$0=e=>Un(e,Wu),br=e=>Un(e,Xu,!0),H0=e=>Un(e,Yu,!0),En=(e,t,n)=>{const o=$u.exec(e);return o?o[1]?t(o[1]):n(o[2]):!1},Un=(e,t,n=!1)=>{const o=Hu.exec(e);return o?o[1]?t(o[1]):n:!1},Bu=e=>e==="position"||e==="percentage",Wu=e=>e==="image"||e==="url",Uu=e=>e==="length"||e==="size"||e==="bg-size",qu=e=>e==="length",j0=e=>e==="number",Gu=e=>e==="family-name",Yu=e=>e==="number"||e==="weight",Xu=e=>e==="shadow",B0=()=>{const e=ft("color"),t=ft("font"),n=ft("text"),o=ft("font-weight"),r=ft("tracking"),s=ft("leading"),i=ft("breakpoint"),a=ft("container"),l=ft("spacing"),u=ft("radius"),d=ft("shadow"),p=ft("inset-shadow"),f=ft("text-shadow"),y=ft("drop-shadow"),h=ft("blur"),g=ft("perspective"),m=ft("aspect"),b=ft("ease"),v=ft("animate"),x=()=>["auto","avoid","all","avoid-page","page","left","right","column"],S=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],w=()=>[...S(),we,xe],R=()=>["auto","hidden","clip","visible","scroll"],C=()=>["auto","contain","none"],k=()=>[we,xe,l],T=()=>[pn,"full","auto",...k()],E=()=>[Bt,"none","subgrid",we,xe],N=()=>["auto",{span:["full",Bt,we,xe]},Bt,we,xe],O=()=>[Bt,"auto",we,xe],D=()=>["auto","min","max","fr",we,xe],A=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],P=()=>["start","end","center","stretch","center-safe","end-safe"],z=()=>["auto",...k()],F=()=>[pn,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...k()],I=()=>[pn,"screen","full","dvw","lvw","svw","min","max","fit",...k()],_=()=>[pn,"screen","full","lh","dvh","lvh","svh","min","max","fit",...k()],M=()=>[e,we,xe],L=()=>[...S(),Vc,zc,{position:[we,xe]}],H=()=>["no-repeat",{repeat:["","x","y","space","round"]}],$=()=>["auto","cover","contain",V0,D0,{size:[we,xe]}],U=()=>[di,Do,Ln],q=()=>["","none","full",u,we,xe],V=()=>["",_e,Do,Ln],X=()=>["solid","dashed","dotted","double"],j=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],K=()=>[_e,di,Vc,zc],de=()=>["","none",h,we,xe],se=()=>["none",_e,we,xe],ne=()=>["none",_e,we,xe],re=()=>[_e,we,xe],G=()=>[pn,"full",...k()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[Jt],breakpoint:[Jt],color:[ju],container:[Jt],"drop-shadow":[Jt],ease:["in","out","in-out"],font:[A0],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[Jt],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[Jt],shadow:[Jt],spacing:["px",_e],text:[Jt],"text-shadow":[Jt],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",pn,xe,we,m]}],container:["container"],"container-type":[{"@container":["","normal","size",we,xe]}],"container-named":[N0],columns:[{columns:[_e,xe,we,a]}],"break-after":[{"break-after":x()}],"break-before":[{"break-before":x()}],"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:w()}],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:T()}],"inset-x":[{"inset-x":T()}],"inset-y":[{"inset-y":T()}],start:[{"inset-s":T(),start:T()}],end:[{"inset-e":T(),end:T()}],"inset-bs":[{"inset-bs":T()}],"inset-be":[{"inset-be":T()}],top:[{top:T()}],right:[{right:T()}],bottom:[{bottom:T()}],left:[{left:T()}],visibility:["visible","invisible","collapse"],z:[{z:[Bt,"auto",we,xe]}],basis:[{basis:[pn,"full","auto",a,...k()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[_e,pn,"auto","initial","none",xe]}],grow:[{grow:["",_e,we,xe]}],shrink:[{shrink:["",_e,we,xe]}],order:[{order:[Bt,"first","last","none",we,xe]}],"grid-cols":[{"grid-cols":E()}],"col-start-end":[{col:N()}],"col-start":[{"col-start":O()}],"col-end":[{"col-end":O()}],"grid-rows":[{"grid-rows":E()}],"row-start-end":[{row:N()}],"row-start":[{"row-start":O()}],"row-end":[{"row-end":O()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":D()}],"auto-rows":[{"auto-rows":D()}],gap:[{gap:k()}],"gap-x":[{"gap-x":k()}],"gap-y":[{"gap-y":k()}],"justify-content":[{justify:[...A(),"normal"]}],"justify-items":[{"justify-items":[...P(),"normal"]}],"justify-self":[{"justify-self":["auto",...P()]}],"align-content":[{content:["normal",...A()]}],"align-items":[{items:[...P(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...P(),{baseline:["","last"]}]}],"place-content":[{"place-content":A()}],"place-items":[{"place-items":[...P(),"baseline"]}],"place-self":[{"place-self":["auto",...P()]}],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:F()}],"inline-size":[{inline:["auto",...I()]}],"min-inline-size":[{"min-inline":["auto",...I()]}],"max-inline-size":[{"max-inline":["none",...I()]}],"block-size":[{block:["auto",..._()]}],"min-block-size":[{"min-block":["auto",..._()]}],"max-block-size":[{"max-block":["none",..._()]}],w:[{w:[a,"screen",...F()]}],"min-w":[{"min-w":[a,"screen","none",...F()]}],"max-w":[{"max-w":[a,"screen","none","prose",{screen:[i]},...F()]}],h:[{h:["screen","lh",...F()]}],"min-h":[{"min-h":["screen","lh","none",...F()]}],"max-h":[{"max-h":["screen","lh",...F()]}],"font-size":[{text:["base",n,Do,Ln]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[o,H0,_0]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",di,xe]}],"font-family":[{font:[z0,L0,t]}],"font-features":[{"font-features":[xe]}],"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,we,xe]}],"line-clamp":[{"line-clamp":[_e,"none",we,Fc]}],leading:[{leading:[s,...k()]}],"list-image":[{"list-image":["none",we,xe]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",we,xe]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:M()}],"text-color":[{text:M()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...X(),"wavy"]}],"text-decoration-thickness":[{decoration:[_e,"from-font","auto",we,Ln]}],"text-decoration-color":[{decoration:M()}],"underline-offset":[{"underline-offset":[_e,"auto",we,xe]}],"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:[Bt,we,xe]}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",we,xe]}],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",we,xe]}],"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:H()}],"bg-size":[{bg:$()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},Bt,we,xe],radial:["",we,xe],conic:[Bt,we,xe]},$0,F0]}],"bg-color":[{bg:M()}],"gradient-from-pos":[{from:U()}],"gradient-via-pos":[{via:U()}],"gradient-to-pos":[{to:U()}],"gradient-from":[{from:M()}],"gradient-via":[{via:M()}],"gradient-to":[{to:M()}],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:[...X(),"hidden","none"]}],"divide-style":[{divide:[...X(),"hidden","none"]}],"border-color":[{border:M()}],"border-color-x":[{"border-x":M()}],"border-color-y":[{"border-y":M()}],"border-color-s":[{"border-s":M()}],"border-color-e":[{"border-e":M()}],"border-color-bs":[{"border-bs":M()}],"border-color-be":[{"border-be":M()}],"border-color-t":[{"border-t":M()}],"border-color-r":[{"border-r":M()}],"border-color-b":[{"border-b":M()}],"border-color-l":[{"border-l":M()}],"divide-color":[{divide:M()}],"outline-style":[{outline:[...X(),"none","hidden"]}],"outline-offset":[{"outline-offset":[_e,we,xe]}],"outline-w":[{outline:["",_e,Do,Ln]}],"outline-color":[{outline:M()}],shadow:[{shadow:["","none",d,br,yr]}],"shadow-color":[{shadow:M()}],"inset-shadow":[{"inset-shadow":["none",p,br,yr]}],"inset-shadow-color":[{"inset-shadow":M()}],"ring-w":[{ring:V()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:M()}],"ring-offset-w":[{"ring-offset":[_e,Ln]}],"ring-offset-color":[{"ring-offset":M()}],"inset-ring-w":[{"inset-ring":V()}],"inset-ring-color":[{"inset-ring":M()}],"text-shadow":[{"text-shadow":["none",f,br,yr]}],"text-shadow-color":[{"text-shadow":M()}],opacity:[{opacity:[_e,we,xe]}],"mix-blend":[{"mix-blend":[...j(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":j()}],"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":[_e]}],"mask-image-linear-from-pos":[{"mask-linear-from":K()}],"mask-image-linear-to-pos":[{"mask-linear-to":K()}],"mask-image-linear-from-color":[{"mask-linear-from":M()}],"mask-image-linear-to-color":[{"mask-linear-to":M()}],"mask-image-t-from-pos":[{"mask-t-from":K()}],"mask-image-t-to-pos":[{"mask-t-to":K()}],"mask-image-t-from-color":[{"mask-t-from":M()}],"mask-image-t-to-color":[{"mask-t-to":M()}],"mask-image-r-from-pos":[{"mask-r-from":K()}],"mask-image-r-to-pos":[{"mask-r-to":K()}],"mask-image-r-from-color":[{"mask-r-from":M()}],"mask-image-r-to-color":[{"mask-r-to":M()}],"mask-image-b-from-pos":[{"mask-b-from":K()}],"mask-image-b-to-pos":[{"mask-b-to":K()}],"mask-image-b-from-color":[{"mask-b-from":M()}],"mask-image-b-to-color":[{"mask-b-to":M()}],"mask-image-l-from-pos":[{"mask-l-from":K()}],"mask-image-l-to-pos":[{"mask-l-to":K()}],"mask-image-l-from-color":[{"mask-l-from":M()}],"mask-image-l-to-color":[{"mask-l-to":M()}],"mask-image-x-from-pos":[{"mask-x-from":K()}],"mask-image-x-to-pos":[{"mask-x-to":K()}],"mask-image-x-from-color":[{"mask-x-from":M()}],"mask-image-x-to-color":[{"mask-x-to":M()}],"mask-image-y-from-pos":[{"mask-y-from":K()}],"mask-image-y-to-pos":[{"mask-y-to":K()}],"mask-image-y-from-color":[{"mask-y-from":M()}],"mask-image-y-to-color":[{"mask-y-to":M()}],"mask-image-radial":[{"mask-radial":[we,xe]}],"mask-image-radial-from-pos":[{"mask-radial-from":K()}],"mask-image-radial-to-pos":[{"mask-radial-to":K()}],"mask-image-radial-from-color":[{"mask-radial-from":M()}],"mask-image-radial-to-color":[{"mask-radial-to":M()}],"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":S()}],"mask-image-conic-pos":[{"mask-conic":[_e]}],"mask-image-conic-from-pos":[{"mask-conic-from":K()}],"mask-image-conic-to-pos":[{"mask-conic-to":K()}],"mask-image-conic-from-color":[{"mask-conic-from":M()}],"mask-image-conic-to-color":[{"mask-conic-to":M()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:L()}],"mask-repeat":[{mask:H()}],"mask-size":[{mask:$()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",we,xe]}],filter:[{filter:["","none",we,xe]}],blur:[{blur:de()}],brightness:[{brightness:[_e,we,xe]}],contrast:[{contrast:[_e,we,xe]}],"drop-shadow":[{"drop-shadow":["","none",y,br,yr]}],"drop-shadow-color":[{"drop-shadow":M()}],grayscale:[{grayscale:["",_e,we,xe]}],"hue-rotate":[{"hue-rotate":[_e,we,xe]}],invert:[{invert:["",_e,we,xe]}],saturate:[{saturate:[_e,we,xe]}],sepia:[{sepia:["",_e,we,xe]}],"backdrop-filter":[{"backdrop-filter":["","none",we,xe]}],"backdrop-blur":[{"backdrop-blur":de()}],"backdrop-brightness":[{"backdrop-brightness":[_e,we,xe]}],"backdrop-contrast":[{"backdrop-contrast":[_e,we,xe]}],"backdrop-grayscale":[{"backdrop-grayscale":["",_e,we,xe]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[_e,we,xe]}],"backdrop-invert":[{"backdrop-invert":["",_e,we,xe]}],"backdrop-opacity":[{"backdrop-opacity":[_e,we,xe]}],"backdrop-saturate":[{"backdrop-saturate":[_e,we,xe]}],"backdrop-sepia":[{"backdrop-sepia":["",_e,we,xe]}],"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",we,xe]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[_e,"initial",we,xe]}],ease:[{ease:["linear","initial",b,we,xe]}],delay:[{delay:[_e,we,xe]}],animate:[{animate:["none",v,we,xe]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[g,we,xe]}],"perspective-origin":[{"perspective-origin":w()}],rotate:[{rotate:se()}],"rotate-x":[{"rotate-x":se()}],"rotate-y":[{"rotate-y":se()}],"rotate-z":[{"rotate-z":se()}],scale:[{scale:ne()}],"scale-x":[{"scale-x":ne()}],"scale-y":[{"scale-y":ne()}],"scale-z":[{"scale-z":ne()}],"scale-3d":["scale-3d"],skew:[{skew:re()}],"skew-x":[{"skew-x":re()}],"skew-y":[{"skew-y":re()}],transform:[{transform:[we,xe,"","none","gpu","cpu"]}],"transform-origin":[{origin:w()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:G()}],"translate-x":[{"translate-x":G()}],"translate-y":[{"translate-y":G()}],"translate-z":[{"translate-z":G()}],"translate-none":["translate-none"],zoom:[{zoom:[Bt,we,xe]}],accent:[{accent:M()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:M()}],"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",we,xe]}],"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":M()}],"scrollbar-track-color":[{"scrollbar-track":M()}],"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",we,xe]}],fill:[{fill:["none",...M()]}],"stroke-w":[{stroke:[_e,Do,Ln,Fc]}],stroke:[{stroke:["none",...M()]}],"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"]}},RE=S0(B0);function ga(e){c.useEffect(e,Vt)}const _o=0;class _t{constructor(){Ue(this,"currentId",_o);Ue(this,"clear",()=>{this.currentId!==_o&&(clearTimeout(this.currentId),this.currentId=_o)});Ue(this,"disposeEffect",()=>this.clear)}static create(){return new _t}start(t,n){this.clear(),this.currentId=setTimeout(()=>{this.currentId=_o,n()},t)}isStarted(){return this.currentId!==_o}}function nt(){const e=gt(_t.create).current;return ga(e.disposeEffect),e}function W0(){return typeof navigator>"u"?{userAgent:"",platform:"",maxTouchPoints:0}:{userAgent:navigator.userAgent,platform:navigator.platform??"",maxTouchPoints:navigator.maxTouchPoints??0}}const{userAgent:U0,platform:q0,maxTouchPoints:G0}=W0(),xs=U0.toLowerCase(),Yo=q0.toLowerCase(),Ss=/^i(os$|p)/.test(Yo)||Yo==="macintel"&&G0>1,$c="android",Di=Yo===$c||xs.includes($c),ma=!Ss&&Yo.startsWith("mac");Yo.startsWith("win");const Y0=ma||Ss;var wu;const Xt=typeof CSS<"u"&&!!((wu=CSS.supports)!=null&&wu.call(CSS,"-webkit-backdrop-filter:none"));!Xt&&xs.includes("firefox");!Xt&&xs.includes("chrom");const X0=Y0,ya=/jsdom|happydom/.test(xs);function Ft(e){e.preventDefault(),e.stopPropagation()}function K0(e){return"nativeEvent"in e}function ba(e){return e.pointerType===""&&e.isTrusted?!0:Di&&e.pointerType?e.type==="click"&&e.buttons===1:e.detail===0&&!e.pointerType}function va(e){return ya?!1:!Di&&e.width===0&&e.height===0||Di&&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 yn(e,t){const n=["mouse","pen"];return t||n.push("",void 0),n.includes(e)}function Z0(e){const t=e.type;return t==="click"||t==="mousedown"||t==="keydown"||t==="keyup"}const _i="data-base-ui-focusable",Ku="input:not([type='hidden']):not([disabled]),[contenteditable]:not([contenteditable='false']),textarea:not([disabled])",ws="ArrowLeft",Rs="ArrowRight",Zu="ArrowUp",xa="ArrowDown";function pt(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&&go(n)){let r=t;for(;r;){if(e===r)return!0;r=r.parentNode||r.host}}return!1}function at(e){return"composedPath"in e?e.composedPath()[0]:e.target}function Jr(e,t){if(!Ne(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 fi(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 Q0(e){return e.matches("html,body")}function ks(e){return Ye(e)&&e.matches(Ku)}function J0(e){return(e==null?void 0:e.closest(`button,a[href],[role="button"],select,[tabindex]:not([tabindex="-1"]),${Ku}`))!=null}function Li(e){return e?e.getAttribute("role")==="combobox"&&ks(e):!1}function Qu(e){if(!e||ya)return!0;try{return e.matches(":focus-visible")}catch{return!0}}function es(e){return e?e.hasAttribute(_i)?e:e.querySelector(`[${_i}]`)||e:null}function ey(e,t){return t!=null&&!yn(t)?0:typeof e=="function"?e():e}function vn(e,t,n){const o=ey(e,n);return typeof o=="number"?o:o==null?void 0:o[t]}function Hc(e){return typeof e=="function"?e():e}function Ju(e,t){return t||e==="click"||e==="mousedown"}function ty(e){return(e==null?void 0:e.includes("mouse"))&&e!=="mousedown"}const Rt="none",$t="trigger-press",it="trigger-hover",co="trigger-focus",Cs="outside-press",jo="item-press",ed="close-press",jc="track-press",ny="input-change",xn="focus-out",or="escape-key",Fi="list-navigation",oy="keyboard",ry="drag",Sa="cancel-open",Vo="sibling-open",td="disabled",Bc="missing",Wc="initial",Es="imperative-action",sy="window-resize";function ke(e,t,n,o){let r=!1,s=!1;const i=o??Ke;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}}function nd(e,t,n){const o=Ke;return{reason:e,event:t??new Event("base-ui"),...o}}const od=c.createContext({hasProvider:!1,timeoutMs:0,delayRef:{current:0},initialDelayRef:{current:0},timeout:new _t,currentIdRef:{current:null},currentContextRef:{current:null}});function iy(e,t){e.current=t.current}function ay(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=nt();return pe(()=>{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]),Y.jsx(od.Provider,{value:c.useMemo(()=>({hasProvider:!0,delayRef:r,initialDelayRef:s,currentIdRef:i,timeoutMs:o,currentContextRef:a,timeout:l}),[o,l]),children:t})}function cy(e,t={open:!1}){const{open:n}=t,o="rootStore"in e?e.rootStore:e,r=o.useState("floatingId"),s=c.useContext(od),{currentIdRef:i,delayRef:a,timeoutMs:l,initialDelayRef:u,currentContextRef:d,hasProvider:p,timeout:f}=s,[y,h]=c.useState(!1),g=c.useRef(n);return pe(()=>{g.current=n},[n]),pe(()=>{function m(){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(h(!1),l){const b=r;return f.start(l,()=>{o.select("open")||i.current&&i.current!==b||m()}),()=>{(g.current||i.current!==b)&&f.clear()}}m()}},[n,r,i,a,l,u,d,f,o]),pe(()=>{if(!n)return;const m=d.current,b=i.current;f.clear(),d.current={onOpenChange:o.setOpen,setIsInstantPhase:h},i.current=r,a.current={open:0,close:vn(u.current,"close")},b!==null&&b!==r?(h(!0),m==null||m.setIsInstantPhase(!0),m==null||m.onOpenChange(!1,ke(Rt))):(h(!1),m==null||m.setIsInstantPhase(!1))},[n,r,o,i,a,u,d,f]),pe(()=>()=>{if(i.current===r){if(d.current=null,!g.current)return;i.current=null,iy(a,u),f.clear()}},[d,i,a,r,u,f]),c.useMemo(()=>({hasProvider:p,delayRef:a,isInstantPhase:y}),[p,a,y])}function Ae(e,t,n,o){return e.addEventListener(t,n,o),()=>{e.removeEventListener(t,n,o)}}function Yt(...e){return()=>{for(let t=0;t<e.length;t+=1){const n=e[t];n&&n()}}}function rt(e){const t=gt(ly,e).current;return t.next=e,pe(t.effect),t}function ly(e){const t={current:e,next:e,effect:()=>{t.current=t.next}};return t}const vr=null;class uy{constructor(){Ue(this,"callbacks",[]);Ue(this,"callbacksCount",0);Ue(this,"nextId",1);Ue(this,"startId",1);Ue(this,"isScheduled",!1);Ue(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 xr=new uy;class Ct{constructor(){Ue(this,"currentId",vr);Ue(this,"cancel",()=>{this.currentId!==vr&&(xr.cancel(this.currentId),this.currentId=vr)});Ue(this,"disposeEffect",()=>this.cancel)}static create(){return new Ct}static request(t){return xr.request(t)}static cancel(t){return xr.cancel(t)}request(t){this.cancel(),this.currentId=xr.request(()=>{this.currentId=vr,t()})}}function $n(){const e=gt(Ct.create).current;return ga(e.disposeEffect),e}const rd={clipPath:"inset(50%)",overflow:"hidden",whiteSpace:"nowrap",border:0,padding:0,width:1,height:1,margin:-1},Sn={...rd,position:"fixed",top:0,left:0},Ps={...rd,position:"absolute"},wn=c.forwardRef(function(t,n){const[o,r]=c.useState();pe(()=>{X0&&Xt&&r("button")},[]);const s={tabIndex:0,role:o};return Y.jsx("span",{...t,ref:n,style:Sn,"aria-hidden":o?void 0:!0,...s,"data-base-ui-focus-guard":""})}),mo=Math.min,rn=Math.max,yo=Math.round,Sr=Math.floor,sn=e=>({x:e,y:e}),dy={left:"right",right:"left",bottom:"top",top:"bottom"};function sd(e,t,n){return rn(e,mo(t,n))}function Rn(e,t){return typeof e=="function"?e(t):e}function Nt(e){return e.split("-")[0]}function Pn(e){return e.split("-")[1]}function wa(e){return e==="x"?"y":"x"}function Ra(e){return e==="y"?"height":"width"}function At(e){const t=e[0];return t==="t"||t==="b"?"y":"x"}function ka(e){return wa(At(e))}function fy(e,t,n){n===void 0&&(n=!1);const o=Pn(e),r=ka(e),s=Ra(r);let i=r==="x"?o===(n?"end":"start")?"right":"left":o==="start"?"bottom":"top";return t.reference[s]>t.floating[s]&&(i=ts(i)),[i,ts(i)]}function py(e){const t=ts(e);return[zi(e),t,zi(t)]}function zi(e){return e.includes("start")?e.replace("start","end"):e.replace("end","start")}const Uc=["left","right"],qc=["right","left"],hy=["top","bottom"],gy=["bottom","top"];function my(e,t,n){switch(e){case"top":case"bottom":return n?t?qc:Uc:t?Uc:qc;case"left":case"right":return t?hy:gy;default:return[]}}function yy(e,t,n,o){const r=Pn(e);let s=my(Nt(e),n==="start",o);return r&&(s=s.map(i=>i+"-"+r),t&&(s=s.concat(s.map(zi)))),s}function ts(e){const t=Nt(e);return dy[t]+e.slice(t.length)}function by(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 id(e){return typeof e!="number"?by(e):{top:e,right:e,bottom:e,left:e}}function Xo(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 Bo(e,t){return t<0||t>=e.length}function jr(e,t){return nn(e.current,{disabledIndices:t})}function Vi(e,t){return nn(e.current,{decrement:!0,startingIndex:e.current.length,disabledIndices:t})}function nn(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&&ns(e,s,o));return s}function ns(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?!Ms(r)||r.matches(":disabled")?!0:!n&&(r.hasAttribute("disabled")||r.getAttribute("aria-disabled")==="true"):!1}function vy(e){return e.visibility==="hidden"||e.visibility==="collapse"}function Ms(e,t=e?Pt(e):null){return!e||!e.isConnected||!t||vy(t)?!1:typeof e.checkVisibility=="function"?e.checkVisibility():t.display!=="none"&&t.display!=="contents"}const xy='a[href],button,input,select,textarea,summary,details,iframe,object,embed,[tabindex],[contenteditable]:not([contenteditable="false"]),audio[controls],video[controls]';function Sy(e){const t=e.assignedSlot;if(t)return t;if(e.parentElement)return e.parentElement;const n=e.getRootNode();return go(n)?n.host:null}function $i(e){for(const t of Array.from(e.children))if(mt(t)==="summary")return t;return null}function wy(e,t){const n=$i(t);return!!n&&(e===n||ve(n,e))}function ad(e){const t=e?mt(e):"";return e!=null&&e.matches(xy)&&(t!=="summary"||e.parentElement!=null&&mt(e.parentElement)==="details"&&$i(e.parentElement)===e)&&(t!=="details"||$i(e)==null)&&(t!=="input"||e.type!=="hidden")}function cd(e){if(!ad(e)||!e.isConnected||e.matches(":disabled"))return!1;for(let t=e;t;t=Sy(t)){const n=t!==e,o=mt(t)==="slot";if(t.hasAttribute("inert")||n&&mt(t)==="details"&&!t.open&&!wy(e,t)||t.hasAttribute("hidden")||!o&&!Ry(t,n))return!1}return!0}function Ry(e,t){const n=Pt(e);return t?n.display!=="none":Ms(e,n)}function ld(e){const t=e.tabIndex;if(t<0){const n=mt(e);if(n==="details"||n==="audio"||n==="video"||Ye(e)&&e.isContentEditable)return 0}return t}function pi(e){if(mt(e)!=="input")return null;const t=e;return t.type==="radio"&&t.name!==""?t:null}function ky(e,t){const n=pi(e);if(!n)return!0;const o=t.find(r=>{const s=pi(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=pi(r);return(s==null?void 0:s.name)===n.name&&s.form===n.form})===n}function ud(e){if(Ye(e)&&mt(e)==="slot"){const t=e.assignedElements({flatten:!0});if(t.length>0)return t}return Ye(e)&&e.shadowRoot?Array.from(e.shadowRoot.children):Array.from(e.children)}function dd(e,t){ud(e).forEach(n=>{ad(n)&&t.push(n),dd(n,t)})}function fd(e,t,n){ud(e).forEach(o=>{Ye(o)&&o.matches(t)&&n.push(o),fd(o,t,n)})}function Ca(e){return cd(e)&&ld(e)>=0}function pd(e){const t=[];return dd(e,t),t.filter(cd)}function rr(e){const t=pd(e);return t.filter(n=>ld(n)>=0&&ky(n,t))}function hd(e,t){const n=rr(e),o=n.length;if(o===0)return;const r=pt(Ie(e)),s=n.indexOf(r),i=s===-1?t===1?0:o-1:s+t;return n[i]}function Ea(e){return hd(Ie(e).body,1)||e}function gd(e){return hd(Ie(e).body,-1)||e}function md(e,t){if(!e)return null;const n=rr(Ie(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 Cy(e){return md(e,1)}function Ey(e){return md(e,-1)}function lo(e,t){const n=t||e.currentTarget,o=e.relatedTarget;return!o||!ve(n,o)}function Py(e){rr(e).forEach(n=>{n.dataset.tabindex=n.getAttribute("tabindex")||"",n.setAttribute("tabindex","-1")})}function Gc(e){const t=[];fd(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 kn(e,t,n=!0){return e.filter(r=>r.parentId===t).flatMap(r=>{var s;return[...!n||(s=r.context)!=null&&s.open?[r]:[],...kn(e,r.id,n)]})}function Yc(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 Ko(e){return`data-base-ui-${e}`}let wr=0;function Br(e,t={}){const{preventScroll:n=!1,sync:o=!1,shouldFocus:r}=t;cancelAnimationFrame(wr);function s(){r&&!r()||e==null||e.focus({preventScroll:n})}if(o)return s(),ot;const i=requestAnimationFrame(s);return wr=i,()=>{wr===i&&(cancelAnimationFrame(i),wr=0)}}const hi={inert:new WeakMap,"aria-hidden":new WeakMap},Xc="data-base-ui-inert",Hi={inert:new WeakSet,"aria-hidden":new WeakSet};let Lo=new WeakMap,gi=0;function My(e){return Hi[e]}function yd(e){return e?go(e)?e.host:yd(e.parentNode):null}const Kc=(e,t)=>t.map(n=>{if(e.contains(n))return n;const o=yd(n);return e.contains(o)?o:null}).filter(n=>n!=null),Zc=e=>{const t=new Set;return e.forEach(n=>{let o=n;for(;o&&!t.has(o);)t.add(o),o=o.parentNode}),t},Qc=(e,t,n)=>{const o=[],r=s=>{!s||n.has(s)||Array.from(s.children).forEach(i=>{mt(i)!=="script"&&(t.has(i)?r(i):o.push(i))})};return r(e),o};function Ty(e,t,n,o,{mark:r=!0}){let s=null;o?s="inert":n&&(s="aria-hidden");let i=null,a=null;const l=Kc(t,e),u=r?Qc(t,Zc(l),new Set(l)):[],d=[],p=[];if(s){const f=hi[s],y=My(s);a=y,i=f;const h=Kc(t,Array.from(t.querySelectorAll("[aria-live]"))),g=l.concat(h);Qc(t,Zc(g),new Set(g)).forEach(b=>{const v=b.getAttribute(s),x=v!==null&&v!=="false",S=(f.get(b)||0)+1;f.set(b,S),d.push(b),S===1&&x&&y.add(b),x||b.setAttribute(s,s==="inert"?"":"true")})}return r&&u.forEach(f=>{const y=(Lo.get(f)||0)+1;Lo.set(f,y),p.push(f),y===1&&f.setAttribute(Xc,"")}),gi+=1,()=>{i&&d.forEach(f=>{const h=(i.get(f)||0)-1;i.set(f,h),h||(!(a!=null&&a.has(f))&&s&&f.removeAttribute(s),a==null||a.delete(f))}),r&&p.forEach(f=>{const y=(Lo.get(f)||0)-1;Lo.set(f,y),y||f.removeAttribute(Xc)}),gi-=1,gi||(hi.inert=new WeakMap,hi["aria-hidden"]=new WeakMap,Hi.inert=new WeakSet,Hi["aria-hidden"]=new WeakSet,Lo=new WeakMap)}}function Jc(e,t={}){const{ariaHidden:n=!1,inert:o=!1,mark:r=!0}=t,s=Ie(e[0]).body;return Ty(e,s,n,o,{mark:r})}let el=0;function Iy(e,t="mui"){const[n,o]=c.useState(e),r=e||n;return c.useEffect(()=>{n==null&&(el+=1,o(`${t}-${el}`))},[n,t]),r}const tl=la.useId;function Cn(e,t){if(tl!==void 0){const n=tl();return e??(t?`${t}-${n}`:n)}return Iy(e,t)}const Oy=500,bd=500,Ay={style:{transition:"none"}},Pa="data-base-ui-click-trigger",vd={fallbackAxisSide:"none"},Ma={fallbackAxisSide:"end"},Ny={clipPath:"inset(50%)",position:"fixed",top:0,left:0},xd=c.createContext(null),Sd=()=>c.useContext(xd),Dy=Ko("portal");function wd(e={}){const{ref:t,container:n,componentProps:o=Ke,elementProps:r}=e,s=Cn(),i=Sd(),a=i==null?void 0:i.portalNode,[l,u]=c.useState(null),[d,p]=c.useState(null),f=he(m=>{m!==null&&p(m)}),y=c.useRef(null);pe(()=>{if(n===null){y.current&&(y.current=null,p(null),u(null));return}const m=(n&&(ia(n)?n:n.current))??a??document.body;if(m==null){y.current&&(y.current=null,p(null),u(null));return}y.current!==m&&(y.current=m,p(null),u(m))},[n,a]);const h=Re("div",o,{ref:[t,f],props:[{id:s,[Dy]:""},r]}),g=l&&h?Dt.createPortal(h,l):null;return{node:d,nodeId:c.isValidElement(h)?h.props.id:void 0,subtree:g}}const Ts=c.forwardRef(function(t,n){const{render:o,className:r,style:s,children:i,container:a,...l}=t,{node:u,nodeId:d,subtree:p}=wd({container:a,ref:n,componentProps:t,elementProps:l}),f=c.useRef(null),y=c.useRef(null),h=c.useRef(null),g=c.useRef(null),[m,b]=c.useState(null),v=c.useRef(!1),x=m==null?void 0:m.modal,S=m==null?void 0:m.open,w=!!m&&!m.modal&&m.open&&!!u;c.useEffect(()=>{if(!u||x)return;function C(k){u&&k.relatedTarget&&lo(k)&&(k.type==="focusin"?v.current&&(Gc(u),v.current=!1):(Py(u),v.current=!0))}return Yt(Ae(u,"focusin",C,!0),Ae(u,"focusout",C,!0))},[u,x]),pe(()=>{!u||S!==!0||!v.current||(Gc(u),v.current=!1)},[S,u]);const R=c.useMemo(()=>({beforeOutsideRef:f,afterOutsideRef:y,beforeInsideRef:h,afterInsideRef:g,portalNode:u,setFocusManagerState:b}),[u]);return Y.jsxs(c.Fragment,{children:[p,Y.jsxs(xd.Provider,{value:R,children:[w&&u&&Y.jsx(wn,{"data-type":"outside",ref:f,onFocus:C=>{var k;if(lo(C,u))(k=h.current)==null||k.focus();else{const T=m?m.domReference:null,E=gd(T);E==null||E.focus()}}}),w&&u&&Y.jsx("span",{"aria-owns":d,style:Ny}),u&&Dt.createPortal(i,u),w&&u&&Y.jsx(wn,{"data-type":"outside",ref:y,onFocus:C=>{var k;if(lo(C,u))(k=g.current)==null||k.focus();else{const T=m?m.domReference:null,E=Ea(T);E==null||E.focus(),m!=null&&m.closeOnFocusOut&&(m==null||m.onOpenChange(!1,ke(xn,C.nativeEvent)))}}})]})]})});function Rd(){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 Ta{constructor(){Ue(this,"nodesRef",{current:[]});Ue(this,"events",Rd())}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 kd=c.createContext(null),Cd=c.createContext(null),Mn=()=>{var e;return((e=c.useContext(kd))==null?void 0:e.id)||null},Tn=e=>{const t=c.useContext(Cd);return e??t};function Ia(e){const t=Cn(),n=Tn(e),o=Mn();return pe(()=>{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 Ed(e){const{children:t,id:n}=e,o=Mn();return Y.jsx(kd.Provider,{value:c.useMemo(()=>({id:n,parentId:o}),[n,o]),children:t})}function Pd(e){const{children:t,externalTree:n}=e,o=gt(()=>n??new Ta).current;return Y.jsx(Cd.Provider,{value:o,children:t})}function en(e){return e==null?e:"current"in e?e.current:e}function _y(e,t){const n=Xe(at(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 nl=20;let gn=[];function Oa(){gn=gn.filter(e=>{var t;return(t=e.deref())==null?void 0:t.isConnected})}function ol(e){Oa(),e&&mt(e)!=="body"&&(gn.push(new WeakRef(e)),gn.length>nl&&(gn=gn.slice(-nl)))}function rl(){var e;return Oa(),(e=gn[gn.length-1])==null?void 0:e.deref()}function Ly(e){return e?Ca(e)?e:rr(e)[0]||e:null}function sl(e){var r;if(e.hasAttribute("tabindex")&&!e.hasAttribute("data-tabindex")||!((r=e.getAttribute("role"))!=null&&r.includes("dialog")))return;const n=pd(e).filter(s=>{const i=s.getAttribute("data-tabindex")||"";return Ca(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 Is(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:h}=e,g="rootStore"in t?t.rootStore:t,m=g.useState("open"),b=g.useState("domReferenceElement"),v=g.useState("floatingElement"),{events:x,dataRef:S}=g.context,w=he(()=>{var ne;return(ne=S.current.floatingContext)==null?void 0:ne.nodeId}),R=r===!1,C=Li(b)&&R,k=rt(r),T=rt(s),E=rt(u),N=rt(m),O=Tn(y),D=Sd(),A=c.useRef(!1),P=c.useRef(!1),z=c.useRef(!1),F=c.useRef(null),I=c.useRef(""),_=c.useRef(""),M=c.useRef(null),L=c.useRef(null),H=Tt(M,f,D==null?void 0:D.beforeInsideRef),$=Tt(L,D==null?void 0:D.afterInsideRef),U=nt(),q=nt(),V=$n(),X=D!=null,j=es(v),K=he((ne=j)=>ne?rr(ne):[]),de=he(()=>(h==null?void 0:h().filter(ne=>ne!=null))??[]);c.useEffect(()=>{if(o||!a)return;function ne(G){G.key==="Tab"&&ve(j,pt(Ie(j)))&&K().length===0&&!C&&Ft(G)}const re=Ie(j);return Ae(re,"keydown",ne)},[o,j,a,C,K]),c.useEffect(()=>{if(o||!m)return;const ne=Ie(j);function re(){z.current=!1}function G(ge){const ue=at(ge),Z=de(),J=ve(v,ue)||ve(b,ue)||ve(D==null?void 0:D.portalNode,ue)||Z.some(ae=>ae===ue||ve(ae,ue));z.current=!J,_.current=ge.pointerType||"keyboard",ue!=null&&ue.closest(`[${Pa}]`)&&(P.current=!0,q.start(0,()=>{P.current=!1}))}function ie(){_.current="keyboard"}return Yt(Ae(ne,"pointerdown",G,!0),Ae(ne,"pointerup",re,!0),Ae(ne,"pointercancel",re,!0),Ae(ne,"keydown",ie,!0),re)},[o,v,b,j,m,D,q,de]),c.useEffect(()=>{if(o||!l)return;const ne=Ie(j);function re(){P.current=!0,q.start(0,()=>{P.current=!1})}function G(Z){const J=at(Z);Ca(J)&&(F.current=J)}function ie(Z){const J=Z.relatedTarget,ae=Z.currentTarget,ce=at(Z);a&&J==null&&ce!=null&&ve(v,ce)&&ol(ce),queueMicrotask(()=>{const oe=w(),le=g.context.triggerElements,W=de(),Q=(J==null?void 0:J.hasAttribute(Ko("focus-guard")))&&[M.current,L.current,D==null?void 0:D.beforeInsideRef.current,D==null?void 0:D.afterInsideRef.current,D==null?void 0:D.beforeOutsideRef.current,D==null?void 0:D.afterOutsideRef.current,en(p),en(d)].includes(J),fe=!(ve(b,J)||ve(v,J)||ve(J,v)||ve(D==null?void 0:D.portalNode,J)||W.some(te=>te===J||ve(te,J))||le.hasMatchingElement(te=>ve(te,J))||Q||O&&(kn(O.nodesRef.current,oe).find(te=>{var ee,me;return ve((ee=te.context)==null?void 0:ee.elements.floating,J)||ve((me=te.context)==null?void 0:me.elements.domReference,J)})||Yc(O.nodesRef.current,oe).find(te=>{var ee,me,ye;return[(ee=te.context)==null?void 0:ee.elements.floating,es((me=te.context)==null?void 0:me.elements.floating)].includes(J)||((ye=te.context)==null?void 0:ye.elements.domReference)===J})));if(ae===b&&j&&sl(j),i&&ae!==b&&!Ms(ce)&&pt(ne)===ne.body){if(Ye(j)&&(j.focus(),i==="popup")){V.request(()=>{j.focus()});return}const te=K(),ee=F.current,me=(ee&&te.includes(ee)?ee:null)||te[te.length-1]||j;Ye(me)&&me.focus()}if(S.current.insideReactTree){S.current.insideReactTree=!1;return}(C||!a)&&J&&fe&&!P.current&&(C||J!==rl())&&(A.current=!0,g.setOpen(!1,ke(xn,Z)))})}function ge(){z.current||(S.current.insideReactTree=!0,U.start(0,()=>{S.current.insideReactTree=!1}))}const ue=Ye(b)?b:null;if(!(!v&&!ue))return Yt(ue&&Ae(ue,"focusout",ie),ue&&Ae(ue,"pointerdown",re),v&&Ae(v,"focusin",G),v&&Ae(v,"focusout",ie),v&&D&&Ae(v,"focusout",ge,!0))},[o,b,v,j,a,O,D,g,l,i,K,C,w,S,U,q,V,d,p,de]),c.useEffect(()=>{var ae,ce,oe;if(o||!v||!m)return;const ne=Array.from(((ae=D==null?void 0:D.portalNode)==null?void 0:ae.querySelectorAll(`[${Ko("portal")}]`))||[]),G=(oe=(ce=(O?Yc(O.nodesRef.current,w()):[]).find(le=>{var W;return Li(((W=le.context)==null?void 0:W.elements.domReference)||null)}))==null?void 0:ce.context)==null?void 0:oe.elements.domReference,ge=[...[v,...ne,M.current,L.current,D==null?void 0:D.beforeOutsideRef.current,D==null?void 0:D.afterOutsideRef.current,...de()],G,en(p),en(d),C?b:null].filter(le=>le!=null),ue=Jc(ge,{ariaHidden:a||C,mark:!1}),Z=[v,...ne].filter(le=>le!=null),J=Jc(Z);return()=>{J(),ue()}},[m,o,b,v,a,D,C,O,w,d,p,de]),pe(()=>{if(!m||o||!Ye(j))return;I.current="",_.current="";const ne=Ie(j),re=pt(ne);queueMicrotask(()=>{const G=k.current,ie=typeof G=="function"?G(E.current||""):G;if(ie===void 0||ie===!1||ve(j,re))return;let ue=null;const Z=()=>(ue==null&&(ue=K(j)),ue[0]||j);let J;ie===!0||ie===null?J=Z():J=en(ie),J=J||Z();const ae=ve(j,pt(ne));Br(J,{preventScroll:J===j,shouldFocus(){if(!N.current)return!1;if(ae)return!0;const ce=pt(ne);return!(ce!==J&&ve(j,ce))}})})},[o,m,j,K,k,E,N]),pe(()=>{if(o||!j)return;const ne=Ie(j),re=pt(ne),G=E.current==null;ol(re);function ie(ue){if(ue.open||(I.current=_y(ue.nativeEvent,_.current)),ue.reason===it&&ue.nativeEvent.type==="mouseleave"&&(A.current=!0),ue.reason===Cs)if(ue.nested)A.current=!1;else if(ba(ue.nativeEvent)||va(ue.nativeEvent))A.current=!1;else{let Z=!1;Ie(j).createElement("div").focus({get preventScroll(){return Z=!0,!1}}),Z?A.current=!1:A.current=!0}}x.on("openchange",ie);function ge(ue){const Z=T.current;let J=typeof Z=="function"?Z(ue):Z;if(J===void 0||J===!1)return null;J===null&&(J=!0);const ae=b!=null&&b.isConnected?b:null,ce=re!=null&&re.isConnected&&mt(re)!=="body"?re:null;let oe=G?ce||ae:ae||ce;return oe||(oe=rl()||null),typeof J=="boolean"?oe:en(J)||oe||null}return()=>{x.off("openchange",ie);const ue=pt(ne),Z=de(),J=ve(v,ue)||Z.some(le=>le===ue||ve(le,ue))||O&&kn(O.nodesRef.current,w(),!1).some(le=>{var W;return ve((W=le.context)==null?void 0:W.elements.floating,ue)}),ae=T.current,ce=I.current,oe=ge(ce);queueMicrotask(()=>{const le=Ly(oe),W=typeof ae!="boolean";if(ae&&!A.current&&Ye(le)&&(!(!W&&le!==ue&&ue!==ne.body)||J)){const Q={preventScroll:!0};ce==="keyboard"&&(Q.focusVisible=!0),le.focus(Q)}A.current=!1})}},[o,v,j,T,E,x,O,b,w,de]),pe(()=>{if(!Xt||m||!v)return;const ne=pt(Ie(v));!Ye(ne)||!ks(ne)||ve(v,ne)&&ne.blur()},[m,v]),pe(()=>{if(!(o||!D))return D.setFocusManagerState({modal:a,closeOnFocusOut:l,open:m,onOpenChange:g.setOpen,domReference:b}),()=>{D.setFocusManagerState(null)}},[o,D,a,m,g,l,b]),pe(()=>{if(!(o||!j))return sl(j),()=>{queueMicrotask(Oa)}},[o,j]);const se=!o&&(a?!C:!0)&&(X||a);return Y.jsxs(c.Fragment,{children:[se&&Y.jsx(wn,{"data-type":"inside",ref:H,onFocus:ne=>{var re;if(a){const G=K();Br(G[G.length-1])}else if(D!=null&&D.portalNode)if(A.current=!1,lo(ne,D.portalNode)){const G=Ea(b);G==null||G.focus()}else(re=en(p??D.beforeOutsideRef))==null||re.focus()}}),n,se&&Y.jsx(wn,{"data-type":"inside",ref:$,onFocus:ne=>{var re;if(a)Br(K()[0]);else if(D!=null&&D.portalNode)if(l&&(A.current=!0),lo(ne,D.portalNode)){const G=gd(b);G==null||G.focus()}else(re=en(d??D.afterOutsideRef))==null||re.focus()}})]})}function Os(e,t={}){const{enabled:n=!0,event:o="click",toggle:r=!0,ignoreMouse:s=!1,stickIfOpen:i=!0,touchOpenDelay:a=0,reason:l=$t}=t,u="rootStore"in e?e.rootStore:e,d=u.context.dataRef,p=c.useRef(void 0),f=$n(),y=nt(),h=c.useMemo(()=>{function g(b,v,x,S){const w=ke(l,v,x);b&&S==="touch"&&a>0?y.start(a,()=>{u.setOpen(!0,w)}):u.setOpen(b,w)}function m(b,v,x){const S=d.current.openEvent,w=u.select("domReferenceElement")!==v;return b&&w||!b||!r?!0:S&&i?!x(S.type):!1}return{onPointerDown(b){p.current=yn(b.pointerType,!0)&&va(b.nativeEvent)?"virtual":b.pointerType},onMouseDown(b){const v=p.current,x=b.nativeEvent,S=u.select("open");if(b.button!==0||o==="click"||yn(v,!0)&&s)return;const w=m(S,b.currentTarget,k=>k==="click"||k==="mousedown"),R=at(x);if(ks(R)){g(w,x,R,v);return}const C=b.currentTarget;f.request(()=>{g(w,x,C,v)})},onClick(b){if(o==="mousedown-only")return;const v=p.current;if(o==="mousedown"&&v){p.current=void 0;return}if(yn(v,!0)&&s)return;const x=u.select("open"),S=m(x,b.currentTarget,w=>w==="click"||w==="mousedown"||w==="keydown"||w==="keyup");g(S,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:h}:Ke,[n,h])}function Fy(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 il(e){return e!=null&&e.clientX!=null}function zy(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,h]=c.useState([]),g=he(S=>{r.set("positionReference",S)}),m=he((S,w,R)=>{u.current||l.current.openEvent&&!il(l.current.openEvent)||r.set("positionReference",Fy(R??a,{x:S,y:w,axis:o,dataRef:l,pointerType:p}))}),b=he(S=>{s?d.current||(m(S.clientX,S.clientY,S.currentTarget),h([])):m(S.clientX,S.clientY,S.currentTarget)}),v=yn(p)?i:s;c.useEffect(()=>{if(!n){g(a);return}if(!v)return;function S(){var C;(C=d.current)==null||C.call(d),d.current=null}const w=Xe(i);function R(C){const k=at(C);ve(i,k)?S():m(C.clientX,C.clientY)}return!l.current.openEvent||il(l.current.openEvent)?d.current=Ae(w,"mousemove",R):g(a),S},[v,n,i,l,a,r,m,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 x=c.useMemo(()=>{function S(w){f(w.pointerType)}return{onPointerDown:S,onPointerEnter:S,onMouseMove:b,onMouseEnter:b}},[b]);return c.useMemo(()=>n?{reference:x,trigger:x}:{},[n,x])}function Vy(){return!1}function $y(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 sr(e,t={}){const{enabled:n=!0,escapeKey:o=!0,outsidePress:r=!0,outsidePressEvent:s="sloppy",referencePress:i=Vy,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=Tn(l),h=he(typeof r=="function"?r:()=>!1),g=typeof r=="function"?h:r,m=g!==!1,b=he(()=>s),{escapeKey:v,outsidePress:x}=$y(a),S=c.useRef(!1),w=c.useRef(!1),R=c.useRef(!1),C=c.useRef(!1),k=c.useRef(""),T=c.useRef(null),E=nt(),N=nt(),O=he(()=>{N.clear(),f.current.insideReactTree=!1}),D=he(H=>{var q;const $=(q=f.current.floatingContext)==null?void 0:q.nodeId;return(y?kn(y.nodesRef.current,$):[]).some(V=>{var X;return((X=V.context)==null?void 0:X.open)&&!V.context.dataRef.current[H]})}),A=he(H=>fi(H,u.select("floatingElement"))||fi(H,u.select("domReferenceElement"))),P=he(H=>{i()&&u.setOpen(!1,ke($t,H.nativeEvent))}),z=he(H=>{if(!d||!n||!o||H.key!=="Escape"||C.current||!v&&D("__escapeKeyBubbles"))return;const $=K0(H)?H.nativeEvent:H,U=ke(or,$);u.setOpen(!1,U),U.isCanceled||H.preventDefault(),!v&&!U.isPropagationAllowed&&H.stopPropagation()}),F=he(()=>{f.current.insideReactTree=!0,N.start(0,O)}),I=he(H=>{if(!d||!n||H.button!==0)return;const $=at(H.nativeEvent);ve(u.select("floatingElement"),$)&&(S.current||(S.current=!0,w.current=!1))}),_=he(H=>{!d||!n||(H.defaultPrevented||H.nativeEvent.defaultPrevented)&&S.current&&(w.current=!0)});c.useEffect(()=>{if(!d||!n)return O;f.current.__escapeKeyBubbles=v,f.current.__outsidePressBubbles=x;const H=new _t,$=new _t;function U(){H.clear(),C.current=!0}function q(){H.start(Xt?5:0,()=>{C.current=!1})}function V(){R.current=!0,$.start(0,()=>{R.current=!1})}function X(){S.current=!1,w.current=!1}function j(){const W=k.current,Q=W==="pen"||!W?"mouse":W,fe=b(),te=typeof fe=="function"?fe():fe;return typeof te=="string"?te:te[Q]}function K(W){const Q=j();return Q==="intentional"&&W.type!=="click"||Q==="sloppy"&&W.type==="click"}function de(W){var te;const Q=(te=f.current.floatingContext)==null?void 0:te.nodeId,fe=y&&kn(y.nodesRef.current,Q).some(ee=>{var me;return fi(W,(me=ee.context)==null?void 0:me.elements.floating)});return A(W)||fe}function se(W){if(K(W)){W.type!=="click"&&!A(W)&&($.clear(),R.current=!1),O();return}if(f.current.insideReactTree){O();return}const Q=at(W),fe=`[${Ko("inert")}]`,te=Ne(Q)?Q.getRootNode():null,ee=Array.from((go(te)?te:Ie(u.select("floatingElement"))).querySelectorAll(fe)),me=u.context.triggerElements;if(Q&&(me.hasElement(Q)||me.hasMatchingElement(De=>ve(De,Q))))return;let ye=Ne(Q)?Q:null;for(;ye&&!on(ye);){const De=an(ye);if(on(De)||!Ne(De))break;ye=De}if(!(ee.length&&Ne(Q)&&!Q0(Q)&&!ve(Q,u.select("floatingElement"))&&ee.every(De=>!ve(ye,De)))){if(Ye(Q)&&!("touches"in W)){const De=on(Q),Me=Pt(Q),qe=/auto|scroll/,Le=De||qe.test(Me.overflowX),ze=De||qe.test(Me.overflowY),et=Le&&Q.clientWidth>0&&Q.scrollWidth>Q.clientWidth,Te=ze&&Q.clientHeight>0&&Q.scrollHeight>Q.clientHeight,be=Me.direction==="rtl",Ve=Te&&(be?W.offsetX<=Q.offsetWidth-Q.clientWidth:W.offsetX>Q.clientWidth),Fe=et&&W.offsetY>Q.clientHeight;if(Ve||Fe)return}if(!de(W)){if(j()==="intentional"&&R.current){$.clear(),R.current=!1;return}typeof g=="function"&&!g(W)||D("__outsidePressBubbles")||(u.setOpen(!1,ke(Cs,W)),O())}}}function ne(W){j()!=="sloppy"||W.pointerType==="touch"||!u.select("open")||!n||A(W)||se(W)}function re(W){if(j()!=="sloppy"||!u.select("open")||!n||A(W))return;const Q=W.touches[0];Q&&(T.current={startTime:Date.now(),startX:Q.clientX,startY:Q.clientY,dismissOnTouchEnd:!1,dismissOnMouseDown:!0},E.start(1e3,()=>{T.current&&(T.current.dismissOnTouchEnd=!1,T.current.dismissOnMouseDown=!1)}))}function G(W,Q){const fe=at(W);if(!fe)return;const te=Ae(fe,W.type,()=>{Q(W),te()})}function ie(W){k.current="touch",G(W,re)}function ge(W){E.clear(),W.type==="pointerdown"&&(k.current=W.pointerType),!(W.type==="mousedown"&&T.current&&!T.current.dismissOnMouseDown)&&G(W,Q=>{Q.type==="pointerdown"?ne(Q):se(Q)})}function ue(W){if(!S.current)return;const Q=w.current;if(X(),j()==="intentional"){if(W.type==="pointercancel"){Q&&V();return}if(!de(W)){if(Q){V();return}typeof g=="function"&&!g(W)||($.clear(),R.current=!0,O())}}}function Z(W){if(j()!=="sloppy"||!T.current||A(W))return;const Q=W.touches[0];if(!Q)return;const fe=Math.abs(Q.clientX-T.current.startX),te=Math.abs(Q.clientY-T.current.startY),ee=Math.sqrt(fe*fe+te*te);ee>5&&(T.current.dismissOnTouchEnd=!0),ee>10&&(se(W),E.clear(),T.current=null)}function J(W){G(W,Z)}function ae(W){j()!=="sloppy"||!T.current||A(W)||(T.current.dismissOnTouchEnd&&se(W),E.clear(),T.current=null)}function ce(W){G(W,ae)}const oe=Ie(p),le=Yt(o&&Yt(Ae(oe,"keydown",z),Ae(oe,"compositionstart",U),Ae(oe,"compositionend",q)),m&&Yt(Ae(oe,"click",ge,!0),Ae(oe,"pointerdown",ge,!0),Ae(oe,"pointerup",ue,!0),Ae(oe,"pointercancel",ue,!0),Ae(oe,"mousedown",ge,!0),Ae(oe,"mouseup",ue,!0),Ae(oe,"touchstart",ie,!0),Ae(oe,"touchmove",J,!0),Ae(oe,"touchend",ce,!0)));return()=>{le(),H.clear(),$.clear(),X(),R.current=!1,O()}},[f,p,o,m,g,d,n,v,x,z,O,b,D,A,y,u,E]);const M=c.useMemo(()=>({onKeyDown:z,onPointerDown:P,onClick:P}),[z,P]),L=c.useMemo(()=>({onKeyDown:z,onPointerDown:_,onMouseDown:_,onClickCapture:F,onMouseDownCapture(H){F(),I(H)},onPointerDownCapture(H){F(),I(H)},onMouseUpCapture:F,onTouchEndCapture:F,onTouchMoveCapture:F}),[z,F,I,_]);return c.useMemo(()=>n?{reference:M,floating:L,trigger:M}:{},[n,M,L])}function al(e,t,n){let{reference:o,floating:r}=e;const s=At(t),i=ka(t),a=Ra(i),l=Nt(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 h=Pn(t);return h&&(y[i]+=f*(h==="end"?1:-1)*(n&&u?-1:1)),y}async function Hy(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}=Rn(t,e),h=id(y),m=a[f?p==="floating"?"reference":"floating":p],b=Xo(await s.getClippingRect({element:(n=await(s.isElement==null?void 0:s.isElement(m)))==null||n?m:m.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,x=await(s.getOffsetParent==null?void 0:s.getOffsetParent(a.floating)),S=await(s.isElement==null?void 0:s.isElement(x))&&await(s.getScale==null?void 0:s.getScale(x))||{x:1,y:1},w=Xo(s.convertOffsetParentRelativeRectToViewportRelativeRect?await s.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:v,offsetParent:x,strategy:l}):v);return{top:(b.top-w.top+h.top)/S.y,bottom:(w.bottom-b.bottom+h.bottom)/S.y,left:(b.left-w.left+h.left)/S.x,right:(w.right-b.right+h.right)/S.x}}const jy=50,By=async(e,t,n)=>{const{placement:o="bottom",strategy:r="absolute",middleware:s=[],platform:i}=n,a=i.detectOverflow?i:{...i,detectOverflow:Hy},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}=al(u,o,l),f=o,y=0;const h={};for(let g=0;g<s.length;g++){const m=s[g];if(!m)continue;const{name:b,fn:v}=m,{x,y:S,data:w,reset:R}=await v({x:d,y:p,initialPlacement:o,placement:f,strategy:r,middlewareData:h,rects:u,platform:a,elements:{reference:e,floating:t}});d=x??d,p=S??p,h[b]={...h[b],...w},R&&y<jy&&(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}=al(u,f,l)),g=-1)}return{x:d,y:p,placement:f,strategy:r,middlewareData:h}},Wy=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:h="none",flipAlignment:g=!0,...m}=Rn(e,t);if((n=s.arrow)!=null&&n.alignmentOffset)return{};const b=Nt(r),v=At(a),x=Nt(a)===a,S=await(l.isRTL==null?void 0:l.isRTL(u.floating)),w=f||(x||!g?[ts(a)]:py(a)),R=h!=="none";!f&&R&&w.push(...yy(a,g,h,S));const C=[a,...w],k=await l.detectOverflow(t,m),T=[];let E=((o=s.flip)==null?void 0:o.overflows)||[];if(d&&T.push(k[b]),p){const A=fy(r,i,S);T.push(k[A[0]],k[A[1]])}if(E=[...E,{placement:r,overflows:T}],!T.every(A=>A<=0)){var N,O;const A=(((N=s.flip)==null?void 0:N.index)||0)+1,P=C[A];if(P&&(!(p==="alignment"?v!==At(P):!1)||E.every(I=>At(I.placement)===v?I.overflows[0]>0:!0)))return{data:{index:A,overflows:E},reset:{placement:P}};let z=(O=E.filter(F=>F.overflows[0]<=0).sort((F,I)=>F.overflows[1]-I.overflows[1])[0])==null?void 0:O.placement;if(!z)switch(y){case"bestFit":{var D;const F=(D=E.filter(I=>{if(R){const _=At(I.placement);return _===v||_==="y"}return!0}).map(I=>[I.placement,I.overflows.filter(_=>_>0).reduce((_,M)=>_+M,0)]).sort((I,_)=>I[1]-_[1])[0])==null?void 0:D[0];F&&(z=F);break}case"initialPlacement":z=a;break}if(r!==z)return{reset:{placement:z}}}return{}}}},Md=new Set(["left","top"]);async function Uy(e,t){const{placement:n,platform:o,elements:r}=e,s=await(o.isRTL==null?void 0:o.isRTL(r.floating)),i=Nt(n),a=Pn(n),l=At(n)==="y",u=Md.has(i)?-1:1,d=s&&l?-1:1,p=Rn(t,e);let{mainAxis:f,crossAxis:y,alignmentAxis:h}=typeof p=="number"?{mainAxis:p,crossAxis:0,alignmentAxis:null}:{mainAxis:p.mainAxis||0,crossAxis:p.crossAxis||0,alignmentAxis:p.alignmentAxis};return a&&typeof h=="number"&&(y=a==="end"?h*-1:h),l?{x:y*d,y:f*u}:{x:f*u,y:y*d}}const qy=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 Uy(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}}}}},Gy=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,y:S}=v;return{x,y:S}}},...u}=Rn(e,t),d={x:n,y:o},p=await s.detectOverflow(t,u),f=At(r),y=wa(f);let h=d[y],g=d[f];const m=(v,x)=>sd(x+p[v==="y"?"top":"left"],x,x-p[v==="y"?"bottom":"right"]);i&&(h=m(y,h)),a&&(g=m(f,g));const b=l.fn({...t,[y]:h,[f]:g});return{...b,data:{x:b.x-n,y:b.y-o,enabled:{[y]:i,[f]:a}}}}}},Yy=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}=Rn(e,t),f={x:r,y:s},y=At(i),h=wa(y);let g=f[h],m=f[y];const b=Rn(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 w=h==="y"?"height":"width",R=a.reference[h]-a.floating[w]+v.mainAxis,C=a.reference[h]+a.reference[w]-v.mainAxis;g<R?g=R:g>C&&(g=C)}if(p){var x,S;const w=h==="y"?"width":"height",R=Md.has(Nt(i)),C=a.reference[y]-a.floating[w]+(R&&((x=l.offset)==null?void 0:x[y])||0)+(R?0:v.crossAxis),k=a.reference[y]+a.reference[w]+(R?0:((S=l.offset)==null?void 0:S[y])||0)-(R?v.crossAxis:0);m<C?m=C:m>k&&(m=k)}return{[h]:g,[y]:m}}}},Xy=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}=Rn(e,t),l=await r.detectOverflow(t,a),u=Nt(n),d=Pn(n),p=At(n)==="y",{width:f,height:y}=o.floating;let h,g;u==="top"||u==="bottom"?(h=u,g=d===(await(r.isRTL==null?void 0:r.isRTL(s.floating))?"start":"end")?"left":"right"):(g=u,h=d==="end"?"top":"bottom");const m=y-l.top-l.bottom,b=f-l.left-l.right,v=mo(y-l[h],m),x=mo(f-l[g],b),S=t.middlewareData.shift,w=!S;let R=v,C=x;S!=null&&S.enabled.x&&(C=b),S!=null&&S.enabled.y&&(R=m),w&&!d&&(p?C=f-2*rn(l.left,l.right):R=y-2*rn(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 Td(e){const t=Pt(e);let n=parseFloat(t.width)||0,o=parseFloat(t.height)||0;const r=Ye(e),s=r?e.offsetWidth:n,i=r?e.offsetHeight:o,a=yo(n)!==s||yo(o)!==i;return a&&(n=s,o=i),{width:n,height:o,$:a}}function Aa(e){return Ne(e)?e:e.contextElement}function uo(e){const t=Aa(e);if(!Ye(t))return sn(1);const n=t.getBoundingClientRect(),{width:o,height:r,$:s}=Td(t);let i=(s?yo(n.width):n.width)/o,a=(s?yo(n.height):n.height)/r;return(!i||!Number.isFinite(i))&&(i=1),(!a||!Number.isFinite(a))&&(a=1),{x:i,y:a}}const Ky=sn(0);function Id(e){const t=Xe(e);return!ca()||!t.visualViewport?Ky:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function Zy(e,t,n){return t===void 0&&(t=!1),!!n&&t&&n===Xe(e)}function Hn(e,t,n,o){t===void 0&&(t=!1),n===void 0&&(n=!1);const r=e.getBoundingClientRect(),s=Aa(e);let i=sn(1);t&&(o?Ne(o)&&(i=uo(o)):i=uo(e));const a=Zy(s,n,o)?Id(s):sn(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=Xe(s),y=Ne(o)?Xe(o):o;let h=f,g=Oi(h);for(;g&&y!==h;){const m=uo(g),b=g.getBoundingClientRect(),v=Pt(g),x=b.left+(g.clientLeft+parseFloat(v.paddingLeft))*m.x,S=b.top+(g.clientTop+parseFloat(v.paddingTop))*m.y;l*=m.x,u*=m.y,d*=m.x,p*=m.y,l+=x,u+=S,h=Xe(g),g=Oi(h)}}return Xo({width:d,height:p,x:l,y:u})}function As(e,t){const n=bs(e).scrollLeft;return t?t.left+n:Hn(un(e)).left+n}function Od(e,t){const n=e.getBoundingClientRect(),o=n.left+t.scrollLeft-As(e,n),r=n.top+t.scrollTop;return{x:o,y:r}}function Qy(e){let{elements:t,rect:n,offsetParent:o,strategy:r}=e;const s=r==="fixed",i=un(o),a=t?ys(t.floating):!1;if(o===i||a&&s)return n;let l={scrollLeft:0,scrollTop:0},u=sn(1);const d=sn(0),p=Ye(o);if((p||!s)&&((mt(o)!=="body"||nr(i))&&(l=bs(o)),p)){const y=Hn(o);u=uo(o),d.x=y.x+o.clientLeft,d.y=y.y+o.clientTop}const f=i&&!p&&!s?Od(i,l):sn(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 Jy(e){return e.getClientRects?Array.from(e.getClientRects()):[]}function eb(e){const t=bs(e),n=e.ownerDocument.body,o=rn(e.scrollWidth,e.clientWidth,n.scrollWidth,n.clientWidth),r=rn(e.scrollHeight,e.clientHeight,n.scrollHeight,n.clientHeight);let s=-t.scrollLeft+As(e);const i=-t.scrollTop;return Pt(n).direction==="rtl"&&(s+=rn(e.clientWidth,n.clientWidth)-o),{width:o,height:r,x:s,y:i}}const tb=25;function nb(e,t,n){n===void 0&&(n="viewport");const o=n==="layoutViewport",r=Xe(e),s=un(e),i=r.visualViewport;let a=s.clientWidth,l=s.clientHeight,u=0,d=0;if(i){const f=!ca()||t==="fixed";o?f||(u=-i.offsetLeft,d=-i.offsetTop):(a=i.width,l=i.height,f&&(u=i.offsetLeft,d=i.offsetTop))}if(As(s)<=0){const f=s.ownerDocument,y=f.body,h=getComputedStyle(y),g=f.compatMode==="CSS1Compat"&&parseFloat(h.marginLeft)+parseFloat(h.marginRight)||0,m=Math.abs(s.clientWidth-y.clientWidth-g),b=getComputedStyle(s).scrollbarGutter==="stable both-edges"?m/2:m;b<=tb&&(a-=b)}return{width:a,height:l,x:u,y:d}}function ob(e,t){const n=Hn(e,!0,t==="fixed"),o=n.top+e.clientTop,r=n.left+e.clientLeft,s=uo(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 cl(e,t,n){let o;if(t==="viewport"||t==="layoutViewport")o=nb(e,n,t);else if(t==="document")o=eb(un(e));else if(Ne(t))o=ob(t,n);else{const r=Id(e);o={x:t.x-r.x,y:t.y-r.y,width:t.width,height:t.height}}return Xo(o)}function rb(e,t){const n=t.get(e);if(n)return n;let o=Go(e,[],!1).filter(a=>Ne(a)&&mt(a)!=="body"),r=null;const s=Pt(e).position==="fixed";let i=s?an(e):e;for(;Ne(i)&&!on(i);){const a=Pt(i),l=aa(i),u=r?r.position:s?"fixed":"";!l&&(u==="fixed"||u==="absolute"&&a.position==="static")?o=o.filter(p=>p!==i):r=a,i=an(i)}return t.set(e,o),o}function sb(e){let{element:t,boundary:n,rootBoundary:o,strategy:r}=e;const i=[...n==="clippingAncestors"?ys(t)?[]:rb(t,this._c):[].concat(n),o],a=cl(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=cl(t,i[f],r);l=rn(y.top,l),u=mo(y.right,u),d=mo(y.bottom,d),p=rn(y.left,p)}return{width:u-p,height:d-l,x:p,y:l}}function ib(e){const{width:t,height:n}=Td(e);return{width:t,height:n}}function ab(e,t,n){const o=Ye(t),r=un(t),s=n==="fixed",i=Hn(e,!0,s,t);let a={scrollLeft:0,scrollTop:0};const l=sn(0);if((o||!s)&&((mt(t)!=="body"||nr(r))&&(a=bs(t)),o)){const f=Hn(t,!0,s,t);l.x=f.x+t.clientLeft,l.y=f.y+t.clientTop}!o&&r&&(l.x=As(r));const u=r&&!o&&!s?Od(r,a):sn(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 mi(e){return Pt(e).position==="static"}function ll(e,t){if(!Ye(e)||Pt(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return un(e)===n&&(n=n.ownerDocument.body),n}function Ad(e,t){const n=Xe(e);if(ys(e))return n;if(!Ye(e)){let r=an(e);for(;r&&!on(r);){if(Ne(r)&&!mi(r))return r;r=an(r)}return n}let o=ll(e,t);for(;o&&P1(o)&&mi(o);)o=ll(o,t);return o&&on(o)&&mi(o)&&!aa(o)?n:o||I1(e)||n}const cb=async function(e){const t=this.getOffsetParent||Ad,n=this.getDimensions,o=await n(e.floating);return{reference:ab(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:o.width,height:o.height}}};function lb(e){return Pt(e).direction==="rtl"}const Nd={convertOffsetParentRelativeRectToViewportRelativeRect:Qy,getDocumentElement:un,getClippingRect:sb,getOffsetParent:Ad,getElementRects:cb,getClientRects:Jy,getDimensions:ib,getScale:uo,isElement:Ne,isRTL:lb};function Dd(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function ub(e,t,n){let o=null,r;const s=un(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:h,width:g,height:m}=f;if(d||t(),!g||!m)return;const b=Sr(h),v=Sr(s.clientWidth-(y+g)),x=Sr(s.clientHeight-(h+m)),S=Sr(y),R={rootMargin:-b+"px "+-v+"px "+-x+"px "+-S+"px",threshold:rn(0,mo(1,p))||1};let C=!0;function k(T){const E=T[0].intersectionRatio;if(!Dd(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=Xe(e),u=()=>a(n);return l.addEventListener("resize",u),a(!0),()=>{l.removeEventListener("resize",u),i()}}function ul(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=Aa(e),d=r||s?[...u?Go(u):[],...t?Go(t):[]]:[];d.forEach(b=>{r&&b.addEventListener("scroll",n),s&&b.addEventListener("resize",n)});const p=u&&a?ub(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 x;(x=y)==null||x.observe(t)})),n()}),u&&!l&&y.observe(u),t&&y.observe(t));let h,g=l?Hn(e):null;l&&m();function m(){const b=Hn(e);g&&!Dd(g,b)&&n(),g=b,h=requestAnimationFrame(m)}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(h)}}const db=qy,fb=Gy,pb=Wy,hb=Xy,gb=Yy,mb=(e,t,n)=>{const o=new Map,r=n??{},s={...Nd,...r.platform,_c:o};return By(e,t,{...r,platform:s})};var yb=typeof document<"u",bb=function(){},Wr=yb?c.useLayoutEffect:bb;function os(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(!os(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)&&!os(e[s],t[s]))return!1}return!0}return e!==e&&t!==t}function _d(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function dl(e,t){const n=_d(e);return Math.round(t*n)/n}function yi(e){const t=c.useRef(e);return Wr(()=>{t.current=e}),t}function vb(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);os(f,o)||y(o);const[h,g]=c.useState(null),[m,b]=c.useState(null),v=c.useCallback(I=>{I!==R.current&&(R.current=I,g(I))},[]),x=c.useCallback(I=>{I!==C.current&&(C.current=I,b(I))},[]),S=s||h,w=i||m,R=c.useRef(null),C=c.useRef(null),k=c.useRef(d),T=l!=null,E=yi(l),N=yi(r),O=yi(u),D=c.useCallback(()=>{if(!R.current||!C.current)return;const I={placement:t,strategy:n,middleware:f};N.current&&(I.platform=N.current),mb(R.current,C.current,I).then(_=>{const M={..._,isPositioned:O.current!==!1};A.current&&!os(k.current,M)&&(k.current=M,Dt.flushSync(()=>{p(M)}))})},[f,t,n,N,O]);Wr(()=>{u===!1&&k.current.isPositioned&&(k.current.isPositioned=!1,p(I=>({...I,isPositioned:!1})))},[u]);const A=c.useRef(!1);Wr(()=>(A.current=!0,()=>{A.current=!1}),[]),Wr(()=>{if(S&&(R.current=S),w&&(C.current=w),S&&w){if(E.current)return E.current(S,w,D);D()}},[S,w,D,E,T]);const P=c.useMemo(()=>({reference:R,floating:C,setReference:v,setFloating:x}),[v,x]),z=c.useMemo(()=>({reference:S,floating:w}),[S,w]),F=c.useMemo(()=>{const I={position:n,left:0,top:0};if(!z.floating)return I;const _=dl(z.floating,d.x),M=dl(z.floating,d.y);return a?{...I,transform:"translate("+_+"px, "+M+"px)",..._d(z.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:_,top:M}},[n,a,z.floating,d.x,d.y]);return c.useMemo(()=>({...d,update:D,refs:P,elements:z,floatingStyles:F}),[d,D,P,z,F])}const xb=(e,t)=>{const n=db(e);return{name:n.name,fn:n.fn,options:[e,t]}},Sb=(e,t)=>{const n=fb(e);return{name:n.name,fn:n.fn,options:[e,t]}},wb=(e,t)=>({fn:gb(e).fn,options:[e,t]}),Rb=(e,t)=>{const n=pb(e);return{name:n.name,fn:n.fn,options:[e,t]}},kb=(e,t)=>{const n=hb(e);return{name:n.name,fn:n.fn,options:[e,t]}};var bi={exports:{}},vi={};/**
|
|
832
902
|
* @license React
|
|
833
903
|
* use-sync-external-store-shim.production.js
|
|
834
904
|
*
|
|
@@ -836,7 +906,7 @@ var uh=Object.defineProperty;var Cc=e=>{throw TypeError(e)};var dh=(e,t,n)=>t in
|
|
|
836
906
|
*
|
|
837
907
|
* This source code is licensed under the MIT license found in the
|
|
838
908
|
* LICENSE file in the root directory of this source tree.
|
|
839
|
-
*/var fl;function
|
|
909
|
+
*/var fl;function Cb(){if(fl)return vi;fl=1;var e=Ru();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(),h=o({inst:{value:y,getSnapshot:f}}),g=h[0].inst,m=h[1];return s(function(){g.value=y,g.getSnapshot=f,l(g)&&m({inst:g})},[p,y,f]),r(function(){return l(g)&&m({inst:g}),p(function(){l(g)&&m({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 vi.useSyncExternalStore=e.useSyncExternalStore!==void 0?e.useSyncExternalStore:d,vi}var pl;function Ld(){return pl||(pl=1,bi.exports=Cb()),bi.exports}var Ns=Ld(),xi={exports:{}},Si={};/**
|
|
840
910
|
* @license React
|
|
841
911
|
* use-sync-external-store-shim/with-selector.production.js
|
|
842
912
|
*
|
|
@@ -844,8 +914,8 @@ var uh=Object.defineProperty;var Cc=e=>{throw TypeError(e)};var dh=(e,t,n)=>t in
|
|
|
844
914
|
*
|
|
845
915
|
* This source code is licensed under the MIT license found in the
|
|
846
916
|
* LICENSE file in the root directory of this source tree.
|
|
847
|
-
*/var hl;function fb(){if(hl)return Si;hl=1;var e=Ru(),t=_d();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 Si.useSyncExternalStoreWithSelector=function(u,d,p,f,y){var h=s(null);if(h.current===null){var g={hasValue:!1,value:null};h.current=g}else g=h.current;h=a(function(){function b(R){if(!v){if(v=!0,x=R,R=f(R),y!==void 0&&g.hasValue){var C=g.value;if(y(C,R))return S=C}return S=R}if(C=S,o(x,R))return C;var k=f(R);return y!==void 0&&y(C,k)?(x=R,C):(x=R,S=k)}var v=!1,x,S,w=p===void 0?null:p;return[function(){return b(d())},w===null?void 0:function(){return b(w())}]},[d,p,f,y]);var m=r(u,h[0],h[1]);return i(function(){g.hasValue=!0,g.value=m},[m]),l(m),m},Si}var gl;function pb(){return gl||(gl=1,xi.exports=fb()),xi.exports}var hb=pb();const ji=[];let Bi;function gb(){return Bi}function mb(e){ji.push(e)}function Na(e){const t=(n,o)=>{const r=gt(yb).current;let s;try{Bi=r;for(const i of ji)i.before(r);s=e(n,o);for(const i of ji)i.after(r);r.didInitialize=!0}finally{Bi=void 0}return s};return t.displayName=e.displayName||e.name,t}function Fd(e){return c.forwardRef(Na(e))}function yb(){return{didInitialize:!1}}const bb=fa(19),vb=bb?Sb:wb;function Ee(e,t,n,o,r){return vb(e,t,n,o,r)}function xb(e,t,n,o,r){const s=c.useCallback(()=>t(e.getSnapshot(),n,o,r),[e,t,n,o,r]);return Ns.useSyncExternalStore(e.subscribe,s,s)}mb({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()}}),Ns.useSyncExternalStore(e.subscribe,e.getSnapshot,e.getSnapshot))}});function Sb(e,t,n,o,r){const s=gb();if(!s)return xb(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 wb(e,t,n,o,r){return hb.useSyncExternalStoreWithSelector(e.subscribe,e.getSnapshot,e.getSnapshot,s=>t(s,n,o,r))}class Rb{constructor(t){Ue(this,"subscribe",t=>(this.listeners.add(t),()=>{this.listeners.delete(t)}));Ue(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 Ee(this,t,n,o,r)}}class ko extends Rb{constructor(t,n={},o){super(t),this.context=n,this.selectors=o}useSyncedValue(t,n){c.useDebugValue(t);const o=this;pe(()=>{o.state[t]!==n&&o.set(t,n)},[o,t,n])}useSyncedValueWithCleanup(t,n){const o=this;pe(()=>(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);pe(()=>{n.update(t)},[n,...o])}useControlledProp(t,n){c.useDebugValue(t);const o=this,r=n!==void 0;pe(()=>{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),Ee(this,this.selectors[t],n,o,r)}useContextCallback(t,n){c.useDebugValue(t);const o=he(n??ot);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 kb(){const[,e]=c.useState({});return c.useCallback(()=>{e({})},[])}const Cb={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 Ds extends ko{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:Rd(),nested:r,triggerElements:i},Cb);Ue(this,"syncOpenEvent",(n,o)=>{(!n||!this.state.open||o!=null&&F0(o))&&(this.context.dataRef.current.openEvent=n?o:void 0)});Ue(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)});Ue(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 zd(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 Ds({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),pe(()=>{const h={open:a,floatingId:r,referenceElement:l,floatingElement:u};Ne(l)&&(h.domReferenceElement=l),y.state.positionReference===y.state.referenceElement&&(h.positionReference=l),y.update(h)},[a,r,l,u,y]),y.context.onOpenChange=p,y.context.nested=s,y}function In(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),pe(()=>{if(!e&&s&&o!=="ending"&&n){const a=Ct.request(()=>{r("ending")});return()=>{Ct.cancel(a)}}},[e,s,o,n]),pe(()=>{if(!e||t)return;const a=Ct.request(()=>{r(void 0)});return()=>{Ct.cancel(a)}},[t,e]),pe(()=>{if(!e||!t)return;e&&s&&o!=="idle"&&r("starting");const a=Ct.request(()=>{r("idle")});return()=>{Ct.cancel(a)}},[t,e,s,o]),{mounted:s,setMounted:i,transitionStatus:o}}function Ls(e,t=!1){const n=$n();return he((o,r=null)=>{n.cancel();const s=en(e);if(s==null)return;const i=s,a=()=>{Dt.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 It(e){const{enabled:t=!0,open:n,ref:o,onComplete:r}=e,s=he(r),i=Ls(o,n);c.useEffect(()=>{if(!t)return;const a=new AbortController;return i(s,a.signal),()=>{a.abort()}},[t,n,s,i])}const ir={tabIndex:-1,[Li]:""};function Vd(e){return t=>t==="touch"?e.current:!0}function Da(e,t=!1){const n=Cn(),o=Mn()!=null,r=gt(()=>e(n,o)).current;return zd({popupStore:r,treatPopupAsFloatingElement:t,floatingRootContext:r.state.floatingRootContext,floatingId:n,nested:o,onOpenChange:r.setOpen}),r}function _s({handle:e,store:t}){return pe(()=>e.attachStore(t),[e,t]),null}function Eb(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 Fs(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 La(e){let t=!1;return e.preventUnmountOnClose=()=>{t=!0},()=>t}function Pb(e,t,n,o={}){var d,p,f;const r=n.reason,s=r===it,i=t&&r===co,a=!t&&(r===$t||r===or),l=La(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),Fs(y,t,n.trigger,l()),e.update(y)};s?Dt.flushSync(u):u()}function zs(e,t,n,o){const r=n.useState("isMountedByTrigger",e),s=Eb(e,n),i=he(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 pe(()=>{r&&n.update({activeTriggerElement:t.current,...o})},[r,n,t,...Object.values(o)]),{registerTrigger:a,isMountedByThisTrigger:r}}function Vs(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");pe(()=>{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,h]of e.context.triggerElements.entries())if(h===e.state.activeTriggerElement){u.activeTriggerId=y,u.activeTriggerElement=h,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,h]=f.value;u.activeTriggerId=y,u.activeTriggerElement=h,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 $s(e,t,n){const{mounted:o,setMounted:r,transitionStatus:s}=In(e),i=t.useState("preventUnmountingOnClose"),a=e?!1:i;t.useSyncedValues({mounted:o,transitionStatus:s,preventUnmountingOnClose:a});const l=he(()=>{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 It({enabled:o&&!e&&!a,open:e,ref:t.context.popupRef,onComplete(){e||l()}}),{forceUnmount:l,transitionStatus:s}}function Hs(e,t){e.useSyncedValues(t),pe(()=>()=>{e.update({activeTriggerProps:Ke,inactiveTriggerProps:Ke,popupProps:Ke})},[e])}function $d(e,t){pe(()=>{!t&&e.state.openMethod!==null&&e.set("openMethod",null)},[t,e]),pe(()=>()=>{e.state.openMethod!==null&&e.set("openMethod",null)},[e])}class Co{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 Mb(){return new Ds({open:!1,transitionStatus:void 0,floatingElement:null,referenceElement:null,triggerElements:new Co,floatingId:void 0,syncOnly:!1,nested:!1,onOpenChange:void 0})}function js(){return{open:!1,openProp:void 0,mounted:!1,transitionStatus:void 0,floatingRootContext:Mb(),floatingId:void 0,triggerCount:0,preventUnmountingOnClose:!1,payload:void 0,activeTriggerId:null,activeTriggerElement:null,triggerIdProp:void 0,popupElement:null,positionerElement:null,activeTriggerProps:Ke,inactiveTriggerProps:Ke,popupProps:Ke}}function _a(e,t,n=!1){return new Ds({open:!1,transitionStatus:void 0,floatingElement:null,referenceElement:null,triggerElements:e,floatingId:t,syncOnly:!0,nested:n,onOpenChange:void 0})}const Wo=e=>e.triggerIdProp??e.activeTriggerId,Fa=e=>e.openProp??e.open,ml=e=>{var n;return(((n=e.popupElement)==null?void 0:n.id)??e.floatingId)||void 0};function Hd(e,t){return t!==void 0&&Fa(e)&&Wo(e)===t}function Tb(e,t){return Hd(e,t)?!0:t!==void 0&&Fa(e)&&Wo(e)==null&&e.triggerCount===1}const Bs={open:Fa,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:Wo,activeTriggerElement:e=>e.mounted?e.activeTriggerElement:null,popupId:ml,isTriggerActive:(e,t)=>t!==void 0&&Wo(e)===t,isOpenedByTrigger:(e,t)=>Hd(e,t),isMountedByTrigger:(e,t)=>t!==void 0&&Wo(e)===t&&e.mounted,triggerProps:(e,t)=>t?e.activeTriggerProps:e.inactiveTriggerProps,triggerPopupId:(e,t)=>Tb(e,t)?ml(e):void 0,popupProps:e=>e.popupProps,popupElement:e=>e.popupElement,positionerElement:e=>e.positionerElement};function Ws(e){const t=c.useCallback(o=>e===void 0?ot:e.subscribeStore(o),[e]),n=c.useCallback(()=>e===void 0?void 0:e.store,[e]);return Ns.useSyncExternalStore(t,n,()=>e==null?void 0:e.serverStore)}function Ib(e){const{open:t=!1,onOpenChange:n,elements:o={}}=e,r=Cn(),s=Mn()!=null,i=gt(()=>new Ds({open:t,transitionStatus:void 0,onOpenChange:n,referenceElement:o.reference??null,floatingElement:o.floating??null,triggerElements:new Co,floatingId:r,syncOnly:!1,nested:s})).current;return pe(()=>{const a={open:t,floatingId:r};o.reference!==void 0&&(a.referenceElement=o.reference,a.domReferenceElement=Ne(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 Ob(e){return Ab(e,e.rootContext)}function Ab(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,h]=c.useState(void 0),g=c.useRef(null),m=Tn(o),b=c.useMemo(()=>({reference:r,floating:s,domReference:i}),[r,s,i]),v=sb({...e,elements:{...b,...u&&{reference:u}}}),x=Ne(p)?p:null,S=y===void 0?t.state.floatingElement:y;t.useSyncedValue("referenceElement",p??null),t.useSyncedValue("domReferenceElement",p===void 0?i:x),t.useSyncedValue("floatingElement",S);const w=c.useCallback(N=>{const O=Ne(N)?{getBoundingClientRect:()=>N.getBoundingClientRect(),getClientRects:()=>N.getClientRects(),contextElement:N}:N;d(O),v.refs.setReference(O)},[v.refs]),R=c.useCallback(N=>{(Ne(N)||N===null)&&(g.current=N,f(N)),(Ne(v.refs.reference.current)||v.refs.reference.current===null||N!==null&&!Ne(N))&&v.refs.setReference(N)},[v.refs,f]),C=c.useCallback(N=>{h(N),v.refs.setFloating(N)},[v.refs]),k=c.useMemo(()=>({...v.refs,setReference:R,setFloating:C,setPositionReference:w,domReference:g}),[v.refs,R,C,w]),T=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:T,nodeId:n,rootStore:t}),[v,k,T,n,t,a,l]);return pe(()=>{i&&(g.current=i)},[i]),pe(()=>{t.context.dataRef.current.floatingContext=E;const N=m==null?void 0:m.nodesRef.current.find(O=>O.id===n);N&&(N.context=E)}),c.useMemo(()=>({...v,context:E,refs:k,elements:T,rootStore:t}),[v,k,T,E,t])}const wi=ma&&Xt;function jd(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=nt();c.useEffect(()=>{const f=r.select("domReferenceElement");if(!n)return;const y=Xe(f);function h(){const b=r.select("domReferenceElement");!r.select("open")&&Ye(b)&&b===pt(Ie(b))&&(a.current=!0)}function g(){u.current=!0}function m(){u.current=!1}return Yt(Ae(y,"blur",h),wi&&Ae(y,"keydown",g,!0),wi&&Ae(y,"pointerdown",m,!0))},[r,n]),c.useEffect(()=>{if(!n)return;function f(y){if(y.reason===$t||y.reason===or){const h=r.select("domReferenceElement");Ne(h)&&(l.current=h,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 h=y.currentTarget;if(a.current){if(l.current===h)return;f()}const g=at(y.nativeEvent);if(Ne(g)){if(wi&&!y.relatedTarget){if(!u.current&&!ks(g))return}else if(!Qu(g))return}const m=Jr(y.relatedTarget,r.context.triggerElements),{nativeEvent:b,currentTarget:v}=y,x=typeof o=="function"?o():o;if(r.select("open")&&m||x===0||x===void 0){r.setOpen(!0,ke(co,b,v));return}d.start(x,()=>{a.current||r.setOpen(!0,ke(co,b,v))})},onBlur(y){f();const h=y.relatedTarget,g=y.nativeEvent,m=Ne(h)&&h.hasAttribute(Ko("focus-guard"))&&h.getAttribute("data-type")==="outside";d.start(0,()=>{var S;const b=r.select("domReferenceElement"),v=pt(Ie(b));!h&&v===b||ve((S=i.current.floatingContext)==null?void 0:S.refs.floating.current,v)||ve(b,v)||m||Jr(h??v,r.context.triggerElements)||r.setOpen(!1,ke(co,g))})}}},[i,o,r,d]);return c.useMemo(()=>n?{reference:p,trigger:p}:{},[n,p])}class za{constructor(){Ue(this,"dispose",()=>{this.openChangeTimeout.clear(),this.restTimeout.clear()});Ue(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 za}}const rs=new WeakMap;function ss(e){var n,o,r;if(!e.performedPointerEventsMutation)return;const t=e.pointerEventsScopeElement;t&&rs.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"),rs.delete(t)),e.performedPointerEventsMutation=!1,e.pointerEventsScopeElement=null,e.pointerEventsReferenceElement=null,e.pointerEventsFloatingElement=null}function Bd(e,t){const{scopeElement:n,referenceElement:o,floatingElement:r}=t,s=rs.get(n);s&&s!==e&&ss(s),ss(e),e.performedPointerEventsMutation=!0,e.pointerEventsScopeElement=n,e.pointerEventsReferenceElement=o,e.pointerEventsFloatingElement=r,rs.set(n,e),n.style.pointerEvents="none",o.style.pointerEvents="auto",r.style.pointerEvents="auto"}function Va(e){const t=e.context.dataRef.current,n=gt(()=>t.hoverInteractionState??za.create()).current;return t.hoverInteractionState||(t.hoverInteractionState=n),ga(t.hoverInteractionState.disposeEffect),t.hoverInteractionState}function $a(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=Tn(),p=Mn(),f=Va(s),y=nt(),h=he(()=>{var b;return Ju((b=u.current.openEvent)==null?void 0:b.type,f.interactedInside)}),g=he(()=>{var b;return H0((b=u.current.openEvent)==null?void 0:b.type)}),m=he(()=>{ss(f)});pe(()=>{i||(f.pointerType=void 0,f.restTimeoutPending=!1,f.interactedInside=!1,m())},[i,f,m]),c.useEffect(()=>m,[m]),pe(()=>{var b,v,x,S,w;if(n&&i&&(b=f.handleCloseOptions)!=null&&b.blockPointerEvents&&g()&&Ne(l)&&a){const R=l,C=a,k=Ie(a),T=(x=(v=d==null?void 0:d.nodesRef.current.find(D=>D.id===p))==null?void 0:v.context)==null?void 0:x.elements.floating;T&&(T.style.pointerEvents="");const E=f.pointerEventsScopeElement!==C?f.pointerEventsScopeElement:null,N=T!==C?T:null,O=((w=(S=f.handleCloseOptions)==null?void 0:S.getScope)==null?void 0:w.call(S))??E??N??R.closest("[data-rootownerid]")??k.body;return Bd(f,{scopeElement:O,referenceElement:R,floatingElement:C}),()=>{m()}}},[n,i,l,a,f,g,d,p,m]),c.useEffect(()=>{if(!n)return;function b(){return!!(d&&p&&kn(d.nodesRef.current,p).length>0)}function v(k){const T=vn(o,"close",f.pointerType),E=()=>{s.setOpen(!1,ke(it,k)),d==null||d.events.emit("floating.closed",k)};T?f.openChangeTimeout.start(T,E):(f.openChangeTimeout.clear(),E())}function x(k){const T=at(k);if(!V0(T)){f.interactedInside=!1;return}f.interactedInside=(T==null?void 0:T.closest("[aria-haspopup]"))!=null}function S(){f.openChangeTimeout.clear(),y.clear(),d==null||d.events.off("floating.closed",R),m()}function w(k){var O;if(b()&&d){d.events.on("floating.closed",R);return}if(Jr(k.relatedTarget,s.context.triggerElements))return;const T=((O=u.current.floatingContext)==null?void 0:O.nodeId)??r,E=k.relatedTarget;if(!(d&&T&&Ne(E)&&kn(d.nodesRef.current,T,!1).some(D=>{var A;return ve((A=D.context)==null?void 0:A.elements.floating,E)}))){if(f.handler){f.handler(k);return}m(),g()&&!h()&&v(k)}}function R(k){!d||!p||b()||y.start(0,()=>{d.events.off("floating.closed",R),s.setOpen(!1,ke(it,k)),d.events.emit("floating.closed",k)})}const C=a;return Yt(C&&Ae(C,"mouseenter",S),C&&Ae(C,"mouseleave",w),C&&Ae(C,"pointerdown",x,!0),()=>{d==null||d.events.off("floating.closed",R)})},[n,a,s,u,o,r,g,h,m,f,d,p,y])}const Nb={current:null};function Ha(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=Nb,externalTree:u,isActiveTrigger:d=!0,getHandleCloseContext:p,isClosing:f,shouldOpen:y,guardStaleOpen:h=!1}=t,g="rootStore"in e?e.rootStore:e,{dataRef:m,events:b}=g.context,v=Tn(u),x=Va(g),S=c.useRef(!1),w=rt(r),R=rt(o),C=rt(i),k=rt(n),T=rt(y),E=rt(f),N=he(()=>{var F;return Ju((F=m.current.openEvent)==null?void 0:F.type,x.interactedInside)}),O=he(()=>{var F;return((F=T.current)==null?void 0:F.call(T))!==!1}),D=he((F,I,L)=>{const M=g.context.triggerElements;if(M.hasElement(I))return!F||!ve(F,I);if(!Ne(L))return!1;const _=L;return M.hasMatchingElement(H=>ve(H,_))&&(!F||!ve(F,_))}),A=he(()=>{if(!x.handler)return;Ie(g.select("domReferenceElement")).removeEventListener("mousemove",x.handler),x.handler=void 0}),P=he(()=>{ss(x)});return d&&(x.handleCloseOptions=(z=w.current)==null?void 0:z.__options),c.useEffect(()=>A,[A]),c.useEffect(()=>{if(!n)return;function F(I){I.open?S.current=!1:(S.current=I.reason===it,A(),x.openChangeTimeout.clear(),x.restTimeout.clear(),x.blockMouseMove=!0,x.restTimeoutPending=!1)}return b.on("openchange",F),()=>{b.off("openchange",F)}},[n,b,x,A]),c.useEffect(()=>{if(!n)return;function F($,U=!0){const G=vn(R.current,"close",x.pointerType);G?x.openChangeTimeout.start(G,()=>{g.setOpen(!1,ke(it,$)),v==null||v.events.emit("floating.closed",$)}):U&&(x.openChangeTimeout.clear(),g.setOpen(!1,ke(it,$)),v==null||v.events.emit("floating.closed",$))}const I=l.current??(d?g.select("domReferenceElement"):null);if(!Ne(I))return;function L($){var Z;if(x.openChangeTimeout.clear(),x.blockMouseMove=!1,s&&!yn(x.pointerType))return;const U=Hc(C.current),G=vn(R.current,"open",x.pointerType),V=at($),X=$.currentTarget??null,j=g.select("domReferenceElement");let K=X;if(Ne(V)&&!g.context.triggerElements.hasElement(V)){for(const J of g.context.triggerElements.elements())if(ve(J,V)){K=J;break}}Ne(X)&&Ne(j)&&!g.context.triggerElements.hasElement(X)&&ve(X,j)&&(K=j);const de=K==null?!1:D(j,K,V),se=g.select("open"),ne=((Z=E.current)==null?void 0:Z.call(E))??g.select("transitionStatus")==="ending",re=!se&&ne&&S.current,q=!de&&Ne(K)&&Ne(j)&&ve(j,K)&&re,ie=U>0&&!G,ge=de&&(se||re)||q,ue=!se||de;if(ge){O()&&g.setOpen(!0,ke(it,$,K));return}ie||(G?x.openChangeTimeout.start(G,()=>{ue&&O()&&g.setOpen(!0,ke(it,$,K))}):ue&&O()&&g.setOpen(!0,ke(it,$,K)))}function M($){if(N()){P();return}A();const U=g.select("domReferenceElement"),G=Ie(U);x.restTimeout.clear(),x.restTimeoutPending=!1;const V=m.current.floatingContext??(p==null?void 0:p());if(Jr($.relatedTarget,g.context.triggerElements))return;if(w.current&&V){g.select("open")||x.openChangeTimeout.clear();const j=l.current;x.handler=w.current({...V,tree:v,x:$.clientX,y:$.clientY,onClose(){P(),A(),k.current&&!N()&&j===g.select("domReferenceElement")&&F($,!0)}}),G.addEventListener("mousemove",x.handler),x.handler($);return}(x.pointerType==="touch"?!ve(g.select("floatingElement"),$.relatedTarget):!0)&&F($)}function _($){ve(I,$.relatedTarget)||(x.openChangeTimeout.clear(),x.restTimeout.clear(),x.restTimeoutPending=!1)}const H=h?Ae(I,"mouseout",_):void 0;return a?Yt(Ae(I,"mousemove",L,{once:!0}),Ae(I,"mouseenter",L),Ae(I,"mouseleave",M),H):Yt(Ae(I,"mouseenter",L),Ae(I,"mouseleave",M),H)},[A,P,m,R,g,n,w,x,d,D,N,s,a,C,l,v,k,p,E,O,h]),c.useMemo(()=>{if(!n)return;function F(I){x.pointerType=I.pointerType}return{onPointerDown:F,onPointerEnter:F,onMouseMove(I){var V,X,j;const{nativeEvent:L}=I,M=I.currentTarget,_=g.select("domReferenceElement"),H=g.select("open"),$=D(_,M,I.target);if(s&&!yn(x.pointerType))return;if(H&&$&&((V=x.handleCloseOptions)!=null&&V.blockPointerEvents)){const K=g.select("floatingElement");if(K){const de=((j=(X=x.handleCloseOptions)==null?void 0:X.getScope)==null?void 0:j.call(X))??M.ownerDocument.body;Bd(x,{scopeElement:de,referenceElement:M,floatingElement:K})}}const U=Hc(C.current);if(H&&!$||U===0||!$&&x.restTimeoutPending&&I.movementX**2+I.movementY**2<2)return;x.restTimeout.clear();function G(){if(x.restTimeoutPending=!1,N())return;const K=g.select("open");!x.blockMouseMove&&(!K||$)&&O()&&g.setOpen(!0,ke(it,L,M))}x.pointerType==="touch"?Dt.flushSync(()=>{G()}):$&&H?G():(x.restTimeoutPending=!0,x.restTimeout.start(U,G))}}},[n,x,N,D,s,g,C,O])}const Db="Escape";function yl(e){return Xt&&e.movementX===0&&e.movementY===0}function Us(e,t,n){switch(e){case"vertical":return t;case"horizontal":return n;default:return t||n}}function Rr(e,t){return Us(t,e===Zu||e===xa,e===ws||e===Rs)}function Ri(e,t,n){return Us(t,e===xa,n?e===ws:e===Rs)||e==="Enter"||e===" "||e===""}function Lb(e,t,n){return Us(t,n?e===ws:e===Rs,e===xa)}function _b(e,t,n,o){const r=n?e===Rs:e===ws,s=e===Zu;return t==="both"||t==="horizontal"&&o?e===Db:Us(t,r,s)}function Wd(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:h=!0,disabledIndices:g=void 0,orientation:m="vertical",parentOrientation:b,id:v,resetOnPointerLeave:x=!0,externalTree:S,grid:w}=t,R=w!=null,C="rootStore"in e?e.rootStore:e,k=C.useState("open"),T=C.useState("floatingElement"),E=C.useState("domReferenceElement"),N=C.context.dataRef,O=es(T),D=_i(E),A=rt(O),P=Mn(),z=Tn(S),F=c.useRef(f),I=c.useRef(i??-1),L=c.useRef(null),M=c.useRef(!0),_=he(B=>{r(I.current===-1?null:I.current,B)}),H=c.useRef(!!T),$=c.useRef(k),U=c.useRef(!1),G=c.useRef(!1),V=c.useRef(null),X=rt(g),j=rt(k),K=rt(i),de=rt(x),se=$n(),ne=$n(),re=he(()=>{function B(ee){p?z==null||z.events.emit("virtualfocus",ee):V.current=Br(ee,{sync:U.current,preventScroll:!0})}const Q=n.current[I.current],fe=G.current;Q&&B(Q),(U.current?ee=>ee():ee=>se.request(ee))(()=>{var ye;const ee=n.current[I.current]||Q;if(!ee)return;Q||B(ee),J&&(fe||!M.current)&&((ye=ee.scrollIntoView)==null||ye.call(ee,{block:"nearest",inline:"nearest"}))})});pe(()=>{N.current.orientation=m},[N,m]),pe(()=>{s&&(k&&T?(I.current=i??-1,F.current&&i!=null&&(G.current=!0,_())):H.current&&(I.current=-1,_()))},[s,k,T,i,_]),pe(()=>{if(s){if(!k){U.current=!1;return}if(T)if(o==null){if(U.current=!1,K.current!=null)return;if(H.current&&(I.current=-1,re()),(!$.current||!H.current)&&F.current&&(L.current!=null||F.current===!0&&L.current==null)){let B=0;const Q=()=>{n.current[0]==null?(B<2&&(B?te=>ne.request(te):queueMicrotask)(Q),B+=1):(I.current=L.current==null||Ri(L.current,m,d)||u?jr(n):Vi(n),L.current=null,_())};Q()}}else Bo(n.current,o)||(I.current=o,re(),G.current=!1)}},[s,k,T,o,K,u,n,m,d,_,re,ne]),pe(()=>{var ee,me;if(!s||T||!z||p||!H.current)return;const B=z.nodesRef.current,Q=(me=(ee=B.find(ye=>ye.id===P))==null?void 0:ee.context)==null?void 0:me.elements.floating,fe=pt(Ie(E??Q??null)),te=B.some(ye=>ye.context&&ve(ye.context.elements.floating,fe));Q&&!te&&M.current&&Q.focus({preventScroll:!0})},[s,T,E,z,P,p]),pe(()=>{$.current=k,H.current=!!T}),pe(()=>{k||(L.current=null,F.current=f)},[k,f]);const q=o!=null,ie=he(B=>{if(!j.current)return;const Q=n.current.indexOf(B.currentTarget);Q!==-1&&(I.current!==Q||o!==Q)&&(I.current=Q,_(B))}),ge=he(()=>{var B,Q,fe;return b??((fe=(Q=(B=z==null?void 0:z.nodesRef.current.find(te=>te.id===P))==null?void 0:B.context)==null?void 0:Q.dataRef)==null?void 0:fe.current.orientation)}),ue=he(()=>jr(n,X.current)),Z=he(B=>{if(M.current=!1,U.current=!0,B.which===229||!j.current&&B.currentTarget===A.current)return;if(u&&_b(B.key,m,d,R)){Rr(B.key,ge())||Ft(B),C.setOpen(!1,ke(Fi,B.nativeEvent)),Ye(E)&&(p?z==null||z.events.emit("virtualfocus",E):E.focus());return}const Q=I.current,fe=jr(n,g),te=Vi(n,g);if(D||(B.key==="Home"&&(Ft(B),I.current=fe,_(B)),B.key==="End"&&(Ft(B),I.current=te,_(B))),w!=null){const ee=w(B,I.current,n,m,l,d,g,fe,te);if(ee!=null&&(I.current=ee,_(B)),m==="both")return}if(Rr(B.key,m)){if(Ft(B),k&&!p&&pt(B.currentTarget.ownerDocument)===B.currentTarget){I.current=Ri(B.key,m,d)?fe:te,_(B);return}Ri(B.key,m,d)?l?Q>=te?a&&Q!==n.current.length?I.current=-1:(U.current=!1,I.current=fe):I.current=nn(n.current,{startingIndex:Q,disabledIndices:g}):I.current=Math.min(te,nn(n.current,{startingIndex:Q,disabledIndices:g})):l?Q<=fe?a&&Q!==-1?I.current=n.current.length:(U.current=!1,I.current=te):I.current=nn(n.current,{startingIndex:Q,decrement:!0,disabledIndices:g}):I.current=Math.max(fe,nn(n.current,{startingIndex:Q,decrement:!0,disabledIndices:g})),Bo(n.current,I.current)&&(I.current=-1),_(B)}}),J=c.useMemo(()=>({onFocus(Q){U.current=!0,ie(Q)},onClick:({currentTarget:Q})=>Q.focus({preventScroll:!0}),onMouseMove(Q){yl(Q)||(U.current=!0,G.current=!1,y&&ie(Q))},onPointerLeave(Q){var te;if(!j.current||!M.current||Q.pointerType==="touch")return;U.current=!0;const fe=Q.relatedTarget;if(!(!y||n.current.includes(fe))&&de.current&&((te=V.current)==null||te.call(V),V.current=null,I.current=-1,_(Q),!p)){const ee=A.current,me=pt(Ie(ee));ee&&ve(ee,me)&&ee.focus({preventScroll:!0})}}}),[ie,j,A,y,n,_,de,p]),ae=c.useMemo(()=>p&&k&&q&&{"aria-activedescendant":`${v}-${o}`},[p,k,q,v,o]),ce=c.useMemo(()=>({"aria-orientation":m==="both"?void 0:m,...D?{}:ae,onKeyDown(B){if(B.key==="Tab"&&B.shiftKey&&k&&!p){const Q=at(B.nativeEvent);if(Q&&!ve(A.current,Q))return;Ft(B),C.setOpen(!1,ke(xn,B.nativeEvent)),Ye(E)&&E.focus();return}Z(B)},onPointerMove(B){yl(B)||(M.current=!0)}}),[ae,Z,A,m,D,C,k,p,E]),oe=c.useMemo(()=>{function B(te){C.setOpen(!0,ke(Fi,te.nativeEvent,te.currentTarget))}function Q(te){f==="auto"&&ba(te.nativeEvent)&&(F.current=!p)}function fe(te){F.current=f,f==="auto"&&va(te.nativeEvent)&&(F.current=!0)}return{onKeyDown(te){const ee=C.select("open");M.current=!1;const me=te.key.startsWith("Arrow"),ye=Lb(te.key,ge(),d),De=Rr(te.key,m),Me=(u?ye:De)||te.key==="Enter"||te.key.trim()==="";if(p&&ee)return Z(te);if(!(!ee&&!h&&me)){if(Me){const Ge=Rr(te.key,ge());L.current=u&&Ge?null:te.key}if(u){ye&&(Ft(te),ee?(I.current=ue(),_(te)):B(te));return}De&&(K.current!=null&&(I.current=K.current),Ft(te),!ee&&h?B(te):Z(te),ee&&_(te))}},onFocus(te){C.select("open")&&!p&&(I.current=-1,_(te))},onPointerDown:fe,onPointerEnter:fe,onMouseDown:Q,onClick:Q}},[Z,f,ue,u,_,C,h,m,ge,d,K,p]),le=c.useMemo(()=>({...ae,...oe}),[ae,oe]);return c.useMemo(()=>s?{reference:le,floating:ce,item:J,trigger:oe}:{},[s,le,ce,oe,J])}function Ud(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=nt(),h=c.useRef(""),g=c.useRef(d??r??-1),m=c.useRef(null),b=he(S=>{function w(A){return o==null?void 0:o.current[A]}function R(A){const P=w(A);return P&&!Ms(P)||P!=null&&P.matches(":disabled")?!1:i==null||!ns(Vt,A,i)}function C(A,P,z=0){if(A.length===0)return-1;const F=(z%A.length+A.length)%A.length,I=P.toLowerCase();for(let L=0;L<A.length;L+=1){const M=(F+L)%A.length,_=A[M];if(!(!(_!=null&&_.toLowerCase().startsWith(I))||!R(M)))return M}return-1}const k=n.current;if(h.current.length>0&&S.key===" "&&(Ft(S),a==null||a(!0)),h.current.length>0&&h.current[0]!==" "&&C(k,h.current)===-1&&S.key!==" "&&(a==null||a(!1)),k==null||S.key.length!==1||S.ctrlKey||S.metaKey||S.altKey)return;f&&S.key!==" "&&(Ft(S),a==null||a(!0));const T=h.current==="";T&&(g.current=d??r??-1),k.every((A,P)=>{var z,F;return A&&R(P)?((z=A[0])==null?void 0:z.toLowerCase())!==((F=A[1])==null?void 0:F.toLowerCase()):!0})&&h.current===S.key&&(h.current="",g.current=m.current),h.current+=S.key,y.start(u,()=>{h.current="",g.current=m.current,a==null||a(!1)});const O=((T?d??r??-1:g.current)??0)+1,D=C(k,h.current,O);D!==-1?(s==null||s(D),m.current=D):S.key!==" "&&(h.current="",a==null||a(!1))}),v=he(S=>{const w=S.relatedTarget,R=p.select("domReferenceElement"),C=p.select("floatingElement");ve(R,w)||ve(C,w)||(y.clear(),h.current="",g.current=m.current,a==null||a(!1))});pe(()=>{!f&&d!==null||(y.clear(),m.current=null,h.current!==""&&(h.current=""))},[f,d,y]);const x=c.useMemo(()=>({onKeyDown:b,onBlur:v}),[b,v]);return c.useMemo(()=>l?{reference:x,floating:x}:{},[l,x])}const bl=.1,Fb=bl*bl,Ze=.5;function kr(e,t,n,o,r,s){return o>=t!=s>=t&&e<=(r-n)*(t-o)/(s-o)+n}function Cr(e,t,n,o,r,s,i,a,l,u){let d=!1;return kr(e,t,n,o,r,s)&&(d=!d),kr(e,t,r,s,i,a)&&(d=!d),kr(e,t,i,a,l,u)&&(d=!d),kr(e,t,l,u,n,o)&&(d=!d),d}function zb(e,t,n){return e>=n.x&&e<=n.x+n.width&&t>=n.y&&t<=n.y+n.height}function Er(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 ja(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,h=null,g=typeof performance<"u"?performance.now():0;function m(v,x){const S=performance.now(),w=S-g;if(y===null||h===null||w===0)return y=v,h=x,g=S,!1;const R=v-y,C=x-h,k=R*R+C*C,T=w*w*Fb;return y=v,h=x,g=S,k<T}function b(){n.clear(),l()}return function(x){n.clear();const S=a.domReference,w=a.floating;if(!S||!w||p==null||r==null||s==null)return;const{clientX:R,clientY:C}=x,k=at(x),T=x.type==="mouseleave",E=ve(w,k),N=ve(S,k);if(E&&(f=!0,!T))return;if(N&&(f=!1,!T)){f=!0;return}if(T&&Ne(x.relatedTarget)&&ve(w,x.relatedTarget))return;function O(){return!!(d&&kn(d.nodesRef.current,u).length>0)}function D(){O()||b()}if(O())return;const A=S.getBoundingClientRect(),P=w.getBoundingClientRect(),z=r>P.right-P.width/2,F=s>P.bottom-P.height/2,I=P.width>A.width,L=P.height>A.height,M=(I?A:P).left,_=(I?A:P).right,H=(L?A:P).top,$=(L?A:P).bottom;if(p==="top"&&s>=A.bottom-1||p==="bottom"&&s<=A.top+1||p==="left"&&r>=A.right-1||p==="right"&&r<=A.left+1){D();return}let U=!1;switch(p){case"top":U=Er(R,C,M,A.top+1,_,P.bottom-1);break;case"bottom":U=Er(R,C,M,P.top+1,_,A.bottom-1);break;case"left":U=Er(R,C,P.right-1,$,A.left+1,H);break;case"right":U=Er(R,C,A.right-1,$,P.left+1,H);break}if(U)return;if(f&&!zb(R,C,A)){D();return}if(!T&&m(R,C)){D();return}let G=!1;switch(p){case"top":{const V=I?Ze/2:Ze*4,X=I||z?r+V:r-V,j=I?r-V:z?r+V:r-V,K=s+Ze+1,de=z||I?P.bottom-Ze:P.top,se=z?I?P.bottom-Ze:P.top:P.bottom-Ze;G=Cr(R,C,X,K,j,K,P.left,de,P.right,se);break}case"bottom":{const V=I?Ze/2:Ze*4,X=I||z?r+V:r-V,j=I?r-V:z?r+V:r-V,K=s-Ze,de=z||I?P.top+Ze:P.bottom,se=z?I?P.top+Ze:P.bottom:P.top+Ze;G=Cr(R,C,X,K,j,K,P.left,de,P.right,se);break}case"left":{const V=L?Ze/2:Ze*4,X=L||F?s+V:s-V,j=L?s-V:F?s+V:s-V,K=r+Ze+1,de=F||L?P.right-Ze:P.left,se=F?L?P.right-Ze:P.left:P.right-Ze;G=Cr(R,C,de,P.top,se,P.bottom,K,X,K,j);break}case"right":{const V=L?Ze/2:Ze*4,X=L||F?s+V:s-V,j=L?s-V:F?s+V:s-V,K=r-Ze,de=F||L?P.left+Ze:P.right,se=F?L?P.left+Ze:P.right:P.left+Ze;G=Cr(R,C,K,X,K,j,de,P.top,se,P.bottom);break}}G?f||n.start(40,D):D()}};return o.__options={...e,blockPointerEvents:t},o}const Gd=c.createContext(void 0);function ar(e){const t=c.useContext(Gd);if(t===void 0&&!e)throw new Error(We(47));return t}const Vb={...Bs,disabled:e=>e.disabled,instantType:e=>e.instantType,openMethod:e=>e.openMethod,openChangeReason:e=>e.openChangeReason,modal:e=>e.modal,focusManagerModal:e=>e.focusManagerModal,stickIfOpen:e=>e.stickIfOpen,titleElementId:e=>e.titleElementId,descriptionElementId:e=>e.descriptionElementId,openOnHover:e=>e.openOnHover,closeDelay:e=>e.closeDelay,adaptiveOrigin:e=>e.adaptiveOrigin};class $b extends ko{constructor(n,o,r){const s=new Co;super(Hb(n,s,o,r),jb(s),Vb);Ue(this,"setOpen",(n,o)=>{var p,f;const r=o.reason===it,s=o.reason===$t&&o.event.detail===0,i=!n&&(o.reason===or||o.reason==null),a=La(o),l=this.select("activeTriggerId");if(!n&&o.reason===ed&&o.trigger==null&&l!=null&&(o.trigger=this.context.triggerElements.getById(l)??this.select("activeTriggerElement")??void 0),(f=(p=this.context).onOpenChange)==null||f.call(p,n,o),o.isCanceled)return;this.state.floatingRootContext.dispatchOpenChange(n,o);const u=()=>{const y={open:n,openChangeReason:o.reason};Fs(y,n,o.trigger,a()),this.update(y)};r?(this.set("stickIfOpen",!0),this.context.stickIfOpenTimeout.start(bd,()=>{this.set("stickIfOpen",!1)}),Dt.flushSync(u)):u();let d;s?d="click":i?d="dismiss":o.reason===xn&&(d="focus"),this.set("instantType",d)})}}function Hb(e,t,n,o=!1){const r={...js(),disabled:!1,modal:!1,focusManagerModal:!1,instantType:void 0,openMethod:null,openChangeReason:null,titleElementId:void 0,descriptionElementId:void 0,stickIfOpen:!0,openOnHover:!1,closeDelay:0,adaptiveOrigin:void 0,...e};return r.open&&(e==null?void 0:e.mounted)===void 0&&(r.mounted=!0),r.floatingRootContext=_a(t,n,o),r}function jb(e){return{popupRef:c.createRef(),onOpenChange:void 0,onOpenChangeComplete:void 0,triggerFocusTargetRef:c.createRef(),beforeContentFocusGuardRef:c.createRef(),stickIfOpenTimeout:new Lt,triggerElements:e}}function vl({props:e}){const{children:t,open:n,defaultOpen:o=!1,onOpenChange:r,onOpenChangeComplete:s,modal:i=!1,handle:a,triggerId:l,defaultTriggerId:u=null}=e,d=Bb(a,{modal:i,open:o,openProp:n,activeTriggerId:u,triggerIdProp:l});d.useControlledProp("openProp",n),d.useControlledProp("triggerIdProp",l);const p=d.useState("open"),f=d.useState("mounted"),y=d.useState("payload");d.useContextCallback("onOpenChange",r),d.useContextCallback("onOpenChangeComplete",s),$d(d,p),Vs(d);const{forceUnmount:h}=$s(p,d,()=>{d.update({stickIfOpen:!0,openChangeReason:null})});d.useSyncedValues({modal:i}),c.useEffect(()=>{p||d.context.stickIfOpenTimeout.clear()},[d,p]),c.useImperativeHandle(e.actionsRef,()=>({unmount:h,close:()=>d.setOpen(!1,ke(Es))}),[h,d]);const g=p||f;return Y.jsxs(Gd.Provider,{value:d,children:[a&&Y.jsx(_s,{handle:a,store:d}),g&&Y.jsx(Wb,{store:d,modal:i}),typeof t=="function"?t({payload:y}):t]})}function KC(e){return ar(!0)?Y.jsx(vl,{props:e}):Y.jsx(Pd,{children:Y.jsx(vl,{props:e})})}function Bb(e,t){const n=Da((o,r)=>new $b(t,o,r));return c.useEffect(()=>n.context.stickIfOpenTimeout.disposeEffect(),[n]),n}function Wb({store:e,modal:t}){const n=e.useState("floatingRootContext"),o=sr(n,{outsidePressEvent:{mouse:t==="trap-focus"?"sloppy":"intentional",touch:"sloppy"}}),r=o.reference,s=o.floating;return Hs(e,{activeTriggerProps:r,inactiveTriggerProps:r,popupProps:s}),null}let is=(function(e){return e.startingStyle="data-starting-style",e.endingStyle="data-ending-style",e})({});const Ub={"data-starting-style":""},Gb={"data-ending-style":""},Kt={transitionStatus(e){return e==="starting"?Ub:e==="ending"?Gb:null}};(function(e){return e.open="data-open",e.closed="data-closed",e[e.startingStyle=is.startingStyle]="startingStyle",e[e.endingStyle=is.endingStyle]="endingStyle",e.anchorHidden="data-anchor-hidden",e.side="data-side",e.align="data-align",e})({});const qb={"data-popup-open":""},Yb={"data-popup-open":"","data-pressed":""},Xb={"data-open":""},Kb={"data-closed":""},Zb={"data-anchor-hidden":""},Gs={open(e){return e?qb:null}},Zo={open(e){return e?Yb:null}},qs={open(e){return e?Xb:Kb},anchorHidden(e){return e?Zb:null}},Ys={...qs,...Kt},Qb=300;function st(e){return Cn(e,"base-ui")}function qd(e,t){const n=c.useRef(null);function o(s){Dt.flushSync(()=>{e.setOpen(!1,ke(xn,s.nativeEvent,s.currentTarget))});const i=f1(n.current);i==null||i.focus()}function r(s){var a;const i=e.select("positionerElement");if(i&&lo(s,i))(a=e.context.beforeContentFocusGuardRef.current)==null||a.focus();else{Dt.flushSync(()=>{e.setOpen(!1,ke(xn,s.nativeEvent,s.currentTarget))});let l=d1(e.context.triggerFocusTargetRef.current||t.current);for(;l!==null&&ve(i,l);){const u=l;if(l=Ea(l),l===u)break}l==null||l.focus()}}return{preFocusGuardRef:n,handlePreFocusGuardFocus:o,handleFocusTargetFocus:r}}function Jb(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 Eo(e,t){const n=c.useRef(e),o=he(t);pe(()=>{n.current!==e&&o(n.current),n.current=e},[e,o])}function Ba(e,t){const n=he((s,i)=>{(typeof e=="function"?e():e)||t(i||(Ss?"touch":""))}),{onClick:o,onPointerDown:r}=Jb(n);return c.useMemo(()=>({onClick:o,onPointerDown:r}),[o,r])}function Yd(e){const[t,n]=c.useState(null),o=Ba(e,n);return Eo(e,r=>{r&&!e&&n(null)}),c.useMemo(()=>({openMethod:t,triggerProps:o}),[t,o])}const ZC=c.forwardRef(function(t,n){const{render:o,className:r,style:s,disabled:i=!1,nativeButton:a=!0,handle:l,payload:u,openOnHover:d=!1,delay:p=Qb,closeDelay:f=0,id:y,...h}=t,g=ar(!0),b=Ws(l)??g;if(!b)throw new Error(We(74));const v=st(y),x=b.useState("isTriggerActive",v),S=b.useState("floatingRootContext"),w=b.useState("isOpenedByTrigger",v),R=b.useState("triggerPopupId",v),C=c.useRef(null),{registerTrigger:k,isMountedByThisTrigger:T}=zs(v,C,b,{payload:u,disabled:i,openOnHover:d,closeDelay:f}),E=b.useState("openChangeReason"),N=b.useState("stickIfOpen"),O=b.useState("openMethod"),D=b.useState("focusManagerModal"),A=Ha(S,{enabled:!i&&d&&(O!=="touch"||E!==$t),mouseOnly:!0,move:!1,handleClose:ja(),restMs:p,delay:{close:f},triggerElementRef:C,isActiveTrigger:x,isClosing:()=>b.select("transitionStatus")==="ending"}),P=Os(S,{stickIfOpen:N}),z=Ba(()=>b.select("open"),X=>{b.set("openMethod",X)}),F=b.useState("triggerProps",T),{getButtonProps:I,buttonRef:L}=Mt({disabled:i,native:a}),M={open(X){return X&&E===$t?Zo.open(X):Gs.open(X)}},{preFocusGuardRef:_,handlePreFocusGuardFocus:H,handleFocusTargetFocus:$}=qd(b,C),G=Re("button",t,{state:{disabled:i,open:w},ref:[L,n,k,C],props:[P.reference,A,F,z,{[Pa]:"",id:v,"aria-haspopup":"dialog","aria-expanded":w,"aria-controls":R},h,I],stateAttributesMapping:M}),V=Y.jsx(c.Fragment,{children:G},v);return T&&!D?Y.jsxs(c.Fragment,{children:[Y.jsx(wn,{ref:_,onFocus:H}),V,Y.jsx(wn,{ref:b.context.triggerFocusTargetRef,onFocus:$})]}):V}),Xd=c.createContext(void 0);function ev(){const e=c.useContext(Xd);if(e===void 0)throw new Error(We(45));return e}const QC=c.forwardRef(function(t,n){const{keepMounted:o=!1,...r}=t;return ar().useState("mounted")||o?Y.jsx(Xd.Provider,{value:o,children:Y.jsx(Ts,{ref:n,...r})}):null});function cr(e){return fa(19)?e:e?"true":void 0}const Kd=c.createContext(void 0);function tv(){const e=c.useContext(Kd);if(!e)throw new Error(We(46));return e}const nv=c.createContext(void 0);function On(){const e=c.useContext(nv);return(e==null?void 0:e.direction)??"ltr"}const ov=e=>({name:"arrow",options:e,async fn(t){var L,M;const{x:n,y:o,placement:r,rects:s,platform:i,elements:a,middlewareData:l}=t,{element:u,padding:d=0,offsetParent:p="real"}=Rn(e,t)||{};if(u==null)return{};const f=id(d),y={x:n,y:o},h=ka(r),g=Ra(h),m=await i.getDimensions(u),b=h==="y",v=b?"top":"left",x=b?"bottom":"right",S=b?"clientHeight":"clientWidth",w=s.reference[g]+s.reference[h]-y[h]-s.floating[g],R=y[h]-s.reference[h],C=p==="real"?await((L=i.getOffsetParent)==null?void 0:L.call(i,u)):a.floating;let k=a.floating[S]||s.floating[g];(!k||!await((M=i.isElement)==null?void 0:M.call(i,C)))&&(k=a.floating[S]||s.floating[g]);const T=w/2-R/2,E=k/2-m[g]/2-1,N=Math.min(f[v],E),O=Math.min(f[x],E),D=N,A=k-m[g]-O,P=k/2-m[g]/2+T,z=sd(D,P,A),F=!l.arrow&&Pn(r)!=null&&P!==z&&s.reference[g]/2-(P<D?N:O)-m[g]/2<0,I=F?P<D?P-D:P-A:0;return{[h]:y[h]+I,data:{[h]:z,centerOffset:P-z-I,...F&&{alignmentOffset:I}},reset:F}}}),rv=(e,t)=>({...ov(e),options:[e,t]}),sv={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}}}},iv={sideX:"left",sideY:"top"},xl="--available-width",Sl="--available-height";function Zd(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 wl(e,t,n){const{rects:o,placement:r}=e;return{side:Zd(t,Nt(r),n),align:Pn(r)||"center",anchor:{width:o.reference.width,height:o.reference.height},positioner:{width:o.floating.width,height:o.floating.height}}}function Xs(e){return av(e,Ob)}function av(e,t){var Je,lt;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:h=!1,floatingRootContext:g,mounted:m,collisionAvoidance:b,shift:v,nodeId:x,adaptiveOrigin:S,lazyFlip:w=!1,externalTree:R}=e,[C,k]=c.useState(null);!m&&C!==null&&k(null);const T=b.side||"flip",E=b.align||"flip",N=b.fallbackAxisSide||"end",O=(v==null?void 0:v.crossAxis)??!1,D=v==null?void 0:v.rootBoundary,A=typeof n=="function"?n:void 0,P=he(A),z=A?P:n,F=rt(n),I=rt(m),M=On()==="rtl",_=C||{top:"top",right:"right",bottom:"bottom",left:"left","inline-end":M?"left":"right","inline-start":M?"right":"left"}[r],H=i==="center"?_:`${_}-${i}`;let $=u;typeof $=="number"?$={top:$,right:$,bottom:$,left:$}:$&&($={top:$.top||0,right:$.right||0,bottom:$.bottom||0,left:$.left||0});const U=1,G=r==="bottom"?U:0,V=r==="top"?U:0,X=r==="right"?U:0,j=r==="left"?U:0,K={boundary:l==="clipping-ancestors"?"clippingAncestors":l,padding:$},de=c.useRef(null),se=rt(s),ne=rt(a),re=typeof s!="function"?s:0,q=typeof a!="function"?a:0,ie=[];y&&ie.push(y),ie.push(ib(Se=>{const Be=wl(Se,r,M),tt=typeof se.current=="function"?se.current(Be):se.current,ct=typeof ne.current=="function"?ne.current(Be):ne.current;return{mainAxis:tt,crossAxis:ct,alignmentAxis:ct}},[re,q,M,r]));const ge=E==="none"&&T!=="shift",ue=!ge&&(d||O||T==="shift"),Z=T==="none"?null:lb({...K,padding:{top:$.top+U+G,right:$.right+U+j,bottom:$.bottom+U+V,left:$.left+U+X},mainAxis:!O&&T==="flip",crossAxis:E==="flip"?"alignment":!1,fallbackAxisSideDirection:N}),J=ge?null:ab({...K,rootBoundary:D,mainAxis:E!=="none",crossAxis:ue,limiter:d||O?void 0:cb(Se=>{if(!de.current)return{};const{width:Be,height:tt}=de.current.getBoundingClientRect(),ct=At(Nt(Se.placement)),yt=ct==="y"?Be:tt,vt=ct==="y"?$.left+$.right:$.top+$.bottom;return{offset:yt/2+vt/2}})},[K,d,O,D,$,E]);T==="shift"||E==="shift"||i==="center"?ie.push(J,Z):ie.push(Z,J),ie.push(ub({...K,apply({elements:{floating:Se},availableWidth:Be,availableHeight:tt,rects:ct}){if(!I.current)return;const yt=Se.style;yt.setProperty(xl,`${Be}px`),yt.setProperty(Sl,`${tt}px`);const vt=Xe(Se).devicePixelRatio||1,{x:Oe,y:$e,width:qe,height:Ce}=ct.reference,He=(Math.round((Oe+qe)*vt)-Math.round(Oe*vt))/vt,dt=(Math.round(($e+Ce)*vt)-Math.round($e*vt))/vt;yt.setProperty("--anchor-width",`${He}px`),yt.setProperty("--anchor-height",`${dt}px`)}}),rv(Se=>({element:de.current||Ie(Se.elements.floating).createElement("div"),padding:p,offsetParent:"floating"}),[p]),{name:"transformOrigin",fn(Se){var wc,Rc,kc;const{elements:Be,middlewareData:tt,placement:ct,rects:yt,y:vt}=Se,Oe=Nt(ct),$e=At(Oe),qe=de.current,Ce=((wc=tt.arrow)==null?void 0:wc.x)||0,He=((Rc=tt.arrow)==null?void 0:Rc.y)||0,dt=(qe==null?void 0:qe.clientWidth)||0,_t=(qe==null?void 0:qe.clientHeight)||0,xt=Ce+dt/2,kt=He+_t/2,fn=Math.abs(((kc=tt.shift)==null?void 0:kc.y)||0),Ao=yt.reference.height/2,Dn=typeof s=="function"?s(wl(Se,r,M)):s,mr=fn>Dn,ch={top:`${xt}px calc(100% + ${Dn}px)`,bottom:`${xt}px ${-Dn}px`,left:`calc(100% + ${Dn}px) ${kt}px`,right:`${-Dn}px ${kt}px`}[Oe],lh=`${xt}px ${yt.reference.y+Ao-vt}px`;return Be.floating.style.setProperty("--transform-origin",ue&&$e==="y"&&mr?lh:ch),{}}},sv,S),pe(()=>{!m&&g&&g.update({referenceElement:null,floatingElement:null,domReferenceElement:null,positionReference:null})},[m,g]);const ae=c.useMemo(()=>({elementResize:!f&&typeof ResizeObserver<"u",layoutShift:!f&&typeof IntersectionObserver<"u"}),[f]),{refs:ce,elements:oe,x:le,y:B,middlewareData:Q,update:fe,placement:te,context:ee,isPositioned:me,floatingStyles:ye}=t({rootContext:g,open:h?m:void 0,placement:H,middleware:ie,strategy:o,whileElementsMounted:h?void 0:(...Se)=>ul(...Se,ae),nodeId:x,externalTree:R}),{sideX:De,sideY:Me}=Q.adaptiveOrigin||iv,Ge=me?o:"fixed",_e=c.useMemo(()=>{let Se;return me?S?Se={position:Ge,[De]:le,[Me]:B}:Se={...ye,position:Ge}:Se={position:Ge,top:0,left:0},Se[xl]="100vw",Se[Sl]="100vh",me||(Se.opacity=0),Se},[S,Ge,De,le,Me,B,ye,me]),ze=c.useRef(null);pe(()=>{if(!m)return;const Se=F.current,Be=typeof Se=="function"?Se():Se,ct=(Rl(Be)?Be.current:Be)||null||null;ct!==ze.current&&(ce.setPositionReference(ct),ze.current=ct)},[m,ce,z,F]),c.useEffect(()=>{if(!m)return;const Se=F.current;typeof Se!="function"&&Rl(Se)&&Se.current!==ze.current&&(ce.setPositionReference(Se.current),ze.current=Se.current)},[m,ce,z,F]),c.useEffect(()=>{if(h&&m&&oe.reference&&oe.floating)return ul(oe.reference,oe.floating,fe,ae)},[h,m,oe,fe,ae]);const et=Nt(te),Te=Zd(r,et,M),be=Pn(te)||"center",Ve=!!((Je=Q.hide)!=null&&Je.referenceHidden);pe(()=>{w&&m&&me&&et!==_&&k(et)},[w,m,me,et,_]);const Fe=c.useMemo(()=>{var Se,Be;return{position:"absolute",top:(Se=Q.arrow)==null?void 0:Se.y,left:(Be=Q.arrow)==null?void 0:Be.x}},[Q.arrow]),je=((lt=Q.arrow)==null?void 0:lt.centerOffset)!==0;return c.useMemo(()=>({positionerStyles:_e,arrowStyles:Fe,arrowRef:de,arrowUncentered:je,side:Te,align:be,physicalSide:et,anchorHidden:Ve,refs:ce,context:ee,isPositioned:me,update:fe}),[_e,Fe,de,je,Te,be,et,Ve,ce,ee,me,fe])}function Rl(e){return e!=null&&"current"in e}const Ks=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 Y.jsx("div",{ref:n,role:"presentation","data-base-ui-inert":"",...r,style:{position:"fixed",inset:0,userSelect:"none",WebkitUserSelect:"none",clipPath:s}})});function lr(e){return e==="starting"?b1:Ke}function Zs(e,t,{styles:n,transitionStatus:o,props:r,refs:s,hidden:i,inert:a=!1}){const l={...n};return a&&(l.pointerEvents="none"),Re("div",e,{state:t,ref:s,props:[{role:"presentation",hidden:i,style:l},lr(o),r],stateAttributesMapping:qs})}let kl={},Cl={},El="";function Qs(e,t){return nr(e)?e:t}function Pl(e,t,n){return/hidden|clip/.test(e.getComputedStyle(Qs(t,n)).overflowY)}function cv(e){if(typeof document>"u")return!1;const t=Ie(e);return Xe(t).innerWidth-t.documentElement.clientWidth>0}function lv(e){if(!(typeof CSS<"u"&&CSS.supports&&CSS.supports("scrollbar-gutter","stable"))||typeof document>"u")return!1;const n=Ie(e),o=n.documentElement,r=n.body,s=Qs(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 uv(e){const t=Ie(e),n=t.documentElement,o=t.body,r=Qs(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 dv(e){var y;const t=Ie(e),n=t.documentElement,o=t.body,r=Xe(n);let s=0,i=0,a=!1;const l=Ct.create();if(Xt&&(((y=r.visualViewport)==null?void 0:y.scale)??1)!==1)return()=>{};function u(){const h=r.getComputedStyle(n),g=r.getComputedStyle(o),v=(h.scrollbarGutter||"").includes("both-edges")?"stable both-edges":"stable";s=n.scrollTop,i=n.scrollLeft,kl={scrollbarGutter:n.style.scrollbarGutter,overflowY:n.style.overflowY,overflowX:n.style.overflowX},El=n.style.scrollBehavior,Cl={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 x=n.scrollHeight>n.clientHeight,S=n.scrollWidth>n.clientWidth,w=h.overflowY==="scroll"||g.overflowY==="scroll",R=h.overflowX==="scroll"||g.overflowX==="scroll",C=Math.max(0,r.innerWidth-o.clientWidth),k=Math.max(0,r.innerHeight-o.clientHeight),T=parseFloat(g.marginTop)+parseFloat(g.marginBottom),E=parseFloat(g.marginLeft)+parseFloat(g.marginRight),N=Qs(n,o);if(a=lv(e),a){n.style.scrollbarGutter=v,N.style.overflowY="hidden",N.style.overflowX="hidden";return}Object.assign(n.style,{scrollbarGutter:v,overflowY:"hidden",overflowX:"hidden"}),(x||w)&&(n.style.overflowY="scroll"),(S||R)&&(n.style.overflowX="scroll"),Object.assign(o.style,{position:"relative",height:T||k?`calc(100dvh - ${T+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,kl),Object.assign(o.style,Cl),a||(n.scrollTop=s,n.scrollLeft=i,n.removeAttribute("data-base-ui-scroll-locked"),n.style.scrollBehavior=El)}function p(){d(),l.request(u)}u();const f=Ae(r,"resize",p);return()=>{l.cancel(),d(),typeof r.removeEventListener=="function"&&f()}}class fv{constructor(){Ue(this,"lockCount",0);Ue(this,"restore",null);Ue(this,"timeoutLock",Lt.create());Ue(this,"timeoutUnlock",Lt.create());Ue(this,"release",()=>{this.lockCount-=1,this.lockCount===0&&this.restore&&this.timeoutUnlock.start(0,this.unlock)});Ue(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=Ie(t),o=n.documentElement,r=n.body,s=Xe(o);if(Pl(s,o,r)){const a=new s.MutationObserver(()=>{Pl(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=Ss||!cv(t);this.restore=i?uv(t):dv(t)}}const pv=new fv;function Qd(e=!0,t=null){pe(()=>{if(e)return pv.acquire(t)},[e,t])}const hv=20;function Wa(e,t,n,o){const[r,s]=c.useState(!1);pe(()=>{if(!e||!t||n==null){s(!1);return}const i=Ie(n).documentElement.clientWidth,a=n.offsetWidth;s(i>0&&a>0&&a>=i-hv)},[e,t,n]),Qd(e&&(!t||r),o)}const JC=c.forwardRef(function(t,n){const{render:o,className:r,style:s,anchor:i,positionMethod:a,side:l,align:u,sideOffset:d,alignOffset:p,collisionBoundary:f="clipping-ancestors",collisionPadding:y,arrowPadding:h,sticky:g,disableAnchorTracking:m=!1,collisionAvoidance:b=Ma,...v}=t,x=ar(),S=ev(),w=Ia(),R=x.useState("floatingRootContext"),C=x.useState("mounted"),k=x.useState("open"),T=x.useState("openChangeReason"),E=x.useState("activeTriggerElement"),N=x.useState("modal"),O=x.useState("openMethod"),D=x.useState("positionerElement"),A=x.useState("instantType"),P=x.useState("transitionStatus"),z=x.useState("adaptiveOrigin"),F=c.useRef(null),I=Ls(D),L=Xs({anchor:i,floatingRootContext:R,positionMethod:a,mounted:C,side:l,sideOffset:d,align:u,alignOffset:p,arrowPadding:h,collisionBoundary:f,collisionPadding:y,sticky:g,disableAnchorTracking:m,keepMounted:S,nodeId:w,collisionAvoidance:b,adaptiveOrigin:z}),M=R.useState("domReferenceElement");pe(()=>{const G=M,V=F.current;if(G&&(F.current=G),V&&G&&G!==V){x.set("instantType",void 0);const X=new AbortController;return I(()=>{x.set("instantType","trigger-change")},X.signal),()=>{X.abort()}}},[M,I,x]);const _=N===!0&&T!==it;Wa(k&&_,O==="touch",D,E);const H=x.useStateSetter("positionerElement"),$={open:k,side:L.side,align:L.align,anchorHidden:L.anchorHidden,instant:A},U=Zs(t,$,{styles:L.positionerStyles,transitionStatus:P,props:v,refs:[n,H],hidden:!C,inert:!k});return Y.jsxs(Kd.Provider,{value:L,children:[C&&_&&Y.jsx(Ks,{inert:cr(!k),cutout:E}),Y.jsx(Ed,{id:w,children:U})]})}),as="ArrowUp",cs="ArrowDown",ls="ArrowLeft",us="ArrowRight",ds="Home",fs="End",Jd="PageUp",ef="PageDown",Gn=new Set([as,cs,ls,us,ds,fs]),tf="Shift",gv=[tf,"Control","Alt","Meta"];function mv(e){return Ye(e)&&e.tagName==="INPUT"}function Ml(e){return!!(mv(e)&&e.selectionStart!=null||Ye(e)&&e.tagName==="TEXTAREA")}function Tl(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=Il(e,t,"left"),u=Pr(e),d=Pr(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=Il(e,t,"top"),u=Pr(e),d=Pr(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 Il(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 Pr(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}}const yv=c.createContext(void 0);function Js(e){return c.useContext(yv)}const bv=c.createContext(void 0);function vv(){const[e,t]=c.useState(0),n=he(()=>(t(r=>r+1),()=>{t(r=>Math.max(0,r-1))}));return{context:c.useMemo(()=>({register:n}),[n]),hasClosePart:e>0}}const eE=c.forwardRef(function(t,n){const{render:o,className:r,style:s,initialFocus:i,finalFocus:a,...l}=t,u=ar(),d=tv(),p=Js()!=null,{context:f,hasClosePart:y}=vv(),h=u.useState("open"),g=u.useState("openMethod"),m=u.useState("instantType"),b=u.useState("transitionStatus"),v=u.useState("popupProps"),x=u.useState("titleElementId"),S=u.useState("descriptionElementId"),w=u.useState("modal"),R=u.useState("mounted"),C=u.useState("openChangeReason"),k=u.useState("activeTriggerElement"),T=u.useState("floatingRootContext"),E=T.useState("floatingId"),N=u.useState("disabled"),O=u.useState("openOnHover"),D=u.useState("closeDelay");It({open:h,ref:u.context.popupRef,onComplete(){var L,M;h&&((M=(L=u.context).onOpenChangeComplete)==null||M.call(L,!0))}}),$a(T,{enabled:O&&!N,closeDelay:D});const A=i===void 0?Vd(u.context.popupRef):i,P=w!==!1&&y;u.useSyncedValue("focusManagerModal",P);const z=u.useStateSetter("popupElement"),F={open:h,side:d.side,align:d.align,instant:m,transitionStatus:b},I=Re("div",t,{state:F,ref:[n,u.context.popupRef,z],props:[v,{id:E,role:"dialog",...ir,"aria-labelledby":x,"aria-describedby":S,onKeyDown(L){p&&Gn.has(L.key)&&L.stopPropagation()}},lr(b),l],stateAttributesMapping:Ys});return Y.jsx(Is,{context:T,openInteractionType:g,modal:P,disabled:!R||C===it,initialFocus:A,returnFocus:a,restoreFocus:"popup",previousFocusableElement:Ye(k)?k:void 0,nextFocusableElement:u.context.triggerFocusTargetRef,beforeContentFocusGuardRef:u.context.beforeContentFocusGuardRef,children:Y.jsx(bv.Provider,{value:f,children:I})})});function xv(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 Ol(e){const t=Pt(e);let n=parseFloat(t.width)||0,o=parseFloat(t.height)||0;const r=Ye(e),s=r?e.offsetWidth:n,i=r?e.offsetHeight:o;return(yo(n)!==s||yo(o)!==i)&&(n=s,o=i),{width:n,height:o}}const Sv={badInput:!1,customError:!1,patternMismatch:!1,rangeOverflow:!1,rangeUnderflow:!1,stepMismatch:!1,tooLong:!1,tooShort:!1,typeMismatch:!1,valid:null,valueMissing:!1},wv={valid:null,touched:!1,dirty:!1,filled:!1,focused:!1},Rv={disabled:!1,...wv},qn={valid(e){return e===null?null:e?{"data-valid":""}:{"data-invalid":""}}},Wi={checked(e){return e?{"data-checked":""}:{"data-unchecked":""}},...Kt,...qn},Ua="data-composite-item-active",nf=c.createContext({register:()=>{},unregister:()=>{},subscribeMapChange:()=>()=>{},nextIndexRef:{current:0}});function kv(){return c.useContext(nf)}function ur(e={}){const{guess:t,label:n,metadata:o,textRef:r,index:s}=e,{register:i,unregister:a,subscribeMapChange:l,nextIndexRef:u}=kv(),d=c.useRef(-1),[p,f]=c.useState(s==null&&t?()=>{if(d.current===-1){const m=u.current;u.current+=1,d.current=m}return d.current}:-1),y=s??p,h=c.useRef(null),g=c.useCallback(m=>{const b=h.current;b&&a(b),h.current=m,m&&i(m,{metadata:o??null,index:s??null,label:n,textRef:r})},[s,i,a,o,n,r]);return pe(()=>{if(s==null)return l(m=>{var v;const b=h.current?(v=m.get(h.current))==null?void 0:v.index:null;b!=null&&f(b)})},[s,l]),{ref:g,index:y}}function of(e={}){const{highlightItemOnHover:t,highlightedIndex:n,onHighlightedIndexChange:o}=vs(),{ref:r,index:s}=ur(e),i=n===s,a=c.useRef(null),l=Tt(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 Ga(e){const{render:t,className:n,style:o,state:r=Ke,props:s=Vt,refs:i=Vt,metadata:a,stateAttributesMapping:l,tag:u="div",...d}=e,{compositeProps:p,compositeRef:f}=of({metadata:a});return Re(u,e,{state:r,ref:[f,...i],props:[p,...s,d],stateAttributesMapping:l})}const Cv={invalid:void 0,name:void 0,validityData:{state:Sv,errors:[],error:"",value:"",initialValue:null},setValidityData:ot,disabled:void 0,setTouched:ot,setDirty:ot,setFilled:ot,setFocused:ot,validationMode:"onSubmit",shouldValidateOnChange:()=>!1,state:Rv,registerFieldControl:ot,validation:{getValidationProps:(e,t=Ke)=>t,inputRef:{current:null},registeredInputs:new Map,registerInput:ot,getInputControl:()=>null,commit:async()=>{},change:ot}},Ev=c.createContext(Cv);function Zt(e=!0){const t=c.useContext(Ev);if(t.setValidityData===ot&&!e)throw new Error(We(28));return t}const Pv=c.createContext({disabled:!1});function rf(){return c.useContext(Pv)}const Mv=c.createContext({controlId:void 0,registerControlId:ot,labelId:void 0,setLabelId:ot,messageIds:[],setMessageIds:ot,getDescriptionProps:e=>e});function An(){return c.useContext(Mv)}function qa(e,t,n,o=!0,r){const[s,i]=c.useState(),a=st(r?`${r}-label`:void 0),l=e??t??s;return pe(()=>{const u=e||t||!o?void 0:Tv(n.current,a);s!==u&&i(u)}),l}function Tv(e,t){const n=Iv(e);if(n)return!n.id&&t&&(n.id=t),n.id||void 0}function Iv(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]}function Po(e={}){const{id:t,implicit:n=!1,controlRef:o}=e,{controlId:r,registerControlId:s}=An(),i=st(t),a=n?r:void 0,l=gt(()=>Symbol()),u=c.useRef(!1),d=c.useRef(t!=null),p=he(()=>{!u.current||s===ot||(u.current=!1,s(l.current,void 0))});return pe(()=>{if(s===ot)return;let f;if(n){const y=o==null?void 0:o.current;Ne(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 sf=c.createContext(void 0);function Ov(){return c.useContext(sf)}function ps(e){if(e==null)return"";if(typeof e=="string")return e;try{return JSON.stringify(e)}catch{return String(e)}}const af=c.createContext(void 0);function Av(){const e=c.useContext(af);if(e===void 0)throw new Error(We(52));return e}const tE=c.forwardRef(function(t,n){const{render:o,className:r,disabled:s=!1,readOnly:i=!1,required:a=!1,"aria-labelledby":l,value:u,inputRef:d,nativeButton:p=!1,id:f,style:y,...h}=t,g=Ov(),{disabled:m,readOnly:b,required:v,form:x,checkedValue:S,touched:w=!1,validation:R,name:C,setCheckedValue:k=ot,setTouched:T=ot,registerInputRef:E=ot}=g??{},{setTouched:N,setFilled:O,state:D,disabled:A}=Zt(),P=rf(),{labelId:z,getDescriptionProps:F}=An(),I=A||P.disabled||m||s,L=b||i,M=v||a,_=x,H=g?S===u:u==="",$=c.useRef(null),U=c.useRef(null),G=R==null?void 0:R.registerInput,V=c.useCallback(oe=>G==null?void 0:G(oe,{controlRef:$,value:void 0}),[G]),X=Tt(d,U,E,V);pe(()=>{var oe;(oe=U.current)!=null&&oe.checked&&O(!0)},[O]),pe(()=>{if(U.current){if(I&&H){E(null);return}E(U.current)}},[H,I,E]);const j=st(),K=Po({id:f,implicit:!1,controlRef:$}),de=p?void 0:K,se=qa(l,z,U,!p,de),ne={role:"radio","aria-checked":H,"aria-labelledby":se,[Ua]:H?"":void 0,id:p?K:j,onKeyDown(oe){oe.key==="Enter"&&oe.preventDefault()},onClick(oe){if(oe.defaultPrevented||I||L)return;oe.preventDefault();const le=U.current;le&&zn(le,oe)},onFocus(oe){var le;oe.defaultPrevented||I||L||!w||((le=U.current)==null||le.click(),T(!1))}},{getButtonProps:re,buttonRef:q}=Mt({disabled:I,native:p,composite:!1}),ie={type:"radio",ref:X,form:_,id:de,name:C,tabIndex:-1,style:C?Ps:Sn,"aria-hidden":!0,...u!==void 0?{value:ps(u)}:Ke,disabled:I,checked:H,required:M,readOnly:L,onChange(oe){if(oe.nativeEvent.defaultPrevented||I||L||u===void 0)return;const le=ke(Rt,oe.nativeEvent);k(u,le),!le.isCanceled&&N(!0)},onClick(oe){oe.stopPropagation()},onFocus(){var oe;(oe=$.current)==null||oe.focus()}},ge=c.useMemo(()=>({...D,required:M,disabled:I,readOnly:L,checked:H}),[D,I,L,H,M]),ue=ge,Z=g!==void 0,J=[n,$,q],ae=[ne,h,re,F,R?oe=>R.getValidationProps(I,oe):Ke],ce=Re("span",t,{enabled:!Z,state:ge,ref:J,props:ae,stateAttributesMapping:Wi});return Y.jsxs(af.Provider,{value:ue,children:[Z?Y.jsx(Ga,{tag:"span",render:o,className:r,style:y,state:ge,refs:J,props:ae,stateAttributesMapping:Wi}):ce,Y.jsx("input",{...ie,suppressHydrationWarning:!0})]})}),nE=c.forwardRef(function(t,n){const{render:o,className:r,style:s,keepMounted:i=!1,...a}=t,l=Av(),u=l.checked,{mounted:d,transitionStatus:p,setMounted:f}=In(u),y={...l,transitionStatus:p},h=c.useRef(null),g=i||d,m=Re("span",t,{ref:[n,h],state:y,props:a,stateAttributesMapping:Wi});return It({open:u,ref:h,onComplete(){u||f(!1)}}),g?m:null});function Ht({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]}function dr(e){const{children:t,elementsRef:n,labelsRef:o,onMapChange:r}=e,s=he(r),[,i]=c.useState(!1),a=gt(Dv).current,l=gt(Nv).current,u=c.useRef(0),d=c.useRef(!0),p=c.useRef([]),f=c.useRef(null),y=he(()=>{d.current||(d.current=!0,i(w=>!w))}),h=he((w,R)=>{l.set(w,R),y()}),g=he(w=>{l.delete(w),y()}),m=he(w=>{const R=new Map;return n.current.length=0,o&&(o.current.length=0),w.forEach(C=>{var k,T;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:((T=(k=C.registration.textRef)==null?void 0:k.current)==null?void 0:T.textContent)??C.element.textContent)}),u.current=n.current.length,R});function b(w){var k;if((k=f.current)==null||k.disconnect(),f.current=null,typeof MutationObserver!="function"||w.length<2)return;const R=new MutationObserver(T=>{if(!Fv(T))return;let E=null;for(const N of w)if(N.isConnected){if(E&&cf(E,N)>0){R.disconnect(),y();return}E=N}});f.current=R;const C=new Set;for(let T=1;T<w.length;T+=1){const E=_v(w[T-1],w[T]);E&&C.add(E)}C.forEach(T=>R.observe(T,{childList:!0}))}const v=he(()=>{const[w,R]=Lv(l),C=m(w);b(R),p.current=w,d.current=!1,a.forEach(k=>k(C)),s(C)});pe(()=>(d.current||m(p.current),()=>{n.current=[],o&&(o.current=[])}),[n,o,m]),pe(()=>{d.current&&v()}),pe(()=>()=>{var w;(w=f.current)==null||w.disconnect(),d.current=!0},[]);const x=he(w=>(a.add(w),()=>{a.delete(w)})),S=c.useMemo(()=>({register:h,unregister:g,subscribeMapChange:x,nextIndexRef:u}),[h,g,x,u]);return Y.jsx(nf.Provider,{value:S,children:t})}function Nv(){return new Map}function Dv(){return new Set}function Lv(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)=>cf(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 _v(e,t){let n=e.parentElement;for(;n&&!n.contains(t);)n=n.parentElement;return n}function Fv(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 cf(e,t){return e.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_FOLLOWING?-1:1}function lf(e){return e==null||e.hasAttribute("disabled")||e.getAttribute("aria-disabled")==="true"}const zv=[];function Vv(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=zv}=e,[y,h]=c.useState(0),g=o!=null,m=c.useRef(null),b=Tt(m,l),v=c.useRef([]),x=c.useRef(!1),S=i??y,w=he((E,N=!1)=>{if((a??h)(E),N){const O=v.current[E];Tl(m.current,O,s,n)}}),R=he(E=>{var A;if(E.size===0||x.current)return;x.current=!0;const N=Array.from(E.keys()),O=N.find(P=>P==null?void 0:P.hasAttribute(Ua))??null,D=O?((A=E.get(O))==null?void 0:A.index)??-1:-1;if(D!==-1)w(D);else if(ns(N,S,p)){const P=nn(N,{disabledIndices:p});Bo(N,P)||w(P)}Tl(m.current,O,s,n)});pe(()=>{if(p==null||i!=null||!x.current)return;const E=v.current;if(ns(E,S,p)){const N=nn(E,{disabledIndices:p});Bo(E,N)||w(N)}},[p,i,S,v,w]);const C=he((E,N,O)=>r?r(E,N,O,v):O),k=he(E=>{const N=E.key===ds||E.key===fs;if(!Gn.has(E.key)||!u&&N||$v(E,f)||!m.current)return;const D=s==="rtl",A=D?ls:us,P=D?us:ls,z=n==="vertical"?cs:A,F=n==="vertical"?as:P,I=at(E.nativeEvent);if(I!=null&&Ml(I)&&!lf(I)){const U=I.selectionStart,G=I.selectionEnd,V=I.value;if(U==null||E.shiftKey||U!==G||E.key!==F&&U<V.length||E.key!==z&&U>0)return}let L=S;const M=jr(v,p),_=Vi(v,p);o!=null&&(L=o({disabledIndices:p,elementsRef:v,event:E,highlightedIndex:S,loopFocus:t,maxIndex:_,minIndex:M,onLoop:C,orientation:n,rtl:D}));const H=n!=="vertical"&&E.key===A||n!=="horizontal"&&E.key===cs,$=n!=="vertical"&&E.key===P||n!=="horizontal"&&E.key===as;u&&(E.key===ds?L=M:E.key===fs&&(L=_)),L===S&&(H||$)&&(t&&L===_&&H?(L=M,r&&(L=r(E,S,L,v))):t&&L===M&&$?(L=_,r&&(L=r(E,S,L,v))):L=nn(v.current,{startingIndex:L,decrement:$,disabledIndices:p})),L!==S&&!Bo(v.current,L)&&(d&&E.stopPropagation(),(g||N||H||$)&&E.preventDefault(),w(L,!0),queueMicrotask(()=>{var U;(U=v.current[L])==null||U.focus()}))});return{props:{ref:b,onFocus(E){const N=m.current,O=at(E.nativeEvent);!N||O==null||!Ml(O)||O.setSelectionRange(0,O.value.length)},onKeyDown:k},highlightedIndex:S,onHighlightedIndexChange:w,elementsRef:v,onMapChange:R,relayKeyboardEvent:k}}function $v(e,t){for(const n of gv)if(!t.includes(n)&&e.getModifierState(n))return!0;return!1}function Ya(e){const{render:t,className:n,style:o,refs:r=Vt,props:s=Vt,state:i=Ke,stateAttributesMapping:a,highlightedIndex:l,onHighlightedIndexChange:u,orientation:d,grid:p,loopFocus:f,onLoop:y,enableHomeAndEndKeys:h,onMapChange:g,stopEventPropagation:m=!0,rootRef:b,disabledIndices:v,modifierKeys:x,highlightItemOnHover:S=!1,tag:w="div",...R}=e,C=On(),{props:k,highlightedIndex:T,onHighlightedIndexChange:E,elementsRef:N,onMapChange:O,relayKeyboardEvent:D}=Vv({grid:p,loopFocus:f,onLoop:y,orientation:d,highlightedIndex:l,onHighlightedIndexChange:u,rootRef:b,stopEventPropagation:m,enableHomeAndEndKeys:h,direction:C,disabledIndices:v,modifierKeys:x}),A=Re(w,e,{state:i,ref:r,props:[k,...s,R],stateAttributesMapping:a}),P=c.useMemo(()=>({highlightedIndex:T,onHighlightedIndexChange:E,highlightItemOnHover:S,relayKeyboardEvent:D}),[T,E,S,D]);return Y.jsx(Ou.Provider,{value:P,children:Y.jsx(dr,{elementsRef:N,onMapChange:z=>{g==null||g(z),O(z)},children:A})})}function Mo(e,t,n,o,r=!0,s){const{registerFieldControl:i}=Zt(),a=gt(()=>Symbol());pe(()=>{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]),pe(()=>{const l=a.current;return()=>{i(l,void 0)}},[i,a])}const Hv=c.createContext({elementRef:{current:null},formRef:{current:{fields:new Map}},errors:{},clearErrors:ot,validationMode:"onSubmit",submitAttemptedRef:{current:!1}});function To(){return c.useContext(Hv)}function jv(e,t){return e.matches(":disabled")?!1:!t||e.form===t?!0:e.form===null&&!e.hasAttribute("form")}const Bv=c.createContext(void 0);function Wv(e=!1){const t=c.useContext(Bv);if(!t&&!e)throw new Error(We(86));return t}const Uv=[tf],oE=c.forwardRef(function(t,n){const{render:o,className:r,disabled:s,readOnly:i,required:a,onValueChange:l,value:u,defaultValue:d,form:p,name:f,inputRef:y,id:h,style:g,...m}=t,{setTouched:b,setFocused:v,validationMode:x,name:S,disabled:w,state:R,validation:C,setDirty:k,setFilled:T,validityData:E}=Zt(),{labelId:N}=An(),{clearErrors:O,elementRef:D}=To(),A=Wv(!0),P=w||s,z=S??f,F=st(h),[I,L]=Ht({controlled:u,default:d,name:"RadioGroup",state:"value"}),[M,_]=c.useState(!1),H=he((q,ie)=>{l==null||l(q,ie),!ie.isCanceled&&L(q)}),$=C.getInputControl,U=c.useMemo(()=>({get current(){return $()}}),[$]),G=c.useRef(null),V=c.useRef(null);function X(q){let ie;return y&&(typeof y=="function"?ie=y(q):y.current=q),G.current=q,ie}const j=he(q=>{if(!q||q.disabled)return;V.current||(V.current=q);const ie=G.current,ge=q.checked||ie==null||ie.disabled?X(q):void 0;return()=>{V.current===q&&(V.current=null),G.current===q?ge?(ge(),G.current=null):X(null):ge==null||ge()}}),K=he(()=>{const q=D.current;if(!q)return I??null;for(const ie of C.registeredInputs.keys())if(ie.checked&&jv(ie,q))return I??null;return null});Mo(U,F,I??null,K,!P,f),Eo(I,()=>{O(z),k(I!==E.initialValue),T(I!=null),C.change(I);const q=V.current;I==null&&q&&!q.disabled&&X(q)});const de=N??(A==null?void 0:A.legendId),se={...R,disabled:P??!1,required:a??!1,readOnly:i??!1},ne=c.useMemo(()=>({checkedValue:I,disabled:P,form:p,validation:C,name:z,readOnly:i,registerInputRef:j,required:a,setCheckedValue:H,setTouched:_,touched:M}),[I,P,p,C,z,i,j,a,H,_,M]),re={id:h,role:"radiogroup","aria-required":a||void 0,"aria-disabled":P||void 0,"aria-readonly":i||void 0,"aria-labelledby":de,onFocus(){v(!0)},onBlur(q){ve(q.currentTarget,q.relatedTarget)||(b(!0),v(!1),x==="onBlur"&&C.commit(I))},onKeyDownCapture(q){q.key.startsWith("Arrow")&&(_(!0),v(!0))}};return Y.jsx(sf.Provider,{value:ne,children:Y.jsx(Ya,{render:o,className:r,style:g,state:se,props:[re,m,q=>C.getValidationProps(P??!1,q)],refs:[n],stateAttributesMapping:qn,enableHomeAndEndKeys:!1,modifierKeys:Uv})})}),uf=c.createContext(void 0);function Gv(){return c.useContext(uf)}const rE=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,...h}=t,g=st(p||void 0),m=Gv(),b=(m==null?void 0:m.value)??[],v=m?void 0:r,x=(s||(m==null?void 0:m.disabled))??!1,[S,w]=Ht({controlled:m?g!==void 0&&b.indexOf(g)>-1:l,default:v,name:"Toggle",state:"pressed"}),{getButtonProps:R,buttonRef:C}=Mt({disabled:x,native:f}),k={disabled:x,pressed:S},T=[C,n],E=[{"aria-pressed":S,onClick(D){var z;const A=!S,P=ke(Rt,D.nativeEvent);a==null||a(A,P),!P.isCanceled&&(g&&((z=m==null?void 0:m.setGroupValue)==null||z.call(m,g,A,P)),!P.isCanceled&&w(A))}},h,R],N=Re("button",t,{enabled:!m,state:k,ref:T,props:E}),O=c.useMemo(()=>({disabled:x,focusableWhenDisabled:!1}),[x]);return m?Y.jsx(Ga,{tag:"button",render:u,className:o,style:y,metadata:O,state:k,refs:T,props:E}):N});function ut(e,t=Number.MIN_SAFE_INTEGER,n=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,n))}function Xa(e,t,n=(o,r)=>o===r){return e.length===t.length&&e.every((o,r)=>n(o,t[r]))}function qv(e){return e==null?void 0:`${e}-label`}function df(e,t){return e??t}function ff(e,t){return e-t}function pf(e,t,n,o,r,s){const i=ut(e,n,o);if(!r)return i;const a=s.slice();return a[t]=ut(i,s[t-1]??-1/0,s[t+1]??1/0),a.sort(ff)}function hf(e,t,n){if(!Array.isArray(e))return!0;const o=t*n;for(let r=0;r<e.length-1;r+=1)if(!(Math.abs(e[r]-e[r+1])>=o))return!1;return!0}const Qn=()=>null,fr={activeThumbIndex:Qn,max:Qn,min:Qn,minStepsBetweenValues:Qn,step:Qn,values:Qn,...qn},gf=c.createContext(void 0);function ei(){const e=c.useContext(gf);if(e===void 0)throw new Error(We(62));return e}function Yv(e,t){return e===t||Array.isArray(e)&&Array.isArray(t)&&Xa(e,t)}const sE=c.forwardRef(function(t,n){const{"aria-labelledby":o,className:r,defaultValue:s,disabled:i=!1,id:a,format:l,largeStep:u=10,locale:d,render:p,max:f=100,min:y=0,minStepsBetweenValues:h=0,form:g,name:m,onValueChange:b,onValueCommitted:v,orientation:x="horizontal",step:S=1,thumbCollisionBehavior:w="push",thumbAlignment:R="center",value:C,style:k,...T}=t,E=st(a),N=qv(E),O=he(b),D=he(v),{clearErrors:A}=To(),{state:P,disabled:z,name:F,setTouched:I,setDirty:L,validityData:M,validation:_}=Zt(),{labelId:H}=An(),[$,U]=c.useState(),G=o??df(H,$),V=z||i,X=F??m,[j,K]=Ht({controlled:C,default:s??y,name:"Slider"}),de=c.useRef(null),se=c.useRef(null),ne=c.useRef([]),re=c.useRef(null),q=c.useRef(-1),ie=c.useRef(null),ge=c.useRef(Rt),[ue,Z]=c.useState(-1),[J,ae]=c.useState(-1),[ce,oe]=c.useState(!1),[le,B]=c.useState(()=>new Map),[Q,fe]=c.useState([void 0,void 0]),te=he(Te=>{Z(Te),Te!==-1&&ae(Te)}),ee=he(Te=>{Te&&(se.current=Te)}),me=Array.isArray(j),ye=c.useMemo(()=>me?j.map(Te=>ut(Te,y,f)).sort(ff):[ut(j,y,f)],[f,y,me,j]),De=me?ye:ye[0];Mo(_.inputRef,E,De,void 0,!V,m),Eo(De,()=>{A(X),_.change(De);const Te=M.initialValue;let be;Array.isArray(De)&&Array.isArray(Te)?be=!Xa(De,Te):be=De!==Te,L(be)});const Me=he((Te,be)=>{if(Number.isNaN(Te)||Yv(Te,j))return!1;const Ve=be.event,Fe=Ve.constructor,je=new Fe(Ve.type,Ve);return Object.defineProperty(je,"target",{writable:!0,value:{value:Te,name:X}}),be.event=je,O(Te,be),be.isCanceled?!1:(ge.current=be.reason,K(Te),!0)}),Ge=he((Te,be,Ve)=>{const Fe=pf(Te,be,y,f,me,ye);if(hf(Fe,S,h)){const je="key"in Ve?B0:j0,Je=Me(Fe,ke(je,Ve.nativeEvent,void 0,{activeThumbIndex:be}));I(!0),Je&&D(Fe,nd(je,Ve.nativeEvent))}});pe(()=>{if(!V)return;const Te=pt(Ie(de.current));ve(de.current,Te)&&Te.blur(),ue!==-1&&te(-1)},[ue,V,te]);const _e=c.useMemo(()=>({...P,activeThumbIndex:ue,disabled:V,dragging:ce,orientation:x,max:f,min:y,minStepsBetweenValues:h,step:S,values:ye}),[P,ue,V,ce,f,y,h,x,S,ye]),ze=c.useMemo(()=>({active:ue,controlRef:se,disabled:V,dragging:ce,validation:_,format:l,handleInputChange:Ge,indicatorPosition:Q,inset:R!=="center",labelId:G,rootLabelId:N,largeStep:u,lastUsedThumbIndex:J,lastChangeReasonRef:ge,form:g,locale:d,max:f,min:y,minStepsBetweenValues:h,name:X,onValueCommitted:D,orientation:x,pressedThumbCenterOffsetRef:re,pressedThumbIndexRef:q,pressedValuesRef:ie,registerFieldControlRef:ee,renderBeforeHydration:R==="edge",setActive:te,setDragging:oe,setIndicatorPosition:fe,setLabelId:U,setValue:Me,state:_e,step:S,thumbCollisionBehavior:w,thumbMap:le,thumbRefs:ne,values:ye}),[ue,G,N,V,ce,_,l,Ge,Q,u,J,g,d,f,y,h,X,D,x,ee,te,Me,_e,S,w,R,le,ye]),et=Re("div",t,{state:_e,ref:[n,de],props:[{"aria-labelledby":G,id:E,role:"group"},T,Te=>_.getValidationProps(V,Te)],stateAttributesMapping:fr});return Y.jsx(gf.Provider,{value:ze,children:Y.jsx(dr,{elementsRef:ne,onMapChange:B,children:et})})});function Xv(e,t){const n=st(e);return pe(()=>(t(n),()=>{t(o=>o===n?void 0:o)}),[n,t]),n}function mf(e){return Array.isArray(e)?e.map(t=>mf(t)).join(","):e==null?"":String(e)}const Al=new Map;function Kv(e,t){const n=JSON.stringify({locale:mf(e),options:t}),o=Al.get(n);if(o)return o;const r=new Intl.NumberFormat(e,t);return Al.set(n,r),r}function Qo(e,t,n){return e==null?"":Kv(t,n).format(e)}function yf(e,t){const n=e.getBoundingClientRect();return t?(n.top+n.bottom)/2:(n.left+n.right)/2}function Uo(e){if(e===0)return 0;if(Math.abs(e)<1){const n=e.toExponential().split("e-"),o=n[0].split(".")[1];return(o?o.length:0)+parseInt(n[1],10)}const t=e.toString().split(".")[1];return t?t.length:0}function bf(e,t,n){const o=Math.round((e-n)/t)*t+n;return Number(o.toFixed(Math.max(Uo(t),Uo(n))))}function Nl(e,t,n,o,r,s,i,a){const l=e.slice(),u=s*i,d=l.length-1,p=a??e,f=o+t*u,y=r-(d-t)*u;l[t]=ut(n,f,y);for(let h=t+1;h<=d;h+=1){const g=l[h-1]+u,m=r-(d-h)*u,b=p[h];let v=Math.max(l[h],g);b<v&&(v=Math.max(b,g)),l[h]=ut(v,g,m)}for(let h=t-1;h>=0;h-=1){const g=l[h+1]-u,m=o+h*u,b=p[h];let v=Math.min(l[h],g);b>v&&(v=Math.min(b,g)),l[h]=ut(v,m,g)}for(let h=0;h<=d;h+=1)l[h]=Number(l[h].toFixed(12));return l}function Zv(e,t,n,o,r,s,i,a,l,u){const d=n??t,p=o??t;if(!(d.length>1))return{value:s,thumbIndex:0,didSwap:!1};const y=l*u;if(e==="push")return{value:Nl(d,r,s,i,a,l,u),thumbIndex:r,didSwap:!1};const h=d.slice(),g=h[r-1],m=h[r+1],b=g!=null?g+y:i,v=m!=null?m-y:a,x=Number(ut(s,b,v).toFixed(12));switch(h[r]=x,e){case"swap":{const S=d[r],w=1e-7,R=s>S,C=s<S,k=R&&m!=null&&s>=m-w,T=C&&g!=null&&s<=g+w;if(!k&&!T)return{value:h,thumbIndex:r,didSwap:!1};const E=k?r+1:r-1,N=h.map((M,_)=>{if(_===r)return x;const H=p[_];return H??d[_]});let O=s;k?O=Math.max(s,h[E]):O=Math.min(s,h[E]);const D=Nl(h,E,O,i,a,l,u,N),A=k?E-1:E+1,P=D[A-1],z=D[A+1];let F=P!=null?P+y:i;F=Math.max(F,i+A*y);let I=z!=null?z-y:a;I=Math.min(I,a-(D.length-1-A)*y);const L=ut(x,F,I);return D[A]=Number(L.toFixed(12)),{value:D,thumbIndex:E,didSwap:!0}}case"none":default:return{value:h,thumbIndex:r,didSwap:!1}}}const Qv=2;function Jv(e,t){if(!e)return{start:0,end:0};function n(s){const i=s!=null?parseFloat(s):0;return Number.isNaN(i)?0:i}const o=t?"Top":"InlineStart",r=t?"Bottom":"InlineEnd";return{start:n(e[`border${o}Width`])+n(e[`padding${o}`]),end:n(e[`border${r}Width`])+n(e[`padding${r}`])}}function ex(e,t){if(t.current!=null&&e.changedTouches){const n=e;for(let o=0;o<n.changedTouches.length;o+=1){const r=n.changedTouches[o];if(r.identifier===t.current)return{x:r.clientX,y:r.clientY}}return null}return{x:e.clientX,y:e.clientY}}const iE=c.forwardRef(function(t,n){const{render:o,className:r,style:s,...i}=t,{disabled:a,dragging:l,inset:u,lastChangeReasonRef:d,max:p,min:f,minStepsBetweenValues:y,onValueCommitted:h,orientation:g,pressedThumbCenterOffsetRef:m,pressedThumbIndexRef:b,pressedValuesRef:v,registerFieldControlRef:x,renderBeforeHydration:S,setActive:w,setDragging:R,setValue:C,state:k,step:T,thumbCollisionBehavior:E,thumbRefs:N,values:O}=ei(),D=On(),A=O.length>1,P=g==="vertical",z=c.useRef(null),F=c.useRef(null),I=he(Z=>{Z&&F.current==null&&(F.current=Xe(Z).getComputedStyle(Z))}),L=c.useRef(null),M=c.useRef(0),_=c.useRef(0),H=c.useRef(null),$=rt(O);function U(Z){return Z==null?void 0:Z.querySelector('input[type="range"]')}function G(Z){b.current=Z,N.current[Z]||(m.current=null)}function V(){b.current=-1,m.current=null}function X(Z){return Ne(Z)?N.current.some(J=>{var ae;return!Ne(J)||!ve(J,Z)?!1:((ae=U(J))==null?void 0:ae.disabled)===!0}):!1}function j(Z){const J=z.current,ae=b.current;if(!J||ae<0||ae>=O.length)return ae>=O.length&&(H.current=null),null;const{width:ce,height:oe,bottom:le,left:B,right:Q}=J.getBoundingClientRect(),fe=Jv(F.current,P),te=_.current,ee=(P?oe:ce)-fe.start-fe.end-te*2,me=m.current??0,ye=Z.x-me,De=Z.y-me,Me=P?le-De-fe.end:(D==="rtl"?Q-ye:ye-B)-fe.start,Ge=ut((Me-te)/ee,0,1);let _e=(p-f)*Ge+f;return _e=bf(_e,T,f),_e=ut(_e,f,p),A?Zv(E,O,$.current,v.current,ae,_e,f,p,T,y):{value:_e,thumbIndex:ae,didSwap:!1}}function K(Z){var ce;v.current=A?O.slice():null,H.current=null,$.current=O;const J=b.current;let ae=J;if(J>-1&&J<O.length){if(O[J]===p){let oe=J;for(;oe>0&&O[oe-1]===p;)oe-=1;ae=oe}}else{const oe=P?"y":"x";let le;ae=-1;for(let B=0;B<N.current.length;B+=1){const Q=N.current[B];if(Ne(Q)&&!((ce=U(Q))!=null&&ce.disabled)){const fe=yf(Q,P),te=Math.abs(Z[oe]-fe);(le===void 0||te<=le)&&(ae=B,le=te)}}}if(ae>-1&&ae!==J&&G(ae),u){const oe=N.current[ae];if(Ne(oe)){const le=oe.getBoundingClientRect(),B=P?"height":"width";_.current=le[B]/2}}}function de(Z){var ae;const J=U((ae=N.current)==null?void 0:ae[Z]);J&&J.focus({preventScroll:!0,focusVisible:!1})}function se(Z,J,ae){const ce=C(Z.value,ke(J,ae,void 0,{activeThumbIndex:Z.thumbIndex}));return ce&&(H.current=Z.value,$.current=Array.isArray(Z.value)?Z.value:[Z.value],Z.didSwap&&(G(Z.thumbIndex),de(Z.thumbIndex))),ce}const ne=he(Z=>{const J=ex(Z,L);if(J==null)return;if(M.current+=1,Z.type==="pointermove"&&Z.buttons===0){re(Z);return}const ae=j(J);ae!=null&&hf(ae.value,T,y)&&(!l&&M.current>Qv&&R(!0),se(ae,W0,Z))}),re=he(Z=>{var ae,ce;w(-1),R(!1),m.current=null;const J=H.current;if(Array.isArray(J)&&J.length!==O.length&&(H.current=null),H.current!=null){const oe=d.current;h(H.current,nd(oe,Z))}"pointerType"in Z&&((ae=z.current)!=null&&ae.hasPointerCapture(Z.pointerId))&&((ce=z.current)==null||ce.releasePointerCapture(Z.pointerId)),b.current=-1,L.current=null,ie()}),q=he(Z=>{if(a)return;if(X(at(Z))){V();return}const J=Z.changedTouches[0];if(J==null)return;L.current=J.identifier;const ae={x:J.clientX,y:J.clientY};K(ae);const ce=j(ae);if(ce==null)return;de(ce.thumbIndex),se(ce,jc,Z),M.current=0;const oe=Ie(z.current);oe.addEventListener("touchmove",ne,{passive:!0}),oe.addEventListener("touchend",re,{passive:!0})}),ie=he(()=>{const Z=Ie(z.current);Z.removeEventListener("pointermove",ne),Z.removeEventListener("pointerup",re),Z.removeEventListener("touchmove",ne),Z.removeEventListener("touchend",re),v.current=null,H.current=null}),ge=$n();return c.useEffect(()=>{const Z=z.current;if(!Z)return()=>ie();const J=Ae(Z,"touchstart",q,{passive:!0});return()=>{J(),ge.cancel(),ie()}},[ie,q,z,ge]),c.useEffect(()=>{a&&ie()},[a,ie]),Re("div",t,{state:k,ref:[n,x,z,I],props:[{"data-base-ui-slider-control":S?"":void 0,onPointerDown(Z){const J=z.current,ae=at(Z.nativeEvent);if(!J||a||Z.defaultPrevented||!Ne(ae)||Z.button!==0)return;if(X(ae)){V();return}const ce={x:Z.clientX,y:Z.clientY};K(ce);const oe=j(ce);if(oe==null)return;ve(N.current[oe.thumbIndex],pt(Ie(J)))?Z.preventDefault():ge.request(()=>{de(oe.thumbIndex)}),R(!0),m.current!=null||se(oe,jc,Z.nativeEvent),Z.nativeEvent.pointerId&&J.setPointerCapture(Z.nativeEvent.pointerId),M.current=0;const Q=Ie(J);Q.addEventListener("pointermove",ne,{passive:!0}),Q.addEventListener("pointerup",re,{once:!0})}},i],stateAttributesMapping:fr})}),aE=c.forwardRef(function(t,n){const{render:o,className:r,style:s,...i}=t,{state:a}=ei();return Re("div",t,{state:a,ref:n,props:[{style:{position:"relative"}},i],stateAttributesMapping:fr})}),vf="";function tx(){return ot}function nx(){return!1}function ox(){return!0}function Ka(){return Ns.useSyncExternalStore(tx,nx,ox)}function hs(e,t,n){return(e-t)*100/(n-t)}const rx=c.createContext(void 0),sx={disableStyleElements:!1};function Za(){return c.useContext(rx)??sx}function xf(e){const{script:t}=e,{nonce:n}=Za();return Ka()?Y.jsx("script",{nonce:n,dangerouslySetInnerHTML:{__html:t},suppressHydrationWarning:!0}):null}var Dl;const ix=new Set([...Gn,Jd,ef]);function ax(e,t,n,o){if(!(t<0))return e.length===2?`${Qo(e[t],o,n)} ${t===0?"start":"end"} range`:n?Qo(e[t],o,n):void 0}function cx(e,t,n,o,r){const s=e+t*n,i=Number(s.toFixed(Math.max(Uo(e),Uo(t),Uo(o))));return ut(i,o,r)}const cE=c.forwardRef(function(t,n){const{render:o,children:r,className:s,"aria-describedby":i,"aria-label":a,"aria-labelledby":l,"aria-valuetext":u,disabled:d=!1,getAriaLabel:p,getAriaValueText:f,id:y,index:h,inputRef:g,onBlur:m,onFocus:b,onKeyDown:v,tabIndex:x,style:S,...w}=t,R=st(y),{active:C,lastUsedThumbIndex:k,controlRef:T,disabled:E,validation:N,format:O,handleInputChange:D,inset:A,labelId:P,largeStep:z,locale:F,max:I,min:L,minStepsBetweenValues:M,form:_,name:H,orientation:$,pressedThumbCenterOffsetRef:U,pressedThumbIndexRef:G,renderBeforeHydration:V,setActive:X,setIndicatorPosition:j,state:K,step:de,thumbRefs:se,values:ne}=ei(),re=On(),q=d||E,ie=ne.length>1,ge=$==="vertical",ue=re==="rtl",{setTouched:Z,setFocused:J,validationMode:ae}=Zt(),ce=c.useRef(null),oe=c.useRef(null),le=c.useRef(!1),B=he(Oe=>{le.current||b==null||b(Oe)}),Q=he(Oe=>{le.current||m==null||m(Oe)}),fe=st(),te=Po(),ee=ie?fe:te,me=c.useMemo(()=>({inputId:ee}),[ee]),{ref:ye,index:De}=ur({metadata:me}),Me=ie?h??De:0,Ge=Me===ne.length-1,_e=ne[Me],ze=hs(_e,L,I),[et,Te]=c.useState(),be=Ka(),Ve=k>=0&&k<ne.length?k:-1,Fe=he(()=>{const Oe=T.current,$e=ce.current;if(!Oe||!$e)return;const qe=$e.getBoundingClientRect(),Ce=Oe.getBoundingClientRect(),He=ge?"height":"width",dt=Ce[He]-qe[He],xt=(qe[He]/2+dt*ze/100)/Ce[He]*100,kt=Number.isFinite(xt)?xt:void 0;Te(kt),Me===0?j(fn=>[kt,fn[1]]):Ge&&j(fn=>[fn[0],kt])});pe(()=>{A&&queueMicrotask(Fe)},[Fe,A]),pe(()=>{A&&Fe()},[Fe,A,ze]),pe(()=>{if(!A)return;const Oe=T.current,$e=ce.current;if(!Oe||!$e)return;const qe=Xe(Oe).ResizeObserver;if(typeof qe!="function")return;const Ce=new qe(Fe);return Ce.observe(Oe),Ce.observe($e),()=>{Ce.disconnect()}},[T,Fe,A]);const je=ge?"bottom":"insetInlineStart",Je=ge?"left":"top";let lt;ie?C===Me?lt=2:Ve===Me&&(lt=1):C===Me&&(lt=1);let Se;!A&&!Number.isFinite(ze)?Se=Sn:Se={position:"absolute",[je]:A?"var(--position)":`${ze}%`,[Je]:"50%",translate:`${(ge||!ue?-1:1)*50}% ${(ge?1:-1)*50}%`,zIndex:lt,...A&&{"--position":`${et??0}%`,visibility:V&&be||et===void 0?"hidden":void 0}};let Be;ge&&(Be=ue?"vertical-rl":"vertical-lr");const tt=typeof p=="function"?p(Me):a,ct=Et({"aria-label":tt,"aria-labelledby":l??(tt==null?P:void 0),"aria-describedby":i,"aria-orientation":$,"aria-valuenow":_e,"aria-valuetext":typeof f=="function"?f(Qo(_e,F,O),_e,Me):u??ax(ne,Me,O,F),disabled:q,form:_,id:ee,max:I,min:L,name:H,onChange(Oe){D(Oe.currentTarget.valueAsNumber,Me,Oe)},onFocus(Oe){const $e=le.current;le.current=!1,X(Me),J(!0),$e&&Oe.stopPropagation()},onBlur(Oe){if(le.current){Oe.stopPropagation();return}X(-1),!se.current.some($e=>ve($e,Oe.relatedTarget))&&(Z(!0),J(!1),ae==="onBlur"&&N.commit(pf(_e,Me,L,I,ie,ne)))},onKeyDown(Oe){if(Oe.defaultPrevented||!ix.has(Oe.key))return;Gn.has(Oe.key)&&Oe.stopPropagation();let $e=null,qe=0,Ce=Oe.shiftKey?z:de;const He=bf(_e,de,L);switch(Oe.key){case as:qe=1;break;case us:qe=ue?-1:1;break;case cs:qe=-1;break;case ls:qe=ue?1:-1;break;case Jd:Ce=z,qe=1;break;case ef:Ce=z,qe=-1;break;case fs:$e=ie&&Number.isFinite(ne[Me+1])?ne[Me+1]-de*M:I;break;case ds:$e=ie&&Number.isFinite(ne[Me-1])?ne[Me-1]+de*M:L;break}if(qe!==0&&($e=cx(He,Ce,qe,L,I)),$e!==null){const dt=Oe.currentTarget;Qu(dt)||(le.current=!0,dt.blur(),dt.focus({preventScroll:!0,focusVisible:!0})),D($e,Me,Oe),Oe.preventDefault()}},step:de,style:{...Sn,width:"100%",height:"100%",writingMode:Be},tabIndex:x,type:"range",value:_e??""},Oe=>N.getValidationProps(q,Oe),{onFocus:B,onBlur:Q,onKeyDown:v}),yt=Tt(oe,N.inputRef,g);return Re("div",t,{state:K,ref:[n,ye,ce],props:[{"data-index":Me,children:Y.jsxs(c.Fragment,{children:[r,Y.jsx("input",{ref:yt,...ct,suppressHydrationWarning:!0}),A&&Ge&&V&&(Dl||(Dl=Y.jsx(xf,{script:vf})))]}),id:R,onPointerDown(Oe){if(q)return;G.current=Me;const $e=yf(Oe.currentTarget,ge);U.current=(ge?Oe.clientY:Oe.clientX)-$e},style:Se,suppressHydrationWarning:V||void 0},w],stateAttributesMapping:fr})});function lx(e,t,n,o,r,s){const i={visibility:s||n&&(o===void 0||t&&r===void 0)?"hidden":void 0,position:e?"absolute":"relative",[e?"width":"height"]:"inherit"};let a=`${o??0}%`,l=`${(r??0)-(o??0)}%`;return n&&(i["--start-position"]=a,a="var(--start-position)",t&&(i["--relative-size"]=l,l="var(--relative-size)")),i[e?"bottom":"insetInlineStart"]=t?a:0,i[e?"height":"width"]=t?l:a,i}const lE=c.forwardRef(function(t,n){const{render:o,className:r,style:s,...i}=t,{indicatorPosition:a,inset:l,max:u,min:d,orientation:p,renderBeforeHydration:f,state:y,values:h}=ei(),g=Ka(),m=p==="vertical",b=h.length>1,v=lx(m,b,l,l?a[0]:hs(h[0],d,u),l?a[1]:hs(h[h.length-1],d,u),l&&f&&g);return Re("div",t,{state:y,ref:n,props:[{"data-base-ui-slider-indicator":f?"":void 0,style:v,suppressHydrationWarning:f||void 0},i],stateAttributesMapping:fr})}),uE=c.forwardRef(function(t,n){const{className:o,render:r,orientation:s="horizontal",style:i,...a}=t;return Re("div",t,{state:{orientation:s},ref:n,props:[{role:"separator","aria-orientation":s},a]})});function ux(e){const t=c.useRef(!0);t.current&&(t.current=!1,e())}const Sf=c.createContext(null);function Qt(){const e=c.useContext(Sf);if(e===null)throw new Error(We(60));return e}const dx=(e,t)=>Object.is(e,t);function bo(e,t,n){return e==null||t==null?Object.is(e,t):n(e,t)}function Ur(e,t,n){return!e||e.length===0?-1:e.findIndex(o=>o===void 0?!1:bo(o,t,n))}function fx(e,t,n){return e.filter(o=>!bo(t,o,n))}function wf(e){return e!=null&&e.length>0&&typeof e[0]=="object"&&e[0]!=null&&"items"in e[0]}function px(e){if(!Array.isArray(e))return e!=null&&"null"in e;const t=e;if(wf(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 Rf(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 ps(e)}function so(e,t){return t&&e!=null?t(e)??"":e&&typeof e=="object"&&"value"in e&&"label"in e?ps(e.value):ps(e)}function kf(e,t,n){function o(){return Rf(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=wf(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 hx(e,t,n){return e.reduce((o,r,s)=>(s>0&&o.push(", "),o.push(Y.jsx(c.Fragment,{children:kf(r,t,n)},s)),o),[])}const Pe={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:so(t,o)!==""},hasNullItemLabel:(e,t)=>t?px(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=>bo(t,r,n)):bo(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},zt=1;function Qa(e,t){return Math.max(0,e-t)}function vo(e,t){if(t<=0)return 0;const n=ut(e,0,t),o=n,r=t-n,s=o<=zt,i=r<=zt;return s&&i?o<=r?0:t:s?0:i?t:n}function dE(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:h=!0,actionsRef:g,inputRef:m,onOpenChangeComplete:b,items:v,multiple:x=!1,itemToStringLabel:S,itemToStringValue:w,isItemEqualToValue:R=dx,highlightItemOnHover:C=!0,children:k}=e,{clearErrors:T}=To(),{setDirty:E,setTouched:N,setFocused:O,validityData:D,setFilled:A,name:P,disabled:z,validation:F,validationMode:I}=Zt(),L=Po({id:t}),M=z||p,_=P??l,[H,$]=Ht({controlled:n,default:x?o??Vt:o,name:"Select",state:"value"}),[U,G]=Ht({controlled:s,default:i,name:"Select",state:"open"}),V=c.useRef([]),X=c.useRef([]),j=c.useRef(null),K=c.useRef(null),de=c.useRef(0),se=c.useRef(null),ne=c.useRef([]),re=c.useRef(!1),q=c.useRef(null),ie=c.useRef(null),ge=c.useRef({allowSelectedMouseUp:!1,allowUnselectedMouseUp:!1,dragY:0}),ue=c.useRef(!1),{mounted:Z,setMounted:J,transitionStatus:ae}=In(U),{openMethod:ce,triggerProps:oe}=Yd(U),le=gt(()=>new ko({id:L,labelId:void 0,modal:h,multiple:x,itemToStringLabel:S,itemToStringValue:w,isItemEqualToValue:R,value:H,open:U,mounted:Z,transitionStatus:ae,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,B=Ee(le,Pe.activeIndex),Q=Ee(le,Pe.selectedIndex),fe=Ee(le,Pe.triggerElement),te=Ee(le,Pe.positionerElement),ee=xv(ce),me=ce??ee,ye=c.useMemo(()=>x?"":so(H,w),[x,H,w]),De=c.useMemo(()=>x&&Array.isArray(H)?H.map(Ce=>so(Ce,w)):so(H,w),[x,H,w]),Me=rt(fe),Ge=he(()=>De);Mo(Me,L,H,Ge,!M,l);const _e=c.useRef(H),ze=x?Array.isArray(H)&&H.length>0:H!=null&&ye!=="";pe(()=>{A(ze)},[ze,A]),pe(function(){let He=H,dt=!1;if(x){const kt=Array.isArray(H)?H:[];dt=kt.length===0,He=kt[kt.length-1]}const _t=dt?-1:Ur(ne.current,He,R),xt=_t===-1?null:_t;xt===null&&(ie.current=null),!U&&le.set("selectedIndex",xt)},[x,U,H,R,le]);function et(Ce){const He=D.initialValue;return Array.isArray(Ce)&&Array.isArray(He)?!Xa(Ce,He,(dt,_t)=>bo(dt,_t,R)):Ce!==He}Eo(H,()=>{T(_),E(et(H)),F.change(H)});const Te=he((Ce,He)=>{a==null||a(Ce,He),!He.isCanceled&&(G(Ce),!Ce&&(He.reason===xn||He.reason===Cs)&&(N(!0),O(!1),I==="onBlur"&&F.commit(H)))}),be=he(()=>{J(!1),le.update({activeIndex:null,openMethod:null,scrollUpArrowVisible:!1,scrollDownArrowVisible:!1}),b==null||b(!1)});It({enabled:!g,open:U,ref:j,onComplete(){U||be()}}),c.useImperativeHandle(g,()=>({unmount:be}),[be]);const Ve=he((Ce,He)=>{r==null||r(Ce,He),!He.isCanceled&&$(Ce)}),Fe=he(Ce=>{const He=Qa(Ce.scrollHeight,Ce.clientHeight),dt=vo(Ce.scrollTop,He),_t=dt>0,xt=dt<He;le.set("scrollUpArrowVisible",_t),le.set("scrollDownArrowVisible",xt)}),je=Ib({open:U,onOpenChange:Te,elements:{reference:fe,floating:te}}),Je=Os(je,{enabled:!f&&!M,event:"mousedown"}),lt=sr(je),Se=Wd(je,{enabled:!f&&!M,listRef:V,activeIndex:B,selectedIndex:Q,disabledIndices:Vt,onNavigate(Ce){Ce===null&&!U||le.set("activeIndex",Ce)},focusItemOnHover:C}),Be=Ud(je,{enabled:!f&&!M&&(U||!x),listRef:X,activeIndex:B,selectedIndex:Q,disabledIndices:Ce=>lf(V.current[Ce]),onMatch(Ce){U?le.set("activeIndex",Ce):Ve(ne.current[Ce],ke(Rt))},onTyping(Ce){re.current=Ce}}),tt=c.useMemo(()=>Et(Be.reference,Se.reference,lt.reference,Je.reference,oe),[Je.reference,Be.reference,Se.reference,lt.reference,oe]),ct=c.useMemo(()=>Et(ir,Be.floating,Se.floating,lt.floating),[Be.floating,Se.floating,lt.floating]),yt=Se.item??Ke;ux(()=>{le.update({popupProps:ct,triggerProps:tt})}),le.useSyncedValues({id:L,modal:h,multiple:x,value:H,open:U,mounted:Z,transitionStatus:ae,popupProps:ct,triggerProps:tt,items:v,itemToStringLabel:S,itemToStringValue:w,isItemEqualToValue:R,openMethod:me});const vt=c.useMemo(()=>({store:le,floatingContext:je,required:y,disabled:M,readOnly:f,multiple:x,highlightItemOnHover:C,setValue:Ve,setOpen:Te,listRef:V,popupRef:j,scrollHandlerRef:K,handleScrollArrowVisibility:Fe,scrollArrowsMountedCountRef:de,itemProps:yt,valueRef:se,valuesRef:ne,labelsRef:X,typingRef:re,selectionRef:ge,firstItemTextRef:q,selectedItemTextRef:ie,validation:F,onOpenChangeComplete:b,alignItemWithTriggerActiveRef:ue,initialValueRef:_e}),[le,je,y,M,f,x,C,Ve,Te,yt,F,b,Fe]),Oe=Tt(m,F.inputRef),$e=x?void 0:_,qe=c.useMemo(()=>!x||!Array.isArray(H)||!_?null:H.map(Ce=>{const He=so(Ce,w);return Y.jsx("input",{type:"hidden",form:u,name:_,value:He,disabled:M},He)}),[x,H,u,_,w,M]);return Y.jsxs(Sf.Provider,{value:vt,children:[k,Y.jsx("input",{...F.getValidationProps(M,{onFocus(){var Ce;(Ce=le.state.triggerElement)==null||Ce.focus({focusVisible:!0})},onChange(Ce){if(Ce.nativeEvent.defaultPrevented||M||f)return;const He=Ce.currentTarget.value,dt=ke(Rt,Ce.nativeEvent);function _t(){if(x)return;const xt=He.toLowerCase();let kt=ne.current.findIndex(Ao=>so(Ao,w).toLowerCase()===xt||Rf(Ao,S).toLowerCase()===xt);kt===-1&&(kt=ne.current.findIndex((Ao,Dn)=>{const mr=X.current[Dn];return mr!=null&&mr.toLowerCase()===xt}));const fn=ne.current[kt];fn!=null&&Ve(fn,dt)}le.set("forceMount",!0),queueMicrotask(_t)}}),id:L&&$e==null?`${L}-hidden-input`:void 0,form:u,name:$e,autoComplete:d,value:ye,disabled:M,required:y&&!(x&&ze),readOnly:f,ref:Oe,style:_?Ps:Sn,tabIndex:-1,"aria-hidden":!0,suppressHydrationWarning:!0}),qe]})}const Mr=5;function Cf(e,t){const n=gx(t);return e.clientX>=n.left-Mr&&e.clientX<=n.right+Mr&&e.clientY>=n.top-Mr&&e.clientY<=n.bottom+Mr}function gx(e){const t=e.getBoundingClientRect(),n=Xe(e);if(ya)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}}const mx=400,yx={...Zo,...qn,popupSide:e=>e?{"data-popup-side":e}:null,value:()=>null},fE=c.forwardRef(function(t,n){var re;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:h}=Zt(),{labelId:g}=An(),{store:m,setOpen:b,selectionRef:v,validation:x,readOnly:S,required:w,alignItemWithTriggerActiveRef:R,disabled:C}=Qt(),k=h||C||i,T=Ee(m,Pe.open),E=Ee(m,Pe.mounted),N=Ee(m,Pe.value),O=Ee(m,Pe.triggerProps),D=Ee(m,Pe.positionerElement),A=Ee(m,Pe.listElement),P=Ee(m,Pe.popupSide),z=Ee(m,Pe.id),F=Ee(m,Pe.labelId),I=Ee(m,Pe.hasSelectedValue),L=E&&D?P:null,M=s??z,_=df(g,F);Po({id:M});const H=rt(D),$=c.useRef(null),{getButtonProps:U,buttonRef:G}=Mt({disabled:k,native:a}),V=m.useStateSetter("triggerElement"),X=nt(),j=nt(),K=nt();c.useEffect(()=>{if(T)return K.start(mx,()=>{v.current.allowUnselectedMouseUp=!0,v.current.allowSelectedMouseUp=!0}),()=>{K.clear()};v.current={allowSelectedMouseUp:!1,allowUnselectedMouseUp:!1,dragY:0},j.clear()},[T,v,j,K]);const de=Et(O,{id:M,role:"combobox","aria-expanded":T,"aria-haspopup":"listbox","aria-controls":T?(A==null?void 0:A.id)??((re=es(D))==null?void 0:re.id):void 0,"aria-labelledby":_,"aria-readonly":S||void 0,"aria-required":w||void 0,tabIndex:k?-1:0,onFocus(q){p(!0),T&&R.current&&b(!1,ke(Rt,q.nativeEvent)),X.start(0,()=>{m.set("forceMount",!0)})},onBlur(q){ve(D,q.relatedTarget)||(d(!0),p(!1),f==="onBlur"&&x.commit(N))},onMouseDown(q){if(T)return;const ie=Ie(q.currentTarget);function ge(ue){if(!$.current)return;const Z=ue.target;ve($.current,Z)||ve(H.current,Z)||Cf(ue,$.current)||b(!1,ke(Sa,ue))}j.start(0,()=>{ie.addEventListener("mouseup",ge,{once:!0})})}},u,U),se=x.getValidationProps(k,de);se.role="combobox";const ne={...y,open:T,disabled:k,value:N,readOnly:S,popupSide:L,placeholder:!I};return Re("button",t,{ref:[n,$,G,V],state:ne,stateAttributesMapping:yx,props:se})}),bx={value:()=>null},pE=c.forwardRef(function(t,n){const{className:o,render:r,children:s,placeholder:i,style:a,...l}=t,{store:u,valueRef:d}=Qt(),p=Ee(u,Pe.value),f=Ee(u,Pe.items),y=Ee(u,Pe.itemToStringLabel),h=Ee(u,Pe.hasSelectedValue),g=!h&&i!=null&&s==null,m=Ee(u,Pe.hasNullItemLabel,g),b={value:p,placeholder:!h};let v=null;return typeof s=="function"?v=s(p):s!=null?v=s:g&&!m?v=i:Array.isArray(p)?v=hx(p,f,y):v=kf(p,f,y),Re("span",t,{state:b,ref:[n,d],props:[{children:v},l],stateAttributesMapping:bx})}),hE=c.forwardRef(function(t,n){const{render:o,className:r,style:s,...i}=t,{store:a}=Qt(),u={open:Ee(a,Pe.open)};return Re("span",t,{state:u,ref:n,props:[{"aria-hidden":!0,children:"▼"},i],stateAttributesMapping:Gs})}),gE=c.forwardRef(function(t,n){const{store:o}=Qt(),r=Ee(o,Pe.mounted),s=Ee(o,Pe.forceMount);return r||s?Y.jsx(Ts,{ref:n,...t}):null}),Ef=c.createContext(void 0);function Ja(){const e=c.useContext(Ef);if(!e)throw new Error(We(59));return e}function gs(e,t){e&&Object.assign(e.style,t)}const Pf={position:"relative",maxHeight:"100%",overflowX:"hidden",overflowY:"auto"},vx={position:"fixed"},mE=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:h,disableAnchorTracking:g,alignItemWithTrigger:m=!0,collisionAvoidance:b=vd,style:v,...x}=t,{store:S,listRef:w,labelsRef:R,alignItemWithTriggerActiveRef:C,selectedItemTextRef:k,valuesRef:T,initialValueRef:E,popupRef:N,setValue:O,floatingContext:D}=Qt(),A=Ee(S,Pe.open),P=Ee(S,Pe.mounted),z=Ee(S,Pe.modal),F=Ee(S,Pe.value),I=Ee(S,Pe.openMethod),L=Ee(S,Pe.positionerElement),M=Ee(S,Pe.triggerElement),_=Ee(S,Pe.isItemEqualToValue),H=Ee(S,Pe.transitionStatus),$=c.useRef(null),U=c.useRef(null),[G,V]=c.useState(m),X=P&&G&&I!=="touch";!P&&G!==m&&V(m),c.useImperativeHandle(C,()=>X),Wa((X||z)&&A,I==="touch",L,M);const j=Xs({anchor:o,floatingRootContext:D,positionMethod:i,mounted:P,side:a,sideOffset:u,align:l,alignOffset:d,arrowPadding:y,collisionBoundary:p,collisionPadding:f,sticky:h,disableAnchorTracking:g??X,collisionAvoidance:b,keepMounted:!0}),K=X?"none":j.side,de=X?vx:j.positionerStyles,se={open:A,side:K,align:j.align,anchorHidden:j.anchorHidden};pe(()=>{S.set("popupSide",j.side)},[S,j.side]);const ne=S.useStateSetter("positionerElement"),re=Zs(t,se,{styles:de,transitionStatus:H,props:x,refs:[n,ne],hidden:!P,inert:!A}),q=c.useRef(0),ie=he(ue=>{if(T.current.length===0)return;const Z=q.current;if(q.current=ue.size,ue.size===Z)return;const J=ke(Rt);if(Z!==0&&!S.state.multiple&&F!==null&&Ur(T.current,F,_)===-1){const ce=E.current,le=ce!=null&&Ur(T.current,ce,_)!==-1?ce:null;O(le,J),le===null&&(S.set("selectedIndex",null),k.current=null)}if(Z!==0&&S.state.multiple&&Array.isArray(F)){const ae=F.filter(ce=>Ur(T.current,ce,_)!==-1);ae.length!==F.length&&(O(ae,J),ae.length===0&&(S.set("selectedIndex",null),k.current=null))}if(A&&X){S.update({scrollUpArrowVisible:!1,scrollDownArrowVisible:!1});const ae={height:""};gs(L,ae),gs(N.current,ae)}}),ge=c.useMemo(()=>({...j,side:K,alignItemWithTriggerActive:X,setControlledAlignItemWithTrigger:V,scrollUpArrowRef:$,scrollDownArrowRef:U}),[j,K,X,V]);return Y.jsx(dr,{elementsRef:w,labelsRef:R,onMapChange:ie,children:Y.jsxs(Ef.Provider,{value:ge,children:[P&&z&&Y.jsx(Ks,{inert:cr(!A),cutout:M}),re]})})}),Tr="base-ui-disable-scrollbar",Jo={className:Tr,getElement(e){return Y.jsx("style",{nonce:e,href:Tr,precedence:"base-ui:low",children:`.${Tr}{scrollbar-width:none}.${Tr}::-webkit-scrollbar{display:none}`})}},xx={...qs,...Kt},yE=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:h,multiple:g,handleScrollArrowVisibility:m,scrollHandlerRef:b,listRef:v,highlightItemOnHover:x,floatingContext:S}=Qt(),{side:w,align:R,alignItemWithTriggerActive:C,isPositioned:k,setControlledAlignItemWithTrigger:T}=Ja(),E=Js()!=null,N=On(),{nonce:O,disableStyleElements:D}=Za(),A=Ee(l,Pe.id),P=Ee(l,Pe.open),z=Ee(l,Pe.openMethod),F=Ee(l,Pe.mounted),I=Ee(l,Pe.popupProps),L=Ee(l,Pe.transitionStatus),M=Ee(l,Pe.triggerElement),_=Ee(l,Pe.positionerElement),H=Ee(l,Pe.listElement),$=c.useRef(!1),U=c.useRef(!1),G=c.useRef({}),V=$n(),X=he(se=>{if(!_||!u.current||!U.current)return;const ne=_.style.top==="0px",re=_.style.bottom==="0px";if($.current||!C||!ne&&!re){m(se);return}const q=_l(_),ie=$o(_.getBoundingClientRect().height,"y",q),ge=Ie(_),ue=Xe(_),Z=ue.getComputedStyle(_),J=parseFloat(Z.marginTop),ae=parseFloat(Z.marginBottom),ce=Ll(ue.getComputedStyle(u.current)),oe=Math.min(ge.documentElement.clientHeight-J-ae,ce),le=se.scrollTop,B=Ir(se);let Q=null;const fe=ye=>{_.style.height=`${ye}px`},te=ne?B-le:le,ee=Math.min(ie+te,oe);if(te<=zt){const ye=ut(te,0,oe-ie);ye>0&&fe(ie+ye),se.scrollTop=ne?B:0,oe-(ie+ye)<=zt&&($.current=!0),m(se);return}if(oe-ee>zt)Q=ne?1/0:0;else if(re&&le<B){const ye=ie+te-oe;Q=le-(te-ye)}const me=Math.ceil(ee);if(me!==0&&fe(me),Q!=null){const ye=ut(Q,0,Ir(se));Math.abs(se.scrollTop-ye)>zt&&(se.scrollTop=ye)}me>=oe-zt&&($.current=!0),m(se)});c.useImperativeHandle(b,()=>X,[X]),It({open:P,ref:u,onComplete(){P&&(d==null||d(!0))}});const j={open:P,transitionStatus:L,side:w,align:R};pe(()=>{!_||!u.current||Object.keys(G.current).length||(G.current={top:_.style.top||"0",left:_.style.left||"0",right:_.style.right,height:_.style.height,bottom:_.style.bottom,minHeight:_.style.minHeight,maxHeight:_.style.maxHeight,marginTop:_.style.marginTop,marginBottom:_.style.marginBottom})},[u,_]),pe(()=>{P||C||(U.current=!1,$.current=!1,gs(_,G.current))},[P,C,_,u]),pe(()=>{var re,q;const se=u.current;if(!P||!M||!_||!se||C&&!k||l.state.transitionStatus==="ending")return;if(U.current=!0,se.style.removeProperty("--transform-origin"),!C){V.request(()=>m(H||se));return}const ne=Sx(se);try{let ie=h.current;ie!=null&&ie.isConnected||(ie=!Pe.hasSelectedValue(l.state)&&((re=y.current)!=null&&re.isConnected)?y.current:null);const ge=f.current,ue=Xe(_),Z=ue.getComputedStyle(_),J=ue.getComputedStyle(se),ae=Ie(M),ce=_l(M),oe=Or(M.getBoundingClientRect(),ce),le=Or(_.getBoundingClientRect(),ce),B=oe.height,Q=H||se,fe=Q.scrollHeight,te=parseFloat(J.borderBottomWidth),ee=parseFloat(Z.marginTop)||10,me=parseFloat(Z.marginBottom)||10,ye=parseFloat(Z.minHeight)||100,De=Ll(J),Me=5,Ge=5,_e=20,ze=ae.documentElement.clientHeight-ee-me,et=ae.documentElement.clientWidth,Te=ze-oe.bottom+B;let be,Ve=N==="rtl"?oe.right-le.width:oe.left,Fe=0;if(ie&&ge){const $e=Or(ge.getBoundingClientRect(),ce);be=Or(ie.getBoundingClientRect(),ce),Ve=le.left+(N==="rtl"?$e.right-be.right:$e.left-be.left);const qe=$e.top-oe.top+$e.height/2;Fe=be.top-le.top+be.height/2-qe}const je=Te+Fe+me+te;let Je=Math.min(ze,je);const lt=ze-ee-me,Se=je-Je,Be=et-Ge;_.style.left=`${ut(Ve,Me,Be-le.width)}px`,_.style.height=`${Je}px`,_.style.maxHeight="none",_.style.marginTop=`${ee}px`,_.style.marginBottom=`${me}px`,se.style.height="100%";const tt=Ir(Q),ct=Se>=tt-zt;ct&&(Je=Math.min(ze,le.height)-(Se-tt));const yt=oe.top<_e||oe.bottom>ze-_e||Math.ceil(Je)+zt<Math.min(fe,ye),vt=(((q=ue.visualViewport)==null?void 0:q.scale)??1)!==1&&Xt;if(yt||vt){gs(_,G.current),T(!1);return}const Oe=Math.max(ye,Je);if(ct){const $e=Math.max(0,ze-je);_.style.top=le.height>=lt?"0":`${$e}px`,_.style.height=`${Je}px`,Q.scrollTop=Ir(Q)}else _.style.bottom="0",Q.scrollTop=Se;if(be){const $e=le.top,qe=le.height,Ce=be.top+be.height/2,He=ut(qe>0?(Ce-$e)/qe*100:50,0,100);se.style.setProperty("--transform-origin",`50% ${He}%`)}(Oe===ze||Je>=De)&&($.current=!0),m(Q),x&&l.state.selectedIndex===null&&l.state.activeIndex===null&&v.current[0]!=null&&l.set("activeIndex",0)}finally{ne()}},[l,P,_,M,f,y,h,u,m,C,T,V,H,v,x,N,k]),c.useEffect(()=>{if(!C||!_||!P)return;const se=Xe(_);function ne(re){p(!1,ke(U0,re))}return Ae(se,"resize",ne)},[p,C,_,P]);const K={...H?{role:"presentation","aria-orientation":void 0}:{role:"listbox","aria-multiselectable":g||void 0,id:`${A}-list`},onKeyDown(se){E&&Gn.has(se.key)&&se.stopPropagation()},onScroll(se){H||X(se.currentTarget)},...C&&{style:H?{height:"100%"}:Pf},className:!H&&C?Jo.className:void 0},de=Re("div",t,{ref:[n,u],state:j,stateAttributesMapping:xx,props:[I,K,lr(L),a]});return Y.jsxs(c.Fragment,{children:[!D&&Jo.getElement(O),Y.jsx(Is,{context:S,modal:!1,disabled:!F,openInteractionType:z,returnFocus:i,restoreFocus:!0,children:de})]})});function Ll(e){const t=e.maxHeight;return t.endsWith("px")&&parseFloat(t)||1/0}function Ir(e){return Qa(e.scrollHeight,e.clientHeight)}function _l(e){return Nd.getScale(e)}function $o(e,t,n){return e/n[t]}function Or(e,t){return Xo({x:$o(e.x,"x",t),y:$o(e.y,"y",t),width:$o(e.width,"x",t),height:$o(e.height,"y",t)})}const Fl=[["transform","none"],["scale","1"],["translate","0 0"]];function Sx(e){const{style:t}=e,n={};for(const[o,r]of Fl)n[o]=t.getPropertyValue(o),t.setProperty(o,r,"important");return()=>{for(const[o]of Fl){const r=n[o];r?t.setProperty(o,r):t.removeProperty(o)}}}const bE=c.forwardRef(function(t,n){const{render:o,className:r,style:s,...i}=t,{store:a,scrollHandlerRef:l,multiple:u}=Qt(),{alignItemWithTriggerActive:d}=Ja(),p=Ee(a,Pe.hasScrollArrows),f=Ee(a,Pe.openMethod),h={id:`${Ee(a,Pe.id)}-list`,role:"listbox","aria-multiselectable":u||void 0,onScroll(m){var b;(b=l.current)==null||b.call(l,m.currentTarget)},...d&&{style:Pf},className:p&&f!=="touch"?Jo.className:void 0},g=a.useStateSetter("listElement");return Re("div",t,{ref:[n,g],props:[h,i]})}),Mf=c.createContext(void 0);function ec(){const e=c.useContext(Mf);if(!e)throw new Error(We(57));return e}const vE=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=ur({guess:!0,label:a,textRef:p}),{store:y,itemProps:h,setOpen:g,setValue:m,selectionRef:b,typingRef:v,valuesRef:x,multiple:S,selectedItemTextRef:w,disabled:R,readOnly:C}=Qt(),k=R||l,T=Ee(y,Pe.isActive,f.index),E=Ee(y,Pe.open),N=Ee(y,Pe.isSelected,i),O=Ee(y,Pe.isSelectedByFocus,f.index),D=Ee(y,Pe.isItemEqualToValue),A=f.index,P=c.useRef(null);pe(()=>{const V=x.current;return V[A]=i,()=>{delete V[A]}},[A,i,x]),pe(()=>{const V=y.state.value;let X=V;S&&Array.isArray(V)&&(X=V.length>0?V[V.length-1]:void 0),X!==void 0&&bo(i,X,D)&&(y.set("selectedIndex",A),p.current&&(w.current=p.current))},[A,S,D,y,i,w]);const z=c.useRef("mouse"),F=c.useRef(!1),{getButtonProps:I,buttonRef:L}=Mt({disabled:k,focusableWhenDisabled:!0,native:u,composite:!0}),M={disabled:k,selected:N,highlighted:T};function _(V){if(R||C)return;const X=y.state.value;if(S){const j=Array.isArray(X)?X:[],K=N?fx(j,i,D):[...j,i];m(K,ke(jo,V))}else m(i,ke(jo,V)),g(!1,ke(jo,V))}function H(){b.current.dragY=0}const $={role:"option","aria-selected":N,tabIndex:E&&T?0:-1,onKeyDown(V){y.set("activeIndex",A),V.key===" "&&v.current&&V.preventDefault()},onClick(V){const X=z.current!=="touch",j=V.nativeEvent.pointerType,K=X&&ba(V.nativeEvent)&&(j!==void 0||T),de=X&&!K&&!F.current;F.current=!1,!(k||de)&&_(V.nativeEvent)},onPointerEnter(V){z.current=V.pointerType},onPointerMove(V){if(V.pointerType==="mouse"&&V.buttons===1){const X=b.current;X.dragY+=V.movementY,X.dragY**2>=64&&(X.allowUnselectedMouseUp=!0)}},onPointerDown(V){z.current=V.pointerType,F.current=!0,H()},onMouseUp(){var j;if(H(),k||z.current==="touch"||F.current)return;const V=!b.current.allowSelectedMouseUp&&N,X=!b.current.allowUnselectedMouseUp&&!N;V||X||(F.current=!0,(j=P.current)==null||j.click(),F.current=!1)}},U=Re("div",t,{ref:[L,n,f.ref,P],state:M,props:[h,$,d,I]}),G=c.useMemo(()=>({selected:N,index:A,textRef:p,selectedByFocus:O}),[N,A,p,O]);return Y.jsx(Mf.Provider,{value:G,children:U})})),xE=c.forwardRef(function(t,n){const{selected:o}=ec();return t.keepMounted||o?Y.jsx(wx,{...t,ref:n}):null}),wx=c.memo(c.forwardRef((e,t)=>{const{render:n,className:o,style:r,keepMounted:s,...i}=e,{selected:a}=ec(),l=c.useRef(null),{transitionStatus:u,setMounted:d}=In(a),f=Re("span",e,{ref:[t,l],state:{selected:a,transitionStatus:u},props:[{"aria-hidden":!0,children:"✔️"},i],stateAttributesMapping:Kt});return It({open:a,ref:l,onComplete(){a||d(!1)}}),f})),SE=c.memo(c.forwardRef(function(t,n){const{index:o,textRef:r,selectedByFocus:s}=ec(),{firstItemTextRef:i,selectedItemTextRef:a}=Qt(),{render:l,className:u,style:d,...p}=t,f=c.useCallback(h=>{h&&(o===0&&(i.current=h),s&&(a.current=h))},[i,a,o,s]);return Re("div",t,{ref:[f,n,r],props:p})})),Tf=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:h}=Qt(),{side:g,scrollDownArrowRef:m,scrollUpArrowRef:b}=Ja(),v=u?Pe.scrollUpArrowVisible:Pe.scrollDownArrowVisible,x=Ee(d,v),S=Ee(d,Pe.openMethod),w=x&&S!=="touch",R=nt(),C=u?b:m,{mounted:k,transitionStatus:T,setMounted:E}=In(w);pe(()=>(h.current+=1,d.set("hasScrollArrows",!0),()=>{h.current=Math.max(0,h.current-1),h.current===0&&d.set("hasScrollArrows",!1)}),[d,h]),It({open:w,ref:C,onComplete(){w||E(!1)}});const D=Re("div",t,{ref:[n,C],state:{direction:i,visible:w,side:g,transitionStatus:T},props:[{"aria-hidden":!0,children:u?"▲":"▼",style:{position:"absolute"},onMouseMove(P){if(P.movementX===0&&P.movementY===0||R.isStarted())return;d.set("activeIndex",null);function z(){var H;const F=d.state.listElement??p.current;if(!F)return;d.set("activeIndex",null),y(F);const I=Qa(F.scrollHeight,F.clientHeight),L=vo(F.scrollTop,I),M=L===(u?0:I),_=f.current;if(L!==F.scrollTop&&(F.scrollTop=L),M){R.clear();return}if(_.length>0){const $=((H=C.current)==null?void 0:H.offsetHeight)||0;F.scrollTop=Rx(_,u,L,F.clientHeight,$,I)}R.start(40,z)}R.start(40,z)},onMouseLeave(){R.clear()}},l],stateAttributesMapping:Kt});return k||a?D:null});function Rx(e,t,n,o,r,s){if(t){let d=0;const p=n+r-zt;for(let h=0;h<e.length;h+=1){const g=e[h];if(g&&g.offsetTop>=p){d=h;break}}const f=Math.max(0,d-1),y=e[f];return f<d&&y?vo(y.offsetTop-r,s):0}let i=e.length-1;const a=n+o-r+zt;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?vo(u.offsetTop+u.offsetHeight-o+r,s):s}const wE=c.forwardRef(function(t,n){return Y.jsx(Tf,{...t,ref:n,direction:"down"})}),RE=c.forwardRef(function(t,n){return Y.jsx(Tf,{...t,ref:n,direction:"up"})}),kx=c.createContext(void 0),kE=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=Re("div",t,{ref:n,props:[{role:"group","aria-labelledby":a},i]});return Y.jsx(kx.Provider,{value:u,children:d})}),If=c.createContext(void 0);function Nn(e){const t=c.useContext(If);if(!e&&t===void 0)throw new Error(We(27));return t}const CE=c.forwardRef(function(t,n){const{render:o,className:r,style:s,forceRender:i=!1,...a}=t,l=Nn(),u=l.useState("open"),d=l.useState("nested"),p=l.useState("mounted"),f=l.useState("transitionStatus");return Re("div",t,{state:{open:u,transitionStatus:f},ref:[l.context.backdropRef,n],stateAttributesMapping:Ys,props:[{role:"presentation",hidden:!p,style:{userSelect:"none",WebkitUserSelect:"none"}},a],enabled:i||!d})}),EE=c.forwardRef(function(t,n){const{render:o,className:r,style:s,disabled:i=!1,nativeButton:a=!0,...l}=t,u=Nn(),d=u.useState("open"),{getButtonProps:p,buttonRef:f}=Mt({disabled:i,native:a}),y={disabled:i};function h(g){d&&u.setOpen(!1,ke(ed,g.nativeEvent))}return Re("button",t,{state:y,ref:[n,f],props:[{onClick:h},l,p]})}),PE=c.forwardRef(function(t,n){const{render:o,className:r,style:s,id:i,...a}=t,l=Nn(),u=st(i);return l.useSyncedValueWithCleanup("descriptionElementId",u),Re("p",t,{ref:n,props:[{id:u},a]})}),Of=c.createContext(void 0);function Cx(){const e=c.useContext(Of);if(e===void 0)throw new Error(We(26));return e}const Ex={...qs,...Kt,nestedDialogOpen(e){return e?{"data-nested-dialog-open":""}:null}},ME=c.forwardRef(function(t,n){const{render:o,className:r,style:s,finalFocus:i,initialFocus:a,...l}=t,u=Nn(),d=u.useState("descriptionElementId"),p=u.useState("disablePointerDismissal"),f=u.useState("floatingRootContext"),y=u.useState("popupProps"),h=u.useState("modal"),g=u.useState("mounted"),m=u.useState("nested"),b=u.useState("nestedOpenDialogCount"),v=u.useState("open"),x=u.useState("openMethod"),S=u.useState("titleElementId"),w=u.useState("transitionStatus"),R=u.useState("role"),C=f.useState("floatingId");Cx(),It({open:v,ref:u.context.popupRef,onComplete(){var D,A;v&&((A=(D=u.context).onOpenChangeComplete)==null||A.call(D,!0))}});const k=a===void 0?Vd(u.context.popupRef):a,T=b>0,E=u.useStateSetter("popupElement"),O=Re("div",t,{state:{open:v,nested:m,transitionStatus:w,nestedDialogOpen:T},props:[y,{id:C,"aria-labelledby":S,"aria-describedby":d,role:R,...ir,hidden:!g,onKeyDown(D){Gn.has(D.key)&&D.stopPropagation()},style:{"--nested-dialogs":b}},l],ref:[n,u.context.popupRef,E],stateAttributesMapping:Ex});return Y.jsx(Is,{context:f,openInteractionType:x,disabled:!g,closeOnFocusOut:!p,initialFocus:k,returnFocus:i,modal:h!==!1,restoreFocus:"popup",children:O})}),TE=c.forwardRef(function(t,n){const{keepMounted:o=!1,...r}=t,s=Nn(),i=s.useState("mounted"),a=s.useState("modal"),l=s.useState("open");return i||o?Y.jsx(Of.Provider,{value:o,children:Y.jsxs(Ts,{ref:n,...r,children:[i&&a===!0&&Y.jsx(Ks,{ref:s.context.internalBackdropRef,inert:cr(!l)}),t.children]})}):null});function Px({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=sr(a,{outsidePressEvent(){return e.context.internalBackdropRef.current||e.context.backdropRef.current?"intentional":{mouse:s==="trap-focus"?"sloppy":"intentional",touch:"sloppy"}},outsidePress(h){if(!e.context.outsidePressEnabledRef.current||"button"in h&&h.button!==0)return!1;if("touches"in h){if(h.type==="touchend"){if(h.changedTouches.length!==1||h.touches.length!==0)return!1}else if(h.touches.length!==1)return!1}const g=at(h);if(f&&!r){if(s){const m=e.context.internalBackdropRef.current,b=e.context.backdropRef.current;return m||b?m===g||b===g||ve(g,i)&&!(g!=null&&g.hasAttribute("data-base-ui-portal")):!0}return!0}return!1},escapeKey:f});return Qd(o&&s===!0,i),e.useContextCallback("onNestedDialogOpen",(h,g)=>{u(h),p(g)}),pe(()=>(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]),Hs(e,{activeTriggerProps:y.reference,inactiveTriggerProps:y.trigger,popupProps:y.floating,nestedOpenDialogCount:l,nestedOpenDrawerCount:d}),null}const Mx={...Bs,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 Tx extends ko{constructor(n,o,r){const s=new Co,i=Ix(n,s,o,r);super(i,Ox(s),Mx);Ue(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};Fs(r,n,o.trigger),this.update(r)})}}function Ix(e,t,n,o=!1){const r={...js(),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=_a(t,n,o),r}function Ox(e){return{popupRef:c.createRef(),backdropRef:c.createRef(),internalBackdropRef:c.createRef(),outsidePressEnabledRef:{current:!0},triggerElements:e,onOpenChange:void 0,onOpenChangeComplete:void 0}}function Af(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",h=e==="alert-dialog",g=h?!0:l,m=h||a,b=h?"alertdialog":"dialog",v=Nn(!0),x=v!=null,S={modal:g,disablePointerDismissal:m,nested:x,role:b},w=Da((N,O)=>new Tx({open:r,openProp:o,activeTriggerId:f,triggerIdProp:p,...S},N,O),!0);w.useControlledProp("openProp",o),w.useControlledProp("triggerIdProp",p),w.useSyncedValues(S),w.useContextCallback("onOpenChange",s),w.useContextCallback("onOpenChangeComplete",i);const R=w.useState("open"),C=w.useState("mounted"),k=w.useState("payload");$d(w,R),Vs(w);const{forceUnmount:T}=$s(R,w);c.useImperativeHandle(u,()=>({unmount:T,close:()=>w.setOpen(!1,ke(Es))}),[T,w]);const E=R||C;return Y.jsxs(If.Provider,{value:w,children:[d&&Y.jsx(_s,{handle:d,store:w}),E&&Y.jsx(Px,{store:w,parentContext:v==null?void 0:v.context,isDrawer:y}),typeof n=="function"?n({payload:k}):n]})}function IE(e){return Af("dialog",e)}const OE=c.forwardRef(function(t,n){const{render:o,className:r,style:s,id:i,...a}=t,l=Nn(),u=st(i);return l.useSyncedValueWithCleanup("titleElementId",u),Re("h2",t,{ref:n,props:[{id:u},a]})}),Ax=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=Nn(!0),h=Ws(d)??f;if(!h)throw new Error(We(79));const g=st(l),m=h.useState("floatingRootContext"),b=h.useState("isOpenedByTrigger",g),v=h.useState("triggerPopupId",g),x=c.useRef(null),{registerTrigger:S,isMountedByThisTrigger:w}=zs(g,x,h,{payload:u}),{getButtonProps:R,buttonRef:C}=Mt({disabled:i,native:a}),k=Os(m),T=Ba(()=>h.select("open"),O=>{h.set("openMethod",O)}),E={disabled:i,open:b},N=h.useState("triggerProps",w);return Re("button",t,{state:E,ref:[C,n,S,x],props:[k.reference,N,T,{[Pa]:"",id:g,"aria-haspopup":"dialog","aria-expanded":b,"aria-controls":v},p,R],stateAttributesMapping:Gs})});function AE(e){return Re(e.defaultTagName??"div",e,e)}var Nx=Object.defineProperty,Io=(e,t)=>Nx(e,"name",{value:t,configurable:!0}),Nf=!!(typeof window<"u"&&window.document&&window.document.createElement);function Vn(e,t,{checkForDefaultPrevented:n=!0}={}){return Io(function(r){if(e==null||e(r),n===!1||!r||!r.defaultPrevented)return t==null?void 0:t(r)},"handleEvent")}Io(Vn,"composeEventHandlers");function Dx(e){var t;if(!Nf)throw new Error("Cannot access window outside of the DOM");return((t=e==null?void 0:e.ownerDocument)==null?void 0:t.defaultView)??window}Io(Dx,"getOwnerWindow");function Ui(e){if(!Nf)throw new Error("Cannot access document outside of the DOM");return(e==null?void 0:e.ownerDocument)??document}Io(Ui,"getOwnerDocument");function Df(e,t=!1){const{activeElement:n}=Ui(e);if(!(n!=null&&n.nodeName))return null;if(Lf(n)&&n.contentDocument)return Df(n.contentDocument.body,t);if(t){const o=n.getAttribute("aria-activedescendant");if(o){const r=Ui(n).getElementById(o);if(r)return r}}return n}Io(Df,"getActiveElement");function Lf(e){return e.tagName==="IFRAME"}Io(Lf,"isFrame");var Lx=Object.defineProperty,tc=(e,t)=>Lx(e,"name",{value:t,configurable:!0});function Gi(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}tc(Gi,"setRef");function _f(...e){return t=>{let n=!1;const o=e.map(r=>{const s=Gi(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():Gi(e[r],null)}}}}tc(_f,"composeRefs");function Oo(...e){return c.useCallback(_f(...e),e)}tc(Oo,"useComposedRefs");var _x=Object.defineProperty,Ot=(e,t)=>_x(e,"name",{value:t,configurable:!0});function Fx(e,t){const n=c.createContext(t);n.displayName=e+"Context";const o=Ot(s=>{const{children:i,...a}=s,l=c.useMemo(()=>a,Object.values(a));return Y.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 Ot(r,"useContext"),[o,r]}Ot(Fx,"createContext");function Ff(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=Ot(p=>{var b;const{scope:f,children:y,...h}=p,g=((b=f==null?void 0:f[e])==null?void 0:b[l])||a,m=c.useMemo(()=>h,Object.values(h));return Y.jsx(g.Provider,{value:m,children:y})},"Provider");u.displayName=s+"Provider";function d(p,f,y={}){var b;const{optional:h=!1}=y,g=((b=f==null?void 0:f[e])==null?void 0:b[l])||a,m=c.useContext(g);if(m)return m;if(i!==void 0)return i;if(!h)throw new Error(`\`${p}\` must be used within \`${s}\``)}return Ot(d,"useContext"),[u,d]}Ot(o,"createContext");const r=Ot(()=>{const s=n.map(i=>c.createContext(i));return Ot(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,zf(r,...t)]}Ot(Ff,"createContextScope");function zf(...e){const t=e[0];if(e.length===1)return t;const n=Ot(()=>{const o=e.map(r=>({useScope:r(),scopeName:r.scopeName}));return Ot(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}Ot(zf,"composeContextScopes");var xo=globalThis!=null&&globalThis.document?c.useLayoutEffect:()=>{},zx=Object.defineProperty,Vx=(e,t)=>zx(e,"name",{value:t,configurable:!0}),$x=Ro[" useId ".trim().toString()]||(()=>{}),Hx=0;function Gr(e){const[t,n]=c.useState($x());return xo(()=>{e||n(o=>o??String(Hx++))},[e]),e||(t?`radix-${t}`:"")}Vx(Gr,"useId");var jx=Object.defineProperty,Bx=(e,t)=>jx(e,"name",{value:t,configurable:!0}),zl=Ro[" useEffectEvent ".trim().toString()],Vl=Ro[" useInsertionEffect ".trim().toString()];function Vf(e){if(typeof zl=="function")return zl(e);const t=c.useRef(()=>{throw new Error("Cannot call an event handler while rendering.")});return typeof Vl=="function"?Vl(()=>{t.current=e}):xo(()=>{t.current=e}),c.useMemo(()=>((...n)=>{var o;return(o=t.current)==null?void 0:o.call(t,...n)}),[])}Bx(Vf,"useEffectEvent");var Wx=Object.defineProperty,pr=(e,t)=>Wx(e,"name",{value:t,configurable:!0}),Ux=Ro[" useInsertionEffect ".trim().toString()]||xo;function $f({prop:e,defaultProp:t,onChange:n=pr(()=>{},"onChange"),caller:o}){const[r,s,i]=Hf({defaultProp:t,onChange:n}),a=e!==void 0,l=a?e:r,u=c.useCallback(d=>{var p;if(a){const f=jf(d)?d(e):d;f!==e&&((p=i.current)==null||p.call(i,f))}else s(d)},[a,e,s,i]);return[l,u]}pr($f,"useControllableState");function Hf({defaultProp:e,onChange:t}){const[n,o]=c.useState(e),r=c.useRef(n),s=c.useRef(t);return Ux(()=>{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]}pr(Hf,"useUncontrolledState");function jf(e){return typeof e=="function"}pr(jf,"isFunction");var $l=Symbol("RADIX:SYNC_STATE");function Gx(e,t,n,o){const{prop:r,defaultProp:s,onChange:i,caller:a}=t,l=r!==void 0,u=Vf(i),d=[{...n,state:s}];o&&d.push(o);const[p,f]=c.useReducer((m,b)=>{if(b.type===$l)return{...m,state:b.state};const v=e(m,b);return l&&!Object.is(v.state,m.state)&&u(v.state),v},...d),y=p.state,h=c.useRef(y);c.useEffect(()=>{h.current!==y&&(h.current=y,l||u(y))},[y,h,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:$l,state:r})},[r,p.state,l]),[g,f]}pr(Gx,"useControllableStateReducer");var qx=Object.defineProperty,jt=(e,t)=>qx(e,"name",{value:t,configurable:!0});function nc(e){const t=c.forwardRef((n,o)=>{let{children:r,...s}=n,i=null,a=!1;const l=[];qi(r)&&typeof Ar=="function"&&(r=Ar(r._payload)),c.Children.forEach(r,f=>{var y;if(Gf(f)){a=!0;const h=f;let g="child"in h.props?h.props.child:h.props.children;qi(g)&&typeof Ar=="function"&&(g=Ar(g._payload)),i=Xx(h,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?Uf(i):void 0,d=Oo(o,u);if(!i){if(r||r===0)throw new Error(a?Qx(e):Zx(e));return r}const p=Wf(s,i.props??{});return i.type!==c.Fragment&&(p.ref=o?d:u),c.cloneElement(i,p)});return t.displayName=`${e}.Slot`,t}jt(nc,"createSlot");var Bf=Symbol.for("radix.slottable");function Yx(e){const t=jt(n=>"child"in n?n.children(n.child):n.children,"Slottable");return t.displayName=`${e}.Slottable`,t.__radixId=Bf,t}jt(Yx,"createSlottable");var Xx=jt((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 Wf(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}}jt(Wf,"mergeProps");function Uf(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)}jt(Uf,"getElementRef");function Gf(e){return c.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===Bf}jt(Gf,"isSlottable");var Kx=Symbol.for("react.lazy");function qi(e){return e!=null&&typeof e=="object"&&"$$typeof"in e&&e.$$typeof===Kx&&"_payload"in e&&qf(e._payload)}jt(qi,"isLazyComponent");function qf(e){return typeof e=="object"&&e!==null&&"then"in e}jt(qf,"isPromiseLike");var Zx=jt(e=>`${e} failed to slot onto its children. Expected a single React element child or \`Slottable\`.`,"createSlotError"),Qx=jt(e=>`${e} failed to slot onto its \`Slottable\`. Expected \`Slottable\` to receive a single React element child.`,"createSlottableError"),Ar=Ro[" use ".trim().toString()],Jx=Object.defineProperty,e2=(e,t)=>Jx(e,"name",{value:t,configurable:!0}),t2=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],ti=t2.reduce((e,t)=>{const n=nc(`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),Y.jsx(l,{...a,ref:s})});return o.displayName=`Primitive.${t}`,{...e,[t]:o}},{});function Yf(e,t){e&&Dt.flushSync(()=>e.dispatchEvent(t))}e2(Yf,"dispatchDiscreteCustomEvent");var n2=Object.defineProperty,o2=(e,t)=>n2(e,"name",{value:t,configurable:!0});function So(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)}),[])}o2(So,"useCallbackRef");var r2=Object.defineProperty,ht=(e,t)=>r2(e,"name",{value:t,configurable:!0}),Yi="dismissableLayer.update",s2="dismissableLayer.pointerDownOutside",i2="dismissableLayer.focusOutside",Hl,Xf=c.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set,dismissableSurfaces:new Set}),a2=c.forwardRef(ht(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(Xf),[f,y]=c.useState(null),h=(f==null?void 0:f.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,g]=c.useState({}),m=Oo(n,y),b=Array.from(p.layers),[v]=[...p.layersWithOutsidePointerEventsDisabled].slice(-1),x=v?b.indexOf(v):-1,S=f?b.indexOf(f):-1,w=p.layersWithOutsidePointerEventsDisabled.size>0,R=S>=x,C=c.useRef(!1),k=Zf(O=>{i==null||i(O),l==null||l(O),O.defaultPrevented||u==null||u()},{ownerDocument:h,deferPointerDownOutside:r,isDeferredPointerDownOutsideRef:C,dismissableSurfaces:p.dismissableSurfaces,shouldHandlePointerDownOutside:c.useCallback(O=>{if(!(O instanceof Node))return!1;const D=[...p.branches].some(A=>A.contains(O));return R&&!D},[p.branches,R])}),T=Qf(O=>{if(r&&C.current)return;const D=O.target;[...p.branches].some(P=>P.contains(D))||(a==null||a(O),l==null||l(O),O.defaultPrevented||u==null||u())},h),E=f?S===b.length-1:!1,N=So(O=>{O.key==="Escape"&&(s==null||s(O),!O.defaultPrevented&&u&&(O.preventDefault(),u()))});return c.useEffect(()=>{if(E)return h.addEventListener("keydown",N,{capture:!0}),()=>h.removeEventListener("keydown",N,{capture:!0})},[h,E,N]),c.useEffect(()=>{if(f)return o&&(p.layersWithOutsidePointerEventsDisabled.size===0&&(Hl=h.body.style.pointerEvents,h.body.style.pointerEvents="none"),p.layersWithOutsidePointerEventsDisabled.add(f)),p.layers.add(f),Xi(),()=>{o&&(p.layersWithOutsidePointerEventsDisabled.delete(f),p.layersWithOutsidePointerEventsDisabled.size===0&&(h.body.style.pointerEvents=Hl))}},[f,h,o,p]),c.useEffect(()=>()=>{f&&(p.layers.delete(f),p.layersWithOutsidePointerEventsDisabled.delete(f),Xi())},[f,p]),c.useEffect(()=>{const O=ht(()=>g({}),"handleUpdate");return document.addEventListener(Yi,O),()=>document.removeEventListener(Yi,O)},[]),Y.jsx(ti.div,{...d,ref:m,style:{pointerEvents:w?R?"auto":"none":void 0,...t.style},onFocusCapture:Vn(t.onFocusCapture,T.onFocusCapture),onBlurCapture:Vn(t.onBlurCapture,T.onBlurCapture),onPointerDownCapture:Vn(t.onPointerDownCapture,k.onPointerDownCapture)})},"DismissableLayer"));function Kf(){const e=c.useContext(Xf),[t,n]=c.useState(null);return c.useEffect(()=>{if(t)return e.dismissableSurfaces.add(t),()=>{e.dismissableSurfaces.delete(t)}},[t,e.dismissableSurfaces]),n}ht(Kf,"useDismissableLayerSurface");var c2=ht(()=>!0,"IS_TRUE");function Zf(e,t){const{ownerDocument:n=globalThis==null?void 0:globalThis.document,deferPointerDownOutside:o=!1,isDeferredPointerDownOutsideRef:r,dismissableSurfaces:s,shouldHandlePointerDownOutside:i=c2}=t,a=So(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()}ht(f,"resetOutsideInteraction");function y(){return Array.from(d.current.values()).some(Boolean)}ht(y,"isOutsideInteractionIntercepted");function h(x){if(!u.current)return;const S=x.target;S instanceof Node&&[...s].some(R=>R.contains(S))||d.current.set(x.type,!0),x.type==="click"&&window.setTimeout(()=>{u.current&&p.current()},0)}ht(h,"handleInteractionCapture");function g(x){u.current&&d.current.set(x.type,!1)}ht(g,"handleInteractionBubble");const m=ht(x=>{if(x.target&&!l.current){let S=function(){n.removeEventListener("click",p.current);const R=y();f(),R||oc(s2,a,w,{discrete:!0})};if(ht(S,"handleAndDispatchPointerDownOutsideEvent"),!i(x.target)){n.removeEventListener("click",p.current),f(),l.current=!1;return}const w={originalEvent:x};u.current=!0,r.current=o&&x.button===0,d.current.clear(),!o||x.button!==0?S():(n.removeEventListener("click",p.current),p.current=S,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 x of b)n.addEventListener(x,h,!0),n.addEventListener(x,g);const v=window.setTimeout(()=>{n.addEventListener("pointerdown",m)},0);return()=>{window.clearTimeout(v),n.removeEventListener("pointerdown",m),n.removeEventListener("click",p.current);for(const x of b)n.removeEventListener(x,h,!0),n.removeEventListener(x,g)}},[n,a,o,r,s,i]),{onPointerDownCapture:ht(()=>l.current=!0,"onPointerDownCapture")}}ht(Zf,"usePointerDownOutside");function Qf(e,t=globalThis==null?void 0:globalThis.document){const n=So(e),o=c.useRef(!1);return c.useEffect(()=>{const r=ht(s=>{s.target&&!o.current&&oc(i2,n,{originalEvent:s},{discrete:!1})},"handleFocus");return t.addEventListener("focusin",r),()=>t.removeEventListener("focusin",r)},[t,n]),{onFocusCapture:ht(()=>o.current=!0,"onFocusCapture"),onBlurCapture:ht(()=>o.current=!1,"onBlurCapture")}}ht(Qf,"useFocusOutside");function Xi(){const e=new CustomEvent(Yi);document.dispatchEvent(e)}ht(Xi,"dispatchUpdate");function oc(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?Yf(r,s):r.dispatchEvent(s)}ht(oc,"handleAndDispatchCustomEvent");var l2=Object.defineProperty,St=(e,t)=>l2(e,"name",{value:t,configurable:!0}),ki="focusScope.autoFocusOnMount",Ci="focusScope.autoFocusOnUnmount",jl={bubbles:!1,cancelable:!0},u2=c.forwardRef(St(function(t,n){const{loop:o=!1,trapped:r=!1,onMountAutoFocus:s,onUnmountAutoFocus:i,...a}=t,[l,u]=c.useState(null),d=So(s),p=So(i),f=c.useRef(null),y=Oo(n,u),h=c.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;c.useEffect(()=>{if(r){let m=function(S){if(h.paused||!l)return;const w=S.target;l.contains(w)?f.current=w:tn(f.current,{select:!0})},b=function(S){if(h.paused||!l)return;const w=S.relatedTarget;w!==null&&(l.contains(w)||tn(f.current,{select:!0}))},v=function(S){if(document.activeElement===document.body)for(const R of S)R.removedNodes.length>0&&tn(l)};St(m,"handleFocusIn"),St(b,"handleFocusOut"),St(v,"handleMutations"),document.addEventListener("focusin",m),document.addEventListener("focusout",b);const x=new MutationObserver(v);return l&&x.observe(l,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",m),document.removeEventListener("focusout",b),x.disconnect()}}},[r,l,h.paused]),c.useEffect(()=>{if(l){Bl.add(h);const m=document.activeElement;if(!l.contains(m)){const v=new CustomEvent(ki,jl);l.addEventListener(ki,d),l.dispatchEvent(v),v.defaultPrevented||(Jf(rp(rc(l)),{select:!0}),document.activeElement===m&&tn(l))}return()=>{l.removeEventListener(ki,d),setTimeout(()=>{const v=new CustomEvent(Ci,jl);l.addEventListener(Ci,p),l.dispatchEvent(v),v.defaultPrevented||tn(m??document.body,{select:!0}),l.removeEventListener(Ci,p),Bl.remove(h)},0)}}},[l,d,p,h]);const g=c.useCallback(m=>{if(!o&&!r||h.paused)return;const b=m.key==="Tab"&&!m.altKey&&!m.ctrlKey&&!m.metaKey,v=document.activeElement;if(b&&v){const x=m.currentTarget,[S,w]=ep(x);S&&w?!m.shiftKey&&v===w?(m.preventDefault(),o&&tn(S,{select:!0})):m.shiftKey&&v===S&&(m.preventDefault(),o&&tn(w,{select:!0})):v===x&&m.preventDefault()}},[o,r,h.paused]);return Y.jsx(ti.div,{tabIndex:-1,...a,ref:y,onKeyDown:g})},"FocusScope"));function Jf(e,{select:t=!1}={}){const n=document.activeElement;for(const o of e)if(tn(o,{select:t}),document.activeElement!==n)return}St(Jf,"focusFirst");function ep(e){const t=rc(e),n=Ki(t,e),o=Ki(t.reverse(),e);return[n,o]}St(ep,"getTabbableEdges");function rc(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:St(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}St(rc,"getTabbableCandidates");function Ki(e,t){const n=typeof t.checkVisibility=="function"&&t.checkVisibility({checkVisibilityCSS:!0});for(const o of e)if(!(n?!o.checkVisibility({checkVisibilityCSS:!0}):tp(o,{upTo:t})))return o}St(Ki,"findVisible");function tp(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}St(tp,"isHidden");function np(e){return e instanceof HTMLInputElement&&"select"in e}St(np,"isSelectableInput");function tn(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&np(e)&&t&&e.select()}}St(tn,"focus");var Bl=op();function op(){let e=[];return{add(t){const n=e[0];t!==n&&(n==null||n.pause()),e=Zi(e,t),e.unshift(t)},remove(t){var n;e=Zi(e,t),(n=e[0])==null||n.resume()}}}St(op,"createFocusScopesStack");function Zi(e,t){const n=[...e],o=n.indexOf(t);return o!==-1&&n.splice(o,1),n}St(Zi,"arrayRemove");function rp(e){return e.filter(t=>t.tagName!=="A")}St(rp,"removeLinks");var d2=Object.defineProperty,f2=(e,t)=>d2(e,"name",{value:t,configurable:!0}),p2=c.forwardRef(f2(function(t,n){var l;const{container:o,...r}=t,[s,i]=c.useState(!1);xo(()=>i(!0),[]);const a=o||s&&((l=globalThis==null?void 0:globalThis.document)==null?void 0:l.body);return a?Dt.createPortal(Y.jsx(ti.div,{...r,ref:n}),a):null},"Portal")),h2=Object.defineProperty,cn=(e,t)=>h2(e,"name",{value:t,configurable:!0});function sp(e,t){return c.useReducer((n,o)=>t[n][o]??n,e)}cn(sp,"useStateMachine");var sc=cn(e=>{const{present:t,children:n}=e,o=ip(t),r=typeof n=="function"?n({present:o.isPresent}):c.Children.only(n),s=ap(o.ref,cp(r));return typeof n=="function"||o.isPresent?c.cloneElement(r,{ref:s}):null},"Presence");function ip(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]=sp(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??io(o.current),i.current=void 0):s.current="none"},[l]),xo(()=>{const d=o.current,p=r.current;if(p!==e){const y=s.current,h=io(d);e?(i.current=h,u("MOUNT")):h==="none"||(d==null?void 0:d.display)==="none"?u("UNMOUNT"):u(p&&y!==h?"ANIMATION_OUT":"UNMOUNT"),r.current=e}},[e,u]),xo(()=>{if(t){let d;const p=t.ownerDocument.defaultView??window,f=cn(h=>{const m=io(o.current).includes(CSS.escape(h.animationName));if(h.target===t&&m&&(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=cn(h=>{h.target===t&&(s.current=io(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=io(p)}else o.current=null;n(d)},[])}}cn(ip,"usePresence");function Qi(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}cn(Qi,"setRef");function ap(...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=Qi(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():Qi(o[i],null)}}},[])}cn(ap,"useStableComposedRefs");function io(e){return(e==null?void 0:e.animationName)||"none"}cn(io,"getAnimationName");function cp(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)}cn(cp,"getElementRef");var g2=Object.defineProperty,ic=(e,t)=>g2(e,"name",{value:t,configurable:!0}),Nr=0,Wt=null;function m2(e){return ac(),e.children}ic(m2,"FocusGuards");function ac(){c.useEffect(()=>{Wt||(Wt={start:Ji(),end:Ji()});const{start:e,end:t}=Wt;return document.body.firstElementChild!==e&&document.body.insertAdjacentElement("afterbegin",e),document.body.lastElementChild!==t&&document.body.insertAdjacentElement("beforeend",t),Nr++,()=>{Nr===1&&(Wt==null||Wt.start.remove(),Wt==null||Wt.end.remove(),Wt=null),Nr=Math.max(0,Nr-1)}},[])}ic(ac,"useFocusGuards");function Ji(){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}ic(Ji,"createFocusGuard");var Gt=function(){return Gt=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},Gt.apply(this,arguments)};function lp(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 y2(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 qr="right-scroll-bar-position",Yr="width-before-scroll-bar",b2="with-scroll-bars-hidden",v2="--removed-body-scroll-bar-size";function Ei(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function x2(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 S2=typeof window<"u"?c.useLayoutEffect:c.useEffect,Wl=new WeakMap;function w2(e,t){var n=x2(null,function(o){return e.forEach(function(r){return Ei(r,o)})});return S2(function(){var o=Wl.get(n);if(o){var r=new Set(o),s=new Set(e),i=n.current;r.forEach(function(a){s.has(a)||Ei(a,null)}),s.forEach(function(a){r.has(a)||Ei(a,i)})}Wl.set(n,e)},[e]),n}function R2(e){return e}function k2(e,t){t===void 0&&(t=R2);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 C2(e){e===void 0&&(e={});var t=k2(null);return t.options=Gt({async:!0,ssr:!1},e),t}var up=function(e){var t=e.sideCar,n=lp(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,Gt({},n))};up.isSideCarExport=!0;function E2(e,t){return e.useMedium(t),up}var dp=C2(),Pi=function(){},ni=c.forwardRef(function(e,t){var n=c.useRef(null),o=c.useState({onScrollCapture:Pi,onWheelCapture:Pi,onTouchMoveCapture:Pi}),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,h=e.noIsolation,g=e.inert,m=e.allowPinchZoom,b=e.as,v=b===void 0?"div":b,x=e.gapMode,S=lp(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),w=f,R=w2([n,t]),C=Gt(Gt({},S),r);return c.createElement(c.Fragment,null,d&&c.createElement(w,{sideCar:dp,removeScrollBar:u,shards:p,noRelative:y,noIsolation:h,inert:g,setCallbacks:s,allowPinchZoom:!!m,lockRef:n,gapMode:x}),i?c.cloneElement(c.Children.only(a),Gt(Gt({},C),{ref:R})):c.createElement(v,Gt({},C,{className:l,ref:R}),a))});ni.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};ni.classNames={fullWidth:Yr,zeroRight:qr};var P2=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function M2(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=P2();return t&&e.setAttribute("nonce",t),e}function T2(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function I2(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var O2=function(){var e=0,t=null;return{add:function(n){e==0&&(t=M2())&&(T2(t,n),I2(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},A2=function(){var e=O2();return function(t,n){c.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},fp=function(){var e=A2(),t=function(n){var o=n.styles,r=n.dynamic;return e(o,r),null};return t},N2={left:0,top:0,right:0,gap:0},Mi=function(e){return parseInt(e||"",10)||0},D2=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[Mi(n),Mi(o),Mi(r)]},L2=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return N2;var t=D2(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])}},_2=fp(),fo="data-scroll-locked",F2=function(e,t,n,o){var r=e.left,s=e.top,i=e.right,a=e.gap;return n===void 0&&(n="margin"),`
|
|
848
|
-
.`.concat(
|
|
917
|
+
*/var hl;function Eb(){if(hl)return Si;hl=1;var e=Ru(),t=Ld();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 Si.useSyncExternalStoreWithSelector=function(u,d,p,f,y){var h=s(null);if(h.current===null){var g={hasValue:!1,value:null};h.current=g}else g=h.current;h=a(function(){function b(R){if(!v){if(v=!0,x=R,R=f(R),y!==void 0&&g.hasValue){var C=g.value;if(y(C,R))return S=C}return S=R}if(C=S,o(x,R))return C;var k=f(R);return y!==void 0&&y(C,k)?(x=R,C):(x=R,S=k)}var v=!1,x,S,w=p===void 0?null:p;return[function(){return b(d())},w===null?void 0:function(){return b(w())}]},[d,p,f,y]);var m=r(u,h[0],h[1]);return i(function(){g.hasValue=!0,g.value=m},[m]),l(m),m},Si}var gl;function Pb(){return gl||(gl=1,xi.exports=Eb()),xi.exports}var Mb=Pb();const ji=[];let Bi;function Tb(){return Bi}function Ib(e){ji.push(e)}function Na(e){const t=(n,o)=>{const r=gt(Ob).current;let s;try{Bi=r;for(const i of ji)i.before(r);s=e(n,o);for(const i of ji)i.after(r);r.didInitialize=!0}finally{Bi=void 0}return s};return t.displayName=e.displayName||e.name,t}function Fd(e){return c.forwardRef(Na(e))}function Ob(){return{didInitialize:!1}}const Ab=fa(19),Nb=Ab?_b:Lb;function Ee(e,t,n,o,r){return Nb(e,t,n,o,r)}function Db(e,t,n,o,r){const s=c.useCallback(()=>t(e.getSnapshot(),n,o,r),[e,t,n,o,r]);return Ns.useSyncExternalStore(e.subscribe,s,s)}Ib({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()}}),Ns.useSyncExternalStore(e.subscribe,e.getSnapshot,e.getSnapshot))}});function _b(e,t,n,o,r){const s=Tb();if(!s)return Db(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 Lb(e,t,n,o,r){return Mb.useSyncExternalStoreWithSelector(e.subscribe,e.getSnapshot,e.getSnapshot,s=>t(s,n,o,r))}class Fb{constructor(t){Ue(this,"subscribe",t=>(this.listeners.add(t),()=>{this.listeners.delete(t)}));Ue(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 Ee(this,t,n,o,r)}}class ko extends Fb{constructor(t,n={},o){super(t),this.context=n,this.selectors=o}useSyncedValue(t,n){c.useDebugValue(t);const o=this;pe(()=>{o.state[t]!==n&&o.set(t,n)},[o,t,n])}useSyncedValueWithCleanup(t,n){const o=this;pe(()=>(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);pe(()=>{n.update(t)},[n,...o])}useControlledProp(t,n){c.useDebugValue(t);const o=this,r=n!==void 0;pe(()=>{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),Ee(this,this.selectors[t],n,o,r)}useContextCallback(t,n){c.useDebugValue(t);const o=he(n??ot);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 zb(){const[,e]=c.useState({});return c.useCallback(()=>{e({})},[])}const Vb={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 Ds extends ko{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:Rd(),nested:r,triggerElements:i},Vb);Ue(this,"syncOpenEvent",(n,o)=>{(!n||!this.state.open||o!=null&&Z0(o))&&(this.context.dataRef.current.openEvent=n?o:void 0)});Ue(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)});Ue(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 zd(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 Ds({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),pe(()=>{const h={open:a,floatingId:r,referenceElement:l,floatingElement:u};Ne(l)&&(h.domReferenceElement=l),y.state.positionReference===y.state.referenceElement&&(h.positionReference=l),y.update(h)},[a,r,l,u,y]),y.context.onOpenChange=p,y.context.nested=s,y}function In(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),pe(()=>{if(!e&&s&&o!=="ending"&&n){const a=Ct.request(()=>{r("ending")});return()=>{Ct.cancel(a)}}},[e,s,o,n]),pe(()=>{if(!e||t)return;const a=Ct.request(()=>{r(void 0)});return()=>{Ct.cancel(a)}},[t,e]),pe(()=>{if(!e||!t)return;e&&s&&o!=="idle"&&r("starting");const a=Ct.request(()=>{r("idle")});return()=>{Ct.cancel(a)}},[t,e,s,o]),{mounted:s,setMounted:i,transitionStatus:o}}function _s(e,t=!1){const n=$n();return he((o,r=null)=>{n.cancel();const s=en(e);if(s==null)return;const i=s,a=()=>{Dt.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 It(e){const{enabled:t=!0,open:n,ref:o,onComplete:r}=e,s=he(r),i=_s(o,n);c.useEffect(()=>{if(!t)return;const a=new AbortController;return i(s,a.signal),()=>{a.abort()}},[t,n,s,i])}const ir={tabIndex:-1,[_i]:""};function Vd(e){return t=>t==="touch"?e.current:!0}function Da(e,t=!1){const n=Cn(),o=Mn()!=null,r=gt(()=>e(n,o)).current;return zd({popupStore:r,treatPopupAsFloatingElement:t,floatingRootContext:r.state.floatingRootContext,floatingId:n,nested:o,onOpenChange:r.setOpen}),r}function Ls({handle:e,store:t}){return pe(()=>e.attachStore(t),[e,t]),null}function $b(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 Fs(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 _a(e){let t=!1;return e.preventUnmountOnClose=()=>{t=!0},()=>t}function Hb(e,t,n,o={}){var d,p,f;const r=n.reason,s=r===it,i=t&&r===co,a=!t&&(r===$t||r===or),l=_a(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),Fs(y,t,n.trigger,l()),e.update(y)};s?Dt.flushSync(u):u()}function zs(e,t,n,o){const r=n.useState("isMountedByTrigger",e),s=$b(e,n),i=he(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 pe(()=>{r&&n.update({activeTriggerElement:t.current,...o})},[r,n,t,...Object.values(o)]),{registerTrigger:a,isMountedByThisTrigger:r}}function Vs(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");pe(()=>{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,h]of e.context.triggerElements.entries())if(h===e.state.activeTriggerElement){u.activeTriggerId=y,u.activeTriggerElement=h,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,h]=f.value;u.activeTriggerId=y,u.activeTriggerElement=h,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 $s(e,t,n){const{mounted:o,setMounted:r,transitionStatus:s}=In(e),i=t.useState("preventUnmountingOnClose"),a=e?!1:i;t.useSyncedValues({mounted:o,transitionStatus:s,preventUnmountingOnClose:a});const l=he(()=>{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 It({enabled:o&&!e&&!a,open:e,ref:t.context.popupRef,onComplete(){e||l()}}),{forceUnmount:l,transitionStatus:s}}function Hs(e,t){e.useSyncedValues(t),pe(()=>()=>{e.update({activeTriggerProps:Ke,inactiveTriggerProps:Ke,popupProps:Ke})},[e])}function $d(e,t){pe(()=>{!t&&e.state.openMethod!==null&&e.set("openMethod",null)},[t,e]),pe(()=>()=>{e.state.openMethod!==null&&e.set("openMethod",null)},[e])}class Co{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 jb(){return new Ds({open:!1,transitionStatus:void 0,floatingElement:null,referenceElement:null,triggerElements:new Co,floatingId:void 0,syncOnly:!1,nested:!1,onOpenChange:void 0})}function js(){return{open:!1,openProp:void 0,mounted:!1,transitionStatus:void 0,floatingRootContext:jb(),floatingId:void 0,triggerCount:0,preventUnmountingOnClose:!1,payload:void 0,activeTriggerId:null,activeTriggerElement:null,triggerIdProp:void 0,popupElement:null,positionerElement:null,activeTriggerProps:Ke,inactiveTriggerProps:Ke,popupProps:Ke}}function La(e,t,n=!1){return new Ds({open:!1,transitionStatus:void 0,floatingElement:null,referenceElement:null,triggerElements:e,floatingId:t,syncOnly:!0,nested:n,onOpenChange:void 0})}const Wo=e=>e.triggerIdProp??e.activeTriggerId,Fa=e=>e.openProp??e.open,ml=e=>{var n;return(((n=e.popupElement)==null?void 0:n.id)??e.floatingId)||void 0};function Hd(e,t){return t!==void 0&&Fa(e)&&Wo(e)===t}function Bb(e,t){return Hd(e,t)?!0:t!==void 0&&Fa(e)&&Wo(e)==null&&e.triggerCount===1}const Bs={open:Fa,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:Wo,activeTriggerElement:e=>e.mounted?e.activeTriggerElement:null,popupId:ml,isTriggerActive:(e,t)=>t!==void 0&&Wo(e)===t,isOpenedByTrigger:(e,t)=>Hd(e,t),isMountedByTrigger:(e,t)=>t!==void 0&&Wo(e)===t&&e.mounted,triggerProps:(e,t)=>t?e.activeTriggerProps:e.inactiveTriggerProps,triggerPopupId:(e,t)=>Bb(e,t)?ml(e):void 0,popupProps:e=>e.popupProps,popupElement:e=>e.popupElement,positionerElement:e=>e.positionerElement};function Ws(e){const t=c.useCallback(o=>e===void 0?ot:e.subscribeStore(o),[e]),n=c.useCallback(()=>e===void 0?void 0:e.store,[e]);return Ns.useSyncExternalStore(t,n,()=>e==null?void 0:e.serverStore)}function Wb(e){const{open:t=!1,onOpenChange:n,elements:o={}}=e,r=Cn(),s=Mn()!=null,i=gt(()=>new Ds({open:t,transitionStatus:void 0,onOpenChange:n,referenceElement:o.reference??null,floatingElement:o.floating??null,triggerElements:new Co,floatingId:r,syncOnly:!1,nested:s})).current;return pe(()=>{const a={open:t,floatingId:r};o.reference!==void 0&&(a.referenceElement=o.reference,a.domReferenceElement=Ne(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 Ub(e){return qb(e,e.rootContext)}function qb(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,h]=c.useState(void 0),g=c.useRef(null),m=Tn(o),b=c.useMemo(()=>({reference:r,floating:s,domReference:i}),[r,s,i]),v=vb({...e,elements:{...b,...u&&{reference:u}}}),x=Ne(p)?p:null,S=y===void 0?t.state.floatingElement:y;t.useSyncedValue("referenceElement",p??null),t.useSyncedValue("domReferenceElement",p===void 0?i:x),t.useSyncedValue("floatingElement",S);const w=c.useCallback(N=>{const O=Ne(N)?{getBoundingClientRect:()=>N.getBoundingClientRect(),getClientRects:()=>N.getClientRects(),contextElement:N}:N;d(O),v.refs.setReference(O)},[v.refs]),R=c.useCallback(N=>{(Ne(N)||N===null)&&(g.current=N,f(N)),(Ne(v.refs.reference.current)||v.refs.reference.current===null||N!==null&&!Ne(N))&&v.refs.setReference(N)},[v.refs,f]),C=c.useCallback(N=>{h(N),v.refs.setFloating(N)},[v.refs]),k=c.useMemo(()=>({...v.refs,setReference:R,setFloating:C,setPositionReference:w,domReference:g}),[v.refs,R,C,w]),T=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:T,nodeId:n,rootStore:t}),[v,k,T,n,t,a,l]);return pe(()=>{i&&(g.current=i)},[i]),pe(()=>{t.context.dataRef.current.floatingContext=E;const N=m==null?void 0:m.nodesRef.current.find(O=>O.id===n);N&&(N.context=E)}),c.useMemo(()=>({...v,context:E,refs:k,elements:T,rootStore:t}),[v,k,T,E,t])}const wi=ma&&Xt;function jd(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=nt();c.useEffect(()=>{const f=r.select("domReferenceElement");if(!n)return;const y=Xe(f);function h(){const b=r.select("domReferenceElement");!r.select("open")&&Ye(b)&&b===pt(Ie(b))&&(a.current=!0)}function g(){u.current=!0}function m(){u.current=!1}return Yt(Ae(y,"blur",h),wi&&Ae(y,"keydown",g,!0),wi&&Ae(y,"pointerdown",m,!0))},[r,n]),c.useEffect(()=>{if(!n)return;function f(y){if(y.reason===$t||y.reason===or){const h=r.select("domReferenceElement");Ne(h)&&(l.current=h,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 h=y.currentTarget;if(a.current){if(l.current===h)return;f()}const g=at(y.nativeEvent);if(Ne(g)){if(wi&&!y.relatedTarget){if(!u.current&&!ks(g))return}else if(!Qu(g))return}const m=Jr(y.relatedTarget,r.context.triggerElements),{nativeEvent:b,currentTarget:v}=y,x=typeof o=="function"?o():o;if(r.select("open")&&m||x===0||x===void 0){r.setOpen(!0,ke(co,b,v));return}d.start(x,()=>{a.current||r.setOpen(!0,ke(co,b,v))})},onBlur(y){f();const h=y.relatedTarget,g=y.nativeEvent,m=Ne(h)&&h.hasAttribute(Ko("focus-guard"))&&h.getAttribute("data-type")==="outside";d.start(0,()=>{var S;const b=r.select("domReferenceElement"),v=pt(Ie(b));!h&&v===b||ve((S=i.current.floatingContext)==null?void 0:S.refs.floating.current,v)||ve(b,v)||m||Jr(h??v,r.context.triggerElements)||r.setOpen(!1,ke(co,g))})}}},[i,o,r,d]);return c.useMemo(()=>n?{reference:p,trigger:p}:{},[n,p])}class za{constructor(){Ue(this,"dispose",()=>{this.openChangeTimeout.clear(),this.restTimeout.clear()});Ue(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 _t,this.restTimeout=new _t,this.handleCloseOptions=void 0}static create(){return new za}}const rs=new WeakMap;function ss(e){var n,o,r;if(!e.performedPointerEventsMutation)return;const t=e.pointerEventsScopeElement;t&&rs.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"),rs.delete(t)),e.performedPointerEventsMutation=!1,e.pointerEventsScopeElement=null,e.pointerEventsReferenceElement=null,e.pointerEventsFloatingElement=null}function Bd(e,t){const{scopeElement:n,referenceElement:o,floatingElement:r}=t,s=rs.get(n);s&&s!==e&&ss(s),ss(e),e.performedPointerEventsMutation=!0,e.pointerEventsScopeElement=n,e.pointerEventsReferenceElement=o,e.pointerEventsFloatingElement=r,rs.set(n,e),n.style.pointerEvents="none",o.style.pointerEvents="auto",r.style.pointerEvents="auto"}function Va(e){const t=e.context.dataRef.current,n=gt(()=>t.hoverInteractionState??za.create()).current;return t.hoverInteractionState||(t.hoverInteractionState=n),ga(t.hoverInteractionState.disposeEffect),t.hoverInteractionState}function $a(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=Tn(),p=Mn(),f=Va(s),y=nt(),h=he(()=>{var b;return Ju((b=u.current.openEvent)==null?void 0:b.type,f.interactedInside)}),g=he(()=>{var b;return ty((b=u.current.openEvent)==null?void 0:b.type)}),m=he(()=>{ss(f)});pe(()=>{i||(f.pointerType=void 0,f.restTimeoutPending=!1,f.interactedInside=!1,m())},[i,f,m]),c.useEffect(()=>m,[m]),pe(()=>{var b,v,x,S,w;if(n&&i&&(b=f.handleCloseOptions)!=null&&b.blockPointerEvents&&g()&&Ne(l)&&a){const R=l,C=a,k=Ie(a),T=(x=(v=d==null?void 0:d.nodesRef.current.find(D=>D.id===p))==null?void 0:v.context)==null?void 0:x.elements.floating;T&&(T.style.pointerEvents="");const E=f.pointerEventsScopeElement!==C?f.pointerEventsScopeElement:null,N=T!==C?T:null,O=((w=(S=f.handleCloseOptions)==null?void 0:S.getScope)==null?void 0:w.call(S))??E??N??R.closest("[data-rootownerid]")??k.body;return Bd(f,{scopeElement:O,referenceElement:R,floatingElement:C}),()=>{m()}}},[n,i,l,a,f,g,d,p,m]),c.useEffect(()=>{if(!n)return;function b(){return!!(d&&p&&kn(d.nodesRef.current,p).length>0)}function v(k){const T=vn(o,"close",f.pointerType),E=()=>{s.setOpen(!1,ke(it,k)),d==null||d.events.emit("floating.closed",k)};T?f.openChangeTimeout.start(T,E):(f.openChangeTimeout.clear(),E())}function x(k){const T=at(k);if(!J0(T)){f.interactedInside=!1;return}f.interactedInside=(T==null?void 0:T.closest("[aria-haspopup]"))!=null}function S(){f.openChangeTimeout.clear(),y.clear(),d==null||d.events.off("floating.closed",R),m()}function w(k){var O;if(b()&&d){d.events.on("floating.closed",R);return}if(Jr(k.relatedTarget,s.context.triggerElements))return;const T=((O=u.current.floatingContext)==null?void 0:O.nodeId)??r,E=k.relatedTarget;if(!(d&&T&&Ne(E)&&kn(d.nodesRef.current,T,!1).some(D=>{var A;return ve((A=D.context)==null?void 0:A.elements.floating,E)}))){if(f.handler){f.handler(k);return}m(),g()&&!h()&&v(k)}}function R(k){!d||!p||b()||y.start(0,()=>{d.events.off("floating.closed",R),s.setOpen(!1,ke(it,k)),d.events.emit("floating.closed",k)})}const C=a;return Yt(C&&Ae(C,"mouseenter",S),C&&Ae(C,"mouseleave",w),C&&Ae(C,"pointerdown",x,!0),()=>{d==null||d.events.off("floating.closed",R)})},[n,a,s,u,o,r,g,h,m,f,d,p,y])}const Gb={current:null};function Ha(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=Gb,externalTree:u,isActiveTrigger:d=!0,getHandleCloseContext:p,isClosing:f,shouldOpen:y,guardStaleOpen:h=!1}=t,g="rootStore"in e?e.rootStore:e,{dataRef:m,events:b}=g.context,v=Tn(u),x=Va(g),S=c.useRef(!1),w=rt(r),R=rt(o),C=rt(i),k=rt(n),T=rt(y),E=rt(f),N=he(()=>{var F;return Ju((F=m.current.openEvent)==null?void 0:F.type,x.interactedInside)}),O=he(()=>{var F;return((F=T.current)==null?void 0:F.call(T))!==!1}),D=he((F,I,_)=>{const M=g.context.triggerElements;if(M.hasElement(I))return!F||!ve(F,I);if(!Ne(_))return!1;const L=_;return M.hasMatchingElement(H=>ve(H,L))&&(!F||!ve(F,L))}),A=he(()=>{if(!x.handler)return;Ie(g.select("domReferenceElement")).removeEventListener("mousemove",x.handler),x.handler=void 0}),P=he(()=>{ss(x)});return d&&(x.handleCloseOptions=(z=w.current)==null?void 0:z.__options),c.useEffect(()=>A,[A]),c.useEffect(()=>{if(!n)return;function F(I){I.open?S.current=!1:(S.current=I.reason===it,A(),x.openChangeTimeout.clear(),x.restTimeout.clear(),x.blockMouseMove=!0,x.restTimeoutPending=!1)}return b.on("openchange",F),()=>{b.off("openchange",F)}},[n,b,x,A]),c.useEffect(()=>{if(!n)return;function F($,U=!0){const q=vn(R.current,"close",x.pointerType);q?x.openChangeTimeout.start(q,()=>{g.setOpen(!1,ke(it,$)),v==null||v.events.emit("floating.closed",$)}):U&&(x.openChangeTimeout.clear(),g.setOpen(!1,ke(it,$)),v==null||v.events.emit("floating.closed",$))}const I=l.current??(d?g.select("domReferenceElement"):null);if(!Ne(I))return;function _($){var Z;if(x.openChangeTimeout.clear(),x.blockMouseMove=!1,s&&!yn(x.pointerType))return;const U=Hc(C.current),q=vn(R.current,"open",x.pointerType),V=at($),X=$.currentTarget??null,j=g.select("domReferenceElement");let K=X;if(Ne(V)&&!g.context.triggerElements.hasElement(V)){for(const J of g.context.triggerElements.elements())if(ve(J,V)){K=J;break}}Ne(X)&&Ne(j)&&!g.context.triggerElements.hasElement(X)&&ve(X,j)&&(K=j);const de=K==null?!1:D(j,K,V),se=g.select("open"),ne=((Z=E.current)==null?void 0:Z.call(E))??g.select("transitionStatus")==="ending",re=!se&&ne&&S.current,G=!de&&Ne(K)&&Ne(j)&&ve(j,K)&&re,ie=U>0&&!q,ge=de&&(se||re)||G,ue=!se||de;if(ge){O()&&g.setOpen(!0,ke(it,$,K));return}ie||(q?x.openChangeTimeout.start(q,()=>{ue&&O()&&g.setOpen(!0,ke(it,$,K))}):ue&&O()&&g.setOpen(!0,ke(it,$,K)))}function M($){if(N()){P();return}A();const U=g.select("domReferenceElement"),q=Ie(U);x.restTimeout.clear(),x.restTimeoutPending=!1;const V=m.current.floatingContext??(p==null?void 0:p());if(Jr($.relatedTarget,g.context.triggerElements))return;if(w.current&&V){g.select("open")||x.openChangeTimeout.clear();const j=l.current;x.handler=w.current({...V,tree:v,x:$.clientX,y:$.clientY,onClose(){P(),A(),k.current&&!N()&&j===g.select("domReferenceElement")&&F($,!0)}}),q.addEventListener("mousemove",x.handler),x.handler($);return}(x.pointerType==="touch"?!ve(g.select("floatingElement"),$.relatedTarget):!0)&&F($)}function L($){ve(I,$.relatedTarget)||(x.openChangeTimeout.clear(),x.restTimeout.clear(),x.restTimeoutPending=!1)}const H=h?Ae(I,"mouseout",L):void 0;return a?Yt(Ae(I,"mousemove",_,{once:!0}),Ae(I,"mouseenter",_),Ae(I,"mouseleave",M),H):Yt(Ae(I,"mouseenter",_),Ae(I,"mouseleave",M),H)},[A,P,m,R,g,n,w,x,d,D,N,s,a,C,l,v,k,p,E,O,h]),c.useMemo(()=>{if(!n)return;function F(I){x.pointerType=I.pointerType}return{onPointerDown:F,onPointerEnter:F,onMouseMove(I){var V,X,j;const{nativeEvent:_}=I,M=I.currentTarget,L=g.select("domReferenceElement"),H=g.select("open"),$=D(L,M,I.target);if(s&&!yn(x.pointerType))return;if(H&&$&&((V=x.handleCloseOptions)!=null&&V.blockPointerEvents)){const K=g.select("floatingElement");if(K){const de=((j=(X=x.handleCloseOptions)==null?void 0:X.getScope)==null?void 0:j.call(X))??M.ownerDocument.body;Bd(x,{scopeElement:de,referenceElement:M,floatingElement:K})}}const U=Hc(C.current);if(H&&!$||U===0||!$&&x.restTimeoutPending&&I.movementX**2+I.movementY**2<2)return;x.restTimeout.clear();function q(){if(x.restTimeoutPending=!1,N())return;const K=g.select("open");!x.blockMouseMove&&(!K||$)&&O()&&g.setOpen(!0,ke(it,_,M))}x.pointerType==="touch"?Dt.flushSync(()=>{q()}):$&&H?q():(x.restTimeoutPending=!0,x.restTimeout.start(U,q))}}},[n,x,N,D,s,g,C,O])}const Yb="Escape";function yl(e){return Xt&&e.movementX===0&&e.movementY===0}function Us(e,t,n){switch(e){case"vertical":return t;case"horizontal":return n;default:return t||n}}function Rr(e,t){return Us(t,e===Zu||e===xa,e===ws||e===Rs)}function Ri(e,t,n){return Us(t,e===xa,n?e===ws:e===Rs)||e==="Enter"||e===" "||e===""}function Xb(e,t,n){return Us(t,n?e===ws:e===Rs,e===xa)}function Kb(e,t,n,o){const r=n?e===Rs:e===ws,s=e===Zu;return t==="both"||t==="horizontal"&&o?e===Yb:Us(t,r,s)}function Wd(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:h=!0,disabledIndices:g=void 0,orientation:m="vertical",parentOrientation:b,id:v,resetOnPointerLeave:x=!0,externalTree:S,grid:w}=t,R=w!=null,C="rootStore"in e?e.rootStore:e,k=C.useState("open"),T=C.useState("floatingElement"),E=C.useState("domReferenceElement"),N=C.context.dataRef,O=es(T),D=Li(E),A=rt(O),P=Mn(),z=Tn(S),F=c.useRef(f),I=c.useRef(i??-1),_=c.useRef(null),M=c.useRef(!0),L=he(W=>{r(I.current===-1?null:I.current,W)}),H=c.useRef(!!T),$=c.useRef(k),U=c.useRef(!1),q=c.useRef(!1),V=c.useRef(null),X=rt(g),j=rt(k),K=rt(i),de=rt(x),se=$n(),ne=$n(),re=he(()=>{function W(ee){p?z==null||z.events.emit("virtualfocus",ee):V.current=Br(ee,{sync:U.current,preventScroll:!0})}const Q=n.current[I.current],fe=q.current;Q&&W(Q),(U.current?ee=>ee():ee=>se.request(ee))(()=>{var ye;const ee=n.current[I.current]||Q;if(!ee)return;Q||W(ee),J&&(fe||!M.current)&&((ye=ee.scrollIntoView)==null||ye.call(ee,{block:"nearest",inline:"nearest"}))})});pe(()=>{N.current.orientation=m},[N,m]),pe(()=>{s&&(k&&T?(I.current=i??-1,F.current&&i!=null&&(q.current=!0,L())):H.current&&(I.current=-1,L()))},[s,k,T,i,L]),pe(()=>{if(s){if(!k){U.current=!1;return}if(T)if(o==null){if(U.current=!1,K.current!=null)return;if(H.current&&(I.current=-1,re()),(!$.current||!H.current)&&F.current&&(_.current!=null||F.current===!0&&_.current==null)){let W=0;const Q=()=>{n.current[0]==null?(W<2&&(W?te=>ne.request(te):queueMicrotask)(Q),W+=1):(I.current=_.current==null||Ri(_.current,m,d)||u?jr(n):Vi(n),_.current=null,L())};Q()}}else Bo(n.current,o)||(I.current=o,re(),q.current=!1)}},[s,k,T,o,K,u,n,m,d,L,re,ne]),pe(()=>{var ee,me;if(!s||T||!z||p||!H.current)return;const W=z.nodesRef.current,Q=(me=(ee=W.find(ye=>ye.id===P))==null?void 0:ee.context)==null?void 0:me.elements.floating,fe=pt(Ie(E??Q??null)),te=W.some(ye=>ye.context&&ve(ye.context.elements.floating,fe));Q&&!te&&M.current&&Q.focus({preventScroll:!0})},[s,T,E,z,P,p]),pe(()=>{$.current=k,H.current=!!T}),pe(()=>{k||(_.current=null,F.current=f)},[k,f]);const G=o!=null,ie=he(W=>{if(!j.current)return;const Q=n.current.indexOf(W.currentTarget);Q!==-1&&(I.current!==Q||o!==Q)&&(I.current=Q,L(W))}),ge=he(()=>{var W,Q,fe;return b??((fe=(Q=(W=z==null?void 0:z.nodesRef.current.find(te=>te.id===P))==null?void 0:W.context)==null?void 0:Q.dataRef)==null?void 0:fe.current.orientation)}),ue=he(()=>jr(n,X.current)),Z=he(W=>{if(M.current=!1,U.current=!0,W.which===229||!j.current&&W.currentTarget===A.current)return;if(u&&Kb(W.key,m,d,R)){Rr(W.key,ge())||Ft(W),C.setOpen(!1,ke(Fi,W.nativeEvent)),Ye(E)&&(p?z==null||z.events.emit("virtualfocus",E):E.focus());return}const Q=I.current,fe=jr(n,g),te=Vi(n,g);if(D||(W.key==="Home"&&(Ft(W),I.current=fe,L(W)),W.key==="End"&&(Ft(W),I.current=te,L(W))),w!=null){const ee=w(W,I.current,n,m,l,d,g,fe,te);if(ee!=null&&(I.current=ee,L(W)),m==="both")return}if(Rr(W.key,m)){if(Ft(W),k&&!p&&pt(W.currentTarget.ownerDocument)===W.currentTarget){I.current=Ri(W.key,m,d)?fe:te,L(W);return}Ri(W.key,m,d)?l?Q>=te?a&&Q!==n.current.length?I.current=-1:(U.current=!1,I.current=fe):I.current=nn(n.current,{startingIndex:Q,disabledIndices:g}):I.current=Math.min(te,nn(n.current,{startingIndex:Q,disabledIndices:g})):l?Q<=fe?a&&Q!==-1?I.current=n.current.length:(U.current=!1,I.current=te):I.current=nn(n.current,{startingIndex:Q,decrement:!0,disabledIndices:g}):I.current=Math.max(fe,nn(n.current,{startingIndex:Q,decrement:!0,disabledIndices:g})),Bo(n.current,I.current)&&(I.current=-1),L(W)}}),J=c.useMemo(()=>({onFocus(Q){U.current=!0,ie(Q)},onClick:({currentTarget:Q})=>Q.focus({preventScroll:!0}),onMouseMove(Q){yl(Q)||(U.current=!0,q.current=!1,y&&ie(Q))},onPointerLeave(Q){var te;if(!j.current||!M.current||Q.pointerType==="touch")return;U.current=!0;const fe=Q.relatedTarget;if(!(!y||n.current.includes(fe))&&de.current&&((te=V.current)==null||te.call(V),V.current=null,I.current=-1,L(Q),!p)){const ee=A.current,me=pt(Ie(ee));ee&&ve(ee,me)&&ee.focus({preventScroll:!0})}}}),[ie,j,A,y,n,L,de,p]),ae=c.useMemo(()=>p&&k&&G&&{"aria-activedescendant":`${v}-${o}`},[p,k,G,v,o]),ce=c.useMemo(()=>({"aria-orientation":m==="both"?void 0:m,...D?{}:ae,onKeyDown(W){if(W.key==="Tab"&&W.shiftKey&&k&&!p){const Q=at(W.nativeEvent);if(Q&&!ve(A.current,Q))return;Ft(W),C.setOpen(!1,ke(xn,W.nativeEvent)),Ye(E)&&E.focus();return}Z(W)},onPointerMove(W){yl(W)||(M.current=!0)}}),[ae,Z,A,m,D,C,k,p,E]),oe=c.useMemo(()=>{function W(te){C.setOpen(!0,ke(Fi,te.nativeEvent,te.currentTarget))}function Q(te){f==="auto"&&ba(te.nativeEvent)&&(F.current=!p)}function fe(te){F.current=f,f==="auto"&&va(te.nativeEvent)&&(F.current=!0)}return{onKeyDown(te){const ee=C.select("open");M.current=!1;const me=te.key.startsWith("Arrow"),ye=Xb(te.key,ge(),d),De=Rr(te.key,m),Me=(u?ye:De)||te.key==="Enter"||te.key.trim()==="";if(p&&ee)return Z(te);if(!(!ee&&!h&&me)){if(Me){const qe=Rr(te.key,ge());_.current=u&&qe?null:te.key}if(u){ye&&(Ft(te),ee?(I.current=ue(),L(te)):W(te));return}De&&(K.current!=null&&(I.current=K.current),Ft(te),!ee&&h?W(te):Z(te),ee&&L(te))}},onFocus(te){C.select("open")&&!p&&(I.current=-1,L(te))},onPointerDown:fe,onPointerEnter:fe,onMouseDown:Q,onClick:Q}},[Z,f,ue,u,L,C,h,m,ge,d,K,p]),le=c.useMemo(()=>({...ae,...oe}),[ae,oe]);return c.useMemo(()=>s?{reference:le,floating:ce,item:J,trigger:oe}:{},[s,le,ce,oe,J])}function Ud(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=nt(),h=c.useRef(""),g=c.useRef(d??r??-1),m=c.useRef(null),b=he(S=>{function w(A){return o==null?void 0:o.current[A]}function R(A){const P=w(A);return P&&!Ms(P)||P!=null&&P.matches(":disabled")?!1:i==null||!ns(Vt,A,i)}function C(A,P,z=0){if(A.length===0)return-1;const F=(z%A.length+A.length)%A.length,I=P.toLowerCase();for(let _=0;_<A.length;_+=1){const M=(F+_)%A.length,L=A[M];if(!(!(L!=null&&L.toLowerCase().startsWith(I))||!R(M)))return M}return-1}const k=n.current;if(h.current.length>0&&S.key===" "&&(Ft(S),a==null||a(!0)),h.current.length>0&&h.current[0]!==" "&&C(k,h.current)===-1&&S.key!==" "&&(a==null||a(!1)),k==null||S.key.length!==1||S.ctrlKey||S.metaKey||S.altKey)return;f&&S.key!==" "&&(Ft(S),a==null||a(!0));const T=h.current==="";T&&(g.current=d??r??-1),k.every((A,P)=>{var z,F;return A&&R(P)?((z=A[0])==null?void 0:z.toLowerCase())!==((F=A[1])==null?void 0:F.toLowerCase()):!0})&&h.current===S.key&&(h.current="",g.current=m.current),h.current+=S.key,y.start(u,()=>{h.current="",g.current=m.current,a==null||a(!1)});const O=((T?d??r??-1:g.current)??0)+1,D=C(k,h.current,O);D!==-1?(s==null||s(D),m.current=D):S.key!==" "&&(h.current="",a==null||a(!1))}),v=he(S=>{const w=S.relatedTarget,R=p.select("domReferenceElement"),C=p.select("floatingElement");ve(R,w)||ve(C,w)||(y.clear(),h.current="",g.current=m.current,a==null||a(!1))});pe(()=>{!f&&d!==null||(y.clear(),m.current=null,h.current!==""&&(h.current=""))},[f,d,y]);const x=c.useMemo(()=>({onKeyDown:b,onBlur:v}),[b,v]);return c.useMemo(()=>l?{reference:x,floating:x}:{},[l,x])}const bl=.1,Zb=bl*bl,Ze=.5;function kr(e,t,n,o,r,s){return o>=t!=s>=t&&e<=(r-n)*(t-o)/(s-o)+n}function Cr(e,t,n,o,r,s,i,a,l,u){let d=!1;return kr(e,t,n,o,r,s)&&(d=!d),kr(e,t,r,s,i,a)&&(d=!d),kr(e,t,i,a,l,u)&&(d=!d),kr(e,t,l,u,n,o)&&(d=!d),d}function Qb(e,t,n){return e>=n.x&&e<=n.x+n.width&&t>=n.y&&t<=n.y+n.height}function Er(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 ja(e={}){const{blockPointerEvents:t=!1}=e,n=new _t,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,h=null,g=typeof performance<"u"?performance.now():0;function m(v,x){const S=performance.now(),w=S-g;if(y===null||h===null||w===0)return y=v,h=x,g=S,!1;const R=v-y,C=x-h,k=R*R+C*C,T=w*w*Zb;return y=v,h=x,g=S,k<T}function b(){n.clear(),l()}return function(x){n.clear();const S=a.domReference,w=a.floating;if(!S||!w||p==null||r==null||s==null)return;const{clientX:R,clientY:C}=x,k=at(x),T=x.type==="mouseleave",E=ve(w,k),N=ve(S,k);if(E&&(f=!0,!T))return;if(N&&(f=!1,!T)){f=!0;return}if(T&&Ne(x.relatedTarget)&&ve(w,x.relatedTarget))return;function O(){return!!(d&&kn(d.nodesRef.current,u).length>0)}function D(){O()||b()}if(O())return;const A=S.getBoundingClientRect(),P=w.getBoundingClientRect(),z=r>P.right-P.width/2,F=s>P.bottom-P.height/2,I=P.width>A.width,_=P.height>A.height,M=(I?A:P).left,L=(I?A:P).right,H=(_?A:P).top,$=(_?A:P).bottom;if(p==="top"&&s>=A.bottom-1||p==="bottom"&&s<=A.top+1||p==="left"&&r>=A.right-1||p==="right"&&r<=A.left+1){D();return}let U=!1;switch(p){case"top":U=Er(R,C,M,A.top+1,L,P.bottom-1);break;case"bottom":U=Er(R,C,M,P.top+1,L,A.bottom-1);break;case"left":U=Er(R,C,P.right-1,$,A.left+1,H);break;case"right":U=Er(R,C,A.right-1,$,P.left+1,H);break}if(U)return;if(f&&!Qb(R,C,A)){D();return}if(!T&&m(R,C)){D();return}let q=!1;switch(p){case"top":{const V=I?Ze/2:Ze*4,X=I||z?r+V:r-V,j=I?r-V:z?r+V:r-V,K=s+Ze+1,de=z||I?P.bottom-Ze:P.top,se=z?I?P.bottom-Ze:P.top:P.bottom-Ze;q=Cr(R,C,X,K,j,K,P.left,de,P.right,se);break}case"bottom":{const V=I?Ze/2:Ze*4,X=I||z?r+V:r-V,j=I?r-V:z?r+V:r-V,K=s-Ze,de=z||I?P.top+Ze:P.bottom,se=z?I?P.top+Ze:P.bottom:P.top+Ze;q=Cr(R,C,X,K,j,K,P.left,de,P.right,se);break}case"left":{const V=_?Ze/2:Ze*4,X=_||F?s+V:s-V,j=_?s-V:F?s+V:s-V,K=r+Ze+1,de=F||_?P.right-Ze:P.left,se=F?_?P.right-Ze:P.left:P.right-Ze;q=Cr(R,C,de,P.top,se,P.bottom,K,X,K,j);break}case"right":{const V=_?Ze/2:Ze*4,X=_||F?s+V:s-V,j=_?s-V:F?s+V:s-V,K=r-Ze,de=F||_?P.left+Ze:P.right,se=F?_?P.left+Ze:P.right:P.left+Ze;q=Cr(R,C,K,X,K,j,de,P.top,se,P.bottom);break}}q?f||n.start(40,D):D()}};return o.__options={...e,blockPointerEvents:t},o}const qd=c.createContext(void 0);function ar(e){const t=c.useContext(qd);if(t===void 0&&!e)throw new Error(We(47));return t}const Jb={...Bs,disabled:e=>e.disabled,instantType:e=>e.instantType,openMethod:e=>e.openMethod,openChangeReason:e=>e.openChangeReason,modal:e=>e.modal,focusManagerModal:e=>e.focusManagerModal,stickIfOpen:e=>e.stickIfOpen,titleElementId:e=>e.titleElementId,descriptionElementId:e=>e.descriptionElementId,openOnHover:e=>e.openOnHover,closeDelay:e=>e.closeDelay,adaptiveOrigin:e=>e.adaptiveOrigin};class ev extends ko{constructor(n,o,r){const s=new Co;super(tv(n,s,o,r),nv(s),Jb);Ue(this,"setOpen",(n,o)=>{var p,f;const r=o.reason===it,s=o.reason===$t&&o.event.detail===0,i=!n&&(o.reason===or||o.reason==null),a=_a(o),l=this.select("activeTriggerId");if(!n&&o.reason===ed&&o.trigger==null&&l!=null&&(o.trigger=this.context.triggerElements.getById(l)??this.select("activeTriggerElement")??void 0),(f=(p=this.context).onOpenChange)==null||f.call(p,n,o),o.isCanceled)return;this.state.floatingRootContext.dispatchOpenChange(n,o);const u=()=>{const y={open:n,openChangeReason:o.reason};Fs(y,n,o.trigger,a()),this.update(y)};r?(this.set("stickIfOpen",!0),this.context.stickIfOpenTimeout.start(bd,()=>{this.set("stickIfOpen",!1)}),Dt.flushSync(u)):u();let d;s?d="click":i?d="dismiss":o.reason===xn&&(d="focus"),this.set("instantType",d)})}}function tv(e,t,n,o=!1){const r={...js(),disabled:!1,modal:!1,focusManagerModal:!1,instantType:void 0,openMethod:null,openChangeReason:null,titleElementId:void 0,descriptionElementId:void 0,stickIfOpen:!0,openOnHover:!1,closeDelay:0,adaptiveOrigin:void 0,...e};return r.open&&(e==null?void 0:e.mounted)===void 0&&(r.mounted=!0),r.floatingRootContext=La(t,n,o),r}function nv(e){return{popupRef:c.createRef(),onOpenChange:void 0,onOpenChangeComplete:void 0,triggerFocusTargetRef:c.createRef(),beforeContentFocusGuardRef:c.createRef(),stickIfOpenTimeout:new _t,triggerElements:e}}function vl({props:e}){const{children:t,open:n,defaultOpen:o=!1,onOpenChange:r,onOpenChangeComplete:s,modal:i=!1,handle:a,triggerId:l,defaultTriggerId:u=null}=e,d=ov(a,{modal:i,open:o,openProp:n,activeTriggerId:u,triggerIdProp:l});d.useControlledProp("openProp",n),d.useControlledProp("triggerIdProp",l);const p=d.useState("open"),f=d.useState("mounted"),y=d.useState("payload");d.useContextCallback("onOpenChange",r),d.useContextCallback("onOpenChangeComplete",s),$d(d,p),Vs(d);const{forceUnmount:h}=$s(p,d,()=>{d.update({stickIfOpen:!0,openChangeReason:null})});d.useSyncedValues({modal:i}),c.useEffect(()=>{p||d.context.stickIfOpenTimeout.clear()},[d,p]),c.useImperativeHandle(e.actionsRef,()=>({unmount:h,close:()=>d.setOpen(!1,ke(Es))}),[h,d]);const g=p||f;return Y.jsxs(qd.Provider,{value:d,children:[a&&Y.jsx(Ls,{handle:a,store:d}),g&&Y.jsx(rv,{store:d,modal:i}),typeof t=="function"?t({payload:y}):t]})}function kE(e){return ar(!0)?Y.jsx(vl,{props:e}):Y.jsx(Pd,{children:Y.jsx(vl,{props:e})})}function ov(e,t){const n=Da((o,r)=>new ev(t,o,r));return c.useEffect(()=>n.context.stickIfOpenTimeout.disposeEffect(),[n]),n}function rv({store:e,modal:t}){const n=e.useState("floatingRootContext"),o=sr(n,{outsidePressEvent:{mouse:t==="trap-focus"?"sloppy":"intentional",touch:"sloppy"}}),r=o.reference,s=o.floating;return Hs(e,{activeTriggerProps:r,inactiveTriggerProps:r,popupProps:s}),null}let is=(function(e){return e.startingStyle="data-starting-style",e.endingStyle="data-ending-style",e})({});const sv={"data-starting-style":""},iv={"data-ending-style":""},Kt={transitionStatus(e){return e==="starting"?sv:e==="ending"?iv:null}};(function(e){return e.open="data-open",e.closed="data-closed",e[e.startingStyle=is.startingStyle]="startingStyle",e[e.endingStyle=is.endingStyle]="endingStyle",e.anchorHidden="data-anchor-hidden",e.side="data-side",e.align="data-align",e})({});const av={"data-popup-open":""},cv={"data-popup-open":"","data-pressed":""},lv={"data-open":""},uv={"data-closed":""},dv={"data-anchor-hidden":""},qs={open(e){return e?av:null}},Zo={open(e){return e?cv:null}},Gs={open(e){return e?lv:uv},anchorHidden(e){return e?dv:null}},Ys={...Gs,...Kt},fv=300;function st(e){return Cn(e,"base-ui")}function Gd(e,t){const n=c.useRef(null);function o(s){Dt.flushSync(()=>{e.setOpen(!1,ke(xn,s.nativeEvent,s.currentTarget))});const i=Ey(n.current);i==null||i.focus()}function r(s){var a;const i=e.select("positionerElement");if(i&&lo(s,i))(a=e.context.beforeContentFocusGuardRef.current)==null||a.focus();else{Dt.flushSync(()=>{e.setOpen(!1,ke(xn,s.nativeEvent,s.currentTarget))});let l=Cy(e.context.triggerFocusTargetRef.current||t.current);for(;l!==null&&ve(i,l);){const u=l;if(l=Ea(l),l===u)break}l==null||l.focus()}}return{preFocusGuardRef:n,handlePreFocusGuardFocus:o,handleFocusTargetFocus:r}}function pv(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 Eo(e,t){const n=c.useRef(e),o=he(t);pe(()=>{n.current!==e&&o(n.current),n.current=e},[e,o])}function Ba(e,t){const n=he((s,i)=>{(typeof e=="function"?e():e)||t(i||(Ss?"touch":""))}),{onClick:o,onPointerDown:r}=pv(n);return c.useMemo(()=>({onClick:o,onPointerDown:r}),[o,r])}function Yd(e){const[t,n]=c.useState(null),o=Ba(e,n);return Eo(e,r=>{r&&!e&&n(null)}),c.useMemo(()=>({openMethod:t,triggerProps:o}),[t,o])}const CE=c.forwardRef(function(t,n){const{render:o,className:r,style:s,disabled:i=!1,nativeButton:a=!0,handle:l,payload:u,openOnHover:d=!1,delay:p=fv,closeDelay:f=0,id:y,...h}=t,g=ar(!0),b=Ws(l)??g;if(!b)throw new Error(We(74));const v=st(y),x=b.useState("isTriggerActive",v),S=b.useState("floatingRootContext"),w=b.useState("isOpenedByTrigger",v),R=b.useState("triggerPopupId",v),C=c.useRef(null),{registerTrigger:k,isMountedByThisTrigger:T}=zs(v,C,b,{payload:u,disabled:i,openOnHover:d,closeDelay:f}),E=b.useState("openChangeReason"),N=b.useState("stickIfOpen"),O=b.useState("openMethod"),D=b.useState("focusManagerModal"),A=Ha(S,{enabled:!i&&d&&(O!=="touch"||E!==$t),mouseOnly:!0,move:!1,handleClose:ja(),restMs:p,delay:{close:f},triggerElementRef:C,isActiveTrigger:x,isClosing:()=>b.select("transitionStatus")==="ending"}),P=Os(S,{stickIfOpen:N}),z=Ba(()=>b.select("open"),X=>{b.set("openMethod",X)}),F=b.useState("triggerProps",T),{getButtonProps:I,buttonRef:_}=Mt({disabled:i,native:a}),M={open(X){return X&&E===$t?Zo.open(X):qs.open(X)}},{preFocusGuardRef:L,handlePreFocusGuardFocus:H,handleFocusTargetFocus:$}=Gd(b,C),q=Re("button",t,{state:{disabled:i,open:w},ref:[_,n,k,C],props:[P.reference,A,F,z,{[Pa]:"",id:v,"aria-haspopup":"dialog","aria-expanded":w,"aria-controls":R},h,I],stateAttributesMapping:M}),V=Y.jsx(c.Fragment,{children:q},v);return T&&!D?Y.jsxs(c.Fragment,{children:[Y.jsx(wn,{ref:L,onFocus:H}),V,Y.jsx(wn,{ref:b.context.triggerFocusTargetRef,onFocus:$})]}):V}),Xd=c.createContext(void 0);function hv(){const e=c.useContext(Xd);if(e===void 0)throw new Error(We(45));return e}const EE=c.forwardRef(function(t,n){const{keepMounted:o=!1,...r}=t;return ar().useState("mounted")||o?Y.jsx(Xd.Provider,{value:o,children:Y.jsx(Ts,{ref:n,...r})}):null});function cr(e){return fa(19)?e:e?"true":void 0}const Kd=c.createContext(void 0);function gv(){const e=c.useContext(Kd);if(!e)throw new Error(We(46));return e}const mv=c.createContext(void 0);function On(){const e=c.useContext(mv);return(e==null?void 0:e.direction)??"ltr"}const yv=e=>({name:"arrow",options:e,async fn(t){var _,M;const{x:n,y:o,placement:r,rects:s,platform:i,elements:a,middlewareData:l}=t,{element:u,padding:d=0,offsetParent:p="real"}=Rn(e,t)||{};if(u==null)return{};const f=id(d),y={x:n,y:o},h=ka(r),g=Ra(h),m=await i.getDimensions(u),b=h==="y",v=b?"top":"left",x=b?"bottom":"right",S=b?"clientHeight":"clientWidth",w=s.reference[g]+s.reference[h]-y[h]-s.floating[g],R=y[h]-s.reference[h],C=p==="real"?await((_=i.getOffsetParent)==null?void 0:_.call(i,u)):a.floating;let k=a.floating[S]||s.floating[g];(!k||!await((M=i.isElement)==null?void 0:M.call(i,C)))&&(k=a.floating[S]||s.floating[g]);const T=w/2-R/2,E=k/2-m[g]/2-1,N=Math.min(f[v],E),O=Math.min(f[x],E),D=N,A=k-m[g]-O,P=k/2-m[g]/2+T,z=sd(D,P,A),F=!l.arrow&&Pn(r)!=null&&P!==z&&s.reference[g]/2-(P<D?N:O)-m[g]/2<0,I=F?P<D?P-D:P-A:0;return{[h]:y[h]+I,data:{[h]:z,centerOffset:P-z-I,...F&&{alignmentOffset:I}},reset:F}}}),bv=(e,t)=>({...yv(e),options:[e,t]}),vv={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}}}},xv={sideX:"left",sideY:"top"},xl="--available-width",Sl="--available-height";function Zd(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 wl(e,t,n){const{rects:o,placement:r}=e;return{side:Zd(t,Nt(r),n),align:Pn(r)||"center",anchor:{width:o.reference.width,height:o.reference.height},positioner:{width:o.floating.width,height:o.floating.height}}}function Xs(e){return Sv(e,Ub)}function Sv(e,t){var Je,lt;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:h=!1,floatingRootContext:g,mounted:m,collisionAvoidance:b,shift:v,nodeId:x,adaptiveOrigin:S,lazyFlip:w=!1,externalTree:R}=e,[C,k]=c.useState(null);!m&&C!==null&&k(null);const T=b.side||"flip",E=b.align||"flip",N=b.fallbackAxisSide||"end",O=(v==null?void 0:v.crossAxis)??!1,D=v==null?void 0:v.rootBoundary,A=typeof n=="function"?n:void 0,P=he(A),z=A?P:n,F=rt(n),I=rt(m),M=On()==="rtl",L=C||{top:"top",right:"right",bottom:"bottom",left:"left","inline-end":M?"left":"right","inline-start":M?"right":"left"}[r],H=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,X=r==="right"?U:0,j=r==="left"?U:0,K={boundary:l==="clipping-ancestors"?"clippingAncestors":l,padding:$},de=c.useRef(null),se=rt(s),ne=rt(a),re=typeof s!="function"?s:0,G=typeof a!="function"?a:0,ie=[];y&&ie.push(y),ie.push(xb(Se=>{const Be=wl(Se,r,M),tt=typeof se.current=="function"?se.current(Be):se.current,ct=typeof ne.current=="function"?ne.current(Be):ne.current;return{mainAxis:tt,crossAxis:ct,alignmentAxis:ct}},[re,G,M,r]));const ge=E==="none"&&T!=="shift",ue=!ge&&(d||O||T==="shift"),Z=T==="none"?null:Rb({...K,padding:{top:$.top+U+q,right:$.right+U+j,bottom:$.bottom+U+V,left:$.left+U+X},mainAxis:!O&&T==="flip",crossAxis:E==="flip"?"alignment":!1,fallbackAxisSideDirection:N}),J=ge?null:Sb({...K,rootBoundary:D,mainAxis:E!=="none",crossAxis:ue,limiter:d||O?void 0:wb(Se=>{if(!de.current)return{};const{width:Be,height:tt}=de.current.getBoundingClientRect(),ct=At(Nt(Se.placement)),yt=ct==="y"?Be:tt,vt=ct==="y"?$.left+$.right:$.top+$.bottom;return{offset:yt/2+vt/2}})},[K,d,O,D,$,E]);T==="shift"||E==="shift"||i==="center"?ie.push(J,Z):ie.push(Z,J),ie.push(kb({...K,apply({elements:{floating:Se},availableWidth:Be,availableHeight:tt,rects:ct}){if(!I.current)return;const yt=Se.style;yt.setProperty(xl,`${Be}px`),yt.setProperty(Sl,`${tt}px`);const vt=Xe(Se).devicePixelRatio||1,{x:Oe,y:$e,width:Ge,height:Ce}=ct.reference,He=(Math.round((Oe+Ge)*vt)-Math.round(Oe*vt))/vt,dt=(Math.round(($e+Ce)*vt)-Math.round($e*vt))/vt;yt.setProperty("--anchor-width",`${He}px`),yt.setProperty("--anchor-height",`${dt}px`)}}),bv(Se=>({element:de.current||Ie(Se.elements.floating).createElement("div"),padding:p,offsetParent:"floating"}),[p]),{name:"transformOrigin",fn(Se){var wc,Rc,kc;const{elements:Be,middlewareData:tt,placement:ct,rects:yt,y:vt}=Se,Oe=Nt(ct),$e=At(Oe),Ge=de.current,Ce=((wc=tt.arrow)==null?void 0:wc.x)||0,He=((Rc=tt.arrow)==null?void 0:Rc.y)||0,dt=(Ge==null?void 0:Ge.clientWidth)||0,Lt=(Ge==null?void 0:Ge.clientHeight)||0,xt=Ce+dt/2,kt=He+Lt/2,fn=Math.abs(((kc=tt.shift)==null?void 0:kc.y)||0),Ao=yt.reference.height/2,Dn=typeof s=="function"?s(wl(Se,r,M)):s,mr=fn>Dn,ch={top:`${xt}px calc(100% + ${Dn}px)`,bottom:`${xt}px ${-Dn}px`,left:`calc(100% + ${Dn}px) ${kt}px`,right:`${-Dn}px ${kt}px`}[Oe],lh=`${xt}px ${yt.reference.y+Ao-vt}px`;return Be.floating.style.setProperty("--transform-origin",ue&&$e==="y"&&mr?lh:ch),{}}},vv,S),pe(()=>{!m&&g&&g.update({referenceElement:null,floatingElement:null,domReferenceElement:null,positionReference:null})},[m,g]);const ae=c.useMemo(()=>({elementResize:!f&&typeof ResizeObserver<"u",layoutShift:!f&&typeof IntersectionObserver<"u"}),[f]),{refs:ce,elements:oe,x:le,y:W,middlewareData:Q,update:fe,placement:te,context:ee,isPositioned:me,floatingStyles:ye}=t({rootContext:g,open:h?m:void 0,placement:H,middleware:ie,strategy:o,whileElementsMounted:h?void 0:(...Se)=>ul(...Se,ae),nodeId:x,externalTree:R}),{sideX:De,sideY:Me}=Q.adaptiveOrigin||xv,qe=me?o:"fixed",Le=c.useMemo(()=>{let Se;return me?S?Se={position:qe,[De]:le,[Me]:W}:Se={...ye,position:qe}:Se={position:qe,top:0,left:0},Se[xl]="100vw",Se[Sl]="100vh",me||(Se.opacity=0),Se},[S,qe,De,le,Me,W,ye,me]),ze=c.useRef(null);pe(()=>{if(!m)return;const Se=F.current,Be=typeof Se=="function"?Se():Se,ct=(Rl(Be)?Be.current:Be)||null||null;ct!==ze.current&&(ce.setPositionReference(ct),ze.current=ct)},[m,ce,z,F]),c.useEffect(()=>{if(!m)return;const Se=F.current;typeof Se!="function"&&Rl(Se)&&Se.current!==ze.current&&(ce.setPositionReference(Se.current),ze.current=Se.current)},[m,ce,z,F]),c.useEffect(()=>{if(h&&m&&oe.reference&&oe.floating)return ul(oe.reference,oe.floating,fe,ae)},[h,m,oe,fe,ae]);const et=Nt(te),Te=Zd(r,et,M),be=Pn(te)||"center",Ve=!!((Je=Q.hide)!=null&&Je.referenceHidden);pe(()=>{w&&m&&me&&et!==L&&k(et)},[w,m,me,et,L]);const Fe=c.useMemo(()=>{var Se,Be;return{position:"absolute",top:(Se=Q.arrow)==null?void 0:Se.y,left:(Be=Q.arrow)==null?void 0:Be.x}},[Q.arrow]),je=((lt=Q.arrow)==null?void 0:lt.centerOffset)!==0;return c.useMemo(()=>({positionerStyles:Le,arrowStyles:Fe,arrowRef:de,arrowUncentered:je,side:Te,align:be,physicalSide:et,anchorHidden:Ve,refs:ce,context:ee,isPositioned:me,update:fe}),[Le,Fe,de,je,Te,be,et,Ve,ce,ee,me,fe])}function Rl(e){return e!=null&&"current"in e}const Ks=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 Y.jsx("div",{ref:n,role:"presentation","data-base-ui-inert":"",...r,style:{position:"fixed",inset:0,userSelect:"none",WebkitUserSelect:"none",clipPath:s}})});function lr(e){return e==="starting"?Ay:Ke}function Zs(e,t,{styles:n,transitionStatus:o,props:r,refs:s,hidden:i,inert:a=!1}){const l={...n};return a&&(l.pointerEvents="none"),Re("div",e,{state:t,ref:s,props:[{role:"presentation",hidden:i,style:l},lr(o),r],stateAttributesMapping:Gs})}let kl={},Cl={},El="";function Qs(e,t){return nr(e)?e:t}function Pl(e,t,n){return/hidden|clip/.test(e.getComputedStyle(Qs(t,n)).overflowY)}function wv(e){if(typeof document>"u")return!1;const t=Ie(e);return Xe(t).innerWidth-t.documentElement.clientWidth>0}function Rv(e){if(!(typeof CSS<"u"&&CSS.supports&&CSS.supports("scrollbar-gutter","stable"))||typeof document>"u")return!1;const n=Ie(e),o=n.documentElement,r=n.body,s=Qs(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 kv(e){const t=Ie(e),n=t.documentElement,o=t.body,r=Qs(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 Cv(e){var y;const t=Ie(e),n=t.documentElement,o=t.body,r=Xe(n);let s=0,i=0,a=!1;const l=Ct.create();if(Xt&&(((y=r.visualViewport)==null?void 0:y.scale)??1)!==1)return()=>{};function u(){const h=r.getComputedStyle(n),g=r.getComputedStyle(o),v=(h.scrollbarGutter||"").includes("both-edges")?"stable both-edges":"stable";s=n.scrollTop,i=n.scrollLeft,kl={scrollbarGutter:n.style.scrollbarGutter,overflowY:n.style.overflowY,overflowX:n.style.overflowX},El=n.style.scrollBehavior,Cl={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 x=n.scrollHeight>n.clientHeight,S=n.scrollWidth>n.clientWidth,w=h.overflowY==="scroll"||g.overflowY==="scroll",R=h.overflowX==="scroll"||g.overflowX==="scroll",C=Math.max(0,r.innerWidth-o.clientWidth),k=Math.max(0,r.innerHeight-o.clientHeight),T=parseFloat(g.marginTop)+parseFloat(g.marginBottom),E=parseFloat(g.marginLeft)+parseFloat(g.marginRight),N=Qs(n,o);if(a=Rv(e),a){n.style.scrollbarGutter=v,N.style.overflowY="hidden",N.style.overflowX="hidden";return}Object.assign(n.style,{scrollbarGutter:v,overflowY:"hidden",overflowX:"hidden"}),(x||w)&&(n.style.overflowY="scroll"),(S||R)&&(n.style.overflowX="scroll"),Object.assign(o.style,{position:"relative",height:T||k?`calc(100dvh - ${T+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,kl),Object.assign(o.style,Cl),a||(n.scrollTop=s,n.scrollLeft=i,n.removeAttribute("data-base-ui-scroll-locked"),n.style.scrollBehavior=El)}function p(){d(),l.request(u)}u();const f=Ae(r,"resize",p);return()=>{l.cancel(),d(),typeof r.removeEventListener=="function"&&f()}}class Ev{constructor(){Ue(this,"lockCount",0);Ue(this,"restore",null);Ue(this,"timeoutLock",_t.create());Ue(this,"timeoutUnlock",_t.create());Ue(this,"release",()=>{this.lockCount-=1,this.lockCount===0&&this.restore&&this.timeoutUnlock.start(0,this.unlock)});Ue(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=Ie(t),o=n.documentElement,r=n.body,s=Xe(o);if(Pl(s,o,r)){const a=new s.MutationObserver(()=>{Pl(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=Ss||!wv(t);this.restore=i?kv(t):Cv(t)}}const Pv=new Ev;function Qd(e=!0,t=null){pe(()=>{if(e)return Pv.acquire(t)},[e,t])}const Mv=20;function Wa(e,t,n,o){const[r,s]=c.useState(!1);pe(()=>{if(!e||!t||n==null){s(!1);return}const i=Ie(n).documentElement.clientWidth,a=n.offsetWidth;s(i>0&&a>0&&a>=i-Mv)},[e,t,n]),Qd(e&&(!t||r),o)}const PE=c.forwardRef(function(t,n){const{render:o,className:r,style:s,anchor:i,positionMethod:a,side:l,align:u,sideOffset:d,alignOffset:p,collisionBoundary:f="clipping-ancestors",collisionPadding:y,arrowPadding:h,sticky:g,disableAnchorTracking:m=!1,collisionAvoidance:b=Ma,...v}=t,x=ar(),S=hv(),w=Ia(),R=x.useState("floatingRootContext"),C=x.useState("mounted"),k=x.useState("open"),T=x.useState("openChangeReason"),E=x.useState("activeTriggerElement"),N=x.useState("modal"),O=x.useState("openMethod"),D=x.useState("positionerElement"),A=x.useState("instantType"),P=x.useState("transitionStatus"),z=x.useState("adaptiveOrigin"),F=c.useRef(null),I=_s(D),_=Xs({anchor:i,floatingRootContext:R,positionMethod:a,mounted:C,side:l,sideOffset:d,align:u,alignOffset:p,arrowPadding:h,collisionBoundary:f,collisionPadding:y,sticky:g,disableAnchorTracking:m,keepMounted:S,nodeId:w,collisionAvoidance:b,adaptiveOrigin:z}),M=R.useState("domReferenceElement");pe(()=>{const q=M,V=F.current;if(q&&(F.current=q),V&&q&&q!==V){x.set("instantType",void 0);const X=new AbortController;return I(()=>{x.set("instantType","trigger-change")},X.signal),()=>{X.abort()}}},[M,I,x]);const L=N===!0&&T!==it;Wa(k&&L,O==="touch",D,E);const H=x.useStateSetter("positionerElement"),$={open:k,side:_.side,align:_.align,anchorHidden:_.anchorHidden,instant:A},U=Zs(t,$,{styles:_.positionerStyles,transitionStatus:P,props:v,refs:[n,H],hidden:!C,inert:!k});return Y.jsxs(Kd.Provider,{value:_,children:[C&&L&&Y.jsx(Ks,{inert:cr(!k),cutout:E}),Y.jsx(Ed,{id:w,children:U})]})}),as="ArrowUp",cs="ArrowDown",ls="ArrowLeft",us="ArrowRight",ds="Home",fs="End",Jd="PageUp",ef="PageDown",qn=new Set([as,cs,ls,us,ds,fs]),tf="Shift",Tv=[tf,"Control","Alt","Meta"];function Iv(e){return Ye(e)&&e.tagName==="INPUT"}function Ml(e){return!!(Iv(e)&&e.selectionStart!=null||Ye(e)&&e.tagName==="TEXTAREA")}function Tl(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=Il(e,t,"left"),u=Pr(e),d=Pr(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=Il(e,t,"top"),u=Pr(e),d=Pr(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 Il(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 Pr(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}}const Ov=c.createContext(void 0);function Js(e){return c.useContext(Ov)}const Av=c.createContext(void 0);function Nv(){const[e,t]=c.useState(0),n=he(()=>(t(r=>r+1),()=>{t(r=>Math.max(0,r-1))}));return{context:c.useMemo(()=>({register:n}),[n]),hasClosePart:e>0}}const ME=c.forwardRef(function(t,n){const{render:o,className:r,style:s,initialFocus:i,finalFocus:a,...l}=t,u=ar(),d=gv(),p=Js()!=null,{context:f,hasClosePart:y}=Nv(),h=u.useState("open"),g=u.useState("openMethod"),m=u.useState("instantType"),b=u.useState("transitionStatus"),v=u.useState("popupProps"),x=u.useState("titleElementId"),S=u.useState("descriptionElementId"),w=u.useState("modal"),R=u.useState("mounted"),C=u.useState("openChangeReason"),k=u.useState("activeTriggerElement"),T=u.useState("floatingRootContext"),E=T.useState("floatingId"),N=u.useState("disabled"),O=u.useState("openOnHover"),D=u.useState("closeDelay");It({open:h,ref:u.context.popupRef,onComplete(){var _,M;h&&((M=(_=u.context).onOpenChangeComplete)==null||M.call(_,!0))}}),$a(T,{enabled:O&&!N,closeDelay:D});const A=i===void 0?Vd(u.context.popupRef):i,P=w!==!1&&y;u.useSyncedValue("focusManagerModal",P);const z=u.useStateSetter("popupElement"),F={open:h,side:d.side,align:d.align,instant:m,transitionStatus:b},I=Re("div",t,{state:F,ref:[n,u.context.popupRef,z],props:[v,{id:E,role:"dialog",...ir,"aria-labelledby":x,"aria-describedby":S,onKeyDown(_){p&&qn.has(_.key)&&_.stopPropagation()}},lr(b),l],stateAttributesMapping:Ys});return Y.jsx(Is,{context:T,openInteractionType:g,modal:P,disabled:!R||C===it,initialFocus:A,returnFocus:a,restoreFocus:"popup",previousFocusableElement:Ye(k)?k:void 0,nextFocusableElement:u.context.triggerFocusTargetRef,beforeContentFocusGuardRef:u.context.beforeContentFocusGuardRef,children:Y.jsx(Av.Provider,{value:f,children:I})})});function Dv(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 Ol(e){const t=Pt(e);let n=parseFloat(t.width)||0,o=parseFloat(t.height)||0;const r=Ye(e),s=r?e.offsetWidth:n,i=r?e.offsetHeight:o;return(yo(n)!==s||yo(o)!==i)&&(n=s,o=i),{width:n,height:o}}const _v={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},Fv={disabled:!1,...Lv},Gn={valid(e){return e===null?null:e?{"data-valid":""}:{"data-invalid":""}}},Wi={checked(e){return e?{"data-checked":""}:{"data-unchecked":""}},...Kt,...Gn},Ua="data-composite-item-active",nf=c.createContext({register:()=>{},unregister:()=>{},subscribeMapChange:()=>()=>{},nextIndexRef:{current:0}});function zv(){return c.useContext(nf)}function ur(e={}){const{guess:t,label:n,metadata:o,textRef:r,index:s}=e,{register:i,unregister:a,subscribeMapChange:l,nextIndexRef:u}=zv(),d=c.useRef(-1),[p,f]=c.useState(s==null&&t?()=>{if(d.current===-1){const m=u.current;u.current+=1,d.current=m}return d.current}:-1),y=s??p,h=c.useRef(null),g=c.useCallback(m=>{const b=h.current;b&&a(b),h.current=m,m&&i(m,{metadata:o??null,index:s??null,label:n,textRef:r})},[s,i,a,o,n,r]);return pe(()=>{if(s==null)return l(m=>{var v;const b=h.current?(v=m.get(h.current))==null?void 0:v.index:null;b!=null&&f(b)})},[s,l]),{ref:g,index:y}}function of(e={}){const{highlightItemOnHover:t,highlightedIndex:n,onHighlightedIndexChange:o}=vs(),{ref:r,index:s}=ur(e),i=n===s,a=c.useRef(null),l=Tt(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 qa(e){const{render:t,className:n,style:o,state:r=Ke,props:s=Vt,refs:i=Vt,metadata:a,stateAttributesMapping:l,tag:u="div",...d}=e,{compositeProps:p,compositeRef:f}=of({metadata:a});return Re(u,e,{state:r,ref:[f,...i],props:[p,...s,d],stateAttributesMapping:l})}const Vv={invalid:void 0,name:void 0,validityData:{state:_v,errors:[],error:"",value:"",initialValue:null},setValidityData:ot,disabled:void 0,setTouched:ot,setDirty:ot,setFilled:ot,setFocused:ot,validationMode:"onSubmit",shouldValidateOnChange:()=>!1,state:Fv,registerFieldControl:ot,validation:{getValidationProps:(e,t=Ke)=>t,inputRef:{current:null},registeredInputs:new Map,registerInput:ot,getInputControl:()=>null,commit:async()=>{},change:ot}},$v=c.createContext(Vv);function Zt(e=!0){const t=c.useContext($v);if(t.setValidityData===ot&&!e)throw new Error(We(28));return t}const Hv=c.createContext({disabled:!1});function rf(){return c.useContext(Hv)}const jv=c.createContext({controlId:void 0,registerControlId:ot,labelId:void 0,setLabelId:ot,messageIds:[],setMessageIds:ot,getDescriptionProps:e=>e});function An(){return c.useContext(jv)}function Ga(e,t,n,o=!0,r){const[s,i]=c.useState(),a=st(r?`${r}-label`:void 0),l=e??t??s;return pe(()=>{const u=e||t||!o?void 0:Bv(n.current,a);s!==u&&i(u)}),l}function Bv(e,t){const n=Wv(e);if(n)return!n.id&&t&&(n.id=t),n.id||void 0}function Wv(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]}function Po(e={}){const{id:t,implicit:n=!1,controlRef:o}=e,{controlId:r,registerControlId:s}=An(),i=st(t),a=n?r:void 0,l=gt(()=>Symbol()),u=c.useRef(!1),d=c.useRef(t!=null),p=he(()=>{!u.current||s===ot||(u.current=!1,s(l.current,void 0))});return pe(()=>{if(s===ot)return;let f;if(n){const y=o==null?void 0:o.current;Ne(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 sf=c.createContext(void 0);function Uv(){return c.useContext(sf)}function ps(e){if(e==null)return"";if(typeof e=="string")return e;try{return JSON.stringify(e)}catch{return String(e)}}const af=c.createContext(void 0);function qv(){const e=c.useContext(af);if(e===void 0)throw new Error(We(52));return e}const TE=c.forwardRef(function(t,n){const{render:o,className:r,disabled:s=!1,readOnly:i=!1,required:a=!1,"aria-labelledby":l,value:u,inputRef:d,nativeButton:p=!1,id:f,style:y,...h}=t,g=Uv(),{disabled:m,readOnly:b,required:v,form:x,checkedValue:S,touched:w=!1,validation:R,name:C,setCheckedValue:k=ot,setTouched:T=ot,registerInputRef:E=ot}=g??{},{setTouched:N,setFilled:O,state:D,disabled:A}=Zt(),P=rf(),{labelId:z,getDescriptionProps:F}=An(),I=A||P.disabled||m||s,_=b||i,M=v||a,L=x,H=g?S===u:u==="",$=c.useRef(null),U=c.useRef(null),q=R==null?void 0:R.registerInput,V=c.useCallback(oe=>q==null?void 0:q(oe,{controlRef:$,value:void 0}),[q]),X=Tt(d,U,E,V);pe(()=>{var oe;(oe=U.current)!=null&&oe.checked&&O(!0)},[O]),pe(()=>{if(U.current){if(I&&H){E(null);return}E(U.current)}},[H,I,E]);const j=st(),K=Po({id:f,implicit:!1,controlRef:$}),de=p?void 0:K,se=Ga(l,z,U,!p,de),ne={role:"radio","aria-checked":H,"aria-labelledby":se,[Ua]:H?"":void 0,id:p?K:j,onKeyDown(oe){oe.key==="Enter"&&oe.preventDefault()},onClick(oe){if(oe.defaultPrevented||I||_)return;oe.preventDefault();const le=U.current;le&&zn(le,oe)},onFocus(oe){var le;oe.defaultPrevented||I||_||!w||((le=U.current)==null||le.click(),T(!1))}},{getButtonProps:re,buttonRef:G}=Mt({disabled:I,native:p,composite:!1}),ie={type:"radio",ref:X,form:L,id:de,name:C,tabIndex:-1,style:C?Ps:Sn,"aria-hidden":!0,...u!==void 0?{value:ps(u)}:Ke,disabled:I,checked:H,required:M,readOnly:_,onChange(oe){if(oe.nativeEvent.defaultPrevented||I||_||u===void 0)return;const le=ke(Rt,oe.nativeEvent);k(u,le),!le.isCanceled&&N(!0)},onClick(oe){oe.stopPropagation()},onFocus(){var oe;(oe=$.current)==null||oe.focus()}},ge=c.useMemo(()=>({...D,required:M,disabled:I,readOnly:_,checked:H}),[D,I,_,H,M]),ue=ge,Z=g!==void 0,J=[n,$,G],ae=[ne,h,re,F,R?oe=>R.getValidationProps(I,oe):Ke],ce=Re("span",t,{enabled:!Z,state:ge,ref:J,props:ae,stateAttributesMapping:Wi});return Y.jsxs(af.Provider,{value:ue,children:[Z?Y.jsx(qa,{tag:"span",render:o,className:r,style:y,state:ge,refs:J,props:ae,stateAttributesMapping:Wi}):ce,Y.jsx("input",{...ie,suppressHydrationWarning:!0})]})}),IE=c.forwardRef(function(t,n){const{render:o,className:r,style:s,keepMounted:i=!1,...a}=t,l=qv(),u=l.checked,{mounted:d,transitionStatus:p,setMounted:f}=In(u),y={...l,transitionStatus:p},h=c.useRef(null),g=i||d,m=Re("span",t,{ref:[n,h],state:y,props:a,stateAttributesMapping:Wi});return It({open:u,ref:h,onComplete(){u||f(!1)}}),g?m:null});function Ht({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]}function dr(e){const{children:t,elementsRef:n,labelsRef:o,onMapChange:r}=e,s=he(r),[,i]=c.useState(!1),a=gt(Yv).current,l=gt(Gv).current,u=c.useRef(0),d=c.useRef(!0),p=c.useRef([]),f=c.useRef(null),y=he(()=>{d.current||(d.current=!0,i(w=>!w))}),h=he((w,R)=>{l.set(w,R),y()}),g=he(w=>{l.delete(w),y()}),m=he(w=>{const R=new Map;return n.current.length=0,o&&(o.current.length=0),w.forEach(C=>{var k,T;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:((T=(k=C.registration.textRef)==null?void 0:k.current)==null?void 0:T.textContent)??C.element.textContent)}),u.current=n.current.length,R});function b(w){var k;if((k=f.current)==null||k.disconnect(),f.current=null,typeof MutationObserver!="function"||w.length<2)return;const R=new MutationObserver(T=>{if(!Zv(T))return;let E=null;for(const N of w)if(N.isConnected){if(E&&cf(E,N)>0){R.disconnect(),y();return}E=N}});f.current=R;const C=new Set;for(let T=1;T<w.length;T+=1){const E=Kv(w[T-1],w[T]);E&&C.add(E)}C.forEach(T=>R.observe(T,{childList:!0}))}const v=he(()=>{const[w,R]=Xv(l),C=m(w);b(R),p.current=w,d.current=!1,a.forEach(k=>k(C)),s(C)});pe(()=>(d.current||m(p.current),()=>{n.current=[],o&&(o.current=[])}),[n,o,m]),pe(()=>{d.current&&v()}),pe(()=>()=>{var w;(w=f.current)==null||w.disconnect(),d.current=!0},[]);const x=he(w=>(a.add(w),()=>{a.delete(w)})),S=c.useMemo(()=>({register:h,unregister:g,subscribeMapChange:x,nextIndexRef:u}),[h,g,x,u]);return Y.jsx(nf.Provider,{value:S,children:t})}function Gv(){return new Map}function Yv(){return new Set}function Xv(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)=>cf(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 Kv(e,t){let n=e.parentElement;for(;n&&!n.contains(t);)n=n.parentElement;return n}function Zv(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 cf(e,t){return e.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_FOLLOWING?-1:1}function lf(e){return e==null||e.hasAttribute("disabled")||e.getAttribute("aria-disabled")==="true"}const Qv=[];function Jv(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=Qv}=e,[y,h]=c.useState(0),g=o!=null,m=c.useRef(null),b=Tt(m,l),v=c.useRef([]),x=c.useRef(!1),S=i??y,w=he((E,N=!1)=>{if((a??h)(E),N){const O=v.current[E];Tl(m.current,O,s,n)}}),R=he(E=>{var A;if(E.size===0||x.current)return;x.current=!0;const N=Array.from(E.keys()),O=N.find(P=>P==null?void 0:P.hasAttribute(Ua))??null,D=O?((A=E.get(O))==null?void 0:A.index)??-1:-1;if(D!==-1)w(D);else if(ns(N,S,p)){const P=nn(N,{disabledIndices:p});Bo(N,P)||w(P)}Tl(m.current,O,s,n)});pe(()=>{if(p==null||i!=null||!x.current)return;const E=v.current;if(ns(E,S,p)){const N=nn(E,{disabledIndices:p});Bo(E,N)||w(N)}},[p,i,S,v,w]);const C=he((E,N,O)=>r?r(E,N,O,v):O),k=he(E=>{const N=E.key===ds||E.key===fs;if(!qn.has(E.key)||!u&&N||ex(E,f)||!m.current)return;const D=s==="rtl",A=D?ls:us,P=D?us:ls,z=n==="vertical"?cs:A,F=n==="vertical"?as:P,I=at(E.nativeEvent);if(I!=null&&Ml(I)&&!lf(I)){const U=I.selectionStart,q=I.selectionEnd,V=I.value;if(U==null||E.shiftKey||U!==q||E.key!==F&&U<V.length||E.key!==z&&U>0)return}let _=S;const M=jr(v,p),L=Vi(v,p);o!=null&&(_=o({disabledIndices:p,elementsRef:v,event:E,highlightedIndex:S,loopFocus:t,maxIndex:L,minIndex:M,onLoop:C,orientation:n,rtl:D}));const H=n!=="vertical"&&E.key===A||n!=="horizontal"&&E.key===cs,$=n!=="vertical"&&E.key===P||n!=="horizontal"&&E.key===as;u&&(E.key===ds?_=M:E.key===fs&&(_=L)),_===S&&(H||$)&&(t&&_===L&&H?(_=M,r&&(_=r(E,S,_,v))):t&&_===M&&$?(_=L,r&&(_=r(E,S,_,v))):_=nn(v.current,{startingIndex:_,decrement:$,disabledIndices:p})),_!==S&&!Bo(v.current,_)&&(d&&E.stopPropagation(),(g||N||H||$)&&E.preventDefault(),w(_,!0),queueMicrotask(()=>{var U;(U=v.current[_])==null||U.focus()}))});return{props:{ref:b,onFocus(E){const N=m.current,O=at(E.nativeEvent);!N||O==null||!Ml(O)||O.setSelectionRange(0,O.value.length)},onKeyDown:k},highlightedIndex:S,onHighlightedIndexChange:w,elementsRef:v,onMapChange:R,relayKeyboardEvent:k}}function ex(e,t){for(const n of Tv)if(!t.includes(n)&&e.getModifierState(n))return!0;return!1}function Ya(e){const{render:t,className:n,style:o,refs:r=Vt,props:s=Vt,state:i=Ke,stateAttributesMapping:a,highlightedIndex:l,onHighlightedIndexChange:u,orientation:d,grid:p,loopFocus:f,onLoop:y,enableHomeAndEndKeys:h,onMapChange:g,stopEventPropagation:m=!0,rootRef:b,disabledIndices:v,modifierKeys:x,highlightItemOnHover:S=!1,tag:w="div",...R}=e,C=On(),{props:k,highlightedIndex:T,onHighlightedIndexChange:E,elementsRef:N,onMapChange:O,relayKeyboardEvent:D}=Jv({grid:p,loopFocus:f,onLoop:y,orientation:d,highlightedIndex:l,onHighlightedIndexChange:u,rootRef:b,stopEventPropagation:m,enableHomeAndEndKeys:h,direction:C,disabledIndices:v,modifierKeys:x}),A=Re(w,e,{state:i,ref:r,props:[k,...s,R],stateAttributesMapping:a}),P=c.useMemo(()=>({highlightedIndex:T,onHighlightedIndexChange:E,highlightItemOnHover:S,relayKeyboardEvent:D}),[T,E,S,D]);return Y.jsx(Ou.Provider,{value:P,children:Y.jsx(dr,{elementsRef:N,onMapChange:z=>{g==null||g(z),O(z)},children:A})})}function Mo(e,t,n,o,r=!0,s){const{registerFieldControl:i}=Zt(),a=gt(()=>Symbol());pe(()=>{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]),pe(()=>{const l=a.current;return()=>{i(l,void 0)}},[i,a])}const tx=c.createContext({elementRef:{current:null},formRef:{current:{fields:new Map}},errors:{},clearErrors:ot,validationMode:"onSubmit",submitAttemptedRef:{current:!1}});function To(){return c.useContext(tx)}function nx(e,t){return e.matches(":disabled")?!1:!t||e.form===t?!0:e.form===null&&!e.hasAttribute("form")}const ox=c.createContext(void 0);function rx(e=!1){const t=c.useContext(ox);if(!t&&!e)throw new Error(We(86));return t}const sx=[tf],OE=c.forwardRef(function(t,n){const{render:o,className:r,disabled:s,readOnly:i,required:a,onValueChange:l,value:u,defaultValue:d,form:p,name:f,inputRef:y,id:h,style:g,...m}=t,{setTouched:b,setFocused:v,validationMode:x,name:S,disabled:w,state:R,validation:C,setDirty:k,setFilled:T,validityData:E}=Zt(),{labelId:N}=An(),{clearErrors:O,elementRef:D}=To(),A=rx(!0),P=w||s,z=S??f,F=st(h),[I,_]=Ht({controlled:u,default:d,name:"RadioGroup",state:"value"}),[M,L]=c.useState(!1),H=he((G,ie)=>{l==null||l(G,ie),!ie.isCanceled&&_(G)}),$=C.getInputControl,U=c.useMemo(()=>({get current(){return $()}}),[$]),q=c.useRef(null),V=c.useRef(null);function X(G){let ie;return y&&(typeof y=="function"?ie=y(G):y.current=G),q.current=G,ie}const j=he(G=>{if(!G||G.disabled)return;V.current||(V.current=G);const ie=q.current,ge=G.checked||ie==null||ie.disabled?X(G):void 0;return()=>{V.current===G&&(V.current=null),q.current===G?ge?(ge(),q.current=null):X(null):ge==null||ge()}}),K=he(()=>{const G=D.current;if(!G)return I??null;for(const ie of C.registeredInputs.keys())if(ie.checked&&nx(ie,G))return I??null;return null});Mo(U,F,I??null,K,!P,f),Eo(I,()=>{O(z),k(I!==E.initialValue),T(I!=null),C.change(I);const G=V.current;I==null&&G&&!G.disabled&&X(G)});const de=N??(A==null?void 0:A.legendId),se={...R,disabled:P??!1,required:a??!1,readOnly:i??!1},ne=c.useMemo(()=>({checkedValue:I,disabled:P,form:p,validation:C,name:z,readOnly:i,registerInputRef:j,required:a,setCheckedValue:H,setTouched:L,touched:M}),[I,P,p,C,z,i,j,a,H,L,M]),re={id:h,role:"radiogroup","aria-required":a||void 0,"aria-disabled":P||void 0,"aria-readonly":i||void 0,"aria-labelledby":de,onFocus(){v(!0)},onBlur(G){ve(G.currentTarget,G.relatedTarget)||(b(!0),v(!1),x==="onBlur"&&C.commit(I))},onKeyDownCapture(G){G.key.startsWith("Arrow")&&(L(!0),v(!0))}};return Y.jsx(sf.Provider,{value:ne,children:Y.jsx(Ya,{render:o,className:r,style:g,state:se,props:[re,m,G=>C.getValidationProps(P??!1,G)],refs:[n],stateAttributesMapping:Gn,enableHomeAndEndKeys:!1,modifierKeys:sx})})}),uf=c.createContext(void 0);function ix(){return c.useContext(uf)}const AE=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,...h}=t,g=st(p||void 0),m=ix(),b=(m==null?void 0:m.value)??[],v=m?void 0:r,x=(s||(m==null?void 0:m.disabled))??!1,[S,w]=Ht({controlled:m?g!==void 0&&b.indexOf(g)>-1:l,default:v,name:"Toggle",state:"pressed"}),{getButtonProps:R,buttonRef:C}=Mt({disabled:x,native:f}),k={disabled:x,pressed:S},T=[C,n],E=[{"aria-pressed":S,onClick(D){var z;const A=!S,P=ke(Rt,D.nativeEvent);a==null||a(A,P),!P.isCanceled&&(g&&((z=m==null?void 0:m.setGroupValue)==null||z.call(m,g,A,P)),!P.isCanceled&&w(A))}},h,R],N=Re("button",t,{enabled:!m,state:k,ref:T,props:E}),O=c.useMemo(()=>({disabled:x,focusableWhenDisabled:!1}),[x]);return m?Y.jsx(qa,{tag:"button",render:u,className:o,style:y,metadata:O,state:k,refs:T,props:E}):N});function ut(e,t=Number.MIN_SAFE_INTEGER,n=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,n))}function Xa(e,t,n=(o,r)=>o===r){return e.length===t.length&&e.every((o,r)=>n(o,t[r]))}function ax(e){return e==null?void 0:`${e}-label`}function df(e,t){return e??t}function ff(e,t){return e-t}function pf(e,t,n,o,r,s){const i=ut(e,n,o);if(!r)return i;const a=s.slice();return a[t]=ut(i,s[t-1]??-1/0,s[t+1]??1/0),a.sort(ff)}function hf(e,t,n){if(!Array.isArray(e))return!0;const o=t*n;for(let r=0;r<e.length-1;r+=1)if(!(Math.abs(e[r]-e[r+1])>=o))return!1;return!0}const Qn=()=>null,fr={activeThumbIndex:Qn,max:Qn,min:Qn,minStepsBetweenValues:Qn,step:Qn,values:Qn,...Gn},gf=c.createContext(void 0);function ei(){const e=c.useContext(gf);if(e===void 0)throw new Error(We(62));return e}function cx(e,t){return e===t||Array.isArray(e)&&Array.isArray(t)&&Xa(e,t)}const NE=c.forwardRef(function(t,n){const{"aria-labelledby":o,className:r,defaultValue:s,disabled:i=!1,id:a,format:l,largeStep:u=10,locale:d,render:p,max:f=100,min:y=0,minStepsBetweenValues:h=0,form:g,name:m,onValueChange:b,onValueCommitted:v,orientation:x="horizontal",step:S=1,thumbCollisionBehavior:w="push",thumbAlignment:R="center",value:C,style:k,...T}=t,E=st(a),N=ax(E),O=he(b),D=he(v),{clearErrors:A}=To(),{state:P,disabled:z,name:F,setTouched:I,setDirty:_,validityData:M,validation:L}=Zt(),{labelId:H}=An(),[$,U]=c.useState(),q=o??df(H,$),V=z||i,X=F??m,[j,K]=Ht({controlled:C,default:s??y,name:"Slider"}),de=c.useRef(null),se=c.useRef(null),ne=c.useRef([]),re=c.useRef(null),G=c.useRef(-1),ie=c.useRef(null),ge=c.useRef(Rt),[ue,Z]=c.useState(-1),[J,ae]=c.useState(-1),[ce,oe]=c.useState(!1),[le,W]=c.useState(()=>new Map),[Q,fe]=c.useState([void 0,void 0]),te=he(Te=>{Z(Te),Te!==-1&&ae(Te)}),ee=he(Te=>{Te&&(se.current=Te)}),me=Array.isArray(j),ye=c.useMemo(()=>me?j.map(Te=>ut(Te,y,f)).sort(ff):[ut(j,y,f)],[f,y,me,j]),De=me?ye:ye[0];Mo(L.inputRef,E,De,void 0,!V,m),Eo(De,()=>{A(X),L.change(De);const Te=M.initialValue;let be;Array.isArray(De)&&Array.isArray(Te)?be=!Xa(De,Te):be=De!==Te,_(be)});const Me=he((Te,be)=>{if(Number.isNaN(Te)||cx(Te,j))return!1;const Ve=be.event,Fe=Ve.constructor,je=new Fe(Ve.type,Ve);return Object.defineProperty(je,"target",{writable:!0,value:{value:Te,name:X}}),be.event=je,O(Te,be),be.isCanceled?!1:(ge.current=be.reason,K(Te),!0)}),qe=he((Te,be,Ve)=>{const Fe=pf(Te,be,y,f,me,ye);if(hf(Fe,S,h)){const je="key"in Ve?oy:ny,Je=Me(Fe,ke(je,Ve.nativeEvent,void 0,{activeThumbIndex:be}));I(!0),Je&&D(Fe,nd(je,Ve.nativeEvent))}});pe(()=>{if(!V)return;const Te=pt(Ie(de.current));ve(de.current,Te)&&Te.blur(),ue!==-1&&te(-1)},[ue,V,te]);const Le=c.useMemo(()=>({...P,activeThumbIndex:ue,disabled:V,dragging:ce,orientation:x,max:f,min:y,minStepsBetweenValues:h,step:S,values:ye}),[P,ue,V,ce,f,y,h,x,S,ye]),ze=c.useMemo(()=>({active:ue,controlRef:se,disabled:V,dragging:ce,validation:L,format:l,handleInputChange:qe,indicatorPosition:Q,inset:R!=="center",labelId:q,rootLabelId:N,largeStep:u,lastUsedThumbIndex:J,lastChangeReasonRef:ge,form:g,locale:d,max:f,min:y,minStepsBetweenValues:h,name:X,onValueCommitted:D,orientation:x,pressedThumbCenterOffsetRef:re,pressedThumbIndexRef:G,pressedValuesRef:ie,registerFieldControlRef:ee,renderBeforeHydration:R==="edge",setActive:te,setDragging:oe,setIndicatorPosition:fe,setLabelId:U,setValue:Me,state:Le,step:S,thumbCollisionBehavior:w,thumbMap:le,thumbRefs:ne,values:ye}),[ue,q,N,V,ce,L,l,qe,Q,u,J,g,d,f,y,h,X,D,x,ee,te,Me,Le,S,w,R,le,ye]),et=Re("div",t,{state:Le,ref:[n,de],props:[{"aria-labelledby":q,id:E,role:"group"},T,Te=>L.getValidationProps(V,Te)],stateAttributesMapping:fr});return Y.jsx(gf.Provider,{value:ze,children:Y.jsx(dr,{elementsRef:ne,onMapChange:W,children:et})})});function lx(e,t){const n=st(e);return pe(()=>(t(n),()=>{t(o=>o===n?void 0:o)}),[n,t]),n}function mf(e){return Array.isArray(e)?e.map(t=>mf(t)).join(","):e==null?"":String(e)}const Al=new Map;function ux(e,t){const n=JSON.stringify({locale:mf(e),options:t}),o=Al.get(n);if(o)return o;const r=new Intl.NumberFormat(e,t);return Al.set(n,r),r}function Qo(e,t,n){return e==null?"":ux(t,n).format(e)}function yf(e,t){const n=e.getBoundingClientRect();return t?(n.top+n.bottom)/2:(n.left+n.right)/2}function Uo(e){if(e===0)return 0;if(Math.abs(e)<1){const n=e.toExponential().split("e-"),o=n[0].split(".")[1];return(o?o.length:0)+parseInt(n[1],10)}const t=e.toString().split(".")[1];return t?t.length:0}function bf(e,t,n){const o=Math.round((e-n)/t)*t+n;return Number(o.toFixed(Math.max(Uo(t),Uo(n))))}function Nl(e,t,n,o,r,s,i,a){const l=e.slice(),u=s*i,d=l.length-1,p=a??e,f=o+t*u,y=r-(d-t)*u;l[t]=ut(n,f,y);for(let h=t+1;h<=d;h+=1){const g=l[h-1]+u,m=r-(d-h)*u,b=p[h];let v=Math.max(l[h],g);b<v&&(v=Math.max(b,g)),l[h]=ut(v,g,m)}for(let h=t-1;h>=0;h-=1){const g=l[h+1]-u,m=o+h*u,b=p[h];let v=Math.min(l[h],g);b>v&&(v=Math.min(b,g)),l[h]=ut(v,m,g)}for(let h=0;h<=d;h+=1)l[h]=Number(l[h].toFixed(12));return l}function dx(e,t,n,o,r,s,i,a,l,u){const d=n??t,p=o??t;if(!(d.length>1))return{value:s,thumbIndex:0,didSwap:!1};const y=l*u;if(e==="push")return{value:Nl(d,r,s,i,a,l,u),thumbIndex:r,didSwap:!1};const h=d.slice(),g=h[r-1],m=h[r+1],b=g!=null?g+y:i,v=m!=null?m-y:a,x=Number(ut(s,b,v).toFixed(12));switch(h[r]=x,e){case"swap":{const S=d[r],w=1e-7,R=s>S,C=s<S,k=R&&m!=null&&s>=m-w,T=C&&g!=null&&s<=g+w;if(!k&&!T)return{value:h,thumbIndex:r,didSwap:!1};const E=k?r+1:r-1,N=h.map((M,L)=>{if(L===r)return x;const H=p[L];return H??d[L]});let O=s;k?O=Math.max(s,h[E]):O=Math.min(s,h[E]);const D=Nl(h,E,O,i,a,l,u,N),A=k?E-1:E+1,P=D[A-1],z=D[A+1];let F=P!=null?P+y:i;F=Math.max(F,i+A*y);let I=z!=null?z-y:a;I=Math.min(I,a-(D.length-1-A)*y);const _=ut(x,F,I);return D[A]=Number(_.toFixed(12)),{value:D,thumbIndex:E,didSwap:!0}}case"none":default:return{value:h,thumbIndex:r,didSwap:!1}}}const fx=2;function px(e,t){if(!e)return{start:0,end:0};function n(s){const i=s!=null?parseFloat(s):0;return Number.isNaN(i)?0:i}const o=t?"Top":"InlineStart",r=t?"Bottom":"InlineEnd";return{start:n(e[`border${o}Width`])+n(e[`padding${o}`]),end:n(e[`border${r}Width`])+n(e[`padding${r}`])}}function hx(e,t){if(t.current!=null&&e.changedTouches){const n=e;for(let o=0;o<n.changedTouches.length;o+=1){const r=n.changedTouches[o];if(r.identifier===t.current)return{x:r.clientX,y:r.clientY}}return null}return{x:e.clientX,y:e.clientY}}const DE=c.forwardRef(function(t,n){const{render:o,className:r,style:s,...i}=t,{disabled:a,dragging:l,inset:u,lastChangeReasonRef:d,max:p,min:f,minStepsBetweenValues:y,onValueCommitted:h,orientation:g,pressedThumbCenterOffsetRef:m,pressedThumbIndexRef:b,pressedValuesRef:v,registerFieldControlRef:x,renderBeforeHydration:S,setActive:w,setDragging:R,setValue:C,state:k,step:T,thumbCollisionBehavior:E,thumbRefs:N,values:O}=ei(),D=On(),A=O.length>1,P=g==="vertical",z=c.useRef(null),F=c.useRef(null),I=he(Z=>{Z&&F.current==null&&(F.current=Xe(Z).getComputedStyle(Z))}),_=c.useRef(null),M=c.useRef(0),L=c.useRef(0),H=c.useRef(null),$=rt(O);function U(Z){return Z==null?void 0:Z.querySelector('input[type="range"]')}function q(Z){b.current=Z,N.current[Z]||(m.current=null)}function V(){b.current=-1,m.current=null}function X(Z){return Ne(Z)?N.current.some(J=>{var ae;return!Ne(J)||!ve(J,Z)?!1:((ae=U(J))==null?void 0:ae.disabled)===!0}):!1}function j(Z){const J=z.current,ae=b.current;if(!J||ae<0||ae>=O.length)return ae>=O.length&&(H.current=null),null;const{width:ce,height:oe,bottom:le,left:W,right:Q}=J.getBoundingClientRect(),fe=px(F.current,P),te=L.current,ee=(P?oe:ce)-fe.start-fe.end-te*2,me=m.current??0,ye=Z.x-me,De=Z.y-me,Me=P?le-De-fe.end:(D==="rtl"?Q-ye:ye-W)-fe.start,qe=ut((Me-te)/ee,0,1);let Le=(p-f)*qe+f;return Le=bf(Le,T,f),Le=ut(Le,f,p),A?dx(E,O,$.current,v.current,ae,Le,f,p,T,y):{value:Le,thumbIndex:ae,didSwap:!1}}function K(Z){var ce;v.current=A?O.slice():null,H.current=null,$.current=O;const J=b.current;let ae=J;if(J>-1&&J<O.length){if(O[J]===p){let oe=J;for(;oe>0&&O[oe-1]===p;)oe-=1;ae=oe}}else{const oe=P?"y":"x";let le;ae=-1;for(let W=0;W<N.current.length;W+=1){const Q=N.current[W];if(Ne(Q)&&!((ce=U(Q))!=null&&ce.disabled)){const fe=yf(Q,P),te=Math.abs(Z[oe]-fe);(le===void 0||te<=le)&&(ae=W,le=te)}}}if(ae>-1&&ae!==J&&q(ae),u){const oe=N.current[ae];if(Ne(oe)){const le=oe.getBoundingClientRect(),W=P?"height":"width";L.current=le[W]/2}}}function de(Z){var ae;const J=U((ae=N.current)==null?void 0:ae[Z]);J&&J.focus({preventScroll:!0,focusVisible:!1})}function se(Z,J,ae){const ce=C(Z.value,ke(J,ae,void 0,{activeThumbIndex:Z.thumbIndex}));return ce&&(H.current=Z.value,$.current=Array.isArray(Z.value)?Z.value:[Z.value],Z.didSwap&&(q(Z.thumbIndex),de(Z.thumbIndex))),ce}const ne=he(Z=>{const J=hx(Z,_);if(J==null)return;if(M.current+=1,Z.type==="pointermove"&&Z.buttons===0){re(Z);return}const ae=j(J);ae!=null&&hf(ae.value,T,y)&&(!l&&M.current>fx&&R(!0),se(ae,ry,Z))}),re=he(Z=>{var ae,ce;w(-1),R(!1),m.current=null;const J=H.current;if(Array.isArray(J)&&J.length!==O.length&&(H.current=null),H.current!=null){const oe=d.current;h(H.current,nd(oe,Z))}"pointerType"in Z&&((ae=z.current)!=null&&ae.hasPointerCapture(Z.pointerId))&&((ce=z.current)==null||ce.releasePointerCapture(Z.pointerId)),b.current=-1,_.current=null,ie()}),G=he(Z=>{if(a)return;if(X(at(Z))){V();return}const J=Z.changedTouches[0];if(J==null)return;_.current=J.identifier;const ae={x:J.clientX,y:J.clientY};K(ae);const ce=j(ae);if(ce==null)return;de(ce.thumbIndex),se(ce,jc,Z),M.current=0;const oe=Ie(z.current);oe.addEventListener("touchmove",ne,{passive:!0}),oe.addEventListener("touchend",re,{passive:!0})}),ie=he(()=>{const Z=Ie(z.current);Z.removeEventListener("pointermove",ne),Z.removeEventListener("pointerup",re),Z.removeEventListener("touchmove",ne),Z.removeEventListener("touchend",re),v.current=null,H.current=null}),ge=$n();return c.useEffect(()=>{const Z=z.current;if(!Z)return()=>ie();const J=Ae(Z,"touchstart",G,{passive:!0});return()=>{J(),ge.cancel(),ie()}},[ie,G,z,ge]),c.useEffect(()=>{a&&ie()},[a,ie]),Re("div",t,{state:k,ref:[n,x,z,I],props:[{"data-base-ui-slider-control":S?"":void 0,onPointerDown(Z){const J=z.current,ae=at(Z.nativeEvent);if(!J||a||Z.defaultPrevented||!Ne(ae)||Z.button!==0)return;if(X(ae)){V();return}const ce={x:Z.clientX,y:Z.clientY};K(ce);const oe=j(ce);if(oe==null)return;ve(N.current[oe.thumbIndex],pt(Ie(J)))?Z.preventDefault():ge.request(()=>{de(oe.thumbIndex)}),R(!0),m.current!=null||se(oe,jc,Z.nativeEvent),Z.nativeEvent.pointerId&&J.setPointerCapture(Z.nativeEvent.pointerId),M.current=0;const Q=Ie(J);Q.addEventListener("pointermove",ne,{passive:!0}),Q.addEventListener("pointerup",re,{once:!0})}},i],stateAttributesMapping:fr})}),_E=c.forwardRef(function(t,n){const{render:o,className:r,style:s,...i}=t,{state:a}=ei();return Re("div",t,{state:a,ref:n,props:[{style:{position:"relative"}},i],stateAttributesMapping:fr})}),vf="";function gx(){return ot}function mx(){return!1}function yx(){return!0}function Ka(){return Ns.useSyncExternalStore(gx,mx,yx)}function hs(e,t,n){return(e-t)*100/(n-t)}const bx=c.createContext(void 0),vx={disableStyleElements:!1};function Za(){return c.useContext(bx)??vx}function xf(e){const{script:t}=e,{nonce:n}=Za();return Ka()?Y.jsx("script",{nonce:n,dangerouslySetInnerHTML:{__html:t},suppressHydrationWarning:!0}):null}var Dl;const xx=new Set([...qn,Jd,ef]);function Sx(e,t,n,o){if(!(t<0))return e.length===2?`${Qo(e[t],o,n)} ${t===0?"start":"end"} range`:n?Qo(e[t],o,n):void 0}function wx(e,t,n,o,r){const s=e+t*n,i=Number(s.toFixed(Math.max(Uo(e),Uo(t),Uo(o))));return ut(i,o,r)}const LE=c.forwardRef(function(t,n){const{render:o,children:r,className:s,"aria-describedby":i,"aria-label":a,"aria-labelledby":l,"aria-valuetext":u,disabled:d=!1,getAriaLabel:p,getAriaValueText:f,id:y,index:h,inputRef:g,onBlur:m,onFocus:b,onKeyDown:v,tabIndex:x,style:S,...w}=t,R=st(y),{active:C,lastUsedThumbIndex:k,controlRef:T,disabled:E,validation:N,format:O,handleInputChange:D,inset:A,labelId:P,largeStep:z,locale:F,max:I,min:_,minStepsBetweenValues:M,form:L,name:H,orientation:$,pressedThumbCenterOffsetRef:U,pressedThumbIndexRef:q,renderBeforeHydration:V,setActive:X,setIndicatorPosition:j,state:K,step:de,thumbRefs:se,values:ne}=ei(),re=On(),G=d||E,ie=ne.length>1,ge=$==="vertical",ue=re==="rtl",{setTouched:Z,setFocused:J,validationMode:ae}=Zt(),ce=c.useRef(null),oe=c.useRef(null),le=c.useRef(!1),W=he(Oe=>{le.current||b==null||b(Oe)}),Q=he(Oe=>{le.current||m==null||m(Oe)}),fe=st(),te=Po(),ee=ie?fe:te,me=c.useMemo(()=>({inputId:ee}),[ee]),{ref:ye,index:De}=ur({metadata:me}),Me=ie?h??De:0,qe=Me===ne.length-1,Le=ne[Me],ze=hs(Le,_,I),[et,Te]=c.useState(),be=Ka(),Ve=k>=0&&k<ne.length?k:-1,Fe=he(()=>{const Oe=T.current,$e=ce.current;if(!Oe||!$e)return;const Ge=$e.getBoundingClientRect(),Ce=Oe.getBoundingClientRect(),He=ge?"height":"width",dt=Ce[He]-Ge[He],xt=(Ge[He]/2+dt*ze/100)/Ce[He]*100,kt=Number.isFinite(xt)?xt:void 0;Te(kt),Me===0?j(fn=>[kt,fn[1]]):qe&&j(fn=>[fn[0],kt])});pe(()=>{A&&queueMicrotask(Fe)},[Fe,A]),pe(()=>{A&&Fe()},[Fe,A,ze]),pe(()=>{if(!A)return;const Oe=T.current,$e=ce.current;if(!Oe||!$e)return;const Ge=Xe(Oe).ResizeObserver;if(typeof Ge!="function")return;const Ce=new Ge(Fe);return Ce.observe(Oe),Ce.observe($e),()=>{Ce.disconnect()}},[T,Fe,A]);const je=ge?"bottom":"insetInlineStart",Je=ge?"left":"top";let lt;ie?C===Me?lt=2:Ve===Me&&(lt=1):C===Me&&(lt=1);let Se;!A&&!Number.isFinite(ze)?Se=Sn:Se={position:"absolute",[je]:A?"var(--position)":`${ze}%`,[Je]:"50%",translate:`${(ge||!ue?-1:1)*50}% ${(ge?1:-1)*50}%`,zIndex:lt,...A&&{"--position":`${et??0}%`,visibility:V&&be||et===void 0?"hidden":void 0}};let Be;ge&&(Be=ue?"vertical-rl":"vertical-lr");const tt=typeof p=="function"?p(Me):a,ct=Et({"aria-label":tt,"aria-labelledby":l??(tt==null?P:void 0),"aria-describedby":i,"aria-orientation":$,"aria-valuenow":Le,"aria-valuetext":typeof f=="function"?f(Qo(Le,F,O),Le,Me):u??Sx(ne,Me,O,F),disabled:G,form:L,id:ee,max:I,min:_,name:H,onChange(Oe){D(Oe.currentTarget.valueAsNumber,Me,Oe)},onFocus(Oe){const $e=le.current;le.current=!1,X(Me),J(!0),$e&&Oe.stopPropagation()},onBlur(Oe){if(le.current){Oe.stopPropagation();return}X(-1),!se.current.some($e=>ve($e,Oe.relatedTarget))&&(Z(!0),J(!1),ae==="onBlur"&&N.commit(pf(Le,Me,_,I,ie,ne)))},onKeyDown(Oe){if(Oe.defaultPrevented||!xx.has(Oe.key))return;qn.has(Oe.key)&&Oe.stopPropagation();let $e=null,Ge=0,Ce=Oe.shiftKey?z:de;const He=bf(Le,de,_);switch(Oe.key){case as:Ge=1;break;case us:Ge=ue?-1:1;break;case cs:Ge=-1;break;case ls:Ge=ue?1:-1;break;case Jd:Ce=z,Ge=1;break;case ef:Ce=z,Ge=-1;break;case fs:$e=ie&&Number.isFinite(ne[Me+1])?ne[Me+1]-de*M:I;break;case ds:$e=ie&&Number.isFinite(ne[Me-1])?ne[Me-1]+de*M:_;break}if(Ge!==0&&($e=wx(He,Ce,Ge,_,I)),$e!==null){const dt=Oe.currentTarget;Qu(dt)||(le.current=!0,dt.blur(),dt.focus({preventScroll:!0,focusVisible:!0})),D($e,Me,Oe),Oe.preventDefault()}},step:de,style:{...Sn,width:"100%",height:"100%",writingMode:Be},tabIndex:x,type:"range",value:Le??""},Oe=>N.getValidationProps(G,Oe),{onFocus:W,onBlur:Q,onKeyDown:v}),yt=Tt(oe,N.inputRef,g);return Re("div",t,{state:K,ref:[n,ye,ce],props:[{"data-index":Me,children:Y.jsxs(c.Fragment,{children:[r,Y.jsx("input",{ref:yt,...ct,suppressHydrationWarning:!0}),A&&qe&&V&&(Dl||(Dl=Y.jsx(xf,{script:vf})))]}),id:R,onPointerDown(Oe){if(G)return;q.current=Me;const $e=yf(Oe.currentTarget,ge);U.current=(ge?Oe.clientY:Oe.clientX)-$e},style:Se,suppressHydrationWarning:V||void 0},w],stateAttributesMapping:fr})});function Rx(e,t,n,o,r,s){const i={visibility:s||n&&(o===void 0||t&&r===void 0)?"hidden":void 0,position:e?"absolute":"relative",[e?"width":"height"]:"inherit"};let a=`${o??0}%`,l=`${(r??0)-(o??0)}%`;return n&&(i["--start-position"]=a,a="var(--start-position)",t&&(i["--relative-size"]=l,l="var(--relative-size)")),i[e?"bottom":"insetInlineStart"]=t?a:0,i[e?"height":"width"]=t?l:a,i}const FE=c.forwardRef(function(t,n){const{render:o,className:r,style:s,...i}=t,{indicatorPosition:a,inset:l,max:u,min:d,orientation:p,renderBeforeHydration:f,state:y,values:h}=ei(),g=Ka(),m=p==="vertical",b=h.length>1,v=Rx(m,b,l,l?a[0]:hs(h[0],d,u),l?a[1]:hs(h[h.length-1],d,u),l&&f&&g);return Re("div",t,{state:y,ref:n,props:[{"data-base-ui-slider-indicator":f?"":void 0,style:v,suppressHydrationWarning:f||void 0},i],stateAttributesMapping:fr})}),zE=c.forwardRef(function(t,n){const{className:o,render:r,orientation:s="horizontal",style:i,...a}=t;return Re("div",t,{state:{orientation:s},ref:n,props:[{role:"separator","aria-orientation":s},a]})});function kx(e){const t=c.useRef(!0);t.current&&(t.current=!1,e())}const Sf=c.createContext(null);function Qt(){const e=c.useContext(Sf);if(e===null)throw new Error(We(60));return e}const Cx=(e,t)=>Object.is(e,t);function bo(e,t,n){return e==null||t==null?Object.is(e,t):n(e,t)}function Ur(e,t,n){return!e||e.length===0?-1:e.findIndex(o=>o===void 0?!1:bo(o,t,n))}function Ex(e,t,n){return e.filter(o=>!bo(t,o,n))}function wf(e){return e!=null&&e.length>0&&typeof e[0]=="object"&&e[0]!=null&&"items"in e[0]}function Px(e){if(!Array.isArray(e))return e!=null&&"null"in e;const t=e;if(wf(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 Rf(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 ps(e)}function so(e,t){return t&&e!=null?t(e)??"":e&&typeof e=="object"&&"value"in e&&"label"in e?ps(e.value):ps(e)}function kf(e,t,n){function o(){return Rf(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=wf(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 Mx(e,t,n){return e.reduce((o,r,s)=>(s>0&&o.push(", "),o.push(Y.jsx(c.Fragment,{children:kf(r,t,n)},s)),o),[])}const Pe={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:so(t,o)!==""},hasNullItemLabel:(e,t)=>t?Px(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=>bo(t,r,n)):bo(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},zt=1;function Qa(e,t){return Math.max(0,e-t)}function vo(e,t){if(t<=0)return 0;const n=ut(e,0,t),o=n,r=t-n,s=o<=zt,i=r<=zt;return s&&i?o<=r?0:t:s?0:i?t:n}function VE(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:h=!0,actionsRef:g,inputRef:m,onOpenChangeComplete:b,items:v,multiple:x=!1,itemToStringLabel:S,itemToStringValue:w,isItemEqualToValue:R=Cx,highlightItemOnHover:C=!0,children:k}=e,{clearErrors:T}=To(),{setDirty:E,setTouched:N,setFocused:O,validityData:D,setFilled:A,name:P,disabled:z,validation:F,validationMode:I}=Zt(),_=Po({id:t}),M=z||p,L=P??l,[H,$]=Ht({controlled:n,default:x?o??Vt:o,name:"Select",state:"value"}),[U,q]=Ht({controlled:s,default:i,name:"Select",state:"open"}),V=c.useRef([]),X=c.useRef([]),j=c.useRef(null),K=c.useRef(null),de=c.useRef(0),se=c.useRef(null),ne=c.useRef([]),re=c.useRef(!1),G=c.useRef(null),ie=c.useRef(null),ge=c.useRef({allowSelectedMouseUp:!1,allowUnselectedMouseUp:!1,dragY:0}),ue=c.useRef(!1),{mounted:Z,setMounted:J,transitionStatus:ae}=In(U),{openMethod:ce,triggerProps:oe}=Yd(U),le=gt(()=>new ko({id:_,labelId:void 0,modal:h,multiple:x,itemToStringLabel:S,itemToStringValue:w,isItemEqualToValue:R,value:H,open:U,mounted:Z,transitionStatus:ae,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=Ee(le,Pe.activeIndex),Q=Ee(le,Pe.selectedIndex),fe=Ee(le,Pe.triggerElement),te=Ee(le,Pe.positionerElement),ee=Dv(ce),me=ce??ee,ye=c.useMemo(()=>x?"":so(H,w),[x,H,w]),De=c.useMemo(()=>x&&Array.isArray(H)?H.map(Ce=>so(Ce,w)):so(H,w),[x,H,w]),Me=rt(fe),qe=he(()=>De);Mo(Me,_,H,qe,!M,l);const Le=c.useRef(H),ze=x?Array.isArray(H)&&H.length>0:H!=null&&ye!=="";pe(()=>{A(ze)},[ze,A]),pe(function(){let He=H,dt=!1;if(x){const kt=Array.isArray(H)?H:[];dt=kt.length===0,He=kt[kt.length-1]}const Lt=dt?-1:Ur(ne.current,He,R),xt=Lt===-1?null:Lt;xt===null&&(ie.current=null),!U&&le.set("selectedIndex",xt)},[x,U,H,R,le]);function et(Ce){const He=D.initialValue;return Array.isArray(Ce)&&Array.isArray(He)?!Xa(Ce,He,(dt,Lt)=>bo(dt,Lt,R)):Ce!==He}Eo(H,()=>{T(L),E(et(H)),F.change(H)});const Te=he((Ce,He)=>{a==null||a(Ce,He),!He.isCanceled&&(q(Ce),!Ce&&(He.reason===xn||He.reason===Cs)&&(N(!0),O(!1),I==="onBlur"&&F.commit(H)))}),be=he(()=>{J(!1),le.update({activeIndex:null,openMethod:null,scrollUpArrowVisible:!1,scrollDownArrowVisible:!1}),b==null||b(!1)});It({enabled:!g,open:U,ref:j,onComplete(){U||be()}}),c.useImperativeHandle(g,()=>({unmount:be}),[be]);const Ve=he((Ce,He)=>{r==null||r(Ce,He),!He.isCanceled&&$(Ce)}),Fe=he(Ce=>{const He=Qa(Ce.scrollHeight,Ce.clientHeight),dt=vo(Ce.scrollTop,He),Lt=dt>0,xt=dt<He;le.set("scrollUpArrowVisible",Lt),le.set("scrollDownArrowVisible",xt)}),je=Wb({open:U,onOpenChange:Te,elements:{reference:fe,floating:te}}),Je=Os(je,{enabled:!f&&!M,event:"mousedown"}),lt=sr(je),Se=Wd(je,{enabled:!f&&!M,listRef:V,activeIndex:W,selectedIndex:Q,disabledIndices:Vt,onNavigate(Ce){Ce===null&&!U||le.set("activeIndex",Ce)},focusItemOnHover:C}),Be=Ud(je,{enabled:!f&&!M&&(U||!x),listRef:X,activeIndex:W,selectedIndex:Q,disabledIndices:Ce=>lf(V.current[Ce]),onMatch(Ce){U?le.set("activeIndex",Ce):Ve(ne.current[Ce],ke(Rt))},onTyping(Ce){re.current=Ce}}),tt=c.useMemo(()=>Et(Be.reference,Se.reference,lt.reference,Je.reference,oe),[Je.reference,Be.reference,Se.reference,lt.reference,oe]),ct=c.useMemo(()=>Et(ir,Be.floating,Se.floating,lt.floating),[Be.floating,Se.floating,lt.floating]),yt=Se.item??Ke;kx(()=>{le.update({popupProps:ct,triggerProps:tt})}),le.useSyncedValues({id:_,modal:h,multiple:x,value:H,open:U,mounted:Z,transitionStatus:ae,popupProps:ct,triggerProps:tt,items:v,itemToStringLabel:S,itemToStringValue:w,isItemEqualToValue:R,openMethod:me});const vt=c.useMemo(()=>({store:le,floatingContext:je,required:y,disabled:M,readOnly:f,multiple:x,highlightItemOnHover:C,setValue:Ve,setOpen:Te,listRef:V,popupRef:j,scrollHandlerRef:K,handleScrollArrowVisibility:Fe,scrollArrowsMountedCountRef:de,itemProps:yt,valueRef:se,valuesRef:ne,labelsRef:X,typingRef:re,selectionRef:ge,firstItemTextRef:G,selectedItemTextRef:ie,validation:F,onOpenChangeComplete:b,alignItemWithTriggerActiveRef:ue,initialValueRef:Le}),[le,je,y,M,f,x,C,Ve,Te,yt,F,b,Fe]),Oe=Tt(m,F.inputRef),$e=x?void 0:L,Ge=c.useMemo(()=>!x||!Array.isArray(H)||!L?null:H.map(Ce=>{const He=so(Ce,w);return Y.jsx("input",{type:"hidden",form:u,name:L,value:He,disabled:M},He)}),[x,H,u,L,w,M]);return Y.jsxs(Sf.Provider,{value:vt,children:[k,Y.jsx("input",{...F.getValidationProps(M,{onFocus(){var Ce;(Ce=le.state.triggerElement)==null||Ce.focus({focusVisible:!0})},onChange(Ce){if(Ce.nativeEvent.defaultPrevented||M||f)return;const He=Ce.currentTarget.value,dt=ke(Rt,Ce.nativeEvent);function Lt(){if(x)return;const xt=He.toLowerCase();let kt=ne.current.findIndex(Ao=>so(Ao,w).toLowerCase()===xt||Rf(Ao,S).toLowerCase()===xt);kt===-1&&(kt=ne.current.findIndex((Ao,Dn)=>{const mr=X.current[Dn];return mr!=null&&mr.toLowerCase()===xt}));const fn=ne.current[kt];fn!=null&&Ve(fn,dt)}le.set("forceMount",!0),queueMicrotask(Lt)}}),id:_&&$e==null?`${_}-hidden-input`:void 0,form:u,name:$e,autoComplete:d,value:ye,disabled:M,required:y&&!(x&&ze),readOnly:f,ref:Oe,style:L?Ps:Sn,tabIndex:-1,"aria-hidden":!0,suppressHydrationWarning:!0}),Ge]})}const Mr=5;function Cf(e,t){const n=Tx(t);return e.clientX>=n.left-Mr&&e.clientX<=n.right+Mr&&e.clientY>=n.top-Mr&&e.clientY<=n.bottom+Mr}function Tx(e){const t=e.getBoundingClientRect(),n=Xe(e);if(ya)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}}const Ix=400,Ox={...Zo,...Gn,popupSide:e=>e?{"data-popup-side":e}:null,value:()=>null},$E=c.forwardRef(function(t,n){var re;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:h}=Zt(),{labelId:g}=An(),{store:m,setOpen:b,selectionRef:v,validation:x,readOnly:S,required:w,alignItemWithTriggerActiveRef:R,disabled:C}=Qt(),k=h||C||i,T=Ee(m,Pe.open),E=Ee(m,Pe.mounted),N=Ee(m,Pe.value),O=Ee(m,Pe.triggerProps),D=Ee(m,Pe.positionerElement),A=Ee(m,Pe.listElement),P=Ee(m,Pe.popupSide),z=Ee(m,Pe.id),F=Ee(m,Pe.labelId),I=Ee(m,Pe.hasSelectedValue),_=E&&D?P:null,M=s??z,L=df(g,F);Po({id:M});const H=rt(D),$=c.useRef(null),{getButtonProps:U,buttonRef:q}=Mt({disabled:k,native:a}),V=m.useStateSetter("triggerElement"),X=nt(),j=nt(),K=nt();c.useEffect(()=>{if(T)return K.start(Ix,()=>{v.current.allowUnselectedMouseUp=!0,v.current.allowSelectedMouseUp=!0}),()=>{K.clear()};v.current={allowSelectedMouseUp:!1,allowUnselectedMouseUp:!1,dragY:0},j.clear()},[T,v,j,K]);const de=Et(O,{id:M,role:"combobox","aria-expanded":T,"aria-haspopup":"listbox","aria-controls":T?(A==null?void 0:A.id)??((re=es(D))==null?void 0:re.id):void 0,"aria-labelledby":L,"aria-readonly":S||void 0,"aria-required":w||void 0,tabIndex:k?-1:0,onFocus(G){p(!0),T&&R.current&&b(!1,ke(Rt,G.nativeEvent)),X.start(0,()=>{m.set("forceMount",!0)})},onBlur(G){ve(D,G.relatedTarget)||(d(!0),p(!1),f==="onBlur"&&x.commit(N))},onMouseDown(G){if(T)return;const ie=Ie(G.currentTarget);function ge(ue){if(!$.current)return;const Z=ue.target;ve($.current,Z)||ve(H.current,Z)||Cf(ue,$.current)||b(!1,ke(Sa,ue))}j.start(0,()=>{ie.addEventListener("mouseup",ge,{once:!0})})}},u,U),se=x.getValidationProps(k,de);se.role="combobox";const ne={...y,open:T,disabled:k,value:N,readOnly:S,popupSide:_,placeholder:!I};return Re("button",t,{ref:[n,$,q,V],state:ne,stateAttributesMapping:Ox,props:se})}),Ax={value:()=>null},HE=c.forwardRef(function(t,n){const{className:o,render:r,children:s,placeholder:i,style:a,...l}=t,{store:u,valueRef:d}=Qt(),p=Ee(u,Pe.value),f=Ee(u,Pe.items),y=Ee(u,Pe.itemToStringLabel),h=Ee(u,Pe.hasSelectedValue),g=!h&&i!=null&&s==null,m=Ee(u,Pe.hasNullItemLabel,g),b={value:p,placeholder:!h};let v=null;return typeof s=="function"?v=s(p):s!=null?v=s:g&&!m?v=i:Array.isArray(p)?v=Mx(p,f,y):v=kf(p,f,y),Re("span",t,{state:b,ref:[n,d],props:[{children:v},l],stateAttributesMapping:Ax})}),jE=c.forwardRef(function(t,n){const{render:o,className:r,style:s,...i}=t,{store:a}=Qt(),u={open:Ee(a,Pe.open)};return Re("span",t,{state:u,ref:n,props:[{"aria-hidden":!0,children:"▼"},i],stateAttributesMapping:qs})}),BE=c.forwardRef(function(t,n){const{store:o}=Qt(),r=Ee(o,Pe.mounted),s=Ee(o,Pe.forceMount);return r||s?Y.jsx(Ts,{ref:n,...t}):null}),Ef=c.createContext(void 0);function Ja(){const e=c.useContext(Ef);if(!e)throw new Error(We(59));return e}function gs(e,t){e&&Object.assign(e.style,t)}const Pf={position:"relative",maxHeight:"100%",overflowX:"hidden",overflowY:"auto"},Nx={position:"fixed"},WE=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:h,disableAnchorTracking:g,alignItemWithTrigger:m=!0,collisionAvoidance:b=vd,style:v,...x}=t,{store:S,listRef:w,labelsRef:R,alignItemWithTriggerActiveRef:C,selectedItemTextRef:k,valuesRef:T,initialValueRef:E,popupRef:N,setValue:O,floatingContext:D}=Qt(),A=Ee(S,Pe.open),P=Ee(S,Pe.mounted),z=Ee(S,Pe.modal),F=Ee(S,Pe.value),I=Ee(S,Pe.openMethod),_=Ee(S,Pe.positionerElement),M=Ee(S,Pe.triggerElement),L=Ee(S,Pe.isItemEqualToValue),H=Ee(S,Pe.transitionStatus),$=c.useRef(null),U=c.useRef(null),[q,V]=c.useState(m),X=P&&q&&I!=="touch";!P&&q!==m&&V(m),c.useImperativeHandle(C,()=>X),Wa((X||z)&&A,I==="touch",_,M);const j=Xs({anchor:o,floatingRootContext:D,positionMethod:i,mounted:P,side:a,sideOffset:u,align:l,alignOffset:d,arrowPadding:y,collisionBoundary:p,collisionPadding:f,sticky:h,disableAnchorTracking:g??X,collisionAvoidance:b,keepMounted:!0}),K=X?"none":j.side,de=X?Nx:j.positionerStyles,se={open:A,side:K,align:j.align,anchorHidden:j.anchorHidden};pe(()=>{S.set("popupSide",j.side)},[S,j.side]);const ne=S.useStateSetter("positionerElement"),re=Zs(t,se,{styles:de,transitionStatus:H,props:x,refs:[n,ne],hidden:!P,inert:!A}),G=c.useRef(0),ie=he(ue=>{if(T.current.length===0)return;const Z=G.current;if(G.current=ue.size,ue.size===Z)return;const J=ke(Rt);if(Z!==0&&!S.state.multiple&&F!==null&&Ur(T.current,F,L)===-1){const ce=E.current,le=ce!=null&&Ur(T.current,ce,L)!==-1?ce:null;O(le,J),le===null&&(S.set("selectedIndex",null),k.current=null)}if(Z!==0&&S.state.multiple&&Array.isArray(F)){const ae=F.filter(ce=>Ur(T.current,ce,L)!==-1);ae.length!==F.length&&(O(ae,J),ae.length===0&&(S.set("selectedIndex",null),k.current=null))}if(A&&X){S.update({scrollUpArrowVisible:!1,scrollDownArrowVisible:!1});const ae={height:""};gs(_,ae),gs(N.current,ae)}}),ge=c.useMemo(()=>({...j,side:K,alignItemWithTriggerActive:X,setControlledAlignItemWithTrigger:V,scrollUpArrowRef:$,scrollDownArrowRef:U}),[j,K,X,V]);return Y.jsx(dr,{elementsRef:w,labelsRef:R,onMapChange:ie,children:Y.jsxs(Ef.Provider,{value:ge,children:[P&&z&&Y.jsx(Ks,{inert:cr(!A),cutout:M}),re]})})}),Tr="base-ui-disable-scrollbar",Jo={className:Tr,getElement(e){return Y.jsx("style",{nonce:e,href:Tr,precedence:"base-ui:low",children:`.${Tr}{scrollbar-width:none}.${Tr}::-webkit-scrollbar{display:none}`})}},Dx={...Gs,...Kt},UE=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:h,multiple:g,handleScrollArrowVisibility:m,scrollHandlerRef:b,listRef:v,highlightItemOnHover:x,floatingContext:S}=Qt(),{side:w,align:R,alignItemWithTriggerActive:C,isPositioned:k,setControlledAlignItemWithTrigger:T}=Ja(),E=Js()!=null,N=On(),{nonce:O,disableStyleElements:D}=Za(),A=Ee(l,Pe.id),P=Ee(l,Pe.open),z=Ee(l,Pe.openMethod),F=Ee(l,Pe.mounted),I=Ee(l,Pe.popupProps),_=Ee(l,Pe.transitionStatus),M=Ee(l,Pe.triggerElement),L=Ee(l,Pe.positionerElement),H=Ee(l,Pe.listElement),$=c.useRef(!1),U=c.useRef(!1),q=c.useRef({}),V=$n(),X=he(se=>{if(!L||!u.current||!U.current)return;const ne=L.style.top==="0px",re=L.style.bottom==="0px";if($.current||!C||!ne&&!re){m(se);return}const G=Ll(L),ie=$o(L.getBoundingClientRect().height,"y",G),ge=Ie(L),ue=Xe(L),Z=ue.getComputedStyle(L),J=parseFloat(Z.marginTop),ae=parseFloat(Z.marginBottom),ce=_l(ue.getComputedStyle(u.current)),oe=Math.min(ge.documentElement.clientHeight-J-ae,ce),le=se.scrollTop,W=Ir(se);let Q=null;const fe=ye=>{L.style.height=`${ye}px`},te=ne?W-le:le,ee=Math.min(ie+te,oe);if(te<=zt){const ye=ut(te,0,oe-ie);ye>0&&fe(ie+ye),se.scrollTop=ne?W:0,oe-(ie+ye)<=zt&&($.current=!0),m(se);return}if(oe-ee>zt)Q=ne?1/0:0;else if(re&&le<W){const ye=ie+te-oe;Q=le-(te-ye)}const me=Math.ceil(ee);if(me!==0&&fe(me),Q!=null){const ye=ut(Q,0,Ir(se));Math.abs(se.scrollTop-ye)>zt&&(se.scrollTop=ye)}me>=oe-zt&&($.current=!0),m(se)});c.useImperativeHandle(b,()=>X,[X]),It({open:P,ref:u,onComplete(){P&&(d==null||d(!0))}});const j={open:P,transitionStatus:_,side:w,align:R};pe(()=>{!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]),pe(()=>{P||C||(U.current=!1,$.current=!1,gs(L,q.current))},[P,C,L,u]),pe(()=>{var re,G;const se=u.current;if(!P||!M||!L||!se||C&&!k||l.state.transitionStatus==="ending")return;if(U.current=!0,se.style.removeProperty("--transform-origin"),!C){V.request(()=>m(H||se));return}const ne=_x(se);try{let ie=h.current;ie!=null&&ie.isConnected||(ie=!Pe.hasSelectedValue(l.state)&&((re=y.current)!=null&&re.isConnected)?y.current:null);const ge=f.current,ue=Xe(L),Z=ue.getComputedStyle(L),J=ue.getComputedStyle(se),ae=Ie(M),ce=Ll(M),oe=Or(M.getBoundingClientRect(),ce),le=Or(L.getBoundingClientRect(),ce),W=oe.height,Q=H||se,fe=Q.scrollHeight,te=parseFloat(J.borderBottomWidth),ee=parseFloat(Z.marginTop)||10,me=parseFloat(Z.marginBottom)||10,ye=parseFloat(Z.minHeight)||100,De=_l(J),Me=5,qe=5,Le=20,ze=ae.documentElement.clientHeight-ee-me,et=ae.documentElement.clientWidth,Te=ze-oe.bottom+W;let be,Ve=N==="rtl"?oe.right-le.width:oe.left,Fe=0;if(ie&&ge){const $e=Or(ge.getBoundingClientRect(),ce);be=Or(ie.getBoundingClientRect(),ce),Ve=le.left+(N==="rtl"?$e.right-be.right:$e.left-be.left);const Ge=$e.top-oe.top+$e.height/2;Fe=be.top-le.top+be.height/2-Ge}const je=Te+Fe+me+te;let Je=Math.min(ze,je);const lt=ze-ee-me,Se=je-Je,Be=et-qe;L.style.left=`${ut(Ve,Me,Be-le.width)}px`,L.style.height=`${Je}px`,L.style.maxHeight="none",L.style.marginTop=`${ee}px`,L.style.marginBottom=`${me}px`,se.style.height="100%";const tt=Ir(Q),ct=Se>=tt-zt;ct&&(Je=Math.min(ze,le.height)-(Se-tt));const yt=oe.top<Le||oe.bottom>ze-Le||Math.ceil(Je)+zt<Math.min(fe,ye),vt=(((G=ue.visualViewport)==null?void 0:G.scale)??1)!==1&&Xt;if(yt||vt){gs(L,q.current),T(!1);return}const Oe=Math.max(ye,Je);if(ct){const $e=Math.max(0,ze-je);L.style.top=le.height>=lt?"0":`${$e}px`,L.style.height=`${Je}px`,Q.scrollTop=Ir(Q)}else L.style.bottom="0",Q.scrollTop=Se;if(be){const $e=le.top,Ge=le.height,Ce=be.top+be.height/2,He=ut(Ge>0?(Ce-$e)/Ge*100:50,0,100);se.style.setProperty("--transform-origin",`50% ${He}%`)}(Oe===ze||Je>=De)&&($.current=!0),m(Q),x&&l.state.selectedIndex===null&&l.state.activeIndex===null&&v.current[0]!=null&&l.set("activeIndex",0)}finally{ne()}},[l,P,L,M,f,y,h,u,m,C,T,V,H,v,x,N,k]),c.useEffect(()=>{if(!C||!L||!P)return;const se=Xe(L);function ne(re){p(!1,ke(sy,re))}return Ae(se,"resize",ne)},[p,C,L,P]);const K={...H?{role:"presentation","aria-orientation":void 0}:{role:"listbox","aria-multiselectable":g||void 0,id:`${A}-list`},onKeyDown(se){E&&qn.has(se.key)&&se.stopPropagation()},onScroll(se){H||X(se.currentTarget)},...C&&{style:H?{height:"100%"}:Pf},className:!H&&C?Jo.className:void 0},de=Re("div",t,{ref:[n,u],state:j,stateAttributesMapping:Dx,props:[I,K,lr(_),a]});return Y.jsxs(c.Fragment,{children:[!D&&Jo.getElement(O),Y.jsx(Is,{context:S,modal:!1,disabled:!F,openInteractionType:z,returnFocus:i,restoreFocus:!0,children:de})]})});function _l(e){const t=e.maxHeight;return t.endsWith("px")&&parseFloat(t)||1/0}function Ir(e){return Qa(e.scrollHeight,e.clientHeight)}function Ll(e){return Nd.getScale(e)}function $o(e,t,n){return e/n[t]}function Or(e,t){return Xo({x:$o(e.x,"x",t),y:$o(e.y,"y",t),width:$o(e.width,"x",t),height:$o(e.height,"y",t)})}const Fl=[["transform","none"],["scale","1"],["translate","0 0"]];function _x(e){const{style:t}=e,n={};for(const[o,r]of Fl)n[o]=t.getPropertyValue(o),t.setProperty(o,r,"important");return()=>{for(const[o]of Fl){const r=n[o];r?t.setProperty(o,r):t.removeProperty(o)}}}const qE=c.forwardRef(function(t,n){const{render:o,className:r,style:s,...i}=t,{store:a,scrollHandlerRef:l,multiple:u}=Qt(),{alignItemWithTriggerActive:d}=Ja(),p=Ee(a,Pe.hasScrollArrows),f=Ee(a,Pe.openMethod),h={id:`${Ee(a,Pe.id)}-list`,role:"listbox","aria-multiselectable":u||void 0,onScroll(m){var b;(b=l.current)==null||b.call(l,m.currentTarget)},...d&&{style:Pf},className:p&&f!=="touch"?Jo.className:void 0},g=a.useStateSetter("listElement");return Re("div",t,{ref:[n,g],props:[h,i]})}),Mf=c.createContext(void 0);function ec(){const e=c.useContext(Mf);if(!e)throw new Error(We(57));return e}const GE=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=ur({guess:!0,label:a,textRef:p}),{store:y,itemProps:h,setOpen:g,setValue:m,selectionRef:b,typingRef:v,valuesRef:x,multiple:S,selectedItemTextRef:w,disabled:R,readOnly:C}=Qt(),k=R||l,T=Ee(y,Pe.isActive,f.index),E=Ee(y,Pe.open),N=Ee(y,Pe.isSelected,i),O=Ee(y,Pe.isSelectedByFocus,f.index),D=Ee(y,Pe.isItemEqualToValue),A=f.index,P=c.useRef(null);pe(()=>{const V=x.current;return V[A]=i,()=>{delete V[A]}},[A,i,x]),pe(()=>{const V=y.state.value;let X=V;S&&Array.isArray(V)&&(X=V.length>0?V[V.length-1]:void 0),X!==void 0&&bo(i,X,D)&&(y.set("selectedIndex",A),p.current&&(w.current=p.current))},[A,S,D,y,i,w]);const z=c.useRef("mouse"),F=c.useRef(!1),{getButtonProps:I,buttonRef:_}=Mt({disabled:k,focusableWhenDisabled:!0,native:u,composite:!0}),M={disabled:k,selected:N,highlighted:T};function L(V){if(R||C)return;const X=y.state.value;if(S){const j=Array.isArray(X)?X:[],K=N?Ex(j,i,D):[...j,i];m(K,ke(jo,V))}else m(i,ke(jo,V)),g(!1,ke(jo,V))}function H(){b.current.dragY=0}const $={role:"option","aria-selected":N,tabIndex:E&&T?0:-1,onKeyDown(V){y.set("activeIndex",A),V.key===" "&&v.current&&V.preventDefault()},onClick(V){const X=z.current!=="touch",j=V.nativeEvent.pointerType,K=X&&ba(V.nativeEvent)&&(j!==void 0||T),de=X&&!K&&!F.current;F.current=!1,!(k||de)&&L(V.nativeEvent)},onPointerEnter(V){z.current=V.pointerType},onPointerMove(V){if(V.pointerType==="mouse"&&V.buttons===1){const X=b.current;X.dragY+=V.movementY,X.dragY**2>=64&&(X.allowUnselectedMouseUp=!0)}},onPointerDown(V){z.current=V.pointerType,F.current=!0,H()},onMouseUp(){var j;if(H(),k||z.current==="touch"||F.current)return;const V=!b.current.allowSelectedMouseUp&&N,X=!b.current.allowUnselectedMouseUp&&!N;V||X||(F.current=!0,(j=P.current)==null||j.click(),F.current=!1)}},U=Re("div",t,{ref:[_,n,f.ref,P],state:M,props:[h,$,d,I]}),q=c.useMemo(()=>({selected:N,index:A,textRef:p,selectedByFocus:O}),[N,A,p,O]);return Y.jsx(Mf.Provider,{value:q,children:U})})),YE=c.forwardRef(function(t,n){const{selected:o}=ec();return t.keepMounted||o?Y.jsx(Lx,{...t,ref:n}):null}),Lx=c.memo(c.forwardRef((e,t)=>{const{render:n,className:o,style:r,keepMounted:s,...i}=e,{selected:a}=ec(),l=c.useRef(null),{transitionStatus:u,setMounted:d}=In(a),f=Re("span",e,{ref:[t,l],state:{selected:a,transitionStatus:u},props:[{"aria-hidden":!0,children:"✔️"},i],stateAttributesMapping:Kt});return It({open:a,ref:l,onComplete(){a||d(!1)}}),f})),XE=c.memo(c.forwardRef(function(t,n){const{index:o,textRef:r,selectedByFocus:s}=ec(),{firstItemTextRef:i,selectedItemTextRef:a}=Qt(),{render:l,className:u,style:d,...p}=t,f=c.useCallback(h=>{h&&(o===0&&(i.current=h),s&&(a.current=h))},[i,a,o,s]);return Re("div",t,{ref:[f,n,r],props:p})})),Tf=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:h}=Qt(),{side:g,scrollDownArrowRef:m,scrollUpArrowRef:b}=Ja(),v=u?Pe.scrollUpArrowVisible:Pe.scrollDownArrowVisible,x=Ee(d,v),S=Ee(d,Pe.openMethod),w=x&&S!=="touch",R=nt(),C=u?b:m,{mounted:k,transitionStatus:T,setMounted:E}=In(w);pe(()=>(h.current+=1,d.set("hasScrollArrows",!0),()=>{h.current=Math.max(0,h.current-1),h.current===0&&d.set("hasScrollArrows",!1)}),[d,h]),It({open:w,ref:C,onComplete(){w||E(!1)}});const D=Re("div",t,{ref:[n,C],state:{direction:i,visible:w,side:g,transitionStatus:T},props:[{"aria-hidden":!0,children:u?"▲":"▼",style:{position:"absolute"},onMouseMove(P){if(P.movementX===0&&P.movementY===0||R.isStarted())return;d.set("activeIndex",null);function z(){var H;const F=d.state.listElement??p.current;if(!F)return;d.set("activeIndex",null),y(F);const I=Qa(F.scrollHeight,F.clientHeight),_=vo(F.scrollTop,I),M=_===(u?0:I),L=f.current;if(_!==F.scrollTop&&(F.scrollTop=_),M){R.clear();return}if(L.length>0){const $=((H=C.current)==null?void 0:H.offsetHeight)||0;F.scrollTop=Fx(L,u,_,F.clientHeight,$,I)}R.start(40,z)}R.start(40,z)},onMouseLeave(){R.clear()}},l],stateAttributesMapping:Kt});return k||a?D:null});function Fx(e,t,n,o,r,s){if(t){let d=0;const p=n+r-zt;for(let h=0;h<e.length;h+=1){const g=e[h];if(g&&g.offsetTop>=p){d=h;break}}const f=Math.max(0,d-1),y=e[f];return f<d&&y?vo(y.offsetTop-r,s):0}let i=e.length-1;const a=n+o-r+zt;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?vo(u.offsetTop+u.offsetHeight-o+r,s):s}const KE=c.forwardRef(function(t,n){return Y.jsx(Tf,{...t,ref:n,direction:"down"})}),ZE=c.forwardRef(function(t,n){return Y.jsx(Tf,{...t,ref:n,direction:"up"})}),zx=c.createContext(void 0),QE=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=Re("div",t,{ref:n,props:[{role:"group","aria-labelledby":a},i]});return Y.jsx(zx.Provider,{value:u,children:d})}),If=c.createContext(void 0);function Nn(e){const t=c.useContext(If);if(!e&&t===void 0)throw new Error(We(27));return t}const JE=c.forwardRef(function(t,n){const{render:o,className:r,style:s,forceRender:i=!1,...a}=t,l=Nn(),u=l.useState("open"),d=l.useState("nested"),p=l.useState("mounted"),f=l.useState("transitionStatus");return Re("div",t,{state:{open:u,transitionStatus:f},ref:[l.context.backdropRef,n],stateAttributesMapping:Ys,props:[{role:"presentation",hidden:!p,style:{userSelect:"none",WebkitUserSelect:"none"}},a],enabled:i||!d})}),eP=c.forwardRef(function(t,n){const{render:o,className:r,style:s,disabled:i=!1,nativeButton:a=!0,...l}=t,u=Nn(),d=u.useState("open"),{getButtonProps:p,buttonRef:f}=Mt({disabled:i,native:a}),y={disabled:i};function h(g){d&&u.setOpen(!1,ke(ed,g.nativeEvent))}return Re("button",t,{state:y,ref:[n,f],props:[{onClick:h},l,p]})}),tP=c.forwardRef(function(t,n){const{render:o,className:r,style:s,id:i,...a}=t,l=Nn(),u=st(i);return l.useSyncedValueWithCleanup("descriptionElementId",u),Re("p",t,{ref:n,props:[{id:u},a]})}),Of=c.createContext(void 0);function Vx(){const e=c.useContext(Of);if(e===void 0)throw new Error(We(26));return e}const $x={...Gs,...Kt,nestedDialogOpen(e){return e?{"data-nested-dialog-open":""}:null}},nP=c.forwardRef(function(t,n){const{render:o,className:r,style:s,finalFocus:i,initialFocus:a,...l}=t,u=Nn(),d=u.useState("descriptionElementId"),p=u.useState("disablePointerDismissal"),f=u.useState("floatingRootContext"),y=u.useState("popupProps"),h=u.useState("modal"),g=u.useState("mounted"),m=u.useState("nested"),b=u.useState("nestedOpenDialogCount"),v=u.useState("open"),x=u.useState("openMethod"),S=u.useState("titleElementId"),w=u.useState("transitionStatus"),R=u.useState("role"),C=f.useState("floatingId");Vx(),It({open:v,ref:u.context.popupRef,onComplete(){var D,A;v&&((A=(D=u.context).onOpenChangeComplete)==null||A.call(D,!0))}});const k=a===void 0?Vd(u.context.popupRef):a,T=b>0,E=u.useStateSetter("popupElement"),O=Re("div",t,{state:{open:v,nested:m,transitionStatus:w,nestedDialogOpen:T},props:[y,{id:C,"aria-labelledby":S,"aria-describedby":d,role:R,...ir,hidden:!g,onKeyDown(D){qn.has(D.key)&&D.stopPropagation()},style:{"--nested-dialogs":b}},l],ref:[n,u.context.popupRef,E],stateAttributesMapping:$x});return Y.jsx(Is,{context:f,openInteractionType:x,disabled:!g,closeOnFocusOut:!p,initialFocus:k,returnFocus:i,modal:h!==!1,restoreFocus:"popup",children:O})}),oP=c.forwardRef(function(t,n){const{keepMounted:o=!1,...r}=t,s=Nn(),i=s.useState("mounted"),a=s.useState("modal"),l=s.useState("open");return i||o?Y.jsx(Of.Provider,{value:o,children:Y.jsxs(Ts,{ref:n,...r,children:[i&&a===!0&&Y.jsx(Ks,{ref:s.context.internalBackdropRef,inert:cr(!l)}),t.children]})}):null});function Hx({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=sr(a,{outsidePressEvent(){return e.context.internalBackdropRef.current||e.context.backdropRef.current?"intentional":{mouse:s==="trap-focus"?"sloppy":"intentional",touch:"sloppy"}},outsidePress(h){if(!e.context.outsidePressEnabledRef.current||"button"in h&&h.button!==0)return!1;if("touches"in h){if(h.type==="touchend"){if(h.changedTouches.length!==1||h.touches.length!==0)return!1}else if(h.touches.length!==1)return!1}const g=at(h);if(f&&!r){if(s){const m=e.context.internalBackdropRef.current,b=e.context.backdropRef.current;return m||b?m===g||b===g||ve(g,i)&&!(g!=null&&g.hasAttribute("data-base-ui-portal")):!0}return!0}return!1},escapeKey:f});return Qd(o&&s===!0,i),e.useContextCallback("onNestedDialogOpen",(h,g)=>{u(h),p(g)}),pe(()=>(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]),Hs(e,{activeTriggerProps:y.reference,inactiveTriggerProps:y.trigger,popupProps:y.floating,nestedOpenDialogCount:l,nestedOpenDrawerCount:d}),null}const jx={...Bs,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 Bx extends ko{constructor(n,o,r){const s=new Co,i=Wx(n,s,o,r);super(i,Ux(s),jx);Ue(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};Fs(r,n,o.trigger),this.update(r)})}}function Wx(e,t,n,o=!1){const r={...js(),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=La(t,n,o),r}function Ux(e){return{popupRef:c.createRef(),backdropRef:c.createRef(),internalBackdropRef:c.createRef(),outsidePressEnabledRef:{current:!0},triggerElements:e,onOpenChange:void 0,onOpenChangeComplete:void 0}}function Af(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",h=e==="alert-dialog",g=h?!0:l,m=h||a,b=h?"alertdialog":"dialog",v=Nn(!0),x=v!=null,S={modal:g,disablePointerDismissal:m,nested:x,role:b},w=Da((N,O)=>new Bx({open:r,openProp:o,activeTriggerId:f,triggerIdProp:p,...S},N,O),!0);w.useControlledProp("openProp",o),w.useControlledProp("triggerIdProp",p),w.useSyncedValues(S),w.useContextCallback("onOpenChange",s),w.useContextCallback("onOpenChangeComplete",i);const R=w.useState("open"),C=w.useState("mounted"),k=w.useState("payload");$d(w,R),Vs(w);const{forceUnmount:T}=$s(R,w);c.useImperativeHandle(u,()=>({unmount:T,close:()=>w.setOpen(!1,ke(Es))}),[T,w]);const E=R||C;return Y.jsxs(If.Provider,{value:w,children:[d&&Y.jsx(Ls,{handle:d,store:w}),E&&Y.jsx(Hx,{store:w,parentContext:v==null?void 0:v.context,isDrawer:y}),typeof n=="function"?n({payload:k}):n]})}function rP(e){return Af("dialog",e)}const sP=c.forwardRef(function(t,n){const{render:o,className:r,style:s,id:i,...a}=t,l=Nn(),u=st(i);return l.useSyncedValueWithCleanup("titleElementId",u),Re("h2",t,{ref:n,props:[{id:u},a]})}),qx=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=Nn(!0),h=Ws(d)??f;if(!h)throw new Error(We(79));const g=st(l),m=h.useState("floatingRootContext"),b=h.useState("isOpenedByTrigger",g),v=h.useState("triggerPopupId",g),x=c.useRef(null),{registerTrigger:S,isMountedByThisTrigger:w}=zs(g,x,h,{payload:u}),{getButtonProps:R,buttonRef:C}=Mt({disabled:i,native:a}),k=Os(m),T=Ba(()=>h.select("open"),O=>{h.set("openMethod",O)}),E={disabled:i,open:b},N=h.useState("triggerProps",w);return Re("button",t,{state:E,ref:[C,n,S,x],props:[k.reference,N,T,{[Pa]:"",id:g,"aria-haspopup":"dialog","aria-expanded":b,"aria-controls":v},p,R],stateAttributesMapping:qs})});function iP(e){return Re(e.defaultTagName??"div",e,e)}var Gx=Object.defineProperty,Io=(e,t)=>Gx(e,"name",{value:t,configurable:!0}),Nf=!!(typeof window<"u"&&window.document&&window.document.createElement);function Vn(e,t,{checkForDefaultPrevented:n=!0}={}){return Io(function(r){if(e==null||e(r),n===!1||!r||!r.defaultPrevented)return t==null?void 0:t(r)},"handleEvent")}Io(Vn,"composeEventHandlers");function Yx(e){var t;if(!Nf)throw new Error("Cannot access window outside of the DOM");return((t=e==null?void 0:e.ownerDocument)==null?void 0:t.defaultView)??window}Io(Yx,"getOwnerWindow");function Ui(e){if(!Nf)throw new Error("Cannot access document outside of the DOM");return(e==null?void 0:e.ownerDocument)??document}Io(Ui,"getOwnerDocument");function Df(e,t=!1){const{activeElement:n}=Ui(e);if(!(n!=null&&n.nodeName))return null;if(_f(n)&&n.contentDocument)return Df(n.contentDocument.body,t);if(t){const o=n.getAttribute("aria-activedescendant");if(o){const r=Ui(n).getElementById(o);if(r)return r}}return n}Io(Df,"getActiveElement");function _f(e){return e.tagName==="IFRAME"}Io(_f,"isFrame");var Xx=Object.defineProperty,tc=(e,t)=>Xx(e,"name",{value:t,configurable:!0});function qi(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}tc(qi,"setRef");function Lf(...e){return t=>{let n=!1;const o=e.map(r=>{const s=qi(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():qi(e[r],null)}}}}tc(Lf,"composeRefs");function Oo(...e){return c.useCallback(Lf(...e),e)}tc(Oo,"useComposedRefs");var Kx=Object.defineProperty,Ot=(e,t)=>Kx(e,"name",{value:t,configurable:!0});function Zx(e,t){const n=c.createContext(t);n.displayName=e+"Context";const o=Ot(s=>{const{children:i,...a}=s,l=c.useMemo(()=>a,Object.values(a));return Y.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 Ot(r,"useContext"),[o,r]}Ot(Zx,"createContext");function Ff(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=Ot(p=>{var b;const{scope:f,children:y,...h}=p,g=((b=f==null?void 0:f[e])==null?void 0:b[l])||a,m=c.useMemo(()=>h,Object.values(h));return Y.jsx(g.Provider,{value:m,children:y})},"Provider");u.displayName=s+"Provider";function d(p,f,y={}){var b;const{optional:h=!1}=y,g=((b=f==null?void 0:f[e])==null?void 0:b[l])||a,m=c.useContext(g);if(m)return m;if(i!==void 0)return i;if(!h)throw new Error(`\`${p}\` must be used within \`${s}\``)}return Ot(d,"useContext"),[u,d]}Ot(o,"createContext");const r=Ot(()=>{const s=n.map(i=>c.createContext(i));return Ot(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,zf(r,...t)]}Ot(Ff,"createContextScope");function zf(...e){const t=e[0];if(e.length===1)return t;const n=Ot(()=>{const o=e.map(r=>({useScope:r(),scopeName:r.scopeName}));return Ot(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}Ot(zf,"composeContextScopes");var xo=globalThis!=null&&globalThis.document?c.useLayoutEffect:()=>{},Qx=Object.defineProperty,Jx=(e,t)=>Qx(e,"name",{value:t,configurable:!0}),e2=Ro[" useId ".trim().toString()]||(()=>{}),t2=0;function qr(e){const[t,n]=c.useState(e2());return xo(()=>{e||n(o=>o??String(t2++))},[e]),e||(t?`radix-${t}`:"")}Jx(qr,"useId");var n2=Object.defineProperty,o2=(e,t)=>n2(e,"name",{value:t,configurable:!0}),zl=Ro[" useEffectEvent ".trim().toString()],Vl=Ro[" useInsertionEffect ".trim().toString()];function Vf(e){if(typeof zl=="function")return zl(e);const t=c.useRef(()=>{throw new Error("Cannot call an event handler while rendering.")});return typeof Vl=="function"?Vl(()=>{t.current=e}):xo(()=>{t.current=e}),c.useMemo(()=>((...n)=>{var o;return(o=t.current)==null?void 0:o.call(t,...n)}),[])}o2(Vf,"useEffectEvent");var r2=Object.defineProperty,pr=(e,t)=>r2(e,"name",{value:t,configurable:!0}),s2=Ro[" useInsertionEffect ".trim().toString()]||xo;function $f({prop:e,defaultProp:t,onChange:n=pr(()=>{},"onChange"),caller:o}){const[r,s,i]=Hf({defaultProp:t,onChange:n}),a=e!==void 0,l=a?e:r,u=c.useCallback(d=>{var p;if(a){const f=jf(d)?d(e):d;f!==e&&((p=i.current)==null||p.call(i,f))}else s(d)},[a,e,s,i]);return[l,u]}pr($f,"useControllableState");function Hf({defaultProp:e,onChange:t}){const[n,o]=c.useState(e),r=c.useRef(n),s=c.useRef(t);return s2(()=>{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]}pr(Hf,"useUncontrolledState");function jf(e){return typeof e=="function"}pr(jf,"isFunction");var $l=Symbol("RADIX:SYNC_STATE");function i2(e,t,n,o){const{prop:r,defaultProp:s,onChange:i,caller:a}=t,l=r!==void 0,u=Vf(i),d=[{...n,state:s}];o&&d.push(o);const[p,f]=c.useReducer((m,b)=>{if(b.type===$l)return{...m,state:b.state};const v=e(m,b);return l&&!Object.is(v.state,m.state)&&u(v.state),v},...d),y=p.state,h=c.useRef(y);c.useEffect(()=>{h.current!==y&&(h.current=y,l||u(y))},[y,h,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:$l,state:r})},[r,p.state,l]),[g,f]}pr(i2,"useControllableStateReducer");var a2=Object.defineProperty,jt=(e,t)=>a2(e,"name",{value:t,configurable:!0});function nc(e){const t=c.forwardRef((n,o)=>{let{children:r,...s}=n,i=null,a=!1;const l=[];Gi(r)&&typeof Ar=="function"&&(r=Ar(r._payload)),c.Children.forEach(r,f=>{var y;if(qf(f)){a=!0;const h=f;let g="child"in h.props?h.props.child:h.props.children;Gi(g)&&typeof Ar=="function"&&(g=Ar(g._payload)),i=l2(h,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?Uf(i):void 0,d=Oo(o,u);if(!i){if(r||r===0)throw new Error(a?f2(e):d2(e));return r}const p=Wf(s,i.props??{});return i.type!==c.Fragment&&(p.ref=o?d:u),c.cloneElement(i,p)});return t.displayName=`${e}.Slot`,t}jt(nc,"createSlot");var Bf=Symbol.for("radix.slottable");function c2(e){const t=jt(n=>"child"in n?n.children(n.child):n.children,"Slottable");return t.displayName=`${e}.Slottable`,t.__radixId=Bf,t}jt(c2,"createSlottable");var l2=jt((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 Wf(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}}jt(Wf,"mergeProps");function Uf(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)}jt(Uf,"getElementRef");function qf(e){return c.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===Bf}jt(qf,"isSlottable");var u2=Symbol.for("react.lazy");function Gi(e){return e!=null&&typeof e=="object"&&"$$typeof"in e&&e.$$typeof===u2&&"_payload"in e&&Gf(e._payload)}jt(Gi,"isLazyComponent");function Gf(e){return typeof e=="object"&&e!==null&&"then"in e}jt(Gf,"isPromiseLike");var d2=jt(e=>`${e} failed to slot onto its children. Expected a single React element child or \`Slottable\`.`,"createSlotError"),f2=jt(e=>`${e} failed to slot onto its \`Slottable\`. Expected \`Slottable\` to receive a single React element child.`,"createSlottableError"),Ar=Ro[" use ".trim().toString()],p2=Object.defineProperty,h2=(e,t)=>p2(e,"name",{value:t,configurable:!0}),g2=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],ti=g2.reduce((e,t)=>{const n=nc(`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),Y.jsx(l,{...a,ref:s})});return o.displayName=`Primitive.${t}`,{...e,[t]:o}},{});function Yf(e,t){e&&Dt.flushSync(()=>e.dispatchEvent(t))}h2(Yf,"dispatchDiscreteCustomEvent");var m2=Object.defineProperty,y2=(e,t)=>m2(e,"name",{value:t,configurable:!0});function So(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)}),[])}y2(So,"useCallbackRef");var b2=Object.defineProperty,ht=(e,t)=>b2(e,"name",{value:t,configurable:!0}),Yi="dismissableLayer.update",v2="dismissableLayer.pointerDownOutside",x2="dismissableLayer.focusOutside",Hl,Xf=c.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set,dismissableSurfaces:new Set}),S2=c.forwardRef(ht(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(Xf),[f,y]=c.useState(null),h=(f==null?void 0:f.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,g]=c.useState({}),m=Oo(n,y),b=Array.from(p.layers),[v]=[...p.layersWithOutsidePointerEventsDisabled].slice(-1),x=v?b.indexOf(v):-1,S=f?b.indexOf(f):-1,w=p.layersWithOutsidePointerEventsDisabled.size>0,R=S>=x,C=c.useRef(!1),k=Zf(O=>{i==null||i(O),l==null||l(O),O.defaultPrevented||u==null||u()},{ownerDocument:h,deferPointerDownOutside:r,isDeferredPointerDownOutsideRef:C,dismissableSurfaces:p.dismissableSurfaces,shouldHandlePointerDownOutside:c.useCallback(O=>{if(!(O instanceof Node))return!1;const D=[...p.branches].some(A=>A.contains(O));return R&&!D},[p.branches,R])}),T=Qf(O=>{if(r&&C.current)return;const D=O.target;[...p.branches].some(P=>P.contains(D))||(a==null||a(O),l==null||l(O),O.defaultPrevented||u==null||u())},h),E=f?S===b.length-1:!1,N=So(O=>{O.key==="Escape"&&(s==null||s(O),!O.defaultPrevented&&u&&(O.preventDefault(),u()))});return c.useEffect(()=>{if(E)return h.addEventListener("keydown",N,{capture:!0}),()=>h.removeEventListener("keydown",N,{capture:!0})},[h,E,N]),c.useEffect(()=>{if(f)return o&&(p.layersWithOutsidePointerEventsDisabled.size===0&&(Hl=h.body.style.pointerEvents,h.body.style.pointerEvents="none"),p.layersWithOutsidePointerEventsDisabled.add(f)),p.layers.add(f),Xi(),()=>{o&&(p.layersWithOutsidePointerEventsDisabled.delete(f),p.layersWithOutsidePointerEventsDisabled.size===0&&(h.body.style.pointerEvents=Hl))}},[f,h,o,p]),c.useEffect(()=>()=>{f&&(p.layers.delete(f),p.layersWithOutsidePointerEventsDisabled.delete(f),Xi())},[f,p]),c.useEffect(()=>{const O=ht(()=>g({}),"handleUpdate");return document.addEventListener(Yi,O),()=>document.removeEventListener(Yi,O)},[]),Y.jsx(ti.div,{...d,ref:m,style:{pointerEvents:w?R?"auto":"none":void 0,...t.style},onFocusCapture:Vn(t.onFocusCapture,T.onFocusCapture),onBlurCapture:Vn(t.onBlurCapture,T.onBlurCapture),onPointerDownCapture:Vn(t.onPointerDownCapture,k.onPointerDownCapture)})},"DismissableLayer"));function Kf(){const e=c.useContext(Xf),[t,n]=c.useState(null);return c.useEffect(()=>{if(t)return e.dismissableSurfaces.add(t),()=>{e.dismissableSurfaces.delete(t)}},[t,e.dismissableSurfaces]),n}ht(Kf,"useDismissableLayerSurface");var w2=ht(()=>!0,"IS_TRUE");function Zf(e,t){const{ownerDocument:n=globalThis==null?void 0:globalThis.document,deferPointerDownOutside:o=!1,isDeferredPointerDownOutsideRef:r,dismissableSurfaces:s,shouldHandlePointerDownOutside:i=w2}=t,a=So(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()}ht(f,"resetOutsideInteraction");function y(){return Array.from(d.current.values()).some(Boolean)}ht(y,"isOutsideInteractionIntercepted");function h(x){if(!u.current)return;const S=x.target;S instanceof Node&&[...s].some(R=>R.contains(S))||d.current.set(x.type,!0),x.type==="click"&&window.setTimeout(()=>{u.current&&p.current()},0)}ht(h,"handleInteractionCapture");function g(x){u.current&&d.current.set(x.type,!1)}ht(g,"handleInteractionBubble");const m=ht(x=>{if(x.target&&!l.current){let S=function(){n.removeEventListener("click",p.current);const R=y();f(),R||oc(v2,a,w,{discrete:!0})};if(ht(S,"handleAndDispatchPointerDownOutsideEvent"),!i(x.target)){n.removeEventListener("click",p.current),f(),l.current=!1;return}const w={originalEvent:x};u.current=!0,r.current=o&&x.button===0,d.current.clear(),!o||x.button!==0?S():(n.removeEventListener("click",p.current),p.current=S,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 x of b)n.addEventListener(x,h,!0),n.addEventListener(x,g);const v=window.setTimeout(()=>{n.addEventListener("pointerdown",m)},0);return()=>{window.clearTimeout(v),n.removeEventListener("pointerdown",m),n.removeEventListener("click",p.current);for(const x of b)n.removeEventListener(x,h,!0),n.removeEventListener(x,g)}},[n,a,o,r,s,i]),{onPointerDownCapture:ht(()=>l.current=!0,"onPointerDownCapture")}}ht(Zf,"usePointerDownOutside");function Qf(e,t=globalThis==null?void 0:globalThis.document){const n=So(e),o=c.useRef(!1);return c.useEffect(()=>{const r=ht(s=>{s.target&&!o.current&&oc(x2,n,{originalEvent:s},{discrete:!1})},"handleFocus");return t.addEventListener("focusin",r),()=>t.removeEventListener("focusin",r)},[t,n]),{onFocusCapture:ht(()=>o.current=!0,"onFocusCapture"),onBlurCapture:ht(()=>o.current=!1,"onBlurCapture")}}ht(Qf,"useFocusOutside");function Xi(){const e=new CustomEvent(Yi);document.dispatchEvent(e)}ht(Xi,"dispatchUpdate");function oc(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?Yf(r,s):r.dispatchEvent(s)}ht(oc,"handleAndDispatchCustomEvent");var R2=Object.defineProperty,St=(e,t)=>R2(e,"name",{value:t,configurable:!0}),ki="focusScope.autoFocusOnMount",Ci="focusScope.autoFocusOnUnmount",jl={bubbles:!1,cancelable:!0},k2=c.forwardRef(St(function(t,n){const{loop:o=!1,trapped:r=!1,onMountAutoFocus:s,onUnmountAutoFocus:i,...a}=t,[l,u]=c.useState(null),d=So(s),p=So(i),f=c.useRef(null),y=Oo(n,u),h=c.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;c.useEffect(()=>{if(r){let m=function(S){if(h.paused||!l)return;const w=S.target;l.contains(w)?f.current=w:tn(f.current,{select:!0})},b=function(S){if(h.paused||!l)return;const w=S.relatedTarget;w!==null&&(l.contains(w)||tn(f.current,{select:!0}))},v=function(S){if(document.activeElement===document.body)for(const R of S)R.removedNodes.length>0&&tn(l)};St(m,"handleFocusIn"),St(b,"handleFocusOut"),St(v,"handleMutations"),document.addEventListener("focusin",m),document.addEventListener("focusout",b);const x=new MutationObserver(v);return l&&x.observe(l,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",m),document.removeEventListener("focusout",b),x.disconnect()}}},[r,l,h.paused]),c.useEffect(()=>{if(l){Bl.add(h);const m=document.activeElement;if(!l.contains(m)){const v=new CustomEvent(ki,jl);l.addEventListener(ki,d),l.dispatchEvent(v),v.defaultPrevented||(Jf(rp(rc(l)),{select:!0}),document.activeElement===m&&tn(l))}return()=>{l.removeEventListener(ki,d),setTimeout(()=>{const v=new CustomEvent(Ci,jl);l.addEventListener(Ci,p),l.dispatchEvent(v),v.defaultPrevented||tn(m??document.body,{select:!0}),l.removeEventListener(Ci,p),Bl.remove(h)},0)}}},[l,d,p,h]);const g=c.useCallback(m=>{if(!o&&!r||h.paused)return;const b=m.key==="Tab"&&!m.altKey&&!m.ctrlKey&&!m.metaKey,v=document.activeElement;if(b&&v){const x=m.currentTarget,[S,w]=ep(x);S&&w?!m.shiftKey&&v===w?(m.preventDefault(),o&&tn(S,{select:!0})):m.shiftKey&&v===S&&(m.preventDefault(),o&&tn(w,{select:!0})):v===x&&m.preventDefault()}},[o,r,h.paused]);return Y.jsx(ti.div,{tabIndex:-1,...a,ref:y,onKeyDown:g})},"FocusScope"));function Jf(e,{select:t=!1}={}){const n=document.activeElement;for(const o of e)if(tn(o,{select:t}),document.activeElement!==n)return}St(Jf,"focusFirst");function ep(e){const t=rc(e),n=Ki(t,e),o=Ki(t.reverse(),e);return[n,o]}St(ep,"getTabbableEdges");function rc(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:St(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}St(rc,"getTabbableCandidates");function Ki(e,t){const n=typeof t.checkVisibility=="function"&&t.checkVisibility({checkVisibilityCSS:!0});for(const o of e)if(!(n?!o.checkVisibility({checkVisibilityCSS:!0}):tp(o,{upTo:t})))return o}St(Ki,"findVisible");function tp(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}St(tp,"isHidden");function np(e){return e instanceof HTMLInputElement&&"select"in e}St(np,"isSelectableInput");function tn(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&np(e)&&t&&e.select()}}St(tn,"focus");var Bl=op();function op(){let e=[];return{add(t){const n=e[0];t!==n&&(n==null||n.pause()),e=Zi(e,t),e.unshift(t)},remove(t){var n;e=Zi(e,t),(n=e[0])==null||n.resume()}}}St(op,"createFocusScopesStack");function Zi(e,t){const n=[...e],o=n.indexOf(t);return o!==-1&&n.splice(o,1),n}St(Zi,"arrayRemove");function rp(e){return e.filter(t=>t.tagName!=="A")}St(rp,"removeLinks");var C2=Object.defineProperty,E2=(e,t)=>C2(e,"name",{value:t,configurable:!0}),P2=c.forwardRef(E2(function(t,n){var l;const{container:o,...r}=t,[s,i]=c.useState(!1);xo(()=>i(!0),[]);const a=o||s&&((l=globalThis==null?void 0:globalThis.document)==null?void 0:l.body);return a?Dt.createPortal(Y.jsx(ti.div,{...r,ref:n}),a):null},"Portal")),M2=Object.defineProperty,cn=(e,t)=>M2(e,"name",{value:t,configurable:!0});function sp(e,t){return c.useReducer((n,o)=>t[n][o]??n,e)}cn(sp,"useStateMachine");var sc=cn(e=>{const{present:t,children:n}=e,o=ip(t),r=typeof n=="function"?n({present:o.isPresent}):c.Children.only(n),s=ap(o.ref,cp(r));return typeof n=="function"||o.isPresent?c.cloneElement(r,{ref:s}):null},"Presence");function ip(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]=sp(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??io(o.current),i.current=void 0):s.current="none"},[l]),xo(()=>{const d=o.current,p=r.current;if(p!==e){const y=s.current,h=io(d);e?(i.current=h,u("MOUNT")):h==="none"||(d==null?void 0:d.display)==="none"?u("UNMOUNT"):u(p&&y!==h?"ANIMATION_OUT":"UNMOUNT"),r.current=e}},[e,u]),xo(()=>{if(t){let d;const p=t.ownerDocument.defaultView??window,f=cn(h=>{const m=io(o.current).includes(CSS.escape(h.animationName));if(h.target===t&&m&&(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=cn(h=>{h.target===t&&(s.current=io(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=io(p)}else o.current=null;n(d)},[])}}cn(ip,"usePresence");function Qi(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}cn(Qi,"setRef");function ap(...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=Qi(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():Qi(o[i],null)}}},[])}cn(ap,"useStableComposedRefs");function io(e){return(e==null?void 0:e.animationName)||"none"}cn(io,"getAnimationName");function cp(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)}cn(cp,"getElementRef");var T2=Object.defineProperty,ic=(e,t)=>T2(e,"name",{value:t,configurable:!0}),Nr=0,Wt=null;function I2(e){return ac(),e.children}ic(I2,"FocusGuards");function ac(){c.useEffect(()=>{Wt||(Wt={start:Ji(),end:Ji()});const{start:e,end:t}=Wt;return document.body.firstElementChild!==e&&document.body.insertAdjacentElement("afterbegin",e),document.body.lastElementChild!==t&&document.body.insertAdjacentElement("beforeend",t),Nr++,()=>{Nr===1&&(Wt==null||Wt.start.remove(),Wt==null||Wt.end.remove(),Wt=null),Nr=Math.max(0,Nr-1)}},[])}ic(ac,"useFocusGuards");function Ji(){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}ic(Ji,"createFocusGuard");var qt=function(){return qt=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},qt.apply(this,arguments)};function lp(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 O2(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 Gr="right-scroll-bar-position",Yr="width-before-scroll-bar",A2="with-scroll-bars-hidden",N2="--removed-body-scroll-bar-size";function Ei(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function D2(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 _2=typeof window<"u"?c.useLayoutEffect:c.useEffect,Wl=new WeakMap;function L2(e,t){var n=D2(null,function(o){return e.forEach(function(r){return Ei(r,o)})});return _2(function(){var o=Wl.get(n);if(o){var r=new Set(o),s=new Set(e),i=n.current;r.forEach(function(a){s.has(a)||Ei(a,null)}),s.forEach(function(a){r.has(a)||Ei(a,i)})}Wl.set(n,e)},[e]),n}function F2(e){return e}function z2(e,t){t===void 0&&(t=F2);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 V2(e){e===void 0&&(e={});var t=z2(null);return t.options=qt({async:!0,ssr:!1},e),t}var up=function(e){var t=e.sideCar,n=lp(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,qt({},n))};up.isSideCarExport=!0;function $2(e,t){return e.useMedium(t),up}var dp=V2(),Pi=function(){},ni=c.forwardRef(function(e,t){var n=c.useRef(null),o=c.useState({onScrollCapture:Pi,onWheelCapture:Pi,onTouchMoveCapture:Pi}),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,h=e.noIsolation,g=e.inert,m=e.allowPinchZoom,b=e.as,v=b===void 0?"div":b,x=e.gapMode,S=lp(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),w=f,R=L2([n,t]),C=qt(qt({},S),r);return c.createElement(c.Fragment,null,d&&c.createElement(w,{sideCar:dp,removeScrollBar:u,shards:p,noRelative:y,noIsolation:h,inert:g,setCallbacks:s,allowPinchZoom:!!m,lockRef:n,gapMode:x}),i?c.cloneElement(c.Children.only(a),qt(qt({},C),{ref:R})):c.createElement(v,qt({},C,{className:l,ref:R}),a))});ni.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};ni.classNames={fullWidth:Yr,zeroRight:Gr};var H2=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function j2(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=H2();return t&&e.setAttribute("nonce",t),e}function B2(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function W2(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var U2=function(){var e=0,t=null;return{add:function(n){e==0&&(t=j2())&&(B2(t,n),W2(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},q2=function(){var e=U2();return function(t,n){c.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},fp=function(){var e=q2(),t=function(n){var o=n.styles,r=n.dynamic;return e(o,r),null};return t},G2={left:0,top:0,right:0,gap:0},Mi=function(e){return parseInt(e||"",10)||0},Y2=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[Mi(n),Mi(o),Mi(r)]},X2=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return G2;var t=Y2(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])}},K2=fp(),fo="data-scroll-locked",Z2=function(e,t,n,o){var r=e.left,s=e.top,i=e.right,a=e.gap;return n===void 0&&(n="margin"),`
|
|
918
|
+
.`.concat(A2,` {
|
|
849
919
|
overflow: hidden `).concat(o,`;
|
|
850
920
|
padding-right: `).concat(a,"px ").concat(o,`;
|
|
851
921
|
}
|
|
@@ -862,7 +932,7 @@ var uh=Object.defineProperty;var Cc=e=>{throw TypeError(e)};var dh=(e,t,n)=>t in
|
|
|
862
932
|
`),n==="padding"&&"padding-right: ".concat(a,"px ").concat(o,";")].filter(Boolean).join(""),`
|
|
863
933
|
}
|
|
864
934
|
|
|
865
|
-
.`).concat(
|
|
935
|
+
.`).concat(Gr,` {
|
|
866
936
|
right: `).concat(a,"px ").concat(o,`;
|
|
867
937
|
}
|
|
868
938
|
|
|
@@ -870,7 +940,7 @@ var uh=Object.defineProperty;var Cc=e=>{throw TypeError(e)};var dh=(e,t,n)=>t in
|
|
|
870
940
|
margin-right: `).concat(a,"px ").concat(o,`;
|
|
871
941
|
}
|
|
872
942
|
|
|
873
|
-
.`).concat(
|
|
943
|
+
.`).concat(Gr," .").concat(Gr,` {
|
|
874
944
|
right: 0 `).concat(o,`;
|
|
875
945
|
}
|
|
876
946
|
|
|
@@ -879,9 +949,9 @@ var uh=Object.defineProperty;var Cc=e=>{throw TypeError(e)};var dh=(e,t,n)=>t in
|
|
|
879
949
|
}
|
|
880
950
|
|
|
881
951
|
body[`).concat(fo,`] {
|
|
882
|
-
`).concat(
|
|
952
|
+
`).concat(N2,": ").concat(a,`px;
|
|
883
953
|
}
|
|
884
|
-
`)},Ul=function(){var e=parseInt(document.body.getAttribute(fo)||"0",10);return isFinite(e)?e:0},
|
|
954
|
+
`)},Ul=function(){var e=parseInt(document.body.getAttribute(fo)||"0",10);return isFinite(e)?e:0},Q2=function(){c.useEffect(function(){return document.body.setAttribute(fo,(Ul()+1).toString()),function(){var e=Ul()-1;e<=0?document.body.removeAttribute(fo):document.body.setAttribute(fo,e.toString())}},[])},J2=function(e){var t=e.noRelative,n=e.noImportant,o=e.gapMode,r=o===void 0?"margin":o;Q2();var s=c.useMemo(function(){return X2(r)},[r]);return c.createElement(K2,{styles:Z2(s,!t,r,n?"":"!important")})},ea=!1;if(typeof window<"u")try{var Dr=Object.defineProperty({},"passive",{get:function(){return ea=!0,!0}});window.addEventListener("test",Dr,Dr),window.removeEventListener("test",Dr,Dr)}catch{ea=!1}var Jn=ea?{passive:!1}:!1,eS=function(e){return e.tagName==="TEXTAREA"},pp=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return n[t]!=="hidden"&&!(n.overflowY===n.overflowX&&!eS(e)&&n[t]==="visible")},tS=function(e){return pp(e,"overflowY")},nS=function(e){return pp(e,"overflowX")},ql=function(e,t){var n=t.ownerDocument,o=t;do{typeof ShadowRoot<"u"&&o instanceof ShadowRoot&&(o=o.host);var r=hp(e,o);if(r){var s=gp(e,o),i=s[1],a=s[2];if(i>a)return!0}o=o.parentNode}while(o&&o!==n.body);return!1},oS=function(e){var t=e.scrollTop,n=e.scrollHeight,o=e.clientHeight;return[t,n,o]},rS=function(e){var t=e.scrollLeft,n=e.scrollWidth,o=e.clientWidth;return[t,n,o]},hp=function(e,t){return e==="v"?tS(t):nS(t)},gp=function(e,t){return e==="v"?oS(t):rS(t)},sS=function(e,t){return e==="h"&&t==="rtl"?-1:1},iS=function(e,t,n,o,r){var s=sS(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=gp(e,a),h=y[0],g=y[1],m=y[2],b=g-m-s*h;(h||b)&&hp(e,a)&&(p+=b,f+=h);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},_r=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},Gl=function(e){return[e.deltaX,e.deltaY]},Yl=function(e){return e&&"current"in e?e.current:e},aS=function(e,t){return e[0]===t[0]&&e[1]===t[1]},cS=function(e){return`
|
|
885
955
|
.block-interactivity-`.concat(e,` {pointer-events: none;}
|
|
886
956
|
.allow-interactivity-`).concat(e,` {pointer-events: all;}
|
|
887
|
-
`)},X2=0,eo=[];function K2(e){var t=c.useRef([]),n=c.useRef([0,0]),o=c.useRef(),r=c.useState(X2++)[0],s=c.useState(fp)[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=y2([e.lockRef.current],(e.shards||[]).map(Yl),!0).filter(Boolean);return g.forEach(function(m){return m.classList.add("allow-interactivity-".concat(r))}),function(){document.body.classList.remove("block-interactivity-".concat(r)),g.forEach(function(m){return m.classList.remove("allow-interactivity-".concat(r))})}}},[e.inert,e.lockRef.current,e.shards]);var a=c.useCallback(function(g,m){if("touches"in g&&g.touches.length===2||g.type==="wheel"&&g.ctrlKey)return!i.current.allowPinchZoom;var b=Lr(g),v=n.current,x="deltaX"in g?g.deltaX:v[0]-b[0],S="deltaY"in g?g.deltaY:v[1]-b[1],w,R=g.target,C=Math.abs(x)>Math.abs(S)?"h":"v";if("touches"in g&&C==="h"&&R.type==="range")return!1;var k=window.getSelection(),T=k&&k.anchorNode,E=T?T===R||T.contains(R):!1;if(E)return!1;var N=Gl(C,R);if(!N)return!0;if(N?w=C:(w=C==="v"?"h":"v",N=Gl(C,R)),!N)return!1;if(!o.current&&"changedTouches"in g&&(x||S)&&(o.current=w),!w)return!0;var O=o.current||w;return G2(O,m,g,O==="h"?x:S)},[]),l=c.useCallback(function(g){var m=g;if(!(!eo.length||eo[eo.length-1]!==s)){var b="deltaY"in m?ql(m):Lr(m),v=t.current.filter(function(w){return w.name===m.type&&(w.target===m.target||m.target===w.shadowParent)&&q2(w.delta,b)})[0];if(v&&v.should){m.cancelable&&m.preventDefault();return}if(!v){var x=(i.current.shards||[]).map(Yl).filter(Boolean).filter(function(w){return w.contains(m.target)}),S=x.length>0?a(m,x[0]):!i.current.noIsolation;S&&m.cancelable&&m.preventDefault()}}},[]),u=c.useCallback(function(g,m,b,v){var x={name:g,delta:m,target:b,should:v,shadowParent:Z2(b)};t.current.push(x),setTimeout(function(){t.current=t.current.filter(function(S){return S!==x})},1)},[]),d=c.useCallback(function(g){n.current=Lr(g),o.current=void 0},[]),p=c.useCallback(function(g){u(g.type,ql(g),g.target,a(g,e.lockRef.current))},[]),f=c.useCallback(function(g){u(g.type,Lr(g),g.target,a(g,e.lockRef.current))},[]);c.useEffect(function(){return eo.push(s),e.setCallbacks({onScrollCapture:p,onWheelCapture:p,onTouchMoveCapture:f}),document.addEventListener("wheel",l,Jn),document.addEventListener("touchmove",l,Jn),document.addEventListener("touchstart",d,Jn),function(){eo=eo.filter(function(g){return g!==s}),document.removeEventListener("wheel",l,Jn),document.removeEventListener("touchmove",l,Jn),document.removeEventListener("touchstart",d,Jn)}},[]);var y=e.removeScrollBar,h=e.inert;return c.createElement(c.Fragment,null,h?c.createElement(s,{styles:Y2(r)}):null,y?c.createElement(V2,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function Z2(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const Q2=E2(dp,K2);var mp=c.forwardRef(function(e,t){return c.createElement(ni,Gt({},e,{ref:t,sideCar:Q2}))});mp.classNames=ni.classNames;var J2=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},to=new WeakMap,_r=new WeakMap,Fr={},Ti=0,yp=function(e){return e&&(e.host||yp(e.parentNode))},eS=function(e,t){return t.map(function(n){if(e.contains(n))return n;var o=yp(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})},tS=function(e,t,n,o){var r=eS(t,Array.isArray(e)?e:[e]);Fr[n]||(Fr[n]=new WeakMap);var s=Fr[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),h=y!==null&&y!=="false",g=(to.get(f)||0)+1,m=(s.get(f)||0)+1;to.set(f,g),s.set(f,m),i.push(f),g===1&&h&&_r.set(f,!0),m===1&&f.setAttribute(n,"true"),h||f.setAttribute(o,"true")}catch(b){console.error("aria-hidden: cannot operate on ",f,b)}})};return d(t),a.clear(),Ti++,function(){i.forEach(function(p){var f=to.get(p)-1,y=s.get(p)-1;to.set(p,f),s.set(p,y),f||(_r.has(p)||p.removeAttribute(o),_r.delete(p)),y||p.removeAttribute(n)}),Ti--,Ti||(to=new WeakMap,to=new WeakMap,_r=new WeakMap,Fr={})}},nS=function(e,t,n){n===void 0&&(n="data-aria-hidden");var o=Array.from(Array.isArray(e)?e:[e]),r=J2(e);return r?(o.push.apply(o,Array.from(r.querySelectorAll("[aria-live], script"))),tS(o,r,n,"aria-hidden")):function(){return null}},oS=Object.defineProperty,dn=(e,t)=>oS(e,"name",{value:t,configurable:!0}),cc="Dialog",[bp,NE]=Ff(cc),[rS,Yn]=bp(cc),DE=dn(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]=$f({prop:o,defaultProp:r??!1,onChange:s,caller:cc}),[p,f]=c.useState(0),[y,h]=c.useState(0);return Y.jsx(rS,{scope:t,triggerRef:a,contentRef:l,contentId:Gr(),titleId:Gr(),descriptionId:Gr(),titlePresent:p>0,descriptionPresent:y>0,setTitleCount:f,setDescriptionCount:h,open:u,onOpenChange:d,onOpenToggle:c.useCallback(()=>d(g=>!g),[d]),modal:i,children:n})},"Dialog"),vp="DialogPortal",[sS,xp]=bp(vp,{forceMount:void 0}),LE=dn(e=>{const{__scopeDialog:t,forceMount:n,children:o,container:r}=e,s=Yn(vp,t);return Y.jsx(sS,{scope:t,forceMount:n,children:c.Children.map(o,i=>Y.jsx(sc,{present:n||s.open,children:Y.jsx(p2,{asChild:!0,container:r,children:i})}))})},"DialogPortal"),ta="DialogOverlay",_E=c.forwardRef(dn(function(t,n){const o=xp(ta,t.__scopeDialog),{forceMount:r=o.forceMount,...s}=t,i=Yn(ta,t.__scopeDialog);return i.modal?Y.jsx(sc,{present:r||i.open,children:Y.jsx(aS,{...s,ref:n})}):null},"DialogOverlay")),iS=nc("DialogOverlay.RemoveScroll"),aS=c.forwardRef(dn(function(t,n){const{__scopeDialog:o,...r}=t,s=Yn(ta,o),i=Kf(),a=Oo(n,i);return Y.jsx(mp,{as:iS,allowPinchZoom:!0,shards:[s.contentRef],children:Y.jsx(ti.div,{"data-state":lc(s.open),...r,ref:a,style:{pointerEvents:"auto",...r.style}})})},"DialogOverlayImpl")),er="DialogContent",FE=c.forwardRef(dn(function(t,n){const o=xp(er,t.__scopeDialog),{forceMount:r=o.forceMount,...s}=t,i=Yn(er,t.__scopeDialog);return Y.jsx(sc,{present:r||i.open,children:i.modal?Y.jsx(cS,{...s,ref:n}):Y.jsx(lS,{...s,ref:n})})},"DialogContent")),cS=c.forwardRef(dn(function(t,n){const o=Yn(er,t.__scopeDialog),r=c.useRef(null),s=Oo(n,o.contentRef,r);return c.useEffect(()=>{const i=r.current;if(i)return nS(i)},[]),Y.jsx(Sp,{...t,ref:s,trapFocus:o.open,disableOutsidePointerEvents:o.open,onCloseAutoFocus:Vn(t.onCloseAutoFocus,i=>{var a;i.preventDefault(),(a=o.triggerRef.current)==null||a.focus()}),onPointerDownOutside:Vn(t.onPointerDownOutside,i=>{const a=i.detail.originalEvent,l=a.button===0&&a.ctrlKey===!0;(a.button===2||l)&&i.preventDefault()}),onFocusOutside:Vn(t.onFocusOutside,i=>i.preventDefault())})},"DialogContentModal")),lS=c.forwardRef(dn(function(t,n){const o=Yn(er,t.__scopeDialog),r=c.useRef(!1),s=c.useRef(!1);return Y.jsx(Sp,{...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")),Sp=c.forwardRef(dn(function(t,n){const{__scopeDialog:o,trapFocus:r,onOpenAutoFocus:s,onCloseAutoFocus:i,...a}=t,l=Yn(er,o);return ac(),Y.jsx(Y.Fragment,{children:Y.jsx(u2,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:s,onUnmountAutoFocus:i,children:Y.jsx(a2,{role:"dialog",id:l.contentId,"aria-describedby":l.descriptionPresent?l.descriptionId:void 0,"aria-labelledby":l.titlePresent?l.titleId:void 0,"data-state":lc(l.open),...a,ref:n,deferPointerDownOutside:!0,onDismiss:()=>l.onOpenChange(!1)})})})},"DialogContentImpl"));function lc(e){return e?"open":"closed"}dn(lc,"getState");const wp=c.createContext(void 0);function Rp(e){const t=c.useContext(wp);if(t===void 0&&!e)throw new Error(We(33));return t}const uc=c.createContext(void 0);function Xn(e){const t=c.useContext(uc);if(t===void 0&&!e)throw new Error(We(36));return t}const kp=c.createContext(void 0);function oi(e=!0){const t=c.useContext(kp);if(t===void 0&&!e)throw new Error(We(25));return t}function uS(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=oi(!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:jo})},onMouseUp(y){if(p){const h=p.initialCursorPointRef.current;if(p.initialCursorPointRef.current=null,f&&h&&Math.abs(y.clientX-h.x)<=1&&Math.abs(y.clientY-h.y)<=1||f&&!ma&&y.button===2)return}a.current&&s.context.allowMouseUpTriggerRef.current&&(!f||y.button===2)&&l.type==="regular-item"&&zn(a.current,y,{detail:1})}}),[t,n,o,u,r,d,s,i,a,p,f,l])}const dS={type:"regular-item"};function fS(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}=Mt({disabled:n,focusableWhenDisabled:!0,native:a,composite:!0}),y=uS({closeOnClick:t,highlighted:o,id:r,nodeId:u,store:s,typingRef:i,itemRef:d,itemMetadata:l}),h=c.useCallback(m=>Et(y,{onMouseEnter(){l.type==="submenu-trigger"&&l.setActive()}},m,p),[y,p,l]),g=Tt(d,f);return c.useMemo(()=>({getItemProps:h,itemRef:g}),[h,g])}const Cp=c.createContext(void 0);function pS(){const e=c.useContext(Cp);if(e===void 0)throw new Error(We(31));return e}const zE=c.forwardRef(function(t,n){const{render:o,className:r,style:s,...i}=t,[a,l]=c.useState(void 0),u=Re("div",t,{ref:n,props:{role:"group","aria-labelledby":a,...i}});return Y.jsx(Cp.Provider,{value:l,children:u})}),VE=c.forwardRef(function(t,n){const{render:o,className:r,style:s,id:i,...a}=t,l=st(i),u=pS();return pe(()=>(u(l),()=>{u(d=>d===l?void 0:d)}),[u,l]),Re("div",t,{ref:n,props:{id:l,role:"presentation",...a}})}),$E=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=ur({guess:!0,label:i}),y=Rp(!0),h=st(s),{store:g}=Xn(),m=g.useState("disabled"),b=l||m,v=g.useState("isActive",f.index),x=g.useState("itemProps"),{getItemProps:S,itemRef:w}=fS({closeOnClick:u,disabled:b,highlighted:v,id:h,store:g,nativeButton:a,nodeId:y==null?void 0:y.context.nodeId,itemMetadata:dS});return Re("div",t,{state:{disabled:b,highlighted:v},props:[x,p,S],ref:[w,n,f.ref]})}),HE=c.forwardRef(function(t,n){const{render:o,className:r,style:s,finalFocus:i,...a}=t,{store:l}=Xn(),{side:u,align:d}=Rp(),p=Js()!=null,f=l.useState("open"),y=l.useState("transitionStatus"),h=l.useState("popupProps"),g=l.useState("mounted"),m=l.useState("instantType"),b=l.useState("activeTriggerElement"),v=l.useState("parent"),x=l.useState("lastOpenChangeReason"),S=l.useState("rootId"),w=l.useState("floatingRootContext"),R=l.useState("floatingTreeRoot"),C=l.useState("closeDelay"),k=l.useState("hoverEnabled"),T=l.useState("disabled"),E=l.useState("openMethod"),N=v.type==="context-menu";It({open:f,ref:l.context.popupRef,onComplete(){var z,F;f&&((F=(z=l.context).onOpenChangeComplete)==null||F.call(z,!0))}}),c.useEffect(()=>{function z(F){l.setOpen(!1,ke(F.reason,F.domEvent))}return R.events.on("close",z),()=>{R.events.off("close",z)}},[R.events,l]),$a(w,{enabled:k&&!T&&!N&&v.type!=="menubar",closeDelay:C});const O=l.useStateSetter("popupElement"),D={transitionStatus:y,side:u,align:d,open:f,nested:v.type==="menu",instant:m},A=Re("div",t,{state:D,ref:[n,l.context.popupRef,O],stateAttributesMapping:Ys,props:[h,{onKeyDown(z){p&&Gn.has(z.key)&&z.stopPropagation()}},lr(y),a,{"data-rootownerid":S}]});let P=v.type===void 0||N;return(b||v.type==="menubar"&&x!==Cs)&&(P=!0),Y.jsx(Is,{context:w,openInteractionType:E,modal:N,disabled:!g,returnFocus:i===void 0?P: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:A})}),Ep=c.createContext(void 0);function hS(){const e=c.useContext(Ep);if(e===void 0)throw new Error(We(32));return e}const jE=c.forwardRef(function(t,n){const{keepMounted:o=!1,...r}=t,{store:s}=Xn();return s.useState("mounted")||o?Y.jsx(Ep.Provider,{value:o,children:Y.jsx(Ts,{ref:n,...r})}):null}),BE=c.forwardRef(function(t,n){var ae;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:h=!1,disableAnchorTracking:g=!1,collisionAvoidance:m=vd,style:b,...v}=t,{store:x}=Xn(),S=hS(),w=oi(!0),R=x.useState("parent"),C=x.useState("floatingRootContext"),k=x.useState("floatingTreeRoot"),T=x.useState("mounted"),E=x.useState("open"),N=x.useState("modal"),O=x.useState("openMethod"),D=x.useState("activeTriggerElement"),A=x.useState("transitionStatus"),P=x.useState("positionerElement"),z=x.useState("instantType"),F=x.useState("adaptiveOrigin"),I=x.useState("lastOpenChangeReason"),L=x.useState("floatingNodeId"),M=x.useState("floatingParentNodeId"),_=C.useState("domReferenceElement"),H=c.useRef(null),$=Ls(P);let U=o,G=u,V=d,X=l,j=m;R.type==="context-menu"&&(U=o??((ae=R.context)==null?void 0:ae.anchor),X=X??"start",!a&&X!=="center"&&(V=t.alignOffset??2,G=t.sideOffset??-5));let K=a,de=X;R.type==="menu"?(K=K??"inline-end",de=de??"start",j=t.collisionAvoidance??Ma):R.type==="menubar"&&(K=K??(R.context.orientation==="vertical"?"inline-end":"bottom"),de=de??"start");const se=R.type==="context-menu",ne=Xs({anchor:U,floatingRootContext:C,positionMethod:w?"fixed":r,mounted:T,side:K,sideOffset:G,align:de,alignOffset:V,arrowPadding:se?0:y,collisionBoundary:p,collisionPadding:f,sticky:h,nodeId:L,keepMounted:S,disableAnchorTracking:g,collisionAvoidance:j,shift:se?{crossAxis:!("side"in j&&j.side==="flip"),rootBoundary:"layoutViewport"}:void 0,externalTree:k,adaptiveOrigin:F});c.useEffect(()=>{function ce(oe){oe.open&&(oe.parentNodeId===L&&x.set("hoverEnabled",!1),oe.nodeId!==L&&oe.parentNodeId===x.select("floatingParentNodeId")&&x.setOpen(!1,ke(Vo)))}return k.events.on("menuopenchange",ce),()=>{k.events.off("menuopenchange",ce)}},[x,k.events,L]),c.useEffect(()=>{if(x.select("floatingParentNodeId")==null)return;function ce(oe){if(oe.open||oe.nodeId!==x.select("floatingParentNodeId"))return;const le=oe.reason??Vo;x.setOpen(!1,ke(le))}return k.events.on("menuopenchange",ce),()=>{k.events.off("menuopenchange",ce)}},[k.events,x]);const re=nt();c.useEffect(()=>{E||re.clear()},[E,re]),c.useEffect(()=>{function ce(oe){if(!(!E||oe.nodeId!==x.select("floatingParentNodeId")))if(oe.target&&D&&D!==oe.target){const le=x.select("closeDelay");le>0?re.isStarted()||re.start(le,()=>{x.setOpen(!1,ke(Vo))}):x.setOpen(!1,ke(Vo))}else re.clear()}return k.events.on("itemhover",ce),()=>{k.events.off("itemhover",ce)}},[k.events,E,D,x,re]),c.useEffect(()=>{const ce={open:E,nodeId:L,parentNodeId:M,reason:x.select("lastOpenChangeReason")};k.events.emit("menuopenchange",ce)},[k.events,E,x,L,M]),pe(()=>{const ce=_,oe=H.current;if(ce&&(H.current=ce),oe&&ce&&ce!==oe){x.set("instantType",void 0);const le=new AbortController;return $(()=>{x.set("instantType","trigger-change")},le.signal),()=>{le.abort()}}},[_,$,x]);const q={open:E,side:ne.side,align:ne.align,anchorHidden:ne.anchorHidden,nested:R.type==="menu",instant:z},ie=R.type==="menubar"&&R.context.modal;Wa(E&&(ie||N&&I!==it),O==="touch",P,D);const ue=Zs(t,q,{styles:ne.positionerStyles,transitionStatus:A,props:v,refs:[n,x.useStateSetter("positionerElement")],hidden:!T,inert:!E}),Z=T&&R.type!=="menu"&&(R.type!=="menubar"&&N&&I!==it||R.type==="menubar"&&R.context.modal);let J=null;return R.type==="menubar"?J=R.context.contentElement:R.type===void 0&&(J=D),Y.jsxs(wp.Provider,{value:ne,children:[Z&&Y.jsx(Ks,{ref:R.type==="context-menu"||R.type==="nested-context-menu"?R.context.internalBackdropRef:null,inert:cr(!E),cutout:J}),Y.jsx(Ed,{id:L,children:Y.jsx(dr,{elementsRef:x.context.itemDomElements,labelsRef:x.context.itemLabels,children:ue})})]})}),gS=c.createContext(null);function Pp(e){return c.useContext(gS)}const mS={...Bs,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 yS extends ko{constructor(n){super({...vS(),...n},bS(),mS);Ue(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 bS(){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 Co}}function vS(){return{...js(),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 Ta,floatingNodeId:void 0,floatingParentNodeId:null,itemProps:Ke,keyboardEventRelay:void 0,closeDelay:0,adaptiveOrigin:void 0}}const xS=c.createContext(void 0);function SS(){return c.useContext(xS)}const wS=Na(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:h,defaultTriggerId:g=null,highlightItemOnHover:m=!0}=t,b=oi(!0),v=Xn(!0),x=Pp(!0),S=SS(),w=c.useMemo(()=>S&&v?{type:"menu",store:v.store}:x?{type:"menubar",context:x}:b&&!v?{type:"context-menu",context:b}:{type:void 0},[b,v,x,S]),R=RS({open:i,openProp:o,activeTriggerId:g,triggerIdProp:h,parent:w});R.useControlledProp("openProp",o),R.useControlledProp("triggerIdProp",h),R.useContextCallback("onOpenChangeComplete",s);const C=Cn(),k=Cn(),T=R.useState("floatingTreeRoot"),E=Ia(T),N=Mn(),O=R.useState("open"),D=R.useState("activeTriggerElement"),A=R.useState("positionerElement"),P=R.useState("hoverEnabled"),z=R.useState("disabled"),F=R.useState("lastOpenChangeReason"),I=R.useState("parent"),L=R.useState("activeIndex"),M=R.useState("payload"),_=R.useState("floatingParentNodeId"),H=c.useRef(null),$=c.useRef(I.type!=="context-menu"),U=nt(),G=c.useRef(!0),V=nt(),X=_!=null,{openMethod:j,triggerProps:K}=Yd(O);R.useSyncedValues({disabled:a,highlightItemOnHover:m,modal:I.type===void 0?l:void 0,openMethod:j,rootId:C}),Vs(R);const{forceUnmount:de}=$s(O,R,()=>{R.set("allowMouseEnter",!1)});pe(()=>{b&&!v?R.update({parent:{type:"context-menu",context:b},floatingNodeId:E,floatingParentNodeId:N}):v&&R.update({floatingNodeId:E,floatingParentNodeId:N})},[b,v,E,N,R]),c.useEffect(()=>{if(O||(H.current=null),I.type==="context-menu"){if(!O){U.clear(),$.current=!1;return}U.start(500,()=>{$.current=!0})}},[U,O,I.type]),pe(()=>{!O&&!P&&R.set("hoverEnabled",!0)},[O,P,R]);const se=he((ee,me)=>{const ye=me.reason;if(!ee&&!R.select("open")||O===ee&&me.trigger===D&&F===ye)return;const De=La(me);if(!ee&&me.trigger==null&&(me.trigger=D??void 0),r==null||r(ee,me),me.isCanceled)return;R.state.floatingRootContext.dispatchOpenChange(ee,me);const Me=me.event;if(ee===!1&&(Me==null?void 0:Me.type)==="click"&&Me.pointerType==="touch"&&!G.current)return;ee&&ye===co?(G.current=!1,V.start(300,()=>{G.current=!0})):(G.current=!0,V.clear());const Ge=(ye===$t||ye===jo)&&Me.detail===0,_e=!ee&&(ye===or||ye==null),ze={open:ee,openChangeReason:ye};H.current=me.event,Fs(ze,ee,me.trigger,De()),R.update(ze),I.type==="menubar"&&(ye===co||ye===xn||ye===it||ye===Fi||ye===Vo)?R.set("instantType","group"):Ge||_e?R.set("instantType",Ge?"click":"dismiss"):R.set("instantType",void 0)}),ne=zd({popupStore:R,floatingId:k,nested:N!=null,onOpenChange:se}),re=ne.context.events;pe(()=>{const ee=({open:me,eventDetails:ye})=>se(me,ye);return re.on("setOpen",ee),()=>{re==null||re.off("setOpen",ee)}},[re,se]);const q=c.useCallback(()=>{R.setOpen(!1,ke(Es))},[R]);c.useImperativeHandle(p,()=>({unmount:de,close:q}),[de,q]);let ie;I.type==="context-menu"&&(ie=I.context),c.useImperativeHandle(ie==null?void 0:ie.positionerRef,()=>A,[A]),c.useImperativeHandle(ie==null?void 0:ie.actionsRef,()=>({setOpen:se}),[se]);const ge=sr(ne,{enabled:!z,bubbles:{escapeKey:f&&I.type==="menu"},outsidePress(){var ee;return I.type!=="context-menu"||((ee=H.current)==null?void 0:ee.type)==="contextmenu"?!0:$.current},externalTree:X?T:void 0}),ue=On(),Z=c.useCallback(ee=>{R.select("activeIndex")!==ee&&R.set("activeIndex",ee)},[R]),J=Wd(ne,{enabled:!z,listRef:R.context.itemDomElements,activeIndex:L,nested:I.type!==void 0,loopFocus:u,orientation:d,parentOrientation:I.type==="menubar"?I.context.orientation:void 0,rtl:ue==="rtl",disabledIndices:Vt,onNavigate:Z,openOnArrowKeyDown:I.type!=="context-menu",externalTree:X?T:void 0,focusItemOnHover:m}),ae=c.useCallback(ee=>{R.context.typingRef.current=ee},[R]),ce=Ud(ne,{enabled:!z,listRef:R.context.itemLabels,elementsRef:R.context.itemDomElements,activeIndex:L,resetMs:y1,onMatch:ee=>{O&&ee!==L&&R.set("activeIndex",ee)},onTyping:ae}),oe=c.useMemo(()=>{const ee=Et(ce.reference,J.reference,ge.reference,{onMouseMove(){R.set("allowMouseEnter",!0)}},K);return ee["aria-haspopup"]="menu",ee["aria-expanded"]=O,ee},[R,ce.reference,J.reference,ge.reference,K,O]),le=c.useMemo(()=>{const ee=Et(J.trigger,ge.trigger,K);return ee["aria-haspopup"]="menu",ee["aria-expanded"]=!1,ee},[J.trigger,ge.trigger,K]),B=c.useMemo(()=>Et(ir,{id:k,role:"menu","aria-labelledby":D==null?void 0:D.id,onMouseMove(){R.set("allowMouseEnter",!0),I.type==="menu"&&R.set("hoverEnabled",!1)},onClick(){R.select("hoverEnabled")&&R.set("hoverEnabled",!1)},onKeyDown(ee){const me=R.select("keyboardEventRelay");me&&!ee.isPropagationStopped()&&me(ee)}},ce.floating,J.floating,ge.floating),[D,k,I.type,R,ce.floating,J.floating,ge.floating]),Q=J.item??Ke;Hs(R,{floatingRootContext:ne,activeTriggerProps:oe,inactiveTriggerProps:le,popupProps:B,itemProps:Q});const fe=c.useMemo(()=>({store:R,parent:w}),[R,w]),te=Y.jsxs(uc.Provider,{value:fe,children:[y&&Y.jsx(_s,{handle:y,store:R}),typeof n=="function"?n({payload:M}):n]});return I.type===void 0||I.type==="context-menu"?Y.jsx(Pd,{externalTree:T,children:te}):te});function RS(e){return gt(()=>new yS(e)).current}function dc(e){if(Ye(e)&&e.hasAttribute("data-rootownerid"))return e.getAttribute("data-rootownerid");if(!on(e))return dc(an(e))}function kS(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,Ie(s.currentTarget).addEventListener("click",()=>{r.current=!1},{once:!0}))},onClick:s=>{r.current&&(r.current=!1,s.preventBaseUIHandler())}}:Ke,[t,n,o])}const WE=Fd(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,...h}=t,g=Xn(!0),b=Ws(f)??(g==null?void 0:g.store);if(!b)throw new Error(We(85));const v=st(l),x=b.useState("isTriggerActive",v),S=b.useState("floatingRootContext"),w=b.useState("isOpenedByTrigger",v),R=b.useState("triggerPopupId",v),C=c.useRef(null),k=ES(),T=vs(!0),E=Tn(),N=c.useMemo(()=>E??new Ta,[E]),O=Ia(N),D=Mn(),{registerTrigger:A,isMountedByThisTrigger:P}=zs(v,C,b,{payload:y,closeDelay:p,parent:k,floatingTreeRoot:N,floatingNodeId:O,floatingParentNodeId:D,keyboardEventRelay:T==null?void 0:T.relayKeyboardEvent}),z=k.type==="menubar",F=b.useState("disabled"),I=i||F||z&&k.context.disabled,{getButtonProps:L,buttonRef:M}=Mt({disabled:I,native:a});c.useEffect(()=>{!w&&k.type===void 0&&(b.context.allowMouseUpTriggerRef.current=!1)},[b,w,k.type]);const _=c.useRef(null),H=nt(),$=he(ae=>{if(!_.current)return;H.clear(),b.context.allowMouseUpTriggerRef.current=!1;const ce=ae.target;ve(_.current,ce)||ve(b.select("positionerElement"),ce)||ce===_.current||ce!=null&&dc(ce)===b.select("rootId")||Cf(ae,_.current)||N.events.emit("close",{domEvent:ae,reason:Sa})});c.useEffect(()=>{w&&b.select("lastOpenChangeReason")===it&&Ie(_.current).addEventListener("mouseup",$,{once:!0})},[w,$,b]);const U=z&&k.context.hasSubmenuOpen,V=Ha(S,{enabled:(u??U)&&!I&&(!z||U&&!P),handleClose:ja({blockPointerEvents:!z}),mouseOnly:!0,move:!1,restMs:k.type===void 0?d:void 0,delay:{close:p},triggerElementRef:C,externalTree:N,isActiveTrigger:x,isClosing:()=>b.select("transitionStatus")==="ending"}),X=CS(w,b.select("lastOpenChangeReason")),j=Os(S,{enabled:!I,event:w&&z?"click":"mousedown",toggle:!0,ignoreMouse:!1,stickIfOpen:k.type===void 0?X:!1}),K=jd(S,{enabled:!I&&U}),de=kS({open:w,enabled:z,mouseDownAction:"open"}),se=c.useMemo(()=>Et(K.reference,j.reference),[K.reference,j.reference]),ne=b.useState("triggerProps",P),{preFocusGuardRef:re,handlePreFocusGuardFocus:q,handleFocusTargetFocus:ie}=qd(b,C),ge={disabled:I,open:w},ue=[_,n,M,A,C],Z=[se,V??Ke,ne,{"aria-haspopup":"menu","aria-controls":R,id:v,onMouseDown:ae=>{if(b.select("open"))return;H.start(200,()=>{b.context.allowMouseUpTriggerRef.current=!0}),Ie(ae.currentTarget).addEventListener("mouseup",$,{once:!0})}},z?{role:"menuitem"}:{},de,h,L],J=Re("button",t,{enabled:!z,stateAttributesMapping:Zo,state:ge,ref:ue,props:Z});return z?Y.jsx(Ga,{tag:"button",render:o,className:r,style:s,state:ge,refs:ue,props:Z,stateAttributesMapping:Zo}):w?Y.jsxs(c.Fragment,{children:[Y.jsx(wn,{ref:re,onFocus:q},`${v}-pre-focus-guard`),Y.jsx(c.Fragment,{children:J},v),Y.jsx(wn,{ref:b.context.triggerFocusTargetRef,onFocus:ie},`${v}-post-focus-guard`)]}):Y.jsx(c.Fragment,{children:J},v)});function CS(e,t){const n=nt(),[o,r]=c.useState(!1);return pe(()=>{e&&t===it?(r(!0),n.start(bd,()=>{r(!1)})):e||(n.clear(),r(!1))},[e,t,n]),o}function ES(){const e=Pp();return c.useMemo(()=>e?{type:"menubar",context:e}:{type:void 0},[e])}function PS(e){const{open:t,defaultOpen:n,onOpenChange:o,disabled:r}=e,[s,i]=Ht({controlled:t,default:n,name:"Collapsible",state:"open"}),{mounted:a,setMounted:l,transitionStatus:u}=In(s,!0,!0),d=st(),[p,f]=c.useState(),y=p===null?void 0:p??d,h=he(g=>{const m=!s,b=ke($t,g.nativeEvent);o(m,b),!b.isCanceled&&i(m)});return c.useMemo(()=>({defaultPanelId:d,disabled:r,handleTrigger:h,mounted:a,open:s,panelId:y,setMounted:l,setOpen:i,setPanelIdState:f,transitionStatus:u}),[d,r,h,a,s,y,l,i,f,u])}const Mp=c.createContext(void 0);function Tp(){const e=c.useContext(Mp);if(e===void 0)throw new Error(We(15));return e}let fc=(function(e){return e.open="data-open",e.closed="data-closed",e[e.startingStyle=is.startingStyle]="startingStyle",e[e.endingStyle=is.endingStyle]="endingStyle",e})({}),MS=(function(e){return e.panelOpen="data-panel-open",e})({});const TS={[fc.open]:""},IS={[fc.closed]:""},OS={open(e){return e?{[MS.panelOpen]:""}:null}},AS={open(e){return e?TS:IS}},Ip={...AS,...Kt},UE=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=he(a),f=PS({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]),h=c.useMemo(()=>({...f,onOpenChange:p,state:y}),[f,p,y]),g=Re("div",t,{state:y,ref:n,props:d,stateAttributesMapping:Ip});return Y.jsx(Mp.Provider,{value:h,children:g})}),NS={...OS,...Kt},GE=c.forwardRef(function(t,n){const{panelId:o,open:r,handleTrigger:s,state:i,disabled:a}=Tp(),{className:l,disabled:u=a,render:d,nativeButton:p=!0,style:f,...y}=t,{getButtonProps:h,buttonRef:g}=Mt({disabled:u,focusableWhenDisabled:!0,native:p});return Re("button",t,{state:i,ref:[n,g],props:[{"aria-controls":r?o:void 0,"aria-expanded":r,onClick:s},y,h],stateAttributesMapping:NS})}),Fo={height:void 0,width:void 0};function DS(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,h]=c.useState(Fo),g=c.useRef(Fo),m=c.useRef(!1),b=c.useRef(a),v=c.useRef(!1),[x,S]=c.useState(!1),w=c.useRef(null),R=Tt(t,p),C=rt(a),k=Ls(p),T=!a&&!s,E=x?"idle":d,N=a&&(b.current||v.current),O=!a&&s&&f.current==="css-animation"&&y.height===void 0&&y.width===void 0?g.current:y,D=n&&T&&f.current!=="css-animation",A=he((L,M=!0)=>{M&&(g.current=L),h(L)}),P=he(()=>{var L;(L=w.current)==null||L.call(w),w.current=null}),z=he(L=>{P(),w.current=()=>{w.current=null,L()}}),F=he(()=>{a&&s&&f.current==="css-animation"&&(v.current=!0)});pe(()=>{!x||d==="starting"||S(!1)},[x,d]),c.useEffect(()=>()=>{F(),P()},[F,P]),pe(()=>{const L=p.current;if(!L)return;!a&&w.current&&P();const M=LS(L,N);if(f.current=M,a&&d==="idle"&&b.current&&M==="css-animation"){g.current=no(L);return}if(a&&d==="starting"){const $=m.current;if(m.current=!1,M==="none"){A(no(L)),S(!0);return}if(M==="css-transition"){const V=_S(L);if(A(no(L)),!$)return V;const X=zr(L,"transition-duration","0s");return z(X),S(!0),V}A(no(L));const U=zr(L,"animation-name","none");if(!$){U();return}const G=zr(L,"animation-duration","0s");U(),z(G),S(!0);return}if(!a&&s&&(d==="idle"||d==="starting")){if(b.current=!1,v.current=!1,M==="none"){A(Fo,!1),l(!1);return}A(no(L));return}if(d!=="ending")return;if(M==="none"){l(!1);return}const _=no(L);if(!(_.height>0||_.width>0)){l(!1);return}A(_),M==="css-animation"&&zr(L,"animation-name","none")()},[s,a,P,A,l,z,N,d]),It({enabled:a&&s&&E==="idle",open:!0,ref:p,onComplete(){a&&A(Fo,!1)}}),c.useEffect(()=>{if(a||!s||E!=="ending"||!p.current)return;const M=new AbortController;let _=-1;function H(){C.current||(l(!1),A(Fo,!1))}return _=Ct.request(()=>{k(H,M.signal)}),()=>{Ct.cancel(_),M.abort()}},[C,s,a,E,k,A,l]),pe(()=>{const L=p.current;!L||!n||!T||L.setAttribute("hidden","until-found")},[T,n]),c.useEffect(function(){const M=p.current;if(!M)return;function _(H){const $=ke(Rt,H);i(!0,$),!$.isCanceled&&(m.current=!0,u(!0))}return Ae(M,"beforematch",_)},[i,u]);const I=r||n||s||a;return{height:O.height,props:{...D?{[fc.startingStyle]:""}:void 0,hidden:T,id:o},ref:R,shouldPreventOpenAnimation:N,shouldRender:I,transitionStatus:E,width:O.width}}function no(e){return{height:e.scrollHeight,width:e.scrollWidth}}function LS(e,t){const n=Xe(e).getComputedStyle(e),o=(n.animationName.split(",").map(s=>s.trim()).some(s=>s!==""&&s!=="none")||t)&&Xl(n.animationDuration),r=Xl(n.transitionDuration);return o&&r||r?"css-transition":o?"css-animation":"none"}function Xl(e){return e.split(",").map(t=>t.trim()).some(t=>t!==""&&Number.parseFloat(t)>0)}function zr(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 _S(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=Ct.request(n);return()=>{Ct.cancel(o),n()}}let Kl=(function(e){return e.collapsiblePanelHeight="--collapsible-panel-height",e.collapsiblePanelWidth="--collapsible-panel-width",e})({});const qE=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:h,setPanelIdState:g,setOpen:m,state:b,transitionStatus:v}=Tp(),x=r??!1,S=s??!1,w=a||void 0,R=w??d;pe(()=>(g(F=>w??(F===null?void 0:F)),()=>{g(F=>F===w?null:F)}),[w,g]);const{height:C,props:k,ref:T,shouldPreventOpenAnimation:E,shouldRender:N,transitionStatus:O,width:D}=DS({externalRef:n,hiddenUntilFound:x,id:R,keepMounted:S,mounted:p,onOpenChange:f,open:y,setMounted:h,setOpen:m,transitionStatus:v}),A={...b,transitionStatus:O},P=Du(l,A),z=Re("div",{...t,style:void 0},{state:A,ref:T,props:[k,{style:{[Kl.collapsiblePanelHeight]:C===void 0?"auto":`${C}px`,[Kl.collapsiblePanelWidth]:D===void 0?"auto":`${D}px`}},u,P?{style:P}:void 0,E?{style:{animationName:"none"}}:void 0],stateAttributesMapping:Ip});return N?z:null}),Op=c.createContext(void 0);function ri(e){const t=c.useContext(Op);if(t===void 0&&!e)throw new Error(We(72));return t}const FS={...Bs,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 zS extends ko{constructor(n,o,r){const s=new Co;super(VS(n,s,o,r),$S(s),FS);Ue(this,"setOpen",(n,o)=>{Pb(this,n,o,{extraState:{openChangeReason:o.reason}})})}cancelPendingOpen(n){this.state.floatingRootContext.dispatchOpenChange(!1,ke($t,n))}}function VS(e,t,n,o=!1){const r={...js(),disabled:!1,instantType:void 0,isInstantPhase:!1,trackCursorAxis:"none",disableHoverablePopup:!1,openChangeReason:null,closeOnClick:!0,closeDelay:0,adaptiveOrigin:void 0,...e};return r.floatingRootContext=_a(t,n,o),r}function $S(e){return{popupRef:c.createRef(),onOpenChange:void 0,onOpenChangeComplete:void 0,triggerElements:e}}const YE=Na(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,h=Da((N,O)=>new zS({open:o,openProp:r,activeTriggerId:f,triggerIdProp:p},N,O));h.useControlledProp("openProp",r),h.useControlledProp("triggerIdProp",p),h.useContextCallback("onOpenChange",l),h.useContextCallback("onOpenChangeComplete",u);const g=h.useState("open"),m=!n&&g,b=h.useState("activeTriggerId"),v=h.useState("mounted"),x=h.useState("payload");h.useSyncedValues({trackCursorAxis:i,disableHoverablePopup:s,disabled:n}),Vs(h,{closeOnActiveTriggerUnmount:!0});const{forceUnmount:S,transitionStatus:w}=$s(m,h),R=h.useState("isInstantPhase"),C=h.useState("instantType"),k=h.useState("lastOpenChangeReason"),T=c.useRef(null);pe(()=>{g&&n&&h.setOpen(!1,ke(td))},[g,n,h]),pe(()=>{w==="ending"&&k===Rt||w!=="ending"&&R?(C!=="delay"&&(T.current=C),h.set("instantType","delay")):T.current!==null&&(h.set("instantType",T.current),T.current=null)},[w,R,k,C,h]),pe(()=>{m&&b==null&&h.set("payload",void 0)},[h,b,m]),c.useImperativeHandle(a,()=>({unmount:S,close:()=>h.setOpen(!1,ke(Es))}),[S,h]);const E=m||v||!n&&i!=="none";return Y.jsxs(Op.Provider,{value:h,children:[d&&Y.jsx(_s,{handle:d,store:h}),E&&Y.jsx(HS,{store:h,disabled:n,trackCursorAxis:i}),typeof y=="function"?y({payload:x}):y]})});function HS({store:e,disabled:t,trackCursorAxis:n}){const o=e.useState("floatingRootContext"),r=sr(o,{enabled:!t,referencePress:()=>e.select("closeOnClick")}),s=k1(o,{enabled:!t&&n!=="none",axis:n==="none"?void 0:n}),i=c.useMemo(()=>Et(s.reference,r.reference),[s.reference,r.reference]);return Hs(e,{activeTriggerProps:i,inactiveTriggerProps:i,popupProps:r.floating??Ke}),null}const Ap=c.createContext(void 0);function jS(){return c.useContext(Ap)}const Zl=600,Np="data-base-ui-tooltip-trigger";function Ql(e){if("composedPath"in e){const n=e.composedPath();for(let o=0;o<n.length;o+=1){const r=n[o];if(Ne(r))return r}}const t=e.target;return Ne(t)?t:null}function BS(e){let t=e;for(;t;){const n=t.closest(`[${Np}]`);if(n)return n;const o=t.getRootNode();t="host"in o&&Ne(o.host)?o.host:null}return null}const XE=Fd(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,h=ri(!0),m=Ws(i)??h;if(!m)throw new Error(We(82));const b=st(f),v=m.useState("isTriggerActive",b),x=m.useState("isOpenedByTrigger",b),S=m.useState("floatingRootContext"),w=c.useRef(null),R=u??Zl,C=p??0,{registerTrigger:k,isMountedByThisTrigger:T}=zs(b,w,m,{payload:a,closeOnClick:d,closeDelay:C}),E=jS(),{delayRef:N,isInstantPhase:O,hasProvider:D}=Y0(S,{open:x}),A=Va(S);m.useSyncedValue("isInstantPhase",O);const P=m.useState("disabled"),z=l??P,F=rt(z),I=m.useState("trackCursorAxis"),L=m.useState("disableHoverablePopup"),M=c.useRef(!1),_=nt(),H=c.useRef(void 0);function $(){return D?vn(N.current,"open")===0?0:u??E??Zl:R}function U(re){const q=w.current;if(!q||!re)return!1;const ie=BS(re);return ie!==null&&ie!==q&&ve(q,ie)}function G(re){const q=U(re);return M.current=q,q&&(A.openChangeTimeout.clear(),A.restTimeout.clear(),A.restTimeoutPending=!1,_.clear()),q}const V=Ha(S,{enabled:!z,mouseOnly:!0,move:!1,handleClose:!L&&I!=="both"?ja():null,restMs:$,delay(){return p==null&&D?{close:vn(N.current,"close")}:{close:C}},triggerElementRef:w,isActiveTrigger:v,isClosing:()=>m.select("transitionStatus")==="ending",shouldOpen(){return!M.current}}),X=jd(S,{enabled:!z}).reference,j=re=>{const q=M.current,ie=Ql(re),ge=G(ie),ue=w.current,Z=ue&&ie&&ve(ue,ie);if(ge&&m.select("open")&&m.select("lastOpenChangeReason")===it){m.setOpen(!1,ke(it,re));return}if(q&&!ge&&Z&&!F.current&&!m.select("open")&&ue&&yn(H.current)){const J=()=>{!M.current&&!F.current&&!m.select("open")&&m.setOpen(!0,ke(it,re,ue))},ae=$();ae===0?(_.clear(),J()):_.start(ae,J)}},K=m.useState("triggerProps",T);return Re("button",t,{state:{open:x},ref:[n,k,w],props:[V,X,T||I!=="none"?K:void 0,{onMouseOver(re){j(re.nativeEvent)},onFocus(re){U(Ql(re.nativeEvent))&&re.preventBaseUIHandler()},onMouseLeave(){M.current=!1,_.clear(),H.current=void 0},onPointerEnter(re){H.current=re.pointerType},onPointerDown(re){H.current=re.pointerType,m.set("closeOnClick",d),d&&!m.select("open")&&m.cancelPendingOpen(re.nativeEvent)},onClick(re){d&&!m.select("open")&&m.cancelPendingOpen(re.nativeEvent)},id:b,"data-trigger-disabled":z?"":void 0,[Np]:z?void 0:""},y],stateAttributesMapping:Gs})}),Dp=c.createContext(void 0);function WS(){const e=c.useContext(Dp);if(e===void 0)throw new Error(We(70));return e}const US=c.forwardRef(function(t,n){const{children:o,container:r,className:s,render:i,style:a,...l}=t,{node:u,subtree:d}=wd({container:r,ref:n,componentProps:t,elementProps:l});return!d&&!u?null:Y.jsxs(c.Fragment,{children:[d,u&&Dt.createPortal(o,u)]})}),KE=c.forwardRef(function(t,n){const{keepMounted:o=!1,...r}=t;return ri().useState("mounted")||o?Y.jsx(Dp.Provider,{value:o,children:Y.jsx(US,{ref:n,...r})}):null}),Lp=c.createContext(void 0);function GS(){const e=c.useContext(Lp);if(e===void 0)throw new Error(We(71));return e}const ZE=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:h=!1,disableAnchorTracking:g=!1,collisionAvoidance:m=Ma,style:b,...v}=t,x=ri(),S=WS(),w=x.useState("open"),R=x.useState("mounted"),C=x.useState("trackCursorAxis"),k=x.useState("disableHoverablePopup"),T=x.useState("floatingRootContext"),E=x.useState("instantType"),N=x.useState("transitionStatus"),O=x.useState("adaptiveOrigin"),D=Xs({anchor:s,positionMethod:i,floatingRootContext:T,mounted:R,side:a,sideOffset:u,align:l,alignOffset:d,collisionBoundary:p,collisionPadding:f,sticky:h,arrowPadding:y,disableAnchorTracking:g,keepMounted:S,collisionAvoidance:m,adaptiveOrigin:O}),A=c.useMemo(()=>({open:w,side:D.side,align:D.align,anchorHidden:D.anchorHidden,instant:C!=="none"?"tracking-cursor":E}),[w,D.side,D.align,D.anchorHidden,C,E]),P=Zs(t,A,{styles:D.positionerStyles,transitionStatus:N,props:v,refs:[n,x.useStateSetter("positionerElement")],hidden:!R,inert:!w||C==="both"||k});return Y.jsx(Lp.Provider,{value:D,children:P})}),QE=c.forwardRef(function(t,n){const{render:o,className:r,style:s,...i}=t,a=ri(),{side:l,align:u}=GS(),d=a.useState("open"),p=a.useState("instantType"),f=a.useState("transitionStatus"),y=a.useState("popupProps"),h=a.useState("floatingRootContext"),g=a.useState("disabled"),m=a.useState("closeDelay");It({open:d,ref:a.context.popupRef,onComplete(){var S,w;d&&((w=(S=a.context).onOpenChangeComplete)==null||w.call(S,!0))}}),$a(h,{enabled:!g,closeDelay:m});const b=a.useStateSetter("popupElement");return Re("div",t,{state:{open:d,side:l,align:u,instant:p,transitionStatus:f},ref:[n,a.context.popupRef,b],props:[ir,y,lr(f),i],stateAttributesMapping:Ys})}),JE=function(t){const{delay:n,closeDelay:o,timeout:r=400}=t,s=c.useMemo(()=>({open:n,close:o}),[n,o]);return Y.jsx(Ap.Provider,{value:n,children:Y.jsx(q0,{delay:s,timeoutMs:r,children:t.children})})},qS=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:h,name:g,disabled:m,setTouched:b,setDirty:v,validityData:x,setFocused:S,setFilled:w,validationMode:R,validation:C}=Zt(),{clearErrors:k}=To(),T=m||l,E=g??i,N={...h,disabled:T},{labelId:O}=An(),D=Po({id:s});pe(()=>{var _;const M=a!=null;(_=C.inputRef.current)!=null&&_.value||M&&a!==""?w(!0):M&&a===""&&w(!1)},[C.inputRef,w,a]);const A=c.useRef(null);pe(()=>{p&&A.current===pt(Ie(A.current))&&S(!0)},[p,S]);const[P]=Ht({controlled:a,default:d,name:"FieldControl",state:"value"}),z=a!==void 0,F=z?P:void 0,I=he(()=>{var M;return(M=C.inputRef.current)==null?void 0:M.value});return Mo(C.inputRef,D,F,I,!T,i),Re("input",t,{ref:[n,A],state:N,props:[{id:D,disabled:T,name:E,ref:C.inputRef,"aria-labelledby":O,autoFocus:p,...z?{value:F}:{defaultValue:d},onChange(M){const _=M.currentTarget.value;u==null||u(_,ke(Rt,M.nativeEvent)),v(_!==(x.initialValue??"")),w(_!==""),M.nativeEvent.defaultPrevented||(k(E),C.change(_))},onFocus(){S(!0)},onBlur(M){b(!0),S(!1),R==="onBlur"&&C.commit(M.currentTarget.value)},onKeyDown(M){M.currentTarget.tagName==="INPUT"&&M.key==="Enter"&&(b(!0),C.commit(M.currentTarget.value))}},y,M=>C.getValidationProps(T,M)],stateAttributesMapping:qn})}),eP=c.forwardRef(function(t,n){return Y.jsx(qS,{ref:n,...t})}),_p=c.createContext(void 0);function si(){const e=c.useContext(_p);if(e===void 0)throw new Error(We(51));return e}const hr={status(e){return{[`data-${e}`]:""}}},tP=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,[h,g]=c.useState();let m="indeterminate",b=null,v=null,x="",S="indeterminate progress";if(l!=null&&Number.isFinite(l)){const T=hs(l,a,i);b=ut(Number.isNaN(T)?0:T,0,100),v=ut(l,a,i),m=v===i?"complete":"progressing",x=o?Qo(v,s,o):Qo(b/100,s,{style:"percent"}),S=x}const w=c.useMemo(()=>({status:m}),[m]),R={"aria-labelledby":h,"aria-valuemax":i,"aria-valuemin":a,"aria-valuenow":v??void 0,"aria-valuetext":r?r(x,l):S,role:"progressbar",children:Y.jsxs(c.Fragment,{children:[p,Y.jsx("span",{role:"presentation",style:Sn,children:"x"})]})},C=c.useMemo(()=>({formattedValue:x,percentageValue:b,setLabelId:g,state:w,value:l}),[x,b,g,w,l]),k=Re("div",t,{state:w,ref:n,props:[R,y],stateAttributesMapping:hr});return Y.jsx(_p.Provider,{value:C,children:k})}),nP=c.forwardRef(function(t,n){const{render:o,className:r,style:s,...i}=t,{state:a}=si();return Re("div",t,{state:a,ref:n,props:i,stateAttributesMapping:hr})}),oP=c.forwardRef(function(t,n){const{render:o,className:r,style:s,...i}=t,{percentageValue:a,state:l}=si(),u=a==null?{}:{insetInlineStart:0,height:"inherit",width:`${a}%`};return Re("div",t,{state:l,ref:n,props:[{style:u},i],stateAttributesMapping:hr})}),rP=c.forwardRef(function(t,n){const{className:o,render:r,children:s,style:i,...a}=t,{value:l,formattedValue:u,state:d}=si(),p=d.status==="indeterminate";return Re("span",t,{state:d,ref:n,props:[{"aria-hidden":!0,children:typeof s=="function"?s(p?"indeterminate":u,l):p?null:u},a],stateAttributesMapping:hr})}),sP=c.forwardRef(function(t,n){const{render:o,className:r,style:s,id:i,...a}=t,{setLabelId:l,state:u}=si(),d=Xv(i,l);return Re("span",t,{state:u,ref:n,props:[{id:d,role:"presentation"},a],stateAttributesMapping:hr})}),Fp=c.createContext(void 0);function ii(){const e=c.useContext(Fp);if(e===void 0)throw new Error(We(53));return e}const YS=500,na=16;function mn(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 oo=e=>t=>t?{[e]:""}:null,pc={hasOverflowX:oo("data-has-overflow-x"),hasOverflowY:oo("data-has-overflow-y"),overflowXStart:oo("data-overflow-x-start"),overflowXEnd:oo("data-overflow-x-end"),overflowYStart:oo("data-overflow-y-start"),overflowYEnd:oo("data-overflow-y-end"),cornerHidden:()=>null},XS={x:0,y:0},Jl={width:0,height:0},KS={xStart:!1,xEnd:!1,yStart:!1,yEnd:!1},ZS={x:!0,y:!0,corner:!0},iP=c.forwardRef(function(t,n){const{render:o,className:r,overflowEdgeThreshold:s,style:i,...a}=t,{xStart:l,xEnd:u,yStart:d,yEnd:p}=QS(s),f=st(),y=nt(),h=nt(),{nonce:g,disableStyleElements:m}=Za(),[b,v]=c.useState(!1),[x,S]=c.useState(!1),[w,R]=c.useState(!1),[C,k]=c.useState(!1),[T,E]=c.useState(!1),[N,O]=c.useState(Jl),[D,A]=c.useState(Jl),[P,z]=c.useState(KS),[F,I]=c.useState(ZS),L=c.useRef(null),M=c.useRef(null),_=c.useRef(null),H=c.useRef(null),$=c.useRef(null),U=c.useRef(null),G=c.useRef(null),V=c.useRef(null),X=c.useRef(0),j=c.useRef(0),K=c.useRef(0),de=c.useRef(0),se=c.useRef("vertical"),ne=c.useRef(XS),re=c.useRef(null);function q(fe){const te=fe?R:S,ee=fe?y:h;te(!0),ee.start(YS,()=>{te(!1)})}const ie=he(fe=>{const te=fe.x-ne.current.x,ee=fe.y-ne.current.y;ne.current=fe,ee!==0&&q(!0),te!==0&&q(!1)}),ge=he(()=>{const fe=M.current;fe&&re.current===null&&(re.current=fe.style.scrollSnapType,fe.style.scrollSnapType="none")}),ue=he(fe=>{if(fe.button!==0)return;if(V.current!==null){const me=se.current==="vertical"?$.current:U.current;if(me!=null&&me.hasPointerCapture(V.current))return}V.current=fe.pointerId,X.current=fe.clientY,j.current=fe.clientX,se.current=fe.currentTarget.getAttribute("data-orientation");const te=M.current;te&&(K.current=te.scrollTop,de.current=te.scrollLeft,ge());const ee=se.current==="vertical"?$.current:U.current;ee==null||ee.setPointerCapture(fe.pointerId)}),Z=he(fe=>{if(fe.pointerId!==V.current)return;V.current=null,(se.current==="vertical"?R:S)(!1),re.current!==null&&(M.current&&(M.current.style.scrollSnapType=re.current),re.current=null);const te=se.current==="vertical"?$.current:U.current;te!=null&&te.hasPointerCapture(fe.pointerId)&&te.releasePointerCapture(fe.pointerId)}),J=he(fe=>{if(fe.pointerId!==V.current)return;if(fe.buttons%2===0){Z(fe);return}const te=M.current;if(!te)return;const ee=se.current==="vertical",me=ee?$.current:U.current,ye=ee?_.current:H.current;if(!me||!ye)return;const De=ee?"y":"x",Me=mn(ye,"padding",De),Ge=mn(me,"margin",De),_e=ee?me.offsetHeight:me.offsetWidth,et=(ee?ye.offsetHeight:ye.offsetWidth)-_e-Me-Ge,Te=ee?fe.clientY-X.current:fe.clientX-j.current,be=et<=0?0:Te/et,Ve=ee?te.scrollHeight:te.scrollWidth,Fe=ee?te.clientHeight:te.clientWidth,Je=(ee?K.current:de.current)+be*(Ve-Fe);ee?te.scrollTop=Je:te.scrollLeft=Je,fe.preventDefault(),q(ee)});function ae(fe){k(fe.pointerType==="touch")}function ce(fe){if(ae(fe),fe.pointerType!=="touch"){const te=ve(L.current,fe.target);v(te)}}const oe=c.useMemo(()=>({scrolling:x||w,hasOverflowX:!F.x,hasOverflowY:!F.y,overflowXStart:P.xStart,overflowXEnd:P.xEnd,overflowYStart:P.yStart,overflowYEnd:P.yEnd,cornerHidden:F.corner}),[x,w,F.x,F.y,F.corner,P]),le={role:"presentation",onPointerEnter:ce,onPointerMove:ce,onPointerDown:ae,onPointerLeave(){v(!1)},style:{position:"relative","--scroll-area-corner-height":`${N.height}px`,"--scroll-area-corner-width":`${N.width}px`}},B=Re("div",t,{state:oe,ref:[n,L],props:[le,a],stateAttributesMapping:pc}),Q=c.useMemo(()=>({handlePointerDown:ue,handlePointerMove:J,handlePointerUp:Z,handleScroll:ie,disableViewportSnap:ge,cornerSize:N,setCornerSize:O,thumbSize:D,setThumbSize:A,hasMeasuredScrollbar:T,setHasMeasuredScrollbar:E,touchModality:C,cornerRef:G,scrollingX:x,scrollingY:w,hovering:b,setHovering:v,viewportRef:M,scrollbarYRef:_,scrollbarXRef:H,thumbYRef:$,thumbXRef:U,rootId:f,hiddenState:F,setHiddenState:I,overflowEdges:P,setOverflowEdges:z,viewportState:oe,overflowEdgeThreshold:{xStart:l,xEnd:u,yStart:d,yEnd:p}}),[ue,J,Z,ie,ge,N,D,T,C,x,w,b,f,F,P,oe,l,u,d,p]);return Y.jsxs(Fp.Provider,{value:Q,children:[!m&&Jo.getElement(g),B]})});function QS(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 JS=c.createContext(void 0),zp=["--scroll-area-overflow-x-start","--scroll-area-overflow-x-end","--scroll-area-overflow-y-start","--scroll-area-overflow-y-end"];let eu=!1;function ew(){eu||Xt||(typeof CSS<"u"&&"registerProperty"in CSS&&zp.forEach(e=>{try{CSS.registerProperty({name:e,syntax:"<length>",inherits:!1,initialValue:"0px"})}catch{}}),eu=!0)}const aP=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:h,setThumbSize:g,rootId:m,setHiddenState:b,hiddenState:v,setHasMeasuredScrollbar:x,handleScroll:S,touchModality:w,setHovering:R,setOverflowEdges:C,overflowEdgeThreshold:k,viewportState:T}=ii(),E=On(),N=c.useRef(!0),O=c.useRef([NaN,NaN,NaN,NaN]),D=nt(),A=nt(),P=he(()=>{const M=a.current,_=l.current,H=u.current,$=d.current,U=p.current,G=f.current;if(!M)return;const V=M.scrollHeight,X=M.scrollWidth,j=M.clientHeight,K=M.clientWidth,de=M.scrollTop,se=M.scrollLeft,ne=O.current,re=Number.isNaN(ne[0]);if(ne[0]=j,ne[1]=V,ne[2]=K,ne[3]=X,re&&x(!0),V===0||X===0)return;const q=tw(M),ie=q.y,ge=q.x,ue=K/X,Z=j/V,J=Math.max(0,X-K),ae=Math.max(0,V-j);let ce=0,oe=0;ge||(ce=vo(E==="rtl"?-se:se,J),oe=J-ce);const le=ie?0:vo(de,ae),B=ie?0:ae-le,Q=ge?0:K,fe=ie?0:j;let te=0,ee=0;!ge&&!ie&&(te=(_==null?void 0:_.offsetWidth)||0,ee=(H==null?void 0:H.offsetHeight)||0);const me=y.width===0&&y.height===0,ye=me?te:0,De=me?ee:0,Me=mn(H,"padding","x"),Ge=mn(_,"padding","y"),_e=mn(U,"margin","x"),ze=mn($,"margin","y"),et=Q-Me-_e,Te=fe-Ge-ze,be=H?Math.min(H.offsetWidth-ye,et):et,Ve=_?Math.min(_.offsetHeight-De,Te):Te,Fe=Math.max(na,be*ue),je=Math.max(na,Ve*Z);if(g(Se=>Vr(Se,{width:Fe,height:je})),_&&$){const Se=_.offsetHeight-je-Ge-ze,Be=tu($,"--scroll-area-thumb-height",de,ae,V,je,Se);$.style.transform=`translate3d(0,${Be}px,0)`}if(H&&U){const Se=H.offsetWidth-Fe-Me-_e,Be=E==="rtl"?-se:se,tt=tu(U,"--scroll-area-thumb-width",Be,J,X,Fe,Se);U.style.transform=`translate3d(${E==="rtl"?-tt:tt}px,0,0)`}const Je=[ce,oe,le,B];zp.forEach((Se,Be)=>{M.style.setProperty(Se,`${Je[Be]}px`)}),G&&h(Se=>Vr(Se,{width:te,height:ee})),b(Se=>Vr(Se,q));const lt={xStart:!ge&&ce>k.xStart,xEnd:!ge&&oe>k.xEnd,yStart:!ie&&le>k.yStart,yEnd:!ie&&B>k.yEnd};C(Se=>Vr(Se,lt))});pe(()=>{ew()},[]),pe(()=>{queueMicrotask(P)},[P,v,E,k.xStart,k.xEnd,k.yStart,k.yEnd]),pe(()=>{var M;(M=a.current)!=null&&M.matches(":hover")&&R(!0)},[a,R]),pe(()=>{const M=a.current;if(typeof ResizeObserver>"u"||!M)return;let _=!1;const H=new ResizeObserver(()=>{if(!_){_=!0;const $=O.current;if($[0]===M.clientHeight&&$[1]===M.scrollHeight&&$[2]===M.clientWidth&&$[3]===M.scrollWidth)return}P()});return H.observe(M),A.start(0,()=>{const $=M.getAnimations({subtree:!0});$.length!==0&&Promise.allSettled($.map(U=>U.finished)).then(P).catch(()=>{})}),()=>{H.disconnect(),A.clear()}},[P,a,A]);function z(){N.current=!1}const F={role:"presentation",...m&&{"data-id":`${m}-viewport`},tabIndex:v.x&&v.y?-1:0,className:Jo.className,style:{overflow:"scroll"},onScroll(){a.current&&(P(),(w||!N.current)&&S({x:a.current.scrollLeft,y:a.current.scrollTop}),D.start(100,()=>{N.current=!0}))},onWheel:z,onPointerMove:z,onPointerEnter:z,onKeyDown:z},I=Re("div",t,{ref:[n,a],state:T,props:[F,i],stateAttributesMapping:pc}),L=c.useMemo(()=>({computeThumbPosition:P}),[P]);return Y.jsx(JS.Provider,{value:L,children:I})});function tw(e){const t=e.clientHeight>=e.scrollHeight,n=e.clientWidth>=e.scrollWidth;return{y:t,x:n,corner:t||n}}function Vr(e,t){for(const n in t)if(e[n]!==t[n])return t;return e}function tu(e,t,n,o,r,s,i){const a=ut(n,0,o),l=n-a,u=Math.max(na,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 Vp=c.createContext(void 0);function nw(){const e=c.useContext(Vp);if(e===void 0)throw new Error(We(54));return e}const cP=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:h,viewportRef:g,thumbYRef:m,thumbXRef:b,handlePointerDown:v,handlePointerUp:x,handleScroll:S,disableViewportSnap:w,rootId:R,thumbSize:C,hasMeasuredScrollbar:k,viewportState:T}=ii(),E=s==="vertical",N={...T,hovering:u,scrolling:E?p:d,orientation:s},O=On(),D=!k&&!i,A=E?f.y:f.x,P=i||!A;c.useEffect(()=>{if(!P)return;const I=g.current,L=E?y.current:h.current;if(!L)return;function M(_){if(!I||_.ctrlKey)return;const H=!E,$=H?"scrollLeft":"scrollTop",U=H?_.deltaX:_.deltaY;if(U===0)return;const G=H?I.scrollWidth-I.clientWidth:I.scrollHeight-I.clientHeight,V=H&&O==="rtl"?-G:0,X=H&&O==="rtl"?0:G,j=I[$];j<=V&&U<0||j>=X&&U>0||(_.preventDefault(),I[$]=Math.min(X,Math.max(V,j+U)),S({x:I.scrollLeft,y:I.scrollTop}))}return Ae(L,"wheel",M,{passive:!1})},[O,S,E,h,y,P,g]);const z={...R&&{"data-id":`${R}-scrollbar`},onPointerDown(I){if(I.button!==0)return;const L=at(I.nativeEvent),M=E?m.current:b.current;if(M&&ve(M,L))return;const _=g.current;if(!_)return;const H=E?y.current:h.current;if(!M||!H)return;const $=E?"y":"x",U=mn(M,"margin",$),G=mn(H,"padding",$),V=E?M.offsetHeight:M.offsetWidth,X=H.getBoundingClientRect(),j=E?I.clientY-X.top-V/2-G+U/2:I.clientX-X.left-V/2-G+U/2,K=E?_.scrollHeight:_.scrollWidth,de=E?_.clientHeight:_.clientWidth,ne=(E?H.offsetHeight:H.offsetWidth)-V-G-U;if(ne<=0)return;const re=j/ne,q=K-de;w(),E?_.scrollTop=re*q:O==="rtl"?_.scrollLeft=-(1-re)*q:_.scrollLeft=re*q,S({x:_.scrollLeft,y:_.scrollTop}),v(I)},onPointerUp:x,onPointerCancel:x,style:{position:"absolute",touchAction:"none",WebkitUserSelect:"none",userSelect:"none",visibility:D?"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`}}},F=Re("div",t,{ref:[n,E?y:h],state:N,props:[z,l],stateAttributesMapping:pc});return P?Y.jsx(Vp.Provider,{value:s,children:F}):null}),lP=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:h}=ii(),g=nw(),m=g==="vertical";return Re("div",t,{ref:[n,m?a:l],state:{scrolling:m?y:f,orientation:g},props:[{onPointerDown:u,onPointerMove:d,onPointerUp:p,onPointerCancel:p,style:{visibility:h?void 0:"hidden",...m?{height:"var(--scroll-area-thumb-height)"}:{width:"var(--scroll-area-thumb-width)"}}},i]})}),uP=c.forwardRef(function(t,n){const{render:o,className:r,style:s,...i}=t,{cornerRef:a,cornerSize:l,hiddenState:u}=ii(),d=Re("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}),$p=c.createContext(void 0);function ai(){const e=c.useContext($p);if(e===void 0)throw new Error(We(64));return e}const gr={tabActivationDirection:e=>({"data-activation-direction":e})},dP=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,h]=c.useState(()=>new Map),[g,m]=Ht({controlled:l,default:r,name:"Tabs",state:"value"}),b=l!==void 0,[v,x]=c.useState(()=>new Map),S=c.useRef(void 0),w=c.useCallback(j=>oa(v,j),[v]),[R,C]=c.useState(()=>({previousValue:g,tabActivationDirection:"none"})),{previousValue:k,tabActivationDirection:T}=R;let E=T,N=!1;k!==g&&(E=nu(k,g,i,v),N=k!=null&&g!=null&&w(g)==null);const O=N?k:g,D=k!==O||T!==E;pe(()=>{D&&C({previousValue:O,tabActivationDirection:E})},[O,D,E]);const A=he((j,K)=>{const de=nu(g,j,i,v);K.activationDirection=de,s==null||s(j,K),!K.isCanceled&&m(j)}),P=he((j,K)=>{s==null||s(j,ke(K,void 0,void 0,{activationDirection:"none"}))}),z=he((j,K)=>(h(de=>{const se=new Map(de);return se.set(j,K),se}),()=>{h(de=>{if(de.get(j)!==K)return de;const se=new Map(de);return se.delete(j),se})})),F=c.useCallback(j=>y.get(j),[y]),I=c.useCallback(j=>{for(const K of v.values())if(j===K.value)return K.id},[v]),L=c.useMemo(()=>({getTabElementBySelectedValue:w,getTabIdByPanelValue:I,getTabPanelIdByValue:F,onValueChange:A,orientation:i,registerMountedTabPanel:z,setTabMap:x,tabActivationDirection:E,value:g}),[w,I,F,A,i,z,x,E,g]),M=c.useMemo(()=>{for(const j of v.values())if(j.value===g)return j},[v,g]),_=c.useMemo(()=>{for(const j of v.values())if(!j.disabled)return j.value},[v]),H=c.useRef(!p),$=c.useRef(r),U=c.useRef(p),G=c.useRef(!1);pe(()=>{var ne;if(b)return;function j(re,q){m(re),C({previousValue:re,tabActivationDirection:"none"}),P(re,q),H.current=!1}if(v.size===0){G.current&&g!==null&&!((ne=S.current)!=null&&ne.isConnected)&&j(null,Bc);return}G.current=!0,S.current=v.keys().next().value;const K=M==null?void 0:M.disabled,de=M==null&&g!==null;if(!K&&g===$.current&&(U.current=!1),U.current&&K&&g===$.current)return;const se=H.current;if(K||de){const re=_??null;if(g===re){H.current=!1;return}let q=Bc;se?q=Wc:K&&(q=td),j(re,q);return}se&&M!=null&&(P(g,Wc),H.current=!1)},[_,b,P,M,m,v,g]);const X=Re("div",t,{state:{orientation:i,tabActivationDirection:E},ref:n,props:d,stateAttributesMapping:gr});return Y.jsx($p.Provider,{value:L,children:Y.jsx(dr,{elementsRef:f,children:X})})});function oa(e,t){for(const[n,o]of e.entries())if(t===o.value)return n;return null}function nu(e,t,n,o){if(e==null||t==null)return"none";const[r,s,i]=n==="horizontal"?["left","left","right"]:["top","up","down"],a=oa(o,e),l=oa(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 Hp=c.createContext(void 0);function jp(){const e=c.useContext(Hp);if(e===void 0)throw new Error(We(65));return e}const fP=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:h,tabActivationDirection:g}=ai(),{activateOnFocus:m,registerTabResizeObserverElement:b,tabsListElement:v}=jp(),{highlightedIndex:x,onHighlightedIndexChange:S}=vs(),w=st(a),R=c.useMemo(()=>({disabled:r,id:w,value:i}),[r,w,i]),{compositeProps:C,compositeRef:k,index:T}=of({metadata:R}),E=i===p,N=c.useRef(!1),O=c.useRef(null),D=he(G=>{var V;(V=O.current)==null||V.call(O),O.current=G?b(G):null});pe(()=>{if(N.current){N.current=!1;return}if(!(E&&T>-1&&x!==T))return;const G=v;if(G!=null){const V=pt(Ie(G));if(V&&ve(G,V))return}r||S(T)},[E,T,x,S,r,v]);const{getButtonProps:A,buttonRef:P}=Mt({disabled:r,native:l,focusableWhenDisabled:!0}),z=f(i),F=c.useRef(!1),I=c.useRef(!1);function L(G){y(i,ke(Rt,G.nativeEvent,void 0,{activationDirection:"none"}))}function M(G){E||r||L(G)}function _(G){E||r||m&&(!F.current||I.current)&&L(G)}function H(G){if(E||r)return;F.current=!0,I.current=G.button===0;const V=Ie(G.currentTarget);function X(){F.current=!1,I.current=!1,V.removeEventListener("pointerup",X),V.removeEventListener("pointercancel",X)}V.addEventListener("pointerup",X),V.addEventListener("pointercancel",X)}return Re("button",t,{state:{disabled:r,active:E,orientation:h,tabActivationDirection:g},ref:[n,P,k,D],props:[C,{role:"tab","aria-controls":z,"aria-selected":E,id:w,onClick:M,onFocus:_,onPointerDown:H,[Ua]:E?"":void 0,onKeyDownCapture(){N.current=!0}},d,A],stateAttributesMapping:gr})});var ou;const ow={...gr,activeTabPosition:()=>null,activeTabSize:()=>null},pP=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}=ai(),{tabsListElement:f,registerIndicatorUpdateListener:y}=jp(),h=kb();c.useEffect(()=>y(h),[y,h]);let g=0,m=0,b=0,v=0,x=0,S=0,w=!1;if(p!=null&&f!=null){const O=l(p);if(O!=null){w=!0;const{width:D,height:A}=Ol(O),{width:P,height:z}=Ol(f),F=O.getBoundingClientRect(),I=f.getBoundingClientRect(),L=P>0?I.width/P:1,M=z>0?I.height/z:1;if(L>Number.EPSILON&&M>Number.EPSILON){const H=F.left-I.left,$=F.top-I.top;g=H/L+f.scrollLeft-f.clientLeft,b=$/M+f.scrollTop-f.clientTop}else g=O.offsetLeft,b=O.offsetTop;x=D,S=A,m=f.scrollWidth-g-x,v=f.scrollHeight-b-S}}const R=w?{left:g,right:m,top:b,bottom:v}:null,C=w?{width:x,height:S}:null,k=w?{"--active-tab-left":`${g}px`,"--active-tab-right":`${m}px`,"--active-tab-top":`${b}px`,"--active-tab-bottom":`${v}px`,"--active-tab-width":`${x}px`,"--active-tab-height":`${S}px`}:void 0,T=w&&x>0&&S>0,N=Re("span",t,{state:{orientation:u,activeTabPosition:R,activeTabSize:C,tabActivationDirection:d},ref:n,props:[{role:"presentation",style:k,hidden:!T},a,{suppressHydrationWarning:!0}],stateAttributesMapping:ow});return p==null?null:Y.jsxs(c.Fragment,{children:[N,s&&(ou||(ou=Y.jsx(xf,{script:vf})))]})}),rw={...gr,...Kt},hP=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}=ai(),h=st(),{ref:g,index:m}=ur(),b=r===u,{mounted:v,transitionStatus:x,setMounted:S}=In(b),w=!v,R=d(r),C={hidden:w,orientation:p,tabActivationDirection:f,transitionStatus:x},k=c.useRef(null),T=Re("div",t,{state:C,ref:[n,g,k],props:[{"aria-labelledby":R,hidden:w,id:h,role:"tabpanel",tabIndex:b?0:-1,inert:cr(!b),"data-index":m},l],stateAttributesMapping:rw});return It({open:b,ref:k,onComplete(){b||S(!1)}}),pe(()=>{if(!(h==null||w&&!i))return y(r,h)},[w,i,r,h,y]),i||v?T:null}),gP=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}=ai(),[f,y]=c.useState(0),[h,g]=c.useState(null),m=c.useRef(new Set),b=c.useRef(new Set),v=c.useRef(null);pe(()=>{if(typeof ResizeObserver>"u")return;const k=new ResizeObserver(()=>{m.current.forEach(T=>{T()})});return v.current=k,h&&k.observe(h),b.current.forEach(T=>{k.observe(T)}),()=>{k.disconnect(),v.current=null}},[h]);const x=he(k=>(m.current.add(k),()=>{m.current.delete(k)})),S=he(k=>{var T;return b.current.add(k),(T=v.current)==null||T.observe(k),()=>{var E;b.current.delete(k),(E=v.current)==null||E.unobserve(k)}}),w={orientation:u,tabActivationDirection:p},R={"aria-orientation":u==="vertical"?"vertical":void 0,role:"tablist"},C=c.useMemo(()=>({activateOnFocus:o,registerIndicatorUpdateListener:x,registerTabResizeObserverElement:S,tabsListElement:h}),[o,x,S,h]);return Y.jsx(Hp.Provider,{value:C,children:Y.jsx(Ya,{render:i,className:r,style:a,state:w,refs:[n,g],props:[R,l],stateAttributesMapping:gr,highlightedIndex:f,enableHomeAndEndKeys:!0,loopFocus:s,orientation:u,onHighlightedIndexChange:y,onMapChange:d,disabledIndices:Vt})})});function mP(e){return Af("alert-dialog",e)}const yP=Ax;function sw(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 Bp(e){return{checked(t){return e.indeterminate?{}:t?{"data-checked":""}:{"data-unchecked":""}},...qn}}const iw=c.createContext(void 0);function aw(){return c.useContext(iw)}const Wp=c.createContext(void 0);function cw(){const e=c.useContext(Wp);if(e===void 0)throw new Error(We(14));return e}const lw="data-parent",bP=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:h=!1,readOnly:g=!1,render:m,required:b=!1,uncheckedValue:v,value:x,nativeButton:S=!1,style:w,...R}=t,{clearErrors:C}=To(),{disabled:k,name:T,setDirty:E,setFilled:N,setFocused:O,setTouched:D,state:A,validationMode:P,validityData:z,validation:F}=Zt(),I=rf(),{labelId:L,controlId:M,registerControlId:_,getDescriptionProps:H}=An(),$=aw(),U=($==null?void 0:$.allValues)===void 0?void 0:$.parent,G=U!==void 0,V=k||I.disabled||($==null?void 0:$.disabled)||a,X=T??f,j=x??X,K=st(),de=st();let se=u||M;G&&(h?se=de:j!==void 0?se=`${U.id}-${j}`:se||(se=de));let ne={};G&&(h?ne=U.getParentProps():j!==void 0&&(ne=U.getChildProps(j)));const{checked:re=o,indeterminate:q=d,onCheckedChange:ie,...ge}=ne,ue=$==null?void 0:$.value,Z=c.useRef(null),J=gt(()=>Symbol()),ae=c.useRef(!1),{getButtonProps:ce,buttonRef:oe}=Mt({disabled:V,native:S}),le=($==null?void 0:$.validation)??F,[B,Q]=Ht({controlled:j!==void 0&&ue!==void 0&&!h?ue.includes(j):re,default:s,name:"Checkbox",state:"checked"}),fe=G?!!re:B,te=G&&q||d;pe(()=>{_!==ot&&(ae.current=!0,_(J.current,se))},[se,_,J]),c.useEffect(()=>{const be=J.current;return()=>{!ae.current||_===ot||(ae.current=!1,_(be,void 0))}},[_,J]),Mo(Z,K,B,void 0,!$&&!V,f);const ee=c.useRef(null),me=le.registerInput,ye=$?j:void 0,De=c.useCallback(be=>me(be,{controlRef:Z,value:ye}),[me,ye]),Me=Tt(p,ee,h?void 0:De),Ge=qa(i,L,ee,!S,se??void 0);pe(()=>{ee.current&&(ee.current.indeterminate=te,B&&N(!0))},[B,te,N]),Eo(B,()=>{$||(C(X),N(B),E(B!==z.initialValue),le.change(B))});const _e=Et({checked:B,disabled:V,form:l,name:h?void 0:X,id:S?void 0:se??void 0,required:b,ref:Me,style:X?Ps:Sn,tabIndex:-1,type:"checkbox","aria-hidden":!0,onChange(be){if(be.nativeEvent.defaultPrevented)return;if(g){be.preventDefault();return}const Ve=be.currentTarget.checked,Fe=ke(Rt,be.nativeEvent);if(y==null||y(Ve,Fe),!Fe.isCanceled&&(ie==null||ie(Ve,Fe),!Fe.isCanceled&&(Q(Ve),j!==void 0&&$!==void 0&&!h&&!G))){const je=Ve?[...$.value,j]:$.value.filter(Je=>Je!==j);$.setValue(je,Fe)}},onClick(be){be.stopPropagation()},onFocus(){var be;(be=Z.current)==null||be.focus()}},x!==void 0?{value:($?B&&x:x)||""}:Ke,H,be=>le.getValidationProps(V,be));c.useEffect(()=>{if(!U||j===void 0)return;const be=U.disabledStatesRef.current;return be.set(j,V),()=>{be.delete(j)}},[U,V,j]);const ze=c.useMemo(()=>({...A,checked:fe,disabled:V,readOnly:g,required:b,indeterminate:te}),[A,fe,V,g,b,te]),et=Bp(ze),Te=Re("span",t,{state:ze,ref:[oe,Z,n],props:[{id:S?se??void 0:K,role:"checkbox","aria-checked":te?"mixed":fe,"aria-readonly":g||void 0,"aria-required":b||void 0,"aria-labelledby":Ge,[lw]:h?"":void 0,onFocus(){V||O(!0)},onBlur(){const be=ee.current;be&&(D(!0),O(!1),P==="onBlur"&&le.commit($?ue:be.checked))},onKeyDown(be){var Be;if(be.key!=="Enter"||(be.preventBaseUIHandler(),be.defaultPrevented))return;const Ve=((Be=ee.current)==null?void 0:Be.form)??null,Fe=be.currentTarget,je=be.nativeEvent,Je=be.preventDefault,lt=je.preventDefault;let Se=!1;be.preventDefault=()=>{Se=!0,Je.call(be)},je.preventDefault=()=>{Se=!0,lt.call(je)},lt.call(je),Xe(Fe).queueMicrotask(()=>{var tt;be.preventDefault=Je,je.preventDefault=lt,Se||(tt=sw(Ve))==null||tt.click()})},onClick(be){if(g||V)return;be.preventDefault();const Ve=ee.current;Ve&&zn(Ve,be)}},R,ge,ce,H,be=>le.getValidationProps(V,be)],stateAttributesMapping:et});return Y.jsxs(Wp.Provider,{value:ze,children:[Te,!B&&!$&&X&&!h&&v!==void 0&&Y.jsx("input",{type:"hidden",form:l,name:X,value:v,disabled:V}),Y.jsx("input",{..._e,suppressHydrationWarning:!0})]})}),vP=c.forwardRef(function(t,n){const{render:o,className:r,style:s,keepMounted:i=!1,...a}=t,l=cw(),u=l.checked||l.indeterminate,{mounted:d,transitionStatus:p,setMounted:f}=In(u),y=c.useRef(null),h={...l,transitionStatus:p};It({open:u,ref:y,onComplete(){u||f(!1)}});const m={...Bp(l),...Kt},b=i||d,v=Re("span",t,{ref:[n,y],state:h,stateAttributesMapping:m,props:a});return b?v:null}),uw=c.createContext(void 0);function dw(){return c.useContext(uw)}const xP=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,h=Js(),g=dw(),m=u!==void 0||o!==void 0,b=((h==null?void 0:h.disabled)??!1)||((g==null?void 0:g.disabled)??!1)||r,[v,x]=Ht({controlled:u,default:u===void 0?o??Vt:void 0,name:"ToggleGroup",state:"value"}),S=he((T,E,N)=>{let O;l?(O=v.slice(),E?O.push(T):O.splice(v.indexOf(T),1)):O=E?[T]:[],i==null||i(O,N),!N.isCanceled&&x(O)}),w={disabled:b,multiple:l,orientation:a},R=c.useMemo(()=>({disabled:b,setGroupValue:S,value:v,isValueInitialized:m}),[b,S,v,m]),C={role:"group"},k=Re("div",t,{enabled:!!h,state:w,ref:n,props:[C,y]});return Y.jsx(uf.Provider,{value:R,children:h?k:Y.jsx(Ya,{render:p,className:d,style:f,state:w,refs:[n],props:[C,y],loopFocus:s,enableHomeAndEndKeys:!0,orientation:a})})});function SP(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=Cn(),d=c.useMemo(()=>({anchor:t,setAnchor:n,actionsRef:s,backdropRef:o,internalBackdropRef:r,positionerRef:i,allowMouseUpTriggerRef:a,initialCursorPointRef:l,rootId:u}),[t,u]);return Y.jsx(kp.Provider,{value:d,children:Y.jsx(uc.Provider,{value:void 0,children:Y.jsx(wS,{...e})})})}const ru=500,wP=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:h}=oi(!1),{store:g}=Xn(!1),m=g.useState("open"),b=g.useState("disabled"),v=c.useRef(null),x=c.useRef(null),S=nt(),w=nt(),R=c.useRef(!1),C=c.useRef(null);function k(P,z,F){var L;const I=F.type.startsWith("touch");y.current={x:P,y:z},a({getBoundingClientRect(){return DOMRect.fromRect({width:I?10:0,height:I?10:0,x:P,y:z})}}),R.current=!1,(L=l.current)==null||L.setOpen(!0,ke($t,F)),w.start(ru,()=>{R.current=!0})}function T(P){var I;if(b)return;f.current=!0,Ft(P),k(P.clientX,P.clientY,P.nativeEvent);const z=Ie(v.current);(I=C.current)==null||I.abort();const F=new AbortController;C.current=F,z.addEventListener("mouseup",L=>{var _;if(f.current=!1,!R.current)return;w.clear(),R.current=!1;const M=at(L);ve(p.current,M)||h&&M&&dc(M)===h||(_=l.current)==null||_.setOpen(!1,ke(Sa,L))},{once:!0,signal:F.signal})}function E(){S.clear(),x.current=null}function N(P){if(b){E();return}if(f.current=!1,P.touches.length!==1){E();return}P.stopPropagation();const z=P.touches[0],F={x:z.clientX,y:z.clientY};x.current=F,S.start(ru,()=>{k(F.x,F.y,P.nativeEvent)})}function O(P){if(P.touches.length!==1){E();return}if(S.isStarted()&&x.current){const z=P.touches[0],F=10,I=Math.abs(z.clientX-x.current.x),L=Math.abs(z.clientY-x.current.y);(I>F||L>F)&&E()}}return c.useEffect(()=>()=>{var P;(P=C.current)==null||P.abort()},[]),c.useEffect(()=>{function P(F){if(b)return;const L=at(F);(ve(v.current,L)||ve(u.current,L)||ve(d.current,L))&&F.preventDefault()}const z=Ie(v.current);return Ae(z,"contextmenu",P)},[d,b,u]),Re("div",t,{state:{open:m},ref:[v,n],props:[{onContextMenu:T,onTouchStart:N,onTouchMove:O,onTouchEnd:E,onTouchCancel:E,style:{WebkitTouchCallout:"none"}},i],stateAttributesMapping:Zo})});function fw(e,t){const n=getComputedStyle(e),o=parseFloat(n.fontSize);return t*o}function pw(e,t){const n=getComputedStyle(e.ownerDocument.documentElement),o=parseFloat(n.fontSize);return t*o}function hw(e){return e/100*window.innerHeight}function gw(e){return e/100*window.innerWidth}function mw(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 Ho({groupSize:e,panelElement:t,styleProp:n}){let o;const[r,s]=mw(n);switch(s){case"%":{o=r/100*e;break}case"px":{o=r;break}case"rem":{o=pw(t,r);break}case"em":{o=fw(t,r);break}case"vh":{o=hw(r);break}case"vw":{o=gw(r);break}}return o}function wt(e){return parseFloat(e.toFixed(3))}function wo({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 ra(e){const{panels:t}=e,n=wo({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=Ho({groupSize:n,panelElement:r,styleProp:s.collapsedSize});i=wt(d/n*100)}let a;if(s.defaultSize!==void 0){const d=Ho({groupSize:n,panelElement:r,styleProp:s.defaultSize});a=wt(d/n*100)}let l=0;if(s.minSize!==void 0){const d=Ho({groupSize:n,panelElement:r,styleProp:s.minSize});l=wt(d/n*100)}let u=100;if(s.maxSize!==void 0){const d=Ho({groupSize:n,panelElement:r,styleProp:s.maxSize});u=wt(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 Qe(e,t="Assertion error"){if(!e)throw Error(t)}function sa(e,t){return Array.from(t).sort(e==="horizontal"?yw:bw)}function yw(e,t){const n=e.element.offsetLeft-t.element.offsetLeft;return n!==0?n:e.element.offsetWidth-t.element.offsetWidth}function bw(e,t){const n=e.element.offsetTop-t.element.offsetTop;return n!==0?n:e.element.offsetHeight-t.element.offsetHeight}function Up(e){return e!==null&&typeof e=="object"&&"nodeType"in e&&e.nodeType===Node.ELEMENT_NODE}function Gp(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 vw({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}=Gp(o,i),u=e==="horizontal"?a:l;u<s&&(s=u,r=i)}return Qe(r,"No rect found"),r}let $r;function xw(){return $r===void 0&&(typeof matchMedia=="function"?$r=!!matchMedia("(pointer:coarse)").matches:$r=!1),$r}function qp(e){const{element:t,orientation:n,panels:o,separators:r}=e,s=sa(n,Array.from(t.children).filter(Up).map(h=>({element:h}))).map(({element:h})=>h),i=[];let a=!1,l=!1,u=-1,d=-1,p=0,f,y=[];{let h=-1;for(const g of s)g.hasAttribute("data-panel")&&(h++,g.hasAttribute("data-disabled")||(p++,u===-1&&(u=h),d=h))}if(p>1){let h=-1;for(const g of s)if(g.hasAttribute("data-panel")){h++;const m=o.find(b=>b.element===g);if(m){if(f){const b=f.element.getBoundingClientRect(),v=g.getBoundingClientRect();let x;if(l){const S=n==="horizontal"?new DOMRect(b.right,b.top,0,b.height):new DOMRect(b.left,b.bottom,b.width,0),w=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:{x=[S,w];break}case 1:{const R=y[0],C=vw({orientation:n,rects:[b,v],targetRect:R.element.getBoundingClientRect()});x=[R,C===b?w:S];break}default:{x=y;break}}}else y.length?x=y:x=[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 S of x){let w="width"in S?S:S.element.getBoundingClientRect();const R=xw()?e.resizeTargetMinimumSize.coarse:e.resizeTargetMinimumSize.fine;if(w.width<R){const k=R-w.width;w=new DOMRect(w.x-k/2,w.y,w.width+k,w.height)}if(w.height<R){const k=R-w.height;w=new DOMRect(w.x,w.y-k/2,w.width,w.height+k)}const C=h<=u||h>d;!a&&!C&&i.push({group:e,groupSize:wo({group:e}),panels:[f,m],separator:"width"in S?void 0:S,rect:w}),a=!1}}l=!1,f=m,y=[]}}else if(g.hasAttribute("data-separator")){g.ariaDisabled!==null&&(a=!0);const m=r.find(b=>b.element===g);m?y.push(m):(f=void 0,y=[])}else l=!0}return i}var hn;class Yp{constructor(){Pc(this,hn,{})}addListener(t,n){const o=No(this,hn)[t];return o===void 0?No(this,hn)[t]=[n]:o.includes(n)||o.push(n),()=>{this.removeListener(t,n)}}emit(t,n){const o=No(this,hn)[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(){Mc(this,hn,{})}removeListener(t,n){const o=No(this,hn)[t];if(o!==void 0){const r=o.indexOf(n);r>=0&&o.splice(r,1)}}}hn=new WeakMap;let po={cursorFlags:0,state:"inactive"};const hc=new Yp;function jn(){return po}function Sw(e){return hc.addListener("change",e)}function ww(e){const t=po,n={...po};n.cursorFlags=e,po=n,hc.emit("change",{prev:t,next:n})}function ho(e){const t=po;po=e,hc.emit("change",{prev:t,next:e})}const Rw=e=>e,Ii=()=>{},Xp=1,Kp=2,Zp=4,Qp=8,su=3,iu=12;let Hr;function au(){return Hr===void 0&&(Hr=!1,typeof window<"u"&&(window.navigator.userAgent.includes("Chrome")||window.navigator.userAgent.includes("Firefox"))&&(Hr=!0)),Hr}function kw({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&&au()){const s=(e&Xp)!==0,i=(e&Kp)!==0,a=(e&Zp)!==0,l=(e&Qp)!==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 au()?o>0&&r>0?"move":o>0?"ew-resize":"ns-resize":o>0&&r>0?"grab":o>0?"col-resize":"row-resize"}}const cu=new WeakMap;function gc(e){if(e.defaultView===null||e.defaultView===void 0)return;let{prevStyle:t,styleSheet:n}=cu.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=jn();switch(o.state){case"active":case"hover":{const r=kw({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}}cu.set(e,{prevStyle:t,styleSheet:n})}let qt=new Map;const Jp=new Yp;function Cw(e){qt=new Map(qt),qt.delete(e)}function lu(e,t){for(const[n]of qt)if(n.id===e)return n}function bn(e,t){for(const[n,o]of qt)if(n.id===e)return o;if(t)throw Error(`Could not find data for Group with id ${e}`)}function Kn(){return qt}function mc(e,t){return Jp.addListener("groupChange",n=>{n.group.id===e&&t(n)})}function ln(e,t,n){const o=qt.get(e);qt=new Map(qt),qt.set(e,t),Jp.emit("groupChange",{group:e,isUserInteraction:(n==null?void 0:n.isUserInteraction)===!0,prev:o,next:t})}function eh(e){const t=jn();let n=!1;switch(t.state){case"active":ho({cursorFlags:0,state:"inactive"}),t.hitRegions.length>0&&(gc(e),n=!0,t.hitRegions.forEach(o=>{const r=bn(o.group.id,!0);ln(o.group,r,{isUserInteraction:!0})}))}return n}function uu(e){e.defaultPrevented||eh(e.currentTarget)}function Ew(e,t,n){let o,r={x:1/0,y:1/0};for(const s of t){const i=Gp(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 Pw(e){return e!==null&&typeof e=="object"&&"nodeType"in e&&e.nodeType===Node.DOCUMENT_FRAGMENT_NODE}function Mw(e,t){if(e===t)throw new Error("Cannot compare node with itself");const n={a:pu(e),b:pu(t)};let o;for(;n.a.at(-1)===n.b.at(-1);)o=n.a.pop(),n.b.pop();Qe(o,"Stacking order can only be calculated for elements with a common ancestor");const r={a:fu(du(n.a)),b:fu(du(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 Tw=/\b(?:position|zIndex|opacity|transform|webkitTransform|mixBlendMode|filter|webkitFilter|isolation)\b/;function Iw(e){const t=getComputedStyle(th(e)??e).display;return t==="flex"||t==="inline-flex"}function Ow(e){const t=getComputedStyle(e);return!!(t.position==="fixed"||t.zIndex!=="auto"&&(t.position!=="static"||Iw(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"||Tw.test(t.willChange)||t.webkitOverflowScrolling==="touch")}function du(e){let t=e.length;for(;t--;){const n=e[t];if(Qe(n,"Missing node"),Ow(n))return n}return null}function fu(e){return e&&Number(getComputedStyle(e).zIndex)||0}function pu(e){const t=[];for(;e;)t.push(e),e=th(e);return t}function th(e){const{parentNode:t}=e;return Pw(t)?t.host:t}function Aw(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 Nw({groupElement:e,hitRegion:t,pointerEventTarget:n}){if(!Up(n)||n.contains(e)||e.contains(n))return!0;if(Mw(n,e)>0){let o=n;for(;o;){if(o.contains(e))return!0;if(Aw(o.getBoundingClientRect(),t))return!1;o=o.parentElement}}return!0}function yc(e,t){const n=[];return t.forEach((o,r)=>{if(r.disabled)return;const s=qp(r),i=Ew(r.orientation,s,{x:e.clientX,y:e.clientY});i&&i.distance.x<=0&&i.distance.y<=0&&Nw({groupElement:r.element,hitRegion:i.hitRegion.rect,pointerEventTarget:e.target})&&n.push(i.hitRegion)}),n}function Dw(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 bt(e,t,n=0){return Math.abs(wt(e)-wt(t))<=n}function Ut(e,t){return bt(e,t)?0:e>t?1:-1}function ao({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(Ut(o,l)<0)if(s){const u=(r+l)/2;Ut(o,u)<0?o=r:o=l}else o=l;return o=Math.min(a,o),o=wt(o),o}function tr({delta:e,initialLayout:t,panelConstraints:n,pivotIndices:o,prevLayout:r,trigger:s}){if(bt(e,0))return t;const i=s==="imperative-api",a=Object.values(t),l=Object.values(r),u=[...a],[d,p]=o;Qe(d!=null,"Invalid first pivot index"),Qe(p!=null,"Invalid second pivot index");let f=0;switch(s){case"keyboard":{{const g=e<0?p:d,m=n[g];Qe(m,`Panel constraints not found for index ${g}`);const{collapsedSize:b=0,collapsible:v,minSize:x=0}=m;if(v){const S=a[g];if(Qe(S!=null,`Previous layout not found for panel index ${g}`),bt(S,b)){const w=x-S;Ut(w,Math.abs(e))>0&&(e=e<0?0-w:w)}}}{const g=e<0?d:p,m=n[g];Qe(m,`No panel constraints found for index ${g}`);const{collapsedSize:b=0,collapsible:v,minSize:x=0}=m;if(v){const S=a[g];if(Qe(S!=null,`Previous layout not found for panel index ${g}`),bt(S,x)){const w=S-b;Ut(w,Math.abs(e))>0&&(e=e<0?0-w:w)}}}break}default:{const g=e<0?p:d,m=n[g];Qe(m,`Panel constraints not found for index ${g}`);const b=a[g],{collapsible:v,collapsedSize:x,minSize:S}=m;if(v&&Ut(b,S)<0)if(e>0){const w=S-x,R=w/2,C=b+e;Ut(C,S)<0&&(e=Ut(e,R)<=0?0:w)}else{const w=S-x,R=100-w/2,C=b-e;Ut(C,S)<0&&(e=Ut(100+e,R)>0?0:-w)}break}}{const g=e<0?1:-1;let m=e<0?p:d,b=0;for(;;){const x=a[m];Qe(x!=null,`Previous layout not found for panel index ${m}`);const S=ao({overrideDisabledPanels:i,panelConstraints:n[m],prevSize:x,size:100})-x;if(b+=S,m+=g,m<0||m>=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 m=Math.abs(e)-Math.abs(f),b=a[g];Qe(b!=null,`Previous layout not found for panel index ${g}`);const v=b-m,x=ao({overrideDisabledPanels:i,panelConstraints:n[g],prevSize:b,size:v});if(!bt(b,x)&&(f+=b-x,u[g]=x,f.toFixed(3).localeCompare(Math.abs(e).toFixed(3),void 0,{numeric:!0})>=0))break;e<0?g--:g++}}if(Dw(l,u))return r;{const g=e<0?p:d,m=a[g];Qe(m!=null,`Previous layout not found for panel index ${g}`);const b=m+f,v=ao({overrideDisabledPanels:i,panelConstraints:n[g],prevSize:m,size:b});if(u[g]=v,!bt(v,b)){let x=b-v,S=e<0?p:d;for(;S>=0&&S<n.length;){const w=u[S];Qe(w!=null,`Previous layout not found for panel index ${S}`);const R=w+x,C=ao({overrideDisabledPanels:i,panelConstraints:n[S],prevSize:w,size:R});if(bt(w,C)||(x-=C-w,u[S]=C),bt(x,0))break;e>0?S--:S++}}}const y=Object.values(u).reduce((g,m)=>m+g,0);if(!bt(y,100,.1))return r;const h=Object.keys(r);return u.reduce((g,m,b)=>(g[h[b]]=m,g),{})}function Bn(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(t[n]===void 0||Ut(e[n],t[n])!==0)return!1;return!0}function Wn({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(!bt(r,100)&&o.length>0)for(let a=0;a<t.length;a++){const l=o[a];Qe(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];Qe(l!=null,`No layout data found for index ${a}`);const u=o[a];Qe(u!=null,`No layout data found for index ${a}`);const d=ao({overrideDisabledPanels:!0,panelConstraints:t[a],prevSize:l,size:u});u!=d&&(s+=u-d,o[a]=d)}if(!bt(s,0))for(let a=0;a<t.length;a++){const l=o[a];Qe(l!=null,`No layout data found for index ${a}`);const u=l+s,d=ao({overrideDisabledPanels:!0,panelConstraints:t[a],prevSize:l,size:u});if(l!==d&&(s-=d-l,o[a]=d,bt(s,0)))break}const i=Object.keys(e);return o.reduce((a,l,u)=>(a[i[u]]=l,a),{})}function nh({groupId:e,panelId:t}){const n=()=>{const l=Kn();for(const[u,{defaultLayoutDeferred:d,derivedPanelConstraints:p,layout:f,groupSize:y,separatorToPanels:h}]of l)if(u.id===e)return{defaultLayoutDeferred:d,derivedPanelConstraints:p,group:u,groupSize:y,layout:f,separatorToPanels:h};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(m=>m.id===t),h=y===0,g=y===u.length-1;if(g&&l<f&&(h||u.slice(0,y).every((m,b)=>{const v=p[b];return(v==null?void 0:v.collapsible)&&bt(v.collapsedSize,d[v.panelId])}))){const m=u.slice(0,y).reduce((b,v)=>b+d[v.id],0);return{...d,[t]:wt(100-m)}}return tr({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:h,separatorToPanels:g}=n(),m=i({nextSize:l,panels:f.panels,prevLayout:h,derivedPanelConstraints:p}),b=Wn({layout:m,panelConstraints:p});Bn(h,b)||ln(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&&bt(u,d)},resize:l=>{const{group:u}=n(),{element:d}=r(),p=wo({group:u}),f=Ho({groupSize:p,panelElement:d,styleProp:l}),y=wt(f/p*100);a(y)}}}function hu(e){if(e.defaultPrevented)return;const t=Kn();yc(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=nh({groupId:n.group.id,panelId:o.id});s&&r!==void 0&&(s.resize(r),e.preventDefault())}}})}function Xr(e){const t=Kn();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 oh({groupId:e}){const t=()=>{const n=Kn();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=Wn({layout:n,panelConstraints:r});return o?a:(Bn(a,u)||ln(s,{defaultLayoutDeferred:o,derivedPanelConstraints:r,groupSize:i,layout:u,separatorToPanels:l}),u)}}}function Fn(e,t){const n=Xr(e),o=bn(n.id,!0),r=n.separators.find(d=>d.element===e);Qe(r,"Matching separator not found");const s=o.separatorToPanels.get(r);Qe(s,"Matching panels not found");const i=s.map(d=>n.panels.indexOf(d)),a=oh({groupId:n.id}).getLayout(),l=tr({delta:t,initialLayout:a,panelConstraints:o.derivedPanelConstraints,pivotIndices:i,prevLayout:a,trigger:"keyboard"}),u=Wn({layout:l,panelConstraints:o.derivedPanelConstraints});Bn(a,u)||ln(n,{defaultLayoutDeferred:o.defaultLayoutDeferred,derivedPanelConstraints:o.derivedPanelConstraints,groupSize:o.groupSize,layout:u,separatorToPanels:o.separatorToPanels},{isUserInteraction:!0})}function gu(e){if(e.defaultPrevented)return;const t=e.currentTarget,n=Xr(t);if(!n.disabled)switch(e.key){case"ArrowDown":{e.preventDefault(),n.orientation==="vertical"&&Fn(t,5);break}case"ArrowLeft":{e.preventDefault(),n.orientation==="horizontal"&&Fn(t,-5);break}case"ArrowRight":{e.preventDefault(),n.orientation==="horizontal"&&Fn(t,5);break}case"ArrowUp":{e.preventDefault(),n.orientation==="vertical"&&Fn(t,-5);break}case"End":{e.preventDefault(),Fn(t,100);break}case"Enter":{e.preventDefault();const o=Xr(t),r=bn(o.id,!0),{derivedPanelConstraints:s,layout:i,separatorToPanels:a}=r,l=o.separators.find(f=>f.element===t);Qe(l,"Matching separator not found");const u=a.get(l);Qe(u,"Matching panels not found");const d=u[0],p=s.find(f=>f.panelId===d.id);if(Qe(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;Fn(t,y-f)}break}case"F6":{e.preventDefault();const o=Xr(t).separators.map(i=>i.element),r=Array.from(o).findIndex(i=>i===e.currentTarget);Qe(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(),Fn(t,-100);break}}}function mu(e){if(e.defaultPrevented||e.pointerType==="mouse"&&e.button>0)return;const t=Kn(),n=yc(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)}),ho({cursorFlags:0,hitRegions:n,initialLayoutMap:o,pointerDownAtPoint:{x:e.clientX,y:e.clientY},state:"active"}),n.length&&e.preventDefault()}function rh({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:h}=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 m=o.get(d),b=r.get(d);if(!m||!b)return;const{defaultLayoutDeferred:v,derivedPanelConstraints:x,groupSize:S,layout:w,separatorToPanels:R}=b;if(x&&w&&R){const C=tr({delta:g,initialLayout:m,panelConstraints:x,pivotIndices:u.panels.map(k=>y.indexOf(k)),prevLayout:w,trigger:"mouse-or-touch"});if(Bn(C,w)){if(g!==0&&!h)switch(f){case"horizontal":{a|=g<0?Xp:Kp;break}case"vertical":{a|=g<0?Zp:Qp;break}}}else ln(u.group,{defaultLayoutDeferred:v,derivedPanelConstraints:x,groupSize:S,layout:C,separatorToPanels:R})}});let l=0;t.movementX===0?l|=i&su:l|=a&su,t.movementY===0?l|=i&iu:l|=a&iu,ww(l),gc(e)}function yu(e){const t=Kn(),n=jn();switch(n.state){case"active":rh({document:e.currentTarget,event:e,hitRegions:n.hitRegions,initialLayoutMap:n.initialLayoutMap,mountedGroups:t,prevCursorFlags:n.cursorFlags})}}function bu(e){var o,r;if(e.defaultPrevented)return;const t=jn(),n=Kn();switch(t.state){case"active":{if(e.buttons===0){ho({cursorFlags:0,state:"inactive"}),t.hitRegions.forEach(s=>{const i=bn(s.group.id,!0);ln(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))}rh({document:e.currentTarget,event:e,hitRegions:t.hitRegions,initialLayoutMap:t.initialLayoutMap,mountedGroups:n,pointerDownAtPoint:t.pointerDownAtPoint,prevCursorFlags:t.cursorFlags});break}default:{const s=yc(e,n);s.length===0?t.state!=="inactive"&&ho({cursorFlags:0,state:"inactive"}):ho({cursorFlags:0,hitRegions:s,state:"hover"}),gc(e.currentTarget);break}}}function vu(e){if(e.relatedTarget instanceof HTMLIFrameElement)switch(jn().state){case"hover":ho({cursorFlags:0,state:"inactive"})}}function xu(e){e.defaultPrevented||e.pointerType==="mouse"&&e.button>0||eh(e.currentTarget)&&e.preventDefault()}function Su(e){let t=0,n=0;const o={};for(const s of e)if(s.defaultSize!==void 0){t++;const i=wt(s.defaultSize);n+=i,o[s.panelId]=i}else o[s.panelId]=void 0;const r=e.length-t;if(r!==0){const s=wt((100-n)/r);for(const i of e)i.defaultSize===void 0&&(o[i.panelId]=s)}return o}function Lw(e,t,n){if(!n[0])return;const o=e.panels.find(l=>l.element===t);if(!o||!o.onResize)return;const r=wo({group:e}),s=e.orientation==="horizontal"?o.element.offsetWidth:o.element.offsetHeight,i=o.mutableValues.prevSize,a={asPercentage:wt(s/r*100),inPixels:s};o.mutableValues.prevSize=a,o.onResize(a,o.id,i)}function _w(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 Fw({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,h=wt(y/t*100);a.set(p.id,h),r+=h;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]=wt(f/s*u)}else{const p=wt(u/l.length);for(const f of l)d[f]=p}return d}function zw(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 ro=new Map;function Vw(e){let t=!0;Qe(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(h=>{for(const g of h){const{borderBoxSize:m,target:b}=g;if(b===e.element){if(t){const v=wo({group:e});if(v===0)return;const x=bn(e.id);if(!x)return;const S=ra(e),w=x.defaultLayoutDeferred?Su(S):x.layout,R=Fw({group:e,nextGroupSize:v,prevGroupSize:x.groupSize,prevLayout:w}),C=Wn({layout:R,panelConstraints:S});if(!x.defaultLayoutDeferred&&Bn(x.layout,C)&&_w(x.derivedPanelConstraints,S)&&x.groupSize===v)return;ln(e,{defaultLayoutDeferred:!1,derivedPanelConstraints:S,groupSize:v,layout:C,separatorToPanels:x.separatorToPanels})}}else Lw(e,b,m)}});s.observe(e.element),e.panels.forEach(h=>{Qe(!o.has(h.id),`Panel ids must be unique; id "${h.id}" was used more than once`),o.add(h.id),h.onResize&&s.observe(h.element)});const i=wo({group:e}),a=ra(e),l=e.panels.map(({id:h})=>h).join(",");let u=e.mutableState.defaultLayout;u&&(zw(e.panels,u)||(u=void 0));const d=e.mutableState.layouts[l]??u??Su(a),p=Wn({layout:d,panelConstraints:a}),f=e.element.ownerDocument;ro.set(f,(ro.get(f)??0)+1);const y=new Map;return qp(e).forEach(h=>{h.separator&&y.set(h.separator,h.panels)}),ln(e,{defaultLayoutDeferred:i===0,derivedPanelConstraints:a,groupSize:i,layout:p,separatorToPanels:y}),e.separators.forEach(h=>{Qe(!r.has(h.id),`Separator ids must be unique; id "${h.id}" was used more than once`),r.add(h.id),h.element.addEventListener("keydown",gu)}),ro.get(f)===1&&(f.addEventListener("contextmenu",uu,!0),f.addEventListener("dblclick",hu,!0),f.addEventListener("pointerdown",mu,!0),f.addEventListener("pointerleave",yu),f.addEventListener("pointermove",bu),f.addEventListener("pointerout",vu),f.addEventListener("pointerup",xu,!0)),function(){t=!1,ro.set(f,Math.max(0,(ro.get(f)??0)-1)),Cw(e),e.separators.forEach(h=>{h.element.removeEventListener("keydown",gu)}),ro.get(f)||(f.removeEventListener("contextmenu",uu,!0),f.removeEventListener("dblclick",hu,!0),f.removeEventListener("pointerdown",mu,!0),f.removeEventListener("pointerleave",yu),f.removeEventListener("pointermove",bu),f.removeEventListener("pointerout",vu),f.removeEventListener("pointerup",xu,!0)),s.disconnect()}}function $w(){const[e,t]=c.useState({}),n=c.useCallback(()=>t({}),[]);return[e,n]}function bc(e){const t=c.useId();return`${e??t}`}const Zn=typeof window<"u"?c.useLayoutEffect:c.useEffect;function Go(e){const t=c.useRef(e);return Zn(()=>{t.current=e},[e]),c.useCallback((...n)=>{var o;return(o=t.current)==null?void 0:o.call(t,...n)},[t])}function vc(...e){return Go(t=>{e.forEach(n=>{if(n)switch(typeof n){case"function":{n(t);break}case"object":{n.current=t;break}}})})}function xc(e){const t=c.useRef({...e});return Zn(()=>{for(const n in e)t.current[n]=e[n]},[e]),t.current}const sh=c.createContext(null);function Hw(e,t){const n=c.useRef({getLayout:()=>({}),setLayout:Rw});c.useImperativeHandle(t,()=>n.current,[]),Zn(()=>{Object.assign(n.current,oh({groupId:e}))})}function jw({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 h=c.useRef({onLayoutChange:{},onLayoutChanged:{}}),g=Go(N=>{Bn(h.current.onLayoutChange,N)||(h.current.onLayoutChange=N,l==null||l(N))}),m=Go((N,O)=>{Bn(h.current.onLayoutChanged,N)||(h.current.onLayoutChanged=N,u==null||u(N,{isUserInteraction:O}))}),b=bc(a),v=c.useRef(null),[x,S]=$w(),w=c.useRef({lastExpandedPanelSizes:{},layouts:{},panels:[],resizeTargetMinimumSize:p,separators:[]}),R=vc(v,s);Hw(b,i);const C=Go((N,O)=>{const D=jn(),A=lu(N),P=bn(N);if(P){let z=!1;switch(D.state){case"active":{z=D.hitRegions.some(F=>F.group===A);break}}return{flexGrow:P.layout[O]??1,pointerEvents:z?"none":void 0}}if(n!=null&&n[O])return{flexGrow:n==null?void 0:n[O]}}),k=xc({defaultLayout:n,disableCursor:o}),T=c.useMemo(()=>({get disableCursor(){return!!k.disableCursor},getPanelStyles:C,id:b,orientation:d,registerPanel:N=>{const O=w.current;return O.panels=sa(d,[...O.panels,N]),S(),()=>{O.panels=O.panels.filter(D=>D!==N),S()}},registerSeparator:N=>{const O=w.current;return O.separators=sa(d,[...O.separators,N]),S(),()=>{O.separators=O.separators.filter(D=>D!==N),S()}},updatePanelProps:(N,{disabled:O})=>{const D=w.current.panels.find(z=>z.id===N);D&&(D.panelConstraints.disabled=O);const A=lu(b),P=bn(b);A&&P&&ln(A,{...P,derivedPanelConstraints:ra(A)})},updateSeparatorProps:(N,{disabled:O,disableDoubleClick:D})=>{const A=w.current.separators.find(P=>P.id===N);A&&(A.disabled=O,A.disableDoubleClick=D)}}),[C,b,S,d,k]),E=c.useRef(null);return Zn(()=>{const N=v.current;if(N===null)return;const O=w.current;let D;if(k.defaultLayout!==void 0&&Object.keys(k.defaultLayout).length===O.panels.length){D={};for(const M of O.panels){const _=k.defaultLayout[M.id];_!==void 0&&(D[M.id]=_)}}const A={disabled:!!r,element:N,id:b,mutableState:{defaultLayout:D,disableCursor:!!k.disableCursor,expandedPanelSizes:w.current.lastExpandedPanelSizes,layouts:w.current.layouts},orientation:d,panels:O.panels,resizeTargetMinimumSize:O.resizeTargetMinimumSize,separators:O.separators};E.current=A;const P=Vw(A),{defaultLayoutDeferred:z,derivedPanelConstraints:F,layout:I}=bn(A.id,!0);!z&&F.length>0&&(g(I),m(I,!1));const L=mc(b,M=>{const{defaultLayoutDeferred:_,derivedPanelConstraints:H,layout:$}=M.next;if(_||H.length===0)return;const U=A.panels.map(({id:V})=>V).join(",");A.mutableState.layouts[U]=$,H.forEach(V=>{if(V.collapsible){const{layout:X}=M.prev??{};if(X){const j=bt(V.collapsedSize,$[V.panelId]),K=bt(V.collapsedSize,X[V.panelId]);j&&!K&&(A.mutableState.expandedPanelSizes[V.panelId]=X[V.panelId])}}});const G=jn().state!=="active";g($),G&&m($,M.isUserInteraction)});return()=>{E.current=null,P(),L()}},[r,b,m,g,d,x,k]),c.useEffect(()=>{const N=E.current;N&&(N.mutableState.defaultLayout=n,N.mutableState.disableCursor=!!o)}),Y.jsx(sh.Provider,{value:T,children:Y.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})})}jw.displayName="Group";function Sc(){const e=c.useContext(sh);return Qe(e,"Group Context not found; did you render a Panel or Separator outside of a Group?"),e}function Bw(e,t){const{id:n}=Sc(),o=c.useRef({collapse:Ii,expand:Ii,getSize:()=>({asPercentage:0,inPixels:0}),isCollapsed:()=>!1,resize:Ii});c.useImperativeHandle(t,()=>o.current,[]),Zn(()=>{Object.assign(o.current,nh({groupId:n,panelId:e}))})}function Ww({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,...h}){const g=!!l,m=bc(l),b=xc({disabled:s}),v=c.useRef(null),x=vc(v,i),{getPanelStyles:S,id:w,orientation:R,registerPanel:C,updatePanelProps:k}=Sc(),T=p!==null,E=Go((A,P,z)=>{p==null||p(A,l,z)});Zn(()=>{const A=v.current;if(A!==null){const P={element:A,id:m,idIsStable:g,mutableValues:{expandToSize:void 0,prevSize:void 0},onResize:T?E:void 0,panelConstraints:{groupResizeBehavior:a,collapsedSize:n,collapsible:o,defaultSize:r,disabled:b.disabled,maxSize:u,minSize:d}};return C(P)}},[a,n,o,r,T,m,g,u,d,E,C,b]),c.useEffect(()=>{k(m,{disabled:s})},[s,m,k]),Bw(m,f);const N=()=>{const A=S(w,m);if(A)return JSON.stringify(A)},O=c.useSyncExternalStore(A=>mc(w,A),N,N);let D;return O?D=JSON.parse(O):r!==void 0?D={flexGrow:void 0,flexShrink:void 0,flexBasis:r}:D={flexGrow:1},Y.jsx("div",{...h,"data-disabled":s||void 0,"data-panel":!0,"data-testid":m,id:m,ref:x,style:{...Uw,display:"flex",flexBasis:0,flexShrink:1,overflow:"visible",...D},children:Y.jsx("div",{className:t,style:{maxHeight:"100%",maxWidth:"100%",flexGrow:1,overflow:"auto",...y,touchAction:R==="horizontal"?"pan-y":"pan-x"},children:e})})}Ww.displayName="Panel";const Uw={minHeight:0,maxHeight:"100%",height:"auto",minWidth:0,maxWidth:"100%",width:"auto",border:"none",borderWidth:0,padding:0,margin:0};function Gw({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=Wn({layout:tr({delta:u-i,initialLayout:e,panelConstraints:t,pivotIndices:d,prevLayout:e}),panelConstraints:t})[n],r=Wn({layout:tr({delta:l-i,initialLayout:e,panelConstraints:t,pivotIndices:d,prevLayout:e}),panelConstraints:t})[n]}return{valueControls:n,valueMax:r,valueMin:s,valueNow:i}}function qw({children:e,className:t,disabled:n,disableDoubleClick:o,elementRef:r,id:s,style:i,...a}){const l=bc(s),u=xc({disabled:n,disableDoubleClick:o}),[d,p]=c.useState({}),[f,y]=c.useState("inactive"),[h,g]=c.useState(!1),m=c.useRef(null),b=vc(m,r),{disableCursor:v,id:x,orientation:S,registerSeparator:w,updateSeparatorProps:R}=Sc(),C=S==="horizontal"?"vertical":"horizontal";Zn(()=>{const E=m.current;if(E!==null){const N={disabled:u.disabled,disableDoubleClick:u.disableDoubleClick,element:E,id:l},O=w(N),D=Sw(P=>{y(P.next.state!=="inactive"&&P.next.hitRegions.some(z=>z.separator===N)?P.next.state:"inactive")}),A=mc(x,P=>{const{derivedPanelConstraints:z,layout:F,separatorToPanels:I}=P.next,L=I.get(N);if(L){const M=L[0],_=L.indexOf(M);p(Gw({layout:F,panelConstraints:z,panelId:M.id,panelIndex:_}))}});return()=>{D(),A(),O()}}},[x,l,w,u]),c.useEffect(()=>{R(l,{disabled:n,disableDoubleClick:o})},[n,o,l,R]);let k;n&&!v&&(k="not-allowed");let T;if(n)T="disabled";else switch(f){case"active":{T="active";break}default:h?T="focus":T=f}return Y.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":T,"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})}qw.displayName="Separator";const ih=c.createContext(void 0);function Yw(){const e=c.useContext(ih);if(e===void 0)throw new Error(We(63));return e}const ah={...qn,checked(e){return e?{"data-checked":""}:{"data-unchecked":""}}},RP=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:h=!1,disabled:g=!1,render:m,uncheckedValue:b,value:v,style:x,...S}=t,{clearErrors:w}=To(),{state:R,setTouched:C,setDirty:k,validityData:T,setFilled:E,setFocused:N,validationMode:O,disabled:D,name:A,validation:P}=Zt(),{labelId:z}=An(),F=D||g,I=A??d,L=c.useRef(null),M=Tt(L,u,P.inputRef),_=c.useRef(null),H=st(),$=Po({id:l,implicit:!1,controlRef:_}),U=p?void 0:$,[G,V]=Ht({controlled:o,default:!!s,name:"Switch",state:"checked"});Mo(_,H,G,void 0,!F,d),pe(()=>{L.current&&E(L.current.checked)},[E]),Eo(G,()=>{w(I),k(G!==T.initialValue),E(G),P.change(G)});const{getButtonProps:X,buttonRef:j}=Mt({disabled:F,native:p}),K=qa(i,z,L,!p,U),de={id:p?$:H,role:"switch","aria-checked":G,"aria-readonly":y||void 0,"aria-required":h||void 0,"aria-labelledby":K,onFocus(){F||N(!0)},onBlur(){const q=L.current;!q||F||(C(!0),N(!1),O==="onBlur"&&P.commit(q.checked))},onClick(q){if(y||F)return;q.preventDefault();const ie=L.current;ie&&zn(ie,q)}},se={...P.getValidationProps(F),checked:G,disabled:F,form:a,id:U,name:I,required:h,style:I?Ps:Sn,tabIndex:-1,type:"checkbox","aria-hidden":!0,ref:M,onChange(q){if(q.nativeEvent.defaultPrevented)return;if(y){q.preventDefault();return}const ie=q.currentTarget.checked,ge=ke(Rt,q.nativeEvent);f==null||f(ie,ge),!ge.isCanceled&&V(ie)},onClick(q){q.stopPropagation()},onFocus(){var q;(q=_.current)==null||q.focus()},...v!==void 0?{value:v}:Ke},ne=c.useMemo(()=>({...R,checked:G,disabled:F,readOnly:y,required:h}),[R,G,F,y,h]),re=Re("span",t,{state:ne,ref:[n,_,j],props:[de,S,X,q=>P.getValidationProps(F,q)],stateAttributesMapping:ah});return Y.jsxs(ih.Provider,{value:ne,children:[re,!G&&I&&b!==void 0&&Y.jsx("input",{type:"hidden",form:a,name:I,value:b,disabled:F}),Y.jsx("input",{...se,suppressHydrationWarning:!0})]})}),kP=c.forwardRef(function(t,n){const{render:o,className:r,style:s,...i}=t,a=Yw();return Re("span",t,{state:a,ref:n,stateAttributesMapping:ah,props:i})});export{NR as $,LR as A,ok as B,pR as C,AR as D,$R as E,tk as F,ik as G,gk as H,yC as I,uR as J,xk as K,Rk as L,Hk as M,DC as N,sk as O,nC as P,nR as Q,uC as R,hC as S,IC as T,Lk as U,fC as V,ck as W,BC as X,fR as Y,GC as Z,iC as _,nk as a,WC as a$,jC as a0,IR as a1,KR as a2,dR as a3,Wk as a4,iR as a5,wk as a6,HC as a7,RP as a8,kP as a9,dC as aA,Jw as aB,Qw as aC,ER as aD,FR as aE,XC as aF,Vy as aG,qC as aH,YC as aI,Bk as aJ,yk as aK,KC as aL,ZC as aM,eE as aN,QC as aO,JC as aP,oE as aQ,nE as aR,tE as aS,Ok as aT,rE as aU,lE as aV,cE as aW,iE as aX,aE as aY,sE as aZ,dk as a_,BR as aa,WR as ab,$C as ac,VC as ad,_R as ae,Ik as af,FC as ag,Kk as ah,vR as ai,PR as aj,sC as ak,UR as al,sR as am,tC as an,ek as ao,_C as ap,Ck as aq,Ak as ar,LC as as,xC as at,Dk as au,SR as av,Tk as aw,Zw as ax,oC as ay,oR as az,cC as b,oP as b$,wC as b0,uE as b1,yE as b2,kE as b3,vE as b4,dE as b5,pE as b6,fE as b7,hE as b8,bE as b9,ZR as bA,wS as bB,WE as bC,HE as bD,zE as bE,$E as bF,jE as bG,BE as bH,VE as bI,qE as bJ,UE as bK,GE as bL,bk as bM,Qk as bN,XE as bO,QE as bP,YE as bQ,JE as bR,KE as bS,ZE as bT,rC as bU,TC as bV,gC as bW,bR as bX,eP as bY,tP as bZ,nP as b_,gE as ba,mE as bb,SE as bc,xE as bd,RE as be,wE as bf,hR as bg,OE as bh,PE as bi,ME as bj,IE as bk,TE as bl,EE as bm,CE as bn,Ax as bo,zR as bp,Et as bq,AE as br,Gr as bs,ti as bt,DE as bu,LE as bv,_E as bw,FE as bx,_f as by,Jk as bz,jR as c,Xk as c$,sP as c0,rP as c1,QR as c2,eC as c3,Zk as c4,iP as c5,aP as c6,uP as c7,cP as c8,lP as c9,Mk as cA,XR as cB,qR as cC,ak as cD,RC as cE,wP as cF,SP as cG,kR as cH,aR as cI,Vk as cJ,aC as cK,pC as cL,_k as cM,tR as cN,vk as cO,JR as cP,rR as cQ,lR as cR,lk as cS,vC as cT,qk as cU,HR as cV,Gk as cW,qw as cX,Ww as cY,jw as cZ,wR as c_,hP as ca,gP as cb,pP as cc,dP as cd,fP as ce,mP as cf,yP as cg,bP as ch,vP as ci,mk as cj,$k as ck,pk as cl,MR as cm,xR as cn,VR as co,mR as cp,eR as cq,zC as cr,RR as cs,xP as ct,TR as cu,CR as cv,Pk as cw,YR as cx,jk as cy,hk as cz,mC as d,OR as d0,lC as d1,Ek as d2,NC as d3,zk as d4,SC as d5,kk as d6,EC as e,Nk as f,UC as g,PC as h,uk as i,AC as j,GR as k,Fk as l,DR as m,Sk as n,fk as o,rk as p,cR as q,Yk as r,kC as s,yR as t,gR as u,Uk as v,bC as w,CC as x,MC as y,OC as z};
|
|
957
|
+
`)},lS=0,eo=[];function uS(e){var t=c.useRef([]),n=c.useRef([0,0]),o=c.useRef(),r=c.useState(lS++)[0],s=c.useState(fp)[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=O2([e.lockRef.current],(e.shards||[]).map(Yl),!0).filter(Boolean);return g.forEach(function(m){return m.classList.add("allow-interactivity-".concat(r))}),function(){document.body.classList.remove("block-interactivity-".concat(r)),g.forEach(function(m){return m.classList.remove("allow-interactivity-".concat(r))})}}},[e.inert,e.lockRef.current,e.shards]);var a=c.useCallback(function(g,m){if("touches"in g&&g.touches.length===2||g.type==="wheel"&&g.ctrlKey)return!i.current.allowPinchZoom;var b=_r(g),v=n.current,x="deltaX"in g?g.deltaX:v[0]-b[0],S="deltaY"in g?g.deltaY:v[1]-b[1],w,R=g.target,C=Math.abs(x)>Math.abs(S)?"h":"v";if("touches"in g&&C==="h"&&R.type==="range")return!1;var k=window.getSelection(),T=k&&k.anchorNode,E=T?T===R||T.contains(R):!1;if(E)return!1;var N=ql(C,R);if(!N)return!0;if(N?w=C:(w=C==="v"?"h":"v",N=ql(C,R)),!N)return!1;if(!o.current&&"changedTouches"in g&&(x||S)&&(o.current=w),!w)return!0;var O=o.current||w;return iS(O,m,g,O==="h"?x:S)},[]),l=c.useCallback(function(g){var m=g;if(!(!eo.length||eo[eo.length-1]!==s)){var b="deltaY"in m?Gl(m):_r(m),v=t.current.filter(function(w){return w.name===m.type&&(w.target===m.target||m.target===w.shadowParent)&&aS(w.delta,b)})[0];if(v&&v.should){m.cancelable&&m.preventDefault();return}if(!v){var x=(i.current.shards||[]).map(Yl).filter(Boolean).filter(function(w){return w.contains(m.target)}),S=x.length>0?a(m,x[0]):!i.current.noIsolation;S&&m.cancelable&&m.preventDefault()}}},[]),u=c.useCallback(function(g,m,b,v){var x={name:g,delta:m,target:b,should:v,shadowParent:dS(b)};t.current.push(x),setTimeout(function(){t.current=t.current.filter(function(S){return S!==x})},1)},[]),d=c.useCallback(function(g){n.current=_r(g),o.current=void 0},[]),p=c.useCallback(function(g){u(g.type,Gl(g),g.target,a(g,e.lockRef.current))},[]),f=c.useCallback(function(g){u(g.type,_r(g),g.target,a(g,e.lockRef.current))},[]);c.useEffect(function(){return eo.push(s),e.setCallbacks({onScrollCapture:p,onWheelCapture:p,onTouchMoveCapture:f}),document.addEventListener("wheel",l,Jn),document.addEventListener("touchmove",l,Jn),document.addEventListener("touchstart",d,Jn),function(){eo=eo.filter(function(g){return g!==s}),document.removeEventListener("wheel",l,Jn),document.removeEventListener("touchmove",l,Jn),document.removeEventListener("touchstart",d,Jn)}},[]);var y=e.removeScrollBar,h=e.inert;return c.createElement(c.Fragment,null,h?c.createElement(s,{styles:cS(r)}):null,y?c.createElement(J2,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function dS(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const fS=$2(dp,uS);var mp=c.forwardRef(function(e,t){return c.createElement(ni,qt({},e,{ref:t,sideCar:fS}))});mp.classNames=ni.classNames;var pS=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},to=new WeakMap,Lr=new WeakMap,Fr={},Ti=0,yp=function(e){return e&&(e.host||yp(e.parentNode))},hS=function(e,t){return t.map(function(n){if(e.contains(n))return n;var o=yp(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})},gS=function(e,t,n,o){var r=hS(t,Array.isArray(e)?e:[e]);Fr[n]||(Fr[n]=new WeakMap);var s=Fr[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),h=y!==null&&y!=="false",g=(to.get(f)||0)+1,m=(s.get(f)||0)+1;to.set(f,g),s.set(f,m),i.push(f),g===1&&h&&Lr.set(f,!0),m===1&&f.setAttribute(n,"true"),h||f.setAttribute(o,"true")}catch(b){console.error("aria-hidden: cannot operate on ",f,b)}})};return d(t),a.clear(),Ti++,function(){i.forEach(function(p){var f=to.get(p)-1,y=s.get(p)-1;to.set(p,f),s.set(p,y),f||(Lr.has(p)||p.removeAttribute(o),Lr.delete(p)),y||p.removeAttribute(n)}),Ti--,Ti||(to=new WeakMap,to=new WeakMap,Lr=new WeakMap,Fr={})}},mS=function(e,t,n){n===void 0&&(n="data-aria-hidden");var o=Array.from(Array.isArray(e)?e:[e]),r=pS(e);return r?(o.push.apply(o,Array.from(r.querySelectorAll("[aria-live], script"))),gS(o,r,n,"aria-hidden")):function(){return null}},yS=Object.defineProperty,dn=(e,t)=>yS(e,"name",{value:t,configurable:!0}),cc="Dialog",[bp,aP]=Ff(cc),[bS,Yn]=bp(cc),cP=dn(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]=$f({prop:o,defaultProp:r??!1,onChange:s,caller:cc}),[p,f]=c.useState(0),[y,h]=c.useState(0);return Y.jsx(bS,{scope:t,triggerRef:a,contentRef:l,contentId:qr(),titleId:qr(),descriptionId:qr(),titlePresent:p>0,descriptionPresent:y>0,setTitleCount:f,setDescriptionCount:h,open:u,onOpenChange:d,onOpenToggle:c.useCallback(()=>d(g=>!g),[d]),modal:i,children:n})},"Dialog"),vp="DialogPortal",[vS,xp]=bp(vp,{forceMount:void 0}),lP=dn(e=>{const{__scopeDialog:t,forceMount:n,children:o,container:r}=e,s=Yn(vp,t);return Y.jsx(vS,{scope:t,forceMount:n,children:c.Children.map(o,i=>Y.jsx(sc,{present:n||s.open,children:Y.jsx(P2,{asChild:!0,container:r,children:i})}))})},"DialogPortal"),ta="DialogOverlay",uP=c.forwardRef(dn(function(t,n){const o=xp(ta,t.__scopeDialog),{forceMount:r=o.forceMount,...s}=t,i=Yn(ta,t.__scopeDialog);return i.modal?Y.jsx(sc,{present:r||i.open,children:Y.jsx(SS,{...s,ref:n})}):null},"DialogOverlay")),xS=nc("DialogOverlay.RemoveScroll"),SS=c.forwardRef(dn(function(t,n){const{__scopeDialog:o,...r}=t,s=Yn(ta,o),i=Kf(),a=Oo(n,i);return Y.jsx(mp,{as:xS,allowPinchZoom:!0,shards:[s.contentRef],children:Y.jsx(ti.div,{"data-state":lc(s.open),...r,ref:a,style:{pointerEvents:"auto",...r.style}})})},"DialogOverlayImpl")),er="DialogContent",dP=c.forwardRef(dn(function(t,n){const o=xp(er,t.__scopeDialog),{forceMount:r=o.forceMount,...s}=t,i=Yn(er,t.__scopeDialog);return Y.jsx(sc,{present:r||i.open,children:i.modal?Y.jsx(wS,{...s,ref:n}):Y.jsx(RS,{...s,ref:n})})},"DialogContent")),wS=c.forwardRef(dn(function(t,n){const o=Yn(er,t.__scopeDialog),r=c.useRef(null),s=Oo(n,o.contentRef,r);return c.useEffect(()=>{const i=r.current;if(i)return mS(i)},[]),Y.jsx(Sp,{...t,ref:s,trapFocus:o.open,disableOutsidePointerEvents:o.open,onCloseAutoFocus:Vn(t.onCloseAutoFocus,i=>{var a;i.preventDefault(),(a=o.triggerRef.current)==null||a.focus()}),onPointerDownOutside:Vn(t.onPointerDownOutside,i=>{const a=i.detail.originalEvent,l=a.button===0&&a.ctrlKey===!0;(a.button===2||l)&&i.preventDefault()}),onFocusOutside:Vn(t.onFocusOutside,i=>i.preventDefault())})},"DialogContentModal")),RS=c.forwardRef(dn(function(t,n){const o=Yn(er,t.__scopeDialog),r=c.useRef(!1),s=c.useRef(!1);return Y.jsx(Sp,{...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")),Sp=c.forwardRef(dn(function(t,n){const{__scopeDialog:o,trapFocus:r,onOpenAutoFocus:s,onCloseAutoFocus:i,...a}=t,l=Yn(er,o);return ac(),Y.jsx(Y.Fragment,{children:Y.jsx(k2,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:s,onUnmountAutoFocus:i,children:Y.jsx(S2,{role:"dialog",id:l.contentId,"aria-describedby":l.descriptionPresent?l.descriptionId:void 0,"aria-labelledby":l.titlePresent?l.titleId:void 0,"data-state":lc(l.open),...a,ref:n,deferPointerDownOutside:!0,onDismiss:()=>l.onOpenChange(!1)})})})},"DialogContentImpl"));function lc(e){return e?"open":"closed"}dn(lc,"getState");const wp=c.createContext(void 0);function Rp(e){const t=c.useContext(wp);if(t===void 0&&!e)throw new Error(We(33));return t}const uc=c.createContext(void 0);function Xn(e){const t=c.useContext(uc);if(t===void 0&&!e)throw new Error(We(36));return t}const kp=c.createContext(void 0);function oi(e=!0){const t=c.useContext(kp);if(t===void 0&&!e)throw new Error(We(25));return t}function kS(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=oi(!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:jo})},onMouseUp(y){if(p){const h=p.initialCursorPointRef.current;if(p.initialCursorPointRef.current=null,f&&h&&Math.abs(y.clientX-h.x)<=1&&Math.abs(y.clientY-h.y)<=1||f&&!ma&&y.button===2)return}a.current&&s.context.allowMouseUpTriggerRef.current&&(!f||y.button===2)&&l.type==="regular-item"&&zn(a.current,y,{detail:1})}}),[t,n,o,u,r,d,s,i,a,p,f,l])}const CS={type:"regular-item"};function ES(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}=Mt({disabled:n,focusableWhenDisabled:!0,native:a,composite:!0}),y=kS({closeOnClick:t,highlighted:o,id:r,nodeId:u,store:s,typingRef:i,itemRef:d,itemMetadata:l}),h=c.useCallback(m=>Et(y,{onMouseEnter(){l.type==="submenu-trigger"&&l.setActive()}},m,p),[y,p,l]),g=Tt(d,f);return c.useMemo(()=>({getItemProps:h,itemRef:g}),[h,g])}const Cp=c.createContext(void 0);function PS(){const e=c.useContext(Cp);if(e===void 0)throw new Error(We(31));return e}const fP=c.forwardRef(function(t,n){const{render:o,className:r,style:s,...i}=t,[a,l]=c.useState(void 0),u=Re("div",t,{ref:n,props:{role:"group","aria-labelledby":a,...i}});return Y.jsx(Cp.Provider,{value:l,children:u})}),pP=c.forwardRef(function(t,n){const{render:o,className:r,style:s,id:i,...a}=t,l=st(i),u=PS();return pe(()=>(u(l),()=>{u(d=>d===l?void 0:d)}),[u,l]),Re("div",t,{ref:n,props:{id:l,role:"presentation",...a}})}),hP=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=ur({guess:!0,label:i}),y=Rp(!0),h=st(s),{store:g}=Xn(),m=g.useState("disabled"),b=l||m,v=g.useState("isActive",f.index),x=g.useState("itemProps"),{getItemProps:S,itemRef:w}=ES({closeOnClick:u,disabled:b,highlighted:v,id:h,store:g,nativeButton:a,nodeId:y==null?void 0:y.context.nodeId,itemMetadata:CS});return Re("div",t,{state:{disabled:b,highlighted:v},props:[x,p,S],ref:[w,n,f.ref]})}),gP=c.forwardRef(function(t,n){const{render:o,className:r,style:s,finalFocus:i,...a}=t,{store:l}=Xn(),{side:u,align:d}=Rp(),p=Js()!=null,f=l.useState("open"),y=l.useState("transitionStatus"),h=l.useState("popupProps"),g=l.useState("mounted"),m=l.useState("instantType"),b=l.useState("activeTriggerElement"),v=l.useState("parent"),x=l.useState("lastOpenChangeReason"),S=l.useState("rootId"),w=l.useState("floatingRootContext"),R=l.useState("floatingTreeRoot"),C=l.useState("closeDelay"),k=l.useState("hoverEnabled"),T=l.useState("disabled"),E=l.useState("openMethod"),N=v.type==="context-menu";It({open:f,ref:l.context.popupRef,onComplete(){var z,F;f&&((F=(z=l.context).onOpenChangeComplete)==null||F.call(z,!0))}}),c.useEffect(()=>{function z(F){l.setOpen(!1,ke(F.reason,F.domEvent))}return R.events.on("close",z),()=>{R.events.off("close",z)}},[R.events,l]),$a(w,{enabled:k&&!T&&!N&&v.type!=="menubar",closeDelay:C});const O=l.useStateSetter("popupElement"),D={transitionStatus:y,side:u,align:d,open:f,nested:v.type==="menu",instant:m},A=Re("div",t,{state:D,ref:[n,l.context.popupRef,O],stateAttributesMapping:Ys,props:[h,{onKeyDown(z){p&&qn.has(z.key)&&z.stopPropagation()}},lr(y),a,{"data-rootownerid":S}]});let P=v.type===void 0||N;return(b||v.type==="menubar"&&x!==Cs)&&(P=!0),Y.jsx(Is,{context:w,openInteractionType:E,modal:N,disabled:!g,returnFocus:i===void 0?P: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:A})}),Ep=c.createContext(void 0);function MS(){const e=c.useContext(Ep);if(e===void 0)throw new Error(We(32));return e}const mP=c.forwardRef(function(t,n){const{keepMounted:o=!1,...r}=t,{store:s}=Xn();return s.useState("mounted")||o?Y.jsx(Ep.Provider,{value:o,children:Y.jsx(Ts,{ref:n,...r})}):null}),yP=c.forwardRef(function(t,n){var ae;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:h=!1,disableAnchorTracking:g=!1,collisionAvoidance:m=vd,style:b,...v}=t,{store:x}=Xn(),S=MS(),w=oi(!0),R=x.useState("parent"),C=x.useState("floatingRootContext"),k=x.useState("floatingTreeRoot"),T=x.useState("mounted"),E=x.useState("open"),N=x.useState("modal"),O=x.useState("openMethod"),D=x.useState("activeTriggerElement"),A=x.useState("transitionStatus"),P=x.useState("positionerElement"),z=x.useState("instantType"),F=x.useState("adaptiveOrigin"),I=x.useState("lastOpenChangeReason"),_=x.useState("floatingNodeId"),M=x.useState("floatingParentNodeId"),L=C.useState("domReferenceElement"),H=c.useRef(null),$=_s(P);let U=o,q=u,V=d,X=l,j=m;R.type==="context-menu"&&(U=o??((ae=R.context)==null?void 0:ae.anchor),X=X??"start",!a&&X!=="center"&&(V=t.alignOffset??2,q=t.sideOffset??-5));let K=a,de=X;R.type==="menu"?(K=K??"inline-end",de=de??"start",j=t.collisionAvoidance??Ma):R.type==="menubar"&&(K=K??(R.context.orientation==="vertical"?"inline-end":"bottom"),de=de??"start");const se=R.type==="context-menu",ne=Xs({anchor:U,floatingRootContext:C,positionMethod:w?"fixed":r,mounted:T,side:K,sideOffset:q,align:de,alignOffset:V,arrowPadding:se?0:y,collisionBoundary:p,collisionPadding:f,sticky:h,nodeId:_,keepMounted:S,disableAnchorTracking:g,collisionAvoidance:j,shift:se?{crossAxis:!("side"in j&&j.side==="flip"),rootBoundary:"layoutViewport"}:void 0,externalTree:k,adaptiveOrigin:F});c.useEffect(()=>{function ce(oe){oe.open&&(oe.parentNodeId===_&&x.set("hoverEnabled",!1),oe.nodeId!==_&&oe.parentNodeId===x.select("floatingParentNodeId")&&x.setOpen(!1,ke(Vo)))}return k.events.on("menuopenchange",ce),()=>{k.events.off("menuopenchange",ce)}},[x,k.events,_]),c.useEffect(()=>{if(x.select("floatingParentNodeId")==null)return;function ce(oe){if(oe.open||oe.nodeId!==x.select("floatingParentNodeId"))return;const le=oe.reason??Vo;x.setOpen(!1,ke(le))}return k.events.on("menuopenchange",ce),()=>{k.events.off("menuopenchange",ce)}},[k.events,x]);const re=nt();c.useEffect(()=>{E||re.clear()},[E,re]),c.useEffect(()=>{function ce(oe){if(!(!E||oe.nodeId!==x.select("floatingParentNodeId")))if(oe.target&&D&&D!==oe.target){const le=x.select("closeDelay");le>0?re.isStarted()||re.start(le,()=>{x.setOpen(!1,ke(Vo))}):x.setOpen(!1,ke(Vo))}else re.clear()}return k.events.on("itemhover",ce),()=>{k.events.off("itemhover",ce)}},[k.events,E,D,x,re]),c.useEffect(()=>{const ce={open:E,nodeId:_,parentNodeId:M,reason:x.select("lastOpenChangeReason")};k.events.emit("menuopenchange",ce)},[k.events,E,x,_,M]),pe(()=>{const ce=L,oe=H.current;if(ce&&(H.current=ce),oe&&ce&&ce!==oe){x.set("instantType",void 0);const le=new AbortController;return $(()=>{x.set("instantType","trigger-change")},le.signal),()=>{le.abort()}}},[L,$,x]);const G={open:E,side:ne.side,align:ne.align,anchorHidden:ne.anchorHidden,nested:R.type==="menu",instant:z},ie=R.type==="menubar"&&R.context.modal;Wa(E&&(ie||N&&I!==it),O==="touch",P,D);const ue=Zs(t,G,{styles:ne.positionerStyles,transitionStatus:A,props:v,refs:[n,x.useStateSetter("positionerElement")],hidden:!T,inert:!E}),Z=T&&R.type!=="menu"&&(R.type!=="menubar"&&N&&I!==it||R.type==="menubar"&&R.context.modal);let J=null;return R.type==="menubar"?J=R.context.contentElement:R.type===void 0&&(J=D),Y.jsxs(wp.Provider,{value:ne,children:[Z&&Y.jsx(Ks,{ref:R.type==="context-menu"||R.type==="nested-context-menu"?R.context.internalBackdropRef:null,inert:cr(!E),cutout:J}),Y.jsx(Ed,{id:_,children:Y.jsx(dr,{elementsRef:x.context.itemDomElements,labelsRef:x.context.itemLabels,children:ue})})]})}),TS=c.createContext(null);function Pp(e){return c.useContext(TS)}const IS={...Bs,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 OS extends ko{constructor(n){super({...NS(),...n},AS(),IS);Ue(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 AS(){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 Co}}function NS(){return{...js(),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 Ta,floatingNodeId:void 0,floatingParentNodeId:null,itemProps:Ke,keyboardEventRelay:void 0,closeDelay:0,adaptiveOrigin:void 0}}const DS=c.createContext(void 0);function _S(){return c.useContext(DS)}const LS=Na(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:h,defaultTriggerId:g=null,highlightItemOnHover:m=!0}=t,b=oi(!0),v=Xn(!0),x=Pp(!0),S=_S(),w=c.useMemo(()=>S&&v?{type:"menu",store:v.store}:x?{type:"menubar",context:x}:b&&!v?{type:"context-menu",context:b}:{type:void 0},[b,v,x,S]),R=FS({open:i,openProp:o,activeTriggerId:g,triggerIdProp:h,parent:w});R.useControlledProp("openProp",o),R.useControlledProp("triggerIdProp",h),R.useContextCallback("onOpenChangeComplete",s);const C=Cn(),k=Cn(),T=R.useState("floatingTreeRoot"),E=Ia(T),N=Mn(),O=R.useState("open"),D=R.useState("activeTriggerElement"),A=R.useState("positionerElement"),P=R.useState("hoverEnabled"),z=R.useState("disabled"),F=R.useState("lastOpenChangeReason"),I=R.useState("parent"),_=R.useState("activeIndex"),M=R.useState("payload"),L=R.useState("floatingParentNodeId"),H=c.useRef(null),$=c.useRef(I.type!=="context-menu"),U=nt(),q=c.useRef(!0),V=nt(),X=L!=null,{openMethod:j,triggerProps:K}=Yd(O);R.useSyncedValues({disabled:a,highlightItemOnHover:m,modal:I.type===void 0?l:void 0,openMethod:j,rootId:C}),Vs(R);const{forceUnmount:de}=$s(O,R,()=>{R.set("allowMouseEnter",!1)});pe(()=>{b&&!v?R.update({parent:{type:"context-menu",context:b},floatingNodeId:E,floatingParentNodeId:N}):v&&R.update({floatingNodeId:E,floatingParentNodeId:N})},[b,v,E,N,R]),c.useEffect(()=>{if(O||(H.current=null),I.type==="context-menu"){if(!O){U.clear(),$.current=!1;return}U.start(500,()=>{$.current=!0})}},[U,O,I.type]),pe(()=>{!O&&!P&&R.set("hoverEnabled",!0)},[O,P,R]);const se=he((ee,me)=>{const ye=me.reason;if(!ee&&!R.select("open")||O===ee&&me.trigger===D&&F===ye)return;const De=_a(me);if(!ee&&me.trigger==null&&(me.trigger=D??void 0),r==null||r(ee,me),me.isCanceled)return;R.state.floatingRootContext.dispatchOpenChange(ee,me);const Me=me.event;if(ee===!1&&(Me==null?void 0:Me.type)==="click"&&Me.pointerType==="touch"&&!q.current)return;ee&&ye===co?(q.current=!1,V.start(300,()=>{q.current=!0})):(q.current=!0,V.clear());const qe=(ye===$t||ye===jo)&&Me.detail===0,Le=!ee&&(ye===or||ye==null),ze={open:ee,openChangeReason:ye};H.current=me.event,Fs(ze,ee,me.trigger,De()),R.update(ze),I.type==="menubar"&&(ye===co||ye===xn||ye===it||ye===Fi||ye===Vo)?R.set("instantType","group"):qe||Le?R.set("instantType",qe?"click":"dismiss"):R.set("instantType",void 0)}),ne=zd({popupStore:R,floatingId:k,nested:N!=null,onOpenChange:se}),re=ne.context.events;pe(()=>{const ee=({open:me,eventDetails:ye})=>se(me,ye);return re.on("setOpen",ee),()=>{re==null||re.off("setOpen",ee)}},[re,se]);const G=c.useCallback(()=>{R.setOpen(!1,ke(Es))},[R]);c.useImperativeHandle(p,()=>({unmount:de,close:G}),[de,G]);let ie;I.type==="context-menu"&&(ie=I.context),c.useImperativeHandle(ie==null?void 0:ie.positionerRef,()=>A,[A]),c.useImperativeHandle(ie==null?void 0:ie.actionsRef,()=>({setOpen:se}),[se]);const ge=sr(ne,{enabled:!z,bubbles:{escapeKey:f&&I.type==="menu"},outsidePress(){var ee;return I.type!=="context-menu"||((ee=H.current)==null?void 0:ee.type)==="contextmenu"?!0:$.current},externalTree:X?T:void 0}),ue=On(),Z=c.useCallback(ee=>{R.select("activeIndex")!==ee&&R.set("activeIndex",ee)},[R]),J=Wd(ne,{enabled:!z,listRef:R.context.itemDomElements,activeIndex:_,nested:I.type!==void 0,loopFocus:u,orientation:d,parentOrientation:I.type==="menubar"?I.context.orientation:void 0,rtl:ue==="rtl",disabledIndices:Vt,onNavigate:Z,openOnArrowKeyDown:I.type!=="context-menu",externalTree:X?T:void 0,focusItemOnHover:m}),ae=c.useCallback(ee=>{R.context.typingRef.current=ee},[R]),ce=Ud(ne,{enabled:!z,listRef:R.context.itemLabels,elementsRef:R.context.itemDomElements,activeIndex:_,resetMs:Oy,onMatch:ee=>{O&&ee!==_&&R.set("activeIndex",ee)},onTyping:ae}),oe=c.useMemo(()=>{const ee=Et(ce.reference,J.reference,ge.reference,{onMouseMove(){R.set("allowMouseEnter",!0)}},K);return ee["aria-haspopup"]="menu",ee["aria-expanded"]=O,ee},[R,ce.reference,J.reference,ge.reference,K,O]),le=c.useMemo(()=>{const ee=Et(J.trigger,ge.trigger,K);return ee["aria-haspopup"]="menu",ee["aria-expanded"]=!1,ee},[J.trigger,ge.trigger,K]),W=c.useMemo(()=>Et(ir,{id:k,role:"menu","aria-labelledby":D==null?void 0:D.id,onMouseMove(){R.set("allowMouseEnter",!0),I.type==="menu"&&R.set("hoverEnabled",!1)},onClick(){R.select("hoverEnabled")&&R.set("hoverEnabled",!1)},onKeyDown(ee){const me=R.select("keyboardEventRelay");me&&!ee.isPropagationStopped()&&me(ee)}},ce.floating,J.floating,ge.floating),[D,k,I.type,R,ce.floating,J.floating,ge.floating]),Q=J.item??Ke;Hs(R,{floatingRootContext:ne,activeTriggerProps:oe,inactiveTriggerProps:le,popupProps:W,itemProps:Q});const fe=c.useMemo(()=>({store:R,parent:w}),[R,w]),te=Y.jsxs(uc.Provider,{value:fe,children:[y&&Y.jsx(Ls,{handle:y,store:R}),typeof n=="function"?n({payload:M}):n]});return I.type===void 0||I.type==="context-menu"?Y.jsx(Pd,{externalTree:T,children:te}):te});function FS(e){return gt(()=>new OS(e)).current}function dc(e){if(Ye(e)&&e.hasAttribute("data-rootownerid"))return e.getAttribute("data-rootownerid");if(!on(e))return dc(an(e))}function zS(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,Ie(s.currentTarget).addEventListener("click",()=>{r.current=!1},{once:!0}))},onClick:s=>{r.current&&(r.current=!1,s.preventBaseUIHandler())}}:Ke,[t,n,o])}const bP=Fd(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,...h}=t,g=Xn(!0),b=Ws(f)??(g==null?void 0:g.store);if(!b)throw new Error(We(85));const v=st(l),x=b.useState("isTriggerActive",v),S=b.useState("floatingRootContext"),w=b.useState("isOpenedByTrigger",v),R=b.useState("triggerPopupId",v),C=c.useRef(null),k=$S(),T=vs(!0),E=Tn(),N=c.useMemo(()=>E??new Ta,[E]),O=Ia(N),D=Mn(),{registerTrigger:A,isMountedByThisTrigger:P}=zs(v,C,b,{payload:y,closeDelay:p,parent:k,floatingTreeRoot:N,floatingNodeId:O,floatingParentNodeId:D,keyboardEventRelay:T==null?void 0:T.relayKeyboardEvent}),z=k.type==="menubar",F=b.useState("disabled"),I=i||F||z&&k.context.disabled,{getButtonProps:_,buttonRef:M}=Mt({disabled:I,native:a});c.useEffect(()=>{!w&&k.type===void 0&&(b.context.allowMouseUpTriggerRef.current=!1)},[b,w,k.type]);const L=c.useRef(null),H=nt(),$=he(ae=>{if(!L.current)return;H.clear(),b.context.allowMouseUpTriggerRef.current=!1;const ce=ae.target;ve(L.current,ce)||ve(b.select("positionerElement"),ce)||ce===L.current||ce!=null&&dc(ce)===b.select("rootId")||Cf(ae,L.current)||N.events.emit("close",{domEvent:ae,reason:Sa})});c.useEffect(()=>{w&&b.select("lastOpenChangeReason")===it&&Ie(L.current).addEventListener("mouseup",$,{once:!0})},[w,$,b]);const U=z&&k.context.hasSubmenuOpen,V=Ha(S,{enabled:(u??U)&&!I&&(!z||U&&!P),handleClose:ja({blockPointerEvents:!z}),mouseOnly:!0,move:!1,restMs:k.type===void 0?d:void 0,delay:{close:p},triggerElementRef:C,externalTree:N,isActiveTrigger:x,isClosing:()=>b.select("transitionStatus")==="ending"}),X=VS(w,b.select("lastOpenChangeReason")),j=Os(S,{enabled:!I,event:w&&z?"click":"mousedown",toggle:!0,ignoreMouse:!1,stickIfOpen:k.type===void 0?X:!1}),K=jd(S,{enabled:!I&&U}),de=zS({open:w,enabled:z,mouseDownAction:"open"}),se=c.useMemo(()=>Et(K.reference,j.reference),[K.reference,j.reference]),ne=b.useState("triggerProps",P),{preFocusGuardRef:re,handlePreFocusGuardFocus:G,handleFocusTargetFocus:ie}=Gd(b,C),ge={disabled:I,open:w},ue=[L,n,M,A,C],Z=[se,V??Ke,ne,{"aria-haspopup":"menu","aria-controls":R,id:v,onMouseDown:ae=>{if(b.select("open"))return;H.start(200,()=>{b.context.allowMouseUpTriggerRef.current=!0}),Ie(ae.currentTarget).addEventListener("mouseup",$,{once:!0})}},z?{role:"menuitem"}:{},de,h,_],J=Re("button",t,{enabled:!z,stateAttributesMapping:Zo,state:ge,ref:ue,props:Z});return z?Y.jsx(qa,{tag:"button",render:o,className:r,style:s,state:ge,refs:ue,props:Z,stateAttributesMapping:Zo}):w?Y.jsxs(c.Fragment,{children:[Y.jsx(wn,{ref:re,onFocus:G},`${v}-pre-focus-guard`),Y.jsx(c.Fragment,{children:J},v),Y.jsx(wn,{ref:b.context.triggerFocusTargetRef,onFocus:ie},`${v}-post-focus-guard`)]}):Y.jsx(c.Fragment,{children:J},v)});function VS(e,t){const n=nt(),[o,r]=c.useState(!1);return pe(()=>{e&&t===it?(r(!0),n.start(bd,()=>{r(!1)})):e||(n.clear(),r(!1))},[e,t,n]),o}function $S(){const e=Pp();return c.useMemo(()=>e?{type:"menubar",context:e}:{type:void 0},[e])}function HS(e){const{open:t,defaultOpen:n,onOpenChange:o,disabled:r}=e,[s,i]=Ht({controlled:t,default:n,name:"Collapsible",state:"open"}),{mounted:a,setMounted:l,transitionStatus:u}=In(s,!0,!0),d=st(),[p,f]=c.useState(),y=p===null?void 0:p??d,h=he(g=>{const m=!s,b=ke($t,g.nativeEvent);o(m,b),!b.isCanceled&&i(m)});return c.useMemo(()=>({defaultPanelId:d,disabled:r,handleTrigger:h,mounted:a,open:s,panelId:y,setMounted:l,setOpen:i,setPanelIdState:f,transitionStatus:u}),[d,r,h,a,s,y,l,i,f,u])}const Mp=c.createContext(void 0);function Tp(){const e=c.useContext(Mp);if(e===void 0)throw new Error(We(15));return e}let fc=(function(e){return e.open="data-open",e.closed="data-closed",e[e.startingStyle=is.startingStyle]="startingStyle",e[e.endingStyle=is.endingStyle]="endingStyle",e})({}),jS=(function(e){return e.panelOpen="data-panel-open",e})({});const BS={[fc.open]:""},WS={[fc.closed]:""},US={open(e){return e?{[jS.panelOpen]:""}:null}},qS={open(e){return e?BS:WS}},Ip={...qS,...Kt},vP=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=he(a),f=HS({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]),h=c.useMemo(()=>({...f,onOpenChange:p,state:y}),[f,p,y]),g=Re("div",t,{state:y,ref:n,props:d,stateAttributesMapping:Ip});return Y.jsx(Mp.Provider,{value:h,children:g})}),GS={...US,...Kt},xP=c.forwardRef(function(t,n){const{panelId:o,open:r,handleTrigger:s,state:i,disabled:a}=Tp(),{className:l,disabled:u=a,render:d,nativeButton:p=!0,style:f,...y}=t,{getButtonProps:h,buttonRef:g}=Mt({disabled:u,focusableWhenDisabled:!0,native:p});return Re("button",t,{state:i,ref:[n,g],props:[{"aria-controls":r?o:void 0,"aria-expanded":r,onClick:s},y,h],stateAttributesMapping:GS})}),Fo={height:void 0,width:void 0};function YS(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,h]=c.useState(Fo),g=c.useRef(Fo),m=c.useRef(!1),b=c.useRef(a),v=c.useRef(!1),[x,S]=c.useState(!1),w=c.useRef(null),R=Tt(t,p),C=rt(a),k=_s(p),T=!a&&!s,E=x?"idle":d,N=a&&(b.current||v.current),O=!a&&s&&f.current==="css-animation"&&y.height===void 0&&y.width===void 0?g.current:y,D=n&&T&&f.current!=="css-animation",A=he((_,M=!0)=>{M&&(g.current=_),h(_)}),P=he(()=>{var _;(_=w.current)==null||_.call(w),w.current=null}),z=he(_=>{P(),w.current=()=>{w.current=null,_()}}),F=he(()=>{a&&s&&f.current==="css-animation"&&(v.current=!0)});pe(()=>{!x||d==="starting"||S(!1)},[x,d]),c.useEffect(()=>()=>{F(),P()},[F,P]),pe(()=>{const _=p.current;if(!_)return;!a&&w.current&&P();const M=XS(_,N);if(f.current=M,a&&d==="idle"&&b.current&&M==="css-animation"){g.current=no(_);return}if(a&&d==="starting"){const $=m.current;if(m.current=!1,M==="none"){A(no(_)),S(!0);return}if(M==="css-transition"){const V=KS(_);if(A(no(_)),!$)return V;const X=zr(_,"transition-duration","0s");return z(X),S(!0),V}A(no(_));const U=zr(_,"animation-name","none");if(!$){U();return}const q=zr(_,"animation-duration","0s");U(),z(q),S(!0);return}if(!a&&s&&(d==="idle"||d==="starting")){if(b.current=!1,v.current=!1,M==="none"){A(Fo,!1),l(!1);return}A(no(_));return}if(d!=="ending")return;if(M==="none"){l(!1);return}const L=no(_);if(!(L.height>0||L.width>0)){l(!1);return}A(L),M==="css-animation"&&zr(_,"animation-name","none")()},[s,a,P,A,l,z,N,d]),It({enabled:a&&s&&E==="idle",open:!0,ref:p,onComplete(){a&&A(Fo,!1)}}),c.useEffect(()=>{if(a||!s||E!=="ending"||!p.current)return;const M=new AbortController;let L=-1;function H(){C.current||(l(!1),A(Fo,!1))}return L=Ct.request(()=>{k(H,M.signal)}),()=>{Ct.cancel(L),M.abort()}},[C,s,a,E,k,A,l]),pe(()=>{const _=p.current;!_||!n||!T||_.setAttribute("hidden","until-found")},[T,n]),c.useEffect(function(){const M=p.current;if(!M)return;function L(H){const $=ke(Rt,H);i(!0,$),!$.isCanceled&&(m.current=!0,u(!0))}return Ae(M,"beforematch",L)},[i,u]);const I=r||n||s||a;return{height:O.height,props:{...D?{[fc.startingStyle]:""}:void 0,hidden:T,id:o},ref:R,shouldPreventOpenAnimation:N,shouldRender:I,transitionStatus:E,width:O.width}}function no(e){return{height:e.scrollHeight,width:e.scrollWidth}}function XS(e,t){const n=Xe(e).getComputedStyle(e),o=(n.animationName.split(",").map(s=>s.trim()).some(s=>s!==""&&s!=="none")||t)&&Xl(n.animationDuration),r=Xl(n.transitionDuration);return o&&r||r?"css-transition":o?"css-animation":"none"}function Xl(e){return e.split(",").map(t=>t.trim()).some(t=>t!==""&&Number.parseFloat(t)>0)}function zr(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 KS(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=Ct.request(n);return()=>{Ct.cancel(o),n()}}let Kl=(function(e){return e.collapsiblePanelHeight="--collapsible-panel-height",e.collapsiblePanelWidth="--collapsible-panel-width",e})({});const SP=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:h,setPanelIdState:g,setOpen:m,state:b,transitionStatus:v}=Tp(),x=r??!1,S=s??!1,w=a||void 0,R=w??d;pe(()=>(g(F=>w??(F===null?void 0:F)),()=>{g(F=>F===w?null:F)}),[w,g]);const{height:C,props:k,ref:T,shouldPreventOpenAnimation:E,shouldRender:N,transitionStatus:O,width:D}=YS({externalRef:n,hiddenUntilFound:x,id:R,keepMounted:S,mounted:p,onOpenChange:f,open:y,setMounted:h,setOpen:m,transitionStatus:v}),A={...b,transitionStatus:O},P=Du(l,A),z=Re("div",{...t,style:void 0},{state:A,ref:T,props:[k,{style:{[Kl.collapsiblePanelHeight]:C===void 0?"auto":`${C}px`,[Kl.collapsiblePanelWidth]:D===void 0?"auto":`${D}px`}},u,P?{style:P}:void 0,E?{style:{animationName:"none"}}:void 0],stateAttributesMapping:Ip});return N?z:null}),Op=c.createContext(void 0);function ri(e){const t=c.useContext(Op);if(t===void 0&&!e)throw new Error(We(72));return t}const ZS={...Bs,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 QS extends ko{constructor(n,o,r){const s=new Co;super(JS(n,s,o,r),ew(s),ZS);Ue(this,"setOpen",(n,o)=>{Hb(this,n,o,{extraState:{openChangeReason:o.reason}})})}cancelPendingOpen(n){this.state.floatingRootContext.dispatchOpenChange(!1,ke($t,n))}}function JS(e,t,n,o=!1){const r={...js(),disabled:!1,instantType:void 0,isInstantPhase:!1,trackCursorAxis:"none",disableHoverablePopup:!1,openChangeReason:null,closeOnClick:!0,closeDelay:0,adaptiveOrigin:void 0,...e};return r.floatingRootContext=La(t,n,o),r}function ew(e){return{popupRef:c.createRef(),onOpenChange:void 0,onOpenChangeComplete:void 0,triggerElements:e}}const wP=Na(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,h=Da((N,O)=>new QS({open:o,openProp:r,activeTriggerId:f,triggerIdProp:p},N,O));h.useControlledProp("openProp",r),h.useControlledProp("triggerIdProp",p),h.useContextCallback("onOpenChange",l),h.useContextCallback("onOpenChangeComplete",u);const g=h.useState("open"),m=!n&&g,b=h.useState("activeTriggerId"),v=h.useState("mounted"),x=h.useState("payload");h.useSyncedValues({trackCursorAxis:i,disableHoverablePopup:s,disabled:n}),Vs(h,{closeOnActiveTriggerUnmount:!0});const{forceUnmount:S,transitionStatus:w}=$s(m,h),R=h.useState("isInstantPhase"),C=h.useState("instantType"),k=h.useState("lastOpenChangeReason"),T=c.useRef(null);pe(()=>{g&&n&&h.setOpen(!1,ke(td))},[g,n,h]),pe(()=>{w==="ending"&&k===Rt||w!=="ending"&&R?(C!=="delay"&&(T.current=C),h.set("instantType","delay")):T.current!==null&&(h.set("instantType",T.current),T.current=null)},[w,R,k,C,h]),pe(()=>{m&&b==null&&h.set("payload",void 0)},[h,b,m]),c.useImperativeHandle(a,()=>({unmount:S,close:()=>h.setOpen(!1,ke(Es))}),[S,h]);const E=m||v||!n&&i!=="none";return Y.jsxs(Op.Provider,{value:h,children:[d&&Y.jsx(Ls,{handle:d,store:h}),E&&Y.jsx(tw,{store:h,disabled:n,trackCursorAxis:i}),typeof y=="function"?y({payload:x}):y]})});function tw({store:e,disabled:t,trackCursorAxis:n}){const o=e.useState("floatingRootContext"),r=sr(o,{enabled:!t,referencePress:()=>e.select("closeOnClick")}),s=zy(o,{enabled:!t&&n!=="none",axis:n==="none"?void 0:n}),i=c.useMemo(()=>Et(s.reference,r.reference),[s.reference,r.reference]);return Hs(e,{activeTriggerProps:i,inactiveTriggerProps:i,popupProps:r.floating??Ke}),null}const Ap=c.createContext(void 0);function nw(){return c.useContext(Ap)}const Zl=600,Np="data-base-ui-tooltip-trigger";function Ql(e){if("composedPath"in e){const n=e.composedPath();for(let o=0;o<n.length;o+=1){const r=n[o];if(Ne(r))return r}}const t=e.target;return Ne(t)?t:null}function ow(e){let t=e;for(;t;){const n=t.closest(`[${Np}]`);if(n)return n;const o=t.getRootNode();t="host"in o&&Ne(o.host)?o.host:null}return null}const RP=Fd(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,h=ri(!0),m=Ws(i)??h;if(!m)throw new Error(We(82));const b=st(f),v=m.useState("isTriggerActive",b),x=m.useState("isOpenedByTrigger",b),S=m.useState("floatingRootContext"),w=c.useRef(null),R=u??Zl,C=p??0,{registerTrigger:k,isMountedByThisTrigger:T}=zs(b,w,m,{payload:a,closeOnClick:d,closeDelay:C}),E=nw(),{delayRef:N,isInstantPhase:O,hasProvider:D}=cy(S,{open:x}),A=Va(S);m.useSyncedValue("isInstantPhase",O);const P=m.useState("disabled"),z=l??P,F=rt(z),I=m.useState("trackCursorAxis"),_=m.useState("disableHoverablePopup"),M=c.useRef(!1),L=nt(),H=c.useRef(void 0);function $(){return D?vn(N.current,"open")===0?0:u??E??Zl:R}function U(re){const G=w.current;if(!G||!re)return!1;const ie=ow(re);return ie!==null&&ie!==G&&ve(G,ie)}function q(re){const G=U(re);return M.current=G,G&&(A.openChangeTimeout.clear(),A.restTimeout.clear(),A.restTimeoutPending=!1,L.clear()),G}const V=Ha(S,{enabled:!z,mouseOnly:!0,move:!1,handleClose:!_&&I!=="both"?ja():null,restMs:$,delay(){return p==null&&D?{close:vn(N.current,"close")}:{close:C}},triggerElementRef:w,isActiveTrigger:v,isClosing:()=>m.select("transitionStatus")==="ending",shouldOpen(){return!M.current}}),X=jd(S,{enabled:!z}).reference,j=re=>{const G=M.current,ie=Ql(re),ge=q(ie),ue=w.current,Z=ue&&ie&&ve(ue,ie);if(ge&&m.select("open")&&m.select("lastOpenChangeReason")===it){m.setOpen(!1,ke(it,re));return}if(G&&!ge&&Z&&!F.current&&!m.select("open")&&ue&&yn(H.current)){const J=()=>{!M.current&&!F.current&&!m.select("open")&&m.setOpen(!0,ke(it,re,ue))},ae=$();ae===0?(L.clear(),J()):L.start(ae,J)}},K=m.useState("triggerProps",T);return Re("button",t,{state:{open:x},ref:[n,k,w],props:[V,X,T||I!=="none"?K:void 0,{onMouseOver(re){j(re.nativeEvent)},onFocus(re){U(Ql(re.nativeEvent))&&re.preventBaseUIHandler()},onMouseLeave(){M.current=!1,L.clear(),H.current=void 0},onPointerEnter(re){H.current=re.pointerType},onPointerDown(re){H.current=re.pointerType,m.set("closeOnClick",d),d&&!m.select("open")&&m.cancelPendingOpen(re.nativeEvent)},onClick(re){d&&!m.select("open")&&m.cancelPendingOpen(re.nativeEvent)},id:b,"data-trigger-disabled":z?"":void 0,[Np]:z?void 0:""},y],stateAttributesMapping:qs})}),Dp=c.createContext(void 0);function rw(){const e=c.useContext(Dp);if(e===void 0)throw new Error(We(70));return e}const sw=c.forwardRef(function(t,n){const{children:o,container:r,className:s,render:i,style:a,...l}=t,{node:u,subtree:d}=wd({container:r,ref:n,componentProps:t,elementProps:l});return!d&&!u?null:Y.jsxs(c.Fragment,{children:[d,u&&Dt.createPortal(o,u)]})}),kP=c.forwardRef(function(t,n){const{keepMounted:o=!1,...r}=t;return ri().useState("mounted")||o?Y.jsx(Dp.Provider,{value:o,children:Y.jsx(sw,{ref:n,...r})}):null}),_p=c.createContext(void 0);function iw(){const e=c.useContext(_p);if(e===void 0)throw new Error(We(71));return e}const CP=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:h=!1,disableAnchorTracking:g=!1,collisionAvoidance:m=Ma,style:b,...v}=t,x=ri(),S=rw(),w=x.useState("open"),R=x.useState("mounted"),C=x.useState("trackCursorAxis"),k=x.useState("disableHoverablePopup"),T=x.useState("floatingRootContext"),E=x.useState("instantType"),N=x.useState("transitionStatus"),O=x.useState("adaptiveOrigin"),D=Xs({anchor:s,positionMethod:i,floatingRootContext:T,mounted:R,side:a,sideOffset:u,align:l,alignOffset:d,collisionBoundary:p,collisionPadding:f,sticky:h,arrowPadding:y,disableAnchorTracking:g,keepMounted:S,collisionAvoidance:m,adaptiveOrigin:O}),A=c.useMemo(()=>({open:w,side:D.side,align:D.align,anchorHidden:D.anchorHidden,instant:C!=="none"?"tracking-cursor":E}),[w,D.side,D.align,D.anchorHidden,C,E]),P=Zs(t,A,{styles:D.positionerStyles,transitionStatus:N,props:v,refs:[n,x.useStateSetter("positionerElement")],hidden:!R,inert:!w||C==="both"||k});return Y.jsx(_p.Provider,{value:D,children:P})}),EP=c.forwardRef(function(t,n){const{render:o,className:r,style:s,...i}=t,a=ri(),{side:l,align:u}=iw(),d=a.useState("open"),p=a.useState("instantType"),f=a.useState("transitionStatus"),y=a.useState("popupProps"),h=a.useState("floatingRootContext"),g=a.useState("disabled"),m=a.useState("closeDelay");It({open:d,ref:a.context.popupRef,onComplete(){var S,w;d&&((w=(S=a.context).onOpenChangeComplete)==null||w.call(S,!0))}}),$a(h,{enabled:!g,closeDelay:m});const b=a.useStateSetter("popupElement");return Re("div",t,{state:{open:d,side:l,align:u,instant:p,transitionStatus:f},ref:[n,a.context.popupRef,b],props:[ir,y,lr(f),i],stateAttributesMapping:Ys})}),PP=function(t){const{delay:n,closeDelay:o,timeout:r=400}=t,s=c.useMemo(()=>({open:n,close:o}),[n,o]);return Y.jsx(Ap.Provider,{value:n,children:Y.jsx(ay,{delay:s,timeoutMs:r,children:t.children})})},aw=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:h,name:g,disabled:m,setTouched:b,setDirty:v,validityData:x,setFocused:S,setFilled:w,validationMode:R,validation:C}=Zt(),{clearErrors:k}=To(),T=m||l,E=g??i,N={...h,disabled:T},{labelId:O}=An(),D=Po({id:s});pe(()=>{var L;const M=a!=null;(L=C.inputRef.current)!=null&&L.value||M&&a!==""?w(!0):M&&a===""&&w(!1)},[C.inputRef,w,a]);const A=c.useRef(null);pe(()=>{p&&A.current===pt(Ie(A.current))&&S(!0)},[p,S]);const[P]=Ht({controlled:a,default:d,name:"FieldControl",state:"value"}),z=a!==void 0,F=z?P:void 0,I=he(()=>{var M;return(M=C.inputRef.current)==null?void 0:M.value});return Mo(C.inputRef,D,F,I,!T,i),Re("input",t,{ref:[n,A],state:N,props:[{id:D,disabled:T,name:E,ref:C.inputRef,"aria-labelledby":O,autoFocus:p,...z?{value:F}:{defaultValue:d},onChange(M){const L=M.currentTarget.value;u==null||u(L,ke(Rt,M.nativeEvent)),v(L!==(x.initialValue??"")),w(L!==""),M.nativeEvent.defaultPrevented||(k(E),C.change(L))},onFocus(){S(!0)},onBlur(M){b(!0),S(!1),R==="onBlur"&&C.commit(M.currentTarget.value)},onKeyDown(M){M.currentTarget.tagName==="INPUT"&&M.key==="Enter"&&(b(!0),C.commit(M.currentTarget.value))}},y,M=>C.getValidationProps(T,M)],stateAttributesMapping:Gn})}),MP=c.forwardRef(function(t,n){return Y.jsx(aw,{ref:n,...t})}),Lp=c.createContext(void 0);function si(){const e=c.useContext(Lp);if(e===void 0)throw new Error(We(51));return e}const hr={status(e){return{[`data-${e}`]:""}}},TP=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,[h,g]=c.useState();let m="indeterminate",b=null,v=null,x="",S="indeterminate progress";if(l!=null&&Number.isFinite(l)){const T=hs(l,a,i);b=ut(Number.isNaN(T)?0:T,0,100),v=ut(l,a,i),m=v===i?"complete":"progressing",x=o?Qo(v,s,o):Qo(b/100,s,{style:"percent"}),S=x}const w=c.useMemo(()=>({status:m}),[m]),R={"aria-labelledby":h,"aria-valuemax":i,"aria-valuemin":a,"aria-valuenow":v??void 0,"aria-valuetext":r?r(x,l):S,role:"progressbar",children:Y.jsxs(c.Fragment,{children:[p,Y.jsx("span",{role:"presentation",style:Sn,children:"x"})]})},C=c.useMemo(()=>({formattedValue:x,percentageValue:b,setLabelId:g,state:w,value:l}),[x,b,g,w,l]),k=Re("div",t,{state:w,ref:n,props:[R,y],stateAttributesMapping:hr});return Y.jsx(Lp.Provider,{value:C,children:k})}),IP=c.forwardRef(function(t,n){const{render:o,className:r,style:s,...i}=t,{state:a}=si();return Re("div",t,{state:a,ref:n,props:i,stateAttributesMapping:hr})}),OP=c.forwardRef(function(t,n){const{render:o,className:r,style:s,...i}=t,{percentageValue:a,state:l}=si(),u=a==null?{}:{insetInlineStart:0,height:"inherit",width:`${a}%`};return Re("div",t,{state:l,ref:n,props:[{style:u},i],stateAttributesMapping:hr})}),AP=c.forwardRef(function(t,n){const{className:o,render:r,children:s,style:i,...a}=t,{value:l,formattedValue:u,state:d}=si(),p=d.status==="indeterminate";return Re("span",t,{state:d,ref:n,props:[{"aria-hidden":!0,children:typeof s=="function"?s(p?"indeterminate":u,l):p?null:u},a],stateAttributesMapping:hr})}),NP=c.forwardRef(function(t,n){const{render:o,className:r,style:s,id:i,...a}=t,{setLabelId:l,state:u}=si(),d=lx(i,l);return Re("span",t,{state:u,ref:n,props:[{id:d,role:"presentation"},a],stateAttributesMapping:hr})}),Fp=c.createContext(void 0);function ii(){const e=c.useContext(Fp);if(e===void 0)throw new Error(We(53));return e}const cw=500,na=16;function mn(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 oo=e=>t=>t?{[e]:""}:null,pc={hasOverflowX:oo("data-has-overflow-x"),hasOverflowY:oo("data-has-overflow-y"),overflowXStart:oo("data-overflow-x-start"),overflowXEnd:oo("data-overflow-x-end"),overflowYStart:oo("data-overflow-y-start"),overflowYEnd:oo("data-overflow-y-end"),cornerHidden:()=>null},lw={x:0,y:0},Jl={width:0,height:0},uw={xStart:!1,xEnd:!1,yStart:!1,yEnd:!1},dw={x:!0,y:!0,corner:!0},DP=c.forwardRef(function(t,n){const{render:o,className:r,overflowEdgeThreshold:s,style:i,...a}=t,{xStart:l,xEnd:u,yStart:d,yEnd:p}=fw(s),f=st(),y=nt(),h=nt(),{nonce:g,disableStyleElements:m}=Za(),[b,v]=c.useState(!1),[x,S]=c.useState(!1),[w,R]=c.useState(!1),[C,k]=c.useState(!1),[T,E]=c.useState(!1),[N,O]=c.useState(Jl),[D,A]=c.useState(Jl),[P,z]=c.useState(uw),[F,I]=c.useState(dw),_=c.useRef(null),M=c.useRef(null),L=c.useRef(null),H=c.useRef(null),$=c.useRef(null),U=c.useRef(null),q=c.useRef(null),V=c.useRef(null),X=c.useRef(0),j=c.useRef(0),K=c.useRef(0),de=c.useRef(0),se=c.useRef("vertical"),ne=c.useRef(lw),re=c.useRef(null);function G(fe){const te=fe?R:S,ee=fe?y:h;te(!0),ee.start(cw,()=>{te(!1)})}const ie=he(fe=>{const te=fe.x-ne.current.x,ee=fe.y-ne.current.y;ne.current=fe,ee!==0&&G(!0),te!==0&&G(!1)}),ge=he(()=>{const fe=M.current;fe&&re.current===null&&(re.current=fe.style.scrollSnapType,fe.style.scrollSnapType="none")}),ue=he(fe=>{if(fe.button!==0)return;if(V.current!==null){const me=se.current==="vertical"?$.current:U.current;if(me!=null&&me.hasPointerCapture(V.current))return}V.current=fe.pointerId,X.current=fe.clientY,j.current=fe.clientX,se.current=fe.currentTarget.getAttribute("data-orientation");const te=M.current;te&&(K.current=te.scrollTop,de.current=te.scrollLeft,ge());const ee=se.current==="vertical"?$.current:U.current;ee==null||ee.setPointerCapture(fe.pointerId)}),Z=he(fe=>{if(fe.pointerId!==V.current)return;V.current=null,(se.current==="vertical"?R:S)(!1),re.current!==null&&(M.current&&(M.current.style.scrollSnapType=re.current),re.current=null);const te=se.current==="vertical"?$.current:U.current;te!=null&&te.hasPointerCapture(fe.pointerId)&&te.releasePointerCapture(fe.pointerId)}),J=he(fe=>{if(fe.pointerId!==V.current)return;if(fe.buttons%2===0){Z(fe);return}const te=M.current;if(!te)return;const ee=se.current==="vertical",me=ee?$.current:U.current,ye=ee?L.current:H.current;if(!me||!ye)return;const De=ee?"y":"x",Me=mn(ye,"padding",De),qe=mn(me,"margin",De),Le=ee?me.offsetHeight:me.offsetWidth,et=(ee?ye.offsetHeight:ye.offsetWidth)-Le-Me-qe,Te=ee?fe.clientY-X.current:fe.clientX-j.current,be=et<=0?0:Te/et,Ve=ee?te.scrollHeight:te.scrollWidth,Fe=ee?te.clientHeight:te.clientWidth,Je=(ee?K.current:de.current)+be*(Ve-Fe);ee?te.scrollTop=Je:te.scrollLeft=Je,fe.preventDefault(),G(ee)});function ae(fe){k(fe.pointerType==="touch")}function ce(fe){if(ae(fe),fe.pointerType!=="touch"){const te=ve(_.current,fe.target);v(te)}}const oe=c.useMemo(()=>({scrolling:x||w,hasOverflowX:!F.x,hasOverflowY:!F.y,overflowXStart:P.xStart,overflowXEnd:P.xEnd,overflowYStart:P.yStart,overflowYEnd:P.yEnd,cornerHidden:F.corner}),[x,w,F.x,F.y,F.corner,P]),le={role:"presentation",onPointerEnter:ce,onPointerMove:ce,onPointerDown:ae,onPointerLeave(){v(!1)},style:{position:"relative","--scroll-area-corner-height":`${N.height}px`,"--scroll-area-corner-width":`${N.width}px`}},W=Re("div",t,{state:oe,ref:[n,_],props:[le,a],stateAttributesMapping:pc}),Q=c.useMemo(()=>({handlePointerDown:ue,handlePointerMove:J,handlePointerUp:Z,handleScroll:ie,disableViewportSnap:ge,cornerSize:N,setCornerSize:O,thumbSize:D,setThumbSize:A,hasMeasuredScrollbar:T,setHasMeasuredScrollbar:E,touchModality:C,cornerRef:q,scrollingX:x,scrollingY:w,hovering:b,setHovering:v,viewportRef:M,scrollbarYRef:L,scrollbarXRef:H,thumbYRef:$,thumbXRef:U,rootId:f,hiddenState:F,setHiddenState:I,overflowEdges:P,setOverflowEdges:z,viewportState:oe,overflowEdgeThreshold:{xStart:l,xEnd:u,yStart:d,yEnd:p}}),[ue,J,Z,ie,ge,N,D,T,C,x,w,b,f,F,P,oe,l,u,d,p]);return Y.jsxs(Fp.Provider,{value:Q,children:[!m&&Jo.getElement(g),W]})});function fw(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 pw=c.createContext(void 0),zp=["--scroll-area-overflow-x-start","--scroll-area-overflow-x-end","--scroll-area-overflow-y-start","--scroll-area-overflow-y-end"];let eu=!1;function hw(){eu||Xt||(typeof CSS<"u"&&"registerProperty"in CSS&&zp.forEach(e=>{try{CSS.registerProperty({name:e,syntax:"<length>",inherits:!1,initialValue:"0px"})}catch{}}),eu=!0)}const _P=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:h,setThumbSize:g,rootId:m,setHiddenState:b,hiddenState:v,setHasMeasuredScrollbar:x,handleScroll:S,touchModality:w,setHovering:R,setOverflowEdges:C,overflowEdgeThreshold:k,viewportState:T}=ii(),E=On(),N=c.useRef(!0),O=c.useRef([NaN,NaN,NaN,NaN]),D=nt(),A=nt(),P=he(()=>{const M=a.current,L=l.current,H=u.current,$=d.current,U=p.current,q=f.current;if(!M)return;const V=M.scrollHeight,X=M.scrollWidth,j=M.clientHeight,K=M.clientWidth,de=M.scrollTop,se=M.scrollLeft,ne=O.current,re=Number.isNaN(ne[0]);if(ne[0]=j,ne[1]=V,ne[2]=K,ne[3]=X,re&&x(!0),V===0||X===0)return;const G=gw(M),ie=G.y,ge=G.x,ue=K/X,Z=j/V,J=Math.max(0,X-K),ae=Math.max(0,V-j);let ce=0,oe=0;ge||(ce=vo(E==="rtl"?-se:se,J),oe=J-ce);const le=ie?0:vo(de,ae),W=ie?0:ae-le,Q=ge?0:K,fe=ie?0:j;let te=0,ee=0;!ge&&!ie&&(te=(L==null?void 0:L.offsetWidth)||0,ee=(H==null?void 0:H.offsetHeight)||0);const me=y.width===0&&y.height===0,ye=me?te:0,De=me?ee:0,Me=mn(H,"padding","x"),qe=mn(L,"padding","y"),Le=mn(U,"margin","x"),ze=mn($,"margin","y"),et=Q-Me-Le,Te=fe-qe-ze,be=H?Math.min(H.offsetWidth-ye,et):et,Ve=L?Math.min(L.offsetHeight-De,Te):Te,Fe=Math.max(na,be*ue),je=Math.max(na,Ve*Z);if(g(Se=>Vr(Se,{width:Fe,height:je})),L&&$){const Se=L.offsetHeight-je-qe-ze,Be=tu($,"--scroll-area-thumb-height",de,ae,V,je,Se);$.style.transform=`translate3d(0,${Be}px,0)`}if(H&&U){const Se=H.offsetWidth-Fe-Me-Le,Be=E==="rtl"?-se:se,tt=tu(U,"--scroll-area-thumb-width",Be,J,X,Fe,Se);U.style.transform=`translate3d(${E==="rtl"?-tt:tt}px,0,0)`}const Je=[ce,oe,le,W];zp.forEach((Se,Be)=>{M.style.setProperty(Se,`${Je[Be]}px`)}),q&&h(Se=>Vr(Se,{width:te,height:ee})),b(Se=>Vr(Se,G));const lt={xStart:!ge&&ce>k.xStart,xEnd:!ge&&oe>k.xEnd,yStart:!ie&&le>k.yStart,yEnd:!ie&&W>k.yEnd};C(Se=>Vr(Se,lt))});pe(()=>{hw()},[]),pe(()=>{queueMicrotask(P)},[P,v,E,k.xStart,k.xEnd,k.yStart,k.yEnd]),pe(()=>{var M;(M=a.current)!=null&&M.matches(":hover")&&R(!0)},[a,R]),pe(()=>{const M=a.current;if(typeof ResizeObserver>"u"||!M)return;let L=!1;const H=new ResizeObserver(()=>{if(!L){L=!0;const $=O.current;if($[0]===M.clientHeight&&$[1]===M.scrollHeight&&$[2]===M.clientWidth&&$[3]===M.scrollWidth)return}P()});return H.observe(M),A.start(0,()=>{const $=M.getAnimations({subtree:!0});$.length!==0&&Promise.allSettled($.map(U=>U.finished)).then(P).catch(()=>{})}),()=>{H.disconnect(),A.clear()}},[P,a,A]);function z(){N.current=!1}const F={role:"presentation",...m&&{"data-id":`${m}-viewport`},tabIndex:v.x&&v.y?-1:0,className:Jo.className,style:{overflow:"scroll"},onScroll(){a.current&&(P(),(w||!N.current)&&S({x:a.current.scrollLeft,y:a.current.scrollTop}),D.start(100,()=>{N.current=!0}))},onWheel:z,onPointerMove:z,onPointerEnter:z,onKeyDown:z},I=Re("div",t,{ref:[n,a],state:T,props:[F,i],stateAttributesMapping:pc}),_=c.useMemo(()=>({computeThumbPosition:P}),[P]);return Y.jsx(pw.Provider,{value:_,children:I})});function gw(e){const t=e.clientHeight>=e.scrollHeight,n=e.clientWidth>=e.scrollWidth;return{y:t,x:n,corner:t||n}}function Vr(e,t){for(const n in t)if(e[n]!==t[n])return t;return e}function tu(e,t,n,o,r,s,i){const a=ut(n,0,o),l=n-a,u=Math.max(na,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 Vp=c.createContext(void 0);function mw(){const e=c.useContext(Vp);if(e===void 0)throw new Error(We(54));return e}const LP=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:h,viewportRef:g,thumbYRef:m,thumbXRef:b,handlePointerDown:v,handlePointerUp:x,handleScroll:S,disableViewportSnap:w,rootId:R,thumbSize:C,hasMeasuredScrollbar:k,viewportState:T}=ii(),E=s==="vertical",N={...T,hovering:u,scrolling:E?p:d,orientation:s},O=On(),D=!k&&!i,A=E?f.y:f.x,P=i||!A;c.useEffect(()=>{if(!P)return;const I=g.current,_=E?y.current:h.current;if(!_)return;function M(L){if(!I||L.ctrlKey)return;const H=!E,$=H?"scrollLeft":"scrollTop",U=H?L.deltaX:L.deltaY;if(U===0)return;const q=H?I.scrollWidth-I.clientWidth:I.scrollHeight-I.clientHeight,V=H&&O==="rtl"?-q:0,X=H&&O==="rtl"?0:q,j=I[$];j<=V&&U<0||j>=X&&U>0||(L.preventDefault(),I[$]=Math.min(X,Math.max(V,j+U)),S({x:I.scrollLeft,y:I.scrollTop}))}return Ae(_,"wheel",M,{passive:!1})},[O,S,E,h,y,P,g]);const z={...R&&{"data-id":`${R}-scrollbar`},onPointerDown(I){if(I.button!==0)return;const _=at(I.nativeEvent),M=E?m.current:b.current;if(M&&ve(M,_))return;const L=g.current;if(!L)return;const H=E?y.current:h.current;if(!M||!H)return;const $=E?"y":"x",U=mn(M,"margin",$),q=mn(H,"padding",$),V=E?M.offsetHeight:M.offsetWidth,X=H.getBoundingClientRect(),j=E?I.clientY-X.top-V/2-q+U/2:I.clientX-X.left-V/2-q+U/2,K=E?L.scrollHeight:L.scrollWidth,de=E?L.clientHeight:L.clientWidth,ne=(E?H.offsetHeight:H.offsetWidth)-V-q-U;if(ne<=0)return;const re=j/ne,G=K-de;w(),E?L.scrollTop=re*G:O==="rtl"?L.scrollLeft=-(1-re)*G:L.scrollLeft=re*G,S({x:L.scrollLeft,y:L.scrollTop}),v(I)},onPointerUp:x,onPointerCancel:x,style:{position:"absolute",touchAction:"none",WebkitUserSelect:"none",userSelect:"none",visibility:D?"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`}}},F=Re("div",t,{ref:[n,E?y:h],state:N,props:[z,l],stateAttributesMapping:pc});return P?Y.jsx(Vp.Provider,{value:s,children:F}):null}),FP=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:h}=ii(),g=mw(),m=g==="vertical";return Re("div",t,{ref:[n,m?a:l],state:{scrolling:m?y:f,orientation:g},props:[{onPointerDown:u,onPointerMove:d,onPointerUp:p,onPointerCancel:p,style:{visibility:h?void 0:"hidden",...m?{height:"var(--scroll-area-thumb-height)"}:{width:"var(--scroll-area-thumb-width)"}}},i]})}),zP=c.forwardRef(function(t,n){const{render:o,className:r,style:s,...i}=t,{cornerRef:a,cornerSize:l,hiddenState:u}=ii(),d=Re("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}),$p=c.createContext(void 0);function ai(){const e=c.useContext($p);if(e===void 0)throw new Error(We(64));return e}const gr={tabActivationDirection:e=>({"data-activation-direction":e})},VP=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,h]=c.useState(()=>new Map),[g,m]=Ht({controlled:l,default:r,name:"Tabs",state:"value"}),b=l!==void 0,[v,x]=c.useState(()=>new Map),S=c.useRef(void 0),w=c.useCallback(j=>oa(v,j),[v]),[R,C]=c.useState(()=>({previousValue:g,tabActivationDirection:"none"})),{previousValue:k,tabActivationDirection:T}=R;let E=T,N=!1;k!==g&&(E=nu(k,g,i,v),N=k!=null&&g!=null&&w(g)==null);const O=N?k:g,D=k!==O||T!==E;pe(()=>{D&&C({previousValue:O,tabActivationDirection:E})},[O,D,E]);const A=he((j,K)=>{const de=nu(g,j,i,v);K.activationDirection=de,s==null||s(j,K),!K.isCanceled&&m(j)}),P=he((j,K)=>{s==null||s(j,ke(K,void 0,void 0,{activationDirection:"none"}))}),z=he((j,K)=>(h(de=>{const se=new Map(de);return se.set(j,K),se}),()=>{h(de=>{if(de.get(j)!==K)return de;const se=new Map(de);return se.delete(j),se})})),F=c.useCallback(j=>y.get(j),[y]),I=c.useCallback(j=>{for(const K of v.values())if(j===K.value)return K.id},[v]),_=c.useMemo(()=>({getTabElementBySelectedValue:w,getTabIdByPanelValue:I,getTabPanelIdByValue:F,onValueChange:A,orientation:i,registerMountedTabPanel:z,setTabMap:x,tabActivationDirection:E,value:g}),[w,I,F,A,i,z,x,E,g]),M=c.useMemo(()=>{for(const j of v.values())if(j.value===g)return j},[v,g]),L=c.useMemo(()=>{for(const j of v.values())if(!j.disabled)return j.value},[v]),H=c.useRef(!p),$=c.useRef(r),U=c.useRef(p),q=c.useRef(!1);pe(()=>{var ne;if(b)return;function j(re,G){m(re),C({previousValue:re,tabActivationDirection:"none"}),P(re,G),H.current=!1}if(v.size===0){q.current&&g!==null&&!((ne=S.current)!=null&&ne.isConnected)&&j(null,Bc);return}q.current=!0,S.current=v.keys().next().value;const K=M==null?void 0:M.disabled,de=M==null&&g!==null;if(!K&&g===$.current&&(U.current=!1),U.current&&K&&g===$.current)return;const se=H.current;if(K||de){const re=L??null;if(g===re){H.current=!1;return}let G=Bc;se?G=Wc:K&&(G=td),j(re,G);return}se&&M!=null&&(P(g,Wc),H.current=!1)},[L,b,P,M,m,v,g]);const X=Re("div",t,{state:{orientation:i,tabActivationDirection:E},ref:n,props:d,stateAttributesMapping:gr});return Y.jsx($p.Provider,{value:_,children:Y.jsx(dr,{elementsRef:f,children:X})})});function oa(e,t){for(const[n,o]of e.entries())if(t===o.value)return n;return null}function nu(e,t,n,o){if(e==null||t==null)return"none";const[r,s,i]=n==="horizontal"?["left","left","right"]:["top","up","down"],a=oa(o,e),l=oa(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 Hp=c.createContext(void 0);function jp(){const e=c.useContext(Hp);if(e===void 0)throw new Error(We(65));return e}const $P=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:h,tabActivationDirection:g}=ai(),{activateOnFocus:m,registerTabResizeObserverElement:b,tabsListElement:v}=jp(),{highlightedIndex:x,onHighlightedIndexChange:S}=vs(),w=st(a),R=c.useMemo(()=>({disabled:r,id:w,value:i}),[r,w,i]),{compositeProps:C,compositeRef:k,index:T}=of({metadata:R}),E=i===p,N=c.useRef(!1),O=c.useRef(null),D=he(q=>{var V;(V=O.current)==null||V.call(O),O.current=q?b(q):null});pe(()=>{if(N.current){N.current=!1;return}if(!(E&&T>-1&&x!==T))return;const q=v;if(q!=null){const V=pt(Ie(q));if(V&&ve(q,V))return}r||S(T)},[E,T,x,S,r,v]);const{getButtonProps:A,buttonRef:P}=Mt({disabled:r,native:l,focusableWhenDisabled:!0}),z=f(i),F=c.useRef(!1),I=c.useRef(!1);function _(q){y(i,ke(Rt,q.nativeEvent,void 0,{activationDirection:"none"}))}function M(q){E||r||_(q)}function L(q){E||r||m&&(!F.current||I.current)&&_(q)}function H(q){if(E||r)return;F.current=!0,I.current=q.button===0;const V=Ie(q.currentTarget);function X(){F.current=!1,I.current=!1,V.removeEventListener("pointerup",X),V.removeEventListener("pointercancel",X)}V.addEventListener("pointerup",X),V.addEventListener("pointercancel",X)}return Re("button",t,{state:{disabled:r,active:E,orientation:h,tabActivationDirection:g},ref:[n,P,k,D],props:[C,{role:"tab","aria-controls":z,"aria-selected":E,id:w,onClick:M,onFocus:L,onPointerDown:H,[Ua]:E?"":void 0,onKeyDownCapture(){N.current=!0}},d,A],stateAttributesMapping:gr})});var ou;const yw={...gr,activeTabPosition:()=>null,activeTabSize:()=>null},HP=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}=ai(),{tabsListElement:f,registerIndicatorUpdateListener:y}=jp(),h=zb();c.useEffect(()=>y(h),[y,h]);let g=0,m=0,b=0,v=0,x=0,S=0,w=!1;if(p!=null&&f!=null){const O=l(p);if(O!=null){w=!0;const{width:D,height:A}=Ol(O),{width:P,height:z}=Ol(f),F=O.getBoundingClientRect(),I=f.getBoundingClientRect(),_=P>0?I.width/P:1,M=z>0?I.height/z:1;if(_>Number.EPSILON&&M>Number.EPSILON){const H=F.left-I.left,$=F.top-I.top;g=H/_+f.scrollLeft-f.clientLeft,b=$/M+f.scrollTop-f.clientTop}else g=O.offsetLeft,b=O.offsetTop;x=D,S=A,m=f.scrollWidth-g-x,v=f.scrollHeight-b-S}}const R=w?{left:g,right:m,top:b,bottom:v}:null,C=w?{width:x,height:S}:null,k=w?{"--active-tab-left":`${g}px`,"--active-tab-right":`${m}px`,"--active-tab-top":`${b}px`,"--active-tab-bottom":`${v}px`,"--active-tab-width":`${x}px`,"--active-tab-height":`${S}px`}:void 0,T=w&&x>0&&S>0,N=Re("span",t,{state:{orientation:u,activeTabPosition:R,activeTabSize:C,tabActivationDirection:d},ref:n,props:[{role:"presentation",style:k,hidden:!T},a,{suppressHydrationWarning:!0}],stateAttributesMapping:yw});return p==null?null:Y.jsxs(c.Fragment,{children:[N,s&&(ou||(ou=Y.jsx(xf,{script:vf})))]})}),bw={...gr,...Kt},jP=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}=ai(),h=st(),{ref:g,index:m}=ur(),b=r===u,{mounted:v,transitionStatus:x,setMounted:S}=In(b),w=!v,R=d(r),C={hidden:w,orientation:p,tabActivationDirection:f,transitionStatus:x},k=c.useRef(null),T=Re("div",t,{state:C,ref:[n,g,k],props:[{"aria-labelledby":R,hidden:w,id:h,role:"tabpanel",tabIndex:b?0:-1,inert:cr(!b),"data-index":m},l],stateAttributesMapping:bw});return It({open:b,ref:k,onComplete(){b||S(!1)}}),pe(()=>{if(!(h==null||w&&!i))return y(r,h)},[w,i,r,h,y]),i||v?T:null}),BP=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}=ai(),[f,y]=c.useState(0),[h,g]=c.useState(null),m=c.useRef(new Set),b=c.useRef(new Set),v=c.useRef(null);pe(()=>{if(typeof ResizeObserver>"u")return;const k=new ResizeObserver(()=>{m.current.forEach(T=>{T()})});return v.current=k,h&&k.observe(h),b.current.forEach(T=>{k.observe(T)}),()=>{k.disconnect(),v.current=null}},[h]);const x=he(k=>(m.current.add(k),()=>{m.current.delete(k)})),S=he(k=>{var T;return b.current.add(k),(T=v.current)==null||T.observe(k),()=>{var E;b.current.delete(k),(E=v.current)==null||E.unobserve(k)}}),w={orientation:u,tabActivationDirection:p},R={"aria-orientation":u==="vertical"?"vertical":void 0,role:"tablist"},C=c.useMemo(()=>({activateOnFocus:o,registerIndicatorUpdateListener:x,registerTabResizeObserverElement:S,tabsListElement:h}),[o,x,S,h]);return Y.jsx(Hp.Provider,{value:C,children:Y.jsx(Ya,{render:i,className:r,style:a,state:w,refs:[n,g],props:[R,l],stateAttributesMapping:gr,highlightedIndex:f,enableHomeAndEndKeys:!0,loopFocus:s,orientation:u,onHighlightedIndexChange:y,onMapChange:d,disabledIndices:Vt})})});function WP(e){return Af("alert-dialog",e)}const UP=qx;function vw(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 Bp(e){return{checked(t){return e.indeterminate?{}:t?{"data-checked":""}:{"data-unchecked":""}},...Gn}}const xw=c.createContext(void 0);function Sw(){return c.useContext(xw)}const Wp=c.createContext(void 0);function ww(){const e=c.useContext(Wp);if(e===void 0)throw new Error(We(14));return e}const Rw="data-parent",qP=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:h=!1,readOnly:g=!1,render:m,required:b=!1,uncheckedValue:v,value:x,nativeButton:S=!1,style:w,...R}=t,{clearErrors:C}=To(),{disabled:k,name:T,setDirty:E,setFilled:N,setFocused:O,setTouched:D,state:A,validationMode:P,validityData:z,validation:F}=Zt(),I=rf(),{labelId:_,controlId:M,registerControlId:L,getDescriptionProps:H}=An(),$=Sw(),U=($==null?void 0:$.allValues)===void 0?void 0:$.parent,q=U!==void 0,V=k||I.disabled||($==null?void 0:$.disabled)||a,X=T??f,j=x??X,K=st(),de=st();let se=u||M;q&&(h?se=de:j!==void 0?se=`${U.id}-${j}`:se||(se=de));let ne={};q&&(h?ne=U.getParentProps():j!==void 0&&(ne=U.getChildProps(j)));const{checked:re=o,indeterminate:G=d,onCheckedChange:ie,...ge}=ne,ue=$==null?void 0:$.value,Z=c.useRef(null),J=gt(()=>Symbol()),ae=c.useRef(!1),{getButtonProps:ce,buttonRef:oe}=Mt({disabled:V,native:S}),le=($==null?void 0:$.validation)??F,[W,Q]=Ht({controlled:j!==void 0&&ue!==void 0&&!h?ue.includes(j):re,default:s,name:"Checkbox",state:"checked"}),fe=q?!!re:W,te=q&&G||d;pe(()=>{L!==ot&&(ae.current=!0,L(J.current,se))},[se,L,J]),c.useEffect(()=>{const be=J.current;return()=>{!ae.current||L===ot||(ae.current=!1,L(be,void 0))}},[L,J]),Mo(Z,K,W,void 0,!$&&!V,f);const ee=c.useRef(null),me=le.registerInput,ye=$?j:void 0,De=c.useCallback(be=>me(be,{controlRef:Z,value:ye}),[me,ye]),Me=Tt(p,ee,h?void 0:De),qe=Ga(i,_,ee,!S,se??void 0);pe(()=>{ee.current&&(ee.current.indeterminate=te,W&&N(!0))},[W,te,N]),Eo(W,()=>{$||(C(X),N(W),E(W!==z.initialValue),le.change(W))});const Le=Et({checked:W,disabled:V,form:l,name:h?void 0:X,id:S?void 0:se??void 0,required:b,ref:Me,style:X?Ps:Sn,tabIndex:-1,type:"checkbox","aria-hidden":!0,onChange(be){if(be.nativeEvent.defaultPrevented)return;if(g){be.preventDefault();return}const Ve=be.currentTarget.checked,Fe=ke(Rt,be.nativeEvent);if(y==null||y(Ve,Fe),!Fe.isCanceled&&(ie==null||ie(Ve,Fe),!Fe.isCanceled&&(Q(Ve),j!==void 0&&$!==void 0&&!h&&!q))){const je=Ve?[...$.value,j]:$.value.filter(Je=>Je!==j);$.setValue(je,Fe)}},onClick(be){be.stopPropagation()},onFocus(){var be;(be=Z.current)==null||be.focus()}},x!==void 0?{value:($?W&&x:x)||""}:Ke,H,be=>le.getValidationProps(V,be));c.useEffect(()=>{if(!U||j===void 0)return;const be=U.disabledStatesRef.current;return be.set(j,V),()=>{be.delete(j)}},[U,V,j]);const ze=c.useMemo(()=>({...A,checked:fe,disabled:V,readOnly:g,required:b,indeterminate:te}),[A,fe,V,g,b,te]),et=Bp(ze),Te=Re("span",t,{state:ze,ref:[oe,Z,n],props:[{id:S?se??void 0:K,role:"checkbox","aria-checked":te?"mixed":fe,"aria-readonly":g||void 0,"aria-required":b||void 0,"aria-labelledby":qe,[Rw]:h?"":void 0,onFocus(){V||O(!0)},onBlur(){const be=ee.current;be&&(D(!0),O(!1),P==="onBlur"&&le.commit($?ue:be.checked))},onKeyDown(be){var Be;if(be.key!=="Enter"||(be.preventBaseUIHandler(),be.defaultPrevented))return;const Ve=((Be=ee.current)==null?void 0:Be.form)??null,Fe=be.currentTarget,je=be.nativeEvent,Je=be.preventDefault,lt=je.preventDefault;let Se=!1;be.preventDefault=()=>{Se=!0,Je.call(be)},je.preventDefault=()=>{Se=!0,lt.call(je)},lt.call(je),Xe(Fe).queueMicrotask(()=>{var tt;be.preventDefault=Je,je.preventDefault=lt,Se||(tt=vw(Ve))==null||tt.click()})},onClick(be){if(g||V)return;be.preventDefault();const Ve=ee.current;Ve&&zn(Ve,be)}},R,ge,ce,H,be=>le.getValidationProps(V,be)],stateAttributesMapping:et});return Y.jsxs(Wp.Provider,{value:ze,children:[Te,!W&&!$&&X&&!h&&v!==void 0&&Y.jsx("input",{type:"hidden",form:l,name:X,value:v,disabled:V}),Y.jsx("input",{...Le,suppressHydrationWarning:!0})]})}),GP=c.forwardRef(function(t,n){const{render:o,className:r,style:s,keepMounted:i=!1,...a}=t,l=ww(),u=l.checked||l.indeterminate,{mounted:d,transitionStatus:p,setMounted:f}=In(u),y=c.useRef(null),h={...l,transitionStatus:p};It({open:u,ref:y,onComplete(){u||f(!1)}});const m={...Bp(l),...Kt},b=i||d,v=Re("span",t,{ref:[n,y],state:h,stateAttributesMapping:m,props:a});return b?v:null}),kw=c.createContext(void 0);function Cw(){return c.useContext(kw)}const YP=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,h=Js(),g=Cw(),m=u!==void 0||o!==void 0,b=((h==null?void 0:h.disabled)??!1)||((g==null?void 0:g.disabled)??!1)||r,[v,x]=Ht({controlled:u,default:u===void 0?o??Vt:void 0,name:"ToggleGroup",state:"value"}),S=he((T,E,N)=>{let O;l?(O=v.slice(),E?O.push(T):O.splice(v.indexOf(T),1)):O=E?[T]:[],i==null||i(O,N),!N.isCanceled&&x(O)}),w={disabled:b,multiple:l,orientation:a},R=c.useMemo(()=>({disabled:b,setGroupValue:S,value:v,isValueInitialized:m}),[b,S,v,m]),C={role:"group"},k=Re("div",t,{enabled:!!h,state:w,ref:n,props:[C,y]});return Y.jsx(uf.Provider,{value:R,children:h?k:Y.jsx(Ya,{render:p,className:d,style:f,state:w,refs:[n],props:[C,y],loopFocus:s,enableHomeAndEndKeys:!0,orientation:a})})});function XP(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=Cn(),d=c.useMemo(()=>({anchor:t,setAnchor:n,actionsRef:s,backdropRef:o,internalBackdropRef:r,positionerRef:i,allowMouseUpTriggerRef:a,initialCursorPointRef:l,rootId:u}),[t,u]);return Y.jsx(kp.Provider,{value:d,children:Y.jsx(uc.Provider,{value:void 0,children:Y.jsx(LS,{...e})})})}const ru=500,KP=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:h}=oi(!1),{store:g}=Xn(!1),m=g.useState("open"),b=g.useState("disabled"),v=c.useRef(null),x=c.useRef(null),S=nt(),w=nt(),R=c.useRef(!1),C=c.useRef(null);function k(P,z,F){var _;const I=F.type.startsWith("touch");y.current={x:P,y:z},a({getBoundingClientRect(){return DOMRect.fromRect({width:I?10:0,height:I?10:0,x:P,y:z})}}),R.current=!1,(_=l.current)==null||_.setOpen(!0,ke($t,F)),w.start(ru,()=>{R.current=!0})}function T(P){var I;if(b)return;f.current=!0,Ft(P),k(P.clientX,P.clientY,P.nativeEvent);const z=Ie(v.current);(I=C.current)==null||I.abort();const F=new AbortController;C.current=F,z.addEventListener("mouseup",_=>{var L;if(f.current=!1,!R.current)return;w.clear(),R.current=!1;const M=at(_);ve(p.current,M)||h&&M&&dc(M)===h||(L=l.current)==null||L.setOpen(!1,ke(Sa,_))},{once:!0,signal:F.signal})}function E(){S.clear(),x.current=null}function N(P){if(b){E();return}if(f.current=!1,P.touches.length!==1){E();return}P.stopPropagation();const z=P.touches[0],F={x:z.clientX,y:z.clientY};x.current=F,S.start(ru,()=>{k(F.x,F.y,P.nativeEvent)})}function O(P){if(P.touches.length!==1){E();return}if(S.isStarted()&&x.current){const z=P.touches[0],F=10,I=Math.abs(z.clientX-x.current.x),_=Math.abs(z.clientY-x.current.y);(I>F||_>F)&&E()}}return c.useEffect(()=>()=>{var P;(P=C.current)==null||P.abort()},[]),c.useEffect(()=>{function P(F){if(b)return;const _=at(F);(ve(v.current,_)||ve(u.current,_)||ve(d.current,_))&&F.preventDefault()}const z=Ie(v.current);return Ae(z,"contextmenu",P)},[d,b,u]),Re("div",t,{state:{open:m},ref:[v,n],props:[{onContextMenu:T,onTouchStart:N,onTouchMove:O,onTouchEnd:E,onTouchCancel:E,style:{WebkitTouchCallout:"none"}},i],stateAttributesMapping:Zo})});function Ew(e,t){const n=getComputedStyle(e),o=parseFloat(n.fontSize);return t*o}function Pw(e,t){const n=getComputedStyle(e.ownerDocument.documentElement),o=parseFloat(n.fontSize);return t*o}function Mw(e){return e/100*window.innerHeight}function Tw(e){return e/100*window.innerWidth}function Iw(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 Ho({groupSize:e,panelElement:t,styleProp:n}){let o;const[r,s]=Iw(n);switch(s){case"%":{o=r/100*e;break}case"px":{o=r;break}case"rem":{o=Pw(t,r);break}case"em":{o=Ew(t,r);break}case"vh":{o=Mw(r);break}case"vw":{o=Tw(r);break}}return o}function wt(e){return parseFloat(e.toFixed(3))}function wo({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 ra(e){const{panels:t}=e,n=wo({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=Ho({groupSize:n,panelElement:r,styleProp:s.collapsedSize});i=wt(d/n*100)}let a;if(s.defaultSize!==void 0){const d=Ho({groupSize:n,panelElement:r,styleProp:s.defaultSize});a=wt(d/n*100)}let l=0;if(s.minSize!==void 0){const d=Ho({groupSize:n,panelElement:r,styleProp:s.minSize});l=wt(d/n*100)}let u=100;if(s.maxSize!==void 0){const d=Ho({groupSize:n,panelElement:r,styleProp:s.maxSize});u=wt(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 Qe(e,t="Assertion error"){if(!e)throw Error(t)}function sa(e,t){return Array.from(t).sort(e==="horizontal"?Ow:Aw)}function Ow(e,t){const n=e.element.offsetLeft-t.element.offsetLeft;return n!==0?n:e.element.offsetWidth-t.element.offsetWidth}function Aw(e,t){const n=e.element.offsetTop-t.element.offsetTop;return n!==0?n:e.element.offsetHeight-t.element.offsetHeight}function Up(e){return e!==null&&typeof e=="object"&&"nodeType"in e&&e.nodeType===Node.ELEMENT_NODE}function qp(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 Nw({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}=qp(o,i),u=e==="horizontal"?a:l;u<s&&(s=u,r=i)}return Qe(r,"No rect found"),r}let $r;function Dw(){return $r===void 0&&(typeof matchMedia=="function"?$r=!!matchMedia("(pointer:coarse)").matches:$r=!1),$r}function Gp(e){const{element:t,orientation:n,panels:o,separators:r}=e,s=sa(n,Array.from(t.children).filter(Up).map(h=>({element:h}))).map(({element:h})=>h),i=[];let a=!1,l=!1,u=-1,d=-1,p=0,f,y=[];{let h=-1;for(const g of s)g.hasAttribute("data-panel")&&(h++,g.hasAttribute("data-disabled")||(p++,u===-1&&(u=h),d=h))}if(p>1){let h=-1;for(const g of s)if(g.hasAttribute("data-panel")){h++;const m=o.find(b=>b.element===g);if(m){if(f){const b=f.element.getBoundingClientRect(),v=g.getBoundingClientRect();let x;if(l){const S=n==="horizontal"?new DOMRect(b.right,b.top,0,b.height):new DOMRect(b.left,b.bottom,b.width,0),w=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:{x=[S,w];break}case 1:{const R=y[0],C=Nw({orientation:n,rects:[b,v],targetRect:R.element.getBoundingClientRect()});x=[R,C===b?w:S];break}default:{x=y;break}}}else y.length?x=y:x=[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 S of x){let w="width"in S?S:S.element.getBoundingClientRect();const R=Dw()?e.resizeTargetMinimumSize.coarse:e.resizeTargetMinimumSize.fine;if(w.width<R){const k=R-w.width;w=new DOMRect(w.x-k/2,w.y,w.width+k,w.height)}if(w.height<R){const k=R-w.height;w=new DOMRect(w.x,w.y-k/2,w.width,w.height+k)}const C=h<=u||h>d;!a&&!C&&i.push({group:e,groupSize:wo({group:e}),panels:[f,m],separator:"width"in S?void 0:S,rect:w}),a=!1}}l=!1,f=m,y=[]}}else if(g.hasAttribute("data-separator")){g.ariaDisabled!==null&&(a=!0);const m=r.find(b=>b.element===g);m?y.push(m):(f=void 0,y=[])}else l=!0}return i}var hn;class Yp{constructor(){Pc(this,hn,{})}addListener(t,n){const o=No(this,hn)[t];return o===void 0?No(this,hn)[t]=[n]:o.includes(n)||o.push(n),()=>{this.removeListener(t,n)}}emit(t,n){const o=No(this,hn)[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(){Mc(this,hn,{})}removeListener(t,n){const o=No(this,hn)[t];if(o!==void 0){const r=o.indexOf(n);r>=0&&o.splice(r,1)}}}hn=new WeakMap;let po={cursorFlags:0,state:"inactive"};const hc=new Yp;function jn(){return po}function _w(e){return hc.addListener("change",e)}function Lw(e){const t=po,n={...po};n.cursorFlags=e,po=n,hc.emit("change",{prev:t,next:n})}function ho(e){const t=po;po=e,hc.emit("change",{prev:t,next:e})}const Fw=e=>e,Ii=()=>{},Xp=1,Kp=2,Zp=4,Qp=8,su=3,iu=12;let Hr;function au(){return Hr===void 0&&(Hr=!1,typeof window<"u"&&(window.navigator.userAgent.includes("Chrome")||window.navigator.userAgent.includes("Firefox"))&&(Hr=!0)),Hr}function zw({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&&au()){const s=(e&Xp)!==0,i=(e&Kp)!==0,a=(e&Zp)!==0,l=(e&Qp)!==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 au()?o>0&&r>0?"move":o>0?"ew-resize":"ns-resize":o>0&&r>0?"grab":o>0?"col-resize":"row-resize"}}const cu=new WeakMap;function gc(e){if(e.defaultView===null||e.defaultView===void 0)return;let{prevStyle:t,styleSheet:n}=cu.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=jn();switch(o.state){case"active":case"hover":{const r=zw({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}}cu.set(e,{prevStyle:t,styleSheet:n})}let Gt=new Map;const Jp=new Yp;function Vw(e){Gt=new Map(Gt),Gt.delete(e)}function lu(e,t){for(const[n]of Gt)if(n.id===e)return n}function bn(e,t){for(const[n,o]of Gt)if(n.id===e)return o;if(t)throw Error(`Could not find data for Group with id ${e}`)}function Kn(){return Gt}function mc(e,t){return Jp.addListener("groupChange",n=>{n.group.id===e&&t(n)})}function ln(e,t,n){const o=Gt.get(e);Gt=new Map(Gt),Gt.set(e,t),Jp.emit("groupChange",{group:e,isUserInteraction:(n==null?void 0:n.isUserInteraction)===!0,prev:o,next:t})}function eh(e){const t=jn();let n=!1;switch(t.state){case"active":ho({cursorFlags:0,state:"inactive"}),t.hitRegions.length>0&&(gc(e),n=!0,t.hitRegions.forEach(o=>{const r=bn(o.group.id,!0);ln(o.group,r,{isUserInteraction:!0})}))}return n}function uu(e){e.defaultPrevented||eh(e.currentTarget)}function $w(e,t,n){let o,r={x:1/0,y:1/0};for(const s of t){const i=qp(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 Hw(e){return e!==null&&typeof e=="object"&&"nodeType"in e&&e.nodeType===Node.DOCUMENT_FRAGMENT_NODE}function jw(e,t){if(e===t)throw new Error("Cannot compare node with itself");const n={a:pu(e),b:pu(t)};let o;for(;n.a.at(-1)===n.b.at(-1);)o=n.a.pop(),n.b.pop();Qe(o,"Stacking order can only be calculated for elements with a common ancestor");const r={a:fu(du(n.a)),b:fu(du(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 Bw=/\b(?:position|zIndex|opacity|transform|webkitTransform|mixBlendMode|filter|webkitFilter|isolation)\b/;function Ww(e){const t=getComputedStyle(th(e)??e).display;return t==="flex"||t==="inline-flex"}function Uw(e){const t=getComputedStyle(e);return!!(t.position==="fixed"||t.zIndex!=="auto"&&(t.position!=="static"||Ww(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"||Bw.test(t.willChange)||t.webkitOverflowScrolling==="touch")}function du(e){let t=e.length;for(;t--;){const n=e[t];if(Qe(n,"Missing node"),Uw(n))return n}return null}function fu(e){return e&&Number(getComputedStyle(e).zIndex)||0}function pu(e){const t=[];for(;e;)t.push(e),e=th(e);return t}function th(e){const{parentNode:t}=e;return Hw(t)?t.host:t}function qw(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 Gw({groupElement:e,hitRegion:t,pointerEventTarget:n}){if(!Up(n)||n.contains(e)||e.contains(n))return!0;if(jw(n,e)>0){let o=n;for(;o;){if(o.contains(e))return!0;if(qw(o.getBoundingClientRect(),t))return!1;o=o.parentElement}}return!0}function yc(e,t){const n=[];return t.forEach((o,r)=>{if(r.disabled)return;const s=Gp(r),i=$w(r.orientation,s,{x:e.clientX,y:e.clientY});i&&i.distance.x<=0&&i.distance.y<=0&&Gw({groupElement:r.element,hitRegion:i.hitRegion.rect,pointerEventTarget:e.target})&&n.push(i.hitRegion)}),n}function Yw(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 bt(e,t,n=0){return Math.abs(wt(e)-wt(t))<=n}function Ut(e,t){return bt(e,t)?0:e>t?1:-1}function ao({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(Ut(o,l)<0)if(s){const u=(r+l)/2;Ut(o,u)<0?o=r:o=l}else o=l;return o=Math.min(a,o),o=wt(o),o}function tr({delta:e,initialLayout:t,panelConstraints:n,pivotIndices:o,prevLayout:r,trigger:s}){if(bt(e,0))return t;const i=s==="imperative-api",a=Object.values(t),l=Object.values(r),u=[...a],[d,p]=o;Qe(d!=null,"Invalid first pivot index"),Qe(p!=null,"Invalid second pivot index");let f=0;switch(s){case"keyboard":{{const g=e<0?p:d,m=n[g];Qe(m,`Panel constraints not found for index ${g}`);const{collapsedSize:b=0,collapsible:v,minSize:x=0}=m;if(v){const S=a[g];if(Qe(S!=null,`Previous layout not found for panel index ${g}`),bt(S,b)){const w=x-S;Ut(w,Math.abs(e))>0&&(e=e<0?0-w:w)}}}{const g=e<0?d:p,m=n[g];Qe(m,`No panel constraints found for index ${g}`);const{collapsedSize:b=0,collapsible:v,minSize:x=0}=m;if(v){const S=a[g];if(Qe(S!=null,`Previous layout not found for panel index ${g}`),bt(S,x)){const w=S-b;Ut(w,Math.abs(e))>0&&(e=e<0?0-w:w)}}}break}default:{const g=e<0?p:d,m=n[g];Qe(m,`Panel constraints not found for index ${g}`);const b=a[g],{collapsible:v,collapsedSize:x,minSize:S}=m;if(v&&Ut(b,S)<0)if(e>0){const w=S-x,R=w/2,C=b+e;Ut(C,S)<0&&(e=Ut(e,R)<=0?0:w)}else{const w=S-x,R=100-w/2,C=b-e;Ut(C,S)<0&&(e=Ut(100+e,R)>0?0:-w)}break}}{const g=e<0?1:-1;let m=e<0?p:d,b=0;for(;;){const x=a[m];Qe(x!=null,`Previous layout not found for panel index ${m}`);const S=ao({overrideDisabledPanels:i,panelConstraints:n[m],prevSize:x,size:100})-x;if(b+=S,m+=g,m<0||m>=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 m=Math.abs(e)-Math.abs(f),b=a[g];Qe(b!=null,`Previous layout not found for panel index ${g}`);const v=b-m,x=ao({overrideDisabledPanels:i,panelConstraints:n[g],prevSize:b,size:v});if(!bt(b,x)&&(f+=b-x,u[g]=x,f.toFixed(3).localeCompare(Math.abs(e).toFixed(3),void 0,{numeric:!0})>=0))break;e<0?g--:g++}}if(Yw(l,u))return r;{const g=e<0?p:d,m=a[g];Qe(m!=null,`Previous layout not found for panel index ${g}`);const b=m+f,v=ao({overrideDisabledPanels:i,panelConstraints:n[g],prevSize:m,size:b});if(u[g]=v,!bt(v,b)){let x=b-v,S=e<0?p:d;for(;S>=0&&S<n.length;){const w=u[S];Qe(w!=null,`Previous layout not found for panel index ${S}`);const R=w+x,C=ao({overrideDisabledPanels:i,panelConstraints:n[S],prevSize:w,size:R});if(bt(w,C)||(x-=C-w,u[S]=C),bt(x,0))break;e>0?S--:S++}}}const y=Object.values(u).reduce((g,m)=>m+g,0);if(!bt(y,100,.1))return r;const h=Object.keys(r);return u.reduce((g,m,b)=>(g[h[b]]=m,g),{})}function Bn(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(t[n]===void 0||Ut(e[n],t[n])!==0)return!1;return!0}function Wn({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(!bt(r,100)&&o.length>0)for(let a=0;a<t.length;a++){const l=o[a];Qe(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];Qe(l!=null,`No layout data found for index ${a}`);const u=o[a];Qe(u!=null,`No layout data found for index ${a}`);const d=ao({overrideDisabledPanels:!0,panelConstraints:t[a],prevSize:l,size:u});u!=d&&(s+=u-d,o[a]=d)}if(!bt(s,0))for(let a=0;a<t.length;a++){const l=o[a];Qe(l!=null,`No layout data found for index ${a}`);const u=l+s,d=ao({overrideDisabledPanels:!0,panelConstraints:t[a],prevSize:l,size:u});if(l!==d&&(s-=d-l,o[a]=d,bt(s,0)))break}const i=Object.keys(e);return o.reduce((a,l,u)=>(a[i[u]]=l,a),{})}function nh({groupId:e,panelId:t}){const n=()=>{const l=Kn();for(const[u,{defaultLayoutDeferred:d,derivedPanelConstraints:p,layout:f,groupSize:y,separatorToPanels:h}]of l)if(u.id===e)return{defaultLayoutDeferred:d,derivedPanelConstraints:p,group:u,groupSize:y,layout:f,separatorToPanels:h};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(m=>m.id===t),h=y===0,g=y===u.length-1;if(g&&l<f&&(h||u.slice(0,y).every((m,b)=>{const v=p[b];return(v==null?void 0:v.collapsible)&&bt(v.collapsedSize,d[v.panelId])}))){const m=u.slice(0,y).reduce((b,v)=>b+d[v.id],0);return{...d,[t]:wt(100-m)}}return tr({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:h,separatorToPanels:g}=n(),m=i({nextSize:l,panels:f.panels,prevLayout:h,derivedPanelConstraints:p}),b=Wn({layout:m,panelConstraints:p});Bn(h,b)||ln(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&&bt(u,d)},resize:l=>{const{group:u}=n(),{element:d}=r(),p=wo({group:u}),f=Ho({groupSize:p,panelElement:d,styleProp:l}),y=wt(f/p*100);a(y)}}}function hu(e){if(e.defaultPrevented)return;const t=Kn();yc(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=nh({groupId:n.group.id,panelId:o.id});s&&r!==void 0&&(s.resize(r),e.preventDefault())}}})}function Xr(e){const t=Kn();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 oh({groupId:e}){const t=()=>{const n=Kn();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=Wn({layout:n,panelConstraints:r});return o?a:(Bn(a,u)||ln(s,{defaultLayoutDeferred:o,derivedPanelConstraints:r,groupSize:i,layout:u,separatorToPanels:l}),u)}}}function Fn(e,t){const n=Xr(e),o=bn(n.id,!0),r=n.separators.find(d=>d.element===e);Qe(r,"Matching separator not found");const s=o.separatorToPanels.get(r);Qe(s,"Matching panels not found");const i=s.map(d=>n.panels.indexOf(d)),a=oh({groupId:n.id}).getLayout(),l=tr({delta:t,initialLayout:a,panelConstraints:o.derivedPanelConstraints,pivotIndices:i,prevLayout:a,trigger:"keyboard"}),u=Wn({layout:l,panelConstraints:o.derivedPanelConstraints});Bn(a,u)||ln(n,{defaultLayoutDeferred:o.defaultLayoutDeferred,derivedPanelConstraints:o.derivedPanelConstraints,groupSize:o.groupSize,layout:u,separatorToPanels:o.separatorToPanels},{isUserInteraction:!0})}function gu(e){if(e.defaultPrevented)return;const t=e.currentTarget,n=Xr(t);if(!n.disabled)switch(e.key){case"ArrowDown":{e.preventDefault(),n.orientation==="vertical"&&Fn(t,5);break}case"ArrowLeft":{e.preventDefault(),n.orientation==="horizontal"&&Fn(t,-5);break}case"ArrowRight":{e.preventDefault(),n.orientation==="horizontal"&&Fn(t,5);break}case"ArrowUp":{e.preventDefault(),n.orientation==="vertical"&&Fn(t,-5);break}case"End":{e.preventDefault(),Fn(t,100);break}case"Enter":{e.preventDefault();const o=Xr(t),r=bn(o.id,!0),{derivedPanelConstraints:s,layout:i,separatorToPanels:a}=r,l=o.separators.find(f=>f.element===t);Qe(l,"Matching separator not found");const u=a.get(l);Qe(u,"Matching panels not found");const d=u[0],p=s.find(f=>f.panelId===d.id);if(Qe(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;Fn(t,y-f)}break}case"F6":{e.preventDefault();const o=Xr(t).separators.map(i=>i.element),r=Array.from(o).findIndex(i=>i===e.currentTarget);Qe(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(),Fn(t,-100);break}}}function mu(e){if(e.defaultPrevented||e.pointerType==="mouse"&&e.button>0)return;const t=Kn(),n=yc(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)}),ho({cursorFlags:0,hitRegions:n,initialLayoutMap:o,pointerDownAtPoint:{x:e.clientX,y:e.clientY},state:"active"}),n.length&&e.preventDefault()}function rh({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:h}=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 m=o.get(d),b=r.get(d);if(!m||!b)return;const{defaultLayoutDeferred:v,derivedPanelConstraints:x,groupSize:S,layout:w,separatorToPanels:R}=b;if(x&&w&&R){const C=tr({delta:g,initialLayout:m,panelConstraints:x,pivotIndices:u.panels.map(k=>y.indexOf(k)),prevLayout:w,trigger:"mouse-or-touch"});if(Bn(C,w)){if(g!==0&&!h)switch(f){case"horizontal":{a|=g<0?Xp:Kp;break}case"vertical":{a|=g<0?Zp:Qp;break}}}else ln(u.group,{defaultLayoutDeferred:v,derivedPanelConstraints:x,groupSize:S,layout:C,separatorToPanels:R})}});let l=0;t.movementX===0?l|=i&su:l|=a&su,t.movementY===0?l|=i&iu:l|=a&iu,Lw(l),gc(e)}function yu(e){const t=Kn(),n=jn();switch(n.state){case"active":rh({document:e.currentTarget,event:e,hitRegions:n.hitRegions,initialLayoutMap:n.initialLayoutMap,mountedGroups:t,prevCursorFlags:n.cursorFlags})}}function bu(e){var o,r;if(e.defaultPrevented)return;const t=jn(),n=Kn();switch(t.state){case"active":{if(e.buttons===0){ho({cursorFlags:0,state:"inactive"}),t.hitRegions.forEach(s=>{const i=bn(s.group.id,!0);ln(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))}rh({document:e.currentTarget,event:e,hitRegions:t.hitRegions,initialLayoutMap:t.initialLayoutMap,mountedGroups:n,pointerDownAtPoint:t.pointerDownAtPoint,prevCursorFlags:t.cursorFlags});break}default:{const s=yc(e,n);s.length===0?t.state!=="inactive"&&ho({cursorFlags:0,state:"inactive"}):ho({cursorFlags:0,hitRegions:s,state:"hover"}),gc(e.currentTarget);break}}}function vu(e){if(e.relatedTarget instanceof HTMLIFrameElement)switch(jn().state){case"hover":ho({cursorFlags:0,state:"inactive"})}}function xu(e){e.defaultPrevented||e.pointerType==="mouse"&&e.button>0||eh(e.currentTarget)&&e.preventDefault()}function Su(e){let t=0,n=0;const o={};for(const s of e)if(s.defaultSize!==void 0){t++;const i=wt(s.defaultSize);n+=i,o[s.panelId]=i}else o[s.panelId]=void 0;const r=e.length-t;if(r!==0){const s=wt((100-n)/r);for(const i of e)i.defaultSize===void 0&&(o[i.panelId]=s)}return o}function Xw(e,t,n){if(!n[0])return;const o=e.panels.find(l=>l.element===t);if(!o||!o.onResize)return;const r=wo({group:e}),s=e.orientation==="horizontal"?o.element.offsetWidth:o.element.offsetHeight,i=o.mutableValues.prevSize,a={asPercentage:wt(s/r*100),inPixels:s};o.mutableValues.prevSize=a,o.onResize(a,o.id,i)}function Kw(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 Zw({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,h=wt(y/t*100);a.set(p.id,h),r+=h;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]=wt(f/s*u)}else{const p=wt(u/l.length);for(const f of l)d[f]=p}return d}function Qw(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 ro=new Map;function Jw(e){let t=!0;Qe(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(h=>{for(const g of h){const{borderBoxSize:m,target:b}=g;if(b===e.element){if(t){const v=wo({group:e});if(v===0)return;const x=bn(e.id);if(!x)return;const S=ra(e),w=x.defaultLayoutDeferred?Su(S):x.layout,R=Zw({group:e,nextGroupSize:v,prevGroupSize:x.groupSize,prevLayout:w}),C=Wn({layout:R,panelConstraints:S});if(!x.defaultLayoutDeferred&&Bn(x.layout,C)&&Kw(x.derivedPanelConstraints,S)&&x.groupSize===v)return;ln(e,{defaultLayoutDeferred:!1,derivedPanelConstraints:S,groupSize:v,layout:C,separatorToPanels:x.separatorToPanels})}}else Xw(e,b,m)}});s.observe(e.element),e.panels.forEach(h=>{Qe(!o.has(h.id),`Panel ids must be unique; id "${h.id}" was used more than once`),o.add(h.id),h.onResize&&s.observe(h.element)});const i=wo({group:e}),a=ra(e),l=e.panels.map(({id:h})=>h).join(",");let u=e.mutableState.defaultLayout;u&&(Qw(e.panels,u)||(u=void 0));const d=e.mutableState.layouts[l]??u??Su(a),p=Wn({layout:d,panelConstraints:a}),f=e.element.ownerDocument;ro.set(f,(ro.get(f)??0)+1);const y=new Map;return Gp(e).forEach(h=>{h.separator&&y.set(h.separator,h.panels)}),ln(e,{defaultLayoutDeferred:i===0,derivedPanelConstraints:a,groupSize:i,layout:p,separatorToPanels:y}),e.separators.forEach(h=>{Qe(!r.has(h.id),`Separator ids must be unique; id "${h.id}" was used more than once`),r.add(h.id),h.element.addEventListener("keydown",gu)}),ro.get(f)===1&&(f.addEventListener("contextmenu",uu,!0),f.addEventListener("dblclick",hu,!0),f.addEventListener("pointerdown",mu,!0),f.addEventListener("pointerleave",yu),f.addEventListener("pointermove",bu),f.addEventListener("pointerout",vu),f.addEventListener("pointerup",xu,!0)),function(){t=!1,ro.set(f,Math.max(0,(ro.get(f)??0)-1)),Vw(e),e.separators.forEach(h=>{h.element.removeEventListener("keydown",gu)}),ro.get(f)||(f.removeEventListener("contextmenu",uu,!0),f.removeEventListener("dblclick",hu,!0),f.removeEventListener("pointerdown",mu,!0),f.removeEventListener("pointerleave",yu),f.removeEventListener("pointermove",bu),f.removeEventListener("pointerout",vu),f.removeEventListener("pointerup",xu,!0)),s.disconnect()}}function eR(){const[e,t]=c.useState({}),n=c.useCallback(()=>t({}),[]);return[e,n]}function bc(e){const t=c.useId();return`${e??t}`}const Zn=typeof window<"u"?c.useLayoutEffect:c.useEffect;function qo(e){const t=c.useRef(e);return Zn(()=>{t.current=e},[e]),c.useCallback((...n)=>{var o;return(o=t.current)==null?void 0:o.call(t,...n)},[t])}function vc(...e){return qo(t=>{e.forEach(n=>{if(n)switch(typeof n){case"function":{n(t);break}case"object":{n.current=t;break}}})})}function xc(e){const t=c.useRef({...e});return Zn(()=>{for(const n in e)t.current[n]=e[n]},[e]),t.current}const sh=c.createContext(null);function tR(e,t){const n=c.useRef({getLayout:()=>({}),setLayout:Fw});c.useImperativeHandle(t,()=>n.current,[]),Zn(()=>{Object.assign(n.current,oh({groupId:e}))})}function nR({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 h=c.useRef({onLayoutChange:{},onLayoutChanged:{}}),g=qo(N=>{Bn(h.current.onLayoutChange,N)||(h.current.onLayoutChange=N,l==null||l(N))}),m=qo((N,O)=>{Bn(h.current.onLayoutChanged,N)||(h.current.onLayoutChanged=N,u==null||u(N,{isUserInteraction:O}))}),b=bc(a),v=c.useRef(null),[x,S]=eR(),w=c.useRef({lastExpandedPanelSizes:{},layouts:{},panels:[],resizeTargetMinimumSize:p,separators:[]}),R=vc(v,s);tR(b,i);const C=qo((N,O)=>{const D=jn(),A=lu(N),P=bn(N);if(P){let z=!1;switch(D.state){case"active":{z=D.hitRegions.some(F=>F.group===A);break}}return{flexGrow:P.layout[O]??1,pointerEvents:z?"none":void 0}}if(n!=null&&n[O])return{flexGrow:n==null?void 0:n[O]}}),k=xc({defaultLayout:n,disableCursor:o}),T=c.useMemo(()=>({get disableCursor(){return!!k.disableCursor},getPanelStyles:C,id:b,orientation:d,registerPanel:N=>{const O=w.current;return O.panels=sa(d,[...O.panels,N]),S(),()=>{O.panels=O.panels.filter(D=>D!==N),S()}},registerSeparator:N=>{const O=w.current;return O.separators=sa(d,[...O.separators,N]),S(),()=>{O.separators=O.separators.filter(D=>D!==N),S()}},updatePanelProps:(N,{disabled:O})=>{const D=w.current.panels.find(z=>z.id===N);D&&(D.panelConstraints.disabled=O);const A=lu(b),P=bn(b);A&&P&&ln(A,{...P,derivedPanelConstraints:ra(A)})},updateSeparatorProps:(N,{disabled:O,disableDoubleClick:D})=>{const A=w.current.separators.find(P=>P.id===N);A&&(A.disabled=O,A.disableDoubleClick=D)}}),[C,b,S,d,k]),E=c.useRef(null);return Zn(()=>{const N=v.current;if(N===null)return;const O=w.current;let D;if(k.defaultLayout!==void 0&&Object.keys(k.defaultLayout).length===O.panels.length){D={};for(const M of O.panels){const L=k.defaultLayout[M.id];L!==void 0&&(D[M.id]=L)}}const A={disabled:!!r,element:N,id:b,mutableState:{defaultLayout:D,disableCursor:!!k.disableCursor,expandedPanelSizes:w.current.lastExpandedPanelSizes,layouts:w.current.layouts},orientation:d,panels:O.panels,resizeTargetMinimumSize:O.resizeTargetMinimumSize,separators:O.separators};E.current=A;const P=Jw(A),{defaultLayoutDeferred:z,derivedPanelConstraints:F,layout:I}=bn(A.id,!0);!z&&F.length>0&&(g(I),m(I,!1));const _=mc(b,M=>{const{defaultLayoutDeferred:L,derivedPanelConstraints:H,layout:$}=M.next;if(L||H.length===0)return;const U=A.panels.map(({id:V})=>V).join(",");A.mutableState.layouts[U]=$,H.forEach(V=>{if(V.collapsible){const{layout:X}=M.prev??{};if(X){const j=bt(V.collapsedSize,$[V.panelId]),K=bt(V.collapsedSize,X[V.panelId]);j&&!K&&(A.mutableState.expandedPanelSizes[V.panelId]=X[V.panelId])}}});const q=jn().state!=="active";g($),q&&m($,M.isUserInteraction)});return()=>{E.current=null,P(),_()}},[r,b,m,g,d,x,k]),c.useEffect(()=>{const N=E.current;N&&(N.mutableState.defaultLayout=n,N.mutableState.disableCursor=!!o)}),Y.jsx(sh.Provider,{value:T,children:Y.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})})}nR.displayName="Group";function Sc(){const e=c.useContext(sh);return Qe(e,"Group Context not found; did you render a Panel or Separator outside of a Group?"),e}function oR(e,t){const{id:n}=Sc(),o=c.useRef({collapse:Ii,expand:Ii,getSize:()=>({asPercentage:0,inPixels:0}),isCollapsed:()=>!1,resize:Ii});c.useImperativeHandle(t,()=>o.current,[]),Zn(()=>{Object.assign(o.current,nh({groupId:n,panelId:e}))})}function rR({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,...h}){const g=!!l,m=bc(l),b=xc({disabled:s}),v=c.useRef(null),x=vc(v,i),{getPanelStyles:S,id:w,orientation:R,registerPanel:C,updatePanelProps:k}=Sc(),T=p!==null,E=qo((A,P,z)=>{p==null||p(A,l,z)});Zn(()=>{const A=v.current;if(A!==null){const P={element:A,id:m,idIsStable:g,mutableValues:{expandToSize:void 0,prevSize:void 0},onResize:T?E:void 0,panelConstraints:{groupResizeBehavior:a,collapsedSize:n,collapsible:o,defaultSize:r,disabled:b.disabled,maxSize:u,minSize:d}};return C(P)}},[a,n,o,r,T,m,g,u,d,E,C,b]),c.useEffect(()=>{k(m,{disabled:s})},[s,m,k]),oR(m,f);const N=()=>{const A=S(w,m);if(A)return JSON.stringify(A)},O=c.useSyncExternalStore(A=>mc(w,A),N,N);let D;return O?D=JSON.parse(O):r!==void 0?D={flexGrow:void 0,flexShrink:void 0,flexBasis:r}:D={flexGrow:1},Y.jsx("div",{...h,"data-disabled":s||void 0,"data-panel":!0,"data-testid":m,id:m,ref:x,style:{...sR,display:"flex",flexBasis:0,flexShrink:1,overflow:"visible",...D},children:Y.jsx("div",{className:t,style:{maxHeight:"100%",maxWidth:"100%",flexGrow:1,overflow:"auto",...y,touchAction:R==="horizontal"?"pan-y":"pan-x"},children:e})})}rR.displayName="Panel";const sR={minHeight:0,maxHeight:"100%",height:"auto",minWidth:0,maxWidth:"100%",width:"auto",border:"none",borderWidth:0,padding:0,margin:0};function iR({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=Wn({layout:tr({delta:u-i,initialLayout:e,panelConstraints:t,pivotIndices:d,prevLayout:e}),panelConstraints:t})[n],r=Wn({layout:tr({delta:l-i,initialLayout:e,panelConstraints:t,pivotIndices:d,prevLayout:e}),panelConstraints:t})[n]}return{valueControls:n,valueMax:r,valueMin:s,valueNow:i}}function aR({children:e,className:t,disabled:n,disableDoubleClick:o,elementRef:r,id:s,style:i,...a}){const l=bc(s),u=xc({disabled:n,disableDoubleClick:o}),[d,p]=c.useState({}),[f,y]=c.useState("inactive"),[h,g]=c.useState(!1),m=c.useRef(null),b=vc(m,r),{disableCursor:v,id:x,orientation:S,registerSeparator:w,updateSeparatorProps:R}=Sc(),C=S==="horizontal"?"vertical":"horizontal";Zn(()=>{const E=m.current;if(E!==null){const N={disabled:u.disabled,disableDoubleClick:u.disableDoubleClick,element:E,id:l},O=w(N),D=_w(P=>{y(P.next.state!=="inactive"&&P.next.hitRegions.some(z=>z.separator===N)?P.next.state:"inactive")}),A=mc(x,P=>{const{derivedPanelConstraints:z,layout:F,separatorToPanels:I}=P.next,_=I.get(N);if(_){const M=_[0],L=_.indexOf(M);p(iR({layout:F,panelConstraints:z,panelId:M.id,panelIndex:L}))}});return()=>{D(),A(),O()}}},[x,l,w,u]),c.useEffect(()=>{R(l,{disabled:n,disableDoubleClick:o})},[n,o,l,R]);let k;n&&!v&&(k="not-allowed");let T;if(n)T="disabled";else switch(f){case"active":{T="active";break}default:h?T="focus":T=f}return Y.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":T,"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})}aR.displayName="Separator";const ih=c.createContext(void 0);function cR(){const e=c.useContext(ih);if(e===void 0)throw new Error(We(63));return e}const ah={...Gn,checked(e){return e?{"data-checked":""}:{"data-unchecked":""}}},ZP=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:h=!1,disabled:g=!1,render:m,uncheckedValue:b,value:v,style:x,...S}=t,{clearErrors:w}=To(),{state:R,setTouched:C,setDirty:k,validityData:T,setFilled:E,setFocused:N,validationMode:O,disabled:D,name:A,validation:P}=Zt(),{labelId:z}=An(),F=D||g,I=A??d,_=c.useRef(null),M=Tt(_,u,P.inputRef),L=c.useRef(null),H=st(),$=Po({id:l,implicit:!1,controlRef:L}),U=p?void 0:$,[q,V]=Ht({controlled:o,default:!!s,name:"Switch",state:"checked"});Mo(L,H,q,void 0,!F,d),pe(()=>{_.current&&E(_.current.checked)},[E]),Eo(q,()=>{w(I),k(q!==T.initialValue),E(q),P.change(q)});const{getButtonProps:X,buttonRef:j}=Mt({disabled:F,native:p}),K=Ga(i,z,_,!p,U),de={id:p?$:H,role:"switch","aria-checked":q,"aria-readonly":y||void 0,"aria-required":h||void 0,"aria-labelledby":K,onFocus(){F||N(!0)},onBlur(){const G=_.current;!G||F||(C(!0),N(!1),O==="onBlur"&&P.commit(G.checked))},onClick(G){if(y||F)return;G.preventDefault();const ie=_.current;ie&&zn(ie,G)}},se={...P.getValidationProps(F),checked:q,disabled:F,form:a,id:U,name:I,required:h,style:I?Ps:Sn,tabIndex:-1,type:"checkbox","aria-hidden":!0,ref:M,onChange(G){if(G.nativeEvent.defaultPrevented)return;if(y){G.preventDefault();return}const ie=G.currentTarget.checked,ge=ke(Rt,G.nativeEvent);f==null||f(ie,ge),!ge.isCanceled&&V(ie)},onClick(G){G.stopPropagation()},onFocus(){var G;(G=L.current)==null||G.focus()},...v!==void 0?{value:v}:Ke},ne=c.useMemo(()=>({...R,checked:q,disabled:F,readOnly:y,required:h}),[R,q,F,y,h]),re=Re("span",t,{state:ne,ref:[n,L,j],props:[de,S,X,G=>P.getValidationProps(F,G)],stateAttributesMapping:ah});return Y.jsxs(ih.Provider,{value:ne,children:[re,!q&&I&&b!==void 0&&Y.jsx("input",{type:"hidden",form:a,name:I,value:b,disabled:F}),Y.jsx("input",{...se,suppressHydrationWarning:!0})]})}),QP=c.forwardRef(function(t,n){const{render:o,className:r,style:s,...i}=t,a=cR();return Re("span",t,{state:a,ref:n,stateAttributesMapping:ah,props:i})});export{mE as $,vk as A,GR as B,PR as C,LC as D,nk as E,ck as F,wk as G,Ok as H,kR as I,nE as J,Fk as K,$k as L,sC as M,Sk as N,mR as O,xC as P,Jk as Q,MC as R,NC as S,QC as T,IC as U,kk as V,ER as W,yE as X,kC as Y,xE as Z,YR as _,EC as a,ME as a$,WR as a0,fk as a1,CR as a2,cC as a3,xR as a4,Vk as a5,gE as a6,ZP as a7,QP as a8,sk as a9,pR as aA,fR as aB,$R as aC,JR as aD,$C as aE,AR as aF,Lk as aG,Nk as aH,sE as aI,lE as aJ,ok as aK,iE as aL,OC as aM,Kk as aN,uE as aO,cE as aP,jC as aQ,aE as aR,ZR as aS,RE as aT,J1 as aU,SE as aV,wE as aW,aC as aX,Dk as aY,kE as aZ,CE as a_,ik as aa,hE as ab,pE as ac,QR as ad,Gk as ae,dE as af,hC as ag,NR as ah,HR as ai,RC as aj,ak,vR as al,vC as am,mk as an,rE as ao,jk as ap,Xk as aq,oE as ar,VC as as,Qk as at,_R as au,qk as av,dR as aw,SC as ax,yR as ay,TC as az,rk as b,mC as b$,EE as b0,PE as b1,OE as b2,IE as b3,TE as b4,Yk as b5,AE as b6,FE as b7,LE as b8,DE as b9,eP as bA,JE as bB,qx as bC,ek as bD,Et as bE,iP as bF,qr as bG,ti as bH,cP as bI,lP as bJ,uP as bK,dP as bL,Lf as bM,yC as bN,pk as bO,LS as bP,bP as bQ,gP as bR,fP as bS,hP as bT,mP as bU,yP as bV,pP as bW,SP as bX,vP as bY,xP as bZ,_k as b_,_E as ba,NE as bb,Pk as bc,bE as bd,WC as be,zE as bf,UE as bg,QE as bh,GE as bi,VE as bj,HE as bk,$E as bl,jE as bm,qE as bn,BE as bo,WE as bp,XE as bq,YE as br,ZE as bs,KE as bt,MR as bu,sP as bv,tP as bw,nP as bx,rP as by,oP as bz,_C as c,gR as c$,RP as c0,EP as c1,wP as c2,PP as c3,kP as c4,CP as c5,wC as c6,ZC as c7,DC as c8,MP as c9,jR as cA,DR as cB,tk as cC,IR as cD,hR as cE,fE as cF,FR as cG,YP as cH,BR as cI,VR as cJ,Wk as cK,uk as cL,iC as cM,Ik as cN,Uk as cO,dk as cP,lk as cQ,Rk as cR,UC as cS,KP as cT,XP as cU,zR as cV,SR as cW,oC as cX,CC as cY,AC as cZ,eC as c_,TP as ca,IP as cb,OP as cc,NP as cd,AP as ce,hk as cf,bC as cg,gC as ch,DP as ci,_P as cj,zP as ck,LP as cl,FP as cm,jP as cn,BP as co,HP as cp,VP as cq,$P as cr,WP as cs,UP as ct,qP as cu,GP as cv,Ak as cw,rC as cx,bR as cy,Tk as cz,YC as d,gk as d0,RR as d1,Ck as d2,zC as d3,dC as d4,uC as d5,aR as d6,rR as d7,nR as d8,LR as d9,pC as da,qR as db,PC as dc,Bk as dd,bk as de,tE as df,nC as dg,UR as dh,HC as di,BC as dj,Hk as dk,Zk as e,vE as f,XC as g,Ek as h,eE as i,XR as j,tC as k,yk as l,zk as m,Mk as n,xk as o,wR as p,fC as q,qC as r,OR as s,TR as t,lC as u,FC as v,GC as w,KC as x,JC as y,KR as z};
|