(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,505014,e=>{"use strict";var t=e.i(271645),r=e.i(871987),n=e.i(388973),i=e.i(396661);let a=(0,t.createContext)({}),o=(0,t.forwardRef)(({color:e,size:o,strokeWidth:l,absoluteStrokeWidth:s,className:u="",children:c,iconNode:d,...f},p)=>{let{size:m=24,strokeWidth:g=2,absoluteStrokeWidth:h=!1,color:b="currentColor",className:y=""}=(0,t.useContext)(a)??{},v=s??h?24*Number(l??g)/Number(o??m):l??g;return(0,t.createElement)("svg",{ref:p,...r.f,width:o??m??r.f.width,height:o??m??r.f.height,stroke:e??b,strokeWidth:v,className:(0,i.f)("lucide",y,u),...!c&&!(0,n.f)(f)&&{"aria-hidden":"true"},...f},[...d.map(([e,r])=>(0,t.createElement)(e,r)),...Array.isArray(c)?c:[c]])});e.s(["default",0,o],505014)},456420,e=>{"use strict";var t=e.i(271645),r=e.i(396661);let n=e=>{let t=e.replace(/^([A-Z])|[\s-_]+(\w)/g,(e,t,r)=>r?r.toUpperCase():t.toLowerCase());return t.charAt(0).toUpperCase()+t.slice(1)};var i=e.i(505014);e.s(["f",0,(e,a)=>{let o=(0,t.forwardRef)(({className:o,...l},s)=>(0,t.createElement)(i.default,{ref:s,iconNode:a,className:(0,r.f)(`lucide-${n(e).replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase()}`,`lucide-${e}`,o),...l}));return o.displayName=n(e),o}],456420)},871987,388973,e=>{"use strict";e.s(["f",0,{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"}],871987),e.s(["f",0,e=>{for(let t in e)if(t.startsWith("aria-")||"role"===t||"title"===t)return!0;return!1}],388973)},26495,e=>{"use strict";let t=(0,e.i(456420).f)("chevron-down",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]);e.s(["f",0,t])},716327,e=>{"use strict";var t=e.i(26495);e.s(["f",()=>t.f])},593583,e=>{"use strict";let t=(0,e.i(456420).f)("menu",[["path",{d:"M4 5h16",key:"1tepv9"}],["path",{d:"M4 12h16",key:"1lakjw"}],["path",{d:"M4 19h16",key:"1djgab"}]]);e.s(["f",0,t],593583)},566595,e=>{"use strict";let t=(0,e.i(456420).f)("search",[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]]);e.s(["f",0,t],566595)},396661,e=>{"use strict";e.s(["f",0,(...e)=>e.filter((e,t,r)=>!!e&&""!==e.trim()&&r.indexOf(e)===t).join(" ").trim()])},522016,(e,t,r)=>{"use strict";e.i(247167),Object.defineProperty(r,"__esModule",{value:!0});var n={default:function(){return b},useLinkStatus:function(){return v}};for(var i in n)Object.defineProperty(r,i,{enumerable:!0,get:n[i]});let a=e.r(190809),o=e.r(843476),l=a._(e.r(271645)),s=e.r(195057),u=e.r(8372),c=e.r(818581),d=e.r(718967),f=e.r(405550),p=e.r(388540),m=e.r(91949),g=e.r(573668),h=e.r(509396);function b(t){var r;let n,i,a,[b,v]=(0,l.useOptimistic)(m.IDLE_LINK_STATUS),w=(0,l.useRef)(null),{href:k,as:S,children:x,prefetch:E=null,passHref:j,replace:C,shallow:P,scroll:A,onClick:N,onMouseEnter:L,onTouchStart:T,legacyBehavior:I=!1,onNavigate:R,transitionTypes:$,ref:O,unstable_dynamicOnHover:U,..._}=t;n=x,I&&("string"==typeof n||"number"==typeof n)&&(n=(0,o.jsx)("a",{children:n}));let M=l.default.useContext(u.AppRouterContext),B=!1!==E,F=!1===E?"none":!0===E?"full":"auto",z="none"!==F?"auto"===F?h.FetchStrategy.PPR:h.FetchStrategy.Full:h.FetchStrategy.PPR,D="string"==typeof(r=S||k)?r:(0,s.formatUrl)(r);if(I){if(n?.$$typeof===Symbol.for("react.lazy"))throw Error("`` received a direct child that is either a Server Component, or JSX that was loaded with React.lazy(). This is not supported. Either remove legacyBehavior, or make the direct child a Client Component that renders the Link's `` tag.");i=l.default.Children.only(n)}let K=I?i&&"object"==typeof i&&i.ref:O,W,q=l.default.useCallback(e=>(null!==M&&(w.current=(0,m.mountLinkInstance)(e,D,M,z,B,v,W)),()=>{w.current&&((0,m.unmountLinkForCurrentNavigation)(w.current),w.current=null),(0,m.unmountPrefetchableInstance)(e)}),[B,D,M,z,v,W]),V={ref:(0,c.useMergedRef)(q,K),onClick(t){I||"function"!=typeof N||N(t),I&&i.props&&"function"==typeof i.props.onClick&&i.props.onClick(t),!M||t.defaultPrevented||function(t,r,n,i,a,o,l,s="none"){if("u">typeof window){let u,{nodeName:c}=t.currentTarget;if("A"===c.toUpperCase()&&((u=t.currentTarget.getAttribute("target"))&&"_self"!==u||t.metaKey||t.ctrlKey||t.shiftKey||t.altKey||t.nativeEvent&&2===t.nativeEvent.which)||t.currentTarget.hasAttribute("download"))return;if(!(0,g.isLocalURL)(r)){i&&(t.preventDefault(),location.replace(r));return}if(t.preventDefault(),o){let e=!1;if(o({preventDefault:()=>{e=!0}}),e)return}let{navigate:d}=e.r(132916);d(r,i?"replace":"push",!1===a?p.ScrollBehavior.NoScroll:p.ScrollBehavior.Default,n.current,l,s)}}(t,D,w,C,A,R,$,F)},onMouseEnter(e){I||"function"!=typeof L||L(e),I&&i.props&&"function"==typeof i.props.onMouseEnter&&i.props.onMouseEnter(e),M&&B&&(0,m.onNavigationIntent)(e.currentTarget,!0===U)},onTouchStart:function(e){I||"function"!=typeof T||T(e),I&&i.props&&"function"==typeof i.props.onTouchStart&&i.props.onTouchStart(e),M&&B&&(0,m.onNavigationIntent)(e.currentTarget,!0===U)}};return(0,d.isAbsoluteUrl)(D)?V.href=D:I&&!j&&("a"!==i.type||"href"in i.props)||(V.href=(0,f.addBasePath)(D)),a=I?l.default.cloneElement(i,V):(0,o.jsx)("a",{..._,...V,children:n}),(0,o.jsx)(y.Provider,{value:b,children:a})}let y=(0,l.createContext)(m.IDLE_LINK_STATUS),v=()=>(0,l.useContext)(y);("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},818581,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"useMergedRef",{enumerable:!0,get:function(){return i}});let n=e.r(271645);function i(e,t){let r=(0,n.useRef)(null),i=(0,n.useRef)(null);return(0,n.useCallback)(n=>{if(null===n){let e=r.current;e&&(r.current=null,e());let t=i.current;t&&(i.current=null,t())}else e&&(r.current=a(e,n)),t&&(i.current=a(t,n))},[e,t])}function a(e,t){if("function"!=typeof e)return e.current=t,()=>{e.current=null};{let r=e(t);return"function"==typeof r?r:()=>e(null)}}("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},195057,(e,t,r)=>{"use strict";e.i(247167),Object.defineProperty(r,"__esModule",{value:!0});var n={formatUrl:function(){return l},formatWithValidation:function(){return u},urlObjectKeys:function(){return s}};for(var i in n)Object.defineProperty(r,i,{enumerable:!0,get:n[i]});let a=e.r(190809)._(e.r(998183)),o=/https?|ftp|gopher|file/;function l(e){let{auth:t,hostname:r}=e,n=e.protocol||"",i=e.pathname||"",l=e.hash||"",s=e.query||"",u=!1;t=t?encodeURIComponent(t).replace(/%3A/i,":")+"@":"",e.host?u=t+e.host:r&&(u=t+(~r.indexOf(":")?`[${r}]`:r),e.port&&(u+=":"+e.port)),s&&"object"==typeof s&&(s=String(a.urlQueryToSearchParams(s)));let c=e.search||s&&`?${s}`||"";return n&&!n.endsWith(":")&&(n+=":"),e.slashes||(!n||o.test(n))&&!1!==u?(u="//"+(u||""),i&&"/"!==i[0]&&(i="/"+i)):u||(u=""),l&&"#"!==l[0]&&(l="#"+l),c&&"?"!==c[0]&&(c="?"+c),i=i.replace(/[?#]/g,encodeURIComponent),c=c.replace("#","%23"),`${n}${u}${i}${c}${l}`}let s=["auth","hash","host","hostname","href","path","pathname","port","protocol","query","search","slashes"];function u(e){return l(e)}},573668,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"isLocalURL",{enumerable:!0,get:function(){return a}});let n=e.r(718967),i=e.r(652817);function a(e){if(!(0,n.isAbsoluteUrl)(e))return!0;try{let t=(0,n.getLocationOrigin)(),r=new URL(e,t);return r.origin===t&&(0,i.hasBasePath)(r.pathname)}catch(e){return!1}}},718967,(e,t,r)=>{"use strict";e.i(247167),Object.defineProperty(r,"__esModule",{value:!0});var n={DecodeError:function(){return b},MiddlewareNotFoundError:function(){return k},MissingStaticPage:function(){return w},NormalizeError:function(){return y},PageNotFoundError:function(){return v},SP:function(){return g},ST:function(){return h},WEB_VITALS:function(){return a},execOnce:function(){return o},getDisplayName:function(){return d},getLocationOrigin:function(){return u},getURL:function(){return c},isAbsoluteUrl:function(){return s},isResSent:function(){return f},loadGetInitialProps:function(){return m},normalizeRepeatedSlashes:function(){return p},stringifyError:function(){return S}};for(var i in n)Object.defineProperty(r,i,{enumerable:!0,get:n[i]});let a=["CLS","FCP","INP","LCP","TTFB"];function o(e){let t,r=!1;return(...n)=>(r||(r=!0,t=e(...n)),t)}let l=/^[a-zA-Z][a-zA-Z\d+\-.]*?:/,s=e=>{let t=e.charCodeAt(0);return!!(t>=65&&t<=90||t>=97&&t<=122)&&l.test(e)};function u(){let{protocol:e,hostname:t,port:r}=window.location;return`${e}//${t}${r?":"+r:""}`}function c(){let{href:e}=window.location,t=u();return e.substring(t.length)}function d(e){return"string"==typeof e?e:e.displayName||e.name||"Unknown"}function f(e){return e.finished||e.headersSent}function p(e){let t=e.split("?");return t[0].replace(/\\/g,"/").replace(/\/\/+/g,"/")+(t[1]?`?${t.slice(1).join("?")}`:"")}async function m(e,t){let r=t.res||t.ctx&&t.ctx.res;if(!e.getInitialProps)return t.ctx&&t.Component?{pageProps:await m(t.Component,t.ctx)}:{};let n=await e.getInitialProps(t);if(r&&f(r))return n;if(!n)throw Error(`"${d(e)}.getInitialProps()" should resolve to an object. But found "${n}" instead.`);return n}let g="u">typeof performance,h=g&&["mark","measure","getEntriesByName"].every(e=>"function"==typeof performance[e]);class b extends Error{}class y extends Error{}class v extends Error{constructor(e){super(),this.code="ENOENT",this.name="PageNotFoundError",this.message=`Cannot find module for page: ${e}`}}class w extends Error{constructor(e,t){super(),this.message=`Failed to load static file for page: ${e} ${t}`}}class k extends Error{constructor(){super(),this.code="ENOENT",this.message="Cannot find the middleware module"}}function S(e){return JSON.stringify({message:e.message,stack:e.stack})}},618566,(e,t,r)=>{t.exports=e.r(976562)},76003,e=>{"use strict";var t=e.i(843476),r=e.i(271645),n=e.i(716327),i=e.i(632781),a=e.i(770703),o=e.i(618566),l=e.i(540874),s=e.i(790235),u=e.i(60300),c=e.i(653290),d=e.i(778035),f=e.i(392489);let p="/api/marketing/header-panel";async function m(e=fetch,t={}){try{let r=new URLSearchParams;t.freshPreferences&&r.set("refresh","preferences"),t.preview&&"self"!==t.preview&&r.set(f.j,t.preview);let n=r.toString(),i=n?`${p}?${n}`:p,a=await e(i,{credentials:"same-origin",cache:"no-store"});if(!a.ok)return null;let o=await a.json();if(!o||"object"!=typeof o||"string"!=typeof o.status)return null;return o}catch{return null}}let g=(0,a.default)(()=>e.A(388789).then(e=>e.AvatarPanel),{loadableGenerated:{modules:[427354]},ssr:!1,loading:()=>(0,t.jsx)(h,{})});function h(){return(0,t.jsx)("div",{className:"flex items-center","aria-hidden":!0,children:(0,t.jsxs)("button",{type:"button",tabIndex:-1,className:"hp-trigger adept-prepaint-pill",children:[(0,t.jsx)("span",{className:"adept-hint-avatar inline-flex size-7 items-center justify-center rounded-full bg-cbt-50 bg-cover bg-center ring-1 ring-cbt-100"}),(0,t.jsx)("span",{className:"adept-hint-name hp-trigger-name"}),(0,t.jsx)(n.f,{"aria-hidden":!0,className:"hp-trigger-chevron"})]})})}function b(){let e=(0,l.r)(),n=r.useCallback(t=>{t.metaKey||t.ctrlKey||t.shiftKey||1===t.button||e&&(t.preventDefault(),e.login())},[e]),i=e?.prepareSignIn??s.s;return(0,t.jsx)("a",{href:u.F,onClick:n,onPointerEnter:i,onFocus:i,onTouchStart:i,className:"hidden rounded-md text-sm font-medium text-cbt-500 transition-colors hover:text-cbt-700 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-cbt-500 focus-visible:ring-offset-2 lg:inline-flex",children:"Sign In"})}e.s(["HeaderAuthControls",0,function({host:e="marketing"}={}){let n=(0,l.r)(),a=(0,o.usePathname)(),u="admin"===e,{hintChecked:f,hint:p,phase:y,refreshPreferences:v,preview:w,setPreviewPersona:k}=function(e){let[t,n]=r.useState(!1),[i,a]=r.useState(null),[o,s]=r.useState({kind:"idle"}),[u,f]=r.useState(0),p=r.useRef(!1),g=r.useRef(null),h=r.useRef(!0),b=r.useCallback(()=>{p.current=!0,f(e=>e+1)},[]);r.useEffect(()=>{let e;a((e=(0,l.B)())?{displayName:(0,c.E)(e.name),avatarUrl:(0,c.l)(e.picture)}:null),n(!0)},[]),r.useEffect(()=>(h.current=!0,()=>{h.current=!1}),[]);let y=t&&(null!==i||e);r.useEffect(()=>{let t=g.current;if(!e&&t&&(t.sdkAuthenticated=!1),!y||t&&t.generation===u&&(t.sdkAuthenticated||!e))return;let r={ordinal:(t?.ordinal??0)+1,generation:u,sdkAuthenticated:e};g.current=r,s(e=>"ready"===e.kind?e:{kind:"loading"});let n=p.current;p.current=!1,m(fetch,{freshPreferences:n}).then(e=>{h.current&&g.current?.ordinal===r.ordinal&&(s(t=>e?{kind:"ready",model:e}:"ready"===t.kind?t:{kind:"unavailable"}),e&&(0,d.g)("verified"===e.status&&e.viewer.internal))})},[y,u,e]);let[v,w]=r.useState(null),k=r.useRef(0);return{hintChecked:t,hint:i,phase:o,refreshPreferences:b,preview:v,setPreviewPersona:r.useCallback(e=>{if(k.current+=1,!e||"self"===e)return void w(null);let t=k.current;w({personaId:e,kind:"loading"}),m(fetch,{preview:e}).then(r=>{k.current===t&&w(r?{personaId:e,kind:"ready",model:r}:{personaId:e,kind:"unavailable"})})},[])}}(n?.status==="authenticated"||u),S=r.useCallback(()=>{let e=a&&a.startsWith("/")?a:"/",t=u?"/admin/login":e;if(!(0,s.m)()){u&&window.location.assign(t);return}(0,s.c)().then(e=>e?.logout({postLogoutRedirectUri:`${window.location.origin}${t}`})).catch(e=>{console.error("[adept-auth] sign-out could not load the SDK:",e instanceof Error?e.message:String(e)),window.location.assign(t)})},[a,u]);if(n?.authenticating)return(0,t.jsxs)("span",{className:"inline-flex items-center gap-2 rounded-md text-sm font-medium text-cbt-500",role:"status","aria-live":"polite",children:[(0,t.jsx)(i.f,{"aria-hidden":!0,className:"size-4 animate-spin"}),"Signing in…"]});if("ready"===y.kind)return"anonymous"===y.model.status?u?null:(0,t.jsx)(b,{}):(0,t.jsx)(g,{model:y.model,state:"ready",onSignOut:S,onPreferencesSaved:v,preview:w,onPreviewPersona:k});let x=n?.status==="authenticated"?n.profile:null;if(p||x){var E,j;let e=(E=p,j=x,{status:"hinted",viewer:{status:"hinted",displayName:E?.displayName??("string"==typeof j?.name?j.name:null),avatarUrl:E?.avatarUrl??(0,c.l)(j?.picture),email:null,internal:!1},sections:{learner:[],staff:[],employeeRow:[],footer:[],footerLinks:[],orgStrip:null,learnerBands:"shown"},editorHref:null,editor:null,unresolved:[],preview:null}),r="unavailable"===y.kind?"unavailable":"loading";return(0,t.jsx)(g,{model:e,state:r,onSignOut:S})}return u?"unavailable"===y.kind?null:(0,t.jsx)(h,{}):f?(0,t.jsx)(b,{}):(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("div",{className:"adept-slot-anon",children:(0,t.jsx)(b,{})}),(0,t.jsx)("div",{className:"adept-slot-authed",children:(0,t.jsx)(h,{})})]})}],76003)},590046,e=>{"use strict";e.s(["f",0,"site-search-dialog"])},212065,e=>{"use strict";var t=e.i(843476),r=e.i(271645),n=e.i(998082),i=e.i(618566),a=e.i(566595),o=e.i(311063),l=e.i(590046);let s=(0,r.lazy)(()=>e.A(830690).then(e=>({default:e.SearchDialogPanel})));function u(){e.A(830690).catch(()=>void 0)}let c={general:"Search",preview:"Preview any course",training:"Search training"};function d(e,t){return r=>{e?.(r),t(r)}}e.s(["f",0,function({variant:e="general",trigger:f,bindCommandK:p=!1,trackOpenLocation:m}={}){var g;let h=(0,i.usePathname)(),b=(0,n.A)(),{requested:y,open:v,bodyOpen:w,openMethod:k,onReady:S,reset:x}=b,[E,j]=(0,r.useState)(null),C=(0,r.useCallback)(()=>E,[E]);function P(e){b.request(e)&&m&&(0,o.p)(m,h)}let{toggle:A}=b;(0,r.useEffect)(()=>{if(p)return document.addEventListener("keydown",e),()=>document.removeEventListener("keydown",e);function e(e){(e.metaKey||e.ctrlKey)&&"k"===e.key&&(e.preventDefault(),A("keyboard"))}},[p,A]);let N=f&&(0,r.isValidElement)(f)?f.props:{},L={ref:(g=N.ref,e=>{"function"==typeof g?g(e):g&&"object"==typeof g&&(g.current=e),j(e)}),onClick:e=>{N.onClick?.(e),e.defaultPrevented||P((0,n.X)(e))},onPointerEnter:d(N.onPointerEnter,u),onFocus:d(N.onFocus,u),onTouchStart:d(N.onTouchStart,u),"aria-haspopup":"dialog","aria-expanded":v,"aria-controls":v?l.f:void 0},T=f&&(0,r.isValidElement)(f)?(0,r.cloneElement)(f,L):(0,t.jsx)("button",{type:"button",...L,ref:j,className:"flex min-h-11 min-w-11 items-center justify-center rounded-lg text-cbt-500 transition-colors hover:bg-cbt-50 hover:text-cbt-700 aria-expanded:bg-cbt-50 aria-expanded:text-cbt-700 focus-visible:ring-2 focus-visible:ring-cbt-500 focus-visible:outline-none lg:size-9 lg:min-h-0 lg:min-w-0","aria-label":c[e],children:(0,t.jsx)(a.f,{className:"size-5"})});return(0,t.jsxs)(t.Fragment,{children:[T,y?(0,t.jsx)(n.T,{name:"search-dialog",onError:x,children:(0,t.jsx)(s,{variant:e,open:w,openMethod:k,onOpenChange:function(e){e?P(""):b.close()},onReady:S,finalFocus:C})}):null]})}])},268863,e=>{"use strict";var t=e.i(843476),r=e.i(522016),n=e.i(618566),i=e.i(271645),a=e.i(311063),o=e.i(117213);e.s(["TrackedLink",0,function({href:e,location:l,className:s,children:u,ariaLabel:c,ariaDescribedBy:d,external:f=!1,inPage:p=!1,dataTestId:m,details:g}){let h=(0,n.usePathname)(),b=(0,i.useRef)(null);(0,o.f)(b,d);let y=()=>g?(0,a.p)(l,h,g):(0,a.p)(l,h);return p?(0,t.jsx)("a",{ref:b,href:e,className:s,"aria-label":c,"aria-describedby":d,"data-testid":m,onClick:y,children:u}):f?(0,t.jsx)("a",{ref:b,href:e,target:"_blank",rel:"noopener noreferrer",className:s,"aria-label":c,"aria-describedby":d,"data-testid":m,onClick:y,children:u}):(0,t.jsx)(r.default,{ref:b,href:e,className:s,"aria-label":c,"aria-describedby":d,"data-testid":m,onClick:y,children:u})}])},998082,e=>{"use strict";var t=e.i(843476),r=e.i(271645);let n=/Loading chunk|ChunkLoadError|Failed to fetch dynamically imported module|Importing a module script failed|error loading dynamically imported module/i;class i extends r.Component{state={failed:!1};static getDerivedStateFromError(){return{failed:!0}}componentDidCatch(e){let t,r=(t=e instanceof Error?`${e.name} ${e.message}`:String(e),n.test(t));console.error(`[lazy-island] ${this.props.name} failed to load${r?" (chunk — deploy skew or offline)":""}:`,e instanceof Error?e.message:String(e)),this.props.onError?.(),r&&function(e){let t=`cbt_lazy_island_reloaded:${e}`;try{if(window.sessionStorage.getItem(t))return!1;window.sessionStorage.setItem(t,"1")}catch{return!1}window.location.reload()}(this.props.name)}render(){return this.state.failed?null:(0,t.jsx)(r.Suspense,{fallback:null,children:this.props.children})}}e.s(["T",0,i,"X",0,function(e){let t=e.nativeEvent;return"string"==typeof t.pointerType?t.pointerType:""},"A",0,function(){let[e,t]=(0,r.useState)(!1),[n,i]=(0,r.useState)(!1),[a,o]=(0,r.useState)(!1),[l,s]=(0,r.useState)(""),u=(0,r.useCallback)((e="")=>!n&&(s(e),t(!0),i(!0),!0),[n]),c=(0,r.useCallback)(()=>i(!1),[]),d=(0,r.useCallback)(e=>{e?u():i(!1)},[u]),f=(0,r.useCallback)((e="")=>n?a?(i(!1),"closed"):"ignored":(u(e),"opened"),[n,a,u]);return{requested:e,open:n,bodyOpen:n&&a,openMethod:l,request:u,close:c,onOpenChange:d,toggle:f,onReady:(0,r.useCallback)(()=>o(!0),[]),reset:(0,r.useCallback)(()=>{i(!1),t(!1),o(!1)},[])}},"B",0,function(e){(0,r.useEffect)(()=>{e?.()},[e])}])},117213,e=>{"use strict";var t=e.i(271645);let r=/^(SECTION|ARTICLE|ASIDE|HEADER|MAIN)$/;function n(e){return Number(e.tagName.slice(1))||9}e.s(["f",0,function(e,i){(0,t.useEffect)(()=>{if(i)return;let t=e.current;if(!t||t.hasAttribute("aria-describedby"))return;let a=function(e){let t=e.parentElement;for(;t&&t!==document.body;){let i=t.getAttribute("aria-labelledby");if(i){let t=i.split(/\s+/)[0],r=t?document.getElementById(t):null;if(r&&!r.contains(e))return t}if(r.test(t.tagName)||"region"===t.getAttribute("role")){let r=function(e,t){let r=Array.from(e.querySelectorAll("h1, h2, h3, h4")).filter(e=>!e.contains(t)&&!t.contains(e)&&(e.textContent??"").trim().length>0&&"true"!==e.getAttribute("aria-hidden"));return 0===r.length?null:(r.sort((e,t)=>n(e)-n(t)),r[0])}(t,e);if(r)return function(e){if(e.id)return e.id;let t="ctx-"+(e.textContent??"").toLowerCase().replace(/[^a-z0-9]+/g,"-").replace(/^-+|-+$/g,"").slice(0,48),r=t||"ctx-heading",n=2;for(;document.getElementById(r)&&document.getElementById(r)!==e;)r=`${t}-${n++}`;return e.id=r,r}(r)}t=t.parentElement}}(t);if(a)return t.setAttribute("aria-describedby",a),()=>{t.getAttribute("aria-describedby")===a&&t.removeAttribute("aria-describedby")}},[e,i])}])},790235,e=>{"use strict";let t;var r=e.i(840617);function n(){return null!==(0,r.f)()}let i=null;function a(){return i||(i=e.A(520428).then(e=>(t=e.adeptClient,e.adeptClient),e=>{throw i=null,e})),i}e.s(["m",0,n,"c",0,a,"U",0,function(){return t},"s",0,function(){n()&&a().catch(()=>void 0)}])},840617,e=>{"use strict";e.i(247167),e.s(["f",0,function(){return{issuer:"https://accounts.api.adept.at",clientId:"6e70abf6857a61f45fb6fd7ebc01fb17257a22367447c69c",redirectUri:"http://www.skru.ac.th/intro/?train=api/auth/callback/adept"}}])},653290,392489,e=>{"use strict";let t=RegExp("^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$","i");e.s(["f",0,{accountMenuName:e=>`Account menu for ${e}`,logOut:"Log out",editMenu:"Edit menu",showAll:e=>`Show all ${e}`,accountDetailsUnavailable:"Account details are unavailable right now. Reload to try again.",employeeBadge:"Employee",showLearnerMenu:"Show learner menu",hideLearnerMenu:"Show employee menu",showEmployeeMenu:"Show employee menu",previewAs:"Preview as",previewing:e=>`Previewing: ${e}`,loading:"Loading your account",notIncluded:"Not included in your plan",preferencesUnavailable:"Showing the default tools. Your starred tools could not be loaded right now.",orgStripSeparator:"·",orgStripRole:{owner:"Owner",admin:"Admin",billingAdmin:"Billing admin",member:"Member"},orgStripIndividual:"Individual",orgStripOrganizations:e=>`${e} organizations`,orgStripOrganizationsLinkSuffix:", open Org Dashboard",orgStripTeamLicense:"Team license",orgStripNoTeamLicense:"No team license",orgStripLicensed:"Licensed",orgStripNoSubscription:"No active subscription"},"l",0,function(e){let r;if("string"!=typeof e)return null;let n=e.trim();if(t.test(n))return`https://static.adept.at/content/profile/avatar/${n.toLowerCase()}/72.jpg`;try{r=new URL(n)}catch{return null}return"https:"!==r.protocol||r.username||r.password?null:r.toString()},"E",0,function(e){if("string"!=typeof e)return null;let t=e.replace(/[\u0000-\u001F\u007F\u202A-\u202E\u2066-\u2069]/g,"").trim();return t?t.length>40?t.slice(0,40):t:null}],653290);let r=["feature.certPrep","feature.progress","feature.candidateAssessment"],n=[{id:"self",label:"Your own account",capabilities:[],unresolved:[],params:[]},{id:"hinted",label:"Signed in, directory slow (hinted)",capabilities:["identity.known",...r],unresolved:["profile","affiliations","cbt.console","assessments.console","license"],hinted:!0,params:[]},{id:"signedInNoPurchases",label:"Signed in, no purchases",capabilities:["identity.known","identity.verified","plane.platform",...r],unresolved:[],params:[]},{id:"individualLearner",label:"Individual learner, no org",capabilities:["identity.known","identity.verified","access.course",...r],unresolved:["license"],params:[]},{id:"individualNoSubscription",label:"Individual, no active subscription",capabilities:["identity.known","identity.verified","license.none",...r],unresolved:[],params:[]},{id:"individualSubscribed",label:"Individual, active subscription",capabilities:["identity.known","identity.verified","access.course","license.individual",...r],unresolved:[],params:[]},{id:"orgMemberLicenseUnknown",label:"Org member, license unknown",capabilities:["identity.known","identity.verified","access.course","org.member","plane.platform",...r],unresolved:["license"],params:["orgId"],orgRole:"member"},{id:"orgMemberUnlicensed",label:"Org member, no Team license",capabilities:["identity.known","identity.verified","access.course","org.member","plane.platform","license.none",...r],unresolved:[],params:["orgId"],orgRole:"member"},{id:"orgAdminUnlicensed",label:"Org admin, no Team license",capabilities:["identity.known","identity.verified","access.course","org.member","org.admin","org.admin:{orgId}","orgs.spanTenants","plane.platform","license.none",...r],unresolved:[],params:["orgId"],orgRole:"admin"},{id:"orgAdminTeamLicense",label:"Org admin with a Team license",capabilities:["identity.known","identity.verified","access.course","org.member","org.admin","org.admin:{orgId}","plane.platform","license.team",...r],unresolved:[],params:["orgId"],orgRole:"admin"},{id:"billingAdminTeamLicense",label:"Billing admin with a Team license",capabilities:["identity.known","identity.verified","access.course","org.member","adept.billingAdmin","plane.platform","license.team",...r],unresolved:[],params:["orgId"],orgRole:"billingAdmin"},{id:"partnerTenantMember",label:"Partner-tenant member",capabilities:["identity.known","identity.verified","access.course","org.member","plane.tenant:00000000-0000-4000-8000-0000000007e1","feature.progress"],unresolved:["license"],params:["orgId"],orgRole:"member"}];n.map(e=>e.id),e.s(["r",0,n,"j",0,"preview"],392489)}]);