"use strict";exports.id=6042,exports.ids=[6042],exports.modules={74151:(e,r,n)=>{n.d(r,{Z:()=>o});var t=n(75593);/**
 * @license lucide-react v0.446.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */let o=(0,t.Z)("Circle",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]])},97849:(e,r,n)=>{n.d(r,{Z:()=>o});var t=n(75593);/**
 * @license lucide-react v0.446.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */let o=(0,t.Z)("LayoutDashboard",[["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"}]])},90092:(e,r,n)=>{n.d(r,{Z:()=>o});var t=n(75593);/**
 * @license lucide-react v0.446.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */let o=(0,t.Z)("LogOut",[["path",{d:"M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4",key:"1uf3rs"}],["polyline",{points:"16 17 21 12 16 7",key:"1gabdz"}],["line",{x1:"21",x2:"9",y1:"12",y2:"12",key:"1uyos4"}]])},5987:(e,r,n)=>{n.d(r,{Z:()=>o});var t=n(75593);/**
 * @license lucide-react v0.446.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */let o=(0,t.Z)("Settings",[["path",{d:"M12.22 2h-.44a2 2 0 0 0-2 2v.18a2 2 0 0 1-1 1.73l-.43.25a2 2 0 0 1-2 0l-.15-.08a2 2 0 0 0-2.73.73l-.22.38a2 2 0 0 0 .73 2.73l.15.1a2 2 0 0 1 1 1.72v.51a2 2 0 0 1-1 1.74l-.15.09a2 2 0 0 0-.73 2.73l.22.38a2 2 0 0 0 2.73.73l.15-.08a2 2 0 0 1 2 0l.43.25a2 2 0 0 1 1 1.73V20a2 2 0 0 0 2 2h.44a2 2 0 0 0 2-2v-.18a2 2 0 0 1 1-1.73l.43-.25a2 2 0 0 1 2 0l.15.08a2 2 0 0 0 2.73-.73l.22-.39a2 2 0 0 0-.73-2.73l-.15-.08a2 2 0 0 1-1-1.74v-.5a2 2 0 0 1 1-1.74l.15-.09a2 2 0 0 0 .73-2.73l-.22-.38a2 2 0 0 0-2.73-.73l-.15.08a2 2 0 0 1-2 0l-.43-.25a2 2 0 0 1-1-1.73V4a2 2 0 0 0-2-2z",key:"1qme2f"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]])},45894:(e,r,n)=>{n.d(r,{Z:()=>o});var t=n(75593);/**
 * @license lucide-react v0.446.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */let o=(0,t.Z)("ShoppingCart",[["circle",{cx:"8",cy:"21",r:"1",key:"jimo8o"}],["circle",{cx:"19",cy:"21",r:"1",key:"13723u"}],["path",{d:"M2.05 2.05h2l2.66 12.42a2 2 0 0 0 2 1.58h9.78a2 2 0 0 0 1.95-1.57l1.65-7.43H5.12",key:"9zh506"}]])},93680:(e,r,n)=>{n.d(r,{Z:()=>o});var t=n(75593);/**
 * @license lucide-react v0.446.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */let o=(0,t.Z)("User",[["path",{d:"M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2",key:"975kel"}],["circle",{cx:"12",cy:"7",r:"4",key:"17ys0d"}]])},91672:(e,r,n)=>{n.d(r,{Z:()=>o});var t=n(75593);/**
 * @license lucide-react v0.446.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */let o=(0,t.Z)("Users",[["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"}],["path",{d:"M22 21v-2a4 4 0 0 0-3-3.87",key:"kshegd"}],["path",{d:"M16 3.13a4 4 0 0 1 0 7.75",key:"1da9ce"}]])},1828:(e,r,n)=>{n.d(r,{oC:()=>e6,VY:()=>e4,ZA:()=>e5,ck:()=>e9,wU:()=>rn,__:()=>e8,Uv:()=>e7,Ee:()=>re,Rk:()=>rr,fC:()=>e2,Z0:()=>rt,Tr:()=>ro,tu:()=>rl,fF:()=>ra,xz:()=>e3});var t=n(9885),o=n(32840),a=n(80880),l=n(8718),u=n(43408),i=n(21484),c=n(86981),s=n(73994),d=n(75393),p=n(81046),f=n(47699),v=n(76529),h=n(77357),m=n(53151),g=n(79752),w=n(83089),y=n(60080),x=t.forwardRef((e,r)=>{let{children:n,...o}=e,a=t.Children.toArray(n),l=a.find(b);if(l){let e=l.props.children,n=a.map(r=>r!==l?r:t.Children.count(e)>1?t.Children.only(null):t.isValidElement(e)?e.props.children:null);return(0,y.jsx)(M,{...o,ref:r,children:t.isValidElement(e)?t.cloneElement(e,void 0,n):null})}return(0,y.jsx)(M,{...o,ref:r,children:n})});x.displayName="Slot";var M=t.forwardRef((e,r)=>{let{children:n,...o}=e;if(t.isValidElement(n)){let e=function(e){let r=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,n=r&&"isReactWarning"in r&&r.isReactWarning;return n?e.ref:(n=(r=Object.getOwnPropertyDescriptor(e,"ref")?.get)&&"isReactWarning"in r&&r.isReactWarning)?e.props.ref:e.props.ref||e.ref}(n);return t.cloneElement(n,{...function(e,r){let n={...r};for(let t in r){let o=e[t],a=r[t],l=/^on[A-Z]/.test(t);l?o&&a?n[t]=(...e)=>{a(...e),o(...e)}:o&&(n[t]=o):"style"===t?n[t]={...o,...a}:"className"===t&&(n[t]=[o,a].filter(Boolean).join(" "))}return{...e,...n}}(o,n.props),ref:r?(0,a.F)(r,e):e})}return t.Children.count(n)>1?t.Children.only(null):null});M.displayName="SlotClone";var C=({children:e})=>(0,y.jsx)(y.Fragment,{children:e});function b(e){return t.isValidElement(e)&&e.type===C}var R=n(32285),j=n(94348),k=n(32864),D=["Enter"," "],_=["ArrowUp","PageDown","End"],E=["ArrowDown","PageUp","Home",..._],P={ltr:[...D,"ArrowRight"],rtl:[...D,"ArrowLeft"]},I={ltr:["ArrowLeft"],rtl:["ArrowRight"]},T="Menu",[N,S,F]=(0,c.B)(T),[O,A]=(0,l.b)(T,[F,h.D7,w.Pc]),L=(0,h.D7)(),K=(0,w.Pc)(),[V,W]=O(T),[Z,G]=O(T),U=e=>{let{__scopeMenu:r,open:n=!1,children:o,dir:a,onOpenChange:l,modal:u=!0}=e,i=L(r),[c,d]=t.useState(null),p=t.useRef(!1),f=(0,R.W)(l),v=(0,s.gm)(a);return t.useEffect(()=>{let e=()=>{p.current=!0,document.addEventListener("pointerdown",r,{capture:!0,once:!0}),document.addEventListener("pointermove",r,{capture:!0,once:!0})},r=()=>p.current=!1;return document.addEventListener("keydown",e,{capture:!0}),()=>{document.removeEventListener("keydown",e,{capture:!0}),document.removeEventListener("pointerdown",r,{capture:!0}),document.removeEventListener("pointermove",r,{capture:!0})}},[]),(0,y.jsx)(h.fC,{...i,children:(0,y.jsx)(V,{scope:r,open:n,onOpenChange:f,content:c,onContentChange:d,children:(0,y.jsx)(Z,{scope:r,onClose:t.useCallback(()=>f(!1),[f]),isUsingKeyboardRef:p,dir:v,modal:u,children:o})})})};U.displayName=T;var B=t.forwardRef((e,r)=>{let{__scopeMenu:n,...t}=e,o=L(n);return(0,y.jsx)(h.ee,{...o,...t,ref:r})});B.displayName="MenuAnchor";var z="MenuPortal",[H,X]=O(z,{forceMount:void 0}),$=e=>{let{__scopeMenu:r,forceMount:n,children:t,container:o}=e,a=W(z,r);return(0,y.jsx)(H,{scope:r,forceMount:n,children:(0,y.jsx)(g.z,{present:n||a.open,children:(0,y.jsx)(m.h,{asChild:!0,container:o,children:t})})})};$.displayName=z;var Y="MenuContent",[q,J]=O(Y),Q=t.forwardRef((e,r)=>{let n=X(Y,e.__scopeMenu),{forceMount:t=n.forceMount,...o}=e,a=W(Y,e.__scopeMenu),l=G(Y,e.__scopeMenu);return(0,y.jsx)(N.Provider,{scope:e.__scopeMenu,children:(0,y.jsx)(g.z,{present:t||a.open,children:(0,y.jsx)(N.Slot,{scope:e.__scopeMenu,children:l.modal?(0,y.jsx)(ee,{...o,ref:r}):(0,y.jsx)(er,{...o,ref:r})})})})}),ee=t.forwardRef((e,r)=>{let n=W(Y,e.__scopeMenu),l=t.useRef(null),u=(0,a.e)(r,l);return t.useEffect(()=>{let e=l.current;if(e)return(0,j.Ry)(e)},[]),(0,y.jsx)(en,{...e,ref:u,trapFocus:n.open,disableOutsidePointerEvents:n.open,disableOutsideScroll:!0,onFocusOutside:(0,o.M)(e.onFocusOutside,e=>e.preventDefault(),{checkForDefaultPrevented:!1}),onDismiss:()=>n.onOpenChange(!1)})}),er=t.forwardRef((e,r)=>{let n=W(Y,e.__scopeMenu);return(0,y.jsx)(en,{...e,ref:r,trapFocus:!1,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,onDismiss:()=>n.onOpenChange(!1)})}),en=t.forwardRef((e,r)=>{let{__scopeMenu:n,loop:l=!1,trapFocus:u,onOpenAutoFocus:i,onCloseAutoFocus:c,disableOutsidePointerEvents:s,onEntryFocus:v,onEscapeKeyDown:m,onPointerDownOutside:g,onFocusOutside:M,onInteractOutside:C,onDismiss:b,disableOutsideScroll:R,...j}=e,D=W(Y,n),P=G(Y,n),I=L(n),T=K(n),N=S(n),[F,O]=t.useState(null),A=t.useRef(null),V=(0,a.e)(r,A,D.onContentChange),Z=t.useRef(0),U=t.useRef(""),B=t.useRef(0),z=t.useRef(null),H=t.useRef("right"),X=t.useRef(0),$=R?k.f:t.Fragment,J=R?{as:x,allowPinchZoom:!0}:void 0,Q=e=>{let r=U.current+e,n=N().filter(e=>!e.disabled),t=document.activeElement,o=n.find(e=>e.ref.current===t)?.textValue,a=n.map(e=>e.textValue),l=function(e,r,n){var t;let o=r.length>1&&Array.from(r).every(e=>e===r[0]),a=o?r[0]:r,l=n?e.indexOf(n):-1,u=(t=Math.max(l,0),e.map((r,n)=>e[(t+n)%e.length])),i=1===a.length;i&&(u=u.filter(e=>e!==n));let c=u.find(e=>e.toLowerCase().startsWith(a.toLowerCase()));return c!==n?c:void 0}(a,r,o),u=n.find(e=>e.textValue===l)?.ref.current;(function e(r){U.current=r,window.clearTimeout(Z.current),""!==r&&(Z.current=window.setTimeout(()=>e(""),1e3))})(r),u&&setTimeout(()=>u.focus())};t.useEffect(()=>()=>window.clearTimeout(Z.current),[]),(0,p.EW)();let ee=t.useCallback(e=>{let r=H.current===z.current?.side;return r&&function(e,r){if(!r)return!1;let n={x:e.clientX,y:e.clientY};return function(e,r){let{x:n,y:t}=e,o=!1;for(let e=0,a=r.length-1;e<r.length;a=e++){let l=r[e].x,u=r[e].y,i=r[a].x,c=r[a].y,s=u>t!=c>t&&n<(i-l)*(t-u)/(c-u)+l;s&&(o=!o)}return o}(n,r)}(e,z.current?.area)},[]);return(0,y.jsx)(q,{scope:n,searchRef:U,onItemEnter:t.useCallback(e=>{ee(e)&&e.preventDefault()},[ee]),onItemLeave:t.useCallback(e=>{ee(e)||(A.current?.focus(),O(null))},[ee]),onTriggerLeave:t.useCallback(e=>{ee(e)&&e.preventDefault()},[ee]),pointerGraceTimerRef:B,onPointerGraceIntentChange:t.useCallback(e=>{z.current=e},[]),children:(0,y.jsx)($,{...J,children:(0,y.jsx)(f.M,{asChild:!0,trapped:u,onMountAutoFocus:(0,o.M)(i,e=>{e.preventDefault(),A.current?.focus({preventScroll:!0})}),onUnmountAutoFocus:c,children:(0,y.jsx)(d.XB,{asChild:!0,disableOutsidePointerEvents:s,onEscapeKeyDown:m,onPointerDownOutside:g,onFocusOutside:M,onInteractOutside:C,onDismiss:b,children:(0,y.jsx)(w.fC,{asChild:!0,...T,dir:P.dir,orientation:"vertical",loop:l,currentTabStopId:F,onCurrentTabStopIdChange:O,onEntryFocus:(0,o.M)(v,e=>{P.isUsingKeyboardRef.current||e.preventDefault()}),preventScrollOnEntryFocus:!0,children:(0,y.jsx)(h.VY,{role:"menu","aria-orientation":"vertical","data-state":eP(D.open),"data-radix-menu-content":"",dir:P.dir,...I,...j,ref:V,style:{outline:"none",...j.style},onKeyDown:(0,o.M)(j.onKeyDown,e=>{let r=e.target,n=r.closest("[data-radix-menu-content]")===e.currentTarget,t=e.ctrlKey||e.altKey||e.metaKey,o=1===e.key.length;n&&("Tab"===e.key&&e.preventDefault(),!t&&o&&Q(e.key));let a=A.current;if(e.target!==a||!E.includes(e.key))return;e.preventDefault();let l=N().filter(e=>!e.disabled),u=l.map(e=>e.ref.current);_.includes(e.key)&&u.reverse(),function(e){let r=document.activeElement;for(let n of e)if(n===r||(n.focus(),document.activeElement!==r))return}(u)}),onBlur:(0,o.M)(e.onBlur,e=>{e.currentTarget.contains(e.target)||(window.clearTimeout(Z.current),U.current="")}),onPointerMove:(0,o.M)(e.onPointerMove,eN(e=>{let r=e.target,n=X.current!==e.clientX;if(e.currentTarget.contains(r)&&n){let r=e.clientX>X.current?"right":"left";H.current=r,X.current=e.clientX}}))})})})})})})});Q.displayName=Y;var et=t.forwardRef((e,r)=>{let{__scopeMenu:n,...t}=e;return(0,y.jsx)(i.WV.div,{role:"group",...t,ref:r})});et.displayName="MenuGroup";var eo=t.forwardRef((e,r)=>{let{__scopeMenu:n,...t}=e;return(0,y.jsx)(i.WV.div,{...t,ref:r})});eo.displayName="MenuLabel";var ea="MenuItem",el="menu.itemSelect",eu=t.forwardRef((e,r)=>{let{disabled:n=!1,onSelect:l,...u}=e,c=t.useRef(null),s=G(ea,e.__scopeMenu),d=J(ea,e.__scopeMenu),p=(0,a.e)(r,c),f=t.useRef(!1);return(0,y.jsx)(ei,{...u,ref:p,disabled:n,onClick:(0,o.M)(e.onClick,()=>{let e=c.current;if(!n&&e){let r=new CustomEvent(el,{bubbles:!0,cancelable:!0});e.addEventListener(el,e=>l?.(e),{once:!0}),(0,i.jH)(e,r),r.defaultPrevented?f.current=!1:s.onClose()}}),onPointerDown:r=>{e.onPointerDown?.(r),f.current=!0},onPointerUp:(0,o.M)(e.onPointerUp,e=>{f.current||e.currentTarget?.click()}),onKeyDown:(0,o.M)(e.onKeyDown,e=>{let r=""!==d.searchRef.current;!n&&(!r||" "!==e.key)&&D.includes(e.key)&&(e.currentTarget.click(),e.preventDefault())})})});eu.displayName=ea;var ei=t.forwardRef((e,r)=>{let{__scopeMenu:n,disabled:l=!1,textValue:u,...c}=e,s=J(ea,n),d=K(n),p=t.useRef(null),f=(0,a.e)(r,p),[v,h]=t.useState(!1),[m,g]=t.useState("");return t.useEffect(()=>{let e=p.current;e&&g((e.textContent??"").trim())},[c.children]),(0,y.jsx)(N.ItemSlot,{scope:n,disabled:l,textValue:u??m,children:(0,y.jsx)(w.ck,{asChild:!0,...d,focusable:!l,children:(0,y.jsx)(i.WV.div,{role:"menuitem","data-highlighted":v?"":void 0,"aria-disabled":l||void 0,"data-disabled":l?"":void 0,...c,ref:f,onPointerMove:(0,o.M)(e.onPointerMove,eN(e=>{if(l)s.onItemLeave(e);else if(s.onItemEnter(e),!e.defaultPrevented){let r=e.currentTarget;r.focus({preventScroll:!0})}})),onPointerLeave:(0,o.M)(e.onPointerLeave,eN(e=>s.onItemLeave(e))),onFocus:(0,o.M)(e.onFocus,()=>h(!0)),onBlur:(0,o.M)(e.onBlur,()=>h(!1))})})})}),ec=t.forwardRef((e,r)=>{let{checked:n=!1,onCheckedChange:t,...a}=e;return(0,y.jsx)(eg,{scope:e.__scopeMenu,checked:n,children:(0,y.jsx)(eu,{role:"menuitemcheckbox","aria-checked":eI(n)?"mixed":n,...a,ref:r,"data-state":eT(n),onSelect:(0,o.M)(a.onSelect,()=>t?.(!!eI(n)||!n),{checkForDefaultPrevented:!1})})})});ec.displayName="MenuCheckboxItem";var es="MenuRadioGroup",[ed,ep]=O(es,{value:void 0,onValueChange:()=>{}}),ef=t.forwardRef((e,r)=>{let{value:n,onValueChange:t,...o}=e,a=(0,R.W)(t);return(0,y.jsx)(ed,{scope:e.__scopeMenu,value:n,onValueChange:a,children:(0,y.jsx)(et,{...o,ref:r})})});ef.displayName=es;var ev="MenuRadioItem",eh=t.forwardRef((e,r)=>{let{value:n,...t}=e,a=ep(ev,e.__scopeMenu),l=n===a.value;return(0,y.jsx)(eg,{scope:e.__scopeMenu,checked:l,children:(0,y.jsx)(eu,{role:"menuitemradio","aria-checked":l,...t,ref:r,"data-state":eT(l),onSelect:(0,o.M)(t.onSelect,()=>a.onValueChange?.(n),{checkForDefaultPrevented:!1})})})});eh.displayName=ev;var em="MenuItemIndicator",[eg,ew]=O(em,{checked:!1}),ey=t.forwardRef((e,r)=>{let{__scopeMenu:n,forceMount:t,...o}=e,a=ew(em,n);return(0,y.jsx)(g.z,{present:t||eI(a.checked)||!0===a.checked,children:(0,y.jsx)(i.WV.span,{...o,ref:r,"data-state":eT(a.checked)})})});ey.displayName=em;var ex=t.forwardRef((e,r)=>{let{__scopeMenu:n,...t}=e;return(0,y.jsx)(i.WV.div,{role:"separator","aria-orientation":"horizontal",...t,ref:r})});ex.displayName="MenuSeparator";var eM=t.forwardRef((e,r)=>{let{__scopeMenu:n,...t}=e,o=L(n);return(0,y.jsx)(h.Eh,{...o,...t,ref:r})});eM.displayName="MenuArrow";var eC="MenuSub",[eb,eR]=O(eC),ej=e=>{let{__scopeMenu:r,children:n,open:o=!1,onOpenChange:a}=e,l=W(eC,r),u=L(r),[i,c]=t.useState(null),[s,d]=t.useState(null),p=(0,R.W)(a);return t.useEffect(()=>(!1===l.open&&p(!1),()=>p(!1)),[l.open,p]),(0,y.jsx)(h.fC,{...u,children:(0,y.jsx)(V,{scope:r,open:o,onOpenChange:p,content:s,onContentChange:d,children:(0,y.jsx)(eb,{scope:r,contentId:(0,v.M)(),triggerId:(0,v.M)(),trigger:i,onTriggerChange:c,children:n})})})};ej.displayName=eC;var ek="MenuSubTrigger",eD=t.forwardRef((e,r)=>{let n=W(ek,e.__scopeMenu),l=G(ek,e.__scopeMenu),u=eR(ek,e.__scopeMenu),i=J(ek,e.__scopeMenu),c=t.useRef(null),{pointerGraceTimerRef:s,onPointerGraceIntentChange:d}=i,p={__scopeMenu:e.__scopeMenu},f=t.useCallback(()=>{c.current&&window.clearTimeout(c.current),c.current=null},[]);return t.useEffect(()=>f,[f]),t.useEffect(()=>{let e=s.current;return()=>{window.clearTimeout(e),d(null)}},[s,d]),(0,y.jsx)(B,{asChild:!0,...p,children:(0,y.jsx)(ei,{id:u.triggerId,"aria-haspopup":"menu","aria-expanded":n.open,"aria-controls":u.contentId,"data-state":eP(n.open),...e,ref:(0,a.F)(r,u.onTriggerChange),onClick:r=>{e.onClick?.(r),e.disabled||r.defaultPrevented||(r.currentTarget.focus(),n.open||n.onOpenChange(!0))},onPointerMove:(0,o.M)(e.onPointerMove,eN(r=>{i.onItemEnter(r),r.defaultPrevented||e.disabled||n.open||c.current||(i.onPointerGraceIntentChange(null),c.current=window.setTimeout(()=>{n.onOpenChange(!0),f()},100))})),onPointerLeave:(0,o.M)(e.onPointerLeave,eN(e=>{f();let r=n.content?.getBoundingClientRect();if(r){let t=n.content?.dataset.side,o="right"===t,a=r[o?"left":"right"],l=r[o?"right":"left"];i.onPointerGraceIntentChange({area:[{x:e.clientX+(o?-5:5),y:e.clientY},{x:a,y:r.top},{x:l,y:r.top},{x:l,y:r.bottom},{x:a,y:r.bottom}],side:t}),window.clearTimeout(s.current),s.current=window.setTimeout(()=>i.onPointerGraceIntentChange(null),300)}else{if(i.onTriggerLeave(e),e.defaultPrevented)return;i.onPointerGraceIntentChange(null)}})),onKeyDown:(0,o.M)(e.onKeyDown,r=>{let t=""!==i.searchRef.current;!e.disabled&&(!t||" "!==r.key)&&P[l.dir].includes(r.key)&&(n.onOpenChange(!0),n.content?.focus(),r.preventDefault())})})})});eD.displayName=ek;var e_="MenuSubContent",eE=t.forwardRef((e,r)=>{let n=X(Y,e.__scopeMenu),{forceMount:l=n.forceMount,...u}=e,i=W(Y,e.__scopeMenu),c=G(Y,e.__scopeMenu),s=eR(e_,e.__scopeMenu),d=t.useRef(null),p=(0,a.e)(r,d);return(0,y.jsx)(N.Provider,{scope:e.__scopeMenu,children:(0,y.jsx)(g.z,{present:l||i.open,children:(0,y.jsx)(N.Slot,{scope:e.__scopeMenu,children:(0,y.jsx)(en,{id:s.contentId,"aria-labelledby":s.triggerId,...u,ref:p,align:"start",side:"rtl"===c.dir?"left":"right",disableOutsidePointerEvents:!1,disableOutsideScroll:!1,trapFocus:!1,onOpenAutoFocus:e=>{c.isUsingKeyboardRef.current&&d.current?.focus(),e.preventDefault()},onCloseAutoFocus:e=>e.preventDefault(),onFocusOutside:(0,o.M)(e.onFocusOutside,e=>{e.target!==s.trigger&&i.onOpenChange(!1)}),onEscapeKeyDown:(0,o.M)(e.onEscapeKeyDown,e=>{c.onClose(),e.preventDefault()}),onKeyDown:(0,o.M)(e.onKeyDown,e=>{let r=e.currentTarget.contains(e.target),n=I[c.dir].includes(e.key);r&&n&&(i.onOpenChange(!1),s.trigger?.focus(),e.preventDefault())})})})})})});function eP(e){return e?"open":"closed"}function eI(e){return"indeterminate"===e}function eT(e){return eI(e)?"indeterminate":e?"checked":"unchecked"}function eN(e){return r=>"mouse"===r.pointerType?e(r):void 0}eE.displayName=e_;var eS="DropdownMenu",[eF,eO]=(0,l.b)(eS,[A]),eA=A(),[eL,eK]=eF(eS),eV=e=>{let{__scopeDropdownMenu:r,children:n,dir:o,open:a,defaultOpen:l,onOpenChange:i,modal:c=!0}=e,s=eA(r),d=t.useRef(null),[p=!1,f]=(0,u.T)({prop:a,defaultProp:l,onChange:i});return(0,y.jsx)(eL,{scope:r,triggerId:(0,v.M)(),triggerRef:d,contentId:(0,v.M)(),open:p,onOpenChange:f,onOpenToggle:t.useCallback(()=>f(e=>!e),[f]),modal:c,children:(0,y.jsx)(U,{...s,open:p,onOpenChange:f,dir:o,modal:c,children:n})})};eV.displayName=eS;var eW="DropdownMenuTrigger",eZ=t.forwardRef((e,r)=>{let{__scopeDropdownMenu:n,disabled:t=!1,...l}=e,u=eK(eW,n),c=eA(n);return(0,y.jsx)(B,{asChild:!0,...c,children:(0,y.jsx)(i.WV.button,{type:"button",id:u.triggerId,"aria-haspopup":"menu","aria-expanded":u.open,"aria-controls":u.open?u.contentId:void 0,"data-state":u.open?"open":"closed","data-disabled":t?"":void 0,disabled:t,...l,ref:(0,a.F)(r,u.triggerRef),onPointerDown:(0,o.M)(e.onPointerDown,e=>{t||0!==e.button||!1!==e.ctrlKey||(u.onOpenToggle(),u.open||e.preventDefault())}),onKeyDown:(0,o.M)(e.onKeyDown,e=>{!t&&(["Enter"," "].includes(e.key)&&u.onOpenToggle(),"ArrowDown"===e.key&&u.onOpenChange(!0),["Enter"," ","ArrowDown"].includes(e.key)&&e.preventDefault())})})})});eZ.displayName=eW;var eG=e=>{let{__scopeDropdownMenu:r,...n}=e,t=eA(r);return(0,y.jsx)($,{...t,...n})};eG.displayName="DropdownMenuPortal";var eU="DropdownMenuContent",eB=t.forwardRef((e,r)=>{let{__scopeDropdownMenu:n,...a}=e,l=eK(eU,n),u=eA(n),i=t.useRef(!1);return(0,y.jsx)(Q,{id:l.contentId,"aria-labelledby":l.triggerId,...u,...a,ref:r,onCloseAutoFocus:(0,o.M)(e.onCloseAutoFocus,e=>{i.current||l.triggerRef.current?.focus(),i.current=!1,e.preventDefault()}),onInteractOutside:(0,o.M)(e.onInteractOutside,e=>{let r=e.detail.originalEvent,n=0===r.button&&!0===r.ctrlKey,t=2===r.button||n;(!l.modal||t)&&(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)"}})});eB.displayName=eU;var ez=t.forwardRef((e,r)=>{let{__scopeDropdownMenu:n,...t}=e,o=eA(n);return(0,y.jsx)(et,{...o,...t,ref:r})});ez.displayName="DropdownMenuGroup";var eH=t.forwardRef((e,r)=>{let{__scopeDropdownMenu:n,...t}=e,o=eA(n);return(0,y.jsx)(eo,{...o,...t,ref:r})});eH.displayName="DropdownMenuLabel";var eX=t.forwardRef((e,r)=>{let{__scopeDropdownMenu:n,...t}=e,o=eA(n);return(0,y.jsx)(eu,{...o,...t,ref:r})});eX.displayName="DropdownMenuItem";var e$=t.forwardRef((e,r)=>{let{__scopeDropdownMenu:n,...t}=e,o=eA(n);return(0,y.jsx)(ec,{...o,...t,ref:r})});e$.displayName="DropdownMenuCheckboxItem";var eY=t.forwardRef((e,r)=>{let{__scopeDropdownMenu:n,...t}=e,o=eA(n);return(0,y.jsx)(ef,{...o,...t,ref:r})});eY.displayName="DropdownMenuRadioGroup";var eq=t.forwardRef((e,r)=>{let{__scopeDropdownMenu:n,...t}=e,o=eA(n);return(0,y.jsx)(eh,{...o,...t,ref:r})});eq.displayName="DropdownMenuRadioItem";var eJ=t.forwardRef((e,r)=>{let{__scopeDropdownMenu:n,...t}=e,o=eA(n);return(0,y.jsx)(ey,{...o,...t,ref:r})});eJ.displayName="DropdownMenuItemIndicator";var eQ=t.forwardRef((e,r)=>{let{__scopeDropdownMenu:n,...t}=e,o=eA(n);return(0,y.jsx)(ex,{...o,...t,ref:r})});eQ.displayName="DropdownMenuSeparator",t.forwardRef((e,r)=>{let{__scopeDropdownMenu:n,...t}=e,o=eA(n);return(0,y.jsx)(eM,{...o,...t,ref:r})}).displayName="DropdownMenuArrow";var e0=t.forwardRef((e,r)=>{let{__scopeDropdownMenu:n,...t}=e,o=eA(n);return(0,y.jsx)(eD,{...o,...t,ref:r})});e0.displayName="DropdownMenuSubTrigger";var e1=t.forwardRef((e,r)=>{let{__scopeDropdownMenu:n,...t}=e,o=eA(n);return(0,y.jsx)(eE,{...o,...t,ref:r,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)"}})});e1.displayName="DropdownMenuSubContent";var e2=eV,e3=eZ,e7=eG,e4=eB,e5=ez,e8=eH,e9=eX,e6=e$,re=eY,rr=eq,rn=eJ,rt=eQ,ro=e=>{let{__scopeDropdownMenu:r,children:n,open:t,onOpenChange:o,defaultOpen:a}=e,l=eA(r),[i=!1,c]=(0,u.T)({prop:t,defaultProp:a,onChange:o});return(0,y.jsx)(ej,{...l,open:i,onOpenChange:c,children:n})},ra=e0,rl=e1},83089:(e,r,n)=>{n.d(r,{ck:()=>P,fC:()=>E,Pc:()=>x});var t=n(9885),o=n(32840),a=n(86981),l=n(80880),u=n(60080),i=n(76529),c=n(21484),s=n(32285),d=n(43408),p=n(73994),f="rovingFocusGroup.onEntryFocus",v={bubbles:!1,cancelable:!0},h="RovingFocusGroup",[m,g,w]=(0,a.B)(h),[y,x]=function(e,r=[]){let n=[],o=()=>{let r=n.map(e=>t.createContext(e));return function(n){let o=n?.[e]||r;return t.useMemo(()=>({[`__scope${e}`]:{...n,[e]:o}}),[n,o])}};return o.scopeName=e,[function(r,o){let a=t.createContext(o),l=n.length;function i(r){let{scope:n,children:o,...i}=r,c=n?.[e][l]||a,s=t.useMemo(()=>i,Object.values(i));return(0,u.jsx)(c.Provider,{value:s,children:o})}return n=[...n,o],i.displayName=r+"Provider",[i,function(n,u){let i=u?.[e][l]||a,c=t.useContext(i);if(c)return c;if(void 0!==o)return o;throw Error(`\`${n}\` must be used within \`${r}\``)}]},function(...e){let r=e[0];if(1===e.length)return r;let n=()=>{let n=e.map(e=>({useScope:e(),scopeName:e.scopeName}));return function(e){let o=n.reduce((r,{useScope:n,scopeName:t})=>{let o=n(e),a=o[`__scope${t}`];return{...r,...a}},{});return t.useMemo(()=>({[`__scope${r.scopeName}`]:o}),[o])}};return n.scopeName=r.scopeName,n}(o,...r)]}(h,[w]),[M,C]=y(h),b=t.forwardRef((e,r)=>(0,u.jsx)(m.Provider,{scope:e.__scopeRovingFocusGroup,children:(0,u.jsx)(m.Slot,{scope:e.__scopeRovingFocusGroup,children:(0,u.jsx)(R,{...e,ref:r})})}));b.displayName=h;var R=t.forwardRef((e,r)=>{let{__scopeRovingFocusGroup:n,orientation:a,loop:i=!1,dir:h,currentTabStopId:m,defaultCurrentTabStopId:w,onCurrentTabStopIdChange:y,onEntryFocus:x,preventScrollOnEntryFocus:C=!1,...b}=e,R=t.useRef(null),j=(0,l.e)(r,R),k=(0,p.gm)(h),[D=null,E]=(0,d.T)({prop:m,defaultProp:w,onChange:y}),[P,I]=t.useState(!1),T=(0,s.W)(x),N=g(n),S=t.useRef(!1),[F,O]=t.useState(0);return t.useEffect(()=>{let e=R.current;if(e)return e.addEventListener(f,T),()=>e.removeEventListener(f,T)},[T]),(0,u.jsx)(M,{scope:n,orientation:a,dir:k,loop:i,currentTabStopId:D,onItemFocus:t.useCallback(e=>E(e),[E]),onItemShiftTab:t.useCallback(()=>I(!0),[]),onFocusableItemAdd:t.useCallback(()=>O(e=>e+1),[]),onFocusableItemRemove:t.useCallback(()=>O(e=>e-1),[]),children:(0,u.jsx)(c.WV.div,{tabIndex:P||0===F?-1:0,"data-orientation":a,...b,ref:j,style:{outline:"none",...e.style},onMouseDown:(0,o.M)(e.onMouseDown,()=>{S.current=!0}),onFocus:(0,o.M)(e.onFocus,e=>{let r=!S.current;if(e.target===e.currentTarget&&r&&!P){let r=new CustomEvent(f,v);if(e.currentTarget.dispatchEvent(r),!r.defaultPrevented){let e=N().filter(e=>e.focusable),r=e.find(e=>e.active),n=e.find(e=>e.id===D),t=[r,n,...e].filter(Boolean),o=t.map(e=>e.ref.current);_(o,C)}}S.current=!1}),onBlur:(0,o.M)(e.onBlur,()=>I(!1))})})}),j="RovingFocusGroupItem",k=t.forwardRef((e,r)=>{let{__scopeRovingFocusGroup:n,focusable:a=!0,active:l=!1,tabStopId:s,...d}=e,p=(0,i.M)(),f=s||p,v=C(j,n),h=v.currentTabStopId===f,w=g(n),{onFocusableItemAdd:y,onFocusableItemRemove:x}=v;return t.useEffect(()=>{if(a)return y(),()=>x()},[a,y,x]),(0,u.jsx)(m.ItemSlot,{scope:n,id:f,focusable:a,active:l,children:(0,u.jsx)(c.WV.span,{tabIndex:h?0:-1,"data-orientation":v.orientation,...d,ref:r,onMouseDown:(0,o.M)(e.onMouseDown,e=>{a?v.onItemFocus(f):e.preventDefault()}),onFocus:(0,o.M)(e.onFocus,()=>v.onItemFocus(f)),onKeyDown:(0,o.M)(e.onKeyDown,e=>{if("Tab"===e.key&&e.shiftKey){v.onItemShiftTab();return}if(e.target!==e.currentTarget)return;let r=function(e,r,n){var t;let o=(t=e.key,"rtl"!==n?t:"ArrowLeft"===t?"ArrowRight":"ArrowRight"===t?"ArrowLeft":t);if(!("vertical"===r&&["ArrowLeft","ArrowRight"].includes(o))&&!("horizontal"===r&&["ArrowUp","ArrowDown"].includes(o)))return D[o]}(e,v.orientation,v.dir);if(void 0!==r){if(e.metaKey||e.ctrlKey||e.altKey||e.shiftKey)return;e.preventDefault();let n=w().filter(e=>e.focusable),t=n.map(e=>e.ref.current);if("last"===r)t.reverse();else if("prev"===r||"next"===r){"prev"===r&&t.reverse();let n=t.indexOf(e.currentTarget);t=v.loop?function(e,r){return e.map((n,t)=>e[(r+t)%e.length])}(t,n+1):t.slice(n+1)}setTimeout(()=>_(t))}})})})});k.displayName=j;var D={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function _(e,r=!1){let n=document.activeElement;for(let t of e)if(t===n||(t.focus({preventScroll:r}),document.activeElement!==n))return}var E=b,P=k}};