1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7177],{6714:()=>{},13471:(e,t,n)=>{"use strict";async function r(e,t,n){let r={email:e};t&&(r.redirect_intent=t),void 0!==n&&(r.website_url=n);let a=await fetch("/api/auth/login",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(r)});if(!a.ok)throw Error(`HTTP ${a.status}`);let i=await a.json();return i.data?{...i,...i.data}:i}async function a(e){let t=await fetch(`/api/auth/verify?token=${encodeURIComponent(e)}`);if(!t.ok)throw Error((await t.json().catch(()=>({}))).message||`HTTP ${t.status}`);let n=await t.json();return n.data?{...n,...n.data}:n}async function i(){let e=await fetch("/api/auth/session",{cache:"no-store",credentials:"include"});if(!e.ok)throw Error(`HTTP ${e.status}`);let t=await e.json();return t.data?{...t,...t.data}:t}async function s(){let e=await fetch("/api/auth/logout",{method:"POST"});if(!e.ok)throw Error(`HTTP ${e.status}`);return e.json()}async function l(){try{let e=await fetch("/api/auth/csrf");if(!e.ok)return null;let t=await e.json();return t.data?.token||t.token||null}catch{return null}}async function o(){let e=await fetch("/api/account");if(!e.ok)throw Error(`HTTP ${e.status}`);return e.json()}async function c(e,t,n){let r=await fetch("/api/account",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({first_name:e,last_name:t,_csrf_token:n})});if(!r.ok)throw Error(`HTTP ${r.status}`);return r.json()}n.d(t,{F9:()=>c,Gf:()=>o,dy:()=>i,iD:()=>r,jW:()=>a,m5:()=>l,ri:()=>s})},28356:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n={cancelIdleCallback:function(){return i},requestIdleCallback:function(){return a}};for(var r in n)Object.defineProperty(t,r,{enumerable:!0,get:n[r]});let a="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 t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},35692:(e,t,n)=>{Promise.resolve().then(n.t.bind(n,6714,23)),Promise.resolve().then(n.t.bind(n,66872,23)),Promise.resolve().then(n.bind(n,81008)),Promise.resolve().then(n.t.bind(n,42593,23))},42593:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r={default:function(){return _},handleClientScriptLoad:function(){return p},initScriptLoader:function(){return w}};for(var a in r)Object.defineProperty(t,a,{enumerable:!0,get:r[a]});let i=n(73623),s=n(66388),l=n(95155),o=i._(n(47650)),c=s._(n(12115)),u=n(75368),d=n(3584),f=n(28356),h=new Map,m=new Set,y=e=>{let{src:t,id:n,onLoad:r=()=>{},onReady:a=null,dangerouslySetInnerHTML:i,children:s="",strategy:l="afterInteractive",onError:c,stylesheets:u}=e,f=n||t;if(f&&m.has(f))return;if(h.has(t)){m.add(f),h.get(t).then(r,c);return}let y=()=>{a&&a(),m.add(f)},p=document.createElement("script"),w=new Promise((e,t)=>{p.addEventListener("load",function(t){e(),r&&r.call(this,t),y()}),p.addEventListener("error",function(e){t(e)})}).catch(function(e){c&&c(e)});i?(p.innerHTML=i.__html||"",y()):s?(p.textContent="string"==typeof s?s:Array.isArray(s)?s.join(""):"",y()):t&&(p.src=t,h.set(t,w)),(0,d.setAttributesFromProps)(p,e),"worker"===l&&p.setAttribute("type","text/partytown"),p.setAttribute("data-nscript",l),u&&(e=>{if(o.default.preinit)return e.forEach(e=>{o.default.preinit(e,{as:"style"})});{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(p)};function p(e){let{strategy:t="afterInteractive"}=e;"lazyOnload"===t?window.addEventListener("load",()=>{(0,f.requestIdleCallback)(()=>y(e))}):y(e)}function w(e){e.forEach(p),[...document.querySelectorAll('[data-nscript="beforeInteractive"]'),...document.querySelectorAll('[data-nscript="beforePageRender"]')].forEac
1h(e=>{let t=e.id||e.getAttribute("src");m.add(t)})}function g(e){let{id:t,src:n="",onLoad:r=()=>{},onReady:a=null,strategy:i="afterInteractive",onError:s,stylesheets:d,...h}=e,{updateScripts:p,scripts:w,getIsSsr:g,appDir:_,nonce:v}=(0,c.useContext)(u.HeadManagerContext);v=h.nonce||v;let b=(0,c.useRef)(!1);(0,c.useEffect)(()=>{let e=t||n;b.current||(a&&e&&m.has(e)&&a(),b.current=!0)},[a,t,n]);let I=(0,c.useRef)(!1);if((0,c.useEffect)(()=>{if(!I.current){if("afterInteractive"===i)y(e);else"lazyOnload"===i&&("complete"===document.readyState?(0,f.requestIdleCallback)(()=>y(e)):window.addEventListener("load",()=>{(0,f.requestIdleCallback)(()=>y(e))}));I.current=!0}},[e,i]),("beforeInteractive"===i||"worker"===i)&&(p?(w[i]=(w[i]||[]).concat([{id:t,src:n,onLoad:r,onReady:a,onError:s,...h,nonce:v}]),p(w)):g&&g()?m.add(t||n):g&&!g()&&y({...e,nonce:v})),_){if(d&&d.forEach(e=>{o.default.preinit(e,{as:"style"})}),"beforeInteractive"===i)if(!n)return h.dangerouslySetInnerHTML&&(h.children=h.dangerouslySetInnerHTML.__html,delete h.dangerouslySetInnerHTML),(0,l.jsx)("script",{nonce:v,dangerouslySetInnerHTML:{__html:`(self.__next_s=self.__next_s||[]).push(${JSON.stringify([0,{...h,id:t}])})`}});else return o.default.preload(n,h.integrity?{as:"script",integrity:h.integrity,nonce:v,crossOrigin:h.crossOrigin}:{as:"script",nonce:v,crossOrigin:h.crossOrigin}),(0,l.jsx)("script",{nonce:v,dangerouslySetInnerHTML:{__html:`(self.__next_s=self.__next_s||[]).push(${JSON.stringify([n,{...h,id:t}])})`}});"afterInteractive"===i&&n&&o.default.preload(n,h.integrity?{as:"script",integrity:h.integrity,nonce:v,crossOrigin:h.crossOrigin}:{as:"script",nonce:v,crossOrigin:h.crossOrigin})}return null}Object.defineProperty(g,"__nextScript",{value:!0});let _=g;("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},55625:(e,t,n)=>{"use strict";function r(){let e=window.location.hostname;return"localhost"===e?"local":e.includes("kn-test")?"test":e.includes("kn-live")?"live":"production"}function a(){return`cms_session_${r()}`}function i(){return`cms_session_cache_${r()}`}function s(e){localStorage.setItem(a(),JSON.stringify(e)),localStorage.setItem(i(),Date.now().toString());try{let t=new BroadcastChannel("knet_session");t.postMessage(e),t.close()}catch{window.dispatchEvent(new CustomEvent("sessionChanged",{detail:e}))}}function l(){let e=localStorage.getItem(i());if(!e)return null;if(Date.now()-parseInt(e,10)>3e5)return localStorage.removeItem(a()),localStorage.removeItem(i()),null;let t=localStorage.getItem(a());if(!t)return null;try{return JSON.parse(t)}catch{return null}}function o(){localStorage.removeItem(a()),localStorage.removeItem(i());try{let e=new BroadcastChannel("knet_session");e.postMessage({authenticated:!1}),e.close()}catch{window.dispatchEvent(new CustomEvent("sessionChanged",{detail:null}))}}n.d(t,{AA:()=>s,HY:()=>l,q7:()=>o})},66872:()=>{},81008:(e,t,n)=>{"use strict";n.d(t,{A:()=>c,AuthProvider:()=>o});var r=n(95155),a=n(12115),i=n(13471),s=n(55625);let l=(0,a.createContext)(void 0);function o({children:e}){let[t,n]=(0,a.useState)(null),[o,c]=(0,a.useState)(!0),u=(0,a.useRef)(null);async function d(){try{let e=await (0,i.dy)(),t={authenticated:e.authenticated,userId:e.userId,email:e.email,firstName:e.firstName,lastName:e.lastName,emailSub:e.emailSub};return(0,s.AA)(t),n(t),t}catch{let e={authenticated:!1};return n(e),(0,s.q7)(),e}}(0,a.useEffect)(()=>{if(u.current=t,t)try{t.authenticated&&t.email?localStorage.setItem("kn-hint-usr",t.email):localStorage.removeItem("kn-hint-usr")}catch{}},[t]),(0,a.useEffect)(()=>{!async function(){let e=(0,s.HY)();if(e?.authenticated){n(e),c(!1);return}try{let e=await (0,i.dy)(),t={authenticated:e.authenticated,userId:e.userId,email:e.email,firstName:e.firstName,lastName:e.lastName,emailSub:e.emailSub};(0,s.AA)(t),n(t)}catch{n({authenticated:!1}),(0,s.q7)()}finally{c(!1)}}();let e=setInterval(async()=>{if(u.current?.authenticated)try{await d()}catch{}},3e5),t=null;try{(t=new BroadcastChannel("knet_session")).onmessage=e=>{n(e.data)}}catch{let t=e=>n(e.detail);return window.addEventListener("sessionChanged",t),()=>{clearInterval(e),window.removeEventListener("sessionChanged",t)}}return()=>{clearInterval(e),t?.close()}},[]);let f=(0,a.useCallback)(async()=>{try{await (0,i.ri)()}catch{}finally{n({authenticated:!1}),(0,s.q7)()}},[]),h=(0,a.useMemo)(()=>({session:t,isLoading:o,refreshSession:d,logout:f,getCSRFToken:i.m5}),[t,o,f]);return(0,r.jsx)(l.Provider,{value:h,children:e})}function c(){let e=(0,a.useContext)(l);if(!e)throw Error("useAuth must be used within an AuthProvider");return e}}},e=>{e.O(0,[8587,7513,8441,3794,7358],()=>e(e.s=35692)),_N_E=e.O()}]);
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.