"use strict"; !function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="f04ef33c-32ac-5b0c-b27e-95f641e1b52a")}catch(e){}}(); (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1731],{91359:(e,t,r)=>{r.d(t,{l:()=>a});var o=r(23682);function n(e){return"boolean"==typeof e}function a(e,t){let r="repeat",a=",",i=!0;if(n(t))i=t;else if(t){var s,c;r=null!==(s=t.arrayFormat)&&void 0!==s?s:"repeat",a=null!==(c=t.arrayFormatSeparator)&&void 0!==c?c:",",i=!n(t.questionMark)||t.questionMark}let l=Object.keys(e).filter(t=>null!=e[t]).flatMap(t=>{let n=e[t];return Array.isArray(n)?"comma"===r||"separator"===r?"".concat(t,"=").concat(n.map(e=>encodeURIComponent(String(e))).join(a)):n.map((e,o)=>{let n=t;return("index"===r||"bracket"===r)&&(n="".concat(n,"[").concat("index"===r?o:"","]")),"".concat(n,"=").concat(encodeURIComponent(String(e)))}):n&&(0,o.G)(n)?Object.keys(n).map(e=>{let r=n[e]||"",o=encodeURIComponent(t),a="".concat(o,"-").concat(encodeURIComponent(e));return"".concat(a,"=").concat(encodeURIComponent(r))}):t+"="+encodeURIComponent(n)}).sort().join("&");return l.length?i?"?".concat(l):"&".concat(l):""}},81014:(e,t,r)=>{r.d(t,{Hr:()=>i,Ri:()=>a,TV:()=>s});var o=r(33877),n=r(50355);function a(e,t){if(t){let o=r(45813).parse,{cookie:n}=t.headers;if(!n)return;return o(n)[e]}return o.A.get(e)}function i(e,t,r){let o;return o=a(e,r),void 0!==t?o===t:!!o}function s(e,t){let a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"365d",i=arguments.length>3?arguments[3]:void 0,s=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"/",c=new Date(Date.now()+(0,n.A)(a)),l=function(e){if(e)return!!e.startsWith("https:");try{if(window.location.protocol)return"https:"===window.location.protocol}catch(e){}return!0}(null==i?void 0:i.req.url);if(i){let o=r(45813),n=i.getHeader("Set-Cookie")||[];return i.setHeader("Set-Cookie",[...Array.isArray(n)?n:[n],o.serialize(e,t,{sameSite:"lax",secure:l,path:s,expires:c})])}o.A.set(e,t,{expires:c,path:s,secure:l,SameSite:"Lax"})}},91157:(e,t,r)=>{r.d(t,{Xf:()=>n,vU:()=>a});var o=r(33877);let n=()=>o.A.get("scope"),a=()=>{o.A.remove("scope")}},8833:(e,t,r)=>{r.d(t,{J:()=>n});let o=Symbol.for("react.postpone");function n(e){if("object"==typeof e&&null!==e&&"$$typeof"in e&&e.$$typeof===o)return!0;if("object"!=typeof e||null===e||!("digest"in e)||"string"!=typeof e.digest)return!1;let t=e.digest.split(";")[0];return"NEXT_REDIRECT"===t||"DYNAMIC_SERVER_USAGE"===t||"BAILOUT_TO_CLIENT_SIDE_RENDERING"===t||"NEXT_NOT_FOUND"===t}},42007:(e,t,r)=>{r.d(t,{Cp:()=>l,uP:()=>c});var o=r(49761),n=r(53425),a=r(46385),i=r(8833),s=r(56029);let c=(e,t)=>{if(t.ignoreOrphaned&&!o.u.getActiveSpan())return new Promise(t=>{t(e(void 0))});let{name:r,attributes:i}=t;return o.u.getTracer("vercel-site").startActiveSpan(r,async r=>{i&&r.setAttributes(i);try{let t=await e(r);return r.end(),t}catch(e){throw n._.with(o.u.setSpan(n._.active(),r),()=>{l(e,{ignoreClientErrors:t.ignoreClientErrors})}),e instanceof Error?r.setStatus({code:a.s.ERROR,message:e.message}):r.setStatus({code:a.s.ERROR,message:JSON.stringify(e)}),r.end(),e}})};function l(e,t){!(0,i.J)(e)&&((0,s.b)(e)&&"CustomFetchError"===e.name&&e.status&&e.status>=400&&e.status<500&&(Math.random()>.1||(null==t?void 0:t.ignoreClientErrors))||console.error(e,t))}},35718:(e,t,r)=>{r.d(t,{M:()=>n});var o=r(81014);function n(e){return e?(0,o.Hr)("isLoggedIn","1",e):void 0!==globalThis.__loggedIn?globalThis.__loggedIn:globalThis.__loggedIn=(0,o.Hr)("isLoggedIn","1")}},63176:(e,t,r)=>{r.d(t,{B5:()=>i,CwE:()=>s,cEQ:()=>u,fOm:()=>a,o$9:()=>l,qQU:()=>f,sI6:()=>d,xXT:()=>c});var o,n=r(73124);new URL(null!==(o=n.env.VERCEL_API_URL)&&void 0!==o?o:"https://api.vercel.com").host;let a="".concat("/api/teams","?flags=true&permissions=true"),i="/api/www/user",s="/api/v3/user/tokens";n.env.NEXT_PUBLIC_API_REGISTRATION_DEV,n.env.NEXT_PUBLIC_API_PROJECTS_DEV,n.env.NEXT_PUBLIC_API_INTEGRATION_CONTROLLER_DEV;let c="/functions/sales-email",l="/api/jwt",u="/api/job-application",d="/api/try/register",f="/api/clearbit/enrichment"},1646:(e,t,r)=>{r.d(t,{ff:()=>d});var o=r(54041),n=r(92370),a=(r(81014),r(8833)),i=r(42007),s=r(91157);let c=!1;window.addEventListener("beforeunload",()=>{c=!0,setTimeout(()=>{c=!1},50)});var l=r(91359);function u(e){return null!=e&&"object"==typeof e&&"error"in e}function d(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=e.startsWith("/api")?""+e:e.startsWith("/")?""+"/api".concat(e):e;return(0,i.uP)(e=>f(e,r,t),{name:"lib/fetch-api ".concat(t.method||"GET"," ").concat(r),ignoreOrphaned:!0,ignoreClientErrors:t.ignoreClientErrors})}async function f(e,t,r){var n,i,d,f,y;let E,b,_;let A=r.headers||{},C=r.method||"GET";if(r.middlewareReq){let e=null===(n=r.middlewareReq.cookies.get("authorization"))||void 0===n?void 0:n.value;e&&(A.authorization=e)}else delete A.authorization,delete A.Authorization;A.Accept=null!==(i=A.Accept)&&void 0!==i?i:"*/*",r.body&&(A["Content-Type"]=null!==(d=A["Content-Type"])&&void 0!==d?d:"application/json; charset=utf-8"),r.formData?r.body=r.formData:function(e){if("object"==typeof e&&null!==e){let t=Object.getPrototypeOf(e);return t===Object.prototype||null===t}return!1}(r.body)&&(r.body=JSON.stringify(r.body));let T=(g++,v.set(g,{time:Date.now(),url:t,method:C}),m("#".concat(g," .. ").concat(C," ").concat(t," | ").concat(Date.now())),g);try{E=await fetch(t,{...r,headers:A})}catch(r){if((0,a.J)(r))throw r;let e=h(r,{method:C,endpoint:t});"cancelled"===e.message||c||"TypeError"===e.name?(_=e).name="AbortError":_=h(Error("A network error has occurred. Please check your connection and try again."),{method:C,endpoint:t,errorCode:"network_error"}),w(T,r,null,null)}let I=E&&(f=E,!!(y=r.throwOnHTTPError)&&("function"==typeof y?y(f):f.status<200||f.status>=300));if(E&&("0"!==E.headers.get("Content-Length")||I)){e&&function(e,t){t.setAttribute("http.status_code",e.status),t.setAttribute("http.url",e.url);let r=p(e.headers.get("x-vercel-id"));r&&t.setAttribute("vercel.request_id",r)}(E,e);try{if(I){let{type:e}=(0,o.q)(E.headers.get("Content-Type")||"text/plain");if("application/json"===e){try{b=await E.json()}catch(e){b={}}if(!r.throwOnSAMLError&&u(b)&&b.error.saml&&b.error.scope===(0,s.Xf)()&&(console.log("SAML authentication error. Showing modal...",_),function(e){let{slug:t,next:r,push:o}=e;window.location.pathname.startsWith("/login/scope")||window.location.pathname.startsWith("/oauth/git")||o("/login/scope/".concat(t).concat((0,l.l)({next:r||window.location.pathname+window.location.search,missingScope:"1"})))}({slug:b.error.scope,push:e=>{window.location.href=e}})),r.wrapErrorsLegacy&&b&&"object"==typeof b&&"code"in b&&"message"in b&&(b.error=b),_=h(Error(u(b)?b.error.message||String(b.error.code):"Unexpected Error"),{method:C,endpoint:t,resp:E}),u(b))for(let e of(_.code=b.error.code,Object.keys(b.error)))"message"!==e&&(_[e]=b.error[e])}else{let r=await E.text();throw h(Error("Unexpected response: ".concat(e," ").concat(r)),{method:C,endpoint:t,resp:E})}}else b=204===E.status?null:(E.headers.get("Content-Type")||"").startsWith("text/")?await E.text():await E.json();w(T,_,E.status,E.headers.get("x-vercel-id"))}catch(r){let e=h(r,{method:C,endpoint:t,resp:E});w(T,r,E.status,E.headers.get("x-vercel-id")),r!==(_=e)&&(_.cause=r)}}if(!_){if(r.returnStatus||r.returnHeaders){let e={body:b,status:void 0,headers:void 0};return r.returnStatus&&(e.status=null==E?void 0:E.status),r.returnHeaders&&(e.headers=null==E?void 0:E.headers),e}return b}if(_.status&&_.status<500)throw _;throw r.body&&(_.stack=(_.stack?_.stack:"")+" ### Request Body: "+r.body),_}function p(e){if(e)return e}function h(e,t){let{method:r,endpoint:o,resp:a,errorCode:i}=t,s=(0,n.cQ)(e);if(s.name&&"Error"!==s.name||(s.name="CustomFetchError"),Object.defineProperty(s,"res",{value:a,enumerable:!1}),!s.code)try{s.code=null!=i?i:a&&a.status>=400?a.status:void 0}catch(e){}s.status=null==a?void 0:a.status;let c={"http.method":r,"http.url":o};if(a){c["http.status_code"]=a.status;let e=p(a.headers.get("x-vercel-id"));e&&(c["vercel.request_id"]=e)}return s.attributes=c,s}window.fetchAPI=d;let g=0,v=new Map;function m(){for(var e=arguments.length,t=Array(e),r=0;r ").concat([a.method,a.url,o].filter(Boolean).join(" ")," (").concat(r?"".concat(r,", "):"").concat(n,") [").concat(i-a.time,"ms] | ").concat(Date.now())):m("#".concat(e," -> ").concat([a.method,a.url,o].filter(Boolean).join(" ")," (").concat(r||"",") [").concat(i-a.time,"ms] | ").concat(Date.now())),v.delete(e)}},31731:(e,t,r)=>{r.d(t,{RootUserProvider:()=>f,Jd:()=>h});var o=r(72303),n=r(48757),a=r(33877),i=r(60210),s=r(63176),c=r(35718),l=r(1646);async function u(e,t){var r;return(0,c.M)(e)?(0,l.ff)("".concat(s.B5,"?flags=true"),{...t,req:e||void 0,throwOnHTTPError:null===(r=null==t?void 0:t.throwOnHTTPError)||void 0===r||r}):{}}let d=(0,c.M)()?u():null;function f(e){let{children:t}=e,r=function(){var e,t;let r=(0,n.Ay)(s.B5,async()=>{let e;if(d?(e=await d,d=null):e=await u(),window._sift){var t;let r=(null===(t=e.user)||void 0===t?void 0:t.uid)||"";window._sift.push(["_setUserId",r])}return e}),a=(0,o.useMemo)(()=>r.data?!r.data.user:!!r.error||void 0,[r.data,r.error]),i=(0,o.useMemo)(()=>{var e;return(null===(e=r.data)||void 0===e?void 0:e.user)?"northstar"===r.data.user.version:void 0},[r.data]);return Object.assign(r,{isLoggedOut:a,isNorthstar:i,user:null===(e=r.data)||void 0===e?void 0:e.user,flags:null===(t=r.data)||void 0===t?void 0:t.flags})}();return(0,o.createElement)(p.Provider,{value:r},t)}let p=(0,o.createContext)({data:{user:void 0,flags:void 0},isLoading:!0,mutate:()=>Promise.resolve(void 0),isValidating:!1,error:void 0,isLoggedOut:void 0,isNorthstar:void 0,user:void 0,flags:void 0});function h(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=(0,i.useRouter)(),r=(0,o.useContext)(p);return(0,o.useEffect)(()=>{r.data&&!r.data.user&&e&&t.replace("/login?next=".concat(encodeURIComponent(location.pathname+(location.search||"")+(location.hash||""))))},[e,t,r.data]),(0,o.useEffect)(()=>{var e,t;let o=(null===(e=r.error)||void 0===e?void 0:e.statusCode)||(null===(t=r.error)||void 0===t?void 0:t.status);(403===o||401===o)&&(a.A.remove("isLoggedIn"),delete globalThis.__loggedIn)},[r.error]),r}},92370:(e,t,r)=>{r.d(t,{Nw:()=>n,cQ:()=>a,gM:()=>i});var o=r(56029);let n=(e,t)=>(0,o.b)(e)||(0,o.u)(e)?e.message:"string"==typeof e?e:null!=t?t:"An unknown error has ocurred.",a=e=>{if((0,o.b)(e))return e;let t=n(e);return(0,o.u)(e)?Object.assign(Error(t),e):Error(t)};function i(e){throw Error("Exhaustiveness check failed")}},56029:(e,t,r)=>{r.d(t,{b:()=>a,u:()=>n});var o=r(23682);let n=e=>(0,o.G)(e)&&"message"in e,a=e=>!!(0,o.G)(e)&&(e instanceof Error||function e(t){if("[object Error]"===Object.prototype.toString.call(t))return!0;let r=Object.getPrototypeOf(t);return null!==r&&e(r)}(e))},23682:(e,t,r)=>{r.d(t,{G:()=>o});let o=e=>"object"==typeof e&&null!==e&&!Array.isArray(e)}}]); //# debugId=f04ef33c-32ac-5b0c-b27e-95f641e1b52a