!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="5f7b559f-ada5-4c05-98a4-4d34fb40cf30",e._sentryDebugIdIdentifier="sentry-dbid-5f7b559f-ada5-4c05-98a4-4d34fb40cf30")}catch(e){}}(),(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8739],{14022:(e,t,r)=>{"use strict";r.d(t,{A:()=>l});var s=r(6029),n=r(98914),i=r(41249);function l(e){let{credibilityScore:t,score:r,...l}=e;return(0,s.jsxs)(i.so,{children:[(0,s.jsx)(i.EY,{as:"bdi",minW:"48px",color:"onSurface.nLv1",font:"table.medium",align:"right",...l,children:t?Math.floor(t):"-"}),(0,s.jsx)(i.EY,{as:"bdi",minW:"48px",color:"primary.default",font:"table.medium",align:"right",...l,children:r?(0,n.M)(r):"-"})]})}},14165:e=>{e.exports=function(e){return function(t){return null==e?void 0:e[t]}}},16202:(e,t,r)=>{"use strict";r.d(t,{V:()=>j,q:()=>x});var s=r(6029),n=r(95083),i=r(76356),l=r(41249),o=r(90248),a=r(54409),d=r(70591),c=r(79041),u=r(76410);let x=e=>{let{children:t}=e;return(0,s.jsx)(i.az,{bgGradient:"to-b",gradientFrom:"[#374cf1]",gradientTo:"[#1729af]",p:"md",br:"lg",minH:"7xl",w:"100%",children:t})},j=e=>{let{location:t}=e;return(0,s.jsx)(d.N_,{routeKey:"user.weeklyChallenge",onClick:()=>{(0,u.Wk)({type:"weekly_challenge",location:t})},children:(0,s.jsx)(x,{children:(0,s.jsxs)(i.so,{gap:"md",align:"center",children:[(0,s.jsx)(l._V,{h:48,w:70,src:"/static/images/weekly-challenge/predictions-cta.svg",alt:"Weekly challenge trophies"}),(0,s.jsxs)(i.so,{direction:"column",justify:"center",rowGap:"xs",p:"xs",grow:1,children:[(0,s.jsx)(n.EY,{display:"block",textStyle:"display.medium",color:"onColor.primary",children:(0,s.jsx)(o.A,{id:"weekly_challenge"})}),(0,s.jsx)(n.EY,{display:"block",textStyle:"body.small",color:"onColor.primary",children:(0,s.jsx)(c.k,{})})]}),(0,s.jsx)(i.az,{bg:"onColor.highlight1",h:"2xl",w:"2xl",p:"xs",br:"sm",children:(0,s.jsx)(a.CCT,{w:24,h:24,fill:"onColor.primary"})})]})})})}},16419:e=>{e.exports=function(e){var t=null==e?0:e.length;return t?e[t-1]:void 0}},18645:(e,t,r)=>{"use strict";r.d(t,{eD:()=>i.e,pY:()=>n.p,tg:()=>s.t});var s=r(91407),n=r(91603),i=r(33480)},23228:(e,t,r)=>{"use strict";r.d(t,{A:()=>d});var s=r(6029),n=r(494),i=r(88339),l=r(14022),o=r(91138),a=r(82304);function d(e){var t,r;let{userAccount:d,isCard:c}=e,u=(0,n.d4)(i.$F),x=d||u;if(!x)return null;if(!(x.userCrowdsourcingAggregates&&x.credibilityScore))return(0,s.jsx)(a.q,{id:"profile_leaderboards_no_contributions",isCard:c});let j=null==(t=x.userCrowdsourcingAggregates)?void 0:t.currentRanking;return(0,s.jsx)(a._,{isCard:c,rank:j,header:(0,s.jsx)(o.u,{}),children:(0,s.jsx)(l.A,{credibilityScore:x.credibilityScore,score:null==(r=x.userCrowdsourcingAggregates)?void 0:r.score})})}},27869:(e,t,r)=>{e.exports=r(14165)({"&":"&","<":"<",">":">",""":'"',"'":"'"})},40834:(e,t,r)=>{"use strict";r.d(t,{A:()=>l});var s=r(6029),n=r(41249),i=r(90248);function l(e){let{children:t}=e;return(0,s.jsxs)(n.so,{justify:"space-between",gap:"sm",p:"lg",children:[(0,s.jsxs)(n.so,{gap:"sm",overflow:"hidden",mr:"sm",children:[(0,s.jsx)(n.EY,{color:"onSurface.nLv3",font:"table.medium",w:32,align:"center",ellipsis:!0,children:"#"}),(0,s.jsx)(n.EY,{color:"onSurface.nLv3",font:"table.medium",ellipsis:!0,children:(0,s.jsx)(i.A,{id:"nickname"})})]}),t]})}},42196:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>e8});var s=r(6029),n=r(21377),i=r(76356),l=r(55729),o=r(494),a=r(45860),d=r(29129),c=r(52951),u=r(42678),x=r(45501),j=r(67333),h=r(41007),p=r(47550),g=r(55794),m=r(32523),f=r(41249),v=r(90248),y=r(65789),b=r(24796),_=r(95083),A=r(41735),w=r(98516),k=r(75414);function S(e){let{stat:t,titleId:r,icon:n,skipFormattingCount:i,...l}=e;return(0,s.jsx)(f.so,{direction:"column",align:"center",justify:"center",p:"sm",gap:"xs",br:"lg",bg:["surface.s1","surface.s2"],...l,children:n?(0,s.jsxs)(s.Fragment,{children:[n,(0,s.jsx)(f.EY,{as:"div",align:"center",font:["display.small","display.medium"],c:"onSurface.nLv1",children:"string"==typeof t?t:+(0,w.M)(t||0)}),(0,s.jsx)(f.EY,{as:"div",align:"center",font:"assistive.default",c:"onSurface.nLv3",children:(0,s.jsx)(v.A,{id:r})})]}):(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(f.EY,{as:"div",align:"center",font:["display.small","display.large"],c:"onSurface.nLv1",children:"string"==typeof t||i?t:(0,k.A)(+(0,w.M)(t||0))}),(0,s.jsx)(f.EY,{as:"div",align:"center",font:"assistive.default",c:"onSurface.nLv3",children:(0,s.jsx)(v.A,{id:r})})]})})}var E=r(54409);let C={[n.PAE.EventScore]:{translation:"number_of_scores",translationSingular:"score",icon:e=>(0,s.jsx)(E.pIV,{...e})},[n.PAE.EventStartDate]:{translation:"start_times",translationSingular:"match_start",icon:e=>(0,s.jsx)(E.bt9,{...e})},[n.PAE.GoalAssistant]:{translation:"number_of_score_assistants",translationSingular:"assistant",icon:e=>(0,s.jsx)(E.CvR,{icon:"football-assist",...e})},[n.PAE.GoalScorer]:{translation:"number_of_scorers",translationSingular:"scorer",icon:e=>(0,s.jsx)(E.CvR,{icon:"football-ball",...e})}},L={[n.Zui.Approved]:"secondary.default",[n.Zui.Declined]:"error.default",[n.Zui.Ignored]:"onSurface.nLv3",[n.Zui.Pending]:"onSurface.nLv3"},T={[n.Zui.Approved]:"suggestion_approved",[n.Zui.Declined]:"suggestion_declined",[n.Zui.Ignored]:"suggestion_unresolved",[n.Zui.Pending]:"suggestion_unresolved"},P=(0,A.default)(f.az).withConfig({componentId:"sc-99fd2f24-0"})(["display:grid;gap:",";grid-template-columns:repeat(2,1fr);"],e=>e.theme.spacing.sm);function Y(e){let{userAccount:t}=e,{isMobile:r}=(0,_.$c)(),{data:i,isLoading:l}=(0,a.Ay)(n.VfS.contributionsCount(t.id));return l?(0,s.jsx)(f.so,{justify:"center",br:"lg",py:"lg",h:[200,180],bg:"surface.s1",children:(0,s.jsx)(f.y$,{})}):(null==i?void 0:i.counts)?(0,s.jsx)(y.HH,{isCard:r,children:(0,s.jsx)(P,{children:i.counts.map((e,t)=>{var r,n,i;let l=null!=(i=null==(r=C[e.eventSuggestType])?void 0:r.icon)?i:null,o=null==(n=C[e.eventSuggestType])?void 0:n.translation;return(0,s.jsx)(S,{titleId:o,icon:l&&(0,s.jsx)(f.az,{h:[40,24],children:(0,s.jsx)(l,{fill:"onSurface.nLv3",h:[40,24],w:[40,24]})}),stat:e.count},"".concat(e.eventSuggestType,"-").concat(t))})})}):null}var I=r(4967),q=r(21501),z=r(78488),F=r(83170),H=r(28446),M=r(56591),D=r(10533),K=r(947);let V={top:16,bottom:36,left:36,right:16},W=(e,t,r)=>{var s;let n=new Date;if(!r)return[t,n].map(t=>({date:t,score:e}));let i=(0,I.VM)(t,n),l=(0,I.ZV)(t),o=Object.keys(r).map(e=>+e).filter(e=>e>=l).map(e=>({timestamp:e,score:r[e]})),a=(null==(s=o[0])?void 0:s.score)||0;return i.map(e=>{let t=(0,I.ZV)(e),r=o.find(e=>(0,I.yk)(e.timestamp,t));return r?(a=r.score,{date:e,score:r.score}):{date:e,score:a}})};function Z(e){let{points:t,credibilityScore:r}=e,{colors:n,typography:o,settings:a}=(0,A.useTheme)(),d=(0,K.A)(),c="rtl"===a.textDirection,u=(0,l.useRef)(null),x=new Date,j=new Date(x.getFullYear(),x.getMonth()-6+1,1),h=W(r,j,t);return(0,q.st)(()=>{var e;if(!u.current)return;let t=c?V.right:V.left,r=c?V.left:V.right;(0,M.A)(u.current).selectAll("*").remove();let s=(0,M.A)(u.current).append("svg").attr("width","100%").attr("height",80+V.bottom+V.top),i=null==(e=s.node())?void 0:e.getBoundingClientRect(),l=(null==i?void 0:i.width)||448,a=[j,x],p=(0,F.A)().domain(c?a.reverse():a).range([t,l-r]).clamp(!0),g=(0,H.A)().domain([0,100]).range([80+V.top,V.top]).clamp(!0),m=c?l-V.left:V.left;s.selectAll("g.y-axis").data([null]).join("g").attr("class","y-axis").attr("transform","translate(".concat(m,", 0)")).call((c?z.eH:z.V4)(g).tickSize(0).ticks(3).tickPadding(16)).attr("text-anchor","middle").call(e=>e.select(".domain").attr("stroke-width",0)),s.selectAll("g.x-axis").data([null]).join("g").attr("class","x-axis").attr("transform","translate(0, ".concat(80+V.top,")")).call((0,z.l7)(p).ticks(6).tickSize(0).tickPadding(16).tickFormat(e=>d.formatDate(new Date(e.toString()),{month:"short"}))).call(e=>e.select(".domain").attr("stroke-width",0)),s.selectAll("g.tick").select("text").attr("color",n.onSurface.nLv3).attr("font",o.family.sofascoreSans).attr("font-weight",o.weight.medium).attr("font-size",o.size.micro),s.append("g").classed("grid",!0).selectAll("line").data(g.ticks(3)).join("line").attr("x1",p(j)).attr("x2",p(x)).attr("y1",e=>g(e)).attr("y2",e=>g(e)).attr("stroke",n.onSurface.nLv4).attr("stroke-dasharray","4 4").attr("stroke-width","1px");let f=(0,D.A)().x(e=>p(e.date)).y(e=>g(e.score));s.append("path").attr("stroke",n.secondary.default).attr("fill","none").attr("stroke-width","2px").attr("d",f(h)||"")},200,[h]),(0,s.jsx)(i.az,{ref:u})}var N=r(54053);function U(){let[e,t]=(0,l.useState)(!1);return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(f.az,{h:24,w:24,cursor:"pointer",onClick:()=>t(!0),children:(0,s.jsx)(E.G_L,{fill:"onSurface.nLv3"})}),(0,s.jsx)(N.A,{isOpen:e,setIsOpen:t,header:"reputation_tracker_graph",renderAdPlaceholder:!1,footer:(0,s.jsx)(f.so,{display:["none","flex"],justify:"flex-end",mt:"xl",p:"md",children:(0,s.jsx)(f.$n,{variant:"unshielded",onClick:()=>t(!1),children:(0,s.jsx)(v.A,{id:"ok_got_it_button"})})}),children:(0,s.jsx)(f.az,{px:"md",pb:["lg",0],maxW:320,children:(0,s.jsx)(f.EY,{as:"div",font:"body.mediumParagraph",c:"onSurface.nLv1",children:(0,s.jsx)(v.A,{id:"reputation_tracker_info"})})})})]})}function B(e){let{userAccount:t}=e,{data:r,isLoading:i}=(0,a.Ay)(n.VfS.credibilityScoreGraph(t.id));return i?(0,s.jsx)(f.so,{justify:"center",align:"center",bg:["surface.s1","surface.s2"],h:172,br:"lg",py:"lg",children:(0,s.jsx)(f.y$,{})}):(0,s.jsxs)(y.Zp,{isInverseDesktop:!0,children:[(0,s.jsx)(y.Zp.Header,{titleId:"reputation_tracker_graph",actionComponent:(0,s.jsx)(U,{})}),(0,s.jsx)(Z,{points:null==r?void 0:r.points,credibilityScore:t.credibilityScore})]})}var G=r(62859),O=r(60988),$=r(65078),R=r(70591);let Q=e=>{let{text:t,bg:r}=e;return(0,s.jsxs)(f.so,{px:"lg",align:"center",h:24,children:[(0,s.jsx)(f.so,{p:"sm",mr:"sm",h:24,w:24,align:"center",justify:"center",children:(0,s.jsx)(f.az,{w:8,h:8,bg:r,br:"50%"})}),(0,s.jsx)(f.EY,{font:"assistive.default",c:"onSurface.nLv3",children:(0,s.jsx)(v.A,{id:t})})]})};function X(){return(0,s.jsxs)(f.az,{pt:"sm",children:[(0,s.jsx)(Q,{text:"suggestion_approved",bg:"secondary.default"}),(0,s.jsx)(Q,{text:"suggestion_declined",bg:"error.default"}),(0,s.jsx)(Q,{text:"suggestion_unresolved",bg:"onSurface.nLv3"})]})}let J=e=>{let{contribution:t}=e,[r,n]=(0,l.useState)(!1),i=t.contributions[0],o=t.event,{status:a,types:d}=i,[c,u]=(0,$.jr)(o,"homeTeam","awayTeam",o),[x,j]=(0,$.jr)(o,"homeScore","awayScore",o);if(!a||!d.length)return null;let h=C[d[0]].icon,p=t.contributions.map(e=>e.types.length).reduce((e,t)=>e+t,0);return(0,s.jsx)(f.az,{children:(0,s.jsx)(G.y$.Provider,{value:{event:o,leftTeam:c,rightTeam:u,leftScore:x,rightScore:j},children:(0,s.jsx)(R.tj,{event:o,children:(0,s.jsx)(O.n6,{event:o,isNarrow:!0,children:()=>(0,s.jsxs)(f.az,{p:"xs sm",br:"md",hoverBg:"primary.highlight",onClick:e=>{e.preventDefault()},children:[(0,s.jsxs)(f.so,{h:32,position:"relative",justify:"center",align:"center",onClick:()=>n(!0),children:[(0,s.jsx)(h,{fill:L[a]}),p>1&&(0,s.jsx)(f.az,{bg:"primary.default",position:"absolute",w:28,h:12,bottom:-2,br:"sm",children:(0,s.jsx)(f.EY,{font:"assistive.micro",c:"surface.s1",as:"div",align:"center",children:(0,k.A)(p)})})]}),(0,s.jsx)(N.A,{header:(0,s.jsx)(f.EY,{as:"div",font:"display.large",c:"onSurface.nLv1",p:"md",children:(0,s.jsx)(v.A,{id:"overview"})}),isOpen:r,setIsOpen:n,children:(0,s.jsx)(f.so,{direction:"column",px:"md",children:t.contributions.map(e=>e.types.map((t,r)=>{let n=C[t],i=n.icon;return(0,s.jsxs)(f.so,{justify:"space-between",align:"center",h:32,gap:"sm",children:[(0,s.jsxs)(f.so,{align:"center",children:[(0,s.jsx)(i,{type:t,fill:L[e.status],w:24,h:24}),(0,s.jsx)(f.EY,{as:"div",ml:"sm",mt:"xs",children:(0,s.jsx)(v.A,{id:n.translationSingular})})]}),(0,s.jsx)(f.EY,{c:"onSurface.nLv3",mt:"xs",color:L[e.status],children:(0,s.jsx)(v.A,{id:T[e.status]})})]},r)}))})})]})})})})})};function ee(e){let{contributions:t}=e,[r,n]=(0,l.useState)(!1),i=r?t:t.slice(0,10);return(0,s.jsxs)(f.az,{children:[(0,s.jsx)(f.EY,{as:"div",font:"assistive.default",c:"onSurface.nLv1",px:"lg",pt:"lg",pb:"sm",children:(0,s.jsx)(v.A,{id:"recent"})}),i.map(e=>(0,s.jsx)(J,{contribution:e},e.event.id)),(0,s.jsx)(X,{}),t.length>10&&(0,s.jsx)(f.so,{mt:"xl",mb:"lg",justify:"center",children:(0,s.jsx)(f.$n,{borderStyle:"rounded",onClick:()=>n(e=>!e),children:(0,s.jsx)(v.A,{id:r?"show_less":"show_more"})})})]})}function et(e){let{userAccount:t}=e,{data:r}=(0,a.Ay)(n.VfS.contributions(t.id));return(null==r?void 0:r.contributions)?(0,s.jsxs)(y.Zp,{isInverseDesktop:!0,children:[(0,s.jsx)(y.Zp.Header,{titleId:"contributions_log"}),(0,s.jsx)(ee,{contributions:r.contributions})]}):null}var er=r(19451),es=r(52679),en=r(70355),ei=r(76410);let el=()=>{(0,ei.Wk)({type:"top_contributors",location:"profile"})};function eo(){return(0,s.jsx)(R.N_,{routeKey:en.UE[er.xW.TopContributors],onClick:el,children:(0,s.jsxs)(i.so,{align:"center",justify:"space-between",py:"md",px:"lg",cursor:"pointer",bg:{_hover:"neutrals.nLv5"},roundedBottom:"lg",children:[(0,s.jsxs)(i.so,{gap:"md",align:"center",children:[(0,s.jsx)(es.A,{userBadge:n.lqH.Crowdsourcer,size:24}),(0,s.jsx)(_.EY,{display:"block",textStyle:"body.medium",color:"neutrals.nLv1",userSelect:"none",children:(0,s.jsx)(v.A,{id:"view_top_contributors_button"})})]}),(0,s.jsx)(E.zQC,{icon:"chevron-right",width:24,height:24,fill:"primary.default"})]})})}function ea(e){var t;let{userAccount:r}=e,{isMobile:n}=(0,_.$c)();return(0,s.jsxs)(y.HH,{isCard:n,children:[(0,s.jsxs)(i.so,{py:{mdDown:"sm"},px:{mdDown:"lg"},gap:"sm",children:[(0,s.jsx)(S,{grow:1,basis:0,titleId:"profile_leaderboard_position",stat:null==(t=r.userCrowdsourcingAggregates)?void 0:t.currentRanking,skipFormattingCount:!0}),(0,s.jsx)(S,{grow:1,basis:0,titleId:"reputation_score",stat:Math.floor(r.credibilityScore)})]}),(0,s.jsxs)(i.az,{display:{base:"block",md:"none"},children:[(0,s.jsx)(f.cG,{}),(0,s.jsx)(eo,{},r.id)]})]})}function ed(e){let{userAccount:t}=e;return(0,s.jsxs)(y.BU,{children:[(0,s.jsx)(Y,{userAccount:t}),(0,s.jsx)(ea,{userAccount:t}),(0,s.jsx)(B,{userAccount:t}),(0,s.jsx)(et,{userAccount:t})]})}var ec=r(25442),eu=r(86501),ex=r(89642),ej=function(e){return e.Statistics="Statistics",e.MyPredictions="MyPredictions",e.Contributions="Contributions",e.Following="Following",e.Editor="Editor",e}({});function eh(){let{userAccount:e,isUserLoading:t}=(0,l.useContext)(ex.t),[r,n]=(0,l.useState)(ec.H.Upcoming),o=(null==e?void 0:e.editor)||(null==e?void 0:e.activeCrowdsourcer),a=(null==e?void 0:e.editor)?ej.Editor:(null==e?void 0:e.activeCrowdsourcer)?ej.Contributions:ej.MyPredictions;return t?(0,s.jsx)(m.E,{uniqueKey:"profile-desktop-tabs-cl",br:"lg",elevation:2}):(0,s.jsx)(y.Zp,{children:(0,s.jsxs)(f.tU,{variant:"primary",initialValue:a,fullWidthTabs:!0,children:[o&&(0,s.jsx)(i.az,{borderBottom:"1px solid",borderBottomColor:"neutrals.nLv4",children:(0,s.jsxs)(f.tU.List,{mx:"lg",underline:!0,children:[(null==e?void 0:e.editor)&&(0,s.jsx)(f.tU.Tab,{tabKey:ej.Editor,children:(0,s.jsx)(v.A,{id:"user_status_editor"})}),(null==e?void 0:e.activeCrowdsourcer)&&(0,s.jsx)(f.tU.Tab,{tabKey:ej.Contributions,children:(0,s.jsx)(v.A,{id:"contributions_tab_name"})}),(0,s.jsx)(f.tU.Tab,{tabKey:ej.MyPredictions,children:(0,s.jsx)(v.A,{id:"predictions"})})]})}),(null==e?void 0:e.editor)&&(0,s.jsx)(f.tU.Panel,{tabKey:ej.Editor,children:(0,s.jsx)(b.GN,{})}),(null==e?void 0:e.activeCrowdsourcer)&&(0,s.jsx)(f.tU.Panel,{tabKey:ej.Contributions,children:(0,s.jsx)(ed,{userAccount:e})}),(0,s.jsx)(f.tU.Panel,{tabKey:ej.MyPredictions,children:(0,s.jsxs)(i.so,{direction:"column",gap:"md",children:[(0,s.jsx)(eu.g,{}),(0,s.jsx)(b.ET,{activeTab:r,setActiveTab:n})]})})]})})}var ep=r(23228),eg=r(76940),em=r(82952);let ef=e=>{let{id:t,icon:r,routeName:n,eventType:i}=e;return(0,s.jsxs)(f.so,{justify:"space-between",children:[(0,s.jsxs)(f.so,{align:"center",gap:"sm",children:[r,(0,s.jsx)(f.EY,{font:"display.small",children:(0,s.jsx)(v.A,{id:t})})]}),(0,s.jsx)(R.N_,{routeKey:en.UE[n],onClick:()=>(0,ei.Wk)({type:i,location:"profile"}),children:(0,s.jsx)(f.$n,{variant:"unshielded",px:"sm",children:(0,s.jsx)(v.A,{id:"view_all"})})})]})},ev=e=>{let{children:t}=e;return(0,s.jsx)(f.so,{direction:"column",gap:"xs",children:t})};function ey(){let{userAccount:e}=(0,l.useContext)(ex.t);return e?(0,s.jsxs)(y.Zp,{children:[(0,s.jsx)(y.Zp.Header,{titleId:"leaderboards_title"}),(0,s.jsxs)(f.so,{direction:"column",gap:"md",p:"sm",children:[(0,s.jsxs)(ev,{children:[(0,s.jsx)(ef,{id:"topPredictors",eventType:"top_predictors",icon:(0,s.jsx)(es.A,{userBadge:n.lqH.Predictor,size:24}),routeName:er.xW.TopPredictors}),(0,s.jsx)(em.A,{userAccount:e})]}),(0,s.jsxs)(ev,{children:[(0,s.jsx)(ef,{id:"top_contributors_leaderboard",eventType:"top_contributors",icon:(0,s.jsx)(es.A,{userBadge:n.lqH.Crowdsourcer,size:24}),routeName:er.xW.TopContributors}),(0,s.jsx)(ep.A,{userAccount:e})]}),(0,s.jsxs)(ev,{children:[(0,s.jsx)(ef,{id:"top_editors_leaderboard",eventType:"top_editors",icon:(0,s.jsx)(es.A,{userBadge:n.lqH.Editor,size:24}),routeName:er.xW.TopEditors}),(0,s.jsx)(eg.A,{userAccount:e})]})]})]}):null}var eb=r(88339),e_=r(16202);function eA(e){let{assetMeta:t}=e;return t?(0,s.jsx)(y.Zp,{isInverseDesktop:!0,children:(0,s.jsxs)(f.so,{justify:"center",align:"center",gap:"sm",h:56,children:[(0,s.jsx)(f.az,{w:22,children:t&&(0,s.jsx)(f._V,{src:t.imageUrl.svg,width:22,alt:t.title})}),(0,s.jsx)(f.EY,{block:!0,font:"display.medium",children:t.title})]})}):null}function ew(){return(0,s.jsx)(y.Zp,{isInverseDesktop:!0,children:(0,s.jsxs)(i.az,{p:"sm",minH:"7xl",children:[(0,s.jsx)(i.so,{justify:"center",children:(0,s.jsx)(f._V,{src:"/static/images/weekly-challenge/predictions-cta.svg",h:36,w:52,alt:"Weekly challenge trophies"})}),(0,s.jsx)(_.EY,{display:"block",textStyle:"assistive.default",color:"neutrals.nLv3",mt:"xs",textAlign:"center",children:(0,s.jsx)(v.A,{id:"weekly_challenge_visiting_not_joined"})})]})})}var ek=r(79041);function eS(){return(0,s.jsxs)(f.az,{children:[(0,s.jsx)(y.Zp.Header,{titleId:"weekly_challenge"}),(0,s.jsxs)(f.so,{justify:"center",align:"center",gap:"xs",children:[(0,s.jsx)(E.zQC,{icon:"time-outline",h:16,w:16,fill:"onSurface.nLv1"}),(0,s.jsx)(f.EY,{block:!0,font:"assistive.default",color:"onSurface.nLv1",children:(0,s.jsx)(ek.k,{font:"assistive.default",color:"inherit"})})]})]})}var eE=r(72110);function eC(e){let{points:t,isLoading:r}=e;return r?(0,s.jsx)(s.Fragment,{children:"\xa0"}):void 0===t?(0,s.jsx)(s.Fragment,{children:"-"}):(0,s.jsx)(s.Fragment,{children:(0,w.M)(t,2)})}function eL(e){let{rank:t,isLoading:r}=e;return r?(0,s.jsx)(s.Fragment,{children:"\xa0"}):void 0===t?(0,s.jsx)(s.Fragment,{children:"-"}):(0,s.jsx)(s.Fragment,{children:t})}function eT(e){let{rank:t,points:r,isLoading:n}=e;return(0,s.jsxs)(i.so,{justify:"space-between",gap:"sm",children:[(0,s.jsxs)(eE.I,{children:[(0,s.jsx)(_.EY,{textStyle:"display.medium",children:(0,s.jsx)(eL,{rank:t,isLoading:n})}),(0,s.jsx)(_.EY,{textStyle:"assistive.default",color:"neutrals.nLv3",children:(0,s.jsx)(v.A,{id:"basic.rank"})})]}),(0,s.jsxs)(eE.I,{children:[(0,s.jsx)(_.EY,{textStyle:"display.medium",children:(0,s.jsx)(eC,{points:r,isLoading:n})}),(0,s.jsx)(_.EY,{textStyle:"assistive.default",color:"neutrals.nLv3",children:(0,s.jsx)(v.A,{id:"points"})})]})]})}var eP=r(72629);function eY(){var e,t;let{userAccount:r,isUserLoading:d,userId:c}=(0,l.useContext)(ex.t),u=(0,o.d4)(eb.$F),x=(null==u?void 0:u.id)===c,{data:j}=(0,a.Ay)(n.rGM.leagueAssets()),{data:h,isLoading:p,error:g}=(0,a.Ay)((null==r?void 0:r.leaderboardId)?n.rGM.leaderboardRankings(null==r?void 0:r.leaderboardId):null),m=null==h?void 0:h.league.level,f=null==j?void 0:j.meta.find(e=>e.level===m),v=null!=(t=null==h||null==(e=h.rankings)?void 0:e.findIndex(e=>e.id===c))?t:-1,b=v>-1?null==h?void 0:h.rankings[v].score:void 0,_=null==r?void 0:r.weeklyChallengeMaxWeeklyStreak,A=(d||(null==r?void 0:r.leaderboardId))&&!g,w=!A&&!x,k=x&&(d||(null==r?void 0:r.leaderboardId))&&!g,S=(null==r?void 0:r.leaderboardId)!==void 0||void 0!==_,E=A||w||k||S;return(0,s.jsxs)(y.Zp,{children:[x?(0,s.jsx)(i.az,{px:"sm",pt:"sm",children:(0,s.jsx)(e_.V,{location:"profile"})}):(0,s.jsx)(eS,{}),E&&(0,s.jsxs)(i.so,{direction:"column",gap:"sm",overflow:"auto",p:"sm",children:[A&&(0,s.jsx)(eA,{assetMeta:f}),w&&(0,s.jsx)(ew,{}),S&&(0,s.jsx)(eP.A,{currentWeeklyStreak:null==r?void 0:r.weeklyChallengeCurrentWeeklyStreak,maxWeeklyStreak:null==r?void 0:r.weeklyChallengeMaxWeeklyStreak,hasCurrentStreakInfo:!0,onCurrentStreakClick:()=>{(0,ei.ke)({action:"click",location:x?"own_profile":"other_profile",type:"streak_info"})}}),k&&(0,s.jsx)(eT,{rank:v>-1?v+1:void 0,points:b,isLoading:d||p})]})]})}var eI=r(75751);let eq={[n.bq7.Tournaments]:"referee.competitions",[n.bq7.Teams]:"teams",[n.bq7.Players]:"athletes"},ez=e=>{let{entityType:t}=e;return(0,s.jsx)(i.so,{align:"center",justify:"space-between",p:"lg",pb:"sm",h:"3xl",children:(0,s.jsx)(_.EY,{display:"block",textStyle:"display.small",color:"neutrals.nLv1",children:(0,s.jsx)(v.A,{id:eq[t]||" "})})})};function eF(e){let{entityTypes:t}=e;return(0,s.jsx)(s.Fragment,{children:t.map(e=>(0,s.jsxs)(l.Fragment,{children:[(0,s.jsx)(ez,{entityType:e}),(0,s.jsx)(m.E,{uniqueKey:"favorites-list-cl",h:96,ml:"lg",borderRadius:"sm 0 0 sm"})]},e))})}let eH={[n.bq7.Tournaments]:"profile_favourite_competitions_empty",[n.bq7.Teams]:"profile_favourite_teams_empty",[n.bq7.Players]:"profile_favourite_athletes_empty"},eM=e=>{let{entityType:t}=e,r=eH[t];return(0,s.jsx)(i.so,{py:"xl",px:"lg",justify:"center",align:"center",style:{minHeight:96},children:(0,s.jsx)(_.EY,{textStyle:"assistive.default",color:"neutrals.nLv3",children:r&&(0,s.jsx)(v.A,{id:r})})})};var eD=r(18645),eK=r(52695);let eV=e=>{let{favoritesListEntity:t}=e,{type:r,entity:l}=t,{id:o,name:a,sport:d}=l,c={w:32,h:32,id:o,alt:a+" Image"};return(0,s.jsxs)(i.az,{p:"sm",br:"lg",position:"relative",bg:{base:"surface.s2",_hover:"surface.s0"},cursor:"pointer",style:{height:96,width:120},children:[(0,s.jsx)(i.az,{position:"absolute",top:"sm",left:"sm",children:r===n.bq7.Players?(0,s.jsx)(eD.pY,{w:16,h:16,id:l.teamId}):(0,s.jsx)(E.Egi,{sport:d.slug,fill:"onSurface.nLv3",height:16,width:16})}),(0,s.jsxs)(i.so,{direction:"column",align:"center",children:[(0,s.jsxs)(i.so,{align:"center",justify:"center",h:"3xl",w:"3xl",children:[r===n.bq7.Tournaments&&(0,s.jsx)(eD.eD,{...c}),r===n.bq7.Teams&&(0,s.jsx)(eD.pY,{...c}),r===n.bq7.Players&&(0,s.jsx)(eD.tg,{...c})]}),(0,s.jsx)(i.so,{align:"center",h:"2xl",mt:"sm",children:(0,s.jsx)(_.EY,{color:"neutrals.nLv1",textStyle:"assistive.default",textAlign:"center",overflowWrap:"anywhere",lineClamp:2,title:a,children:r===n.bq7.Tournaments?(0,s.jsx)(eK.O,{uniqueTournament:l}):a})})]})]})};function eW(e){let{favoritesListEntity:t}=e,{type:r,entity:i}=t,{id:l,slug:o,sport:a}=i;switch(r){case n.bq7.Tournaments:return(0,s.jsx)(R.N_,{routeKey:"uniqueTournament",params:{id:l,tournament:o,category:i.categorySlug},translatedParams:{sport:a.slug},children:(0,s.jsx)(eV,{favoritesListEntity:t})});case n.bq7.Teams:if(a.slug===n.QCR.Motorsport)return(0,s.jsx)(R.N_,{routeKey:"driver",params:{id:l,slug:o},children:(0,s.jsx)(eV,{favoritesListEntity:t})});return(0,s.jsx)(R.N_,{routeKey:"team",params:{id:l,team:o},translatedParams:{sport:a.slug},children:(0,s.jsx)(eV,{favoritesListEntity:t})});case n.bq7.Players:return(0,s.jsx)(R.N_,{routeKey:"player",params:{slug:o,id:l},translatedParams:{sport:a.slug},children:(0,s.jsx)(eV,{favoritesListEntity:t})});default:return null}}let eZ=(e,t,r)=>{if(!t)return[];switch(e){case n.bq7.Players:return t.players.map(e=>({type:n.bq7.Players,entity:e}));case n.bq7.Teams:return t.teams.filter(e=>void 0===r||e.type===r).map(e=>({type:n.bq7.Teams,entity:e}));case n.bq7.Tournaments:return t.leagues.map(e=>({type:n.bq7.Tournaments,entity:e}));default:return[]}};function eN(e){let{subscriptions:t,entityType:r}=e,l=eZ(r,t,n.YVh.Regular),o=!!(null==l?void 0:l.length);if(r===n.bq7.Players){let e=eZ(n.bq7.Teams,t,n.YVh.Person),r=eZ(n.bq7.Teams,t,n.YVh.Double);l.push(...r,...e)}return l.sort((e,t)=>t.entity.userCount-e.entity.userCount),(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(ez,{entityType:r}),o?(0,s.jsx)(f.tR,{buttonVariant:f.oK.ButtonVariant.Solid,children:(0,s.jsx)(i.so,{gap:"sm",width:"fit",px:"sm",style:{height:96},children:Array.from({length:10},(e,t)=>t).map(e=>{let t=l[e];return t?(0,s.jsx)(eW,{favoritesListEntity:t},t.entity.id):null})})}):(0,s.jsx)(eM,{entityType:r})]})}function eU(){let{userId:e,isUserLoading:t}=(0,l.useContext)(ex.t),{data:r,isLoading:o}=(0,a.Ay)(n.VfS.subscriptions(e)),d=null==r?void 0:r.subscriptions;return(0,s.jsx)(eI.t,{tag:"FavoritesList",children:(0,s.jsxs)(i.az,{bg:"surface.s1",br:{md:"xl"},elevation:{md:"2"},pb:"sm",children:[(0,s.jsx)(_.EY,{display:{base:"none",md:"block"},pt:"md",pb:"xs",textStyle:"display.medium",textAlign:"center",children:(0,s.jsx)(v.A,{id:"app_favourites"})}),t||o?(0,s.jsx)(eF,{entityTypes:[n.bq7.Tournaments,n.bq7.Teams,n.bq7.Players]}):(0,s.jsxs)(l.Fragment,{children:[(0,s.jsx)(eN,{entityType:n.bq7.Tournaments,subscriptions:d}),(0,s.jsx)(eN,{entityType:n.bq7.Teams,subscriptions:d}),(0,s.jsx)(eN,{entityType:n.bq7.Players,subscriptions:d})]},e)]})})}function eB(){let{userAccount:e}=(0,l.useContext)(ex.t);return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(b.iy,{}),(0,s.jsxs)(d.xA,{pb:"48",children:[(0,s.jsxs)(d.fv,{grow:2,children:[(0,s.jsx)(b.bj,{}),(0,s.jsx)(eU,{}),(0,s.jsx)(g.S,{}),(0,s.jsx)(j.A,{}),(0,s.jsx)(h.A,{})]}),(0,s.jsx)(d.fv,{grow:3,children:(0,s.jsx)(eh,{})}),(0,s.jsxs)(d.fv,{grow:2,children:[(0,s.jsx)(eY,{}),(0,s.jsx)(p.pk,{utIds:null}),(0,s.jsx)(ey,{}),(null==e?void 0:e.editor)&&(0,s.jsx)(x.s,{})]})]})]})}var eG=r(96913),eO=r(28132);function e$(){let{userAccount:e,userId:t,isUserLoading:r}=(0,l.useContext)(ex.t),n=(0,o.d4)(eb.$F),a=(null==n?void 0:n.id)===t,[d,c]=(0,l.useState)(),u=[{tabKey:eO.H.Overview,item:"overview",isHidden:!a},{tabKey:eO.H.Editor,item:"user_status_editor",isHidden:!(null==e?void 0:e.editor)},{tabKey:eO.H.Contributions,item:"contributions_tab_name",isHidden:!(null==e?void 0:e.activeCrowdsourcer)},{tabKey:eO.H.MyPredictions,item:"predictions"},{tabKey:eO.H.Following,item:"app_favourites",isHidden:a}];return((0,l.useEffect)(()=>{!r&&e&&c(a?eO.H.Overview:(null==e?void 0:e.editor)?eO.H.Editor:(null==e?void 0:e.activeCrowdsourcer)?eO.H.Contributions:eO.H.MyPredictions)},[t,r]),!n||r)?null:(0,s.jsxs)(i.az,{mb:"2xl",pb:"sm",children:[(0,s.jsx)(b.bj,{}),d&&(0,s.jsx)(i.az,{children:(0,s.jsxs)(eG.A,{id:0,tabs:u,location:eG.m.ProfilePage,initialTabKey:d,customControls:[d,c],noSportMenu:!0,bg:"surface.s0",children:[(0,s.jsx)(f.tU.Panel,{tabKey:eO.H.Overview,children:(0,s.jsx)(b.Aw,{})}),(0,s.jsx)(f.tU.Panel,{tabKey:eO.H.Editor,children:(0,s.jsx)(b.GN,{})}),(0,s.jsx)(f.tU.Panel,{tabKey:eO.H.MyPredictions,children:(0,s.jsx)(b.Ay,{})}),(0,s.jsx)(f.tU.Panel,{tabKey:eO.H.Following,children:(0,s.jsx)(eU,{})}),e&&(0,s.jsx)(f.tU.Panel,{tabKey:eO.H.Contributions,children:(0,s.jsx)(ed,{userAccount:e})})]})})]})}function eR(){return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(u.$B,{children:(0,s.jsx)(e$,{})}),(0,s.jsx)(u.h6,{children:(0,s.jsx)(eB,{})})]})}var eQ=r(33752),eX=r(25862),eJ=r(96205),e0=r(68234),e4=r(28157),e2=r(70679);let e1=e=>{let{id:t}=e;return(0,s.jsxs)(f.so,{as:"li",gap:"md",children:[(0,s.jsx)(f.az,{w:24,h:24,children:(0,s.jsx)(E.VsF,{fill:"primary.default",w:24,h:24})}),(0,s.jsx)(f.EY,{font:"body.mediumParagraph",children:(0,s.jsx)(v.A,{id:t})})]})},e9=()=>(0,s.jsx)(d.Ay,{children:(0,s.jsx)(f.az,{bg:"surface.s1",br:[0,"lg"],elevation:2,overflow:"hidden",mt:[0,48],mx:[0,"lg"],children:(0,s.jsx)(eJ.A,{})})});function e3(e){let{userId:t}=e,r=(0,o.wA)(),{isDesktop:n}=(0,_.$c)();return t||n?(0,s.jsx)(e9,{}):(0,s.jsxs)(d.Ay,{children:[(0,s.jsx)(f.az,{bg:"surface.s1",children:(0,s.jsxs)(e0.A,{p:"lg lg xl lg",children:[(0,s.jsx)(eQ.B,{children:(0,s.jsx)(eQ.B.Item,{children:(0,s.jsx)(v.A,{id:"profile_my_profile"})})}),(0,s.jsx)(f.so,{justify:"center",py:"sm",h:102,children:(0,s.jsx)(e2.A,{size:102})}),(0,s.jsx)(f.EY,{font:"display.medium",align:"center",pt:"md",pb:"sm",children:(0,s.jsx)(v.A,{id:"logged_out_profile_header"})}),(0,s.jsxs)(f.so,{as:"ul",direction:"column",gap:"sm",p:"0",children:[(0,s.jsx)(e1,{id:"profile_benefit_1"}),(0,s.jsx)(e1,{id:"profile_benefit_2_web"}),(0,s.jsx)(e1,{id:"profile_benefit_3"}),(0,s.jsx)(e1,{id:"profile_benefit_4_web"})]}),(0,s.jsx)(f.$n,{br:"lg",onClick:()=>{(0,ei.ke)({action:"click",location:"user_profile",type:"login_button"}),r((0,eX.aS)())},children:(0,s.jsx)(v.A,{id:"user.signIn"})})]})}),(0,s.jsxs)(y.BU,{children:[(0,s.jsx)(e4.A,{}),(0,s.jsx)(p.pk,{utIds:null})]})]})}var e7=r(65097);let e6=e=>{let{userId:t}=e,{data:r,isLoading:i}=(0,a.Ay)(n.VfS.details(t),{revalidateOnFocus:!0});return r||i?(0,s.jsxs)(d.Ay,{children:[(0,s.jsx)(c.Ay,{metaKey:"user.profile"}),(0,s.jsx)(ex.t.Provider,{value:{userId:t,userAccount:null==r?void 0:r.userAccount,isUserLoading:i},children:(0,s.jsx)(eR,{})})]}):(0,s.jsx)(e7.default,{statusCode:404})},e5=e=>{let{userId:t}=e,r=(0,o.wA)(),n=(0,o.d4)(eb.$F),a=(0,o.d4)(eb.hA);return((0,l.useEffect)(()=>{r((0,eX.Vy)(null))},[]),a)?(null==n?void 0:n.id)?(0,s.jsx)(e6,{userId:t||n.id}):(0,s.jsx)(e3,{userId:t}):(0,s.jsx)(i.az,{h:"[100vh]"})};e5.getInitialProps=e=>{let{query:t}=e;return{userId:t.userId||""}};let e8=e5},52226:(e,t,r)=>{"use strict";r.d(t,{G:()=>i});var s=r(6029),n=r(41249);let i=e=>{let{currentStats:t,...r}=e;return(0,s.jsxs)(n.so,{gap:"sm",children:[(0,s.jsx)(n.EY,{as:"bdi",minW:"40px",color:"onSurface.nLv1",font:"table.medium",align:"center",...r,children:t.total}),(0,s.jsx)(n.EY,{as:"bdi",minW:"40px",color:"onSurface.nLv1",font:"table.medium",align:"center",...r,children:t.percentage}),(0,s.jsxs)(n.EY,{as:"bdi",minW:"40px",color:"onSurface.nLv1",font:"table.medium",align:"center",...r,children:[t.roi>0?"+":"",t.roi]})]})}},52951:(e,t,r)=>{"use strict";r.d(t,{xV:()=>c,an:()=>u,Ay:()=>x});var s=r(6029),n=r(55575),i=r.n(n),l=r(95669),o=r.n(l),a=r(55729),d=r(947);let c=(0,a.createContext)({}),u=c.Provider;c.Consumer;let x=e=>{let{titleKey:t,descriptionKey:r,keywordsKey:n,metaKey:l,values:u={},titleFallback:x}=e,{meta:j,seoContent:h}=(0,a.useContext)(c),p=(0,d.A)(),g=t||l?p.formatMessage({id:"title.".concat(t||l)},u):x||"Sofascore",m=p.formatMessage({id:"description.".concat(r||l)},u),f=p.formatMessage({id:"keywords.".concat(n||l)},u);return(0,s.jsxs)(o(),{children:[(0,s.jsx)("title",{children:i()((null==h?void 0:h.title)||(null==j?void 0:j.title)||g)}),(null==h?void 0:h.description)||(null==j?void 0:j.description)?(0,s.jsx)("meta",{name:"description",content:(null==h?void 0:h.description)||(null==j?void 0:j.description)},"description"):p.messages["description.".concat(r||l)]&&(0,s.jsx)("meta",{name:"description",content:m},"description"),(null==j?void 0:j.keywords)?(0,s.jsx)("meta",{name:"keywords",content:j.keywords}):p.messages["keywords.".concat(n||l)]&&(0,s.jsx)("meta",{name:"keywords",content:f})]})}},54519:(e,t,r)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/user/profile",function(){return r(42196)}])},55575:(e,t,r)=>{var s=r(60567),n=r(27869),i=/&(?:amp|lt|gt|quot|#39);/g,l=RegExp(i.source);e.exports=function(e){return(e=s(e))&&l.test(e)?e.replace(i,n):e}},59794:(e,t,r)=>{"use strict";r.d(t,{A:()=>a,I:()=>o});var s=r(6029),n=r(41249),i=r(90248),l=r(40834);let o=()=>(0,s.jsx)(n.EY,{color:"onSurface.nLv3",font:"table.medium",align:"right",ellipsis:!0,children:(0,s.jsx)(i.A,{id:"points"})});function a(){return(0,s.jsx)(l.A,{children:(0,s.jsx)(o,{})})}},65097:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>h});var s=r(6029),n=r(14092),i=r(41249),l=r(95669),o=r.n(l),a=r(947),d=r(90248),c=r(54409),u=r(76868),x=r(29129),j=r(70591);function h(e){let{statusCode:t}=e;n.O({statusCode:t});let r=(0,a.A)().formatMessage({id:404===t?"error.pageNotFound":"error.anErrorOccurred"});return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)(o(),{children:[(0,s.jsx)("title",{children:"".concat(t," | ").concat(r||"")}),(0,s.jsx)("meta",{name:"robots",content:"noindex"})]}),(0,s.jsx)("div",{id:"errorPage",children:(0,s.jsx)(x.Ay,{children:(0,s.jsx)(x.xA,{children:(0,s.jsx)(x.fv,{textAlign:"center",my:"xxl",noDividers:!0,children:(0,s.jsxs)(u.p,{graphic:"no-connection",children:[(0,s.jsx)(i.EY,{font:"display.extraLarge",color:"onSurface.nLv3",align:"center",as:"h1",mt:"28px",mb:"xxs",children:t}),(0,s.jsx)(i.EY,{font:"display.medium",color:"onSurface.nLv3",align:"center",as:"h3",children:(0,s.jsx)(d.A,{id:"error.anErrorOccurred"})}),(0,s.jsx)(i.EY,{align:"center",mb:"xxl",as:"div",children:404===t?(0,s.jsx)(d.A,{id:"error.pageCannotBeFound"}):(0,s.jsx)(d.A,{id:"error.somethingWrongWithPage"})}),(0,s.jsx)(j.N_,{routeKey:"home",children:(0,s.jsxs)(i.$n,{children:[(0,s.jsx)(c.pa2,{mt:"-3px"})," ",(0,s.jsx)(d.A,{id:"error.backToSofascore"})]})})]})})})})})]})}h.getInitialProps=async e=>{await n.O(e);let{res:t,err:r}=e;return{statusCode:t?t.statusCode:r?r.statusCode:null}}},70917:(e,t,r)=>{var s=r(74283),n=r(87567);e.exports=function(e){return null==e?[]:s(e,n(e))}},73606:(e,t,r)=>{"use strict";r.d(t,{V:()=>d,c:()=>c});var s=r(6029),n=r(41249),i=r(90248),l=r(494),o=r(2294),a=r(40834);let d=()=>{let e=(0,l.d4)(o.BF);return(0,s.jsxs)(n.so,{gap:"sm",children:[(0,s.jsx)(n.EY,{as:"div",color:"onSurface.nLv3",font:"table.medium",align:"right",ellipsis:!0,children:(0,s.jsx)(i.A,{id:"basic.voted"})}),(0,s.jsx)(n.cG,{vertical:!0}),(0,s.jsx)(n.EY,{as:"div",color:"onSurface.nLv3",font:"table.medium",align:"right",ellipsis:!0,children:(0,s.jsx)(i.A,{id:"basic.correct"})}),(0,s.jsx)(n.cG,{vertical:!0}),(0,s.jsx)(n.EY,{as:"div",color:"onSurface.nLv3",font:"table.medium",align:"right",ellipsis:!0,children:(0,s.jsx)(i.A,{id:e?"points":"virtual_roi_short"})})]})},c=()=>(0,s.jsx)(a.A,{children:(0,s.jsx)(d,{})})},74283:(e,t,r)=>{var s=r(88601);e.exports=function(e,t){return s(t,function(t){return e[t]})}},76940:(e,t,r)=>{"use strict";r.d(t,{A:()=>d});var s=r(6029),n=r(494),i=r(88339),l=r(83542),o=r(59794),a=r(82304);function d(e){let{userAccount:t,isCard:r}=e,d=(0,n.d4)(i.$F),c=t||d;if(!c)return null;let u=null==c?void 0:c.userEditorScoreAggregates;return u?(0,s.jsx)(a._,{isCard:r,rank:u.currentRanking,header:(0,s.jsx)(o.I,{}),children:(0,s.jsx)(l.f,{score:u.score})}):(0,s.jsx)(a.q,{id:"profile_leaderboards_no_editor_stats",isCard:r})}},79041:(e,t,r)=>{"use strict";r.d(t,{k:()=>d});var s=r(6029),n=r(21377),i=r(90248),l=r(45860),o=r(39419);let a=()=>{var e;let{data:t}=(0,l.Ay)(n.rGM.activeLeagueDetails());if(!(null==t?void 0:t.meta))return;let r=new Date().getTime(),s=(null==(e=t.meta)?void 0:e.endDateTimestamp)*1e3;return{hasEnded:s{let{font:t,color:r}=e,n=a();return n?(0,s.jsxs)(s.Fragment,{children:[n.hasEnded?(0,s.jsx)(i.A,{id:"next_weekly_challenge"}):(0,s.jsx)(i.A,{id:"weekly_challenge_time_left"}),": ",(0,s.jsx)(o.M,{hasChallengeEnded:n.hasEnded,challengeEndTime:n.endTimestamp,font:t||"body.small",color:r||"onColor.primary"})]}):(0,s.jsx)(s.Fragment,{children:"\xa0"})}},82304:(e,t,r)=>{"use strict";r.d(t,{_:()=>a,q:()=>d});var s=r(6029),n=r(41249),i=r(90248),l=r(65789);function o(e){let{isCard:t,children:r}=e;return t?(0,s.jsxs)(l.Zp,{children:[(0,s.jsx)(l.Zp.Header,{titleId:"profile_leaderboards_your_stats"}),(0,s.jsx)(n.az,{pt:"sm",pb:"lg",px:"lg",children:r})]}):(0,s.jsx)(s.Fragment,{children:r})}function a(e){let{isCard:t,rank:r,header:a,children:d}=e,c=void 0===r||"string"==typeof r&&isNaN(+r)?"":"#";return(0,s.jsx)(o,{isCard:t,children:(0,s.jsxs)(l.Zp,{isInverseDesktop:!0,children:[(0,s.jsxs)(n.so,{justify:"space-between",borderBottom:"onSurface.nLv4",p:"lg",children:[(0,s.jsx)(n.EY,{font:"table.medium",c:"onSurface.nLv3",pr:"sm",ellipsis:!0,children:(0,s.jsx)(i.A,{id:"profile_current_rank"})}),a]}),(0,s.jsxs)(n.so,{p:"md lg",justify:"space-between",align:"center",children:[(0,s.jsxs)(n.EY,{as:"div",mr:"md",w:22,children:[c,null!=r?r:"-"]}),d]})]})})}function d(e){let{id:t,isCard:r}=e;return(0,s.jsx)(o,{isCard:r,children:(0,s.jsx)(l.Zp,{isInverseDesktop:!0,children:(0,s.jsx)(n.so,{align:"center",justify:"center",h:89,children:(0,s.jsx)(n.EY,{font:"body.mediumParagraph",c:"onSurface.nLv3",children:(0,s.jsx)(i.A,{id:t})})})})})}},82952:(e,t,r)=>{"use strict";r.d(t,{A:()=>d});var s=r(6029),n=r(494),i=r(88339),l=r(52226),o=r(73606),a=r(82304);function d(e){let{userAccount:t,isCard:r}=e,d=(0,n.d4)(i.$F),c=t||d;if(!c)return null;let u=null==c?void 0:c.voteStatistics.current;return u&&0!=+u.total?(0,s.jsx)(a._,{isCard:r,rank:u.ranking,header:(0,s.jsx)(o.V,{}),children:(0,s.jsx)(l.G,{currentStats:u})}):(0,s.jsx)(a.q,{id:"profile_leaderboards_no_predictions",isCard:r})}},83542:(e,t,r)=>{"use strict";r.d(t,{f:()=>l});var s=r(6029),n=r(98914),i=r(41249);let l=e=>{let{score:t,...r}=e;return(0,s.jsx)(i.EY,{as:"bdi",minW:"48px",color:"onSurface.nLv1",font:"table.medium",align:"right",...r,children:(0,n.M)(t)})}},91138:(e,t,r)=>{"use strict";r.d(t,{A:()=>a,u:()=>o});var s=r(6029),n=r(41249),i=r(90248),l=r(40834);let o=()=>(0,s.jsxs)(n.so,{gap:"sm",children:[(0,s.jsx)(n.EY,{color:"onSurface.nLv3",font:"table.medium",align:"right",ellipsis:!0,children:(0,s.jsx)(i.A,{id:"contribution_profile_reputation_score_leaderboard"})}),(0,s.jsx)(n.cG,{vertical:!0}),(0,s.jsx)(n.EY,{color:"onSurface.nLv3",font:"table.medium",align:"right",ellipsis:!0,children:(0,s.jsx)(i.A,{id:"points"})})]});function a(){return(0,s.jsx)(l.A,{children:(0,s.jsx)(o,{})})}},91407:(e,t,r)=>{"use strict";r.d(t,{t:()=>o});var s=r(64082),n=r(6029),i=r(21377),l=r(41249);let o=e=>{var{id:t,name:r,size:o=56,style:a,className:d,grayscale:c,isFantasy:u,placeholder:x="/static/images/placeholders/player.svg"}=e,j=(0,s.T)(e,["id","name","size","style","className","grayscale","isFantasy","placeholder"]);let h=j.w||j.width||o,p=j.h||j.height||o;return(0,n.jsx)(l._V,Object.assign({fallback:(0,n.jsx)(l._V,{style:Object.assign({borderRadius:"50%"},a),w:h,h:p,src:x,alt:r}),src:t?i.qvj.image(t,u):"",alt:r,w:h,h:p,br:"50%",border:"onSurface.nLv4",style:a,className:d,isGrayscale:c},j))}}},e=>{var t=t=>e(e.s=t);e.O(0,[4092,8446,6591,3170,8757,3797,2062,7319,4033,636,6593,8792],()=>t(54519)),_N_E=e.O()}]);