PageSourceSearch

https://www.alterim.ai/_next/static/chunks/9686-3f5e2b067fd18d65.js?dpl=dpl_HvgQsxijXm2f4RftGJwvAQH23cUq

js alterim.ai collected 2026-10-05 15:19:53 UTC 20,763 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9686],{45551:(e,t)=>{"use strict";t.Y=function(e,t){return e.split(",").map(function(e){var t=(e=e.trim()).match(r),i=t[1],a=t[2],s=t[3]||"",l={};return l.inverse=!!i&&"not"===i.toLowerCase(),l.type=a?a.toLowerCase():"all",s=s.match(/\([^\)]+\)/g)||[],l.expressions=s.map(function(e){var t=e.match(n),r=t[1].toLowerCase().match(o);return{modifier:r[1],feature:r[2],value:t[2]}}),l}).some(function(e){var r=e.inverse,n="all"===e.type||t.type===e.type;if(n&&r||!(n||r))return!1;var o=e.expressions.every(function(e){var r=e.feature,n=e.modifier,o=e.value,i=t[r];if(!i)return!1;switch(r){case"orientation":case"scan":return i.toLowerCase()===o.toLowerCase();case"width":case"height":case"device-width":case"device-height":o=u(o),i=u(i);break;case"resolution":o=l(o),i=l(i);break;case"aspect-ratio":case"device-aspect-ratio":case"device-pixel-ratio":o=s(o),i=s(i);break;case"grid":case"color":case"color-index":case"monochrome":o=parseInt(o,10)||1,i=parseInt(i,10)||0}switch(n){case"min":return i>=o;case"max":return i<=o;default:return i===o}});return o&&!r||!o&&r})};var r=/(?:(only|not)?\s*([^\s\(\)]+)(?:\s*and)?\s*)?(.+)?/i,n=/\(\s*([^\s\:\)]+)\s*(?:\:\s*([^\s\)]+))?\s*\)/,o=/^(?:(min|max)-)?(.+)/,i=/(em|rem|px|cm|mm|in|pt|pc)?$/,a=/(dpi|dpcm|dppx)?$/;function s(e){var t,r=Number(e);return r||(r=(t=e.match(/^(\d+)\s*\/\s*(\d+)$/))[1]/t[2]),r}function l(e){var t=parseFloat(e);switch(String(e).match(a)[1]){case"dpcm":return t/2.54;case"dppx":return 96*t;default:return t}}function u(e){var t=parseFloat(e);switch(String(e).match(i)[1]){case"em":case"rem":return 16*t;case"cm":return 96*t/2.54;case"mm":return 96*t/2.54/10;case"in":return 96*t;case"pt":return 72*t;case"pc":return 72*t/12;default:return t}}},38740:(e,t,r)=>{"use strict";var n=r(45551).Y,o="undefined"!=typeof window?window.matchMedia:null;function i(e,t,r){var i,a=this;function s(e){a.matches=e.matches,a.media=e.media}o&&!r&&(i=o.call(window,e)),i?(this.matches=i.matches,this.media=i.media,i.addListener(s)):(this.matches=n(e,t),this.media=e),this.addListener=function(e){i&&i.addListener(e)},this.removeListener=function(e){i&&i.removeListener(e)},this.dispose=function(){i&&i.removeListener(s)}}e.exports=function(e,t,r){return new i(e,t,r)}},65192:(e,t,r)=>{"use strict";var n=r(80859);function o(){}function i(){}i.resetWarningCache=o,e.exports=function(){function e(e,t,r,o,i,a){if(a!==n){var s=Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw s.name="Invariant Violation",s}}function t(){return e}e.isRequired=e;var r={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:i,resetWarningCache:o};return r.PropTypes=r,r}},81996:(e,t,r)=>{e.exports=r(65192)()},80859:e=>{"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},68190:(e,t,r)=>{"use strict";r.d(t,{Ub:()=>k});var n=r(12115),o=r(38740),i=r.n(o),a=/[A-Z]/g,s=/^ms-/,l={};function u(e){return"-"+e.toLowerCase()}let c=function(e){if(l.hasOwnProperty(e))return l[e];var t=e.replace(a,u);return l[e]=s.test(t)?"-"+t:t};var d=r(81996),f=r.n(d);let v=f().oneOfType([f().string,f().number]),m={all:f().bool,grid:f().bool,aural:f().bool,braille:f().bool,handheld:f().bool,print:f().bool,projection:f().bool,screen:f().bool,tty:f().bool,tv:f().bool,embossed:f().bool},{type:p,...h}={orientation:f().oneOf(["portrait","landscape"]),scan:f().oneOf(["progressive","interlace"]),aspectRatio:f().string,deviceAspectRatio:f().string,height:v,deviceHeight:v,width:v,deviceWidth:v,color:f().bool,colorIndex:f().bool,monochrome:f().bool,resolution:v,type:Object.keys(m)},w={minAspectRatio:f().string,maxAspectRatio:f().string,minDeviceAspectRatio:f().string,maxDeviceAspectRatio:f().string,minHeight:v,maxHeight:v,minDeviceHeight:v,maxDeviceHeight:v,minWidth:v,maxWidth:v,minDeviceWidth:v,maxDeviceWidth:v,minColor:f().number,maxColor:f().number,minColorIndex:f().number,maxColorIndex:f().number,minMonochrome:f().number,maxMonochrome:f().number,minResolution:v,maxResolution:v,...h};var g={all:{...m,...w}};let x=e=>`not ${e}`,b=(e,t)=>{let r=c(e);return("number"==typeof t&&(t=`${t}px`),!0===t)?r:!1===t?x(r):`(${r}: ${t})`},y=e=>e.join(" and "),R=e=>{let t=[];return Object.keys(g.all).forEach(r=>{let n=e[r];null!=n&&t.push(b(r,n))}),y(t)},C=(0,n.createContext)(void 0),E=e=>e.query||R(e),T=e=>{if(e)return Object.keys(e).reduce((t,r)=>(t[c(r)]=e[r],t),{})},j=()=>{let e=(0,n.useRef)(!1);return(0,n.useEffect)(()=>{e.current=!0},[]),e.current},M=e=>{let t=(0,n.useContext)(C),r=()=>
1T(e)||T(t),[o,i]=(0,n.useState)(r);return(0,n.useEffect)(()=>{let e=r();!function(e,t){if(e===t)return!0;if(!e||!t)return!1;let r=Object.keys(e),n=Object.keys(t),o=r.length;if(n.length!==o)return!1;for(let n=0;n<o;n++){let o=r[n];if(e[o]!==t[o]||!Object.prototype.hasOwnProperty.call(t,o))return!1}return!0}(o,e)&&i(e)},[e,t]),o},N=e=>{let t=()=>E(e),[r,o]=(0,n.useState)(t);return(0,n.useEffect)(()=>{let e=t();r!==e&&o(e)},[e]),r},L=(e,t)=>{let r=()=>i()(e,t||{},!!t),[o,a]=(0,n.useState)(r),s=j();return(0,n.useEffect)(()=>{if(s){let e=r();return a(e),()=>{e&&e.dispose()}}},[e,t]),o},P=e=>{let[t,r]=(0,n.useState)(e.matches);return(0,n.useEffect)(()=>{let t=e=>{r(e.matches)};return e.addListener(t),r(e.matches),()=>{e.removeListener(t)}},[e]),t},k=(e,t,r)=>{let o=M(t),i=N(e);if(!i)throw Error("Invalid or missing MediaQuery!");let a=L(i,o),s=P(a),l=j();return(0,n.useEffect)(()=>{l&&r&&r(s)},[s]),(0,n.useEffect)(()=>()=>{a&&a.dispose()},[]),s}},31219:(e,t,r)=>{"use strict";r.d(t,{UC:()=>eR,C1:()=>ey,q7:()=>eg,N_:()=>eb,B8:()=>ew,bL:()=>eh,l9:()=>ex,LM:()=>eC});var n,o=r(12115),i=r(47650),a=r(18166),s=r(93610),l=r(23360),u=r(1488),c=r(88068),d=r(95155),f=o.createContext(void 0),v=r(17028),m=r(67668);function p(e,t,r){if(!t.has(e))throw TypeError("attempted to "+r+" private field on non-instance");return t.get(e)}var h=r(12317);function w(e){let t=e+"CollectionProvider",[r,n]=(0,a.A)(t),[i,s]=r(t,{collectionRef:{current:null},itemMap:new Map}),l=e=>{let{scope:t,children:r}=e,n=o.useRef(null),a=o.useRef(new Map).current;return(0,d.jsx)(i,{scope:t,itemMap:a,collectionRef:n,children:r})};l.displayName=t;let u=e+"CollectionSlot",f=(0,h.TL)(u),v=o.forwardRef((e,t)=>{let{scope:r,children:n}=e,o=s(u,r),i=(0,c.s)(t,o.collectionRef);return(0,d.jsx)(f,{ref:i,children:n})});v.displayName=u;let m=e+"CollectionItemSlot",p="data-radix-collection-item",w=(0,h.TL)(m),g=o.forwardRef((e,t)=>{let{scope:r,children:n,...i}=e,a=o.useRef(null),l=(0,c.s)(t,a),u=s(m,r);return o.useEffect(()=>(u.itemMap.set(a,{ref:a,...i}),()=>void u.itemMap.delete(a))),(0,d.jsx)(w,{[p]:"",ref:l,children:n})});return g.displayName=m,[{Provider:l,Slot:v,ItemSlot:g},function(t){let r=s(e+"CollectionConsumer",t);return o.useCallback(()=>{let e=r.collectionRef.current;if(!e)return[];let t=Array.from(e.querySelectorAll("[".concat(p,"]")));return Array.from(r.itemMap.values()).sort((e,r)=>t.indexOf(e.ref.current)-t.indexOf(r.ref.current))},[r.collectionRef,r.itemMap])},n]}var g=r(59674),x=r(46611),b=r(41524),y=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"}),R=o.forwardRef((e,t)=>(0,d.jsx)(l.sG.span,{...e,ref:t,style:{...y,...e.style}}));R.displayName="VisuallyHidden";var C="NavigationMenu",[E,T,j]=w(C),[M,N,L]=w(C),[P,k]=(0,a.A)(C,[j,L]),[I,O]=P(C),[S,_]=P(C),A=o.forwardRef((e,t)=>{let{__scopeNavigationMenu:r,value:n,onValueChange:i,defaultValue:a,delayDuration:s=200,skipDelayDuration:v=300,orientation:m="horizontal",dir:p,...h}=e,[w,g]=o.useState(null),x=(0,c.s)(t,e=>g(e)),b=function(e){let t=o.useContext(f);return e||t||"ltr"}(p),y=o.useRef(0),R=o.useRef(0),E=o.useRef(0),[T,j]=o.useState(!0),[M,N]=(0,u.i)({prop:n,onChange:e=>{let t=v>0;""!==e?(window.clearTimeout(E.current),t&&j(!1)):(window.clearTimeout(E.current),E.current=window.setTimeout(()=>j(!0),v)),null==i||i(e)},defaultProp:null!=a?a:"",caller:C}),L=o.useCallback(()=>{window.clearTimeout(R.current),R.current=window.setTimeout(()=>N(""),150)},[N]),P=o.useCallback(e=>{window.clearTimeout(R.current),N(e)},[N]),k=o.useCallback(e=>{M===e?window.clearTimeout(R.current):y.current=window.setTimeout(()=>{window.clearTimeout(R.current),N(e)},s)},[M,N,s]);return o.useEffect(()=>()=>{window.clearTimeout(y.current),window.clearTimeout(R.current),window.clearTimeout(E.current)},[]),(0,d.jsx)(K,{scope:r,isRootMenu:!0,value:M,dir:b,orientation:m,rootNavigationMenu:w,onTriggerEnter:e=>{window.clearTimeout(y.current),T?k(e):P(e)},onTriggerLeave:()=>{window.clearTimeout(y.current),L()},onContentEnter:()=>window.clearTimeout(R.current),onContentLeave:L,onItemSelect:e=>{N(t=>t===e?"":e)},onItemDismiss:()=>N(""),children:(0,d.jsx)(l.sG.nav,{"aria-label":"Main","data-orientation":m,dir:b,...h,ref:x})})});A.displayName=C;var D="NavigationMenuSub";o.forwardRef((e,t)=>
1{let{__scopeNavigationMenu:r,value:n,onValueChange:o,defaultValue:i,orientation:a="horizontal",...s}=e,c=O(D,r),[f,v]=(0,u.i)({prop:n,onChange:o,defaultProp:null!=i?i:"",caller:D});return(0,d.jsx)(K,{scope:r,isRootMenu:!1,value:f,dir:c.dir,orientation:a,rootNavigationMenu:c.rootNavigationMenu,onTriggerEnter:e=>v(e),onItemSelect:e=>v(e),onItemDismiss:()=>v(""),children:(0,d.jsx)(l.sG.div,{"data-orientation":a,...s,ref:t})})}).displayName=D;var K=e=>{let{scope:t,isRootMenu:r,rootNavigationMenu:n,dir:i,orientation:a,children:s,value:l,onItemSelect:u,onItemDismiss:c,onTriggerEnter:f,onTriggerLeave:v,onContentEnter:p,onContentLeave:h}=e,[w,g]=o.useState(null),[x,y]=o.useState(new Map),[R,C]=o.useState(null);return(0,d.jsx)(I,{scope:t,isRootMenu:r,rootNavigationMenu:n,value:l,previousValue:function(e){let t=o.useRef({value:e,previous:e});return o.useMemo(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}(l),baseId:(0,m.B)(),dir:i,orientation:a,viewport:w,onViewportChange:g,indicatorTrack:R,onIndicatorTrackChange:C,onTriggerEnter:(0,b.c)(f),onTriggerLeave:(0,b.c)(v),onContentEnter:(0,b.c)(p),onContentLeave:(0,b.c)(h),onItemSelect:(0,b.c)(u),onItemDismiss:(0,b.c)(c),onViewportContentChange:o.useCallback((e,t)=>{y(r=>(r.set(e,t),new Map(r)))},[]),onViewportContentRemove:o.useCallback(e=>{y(t=>t.has(e)?(t.delete(e),new Map(t)):t)},[]),children:(0,d.jsx)(E.Provider,{scope:t,children:(0,d.jsx)(S,{scope:t,items:x,children:s})})})},F="NavigationMenuList",G=o.forwardRef((e,t)=>{let{__scopeNavigationMenu:r,...n}=e,o=O(F,r),i=(0,d.jsx)(l.sG.ul,{"data-orientation":o.orientation,...n,ref:t});return(0,d.jsx)(l.sG.div,{style:{position:"relative"},ref:o.onIndicatorTrackChange,children:(0,d.jsx)(E.Slot,{scope:r,children:o.isRootMenu?(0,d.jsx)(ea,{asChild:!0,children:i}):i})})});G.displayName=F;var W="NavigationMenuItem",[V,H]=P(W),z=o.forwardRef((e,t)=>{let{__scopeNavigationMenu:r,value:n,...i}=e,a=(0,m.B)(),s=o.useRef(null),u=o.useRef(null),c=o.useRef(null),f=o.useRef(()=>{}),v=o.useRef(!1),p=o.useCallback(function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"start";if(s.current){f.current();let t=eu(s.current);t.length&&ec("start"===e?t:t.reverse())}},[]),h=o.useCallback(()=>{if(s.current){let e=eu(s.current);e.length&&(f.current=function(e){return e.forEach(e=>{e.dataset.tabindex=e.getAttribute("tabindex")||"",e.setAttribute("tabindex","-1")}),()=>{e.forEach(e=>{let t=e.dataset.tabindex;e.setAttribute("tabindex",t)})}}(e))}},[]);return(0,d.jsx)(V,{scope:r,value:n||a||"LEGACY_REACT_AUTO_VALUE",triggerRef:u,contentRef:s,focusProxyRef:c,wasEscapeCloseRef:v,onEntryKeyDown:p,onFocusProxyEnter:p,onRootContentClose:h,onContentFocusOutside:h,children:(0,d.jsx)(l.sG.li,{...i,ref:t})})});z.displayName=W;var U="NavigationMenuTrigger",$=o.forwardRef((e,t)=>{let{__scopeNavigationMenu:r,disabled:n,...i}=e,a=O(U,e.__scopeNavigationMenu),u=H(U,e.__scopeNavigationMenu),f=o.useRef(null),v=(0,c.s)(f,u.triggerRef,t),m=ev(a.baseId,u.value),p=em(a.baseId,u.value),h=o.useRef(!1),w=o.useRef(!1),g=u.value===a.value;return(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(E.ItemSlot,{scope:r,value:u.value,children:(0,d.jsx)(el,{asChild:!0,children:(0,d.jsx)(l.sG.button,{id:m,disabled:n,"data-disabled":n?"":void 0,"data-state":ef(g),"aria-expanded":g,"aria-controls":p,...i,ref:v,onPointerEnter:(0,s.mK)(e.onPointerEnter,()=>{w.current=!1,u.wasEscapeCloseRef.current=!1}),onPointerMove:(0,s.mK)(e.onPointerMove,ep(()=>{n||w.current||u.wasEscapeCloseRef.current||h.current||(a.onTriggerEnter(u.value),h.current=!0)})),onPointerLeave:(0,s.mK)(e.onPointerLeave,ep(()=>{n||(a.onTriggerLeave(),h.current=!1)})),onClick:(0,s.mK)(e.onClick,()=>{a.onItemSelect(u.value),w.current=g}),onKeyDown:(0,s.mK)(e.onKeyDown,e=>{let t={horizontal:"ArrowDown",vertical:"rtl"===a.dir?"ArrowLeft":"ArrowRight"}[a.orientation];g&&e.key===t&&(u.onEntryKeyDown(),e.preventDefault())})})})}),g&&(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(R,{"aria-hidden":!0,tabIndex:0,ref:u.focu
1sProxyRef,onFocus:e=>{let t=u.contentRef.current,r=e.relatedTarget,n=r===f.current,o=null==t?void 0:t.contains(r);(n||!o)&&u.onFocusProxyEnter(n?"start":"end")}}),a.viewport&&(0,d.jsx)("span",{"aria-owns":p})]})]})});$.displayName=U;var q="navigationMenu.linkSelect",Y=o.forwardRef((e,t)=>{let{__scopeNavigationMenu:r,active:n,onSelect:o,...i}=e;return(0,d.jsx)(el,{asChild:!0,children:(0,d.jsx)(l.sG.a,{"data-active":n?"":void 0,"aria-current":n?"page":void 0,...i,ref:t,onClick:(0,s.mK)(e.onClick,e=>{let t=e.target,r=new CustomEvent(q,{bubbles:!0,cancelable:!0});if(t.addEventListener(q,e=>null==o?void 0:o(e),{once:!0}),(0,l.hO)(t,r),!r.defaultPrevented&&!e.metaKey){let e=new CustomEvent(et,{bubbles:!0,cancelable:!0});(0,l.hO)(t,e)}},{checkForDefaultPrevented:!1})})})});Y.displayName="NavigationMenuLink";var B="NavigationMenuIndicator",Q=o.forwardRef((e,t)=>{let{forceMount:r,...n}=e,o=O(B,e.__scopeNavigationMenu),a=!!o.value;return o.indicatorTrack?i.createPortal((0,d.jsx)(v.C,{present:r||a,children:(0,d.jsx)(X,{...n,ref:t})}),o.indicatorTrack):null});Q.displayName=B;var X=o.forwardRef((e,t)=>{let{__scopeNavigationMenu:r,...n}=e,i=O(B,r),a=T(r),[s,u]=o.useState(null),[c,f]=o.useState(null),v="horizontal"===i.orientation,m=!!i.value;o.useEffect(()=>{var e;let t=null===(e=a().find(e=>e.value===i.value))||void 0===e?void 0:e.ref.current;t&&u(t)},[a,i.value]);let p=()=>{s&&f({size:v?s.offsetWidth:s.offsetHeight,offset:v?s.offsetLeft:s.offsetTop})};return ed(s,p),ed(i.indicatorTrack,p),c?(0,d.jsx)(l.sG.div,{"aria-hidden":!0,"data-state":m?"visible":"hidden","data-orientation":i.orientation,...n,ref:t,style:{position:"absolute",...v?{left:0,width:c.size+"px",transform:"translateX(".concat(c.offset,"px)")}:{top:0,height:c.size+"px",transform:"translateY(".concat(c.offset,"px)")},...n.style}}):null}),Z="NavigationMenuContent",J=o.forwardRef((e,t)=>{let{forceMount:r,...n}=e,o=O(Z,e.__scopeNavigationMenu),i=H(Z,e.__scopeNavigationMenu),a=(0,c.s)(i.contentRef,t),l=i.value===o.value,u={value:i.value,triggerRef:i.triggerRef,focusProxyRef:i.focusProxyRef,wasEscapeCloseRef:i.wasEscapeCloseRef,onContentFocusOutside:i.onContentFocusOutside,onRootContentClose:i.onRootContentClose,...n};return o.viewport?(0,d.jsx)(ee,{forceMount:r,...u,ref:a}):(0,d.jsx)(v.C,{present:r||l,children:(0,d.jsx)(er,{"data-state":ef(l),...u,ref:a,onPointerEnter:(0,s.mK)(e.onPointerEnter,o.onContentEnter),onPointerLeave:(0,s.mK)(e.onPointerLeave,ep(o.onContentLeave)),style:{pointerEvents:!l&&o.isRootMenu?"none":void 0,...u.style}})})});J.displayName=Z;var ee=o.forwardRef((e,t)=>{let{onViewportContentChange:r,onViewportContentRemove:n}=O(Z,e.__scopeNavigationMenu);return(0,x.N)(()=>{r(e.value,{ref:t,...e})},[e,t,r]),(0,x.N)(()=>()=>n(e.value),[e.value,n]),null}),et="navigationMenu.rootContentDismiss",er=o.forwardRef((e,t)=>{let{__scopeNavigationMenu:r,value:n,triggerRef:i,focusProxyRef:a,wasEscapeCloseRef:l,onRootContentClose:u,onContentFocusOutside:f,...v}=e,m=O(Z,r),p=o.useRef(null),h=(0,c.s)(p,t),w=ev(m.baseId,n),x=em(m.baseId,n),b=T(r),y=o.useRef(null),{onItemDismiss:R}=m;o.useEffect(()=>{let e=p.current;if(m.isRootMenu&&e){let t=()=>{var t;R(),u(),e.contains(document.activeElement)&&(null===(t=i.current)||void 0===t||t.focus())};return e.addEventListener(et,t),()=>e.removeEventListener(et,t)}},[m.isRootMenu,e.value,i,R,u]);let C=o.useMemo(()=>{let e=b().map(e=>e.value);"rtl"===m.dir&&e.reverse();let t=e.indexOf(m.value),r=e.indexOf(m.previousValue),o=n===m.value,i=r===e.indexOf(n);if(!o&&!i)return y.current;let a=(()=>{if(t!==r){if(o&&-1!==r)return t>r?"from-end":"from-start";if(i&&-1!==t)return t>r?"to-start":"to-end"}return null})();return y.current=a,a},[m.previousValue,m.value,m.dir,b,n]);return(0,d.jsx)(ea,{asChild:!0,children:(0,d.jsx)(g.qW,{id:x,"aria-labelledby":w,"data-motion":C,"data-orientation":m.orientation,...v,ref:h,disableOutsidePointerEvents:!1,onDismiss:()=>{var e;let t=new Event(et,{bubbles:!0,cancelable:!0});null===(e=p.current)||void 0===e||e.dispatchEvent(t)},onFocusOutside:(0,s.mK)(e.onFocusOutside,e=>{var t;f();let r=e.target;(null===(t=m.rootNavigationMenu)||void 0===t?void 0:t.contains(r))&&e.preventDefault()}),onPointerDownOutside:(0,s.mK)(e.onPointerDownOutside,e=>{var t;let r=e.target,n=b().some(e=>{var t;return null===(t=e.ref.current)||void 0===t?void 0:t.contains(r)}),o=m.isRootMenu&&(null===(t=m.viewport)||void 0===t?void 0:t.contains(r));(n||o||!m.isRootMenu)&&e.preventDefault()}),onKeyDown:(0,s.mK)(e.onKeyDown,e=>{let t=e.altKey||e.ctrlKey||e.metaKey;if("Tab"===e.key&&!t){let t=eu(e.currentTarget),n=document.activeElement,o=t.findIndex(e=>e===n);if(ec(e.shiftKey?t.slice(0,o).reverse():t.slice(o+1,t.length)))e.preventDefault();else{var r;null===(r=a.current)||void 0===r||r.focus()}}}),onEscapeKeyDown:(0,s.mK)(e.onEscapeKeyDown,e=>{l.current=!0})})})}),en="NavigationMenuViewport",eo=o.forwardRef((e,t)=>
1{let{forceMount:r,...n}=e,o=!!O(en,e.__scopeNavigationMenu).value;return(0,d.jsx)(v.C,{present:r||o,children:(0,d.jsx)(ei,{...n,ref:t})})});eo.displayName=en;var ei=o.forwardRef((e,t)=>{let{__scopeNavigationMenu:r,children:n,...i}=e,a=O(en,r),u=(0,c.s)(t,a.onViewportChange),f=_(Z,e.__scopeNavigationMenu),[m,p]=o.useState(null),[h,w]=o.useState(null),g=m?(null==m?void 0:m.width)+"px":void 0,x=m?(null==m?void 0:m.height)+"px":void 0,b=!!a.value,y=b?a.value:a.previousValue;return ed(h,()=>{h&&p({width:h.offsetWidth,height:h.offsetHeight})}),(0,d.jsx)(l.sG.div,{"data-state":ef(b),"data-orientation":a.orientation,...i,ref:u,style:{pointerEvents:!b&&a.isRootMenu?"none":void 0,"--radix-navigation-menu-viewport-width":g,"--radix-navigation-menu-viewport-height":x,...i.style},onPointerEnter:(0,s.mK)(e.onPointerEnter,a.onContentEnter),onPointerLeave:(0,s.mK)(e.onPointerLeave,ep(a.onContentLeave)),children:Array.from(f.items).map(e=>{let[t,{ref:r,forceMount:n,...o}]=e,i=y===t;return(0,d.jsx)(v.C,{present:n||i,children:(0,d.jsx)(er,{...o,ref:(0,c.t)(r,e=>{i&&e&&w(e)})})},t)})})}),ea=o.forwardRef((e,t)=>{let{__scopeNavigationMenu:r,...n}=e,o=O("FocusGroup",r);return(0,d.jsx)(M.Provider,{scope:r,children:(0,d.jsx)(M.Slot,{scope:r,children:(0,d.jsx)(l.sG.div,{dir:o.dir,...n,ref:t})})})}),es=["ArrowRight","ArrowLeft","ArrowUp","ArrowDown"],el=o.forwardRef((e,t)=>{let{__scopeNavigationMenu:r,...n}=e,o=N(r),i=O("FocusGroupItem",r);return(0,d.jsx)(M.ItemSlot,{scope:r,children:(0,d.jsx)(l.sG.button,{...n,ref:t,onKeyDown:(0,s.mK)(e.onKeyDown,e=>{if(["Home","End",...es].includes(e.key)){let t=o().map(e=>e.ref.current);if(["rtl"===i.dir?"ArrowRight":"ArrowLeft","ArrowUp","End"].includes(e.key)&&t.reverse(),es.includes(e.key)){let r=t.indexOf(e.currentTarget);t=t.slice(r+1)}setTimeout(()=>ec(t)),e.preventDefault()}})})})});function eu(e){let t=[],r=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(;r.nextNode();)t.push(r.currentNode);return t}function ec(e){let t=document.activeElement;return e.some(e=>e===t||(e.focus(),document.activeElement!==t))}function ed(e,t){let r=(0,b.c)(t);(0,x.N)(()=>{let t=0;if(e){let n=new ResizeObserver(()=>{cancelAnimationFrame(t),t=window.requestAnimationFrame(r)});return n.observe(e),()=>{window.cancelAnimationFrame(t),n.unobserve(e)}}},[e,r])}function ef(e){return e?"open":"closed"}function ev(e,t){return"".concat(e,"-trigger-").concat(t)}function em(e,t){return"".concat(e,"-content-").concat(t)}function ep(e){return t=>"mouse"===t.pointerType?e(t):void 0}var eh=A,ew=G,eg=z,ex=$,eb=Y,ey=Q,eR=J,eC=eo}}]);

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.