1!function(){try{var r="u">typeof window?window:"u">typeof global?global:"u">typeof globalThis?globalThis:"u">typeof self?self:{},e=(new r.Error).stack;e&&(r._sentryDebugIds=r._sentryDebugIds||{},r._sentryDebugIds[e]="8a854788-67a6-4ef6-8631-187d3d7c0fd4",r._sentryDebugIdIdentifier="sentry-dbid-8a854788-67a6-4ef6-8631-187d3d7c0fd4")}catch(r){}}(),(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8039],{15796:(r,e,t)=>{"use strict";t.d(e,{A:()=>d});var n=t(95155),a=t(15018),o=t(34335),s=t(84249),l=t(86691),i=t(81901);t(23220);let d={showToastNotificationToUser:(r,e={persistant:!1,techMessage:"",success:!0})=>{let t={click:e.persistant,touch:e.persistant,duration:e.persistant?3e5:2e3},d=e.success?"green":"red";return new Promise(e=>{l.Store.addNotification({content:()=>(0,n.jsx)(a.A,{open:!0,autoHideDuration:t.duration,onClose:()=>e(!0),anchorOrigin:{vertical:"bottom",horizontal:"right"},children:(0,n.jsx)(o.A,{style:{backgroundColor:d,color:"white"},message:(0,n.jsx)("span",{dangerouslySetInnerHTML:{__html:r}}),action:(0,n.jsx)(s.A,{size:"small","aria-label":"close",color:"inherit",onClick:()=>e(!1),children:(0,n.jsx)(i.In,{icon:"fluent:dismiss-20-regular"})})})}),dismiss:t,onRemoval:(r,t)=>{"manual"===t?e(!1):e(!0)},container:"center"})})}}},26967:(r,e,t)=>{"use strict";t.d(e,{u:()=>m,v:()=>g});var n=t(95155),a=t(93905),o=t(15796),s=t(50931),l=t(54921),i=t(32535),d=t(12115),c=t(77928),h=t(41606),u=t(36004),p=t(89214);let f=(0,d.createContext)(void 0),g=({children:r})=>{let[e,t]=(0,d.useState)(null),[g,m]=(0,d.useState)(null),[x,y]=(0,d.useState)(null),[b,w]=(0,d.useState)(!0),{registerPosthogEvent:k,identifyUser:v}=(0,h.A)(),{data:A}=(0,l.wV)(),S=(0,p.pO)(),{i18n:_}=(0,c.Bd)(),C=A?.access_token,I=A?.error,U=A?.user?.email,j=(0,d.useRef)(!1),E=(0,d.useCallback)(async()=>{if(!C)return;j.current||w(!0),k({eventName:"COMPANION_user_account_fetched",attributes:{user_id:U||"unknown"}});let r=performance.now();try{let e=await S.user.getAccount();console.log(`User data API took ${Math.round(performance.now()-r)}ms`),e.preferredLanguage&&e.preferredLanguage!==_.resolvedLanguage&&await _.changeLanguage(e.preferredLanguage),t(e),v(U||"unknown")}catch(t){let r=t instanceof u.hD?t.status:a.s.InternalServerError,e=(0,a.A)(r,s.t,"user");o.A.showToastNotificationToUser(e,{persistant:!1,success:!1}),t instanceof u.hD&&[401,403,404,502].includes(t.status)&&(i.Ay.reset(),await (0,l.CI)({callbackUrl:"/"}))}finally{j.current=!0,w(!1)}},[C,U]),N=(0,d.useCallback)(async()=>{await E()},[E]),D=(0,d.useCallback)(async()=>{if(!C||!e?.userSettings?.profileSettings)return;let r=performance.now();try{let e=await S.profile.getStatus();console.log(`Profile data API took ${Math.round(performance.now()-r)}ms`),console.log("Profile data:",e),m(e)}catch(t){let r=t instanceof u.hD?t.status:a.s.InternalServerError,e=(0,a.A)(r,s.t,"profile");o.A.showToastNotificationToUser(e,{persistant:!1,success:!1}),y(e),t instanceof u.hD&&[401,404].includes(t.status)&&(i.Ay.reset(),await (0,l.CI)({callbackUrl:"/"}))}},[C,e?.userSettings?.profileSettings]);(0,d.useEffect)(()=>{C&&!I&&E()},[C,I,E]),(0,d.useEffect)(()=>{e?.userSettings?.profileSettings&&D()},[e,D]);let H=(0,d.useMemo)(()=>({user:e,updateUser:N,error:x,fetchProfileStatus:D,profileData:g,loadingUser:b}),[e,N,x,D,g,b]);return(0,n.jsx)(f.Provider,{value:H,children:r})},m=()=>{let r=(0,d.useContext)(f);if(!r)throw Error("useUserContext must be used within a UserProvider");return r}},41606:(r,e,t)=>{"use strict";t.d(e,{A:()=>o});var n=t(69783),a=t(39989);let o=()=>{let r=(0,a.sf)(),{colorScheme:e}=(0,n.Ut)();return{registerPosthogEvent:({eventName:t,attributes:n={}})=>{r.capture(t,{event_attributes:n,theme:e})},identifyUser:(e,t)=>{let n=r.get_distinct_id();n?.includes("@")&&n!==e&&r.reset(),r.identify(e,t)},resetUser:()=>{r.reset()}}}},83720:(r,e,t)=>{"use strict";t.r(e),t.d(e,{default:()=>u});var n=t(95155),a=t(47970),o=t(62811),s=t(4071),l=t(48022),i=t(37721);t(12115);var d=t(50931),c=t(26967);let h=({onClick:r})=>{let e=(0,a.A)(),t=(0,o.A)(e.breakpoints.down("sm")),{user:h}=(0,c.u)(),u=h?.userSettings?.speech||"formal";return(0,n.jsx)(s.A,{sx:{height:"100vh",justifyContent:"center",alignItems:"center",display:"flex",flexDirection:"column",backgroundColor:"background.paper"},children:(0,n.jsxs)(s.A,{sx:{width:t?"343px":"612px",minHeight:t?"350px":"330px",alignItems:"center",display:"flex",flexDirection:"column",pt:t?20:15},children:[(0,n.jsxs)(l.A,{variant:"h4",color:"primary.light",sx:{fontWeight:"700",fontSize:t?"30px":"48px",lineHeight:t?"32px":"56px",letterSpacing:t?"0.25px":"0",textAlign:"center",minWidth:"700px",pt:t?3:7},children:[(0,d.t)("general.error.title_1"),(0,n.jsx)(s.A,{color:"text.primary",sx:{dis
1play:"inline"},children:(0,d.t)("general.error.title_2")})]}),(0,n.jsx)(l.A,{sx:{color:e.palette.custom.newGChipTertiary,fontWeight:"400",fontSize:"16px",lineHeight:"24px",letterSpacing:.15,width:"100%",textAlign:"center",pt:t?2:4,pb:2},variant:"h4",children:(0,d.t)(`general.error.description.${u}`)}),(0,n.jsx)(i.A,{size:t?"small":"large",variant:"contained",onClick:r,sx:{boxShadow:"0px 4px 8px -4px #4C4E646B",backgroundColor:e.palette.primary.light,fontWeight:"600",fontSize:t?"14px":"16px",mb:20,mt:t?2:4},children:(0,d.t)("general.error.button")})]})})};function u({reset:r}){return(0,n.jsx)(h,{onClick:r})}},93905:(r,e,t)=>{"use strict";t.d(e,{A:()=>s,s:()=>a});var n,a=((n={})[n.BadRequest=400]="BadRequest",n[n.Unauthorized=401]="Unauthorized",n[n.Forbidden=403]="Forbidden",n[n.NotFound=404]="NotFound",n[n.InternalServerError=500]="InternalServerError",n[n.ServiceUnavailable=502]="ServiceUnavailable",n);let o={learningHints:{400:"error-handler.learningHints.400",401:"error-handler.learningHints.401",404:"error-handler.learningHints.404",500:"error-handler.learningHints.500",403:"error-handler.learningHints.403"},settings:{400:"error-handler.settings.400",401:"error-handler.settings.401",404:"error-handler.settings.404",500:"error-handler.settings.500",403:"error-handler.settings.403"},default:{400:"error-handler.default.400",401:"error-handler.default.401",404:"error-handler.default.404",500:"error-handler.default.500",403:"error-handler.default.403"},user:{400:"error-handler.user.400",401:"error-handler.user.401",404:"error-handler.user.404",500:"error-handler.user.500",403:"error-handler.user.403",502:"error-handler.user.502"},profile:{400:"error-handler.profile.400",401:"error-handler.profile.401",404:"error-handler.profile.404",500:"error-handler.profile.500",403:"error-handler.profile.403"},history:{400:"error-handler.history.400",401:"error-handler.history.401",404:"error-handler.history.404",500:"error-handler.history.500",403:"error-handler.history.403"},session:{400:"error-handler.session.400",401:"error-handler.session.401",404:"error-handler.session.404",500:"error-handler.session.500",403:"error-handler.session.403"},comment:{400:"error-handler.comment.400",401:"error-handler.comment.401",404:"error-handler.comment.404",500:"error-handler.comment.500",403:"error-handler.comment.403"},feedback:{400:"error-handler.feedback.400",401:"error-handler.feedback.401",404:"error-handler.feedback.404",500:"error-handler.feedback.500",403:"error-handler.feedback.403"},account:{400:"error-handler.account.400",401:"error-handler.account.401",404:"error-handler.account.404",500:"error-handler.account.500",403:"error-handler.account.403"},chat:{400:"error-handler.chat.400",401:"error-handler.chat.401",404:"error-handler.chat.404",500:"error-handler.chat.500",403:"error-handler.chat.403"},stream:{400:"error-handler.stream.400",401:"error-handler.stream.401",404:"error-handler.stream.404",500:"error-handler.stream.500",403:"error-handler.stream.403"},course:{400:"error-handler.course.400",401:"error-handler.course.401",404:"error-handler.course.404",500:"error-handler.course.500",403:"error-handler.course.403"},starred:{400:"error-handler.starred.400",401:"error-handler.starred.401",404:"error-handler.starred.404",500:"error-handler.starred.500",403:"error-handler.starred.403"},roleplay:{400:"error-handler.roleplay.400",401:"error-handler.roleplay.401",404:"error-handler.roleplay.404",500:"error-handler.roleplay.500",403:"error-handler.roleplay.403"},transcript:{400:"error-handler.transcript.400",401:"error-handler.transcript.401",404:"error-handler.transcript.404",500:"error-handler.transcript.500",403:"error-handler.transcript.403"}},s=(r,e,t="default")=>{let n=o[t];return n[r]?e?e(n[r]):n[r]:e?e("error-handler.default.unknownError"):"An unknown error occurred."}},99689:(r,e,t)=>{Promise.resolve().then(t.bind(t,83720))}},r=>{r.O(0,[2353,8229,3866,1081,7288,7348,9539,5269,9793,8441,6601,7358],()=>r(r.s=99689)),_N_E=r.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.