PageSourceSearch

https://visibilitykit.ai/_next/static/chunks/dca42eb47ccbd019.js

js visibilitykit.ai collected 2026-10-02 05:23:01 UTC 27,718 bytes, 1 lines download raw bytes

1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,207670,e=>{"use strict";function t(){for(var e,t,n=0,r="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=function e(t){var n,r,o="";if("string"==typeof t||"number"==typeof t)o+=t;else if("object"==typeof t)if(Array.isArray(t)){var a=t.length;for(n=0;n<a;n++)t[n]&&(r=e(t[n]))&&(o&&(o+=" "),o+=r)}else for(r in t)t[r]&&(o&&(o+=" "),o+=r);return o}(e))&&(r&&(r+=" "),r+=t);return r}e.s(["clsx",()=>t])},743985,258541,e=>{"use strict";let t=(...e)=>e.filter((e,t,n)=>!!e&&""!==e.trim()&&n.indexOf(e)===t).join(" ").trim();e.s(["mergeClasses",()=>t],743985);var n=e.i(271645),r={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};let o=(0,n.createContext)({}),a=(0,n.forwardRef)(({color:e,size:a,strokeWidth:i,absoluteStrokeWidth:s,className:l="",children:c,iconNode:u,...d},f)=>{let{size:m=24,strokeWidth:h=2,absoluteStrokeWidth:p=!1,color:v="currentColor",className:g=""}=(0,n.useContext)(o)??{},x=s??p?24*Number(i??h)/Number(a??m):i??h;return(0,n.createElement)("svg",{ref:f,...r,width:a??m??r.width,height:a??m??r.height,stroke:e??v,strokeWidth:x,className:t("lucide",g,l),...!c&&!(e=>{for(let t in e)if(t.startsWith("aria-")||"role"===t||"title"===t)return!0;return!1})(d)&&{"aria-hidden":"true"},...d},[...u.map(([e,t])=>(0,n.createElement)(e,t)),...Array.isArray(c)?c:[c]])});e.s(["default",()=>a],258541)},475254,e=>{"use strict";var t=e.i(271645),n=e.i(743985);let r=e=>{let t=e.replace(/^([A-Z])|[\s-_]+(\w)/g,(e,t,n)=>n?n.toUpperCase():t.toLowerCase());return t.charAt(0).toUpperCase()+t.slice(1)};var o=e.i(258541);let a=(e,a)=>{let i=(0,t.forwardRef)(({className:i,...s},l)=>(0,t.createElement)(o.default,{ref:l,iconNode:a,className:(0,n.mergeClasses)(`lucide-${r(e).replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase()}`,`lucide-${e}`,i),...s}));return i.displayName=r(e),i};e.s(["default",()=>a],475254)},543137,145586,191909,e=>{"use strict";function t(e,n){return e===n||!!(Array.isArray(e)&&Array.isArray(n))&&n.length===e.length&&e.every((e,r)=>t(e,n[r]))}e.s(["t",()=>t],145586);var n=e.i(271645);function r(e,o,a=(e,n)=>!t(e,n)){let[i,s]=(0,n.useState)(e);a(i,e)&&(o(e,i),s(e))}e.s(["useOnChange",()=>r],543137);let o=e=>"object"==typeof e&&null!=e&&1===e.nodeType,a=(e,t)=>(!t||"hidden"!==e)&&"visible"!==e&&"clip"!==e,i=(e,t)=>{if(e.clientHeight<e.scrollHeight||e.clientWidth<e.scrollWidth){let n,r=getComputedStyle(e,null);return a(r.overflowY,t)||a(r.overflowX,t)||!!(n=(e=>{if(!e.ownerDocument||!e.ownerDocument.defaultView)return null;try{return e.ownerDocument.defaultView.frameElement}catch(e){return null}})(e))&&(n.clientHeight<e.scrollHeight||n.clientWidth<e.scrollWidth)}return!1},s=(e,t,n,r,o,a,i,s)=>a<e&&i>t||a>e&&i<t?0:a<=e&&s<=n||i>=t&&s>=n?a-e-r:i>t&&s<n||a<e&&s>
1n?i-t+o:0,l=e=>{let t=e.parentElement;return null==t?e.getRootNode().host||null:t},c=(e,t)=>{var n,r,a,c;let u;if("u"<typeof document)return[];let{scrollMode:d,block:f,inline:m,boundary:h,skipOverflowHiddenElements:p}=t,v="function"==typeof h?h:e=>e!==h;if(!o(e))throw TypeError("Invalid target");let g=document.scrollingElement||document.documentElement,x=[],w=e;for(;o(w)&&v(w);){if((w=l(w))===g){x.push(w);break}null!=w&&w===document.body&&i(w)&&!i(document.documentElement)||null!=w&&i(w,p)&&x.push(w)}let b=null!=(r=null==(n=window.visualViewport)?void 0:n.width)?r:innerWidth,y=null!=(c=null==(a=window.visualViewport)?void 0:a.height)?c:innerHeight,{scrollX:j,scrollY:C}=window,{height:N,width:R,top:E,right:T,bottom:M,left:k}=e.getBoundingClientRect(),{top:P,right:L,bottom:S,left:I}={top:parseFloat((u=window.getComputedStyle(e)).scrollMarginTop)||0,right:parseFloat(u.scrollMarginRight)||0,bottom:parseFloat(u.scrollMarginBottom)||0,left:parseFloat(u.scrollMarginLeft)||0},D="start"===f||"nearest"===f?E-P:"end"===f?M+S:E+N/2-P+S,H="center"===m?k+R/2-I+L:"end"===m?T+L:k-I,F=[];for(let e=0;e<x.length;e++){let t=x[e],{height:n,width:r,top:o,right:a,bottom:l,left:c}=t.getBoundingClientRect();if("if-needed"===d&&E>=0&&k>=0&&M<=y&&T<=b&&(t===g&&!i(t)||E>=o&&M<=l&&k>=c&&T<=a))break;let u=getComputedStyle(t),h=parseInt(u.borderLeftWidth,10),p=parseInt(u.borderTopWidth,10),v=parseInt(u.borderRightWidth,10),w=parseInt(u.borderBottomWidth,10),P=0,L=0,S="offsetWidth"in t?t.offsetWidth-t.clientWidth-h-v:0,I="offsetHeight"in t?t.offsetHeight-t.clientHeight-p-w:0,A="offsetWidth"in t?0===t.offsetWidth?0:r/t.offsetWidth:0,_="offsetHeight"in t?0===t.offsetHeight?0:n/t.offsetHeight:0;if(g===t)P="start"===f?D:"end"===f?D-y:"nearest"===f?s(C,C+y,y,p,w,C+D,C+D+N,N):D-y/2,L="start"===m?H:"center"===m?H-b/2:"end"===m?H-b:s(j,j+b,b,h,v,j+H,j+H+R,R),P=Math.max(0,P+C),L=Math.max(0,L+j);else{P="start"===f?D-o-p:"end"===f?D-l+w+I:"nearest"===f?s(o,l,n,p,w+I,D,D+N,N):D-(o+n/2)+I/2,L="start"===m?H-c-h:"center"===m?H-(c+r/2)+S/2:"end"===m?H-a+v+S:s(c,a,r,h,v+S,H,H+R,R);let{scrollLeft:e,scrollTop:i}=t;P=0===_?0:Math.max(0,Math.min(i+P/_,t.scrollHeight-n/_+I)),L=0===A?0:Math.max(0,Math.min(e+L/A,t.scrollWidth-r/A+S)),D+=i-P,H+=e-L}F.push({el:t,top:P,left:L})}return F};function u(e,t){let n;if(!e.isConnected||!(e=>{let t=e;for(;t&&t.parentNode;){if(t.parentNode===document)return!0;t=t.parentNode instanceof ShadowRoot?t.parentNode.host:t.parentNode}return!1})(e))return;let r={top:parseFloat((n=window.getComputedStyle(e)).scrollMarginTop)||0,right:parseFloat(n.scrollMarginRight)||0,bottom:parseFloat(n.scrollMarginBottom)||0,left:parseFloat(n.scrollMarginLeft)||0};if("object"==typeof t&&"function"==typeof t.behavior)return t.behavior(c(e,t));let o="boolean"==typeof t||null==t?void 0:t.behavior;for(let{el:n,top:a,left:i}of c(e,!1===t?{block:"end",inline:"nearest"}:t===Object(t)&&0!==Object.keys(t).length?t:{block:"start",inline:"nearest"})){let e=a-r.top+r.bottom,t=i-r.left+r.right;n.scroll({top:e,left:t,behavior:o})}}e.s(["default",()=>u],191909)},864345,e=>{"use strict";e.s(["HomeLayout",()=>eS,"useHomeLayout",()=>eP],864345);var t=e.i(874072),n=e.i(187302);e.i(816374);var r=e.i(974030),o=e.i(843476);function a(e){return(0,o.jsx)("main",{id:"nd-home-layout",...e,className:(0,r.cn)("flex flex-1 flex-col [--fd-layout-width:1400px]",e.className)})}var i=e.i(713548),s=e.i(411150),l=e.i(271645),c=e.i(174080),u=e.i(30030),d=e.i(981140),f=e.i(248425),m=e.i(369340),h=e.i(820783),p=e.i(586318),v=e.i(296626),g=e.i(610772),x=e.i(75830),w=e.i(726330),b=e.i(934620),y=e.i(30207),j=Object.freeze({position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal"}),C=l.forwardRef((e,t)=>(0,o.jsx)(f.Primitive.span,{...e,ref:t,style:{...j,...e.style}}));C.displayName="VisuallyHidden";var N="NavigationMenu",[R,E,T]=(0,x.createCollection)(N),[M,k,P]=(0,x.createCollection)(N),[L,S]=(0,u.createContextScope)(N,[T,P]),[I,D]=L(N),[H,F]=L(N),A=l.forwardRef((e,t)=>{let{__scopeNavigationMenu:n,value:r,onValueChange:a,defaultValue:i,delayDuration:s=200,skipDelayDuration:c=300,orientation:u="horizontal",dir:d,...v}=e,[g,x]=l.useState(null),w=(0,h.useComposedRefs)(t,e=>x(e)),b=(0,p.useDirection)(d),y=l.useRef(0),j=l.useRef(0),C=l.useRef(0),[R,E]=l.useState(!0),[T,M]=(0,m.useControllableState)({prop:r,onChange:e=>{let t=c>
10;""!==e?(window.clearTimeout(C.current),t&&E(!1)):(window.clearTimeout(C.current),C.current=window.setTimeout(()=>E(!0),c)),a?.(e)},defaultProp:i??"",caller:N}),k=l.useCallback(()=>{window.clearTimeout(j.current),j.current=window.setTimeout(()=>M(""),150)},[M]),P=l.useCallback(e=>{window.clearTimeout(j.current),M(e)},[M]),L=l.useCallback(e=>{T===e?window.clearTimeout(j.current):y.current=window.setTimeout(()=>{window.clearTimeout(j.current),M(e)},s)},[T,M,s]);return l.useEffect(()=>()=>{window.clearTimeout(y.current),window.clearTimeout(j.current),window.clearTimeout(C.current)},[]),(0,o.jsx)(W,{scope:n,isRootMenu:!0,value:T,dir:b,orientation:u,rootNavigationMenu:g,onTriggerEnter:e=>{window.clearTimeout(y.current),R?L(e):P(e)},onTriggerLeave:()=>{window.clearTimeout(y.current),k()},onContentEnter:()=>window.clearTimeout(j.current),onContentLeave:k,onItemSelect:e=>{M(t=>t===e?"":e)},onItemDismiss:()=>M(""),children:(0,o.jsx)(f.Primitive.nav,{"aria-label":"Main","data-orientation":u,dir:b,...v,ref:w})})});A.displayName=N;var _="NavigationMenuSub";l.forwardRef((e,t)=>{let{__scopeNavigationMenu:n,value:r,onValueChange:a,defaultValue:i,orientation:s="horizontal",...l}=e,c=D(_,n),[u,d]=(0,m.useControllableState)({prop:r,onChange:a,defaultProp:i??"",caller:_});return(0,o.jsx)(W,{scope:n,isRootMenu:!1,value:u,dir:c.dir,orientation:s,rootNavigationMenu:c.rootNavigationMenu,onTriggerEnter:e=>d(e),onItemSelect:e=>d(e),onItemDismiss:()=>d(""),children:(0,o.jsx)(f.Primitive.div,{"data-orientation":s,...l,ref:t})})}).displayName=_;var W=e=>{let t,{scope:n,isRootMenu:r,rootNavigationMenu:a,dir:i,orientation:s,children:c,value:u,onItemSelect:d,onItemDismiss:f,onTriggerEnter:m,onTriggerLeave:h,onContentEnter:p,onContentLeave:v}=e,[x,w]=l.useState(null),[b,j]=l.useState(new Map),[C,N]=l.useState(null);return(0,o.jsx)(I,{scope:n,isRootMenu:r,rootNavigationMenu:a,value:u,previousValue:(t=l.useRef({value:u,previous:u}),l.useMemo(()=>(t.current.value!==u&&(t.current.previous=t.current.value,t.current.value=u),t.current.previous),[u])),baseId:(0,g.useId)(),dir:i,orientation:s,viewport:x,onViewportChange:w,indicatorTrack:C,onIndicatorTrackChange:N,onTriggerEnter:(0,y.useCallbackRef)(m),onTriggerLeave:(0,y.useCallbackRef)(h),onContentEnter:(0,y.useCallbackRef)(p),onContentLeave:(0,y.useCallbackRef)(v),onItemSelect:(0,y.useCallbackRef)(d),onItemDismiss:(0,y.useCallbackRef)(f),onViewportContentChange:l.useCallback((e,t)=>{j(n=>(n.set(e,t),new Map(n)))},[]),onViewportContentRemove:l.useCallback(e=>{j(t=>t.has(e)?(t.delete(e),new Map(t)):t)},[]),children:(0,o.jsx)(R.Provider,{scope:n,children:(0,o.jsx)(H,{scope:n,items:b,children:c})})})},O="NavigationMenuList",z=l.forwardRef((e,t)=>{let{__scopeNavigationMenu:n,...r}=e,a=D(O,n),i=(0,o.jsx)(f.Primitive.ul,{"data-orientation":a.orientation,...r,ref:t});return(0,o.jsx)(f.Primitive.div,{style:{position:"relative"},ref:a.onIndicatorTrackChange,children:(0,o.jsx)(R.Slot,{scope:n,children:a.isRootMenu?(0,o.jsx)(ei,{asChild:!0,children:i}):i})})});z.displayName=O;var V="NavigationMenuItem",[K,$]=L(V),U=l.forwardRef((e,t)=>{let{__scopeNavigationMenu:n,value:r,...a}=e,i=(0,g.useId)(),s=l.useRef(null),c=l.useRef(null),u=l.useRef(null),d=l.useRef(()=>{}),m=l.useRef(!1),h=l.useCallback((e="start")=>{if(s.current){d.current();let t=ec(s.current);t.length&&eu("start"===e?t:t.reverse())}},[]),p=l.useCallback(()=>{if(s.current){var e;let t=ec(s.current);t.length&&((e=t).forEach(e=>{e.dataset.tabindex=e.getAttribute("tabindex")||"",e.setAttribute("tabindex","-1")}),d.current=()=>{e.forEach(e=>{let t=e.dataset.tabindex;e.setAttribute("tabindex",t)})})}},[]);return(0,o.jsx)(K,{scope:n,value:r||i||"LEGACY_REACT_AUTO_VALUE",triggerRef:c,contentRef:s,focusProxyRef:u,wasEscapeCloseRef:m,onEntryKeyDown:h,onFocusProxyEnter:h,onRootContentClose:p,onContentFocusOutside:p,children:(0,o.jsx)(f.Primitive.li,{...a,ref:t})})});U.displayName=V;var B="NavigationMenuTrigger",Y=l.forwardRef((e,t)=>{let{__scopeNavigationMenu:n,disabled:r,...a}=e,i=D(B,e.__scopeNavigationMenu),s=$(B,e.__scopeNavigationMenu),c=l.useRef(null),u=(0,h.useComposedRefs)(c,s.triggerRef,t),m=em(i.baseId,s.value),p=eh(i.baseId,s.value),v=l.useRef(!1),g=l.useRef(!1),x=s.value===i.value;return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(R.ItemSlot,{scope:n,value:s.value,children:(0,o.jsx)(el,{asChild:!0,children:(0,o.jsx)(f.Primitive.button,{id:m,disabled:r,"data-disabled":r?"":void 0,"data-state":ef(x),"aria-expanded":x,"aria-controls":p,...a,ref:u,onPointerEnter:(0,d.composeEventHandlers)(e.onPointerEnter,()=>{g.current=!1,s.wasEscapeCloseRef.current=!1}),onPointerMove:(0,d.composeEventHandlers)(e.onPointerMove,ep(()=>{r||g.current||s.wasEscapeCloseRef.current||v.current||(i.onTriggerEnter(s.value),v.current=!0)})),onPointerLeave:(0,d.composeEventHandlers)(e.onPointerLeave,ep(()=>{r||(i.onTriggerLeave(),v.current=!1)})),onClick:(0,d.composeEventHandlers)(e.onClick,()=>{i.onItemSelect(s.value),g.current=x}),onKeyDown:(0,d.composeEventHandlers)(e.onKeyDown,e=>{let t={horizontal:"ArrowDown",vertical:"rtl"===i.dir?"ArrowLeft":"ArrowRight"}[i.orientation];x&&e.key===t&&(s.onEntryKeyDown(),e.preventDefault())})})})}),x&&(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(C,{"aria-hidden":!0,tabIndex:0,ref:s.focusProxyRef,onFocus:e=>{let t=s.contentRef.current,n=e.relatedTarget,r=n===c.current,o=t?.contains(n);(r||!o)&&s.onFocusProxyEnter(r?"start":"end")}}),i.viewport&&(0,o.jsx)("span",{"aria-owns":p})]})]})});Y.displayName=B;var G="navigationMenu.linkSelect",X=l.forwardRef((e,t)=>
1{let{__scopeNavigationMenu:n,active:r,onSelect:a,...i}=e;return(0,o.jsx)(el,{asChild:!0,children:(0,o.jsx)(f.Primitive.a,{"data-active":r?"":void 0,"aria-current":r?"page":void 0,...i,ref:t,onClick:(0,d.composeEventHandlers)(e.onClick,e=>{let t=e.target,n=new CustomEvent(G,{bubbles:!0,cancelable:!0});if(t.addEventListener(G,e=>a?.(e),{once:!0}),(0,f.dispatchDiscreteCustomEvent)(t,n),!n.defaultPrevented&&!e.metaKey){let e=new CustomEvent(et,{bubbles:!0,cancelable:!0});(0,f.dispatchDiscreteCustomEvent)(t,e)}},{checkForDefaultPrevented:!1})})})});X.displayName="NavigationMenuLink";var Z="NavigationMenuIndicator";l.forwardRef((e,t)=>{let{forceMount:n,...r}=e,a=D(Z,e.__scopeNavigationMenu),i=!!a.value;return a.indicatorTrack?c.default.createPortal((0,o.jsx)(v.Presence,{present:n||i,children:(0,o.jsx)(q,{...r,ref:t})}),a.indicatorTrack):null}).displayName=Z;var q=l.forwardRef((e,t)=>{let{__scopeNavigationMenu:n,...r}=e,a=D(Z,n),i=E(n),[s,c]=l.useState(null),[u,d]=l.useState(null),m="horizontal"===a.orientation,h=!!a.value;l.useEffect(()=>{let e=i(),t=e.find(e=>e.value===a.value)?.ref.current;t&&c(t)},[i,a.value]);let p=()=>{s&&d({size:m?s.offsetWidth:s.offsetHeight,offset:m?s.offsetLeft:s.offsetTop})};return ed(s,p),ed(a.indicatorTrack,p),u?(0,o.jsx)(f.Primitive.div,{"aria-hidden":!0,"data-state":h?"visible":"hidden","data-orientation":a.orientation,...r,ref:t,style:{position:"absolute",...m?{left:0,width:u.size+"px",transform:`translateX(${u.offset}px)`}:{top:0,height:u.size+"px",transform:`translateY(${u.offset}px)`},...r.style}}):null}),J="NavigationMenuContent",Q=l.forwardRef((e,t)=>{let{forceMount:n,...r}=e,a=D(J,e.__scopeNavigationMenu),i=$(J,e.__scopeNavigationMenu),s=(0,h.useComposedRefs)(i.contentRef,t),l=i.value===a.value,c={value:i.value,triggerRef:i.triggerRef,focusProxyRef:i.focusProxyRef,wasEscapeCloseRef:i.wasEscapeCloseRef,onContentFocusOutside:i.onContentFocusOutside,onRootContentClose:i.onRootContentClose,...r};return a.viewport?(0,o.jsx)(ee,{forceMount:n,...c,ref:s}):(0,o.jsx)(v.Presence,{present:n||l,children:(0,o.jsx)(en,{"data-state":ef(l),...c,ref:s,onPointerEnter:(0,d.composeEventHandlers)(e.onPointerEnter,a.onContentEnter),onPointerLeave:(0,d.composeEventHandlers)(e.onPointerLeave,ep(a.onContentLeave)),style:{pointerEvents:!l&&a.isRootMenu?"none":void 0,...c.style}})})});Q.displayName=J;var ee=l.forwardRef((e,t)=>{let{onViewportContentChange:n,onViewportContentRemove:r}=D(J,e.__scopeNavigationMenu);return(0,b.useLayoutEffect)(()=>{n(e.value,{ref:t,...e})},[e,t,n]),(0,b.useLayoutEffect)(()=>()=>r(e.value),[e.value,r]),null}),et="navigationMenu.rootContentDismiss",en=l.forwardRef((e,t)=>{let{__scopeNavigationMenu:n,value:r,triggerRef:a,focusProxyRef:i,wasEscapeCloseRef:s,onRootContentClose:c,onContentFocusOutside:u,...f}=e,m=D(J,n),p=l.useRef(null),v=(0,h.useComposedRefs)(p,t),g=em(m.baseId,r),x=eh(m.baseId,r),b=E(n),y=l.useRef(null),{onItemDismiss:j}=m;l.useEffect(()=>{let e=p.current;if(m.isRootMenu&&e){let t=()=>{j(),c(),e.contains(document.activeElement)&&a.current?.focus()};return e.addEventListener(et,t),()=>e.removeEventListener(et,t)}},[m.isRootMenu,e.value,a,j,c]);let C=l.useMemo(()=>{let e=b().map(e=>e.value);"rtl"===m.dir&&e.reverse();let t=e.indexOf(m.value),n=e.indexOf(m.previousValue),o=r===m.value,a=n===e.indexOf(r);if(!o&&!a)return y.current;let i=(()=>{if(t!==n){if(o&&-1!==n)return t>n?"from-end":"from-start";if(a&&-1!==t)return t>n?"to-start":"to-end"}return null})();return y.current=i,i},[m.previousValue,m.value,m.dir,b,r]);return(0,o.jsx)(ei,{asChild:!0,children:(0,o.jsx)(w.DismissableLayer,{id:x,"aria-labelledby":g,"data-motion":C,"data-orientation":m.orientation,...f,ref:v,disableOutsidePointerEvents:!1,onDismiss:()=>{let e=new Event(et,{bubbles:!0,cancelable:!0});p.current?.dispatchEvent(e)},onFocusOutside:(0,d.composeEventHandlers)(e.onFocusOutside,e=>{u();let t=e.target;m.rootNavigationMenu?.contains(t)&&e.preventDefault()}),onPointerDownOutside:(0,d.composeEventHandlers)(e.onPointerDownOutside,e=>{let t=e.target,n=b().some(e=>e.ref.current?.contains(t)),r=m.isRootMenu&&m.viewport?.contains(t);(n||r||!m.isRootMenu)&&e.preventDefault()}),onKeyDown:(0,d.composeEventHandlers)(e.onKeyDown,e=>{let t=e.altKey||e.ctrlKey||e.metaKey;if("Tab"===e.key&&!t){let t=ec(e.currentTarget),n=document.activeElement,r=t.findIndex(e=>e===n);eu(e.shiftKey?t.slice(0,r).reverse():t.slice(r+1,t.length))?e.preventDefault():i.current?.focus()}}),onEscapeKeyDown:(0,d.composeEventHandlers)(e.onEscapeKeyDown,e=>{s.current=!0})})})}),er="NavigationMenuViewport",eo=l.forwardRef((e,t)=>
1{let{forceMount:n,...r}=e,a=!!D(er,e.__scopeNavigationMenu).value;return(0,o.jsx)(v.Presence,{present:n||a,children:(0,o.jsx)(ea,{...r,ref:t})})});eo.displayName=er;var ea=l.forwardRef((e,t)=>{let{__scopeNavigationMenu:n,children:r,...a}=e,i=D(er,n),s=(0,h.useComposedRefs)(t,i.onViewportChange),c=F(J,e.__scopeNavigationMenu),[u,m]=l.useState(null),[p,g]=l.useState(null),x=u?u?.width+"px":void 0,w=u?u?.height+"px":void 0,b=!!i.value,y=b?i.value:i.previousValue;return ed(p,()=>{p&&m({width:p.offsetWidth,height:p.offsetHeight})}),(0,o.jsx)(f.Primitive.div,{"data-state":ef(b),"data-orientation":i.orientation,...a,ref:s,style:{pointerEvents:!b&&i.isRootMenu?"none":void 0,"--radix-navigation-menu-viewport-width":x,"--radix-navigation-menu-viewport-height":w,...a.style},onPointerEnter:(0,d.composeEventHandlers)(e.onPointerEnter,i.onContentEnter),onPointerLeave:(0,d.composeEventHandlers)(e.onPointerLeave,ep(i.onContentLeave)),children:Array.from(c.items).map(([e,{ref:t,forceMount:n,...r}])=>{let a=y===e;return(0,o.jsx)(v.Presence,{present:n||a,children:(0,o.jsx)(en,{...r,ref:(0,h.composeRefs)(t,e=>{a&&e&&g(e)})})},e)})})}),ei=l.forwardRef((e,t)=>{let{__scopeNavigationMenu:n,...r}=e,a=D("FocusGroup",n);return(0,o.jsx)(M.Provider,{scope:n,children:(0,o.jsx)(M.Slot,{scope:n,children:(0,o.jsx)(f.Primitive.div,{dir:a.dir,...r,ref:t})})})}),es=["ArrowRight","ArrowLeft","ArrowUp","ArrowDown"],el=l.forwardRef((e,t)=>{let{__scopeNavigationMenu:n,...r}=e,a=k(n),i=D("FocusGroupItem",n);return(0,o.jsx)(M.ItemSlot,{scope:n,children:(0,o.jsx)(f.Primitive.button,{...r,ref:t,onKeyDown:(0,d.composeEventHandlers)(e.onKeyDown,e=>{if(["Home","End",...es].includes(e.key)){let t=a().map(e=>e.ref.current);if(["rtl"===i.dir?"ArrowRight":"ArrowLeft","ArrowUp","End"].includes(e.key)&&t.reverse(),es.includes(e.key)){let n=t.indexOf(e.currentTarget);t=t.slice(n+1)}setTimeout(()=>eu(t)),e.preventDefault()}})})})});function ec(e){let t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:e=>{let t="INPUT"===e.tagName&&"hidden"===e.type;return e.disabled||e.hidden||t?NodeFilter.FILTER_SKIP:e.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function eu(e){let t=document.activeElement;return e.some(e=>e===t||(e.focus(),document.activeElement!==t))}function ed(e,t){let n=(0,y.useCallbackRef)(t);(0,b.useLayoutEffect)(()=>{let t=0;if(e){let r=new ResizeObserver(()=>{cancelAnimationFrame(t),t=window.requestAnimationFrame(n)});return r.observe(e),()=>{window.cancelAnimationFrame(t),r.unobserve(e)}}},[e,n])}function ef(e){return e?"open":"closed"}function em(e,t){return`${e}-trigger-${t}`}function eh(e,t){return`${e}-content-${t}`}function ep(e){return t=>"mouse"===t.pointerType?e(t):void 0}function ev({className:e,children:t,...n}){return(0,o.jsx)(U,{className:(0,r.cn)("list-none",e),...n,children:t})}function eg({className:e,children:t,...n}){return(0,o.jsx)(Y,{className:(0,r.cn)("data-[state=open]:bg-fd-accent/50",e),...n,children:t})}function ex({className:e,...t}){return(0,o.jsx)(Q,{className:(0,r.cn)("absolute inset-x-0 top-0 overflow-auto fd-scroll-container max-h-[80svh] data-[motion=from-end]:animate-fd-enterFromRight data-[motion=from-start]:animate-fd-enterFromLeft data-[motion=to-end]:animate-fd-exitToRight data-[motion=to-start]:animate-fd-exitToLeft",e),...t})}function ew({className:e,ref:t,...n}){return(0,o.jsx)("div",{ref:t,className:"flex w-full justify-center",children:(0,o.jsx)(eo,{...n,className:(0,r.cn)("relative h-(--radix-navigation-menu-viewport-height) w-full origin-[top_center] overflow-hidden transition-[width,height] duration-300 data-[state=closed]:animate-fd-nav-menu-out data-[state=open]:animate-fd-nav-menu-in",e)})})}var eb=e.i(647873),ey=e.i(664659),ej=e.i(763639);let eC=(0,e.i(225913).cva)("[&_svg]:size-4",{variants:{variant:{main:"inline-flex items-center gap-1 p-2 text-fd-muted-foreground transition-colors hover:text-fd-accent-foreground data-[active=true]:text-fd-primary",button:(0,i.buttonVariants)({color:"secondary",className:"gap-1.5"}),icon:(0,i.buttonVariants)({color:"ghost",size:"icon"})}},defaultVariants:{variant:"main"}});function eN(e){let{navItems:t,menuItems:n,slots:a,props:{nav:s}}=eP();return s?.component?s.component:(0,o.jsxs)(eE,{transparentMode:s?.transparentMode,...e,children:[a.navTitle&&(0,o.jsx)(a.navTitle,{className:"inline-flex items-center gap-2.5 font-semibold"}),s?.children,(0,o.jsx)("ul",{className:"flex flex-row items-center gap-2 px-6 max-sm:hidden",children:t.filter(e=>!eR(e)).map((e,t)=>(0,o.jsx)(eT,{item:e,className:"text-sm"},t))}),(0,o.jsxs)("div",{className:"flex flex-row items-center justify-end gap-1.5 flex-1 max-lg:hidden",children:[a.searchTrigger&&(0,o.jsx)(a.searchTrigger.full,{hideIfDisabled:!0,className:"w-full rounded-full ps-2.5 max-w-[240px]"}),a.themeSwitch&&(0,o.jsx)(a.themeSwitch,{}),a.languageSelect&&(0,o.jsx)(a.languageSelect.root,{children:(0,o.jsx)(ej.Languages,{className:"size-5"})}),(0,o.jsx)("ul",{className:"flex flex-row gap-2 items-center empty:hidden",children:t.filter(eR).map((e,t)=>(0,o.jsx)(eT,{className:(0,r.cn)("icon"===e.type&&"-mx-1 first:ms-0 last:me-0"),item:e},t))})]}),(0,o.jsxs)("div",{className:"flex flex-row items-center ms-auto -me-1.5 lg:hidden",children:[a.searchTrigger&&(0,o.jsx)(a.searchTrigger.sm,{hideIfDisabled:!0,className:"p-2"}),(0,o.jsx)(ev,{asChild:!0,children:(0,o.jsxs)("div",{children:[(0,o.jsx)(eg,{"aria-label":"Toggle Menu",className:(0,r.cn)((0,i.buttonVariants)({size:"icon",color:"ghost",className:"group [&_svg]:size-5.5"})),onPointerMove:s?.enableHoverToOpen?void 0:e=>e.preventDefault(),children:(0,o.jsx)(ey.ChevronDown,{className:"transition-transform duration-300 group-data-[state=open]:rotate-180"})}),(0,o.jsxs)(ex,{className:"flex flex-col p-4 sm:flex-row sm:items-center sm:justify-end",children:[n.filter(e=>!eR(e)).map((e,t)=>(0,o.jsx)(eM,{item:e,className:"sm:hidden"},t)),(0,o.jsxs)("div",{className:"-ms-1.5 flex flex-row items-center gap-2 max-sm:mt-2",children:[n.filter(eR).map((e,t)=>(0,o.jsx)(eM,{item:e,className:(0,r.cn)("icon"===e.type&&"-mx-1 first:ms-0")},t)),(0,o.jsx)("div",{role:"separator",className:"flex-1"}),a.languageSelect&&(0,o.jsxs)(a.languageSelect.root,{children:[(0,o.jsx)(ej.Languages,{className:"size-5"}),a.languageSelect.text&&(0,o.jsx)(a.languageSelect.text,{}),(0,o.jsx)(ey.ChevronDown,{className:"size-3 text-fd-muted-foreground"})]}),a.themeSwitch&&(0,o.jsx)(a.themeSwitch,{})]})]})]})})]})]})}function eR(e){return"secondary"in e&&null!=e.secondary?e.secondary:"icon"===e.type}function eE({transparentMode:e="none",...t}){let[n,a]=(0,l.useState)(""),i=(0,s.useIsScrollTop)({enabled:"top"===e})??!0;return(0,o.jsx)(A,{value:n,onValueChange:a,asChild:!0,children:(0,o.jsx)("header",{id:"nd-nav",...t,className:(0,r.cn)("sticky h-14 top-0 z-40",t.className),children:(0,o.jsxs)("div",{className:(0,r.cn)("backdrop-blur-lg border-b transition-colors *:mx-auto *:max-w-(--fd-layout-width)",n.length>0&&"max-lg:shadow-lg max-lg:rounded-b-2xl",(!("top"===e?i:"always"===e)||n.length>0)&&"bg-fd-background/80"),children:[(0,o.jsx)(z,{className:"flex h-14 w-full items-center px-4",asChild:!0,children:(0,o.jsx)("nav",{children:t.children})}),(0,o.jsx)(ew,{})]})})})}function eT({item:e,...n}){if("custom"===e.type)return e.children;if("menu"===e.type){let t=e.items.map((e,t)=>{if("custom"===e.type)return(0,o.jsx)(l.Fragment,{children:e.children},t);
1let{banner:n=e.icon?(0,o.jsx)("div",{className:"w-fit rounded-md border bg-fd-muted p-1 [&_svg]:size-4",children:e.icon}):null,...a}=e.menu??{};return(0,o.jsx)(X,{asChild:!0,children:(0,o.jsx)(eb.default,{href:e.url,external:e.external,...a,className:(0,r.cn)("flex flex-col gap-2 rounded-lg border bg-fd-card p-3 transition-colors hover:bg-fd-accent/80 hover:text-fd-accent-foreground",a.className),children:a.children??(0,o.jsxs)(o.Fragment,{children:[n,(0,o.jsx)("p",{className:"text-base font-medium",children:e.text}),(0,o.jsx)("p",{className:"text-sm text-fd-muted-foreground empty:hidden",children:e.description})]})})},`${t}-${e.url}`)});return(0,o.jsxs)(ev,{...n,children:[(0,o.jsx)(eg,{className:(0,r.cn)(eC(),"rounded-md"),children:e.url?(0,o.jsx)(eb.default,{href:e.url,external:e.external,children:e.text}):e.text}),(0,o.jsx)(ex,{className:"grid grid-cols-1 gap-2 p-4 md:grid-cols-2 lg:grid-cols-3",children:t})]})}return(0,o.jsx)(ev,{...n,children:(0,o.jsx)(X,{asChild:!0,children:(0,o.jsx)(t.LinkItem,{item:e,"aria-label":"icon"===e.type?e.label:void 0,className:(0,r.cn)(eC({variant:e.type})),children:"icon"===e.type?e.icon:e.text})})})}function eM({item:e,...n}){if("custom"===e.type)return(0,o.jsx)("div",{className:(0,r.cn)("grid",n.className),children:e.children});if("menu"===e.type){let t=(0,o.jsxs)(o.Fragment,{children:[e.icon,e.text]});return(0,o.jsxs)("div",{className:(0,r.cn)("mb-4 flex flex-col",n.className),children:[(0,o.jsx)("p",{className:"mb-1 text-sm text-fd-muted-foreground",children:e.url?(0,o.jsx)(X,{asChild:!0,children:(0,o.jsx)(eb.default,{href:e.url,external:e.external,children:t})}):t}),e.items.map((e,t)=>(0,o.jsx)(eM,{item:e},t))]})}return(0,o.jsx)(X,{asChild:!0,children:(0,o.jsxs)(t.LinkItem,{item:e,className:(0,r.cn)({main:"inline-flex items-center gap-2 py-1.5 transition-colors hover:text-fd-popover-foreground
1/50 data-[active=true]:font-medium data-[active=true]:text-fd-primary [&_svg]:size-4",icon:(0,i.buttonVariants)({size:"icon",color:"ghost"}),button:(0,i.buttonVariants)({color:"secondary",className:"gap-1.5 [&_svg]:size-4"})}[e.type??"main"],n.className),"aria-label":"icon"===e.type?e.label:void 0,children:[e.icon,"icon"===e.type?void 0:e.text]})})}let ek=(0,l.createContext)(null);function eP(){let e=(0,l.use)(ek);if(!e)throw Error("Please use this component under <HomeLayout /> (`fumadocs-ui/layouts/home`).");return e}let{useProvider:eL}=(0,t.baseSlots)({useProps:()=>eP().props});function eS(e){let{nav:{enabled:t=!0}={},slots:r,children:i,i18n:s,githubUrl:l,links:c,themeSwitch:u,searchToggle:d,...f}=e,{baseSlots:m,baseProps:h}=eL(e),p=(0,n.useLinkItems)(e),v={...m,header:r?.header??eN,container:r?.container??a};return(0,o.jsx)(ek,{value:{props:h,slots:v,...p},children:(0,o.jsxs)(v.container,{...f,children:[t&&(0,o.jsx)(v.header,{}),i]})})}}]);

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.