(()=>{"use strict";(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,808341,(e,t,n)=>{Object.defineProperty(n,"__esModule",{value:!0});var r={cancelIdleCallback:function(){return i},requestIdleCallback:function(){return l}};for(var a in r)Object.defineProperty(n,a,{enumerable:!0,get:r[a]});let l="u">typeof self&&self.requestIdleCallback&&self.requestIdleCallback.bind(window)||function(e){let t=Date.now();return self.setTimeout(function(){e({didTimeout:!1,timeRemaining:function(){return Math.max(0,50-(Date.now()-t))}})},1)},i="u">typeof self&&self.cancelIdleCallback&&self.cancelIdleCallback.bind(window)||function(e){return clearTimeout(e)};("function"==typeof n.default||"object"==typeof n.default&&null!==n.default)&&void 0===n.default.__esModule&&(Object.defineProperty(n.default,"__esModule",{value:!0}),Object.assign(n.default,n),t.exports=n.default)},479520,(e,t,n)=>{Object.defineProperty(n,"__esModule",{value:!0});var r={default:function(){return y},handleClientScriptLoad:function(){return b},initScriptLoader:function(){return g}};for(var a in r)Object.defineProperty(n,a,{enumerable:!0,get:r[a]});let l=e.r(555682),i=e.r(190809),o=e.r(843476),s=l._(e.r(174080)),c=i._(e.r(271645)),u=e.r(742732),d=e.r(922737),f=e.r(808341),m=e.r(519083),p=new Map,x=new Set,h=e=>{let{src:t,id:n,onLoad:r=()=>{},onReady:a=null,dangerouslySetInnerHTML:l,children:i="",strategy:o="afterInteractive",onError:c,stylesheets:u}=e,f=n||t;if(f&&x.has(f))return;if(p.has(t)){x.add(f),p.get(t).then(r,c);return}let m=()=>{a&&a(),x.add(f)},h=document.createElement("script"),b=new Promise((e,t)=>{h.addEventListener("load",function(t){e(),r&&r.call(this,t),m()}),h.addEventListener("error",function(e){t(e)})}).catch(function(e){c&&c(e)});l?(h.innerHTML=l.__html||"",m()):i?(h.textContent="string"==typeof i?i:Array.isArray(i)?i.join(""):"",m()):t&&(h.src=t,p.set(t,b)),(0,d.setAttributesFromProps)(h,e),"worker"===o&&h.setAttribute("type","text/partytown"),h.setAttribute("data-nscript",o),u&&(e=>{if(s.default.preinit)return e.forEach(e=>{s.default.preinit(e,{as:"style"})});if("u">typeof window){let t=document.head;e.forEach(e=>{let n=document.createElement("link");n.type="text/css",n.rel="stylesheet",n.href=e,t.appendChild(n)})}})(u),document.body.appendChild(h)};function b(e){let{strategy:t="afterInteractive"}=e;"lazyOnload"===t?window.addEventListener("load",()=>{(0,f.requestIdleCallback)(()=>h(e))}):h(e)}function g(e){e.forEach(b),[...document.querySelectorAll('[data-nscript="beforeInteractive"]'),...document.querySelectorAll('[data-nscript="beforePageRender"]')].forEach(e=>{let t=e.id||e.getAttribute("src");x.add(t)})}function v(e){let{id:t,src:n="",onLoad:r=()=>{},onReady:a=null,strategy:l="afterInteractive",onError:i,stylesheets:d,...p}=e,{updateScripts:b,scripts:g,getIsSsr:v,appDir:y,nonce:w}=(0,c.useContext)(u.HeadManagerContext);w=p.nonce||w;let k=(0,c.useRef)(!1);(0,c.useEffect)(()=>{let e=t||n;k.current||(a&&e&&x.has(e)&&a(),k.current=!0)},[a,t,n]);let j=(0,c.useRef)(!1);if((0,c.useEffect)(()=>{if(!j.current){if("afterInteractive"===l)h(e);else"lazyOnload"===l&&("complete"===document.readyState?(0,f.requestIdleCallback)(()=>h(e)):window.addEventListener("load",()=>{(0,f.requestIdleCallback)(()=>h(e))}));j.current=!0}},[e,l]),("beforeInteractive"===l||"worker"===l)&&(b?(g[l]=(g[l]||[]).concat([{id:t,src:n,onLoad:r,onReady:a,onError:i,...p,nonce:w}]),b(g)):v&&v()?x.add(t||n):v&&!v()&&h({...e,nonce:w})),y){if(d&&d.forEach(e=>{s.default.preinit(e,{as:"style"})}),"beforeInteractive"===l)if(!n)return p.dangerouslySetInnerHTML&&(p.children=p.dangerouslySetInnerHTML.__html,delete p.dangerouslySetInnerHTML),(0,o.jsx)("script",{nonce:w,dangerouslySetInnerHTML:{__html:`(self.__next_s=self.__next_s||[]).push(${(0,m.htmlEscapeJsonString)(JSON.stringify([0,{...p,id:t}]))})`}});else return s.default.preload(n,p.integrity?{as:"script",integrity:p.integrity,nonce:w,crossOrigin:p.crossOrigin}:{as:"script",nonce:w,crossOrigin:p.crossOrigin}),(0,o.jsx)("script",{nonce:w,dangerouslySetInnerHTML:{__html:`(self.__next_s=self.__next_s||[]).push(${(0,m.htmlEscapeJsonString)(JSON.stringify([n,{...p,id:t}]))})`}});"afterInteractive"===l&&n&&s.default.preload(n,p.integrity?{as:"script",integrity:p.integrity,nonce:w,crossOrigin:p.crossOrigin}:{as:"script",nonce:w,crossOrigin:p.crossOrigin})}return null}Object.defineProperty(v,"__nextScript",{value:!0});let y=v;("function"==typeof n.default||"object"==typeof n.default&&null!==n.default)&&void 0===n.default.__esModule&&(Object.defineProperty(n.default,"__esModule",{value:!0}),Object.assign(n.default,n),t.exports=n.default)},519083,(e,t,n)=>{Object.defineProperty(n,"__esModule",{value:!0});var r={ESCAPE_REGEX:function(){return i},htmlEscapeAttributeString:function(){return u},htmlEscapeJsonString:function(){return c}};for(var a in r)Object.defineProperty(n,a,{enumerable:!0,get:r[a]});let l={"&":"\\u0026",">":"\\u003e","<":"\\u003c","\u2028":"\\u2028","\u2029":"\\u2029"},i=/[&><\u2028\u2029]/g,o={"&":"&",'"':""","'":"'","<":"<",">":">"},s=/[&"'<>]/g;function c(e){return e.replace(i,e=>l[e])}function u(e){return e.replace(s,e=>o[e])}},826427,e=>{var t=e.i(271645),n=e.i(19477),r=e.i(963997),a=e.i(744449),l=e.i(461317);let i="gtm-container";e.s(["GtmContainerLoader",0,function({containerId:e,deferShare:o}){return(0,t.useEffect)(()=>{let t=(0,r.Z)(document.cookie,o),s=()=>{if(document.getElementById(i))return;let r=(0,n.g)(e);(0,a.t)(t);let l=document.createElement("script");l.id=i,l.setAttribute("data-gtm-arm",t),l.text=r,document.body.appendChild(l)};return"control"===t?void s():(0,l.f)(s,{timeout:500})},[e,o]),null}])},941568,e=>{var t=e.i(843476),n=e.i(790235),r=e.i(540874);let a=(0,n.m)();async function l(){let e=await (0,n.c)();if(!e)throw Error("[adept-connect] client is not configured");return e}function i(){return(0,n.U)()??void 0}e.s(["AdeptConnectProvider",0,function({children:e}){return a?(0,t.jsx)(r.m,{loadClient:l,peekClient:i,children:e}):(0,t.jsx)(t.Fragment,{children:e})}])},842879,e=>{var t=e.i(843476),n=e.i(271645),r=e.i(998082),a=e.i(541872),l=e.i(522016);function i({visible:e,onAcceptAll:r,onRejectAll:a,onManagePreferences:o,onManageIntent:s}){let c=(0,n.useRef)(null);return((0,n.useLayoutEffect)(()=>{let t=c.current;if(!e||!t)return void document.documentElement.style.removeProperty("--cookie-banner-height");let n=()=>{document.documentElement.style.setProperty("--cookie-banner-height",`${t.offsetHeight}px`)};n();let r=new ResizeObserver(n);return r.observe(t),()=>{r.disconnect(),document.documentElement.style.removeProperty("--cookie-banner-height")}},[e]),e)?(0,t.jsxs)("div",{ref:c,role:"region","aria-live":"polite","aria-label":"Cookie consent","aria-describedby":"cookie-banner-desc","data-cookie-banner":"",className:"bg-surface-darker fixed inset-x-0 bottom-0 z-[var(--z-cookie)] px-6 py-5 shadow-xl max-[400px]:px-4 max-[400px]:py-3",children:[(0,t.jsx)("noscript",{dangerouslySetInnerHTML:{__html:""}}),(0,t.jsxs)("div",{className:"mx-auto flex max-w-5xl flex-wrap items-center justify-center gap-6 md:flex-nowrap max-[400px]:gap-3",children:[(0,t.jsxs)("p",{id:"cookie-banner-desc",className:"max-w-xl text-center text-sm leading-relaxed text-cbt-200 md:text-left max-[400px]:leading-snug",children:[(0,t.jsx)("span",{className:"max-[400px]:hidden",children:"We use cookies to enhance your experience and analyze site traffic. You can choose which cookies to accept."}),(0,t.jsx)("span",{className:"hidden max-[400px]:inline",children:"We use cookies to improve your experience and analyze traffic. You choose which to accept."})," ",(0,t.jsx)(l.default,{href:"/privacy",className:"text-cbt-400 underline underline-offset-2 hover:text-white",children:"Learn more about our privacy practices"})]}),(0,t.jsxs)("div",{className:"flex flex-col gap-3 sm:flex-row max-[400px]:w-full max-[400px]:flex-row max-[400px]:gap-2",children:[(0,t.jsx)("button",{type:"button",onClick:r,className:"btn-gradient rounded-md px-5 py-2.5 text-sm font-semibold text-white max-[400px]:flex-auto max-[400px]:px-2 max-[400px]:text-xs",children:"Accept All"}),(0,t.jsx)("button",{type:"button",onClick:a,className:"rounded-md border border-white/40 px-5 py-2.5 text-sm font-semibold text-white transition-colors hover:bg-white/10 max-[400px]:flex-auto max-[400px]:px-2 max-[400px]:text-xs",children:"Reject All"}),(0,t.jsx)("button",{type:"button",onClick:o,onPointerEnter:s,onFocus:s,onTouchStart:s,className:"rounded-md border border-cbt-400/50 px-5 py-2.5 text-sm font-semibold text-cbt-400 transition-colors hover:bg-cbt-400/10 max-[400px]:flex-auto max-[400px]:px-2 max-[400px]:text-xs",children:"Manage Preferences"})]})]})]}):null}let o=(0,n.lazy)(()=>e.A(596680).then(e=>({default:e.ConsentModal})));function s(){e.A(596680).catch(()=>void 0)}e.s(["ConsentManager",0,function(){let[e,l]=(0,n.useState)(!0),[c,u]=(0,n.useState)(!1),[d,f]=(0,n.useState)(!1),[m,p]=(0,n.useState)(a.F),[x,h]=(0,n.useState)(null),b=(0,n.useCallback)(()=>{h(document.activeElement instanceof HTMLElement?document.activeElement:null),f(!0),u(!0)},[]),g=(0,n.useCallback)(()=>{u(!1),f(!1)},[]);(0,n.useEffect)(()=>{let e=e=>{p(e.detail),l(!1),u(!1)},t=()=>b();return window.addEventListener("cbt_consent_update",e),window.addEventListener("cbt_open_consent_modal",t),()=>{window.removeEventListener("cbt_consent_update",e),window.removeEventListener("cbt_open_consent_modal",t)}},[b]),(0,n.useEffect)(()=>{let e=requestAnimationFrame(()=>{let e=(0,a.T)(),t=e&&(0,a.K)(e);e&&p(e),l(!t)});return()=>cancelAnimationFrame(e)},[]);let v=(0,n.useCallback)(()=>{p((0,a.a)()),l(!1),u(!1)},[]),y=(0,n.useCallback)(()=>{p((0,a.i)()),l(!1),u(!1)},[]),w=(0,n.useCallback)(e=>{p((0,a.u)(e)),l(!1),u(!1)},[]);return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(i,{visible:e,onAcceptAll:v,onRejectAll:y,onManagePreferences:b,onManageIntent:s}),d?(0,t.jsx)(r.T,{name:"consent-modal",onError:g,children:(0,t.jsx)(o,{returnFocusTo:x,open:c,initialConsent:{analytics:m.analytics,marketing:m.marketing,functional:m.functional},onClose:()=>u(!1),onSave:w,onAcceptAll:v,onRejectAll:y},c?`open-${m.analytics}-${m.marketing}-${m.functional}`:"closed")}):null]})}],842879)},996883,e=>{var t=e.i(843476),n=e.i(618566),r=e.i(271645),a=e.i(998082),l=e.i(4909);let i="cbt_catalog_pdf_access:v1",o={access:null,final:!1};async function s(e=fetch){let t=function(){try{let e=window.sessionStorage.getItem(i);if(!e)return null;let t=JSON.parse(e);return"object"==typeof t&&null!==t&&"boolean"==typeof t.eligible?t:null}catch{return null}}();if(t)return{access:t,final:!0};try{let t=await e(l.J,{method:"GET",credentials:"same-origin",cache:"no-store",headers:{Accept:"applicationhttps://www.cbtnuggets.com/json"}});if(!t.ok)return o;let n=await t.json();if("object"!=typeof n||null===n||"boolean"!=typeof n.eligible)return o;let r=!n.eligible||null!==n.catalog;return r&&function(e){try{window.sessionStorage.setItem(i,JSON.stringify(e))}catch{}}(n),{access:n,final:r}}catch{return o}}let c=(0,r.lazy)(()=>e.A(177301).then(e=>({default:e.CatalogPdfDialogPanel})));function u(){e.A(177301).catch(()=>void 0)}e.s(["CatalogPdfFooterItem",0,function({className:e}){let i=(0,n.usePathname)(),[o,d]=(0,r.useState)(null),f=(0,r.useRef)(!1),m=(0,r.useRef)(null),p=(0,r.useRef)(i),x=(0,r.useCallback)(async e=>{if(!f.current){f.current=!0;try{let t=e;for(;;){null!==t&&(m.current=t);let e=await s();if(d(t=>null===e.access&&t?.access?{access:t.access,final:t.final}:e),e.final||m.current===p.current)return;t=p.current}}finally{f.current=!1}}},[]);(0,r.useEffect)(()=>{p.current=i,o?.final||m.current!==i&&x(i)},[i,o,x]);let h=(0,a.A)(),{requested:b,open:g,bodyOpen:v,onReady:y,onOpenChange:w,reset:k}=h,[j,C]=(0,r.useState)(null),E=(0,r.useCallback)(()=>j,[j]),_=o?.access??null,N=_?.eligible===!0;return((0,r.useEffect)(()=>{N||k()},[N,k]),_&&_.eligible)?(0,t.jsxs)("li",{"data-testid":"catalog-pdf-footer-item",children:[(0,t.jsx)("button",{type:"button",ref:C,className:`${e} cursor-pointer text-left`,"aria-haspopup":"dialog","aria-expanded":g,"aria-controls":g?l.x:void 0,onClick:e=>{var t;return t=(0,a.X)(e),void(null===_.catalog&&x(null),h.request(t))},onPointerEnter:u,onFocus:u,onTouchStart:u,"data-testid":"catalog-pdf-footer-trigger",children:"Course Catalog PDFs"}),b?(0,t.jsx)(a.T,{name:"catalog-pdf-dialog",onError:k,children:(0,t.jsx)(c,{access:_,open:v,onOpenChange:w,onReady:y,finalFocus:E})}):null]}):null}],996883)},830306,e=>{var t=e.i(843476),n=e.i(271645),r=e.i(618566);let a=(0,e.i(456420).f)("message-square-text",[["path",{d:"M22 17a2 2 0 0 1-2 2H6.828a2 2 0 0 0-1.414.586l-2.202 2.202A.71.71 0 0 1 2 21.286V5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2z",key:"18887p"}],["path",{d:"M7 11h10",key:"1twpyw"}],["path",{d:"M7 15h6",key:"d9of3u"}],["path",{d:"M7 7h8",key:"af5zfr"}]]);var l=e.i(632781),i=e.i(647072);let o=["/terms","/privacy","/accessibility","/login"];e.s(["ChatWidget",0,function(){let e=(0,r.usePathname)(),s=(0,n.useSyncExternalStore)(()=>()=>{},()=>!0,()=>!1),[c,u]=(0,n.useState)(!1),[d,f]=(0,n.useState)(!1),m=(0,n.useRef)(null),p=o.some(t=>e===t||e.startsWith(t+"/")),x=(0,n.useCallback)(async()=>{u(!0);try{await (0,i.E)({title:(0,i.I)(e),entryPoint:"fab",onError:()=>u(!1),onTimeout:()=>u(!1)}),f(!0)}catch(e){console.error("[ChatWidget] open failed:",e)}finally{u(!1)}},[e]);return((0,n.useEffect)(()=>{p&&d&&window.CBTSuperWidget?.close()},[p,d]),!s||p)?null:(0,t.jsx)(t.Fragment,{children:!d&&(0,t.jsx)("button",{ref:m,type:"button",onClick:x,disabled:c,"aria-busy":c,className:"fixed right-[max(1.25rem,env(safe-area-inset-right))] bottom-[calc(max(1.25rem,env(safe-area-inset-bottom))+var(--cookie-banner-height,0px))] z-[var(--z-chat)] flex size-14 items-center justify-center rounded-full bg-cbt-600 text-white shadow-lg transition-transform duration-200 ease-out hover:scale-110 hover:bg-cbt-700 hover:shadow-xl focus-visible:ring-2 focus-visible:ring-cbt-600 focus-visible:ring-offset-2 disabled:pointer-events-none motion-reduce:transition-none motion-reduce:hover:scale-100","aria-label":"Open live chat",children:c?(0,t.jsx)(l.f,{className:"size-6 animate-spin"}):(0,t.jsx)(a,{className:"size-6"})})})}],830306)},697299,e=>{var t=e.i(843476);e.s(["CookieSettingsButton",0,function(){return(0,t.jsx)("button",{type:"button",onClick:()=>window.dispatchEvent(new CustomEvent("cbt_open_consent_modal")),className:"focus-on-dark cursor-pointer underline","aria-label":"Open cookie preferences settings",children:"Cookie Settings"})}])},128013,e=>{var t=e.i(843476);e.s(["CurrentYear",0,function(){return(0,t.jsx)("span",{suppressHydrationWarning:!0,children:new Date().getFullYear()})}])},257585,e=>{var t=e.i(843476),n=e.i(271645),r=e.i(618566),a=e.i(522016),l=e.i(768877),i=e.i(716327),o=e.i(975157),s=e.i(867332);let c="rounded-xl border border-cbt-100/80 bg-white shadow-xl shadow-cbt-900/8 ring-1 ring-black/[0.03] animate-nav-panel-in",u="block whitespace-nowrap rounded-lg px-3 py-2 text-sm font-medium text-cbt-700 transition-colors duration-150 hover:bg-cbt-50 hover:text-cbt-600",d="--nav-panel-shift";function f({item:e,onClick:n,className:r}){return e.href.startsWith("http")?(0,t.jsx)("a",{href:e.href,target:"_blank",rel:"noopener noreferrer",onClick:n,className:(0,o.f)(u,r),children:e.label}):(0,t.jsx)(a.default,{href:e.href,onClick:n,className:(0,o.f)(u,r),children:e.label})}function m({panelId:e,ariaLabel:r,panelRef:a,children:l}){let i=(0,n.useRef)(null),o=(0,n.useCallback)(e=>{i.current=e,a(e)},[a]);return(0,n.useLayoutEffect)(()=>{let e=i.current;if(!e)return;let t=()=>{let t,n,r,a,l,i,o;return t=parseFloat(e.style.getPropertyValue(d))||0,r=(n=e.getBoundingClientRect()).left-t,a=n.right-t,l=document.documentElement.clientWidth,i=0,a>l-16&&(i=l-16-a),r+i<16&&(i=16-r),void(0===(o=i>0?Math.ceil(i):Math.floor(i))?e.style.removeProperty(d):e.style.setProperty(d,`${o}px`))};return t(),window.addEventListener("resize",t),()=>window.removeEventListener("resize",t)},[]),(0,t.jsx)("div",{ref:o,id:e,role:"region","aria-label":r,className:"absolute left-1/2 top-full z-50 translate-x-[calc(-50%+var(--nav-panel-shift,0px))] pt-2",children:l})}function p({entry:e,onClose:n}){return(0,t.jsxs)("div",{className:(0,o.f)(c,"max-w-[calc(100vw-2rem)] p-5"),children:[(0,t.jsx)("div",{className:"flex gap-7",children:e.groups.map((e,r)=>(0,t.jsxs)("div",{className:(0,o.f)("min-w-[190px]",r>0&&"border-l border-cbt-100/60 pl-7"),children:[(0,t.jsx)("p",{className:"mb-2.5 whitespace-nowrap px-3 text-sm font-bold uppercase tracking-[0.08em] text-cbt-700",children:e.heading}),(0,t.jsx)("ul",{className:"flex flex-col gap-0.5","data-nav-column-list":!0,children:e.items.map(e=>(0,t.jsx)("li",{children:(0,t.jsx)(f,{item:e,onClick:n})},`${e.label}-${e.href}`))}),e.footer&&(0,t.jsxs)(a.default,{href:e.footer.href,onClick:n,className:"mt-1 flex items-center gap-1.5 rounded-lg border-t border-cbt-100/60 px-3 pb-2 pt-2.5 text-sm font-semibold text-cbt-600 transition-colors duration-150 hover:bg-cbt-50 hover:text-cbt-700",children:[e.footer.label,(0,t.jsx)(l.f,{className:"size-3.5","aria-hidden":!0})]})]},e.heading))}),e.cta&&(0,t.jsx)("div",{className:"mt-4 border-t border-cbt-100/60 pt-4",children:(0,t.jsx)(a.default,{href:e.cta.href,onClick:n,className:"btn-gradient inline-flex rounded-full px-5 py-2 text-sm font-semibold text-white",children:e.cta.label})})]})}function x({entry:e,onClose:n}){return(0,t.jsx)("div",{className:(0,o.f)(c,"min-w-[200px] p-2"),children:e.items.map(e=>(0,t.jsx)(f,{item:e,onClick:n},`${e.label}-${e.href}`))})}function h({label:e,panelId:n,isOpen:r,onClick:a,onMouseEnter:l,buttonRef:s}){return(0,t.jsxs)("button",{ref:s,type:"button",onClick:a,onMouseEnter:l,"aria-expanded":r,"aria-haspopup":"dialog","aria-controls":n,className:(0,o.f)("inline-flex items-center gap-1 rounded-lg px-3 py-2 text-sm font-medium transition-colors duration-150 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-cbt-500 focus-visible:ring-offset-2",r?"text-cbt-600":"text-cbt-800 hover:text-cbt-600"),children:[e,(0,t.jsx)(i.f,{className:(0,o.f)("size-3 opacity-50 transition-transform duration-200",r&&"rotate-180")})]})}let b="(hover: hover) and (pointer: fine)";function g(e){if(!window.matchMedia)return()=>{};let t=window.matchMedia(b);return t.addEventListener("change",e),()=>t.removeEventListener("change",e)}function v(){return window.matchMedia(b).matches}function y(){return!0}e.s(["DesktopNav",0,function({items:e}){let[l,i]=(0,n.useState)(null),o=(0,n.useRef)(null),c=(0,n.useRef)(new Map),u=(0,n.useRef)(new Map),d=(0,n.useRef)(null),f=(0,n.useRef)(null),b=(0,n.useSyncExternalStore)(g,v,y),w=(0,n.useRef)(null),k=(0,r.usePathname)(),j=l?.pathname===k?l.index:null,C=l?.pathname===k?l.mode:null,E=(0,n.useCallback)(()=>{d.current&&(clearTimeout(d.current),d.current=null)},[]),_=(0,n.useCallback)(()=>{w.current&&(document.removeEventListener("mousemove",w.current),w.current=null)},[]),N=(0,n.useCallback)(()=>{f.current&&(clearTimeout(f.current),f.current=null),_()},[_]),S=(0,n.useCallback)(()=>{E(),N(),i(null)},[E,N]),M=(0,n.useCallback)(()=>{let e=l?c.current.get(l.index)??null:null;S(),e&&queueMicrotask(()=>e.focus())},[S,l]),P=(0,n.useCallback)((e,t)=>{E(),N(),i({index:e,mode:t,pathname:k})},[E,N,k]);(0,n.useEffect)(()=>{function e(e){o.current&&!o.current.contains(e.target)&&(o.current?.contains(document.activeElement)?M():S())}function t(e){"Escape"===e.key&&M()}return document.addEventListener("mousedown",e),document.addEventListener("keydown",t),()=>{document.removeEventListener("mousedown",e),document.removeEventListener("keydown",t)}},[S,M]),(0,n.useEffect)(()=>()=>{E(),N()},[E,N]);let L=(0,n.useCallback)((e,t)=>{if("click"===C)return;N();let n=u.current.get(e);if(!n){f.current=setTimeout(()=>S(),400);return}let r=n.getBoundingClientRect(),a={x:r.left,y:r.top},l={x:r.right,y:r.top},i=e=>{var n,r;let i,o,s;n=e.clientX,r=e.clientY,i=(n-a.x)*(t.y-a.y)-(t.x-a.x)*(r-a.y),o=(n-l.x)*(a.y-l.y)-(a.x-l.x)*(r-l.y),s=(n-t.x)*(l.y-t.y)-(l.x-t.x)*(r-t.y),(i<0||o<0||s<0)&&(i>0||o>0||s>0)&&S()};w.current=i,document.addEventListener("mousemove",i),f.current=setTimeout(()=>{S()},600)},[C,N,S]),O=(0,n.useCallback)(e=>{if(b){if(N(),null!==j){j!==e&&P(e,"hover");return}E(),d.current=setTimeout(()=>{P(e,"hover")},120)}},[b,j,P,E,N]),R=(0,n.useCallback)(e=>{j===e?"hover"===C?P(e,"click"):S():P(e,"click")},[j,C,P,S]),T=(0,n.useCallback)((e,t)=>{b&&(E(),j===e&&L(e,{x:t.clientX,y:t.clientY}))},[b,j,E,L]),A=(0,n.useCallback)(()=>{N()},[N]),I=(0,n.useCallback)((e,t)=>{if(j!==e)return;let n=t.relatedTarget;n instanceof Node&&(t.currentTarget.contains(n)||S())},[j,S]),z=(0,n.useMemo)(()=>e=>t=>{t?c.current.set(e,t):c.current.delete(e)},[]),F=(0,n.useMemo)(()=>e=>t=>{t?u.current.set(e,t):u.current.delete(e)},[]);return(0,t.jsx)("nav",{ref:o,className:"hidden items-center gap-2 lg:flex","aria-label":"Main",children:e.map((e,n)=>{let r=j===n,l=`nav-panel-${e.label.toLowerCase().replace(/\s+/g,"-")}`;return(0,s.O)(e)||(0,s.I)(e)?(0,t.jsxs)("div",{className:"relative",onMouseEnter:A,onMouseLeave:e=>T(n,e),onBlur:e=>I(n,e),children:[(0,t.jsx)(h,{label:e.label,panelId:l,isOpen:r,onClick:()=>R(n),onMouseEnter:()=>O(n),buttonRef:z(n)}),r&&(0,t.jsx)(m,{panelId:l,ariaLabel:e.label,panelRef:F(n),children:(0,s.O)(e)?(0,t.jsx)(p,{entry:e,onClose:S}):(0,t.jsx)(x,{entry:e,onClose:S})})]},e.label):(0,t.jsx)(a.default,{href:e.href,onClick:S,className:"rounded-lg px-3 py-2 text-sm font-medium text-cbt-800 transition-colors duration-150 hover:text-cbt-600",children:e.label},e.href)})})}])},301593,e=>{var t=e.i(843476),n=e.i(522016),r=e.i(618566),a=e.i(570590),l=e.i(896507),i=e.i(311063);e.s(["HeaderContactCta",0,function(){let e=(0,r.usePathname)();return(0,t.jsx)(n.default,{href:a.Q,"data-testid":"header-contact-cta",className:"btn-gradient hidden rounded-full px-5 py-2 text-sm font-semibold text-white lg:inline-flex",onClick:()=>(0,i.p)("header-cta:demo",e),children:l.f.demo})}])},485370,e=>{var t=e.i(843476),n=e.i(618566),r=e.i(975157);let a=/^\/it-training\/[^/]+\/[^/]+\/[^/]+$/;var l=e.i(80856),i=e.i(522016),o=e.i(271645),s=e.i(570590),c=e.i(896507),u=e.i(311063);function d({href:e,label:a,className:l}){let f=(0,n.usePathname)(),m=e??s.Q,p=a??c.f.demo,x=(0,o.useRef)(null);return(0,o.useLayoutEffect)(()=>{let e=x.current;if(!e)return;let t=()=>{document.documentElement.style.setProperty("--mobile-sticky-cta-height",`${e.offsetHeight}px`)};t();let n=new ResizeObserver(t);return n.observe(e),()=>{n.disconnect(),document.documentElement.style.removeProperty("--mobile-sticky-cta-height")}},[]),(0,t.jsx)("div",{ref:x,className:(0,r.f)("pb-[max(0.75rem,env(safe-area-inset-bottom))] lg:hidden","fixed inset-x-0 z-[var(--z-sticky-cta)]","bottom-[env(safe-area-inset-bottom)]","[transform:translateY(calc(-1*var(--cookie-banner-height,0px)))]","border-t border-cbt-200/80 bg-white/95 px-4 py-3 shadow-[0_-4px_24px_rgba(7,30,74,0.08)] backdrop-blur-md",l),children:(0,t.jsx)(i.default,{href:m,"data-testid":"mobile-sticky-cta",className:"btn-gradient flex min-h-11 w-full items-center justify-center rounded-full px-4 text-sm font-semibold text-white",onClick:()=>(0,u.p)("mobile-sticky-cta",f),children:p})})}var f=e.i(616212);e.s(["MarketingMainWithSticky",0,function({banner:e=null,children:i}){let o=(0,n.usePathname)(),s=!(a.test(o)||o.startsWith("/admin"))&&!!("/solutions"===o||"/features"===o||o.startsWith("/features/")||o.startsWith("/for/")),c=null!==e&&(0,l.g)(o,e.team,e.pathRules);return(0,t.jsxs)(t.Fragment,{children:[c?(0,t.jsx)("div",{"data-site-banner-slot":"",className:"pt-16",children:(0,t.jsx)(f.f,{banner:e})}):null,(0,t.jsx)("main",{id:"main-content",tabIndex:-1,className:(0,r.f)("flex flex-col outline-none",c?"":"pt-16",s&&"max-lg:pb-[calc(var(--mobile-sticky-cta-height,0px)+env(safe-area-inset-bottom))]"),children:i}),s?(0,t.jsx)(d,{}):null]})}],485370)},192328,e=>{var t=e.i(843476),n=e.i(522016),r=e.i(618566),a=e.i(570590),l=e.i(896507),i=e.i(311063);e.s(["MobileHeaderCtaPill",0,function(){let e=(0,r.usePathname)();return(0,t.jsxs)(n.default,{href:a.Q,"data-testid":"mobile-header-cta-pill",className:"btn-gradient inline-flex min-h-11 items-center rounded-full px-4 text-sm font-semibold text-white lg:hidden",onClick:()=>(0,i.p)("mobile-header-pill:demo",e),children:[(0,t.jsx)("span",{className:"max-[359px]:inline min-[360px]:hidden",children:"Demo"}),(0,t.jsx)("span",{className:"max-[359px]:hidden min-[360px]:inline",children:l.f.demo})]})}])},338390,e=>{var t=e.i(843476),n=e.i(271645),r=e.i(593583),a=e.i(519455),l=e.i(998082),i=e.i(880317);let o=(0,n.lazy)(()=>e.A(132054).then(e=>({default:e.MobileNavSheet})));function s(){e.A(132054).catch(()=>void 0)}e.s(["MobileNav",0,function({items:e}){let{requested:c,open:u,bodyOpen:d,openMethod:f,request:m,onOpenChange:p,onReady:x,reset:h}=(0,l.A)(),b=(0,n.useRef)(null);return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)(a.K,{ref:b,variant:"ghost",size:"icon",className:"min-h-11 min-w-11 lg:hidden","aria-expanded":u,"aria-controls":i.d,"aria-haspopup":"dialog",onClick:e=>m((0,l.X)(e)),onPointerEnter:s,onFocus:s,onTouchStart:s,children:[(0,t.jsx)(r.f,{className:"size-5","aria-hidden":"true",focusable:"false"}),(0,t.jsx)("span",{className:"sr-only",children:"Open menu"})]}),c?(0,t.jsx)(l.T,{name:"mobile-nav",onError:h,children:(0,t.jsx)(o,{items:e,open:d,openMethod:f,onOpenChange:p,onReady:x,finalFocus:b})}):null]})}],338390)},402643,e=>{var t=e.i(271645),n=e.i(618566);e.s(["ScrollToTopOnNavigation",0,function(){let e=(0,n.usePathname)(),r=(0,t.useRef)(!0),a=(0,t.useRef)(!1);return(0,t.useEffect)(()=>{let e=()=>{a.current=!0};return window.addEventListener("popstate",e),()=>window.removeEventListener("popstate",e)},[]),(0,t.useLayoutEffect)(()=>{if(r.current){r.current=!1;return}if(a.current){a.current=!1;return}let e=window.location.hash.replace(/^#/,"");if(e){let t=e;try{t=decodeURIComponent(e)}catch{}if("top"===t||null!==document.getElementById(t)||document.getElementsByName(t).length>0)return}window.scrollTo({top:0,left:0,behavior:"instant"})},[e]),null}])},254229,e=>{e.S([212065,"SearchDialog,f"])}])})();