1import{m as l,a as p,b as d}from"./module.esm.js";function m(){return{menu:null,leaving:null,closing:!1,hoverTimer:null,panelX:0,reducedMotion:!1,resizeTimer:null,closeTimer:null,leaveTimer:null,animTimer:null,boxAnim:null,enterAnim:null,sideTolerance:64,bottomTolerance:72,pointerWatcher:null,viewportWatcher:null,watchFrame:null,closeIntentDelay:160,closeIntentTimer:null,panelOffsetX:-48,panelOffsetXByRef:{platform:-44},openDuration:200,resizeDuration:300,fadeOutDuration:140,enterDuration:200,enterDelay:70,easing:"cubic-bezier(0.4, 0, 0.2, 1)",easeOut:"cubic-bezier(0, 0, 0.2, 1)",easeIn:"cubic-bezier(0.4, 0, 1, 1)",init(){const e=window.matchMedia("(prefers-reduced-motion: reduce)");this.reducedMotion=e.matches,e.addEventListener?.("change",t=>{this.reducedMotion=t.matches}),this.syncPaneMax(),window.addEventListener("resize",()=>{clearTimeout(this.resizeTimer),this.resizeTimer=setTimeout(()=>{this.syncPaneMax(),this.menu&&(this.updateX(this.menu),this.applyX())},120)})},destroy(){this.stopPointerWatch()},panelEl(e){return e?this.$root.querySelector(`#menu-${e}`):null},paneEls(){return this.$root.querySelectorAll(".supermenu-panel__pane")},paneRef(e){return e.id.replace(/^menu-/,"")},triggerEl(e){return this.$root.querySelector(`[aria-controls="menu-${e}"]`)},trackMetrics(){const e=this.$refs.panelTrack;if(!e)return null;const t=e.getBoundingClientRect(),i=getComputedStyle(e),n=parseFloat(i.paddingLeft)||0,r=parseFloat(i.paddingRight)||0;return{contentLeft:t.left+n,contentWidth:t.width-n-r}},syncPaneMax(){const e=this.$refs.panelTrack,t=this.trackMetrics();!e||!t||e.style.setProperty("--supermenu-pane-max",`${Math.round(t.contentWidth)}px`)},offsetXFor(e){return this.panelOffsetXByRef[e]??this.panelOffsetX},updateX(e){const t=this.$refs.panelBox,i=this.trackMetrics(),n=this.triggerEl(e);if(!t||!i||!n)return;const o=n.getBoundingClientRect().left+(parseFloat(getComputedStyle(n).paddingLeft)||0)-i.contentLeft+this.offsetXFor(e),s=Math.max(0,i.contentWidth-t.offsetWidth);this.panelX=Math.round(Math.min(Math.max(o,0),s))},applyX(){const e=this.$refs.panelBox;e&&(e.style.transform=`translate3d(${this.panelX}px, 0, 0)`)},applyPanes(e,t){this.paneEls().forEach(i=>{const n=this.paneRef(i);n===e?(i.classList.remove("is-leaving"),i.style.display=""):n===t?(i.classList.add("is-leaving"),i.style.display=""):(i.classList.remove("is-leaving"),i.style.display="none")})},canAnimate(){return!this.reducedMotion&&typeof Element.prototype.animate=="function"},setAnimating(e){this.$refs.panelBox?.classList.toggle("is-animating",e)},cancelBoxAnim(){this.boxAnim?.cancel(),this.boxAnim=null},animateOpen(){const e=this.$refs.panelBox;!e||!this.canAnimate()||(this.boxAnim=e.animate([{opacity:0,transform:`translate3d(${this.panelX}px, -8px, 0)`},{opacity:1,transform:`translate3d(${this.panelX}px, 0, 0)`}],{duration:this.openDuration,easing:this.easeOut}))},animateSwitch(e,t,i){const n=this.$refs.panelBox;if(!n||!this.canAnimate())return;const r=n.getBoundingClientRect();this.setAnimating(!0),clearTimeout(this.animTimer),this.animTimer=setTimeout(()=>this.setAnimating(!1),Math.max(this.resizeDuration,this.enterDelay+this.enterDuration)),e&&(this.boxAnim=n.animate([{width:`${e.width}px`,height:`${e.height}px`,transform:`translate3d(${t}px, 0, 0)`},{width:`${r.width}px`,height:`${r.height}px`,transform:`translate3d(${this.panelX}px, 0, 0)`}],{duration:this.resizeDuration,easing:this.easing})),i&&(this.enterAnim?.cancel(),this.enterAnim=i.animate([{opacity:0,transform:"translate3d(0, 4px, 0)"},{opacity:1,transform:"translate3d(0, 0, 0)"}],{duration:this.enterDuration,delay:this.enterDelay,easing:this.easeOut,fill:"backwards"}))},toggleMenu(e){this.menu===e&&!this.closing?this.dismiss():this.openMenu(e)},dismiss(){this.stopPointerWatch(),this.closeMenu()},openMenu(e){const t=this.panelEl(e),i=this.$refs.panelBox;if(!t||!i)return;if(clearTimeout(this.closeTimer),this.closeTimer=null,this.cancelCloseIntent(),this.menu===e){this.closing&&this.abortClose();return}this.closing=!1;const n=this.menu,r=n?i.getBoundingClientRect():null,o=this.panelX;this.cancelBoxAnim(),clearTimeout(this.animTimer),this.leaving=n,this.applyPanes(e,this.canAnimate()?n:null),i.style.display="",this.updateX(e),this.applyX(),n?this.animateSwitch(r,o,t):this.animateOpen(),this.scheduleLeaveCleanup(n),this.menu=e,this.syncStore(!0),this.startPointerWatch()},scheduleLeaveCleanup(e){if(clearTimeout(this.leaveTimer),this.leaveTimer=null,!e)return;const t=()=>{if(this.leaveTimer=null,this.leaving!==e)return;this.leaving=null;const i=this.panelEl(e);i&&this.menu!==e&&(i.style.display="none",i.classList.remove("is-leaving"))};if(!this.canAnimate()){t();return}this.leaveTimer=setTimeout(t,this.fadeOutDuration)},closeMenu(e=!1){if(this.closing&&!e)return;this.cancelHover(),this.cancelCloseIntent(),clearTimeout(this.closeTimer),clearTimeout(this.leaveTimer),clearTimeout(this.animTimer),this.closeTimer=null,this.leaveTimer=null;const t=this.$refs.panelBox,i=()=>{this.closeTimer=null,this.menu=null,this.leaving=null,this.closing=!1,this.stopPointerWatch(),this.setAnimating(!1),this.cancelBoxAnim(),this.applyPanes(null,null),t&&(t.style.display="none"),this.syncStore(!1)};if(e||!this.menu||!t||!this.canAnimate()){i();return}this.leaving=null,this.applyPanes(this.menu,null),this.closing=!0,this.cancelBoxAnim(),this.boxAnim=t.animate([{opacity:1},{opacity:0}
1],{duration:this.fadeOutDuration,easing:this.easeIn,fill:"forwards"}),this.closeTimer=setTimeout(i,this.fadeOutDuration)},requestClose(){this.closing||this.closeIntentTimer||!this.menu||(this.closeIntentTimer=setTimeout(()=>{this.closeIntentTimer=null,this.closeMenu()},this.closeIntentDelay))},cancelCloseIntent(){this.closeIntentTimer&&(clearTimeout(this.closeIntentTimer),this.closeIntentTimer=null)},abortClose(){const e=this.$refs.panelBox;if(!e)return;clearTimeout(this.closeTimer),this.closeTimer=null;const t=parseFloat(getComputedStyle(e).opacity);this.cancelBoxAnim(),this.closing=!1,this.syncStore(!0),!(!(t<1)||!this.canAnimate())&&(this.boxAnim=e.animate([{opacity:t},{opacity:1}],{duration:Math.max(1,Math.round(this.fadeOutDuration*(1-t))),easing:this.easeOut}))},syncStore(e){const t=window.Alpine?.store("nav");t&&(t.menuOpen=e,t.superMenuOpen=e,t.menuHeight=0)},startPointerWatch(){this.pointerWatcher||(this.pointerWatcher=e=>this.onPointerMove(e),document.addEventListener("pointermove",this.pointerWatcher,{passive:!0}),this.viewportWatcher=()=>this.closeMenu(),document.documentElement.addEventListener("mouseleave",this.viewportWatcher))},stopPointerWatch(){this.pointerWatcher&&(document.removeEventListener("pointermove",this.pointerWatcher),this.pointerWatcher=null),this.viewportWatcher&&(document.documentElement.removeEventListener("mouseleave",this.viewportWatcher),this.viewportWatcher=null),this.watchFrame&&(cancelAnimationFrame(this.watchFrame),this.watchFrame=null),this.cancelCloseIntent()},focusInside(){const e=document.activeElement,t=this.$refs.panelBox;if(!e||!t||!t.contains(e))return!1;try{return e.matches(":focus-visible")}catch{return!0}},onPointerMove(e){if(e.pointerType!=="mouse"||!this.menu||this.focusInside()||this.watchFrame)return;const{clientX:t,clientY:i}=e;this.watchFrame=requestAnimationFrame(()=>{if(this.watchFrame=null,!!this.menu){if(this.inSafeZone(t,i)){this.cancelCloseIntent(),this.closing&&this.abortClose();return}this.requestClose()}})},inSafeZone(e,t){const i=this.$root.getBoundingClientRect();if(e>=i.left&&e<=i.right&&t>=i.top&&t<=i.bottom)return!0;const n=this.$refs.panelBox?.getBoundingClientRect();return n?t>=i.bottom&&t<=n.top&&e>=Math.min(i.left,n.left)&&e<=Math.max(i.right,n.right)?!0:e>=n.left-this.sideTolerance&&e<=n.right+this.sideTolerance&&t>=n.top&&t<=n.bottom+this.bottomTolerance:!1},checkPositionBeforeClose(e){if(this.inSafeZone(e.clientX,e.clientY))return;const t=e.relatedTarget,i=t?.closest(".main-nav__item"),n=t?.closest('[id^="menu-"]');!i&&!n&&this.requestClose()},scheduleHover(e){this.cancelHover(),this.openMenu(e)},cancelHover(){this.hoverTimer&&(clearTimeout(this.hoverTimer),this.hoverTimer=null)}}}const g="#mainheader",v=['[id^="menu-"] a[href]',"[data-nav-panel] a[href]","[data-nav-link]"].join(", "),T=["get_started"];function f(e){const t=e.toLowerCase().replace(/\/+$/,"");return t===""?"/":t}function y(e,t){return e===t?1/0:e==="/"||/^\/[a-z]{2}$/.test(e)?0:t.startsWith(`${e}/`)?e.length:0}function x(e){const t=e.getAttribute("href");if(!t||t.startsWith("#"))return null;let i;try{i=new URL(e.href,window.location.origin)}catch{return null}return i.origin!==window.location.origin?null:f(i.pathname)}function w(e){const t=e.closest('[id^="menu-"]');if(t)return t.id.replace(/^menu-/,"");const i=e.closest("[data-nav-panel]");return i?i.dataset.navPanel:null}function u(){const e=document.querySelector(g);if(!e)return;const t=f(window.location.pathname),i=[];if(e.querySelectorAll(v).forEach(s=>{const a=w(s);if(a&&T.includes(a))return;const c=x(s);if(!c)return;const h=y(c,t);h>0&&i.push({link:s,path:c,ref:a,score:h})}),!i.length)return;const n=i.reduce((s,a)=>a.score>s.score?a:s),r=i.filter(s=>s.path===n.path),o=r.map(({ref:s})=>s).find(Boolean)??null;r.forEach(({link:s,ref:a})=>{a&&a!==o||(s.classList.add("is-active"),n.score===1/0&&s.setAttribute("aria-current","page"),a||s.classList.add("active"))}),o&&e.querySelectorAll(`[data-nav-menu="${o}"]`).forEach(s=>s.classList.add("active"))}l.plugin(p);l.plugin(d);window.menuComponent=m;l.data("menuComponent",m);l.store("nav",{menuOpen:!1,menuHeight:0,superMenuOpen:!1});window.Alpine=l;l.start();document.readyState==="loading"?document.addEventListener("DOMContentLoaded",u):u();
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.