257 lines
81 KiB
JavaScript
257 lines
81 KiB
JavaScript
import{r as c,j as d,R as at,a as Ht,u as to,o as no,s as ro,f as oo,b as ao,c as co,h as so,d as io,l as uo}from"./react-vendor-CgzNJrV9.js";/**
|
|
* @license lucide-react v1.18.0 - ISC
|
|
*
|
|
* This source code is licensed under the ISC license.
|
|
* See the LICENSE file in the root directory of this source tree.
|
|
*/const Vt=(...e)=>e.filter((t,n,r)=>!!t&&t.trim()!==""&&r.indexOf(t)===n).join(" ").trim();/**
|
|
* @license lucide-react v1.18.0 - ISC
|
|
*
|
|
* This source code is licensed under the ISC license.
|
|
* See the LICENSE file in the root directory of this source tree.
|
|
*/const lo=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase();/**
|
|
* @license lucide-react v1.18.0 - ISC
|
|
*
|
|
* This source code is licensed under the ISC license.
|
|
* See the LICENSE file in the root directory of this source tree.
|
|
*/const fo=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(t,n,r)=>r?r.toUpperCase():n.toLowerCase());/**
|
|
* @license lucide-react v1.18.0 - ISC
|
|
*
|
|
* This source code is licensed under the ISC license.
|
|
* See the LICENSE file in the root directory of this source tree.
|
|
*/const At=e=>{const t=fo(e);return t.charAt(0).toUpperCase()+t.slice(1)};/**
|
|
* @license lucide-react v1.18.0 - ISC
|
|
*
|
|
* This source code is licensed under the ISC license.
|
|
* See the LICENSE file in the root directory of this source tree.
|
|
*/var Ve={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};/**
|
|
* @license lucide-react v1.18.0 - ISC
|
|
*
|
|
* This source code is licensed under the ISC license.
|
|
* See the LICENSE file in the root directory of this source tree.
|
|
*/const po=e=>{for(const t in e)if(t.startsWith("aria-")||t==="role"||t==="title")return!0;return!1},vo=c.createContext({}),ho=()=>c.useContext(vo),mo=c.forwardRef(({color:e,size:t,strokeWidth:n,absoluteStrokeWidth:r,className:o="",children:a,iconNode:i,...s},p)=>{const{size:l=24,strokeWidth:f=2,absoluteStrokeWidth:u=!1,color:v="currentColor",className:y=""}=ho()??{},g=r??u?Number(n??f)*24/Number(t??l):n??f;return c.createElement("svg",{ref:p,...Ve,width:t??l??Ve.width,height:t??l??Ve.height,stroke:e??v,strokeWidth:g,className:Vt("lucide",y,o),...!a&&!po(s)&&{"aria-hidden":"true"},...s},[...i.map(([h,m])=>c.createElement(h,m)),...Array.isArray(a)?a:[a]])});/**
|
|
* @license lucide-react v1.18.0 - ISC
|
|
*
|
|
* This source code is licensed under the ISC license.
|
|
* See the LICENSE file in the root directory of this source tree.
|
|
*/const M=(e,t)=>{const n=c.forwardRef(({className:r,...o},a)=>c.createElement(mo,{ref:a,iconNode:t,className:Vt(`lucide-${lo(At(e))}`,`lucide-${e}`,r),...o}));return n.displayName=At(e),n};/**
|
|
* @license lucide-react v1.18.0 - ISC
|
|
*
|
|
* This source code is licensed under the ISC license.
|
|
* See the LICENSE file in the root directory of this source tree.
|
|
*/const go=[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]],Di=M("arrow-left",go);/**
|
|
* @license lucide-react v1.18.0 - ISC
|
|
*
|
|
* This source code is licensed under the ISC license.
|
|
* See the LICENSE file in the root directory of this source tree.
|
|
*/const yo=[["path",{d:"M6 12h9a4 4 0 0 1 0 8H7a1 1 0 0 1-1-1V5a1 1 0 0 1 1-1h7a4 4 0 0 1 0 8",key:"mg9rjx"}]],Ii=M("bold",yo);/**
|
|
* @license lucide-react v1.18.0 - ISC
|
|
*
|
|
* This source code is licensed under the ISC license.
|
|
* See the LICENSE file in the root directory of this source tree.
|
|
*/const wo=[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]],ki=M("check",wo);/**
|
|
* @license lucide-react v1.18.0 - ISC
|
|
*
|
|
* This source code is licensed under the ISC license.
|
|
* See the LICENSE file in the root directory of this source tree.
|
|
*/const Co=[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]],Ti=M("chevron-right",Co);/**
|
|
* @license lucide-react v1.18.0 - ISC
|
|
*
|
|
* This source code is licensed under the ISC license.
|
|
* See the LICENSE file in the root directory of this source tree.
|
|
*/const xo=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]],Oi=M("circle",xo);/**
|
|
* @license lucide-react v1.18.0 - ISC
|
|
*
|
|
* This source code is licensed under the ISC license.
|
|
* See the LICENSE file in the root directory of this source tree.
|
|
*/const bo=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 6v6l4 2",key:"mmk7yg"}]],ji=M("clock",bo);/**
|
|
* @license lucide-react v1.18.0 - ISC
|
|
*
|
|
* This source code is licensed under the ISC license.
|
|
* See the LICENSE file in the root directory of this source tree.
|
|
*/const Eo=[["path",{d:"m16 18 6-6-6-6",key:"eg8j8"}],["path",{d:"m8 6-6 6 6 6",key:"ppft3o"}]],Li=M("code",Eo);/**
|
|
* @license lucide-react v1.18.0 - ISC
|
|
*
|
|
* This source code is licensed under the ISC license.
|
|
* See the LICENSE file in the root directory of this source tree.
|
|
*/const So=[["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"}]],Fi=M("eye",So);/**
|
|
* @license lucide-react v1.18.0 - ISC
|
|
*
|
|
* This source code is licensed under the ISC license.
|
|
* See the LICENSE file in the root directory of this source tree.
|
|
*/const _o=[["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"}]],$i=M("folder",_o);/**
|
|
* @license lucide-react v1.18.0 - ISC
|
|
*
|
|
* This source code is licensed under the ISC license.
|
|
* See the LICENSE file in the root directory of this source tree.
|
|
*/const Mo=[["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"}]],Wi=M("house",Mo);/**
|
|
* @license lucide-react v1.18.0 - ISC
|
|
*
|
|
* This source code is licensed under the ISC license.
|
|
* See the LICENSE file in the root directory of this source tree.
|
|
*/const Ro=[["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"}]],Bi=M("image",Ro);/**
|
|
* @license lucide-react v1.18.0 - ISC
|
|
*
|
|
* This source code is licensed under the ISC license.
|
|
* See the LICENSE file in the root directory of this source tree.
|
|
*/const Po=[["line",{x1:"19",x2:"10",y1:"4",y2:"4",key:"15jd3p"}],["line",{x1:"14",x2:"5",y1:"20",y2:"20",key:"bu0au3"}],["line",{x1:"15",x2:"9",y1:"4",y2:"20",key:"uljnxc"}]],Ui=M("italic",Po);/**
|
|
* @license lucide-react v1.18.0 - ISC
|
|
*
|
|
* This source code is licensed under the ISC license.
|
|
* See the LICENSE file in the root directory of this source tree.
|
|
*/const Ao=[["rect",{width:"7",height:"9",x:"3",y:"3",rx:"1",key:"10lvy0"}],["rect",{width:"7",height:"5",x:"14",y:"3",rx:"1",key:"16une8"}],["rect",{width:"7",height:"9",x:"14",y:"12",rx:"1",key:"1hutg5"}],["rect",{width:"7",height:"5",x:"3",y:"16",rx:"1",key:"ldoo1y"}]],Gi=M("layout-dashboard",Ao);/**
|
|
* @license lucide-react v1.18.0 - ISC
|
|
*
|
|
* This source code is licensed under the ISC license.
|
|
* See the LICENSE file in the root directory of this source tree.
|
|
*/const No=[["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"}]],Ki=M("layout-grid",No);/**
|
|
* @license lucide-react v1.18.0 - ISC
|
|
*
|
|
* This source code is licensed under the ISC license.
|
|
* See the LICENSE file in the root directory of this source tree.
|
|
*/const Do=[["path",{d:"M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71",key:"1cjeqo"}],["path",{d:"M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71",key:"19qd67"}]],zi=M("link",Do);/**
|
|
* @license lucide-react v1.18.0 - ISC
|
|
*
|
|
* This source code is licensed under the ISC license.
|
|
* See the LICENSE file in the root directory of this source tree.
|
|
*/const Io=[["path",{d:"M11 5h10",key:"1cz7ny"}],["path",{d:"M11 12h10",key:"1438ji"}],["path",{d:"M11 19h10",key:"11t30w"}],["path",{d:"M4 4h1v5",key:"10yrso"}],["path",{d:"M4 9h2",key:"r1h2o0"}],["path",{d:"M6.5 20H3.4c0-1 2.6-1.925 2.6-3.5a1.5 1.5 0 0 0-2.6-1.02",key:"xtkcd5"}]],Hi=M("list-ordered",Io);/**
|
|
* @license lucide-react v1.18.0 - ISC
|
|
*
|
|
* This source code is licensed under the ISC license.
|
|
* See the LICENSE file in the root directory of this source tree.
|
|
*/const ko=[["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"}]],Vi=M("list",ko);/**
|
|
* @license lucide-react v1.18.0 - ISC
|
|
*
|
|
* This source code is licensed under the ISC license.
|
|
* See the LICENSE file in the root directory of this source tree.
|
|
*/const To=[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]],Yi=M("loader-circle",To);/**
|
|
* @license lucide-react v1.18.0 - ISC
|
|
*
|
|
* This source code is licensed under the ISC license.
|
|
* See the LICENSE file in the root directory of this source tree.
|
|
*/const Oo=[["circle",{cx:"12",cy:"16",r:"1",key:"1au0dj"}],["rect",{x:"3",y:"10",width:"18",height:"12",rx:"2",key:"6s8ecr"}],["path",{d:"M7 10V7a5 5 0 0 1 10 0v3",key:"1pqi11"}]],Xi=M("lock-keyhole",Oo);/**
|
|
* @license lucide-react v1.18.0 - ISC
|
|
*
|
|
* This source code is licensed under the ISC license.
|
|
* See the LICENSE file in the root directory of this source tree.
|
|
*/const jo=[["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"}]],qi=M("message-square",jo);/**
|
|
* @license lucide-react v1.18.0 - ISC
|
|
*
|
|
* This source code is licensed under the ISC license.
|
|
* See the LICENSE file in the root directory of this source tree.
|
|
*/const Lo=[["path",{d:"M5 12h14",key:"1ays0h"}]],Zi=M("minus",Lo);/**
|
|
* @license lucide-react v1.18.0 - ISC
|
|
*
|
|
* This source code is licensed under the ISC license.
|
|
* See the LICENSE file in the root directory of this source tree.
|
|
*/const Fo=[["path",{d:"M20.985 12.486a9 9 0 1 1-9.473-9.472c.405-.022.617.46.402.803a6 6 0 0 0 8.268 8.268c.344-.215.825-.004.803.401",key:"kfwtm"}]],Qi=M("moon",Fo);/**
|
|
* @license lucide-react v1.18.0 - ISC
|
|
*
|
|
* This source code is licensed under the ISC license.
|
|
* See the LICENSE file in the root directory of this source tree.
|
|
*/const $o=[["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"}]],Ji=M("pencil",$o);/**
|
|
* @license lucide-react v1.18.0 - ISC
|
|
*
|
|
* This source code is licensed under the ISC license.
|
|
* See the LICENSE file in the root directory of this source tree.
|
|
*/const Wo=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]],eu=M("plus",Wo);/**
|
|
* @license lucide-react v1.18.0 - ISC
|
|
*
|
|
* This source code is licensed under the ISC license.
|
|
* See the LICENSE file in the root directory of this source tree.
|
|
*/const Bo=[["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"}]],tu=M("quote",Bo);/**
|
|
* @license lucide-react v1.18.0 - ISC
|
|
*
|
|
* This source code is licensed under the ISC license.
|
|
* See the LICENSE file in the root directory of this source tree.
|
|
*/const Uo=[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]],nu=M("search",Uo);/**
|
|
* @license lucide-react v1.18.0 - ISC
|
|
*
|
|
* This source code is licensed under the ISC license.
|
|
* See the LICENSE file in the root directory of this source tree.
|
|
*/const Go=[["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"}]],ru=M("send",Go);/**
|
|
* @license lucide-react v1.18.0 - ISC
|
|
*
|
|
* This source code is licensed under the ISC license.
|
|
* See the LICENSE file in the root directory of this source tree.
|
|
*/const Ko=[["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"}]],ou=M("settings",Ko);/**
|
|
* @license lucide-react v1.18.0 - ISC
|
|
*
|
|
* This source code is licensed under the ISC license.
|
|
* See the LICENSE file in the root directory of this source tree.
|
|
*/const zo=[["path",{d:"M11.525 2.295a.53.53 0 0 1 .95 0l2.31 4.679a2.123 2.123 0 0 0 1.595 1.16l5.166.756a.53.53 0 0 1 .294.904l-3.736 3.638a2.123 2.123 0 0 0-.611 1.878l.882 5.14a.53.53 0 0 1-.771.56l-4.618-2.428a2.122 2.122 0 0 0-1.973 0L6.396 21.01a.53.53 0 0 1-.77-.56l.881-5.139a2.122 2.122 0 0 0-.611-1.879L2.16 9.795a.53.53 0 0 1 .294-.906l5.165-.755a2.122 2.122 0 0 0 1.597-1.16z",key:"r04s7s"}]],au=M("star",zo);/**
|
|
* @license lucide-react v1.18.0 - ISC
|
|
*
|
|
* This source code is licensed under the ISC license.
|
|
* See the LICENSE file in the root directory of this source tree.
|
|
*/const Ho=[["path",{d:"M16 4H9a3 3 0 0 0-2.83 4",key:"43sutm"}],["path",{d:"M14 12a4 4 0 0 1 0 8H6",key:"nlfj13"}],["line",{x1:"4",x2:"20",y1:"12",y2:"12",key:"1e0a9i"}]],cu=M("strikethrough",Ho);/**
|
|
* @license lucide-react v1.18.0 - ISC
|
|
*
|
|
* This source code is licensed under the ISC license.
|
|
* See the LICENSE file in the root directory of this source tree.
|
|
*/const Vo=[["circle",{cx:"12",cy:"12",r:"4",key:"4exip2"}],["path",{d:"M12 2v2",key:"tus03m"}],["path",{d:"M12 20v2",key:"1lh1kg"}],["path",{d:"m4.93 4.93 1.41 1.41",key:"149t6j"}],["path",{d:"m17.66 17.66 1.41 1.41",key:"ptbguv"}],["path",{d:"M2 12h2",key:"1t8f8n"}],["path",{d:"M20 12h2",key:"1q8mjw"}],["path",{d:"m6.34 17.66-1.41 1.41",key:"1m8zz5"}],["path",{d:"m19.07 4.93-1.41 1.41",key:"1shlcs"}]],su=M("sun",Vo);/**
|
|
* @license lucide-react v1.18.0 - ISC
|
|
*
|
|
* This source code is licensed under the ISC license.
|
|
* See the LICENSE file in the root directory of this source tree.
|
|
*/const Yo=[["path",{d:"M12.586 2.586A2 2 0 0 0 11.172 2H4a2 2 0 0 0-2 2v7.172a2 2 0 0 0 .586 1.414l8.704 8.704a2.426 2.426 0 0 0 3.42 0l6.58-6.58a2.426 2.426 0 0 0 0-3.42z",key:"vktsd0"}],["circle",{cx:"7.5",cy:"7.5",r:".5",fill:"currentColor",key:"kqv944"}]],iu=M("tag",Yo);/**
|
|
* @license lucide-react v1.18.0 - ISC
|
|
*
|
|
* This source code is licensed under the ISC license.
|
|
* See the LICENSE file in the root directory of this source tree.
|
|
*/const Xo=[["path",{d:"M15 5.88 14 10h5.83a2 2 0 0 1 1.92 2.56l-2.33 8A2 2 0 0 1 17.5 22H4a2 2 0 0 1-2-2v-8a2 2 0 0 1 2-2h2.76a2 2 0 0 0 1.79-1.11L12 2a3.13 3.13 0 0 1 3 3.88Z",key:"emmmcr"}],["path",{d:"M7 10v12",key:"1qc93n"}]],uu=M("thumbs-up",Xo);/**
|
|
* @license lucide-react v1.18.0 - ISC
|
|
*
|
|
* This source code is licensed under the ISC license.
|
|
* See the LICENSE file in the root directory of this source tree.
|
|
*/const qo=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],lu=M("x",qo);function _(e,t,{checkForDefaultPrevented:n=!0}={}){return function(o){if(e==null||e(o),n===!1||!o.defaultPrevented)return t==null?void 0:t(o)}}function Nt(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function ct(...e){return t=>{let n=!1;const r=e.map(o=>{const a=Nt(o,t);return!n&&typeof a=="function"&&(n=!0),a});if(n)return()=>{for(let o=0;o<r.length;o++){const a=r[o];typeof a=="function"?a():Nt(e[o],null)}}}}function D(...e){return c.useCallback(ct(...e),e)}function Zo(e,t){const n=c.createContext(t);n.displayName=e+"Context";const r=a=>{const{children:i,...s}=a,p=c.useMemo(()=>s,Object.values(s));return d.jsx(n.Provider,{value:p,children:i})};r.displayName=e+"Provider";function o(a){const i=c.useContext(n);if(i)return i;if(t!==void 0)return t;throw new Error(`\`${a}\` must be used within \`${e}\``)}return[r,o]}function J(e,t=[]){let n=[];function r(a,i){const s=c.createContext(i);s.displayName=a+"Context";const p=n.length;n=[...n,i];const l=u=>{var w;const{scope:v,children:y,...g}=u,h=((w=v==null?void 0:v[e])==null?void 0:w[p])||s,m=c.useMemo(()=>g,Object.values(g));return d.jsx(h.Provider,{value:m,children:y})};l.displayName=a+"Provider";function f(u,v){var h;const y=((h=v==null?void 0:v[e])==null?void 0:h[p])||s,g=c.useContext(y);if(g)return g;if(i!==void 0)return i;throw new Error(`\`${u}\` must be used within \`${a}\``)}return[l,f]}const o=()=>{const a=n.map(i=>c.createContext(i));return function(s){const p=(s==null?void 0:s[e])||a;return c.useMemo(()=>({[`__scope${e}`]:{...s,[e]:p}}),[s,p])}};return o.scopeName=e,[r,Qo(o,...t)]}function Qo(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const r=e.map(o=>({useScope:o(),scopeName:o.scopeName}));return function(a){const i=r.reduce((s,{useScope:p,scopeName:l})=>{const u=p(a)[`__scope${l}`];return{...s,...u}},{});return c.useMemo(()=>({[`__scope${t.scopeName}`]:i}),[i])}};return n.scopeName=t.scopeName,n}var Y=globalThis!=null&&globalThis.document?c.useLayoutEffect:()=>{},Jo=at[" useInsertionEffect ".trim().toString()]||Y;function We({prop:e,defaultProp:t,onChange:n=()=>{},caller:r}){const[o,a,i]=ea({defaultProp:t,onChange:n}),s=e!==void 0,p=s?e:o;{const f=c.useRef(e!==void 0);c.useEffect(()=>{const u=f.current;u!==s&&console.warn(`${r} is changing from ${u?"controlled":"uncontrolled"} to ${s?"controlled":"uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),f.current=s},[s,r])}const l=c.useCallback(f=>{var u;if(s){const v=ta(f)?f(e):f;v!==e&&((u=i.current)==null||u.call(i,v))}else a(f)},[s,e,a,i]);return[p,l]}function ea({defaultProp:e,onChange:t}){const[n,r]=c.useState(e),o=c.useRef(n),a=c.useRef(t);return Jo(()=>{a.current=t},[t]),c.useEffect(()=>{var i;o.current!==n&&((i=a.current)==null||i.call(a,n),o.current=n)},[n,o]),[n,r,a]}function ta(e){return typeof e=="function"}function ve(e){const t=c.forwardRef((n,r)=>{let{children:o,...a}=n,i=null,s=!1;const p=[];Dt(o)&&typeof Pe=="function"&&(o=Pe(o._payload)),c.Children.forEach(o,v=>{var y;if(ca(v)){s=!0;const g=v;let h="child"in g.props?g.props.child:g.props.children;Dt(h)&&typeof Pe=="function"&&(h=Pe(h._payload)),i=ra(g,h),p.push((y=i==null?void 0:i.props)==null?void 0:y.children)}else p.push(v)}),i?i=c.cloneElement(i,void 0,p):!s&&c.Children.count(o)===1&&c.isValidElement(o)&&(i=o);const l=i?aa(i):void 0,f=D(r,l);if(!i){if(o||o===0)throw new Error(s?la(e):ua(e));return o}const u=oa(a,i.props??{});return i.type!==c.Fragment&&(u.ref=r?f:l),c.cloneElement(i,u)});return t.displayName=`${e}.Slot`,t}var du=ve("Slot"),Yt=Symbol.for("radix.slottable");function na(e){const t=n=>"child"in n?n.children(n.child):n.children;return t.displayName=`${e}.Slottable`,t.__radixId=Yt,t}var ra=(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};function oa(e,t){const n={...t};for(const r in t){const o=e[r],a=t[r];/^on[A-Z]/.test(r)?o&&a?n[r]=(...s)=>{const p=a(...s);return o(...s),p}:o&&(n[r]=o):r==="style"?n[r]={...o,...a}:r==="className"&&(n[r]=[o,a].filter(Boolean).join(" "))}return{...e,...n}}function aa(e){var r,o;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}function ca(e){return c.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===Yt}var sa=Symbol.for("react.lazy");function Dt(e){return e!=null&&typeof e=="object"&&"$$typeof"in e&&e.$$typeof===sa&&"_payload"in e&&ia(e._payload)}function ia(e){return typeof e=="object"&&e!==null&&"then"in e}var ua=e=>`${e} failed to slot onto its children. Expected a single React element child or \`Slottable\`.`,la=e=>`${e} failed to slot onto its \`Slottable\`. Expected \`Slottable\` to receive a single React element child.`,Pe=at[" use ".trim().toString()],da=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],N=da.reduce((e,t)=>{const n=ve(`Primitive.${t}`),r=c.forwardRef((o,a)=>{const{asChild:i,...s}=o,p=i?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),d.jsx(p,{...s,ref:a})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});function Xt(e,t){e&&Ht.flushSync(()=>e.dispatchEvent(t))}function qt(e){const t=e+"CollectionProvider",[n,r]=J(t),[o,a]=n(t,{collectionRef:{current:null},itemMap:new Map}),i=h=>{const{scope:m,children:w}=h,x=c.useRef(null),C=c.useRef(new Map).current;return d.jsx(o,{scope:m,itemMap:C,collectionRef:x,children:w})};i.displayName=t;const s=e+"CollectionSlot",p=ve(s),l=c.forwardRef((h,m)=>{const{scope:w,children:x}=h,C=a(s,w),b=D(m,C.collectionRef);return d.jsx(p,{ref:b,children:x})});l.displayName=s;const f=e+"CollectionItemSlot",u="data-radix-collection-item",v=ve(f),y=c.forwardRef((h,m)=>{const{scope:w,children:x,...C}=h,b=c.useRef(null),R=D(m,b),P=a(f,w);return c.useEffect(()=>(P.itemMap.set(b,{ref:b,...C}),()=>void P.itemMap.delete(b))),d.jsx(v,{[u]:"",ref:R,children:x})});y.displayName=f;function g(h){const m=a(e+"CollectionConsumer",h);return c.useCallback(()=>{const x=m.collectionRef.current;if(!x)return[];const C=Array.from(x.querySelectorAll(`[${u}]`));return Array.from(m.itemMap.values()).sort((P,S)=>C.indexOf(P.ref.current)-C.indexOf(S.ref.current))},[m.collectionRef,m.itemMap])}return[{Provider:i,Slot:l,ItemSlot:y},g,r]}var fa=c.createContext(void 0);function Zt(e){const t=c.useContext(fa);return e||t||"ltr"}function X(e){const t=c.useRef(e);return c.useEffect(()=>{t.current=e}),c.useMemo(()=>(...n)=>{var r;return(r=t.current)==null?void 0:r.call(t,...n)},[])}function pa(e,t=globalThis==null?void 0:globalThis.document){const n=X(e);c.useEffect(()=>{const r=o=>{o.key==="Escape"&&n(o)};return t.addEventListener("keydown",r,{capture:!0}),()=>t.removeEventListener("keydown",r,{capture:!0})},[n,t])}var va="DismissableLayer",tt="dismissableLayer.update",ha="dismissableLayer.pointerDownOutside",ma="dismissableLayer.focusOutside",It,Qt=c.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),st=c.forwardRef((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:r,onPointerDownOutside:o,onFocusOutside:a,onInteractOutside:i,onDismiss:s,...p}=e,l=c.useContext(Qt),[f,u]=c.useState(null),v=(f==null?void 0:f.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,y]=c.useState({}),g=D(t,S=>u(S)),h=Array.from(l.layers),[m]=[...l.layersWithOutsidePointerEventsDisabled].slice(-1),w=h.indexOf(m),x=f?h.indexOf(f):-1,C=l.layersWithOutsidePointerEventsDisabled.size>0,b=x>=w,R=wa(S=>{const A=S.target,k=[...l.branches].some(T=>T.contains(A));!b||k||(o==null||o(S),i==null||i(S),S.defaultPrevented||s==null||s())},v),P=Ca(S=>{const A=S.target;[...l.branches].some(T=>T.contains(A))||(a==null||a(S),i==null||i(S),S.defaultPrevented||s==null||s())},v);return pa(S=>{x===l.layers.size-1&&(r==null||r(S),!S.defaultPrevented&&s&&(S.preventDefault(),s()))},v),c.useEffect(()=>{if(f)return n&&(l.layersWithOutsidePointerEventsDisabled.size===0&&(It=v.body.style.pointerEvents,v.body.style.pointerEvents="none"),l.layersWithOutsidePointerEventsDisabled.add(f)),l.layers.add(f),kt(),()=>{n&&(l.layersWithOutsidePointerEventsDisabled.delete(f),l.layersWithOutsidePointerEventsDisabled.size===0&&(v.body.style.pointerEvents=It))}},[f,v,n,l]),c.useEffect(()=>()=>{f&&(l.layers.delete(f),l.layersWithOutsidePointerEventsDisabled.delete(f),kt())},[f,l]),c.useEffect(()=>{const S=()=>y({});return document.addEventListener(tt,S),()=>document.removeEventListener(tt,S)},[]),d.jsx(N.div,{...p,ref:g,style:{pointerEvents:C?b?"auto":"none":void 0,...e.style},onFocusCapture:_(e.onFocusCapture,P.onFocusCapture),onBlurCapture:_(e.onBlurCapture,P.onBlurCapture),onPointerDownCapture:_(e.onPointerDownCapture,R.onPointerDownCapture)})});st.displayName=va;var ga="DismissableLayerBranch",ya=c.forwardRef((e,t)=>{const n=c.useContext(Qt),r=c.useRef(null),o=D(t,r);return c.useEffect(()=>{const a=r.current;if(a)return n.branches.add(a),()=>{n.branches.delete(a)}},[n.branches]),d.jsx(N.div,{...e,ref:o})});ya.displayName=ga;function wa(e,t=globalThis==null?void 0:globalThis.document){const n=X(e),r=c.useRef(!1),o=c.useRef(()=>{});return c.useEffect(()=>{const a=s=>{if(s.target&&!r.current){let p=function(){Jt(ha,n,l,{discrete:!0})};const l={originalEvent:s};s.pointerType==="touch"?(t.removeEventListener("click",o.current),o.current=p,t.addEventListener("click",o.current,{once:!0})):p()}else t.removeEventListener("click",o.current);r.current=!1},i=window.setTimeout(()=>{t.addEventListener("pointerdown",a)},0);return()=>{window.clearTimeout(i),t.removeEventListener("pointerdown",a),t.removeEventListener("click",o.current)}},[t,n]),{onPointerDownCapture:()=>r.current=!0}}function Ca(e,t=globalThis==null?void 0:globalThis.document){const n=X(e),r=c.useRef(!1);return c.useEffect(()=>{const o=a=>{a.target&&!r.current&&Jt(ma,n,{originalEvent:a},{discrete:!1})};return t.addEventListener("focusin",o),()=>t.removeEventListener("focusin",o)},[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}function kt(){const e=new CustomEvent(tt);document.dispatchEvent(e)}function Jt(e,t,n,{discrete:r}){const o=n.originalEvent.target,a=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&o.addEventListener(e,t,{once:!0}),r?Xt(o,a):o.dispatchEvent(a)}var Ae=0,z=null;function en(){c.useEffect(()=>{z||(z={start:Tt(),end:Tt()});const{start:e,end:t}=z;return document.body.firstElementChild!==e&&document.body.insertAdjacentElement("afterbegin",e),document.body.lastElementChild!==t&&document.body.insertAdjacentElement("beforeend",t),Ae++,()=>{Ae===1&&(z==null||z.start.remove(),z==null||z.end.remove(),z=null),Ae=Math.max(0,Ae-1)}},[])}function Tt(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.style.position="fixed",e.style.pointerEvents="none",e}var Ye="focusScope.autoFocusOnMount",Xe="focusScope.autoFocusOnUnmount",Ot={bubbles:!1,cancelable:!0},xa="FocusScope",it=c.forwardRef((e,t)=>{const{loop:n=!1,trapped:r=!1,onMountAutoFocus:o,onUnmountAutoFocus:a,...i}=e,[s,p]=c.useState(null),l=X(o),f=X(a),u=c.useRef(null),v=D(t,h=>p(h)),y=c.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;c.useEffect(()=>{if(r){let h=function(C){if(y.paused||!s)return;const b=C.target;s.contains(b)?u.current=b:Q(u.current,{select:!0})},m=function(C){if(y.paused||!s)return;const b=C.relatedTarget;b!==null&&(s.contains(b)||Q(u.current,{select:!0}))},w=function(C){if(document.activeElement===document.body)for(const R of C)R.removedNodes.length>0&&Q(s)};document.addEventListener("focusin",h),document.addEventListener("focusout",m);const x=new MutationObserver(w);return s&&x.observe(s,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",h),document.removeEventListener("focusout",m),x.disconnect()}}},[r,s,y.paused]),c.useEffect(()=>{if(s){Lt.add(y);const h=document.activeElement;if(!s.contains(h)){const w=new CustomEvent(Ye,Ot);s.addEventListener(Ye,l),s.dispatchEvent(w),w.defaultPrevented||(ba(Ra(tn(s)),{select:!0}),document.activeElement===h&&Q(s))}return()=>{s.removeEventListener(Ye,l),setTimeout(()=>{const w=new CustomEvent(Xe,Ot);s.addEventListener(Xe,f),s.dispatchEvent(w),w.defaultPrevented||Q(h??document.body,{select:!0}),s.removeEventListener(Xe,f),Lt.remove(y)},0)}}},[s,l,f,y]);const g=c.useCallback(h=>{if(!n&&!r||y.paused)return;const m=h.key==="Tab"&&!h.altKey&&!h.ctrlKey&&!h.metaKey,w=document.activeElement;if(m&&w){const x=h.currentTarget,[C,b]=Ea(x);C&&b?!h.shiftKey&&w===b?(h.preventDefault(),n&&Q(C,{select:!0})):h.shiftKey&&w===C&&(h.preventDefault(),n&&Q(b,{select:!0})):w===x&&h.preventDefault()}},[n,r,y.paused]);return d.jsx(N.div,{tabIndex:-1,...i,ref:v,onKeyDown:g})});it.displayName=xa;function ba(e,{select:t=!1}={}){const n=document.activeElement;for(const r of e)if(Q(r,{select:t}),document.activeElement!==n)return}function Ea(e){const t=tn(e),n=jt(t,e),r=jt(t.reverse(),e);return[n,r]}function tn(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>{const o=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||o?NodeFilter.FILTER_SKIP:r.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function jt(e,t){for(const n of e)if(!Sa(n,{upTo:t}))return n}function Sa(e,{upTo:t}){if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1}function _a(e){return e instanceof HTMLInputElement&&"select"in e}function Q(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&_a(e)&&t&&e.select()}}var Lt=Ma();function Ma(){let e=[];return{add(t){const n=e[0];t!==n&&(n==null||n.pause()),e=Ft(e,t),e.unshift(t)},remove(t){var n;e=Ft(e,t),(n=e[0])==null||n.resume()}}}function Ft(e,t){const n=[...e],r=n.indexOf(t);return r!==-1&&n.splice(r,1),n}function Ra(e){return e.filter(t=>t.tagName!=="A")}var Pa=at[" useId ".trim().toString()]||(()=>{}),Aa=0;function de(e){const[t,n]=c.useState(Pa());return Y(()=>{n(r=>r??String(Aa++))},[e]),t?`radix-${t}`:""}var Na="Arrow",nn=c.forwardRef((e,t)=>{const{children:n,width:r=10,height:o=5,...a}=e;return d.jsx(N.svg,{...a,ref:t,width:r,height:o,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:d.jsx("polygon",{points:"0,0 30,0 15,10"})})});nn.displayName=Na;var Da=nn;function rn(e){const[t,n]=c.useState(void 0);return Y(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});const r=new ResizeObserver(o=>{if(!Array.isArray(o)||!o.length)return;const a=o[0];let i,s;if("borderBoxSize"in a){const p=a.borderBoxSize,l=Array.isArray(p)?p[0]:p;i=l.inlineSize,s=l.blockSize}else i=e.offsetWidth,s=e.offsetHeight;n({width:i,height:s})});return r.observe(e,{box:"border-box"}),()=>r.unobserve(e)}else n(void 0)},[e]),t}var ut="Popper",[on,an]=J(ut),[Ia,cn]=on(ut),sn=e=>{const{__scopePopper:t,children:n}=e,[r,o]=c.useState(null),[a,i]=c.useState(void 0);return d.jsx(Ia,{scope:t,anchor:r,onAnchorChange:o,placementState:a,setPlacementState:i,children:n})};sn.displayName=ut;var un="PopperAnchor",ln=c.forwardRef((e,t)=>{const{__scopePopper:n,virtualRef:r,...o}=e,a=cn(un,n),i=c.useRef(null),s=a.onAnchorChange,p=c.useCallback(g=>{i.current=g,g&&s(g)},[s]),l=D(t,p),f=c.useRef(null);c.useEffect(()=>{if(!r)return;const g=f.current;f.current=r.current,g!==f.current&&s(f.current)});const u=a.placementState&&dt(a.placementState),v=u==null?void 0:u[0],y=u==null?void 0:u[1];return r?null:d.jsx(N.div,{"data-radix-popper-side":v,"data-radix-popper-align":y,...o,ref:l})});ln.displayName=un;var lt="PopperContent",[ka,Ta]=on(lt),dn=c.forwardRef((e,t)=>{var ge,B,ye,_t,Mt,Rt;const{__scopePopper:n,side:r="bottom",sideOffset:o=0,align:a="center",alignOffset:i=0,arrowPadding:s=0,avoidCollisions:p=!0,collisionBoundary:l,collisionPadding:f=0,sticky:u="partial",hideWhenDetached:v=!1,updatePositionStrategy:y="optimized",onPlaced:g,...h}=e,m=cn(lt,n),[w,x]=c.useState(null),C=D(t,we=>x(we)),[b,R]=c.useState(null),P=rn(b),S=(P==null?void 0:P.width)??0,A=(P==null?void 0:P.height)??0,k=r+(a!=="center"?"-"+a:""),T=typeof f=="number"?f:{top:0,right:0,bottom:0,left:0,...f},I=l?Array.isArray(l)?l:[l]:void 0,K=I!==void 0&&I.length>0,V={padding:T,boundary:I==null?void 0:I.filter(ja),altBoundary:K},{refs:ae,floatingStyles:ce,placement:L,isPositioned:se,middlewareData:F}=to({strategy:"fixed",placement:k,whileElementsMounted:(...we)=>io(...we,{animationFrame:y==="always"}),elements:{reference:m.anchor},middleware:[no({mainAxis:o+A,alignmentAxis:i}),p&&ro({mainAxis:!0,crossAxis:!1,limiter:u==="partial"?uo():void 0,...V}),p&&oo({...V}),ao({...V,apply:({elements:we,rects:Pt,availableWidth:Zr,availableHeight:Qr})=>{const{width:Jr,height:eo}=Pt.reference,Re=we.floating.style;Re.setProperty("--radix-popper-available-width",`${Zr}px`),Re.setProperty("--radix-popper-available-height",`${Qr}px`),Re.setProperty("--radix-popper-anchor-width",`${Jr}px`),Re.setProperty("--radix-popper-anchor-height",`${eo}px`)}}),b&&co({element:b,padding:s}),La({arrowWidth:S,arrowHeight:A}),v&&so({strategy:"referenceHidden",...V})]}),E=m.setPlacementState;Y(()=>(E(L),()=>{E(void 0)}),[L,E]);const[O,$]=dt(L),W=X(g);Y(()=>{se&&(W==null||W())},[se,W]);const he=(ge=F.arrow)==null?void 0:ge.x,me=(B=F.arrow)==null?void 0:B.y,Me=((ye=F.arrow)==null?void 0:ye.centerOffset)!==0,[te,Z]=c.useState();return Y(()=>{w&&Z(window.getComputedStyle(w).zIndex)},[w]),d.jsx("div",{ref:ae.setFloating,"data-radix-popper-content-wrapper":"",style:{...ce,transform:se?ce.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:te,"--radix-popper-transform-origin":[(_t=F.transformOrigin)==null?void 0:_t.x,(Mt=F.transformOrigin)==null?void 0:Mt.y].join(" "),...((Rt=F.hide)==null?void 0:Rt.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:d.jsx(ka,{scope:n,placedSide:O,placedAlign:$,onArrowChange:R,arrowX:he,arrowY:me,shouldHideArrow:Me,children:d.jsx(N.div,{"data-side":O,"data-align":$,...h,ref:C,style:{...h.style,animation:se?void 0:"none"}})})})});dn.displayName=lt;var fn="PopperArrow",Oa={top:"bottom",right:"left",bottom:"top",left:"right"},pn=c.forwardRef(function(t,n){const{__scopePopper:r,...o}=t,a=Ta(fn,r),i=Oa[a.placedSide];return d.jsx("span",{ref:a.onArrowChange,style:{position:"absolute",left:a.arrowX,top:a.arrowY,[i]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[a.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[a.placedSide],visibility:a.shouldHideArrow?"hidden":void 0},children:d.jsx(Da,{...o,ref:n,style:{...o.style,display:"block"}})})});pn.displayName=fn;function ja(e){return e!==null}var La=e=>({name:"transformOrigin",options:e,fn(t){var m,w,x;const{placement:n,rects:r,middlewareData:o}=t,i=((m=o.arrow)==null?void 0:m.centerOffset)!==0,s=i?0:e.arrowWidth,p=i?0:e.arrowHeight,[l,f]=dt(n),u={start:"0%",center:"50%",end:"100%"}[f],v=(((w=o.arrow)==null?void 0:w.x)??0)+s/2,y=(((x=o.arrow)==null?void 0:x.y)??0)+p/2;let g="",h="";return l==="bottom"?(g=i?u:`${v}px`,h=`${-p}px`):l==="top"?(g=i?u:`${v}px`,h=`${r.floating.height+p}px`):l==="right"?(g=`${-p}px`,h=i?u:`${y}px`):l==="left"&&(g=`${r.floating.width+p}px`,h=i?u:`${y}px`),{data:{x:g,y:h}}}});function dt(e){const[t,n="center"]=e.split("-");return[t,n]}var Fa=sn,$a=ln,Wa=dn,Ba=pn,Ua="Portal",ft=c.forwardRef((e,t)=>{var s;const{container:n,...r}=e,[o,a]=c.useState(!1);Y(()=>a(!0),[]);const i=n||o&&((s=globalThis==null?void 0:globalThis.document)==null?void 0:s.body);return i?Ht.createPortal(d.jsx(N.div,{...r,ref:t}),i):null});ft.displayName=Ua;function Ga(e,t){return c.useReducer((n,r)=>t[n][r]??n,e)}var ee=e=>{const{present:t,children:n}=e,r=Ka(t),o=typeof n=="function"?n({present:r.isPresent}):c.Children.only(n),a=za(r.ref,Ha(o));return typeof n=="function"||r.isPresent?c.cloneElement(o,{ref:a}):null};ee.displayName="Presence";function Ka(e){const[t,n]=c.useState(),r=c.useRef(null),o=c.useRef(e),a=c.useRef("none"),i=e?"mounted":"unmounted",[s,p]=Ga(i,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return c.useEffect(()=>{const l=Ne(r.current);a.current=s==="mounted"?l:"none"},[s]),Y(()=>{const l=r.current,f=o.current;if(f!==e){const v=a.current,y=Ne(l);e?p("MOUNT"):y==="none"||(l==null?void 0:l.display)==="none"?p("UNMOUNT"):p(f&&v!==y?"ANIMATION_OUT":"UNMOUNT"),o.current=e}},[e,p]),Y(()=>{if(t){let l;const f=t.ownerDocument.defaultView??window,u=y=>{const h=Ne(r.current).includes(CSS.escape(y.animationName));if(y.target===t&&h&&(p("ANIMATION_END"),!o.current)){const m=t.style.animationFillMode;t.style.animationFillMode="forwards",l=f.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=m)})}},v=y=>{y.target===t&&(a.current=Ne(r.current))};return t.addEventListener("animationstart",v),t.addEventListener("animationcancel",u),t.addEventListener("animationend",u),()=>{f.clearTimeout(l),t.removeEventListener("animationstart",v),t.removeEventListener("animationcancel",u),t.removeEventListener("animationend",u)}}else p("ANIMATION_END")},[t,p]),{isPresent:["mounted","unmountSuspended"].includes(s),ref:c.useCallback(l=>{r.current=l?getComputedStyle(l):null,n(l)},[])}}function $t(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function za(...e){const t=c.useRef(e);return t.current=e,c.useCallback(n=>{const r=t.current;let o=!1;const a=r.map(i=>{const s=$t(i,n);return!o&&typeof s=="function"&&(o=!0),s});if(o)return()=>{for(let i=0;i<a.length;i++){const s=a[i];typeof s=="function"?s():$t(r[i],null)}}},[])}function Ne(e){return(e==null?void 0:e.animationName)||"none"}function Ha(e){var r,o;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var qe="rovingFocusGroup.onEntryFocus",Va={bubbles:!1,cancelable:!0},Ee="RovingFocusGroup",[nt,vn,Ya]=qt(Ee),[Xa,hn]=J(Ee,[Ya]),[qa,Za]=Xa(Ee),mn=c.forwardRef((e,t)=>d.jsx(nt.Provider,{scope:e.__scopeRovingFocusGroup,children:d.jsx(nt.Slot,{scope:e.__scopeRovingFocusGroup,children:d.jsx(Qa,{...e,ref:t})})}));mn.displayName=Ee;var Qa=c.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:n,orientation:r,loop:o=!1,dir:a,currentTabStopId:i,defaultCurrentTabStopId:s,onCurrentTabStopIdChange:p,onEntryFocus:l,preventScrollOnEntryFocus:f=!1,...u}=e,v=c.useRef(null),y=D(t,v),g=Zt(a),[h,m]=We({prop:i,defaultProp:s??null,onChange:p,caller:Ee}),[w,x]=c.useState(!1),C=X(l),b=vn(n),R=c.useRef(!1),[P,S]=c.useState(0);return c.useEffect(()=>{const A=v.current;if(A)return A.addEventListener(qe,C),()=>A.removeEventListener(qe,C)},[C]),d.jsx(qa,{scope:n,orientation:r,dir:g,loop:o,currentTabStopId:h,onItemFocus:c.useCallback(A=>m(A),[m]),onItemShiftTab:c.useCallback(()=>x(!0),[]),onFocusableItemAdd:c.useCallback(()=>S(A=>A+1),[]),onFocusableItemRemove:c.useCallback(()=>S(A=>A-1),[]),children:d.jsx(N.div,{tabIndex:w||P===0?-1:0,"data-orientation":r,...u,ref:y,style:{outline:"none",...e.style},onMouseDown:_(e.onMouseDown,()=>{R.current=!0}),onFocus:_(e.onFocus,A=>{const k=!R.current;if(A.target===A.currentTarget&&k&&!w){const T=new CustomEvent(qe,Va);if(A.currentTarget.dispatchEvent(T),!T.defaultPrevented){const I=b().filter(L=>L.focusable),K=I.find(L=>L.active),V=I.find(L=>L.id===h),ce=[K,V,...I].filter(Boolean).map(L=>L.ref.current);wn(ce,f)}}R.current=!1}),onBlur:_(e.onBlur,()=>x(!1))})})}),gn="RovingFocusGroupItem",yn=c.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:n,focusable:r=!0,active:o=!1,tabStopId:a,children:i,...s}=e,p=de(),l=a||p,f=Za(gn,n),u=f.currentTabStopId===l,v=vn(n),{onFocusableItemAdd:y,onFocusableItemRemove:g,currentTabStopId:h}=f;return c.useEffect(()=>{if(r)return y(),()=>g()},[r,y,g]),d.jsx(nt.ItemSlot,{scope:n,id:l,focusable:r,active:o,children:d.jsx(N.span,{tabIndex:u?0:-1,"data-orientation":f.orientation,...s,ref:t,onMouseDown:_(e.onMouseDown,m=>{r?f.onItemFocus(l):m.preventDefault()}),onFocus:_(e.onFocus,()=>f.onItemFocus(l)),onKeyDown:_(e.onKeyDown,m=>{if(m.key==="Tab"&&m.shiftKey){f.onItemShiftTab();return}if(m.target!==m.currentTarget)return;const w=tc(m,f.orientation,f.dir);if(w!==void 0){if(m.metaKey||m.ctrlKey||m.altKey||m.shiftKey)return;m.preventDefault();let C=v().filter(b=>b.focusable).map(b=>b.ref.current);if(w==="last")C.reverse();else if(w==="prev"||w==="next"){w==="prev"&&C.reverse();const b=C.indexOf(m.currentTarget);C=f.loop?nc(C,b+1):C.slice(b+1)}setTimeout(()=>wn(C))}}),children:typeof i=="function"?i({isCurrentTabStop:u,hasTabStop:h!=null}):i})})});yn.displayName=gn;var Ja={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function ec(e,t){return t!=="rtl"?e:e==="ArrowLeft"?"ArrowRight":e==="ArrowRight"?"ArrowLeft":e}function tc(e,t,n){const r=ec(e.key,n);if(!(t==="vertical"&&["ArrowLeft","ArrowRight"].includes(r))&&!(t==="horizontal"&&["ArrowUp","ArrowDown"].includes(r)))return Ja[r]}function wn(e,t=!1){const n=document.activeElement;for(const r of e)if(r===n||(r.focus({preventScroll:t}),document.activeElement!==n))return}function nc(e,t){return e.map((n,r)=>e[(t+r)%e.length])}var rc=mn,oc=yn,ac=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},ie=new WeakMap,De=new WeakMap,Ie={},Ze=0,Cn=function(e){return e&&(e.host||Cn(e.parentNode))},cc=function(e,t){return t.map(function(n){if(e.contains(n))return n;var r=Cn(n);return r&&e.contains(r)?r:(console.error("aria-hidden",n,"in not contained inside",e,". Doing nothing"),null)}).filter(function(n){return!!n})},sc=function(e,t,n,r){var o=cc(t,Array.isArray(e)?e:[e]);Ie[n]||(Ie[n]=new WeakMap);var a=Ie[n],i=[],s=new Set,p=new Set(o),l=function(u){!u||s.has(u)||(s.add(u),l(u.parentNode))};o.forEach(l);var f=function(u){!u||p.has(u)||Array.prototype.forEach.call(u.children,function(v){if(s.has(v))f(v);else try{var y=v.getAttribute(r),g=y!==null&&y!=="false",h=(ie.get(v)||0)+1,m=(a.get(v)||0)+1;ie.set(v,h),a.set(v,m),i.push(v),h===1&&g&&De.set(v,!0),m===1&&v.setAttribute(n,"true"),g||v.setAttribute(r,"true")}catch(w){console.error("aria-hidden: cannot operate on ",v,w)}})};return f(t),s.clear(),Ze++,function(){i.forEach(function(u){var v=ie.get(u)-1,y=a.get(u)-1;ie.set(u,v),a.set(u,y),v||(De.has(u)||u.removeAttribute(r),De.delete(u)),y||u.removeAttribute(n)}),Ze--,Ze||(ie=new WeakMap,ie=new WeakMap,De=new WeakMap,Ie={})}},xn=function(e,t,n){n===void 0&&(n="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),o=ac(e);return o?(r.push.apply(r,Array.from(o.querySelectorAll("[aria-live], script"))),sc(r,o,n,"aria-hidden")):function(){return null}},H=function(){return H=Object.assign||function(t){for(var n,r=1,o=arguments.length;r<o;r++){n=arguments[r];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(t[a]=n[a])}return t},H.apply(this,arguments)};function bn(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n}function ic(e,t,n){if(n||arguments.length===2)for(var r=0,o=t.length,a;r<o;r++)(a||!(r in t))&&(a||(a=Array.prototype.slice.call(t,0,r)),a[r]=t[r]);return e.concat(a||Array.prototype.slice.call(t))}var Oe="right-scroll-bar-position",je="width-before-scroll-bar",uc="with-scroll-bars-hidden",lc="--removed-body-scroll-bar-size";function Qe(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function dc(e,t){var n=c.useState(function(){return{value:e,callback:t,facade:{get current(){return n.value},set current(r){var o=n.value;o!==r&&(n.value=r,n.callback(r,o))}}}})[0];return n.callback=t,n.facade}var fc=typeof window<"u"?c.useLayoutEffect:c.useEffect,Wt=new WeakMap;function pc(e,t){var n=dc(null,function(r){return e.forEach(function(o){return Qe(o,r)})});return fc(function(){var r=Wt.get(n);if(r){var o=new Set(r),a=new Set(e),i=n.current;o.forEach(function(s){a.has(s)||Qe(s,null)}),a.forEach(function(s){o.has(s)||Qe(s,i)})}Wt.set(n,e)},[e]),n}function vc(e){return e}function hc(e,t){t===void 0&&(t=vc);var n=[],r=!1,o={read:function(){if(r)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:e},useMedium:function(a){var i=t(a,r);return n.push(i),function(){n=n.filter(function(s){return s!==i})}},assignSyncMedium:function(a){for(r=!0;n.length;){var i=n;n=[],i.forEach(a)}n={push:function(s){return a(s)},filter:function(){return n}}},assignMedium:function(a){r=!0;var i=[];if(n.length){var s=n;n=[],s.forEach(a),i=n}var p=function(){var f=i;i=[],f.forEach(a)},l=function(){return Promise.resolve().then(p)};l(),n={push:function(f){i.push(f),l()},filter:function(f){return i=i.filter(f),n}}}};return o}function mc(e){e===void 0&&(e={});var t=hc(null);return t.options=H({async:!0,ssr:!1},e),t}var En=function(e){var t=e.sideCar,n=bn(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var r=t.read();if(!r)throw new Error("Sidecar medium not found");return c.createElement(r,H({},n))};En.isSideCarExport=!0;function gc(e,t){return e.useMedium(t),En}var Sn=mc(),Je=function(){},Be=c.forwardRef(function(e,t){var n=c.useRef(null),r=c.useState({onScrollCapture:Je,onWheelCapture:Je,onTouchMoveCapture:Je}),o=r[0],a=r[1],i=e.forwardProps,s=e.children,p=e.className,l=e.removeScrollBar,f=e.enabled,u=e.shards,v=e.sideCar,y=e.noRelative,g=e.noIsolation,h=e.inert,m=e.allowPinchZoom,w=e.as,x=w===void 0?"div":w,C=e.gapMode,b=bn(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),R=v,P=pc([n,t]),S=H(H({},b),o);return c.createElement(c.Fragment,null,f&&c.createElement(R,{sideCar:Sn,removeScrollBar:l,shards:u,noRelative:y,noIsolation:g,inert:h,setCallbacks:a,allowPinchZoom:!!m,lockRef:n,gapMode:C}),i?c.cloneElement(c.Children.only(s),H(H({},S),{ref:P})):c.createElement(x,H({},S,{className:p,ref:P}),s))});Be.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};Be.classNames={fullWidth:je,zeroRight:Oe};var yc=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function wc(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=yc();return t&&e.setAttribute("nonce",t),e}function Cc(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function xc(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var bc=function(){var e=0,t=null;return{add:function(n){e==0&&(t=wc())&&(Cc(t,n),xc(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},Ec=function(){var e=bc();return function(t,n){c.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},_n=function(){var e=Ec(),t=function(n){var r=n.styles,o=n.dynamic;return e(r,o),null};return t},Sc={left:0,top:0,right:0,gap:0},et=function(e){return parseInt(e||"",10)||0},_c=function(e){var t=window.getComputedStyle(document.body),n=t[e==="padding"?"paddingLeft":"marginLeft"],r=t[e==="padding"?"paddingTop":"marginTop"],o=t[e==="padding"?"paddingRight":"marginRight"];return[et(n),et(r),et(o)]},Mc=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return Sc;var t=_c(e),n=document.documentElement.clientWidth,r=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,r-n+t[2]-t[0])}},Rc=_n(),fe="data-scroll-locked",Pc=function(e,t,n,r){var o=e.left,a=e.top,i=e.right,s=e.gap;return n===void 0&&(n="margin"),`
|
|
.`.concat(uc,` {
|
|
overflow: hidden `).concat(r,`;
|
|
padding-right: `).concat(s,"px ").concat(r,`;
|
|
}
|
|
body[`).concat(fe,`] {
|
|
overflow: hidden `).concat(r,`;
|
|
overscroll-behavior: contain;
|
|
`).concat([t&&"position: relative ".concat(r,";"),n==="margin"&&`
|
|
padding-left: `.concat(o,`px;
|
|
padding-top: `).concat(a,`px;
|
|
padding-right: `).concat(i,`px;
|
|
margin-left:0;
|
|
margin-top:0;
|
|
margin-right: `).concat(s,"px ").concat(r,`;
|
|
`),n==="padding"&&"padding-right: ".concat(s,"px ").concat(r,";")].filter(Boolean).join(""),`
|
|
}
|
|
|
|
.`).concat(Oe,` {
|
|
right: `).concat(s,"px ").concat(r,`;
|
|
}
|
|
|
|
.`).concat(je,` {
|
|
margin-right: `).concat(s,"px ").concat(r,`;
|
|
}
|
|
|
|
.`).concat(Oe," .").concat(Oe,` {
|
|
right: 0 `).concat(r,`;
|
|
}
|
|
|
|
.`).concat(je," .").concat(je,` {
|
|
margin-right: 0 `).concat(r,`;
|
|
}
|
|
|
|
body[`).concat(fe,`] {
|
|
`).concat(lc,": ").concat(s,`px;
|
|
}
|
|
`)},Bt=function(){var e=parseInt(document.body.getAttribute(fe)||"0",10);return isFinite(e)?e:0},Ac=function(){c.useEffect(function(){return document.body.setAttribute(fe,(Bt()+1).toString()),function(){var e=Bt()-1;e<=0?document.body.removeAttribute(fe):document.body.setAttribute(fe,e.toString())}},[])},Nc=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,o=r===void 0?"margin":r;Ac();var a=c.useMemo(function(){return Mc(o)},[o]);return c.createElement(Rc,{styles:Pc(a,!t,o,n?"":"!important")})},rt=!1;if(typeof window<"u")try{var ke=Object.defineProperty({},"passive",{get:function(){return rt=!0,!0}});window.addEventListener("test",ke,ke),window.removeEventListener("test",ke,ke)}catch{rt=!1}var ue=rt?{passive:!1}:!1,Dc=function(e){return e.tagName==="TEXTAREA"},Mn=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return n[t]!=="hidden"&&!(n.overflowY===n.overflowX&&!Dc(e)&&n[t]==="visible")},Ic=function(e){return Mn(e,"overflowY")},kc=function(e){return Mn(e,"overflowX")},Ut=function(e,t){var n=t.ownerDocument,r=t;do{typeof ShadowRoot<"u"&&r instanceof ShadowRoot&&(r=r.host);var o=Rn(e,r);if(o){var a=Pn(e,r),i=a[1],s=a[2];if(i>s)return!0}r=r.parentNode}while(r&&r!==n.body);return!1},Tc=function(e){var t=e.scrollTop,n=e.scrollHeight,r=e.clientHeight;return[t,n,r]},Oc=function(e){var t=e.scrollLeft,n=e.scrollWidth,r=e.clientWidth;return[t,n,r]},Rn=function(e,t){return e==="v"?Ic(t):kc(t)},Pn=function(e,t){return e==="v"?Tc(t):Oc(t)},jc=function(e,t){return e==="h"&&t==="rtl"?-1:1},Lc=function(e,t,n,r,o){var a=jc(e,window.getComputedStyle(t).direction),i=a*r,s=n.target,p=t.contains(s),l=!1,f=i>0,u=0,v=0;do{if(!s)break;var y=Pn(e,s),g=y[0],h=y[1],m=y[2],w=h-m-a*g;(g||w)&&Rn(e,s)&&(u+=w,v+=g);var x=s.parentNode;s=x&&x.nodeType===Node.DOCUMENT_FRAGMENT_NODE?x.host:x}while(!p&&s!==document.body||p&&(t.contains(s)||t===s));return(f&&Math.abs(u)<1||!f&&Math.abs(v)<1)&&(l=!0),l},Te=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},Gt=function(e){return[e.deltaX,e.deltaY]},Kt=function(e){return e&&"current"in e?e.current:e},Fc=function(e,t){return e[0]===t[0]&&e[1]===t[1]},$c=function(e){return`
|
|
.block-interactivity-`.concat(e,` {pointer-events: none;}
|
|
.allow-interactivity-`).concat(e,` {pointer-events: all;}
|
|
`)},Wc=0,le=[];function Bc(e){var t=c.useRef([]),n=c.useRef([0,0]),r=c.useRef(),o=c.useState(Wc++)[0],a=c.useState(_n)[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(o));var h=ic([e.lockRef.current],(e.shards||[]).map(Kt),!0).filter(Boolean);return h.forEach(function(m){return m.classList.add("allow-interactivity-".concat(o))}),function(){document.body.classList.remove("block-interactivity-".concat(o)),h.forEach(function(m){return m.classList.remove("allow-interactivity-".concat(o))})}}},[e.inert,e.lockRef.current,e.shards]);var s=c.useCallback(function(h,m){if("touches"in h&&h.touches.length===2||h.type==="wheel"&&h.ctrlKey)return!i.current.allowPinchZoom;var w=Te(h),x=n.current,C="deltaX"in h?h.deltaX:x[0]-w[0],b="deltaY"in h?h.deltaY:x[1]-w[1],R,P=h.target,S=Math.abs(C)>Math.abs(b)?"h":"v";if("touches"in h&&S==="h"&&P.type==="range")return!1;var A=window.getSelection(),k=A&&A.anchorNode,T=k?k===P||k.contains(P):!1;if(T)return!1;var I=Ut(S,P);if(!I)return!0;if(I?R=S:(R=S==="v"?"h":"v",I=Ut(S,P)),!I)return!1;if(!r.current&&"changedTouches"in h&&(C||b)&&(r.current=R),!R)return!0;var K=r.current||R;return Lc(K,m,h,K==="h"?C:b)},[]),p=c.useCallback(function(h){var m=h;if(!(!le.length||le[le.length-1]!==a)){var w="deltaY"in m?Gt(m):Te(m),x=t.current.filter(function(R){return R.name===m.type&&(R.target===m.target||m.target===R.shadowParent)&&Fc(R.delta,w)})[0];if(x&&x.should){m.cancelable&&m.preventDefault();return}if(!x){var C=(i.current.shards||[]).map(Kt).filter(Boolean).filter(function(R){return R.contains(m.target)}),b=C.length>0?s(m,C[0]):!i.current.noIsolation;b&&m.cancelable&&m.preventDefault()}}},[]),l=c.useCallback(function(h,m,w,x){var C={name:h,delta:m,target:w,should:x,shadowParent:Uc(w)};t.current.push(C),setTimeout(function(){t.current=t.current.filter(function(b){return b!==C})},1)},[]),f=c.useCallback(function(h){n.current=Te(h),r.current=void 0},[]),u=c.useCallback(function(h){l(h.type,Gt(h),h.target,s(h,e.lockRef.current))},[]),v=c.useCallback(function(h){l(h.type,Te(h),h.target,s(h,e.lockRef.current))},[]);c.useEffect(function(){return le.push(a),e.setCallbacks({onScrollCapture:u,onWheelCapture:u,onTouchMoveCapture:v}),document.addEventListener("wheel",p,ue),document.addEventListener("touchmove",p,ue),document.addEventListener("touchstart",f,ue),function(){le=le.filter(function(h){return h!==a}),document.removeEventListener("wheel",p,ue),document.removeEventListener("touchmove",p,ue),document.removeEventListener("touchstart",f,ue)}},[]);var y=e.removeScrollBar,g=e.inert;return c.createElement(c.Fragment,null,g?c.createElement(a,{styles:$c(o)}):null,y?c.createElement(Nc,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function Uc(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const Gc=gc(Sn,Bc);var pt=c.forwardRef(function(e,t){return c.createElement(Be,H({},e,{ref:t,sideCar:Gc}))});pt.classNames=Be.classNames;var ot=["Enter"," "],Kc=["ArrowDown","PageUp","Home"],An=["ArrowUp","PageDown","End"],zc=[...Kc,...An],Hc={ltr:[...ot,"ArrowRight"],rtl:[...ot,"ArrowLeft"]},Vc={ltr:["ArrowLeft"],rtl:["ArrowRight"]},Se="Menu",[xe,Yc,Xc]=qt(Se),[re,Nn]=J(Se,[Xc,an,hn]),Ue=an(),Dn=hn(),[qc,oe]=re(Se),[Zc,_e]=re(Se),In=e=>{const{__scopeMenu:t,open:n=!1,children:r,dir:o,onOpenChange:a,modal:i=!0}=e,s=Ue(t),[p,l]=c.useState(null),f=c.useRef(!1),u=X(a),v=Zt(o);return c.useEffect(()=>{const y=()=>{f.current=!0,document.addEventListener("pointerdown",g,{capture:!0,once:!0}),document.addEventListener("pointermove",g,{capture:!0,once:!0})},g=()=>f.current=!1;return document.addEventListener("keydown",y,{capture:!0}),()=>{document.removeEventListener("keydown",y,{capture:!0}),document.removeEventListener("pointerdown",g,{capture:!0}),document.removeEventListener("pointermove",g,{capture:!0})}},[]),d.jsx(Fa,{...s,children:d.jsx(qc,{scope:t,open:n,onOpenChange:u,content:p,onContentChange:l,children:d.jsx(Zc,{scope:t,onClose:c.useCallback(()=>u(!1),[u]),isUsingKeyboardRef:f,dir:v,modal:i,children:r})})})};In.displayName=Se;var Qc="MenuAnchor",vt=c.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e,o=Ue(n);return d.jsx($a,{...o,...r,ref:t})});vt.displayName=Qc;var ht="MenuPortal",[Jc,kn]=re(ht,{forceMount:void 0}),Tn=e=>{const{__scopeMenu:t,forceMount:n,children:r,container:o}=e,a=oe(ht,t);return d.jsx(Jc,{scope:t,forceMount:n,children:d.jsx(ee,{present:n||a.open,children:d.jsx(ft,{asChild:!0,container:o,children:r})})})};Tn.displayName=ht;var U="MenuContent",[es,mt]=re(U),On=c.forwardRef((e,t)=>{const n=kn(U,e.__scopeMenu),{forceMount:r=n.forceMount,...o}=e,a=oe(U,e.__scopeMenu),i=_e(U,e.__scopeMenu);return d.jsx(xe.Provider,{scope:e.__scopeMenu,children:d.jsx(ee,{present:r||a.open,children:d.jsx(xe.Slot,{scope:e.__scopeMenu,children:i.modal?d.jsx(ts,{...o,ref:t}):d.jsx(ns,{...o,ref:t})})})})}),ts=c.forwardRef((e,t)=>{const n=oe(U,e.__scopeMenu),r=c.useRef(null),o=D(t,r);return c.useEffect(()=>{const a=r.current;if(a)return xn(a)},[]),d.jsx(gt,{...e,ref:o,trapFocus:n.open,disableOutsidePointerEvents:n.open,disableOutsideScroll:!0,onFocusOutside:_(e.onFocusOutside,a=>a.preventDefault(),{checkForDefaultPrevented:!1}),onDismiss:()=>n.onOpenChange(!1)})}),ns=c.forwardRef((e,t)=>{const n=oe(U,e.__scopeMenu);return d.jsx(gt,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,onDismiss:()=>n.onOpenChange(!1)})}),rs=ve("MenuContent.ScrollLock"),gt=c.forwardRef((e,t)=>{const{__scopeMenu:n,loop:r=!1,trapFocus:o,onOpenAutoFocus:a,onCloseAutoFocus:i,disableOutsidePointerEvents:s,onEntryFocus:p,onEscapeKeyDown:l,onPointerDownOutside:f,onFocusOutside:u,onInteractOutside:v,onDismiss:y,disableOutsideScroll:g,...h}=e,m=oe(U,n),w=_e(U,n),x=Ue(n),C=Dn(n),b=Yc(n),[R,P]=c.useState(null),S=c.useRef(null),A=D(t,S,m.onContentChange),k=c.useRef(0),T=c.useRef(""),I=c.useRef(0),K=c.useRef(null),V=c.useRef("right"),ae=c.useRef(0),ce=g?pt:c.Fragment,L=g?{as:rs,allowPinchZoom:!0}:void 0,se=E=>{var Z,ge;const O=T.current+E,$=b().filter(B=>!B.disabled),W=document.activeElement,he=(Z=$.find(B=>B.ref.current===W))==null?void 0:Z.textValue,me=$.map(B=>B.textValue),Me=hs(me,O,he),te=(ge=$.find(B=>B.textValue===Me))==null?void 0:ge.ref.current;(function B(ye){T.current=ye,window.clearTimeout(k.current),ye!==""&&(k.current=window.setTimeout(()=>B(""),1e3))})(O),te&&setTimeout(()=>te.focus())};c.useEffect(()=>()=>window.clearTimeout(k.current),[]),en();const F=c.useCallback(E=>{var $,W;return V.current===(($=K.current)==null?void 0:$.side)&&gs(E,(W=K.current)==null?void 0:W.area)},[]);return d.jsx(es,{scope:n,searchRef:T,onItemEnter:c.useCallback(E=>{F(E)&&E.preventDefault()},[F]),onItemLeave:c.useCallback(E=>{var O;F(E)||((O=S.current)==null||O.focus(),P(null))},[F]),onTriggerLeave:c.useCallback(E=>{F(E)&&E.preventDefault()},[F]),pointerGraceTimerRef:I,onPointerGraceIntentChange:c.useCallback(E=>{K.current=E},[]),children:d.jsx(ce,{...L,children:d.jsx(it,{asChild:!0,trapped:o,onMountAutoFocus:_(a,E=>{var O;E.preventDefault(),(O=S.current)==null||O.focus({preventScroll:!0})}),onUnmountAutoFocus:i,children:d.jsx(st,{asChild:!0,disableOutsidePointerEvents:s,onEscapeKeyDown:l,onPointerDownOutside:f,onFocusOutside:u,onInteractOutside:v,onDismiss:y,children:d.jsx(rc,{asChild:!0,...C,dir:w.dir,orientation:"vertical",loop:r,currentTabStopId:R,onCurrentTabStopIdChange:P,onEntryFocus:_(p,E=>{w.isUsingKeyboardRef.current||E.preventDefault()}),preventScrollOnEntryFocus:!0,children:d.jsx(Wa,{role:"menu","aria-orientation":"vertical","data-state":Zn(m.open),"data-radix-menu-content":"",dir:w.dir,...x,...h,ref:A,style:{outline:"none",...h.style},onKeyDown:_(h.onKeyDown,E=>{const $=E.target.closest("[data-radix-menu-content]")===E.currentTarget,W=E.ctrlKey||E.altKey||E.metaKey,he=E.key.length===1;$&&(E.key==="Tab"&&E.preventDefault(),!W&&he&&se(E.key));const me=S.current;if(E.target!==me||!zc.includes(E.key))return;E.preventDefault();const te=b().filter(Z=>!Z.disabled).map(Z=>Z.ref.current);An.includes(E.key)&&te.reverse(),ps(te)}),onBlur:_(e.onBlur,E=>{E.currentTarget.contains(E.target)||(window.clearTimeout(k.current),T.current="")}),onPointerMove:_(e.onPointerMove,be(E=>{const O=E.target,$=ae.current!==E.clientX;if(E.currentTarget.contains(O)&&$){const W=E.clientX>ae.current?"right":"left";V.current=W,ae.current=E.clientX}}))})})})})})})});On.displayName=U;var os="MenuGroup",yt=c.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e;return d.jsx(N.div,{role:"group",...r,ref:t})});yt.displayName=os;var as="MenuLabel",jn=c.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e;return d.jsx(N.div,{...r,ref:t})});jn.displayName=as;var Le="MenuItem",zt="menu.itemSelect",Ge=c.forwardRef((e,t)=>{const{disabled:n=!1,onSelect:r,...o}=e,a=c.useRef(null),i=_e(Le,e.__scopeMenu),s=mt(Le,e.__scopeMenu),p=D(t,a),l=c.useRef(!1),f=()=>{const u=a.current;if(!n&&u){const v=new CustomEvent(zt,{bubbles:!0,cancelable:!0});u.addEventListener(zt,y=>r==null?void 0:r(y),{once:!0}),Xt(u,v),v.defaultPrevented?l.current=!1:i.onClose()}};return d.jsx(Ln,{...o,ref:p,disabled:n,onClick:_(e.onClick,f),onPointerDown:u=>{var v;(v=e.onPointerDown)==null||v.call(e,u),l.current=!0},onPointerUp:_(e.onPointerUp,u=>{var v;l.current||(v=u.currentTarget)==null||v.click()}),onKeyDown:_(e.onKeyDown,u=>{const v=s.searchRef.current!=="";n||v&&u.key===" "||ot.includes(u.key)&&(u.currentTarget.click(),u.preventDefault())})})});Ge.displayName=Le;var Ln=c.forwardRef((e,t)=>{const{__scopeMenu:n,disabled:r=!1,textValue:o,...a}=e,i=mt(Le,n),s=Dn(n),p=c.useRef(null),l=D(t,p),[f,u]=c.useState(!1),[v,y]=c.useState("");return c.useEffect(()=>{const g=p.current;g&&y((g.textContent??"").trim())},[a.children]),d.jsx(xe.ItemSlot,{scope:n,disabled:r,textValue:o??v,children:d.jsx(oc,{asChild:!0,...s,focusable:!r,children:d.jsx(N.div,{role:"menuitem","data-highlighted":f?"":void 0,"aria-disabled":r||void 0,"data-disabled":r?"":void 0,...a,ref:l,onPointerMove:_(e.onPointerMove,be(g=>{r?i.onItemLeave(g):(i.onItemEnter(g),g.defaultPrevented||g.currentTarget.focus({preventScroll:!0}))})),onPointerLeave:_(e.onPointerLeave,be(g=>i.onItemLeave(g))),onFocus:_(e.onFocus,()=>u(!0)),onBlur:_(e.onBlur,()=>u(!1))})})})}),cs="MenuCheckboxItem",Fn=c.forwardRef((e,t)=>{const{checked:n=!1,onCheckedChange:r,...o}=e;return d.jsx(Gn,{scope:e.__scopeMenu,checked:n,children:d.jsx(Ge,{role:"menuitemcheckbox","aria-checked":Fe(n)?"mixed":n,...o,ref:t,"data-state":Ct(n),onSelect:_(o.onSelect,()=>r==null?void 0:r(Fe(n)?!0:!n),{checkForDefaultPrevented:!1})})})});Fn.displayName=cs;var $n="MenuRadioGroup",[ss,is]=re($n,{value:void 0,onValueChange:()=>{}}),Wn=c.forwardRef((e,t)=>{const{value:n,onValueChange:r,...o}=e,a=X(r);return d.jsx(ss,{scope:e.__scopeMenu,value:n,onValueChange:a,children:d.jsx(yt,{...o,ref:t})})});Wn.displayName=$n;var Bn="MenuRadioItem",Un=c.forwardRef((e,t)=>{const{value:n,...r}=e,o=is(Bn,e.__scopeMenu),a=n===o.value;return d.jsx(Gn,{scope:e.__scopeMenu,checked:a,children:d.jsx(Ge,{role:"menuitemradio","aria-checked":a,...r,ref:t,"data-state":Ct(a),onSelect:_(r.onSelect,()=>{var i;return(i=o.onValueChange)==null?void 0:i.call(o,n)},{checkForDefaultPrevented:!1})})})});Un.displayName=Bn;var wt="MenuItemIndicator",[Gn,us]=re(wt,{checked:!1}),Kn=c.forwardRef((e,t)=>{const{__scopeMenu:n,forceMount:r,...o}=e,a=us(wt,n);return d.jsx(ee,{present:r||Fe(a.checked)||a.checked===!0,children:d.jsx(N.span,{...o,ref:t,"data-state":Ct(a.checked)})})});Kn.displayName=wt;var ls="MenuSeparator",zn=c.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e;return d.jsx(N.div,{role:"separator","aria-orientation":"horizontal",...r,ref:t})});zn.displayName=ls;var ds="MenuArrow",Hn=c.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e,o=Ue(n);return d.jsx(Ba,{...o,...r,ref:t})});Hn.displayName=ds;var fs="MenuSub",[fu,Vn]=re(fs),Ce="MenuSubTrigger",Yn=c.forwardRef((e,t)=>{const n=oe(Ce,e.__scopeMenu),r=_e(Ce,e.__scopeMenu),o=Vn(Ce,e.__scopeMenu),a=mt(Ce,e.__scopeMenu),i=c.useRef(null),{pointerGraceTimerRef:s,onPointerGraceIntentChange:p}=a,l={__scopeMenu:e.__scopeMenu},f=c.useCallback(()=>{i.current&&window.clearTimeout(i.current),i.current=null},[]);return c.useEffect(()=>f,[f]),c.useEffect(()=>{const u=s.current;return()=>{window.clearTimeout(u),p(null)}},[s,p]),d.jsx(vt,{asChild:!0,...l,children:d.jsx(Ln,{id:o.triggerId,"aria-haspopup":"menu","aria-expanded":n.open,"aria-controls":n.open?o.contentId:void 0,"data-state":Zn(n.open),...e,ref:ct(t,o.onTriggerChange),onClick:u=>{var v;(v=e.onClick)==null||v.call(e,u),!(e.disabled||u.defaultPrevented)&&(u.currentTarget.focus(),n.open||n.onOpenChange(!0))},onPointerMove:_(e.onPointerMove,be(u=>{a.onItemEnter(u),!u.defaultPrevented&&!e.disabled&&!n.open&&!i.current&&(a.onPointerGraceIntentChange(null),i.current=window.setTimeout(()=>{n.onOpenChange(!0),f()},100))})),onPointerLeave:_(e.onPointerLeave,be(u=>{var y,g;f();const v=(y=n.content)==null?void 0:y.getBoundingClientRect();if(v){const h=(g=n.content)==null?void 0:g.dataset.side,m=h==="right",w=m?-5:5,x=v[m?"left":"right"],C=v[m?"right":"left"];a.onPointerGraceIntentChange({area:[{x:u.clientX+w,y:u.clientY},{x,y:v.top},{x:C,y:v.top},{x:C,y:v.bottom},{x,y:v.bottom}],side:h}),window.clearTimeout(s.current),s.current=window.setTimeout(()=>a.onPointerGraceIntentChange(null),300)}else{if(a.onTriggerLeave(u),u.defaultPrevented)return;a.onPointerGraceIntentChange(null)}})),onKeyDown:_(e.onKeyDown,u=>{var y;const v=a.searchRef.current!=="";e.disabled||v&&u.key===" "||Hc[r.dir].includes(u.key)&&(n.onOpenChange(!0),(y=n.content)==null||y.focus(),u.preventDefault())})})})});Yn.displayName=Ce;var Xn="MenuSubContent",qn=c.forwardRef((e,t)=>{const n=kn(U,e.__scopeMenu),{forceMount:r=n.forceMount,align:o="start",...a}=e,i=oe(U,e.__scopeMenu),s=_e(U,e.__scopeMenu),p=Vn(Xn,e.__scopeMenu),l=c.useRef(null),f=D(t,l);return d.jsx(xe.Provider,{scope:e.__scopeMenu,children:d.jsx(ee,{present:r||i.open,children:d.jsx(xe.Slot,{scope:e.__scopeMenu,children:d.jsx(gt,{id:p.contentId,"aria-labelledby":p.triggerId,...a,ref:f,align:o,side:s.dir==="rtl"?"left":"right",disableOutsidePointerEvents:!1,disableOutsideScroll:!1,trapFocus:!1,onOpenAutoFocus:u=>{var v;s.isUsingKeyboardRef.current&&((v=l.current)==null||v.focus()),u.preventDefault()},onCloseAutoFocus:u=>u.preventDefault(),onFocusOutside:_(e.onFocusOutside,u=>{u.target!==p.trigger&&i.onOpenChange(!1)}),onEscapeKeyDown:_(e.onEscapeKeyDown,u=>{s.onClose(),u.preventDefault()}),onKeyDown:_(e.onKeyDown,u=>{var g;const v=u.currentTarget.contains(u.target),y=Vc[s.dir].includes(u.key);v&&y&&(i.onOpenChange(!1),(g=p.trigger)==null||g.focus(),u.preventDefault())})})})})})});qn.displayName=Xn;function Zn(e){return e?"open":"closed"}function Fe(e){return e==="indeterminate"}function Ct(e){return Fe(e)?"indeterminate":e?"checked":"unchecked"}function ps(e){const t=document.activeElement;for(const n of e)if(n===t||(n.focus(),document.activeElement!==t))return}function vs(e,t){return e.map((n,r)=>e[(t+r)%e.length])}function hs(e,t,n){const o=t.length>1&&Array.from(t).every(l=>l===t[0])?t[0]:t,a=n?e.indexOf(n):-1;let i=vs(e,Math.max(a,0));o.length===1&&(i=i.filter(l=>l!==n));const p=i.find(l=>l.toLowerCase().startsWith(o.toLowerCase()));return p!==n?p:void 0}function ms(e,t){const{x:n,y:r}=e;let o=!1;for(let a=0,i=t.length-1;a<t.length;i=a++){const s=t[a],p=t[i],l=s.x,f=s.y,u=p.x,v=p.y;f>r!=v>r&&n<(u-l)*(r-f)/(v-f)+l&&(o=!o)}return o}function gs(e,t){if(!t)return!1;const n={x:e.clientX,y:e.clientY};return ms(n,t)}function be(e){return t=>t.pointerType==="mouse"?e(t):void 0}var ys=In,ws=vt,Cs=Tn,xs=On,bs=yt,Es=jn,Ss=Ge,_s=Fn,Ms=Wn,Rs=Un,Ps=Kn,As=zn,Ns=Hn,Ds=Yn,Is=qn,Ke="DropdownMenu",[ks]=J(Ke,[Nn]),j=Nn(),[Ts,Qn]=ks(Ke),Jn=e=>{const{__scopeDropdownMenu:t,children:n,dir:r,open:o,defaultOpen:a,onOpenChange:i,modal:s=!0}=e,p=j(t),l=c.useRef(null),[f,u]=We({prop:o,defaultProp:a??!1,onChange:i,caller:Ke});return d.jsx(Ts,{scope:t,triggerId:de(),triggerRef:l,contentId:de(),open:f,onOpenChange:u,onOpenToggle:c.useCallback(()=>u(v=>!v),[u]),modal:s,children:d.jsx(ys,{...p,open:f,onOpenChange:u,dir:r,modal:s,children:n})})};Jn.displayName=Ke;var er="DropdownMenuTrigger",tr=c.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,disabled:r=!1,...o}=e,a=Qn(er,n),i=j(n);return d.jsx(ws,{asChild:!0,...i,children:d.jsx(N.button,{type:"button",id:a.triggerId,"aria-haspopup":"menu","aria-expanded":a.open,"aria-controls":a.open?a.contentId:void 0,"data-state":a.open?"open":"closed","data-disabled":r?"":void 0,disabled:r,...o,ref:ct(t,a.triggerRef),onPointerDown:_(e.onPointerDown,s=>{!r&&s.button===0&&s.ctrlKey===!1&&(a.onOpenToggle(),a.open||s.preventDefault())}),onKeyDown:_(e.onKeyDown,s=>{r||(["Enter"," "].includes(s.key)&&a.onOpenToggle(),s.key==="ArrowDown"&&a.onOpenChange(!0),["Enter"," ","ArrowDown"].includes(s.key)&&s.preventDefault())})})})});tr.displayName=er;var Os="DropdownMenuPortal",nr=e=>{const{__scopeDropdownMenu:t,...n}=e,r=j(t);return d.jsx(Cs,{...r,...n})};nr.displayName=Os;var rr="DropdownMenuContent",or=c.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=Qn(rr,n),a=j(n),i=c.useRef(!1);return d.jsx(xs,{id:o.contentId,"aria-labelledby":o.triggerId,...a,...r,ref:t,onCloseAutoFocus:_(e.onCloseAutoFocus,s=>{var p;i.current||(p=o.triggerRef.current)==null||p.focus(),i.current=!1,s.preventDefault()}),onInteractOutside:_(e.onInteractOutside,s=>{const p=s.detail.originalEvent,l=p.button===0&&p.ctrlKey===!0,f=p.button===2||l;(!o.modal||f)&&(i.current=!0)}),style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}})});or.displayName=rr;var js="DropdownMenuGroup",Ls=c.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=j(n);return d.jsx(bs,{...o,...r,ref:t})});Ls.displayName=js;var Fs="DropdownMenuLabel",ar=c.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=j(n);return d.jsx(Es,{...o,...r,ref:t})});ar.displayName=Fs;var $s="DropdownMenuItem",cr=c.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=j(n);return d.jsx(Ss,{...o,...r,ref:t})});cr.displayName=$s;var Ws="DropdownMenuCheckboxItem",sr=c.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=j(n);return d.jsx(_s,{...o,...r,ref:t})});sr.displayName=Ws;var Bs="DropdownMenuRadioGroup",Us=c.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=j(n);return d.jsx(Ms,{...o,...r,ref:t})});Us.displayName=Bs;var Gs="DropdownMenuRadioItem",ir=c.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=j(n);return d.jsx(Rs,{...o,...r,ref:t})});ir.displayName=Gs;var Ks="DropdownMenuItemIndicator",ur=c.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=j(n);return d.jsx(Ps,{...o,...r,ref:t})});ur.displayName=Ks;var zs="DropdownMenuSeparator",lr=c.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=j(n);return d.jsx(As,{...o,...r,ref:t})});lr.displayName=zs;var Hs="DropdownMenuArrow",Vs=c.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=j(n);return d.jsx(Ns,{...o,...r,ref:t})});Vs.displayName=Hs;var Ys="DropdownMenuSubTrigger",dr=c.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=j(n);return d.jsx(Ds,{...o,...r,ref:t})});dr.displayName=Ys;var Xs="DropdownMenuSubContent",fr=c.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=j(n);return d.jsx(Is,{...o,...r,ref:t,style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}})});fr.displayName=Xs;var pu=Jn,vu=tr,hu=nr,mu=or,gu=ar,yu=cr,wu=sr,Cu=ir,xu=ur,bu=lr,Eu=dr,Su=fr;function qs(e){const t=c.useRef({value:e,previous:e});return c.useMemo(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}var ze="Switch",[Zs]=J(ze),[Qs,xt]=Zs(ze);function Js(e){const{__scopeSwitch:t,checked:n,children:r,defaultChecked:o,disabled:a,form:i,name:s,onCheckedChange:p,required:l,value:f="on",internal_do_not_use_render:u}=e,[v,y]=We({prop:n,defaultProp:o??!1,onChange:p,caller:ze}),[g,h]=c.useState(null),[m,w]=c.useState(null),x=c.useRef(!1),C=g?!!i||!!g.closest("form"):!0,b={checked:v,setChecked:y,disabled:a,control:g,setControl:h,name:s,form:i,value:f,hasConsumerStoppedPropagationRef:x,required:l,defaultChecked:o,isFormControl:C,bubbleInput:m,setBubbleInput:w};return d.jsx(Qs,{scope:t,...b,children:ni(u)?u(b):r})}var pr="SwitchTrigger",vr=c.forwardRef(({__scopeSwitch:e,onClick:t,...n},r)=>{const{value:o,disabled:a,checked:i,required:s,setControl:p,setChecked:l,hasConsumerStoppedPropagationRef:f,isFormControl:u,bubbleInput:v}=xt(pr,e),y=D(r,p);return d.jsx(N.button,{type:"button",role:"switch","aria-checked":i,"aria-required":s,"data-state":yr(i),"data-disabled":a?"":void 0,disabled:a,value:o,...n,ref:y,onClick:_(t,g=>{l(h=>!h),v&&u&&(f.current=g.isPropagationStopped(),f.current||g.stopPropagation())})})});vr.displayName=pr;var ei=c.forwardRef((e,t)=>{const{__scopeSwitch:n,name:r,checked:o,defaultChecked:a,required:i,disabled:s,value:p,onCheckedChange:l,form:f,...u}=e;return d.jsx(Js,{__scopeSwitch:n,checked:o,defaultChecked:a,disabled:s,required:i,onCheckedChange:l,name:r,form:f,value:p,internal_do_not_use_render:({isFormControl:v})=>d.jsxs(d.Fragment,{children:[d.jsx(vr,{...u,ref:t,__scopeSwitch:n}),v&&d.jsx(gr,{__scopeSwitch:n})]})})});ei.displayName=ze;var hr="SwitchThumb",ti=c.forwardRef((e,t)=>{const{__scopeSwitch:n,...r}=e,o=xt(hr,n);return d.jsx(N.span,{"data-state":yr(o.checked),"data-disabled":o.disabled?"":void 0,...r,ref:t})});ti.displayName=hr;var mr="SwitchBubbleInput",gr=c.forwardRef(({__scopeSwitch:e,...t},n)=>{const{control:r,hasConsumerStoppedPropagationRef:o,checked:a,defaultChecked:i,required:s,disabled:p,name:l,value:f,form:u,bubbleInput:v,setBubbleInput:y}=xt(mr,e),g=D(n,y),h=qs(a),m=rn(r);c.useEffect(()=>{const x=v;if(!x)return;const C=window.HTMLInputElement.prototype,R=Object.getOwnPropertyDescriptor(C,"checked").set,P=!o.current;if(h!==a&&R){const S=new Event("click",{bubbles:P});R.call(x,a),x.dispatchEvent(S)}},[v,h,a,o]);const w=c.useRef(a);return d.jsx(N.input,{type:"checkbox","aria-hidden":!0,defaultChecked:i??w.current,required:s,disabled:p,name:l,value:f,form:u,...t,tabIndex:-1,ref:g,style:{...t.style,...m,position:"absolute",pointerEvents:"none",opacity:0,margin:0,transform:"translateX(-100%)"}})});gr.displayName=mr;function ni(e){return typeof e=="function"}function yr(e){return e?"checked":"unchecked"}var ri="Label",wr=c.forwardRef((e,t)=>d.jsx(N.label,{...e,ref:t,onMouseDown:n=>{var o;n.target.closest("button, input, select, textarea")||((o=e.onMouseDown)==null||o.call(e,n),!n.defaultPrevented&&n.detail>1&&n.preventDefault())}}));wr.displayName=ri;var _u=wr,He="Dialog",[Cr,xr]=J(He),[oi,G]=Cr(He),br=e=>{const{__scopeDialog:t,children:n,open:r,defaultOpen:o,onOpenChange:a,modal:i=!0}=e,s=c.useRef(null),p=c.useRef(null),[l,f]=We({prop:r,defaultProp:o??!1,onChange:a,caller:He});return d.jsx(oi,{scope:t,triggerRef:s,contentRef:p,contentId:de(),titleId:de(),descriptionId:de(),open:l,onOpenChange:f,onOpenToggle:c.useCallback(()=>f(u=>!u),[f]),modal:i,children:n})};br.displayName=He;var Er="DialogTrigger",Sr=c.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=G(Er,n),a=D(t,o.triggerRef);return d.jsx(N.button,{type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.open?o.contentId:void 0,"data-state":St(o.open),...r,ref:a,onClick:_(e.onClick,o.onOpenToggle)})});Sr.displayName=Er;var bt="DialogPortal",[ai,_r]=Cr(bt,{forceMount:void 0}),Mr=e=>{const{__scopeDialog:t,forceMount:n,children:r,container:o}=e,a=G(bt,t);return d.jsx(ai,{scope:t,forceMount:n,children:c.Children.map(r,i=>d.jsx(ee,{present:n||a.open,children:d.jsx(ft,{asChild:!0,container:o,children:i})}))})};Mr.displayName=bt;var $e="DialogOverlay",Rr=c.forwardRef((e,t)=>{const n=_r($e,e.__scopeDialog),{forceMount:r=n.forceMount,...o}=e,a=G($e,e.__scopeDialog);return a.modal?d.jsx(ee,{present:r||a.open,children:d.jsx(si,{...o,ref:t})}):null});Rr.displayName=$e;var ci=ve("DialogOverlay.RemoveScroll"),si=c.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=G($e,n);return d.jsx(pt,{as:ci,allowPinchZoom:!0,shards:[o.contentRef],children:d.jsx(N.div,{"data-state":St(o.open),...r,ref:t,style:{pointerEvents:"auto",...r.style}})})}),ne="DialogContent",Pr=c.forwardRef((e,t)=>{const n=_r(ne,e.__scopeDialog),{forceMount:r=n.forceMount,...o}=e,a=G(ne,e.__scopeDialog);return d.jsx(ee,{present:r||a.open,children:a.modal?d.jsx(ii,{...o,ref:t}):d.jsx(ui,{...o,ref:t})})});Pr.displayName=ne;var ii=c.forwardRef((e,t)=>{const n=G(ne,e.__scopeDialog),r=c.useRef(null),o=D(t,n.contentRef,r);return c.useEffect(()=>{const a=r.current;if(a)return xn(a)},[]),d.jsx(Ar,{...e,ref:o,trapFocus:n.open,disableOutsidePointerEvents:n.open,onCloseAutoFocus:_(e.onCloseAutoFocus,a=>{var i;a.preventDefault(),(i=n.triggerRef.current)==null||i.focus()}),onPointerDownOutside:_(e.onPointerDownOutside,a=>{const i=a.detail.originalEvent,s=i.button===0&&i.ctrlKey===!0;(i.button===2||s)&&a.preventDefault()}),onFocusOutside:_(e.onFocusOutside,a=>a.preventDefault())})}),ui=c.forwardRef((e,t)=>{const n=G(ne,e.__scopeDialog),r=c.useRef(!1),o=c.useRef(!1);return d.jsx(Ar,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:a=>{var i,s;(i=e.onCloseAutoFocus)==null||i.call(e,a),a.defaultPrevented||(r.current||(s=n.triggerRef.current)==null||s.focus(),a.preventDefault()),r.current=!1,o.current=!1},onInteractOutside:a=>{var p,l;(p=e.onInteractOutside)==null||p.call(e,a),a.defaultPrevented||(r.current=!0,a.detail.originalEvent.type==="pointerdown"&&(o.current=!0));const i=a.target;((l=n.triggerRef.current)==null?void 0:l.contains(i))&&a.preventDefault(),a.detail.originalEvent.type==="focusin"&&o.current&&a.preventDefault()}})}),Ar=c.forwardRef((e,t)=>{const{__scopeDialog:n,trapFocus:r,onOpenAutoFocus:o,onCloseAutoFocus:a,...i}=e,s=G(ne,n),p=c.useRef(null),l=D(t,p);return en(),d.jsxs(d.Fragment,{children:[d.jsx(it,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:o,onUnmountAutoFocus:a,children:d.jsx(st,{role:"dialog",id:s.contentId,"aria-describedby":s.descriptionId,"aria-labelledby":s.titleId,"data-state":St(s.open),...i,ref:l,onDismiss:()=>s.onOpenChange(!1)})}),d.jsxs(d.Fragment,{children:[d.jsx(di,{titleId:s.titleId}),d.jsx(pi,{contentRef:p,descriptionId:s.descriptionId})]})]})}),Et="DialogTitle",Nr=c.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=G(Et,n);return d.jsx(N.h2,{id:o.titleId,...r,ref:t})});Nr.displayName=Et;var Dr="DialogDescription",Ir=c.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=G(Dr,n);return d.jsx(N.p,{id:o.descriptionId,...r,ref:t})});Ir.displayName=Dr;var kr="DialogClose",Tr=c.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=G(kr,n);return d.jsx(N.button,{type:"button",...r,ref:t,onClick:_(e.onClick,()=>o.onOpenChange(!1))})});Tr.displayName=kr;function St(e){return e?"open":"closed"}var Or="DialogTitleWarning",[li,jr]=Zo(Or,{contentName:ne,titleName:Et,docsSlug:"dialog"}),di=({titleId:e})=>{const t=jr(Or),n=`\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users.
|
|
|
|
If you want to hide the \`${t.titleName}\`, you can wrap it with our VisuallyHidden component.
|
|
|
|
For more information, see https://radix-ui.com/primitives/docs/components/${t.docsSlug}`;return c.useEffect(()=>{e&&(document.getElementById(e)||console.error(n))},[n,e]),null},fi="DialogDescriptionWarning",pi=({contentRef:e,descriptionId:t})=>{const r=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${jr(fi).contentName}}.`;return c.useEffect(()=>{var a;const o=(a=e.current)==null?void 0:a.getAttribute("aria-describedby");t&&o&&(document.getElementById(t)||console.warn(r))},[r,e,t]),null},vi=br,hi=Sr,mi=Mr,gi=Rr,yi=Pr,wi=Nr,Ci=Ir,Lr=Tr,Fr="AlertDialog",[xi]=J(Fr,[xr]),q=xr(),$r=e=>{const{__scopeAlertDialog:t,...n}=e,r=q(t);return d.jsx(vi,{...r,...n,modal:!0})};$r.displayName=Fr;var bi="AlertDialogTrigger",Wr=c.forwardRef((e,t)=>{const{__scopeAlertDialog:n,...r}=e,o=q(n);return d.jsx(hi,{...o,...r,ref:t})});Wr.displayName=bi;var Ei="AlertDialogPortal",Br=e=>{const{__scopeAlertDialog:t,...n}=e,r=q(t);return d.jsx(mi,{...r,...n})};Br.displayName=Ei;var Si="AlertDialogOverlay",Ur=c.forwardRef((e,t)=>{const{__scopeAlertDialog:n,...r}=e,o=q(n);return d.jsx(gi,{...o,...r,ref:t})});Ur.displayName=Si;var pe="AlertDialogContent",[_i,Mi]=xi(pe),Ri=na("AlertDialogContent"),Gr=c.forwardRef((e,t)=>{const{__scopeAlertDialog:n,children:r,...o}=e,a=q(n),i=c.useRef(null),s=D(t,i),p=c.useRef(null);return d.jsx(li,{contentName:pe,titleName:Kr,docsSlug:"alert-dialog",children:d.jsx(_i,{scope:n,cancelRef:p,children:d.jsxs(yi,{role:"alertdialog",...a,...o,ref:s,onOpenAutoFocus:_(o.onOpenAutoFocus,l=>{var f;l.preventDefault(),(f=p.current)==null||f.focus({preventScroll:!0})}),onPointerDownOutside:l=>l.preventDefault(),onInteractOutside:l=>l.preventDefault(),children:[d.jsx(Ri,{children:r}),d.jsx(Ai,{contentRef:i})]})})})});Gr.displayName=pe;var Kr="AlertDialogTitle",zr=c.forwardRef((e,t)=>{const{__scopeAlertDialog:n,...r}=e,o=q(n);return d.jsx(wi,{...o,...r,ref:t})});zr.displayName=Kr;var Hr="AlertDialogDescription",Vr=c.forwardRef((e,t)=>{const{__scopeAlertDialog:n,...r}=e,o=q(n);return d.jsx(Ci,{...o,...r,ref:t})});Vr.displayName=Hr;var Pi="AlertDialogAction",Yr=c.forwardRef((e,t)=>{const{__scopeAlertDialog:n,...r}=e,o=q(n);return d.jsx(Lr,{...o,...r,ref:t})});Yr.displayName=Pi;var Xr="AlertDialogCancel",qr=c.forwardRef((e,t)=>{const{__scopeAlertDialog:n,...r}=e,{cancelRef:o}=Mi(Xr,n),a=q(n),i=D(t,o);return d.jsx(Lr,{...a,...r,ref:i})});qr.displayName=Xr;var Ai=({contentRef:e})=>{const t=`\`${pe}\` requires a description for the component to be accessible for screen reader users.
|
|
|
|
You can add a description to the \`${pe}\` by passing a \`${Hr}\` component as a child, which also benefits sighted users by adding visible context to the dialog.
|
|
|
|
Alternatively, you can use your own component as a description by assigning it an \`id\` and passing the same value to the \`aria-describedby\` prop in \`${pe}\`. If the description is confusing or duplicative for sighted users, you can use the \`@radix-ui/react-visually-hidden\` primitive as a wrapper around your description component.
|
|
|
|
For more information, see https://radix-ui.com/primitives/docs/components/alert-dialog`;return c.useEffect(()=>{var r;document.getElementById((r=e.current)==null?void 0:r.getAttribute("aria-describedby"))||console.warn(t)},[t,e]),null},Mu=$r,Ru=Wr,Pu=Br,Au=Ur,Nu=Gr,Du=Yr,Iu=qr,ku=zr,Tu=Vr;export{wi as $,Di as A,Ii as B,Ti as C,Zi as D,Fi as E,$i as F,Vi as G,Wi as H,yu as I,Hi as J,Li as K,gu as L,Qi as M,zi as N,Bi as O,hu as P,tu as Q,Cu as R,Eu as S,vu as T,Xi as U,iu as V,vi as W,lu as X,mi as Y,yi as Z,Lr as _,Su as a,gi as a0,Ci as a1,Mu as a2,Ru as a3,Pu as a4,Nu as a5,ku as a6,Tu as a7,Iu as a8,Du as a9,Au as aa,_u as ab,mu as b,wu as c,xu as d,ki as e,Oi as f,bu as g,pu as h,au as i,ou as j,Gi as k,nu as l,eu as m,su as n,du as o,Yi as p,Ki as q,ji as r,qi as s,ei as t,ti as u,ru as v,uu as w,Ji as x,Ui as y,cu as z};
|