1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,953247,e=>{"use strict";var t=e.i(161614),a=e.i(620938),r=e.i(899300),n=e.i(210454),i=e.i(723399),o=e.i(534520),s=e.i(520057),l=Object.defineProperty,d=(e,t)=>l(e,"name",{value:t,configurable:!0}),c="Avatar",[u,p]=(0,n.createContextScope)(c),f=[0,()=>void 0],[b,g]=u(c),m=a.forwardRef(d(function(e,r){let{__scopeAvatar:n,...i}=e,[o,l]=a.useState("idle"),[d,c]=y();return(0,t.jsx)(b,{scope:n,imageLoadingStatus:o,setImageLoadingStatus:l,imageCount:d,setImageCount:c,children:(0,t.jsx)(s.Primitive.span,{...i,ref:r})})},"Avatar")),h=a.forwardRef(d(function(e,r){let{__scopeAvatar:n,src:l,onLoadingStatusChange:d,...c}=e,u=g("AvatarImage",n);j(u.setImageCount);let p=v(l,{referrerPolicy:c.referrerPolicy,crossOrigin:c.crossOrigin,loadingStatus:u.imageLoadingStatus,setLoadingStatus:u.setImageLoadingStatus}),f=(0,i.useCallbackRef)(e=>{d?.(e)}),b=a.useRef(p);return(0,o.useLayoutEffect)(()=>{let e=b.current;b.current=p,p!==e&&f(p)},[p,f]),"loaded"===p?(0,t.jsx)(s.Primitive.img,{...c,ref:r,src:l}):null},"AvatarImage")),x=a.forwardRef(d(function(e,r){let{__scopeAvatar:n,delayMs:i,...o}=e,l=g("AvatarFallback",n),[d,c]=a.useState(void 0===i);return a.useEffect(()=>{if(void 0!==i){let e=window.setTimeout(()=>c(!0),i);return()=>window.clearTimeout(e)}},[i]),d&&"loaded"!==l.imageLoadingStatus?(0,t.jsx)(s.Primitive.span,{...o,ref:r}):null},"AvatarFallback"));function v(e,{loadingStatus:t,setLoadingStatus:a,referrerPolicy:r,crossOrigin:n}){return(0,o.useLayoutEffect)(()=>{if(!e)return void a("error");let t=new window.Image,i=d(e=>{a(w(e.currentTarget))},"handleLoad"),o=d(()=>a("error"),"handleError");return t.addEventListener("load",i),t.addEventListener("error",o),r&&(t.referrerPolicy=r),t.crossOrigin=n??null,t.src=e,a(w(t)),()=>{t.removeEventListener("load",i),t.removeEventListener("error",o),a("idle")}},[e,n,r,a]),t}function w(e){return e.complete?e.naturalWidth>0?"loaded":"error":"loading"}function y(){let e=f;if(r.IS_DEVELOPMENT){let[t]=e=a.useState(0),r=a.useRef(!1);a.useEffect(()=>{t>1&&!r.current&&(r.current=!0,console.warn("Avatar: Only one `Avatar.Image` component should be rendered per `Avatar.Root`, but multiple were detected. This will lead to unexpected behavior."))},[t])}return e}function j(e){r.IS_DEVELOPMENT&&a.useEffect(()=>(e(e=>e+1),()=>{e(e=>e-1)}),[e])}d(v,"useImageLoadingStatus"),d(w,"getImageLoadingStatus"),d(y,"useImageCount"),d(j,"useUpdateImageCount"),e.i(238249);var C=e.i(572592);e.s(["Avatar",0,function({className:e,...a}){return(0,t.jsx)(m,{"data-slot":"avatar",className:(0,C.cn)("relative flex size-8 shrink-0 overflow-hidden rounded-full",e),...a})},"AvatarFallback",0,function({className:e,...a}){return(0,t.jsx)(x,{"data-slot":"avatar-fallback",className:(0,C.cn)("bg-muted flex size-full items-center justify-center rounded-full",e),...a})},"AvatarImage",0,function({className:e,...a}){return(0,t.jsx)(h,{"data-slot":"avatar-image",className:(0,C.cn)("aspect-square size-full",e),...a})}],953247)},686711,e=>{"use strict";var t=e.i(161614),a=e.i(620938),r=e.i(543836),n=e.i(210454),i=e.i(2746),o=e.i(534520),s=e.i(923002),l=e.i(520057),d=e.i(924636),c=e.i(341764),u=Object.defineProperty,p=(e,t)=>u(e,"name",{value:t,configurable:!0}
1),f="Collapsible",[b,g]=(0,n.createContextScope)(f),[m,h]=b(f),x=a.forwardRef(p(function(e,r){let{__scopeCollapsible:n,open:o,defaultOpen:s,disabled:d,onOpenChange:u,...p}=e,[b,g]=(0,i.useControllableState)({prop:o,defaultProp:s??!1,onChange:u,caller:f});return(0,t.jsx)(m,{scope:n,disabled:d,contentId:(0,c.useId)(),open:b,onOpenToggle:a.useCallback(()=>g(e=>!e),[g]),children:(0,t.jsx)(l.Primitive.div,{"data-state":C(b),"data-disabled":d?"":void 0,...p,ref:r})})},"Collapsible")),v=a.forwardRef(p(function(e,a){let{__scopeCollapsible:n,...i}=e,o=h("CollapsibleTrigger",n);return(0,t.jsx)(l.Primitive.button,{type:"button","aria-controls":o.open?o.contentId:void 0,"aria-expanded":o.open||!1,"data-state":C(o.open),"data-disabled":o.disabled?"":void 0,disabled:o.disabled,...i,ref:a,onClick:(0,r.composeEventHandlers)(e.onClick,o.onOpenToggle)})},"CollapsibleTrigger")),w="CollapsibleContent",y=a.forwardRef(p(function(e,a){let{forceMount:r,...n}=e,i=h(w,e.__scopeCollapsible);return(0,t.jsx)(d.Presence,{present:r||i.open,children:({present:e})=>(0,t.jsx)(j,{...n,ref:a,present:e})})},"CollapsibleContent")),j=a.forwardRef(p(function(e,r){let{__scopeCollapsible:n,present:i,children:d,...c}=e,u=h(w,n),[p,f]=a.useState(i),b=a.useRef(null),g=(0,s.useComposedRefs)(r,b),m=a.useRef(0),x=m.current,v=a.useRef(0),y=v.current,j=u.open||p,S=a.useRef(j),T=a.useRef(void 0);return a.useEffect(()=>{let e=requestAnimationFrame(()=>S.current=!1);return()=>cancelAnimationFrame(e)},[]),(0,o.useLayoutEffect)(()=>{let e=b.current;if(e){T.current=T.current||{transitionDuration:e.style.transitionDuration,animationName:e.style.animationName},e.style.transitionDuration="0s",e.style.animationName="none";let t=e.getBoundingClientRect();m.current=t.height,v.current=t.width,S.current||(e.style.transitionDuration=T.current.transitionDuration,e.style.animationName=T.current.animationName),f(i)}},[u.open,i]),(0,t.jsx)(l.Primitive.div,{"data-state":C(u.open),"data-disabled":u.disabled?"":void 0,id:u.contentId,hidden:!j,...c,ref:g,style:{"--radix-collapsible-content-height":x?`${x}px`:void 0,"--radix-collapsible-content-width":y?`${y}px`:void 0,...e.style},children:j&&d})},"CollapsibleContentImpl"));function C(e){return e?"open":"closed"}p(C,"getState"),e.s(["Collapsible",0,function({...e}){return(0,t.jsx)(x,{"data-slot":"collapsible",...e})},"CollapsibleContent",0,function({...e}){return(0,t.jsx)(y,{"data-slot":"collapsible-content",...e})},"CollapsibleTrigger",0,function({...e}){return(0,t.jsx)(v,{"data-slot":"collapsible-trigger",...e})}],686711)},806264,e=>{"use strict";var t=e.i(161614),a=e.i(154267),r=e.i(545397);e.i(238249);var n=e.i(572592);function i({...e}){return(0,t.jsx)(a.Portal,{"data-slot":"sheet-portal",...e})}function o({className:e,...r}){return(0,t.jsx)(a.Overlay,{"data-slot":"sheet-overlay",className:(0,n.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",e),...r})}e.s(["Sheet",0,function({...e}){return(0,t.jsx)(a.Root,{"data-slot":"sheet",...e})},"SheetClose",0,function({...e}){return(0,t.jsx)(a.Close,{"data-slot":"sheet-close",...e})},"SheetContent",0,function({className:e,children:s,side:l="right",...d}){return(0,t.jsxs)(i,{children:[(0,t.jsx)(o,{}),(0,t.jsxs)(a.Content,{"data-slot":"sheet-content",className:(0,n.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"===l&&"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"===l&&"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"===l&&"data-[state=closed]:slide-out-to-top data-[state=open]:slide-in-from-top inset-x-0 top-0 h-auto border-b","bottom"===l&&"data-[state=closed]:slide-out-to-bottom data-[state=open]:slide-in-from-bottom inset-x-0 bottom-0 h-auto border-t",e),...d,children:[s,(0,t.jsxs)(a.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)(r.XIcon,{className:"size-4"}),(0,t.jsx)("span",{className:"sr-only",children:"Close"})]})]})]})},"SheetDescription",0,function({className:e,...r}
1){return(0,t.jsx)(a.Description,{"data-slot":"sheet-description",className:(0,n.cn)("text-muted-foreground text-sm",e),...r})},"SheetFooter",0,function({className:e,...a}){return(0,t.jsx)("div",{"data-slot":"sheet-footer",className:(0,n.cn)("mt-auto flex flex-col gap-2 p-4",e),...a})},"SheetHeader",0,function({className:e,...a}){return(0,t.jsx)("div",{"data-slot":"sheet-header",className:(0,n.cn)("flex flex-col gap-1.5 p-4",e),...a})},"SheetTitle",0,function({className:e,...r}){return(0,t.jsx)(a.Title,{"data-slot":"sheet-title",className:(0,n.cn)("text-foreground font-semibold",e),...r})},"SheetTrigger",0,function({...e}){return(0,t.jsx)(a.Trigger,{"data-slot":"sheet-trigger",...e})}])},396644,152871,e=>{"use strict";var t=e.i(161614),a=e.i(620938),r=e.i(809965),n=e.i(294237);let i=(0,e.i(17245).default)("panel-left",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M9 3v18",key:"fh3hqa"}]]);function o(){let[e,t]=a.useState(void 0);return a.useEffect(()=>{let e=window.matchMedia("(max-width: 767px)"),a=()=>{t(window.innerWidth<768)};return e.addEventListener("change",a),t(window.innerWidth<768),()=>e.removeEventListener("change",a)},[]),!!e}e.s(["useIsMobile",0,o],152871),e.i(238249);var s=e.i(572592),l=e.i(859951),d=e.i(918878),c=e.i(326357),u=e.i(806264),p=e.i(956058),f=e.i(589121);let b="sidebar_state",g=a.createContext(null);function m(){let e=a.useContext(g);if(!e)throw Error("useSidebar must be used within a SidebarProvider.");return e}let h=(0,n.cva)("peer/menu-button flex w-full items-center gap-2 overflow-hidden rounded-md p-2 text-left text-sm outline-hidden ring-sidebar-ring transition-[width,height,padding] hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 active:bg-sidebar-accent active:text-sidebar-accent-foreground disabled:pointer-events-none disabled:opacity-50 group-has-data-[sidebar=menu-action]/menu-item:pr-8 aria-disabled:pointer-events-none aria-disabled:opacity-50 data-[active=true]:bg-sidebar-accent data-[active=true]:font-medium data-[active=true]:text-sidebar-accent-foreground data-[state=open]:hover:bg-sidebar-accent data-[state=open]:hover:text-sidebar-accent-foreground group-data-[collapsible=icon]:size-8! group-data-[collapsible=icon]:p-2! [&>span:last-child]:truncate [&>svg]:size-4 [&>svg]:shrink-0",{variants:{variant:{default:"hover:bg-sidebar-accent hover:text-sidebar-accent-foreground",outline:"bg-background shadow-[0_0_0_1px_hsl(var(--sidebar-border))] hover:bg-sidebar-accent hover:text-sidebar-accent-foreground hover:shadow-[0_0_0_1px_hsl(var(--sidebar-accent))]"},size:{default:"h-8 text-sm",sm:"h-7 text-xs",lg:"h-12 text-sm group-data-[collapsible=icon]:p-0!"}},defaultVariants:{variant:"default",size:"default"}});e.s(["Sidebar",0,function({side:e="left",variant:a="sidebar",collapsible:r="offcanvas",className:n,children:i,...o}){let{isMobile:l,state:d,openMobile:c,setOpenMobile:p}=m();return"none"===r?(0,t.jsx)("div",{"data-slot":"sidebar",className:(0,s.cn)("bg-sidebar text-sidebar-foreground flex h-full w-(--sidebar-width) flex-col",n),...o,children:i}):l?(0,t.jsx)(u.Sheet,{open:c,onOpenChange:p,...o,children:(0,t.jsxs)(u.SheetContent,{"data-sidebar":"sidebar","data-slot":"sidebar","data-mobile":"true",className:"bg-sidebar text-sidebar-foreground w-(--sidebar-width) p-0 [&>button]:hidden",style:{"--sidebar-width":"18rem"},side:e,children:[(0,t.jsxs)(u.SheetHeader,{className:"sr-only",children:[(0,t.jsx)(u.SheetTitle,{children:"Sidebar"}),(0,t.jsx)(u.SheetDescription,{children:"Displays the mobile sidebar."})]}),(0,t.jsx)("div",{className:"flex h-screen w-full flex-col",children:i})]})}):(0,t.jsxs)("div",{className:"group peer text-sidebar-foreground hidden md:block","data-state":d,"data-collapsible":"collapsed"===d?r:"","data-variant":a,"data-side":e,"data-slot":"sidebar",children:[(0,t.jsx)("div",{"data-slot":"sidebar-gap",className:(0,s.cn)("relative w-(--sidebar-width) bg-transparent transition-[width] duration-200 ease-linear","group-data-[collapsible=offcanvas]:w-0","group-data-[side=right]:rotate-180","floating"===a||"inset"===a?"group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)+(--spacing(4)))]":"group-data-[collapsible=icon]:w-(--sidebar-width-icon)")}),(0,t.jsx)("div",{"data-slot":"sidebar-container",className:(0,s.cn)("fixed inset-y-0 z-10 hidden h-svh w-(--sidebar-width) transition-[left,right,width] duration-200 ease-linear md:flex","left"===e?"left-0 group-data-[collapsible=offcanvas]:left-[calc(var(--sidebar-width)*-1)]":"right-0 group-data-[collapsible=offcanvas]:right-[calc(var(--sidebar-width)*-1)]","floating"===a||"inset"===a?"p-2 group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)+(--spacing(4))+2px)]":"group-data-[collapsible=icon]:w-(--sidebar-width-icon) group-data-[side=left]:border-r group-data-[side=right]:border-l",n),...o,children:(0,t.jsx)("div",{"data-sidebar":"sidebar","data-slot":"sidebar-inner",className:"bg-sidebar group-data-[variant=floating]:border-sidebar-border flex h-full w-full flex-col group-data-[variant=floating]:rounded-lg group-data-[variant=floating]:border group-data-[variant=floating]:shadow-sm",children:i})})]})},"SidebarContent",0,function({className:e,...a}){return(0,t.jsx)("div",{"data-slot":"sidebar-content","data-sidebar":"content",className:(0,s.cn)("flex min-h-0 flex-1 flex-col gap-2 overflow-auto group-data-[collapsible=icon]:overflow-hidden",e),...a})},"SidebarFooter",0,function({className:e,...a}){return(0,t.jsx)("div",{"data-slot":"sidebar-footer","data-sidebar":"footer",className:(0,s.cn)("flex flex-col gap-2 p-2",e),...a})},"SidebarGroup",0,function({className:e,...a}){return(0,t.jsx)("div",{"data-slot":"sidebar-group","data-sidebar":"group",className:(0,s.cn)("relative flex w-full min-w-0 flex-col p-2",e),...a})},"SidebarGroupAction",0,function({className:e,asChild:a=!1,...n}){let i=a?r.Slot:"button";return(0,t.jsx)(i,{"data-slot":"sidebar-group-action","data-sidebar":"group-action",className:(0,s.cn)("text-sidebar-foreground ring-sidebar-ring hover:bg-sidebar-accent hover:text-sidebar-accent-foreground absolute top-3.5 right-3 flex aspect-square w-5 items-center justify-center rounded-md p-0 outline-hidden transition-transform focus-visible:ring-2 [&>svg]:size-4 [&>svg]:shrink-0","after:absolute after:-inset-2 md:after:hidden","group-data-[collapsible=icon]:hidden",e),...n})},"SidebarGroupContent",0,function({className:e,...a}){return(0,t.jsx)("div",{"data-slot":"sidebar-group-content","data-sidebar":"group-content",className:(0,s.cn)("w-full text-sm",e),...a})},"SidebarGroupLabel",0,function({className:e,asChild:a=!1,...n}){let i=a?r.Slot:"div";return(0,t.jsx)(i,{"data-slot":"sidebar-group-label","data-sidebar":"group-label",className:(0,s.cn)("text-sidebar-foreground
1/70 ring-sidebar-ring flex h-8 shrink-0 items-center rounded-md px-2 text-xs font-medium outline-hidden transition-[margin,opacity] duration-200 ease-linear focus-visible:ring-2 [&>svg]:size-4 [&>svg]:shrink-0","group-data-[collapsible=icon]:-mt-8 group-data-[collapsible=icon]:opacity-0",e),...n})},"SidebarHeader",0,function({className:e,...a}){return(0,t.jsx)("div",{"data-slot":"sidebar-header","data-sidebar":"header",className:(0,s.cn)("flex flex-col gap-2 p-2",e),...a})},"SidebarInput",0,function({className:e,...a}){return(0,t.jsx)(d.Input,{"data-slot":"sidebar-input","data-sidebar":"input",className:(0,s.cn)("bg-background h-8 w-full shadow-none",e),...a})},"SidebarInset",0,function({className:e,...a}){return(0,t.jsx)("main",{"data-slot":"sidebar-inset",className:(0,s.cn)("bg-background relative flex w-full flex-1 flex-col","md:peer-data-[variant=inset]:m-2 md:peer-data-[variant=inset]:ml-0 md:peer-data-[variant=inset]:rounded-xl md:peer-data-[variant=inset]:shadow-sm md:peer-data-[variant=inset]:peer-data-[state=collapsed]:ml-2",e),...a})},"SidebarMenu",0,function({className:e,...a}){return(0,t.jsx)("ul",{"data-slot":"sidebar-menu","data-sidebar":"menu",className:(0,s.cn)("flex w-full min-w-0 flex-col gap-1",e),...a})},"SidebarMenuAction",0,function({className:e,asChild:a=!1,showOnHover:n=!1,...i}){let o=a?r.Slot:"button";return(0,t.jsx)(o,{"data-slot":"sidebar-menu-action","data-sidebar":"menu-action",className:(0,s.cn)("text-sidebar-foreground ring-sidebar-ring hover:bg-sidebar-accent hover:text-sidebar-accent-foreground peer-hover/menu-button:text-sidebar-accent-foreground absolute top-1.5 right-1 flex aspect-square w-5 items-center justify-center rounded-md p-0 outline-hidden transition-transform focus-visible:ring-2 [&>svg]:size-4 [&>svg]:shrink-0","after:absolute after:-inset-2 md:after:hidden","peer-data-[size=sm]/menu-button:top-1","peer-data-[size=default]/menu-button:top-1.5","peer-data-[size=lg]/menu-button:top-2.5","group-data-[collapsible=icon]:hidden",n&&"peer-data-[active=true]/menu-button:text-sidebar-accent-foreground group-focus-within/menu-item:opacity-100 group-hover/menu-item:opacity-100 data-[state=open]:opacity-100 md:opacity-0",e),...i})},"SidebarMenuBadge",0,function({className:e,...a}){return(0,t.jsx)("div",{"data-slot":"sidebar-menu-badge","data-sidebar":"menu-badge",className:(0,s.cn)("text-sidebar-foreground pointer-events-none absolute right-1 flex h-5 min-w-5 items-center justify-center rounded-md px-1 text-xs font-medium tabular-nums select-none","peer-hover/menu-button:text-sidebar-accent-foreground peer-data-[active=true]/menu-button:text-sidebar-accent-foreground","peer-data-[size=sm]/menu-button:top-1","peer-data-[size=default]/menu-button:top-1.5","peer-data-[size=lg]/menu-button:top-2.5","group-data-[collapsible=icon]:hidden",e),...a})},"SidebarMenuButton",0,function({asChild:e=!1,isActive:a=!1,variant:n="default",size:i="default",tooltip:o,className:l,...d}){let c=e?r.Slot:"button",{isMobile:u,state:p}=m(),b=(0,t.jsx)(c,{"data-slot":"sidebar-menu-button","data-sidebar":"menu-button","data-size":i,"data-active":a,className:(0,s.cn)(h({variant:n,size:i}),l),...d});return o?("string"==typeof o&&(o={children:o}),(0,t.jsxs)(f.Tooltip,{children:[(0,t.jsx)(f.TooltipTrigger,{asChild:!0,children:b}),(0,t.jsx)(f.TooltipContent,{side:"right",align:"center",hidden:"collapsed"!==p||u,...o})]})):b},"SidebarMenuItem",0,function({className:e,...a}){return(0,t.jsx)("li",{"data-slot":"sidebar-menu-item","data-sidebar":"menu-item",className:(0,s.cn)("group/menu-item relative",e),...a})},"SidebarMenuSkeleton",0,function({className:e,showIcon:r=!1,...n}){let i=a.useMemo(()=>`${Math.floor(40*Math.random())+50}%`,[]);return(0,t.jsxs)("div",{"data-slot":"sidebar-menu-skeleton","data-sidebar":"menu-skeleton",className:(0,s.cn)("flex h-8 items-center gap-2 rounded-md px-2",e),...n,children:[r&&(0,t.jsx)(p.Skeleton,{className:"size-4 rounded-md","data-sidebar":"menu-skeleton-icon"}),(0,t.jsx)(p.Skeleton,{className:"h-4 max-w-(--skeleton-width) flex-1","data-sidebar":"menu-skeleton-text",style:{"--skeleton-width":i}})]})},"SidebarMenuSub",0,function({className:e,...a}){return(0,t.jsx)("ul",{"data-slot":"sidebar-menu-sub","data-sidebar":"menu-sub",className:(0,s.cn)("border-sidebar-border mx-3.5 flex min-w-0 translate-x-px flex-col gap-1 border-l px-2.5 py-0.5","group-data-[collapsible=icon]:hidden",e),...a})},"SidebarMenuSubButton",0,function({asChild:e=!1,size:a="md",isActive:n=!1,className:i,...o}){let l=e?r.Slot:"a";return(0,t.jsx)(l,{"data-slot":"sidebar-menu-sub-button","data-sidebar":"menu-sub-button","data-size":a,"data-active":n,className:(0,s.cn)("text-sidebar-foreground ring-sidebar-ring hover:bg-sidebar-accent hover:text-sidebar-accent-foreground active:bg-sidebar-accent active:text-sidebar-accent-foreground [&>svg]:text-sidebar-accent-foreground flex h-7 min-w-0 -translate-x-px items-center gap-2 overflow-hidden rounded-md px-2 outline-hidden focu
1s-visible:ring-2 disabled:pointer-events-none disabled:opacity-50 aria-disabled:pointer-events-none aria-disabled:opacity-50 [&>span:last-child]:truncate [&>svg]:size-4 [&>svg]:shrink-0","data-[active=true]:bg-sidebar-accent data-[active=true]:text-sidebar-accent-foreground","sm"===a&&"text-xs","md"===a&&"text-sm","group-data-[collapsible=icon]:hidden",i),...o})},"SidebarMenuSubItem",0,function({className:e,...a}){return(0,t.jsx)("li",{"data-slot":"sidebar-menu-sub-item","data-sidebar":"menu-sub-item",className:(0,s.cn)("group/menu-sub-item relative",e),...a})},"SidebarProvider",0,function({defaultOpen:e=!0,open:r,onOpenChange:n,className:i,style:l,children:d,...c}){let u=o(),[p,m]=a.useState(!1),[h,x]=a.useState(e),v=r??h,w=a.useCallback(e=>{let t="function"==typeof e?e(v):e;n?n(t):x(t),window.localStorage.setItem(b,String(t))},[n,v]);a.useEffect(()=>{let e=window.localStorage.getItem(b);null!==e&&x("true"===e)},[]);let y=a.useCallback(()=>u?m(e=>!e):w(e=>!e),[u,w,m]);a.useEffect(()=>{let e=e=>{"b"===e.key&&(e.metaKey||e.ctrlKey)&&(e.preventDefault(),y())};return window.addEventListener("keydown",e),()=>window.removeEventListener("keydown",e)},[y]);let j=v?"expanded":"collapsed",C=a.useMemo(()=>({state:j,open:v,setOpen:w,isMobile:u,openMobile:p,setOpenMobile:m,toggleSidebar:y}),[j,v,w,u,p,m,y]);return(0,t.jsx)(g.Provider,{value:C,children:(0,t.jsx)(f.TooltipProvider,{delayDuration:0,children:(0,t.jsx)("div",{"data-slot":"sidebar-wrapper",style:{"--sidebar-width":"16rem","--sidebar-width-icon":"3rem",...l},className:(0,s.cn)("group/sidebar-wrapper has-data-[variant=inset]:bg-sidebar flex min-h-svh w-full",i),...c,children:d})})})},"SidebarRail",0,function({className:e,...a}){let{toggleSidebar:r}=m();return(0,t.jsx)("button",{"data-sidebar":"rail","data-slot":"sidebar-rail","aria-label":"Toggle Sidebar",tabIndex:-1,onClick:r,title:"Toggle Sidebar",className:(0,s.cn)("hover:after:bg-sidebar-border absolute inset-y-0 z-20 hidden w-4 -translate-x-1/2 transition-all ease-linear group-data-[side=left]:-right-4 group-data-[side=right]:left-0 after:absolute after:inset-y-0 after:left-1/2 after:w-[2px] sm:flex","in-data-[side=left]:cursor-w-resize in-data-[side=right]:cursor-e-resize","[[data-side=left][data-state=collapsed]_&]:cursor-e-resize [[data-side=right][data-state=collapsed]_&]:cursor-w-resize","hover:group-data-[collapsible=offcanvas]:bg-sidebar group-data-[collapsible=offcanvas]:translate-x-0 group-data-[collapsible=offcanvas]:after:left-full","[[data-side=left][data-collapsible=offcanvas]_&]:-right-2","[[data-side=right][data-collapsible=offcanvas]_&]:-left-2",e),...a})},"SidebarSeparator",0,function({className:e,...a}){return(0,t.jsx)(c.Separator,{"data-slot":"sidebar-separator","data-sidebar":"separator",className:(0,s.cn)("bg-sidebar-border mx-2 w-auto",e),...a})},"SidebarTrigger",0,function({className:e,onClick:a,...r}){let{toggleSidebar:n}=m();return(0,t.jsxs)(l.Button,{"data-sidebar":"trigger","data-slot":"sidebar-trigger",variant:"ghost",size:"icon",className:(0,s.cn)("size-7 cursor-pointer",e),onClick:e=>{a?.(e),n()},...r,children:[(0,t.jsx)(i,{}),(0,t.jsx)("span",{className:"sr-only",children:"Toggle Sidebar"})]})},"useSidebar",0,m],396644)},589121,961932,e=>{"use strict";var t=e.i(161614),a=e.i(620938),r=e.i(543836),n=e.i(923002),i=e.i(210454),o=e.i(579469),s=e.i(341764),l=e.i(652316),d=e.i(352608),c=e.i(924636),u=e.i(520057),p=e.i(809965),f=e.i(2746),b=e.i(534520),g=e.i(536561),m=Object.defineProperty,h=(e,t)=>m(e,"name",{value:t,configurable:!0}),[x,v]=(0,i.createContextScope)("Tooltip",[l.createPopperScope]),w=(0,l.createPopperScope)(),y="tooltip.open",[j,C]=x("TooltipProvider"),S=h(e=>{let{__scopeTooltip:r,delayDuration:n=700,skipDelayDuration:i=300,disableHoverableContent:o=!1,children:s}=e,l=a.useRef(!0),d=a.useRef(!1),c=a.useRef(0);return a.useEffect(()=>{let e=c.current;return()=>window.clearTimeout(e)},[]),(0,t.jsx)(j,{scope:r,isOpenDelayedRef:l,delayDuration:n,onOpen:a.useCallback(()=>{i<=0||(window.clearTimeout(c.current),l.current=!1)},[i]),onClose:a.useCallback(()=>{i<=0||(window.clearTimeout(c.current),c.current=window.setTimeout(()=>l.current=!0,i))},[i]),isPointerInTransitRef:d,onPointerInTransitChange:a.useCallback(e=>{d.current=e},[]),disableHoverableContent:o,children:s})},"TooltipProvider"),T="Tooltip",[E,k]=x(T),N=h(e=>{let{__scopeTooltip:r,children:n,open:i,defaultOpen:o,onOpenChange:d,disableHoverableContent:c,delayDuration:u}=e,p=C(T,e.__scopeTooltip),b=w(r),[g,m]=a.useState(null),[x,v]=a.useState(void 0),j=(0,s.useId)(),S=a.useRef(0),k=c??p.disableHoverableContent,N=u??p.delayDuration,P=a.useRef(!1),[R,L]=(0,f.useControllableState)({prop:i,defaultProp:o??!1,onChange:h(e=>{e?(p.onOpen(),document.dispatchEvent(new CustomEvent(y))):p.onClose(),d?.(e)}
1,"onChange"),caller:T}),I=a.useMemo(()=>R?P.current?"delayed-open":"instant-open":"closed",[R]),z=a.useCallback(()=>{window.clearTimeout(S.current),S.current=0,P.current=!1,L(!0)},[L]),_=a.useCallback(()=>{window.clearTimeout(S.current),S.current=0,L(!1)},[L]),M=a.useCallback(()=>{window.clearTimeout(S.current),S.current=window.setTimeout(()=>{P.current=!0,L(!0),S.current=0},N)},[N,L]);return a.useEffect(()=>()=>{S.current&&(window.clearTimeout(S.current),S.current=0)},[]),(0,t.jsx)(l.Root,{...b,children:(0,t.jsx)(E,{scope:r,contentId:x??j,setContentId:v,open:R,stateAttribute:I,trigger:g,onTriggerChange:m,onTriggerEnter:a.useCallback(()=>{p.isOpenDelayedRef.current?M():z()},[p.isOpenDelayedRef,M,z]),onTriggerLeave:a.useCallback(()=>{k?_():(window.clearTimeout(S.current),S.current=0)},[_,k]),onOpen:z,onClose:_,disableHoverableContent:k,children:n})})},"Tooltip"),P="TooltipTrigger",R=a.forwardRef(h(function(e,i){let{__scopeTooltip:o,...s}=e,d=k(P,o),c=C(P,o),p=w(o),f=a.useRef(null),b=(0,n.useComposedRefs)(i,f,d.onTriggerChange),g=a.useRef(!1),m=a.useRef(!1),h=a.useCallback(()=>g.current=!1,[]);return a.useEffect(()=>()=>document.removeEventListener("pointerup",h),[h]),(0,t.jsx)(l.Anchor,{asChild:!0,...p,children:(0,t.jsx)(u.Primitive.button,{"aria-describedby":d.open?d.contentId:void 0,"data-state":d.stateAttribute,...s,ref:b,onPointerMove:(0,r.composeEventHandlers)(e.onPointerMove,e=>{"touch"!==e.pointerType&&(m.current||c.isPointerInTransitRef.current||(d.onTriggerEnter(),m.current=!0))}),onPointerLeave:(0,r.composeEventHandlers)(e.onPointerLeave,()=>{d.onTriggerLeave(),m.current=!1}),onPointerDown:(0,r.composeEventHandlers)(e.onPointerDown,()=>{d.open&&d.onClose(),g.current=!0,document.addEventListener("pointerup",h,{once:!0})}),onFocus:(0,r.composeEventHandlers)(e.onFocus,()=>{g.current||d.onOpen()}),onBlur:(0,r.composeEventHandlers)(e.onBlur,d.onClose),onClick:(0,r.composeEventHandlers)(e.onClick,d.onClose)})})},"TooltipTrigger")),L="TooltipPortal",[I,z]=x(L,{forceMount:void 0}),_=h(e=>{let{__scopeTooltip:a,forceMount:r,children:n,container:i}=e,o=k(L,a);return(0,t.jsx)(I,{scope:a,forceMount:r,children:(0,t.jsx)(c.Presence,{present:r||o.open,children:(0,t.jsx)(d.Portal,{asChild:!0,container:i,children:n})})})},"TooltipPortal"),M="TooltipContent",O=a.forwardRef(h(function(e,a){let r=z(M,e.__scopeTooltip),{forceMount:n=r.forceMount,side:i="top",...o}=e,s=k(M,e.__scopeTooltip);return(0,t.jsx)(c.Presence,{present:n||s.open,children:s.disableHoverableContent?(0,t.jsx)(H,{side:i,...o,ref:a}):(0,t.jsx)(A,{side:i,...o,ref:a})})},"TooltipContent")),A=a.forwardRef(h(function(e,r){let i=k(M,e.__scopeTooltip),o=C(M,e.__scopeTooltip),s=a.useRef(null),l=(0,n.useComposedRefs)(r,s),[d,c]=a.useState(null),{trigger:u,onClose:p}=i,f=s.current,{onPointerInTransitChange:b}=o,g=a.useCallback(()=>{c(null),b(!1)},[b]),m=a.useCallback((e,t)=>{let a=e.currentTarget,r={x:e.clientX,y:e.clientY},n=B(r,a.getBoundingClientRect());c(U([...q(r,n),...G(t.getBoundingClientRect())])),b(!0)},[b]);return a.useEffect(()=>()=>g(),[g]),a.useEffect(()=>{if(u&&f){let e=h(e=>m(e,f),"handleTriggerLeave"),t=h(e=>m(e,u),"handleContentLeave");return u.addEventListener("pointerleave",e),f.addEventListener("pointerleave",t),()=>{u.removeEventListener("pointerleave",e),f.removeEventListener("pointerleave",t)}}},[u,f,m,g]),a.useEffect(()=>{if(d){let e=h(e=>{let t=e.target,a={x:e.clientX,y:e.clientY},r=u?.contains(t)||f?.contains(t),n=!K(a,d);r?g():n&&(g(),p())},"handleTrackPointerGrace");return document.addEventListener("pointermove",e),()=>document.removeEventListener("pointermove",e)}},[u,f,d,p,g]),(0,t.jsx)(H,{...e,ref:l})},"TooltipContentHoverable")),D=(0,p.createSlottable)("TooltipContent"),H=a.forwardRef(h(function(e,r){let{__scopeTooltip:n,children:i,"aria-label":s,id:d,onEscapeKeyDown:c,onPointerDownOutside:u,...p}=e,f=k(M,n),m=w(n),{onClose:x}=f;a.useEffect(()=>(document.addEventListener(y,x),()=>document.removeEventListener(y,x)),[x]),a.useEffect(()=>{if(f.trigger){let e=h(e=>{e.target instanceof Node&&e.target.contains(f.trigger)&&x()},"handleScroll");return window.addEventListener("scroll",e,{capture:!0}),()=>window.removeEventListener("scroll",e,{capture:!0})}},[f.trigger,x]);let{setContentId:v}=f;return(0,b.useLayoutEffect)(()=>
1(v(d),()=>{v(void 0)}),[d,v]),(0,t.jsx)(o.DismissableLayer,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:c,onPointerDownOutside:u,onFocusOutside:e=>e.preventDefault(),onDismiss:x,children:(0,t.jsxs)(l.Content,{"data-state":f.stateAttribute,role:s?void 0:"tooltip",id:s?void 0:f.contentId,...m,...p,ref:r,style:{...p.style,"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-tooltip-content-available-width":"var(--radix-popper-available-width)","--radix-tooltip-content-available-height":"var(--radix-popper-available-height)","--radix-tooltip-trigger-width":"var(--radix-popper-anchor-width)","--radix-tooltip-trigger-height":"var(--radix-popper-anchor-height)"},children:[(0,t.jsx)(D,{children:i}),s?(0,t.jsx)(g.Root,{id:f.contentId,role:"tooltip",children:s}):null]})})},"TooltipContentImpl")),F=a.forwardRef(h(function(e,a){let{__scopeTooltip:r,...n}=e,i=w(r);return(0,t.jsx)(l.Arrow,{...i,...n,ref:a})},"TooltipArrow"));function B(e,t){let a=Math.abs(t.top-e.y),r=Math.abs(t.bottom-e.y),n=Math.abs(t.right-e.x),i=Math.abs(t.left-e.x);switch(Math.min(a,r,n,i)){case i:return"left";case n:return"right";case a:return"top";case r:return"bottom";default:throw Error("unreachable")}}function q(e,t,a=5){let r=[];switch(t){case"top":r.push({x:e.x-a,y:e.y+a},{x:e.x+a,y:e.y+a});break;case"bottom":r.push({x:e.x-a,y:e.y-a},{x:e.x+a,y:e.y-a});break;case"left":r.push({x:e.x+a,y:e.y-a},{x:e.x+a,y:e.y+a});break;case"right":r.push({x:e.x-a,y:e.y-a},{x:e.x-a,y:e.y+a})}return r}function G(e){let{top:t,right:a,bottom:r,left:n}=e;return[{x:n,y:t},{x:a,y:t},{x:a,y:r},{x:n,y:r}]}function K(e,t){let{x:a,y:r}=e,n=!1;for(let e=0,i=t.length-1;e<t.length;i=e++){let o=t[e],s=t[i],l=o.x,d=o.y,c=s.x,u=s.y;d>r!=u>r&&a<(c-l)*(r-d)/(u-d)+l&&(n=!n)}return n}function U(e){let t=e.slice();return t.sort((e,t)=>e.x<t.x?-1:e.x>t.x?1:e.y<t.y?-1:1*!!(e.y>t.y)),V(t)}function V(e){if(e.length<=1)return e.slice();let t=[];for(let a=0;a<e.length;a++){let r=e[a];for(;t.length>=2;){let e=t[t.length-1],a=t[t.length-2];if((e.x-a.x)*(r.y-a.y)>=(e.y-a.y)*(r.x-a.x))t.pop();else break}t.push(r)}t.pop();let a=[];for(let t=e.length-1;t>=0;t--){let r=e[t];for(;a.length>=2;){let e=a[a.length-1],t=a[a.length-2];if((e.x-t.x)*(r.y-t.y)>=(e.y-t.y)*(r.x-t.x))a.pop();else break}a.push(r)}return(a.pop(),1===t.length&&1===a.length&&t[0].x===a[0].x&&t[0].y===a[0].y)?t:t.concat(a)}h(B,"getExitSideFromRect"),h(q,"getPaddedExitPoints"),h(G,"getPointsFromRect"),h(K,"isPointInPolygon"),h(U,"getHull"),h(V,"getHullPresorted"),e.s(["Arrow",0,F,"Content",0,O,"Portal",0,_,"Provider",0,S,"Root",0,N,"TooltipTrigger",0,R,"Trigger",0,R],961932),e.i(238249);var W=e.i(572592);function X({delayDuration:e=0,...a}){return(0,t.jsx)(S,{"data-slot":"tooltip-provider",delayDuration:e,...a})}e.s(["Tooltip",0,function({...e}){return(0,t.jsx)(X,{children:(0,t.jsx)(N,{"data-slot":"tooltip",...e})})},"TooltipContent",0,function({className:e,sideOffset:a=0,children:r,hideArrow:n=!1,...i}){return(0,t.jsx)(_,{children:(0,t.jsxs)(O,{"data-slot":"tooltip-content",sideOffset:a,className:(0,W.cn)("bg-primary text-primary-foreground animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-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 w-fit origin-(--radix-tooltip-content-transform-origin) rounded-md px-3 py-1.5 text-xs text-balance",e),...i,children:[r,!n&&(0,t.jsx)(F,{className:"bg-primary fill-primary z-50 size-2.5 translate-y-[calc(-50%_-_2px)] rotate-45 rounded-[2px]"})]})})},"TooltipProvider",0,X,"TooltipTrigger",0,function({...e}){return(0,t.jsx)(R,{"data-slot":"tooltip-trigger",...e})}],589121)}]);
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.