OwlCyberSecurity - MANAGER
Edit File: 5176-ee004c1792da33da.js
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5176],{84772:function(e,n){var t;!function(){"use strict";var r={}.hasOwnProperty;function o(){for(var e=[],n=0;n<arguments.length;n++){var t=arguments[n];if(t){var a=typeof t;if("string"===a||"number"===a)e.push(t);else if(Array.isArray(t)){if(t.length){var l=o.apply(null,t);l&&e.push(l)}}else if("object"===a){if(t.toString!==Object.prototype.toString&&!t.toString.toString().includes("[native code]")){e.push(t.toString());continue}for(var u in t)r.call(t,u)&&t[u]&&e.push(u)}}}return e.join(" ")}e.exports?(o.default=o,e.exports=o):void 0!==(t=(function(){return o}).apply(n,[]))&&(e.exports=t)}()},10407:function(e,n,t){"use strict";t.d(n,{Z:function(){return r}});let r=(0,t(39763).Z)("ChevronRight",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]])},40519:function(e,n,t){"use strict";t.d(n,{Z:function(){return r}});let r=(0,t(39763).Z)("Circle",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]])},56266:function(e,n,t){"use strict";t.d(n,{Z:function(){return r}});let r=(0,t(39763).Z)("MoreHorizontal",[["circle",{cx:"12",cy:"12",r:"1",key:"41hilf"}],["circle",{cx:"19",cy:"12",r:"1",key:"1wjl8i"}],["circle",{cx:"5",cy:"12",r:"1",key:"1pcz8c"}]])},81523:function(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),Object.defineProperty(n,"BailoutToCSR",{enumerable:!0,get:function(){return o}});let r=t(18993);function o(e){let{reason:n,children:t}=e;if("undefined"==typeof window)throw new r.BailoutToCSRError(n);return t}},70049:function(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),Object.defineProperty(n,"PreloadCss",{enumerable:!0,get:function(){return a}});let r=t(57437),o=t(20544);function a(e){let{moduleIds:n}=e;if("undefined"!=typeof window)return null;let t=(0,o.getExpectedRequestStore)("next/dynamic css"),a=[];if(t.reactLoadableManifest&&n){let e=t.reactLoadableManifest;for(let t of n){if(!e[t])continue;let n=e[t].files.filter(e=>e.endsWith(".css"));a.push(...n)}}return 0===a.length?null:(0,r.jsx)(r.Fragment,{children:a.map(e=>(0,r.jsx)("link",{precedence:"dynamic",rel:"stylesheet",href:t.assetPrefix+"/_next/"+encodeURI(e),as:"style"},e))})}},12465:function(e,n,t){"use strict";t.d(n,{oC:function(){return na},VY:function(){return nn},ZA:function(){return nt},ck:function(){return no},wU:function(){return nc},__:function(){return nr},Uv:function(){return ne},Ee:function(){return nl},Rk:function(){return nu},fC:function(){return e3},Z0:function(){return ni},Tr:function(){return nd},tu:function(){return nf},fF:function(){return ns},xz:function(){return e4}});var r=t(1119),o=t(2265),a=t(6741),l=t(98575),u=t(73966),c=t(80886),i=t(82912),d=t(71605),s=t(29114),f=t(15278),p=t(86097),m=t(99103),v=t(99255),g=t(26008),h=t(83832),w=t(71599),E=t(26606);let M="rovingFocusGroup.onEntryFocus",_={bubbles:!1,cancelable:!0},b="RovingFocusGroup",[y,C,R]=(0,d.B)(b),[D,k]=(0,u.b)(b,[R]),[x,P]=D(b),I=(0,o.forwardRef)((e,n)=>(0,o.createElement)(y.Provider,{scope:e.__scopeRovingFocusGroup},(0,o.createElement)(y.Slot,{scope:e.__scopeRovingFocusGroup},(0,o.createElement)(O,(0,r.Z)({},e,{ref:n}))))),O=(0,o.forwardRef)((e,n)=>{let{__scopeRovingFocusGroup:t,orientation:u,loop:d=!1,dir:f,currentTabStopId:p,defaultCurrentTabStopId:m,onCurrentTabStopIdChange:v,onEntryFocus:g,...h}=e,w=(0,o.useRef)(null),b=(0,l.e)(n,w),y=(0,s.gm)(f),[R=null,D]=(0,c.T)({prop:p,defaultProp:m,onChange:v}),[k,P]=(0,o.useState)(!1),I=(0,E.W)(g),O=C(t),Z=(0,o.useRef)(!1),[F,S]=(0,o.useState)(0);return(0,o.useEffect)(()=>{let e=w.current;if(e)return e.addEventListener(M,I),()=>e.removeEventListener(M,I)},[I]),(0,o.createElement)(x,{scope:t,orientation:u,dir:y,loop:d,currentTabStopId:R,onItemFocus:(0,o.useCallback)(e=>D(e),[D]),onItemShiftTab:(0,o.useCallback)(()=>P(!0),[]),onFocusableItemAdd:(0,o.useCallback)(()=>S(e=>e+1),[]),onFocusableItemRemove:(0,o.useCallback)(()=>S(e=>e-1),[])},(0,o.createElement)(i.WV.div,(0,r.Z)({tabIndex:k||0===F?-1:0,"data-orientation":u},h,{ref:b,style:{outline:"none",...e.style},onMouseDown:(0,a.M)(e.onMouseDown,()=>{Z.current=!0}),onFocus:(0,a.M)(e.onFocus,e=>{let n=!Z.current;if(e.target===e.currentTarget&&n&&!k){let n=new CustomEvent(M,_);if(e.currentTarget.dispatchEvent(n),!n.defaultPrevented){let e=O().filter(e=>e.focusable);T([e.find(e=>e.active),e.find(e=>e.id===R),...e].filter(Boolean).map(e=>e.ref.current))}}Z.current=!1}),onBlur:(0,a.M)(e.onBlur,()=>P(!1))})))}),Z=(0,o.forwardRef)((e,n)=>{let{__scopeRovingFocusGroup:t,focusable:l=!0,active:u=!1,tabStopId:c,...d}=e,s=(0,v.M)(),f=c||s,p=P("RovingFocusGroupItem",t),m=p.currentTabStopId===f,g=C(t),{onFocusableItemAdd:h,onFocusableItemRemove:w}=p;return(0,o.useEffect)(()=>{if(l)return h(),()=>w()},[l,h,w]),(0,o.createElement)(y.ItemSlot,{scope:t,id:f,focusable:l,active:u},(0,o.createElement)(i.WV.span,(0,r.Z)({tabIndex:m?0:-1,"data-orientation":p.orientation},d,{ref:n,onMouseDown:(0,a.M)(e.onMouseDown,e=>{l?p.onItemFocus(f):e.preventDefault()}),onFocus:(0,a.M)(e.onFocus,()=>p.onItemFocus(f)),onKeyDown:(0,a.M)(e.onKeyDown,e=>{if("Tab"===e.key&&e.shiftKey){p.onItemShiftTab();return}if(e.target!==e.currentTarget)return;let n=function(e,n,t){var r;let o=(r=e.key,"rtl"!==t?r:"ArrowLeft"===r?"ArrowRight":"ArrowRight"===r?"ArrowLeft":r);if(!("vertical"===n&&["ArrowLeft","ArrowRight"].includes(o))&&!("horizontal"===n&&["ArrowUp","ArrowDown"].includes(o)))return F[o]}(e,p.orientation,p.dir);if(void 0!==n){e.preventDefault();let o=g().filter(e=>e.focusable).map(e=>e.ref.current);if("last"===n)o.reverse();else if("prev"===n||"next"===n){var t,r;"prev"===n&&o.reverse();let a=o.indexOf(e.currentTarget);o=p.loop?(t=o,r=a+1,t.map((e,n)=>t[(r+n)%t.length])):o.slice(a+1)}setTimeout(()=>T(o))}})})))}),F={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function T(e){let n=document.activeElement;for(let t of e)if(t===n||(t.focus(),document.activeElement!==n))return}let S=(0,o.forwardRef)((e,n)=>{let{children:t,...a}=e,l=o.Children.toArray(t),u=l.find(K);if(u){let e=u.props.children,t=l.map(n=>n!==u?n:o.Children.count(e)>1?o.Children.only(null):(0,o.isValidElement)(e)?e.props.children:null);return(0,o.createElement)(A,(0,r.Z)({},a,{ref:n}),(0,o.isValidElement)(e)?(0,o.cloneElement)(e,void 0,t):null)}return(0,o.createElement)(A,(0,r.Z)({},a,{ref:n}),t)});S.displayName="Slot";let A=(0,o.forwardRef)((e,n)=>{let{children:t,...r}=e;return(0,o.isValidElement)(t)?(0,o.cloneElement)(t,{...function(e,n){let t={...n};for(let r in n){let o=e[r],a=n[r];/^on[A-Z]/.test(r)?o&&a?t[r]=(...e)=>{a(...e),o(...e)}:o&&(t[r]=o):"style"===r?t[r]={...o,...a}:"className"===r&&(t[r]=[o,a].filter(Boolean).join(" "))}return{...e,...t}}(r,t.props),ref:n?(0,l.F)(n,t.ref):t.ref}):o.Children.count(t)>1?o.Children.only(null):null});A.displayName="SlotClone";let L=({children:e})=>(0,o.createElement)(o.Fragment,null,e);function K(e){return(0,o.isValidElement)(e)&&e.type===L}var V=t(5478),G=t(99157);let W=["Enter"," "],B=["ArrowUp","PageDown","End"],U=["ArrowDown","PageUp","Home",...B],j={ltr:[...W,"ArrowRight"],rtl:[...W,"ArrowLeft"]},z={ltr:["ArrowLeft"],rtl:["ArrowRight"]},X="Menu",[N,H,Y]=(0,d.B)(X),[q,J]=(0,u.b)(X,[Y,g.D7,k]),Q=(0,g.D7)(),$=k(),[ee,en]=q(X),[et,er]=q(X),eo=(0,o.forwardRef)((e,n)=>{let{__scopeMenu:t,...a}=e,l=Q(t);return(0,o.createElement)(g.ee,(0,r.Z)({},l,a,{ref:n}))}),ea="MenuPortal",[el,eu]=q(ea,{forceMount:void 0}),ec="MenuContent",[ei,ed]=q(ec),es=(0,o.forwardRef)((e,n)=>{let t=eu(ec,e.__scopeMenu),{forceMount:a=t.forceMount,...l}=e,u=en(ec,e.__scopeMenu),c=er(ec,e.__scopeMenu);return(0,o.createElement)(N.Provider,{scope:e.__scopeMenu},(0,o.createElement)(w.z,{present:a||u.open},(0,o.createElement)(N.Slot,{scope:e.__scopeMenu},c.modal?(0,o.createElement)(ef,(0,r.Z)({},l,{ref:n})):(0,o.createElement)(ep,(0,r.Z)({},l,{ref:n})))))}),ef=(0,o.forwardRef)((e,n)=>{let t=en(ec,e.__scopeMenu),u=(0,o.useRef)(null),c=(0,l.e)(n,u);return(0,o.useEffect)(()=>{let e=u.current;if(e)return(0,V.Ry)(e)},[]),(0,o.createElement)(em,(0,r.Z)({},e,{ref:c,trapFocus:t.open,disableOutsidePointerEvents:t.open,disableOutsideScroll:!0,onFocusOutside:(0,a.M)(e.onFocusOutside,e=>e.preventDefault(),{checkForDefaultPrevented:!1}),onDismiss:()=>t.onOpenChange(!1)}))}),ep=(0,o.forwardRef)((e,n)=>{let t=en(ec,e.__scopeMenu);return(0,o.createElement)(em,(0,r.Z)({},e,{ref:n,trapFocus:!1,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,onDismiss:()=>t.onOpenChange(!1)}))}),em=(0,o.forwardRef)((e,n)=>{let{__scopeMenu:t,loop:u=!1,trapFocus:c,onOpenAutoFocus:i,onCloseAutoFocus:d,disableOutsidePointerEvents:s,onEntryFocus:v,onEscapeKeyDown:h,onPointerDownOutside:w,onFocusOutside:E,onInteractOutside:M,onDismiss:_,disableOutsideScroll:b,...y}=e,C=en(ec,t),R=er(ec,t),D=Q(t),k=$(t),x=H(t),[P,O]=(0,o.useState)(null),Z=(0,o.useRef)(null),F=(0,l.e)(n,Z,C.onContentChange),T=(0,o.useRef)(0),A=(0,o.useRef)(""),L=(0,o.useRef)(0),K=(0,o.useRef)(null),V=(0,o.useRef)("right"),W=(0,o.useRef)(0),j=b?G.Z:o.Fragment,z=e=>{var n,t;let r=A.current+e,o=x().filter(e=>!e.disabled),a=document.activeElement,l=null===(n=o.find(e=>e.ref.current===a))||void 0===n?void 0:n.textValue,u=function(e,n,t){var r;let o=n.length>1&&Array.from(n).every(e=>e===n[0])?n[0]:n,a=(r=Math.max(t?e.indexOf(t):-1,0),e.map((n,t)=>e[(r+t)%e.length]));1===o.length&&(a=a.filter(e=>e!==t));let l=a.find(e=>e.toLowerCase().startsWith(o.toLowerCase()));return l!==t?l:void 0}(o.map(e=>e.textValue),r,l),c=null===(t=o.find(e=>e.textValue===u))||void 0===t?void 0:t.ref.current;!function e(n){A.current=n,window.clearTimeout(T.current),""!==n&&(T.current=window.setTimeout(()=>e(""),1e3))}(r),c&&setTimeout(()=>c.focus())};(0,o.useEffect)(()=>()=>window.clearTimeout(T.current),[]),(0,p.EW)();let X=(0,o.useCallback)(e=>{var n,t,r;return V.current===(null===(n=K.current)||void 0===n?void 0:n.side)&&!!(r=null===(t=K.current)||void 0===t?void 0:t.area)&&function(e,n){let{x:t,y:r}=e,o=!1;for(let e=0,a=n.length-1;e<n.length;a=e++){let l=n[e].x,u=n[e].y,c=n[a].x,i=n[a].y;u>r!=i>r&&t<(c-l)*(r-u)/(i-u)+l&&(o=!o)}return o}({x:e.clientX,y:e.clientY},r)},[]);return(0,o.createElement)(ei,{scope:t,searchRef:A,onItemEnter:(0,o.useCallback)(e=>{X(e)&&e.preventDefault()},[X]),onItemLeave:(0,o.useCallback)(e=>{var n;X(e)||(null===(n=Z.current)||void 0===n||n.focus(),O(null))},[X]),onTriggerLeave:(0,o.useCallback)(e=>{X(e)&&e.preventDefault()},[X]),pointerGraceTimerRef:L,onPointerGraceIntentChange:(0,o.useCallback)(e=>{K.current=e},[])},(0,o.createElement)(j,b?{as:S,allowPinchZoom:!0}:void 0,(0,o.createElement)(m.M,{asChild:!0,trapped:c,onMountAutoFocus:(0,a.M)(i,e=>{var n;e.preventDefault(),null===(n=Z.current)||void 0===n||n.focus()}),onUnmountAutoFocus:d},(0,o.createElement)(f.XB,{asChild:!0,disableOutsidePointerEvents:s,onEscapeKeyDown:h,onPointerDownOutside:w,onFocusOutside:E,onInteractOutside:M,onDismiss:_},(0,o.createElement)(I,(0,r.Z)({asChild:!0},k,{dir:R.dir,orientation:"vertical",loop:u,currentTabStopId:P,onCurrentTabStopIdChange:O,onEntryFocus:(0,a.M)(v,e=>{R.isUsingKeyboardRef.current||e.preventDefault()})}),(0,o.createElement)(g.VY,(0,r.Z)({role:"menu","aria-orientation":"vertical","data-state":eL(C.open),"data-radix-menu-content":"",dir:R.dir},D,y,{ref:F,style:{outline:"none",...y.style},onKeyDown:(0,a.M)(y.onKeyDown,e=>{let n=e.target.closest("[data-radix-menu-content]")===e.currentTarget,t=e.ctrlKey||e.altKey||e.metaKey,r=1===e.key.length;n&&("Tab"===e.key&&e.preventDefault(),!t&&r&&z(e.key));let o=Z.current;if(e.target!==o||!U.includes(e.key))return;e.preventDefault();let a=x().filter(e=>!e.disabled).map(e=>e.ref.current);B.includes(e.key)&&a.reverse(),function(e){let n=document.activeElement;for(let t of e)if(t===n||(t.focus(),document.activeElement!==n))return}(a)}),onBlur:(0,a.M)(e.onBlur,e=>{e.currentTarget.contains(e.target)||(window.clearTimeout(T.current),A.current="")}),onPointerMove:(0,a.M)(e.onPointerMove,eG(e=>{let n=e.target,t=W.current!==e.clientX;if(e.currentTarget.contains(n)&&t){let n=e.clientX>W.current?"right":"left";V.current=n,W.current=e.clientX}}))})))))))}),ev=(0,o.forwardRef)((e,n)=>{let{__scopeMenu:t,...a}=e;return(0,o.createElement)(i.WV.div,(0,r.Z)({role:"group"},a,{ref:n}))}),eg=(0,o.forwardRef)((e,n)=>{let{__scopeMenu:t,...a}=e;return(0,o.createElement)(i.WV.div,(0,r.Z)({},a,{ref:n}))}),eh="MenuItem",ew="menu.itemSelect",eE=(0,o.forwardRef)((e,n)=>{let{disabled:t=!1,onSelect:u,...c}=e,d=(0,o.useRef)(null),s=er(eh,e.__scopeMenu),f=ed(eh,e.__scopeMenu),p=(0,l.e)(n,d),m=(0,o.useRef)(!1);return(0,o.createElement)(eM,(0,r.Z)({},c,{ref:p,disabled:t,onClick:(0,a.M)(e.onClick,()=>{let e=d.current;if(!t&&e){let n=new CustomEvent(ew,{bubbles:!0,cancelable:!0});e.addEventListener(ew,e=>null==u?void 0:u(e),{once:!0}),(0,i.jH)(e,n),n.defaultPrevented?m.current=!1:s.onClose()}}),onPointerDown:n=>{var t;null===(t=e.onPointerDown)||void 0===t||t.call(e,n),m.current=!0},onPointerUp:(0,a.M)(e.onPointerUp,e=>{var n;m.current||null===(n=e.currentTarget)||void 0===n||n.click()}),onKeyDown:(0,a.M)(e.onKeyDown,e=>{let n=""!==f.searchRef.current;!t&&(!n||" "!==e.key)&&W.includes(e.key)&&(e.currentTarget.click(),e.preventDefault())})}))}),eM=(0,o.forwardRef)((e,n)=>{let{__scopeMenu:t,disabled:u=!1,textValue:c,...d}=e,s=ed(eh,t),f=$(t),p=(0,o.useRef)(null),m=(0,l.e)(n,p),[v,g]=(0,o.useState)(!1),[h,w]=(0,o.useState)("");return(0,o.useEffect)(()=>{let e=p.current;if(e){var n;w((null!==(n=e.textContent)&&void 0!==n?n:"").trim())}},[d.children]),(0,o.createElement)(N.ItemSlot,{scope:t,disabled:u,textValue:null!=c?c:h},(0,o.createElement)(Z,(0,r.Z)({asChild:!0},f,{focusable:!u}),(0,o.createElement)(i.WV.div,(0,r.Z)({role:"menuitem","data-highlighted":v?"":void 0,"aria-disabled":u||void 0,"data-disabled":u?"":void 0},d,{ref:m,onPointerMove:(0,a.M)(e.onPointerMove,eG(e=>{u?s.onItemLeave(e):(s.onItemEnter(e),e.defaultPrevented||e.currentTarget.focus())})),onPointerLeave:(0,a.M)(e.onPointerLeave,eG(e=>s.onItemLeave(e))),onFocus:(0,a.M)(e.onFocus,()=>g(!0)),onBlur:(0,a.M)(e.onBlur,()=>g(!1))}))))}),e_=(0,o.forwardRef)((e,n)=>{let{checked:t=!1,onCheckedChange:l,...u}=e;return(0,o.createElement)(ek,{scope:e.__scopeMenu,checked:t},(0,o.createElement)(eE,(0,r.Z)({role:"menuitemcheckbox","aria-checked":eK(t)?"mixed":t},u,{ref:n,"data-state":eV(t),onSelect:(0,a.M)(u.onSelect,()=>null==l?void 0:l(!!eK(t)||!t),{checkForDefaultPrevented:!1})})))}),[eb,ey]=q("MenuRadioGroup",{value:void 0,onValueChange:()=>{}}),eC=(0,o.forwardRef)((e,n)=>{let{value:t,onValueChange:a,...l}=e,u=(0,E.W)(a);return(0,o.createElement)(eb,{scope:e.__scopeMenu,value:t,onValueChange:u},(0,o.createElement)(ev,(0,r.Z)({},l,{ref:n})))}),eR=(0,o.forwardRef)((e,n)=>{let{value:t,...l}=e,u=ey("MenuRadioItem",e.__scopeMenu),c=t===u.value;return(0,o.createElement)(ek,{scope:e.__scopeMenu,checked:c},(0,o.createElement)(eE,(0,r.Z)({role:"menuitemradio","aria-checked":c},l,{ref:n,"data-state":eV(c),onSelect:(0,a.M)(l.onSelect,()=>{var e;return null===(e=u.onValueChange)||void 0===e?void 0:e.call(u,t)},{checkForDefaultPrevented:!1})})))}),eD="MenuItemIndicator",[ek,ex]=q(eD,{checked:!1}),eP=(0,o.forwardRef)((e,n)=>{let{__scopeMenu:t,forceMount:a,...l}=e,u=ex(eD,t);return(0,o.createElement)(w.z,{present:a||eK(u.checked)||!0===u.checked},(0,o.createElement)(i.WV.span,(0,r.Z)({},l,{ref:n,"data-state":eV(u.checked)})))}),eI=(0,o.forwardRef)((e,n)=>{let{__scopeMenu:t,...a}=e;return(0,o.createElement)(i.WV.div,(0,r.Z)({role:"separator","aria-orientation":"horizontal"},a,{ref:n}))}),eO=((e,n)=>{let{__scopeMenu:t,...a}=e,l=Q(t);return(0,o.createElement)(g.Eh,(0,r.Z)({},l,a,{ref:n}))},"MenuSub"),[eZ,eF]=q(eO),eT="MenuSubTrigger",eS=(0,o.forwardRef)((e,n)=>{let t=en(eT,e.__scopeMenu),u=er(eT,e.__scopeMenu),c=eF(eT,e.__scopeMenu),i=ed(eT,e.__scopeMenu),d=(0,o.useRef)(null),{pointerGraceTimerRef:s,onPointerGraceIntentChange:f}=i,p={__scopeMenu:e.__scopeMenu},m=(0,o.useCallback)(()=>{d.current&&window.clearTimeout(d.current),d.current=null},[]);return(0,o.useEffect)(()=>m,[m]),(0,o.useEffect)(()=>{let e=s.current;return()=>{window.clearTimeout(e),f(null)}},[s,f]),(0,o.createElement)(eo,(0,r.Z)({asChild:!0},p),(0,o.createElement)(eM,(0,r.Z)({id:c.triggerId,"aria-haspopup":"menu","aria-expanded":t.open,"aria-controls":c.contentId,"data-state":eL(t.open)},e,{ref:(0,l.F)(n,c.onTriggerChange),onClick:n=>{var r;null===(r=e.onClick)||void 0===r||r.call(e,n),e.disabled||n.defaultPrevented||(n.currentTarget.focus(),t.open||t.onOpenChange(!0))},onPointerMove:(0,a.M)(e.onPointerMove,eG(n=>{i.onItemEnter(n),n.defaultPrevented||e.disabled||t.open||d.current||(i.onPointerGraceIntentChange(null),d.current=window.setTimeout(()=>{t.onOpenChange(!0),m()},100))})),onPointerLeave:(0,a.M)(e.onPointerLeave,eG(e=>{var n,r;m();let o=null===(n=t.content)||void 0===n?void 0:n.getBoundingClientRect();if(o){let n=null===(r=t.content)||void 0===r?void 0:r.dataset.side,a="right"===n,l=o[a?"left":"right"],u=o[a?"right":"left"];i.onPointerGraceIntentChange({area:[{x:e.clientX+(a?-5:5),y:e.clientY},{x:l,y:o.top},{x:u,y:o.top},{x:u,y:o.bottom},{x:l,y:o.bottom}],side:n}),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,a.M)(e.onKeyDown,n=>{let r=""!==i.searchRef.current;if(!e.disabled&&(!r||" "!==n.key)&&j[u.dir].includes(n.key)){var o;t.onOpenChange(!0),null===(o=t.content)||void 0===o||o.focus(),n.preventDefault()}})})))}),eA=(0,o.forwardRef)((e,n)=>{let t=eu(ec,e.__scopeMenu),{forceMount:u=t.forceMount,...c}=e,i=en(ec,e.__scopeMenu),d=er(ec,e.__scopeMenu),s=eF("MenuSubContent",e.__scopeMenu),f=(0,o.useRef)(null),p=(0,l.e)(n,f);return(0,o.createElement)(N.Provider,{scope:e.__scopeMenu},(0,o.createElement)(w.z,{present:u||i.open},(0,o.createElement)(N.Slot,{scope:e.__scopeMenu},(0,o.createElement)(em,(0,r.Z)({id:s.contentId,"aria-labelledby":s.triggerId},c,{ref:p,align:"start",side:"rtl"===d.dir?"left":"right",disableOutsidePointerEvents:!1,disableOutsideScroll:!1,trapFocus:!1,onOpenAutoFocus:e=>{var n;d.isUsingKeyboardRef.current&&(null===(n=f.current)||void 0===n||n.focus()),e.preventDefault()},onCloseAutoFocus:e=>e.preventDefault(),onFocusOutside:(0,a.M)(e.onFocusOutside,e=>{e.target!==s.trigger&&i.onOpenChange(!1)}),onEscapeKeyDown:(0,a.M)(e.onEscapeKeyDown,e=>{d.onClose(),e.preventDefault()}),onKeyDown:(0,a.M)(e.onKeyDown,e=>{let n=e.currentTarget.contains(e.target),t=z[d.dir].includes(e.key);if(n&&t){var r;i.onOpenChange(!1),null===(r=s.trigger)||void 0===r||r.focus(),e.preventDefault()}})})))))});function eL(e){return e?"open":"closed"}function eK(e){return"indeterminate"===e}function eV(e){return eK(e)?"indeterminate":e?"checked":"unchecked"}function eG(e){return n=>"mouse"===n.pointerType?e(n):void 0}let eW=e=>{let{__scopeMenu:n,open:t=!1,children:r,dir:a,onOpenChange:l,modal:u=!0}=e,c=Q(n),[i,d]=(0,o.useState)(null),f=(0,o.useRef)(!1),p=(0,E.W)(l),m=(0,s.gm)(a);return(0,o.useEffect)(()=>{let e=()=>{f.current=!0,document.addEventListener("pointerdown",n,{capture:!0,once:!0}),document.addEventListener("pointermove",n,{capture:!0,once:!0})},n=()=>f.current=!1;return document.addEventListener("keydown",e,{capture:!0}),()=>{document.removeEventListener("keydown",e,{capture:!0}),document.removeEventListener("pointerdown",n,{capture:!0}),document.removeEventListener("pointermove",n,{capture:!0})}},[]),(0,o.createElement)(g.fC,c,(0,o.createElement)(ee,{scope:n,open:t,onOpenChange:p,content:i,onContentChange:d},(0,o.createElement)(et,{scope:n,onClose:(0,o.useCallback)(()=>p(!1),[p]),isUsingKeyboardRef:f,dir:m,modal:u},r)))},eB=e=>{let{__scopeMenu:n,forceMount:t,children:r,container:a}=e,l=en(ea,n);return(0,o.createElement)(el,{scope:n,forceMount:t},(0,o.createElement)(w.z,{present:t||l.open},(0,o.createElement)(h.h,{asChild:!0,container:a},r)))},eU=e=>{let{__scopeMenu:n,children:t,open:r=!1,onOpenChange:a}=e,l=en(eO,n),u=Q(n),[c,i]=(0,o.useState)(null),[d,s]=(0,o.useState)(null),f=(0,E.W)(a);return(0,o.useEffect)(()=>(!1===l.open&&f(!1),()=>f(!1)),[l.open,f]),(0,o.createElement)(g.fC,u,(0,o.createElement)(ee,{scope:n,open:r,onOpenChange:f,content:d,onContentChange:s},(0,o.createElement)(eZ,{scope:n,contentId:(0,v.M)(),triggerId:(0,v.M)(),trigger:c,onTriggerChange:i},t)))},ej="DropdownMenu",[ez,eX]=(0,u.b)(ej,[J]),eN=J(),[eH,eY]=ez(ej),eq=(0,o.forwardRef)((e,n)=>{let{__scopeDropdownMenu:t,disabled:u=!1,...c}=e,d=eY("DropdownMenuTrigger",t),s=eN(t);return(0,o.createElement)(eo,(0,r.Z)({asChild:!0},s),(0,o.createElement)(i.WV.button,(0,r.Z)({type:"button",id:d.triggerId,"aria-haspopup":"menu","aria-expanded":d.open,"aria-controls":d.open?d.contentId:void 0,"data-state":d.open?"open":"closed","data-disabled":u?"":void 0,disabled:u},c,{ref:(0,l.F)(n,d.triggerRef),onPointerDown:(0,a.M)(e.onPointerDown,e=>{u||0!==e.button||!1!==e.ctrlKey||(d.onOpenToggle(),d.open||e.preventDefault())}),onKeyDown:(0,a.M)(e.onKeyDown,e=>{!u&&(["Enter"," "].includes(e.key)&&d.onOpenToggle(),"ArrowDown"===e.key&&d.onOpenChange(!0),["Enter"," ","ArrowDown"].includes(e.key)&&e.preventDefault())})})))}),eJ=(0,o.forwardRef)((e,n)=>{let{__scopeDropdownMenu:t,...l}=e,u=eY("DropdownMenuContent",t),c=eN(t),i=(0,o.useRef)(!1);return(0,o.createElement)(es,(0,r.Z)({id:u.contentId,"aria-labelledby":u.triggerId},c,l,{ref:n,onCloseAutoFocus:(0,a.M)(e.onCloseAutoFocus,e=>{var n;i.current||null===(n=u.triggerRef.current)||void 0===n||n.focus(),i.current=!1,e.preventDefault()}),onInteractOutside:(0,a.M)(e.onInteractOutside,e=>{let n=e.detail.originalEvent,t=0===n.button&&!0===n.ctrlKey,r=2===n.button||t;(!u.modal||r)&&(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)"}}))}),eQ=(0,o.forwardRef)((e,n)=>{let{__scopeDropdownMenu:t,...a}=e,l=eN(t);return(0,o.createElement)(ev,(0,r.Z)({},l,a,{ref:n}))}),e$=(0,o.forwardRef)((e,n)=>{let{__scopeDropdownMenu:t,...a}=e,l=eN(t);return(0,o.createElement)(eg,(0,r.Z)({},l,a,{ref:n}))}),e0=(0,o.forwardRef)((e,n)=>{let{__scopeDropdownMenu:t,...a}=e,l=eN(t);return(0,o.createElement)(eE,(0,r.Z)({},l,a,{ref:n}))}),e1=(0,o.forwardRef)((e,n)=>{let{__scopeDropdownMenu:t,...a}=e,l=eN(t);return(0,o.createElement)(e_,(0,r.Z)({},l,a,{ref:n}))}),e6=(0,o.forwardRef)((e,n)=>{let{__scopeDropdownMenu:t,...a}=e,l=eN(t);return(0,o.createElement)(eC,(0,r.Z)({},l,a,{ref:n}))}),e9=(0,o.forwardRef)((e,n)=>{let{__scopeDropdownMenu:t,...a}=e,l=eN(t);return(0,o.createElement)(eR,(0,r.Z)({},l,a,{ref:n}))}),e2=(0,o.forwardRef)((e,n)=>{let{__scopeDropdownMenu:t,...a}=e,l=eN(t);return(0,o.createElement)(eP,(0,r.Z)({},l,a,{ref:n}))}),e7=(0,o.forwardRef)((e,n)=>{let{__scopeDropdownMenu:t,...a}=e,l=eN(t);return(0,o.createElement)(eI,(0,r.Z)({},l,a,{ref:n}))}),e5=(0,o.forwardRef)((e,n)=>{let{__scopeDropdownMenu:t,...a}=e,l=eN(t);return(0,o.createElement)(eS,(0,r.Z)({},l,a,{ref:n}))}),e8=(0,o.forwardRef)((e,n)=>{let{__scopeDropdownMenu:t,...a}=e,l=eN(t);return(0,o.createElement)(eA,(0,r.Z)({},l,a,{ref:n,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)"}}))}),e3=e=>{let{__scopeDropdownMenu:n,children:t,dir:a,open:l,defaultOpen:u,onOpenChange:i,modal:d=!0}=e,s=eN(n),f=(0,o.useRef)(null),[p=!1,m]=(0,c.T)({prop:l,defaultProp:u,onChange:i});return(0,o.createElement)(eH,{scope:n,triggerId:(0,v.M)(),triggerRef:f,contentId:(0,v.M)(),open:p,onOpenChange:m,onOpenToggle:(0,o.useCallback)(()=>m(e=>!e),[m]),modal:d},(0,o.createElement)(eW,(0,r.Z)({},s,{open:p,onOpenChange:m,dir:a,modal:d}),t))},e4=eq,ne=e=>{let{__scopeDropdownMenu:n,...t}=e,a=eN(n);return(0,o.createElement)(eB,(0,r.Z)({},a,t))},nn=eJ,nt=eQ,nr=e$,no=e0,na=e1,nl=e6,nu=e9,nc=e2,ni=e7,nd=e=>{let{__scopeDropdownMenu:n,children:t,open:a,onOpenChange:l,defaultOpen:u}=e,i=eN(n),[d=!1,s]=(0,c.T)({prop:a,defaultProp:u,onChange:l});return(0,o.createElement)(eU,(0,r.Z)({},i,{open:d,onOpenChange:s}),t)},ns=e5,nf=e8}}]);