1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[29391],{26806:(e,t,r)=>{"use strict";r.d(t,{N:()=>n});var o=r(37405);let i=e=>{let t=String(null!=e?e:"").trim();return/^\d+$/.test(t)?t:""};function n(e){let t,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=(null==e?void 0:e.user)||{},a=i((null==n?void 0:n.id)||(null==n?void 0:n.userId)),s=i((null==n?void 0:n.userId)||(null==n?void 0:n.id)),l=String((null==e?void 0:e.authToken)||""),u=("employer"===(t=String((null==n?void 0:n.description)||(null==n?void 0:n.role)||r.roleHint||"").toLowerCase().trim())?"recruiter":"jobseeker"===t?"candidate":t)||"candidate";if(!a||!l)return{ok:!1,destination:"/login",userType:u,loginCount:0};let c=localStorage.getItem("redirectUrl");(0,o.beginAuthTransition)("login"),(0,o.clearUserRuntimeData)({preserveAppSettings:!0}),localStorage.setItem("userId",a),localStorage.setItem("id",a),(0,o.persistClientAuthToken)(l),localStorage.setItem("usertype",u),r.isGoogle?localStorage.setItem("loggedInWithGoogle","1"):localStorage.removeItem("loggedInWithGoogle"),r.email&&localStorage.setItem("userEmail",String(r.email)),r.image&&localStorage.setItem("userImage",String(r.image)),c&&localStorage.removeItem("redirectUrl");try{localStorage.removeItem("nextPath")}catch{}try{localStorage.removeItem("viewProfilePath")}catch{}let d=`${u}LoginCount-${a}`,h=Number.parseInt(localStorage.getItem(d)||"0",10)+1;localStorage.setItem(d,String(h)),document.cookie=`${u}LoginCount=${h}; path=/`;try{let e=window.location.origin,t="recruiter"===u?"/recruiter/view-profile":"/jobseeker/view-profile",r=s||a,o=r?`${e}${t}?u=${r}`:`${e}${t}`;localStorage.setItem("publicProfileUrl",o),localStorage.setItem("publicProfileUserId",r)}catch{}try{localStorage.removeItem("intendedRole")}catch{}(0,o.endAuthTransition)("login",{lingerMs:8e3});try{(0,o.sanitizeAuthStorage)()}catch{}let m=(null==n||n.planExpireStatus,"recruiter"===u?"/recruiter/dashboard":"/jobseeker/dashboard");return{ok:!0,destination:((e,t,r)=>{let o,i=!(!(o=String(t||"").trim())||!o.startsWith("/")||o.startsWith("//"))?o:"";if(!i)return r;if("recruiter"===e)return"/recruiter"===i?"/recruiter/dashboard":i.startsWith("/recruiter/")?i:r;if("candidate"===e){if("/jobseeker"===i)return"/jobseeker/dashboard";if(i.startsWith("/jobseeker/"))return i}return r})(u,c||"",m),userType:u,loginCount:h}}},40958:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>p});var o=r(37876),i=r(94208),n=r.n(i),a=r(14232),s=r(89099),l=r(77328),u=r.n(l),c=r(57031),d=r(26948),h=r(43802),m=r(26806),g=r(94585),f=r(78636);function p(){let{data:e,status:t}=(0,h.N)(),[r]=(0,a.useState)(()=>(0,g.NA)()),i=(0,s.useRouter)(),l=(0,a.useRef)(!1),[p,v]=(0,a.useState)("");return(0,a.useEffect)(()=>{let o=r?"authenticated":t,n=r?{user:{email:r.email,name:r.name,image:r.image}}:e;"loading"===o||!i.isReady||l.current||(l.current=!0,(async()=>{var t,o,a,s;let l=String((null==n||null==(t=n.user)?void 0:t.email)||"").trim().toLowerCase();if(!l)return v("We couldnât read your Google account. Google may have cancelled the sign-in.");let u=String((null==r?void 0:r.idToken)||(null==e?void 0:e.googleIdToken)||"");if(r)try{(0,g.S2)()}catch{}try{let e=await fetch((0,d.o)("/api/auth/google"),{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({googleIdToken:u,role:"candidate",brand:"teachconnect",intent:"login",allowCreate:!0})}),t=await e.json().catch(()=>null);if(!e.ok||!(null==t?void 0:t.ok)||!(null==t?void 0:t.authToken)||!(null==t||null==(o=t.user)?void 0:o.id))return void v("We couldnât complete your Google sign-in.");(0,f.aY)(()=>{var e,r;return(0,m.N)({authToken:t.authToken,user:{id:t.user.id,userId:t.user.id,role:"candidate",description:"candidate"}},{email:l,image:(null==(e=t.user)?void 0:e.avatarUrl)||(null==n||null==(r=n.user)?void 0:r.image)||"",isGoogle:!0,roleHint:"candidate"})});try{let e=`${(null==(a=t.user)?void 0:a.firstName)||""} ${(null==(s=t.user)?void 0:s.lastName)||""}`.trim();e&&localStorage.setItem("userName",e),localStorage.setItem("userEmail",l),window.dispatchEvent(new Event("auth:updated"))}catch{}i.replace("/homeroom?app=1")}catch{v("We couldnât reach TeachConnect to finish your Google sign-in. Check your connection and try again.")}})())},[t,i.isReady,e,r,i]),(0,o.jsxs)(o.Fragment,{children:[(0,o.jsxs)(u(),{children:[(0,o.jsx)("title",{className:"jsx-eab3bf327fa0045e",children:p?"Sign-in failed":"Signing inâ¦"}),(0,o.jsx)("meta",{name:"robots",content:"noindex",className:"jsx-eab3bf327fa0045e"})]}),(0,o.jsx)("div",{style:{minHeight:"100dvh",display:"grid",placeItems:"center",padding:24,background:"var(--hr-doodle, none) 0 0 / var(--hr-doodle-size, 440px) var(--hr-doodle-size, 440px), var(--hr-canvas, #FAF3E2)",color:"var(--ink, #07131C)",fontFamily:"var(--tc-font-body, system-ui)"},className:"jsx-eab3bf327fa0045e",children:p?(0,o.jsxs)("div",{role:"alert",style:{width:"min(400px, 100%)",textAlign:"center",background:"#fff",border:"1px solid var(--line, #E7E1D3)",borderRadius:20,padding:28,boxShadow:"0 18px 44px rgba(12,53,86,.10)"},className:"jsx-eab3bf327fa0045e",children:[(0,o.jsx)("h1",{style:{fontFamily:"var(--tc-font-head, system-ui)",fontWeight:800,fontSize:"1.25rem",margin:"0 0 8px"},className:"jsx-eab3bf327fa0045e",children:"We couldnât sign you in"}),(0,o.jsx)("p",{style:{margin:"0 0 20px",color:"var(--muted, #5A6478)",fontSize:14,lineHeight:1.5},className:"jsx-eab3bf327fa0045e",children:p}),(0,o.jsxs)("button",{type:"button",onClick:()=>i.replace("/homeroom?app=1&authError=google"),style:{display:"inline-flex",alignItems:"center",justifyContent:"center",gap:7,width:"100%",minHeight:44,border:"none",borderRadius:12,padding:"12px 14px",fontFamily:"inherit",fontWeight:700,fontSize:14,color:"#fff",background:"linear-gradient(140deg,#1A5A8A,#0C3556)",cursor:"pointer"},className:"jsx-eab3bf327fa0045e",children:["Try again ",(0,o.jsx)(c.A,{size:15,"aria-hidden":!0})]})]}):(0,o.jsxs)("div",{style:{textAlign:"center"},className:"jsx-eab3bf327fa0045e",children:[(0,o.jsx)("div",{style:{width:34,he
1ight:34,margin:"0 auto 14px",border:"3px solid rgba(120,120,120,.25)",borderTopColor:"var(--hr-dark1, #1A5A8A)",borderRadius:"50%",animation:"hrspin .7s linear infinite"},className:"jsx-eab3bf327fa0045e"}),(0,o.jsx)("div",{style:{fontWeight:700},className:"jsx-eab3bf327fa0045e",children:"Signing you inâ¦"})]})}),(0,o.jsx)(n(),{id:"eab3bf327fa0045e",children:"@keyframes hrspin{to{transform:rotate(360deg)}}"})]})}},47643:(e,t,r)=>{"use strict";var o=r(65364);r(72552);var i=r(14232),n=i&&"object"==typeof i&&"default"in i?i:{default:i},a=void 0!==o&&o.env&&!0,s=function(e){return"[object String]"===Object.prototype.toString.call(e)},l=function(){function e(e){var t=void 0===e?{}:e,r=t.name,o=void 0===r?"stylesheet":r,i=t.optimizeForSpeed,n=void 0===i?a:i;u(s(o),"`name` must be a string"),this._name=o,this._deletedRulePlaceholder="#"+o+"-deleted-rule____{}",u("boolean"==typeof n,"`optimizeForSpeed` must be a boolean"),this._optimizeForSpeed=n,this._serverSheet=void 0,this._tags=[],this._injected=!1,this._rulesCount=0;var l=document.querySelector('meta[property="csp-nonce"]');this._nonce=l?l.getAttribute("content"):null}var t,r=e.prototype;return r.setOptimizeForSpeed=function(e){u("boolean"==typeof e,"`setOptimizeForSpeed` accepts a boolean"),u(0===this._rulesCount,"optimizeForSpeed cannot be when rules have already been inserted"),this.flush(),this._optimizeForSpeed=e,this.inject()},r.isOptimizeForSpeed=function(){return this._optimizeForSpeed},r.inject=function(){var e=this;if(u(!this._injected,"sheet already injected"),this._injected=!0,this._optimizeForSpeed){this._tags[0]=this.makeStyleTag(this._name),this._optimizeForSpeed="insertRule"in this.getSheet(),this._optimizeForSpeed||(a||console.warn("StyleSheet: optimizeForSpeed mode not supported falling back to standard mode."),this.flush(),this._injected=!0);return}this._serverSheet={cssRules:[],insertRule:function(t,r){return"number"==typeof r?e._serverSheet.cssRules[r]={cssText:t}:e._serverSheet.cssRules.push({cssText:t}),r},deleteRule:function(t){e._serverSheet.cssRules[t]=null}}},r.getSheetForTag=function(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]},r.getSheet=function(){return this.getSheetForTag(this._tags[this._tags.length-1])},r.insertRule=function(e,t){if(u(s(e),"`insertRule` accepts only strings"),this._optimizeForSpeed){var r=this.getSheet();"number"!=typeof t&&(t=r.cssRules.length);try{r.insertRule(e,t)}catch(t){return a||console.warn("StyleSheet: illegal rule: \n\n"+e+"\n\nSee https://stackoverflow.com/q/20007992 for more info"),-1}}else{var o=this._tags[t];this._tags.push(this.makeStyleTag(this._name,e,o))}return this._rulesCount++},r.replaceRule=function(e,t){if(this._optimizeForSpeed){var r=this.getSheet();if(t.trim()||(t=this._deletedRulePlaceholder),!r.cssRules[e])return e;r.deleteRule(e);try{r.insertRule(t,e)}catch(o){a||console.warn("StyleSheet: illegal rule: \n\n"+t+"\n\nSee https://stackoverflow.com/q/20007992 for more info"),r.insertRule(this._deletedRulePlaceholder,e)}}else{var o=this._tags[e];u(o,"old rule at index `"+e+"` not found"),o.textContent=t}return e},r.deleteRule=function(e){if(this._optimizeForSpeed)this.replaceRule(e,"");else{var t=this._tags[e];u(t,"rule at index `"+e+"` not found"),t.parentNode.removeChild(t),this._tags[e]=null}},r.flush=function(){this._injected=!1,this._rulesCount=0,this._tags.forEac
1h(function(e){return e&&e.parentNode.removeChild(e)}),this._tags=[]},r.cssRules=function(){var e=this;return this._tags.reduce(function(t,r){return r?t=t.concat(Array.prototype.map.call(e.getSheetForTag(r).cssRules,function(t){return t.cssText===e._deletedRulePlaceholder?null:t})):t.push(null),t},[])},r.makeStyleTag=function(e,t,r){t&&u(s(t),"makeStyleTag accepts only strings as second parameter");var o=document.createElement("style");this._nonce&&o.setAttribute("nonce",this._nonce),o.type="text/css",o.setAttribute("data-"+e,""),t&&o.appendChild(document.createTextNode(t));var i=document.head||document.getElementsByTagName("head")[0];return r?i.insertBefore(o,r):i.appendChild(o),o},t=[{key:"length",get:function(){return this._rulesCount}}],function(e,t){for(var r=0;r<t.length;r++){var o=t[r];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}(e.prototype,t),e}();function u(e,t){if(!e)throw Error("StyleSheet: "+t+".")}var c=function(e){for(var t=5381,r=e.length;r;)t=33*t^e.charCodeAt(--r);return t>>>0},d={};function h(e,t){if(!t)return"jsx-"+e;var r=String(t),o=e+r;return d[o]||(d[o]="jsx-"+c(e+"-"+r)),d[o]}function m(e,t){var r=e+t;return d[r]||(d[r]=t.replace(/__jsx-style-dynamic-selector/g,e)),d[r]}var g=function(){function e(e){var t=void 0===e?{}:e,r=t.styleSheet,o=void 0===r?null:r,i=t.optimizeForSpeed,n=void 0!==i&&i;this._sheet=o||new l({name:"styled-jsx",optimizeForSpeed:n}),this._sheet.inject(),o&&"boolean"==typeof n&&(this._sheet.setOptimizeForSpeed(n),this._optimizeForSpeed=this._sheet.isOptimizeForSpeed()),this._fromServer=void 0,this._indices={},this._instancesCounts={}}var t=e.prototype;return t.add=function(e){var t=this;void 0===this._optimizeForSpeed&&(this._optimizeForSpeed=Array.isArray(e.children),this._sheet.setOptimizeForSpeed(this._optimizeForSpeed),this._optimizeForSpeed=this._sheet.isOptimizeForSpeed()),this._fromServer||(this._fromServer=this.selectFromServer(),this._instancesCounts=Object.keys(this._fromServer).reduce(function(e,t){return e[t]=0,e},{}));var r=this.getIdAndRules(e),o=r.styleId,i=r.rules;if(o in this._instancesCounts){this._instancesCounts[o]+=1;return}var n=i.map(function(e){return t._sheet.insertRule(e)}).filter(function(e){return -1!==e});this._indices[o]=n,this._instancesCounts[o]=1},t.remove=function(e){var t=this,r=this.getIdAndRules(e).styleId;if(function(e,t){if(!e)throw Error("StyleSheetRegistry: "+t+".")}(r in this._instancesCounts,"styleId: `"+r+"` not found"),this._instancesCounts[r]-=1,this._instancesCounts[r]<1){var o=this._fromServer&&this._fromServer[r];o?(o.parentNode.removeChild(o),delete this._fromServer[r]):(this._indices[r].forEach(function(e){return t._sheet.deleteRule(e)}),delete this._indices[r]),delete this._instancesCounts[r]}},t.update=function(e,t){this.add(t),this.remove(e)},t.flush=function(){this._sheet.flush(),this._sheet.inject(),this._fromServer=void 0,this._indices={},this._instancesCounts={}},t.cssRules=function(){var e=this,t=this._fromServer?Object.keys(this._fromServer).map(function(t){return[t,e._fromServer[t]]}):[],r=this._sheet.cssRules();return t.concat(Object.keys(this._indices).map(function(t){return[t,e._indices[t].map(function(e){return r[e].cssText}).join(e._optimizeForSpeed?"":"\n")]}).filter(function(e){return!!e[1]}))},t.styles=function(e){var t,r;return t=this.cssRules(),void 0===(r=e)&&(r={}),t.map(function(e){var t=e[0],o=e[1];return n.default.createElement("style",{id:"__"+t,key:"__"+t,nonce:r.nonce?r.nonce:void 0,dangerouslySetInnerHTML:{__html:o}})})},t.getIdAndRules=function(e){var t=e.children,r=e.dynamic,o=e.id;if(r){var i=h(o,r);return{styleId:i,rules:Array.isArray(t)?t.map(function(e){return m(i,e)}):[m(i,t)]}}return{styleId:h(o),rules:Array.isArray(t)?t:[t]}},t.selectFromServer=function(){return Array.prototype.slice.call(document.querySelectorAll('[id^="__jsx-"]')).reduce(function(e,t){return e[t.id.slice(2)]=t,e},{})},e}(),f=i.createContext(null);f.displayName="StyleSheetContext";var p=n.default.useInsertionEffect||n.default.useLayoutEffect,v=new g;function y(e){var t=v||i.useContext(f);return t&&p(function(){return t.add(e),function(){t.remove(e)}},[e.id,String(e.dynamic)]),null}y.dynamic=function(e){return e.map(function(e){return h(e[0],e[1])}).join(" ")},t.style=y},56358:(e,t,r)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/homeroom/auth-complete",function(){return r(40958)}])},57031:(e,t,r)=>{"use strict";r.d(t,{A:()=>
1o});let o=(0,r(92949).A)("arrow-right",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]])},72552:()=>{},78636:(e,t,r)=>{"use strict";r.d(t,{$r:()=>w,Ap:()=>j,Ix:()=>s,M1:()=>m,Qw:()=>g,Ul:()=>f,X5:()=>v,Xy:()=>c,aY:()=>k,en:()=>p});let o="hrStudentToken",i="hrDemoToken",n="hrAuthToken";function a(){return window.localStorage.getItem("authToken")||window.localStorage.getItem(n)||window.localStorage.getItem(i)||""}function s(){return a()}function l(){return window.localStorage.getItem(o)||""}let u=null;function c(e){u=e&&e.role&&e.id?{role:e.role,id:Number(e.id)}:null}let d=()=>u?{"X-Hr-Preview":`${u.role}:${u.id}`}:{},h=()=>({"Content-Type":"application/json",...a()?{Authorization:`Bearer ${a()}`}:{},...d()}),m={get:()=>l(),set:e=>{try{e&&window.localStorage.setItem(o,e)}catch{}},clear:()=>{try{window.localStorage.removeItem(o)}catch{}}},g={get:()=>{try{return window.localStorage.getItem(i)||""}catch{return""}},set:e=>{try{e&&window.localStorage.setItem(i,e)}catch{}},clear:()=>{try{window.localStorage.removeItem(i)}catch{}}},f={get:()=>{try{return window.localStorage.getItem(n)||""}catch{return""}},set:e=>{try{e&&window.localStorage.setItem(n,e)}catch{}},clear:()=>{try{window.localStorage.removeItem(n)}catch{}}};function p(e){return(null==e?void 0:e.ok)?"student"===e.kind?(m.set(e.studentToken),"student"):(f.set(e.authToken),"parent"===e.kind)?"parent":"teacher"===e.kind?"teacher":"pcc":null}function v(){try{return!!(window.localStorage.getItem("authToken")||window.localStorage.getItem(n)||window.localStorage.getItem(o)||window.localStorage.getItem(i))}catch{return!1}}async function y(e,t){let r=await fetch(e,{headers:t||h(),cache:"no-store"}),o=await r.json().catch(()=>null);if(!r.ok||!(null==o?void 0:o.ok)){let e=Error((null==o?void 0:o.error)||`request_failed_${r.status}`);throw e.status=r.status,e}return o}async function S(e,t){if(u)return{ok:!0,preview:!0};let r=await fetch(e,{method:"POST",headers:h(),body:JSON.stringify(t||{})}),o=await r.json().catch(()=>null);if(!r.ok||!(null==o?void 0:o.ok)){let e=Error((null==o?void 0:o.error)||`request_failed_${r.status}`);throw e.status=r.status,e}return o}let _=e=>{let t=new URLSearchParams;Object.entries(e||{}).forEach(e=>{let[r,o]=e;null!=o&&""!==o&&t.set(r,String(o))});let r=t.toString();return r?`?${r}`:""},w={me:()=>y("/api/homeroom/me"),demoCast:()=>y("/api/homeroom/demo/cast"),enterCode:async e=>{let t=await fetch("/api/homeroom/enter-code",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({code:e})}),r=await t.json().catch(()=>null);if(!t.ok||!(null==r?void 0:r.ok)){let e=Error((null==r?void 0:r.error)||`request_failed_${t.status}`);throw e.status=t.status,e}return r},forgotCode:async e=>{let t=await fetch("/api/homeroom/forgot-code",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({email:e})}),r=await t.json().catch(()=>null);if(!t.ok||!(null==r?void 0:r.ok)){let e=Error((null==r?void 0:r.error)||`request_failed_${t.status}`);throw e.status=t.status,e}return r},redeemLicense:e=>S("/api/homeroom/redeem-license",{code:e}),teacher:()=>y("/api/homeroom/teacher"),parent:()=>y("/api/homeroom/parent"),student:()=>{let e;return y("/api/homeroom/student",{"Content-Type":"application/json",...(e=l()||a())?{Authorization:`Bearer ${e}`}:{},...d()})},studentLogin:e=>S("/api/homeroom/student-login",{code:e}),updateParentProfile:e=>S("/api/homeroom/parent/profile",e),feesCheckout:async e=>{if(u)return{ok:!0,preview:!0,html:""};let t=await fetch("/api/homeroom/parent/fees/checkout",{method:"POST",headers:h(),body:JSON.stringify({studentId:e})});if(!t.ok){let e=await t.json().catch(()=>null),r=Error((null==e?void 0:e.error)||`request_failed_${t.status}`);throw r.status=t.status,r}return{ok:!0,html:await t.text()}},classByCode:e=>S("/api/homeroom/class",{code:e}),feed:()=>y("/api/homeroom/feed"),feedRead:e=>S("/api/homeroom/feed/read",e),assessments:e=>y(`/api/homeroom/assessments${_({classroomId:e})}`),assessmentResults:e=>y(`/api/homeroom/assessments/results${_({assessmentId:e})}`),createAssessment:e=>S("/api/homeroom/assessments/create",e),saveResults:e=>S("/api/homeroom/assessments/results",e),deleteAssessment:e=>S("/api/homeroom/assessments/delete",{id:e}),deleteAssessments:e=>S("/api/homeroom/assessments/delete",{ids:e}),markAttendance:e=>S("/api/homeroom/attendance",e),attendanceForDay:(e,t)=>y(`/api/homeroom/attendance${_({classroomId:e,date:t})}`),meetings:()=>y("/api/homeroom/meetings"),createMeeting:e=>S("/api/homeroom/meetings/create",e),respondMeeting:e=>S("/api/homeroom/meetings/respond",e),counterMeeting:e=>S("/api/homeroom/meetings/counter",e),scheduleMeeting:e=>S("/api/homeroom/meetings/schedule",e),deleteMeeting:e=>S("/api/homeroom/meetings/delete",{id:e}),deleteMeetings:e=>S("/api/homeroom/meetings/delete",{ids:e}),withdrawMeeting:e=>S("/api/homeroom/meetings/withdraw",{requestId:e}),threads:()=>y("/api/homeroom/messages/threads"),thread:e=>y(`/api/homeroom/messages/thread${_({threadId:e})}`),postMessage:e=>S("/api/homeroom/messages/post",e),readThread:e=>S("/api/homeroom/messages/read",{threadId:e}),deleteMessage:e=>S("/api/homeroom/messages/delete",{id:e}),deleteMessages:e=>S("/api/homeroom/messages/delete",{ids:e}),aiCatalog:()=>y("/api/homeroom/teacher/ai/catalog"),aiRun:(e,t)=>S("/api/homeroom/teacher/ai/run",{toolId:e,input:t}),aiLibrary:e=>y(`/api/homeroom/teacher/ai/library${_(e||{})}`)},b=["tc:hr:pendingCode","tc:hr:redeem","tc:hr:intent","tc:hr:invite"];function k(e){let t={};
1try{b.forEach(e=>{let r=window.localStorage.getItem(e);r&&(t[e]=r)})}catch{}try{return e()}finally{try{Object.keys(t).forEach(e=>window.localStorage.setItem(e,t[e]))}catch{}}}let I="tc:hr:invite",j={get:()=>{try{return window.localStorage.getItem(I)||""}catch{return""}},set:e=>{try{e&&window.localStorage.setItem(I,String(e))}catch{}},clear:()=>{try{window.localStorage.removeItem(I)}catch{}}}},94208:(e,t,r)=>{"use strict";e.exports=r(47643).style},94585:(e,t,r)=>{"use strict";r.d(t,{NA:()=>n,S2:()=>a,T1:()=>s});var o=r(55256);let i={token:"tc:nativeGoogleIdToken",email:"tc:nativeGoogleEmail",name:"tc:nativeGoogleName",image:"tc:nativeGoogleImage"};function n(){try{let e=sessionStorage.getItem(i.token)||"";if(!e)return null;return{idToken:e,email:sessionStorage.getItem(i.email)||"",name:sessionStorage.getItem(i.name)||"",image:sessionStorage.getItem(i.image)||""}}catch{return null}}function a(){try{Object.values(i).forEach(e=>sessionStorage.removeItem(e))}catch{}}async function s(){var e,t;if(!(0,o.D)())return{ok:!1,error:"not_native"};let r=e=>{try{sessionStorage.setItem(i.token,e.idToken),sessionStorage.setItem(i.email,String(e.email||"").trim().toLowerCase()),sessionStorage.setItem(i.name,String(e.name||"").trim()),sessionStorage.setItem(i.image,String(e.image||"").trim())}catch{}},n=(0,o.s)("SocialLogin");if(n&&"function"==typeof n.login)try{if("function"==typeof n.initialize)try{await n.initialize({})}catch{}let t=await n.login({provider:"google",options:{scopes:["profile","email"]}}),o=(null==t?void 0:t.result)||t,i=String((null==o?void 0:o.idToken)||(null==o||null==(e=o.authentication)?void 0:e.idToken)||"").trim();if(i){let e=(null==o?void 0:o.profile)||o;return r({idToken:i,email:null==e?void 0:e.email,name:(null==e?void 0:e.name)||(null==e?void 0:e.displayName)||[null==e?void 0:e.givenName,null==e?void 0:e.familyName].filter(Boolean).join(" "),image:(null==e?void 0:e.imageUrl)||(null==e?void 0:e.photoUrl)||(null==e?void 0:e.picture)}),{ok:!0}}return{ok:!1,error:"no_id_token"}}catch(e){return{ok:!1,error:String((null==e?void 0:e.message)||e||"signin_failed")}}let a=(0,o.s)("GoogleAuth");if(!a||"function"!=typeof a.signIn)return{ok:!1,error:"plugin_unavailable"};try{if("function"==typeof a.initialize)try{await a.initialize()}catch{}let e=await a.signIn(),o=String((null==e||null==(t=e.authentication)?void 0:t.idToken)||(null==e?void 0:e.idToken)||"").trim();if(!o)return{ok:!1,error:"no_id_token"};return r({idToken:o,email:null==e?void 0:e.email,name:(null==e?void 0:e.name)||(null==e?void 0:e.displayName),image:null==e?void 0:e.imageUrl}),{ok:!0}}catch(e){return{ok:!1,error:String((null==e?void 0:e.message)||e||"signin_failed")}}}}},e=>{e.O(0,[90636,46593,38792],()=>e(e.s=56358)),_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.