1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[63],{22733:(s,e,t)=>{"use strict";t.r(e),t.d(e,{default:()=>p});var a=t(37876),i=t(77328),l=t.n(i),n=t(89099),r=t(14232),c=t(54256),o=t(27212),d=t(32872),x=t(94598),h=t(9919),m=t(30525);let u=s=>{let{user:e}=(0,r.useContext)(x.cy),{isMobile:t}=(0,r.useContext)(x.lh),{status:i,loading:l}=(0,m.d)(null==e?void 0:e.displayName),n={hidden:{opacity:0},visible:{opacity:1,transition:{duration:.2,staggerChildren:.05}},exit:{opacity:0,transition:{duration:.2}}},d={hidden:{opacity:0,y:4},visible:{opacity:1,y:0,transition:{duration:.25,ease:[.25,.46,.45,.94],type:"tween"}},exit:{opacity:0,y:-4,transition:{duration:.2,ease:[.25,.46,.45,.94],type:"tween"}}},u=(0,a.jsxs)(c.P.div,{variants:n,initial:"hidden",animate:"visible",exit:"exit",style:{willChange:"transform, opacity"},className:"relative mx-auto flex h-full w-[90%] flex-col items-start justify-center gap-6 md:py-[2%]",children:[(0,a.jsxs)(c.P.div,{variants:d,className:"flex flex-row items-center gap-2",children:[(0,a.jsx)("span",{className:"material-symbols-outlined text-5xl text-white/80",children:"account_circle"}),(0,a.jsxs)("div",{className:"flex flex-col",children:[(0,a.jsxs)("div",{className:"flex items-center gap-2",children:[(0,a.jsx)("h1",{className:"text-2xl font-semibold text-white/95",children:null==e?void 0:e.displayName}),(0,a.jsx)(h.lk,{status:i,loading:l})]}),(null==e?void 0:e.lichessId)&&(0,a.jsxs)("a",{target:"_blank",href:"https://lichess.org/@/".concat(e.lichessId),className:"flex items-center gap-1.5 transition-opacity duration-200 hover:opacity-80",children:[(0,a.jsx)("img",{src:"/assets/icons/lichess.svg",className:"h-3 w-3",alt:"Lichess"}),(0,a.jsx)("span",{className:"text-xs text-white/70",children:e.lichessId})]})]})]}),(0,a.jsxs)(c.P.div,{variants:d,className:"flex flex-col items-start gap-4 md:flex-row",children:[(0,a.jsx)(h.T,{}),(0,a.jsx)(h.Fv,{stats:s.stats})]})]}),p=(0,a.jsxs)(c.P.div,{variants:n,initial:"hidden",animate:"visible",exit:"exit",style:{willChange:"transform, opacity"},className:"relative mx-auto mt-6 flex w-[90%] flex-col gap-3",children:[(0,a.jsxs)(c.P.div,{variants:d,className:"flex flex-row items-center gap-2 md:gap-3",children:[(0,a.jsx)("span",{className:"material-symbols-outlined text-3xl text-white/80",children:"account_circle"}),(0,a.jsxs)("div",{className:"flex flex-col",children:[(0,a.jsxs)("div",{className:"flex items-center gap-2",children:[(0,a.jsx)("h1",{className:"text-2xl font-semibold text-white/95",children:null==e?void 0:e.displayName}),(0,a.jsx)(h.lk,{status:i,loading:l})]}),(null==e?void 0:e.lichessId)&&(0,a.jsxs)("a",{target:"_blank",href:"https://lichess.org/@/".concat(e.lichessId),className:"flex items-center gap-1.5 transition-opacity duration-200 hover:opacity-80",children:[(0,a.jsx)("img",{src:"/assets/icons/lichess.svg",className:"h-3 w-3",alt:"Lichess"}),(0,a.jsx)("span",{className:"text-xs text-white/70",children:e.lichessId})]})]})]}),(0,a.jsxs)(c.P.div,{variants:d,className:"flex w-full flex-col gap-3",children:[(0,a.jsx)(h.T,{}),(0,a.jsx)(h.Fv,{stats:s.stats})]})]});return(0,a.jsx)(o.N,{mode:"wait",children:t?p:u})},p=()=>{let s=(0,n.useRouter)(),{user:e}=(0,r.useContext)(x.cy),[t,i]=(0,r.useState)(!0),[c,o]=(0,r.useState)({regularRating:0,regularWins:0,regularDraws:0,regularGames:0,regularMax:0,regularMin:0,regularHours:0,handRating:0,handWins:0,handDraws:0,handGames:0,handMax:0,handMin:0,handHours:0,brainRating:0,brainWins:0,brainDraws:0,brainGames:0,brainMax:0,brainMin:0,brainHours:0,trainRating:0,trainCorrect:0,trainGames:0,trainMax:0,trainMin:0,trainHours:0,botNotRating:0,botNotCorrect:0,botNotGames:0,botNotWrong:0,botNotMax:0,botNotMin:0,botNotHours:0});return(0,r.useEffect)(()=>{let t=async()=>{i(!0),o(await (0,d.lK)()),i(!1)};(null==e?void 0:e.lichessId)||s.push("/"),t()},[e]),(0,a.jsxs)(h.Xe,{children:[(0,a.jsxs)(l(),{children:[(0,a.jsx)("title",{children:"Profile â Maia Chess"}),(0,a.jsx)("meta",{name:"description",content:"User profile and statistics"})]}),(0,a.jsx)(h.Rh,{isLoading:t,children:(0,a.jsx)(u,{stats:c})})]})}},93649:(s,e,t)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/profile",function(){return t(22733)}])}},s=>{s.O(0,[669,324,367,671,809,572,314,455,433,919,636,593,792],()=>s(s.s=93649)),_N_E=s.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.