PageSourceSearch

https://gamercenter.io/_next/static/chunks/3f1d940c292b57f5.js?dpl=dpl_Wz1NwWSUf7vjJm2uc8Wsz2qT93vU

js gamercenter.io collected 2026-10-09 17:40:43 UTC 40,538 bytes, 1 lines download raw bytes

1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,479446,847654,851130,e=>{"use strict";e.s([],479446),e.s(["EmptyState",()=>l],851130);var t=e.i(374210),n=e.i(694059),r=e.i(957496),o=e.i(811101),a=e.i(967904),i=e.i(743148);e.s(["EMPTY_STATE_VARIANT",()=>s],847654);let s={APP_DISABLED:"app-disabled",NOT_SIGNED_IN:"not-signed-in",USER_SEARCH:"user-search",USER_SEARCH_NO_RESULTS:"user-search-no-results",LEET:"leet",BOOKMARKS:"bookmarks",LISTS:"lists",LIST:"list",HOME:"home",NOTIFICATIONS:"notifications",NOT_FOUND:"not-found",NO_REPLIES:"no-replies",PROFILE_NOT_FOUND:"profile-not-found",PROFILE_HAS_NO_LEETS:"profile-has-no-leets",PROFILE_HAS_NO_REPLIES:"profile-has-no-replies",PROFILE_HAS_NO_MEDIA:"profile-has-no-media",PROFILE_HAS_NO_LIKES:"profile-has-no-likes",ERROR:"error",GOODWILL:"goodwill",NO_DATA:"no-data",FOUR_OH_FOUR:"four-oh-four",CANNOT_VIEW:"cannot-view",BANNED_USER:"banned-user",FEATURE_DISABLED:"feature-disabled",EARLY_ACCESS_ONLY:"early-access-only",STREAM_OFFLINE:"stream-offline",STREAMS_NO_TRENDING:"streams-no-trending",NO_CHAT_MESSAGES:"no-chat-messages",CHAT_HIDDEN:"chat-hidden",NO_GAME_STREAMS:"no-game-streams",NO_GAME_CLIPS:"no-game-clips",NO_GAME_COMMUNITY:"no-game-community"};function l(e){let{variant:l,children:c,removePadding:u=!1,fill:d,className:p,title:f,description:m}=e,h=(e=>{switch(e){case s.APP_DISABLED:return{icon:"logo",title:"We are offline",description:"We are currently offline. Please check back later."};case s.NOT_SIGNED_IN:return{icon:"warning",title:"Not signed in",description:"Please sign in to continue."};case s.USER_SEARCH:return{icon:"search",title:"Search for a user",description:"Search for a user by display name or handle."};case s.USER_SEARCH_NO_RESULTS:return{icon:"warning",title:"No users found",description:"Try searching for a different user."};case s.LEET:return{icon:"leet-chat",title:"Beep, boop...",description:"This leet doesn't exist!"};case s.BOOKMARKS:return{icon:"bookmark",title:"No bookmarks yet",description:"When you bookmark a leet, it will appear here."};case s.LISTS:return{icon:"list",title:"No lists yet",description:"You have no lists yet, create one to get started."};case s.LIST:return{icon:"list",title:"You have an empty list",description:"Not much to see here. Add more accounts to your list to get started."};case s.HOME:return{icon:"home",title:"Nothing to see here",description:"Follow others, and create your own leets to get started."};case s.NOTIFICATIONS:return{icon:"notification",title:"No notifications yet",description:"When you receive a notification, it will appear here."};case s.NOT_FOUND:return{icon:"warning",title:"We couldn't find that",description:"It might have been deleted or never existed in the first place!"};case s.NO_REPLIES:return{icon:"reply",title:"No replies yet",description:"Be the first to reply!"};case s.PROFILE_NOT_FOUND:return{icon:"user",title:"Huh...",description:"We couldn't find that profile!"};case s.PROFILE_HAS_NO_LEETS:return{icon:"leet-chat",title:"No leets",description:"Looks like this profile hasn't made any leets."};case s.PROFILE_HAS_NO_REPLIES:return{icon:"reply",title:"No replies",description:"Looks like this profile hasn't made any replies."};case s.PROFILE_HAS_NO_MEDIA:return{icon:"image",title:"No media",description:"Looks like this profile hasn't posted any media."};case s.PROFILE_HAS_NO_LIKES:return{icon:"like",title:"No likes",description:"Looks like this profile hasn't liked any leets."};case s.ERROR:return{icon:"warning",title:"An error occurred",description:"Something went wrong. Please try again later."};case s.GOODWILL:return{icon:"heart",title:"Share Gamer Center",description:"Share Gamer Center with friends and help grow the platform."};case s.NO_DATA:return{icon:"warning",title:"No data",description:"Looks like we didn't find any data."};case s.FOUR_OH_FOUR:return{icon:"warning",title:"Page not found",description:"The page you are looking for does not exist."};case s.CANNOT_VIEW:return{icon:"warning",title:"Blocked content",description:"You are not allowed to view this content."};case s.STREAM_OFFLINE:return{icon:"video",title:"Stream offline",description:"This stream is not live right now."};case s.STREAMS_NO_TRENDING:return{icon:"trending",title:"No trending streams",description:"Looks like no one has managed to get their stream trending yet. A great opportunity to go live!"};case s.FEATURE_DISABLED:return{icon:"warning",title:"Feature disabled",description:"This feature is not enabled. Please check back later."};case s.EARLY_ACCESS_ONLY:return{icon:"warning",title:"Early access only",description:"This feature is currently in early access and only available to early access users."};case s.NO_CHAT_MESSAGES:return{icon:"chat",title:"No chat messages",description:"Drop a message to start the conversation."};case s.CHAT_HIDDEN:return{icon:"chat",title:"Chat hidden",description:"Chat is hidden. Enable it to start chatting."};case s.BANNED_USER:return{icon:"warning",title:"Account banned",description:"This account has been banned from the platform."};case s.NO_GAME_STREAMS:return{icon:"stream-viewer",title:"Not showing streams",description:"We are still working on this feature. Please check back later."};case s.NO_GAME_CLIPS:return{icon:"stream-recordings",title:"Not showing clips",description:"We are still working on this feature. Please check back later."};case s.NO_GAME_COMMUNITY:return{icon:"social",title:"Not showing community",description:"We are still working on this feature. Please check back later."}}})(l),v=null!=f?f:h.title,g=null!=m?m:h.description,x=h.icon;return(0,t.jsx)(o.Block,{"data-element":"empty-state",variant:{section:u?"no-padding":"default"},className:{section:d&&"h-full",container:d&&"h-full pb-6"},children:(0,t.jsxs)(a.Card,{className:(0,n.cn)("bg-background mt-6 flex flex-col items-center justify-center p-6 py-12",d&&"h-full",p),children:[(0,t.jsx)(i.LargeIconButton,{"data-element":"empty-state-icon","aria-hidden":!0,role:"presentation",icon:x,className:"pointer-events-none mb-4"}),(0,t.jsx)(r.P,{"data-element":"empty-state-title",variant:"lg",className:"mb-2 text-center",children:v}),(0,t.jsx)(r.P,{"data-element":"empty-state-description",variant:"subtle-sm",className:"text-center",children:g}),c]})})}l.state=s},482122,e=>{"use strict";e.s(["Sheet",()=>c,"SheetClose",()=>d,"SheetContent",()=>h,"SheetDescription",()=>x,"SheetHeader",()=>v,"SheetTitle",()=>g,"SheetTrigger",()=>u],482122);var t=e.i(374210),n=e.i(144328),r=e.i(577618),o=e.i(694059);e.i(372492);var a=e.i(387886),i=e.i(662340);function s(e){let{className:n,side:r,...a}=e;return(0,t.jsx)("div",{"aria-hidden":"true","data-slot":"sheet-swi
1pe-dismiss-sentinel",className:(0,o.cn)("absolute z-10","left"===r&&"inset-y-0 right-0 w-4 touch-pan-y","right"===r&&"inset-y-0 left-0 w-4 touch-pan-y","top"===r&&"inset-x-0 bottom-0 h-4 touch-pan-x","bottom"===r&&"inset-x-0 top-0 h-4 touch-pan-x",n),...a})}let l=n.createContext(null);function c(e){let{defaultOpen:o,onOpenChange:a,open:i,...s}=e,[c,u]=n.useState(!!o),d=void 0!==i,p=d?!!i:c,f=n.useCallback(e=>{d||u(e),null==a||a(e)},[d,a]),m=n.useMemo(()=>({setOpen:f}),[f]);return(0,t.jsx)(l.Provider,{value:m,children:(0,t.jsx)(r.Root,{"data-slot":"sheet",open:p,onOpenChange:f,...s})})}function u(e){let{...n}=e;return(0,t.jsx)(r.Trigger,{"data-slot":"sheet-trigger",...n})}function d(e){let{...n}=e;return(0,t.jsx)(r.Close,{"data-slot":"sheet-close",...n})}function p(e){let{...n}=e;return(0,t.jsx)(r.Portal,{"data-slot":"sheet-portal",...n})}let f=n.forwardRef((e,n)=>{let{className:a,...i}=e;return(0,t.jsx)(r.Overlay,{ref:n,"data-slot":"sheet-overlay",className:(0,o.cn)("data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-black/50 backdrop-blur-xs",a),...i})});function m(e,t){if(e||t)return n=>{null==e||e(n),null==t||t(n)}}function h(e){let{className:c,children:u,side:d="right",closeIcon:h="close",portalContainer:v,overlayRef:g,overlayProps:x,hideClose:w,swipeToClose:b=!1,...C}=e,{setOpen:y}=function(){let e=n.useContext(l);if(!e)throw Error("Sheet components must be used within <Sheet>");return e}(),[E,N]=n.useState(null),S=n.useCallback(e=>{N(e)},[]),{elementProps:_}=function(e){let{enabled:t,onDismiss:r,side:o,thresholdPx:a=50}=e,i=n.useRef(null),s=n.useRef(null),l=n.useRef(null),c=n.useRef(null),u=n.useRef(!1),d=n.useCallback(()=>{let e=l.current,t=c.current;null!==e&&t&&t.hasPointerCapture(e)&&t.releasePointerCapture(e)},[]),p=n.useCallback(()=>{d(),i.current=null,s.current=null,l.current=null,c.current=null,u.current=!1},[d]);n.useEffect(()=>(t||p(),()=>{p()}),[t,p]);let f=n.useCallback(e=>{t&&e.isPrimary&&e.target===e.currentTarget&&null===l.current&&(e.currentTarget.setPointerCapture(e.pointerId),i.current=e.clientX,s.current=e.clientY,l.current=e.pointerId,c.current=e.currentTarget,u.current=!1)},[t]),m=n.useCallback(e=>{t&&e.isPrimary&&l.current===e.pointerId&&null!==i.current&&null!==s.current&&!u.current&&(function(e){let{currentX:t,currentY:n,side:r,startX:o,startY:a}=e;return"left"===r?Math.max(0,o-t):"right"===r?Math.max(0,t-o):"top"===r?Math.max(0,a-n):Math.max(0,n-a)}({currentX:e.clientX,currentY:e.clientY,side:o,startX:i.current,startY:s.current})<a||(u.current=!0,r()))},[t,r,o,a]),h=n.useCallback(e=>{e.isPrimary&&l.current===e.pointerId&&p()},[p]),v=n.useCallback(e=>{l.current===e.pointerId&&p()},[p]);return{elementProps:n.useMemo(()=>({onPointerCancel:v,onPointerDown:f,onPointerMove:m,onPointerUp:h}),[v,f,m,h])}}({enabled:b,onDismiss:n.useCallback(()=>{y(!1)},[y]),side:d}),R=n.useMemo(()=>b?{...x,className:(0,o.cn)(null==x?void 0:x.className,"left"===d||"right"===d?"touch-pan-y":"touch-pan-x"),onPointerCancel:m(null==x?void 0:x.onPointerCancel,_.onPointerCancel),onPointerDown:m(null==x?void 0:x.onPointerDown,_.onPointerDown),onPointerMove:m(null==x?void 0:x.onPointerMove,_.onPointerMove),onPointerUp:m(null==x?void 0:x.onPointerUp,_.onPointerUp)}:x,[_,x,d,b]);return(0,t.jsxs)(p,{container:null!=v?v:void 0,children:[(0,t.jsx)(f,{ref:g,...R}),(0,t.jsxs)(r.Content,{ref:S,"data-slot":"sheet-content",className:(0,o.cn)("bg-background data-[state=open]:animate-in data-[state=closed]:animate-out fixed z-50 flex flex-col gap-4 shadow-lg transition ease-in-out data-[state=closed]:duration-300 data-[state=open]:duration-500","right"===d&&"data-[state=closed]:slide-out-to-right data-[state=open]:slide-in-from-right inset-y-0 right-0 h-full w-3/4 border-l sm:max-w-sm","left"===d&&"data-[state=closed]:slide-out-to-left data-[state=open]:slide-in-from-left inset-y-0 left-0 h-full w-3/4 border-r sm:max-w-sm","top"===d&&"data-[state=closed]:slide-out-to-top data-[state=open]:slide-in-from-top inset-x-0 top-0 h-auto border-b","bottom"===d&&"data-[state=closed]:slide-out-to-bottom data-[state=open]:slide-in-from-bottom inset-x-0 bottom-0 h-auto border-t",c),...C,children:[b&&(0,t.jsx)(s,{side:d,..._}),(0,t.jsx)(i.OverlayPortalContainerProvider,{container:E,children:u}),!w&&(0,t.jsxs)(r.Close,{className:"ring-offset-background focus:ring-ring data-[state=open]:bg-secondary absolute top-4 right-4 rounded-xs opacity-70 transition-opacity hover:opacity-100 focus:ring-2 focus:ring-offset-2 focus:outline-hidden disabled:pointer-events-none",children:[(0,t.jsx)(a.Icon,{name:h,className:"size-4"}),(0,t.jsx)("span",{className:"sr-only",children:"Close"})]})]})]})}function v(e){let{className:n,...r}=e;return(0,t.jsx)("div",{"data-slot":"sheet-header",className:(0,o.cn)("flex flex-col gap-1.5 p-4",n),...r})}function g(e){let{className:n,...a}=e;return(0,t.jsx)(r.Title,{"data-slot":"sheet-title",className:(0,o.cn)("text-foreground font-semibold",n),...a}
1)}function x(e){let{className:n,...a}=e;return(0,t.jsx)(r.Description,{"data-slot":"sheet-description",className:(0,o.cn)("text-muted-foreground text-sm",n),...a})}f.displayName="SheetOverlay"},232040,e=>{"use strict";e.s(["DropdownMenu",()=>eq,"DropdownMenuContent",()=>eQ,"DropdownMenuItem",()=>e$,"DropdownMenuLabel",()=>e0,"DropdownMenuSeparator",()=>e1,"DropdownMenuSub",()=>e2,"DropdownMenuSubContent",()=>e3,"DropdownMenuSubTrigger",()=>e4,"DropdownMenuTrigger",()=>eJ],232040);var t=e.i(374210),n=e.i(144328),r=e.i(291967),o=e.i(551922),a=e.i(269073),i=e.i(713144),s=e.i(966915),l=e.i(875690),c=e.i(360690),u=e.i(859678),d=e.i(532078),p=e.i(376944),f=e.i(360212),m=e.i(906634),h=e.i(894484),v=e.i(513771),g=e.i(804082),x=e.i(820334),w=e.i(403322),b=e.i(73772),C=e.i(477628),y=["Enter"," "],E=["ArrowUp","PageDown","End"],N=["ArrowDown","PageUp","Home",...E],S={ltr:[...y,"ArrowRight"],rtl:[...y,"ArrowLeft"]},_={ltr:["ArrowLeft"],rtl:["ArrowRight"]},R="Menu",[P,M,j]=(0,l.createCollection)(R),[D,O]=(0,a.createContextScope)(R,[j,m.createPopperScope,g.createRovingFocusGroupScope]),k=(0,m.createPopperScope)(),I=(0,g.createRovingFocusGroupScope)(),[T,A]=D(R),[L,F]=D(R),H=e=>{let{__scopeMenu:r,open:o=!1,children:a,dir:i,onOpenChange:s,modal:l=!0}=e,u=k(r),[d,p]=n.useState(null),f=n.useRef(!1),h=(0,w.useCallbackRef)(s),v=(0,c.useDirection)(i);return n.useEffect(()=>{let e=()=>{f.current=!0,document.addEventListener("pointerdown",t,{capture:!0,once:!0}),document.addEventListener("pointermove",t,{capture:!0,once:!0})},t=()=>f.current=!1;return document.addEventListener("keydown",e,{capture:!0}),()=>{document.removeEventListener("keydown",e,{capture:!0}),document.removeEventListener("pointerdown",t,{capture:!0}),document.removeEventListener("pointermove",t,{capture:!0})}},[]),(0,t.jsx)(m.Root,{...u,children:(0,t.jsx)(T,{scope:r,open:o,onOpenChange:h,content:d,onContentChange:p,children:(0,t.jsx)(L,{scope:r,onClose:n.useCallback(()=>h(!1),[h]),isUsingKeyboardRef:f,dir:v,modal:l,children:a})})})};H.displayName=R;var U=n.forwardRef((e,n)=>{let{__scopeMenu:r,...o}=e,a=k(r);return(0,t.jsx)(m.Anchor,{...a,...o,ref:n})});U.displayName="MenuAnchor";var G="MenuPortal",[K,B]=D(G,{forceMount:void 0}),z=e=>{let{__scopeMenu:n,forceMount:r,children:o,container:a}=e,i=A(G,n);return(0,t.jsx)(K,{scope:n,forceMount:r,children:(0,t.jsx)(v.Presence,{present:r||i.open,children:(0,t.jsx)(h.Portal,{asChild:!0,container:a,children:o})})})};z.displayName=G;var Y="MenuContent",[W,V]=D(Y),X=n.forwardRef((e,n)=>{let r=B(Y,e.__scopeMenu),{forceMount:o=r.forceMount,...a}=e,i=A(Y,e.__scopeMenu),s=F(Y,e.__scopeMenu);return(0,t.jsx)(P.Provider,{scope:e.__scopeMenu,children:(0,t.jsx)(v.Presence,{present:o||i.open,children:(0,t.jsx)(P.Slot,{scope:e.__scopeMenu,children:s.modal?(0,t.jsx)(Z,{...a,ref:n}):(0,t.jsx)(q,{...a,ref:n})})})})}),Z=n.forwardRef((e,a)=>{let i=A(Y,e.__scopeMenu),s=n.useRef(null),l=(0,o.useComposedRefs)(a,s);return n.useEffect(()=>{let e=s.current;if(e)return(0,b.hideOthers)(e)},[]),(0,t.jsx)(Q,{...e,ref:l,trapFocus:i.open,disableOutsidePointerEvents:i.open,disableOutsideScroll:!0,onFocusOutside:(0,r.composeEventHandlers)(e.onFocusOutside,e=>e.preventDefault(),{checkForDefaultPrevented:!1}),onDismiss:()=>i.onOpenChange(!1)})}),q=n.forwardRef((e,n)=>{let r=A(Y,e.__scopeMenu);return(0,t.jsx)(Q,{...e,ref:n,trapFocus:!1,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,onDismiss:()=>r.onOpenChange(!1)})}),J=(0,x.createSlot)("MenuContent.ScrollLock"),Q=n.forwardRef((e,a)=>{let{__scopeMenu:i,loop:s=!1,trapFocus:l,onOpenAutoFocus:c,onCloseAutoFocus:f,disableOutsidePointerEvents:h,onEntryFocus:v,onEscapeKeyDown:x,onPointerDownOutside:w,onFocusOutside:b,onInteractOutside:y,onDismiss:S,disableOutsideScroll:_,...R}=e,P=A(Y,i),j=F(Y,i),D=k(i),O=I(i),T=M(i),[L,H]=n.useState(null),U=n.useRef(null),G=(0,o.useComposedRefs)(a,U,P.onContentChange),K=n.useRef(0),B=n.useRef(""),z=n.useRef(0),V=n.useRef(null),X=n.useRef("right"),Z=n.useRef(0),q=_?C.RemoveScroll:n.Fragment;n.useEffect(()=>()=>window.clearTimeout(K.current),[]),(0,d.useFocusGuards)();let Q=n.useCallback(e=>{var t,n;return X.current===(null==(t=V.current)?void 0:t.side)&&function(e,t){return!!t&&function(e,t){let{x:n,y:r}=e,o=!1;for(let e=0,a=t.length-1;e<t.length;a=e++){let i=t[e],s=t[a],l=i.x,c=i.y,u=s.x,d=s.y;c>r!=d>r&&n<(u-l)*(r-c)/(d-c)+l&&(o=!o)}return o}({x:e.clientX,y:e.clientY},t)}(e,null==(n=V.current)?void 0:n.area)},[]);return(0,t.jsx)(W,{scope:i,searchRef:B,onItemEnter:n.useCallback(e=>{Q(e)&&e.preventDefault()},[Q]),onItemLeave:n.useCallback(e=>{var t;
1Q(e)||(null==(t=U.current)||t.focus(),H(null))},[Q]),onTriggerLeave:n.useCallback(e=>{Q(e)&&e.preventDefault()},[Q]),pointerGraceTimerRef:z,onPointerGraceIntentChange:n.useCallback(e=>{V.current=e},[]),children:(0,t.jsx)(q,{..._?{as:J,allowPinchZoom:!0}:void 0,children:(0,t.jsx)(p.FocusScope,{asChild:!0,trapped:l,onMountAutoFocus:(0,r.composeEventHandlers)(c,e=>{var t;e.preventDefault(),null==(t=U.current)||t.focus({preventScroll:!0})}),onUnmountAutoFocus:f,children:(0,t.jsx)(u.DismissableLayer,{asChild:!0,disableOutsidePointerEvents:h,onEscapeKeyDown:x,onPointerDownOutside:w,onFocusOutside:b,onInteractOutside:y,onDismiss:S,children:(0,t.jsx)(g.Root,{asChild:!0,...O,dir:j.dir,orientation:"vertical",loop:s,currentTabStopId:L,onCurrentTabStopIdChange:H,onEntryFocus:(0,r.composeEventHandlers)(v,e=>{j.isUsingKeyboardRef.current||e.preventDefault()}),preventScrollOnEntryFocus:!0,children:(0,t.jsx)(m.Content,{role:"menu","aria-orientation":"vertical","data-state":e_(P.open),"data-radix-menu-content":"",dir:j.dir,...D,...R,ref:G,style:{outline:"none",...R.style},onKeyDown:(0,r.composeEventHandlers)(R.onKeyDown,e=>{let t=e.target.closest("[data-radix-menu-content]")===e.currentTarget,n=e.ctrlKey||e.altKey||e.metaKey,r=1===e.key.length;t&&("Tab"===e.key&&e.preventDefault(),!n&&r&&(e=>{var t,n;let r=B.current+e,o=T().filter(e=>!e.disabled),a=document.activeElement,i=null==(t=o.find(e=>
1e.ref.current===a))?void 0:t.textValue,s=function(e,t,n){var r;let o=t.length>1&&Array.from(t).every(e=>e===t[0])?t[0]:t,a=n?e.indexOf(n):-1,i=(r=Math.max(a,0),e.map((t,n)=>e[(r+n)%e.length]));1===o.length&&(i=i.filter(e=>e!==n));let s=i.find(e=>e.toLowerCase().startsWith(o.toLowerCase()));return s!==n?s:void 0}(o.map(e=>e.textValue),r,i),l=null==(n=o.find(e=>e.textValue===s))?void 0:n.ref.current;!function e(t){B.current=t,window.clearTimeout(K.current),""!==t&&(K.current=window.setTimeout(()=>e(""),1e3))}(r),l&&setTimeout(()=>l.focus())})(e.key));let o=U.current;if(e.target!==o||!N.includes(e.key))return;e.preventDefault();let a=T().filter(e=>!e.disabled).map(e=>e.ref.current);E.includes(e.key)&&a.reverse(),function(e){let t=document.activeElement;for(let n of e)if(n===t||(n.focus(),document.activeElement!==t))return}(a)}),onBlur:(0,r.composeEventHandlers)(e.onBlur,e=>{e.currentTarget.contains(e.target)||(window.clearTimeout(K.current),B.current="")}),onPointerMove:(0,r.composeEventHandlers)(e.onPointerMove,eM(e=>{let t=e.target,n=Z.current!==e.clientX;e.currentTarget.contains(t)&&n&&(X.current=e.clientX>Z.current?"right":"left",Z.current=e.clientX)}))})})})})})})});X.displayName=Y;var $=n.forwardRef((e,n)=>{let{__scopeMenu:r,...o}=e;return(0,t.jsx)(s.Primitive.div,{role:"group",...o,ref:n})});$.displayName="MenuGroup";var ee=n.forwardRef((e,n)=>{let{__scopeMenu:r,...o}=e;return(0,t.jsx)(s.Primitive.div,{...o,ref:n})});ee.displayName="MenuLabel";var et="MenuItem",en="menu.itemSelect",er=n.forwardRef((e,a)=>{let{disabled:i=!1,onSelect:l,...c}=e,u=n.useRef(null),d=F(et,e.__scopeMenu),p=V(et,e.__scopeMenu),f=(0,o.useComposedRefs)(a,u),m=n.useRef(!1);return(0,t.jsx)(eo,{...c,ref:f,disabled:i,onClick:(0,r.composeEventHandlers)(e.onClick,()=>{let e=u.current;if(!i&&e){let t=new CustomEvent(en,{bubbles:!0,cancelable:!0});e.addEventListener(en,e=>null==l?void 0:l(e),{once:!0}),(0,s.dispatchDiscreteCustomEvent)(e,t),t.defaultPrevented?m.current=!1:d.onClose()}}),onPointerDown:t=>{var n;null==(n=e.onPointerDown)||n.call(e,t),m.current=!0},onPointerUp:(0,r.composeEventHandlers)(e.onPointerUp,e=>{var t;m.current||null==(t=e.currentTarget)||t.click()}),onKeyDown:(0,r.composeEventHandlers)(e.onKeyDown,e=>{let t=""!==p.searchRef.current;i||t&&" "===e.key||y.includes(e.key)&&(e.currentTarget.click(),e.preventDefault())})})});er.displayName=et;var eo=n.forwardRef((e,a)=>{let{__scopeMenu:i,disabled:l=!1,textValue:c,...u}=e,d=V(et,i),p=I(i),f=n.useRef(null),m=(0,o.useComposedRefs)(a,f),[h,v]=n.useState(!1),[x,w]=n.useState("");return n.useEffect(()=>{let e=f.current;if(e){var t;w((null!=(t=e.textContent)?t:"").trim())}},[u.children]),(0,t.jsx)(P.ItemSlot,{scope:i,disabled:l,textValue:null!=c?c:x,children:(0,t.jsx)(g.Item,{asChild:!0,...p,focusable:!l,children:(0,t.jsx)(s.Primitive.div,{role:"menuitem","data-highlighted":h?"":void 0,"aria-disabled":l||void 0,"data-disabled":l?"":void 0,...u,ref:m,onPointerMove:(0,r.composeEventHandlers)(e.onPointerMove,eM(e=>{l?d.onItemLeave(e):(d.onItemEnter(e),e.defaultPrevented||e.currentTarget.focus({preventScroll:!0}))})),onPointerLeave:(0,r.composeEventHandlers)(e.onPointerLeave,eM(e=>d.onItemLeave(e))),onFocus:(0,r.composeEventHandlers)(e.onFocus,()=>v(!0)),onBlur:(0,r.composeEventHandlers)(e.onBlur,()=>v(!1))})})})}),ea=n.forwardRef((e,n)=>{let{checked:o=!1,onCheckedChange:a,...i}=e;return(0,t.jsx)(ef,{scope:e.__scopeMenu,checked:o,children:(0,t.jsx)(er,{role:"menuitemcheckbox","aria-checked":eR(o)?"mixed":o,...i,ref:n,"data-state":eP(o),onSelect:(0,r.composeEventHandlers)(i.onSelect,()=>null==a?void 0:a(!!eR(o)||!o),{checkForDefaultPrevented:!1})})})});ea.displayName="MenuCheckboxItem";var ei="MenuRadioGroup",[es,el]=D(ei,{value:void 0,onValueChange:()=>{}}),ec=n.forwardRef((e,n)=>{let{value:r,onValueChange:o,...a}=e,i=(0,w.useCallbackRef)(o);return(0,t.jsx)(es,{scope:e.__scopeMenu,value:r,onValueChange:i,children:(0,t.jsx)($,{...a,ref:n})})});ec.displayName=ei;var eu="MenuRadioItem",ed=n.forwardRef((e,n)=>{let{value:o,...a}=e,i=el(eu,e.__scopeMenu),s=o===i.value;return(0,t.jsx)(ef,{scope:e.__scopeMenu,checked:s,children:(0,t.jsx)(er,{role:"menuitemradio","aria-checked":s,...a,ref:n,"data-state":eP(s),onSelect:(0,r.composeEventHandlers)(a.onSelect,()=>{var e;return null==(e=i.onValueChange)?void 0:e.call(i,o)},{checkForDefaultPrevented:!1})})})});ed.displayName=eu;var ep="MenuItemIndicator",[ef,em]=D(ep,{checked:!1}
1),eh=n.forwardRef((e,n)=>{let{__scopeMenu:r,forceMount:o,...a}=e,i=em(ep,r);return(0,t.jsx)(v.Presence,{present:o||eR(i.checked)||!0===i.checked,children:(0,t.jsx)(s.Primitive.span,{...a,ref:n,"data-state":eP(i.checked)})})});eh.displayName=ep;var ev=n.forwardRef((e,n)=>{let{__scopeMenu:r,...o}=e;return(0,t.jsx)(s.Primitive.div,{role:"separator","aria-orientation":"horizontal",...o,ref:n})});ev.displayName="MenuSeparator";var eg=n.forwardRef((e,n)=>{let{__scopeMenu:r,...o}=e,a=k(r);return(0,t.jsx)(m.Arrow,{...a,...o,ref:n})});eg.displayName="MenuArrow";var ex="MenuSub",[ew,eb]=D(ex),eC=e=>{let{__scopeMenu:r,children:o,open:a=!1,onOpenChange:i}=e,s=A(ex,r),l=k(r),[c,u]=n.useState(null),[d,p]=n.useState(null),h=(0,w.useCallbackRef)(i);return n.useEffect(()=>(!1===s.open&&h(!1),()=>h(!1)),[s.open,h]),(0,t.jsx)(m.Root,{...l,children:(0,t.jsx)(T,{scope:r,open:a,onOpenChange:h,content:d,onContentChange:p,children:(0,t.jsx)(ew,{scope:r,contentId:(0,f.useId)(),triggerId:(0,f.useId)(),trigger:c,onTriggerChange:u,children:o})})})};eC.displayName=ex;var ey="MenuSubTrigger",eE=n.forwardRef((e,a)=>{let i=A(ey,e.__scopeMenu),s=F(ey,e.__scopeMenu),l=eb(ey,e.__scopeMenu),c=V(ey,e.__scopeMenu),u=n.useRef(null),{pointerGraceTimerRef:d,onPointerGraceIntentChange:p}=c,f={__scopeMenu:e.__scopeMenu},m=n.useCallback(()=>{u.current&&window.clearTimeout(u.current),u.current=null},[]);return n.useEffect(()=>m,[m]),n.useEffect(()=>{let e=d.current;return()=>{window.clearTimeout(e),p(null)}},[d,p]),(0,t.jsx)(U,{asChild:!0,...f,children:(0,t.jsx)(eo,{id:l.triggerId,"aria-haspopup":"menu","aria-expanded":i.open,"aria-controls":l.contentId,"data-state":e_(i.open),...e,ref:(0,o.composeRefs)(a,l.onTriggerChange),onClick:t=>{var n;null==(n=e.onClick)||n.call(e,t),e.disabled||t.defaultPrevented||(t.currentTarget.focus(),i.open||i.onOpenChange(!0))},onPointerMove:(0,r.composeEventHandlers)(e.onPointerMove,eM(t=>{c.onItemEnter(t),!t.defaultPrevented&&(e.disabled||i.open||u.current||(c.onPointerGraceIntentChange(null),u.current=window.setTimeout(()=>{i.onOpenChange(!0),m()},100)))})),onPointerLeave:(0,r.composeEventHandlers)(e.onPointerLeave,eM(e=>{var t,n;m();let r=null==(t=i.content)?void 0:t.getBoundingClientRect();if(r){let t=null==(n=i.content)?void 0:n.dataset.side,o="right"===t,a=r[o?"left":"right"],s=r[o?"right":"left"];c.onPointerGraceIntentChange({area:[{x:e.clientX+(o?-5:5),y:e.clientY},{x:a,y:r.top},{x:s,y:r.top},{x:s,y:r.bottom},{x:a,y:r.bottom}],side:t}),window.clearTimeout(d.current),d.current=window.setTimeout(()=>c.onPointerGraceIntentChange(null),300)}else{if(c.onTriggerLeave(e),e.defaultPrevented)return;c.onPointerGraceIntentChange(null)}})),onKeyDown:(0,r.composeEventHandlers)(e.onKeyDown,t=>{let n=""!==c.searchRef.current;if(!e.disabled&&(!n||" "!==t.key)&&S[s.dir].includes(t.key)){var r;i.onOpenChange(!0),null==(r=i.content)||r.focus(),t.preventDefault()}})})})});eE.displayName=ey;var eN="MenuSubContent",eS=n.forwardRef((e,a)=>{let i=B(Y,e.__scopeMenu),{forceMount:s=i.forceMount,...l}=e,c=A(Y,e.__scopeMenu),u=F(Y,e.__scopeMenu),d=eb(eN,e.__scopeMenu),p=n.useRef(null),f=(0,o.useComposedRefs)(a,p);return(0,t.jsx)(P.Provider,{scope:e.__scopeMenu,children:(0,t.jsx)(v.Presence,{present:s||c.open,children:(0,t.jsx)(P.Slot,{scope:e.__scopeMenu,children:(0,t.jsx)(Q,{id:d.contentId,"aria-labelledby":d.triggerId,...l,ref:f,align:"start",side:"rtl"===u.dir?"left":"right",disableOutsidePointerEvents:!1,disableOutsideScroll:!1,trapFocus:!1,onOpenAutoFocus:e=>{var t;u.isUsingKeyboardRef.current&&(null==(t=p.current)||t.focus()),e.preventDefault()},onCloseAutoFocus:e=>e.preventDefault(),onFocusOutside:(0,r.composeEventHandlers)(e.onFocusOutside,e=>{e.target!==d.trigger&&c.onOpenChange(!1)}),onEscapeKeyDown:(0,r.composeEventHandlers)(e.onEscapeKeyDown,e=>{u.onClose(),e.preventDefault()}),onKeyDown:(0,r.composeEventHandlers)(e.onKeyDown,e=>{let t=e.currentTarget.contains(e.target),n=_[u.dir].includes(e.key);if(t&&n){var r;c.onOpenChange(!1),null==(r=d.trigger)||r.focus(),e.preventDefault()}})})})})})});function e_(e){return e?"open":"closed"}function eR(e){return"indeterminate"===e}function eP(e){return eR(e)?"indeterminate":e?"checked":"unchecked"}function eM(e){return t=>
1"mouse"===t.pointerType?e(t):void 0}eS.displayName=eN;var ej="DropdownMenu",[eD,eO]=(0,a.createContextScope)(ej,[O]),ek=O(),[eI,eT]=eD(ej),eA=e=>{let{__scopeDropdownMenu:r,children:o,dir:a,open:s,defaultOpen:l,onOpenChange:c,modal:u=!0}=e,d=ek(r),p=n.useRef(null),[m,h]=(0,i.useControllableState)({prop:s,defaultProp:null!=l&&l,onChange:c,caller:ej});return(0,t.jsx)(eI,{scope:r,triggerId:(0,f.useId)(),triggerRef:p,contentId:(0,f.useId)(),open:m,onOpenChange:h,onOpenToggle:n.useCallback(()=>h(e=>!e),[h]),modal:u,children:(0,t.jsx)(H,{...d,open:m,onOpenChange:h,dir:a,modal:u,children:o})})};eA.displayName=ej;var eL="DropdownMenuTrigger",eF=n.forwardRef((e,n)=>{let{__scopeDropdownMenu:a,disabled:i=!1,...l}=e,c=eT(eL,a),u=ek(a);return(0,t.jsx)(U,{asChild:!0,...u,children:(0,t.jsx)(s.Primitive.button,{type:"button",id:c.triggerId,"aria-haspopup":"menu","aria-expanded":c.open,"aria-controls":c.open?c.contentId:void 0,"data-state":c.open?"open":"closed","data-disabled":i?"":void 0,disabled:i,...l,ref:(0,o.composeRefs)(n,c.triggerRef),onPointerDown:(0,r.composeEventHandlers)(e.onPointerDown,e=>{!i&&0===e.button&&!1===e.ctrlKey&&(c.onOpenToggle(),c.open||e.preventDefault())}),onKeyDown:(0,r.composeEventHandlers)(e.onKeyDown,e=>{!i&&(["Enter"," "].includes(e.key)&&c.onOpenToggle(),"ArrowDown"===e.key&&c.onOpenChange(!0),["Enter"," ","ArrowDown"].includes(e.key)&&e.preventDefault())})})})});eF.displayName=eL;var eH=e=>{let{__scopeDropdownMenu:n,...r}=e,o=ek(n);return(0,t.jsx)(z,{...o,...r})};eH.displayName="DropdownMenuPortal";var eU="DropdownMenuContent",eG=n.forwardRef((e,o)=>{let{__scopeDropdownMenu:a,...i}=e,s=eT(eU,a),l=ek(a),c=n.useRef(!1);return(0,t.jsx)(X,{id:s.contentId,"aria-labelledby":s.triggerId,...l,...i,ref:o,onCloseAutoFocus:(0,r.composeEventHandlers)(e.onCloseAutoFocus,e=>{var t;c.current||null==(t=s.triggerRef.current)||t.focus(),c.current=!1,e.preventDefault()}),onInteractOutside:(0,r.composeEventHandlers)(e.onInteractOutside,e=>{let t=e.detail.originalEvent,n=0===t.button&&!0===t.ctrlKey,r=2===t.button||n;(!s.modal||r)&&(c.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)"}})});eG.displayName=eU,n.forwardRef((e,n)=>{let{__scopeDropdownMenu:r,...o}=e,a=ek(r);return(0,t.jsx)($,{...a,...o,ref:n})}).displayName="DropdownMenuGroup";var eK=n.forwardRef((e,n)=>{let{__scopeDropdownMenu:r,...o}=e,a=ek(r);return(0,t.jsx)(ee,{...a,...o,ref:n})});eK.displayName="DropdownMenuLabel";var eB=n.forwardRef((e,n)=>{let{__scopeDropdownMenu:r,...o}=e,a=ek(r);return(0,t.jsx)(er,{...a,...o,ref:n})});eB.displayName="DropdownMenuItem",n.forwardRef((e,n)=>{let{__scopeDropdownMenu:r,...o}=e,a=ek(r);return(0,t.jsx)(ea,{...a,...o,ref:n})}).displayName="DropdownMenuCheckboxItem",n.forwardRef((e,n)=>{let{__scopeDropdownMenu:r,...o}=e,a=ek(r);return(0,t.jsx)(ec,{...a,...o,ref:n})}).displayName="DropdownMenuRadioGroup",n.forwardRef((e,n)=>{let{__scopeDropdownMenu:r,...o}=e,a=ek(r);return(0,t.jsx)(ed,{...a,...o,ref:n})}).displayName="DropdownMenuRadioItem",n.forwardRef((e,n)=>{let{__scopeDropdownMenu:r,...o}=e,a=ek(r);return(0,t.jsx)(eh,{...a,...o,ref:n})}).displayName="DropdownMenuItemIndicator";var ez=n.forwardRef((e,n)=>{let{__scopeDropdownMenu:r,...o}=e,a=ek(r);return(0,t.jsx)(ev,{...a,...o,ref:n})});
1ez.displayName="DropdownMenuSeparator",n.forwardRef((e,n)=>{let{__scopeDropdownMenu:r,...o}=e,a=ek(r);return(0,t.jsx)(eg,{...a,...o,ref:n})}).displayName="DropdownMenuArrow";var eY=n.forwardRef((e,n)=>{let{__scopeDropdownMenu:r,...o}=e,a=ek(r);return(0,t.jsx)(eE,{...a,...o,ref:n})});eY.displayName="DropdownMenuSubTrigger";var eW=n.forwardRef((e,n)=>{let{__scopeDropdownMenu:r,...o}=e,a=ek(r);return(0,t.jsx)(eS,{...a,...o,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)"}})});eW.displayName="DropdownMenuSubContent";var eV=e=>{let{__scopeDropdownMenu:n,children:r,open:o,onOpenChange:a,defaultOpen:s}=e,l=ek(n),[c,u]=(0,i.useControllableState)({prop:o,defaultProp:null!=s&&s,onChange:a,caller:"DropdownMenuSub"});return(0,t.jsx)(eC,{...l,open:c,onOpenChange:u,children:r})};e.i(863289);var eX=e.i(217601),eX=eX,eZ=(e.i(673825),e.i(694059));function eq(e){let{...n}=e;return(0,t.jsx)(eA,{"data-slot":"dropdown-menu",...n})}function eJ(e){let{...n}=e;return(0,t.jsx)(eF,{"data-slot":"dropdown-menu-trigger",...n})}function eQ(e){let{className:n,sideOffset:r=4,portalContainer:o,...a}=e;return(0,t.jsx)(eH,{container:null!=o?o:void 0,children:(0,t.jsx)(eG,{"data-slot":"dropdown-menu-content",sideOffset:r,className:(0,eZ.cn)("bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 max-h-(--radix-dropdown-menu-content-available-height) min-w-32 origin-(--radix-dropdown-menu-content-transform-origin) overflow-x-hidden overflow-y-auto rounded-md border p-1 shadow-md",n),...a})})}function e$(e){let{className:n,inset:r,variant:o="default",...a}=e;return(0,t.jsx)(eB,{"data-slot":"dropdown-menu-item","data-inset":r,"data-variant":o,className:(0,eZ.cn)("focus:bg-accent focus:text-accent-foreground data-[variant=destructive]:text-destructive data-[variant=destructive]:focus:bg-destructive/10 dark:data-[variant=destructive]:focus:bg-destructive/20 data-[variant=destructive]:focus:text-destructive data-[variant=destructive]:*:[svg]:text-destructive! [&_svg:not([class*='text-'])]:text-muted-foreground relative flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-hidden select-none data-disabled:pointer-events-none data-disabled:opacity-50 data-inset:pl-8 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",n),...a})}function e0(e){let{className:n,inset:r,...o}=e;return(0,t.jsx)(eK,{"data-slot":"dropdown-menu-label","data-inset":r,className:(0,eZ.cn)("px-2 py-1.5 text-sm font-medium data-inset:pl-8",n),...o})}function e1(e){let{className:n,...r}=e;return(0,t.jsx)(ez,{"data-slot":"dropdown-menu-separator",className:(0,eZ.cn)("bg-border -mx-1 my-1 h-px",n),...r})}function e2(e){let{...n}=e;return(0,t.jsx)(eV,{"data-slot":"dropdown-menu-sub",...n})}function e4(e){let{className:n,inset:r,children:o,...a}=e;return(0,t.jsxs)(eY,{"data-slot":"dropdown-menu-sub-trigger","data-inset":r,className:(0,eZ.cn)("focus:bg-accent focus:text-accent-foreground data-[state=open]:bg-accent data-[state=open]:text-accent-foreground [&_svg:not([class*='text-'])]:text-muted-foreground flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-hidden select-none data-inset:pl-8 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",n),...a,children:[o,(0,t.jsx)(eX.default,{className:"ml-auto size-4"})]})}function e3(e){let{className:n,...r}=e;return(0,t.jsx)(eW,{"data-slot":"dropdown-menu-sub-content",className:(0,eZ.cn)("bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:sli
1de-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 min-w-32 origin-(--radix-dropdown-menu-content-transform-origin) overflow-hidden rounded-md border p-1 shadow-lg",n),...r})}},251279,e=>{"use strict";e.s(["ContextAwareMenu",()=>g,"ContextAwareMenuContent",()=>w,"ContextAwareMenuDrawerClose",()=>N,"ContextAwareMenuItem",()=>E,"ContextAwareMenuLabel",()=>C,"ContextAwareMenuSeparator",()=>y,"ContextAwareMenuTrigger",()=>x,"DraggableSentinel",()=>b],251279);var t=e.i(374210),n=e.i(144328),r=e.i(339330);e.i(171753);var o=e.i(400431),a=e.i(694059),i=e.i(232040),s=e.i(482122);e.i(372492);var l=e.i(387886),c=e.i(222786),u=e.i(852644);let d="Menu",p="Menu drawer",f=["xs","sm","md","lg","xl","2xl"];function m(e){let{enabled:t,onDismiss:r,thresholdPx:o=50}=e,a=n.useRef(null),i=n.useRef(null),s=n.useRef(null),l=n.useRef(!1),c=n.useCallback(()=>{let e=i.current,t=s.current;null!==e&&t&&t.hasPointerCapture(e)&&t.releasePointerCapture(e)},[]),u=n.useCallback(()=>{c(),a.current=null,i.current=null,s.current=null,l.current=!1},[c]);n.useEffect(()=>(t||u(),()=>{u()}),[t,u]);let d=n.useCallback(e=>{t&&e.isPrimary&&e.target===e.currentTarget&&null===i.current&&(e.currentTarget.setPointerCapture(e.pointerId),a.current=e.clientY,i.current=e.pointerId,s.current=e.currentTarget,l.current=!1)},[t]),p=n.useCallback(e=>{t&&e.isPrimary&&i.current===e.pointerId&&null!==a.current&&!l.current&&(Math.max(0,e.clientY-a.current)<o||(l.current=!0,r()))},[t,r,o]),f=n.useCallback(e=>{e.isPrimary&&i.current===e.pointerId&&u()},[u]),m=n.useCallback(e=>{i.current===e.pointerId&&u()},[u]);return{elementProps:n.useMemo(()=>({onPointerDown:d,onPointerMove:p,onPointerUp:f,onPointerCancel:m}),[m,d,p,f])}}let h=n.createContext(null);function v(){let e=n.useContext(h);if(!e)throw Error("ContextAwareMenu.* must be used inside <ContextAwareMenu>");return e}function g(e){let{children:r,defaultOpen:a,open:l,onOpenChange:c,mobileUntil:u="lg",title:m=d,description:v=p,closeOnSelect:g=!0,portalContainer:x}=e,{breakpoint:w,isPending:b}=(0,o.useScreenSize)(),C=!b&&!!w&&function(e,t){let n=f.indexOf(e),r=f.indexOf(t);return -1!==n&&-1!==r&&n<r}(w,u),[y,E]=n.useState(!!a),N=void 0!==l,S=N?!!l:y,_=n.useCallback(e=>{N||E(e),null==c||c(e)},[N,c]),R=n.useMemo(()=>({isDrawer:C,open:S,setOpen:_,title:m,description:v,closeOnSelect:g,portalContainer:x}),[g,S,v,x,_,C,m]);return C?(0,t.jsx)(h.Provider,{value:R,children:(0,t.jsx)(s.Sheet,{open:S,onOpenChange:_,children:r})}):(0,t.jsx)(h.Provider,{value:R,children:(0,t.jsx)(i.DropdownMenu,{open:S,onOpenChange:_,children:r})})}function x(e){let{children:n,className:r}=e,{isDrawer:o}=v();return o?(0,t.jsx)(s.SheetTrigger,{asChild:!0,className:r,"data-interactive":"true",children:n}):(0,t.jsx)(i.DropdownMenuTrigger,{asChild:!0,className:r,"data-interactive":"true",children:n})}function w(e){let{className:r,side:o="bottom",align:l="end",portalContainer:c,...u}=e,{isDrawer:f,open:h,setOpen:g,title:x,description:w,portalContainer:C}=v(),y=null!=c?c:C,{elementProps:E}=m({enabled:f&&h,thresholdPx:50,onDismiss:n.useCallback(()=>g(!1),[g])}),N=x===d,S=w===p;if(f)return(0,t.jsxs)(s.SheetContent,{side:"bottom",className:(0,a.cn)("rounded-t-4xl p-0 py-6",r?r.replace(/w-\d+/,"").replace(/max-w-\d+/,""):""),portalContainer:y,overlayProps:E,closeIcon:"down","data-interactive":"true",children:[(0,t.jsx)(b,{}),(0,t.jsxs)(s.SheetHeader,{className:(0,a.cn)("px-4 pt-0 pb-2",N&&S&&"sr-only"),children:[x&&(0,t.jsx)(s.SheetTitle,{className:(0,a.cn)(N&&"sr-only"),children:x}),w&&(0,t.jsx)(s.SheetDescription,{className:(0,a.cn)(S&&"sr-only"),children:w})]}),(0,t.jsx)("div",{role:"menu",className:"px-4 pb-0",children:u.children})]});return(0,t.jsx)(i.DropdownMenuContent,{side:o,align:l,className:r,portalContainer:y,"data-interactive":"true",...u,children:u.children})}function b(){let{isDrawer:e,open:r,setOpen:o}=v(),{elementProps:a}=m({enabled:e&&r,thresholdPx:50,onDismiss:n.useCallback(()=>o(!1),[o])});return e?(0,t.jsx)("div",{className:"absolute inset-x-0 top-0 h-6",...a}):null}function C(e){let{inset:n,className:r,children:o}=e,{isDrawer:s}=v();return s?(0,t.jsx)("div",{className:(0,a.cn)("text-muted-foreground px-2 py-1.5 text-xs font-medium",n&&"pl-8",r),children:o}):(0,t.jsx)(i.DropdownMenuLabel,{inset:n,className:r,children:o})}function y(e){let{className:n}=e,{isDrawer:r}=v();return r?(0,t.jsx)("div",{className:(0,a.cn)("bg-border my-1 h-px",n),"aria-hidden":"true"}):(0,t.jsx)(i.DropdownMenuSeparator,{className:n})}function E(e){let{className:n,inset:o,onClick:s,onSelect:d,variant:p="default",closeOnSelect:f,disabled:m,children:h,href:g,icon:x,external:w,...b}=e,{isDrawer:C,setOpen:y,closeOnSelect:E}=v(),N=null!=f?f:E,S=g?{href:g,...w&&{target:"_blank",rel:"noopener noreferrer nofollow"}}:void 0;if(C){let e=function(e){let t={};for(let n in e)(n.startsWith("data-")||n.startsWith("aria-"))&&(t[n]=e[n]);return t}(b);return(0,t.jsx)(c.Button,{type:"button",role:"menuitem","data-interactive":"true",icon:x,iconSide:"left",size:"xl",variant:"destructive"===p?"destructive-ghost":"ghost",disabled:m,external:w,href:g,onClick:e=>{e.stopPropagation(),null==s||s(e);let t=new CustomEvent("select",{cancelable:!0});null==d||d(t),N&&!t.defaultPrevented&&y(!1)},className:(0,a.cn)("w-full justify-start gap-2",o&&"pl-8",n),...e,children:h})}return(0,t.jsx)(u.Conditional,{condition:!!S,component:r.default,componentProps:S,children:(0,t.jsxs)(i.DropdownMenuItem,{...b,"data-interactive":"true",className:n,inset:o,disabled:m,variant:p,onPointerDown:e=>{e.stopPropagation()},onClick:e=>{e.stopPropagation()},onSelect:e=>{e.stopPropagation(),null==d||d(e),N&&!e.defaultPrevented&&y(!1)},children:[x&&(0,t.jsx)(l.Icon,{name:x,className:"mr-1 size-3.5 text-inherit"}),h]})})}function N(e){let{children:n="Close",callBack:r,className:o}=e,{isDrawer:i,setOpen:l}=v();return i?(0,t.jsx)("div",{className:"pt-2","data-element":"context-aware-menu-drawer-close",children:(0,t.jsx)(s.SheetClose,{asChild:!0,children:(0,t.jsx)(c.Button,{variant:"secondary",size:"xl",type:"button",onClick:()=>{r&&r(),l(!1)},className:(0,a.cn)("w-full",o),children:n})})}):null}}]);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.