!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]="12a54bba-af76-4616-a985-a609936c0202",e._sentryDebugIdIdentifier="sentry-dbid-12a54bba-af76-4616-a985-a609936c0202")}catch(e){}}(),(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[29097],{3881:(e,t,n)=>{"use strict";n.d(t,{E:()=>l});var s=n(64082),a=n(6029),i=n(99064),r=n(43451);function l(e){var{height:t=800,width:n="100%",rowHeight:l=45,wrapperStyle:o={},rows:d,animate:u=!1,rowGap:c=8,uniqueKey:m}=e,x=(0,s.T)(e,["height","width","rowHeight","wrapperStyle","rows","animate","rowGap","uniqueKey"]);return 0===t?null:(0,a.jsx)(i.az,Object.assign({maxW:"100%",bg:"surface.s1",overflow:"hidden"},x,{style:o},{children:(0,a.jsx)(r.D,Object.assign({animate:u,width:n,height:d&&l?d*(l+c):t,uniqueKey:m},{children:(0,a.jsx)(a.Fragment,{children:d?Array(d).fill(null).map((e,t)=>(0,a.jsx)("rect",{x:0,y:t*(l+c),width:"100%",height:l},t)):(0,a.jsx)("rect",{x:0,y:0,width:"100%",height:t})})}))}))}},4866:(e,t,n)=>{"use strict";n.d(t,{e:()=>a.e,w:()=>s.w});var s=n(53192),a=n(33480)},6244:(e,t,n)=>{"use strict";n.d(t,{l:()=>u,W:()=>c});var s=n(6029),a=n(21377),i=n(28349),r=n(62042),l=n(76356),o=n(67628);let d=(0,r.Fj)({base:{display:"inline-block",borderRadius:"md",px:"sm"},variants:{groundType:{[a.QWe.HardcourtIndoor]:{bg:"tennis.terrain.hardcourtIndoor"},[a.QWe.HardcourtOutdoor]:{bg:"tennis.terrain.hardcourtOutdoor"},[a.QWe.Hard]:{bg:"tennis.terrain.hardcourtOutdoor"},[a.QWe.CarpetIndoor]:{bg:"tennis.terrain.default"},[a.QWe.Grass]:{bg:"tennis.terrain.grass"},[a.QWe.Clay]:{bg:"tennis.terrain.clay"},[a.QWe.RedClay]:{bg:"tennis.terrain.clay"},[a.QWe.SyntheticOutdoor]:{bg:"tennis.terrain.default"},default:{bg:"tennis.terrain.default"}}}}),u=(0,l.I4)("div",d),c=e=>{let{groundType:t}=e;return t?(0,s.jsx)(u,{groundType:t,children:(0,s.jsx)(i.EY,{display:"block",textStyle:"assistive.default",h:"lg",color:"surface.s1",children:(0,s.jsx)(o.n,{id:t})})}):null}},9922:(e,t,n)=>{var s=n(22346);e.exports=function(e){return s(e,5)}},11061:(e,t,n)=>{var s=n(22479),a=1/0;e.exports=function(e){return e?(e=s(e))===a||e===-a?(e<0?-1:1)*17976931348623157e292:e==e?e:0:0===e?e:0}},15771:(e,t,n)=>{"use strict";n.d(t,{A:()=>d});var s=n(6029),a=n(87827),i=n(21377),r=n(98516),l=n(52854);let o=e=>Math.round((e+Number.EPSILON)*100)/100,d=function(e){let{stat:t,sport:n}=e,{selectedStat:d}=e;switch(d=d.split(l.I)[0],n){case i.QCR.Football:var u,c,m=d;switch(m){case"accuratePasses":case"accurateLongBalls":case"accurateCrosses":case"shots":case"shotsOnTarget":case"successfulDribbles":case"tackles":case"interceptions":case"clearances":case"corners":case"fouls":return t?(0,r.M)(t[m]/t.matches,1):0;case"avgRating":return t?(0,s.jsx)(a.G,{format:"sideBox",rating:o(t[m])}):0;case"averageBallPossession":return t?"".concat((0,r.M)(t.averageBallPossession,1),"%"):0;case"penaltyGoals":return t?t.penaltiesTaken?"".concat(t.penaltyGoals," / ").concat(t.penaltiesTaken):t.penaltyGoals:0;case"penaltyGoalsConceded":return t?"".concat(t.penaltyGoalsConceded," / ").concat(t.penaltiesCommited):0;case"kilometersCovered":return t?"".concat((0,r.M)(t.kilometersCovered/t.matches,1)," km"):0;case"numberOfSprints":return t?"".concat((0,r.M)(t.numberOfSprints/t.matches,1)):0;default:return t?o(t[m]):0}case i.QCR.Basketball:var x=d;switch(x){case"points":case"pointsAgainst":case"plusMinus":case"assists":case"rebounds":case"defensiveRebounds":case"offensiveRebounds":case"steals":case"turnovers":case"blocks":case"fastbreakPoints":return(0,r.M)(t[x]/t.matches,1);case"fieldGoalsPercentage":case"fieldGoalsPercentageAgainst":case"freeThrowsPercentage":case"threePointsPercentage":case"threePointsPercentageAgainst":return"".concat((0,r.M)(t[x],1),"%");default:return o(t[x])}case i.QCR.Handball:return["goalsScored","goalsConceded","fastbreakGoals","steals","twoMinutePenalties","goalsInPowerplay","shorthandedGoals"].includes(u=d)?(0,r.M)(t[u]/t.matches,1):["shootingPercentage"].includes(u)?(0,r.M)(t[u],1)+"%":"sevenMetersScored"===u?"".concat(t.sevenMetersScored,"/").concat(t.sevenMetersTotal):o(t[u]);case i.QCR.IceHockey:return["powerPlayPercentage","faceOffPercentage","penaltyKillPercentage"].includes(c=d)?(0,r.M)(t[c],1)+"%":"sevenMetersScored"===c?"".concat(t.sevenMetersScored,"/").concat(t.sevenMetersTotal):(0,r.M)(t[c]/t.matches,1);case i.QCR.Tennis:var p=d;switch(p){case"firstServePercentage":case"firstServePointsWonPercentage":case"secondServePercentage":case"secondServePointsWonPercentage":return(0,r.M)(t[p],1)+"%";case"avgAces":case"avgDoubleFaults":return(0,r.M)(t[p],1);case"breakPointsSavedPercentage":if(isNaN(t.opponentBreakPointsTotal)||isNaN(t.opponentBreakPointsScored))return 0;let h=t.opponentBreakPointsTotal-t.opponentBreakPointsScored;return"".concat(h,"/").concat(t.opponentBreakPointsTotal," (").concat((0,r.M)(t[p],1),"%)");case"breakPointsSavedConvertedPercentage":if(isNaN(t.breakPointsScored)||isNaN(t.breakPointsTotal))return 0;return"".concat(t.breakPointsScored,"/").concat(t.breakPointsTotal," (").concat((0,r.M)(t[p],1),"%)");case"tiebreakWinPercentage":let{tiebreaksWon:g,tiebreakLosses:j}=t;if(isNaN(g)||isNaN(j))return 0;let v=g+j;if(v>0)return"".concat(g,"/").concat(v," (").concat((0,r.M)(t[p],1),"%)");return"".concat(g,"/").concat(v," (0%)");default:return o(t[p])}default:return o(t[d])}}},18741:(e,t,n)=>{"use strict";n.d(t,{E5:()=>l,fz:()=>o,hE:()=>d});var s=n(6029),a=n(28349),i=n(90248),r=n(55803);function l(e){let{children:t,title:n,titleValues:l,titleHidden:o}=e;return t?(0,s.jsxs)(r.E,{children:[!o&&n&&(0,s.jsx)(a.H2,{textStyle:"display.medium",mb:"md",children:(0,s.jsx)(i.A,{id:n,values:l})}),t]}):null}function o(e){let{id:t,values:n}=e,r={...n||{},bold:function(){for(var e=arguments.length,t=Array(e),n=0;n{"use strict";n.d(t,{A:()=>o});var s=n(21377),a=n(55729),i=n(45860),r=n(62859),l=n(34209);function o(e){let{uniqueTournamentId:t,seasonId:n,division:o,overrideSeasonType:d}=e,u=(0,a.useContext)(r.Ws),{types:c,currentType:m,setCurrentType:x,isLoading:p,isError:h}=(0,l.A)(t,n,u,"team",d),g=u===s.QCR.Tennis?"mainDraw":m,j=t&&n&&!p?s.V3t.topTeams(t,n,g,o):null,{data:v,error:y}=(0,i.Ay)(j),f=null==v?void 0:v.topTeams,T=f?Object.keys(f):[],[b,w]=(0,a.useState)(""),S=f&&b&&f[b]?f[b].map(e=>({team:e.team,stats:e.statistics})):[];return(0,a.useEffect)(()=>{w("")},[t]),(0,a.useEffect)(()=>{T.length&&!b&&w(T[0])},[null==T?void 0:T.length]),{topTeams:f,stats:T,activeStat:b,setActiveStat:w,types:c,activeType:m,setActiveType:x,activeTeams:S,isError:!!y||h,isLoading:(!v||!b)&&!y}}},28167:(e,t,n)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/tournament",function(){return n(98054)}])},32312:(e,t,n)=>{"use strict";n.d(t,{i:()=>l});var s=n(6029),a=n(28349),i=n(76356),r=n(90248);let l=()=>(0,s.jsxs)(i.so,{px:"sm",mt:"sm",h:"xl",children:[(0,s.jsx)(a.EY,{minW:"xl",textAlign:"center",textStyle:"display.small",color:"neutrals.nLv3",children:"#"}),(0,s.jsx)(i.az,{flexGrow:1,flexShrink:1,ml:"lg",children:(0,s.jsx)(a.EY,{textStyle:"table.medium",color:"neutrals.nLv3",children:(0,s.jsx)(r.A,{id:"team"})})}),(0,s.jsx)(a.EY,{textStyle:"table.medium",color:"neutrals.nLv3",textTransform:"uppercase",children:(0,s.jsx)(r.A,{id:"Pts"})})]})},32523:(e,t,n)=>{"use strict";n.d(t,{E:()=>s.E});var s=n(3881)},34884:(e,t,n)=>{"use strict";n.d(t,{i:()=>c});var s=n(6029),a=n(28349),i=n(76356),r=n(90248),l=n(48683),o=n(54409),d=n(13266),u=n(61836);function c(e){let{numberOfEditors:t,isOrganization:n,eventLocation:c,nickname:m,userId:x,hasStarted:p,isInLeagueHeader:h,onClick:g}=e,{isDesktop:j}=(0,a.$c)(),v=m?(0,s.jsx)(r.A,{id:p?"edited_by":"event.createdBy",values:{nickname:m}}):(0,s.jsx)(r.A,{id:"edited_by_more_editors",values:{number:t}}),y=(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(a.EY,{textStyle:"assistive.default",color:"primary.default",children:v}),(0,s.jsx)(o._jO,{ml:"sm",height:16,width:16,fill:"primary.default"})]}),f=(0,s.jsxs)(a.$n,{size:"secondary",children:[v,(0,s.jsx)(o._jO,{})]});return m||t?(0,s.jsx)(l.Zp,{variant:h?"never":"desktop-only",children:(0,s.jsx)(i.so,{justify:"flex-end",align:"center",md:h?void 0:{px:"lg",py:"sm"},children:g?(0,s.jsx)(i.az,{cursor:"pointer",onClick:g,children:h&&j?f:y}):n?(0,s.jsx)("a",{href:"https://torneo.sofascore.com/",target:"_blank",rel:"noreferrer",children:h&&j?f:y}):(0,s.jsx)(d.N_,{routeKey:"user",params:{userId:x},onClick:()=>(0,u.Zs)(c),children:h&&j?f:y})})}):null}},35399:(e,t,n)=>{"use strict";n.d(t,{f:()=>i,s:()=>a});var s=n(21377);let a=[s.QCR.Football,s.QCR.Handball,s.QCR.Basketball,s.QCR.IceHockey],i=[s.QCR.Football,s.QCR.Handball,s.QCR.Basketball,s.QCR.IceHockey,s.QCR.Tennis]},42021:(e,t,n)=>{"use strict";n.d(t,{h:()=>d});var s=n(6029),a=n(28349),i=n(55729),r=n(90248),l=n(54409),o=n(54053);let d=()=>{let[e,t]=(0,i.useState)(!1);return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("button",{onClick:()=>t(!0),children:(0,s.jsx)(l.G_L,{fill:"onSurface.nLv1"})}),(0,s.jsx)(o.A,{isOpen:e,setIsOpen:t,header:"sofascore_power_rankings",children:(0,s.jsx)(a.EY,{display:"block",maxW:{md:"[312px]"},px:"lg",textStyle:"body.mediumParagraph",children:(0,s.jsx)(r.A,{id:"power_rankings_description"})})})]})}},43783:(e,t,n)=>{"use strict";n.d(t,{Q:()=>i});var s=n(21377),a=n(45860);function i(e,t,n){var i,r;let{data:l}=(0,a.Ay)(s.V3t.powerRankingRounds(e,t)),o=n||(null==l||null==(r=l.powerRankingRounds)||null==(i=r[0])?void 0:i.id),{data:d}=(0,a.Ay)(o?s.V3t.powerRankings(e,t,o):null);return{rankings:null==d?void 0:d.powerRankings,rounds:null==l?void 0:l.powerRankingRounds}}},45749:(e,t,n)=>{"use strict";n.d(t,{P:()=>d});var s=n(55729),a=n(85625),i=n(95868);let r=null,l=!1;async function o(){if(!r)try{r=(await n.e(55831).then(n.t.bind(n,61985,23))).default,await r.Initialize("3de57cc21a364c9c918d8899d0aee6bf",{shouldModifyUrlWithStoryId:!1}),r.addDelegateListener(r.Delegations.onEventTriggered,i.hT)}catch(e){return console.error("WSC SDK initialization error:",e),!1}return!0}function d(e){let{containerId:t,storyIds:n,location:d,reloadTrigger:u,setErrorOccurred:c}=e,[m,x]=(0,s.useState)(l);(0,s.useEffect)(()=>{o();let e=()=>{l=!0,x(!0)};return document.addEventListener("onBlazeSDKConnect",e),()=>{document.removeEventListener("onBlazeSDKConnect",e)}},[u]),(0,s.useEffect)(()=>{if(!(null==n?void 0:n.length)||!r||!m||!t||!(0,i.R5)(t))return;r.addDelegateListener(r.Delegations.onErrorThrown,()=>{c(!0)});let{eventId:e}=(0,i.HK)(t,"wsc");try{let s=r.Theme(d===a.D.TournamentPage?"row-rectangle":"row-rectangle-horizontal","story");s.layoutStyle.labelStyle.isVisible=!e,s.layoutStyle.statusLiveStyle.isVisible=!1,s.layoutStyle.statusUnreadStyle.isVisible=!1,s.layoutStyle.statusLiveUnreadStyle.isVisible=!1,s.layoutStyle.borderRadius=e?"0":"12px",s.layoutStyle.horizontalItemsSpacing=4,r.WidgetRowView(t,{dataSource:r.DataSourceBuilder().ids({ids:n}),theme:s,maxDisplayItemsCount:e?1:void 0}),c(!1)}catch(e){c(!0),console.error(e)}},[n.length,t,m])}},46664:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>Y});var s=n(6029),a=n(98423),i=n(21377),r=n(28349),l=n(76356),o=n(99064),d=n(55729),u=n(947),c=n(90248),m=n(48683),x=n(62859),p=n(74761),h=n(97918),g=n(57869),j=n(73404),v=n(56602),y=n(27892),f=n(12047),T=n(33144),b=n(13266),w=n(15771),S=n(94604);function C(){return(0,s.jsx)(l.az,{children:Array.from({length:3}).map((e,t)=>(0,s.jsx)(l.az,{h:"5xl"},t))})}function _(e){let{teams:t,selectedStat:n,showFullListWithIndexes:a,sport:i,children:o}=e,d=a?t:t.slice(0,3);return(null==t?void 0:t.length)&&n?(0,s.jsxs)(l.az,{pb:"sm",children:[d.map((e,t)=>(0,s.jsx)(b.gT,{sport:i,team:e.team,children:(0,s.jsxs)(l.so,{h:"5xl",align:"center",gap:"sm",px:"lg",_hover:{bg:"surface.s2"},cursor:"pointer",children:[a&&(0,s.jsx)(r.EY,{textStyle:"body.small",w:"lg",textAlign:"center",display:"block",children:t+1}),(0,s.jsxs)(l.so,{grow:1,align:"center",children:[(0,s.jsx)(T.p,{id:e.team.id,size:40}),(0,s.jsx)(r.EY,{ml:"lg",display:"block",children:(0,s.jsx)(S.Rm,{team:e.team})})]}),(0,s.jsx)(l.so,{minW:"6xl",justify:"flex-end",children:(0,s.jsx)(r.EY,{children:(0,s.jsx)(w.A,{stat:e.statistics,selectedStat:n,sport:i})})})]})},e.team.id)),o]}):(0,s.jsx)(C,{})}var k=n(45860),I=n(25459),z=n(79977),M=n(62666),A=n(6354);let P=e=>{let{options:t,sport:n}=e,a=(0,f.Ay)();return(0,s.jsx)(o.PI,{top:a,bg:"surface.s1",zIndex:o.Py.Sticky-1,children:e=>(0,s.jsx)(l.az,{borderBottom:e?void 0:"1px solid {colors.neutrals.nLv4}",elevation:e?"2":void 0,children:(0,s.jsx)(h.F,{items:t,sport:n})})})};function R(e){let{division:t,setDivision:n,divisions:u}=e,{uniqueTournamentId:c,uniqueTournamentName:m}=(0,d.useContext)(A.O);return(0,s.jsx)(o.ms,{items:[void 0,...u],renderItem:e=>(0,s.jsxs)(l.so,{align:"center",gap:"sm",children:[(0,s.jsx)(a.e,{id:c,size:24}),(0,s.jsx)(r.EY,{lineHeight:1,children:e?i.Wb[e]:null!=m?m:"-"})]}),selectedItem:t,onSelectedItemChange:e=>{var t;n(null!=(t=e.selectedItem)?t:void 0)}})}let Y=e=>{let{uniqueTournamentId:t,seasonId:n}=e,o=(0,u.A)(),h=(0,d.useContext)(x.Ws),[f,T]=(0,d.useState)(!1),[b,w]=(0,d.useState)(""),[S,C]=(0,d.useState)([]),{division:A,setDivision:Y,divisions:q}=function(e,t){let[n,s]=(0,d.useState)(),{data:a,isLoading:r,error:l}=(0,k.Ay)(e&&t?i.V3t.divisions(e,t):null);if(r||l||!a)return{division:n,setDivision:s,divisions:[]};let o=function(e){let t=[],n=[];for(let{conference:s,divisions:a}of e.divisions)t.push(s),n.push(...a);return[...t,...n]}(a);return 35115===t&&(o=["central-division"]),{division:n,setDivision:s,divisions:o}}(t,n),H=(0,I.A)({uniqueTournamentId:t,seasonId:n,division:A}),E=h===i.QCR.Tennis,F=h?(0,g.f)(h):null,{topTeams:N,stats:D,types:O,activeType:L,setActiveType:W}=H,Q=null==D?void 0:D.map(e=>({value:e,label:E?o.formatMessage({id:(0,y.O)(i.QCR.Tennis,e)}):(0,j.b)(o,e,null==F?void 0:F.includes(e))})),U=(e,t)=>{T(!0),w(e),C(t)};return(0,s.jsxs)(s.Fragment,{children:[!!q.length&&(0,s.jsx)(l.so,{hideFrom:"md",bg:"surface.s1",p:"sm",elevation:"2",borderBottom:"1px solid {colors.neutrals.nLv4}",children:(0,s.jsx)(R,{division:A,setDivision:Y,divisions:q})}),!!O&&O.length>1&&!!L&&(0,s.jsx)(l.az,{hideFrom:"md",bg:"surface.s1",p:"sm",elevation:"2",borderBottom:"1px solid {colors.neutrals.nLv4}",children:(0,s.jsx)(M.A,{selectedType:L,setSelectedType:W,types:O})}),(0,s.jsx)(P,{options:Q,sport:h}),(0,s.jsx)(m.BU,{children:!!(null==Q?void 0:Q.length)&&Q.map(e=>{var t,n,i;let o=N&&e&&N[e.value]||[],d=(0,g.g)(h);return((null==d?void 0:d.includes(e.value))||!d)&&(0,s.jsx)(m.Zp,{children:(0,s.jsxs)(l.az,{id:null==(t=e.value)?void 0:t.toLowerCase(),children:[(0,s.jsxs)(l.so,{align:"center",justify:"space-between",p:"lg",pr:"xs",children:[(0,s.jsxs)(l.so,{align:"center",children:[(0,s.jsx)(r.EY,{textStyle:"display.small",children:(0,s.jsx)(z.A,{id:e.value})}),"avgRating"===e.value&&(0,s.jsx)(v.D,{type:v.D.type.AverageRatingTeam,rating:null==o||null==(i=o[0])||null==(n=i.statistics)?void 0:n.avgRating,renderImage:e=>{var t;return(0,s.jsx)(a.p,{id:null==o||null==(t=o[0])?void 0:t.team.id,...e})}})]}),(0,s.jsx)(r.$n,{size:"tertiary",variant:"clear",onClick:()=>U(e.value,o),children:(0,s.jsx)(r.EY,{textStyle:"display.small",color:"primary.default",children:(0,s.jsx)(c.A,{id:"see_all"})})})]}),(0,s.jsx)(_,{teams:o,selectedStat:e.value,sport:h,children:"avgRating"===e.value&&(0,s.jsx)(p.$,{mx:"sm",messageId:"rating_top_teams_general"})})]})},e.value)})}),(0,s.jsxs)(r.Xn,{isOpen:f,onClose:()=>{T(!1)},title:(0,s.jsx)(z.A,{id:b}),size:"contentFit",children:["avgRating"===b&&(0,s.jsx)(p.$,{mx:"sm",mb:"sm",messageId:"rating_top_teams_specific"}),(0,s.jsx)(_,{teams:S,selectedStat:b,showFullListWithIndexes:!0,sport:h})]})]})}},48127:(e,t,n)=>{"use strict";n.d(t,{s:()=>d});var s=n(6029),a=n(99064),i=n(13731),r=n.n(i),l=n(59018),o=n.n(l);function d(e){let{onSeasonChange:t,seasons:n,seasonId:i,alignRight:l}=e,d=r()(n,"year"),u=o()(n.map(e=>e.year)),c=n.find(e=>e.id===i)||n[0],m=c&&d[c.year],x=(null==m?void 0:m.length)>1;return(0,s.jsxs)(a.so,{wrap:"wrap",flex:["1 1 100%",void 0],mt:[0,"sm","xs"],zIndex:a.Py.Dropdown,children:[(0,s.jsx)(a.ms,{mr:"sm",items:u,selectedItem:(null==c?void 0:c.year)||u[0],onSelectedItemChange:e=>{let{selectedItem:n}=e;if(n&&d[n]){let e=d[n];e.length&&t(e[0].id)}},alignRight:l}),x&&(0,s.jsx)(a.ms,{items:m,selectedItem:c,onSelectedItemChange:e=>{let{selectedItem:n}=e;n&&t(n.id)},renderItem:(e,t)=>{if(e){let n=(null==e?void 0:e.name)||"";return(0,s.jsx)(a.EY,{font:"body.small",color:"inherit",maxW:t?96:void 0,block:!0,ellipsis:!0,children:n.replace(c.year,"")})}return""},alignRight:!0,mt:[0,"sm",0]},c.year)]})}},49679:(e,t,n)=>{"use strict";n.d(t,{a:()=>m});var s=n(6029),a=n(32523),i=n(76356),r=n(33144),l=n(21377),o=n(28349),d=n(13266),u=n(94604);function c(e){return(0,s.jsx)(d.gT,{team:e.team,sport:l.QCR.Football,children:(0,s.jsxs)(i.so,{align:"center",px:"sm",py:"sm",_hover:{bg:"surface.s2"},children:[(0,s.jsx)(o.EY,{minW:"xl",textAlign:"center",textStyle:"display.small",children:e.rank}),(0,s.jsx)(r.p,{ml:"lg",mr:"sm",id:e.team.id,national:!0,size:32}),(0,s.jsx)(i.az,{flexGrow:"1",flexShrink:"1",children:(0,s.jsx)(o.EY,{textStyle:"table.medium",children:(0,s.jsx)(u.Rm,{team:e.team})})}),(0,s.jsx)(i.az,{children:(0,s.jsx)(o.EY,{textStyle:"table.medium",children:e.points})})]})})}let m=e=>{let{rankings:t}=e;return(0,s.jsx)(i.az,{minH:"[192px]",children:t?t.map(e=>(0,s.jsx)(c,{...e},e.rank)):(0,s.jsx)(a.E,{uniqueKey:"power-ranking-list-cl",pt:"xs",rows:4,rowHeight:44,rowGap:4,animate:!0})})}},52827:(e,t,n)=>{"use strict";n.d(t,{i:()=>r});var s=n(1815),a=n(61836),i=n(95868);function r(e,t,n){let r=(0,i.HK)(e,n);return(0,s.e)(()=>t?(0,a.LJ)({id:r.eventId||r.tournamentId,location:r.location}):(0,a.WG)({id:r.eventId||r.tournamentId,location:r.location,provider:n}))}},55803:(e,t,n)=>{"use strict";n.d(t,{E:()=>s});let s=(0,n(76356).I4)("div",{base:{bg:"surface.s1",border:"1px solid surface.s2",br:"lg",p:"lg",elevation:"2","& a":{color:"primary.default"},"& p":{margin:"0",paddingTop:"sm",paddingBottom:"md"},"& ul":{margin:"0",paddingBottom:"md",listStyleType:"none","& > li":{display:"flex","&:before":{content:"- ",mr:"sm"},"& + li":{marginTop:"sm"}}}}})},57869:(e,t,n)=>{"use strict";n.d(t,{f:()=>i,g:()=>a});var s=n(21377);function a(e){return e===s.QCR.IceHockey?["powerPlayPercentage","penaltyKillPercentage","goals","goalsAgainst","shots","shotsAgainst","hits","blocks","faceOffPercentage","penaltyMinutes"]:null}function i(e){return e===s.QCR.IceHockey?["goals","goalsAgainst","shots","shotsAgainst","hits","blocks","penaltyMinutes"]:null}},70115:(e,t,n)=>{"use strict";n.d(t,{A:()=>d});var s=n(6029),a=n(99064),i=n(71024),r=n.n(i),l=n(58047);let o=r()(()=>Promise.all([n.e(4824),n.e(28718)]).then(n.bind(n,63848)),{loadableGenerated:{webpack:()=>[63848]},ssr:!1});function d(e){let{uniqueTournament:t,seasonId:n,sport:i}=e;return(0,s.jsx)(a.tU.Panel,{tabKey:l.x.Knockout,children:(0,s.jsx)(o,{sport:i,uniqueTournamentId:t.id,uniqueTournamentSlug:t.slug,categorySlug:t.category.slug,seasonId:n})})}},73404:(e,t,n)=>{"use strict";n.d(t,{A:()=>m,b:()=>c});var s=n(6029),a=n(76356),i=n(99064),r=n(55729),l=n(90248),o=n(50677),d=n(27892),u=n(57869);function c(e,t,n,s,a){let i=a?(0,d.O)(o,t,s):t,r=e.formatMessage({id:"".concat(i)});if(n){let t=e.formatMessage({id:"per_match"}).toLocaleLowerCase();r=r.concat(" ").concat(t)}return r}function m(e){let{items:t,sport:n}=e,[o,d]=(0,r.useState)(0),c=n?(0,u.g)(n):null,m=t.filter(e=>!c||c.includes(e.value)).sort((e,t)=>e.label.localeCompare(t.label));(0,r.useEffect)(()=>{window.scrollTo({top:o,behavior:"smooth"})},[o]);let x=e=>{var t;let n=document.getElementById(null==(t=e.value)?void 0:t.toLowerCase());if(n){let e=document.body.getBoundingClientRect().top,t=n.getBoundingClientRect().top-e-105;o>t&&(t-=96),d(t)}};return(0,s.jsx)(a.az,{p:"sm",children:(0,s.jsx)(i.ms,{items:m,renderItem:(e,t)=>t?(0,s.jsx)(l.A,{id:"quick_find"}):(null==e?void 0:e.label)||null,onSelectedItemChange:e=>{e.selectedItem&&x(e.selectedItem)},forceMenuBelow:!0})})}},74761:(e,t,n)=>{"use strict";n.d(t,{$:()=>u});var s=n(6029),a=n(28349),i=n(62042),r=n(76356),l=n(90248),o=n(83260),d=n(54409);function u(e){let{messageId:t,children:n,onClick:u,...c}=e,[m,x,p]=(0,o.A)(t,!1);return!p||m?null:(0,s.jsxs)(r.so,{align:"center",bg:"surface.s2",br:"sm",py:"sm",pl:"lg",className:(0,i.AH)(c),children:[(0,s.jsx)(r.az,{children:(0,s.jsx)(d.G_L,{fill:"onSurface.nLv3"})}),(0,s.jsxs)(a.EY,{w:"100%",mx:"lg",my:"0",textStyle:"body.small",children:[(0,s.jsx)(l.A,{id:t,values:{strong:function(){for(var e=arguments.length,t=Array(e),n=0;n{null==u||u(),x(!0)},children:(0,s.jsx)(d.zQC,{icon:"close",width:"16",height:"16",fill:"onSurface.nLv1"})})]})}},75414:(e,t,n)=>{"use strict";n.d(t,{A:()=>s});let s=function(e){switch(!0){case e<1e3:return"".concat(e);case e<1e4&&e/1e3%1>=.1:let t="".concat((e/1e3).toPrecision(2));return t.endsWith(".0")&&(t=t.substring(0,t.length-2)),"".concat(t,"k");case e<1e6:let n=Math.round(e/1e3);if(1e3===n)return"1M";return"".concat(n,"k");case e<1e7:let s=(e/1e5).toFixed();return s=s.endsWith("0")?s.substring(0,s.length-1):"".concat(s[0],".").concat(s[1]),"".concat(s,"M");case e<1e8:return"".concat(Math.round(e/1e6),"M");case e<1e9:let a=Math.round(e/1e6);if(1e3===a)return"1B";return"".concat(a,"M");default:return"".concat(e)}}},77015:(e,t,n)=>{"use strict";n.d(t,{t:()=>a.t,w:()=>s.w});var s=n(53192),a=n(91407)},78144:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>g});var s=n(6029),a=n(28349),i=n(99064),r=n(55729),l=n(90248),o=n(48683),d=n(23727),u=n(75751),c=n(47530),m=n(43783),x=n(49679),p=n(42021),h=n(32312);function g(e){let{isMobile:t}=(0,a.$c)(),[n,g]=(0,r.useState)(t),[j,v]=(0,r.useState)(),{rankings:y,rounds:f}=(0,m.Q)(e.uniqueTournamentId,e.seasonId,j);if((0,r.useEffect)(()=>f&&v(f[0].id),[f]),!(null==f?void 0:f.length))return null;let T=!t&&!!y&&y.length>5;return(0,s.jsx)(u.t,{tag:"PowerRankings",children:(0,s.jsxs)(o.Zp,{children:[(0,s.jsx)(o.Zp.Header,{title:(0,s.jsx)(l.A,{id:"sofascore_power_rankings"}),actionComponent:(0,s.jsx)(p.h,{})}),f&&j&&(0,s.jsx)(i.az,{mb:"sm",p:"sm",children:(0,s.jsx)(i.ms,{items:f,initialSelectedItem:f[0],onSelectedItemChange:e=>{let{selectedItem:t}=e;t&&v(t.id)},renderItem:e=>(0,s.jsx)(c.DT,{round:null==e?void 0:e.round})})}),(0,s.jsx)(h.i,{}),(0,s.jsx)(x.a,{rankings:null==y?void 0:y.slice(0,n?y.length:5)}),(0,s.jsx)(o.Zp.Footer,{ctaParams:T?{messageId:n?"show_less":"show_more",onClick:()=>g(e=>!e),icon:n?d.X.Up:d.X.Down}:void 0})]})})}},79528:(e,t,n)=>{"use strict";n.d(t,{b:()=>i});var s=n(494),a=n(151);let i=(e,t)=>{var n,i;let r=(0,s.d4)(a.g);if(e&&(null==r||null==(i=r.uniqueTournaments)||null==(n=i[e])?void 0:n[t]))return null==r?void 0:r.uniqueTournaments[e]}},79977:(e,t,n)=>{"use strict";n.d(t,{A:()=>c});var s=n(6029),a=n(28349),i=n(55729),r=n(90248),l=n(62859),o=n(57869),d=n(27892);let u=JSON.parse('{"basketball":{"fastbreakPoints":"basketball_fast_break_points"},"tennis":{"firstServePercentage":"tennis_first_serve","firstServePointsWonPercentage":"tennis_first_serve_points_won","secondServePercentage":"tennis_second_serve","secondServePointsWonPercentage":"tennis_second_serve_points","avgAces":"tennis_average_aces_per_match","avgDoubleFaults":"tennis_average_double_faults_per_match","breakPointsSavedPercentage":"break_points_saved","breakPointsSavedConvertedPercentage":"break_points_converted","tiebreakWinPercentage":"tennis_tiebreaks_won"},"avgRating":"average_sofascore_rating","goalsScored":"football_goals_scored","goalsConceded":"football_goals_conceded","bigChances":"football_big_chances","bigChancesMissed":"football_big_chances_missed","hitWoodwork":"football_hit_woodwork","yellowCards":"yellow_cards","redCards":"red_cards","averageBallPossession":"football_ball_possession","accuratePasses":"football_accurate_passes","shots":"football_shots","shotsOnTarget":"football_shots_on_goal","tackles":"football_tackles","interceptions":"football_interceptions","clearances":"football_clearances","fouls":"football_fouls","penaltyGoals":"football_penalty_goals","assists":"football_assists","cleanSheets":"football_clean_sheets","kilometersCovered":"football_running_distance_covered_per_match","numberOfSprints":"football_running_number_of_sprints_per_match"}');function c(e){let{id:t}=e,n=(0,i.useContext)(l.Ws),c=n?(0,o.f)(n):null;return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(r.A,{id:(0,d.O)(u,t,n)}),(null==c?void 0:c.includes(t))&&(0,s.jsxs)(a.EY,{textStyle:"[inherit]",textTransform:"lowercase",children:[" ",(0,s.jsx)(r.A,{id:"per_match"})]})]})}},85625:(e,t,n)=>{"use strict";n.d(t,{D:()=>s});var s=function(e){return e.MainScreen="main_screen",e.EventPage="event_page",e.TournamentPage="league_screen",e.DetailsTab="details",e.MediaTab="media",e}({})},88165:e=>{e.exports=function(e,t,n){var s=-1,a=e.length;t<0&&(t=-t>a?0:a+t),(n=n>a?a:n)<0&&(n+=a),a=t>n?0:n-t>>>0,t>>>=0;for(var i=Array(a);++s{var s=n(88165),a=n(48877),i=n(98888),r=Math.ceil,l=Math.max;e.exports=function(e,t,n){t=(n?a(e,t,n):void 0===t)?1:l(i(t),0);var o=null==e?0:e.length;if(!o||t<1)return[];for(var d=0,u=0,c=Array(r(o/t));d{"use strict";n.d(t,{TW:()=>l,HK:()=>o,hT:()=>u,R5:()=>d});var s=n(61836),a=n(85625);let i="___sofa-wsc___",r=e=>{let t=new RegExp("".concat(i,"(.*?)").concat(i)),n=e.match(t);return n?n[1]:""},l=e=>{let{type:t,location:n,tournamentId:s,roundId:a,eventId:r,screen:l,provider:o}=e;return"wsc"===o?"".concat(i).concat(l,"--").concat(t,"--").concat(n,"--").concat(s,"--").concat(a,"--").concat(r).concat(i):"".concat(l,"--").concat(t,"--").concat(n,"--").concat(s,"--").concat(a,"--").concat(r)},o=(e,t)=>{let[n,s,a,i,l,o]=("wsc"===t?r(e||""):e).split("--");return{screen:n,type:s,location:a,tournamentId:Number(i),roundId:"null"===l||"undefined"===l?null:Number(l),eventId:"null"===o||"undefined"===o?null:Number(o)}},d=e=>{let{screen:t,type:n,location:s,tournamentId:i,roundId:r,eventId:l}=o(e,"wsc"),d="Invalid WSC widget containerId: ".concat(e);if(e&&["single","multiple"].includes(n)&&["mobile","desktop"].includes(t)&&Object.values(a.D).includes(s)){if(isNaN(Number(i)));else if(r&&isNaN(Number(r)));else if(!(l&&isNaN(Number(l))))return!0}throw Error(d)},u=e=>{var t,n;let a=null==(t=e.detail)?void 0:t.eventData,i=(null==a?void 0:a.widget_id)||(null==a?void 0:a.origin_widget_id),r=null==(n=e.detail)?void 0:n.eventType;if(r&&i){let{eventId:e,tournamentId:t,location:n}=o(i,"wsc");switch(r){case"widget_click":(0,s.kA)({id:e||t,location:n,provider:"wsc"});break;case"story_exit":(0,s.G9)({id:e||t,location:n,timeOnScreen:a.content_duration_viewed})}}}},97918:(e,t,n)=>{"use strict";n.d(t,{F:()=>s.A});var s=n(73404)},98054:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>n5});var s=n(6029),a=n(21377),i=n(95669),r=n.n(i),l=n(19643),o=n(50417),d=n(73088),u=n(52951),c=n(947),m=n(58771),x=n(26331),p=n(97047);function h(e){let{uniqueTournament:t}=e,n=(0,c.A)(),i=(0,x.A)(),l=t.category,o=l.sport,u={"@context":"https://schema.org","@type":"BreadcrumbList",itemListElement:[{"@type":"ListItem",position:1,name:n.formatMessage({id:"sport.".concat(o.slug)}),item:"".concat(a.VTF).concat(d.z.getTranslatedRoute(i,"eventList",{sport:o.slug}).route)},{"@type":"ListItem",position:2,name:n.formatMessage({id:l.slug}),item:"".concat(a.VTF).concat(d.z.getTranslatedRoute(i,"eventList.category",{sport:o.slug,category:l.slug}).route)},{"@type":"ListItem",position:3,name:t.name}]},h={"@context":"https://schema.org","@type":"SportsOrganization",name:t.name,sport:o.name,logo:a.V3t.image(t.id),url:"https://www.sofascore.com/tournament/".concat(o.slug,"/").concat(l.slug,"/").concat(t.slug,"/").concat(t.id),sameAs:(0,p._z)(t.id,i)};return(0,s.jsxs)(r(),{children:[(0,s.jsx)("script",{...(0,m.QQ)(u)}),",",(0,s.jsx)("script",{...(0,m.QQ)(h)}),","]})}var g=n(18741),j=n(13266);function v(){return(0,s.jsx)(g.fz,{id:"about.table.tennis.1",values:{ttlink:function(){for(var e=arguments.length,t=Array(e),n=0;n{switch(e){case 14749:case 14751:case 14747:case 14750:case 14748:return"ITTF Challenge Plus Oman Open";case 14691:case 14693:case 14689:case 14692:case 14690:return"ITTF Challenge Plus Portugal Open";case 14754:case 14752:case 14755:case 14753:return"ITTF Challenge Polish Open";case 14668:case 14666:case 14669:case 14664:case 14667:case 14665:return"ITTF Challenge Spanish Open";default:return null}},T=e=>e.includes("Women")?a.YT8.Female:e.includes("Mixed")?a.YT8.Mixed:e.includes("Boys")?"B":e.includes("Girls")?"G":a.YT8.Male,b=e=>e.includes("Doubles")?"D":"S";function w(e){let t=f(e.uniqueTournament.id);if(!t)return null;let n=T(e.uniqueTournament.name),a=b(e.uniqueTournament.name);return(0,s.jsxs)(y.J,{children:[(0,s.jsx)(g.fz,{id:"about.tt.ittf.challenge.1",values:{gender:n,type:a,tournamentName:t}}),(0,s.jsx)(v,{})]})}var S=n(76356),C=n(55729),_=n(33752),k=n(62859),I=n(19451),z=n(39676),M=n(29129),A=n(42678),P=n(98449),R=n(53486),Y=n(8973),q=n(21295),H=n(58047),E=n(87526),F=n(61836),N=n(27289),D=n(86679),O=n(30479),L=n(90248),W=n(69212);let Q={"davis-cup":"headerTitle.davis",challenger:"headerTitle.challenger",atp:"headerTitle.tennis.v1",wta:"headerTitle.tennis.v1","itf-men":"headerTitle.tennis.v1","itf-women":"headerTitle.tennis.v1"},U={1858:{id:"headerTitle.tt.bundesliga"},2122:{id:"headerTitle.tt.cl",values:{gender:a.YT8.Male}},9500:{id:"headerTitle.tt.cl",values:{gender:a.YT8.Female}},11457:{id:"headerTitle.tt.ec",values:{gender:a.YT8.Male,type:"D"}},11458:{id:"headerTitle.tt.ec",values:{gender:a.YT8.Female,type:"D"}},11459:{id:"headerTitle.tt.ec",values:{gender:a.YT8.Mixed,type:"D"}},11455:{id:"headerTitle.tt.ec",values:{gender:a.YT8.Male,type:"S"}},11456:{id:"headerTitle.tt.ec",values:{gender:a.YT8.Female,type:"S"}},9550:{id:"headerTitle.tt.ettu",values:{gender:a.YT8.Male}},9534:{id:"headerTitle.tt.ettu",values:{gender:a.YT8.Female}},564:{id:"headerTitle.tt.oly.wcships",values:{comp:"O",gender:a.YT8.Male,type:"S"}},565:{id:"headerTitle.tt.oly.wcships",values:{comp:"O",gender:a.YT8.Female,type:"S"}},1121:{id:"headerTitle.tt.oly.wcships",values:{comp:"O",gender:a.YT8.Male,type:"T"}},1123:{id:"headerTitle.tt.oly.wcships",values:{comp:"O",gender:a.YT8.Female,type:"T"}},11579:{id:"headerTitle.tt.oly.wcships",values:{comp:"WC",gender:a.YT8.Male,type:"S"}},11586:{id:"headerTitle.tt.oly.wcships",values:{comp:"WC",gender:a.YT8.Female,type:"S"}},11587:{id:"headerTitle.tt.oly.wcships",values:{comp:"WC",gender:a.YT8.Mixed,type:"D"}},11580:{id:"headerTitle.tt.oly.wcships",values:{comp:"WC",gender:a.YT8.Male,type:"D"}},11585:{id:"headerTitle.tt.oly.wcships",values:{comp:"WC",gender:a.YT8.Female,type:"D"}},1966:{id:"headerTitle.tt.wc",values:{gender:a.YT8.Male}},1964:{id:"headerTitle.tt.wc",values:{gender:a.YT8.Female}},11604:{id:"headerTitle.tt.junior.wc",values:{gender:a.YT8.Male,type:"S"}},10698:{id:"headerTitle.tt.junior.wc",values:{gender:a.YT8.Female,type:"S"}},10697:{id:"headerTitle.tt.junior.wc",values:{gender:a.YT8.Mixed,type:"D"}},10699:{id:"headerTitle.tt.junior.wc",values:{gender:a.YT8.Male,type:"D"}},10700:{id:"headerTitle.tt.junior.wc",values:{gender:a.YT8.Female,type:"D"}},15004:{id:"headerTitle.tt.setka.tt.uwc",values:{comp:"S",gender:a.YT8.Male}},15007:{id:"headerTitle.tt.setka.tt.uwc",values:{comp:"S",gender:a.YT8.Female}},15005:{id:"headerTitle.tt.setka.tt.uwc",values:{comp:"TT",gender:a.YT8.Male}},15009:{id:"headerTitle.tt.setka.tt.uwc",values:{comp:"TT",gender:a.YT8.Female}},15001:{id:"headerTitle.tt.setka.tt.uwc",values:{comp:"UWC",gender:a.YT8.Male}},15068:{id:"headerTitle.tt.setka.tt.uwc",values:{comp:"UWC",gender:a.YT8.Female}}};function V(e){let{uniqueTournament:t,year:n}=e,{meta:i,seoContent:r}=(0,C.useContext)(u.xV),l=(0,c.A)(),o=(0,W.N)(t);if(null==r?void 0:r.heading)return(0,s.jsx)(s.Fragment,{children:r.heading});if(i&&i.h1)return(0,s.jsx)(s.Fragment,{children:i.h1});if(t.id===a.G6l.Euro&&n)return(0,s.jsx)(L.A,{id:"headerTitle.ut.euro",values:{year:n}});if(t.id===a.G6l.WorldCup)return(0,s.jsx)(L.A,{id:"headerTitle.ut.worldCup"});let d=t.category.sport.slug;if(d===a.QCR.Tennis){let e=t.category.slug,n={categoryName:"itf-men"===e||"itf-women"===e?"ITF":t.category.name,tournamentName:t.name};if(0===n.tournamentName.indexOf(n.categoryName)&&(n.categoryName=""),2361===t.id||2600===t.id)return(0,s.jsx)(s.Fragment,{children:l.formatMessage({id:"headerTitle.tennis.v2"},n).trim()});if(Q[e])return(0,s.jsx)(s.Fragment,{children:l.formatMessage({id:Q[e]},n).trim()})}return d===a.QCR.TableTennis&&U[t.id]?(0,s.jsx)(L.A,{id:U[t.id].id,values:U[t.id].values}):(0,s.jsx)(L.A,{id:"headerTitle.standings",values:{item:o}})}var G=n(6354);let K=(e,t)=>{var n,s,a,i,r,l,o;return!!(null==e?void 0:e.winner)||!!(null==e||null==(n=e.newcomersUpperDivision)?void 0:n.length)||!!(null==e||null==(s=e.newcomersLowerDivision)?void 0:s.length)||!!(null==e||null==(a=e.newcomersOther)?void 0:a.length)||!!(null==e||null==(i=e.hostCountries)?void 0:i.length)||!!(null==e?void 0:e.hostCity)||!!(null==e?void 0:e.tier)||!!(null==t||null==(r=t.lowerDivisions)?void 0:r.length)||!!(null==t||null==(l=t.upperDivisions)?void 0:l.length)||!!(null==t||null==(o=t.linkedUniqueTournaments)?void 0:o.length)},B=e=>{var t;return!!(null==e||null==(t=e.mostTitlesTeams)?void 0:t.length)||!!(null==e?void 0:e.titleHolder)};var Z=n(78383),X=n.n(Z),J=n(48683),$=n(70010),ee=n(38296),et=n(32523),en=n(71024),es=n.n(en),ea=n(75751),ei=n(60988),er=n(42621),el=n(49249),eo=n(61090),ed=n(28349),eu=n(23727),ec=n(36937),em=n(65078),ex=n(54075),ep=n(93338);function eh(e){let{rating:t,round:n}=e,{formattedRating:a,ratingColorKey:i}=(0,ex.M)(n&&t?Math.round(t):t);return(0,s.jsx)(S.ov,{style:{backgroundColor:ep.S.var("colors.rating".concat(i.replace("scoreRating","")))},h:"xl",w:"xl",br:"md",children:(0,s.jsx)(ed.EY,{textStyle:"table.small",color:"onColor.primary",children:a})})}let eg=e=>{let{ordinal:t,event:n,rating:a}=e,i=(0,em.AR)(n);return(0,s.jsx)(k.y$.Provider,{value:i,children:(0,s.jsx)(j.tj,{event:n,children:(0,s.jsxs)(S.so,{h:"4xl",py:"[6px]",px:"lg",justify:"space-between",_hover:{bg:"surface.s2"},children:[(0,s.jsxs)(S.so,{h:"100%",align:"center",children:[(0,s.jsxs)(ed.Ym,{minW:"xl",textAlign:"center",textStyle:"body.small",display:"block",children:[t,"."]}),(0,s.jsx)(S.cG,{color:"neutrals.nLv4",orientation:"vertical",borderInlineEndStyle:"solid",mx:"sm"}),(0,s.jsx)(ec.g,{})]}),(0,s.jsxs)(S.so,{align:"center",children:[(0,s.jsx)(ec.$,{}),(0,s.jsx)(S.cG,{color:"neutrals.nLv4",orientation:"vertical",borderInlineEndStyle:"solid",ml:"sm",mr:"md"}),(0,s.jsx)(eh,{rating:a})]})]})})})},ej=e=>{let{rankings:t}=e;return(0,s.jsx)(s.Fragment,{children:t.map((e,t)=>(0,s.jsx)(eg,{ordinal:t+1,rating:e.rating,event:e.event},"rated-event-".concat(t)))})};var ev=n(59721),ey=n(54053),ef=n(52695),eT=n(45860);function eb(e){let{data:t,isLoading:n}=(0,eT.Ay)(e?a.bnp.fanRatingRanking(e):null,{dedupingInterval:6e4});return{ranking:(null==t?void 0:t.ranking)||[],isLoading:n}}let ew=e=>{let{uniqueTournament:t,seasonId:n,isOpen:a,setIsOpen:i}=e,{ranking:r}=eb(n);return(0,s.jsx)(ey.A,{isOpen:a,setIsOpen:i,header:(0,s.jsxs)(S.so,{p:"lg",py:{mdDown:"sm"},align:"center",gap:"sm",w:{md:"[320px]"},children:[(0,s.jsx)(ev.e,{id:t.id,name:t.name}),(0,s.jsxs)(S.so,{direction:"column",children:[(0,s.jsx)(ed.EY,{textStyle:"display.large",children:(0,s.jsx)(ef.O,{uniqueTournament:t})}),(0,s.jsx)(ed.EY,{textStyle:"assistive.default",color:"neutrals.nLv3",children:(0,s.jsx)(L.A,{id:"bestRatedFanMatches"})})]})]}),children:(0,s.jsx)(S.az,{w:{md:"[360px]"},maxH:{md:"[512px]"},children:(0,s.jsx)(ej,{rankings:r})})})};function eS(e){let{seasonId:t,uniqueTournament:n}=e,{ranking:a,isLoading:i}=eb(t),[r,l]=(0,C.useState)(!1),{isMobile:o}=(0,ed.$c)(),d=o?3:10;if(!t||!i&&!a.length||i)return null;let u=a.slice(0,d),c=a.length>d;return(0,s.jsxs)(J.Zp,{children:[(0,s.jsx)(J.Zp.Header,{titleId:"bestRatedFanMatches"}),u.length?(0,s.jsx)(ej,{rankings:u}):(0,s.jsx)(et.E,{uniqueKey:"all-rated-games-cl",pt:"xs",rows:d,rowHeight:44,rowGap:4}),(0,s.jsx)(ew,{seasonId:t,uniqueTournament:n,isOpen:r,setIsOpen:l}),(0,s.jsx)(J.Zp.Footer,{ctaParams:c?{messageId:"all_rated_matches",onClick:()=>l(!0),icon:eu.X.Right}:void 0})]})}var eC=n(73463),e_=n(99326),ek=n(10778),eI=n(79368),ez=n(23685),eM=n(79528),eA=n(494),eP=n(45152),eR=n(89489);function eY(e){let{uniqueTournamentId:t}=e,n=(0,eA.wA)(),{data:i,isLoading:r}=(0,eT.Ay)(a.V3t.featuredEvents(t),{onSuccess:e=>n((0,eR.oU)(e.featuredEvents))});return(0,s.jsx)(eP.S,{isLoading:r,events:(null==i?void 0:i.featuredEvents)||[],hideEventTitle:!0})}var eq=n(78259),eH=n(54409),eE=n(22648),eF=n(24159),eN=n(83260);let eD=e=>{let{fill:t="white"}=e;return(0,s.jsx)("svg",{width:"133",height:"160",viewBox:"0 0 133 160",xmlns:"http://www.w3.org/2000/svg",children:(0,s.jsxs)("g",{fill:t,fillRule:"nonzero",children:[(0,s.jsx)("path",{d:"M56.988 114h19v19h-19z"}),(0,s.jsx)("g",{opacity:".8",children:(0,s.jsx)("path",{d:"M38 133h19v19H38zM57 133h19v19H57zM95 133h19v19H95zM38 114h19v19H38zM76 95h19v19H76zM95 95h19v19H95zM57 57h19v19H57zM95 57h19v19H95zM114 57h19v19h-19zM0 0h19v19H0zM57 0h19v19H57z"})}),(0,s.jsx)("g",{opacity:".5",children:(0,s.jsx)("path",{d:"M19 133h19v19H19zM114 133h19v19h-19zM76 114h19v19H76zM0 95h19v19H0zM57 95h19v19H57zM76 76h19v19H76zM95 76h19v19H95zM38 57h19v19H38zM76 57h19v19H76zM38 38h19v19H38zM76 38h19v19H76zM0 19h19v19H0z"})})]})})},eO=e=>{let{fill:t="white"}=e;return(0,s.jsx)("svg",{width:"133",height:"160",viewBox:"0 0 133 160",xmlns:"http://www.w3.org/2000/svg",children:(0,s.jsxs)("g",{fill:t,fillRule:"nonzero",children:[(0,s.jsx)("path",{d:"M76.012 114h-19v19h19z"}),(0,s.jsx)("g",{opacity:".5",children:(0,s.jsx)("path",{d:"M114 133H95v19h19zM19 133H0v19h19zM57 114H38v19h19zM133 95h-19v19h19zM76 95H57v19h19zM57 76H38v19h19zM38 76H19v19h19zM95 57H76v19h19zM57 57H38v19h19zM95 38H76v19h19zM57 38H38v19h19zM133 19h-19v19h19z"})}),(0,s.jsx)("g",{opacity:".8",children:(0,s.jsx)("path",{d:"M95 133H76v19h19zM76 133H57v19h19zM38 133H19v19h19zM95 114H76v19h19zM57 95H38v19h19zM38 95H19v19h19zM76 57H57v19h19zM38 57H19v19h19zM19 57H0v19h19zM133 0h-19v19h19zM76 0H57v19h19z"})})]})})},eL=e=>{let{isOpen:t,setIsOpen:n}=e;return(0,s.jsx)(ey.A,{isOpen:t,setIsOpen:n,header:"player_of_the_season_title",children:(0,s.jsxs)(S.so,{direction:"column",p:"lg",pt:"0",gap:"lg",maxW:{md:"[320px]"},children:[(0,s.jsx)(S.so,{width:"100%",justify:"center",bgColor:"surface.s0",br:"sm",p:"lg",children:(0,s.jsx)("img",{width:264,height:183,src:"/static/images/player-of-the-season-award.png",alt:"Sofascore player of the season award"})}),(0,s.jsxs)(S.I4.a,{href:"https://corporate.sofascore.com/about/rating",rel:"noreferrer",textStyle:"display.small",color:"primary.default",target:"_blank",display:"flex",gap:"xs",cursor:"pointer",alignItems:"center",hideBelow:"md",children:[(0,s.jsx)(L.A,{id:"rating_learn_more_button"}),(0,s.jsx)(eH.CCT,{fill:"primary.default",width:16,height:16})]}),(0,s.jsx)(ed.EY,{display:"block",color:"neutrals.nLv1",textStyle:"body.mediumParagraph",children:(0,s.jsx)(L.A,{id:"rating_player_of_the_season_body_1"})}),(0,s.jsx)(ed.EY,{display:"block",color:"neutrals.nLv1",textStyle:"body.mediumParagraph",children:(0,s.jsx)(L.A,{id:"rating_player_of_the_season_body_2"})}),(0,s.jsx)(ed.$n,{onClick:()=>{window.open("https://corporate.sofascore.com/about/rating","_blank"),n(!1)},mt:"lg",display:{md:"none"},children:(0,s.jsx)(L.A,{id:"learn_more_button"})})]})})},eW=e=>{var t,n;let{uniqueTournamentId:i,seasonId:r,showLoader:l}=e,[o,d]=(0,C.useState)(!1),{data:u,isLoading:c,error:m}=(0,eT.Ay)(r?a.V3t.playerOfTheSeason(i,r):null),[x,p]=(0,eN.A)("playerOfTheSeason",{uniqueTournamentId:i,seasonId:r,playerId:null==u?void 0:u.player.id});if((0,C.useEffect)(()=>{r&&!m&&l&&!c&&(0,F.ke)({action:"impression",location:"league_details",type:"player_of_the_season"})},[i,r,m,l,c]),(0,C.useEffect)(()=>{p({uniqueTournamentId:i,seasonId:r,playerId:null==u?void 0:u.player.id})},[i,r,null==u?void 0:u.player.id]),m||!l&&!u)return null;let h=a.V3t.image(i),g=u&&a.qvj.image(u.player.id);return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)(S.az,{position:"relative",br:["lg","xl"],elevation:"2",h:"[152px]",overflow:"hidden",children:[(0,s.jsxs)(S.az,{position:"absolute",width:"100%",height:"100%",overflow:"hidden",br:"lg",children:[(0,s.jsx)(S.az,{position:"absolute",width:"100%",height:"100%",overflow:"hidden",br:"lg",transform:"scale(1.5)",style:{filter:"blur(50px)",backgroundImage:"url(".concat(h,")"),backgroundSize:"100% 100%",backgroundPosition:"center center"}}),(0,s.jsxs)(S.so,{position:"absolute",top:"0",left:"0",w:"100%",justify:"space-between",br:"lg",elevation:"3",opacity:"0.1",children:[(0,s.jsx)(eD,{}),(0,s.jsx)(eO,{})]})]}),(0,s.jsxs)(S.so,{direction:"column",justify:"space-between",w:"100%",h:"100%",p:"lg",pt:"md",bg:"overlay.darken3",children:[(0,s.jsxs)(S.so,{w:"100%",justify:"space-between",zIndex:"button",children:[(0,s.jsxs)(S.so,{align:"center",gap:"lg",children:[(0,s.jsx)(eH.gWL,{w:24,h:24,fill:"white"}),(0,s.jsx)(ed.EY,{textStyle:"display.medium",color:"onColor.primary",children:(0,s.jsx)(L.A,{id:"player_of_the_season",values:{gender:null!=(t=null==u?void 0:u.team.gender)?t:a.YT8.Male}})})]}),(0,s.jsx)(eH.G_L,{cursor:"pointer",fill:"onColor.primary",onClick:()=>d(!0)})]}),c?(0,s.jsx)(eE.a,{}):(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)(S.so,{w:"100%",justify:"space-between",align:"center",zIndex:"button",children:[(0,s.jsx)(j.uc,{player:null==u?void 0:u.player,sportSlug:a.QCR.Football,hash:"tab:statistics",onClick:()=>{(0,F.ke)({action:"click",location:"league_details",type:"player_of_the_season"})},children:(0,s.jsxs)(S.so,{align:"center",children:[(0,s.jsx)(eq.tg,{src:g,size:48}),(0,s.jsxs)(S.az,{ml:"sm",children:[(0,s.jsx)(ed.EY,{display:"block",textStyle:"display.medium",color:"onColor.primary",children:(null==u?void 0:u.player)&&(0,s.jsx)(eF.c,{entity:null==u?void 0:u.player})}),(0,s.jsxs)(S.so,{mt:"xs",align:"center",children:[(0,s.jsx)(eq.pY,{id:null==u?void 0:u.team.id,size:16}),(0,s.jsx)(ed.EY,{display:"block",textStyle:"assistive.default",color:"onColor.primary",ml:"xs",mt:"2xs",children:(null==u?void 0:u.team)&&(0,s.jsx)(eF.c,{entity:null==u?void 0:u.team})})]})]})]})}),(0,s.jsx)(eq.GW,{rating:null==u?void 0:u.statistics.rating,format:"sideBox",isOnColor:!0})]}),(0,s.jsx)(S.so,{w:"100%",justify:"center",align:"center",zIndex:"button",children:(0,s.jsx)(j.uc,{player:null==u?void 0:u.player,sportSlug:a.QCR.Football,hash:"tab:statistics",onClick:()=>{(0,F.ke)({action:"click",location:"league_details",type:"player_of_the_season"})},children:(0,s.jsxs)(S.so,{align:"center",cursor:"pointer",children:[(0,s.jsx)(ed.Ym,{ml:"sm",textStyle:"display.small",color:"onColor.primary",children:(0,s.jsx)(L.A,{id:"see_player_statistics",values:{gender:null!=(n=null==u?void 0:u.team.gender)?n:a.YT8.Male}})}),(0,s.jsx)(eH.CCT,{fill:"onColor.primary",ml:"xs"})]})})})]})]})]}),(0,s.jsx)(eL,{isOpen:o,setIsOpen:d})]})},eQ=e=>{var t,n,i;let{uniqueTournamentId:r,seasonId:l}=e,[o,d]=(0,C.useState)(!1),u=(0,C.useContext)(k.Ws),{data:c,error:m,isLoading:x}=(0,eT.Ay)(l?a.V3t.playerOfTheSeasonRace(r,l):null);if(m||!c||!(null==(t=c.topPlayers.rating)?void 0:t.length))return null;let p=null==c?void 0:c.topPlayers.rating,h=null!=(i=null==(n=p[0].team)?void 0:n.gender)?i:a.YT8.Male;return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)(J.Zp,{children:[(0,s.jsx)(J.Zp.Header,{title:(0,s.jsxs)(S.so,{w:"100%",justify:"space-between",zIndex:"button",children:[(0,s.jsxs)(S.so,{align:"center",gap:"lg",children:[(0,s.jsx)(eH.gWL,{w:24,h:24,fill:"onSurface.nLv1"}),(0,s.jsx)(ed.EY,{textStyle:"display.medium",children:(0,s.jsx)(L.A,{id:"player_of_the_season_race",values:{gender:h}})})]}),(0,s.jsx)(eH.G_L,{cursor:"pointer",fill:"onSurface.nLv1",onClick:()=>d(!0)})]})}),(0,s.jsx)(S.so,{direction:"column",overflow:"hidden",pb:{base:"lg",mdDown:"0"},children:x?(0,s.jsx)(S.so,{justify:"center",align:"center",w:"100%",children:(0,s.jsx)(eE.a,{})}):null==p?void 0:p.map((e,t)=>(0,s.jsx)(j.uc,{player:e.player,sportSlug:u,hash:"tab:statistics",onClick:()=>{(0,F.ke)({action:"click",location:"league_details",type:"player_of_the_season_race"})},children:(0,s.jsxs)(S.so,{w:"100%",justify:"space-between",align:"center",h:"5xl",px:"lg",cursor:"pointer",_hover:{bg:"surface.s2"},children:[(0,s.jsxs)(S.so,{align:"center",children:[(0,s.jsx)(ed.EY,{display:"block",w:"lg",h:"lg",mr:"xs",children:t+1}),(0,s.jsx)(eq.tg,{id:e.player.id,name:e.player.name,size:40}),(0,s.jsxs)(S.az,{flexGrow:1,ml:"lg",children:[(0,s.jsx)(ed.EY,{display:"block",children:e.player&&(0,s.jsx)(eF.c,{entity:e.player})}),(0,s.jsxs)(S.so,{align:"center",mt:"xs",children:[e.team&&(0,s.jsx)(eq.pY,{id:e.team.id,size:16,name:e.player.name}),(0,s.jsx)(ed.EY,{display:"block",textStyle:"assistive.default",color:"neutrals.nLv3",ml:"xs",children:(null==e?void 0:e.team)&&(0,s.jsx)(eF.c,{entity:null==e?void 0:e.team})})]})]})]}),(0,s.jsx)(eq.GW,{rating:null==e?void 0:e.statistics.rating,format:"sideBox"})]})},t))}),l&&(0,s.jsx)(S.I4.a,{onClick:()=>{window.location.hash="id:".concat(l,",tab:top_players")},hideFrom:"md",children:(0,s.jsx)(J.Zp.Footer,{ctaParams:{messageId:"view_top_players",values:{gender:h},icon:eu.X.Right}})})]}),(0,s.jsx)(eL,{isOpen:o,setIsOpen:d})]})};var eU=n(77015),eV=n(46009),eG=n(75414);let eK=e=>{let{player:t,team:n,popularityRanking:i}=e,r=a.USm.includes(n.sport.slug);return(0,s.jsx)(j.uc,{player:t,sportSlug:n.sport.slug,children:(0,s.jsxs)(S.so,{flexGrow:"1",align:"center",w:"100%",px:"lg",py:"sm",cursor:"pointer",_hover:{bg:"surface.s2"},direction:"row",justify:"space-between",children:[(0,s.jsxs)(S.so,{children:[(0,s.jsx)(S.so,{w:"lg",align:"center",justify:"center",children:(0,s.jsx)(ed.EY,{textStyle:"body.small",children:i})}),(0,s.jsxs)(S.az,{position:"relative",w:"3xl",h:"3xl",mx:"md",children:[(0,s.jsx)(eU.t,{id:t.id,name:t.name,size:40}),t.country&&(0,s.jsx)(S.so,{position:"absolute",bottom:"[0px]",right:"[0px]",children:(0,s.jsx)(eU.w,{alpha2:t.country.alpha2,h:"16px",w:"16px"})})]}),(0,s.jsxs)(S.so,{direction:"column",justify:"center",align:"flex-start",children:[(0,s.jsx)(ed.EY,{lineHeight:"md",children:(0,s.jsx)(eF.c,{entity:t})}),(0,s.jsx)(ed.EY,{display:"block",mt:"xs",textAlign:"end",textStyle:"assistive.default",color:"neutrals.nLv3",textTransform:"capitalize",children:(0,s.jsx)(L.A,{id:"basic.followersWithCount",values:{n:(0,s.jsx)(ed.EY,{textStyle:"assistive.default",color:"primary.default",children:(0,eG.A)(t.userCount)})}})})]})]}),r&&(0,s.jsx)(eV.e,{entity:a.bq7.Players,id:t.id,location:Y.y.PopularPlayers,type:Y.b.Player})]})})};function eB(e){let{popularPlayers:t}=e,[n,a]=(0,C.useState)(!1),i=t.length>5,r=n?t:t.slice(0,5);return(0,s.jsxs)(J.Zp,{children:[(0,s.jsx)(J.Zp.Header,{titleId:"tournament.popularPlayers"}),r.map((e,t)=>(0,s.jsx)(eK,{team:e.team,player:e.player,popularityRanking:t+1},e.player.id)),(0,s.jsx)(J.Zp.Footer,{ctaParams:i?{messageId:n?"show_less":"show_more",onClick:()=>a(e=>!e),icon:n?eu.X.Up:eu.X.Down}:void 0})]})}let eZ=e=>{let{uniqueTournament:t}=e;return(0,s.jsxs)(S.so,{p:"lg",children:[(0,s.jsx)(S.so,{children:(0,s.jsx)(ev.e,{id:t.id,h:"56px",w:"56px"})}),(0,s.jsxs)(S.so,{direction:"column",align:"flex-start",justify:"center",ml:"sm",children:[(0,s.jsx)(ed.H3,{textStyle:"display.large",children:(0,s.jsx)(ef.O,{uniqueTournament:t})}),(0,s.jsx)(ed.EY,{textStyle:"assistive.default",color:"neutrals.nLv3",children:(0,s.jsx)(L.A,{id:"tournament.popularPlayers"})})]})]})};function eX(e){let{popularPlayers:t,uniqueTournament:n}=e,[a,i]=(0,C.useState)(!1),r=null==t?void 0:t.slice(0,3);return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)(J.Zp,{children:[(0,s.jsx)(J.Zp.Header,{titleId:"tournament.popularPlayers"}),r.map((e,t)=>(0,s.jsx)(eK,{team:e.team,player:e.player,popularityRanking:t+1},e.player.id)),(0,s.jsx)(J.Zp.Footer,{ctaParams:{messageId:"basic.seeAllPlayers",onClick:()=>i(e=>!e),icon:eu.X.Right}})]}),(0,s.jsx)(ed.Xn,{isOpen:a,onClose:()=>i(!1),header:(0,s.jsx)(eZ,{uniqueTournament:n}),size:"contentFit",children:(0,s.jsx)(S.so,{h:"100%",w:"100%",direction:"column",children:t.map((e,t)=>(0,s.jsx)(eK,{team:e.team,player:e.player,popularityRanking:t+1},e.player.id))})})]})}function eJ(e){let{uniqueTournament:t,seasonId:n}=e,i=56953===n&&t.id===a.G6l.Euro||57114===n&&t.id===a.G6l.CopaAmerica,{data:r}=(0,eT.Ay)(i?a.V3t.topFollowedPlayers(t.id,n):null);return r?(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(S.az,{hideBelow:"md",maxW:"[440px]",children:(0,s.jsx)(eB,{popularPlayers:null==r?void 0:r.topFollowedPlayers})}),(0,s.jsx)(S.az,{display:{md:"none"},children:(0,s.jsx)(eX,{popularPlayers:null==r?void 0:r.topFollowedPlayers,uniqueTournament:t})})]}):null}var e$=n(33144),e0=n(69559);let e1=e=>{let{team:t,popularityRanking:n}=e,i=(0,e0.o)();return(0,s.jsx)(j.gT,{team:t,sport:i,children:(0,s.jsxs)(S.so,{flexGrow:"1",align:"center",w:"100%",px:"lg",py:"sm",cursor:"pointer",_hover:{bg:"surface.s2"},direction:"row",justify:"space-between",children:[(0,s.jsxs)(S.so,{children:[(0,s.jsx)(S.so,{w:"lg",align:"center",justify:"center",children:(0,s.jsx)(ed.EY,{textStyle:"body.small",color:"neutrals.nLv1",children:n})}),(0,s.jsx)(S.az,{position:"relative",w:"3xl",h:"3xl",mx:"md",children:(0,s.jsx)(e$.p,{id:t.id,name:t.name,size:40})}),(0,s.jsxs)(S.so,{direction:"column",justify:"center",align:"flex-start",children:[(0,s.jsx)(ed.EY,{lineHeight:"md",textStyle:"body.medium",color:"neutrals.nLv1",children:(0,s.jsx)(eF.c,{entity:t})}),(0,s.jsx)(ed.EY,{display:"block",mt:"xs",textAlign:"end",textStyle:"assistive.default",color:"neutrals.nLv3",textTransform:"capitalize",children:(0,s.jsx)(L.A,{id:"basic.followersWithCount",values:{n:(0,s.jsx)(ed.EY,{textStyle:"assistive.default",color:"primary.default",children:(0,eG.A)(t.userCount)})}})})]})]}),(0,s.jsx)(eV.e,{entity:a.bq7.Teams,id:t.id,location:Y.y.PopularTeams,type:Y.b.Team})]})})},e9=e=>{let{uniqueTournament:t}=e;return(0,s.jsxs)(S.so,{p:"lg",children:[(0,s.jsx)(S.so,{children:(0,s.jsx)(ev.e,{id:t.id,h:"56px",w:"56px"})}),(0,s.jsxs)(S.so,{direction:"column",align:"flex-start",justify:"center",ml:"sm",children:[(0,s.jsx)(ed.H3,{textStyle:"display.large",color:"neutrals.nLv1",children:(0,s.jsx)(ef.O,{uniqueTournament:t})}),(0,s.jsx)(ed.EY,{textStyle:"assistive.default",color:"neutrals.nLv3",children:(0,s.jsx)(L.A,{id:"tournament.popularTeams"})})]})]})};function e5(e){let{uniqueTournament:t,seasonId:n}=e,i=74858===n&&t.id===a.G6l.SofascoreClubNXTU14,{data:r}=(0,eT.Ay)(i?a.V3t.topFollowedTeams(t.id,n):null),l=(null==r?void 0:r.topFollowedTeams)||[],{isMobile:o}=(0,ed.$c)(),[d,u]=(0,C.useState)(!1),c=[...l].slice(0,o?3:5);return l.length?(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)(J.Zp,{children:[(0,s.jsx)(J.Zp.Header,{titleId:"tournament.popularTeams"}),(!o&&d?l:c).map((e,t)=>(0,s.jsx)(e1,{team:e,popularityRanking:t+1},e.id)),(0,s.jsx)(J.Zp.Footer,{ctaParams:c.lengthu(e=>!e),icon:o?eu.X.Right:d?eu.X.Up:eu.X.Down}})]}),o&&(0,s.jsx)(ed.Xn,{isOpen:d,onClose:()=>u(!1),header:(0,s.jsx)(e9,{uniqueTournament:t}),children:(0,s.jsx)(S.so,{h:"100%",w:"100%",direction:"column",pb:"xl",children:l.map((e,t)=>(0,s.jsx)(e1,{team:e,popularityRanking:t+1},e.id))})})]}):null}var e6=n(78144),e8=n(99064),e3=n(61703),e4=n(47530),e2=n(52827),e7=n(45749),te=n(10794),tt=n(85625),tn=n(95868);let ts=e=>{let{tournamentId:t,roundId:n,eventHighlights:a}=e,{isMobile:i}=(0,ed.$c)(),[r,l]=(0,C.useState)(!1),o=(0,tn.TW)({type:"multiple",location:tt.D.TournamentPage,tournamentId:t,roundId:n,screen:i?"mobile":"desktop",eventId:null,provider:"wsc"});(0,e7.P)({containerId:o,storyIds:a.map(e=>{let{sdkId:t}=e;return t}),location:tt.D.TournamentPage,setErrorOccurred:l});let d=(0,e2.i)(o,r,"wsc");return r?null:(0,s.jsx)(S.az,{ref:d,id:o,h:"[188px]"})};function ta(e){let{uniqueTournamentId:t,seasonId:n,rounds:i,showPicker:r,selectedRound:l,setSelectedRound:o,sportSlug:d}=e,{eventHighlights:u,isLoading:c,isError:m}=function(e){let{eventId:t,uniqueTournamentId:n,seasonId:s,roundId:i}=e,r=(0,eA.d4)(te.LQ),{data:l,isLoading:o,error:d}=(0,eT.Ay)(r&&n&&s&&i?a.vCt.tournamentRoundVideoHighlights(r,n,s,i):null);return{eventHighlights:null==l?void 0:l.sportVideoHighlights.filter(e=>{var n;return!t||(null==(n=e.game)?void 0:n.eventId)===t}),isError:d,isLoading:o}}({uniqueTournamentId:t,seasonId:n,roundId:null==l?void 0:l.eventRoundId}),[x,p]=(0,C.useState)(!1),h=[a.QCR.Basketball,a.QCR.AmericanFootball].includes(d)?"game_highlights_title":"match_highlights_title";return((0,C.useEffect)(()=>{p(!0),setTimeout(()=>{p(!1)},0)},[null==l?void 0:l.eventRoundId]),m)?null:(0,s.jsxs)(S.az,{p:"sm",children:[(0,s.jsxs)(S.so,{justify:"space-between",align:"center",p:"sm",mb:"sm",children:[(0,s.jsx)(ed.EY,{textStyle:r?"display.medium":"display.small",children:(0,s.jsx)(L.A,{id:h})}),r&&l&&(0,s.jsx)(e8.ms,{items:i,onSelectedItemChange:e=>{let{selectedItem:t}=e;t&&o(t)},initialSelectedItem:l,renderItem:e=>e?(0,s.jsx)(e4.rC,{roundName:null==e?void 0:e.roundName}):"",alignRight:!0})]}),(0,s.jsx)(S.az,{minH:"[188px]",position:"relative",children:x||!(null==l?void 0:l.eventRoundId)||c?null:(0,s.jsx)(ts,{tournamentId:t,roundId:null==l?void 0:l.eventRoundId,eventHighlights:u||[]})})]})}var ti=n(90510),tr=n(74761),tl=n(16620),to=n(8298),td=n(79387);let tu=(e,t,n)=>{let{uniqueTournamentId:s,uniqueTournamentName:i,uniqueTournamentSlug:r,categorySlug:l,sport:o,seasonId:u,roundId:c}=e,m="sofa-totw-embed-".concat(s,"-").concat(u,"-").concat(c),x=(0,I.vf)(t.locale),p="".concat(a.yuv).concat(x?"/".concat(x):"","/embed/unique-tournament/").concat(s,"/season/").concat(u,"/round/").concat(c,"/teamOfTheWeek"),h="?showCompetitionLogo=true&widgetTheme=light&widgetTitle=".concat(encodeURIComponent(i)),g=(0,a.Lo9)(d.z.getTranslatedRoute(n,"uniqueTournament",{sport:o,category:l,tournament:r,id:s},(0,O.HL)({id:u})).route,{isApiRoute:!1}),j='Sofascore'),v=t.formatMessage({id:"tournament.totw.backLink",defaultMessage:"Team of the Week provided by ".concat(j)},{linkToSofascore:j});return'\n
\n ').concat(v,"\n
")},tc=function(e){let t=(0,c.A)(),n=(0,x.A)();return(0,s.jsx)(td.C,{callToAction:(0,s.jsx)(L.A,{id:"team_of_the_week_embed"}),embedString:tu(e,t,n),px:"0",my:"0"})};function tm(e){let{uniqueTournament:t,seasonId:n,selectedRound:i,setSelectedRound:r,rounds:l,showPicker:o,isRoundLoading:d}=e,{setTotwUrl:u}=(0,tl.d)(),c=(null==i?void 0:i.roundName.toLowerCase())==="season",m=(null==i?void 0:i.totwRoundId)&&n?a.V3t.teamOfTheWeekRoundDetails(t.id,n,i.totwRoundId):null,{data:x,isLoading:p}=(0,eT.Ay)(m);(0,C.useEffect)(()=>(u(m),()=>u(null)),[i]);let h=d||p;return h||x?(0,s.jsxs)(S.az,{children:[(0,s.jsx)(J.Zp.Header,{titleId:c?"tournament.teamOfTheSeason":"team_of_the_week",variant:"left-aligned-desktop",actionComponent:o&&i?(0,s.jsx)(e8.ms,{items:l,onSelectedItemChange:e=>{let{selectedItem:t}=e;t&&r(t)},initialSelectedItem:i,selectedItem:i,renderItem:e=>e?(0,s.jsx)(e4.rC,{roundName:null==e?void 0:e.roundName}):"",alignRight:!0}):(0,s.jsx)(S.az,{h:"2xl"})}),(0,s.jsxs)(J.BU,{children:[(0,s.jsx)(tr.$,{messageId:c?"rating_team_of_the_season":"rating_team_of_the_week"}),(0,s.jsxs)(S.az,{children:[(0,s.jsx)(to.I,{...x,isSeason:c}),(null==i?void 0:i.totwCreatedTimestamp)?(0,s.jsxs)(ed.EY,{my:"sm",mx:"2xs",display:"block",textAlign:"end",textStyle:"assistive.default",color:"neutrals.nLv3",children:[(0,s.jsx)(L.A,{id:"published"}),":"," ",(0,s.jsx)(ti.XU,{value:1e3*i.totwCreatedTimestamp,day:"numeric",month:"short"})]}):(0,s.jsx)(S.az,{h:"2xl"})]}),h&&(0,s.jsx)(S.az,{h:"4xl",bg:"surface.s2",br:"lg",hideBelow:"md"}),n&&i&&!h&&(0,s.jsx)(tc,{uniqueTournamentId:t.id,uniqueTournamentName:t.name,uniqueTournamentSlug:t.slug,categorySlug:t.category.slug,sport:t.category.sport.slug,seasonId:n,roundId:i.totwRoundId})]})]}):null}function tx(e){let{uniqueTournament:t,seasonId:n,sportSlug:i}=e,r=t.id,{rounds:l,isLoading:o,selectedRound:d,setSelectedRound:u,hasWSC:c,hasTOTW:m}=function(e,t){var n;let s=(0,eA.d4)(te.LQ),[i,r]=(0,C.useState)(void 0),l=t?a.V3t.teamOfTheWeekRounds(e,t):null,{data:o,isLoading:d}=(0,eT.Ay)(l),u=(null==o?void 0:o.rounds)||[],c=t&&s?a.vCt.tournamentRoundsWithVideoHighlights(s,e,t):null,{data:m,isLoading:x}=(0,eT.Ay)(c),p=(null==m?void 0:m.rounds.filter(e=>!u.find(t=>t.roundId===(null==e?void 0:e.eventRoundId))))||[],h=Array.from(new Set([...u.map(e=>e.roundSlug),...p.map(e=>e.roundSlug)])).map(e=>{var t;let n=u.find(t=>t.roundSlug===e),s=p.find(t=>t.roundSlug===e),a=(null==n?void 0:n.roundId)||(null==s?void 0:s.eventRoundId);return{eventRoundId:a,roundName:(null==n?void 0:n.roundName)||(null==s?void 0:s.eventRoundName)||a.toString(),roundSlug:(null==n?void 0:n.roundSlug)||(null==s?void 0:s.roundSlug),startDateTimestamp:null!=(t=(null==n?void 0:n.startDateTimestamp)||(null==s?void 0:s.startDateTimestamp))?t:null==n?void 0:n.createdAtTimestamp,totwRoundId:null==n?void 0:n.id,totwCreatedTimestamp:null==n?void 0:n.createdAtTimestamp}}).sort((e,t)=>{var n;return e.startDateTimestamp&&t.startDateTimestamp?t.startDateTimestamp-e.startDateTimestamp:null!=(n=t.startDateTimestamp)?n:0});return(0,C.useEffect)(()=>{r(h[0])},[t,null==(n=h[0])?void 0:n.roundSlug]),{rounds:h,isLoading:x||d,selectedRound:i,setSelectedRound:r,hasWSC:!!(null==m?void 0:m.rounds.length),hasTOTW:!!u.length}}(r,n),x=(0,eM.b)(r,"teamOfTheWeek"),p=i===a.QCR.AmericanFootball?"am_football_week_summary_title":"round_summary_title",h=n?(0,s.jsx)(ta,{uniqueTournamentId:r,seasonId:n,selectedRound:d,setSelectedRound:u,rounds:l,showPicker:!m,sportSlug:i}):null,g=(0,s.jsx)(tm,{uniqueTournament:t,seasonId:n,showPicker:!c,isRoundLoading:o,rounds:l,selectedRound:d,setSelectedRound:u});if(!o&&!m&&!c)return null;if(m&&c)return(0,s.jsxs)(e3.b,{branding:x,entityId:r,location:"league_totw",children:[(0,s.jsx)(J.Zp.Header,{titleId:p,variant:"left-aligned",actionComponent:d?(0,s.jsx)(e8.ms,{items:l,onSelectedItemChange:e=>{let{selectedItem:t}=e;t&&u(t)},initialSelectedItem:d,renderItem:e=>e?(0,s.jsx)(e4.rC,{roundName:null==e?void 0:e.roundName}):"",alignRight:!0}):void 0}),h,g]});if(m)return(0,s.jsx)(e3.b,{branding:x,entityId:r,location:"league_totw",children:g});if(c)return(0,s.jsx)(J.Zp,{children:h});if(i===a.QCR.Football)return(0,s.jsx)(e3.b,{branding:x,entityId:r,location:"league_totw",children:g});else return null}var tp=n(52363);let th=es()(()=>n.e(8056).then(n.bind(n,8056)),{loadableGenerated:{webpack:()=>[8056]},ssr:!1,loading:()=>(0,s.jsx)(et.E,{uniqueKey:"unique-tournament-media-cl-2",br:"lg"})}),tg=es()(()=>n.e(97565).then(n.bind(n,97565)),{loadableGenerated:{webpack:()=>[97565]},ssr:!1});function tj(e){var t;let{uniqueTournament:n,seasons:i,activeSeasonId:r,hasEvents:l,hasPlayerOfTheSeason:o,hasMedia:d}=e,u=eI.zK[n.id],c=u&&(null==u?void 0:u.historyHighlightsEndYear),m=n.category.sport.slug,x=m===a.QCR.Football,p=i[0],h=(null==p?void 0:p.id)===r,g=(0,eM.b)(n.id,"banner"),j=(null==(t=i[0])?void 0:t.id)===r;return(0,s.jsxs)(s.Fragment,{children:[h&&(0,s.jsx)(eY,{uniqueTournamentId:n.id}),(!j||l||!r)&&(0,s.jsx)(ea.t,{tag:"UniqueTournamentEventList",children:(0,s.jsx)(ei.MC.Provider,{value:{isNarrow:!0,isShort:a.HwS.includes(m),location:Y.y.MatchesSection},children:r?(0,s.jsx)(tg,{uniqueTournamentId:n.id,seasonId:r},"UniqueTournamentEventList"):(0,s.jsx)(eC.A,{entity:a.wNW.UniqueTournament,id:n.id})})}),(0,s.jsx)(tp.Br,{uniqueTournamentId:n.id}),r&&(0,s.jsx)(e6.default,{uniqueTournamentId:n.id,seasonId:r}),x&&o&&(0,s.jsx)(eW,{uniqueTournamentId:n.id,seasonId:r,showLoader:!!(!h||n.endDateTimestamp&&(null==n?void 0:n.endDateTimestamp){let{name:t,image:n}=e;return(0,s.jsxs)(S.so,{_hover:{bg:"surface.s2"},px:{mdDown:"sm",md:"lg"},py:"xs",gap:"lg",align:"center",children:[n,(0,s.jsx)(ed.EY,{children:t})]})};function tG(e){let{title:t,tournaments:n,teams:a,sport:i}=e,r=[];(null==n?void 0:n.length)&&r.push(...n.map(e=>(0,s.jsx)(j.tQ,{tournament:e,children:(0,s.jsx)(tV,{image:(0,s.jsx)(tU.e,{size:32,...e}),name:(0,s.jsx)(ef.O,{uniqueTournament:e})})},e.id)));let l=null==a?void 0:a.filter(Boolean);return((null==l?void 0:l.length)&&r.push(...l.map(e=>(0,s.jsx)(j.gT,{sport:i,team:e,children:(0,s.jsx)(tV,{image:(0,s.jsx)(tU.p,{size:32,...e}),name:(0,s.jsx)(tv.Rm,{team:e})})},e.id))),r.length)?(0,s.jsxs)(J.Zp,{children:[(0,s.jsx)(J.Zp.Header,{titleId:t}),r,(0,s.jsx)(J.Zp.Footer,{})]}):null}var tK=n(85685);let tB=JSON.parse('{"Division level":"divisionLevel","Number of rounds":"numberOfRounds","averageGoals":"football_avg_goals","homeTeamWins":"home_team_wins","Draws":"draws","awayTeamWins":"away_team_wins","Yellow cards":"yellow_cards","yellowCards":"football_yellow_cards","redCards":"red_cards","Total prize money":"totalPrizeMoney","Ground type":"surface","Start date":"startDate","End date":"endDate","Continent":"continent","Number of sets":"numberOfSets","Prize currency":"prizeCurrency","Number of competitors":"numberOfCompetitors"}');var tZ=n(27892);let tX=e=>{let{id:t}=e;return(0,s.jsx)(L.A,{id:(0,tZ.O)(tB,t)})};function tJ(e){let{facts:t,isCurrentSeason:n}=e;return Object.keys(t).some(e=>"winner"!==e&&"groundType"!==e&&void 0!==t[e]&&!("numberOfCompetitors"===e&&!n))?(0,s.jsxs)(S.az,{pb:"sm",children:[(0,s.jsx)(J.Zp.Header,{title:(0,s.jsx)(ed.EY,{textTransform:"capitalize",textStyle:"display.medium",lineHeight:"24px",children:(0,s.jsx)(L.A,{id:"tournament.facts"})})}),Object.keys(t).map(e=>"winner"!==e&&void 0!==t[e]&&("numberOfCompetitors"!==e||n)&&"groundType"!==e?(0,s.jsxs)(S.so,{py:"sm",px:{mdDown:"sm",md:"lg"},justify:"space-between",align:"center",children:[(0,s.jsx)(ed.EY,{children:(0,s.jsx)(tX,{id:e})}),(0,s.jsx)(ed.EY,{children:"totalPrizeMoney"===e&&t.totalPrizeMoney?(0,s.jsx)(tK.o,{parsedMoney:(0,a.oaz)(t.totalPrizeMoney)}):t[e]})]},e):null)]}):null}function t$(e){let{countries:t,city:n}=e,a=(null==t?void 0:t.length)?t.join(", "):null,i=((null==t?void 0:t.length)||0)>1,r=(n||"").split(",").length>1;return a||n?(0,s.jsxs)(S.az,{pb:"sm",children:[(0,s.jsx)(J.Zp.Header,{titleId:"tournament.host"}),a&&(0,s.jsxs)(S.so,{py:"sm",px:{mdDown:"sm",md:"lg"},justify:"space-between",gap:"lg",children:[(0,s.jsx)(ed.EY,{children:(0,s.jsx)(L.A,{id:i?"countries":"country"})}),(0,s.jsx)(ed.EY,{textAlign:"end",children:a})]}),n&&(0,s.jsxs)(S.so,{py:"sm",px:{mdDown:"sm",md:"lg"},justify:"space-between",gap:"lg",children:[(0,s.jsx)(ed.EY,{children:(0,s.jsx)(L.A,{id:r?"cities":"city"})}),(0,s.jsx)(ed.EY,{textAlign:"end",children:n})]})]}):null}function t0(e){let{team:t,sport:n,text:a}=e;return(0,s.jsx)(S.az,{children:(0,s.jsx)(j.gT,{team:t,sport:n,children:(0,s.jsxs)(S.so,{pt:"sm",direction:"column",align:"center",children:[(0,s.jsx)(e$.p,{size:40,id:t.id,name:t.name}),(0,s.jsx)(ed.Ym,{px:"sm",mt:"xs",textStyle:"display.small",textAlign:"center",children:(0,s.jsx)(tv.Rm,{team:t})}),(0,s.jsx)(ed.EY,{px:"sm",textStyle:"assistive.default",color:"neutrals.nLv3",mt:"xs",h:a?"2xl":"xs",textAlign:"center",children:a})]})})})}function t1(e){return(0,s.jsxs)(S.so,{align:"center",justify:"center",direction:"column",py:"md",children:[(0,s.jsx)(ed.EY,{display:"block",textStyle:"assistive.micro",color:"neutrals.nLv3",textTransform:"uppercase",children:e.label}),(0,s.jsx)(ed.EY,{display:"block",textStyle:"display.medium",children:e.value})]})}function t9(e){let{titleHolder:t,mostTitlesTeams:n,titleHolderTitles:i,mostTitles:r,sport:l,totalPrizeMoney:o,numberOfCompetitors:d,numberOfSets:u}=e,m=(0,c.A)(),x=i?"".concat(m.formatMessage({id:"title_holder"})," (").concat(i,")"):m.formatMessage({id:"title_holder"}),p=r&&r>1?"".concat(m.formatMessage({id:"most_titles"})," (").concat(r,")"):"",h=l===a.QCR.Tennis&&!!u||!!o||!!d;return h||t||n?(0,s.jsxs)(J.Zp,{children:[(0,s.jsx)(S.az,{display:["none","block"],children:(0,s.jsx)(J.Zp.Header,{titleId:"titles"})}),(0,s.jsxs)(S.so,{wrap:"wrap",align:"center",p:"sm",justify:"space-around",children:[t&&(0,s.jsx)(t0,{team:t,sport:l,text:x}),n?n.map(e=>(0,s.jsx)(t0,{team:e,sport:l,text:p},e.id)):void 0]}),h&&(0,s.jsx)(s.Fragment,{children:(0,s.jsxs)(S.so,{justify:"space-evenly",align:"center",borderTop:"1px solid {colors.neutrals.nLv4}",children:[u&&(0,s.jsx)(t1,{label:(0,s.jsx)(L.A,{id:"sets"}),value:u}),o&&(0,s.jsx)(t1,{label:(0,s.jsx)(L.A,{id:"totalPrizeMoney"}),value:(0,s.jsx)(tK.o,{parsedMoney:(0,a.oaz)(o)})}),d&&(0,s.jsx)(t1,{label:(0,s.jsx)(L.A,{id:"competitors"}),value:d})]})})]}):null}let t5=["id","newcomersUpperDivision","newcomersLowerDivision","newcomersOther","totalPrizeMoneyCurrency","totalPrizeMoney","hostCity","hostCities","hostCountries"],t6=(e,t)=>{let n=Math.round(100*e);return t?"".concat(n,"%"):n/100};function t8(e,t){if(void 0===e)return null;let n=Object.keys(e).filter(e=>-1===t5.indexOf(e)).reduce((t,n)=>(Array.isArray(e[n])?e[n].length&&(t[n]=e[n].join(", ")):"totalPrizeMoneyRaw"===n&&void 0!==e.totalPrizeMoneyRaw?t.totalPrizeMoney=e.totalPrizeMoneyRaw:t[n]=e[n],t),{}),s={};t&&(t.groundType&&(s.groundType=t.groundType),t.numberOfSets&&(s.numberOfSets=t.numberOfSets),t.tier&&(s.tier=t.tier));let a=(n.homeTeamWins||0)+(n.awayTeamWins||0)+(n.draws||0);if(a){let e={...n,...s};if(n.goals){let t=t6(n.goals/a);e={goals:e.goals,averageGoals:t,...e}}return n.yellowCards&&(e.yellowCards=t6(n.yellowCards/a)),n.redCards&&(e.redCards=t6(n.redCards/a)),n.homeTeamWins&&(e.homeTeamWins=t6(n.homeTeamWins/a,!0)),n.awayTeamWins&&(e.awayTeamWins=t6(n.awayTeamWins/a,!0)),n.draws&&(e.draws=t6(n.draws/a,!0)),e}return{...n,...s}}let t3=e=>{let{children:t}=e;return(0,s.jsx)(S.az,{_lastOfType:{h:"100%",bg:"surface.s1"},children:t})};function t4(e){var t,n,i;let{tournament:r,info:l,seasonId:o,isCurrentSeason:d}=e,u=r.category.sport.slug,c={sport:u,category:r.category.slug},m=null==(t=(0,eT.Ay)(o?a.V3t.info(r.id,o):null,{fallbackData:d&&l?{info:l}:void 0}).data)?void 0:t.info,x=(0,C.useMemo)(()=>t8(m,r),[o,m]),p={},h={};u===a.QCR.Tennis?((null==x?void 0:x.totalPrizeMoney)&&(p.totalPrizeMoney=tL()(x.totalPrizeMoney)),p.numberOfCompetitors=tL()(null==x?void 0:x.numberOfCompetitors),p.numberOfSets=tL()(null==x?void 0:x.numberOfSets),x&&(null==(h=tL()(x))||delete h.totalPrizeMoney,null==h||delete h.numberOfCompetitors,null==h||delete h.numberOfSets,null==h||delete h.groundType)):x&&(h={...x});let g=d?r.titleHolder||(null==m?void 0:m.winner):void 0,j=d?r.mostTitlesTeams:void 0,v=[...[{title:"tournament.upperDivision",tournaments:r.upperDivisions},{title:"newcomers_upper",teams:null==m?void 0:m.newcomersUpperDivision},{title:"lower_division",tournaments:r.lowerDivisions},{title:"newcomers_lower",teams:null==m?void 0:m.newcomersLowerDivision},{title:"tournament.newcomersOther",teams:null==m?void 0:m.newcomersOther}].map(e=>{var t,n;return(null==(t=e.tournaments)?void 0:t.length)||(null==(n=e.teams)?void 0:n.length)?(0,s.jsx)(tG,{...e,...c},e.title):null}),!tQ()(h)&&Object.keys(h).some(e=>"winner"!==e&&"groundType"!==e&&void 0!==h[e]&&!("numberOfCompetitors"===e&&!d))?(0,s.jsx)(tJ,{facts:h,isCurrentSeason:d},h.id):null,(null==m?void 0:m.hostCountries.length)||(null==m?void 0:m.hostCity)?(0,s.jsx)(t$,{countries:null==m?void 0:m.hostCountries,city:null==m?void 0:m.hostCity},m.id):null].filter(e=>!!e),y=!!g||!!(null==j?void 0:j.length)||!!(null==(n=r.linkedUniqueTournaments)?void 0:n.length),f=!!v.length;return y||f?(0,s.jsxs)(J.Zp,{variant:"mobile-only",children:[(0,s.jsx)(S.az,{hideFrom:"md",children:(0,s.jsx)(J.Zp.Header,{titleId:"tournament.leagueInfo"})}),(0,s.jsx)(J.WC,{variant:"inverse-mobile",children:(0,s.jsx)(J.WC,{variant:"square-desktop",children:(0,s.jsxs)(S.so,{mdDown:{p:"sm",gap:"sm",flexDirection:"column"},md:{gap:"[1px]",bg:"neutrals.nLv4",br:"lg",mt:"sm"},overflow:"hidden",children:[y&&(0,s.jsx)(S.so,{w:"100%",direction:"column",gap:{base:"sm",md:"[1px]"},children:(0,s.jsxs)(t3,{children:[(0,s.jsx)(t9,{titleHolder:g,titleHolderTitles:r.titleHolderTitles,mostTitlesTeams:j,mostTitles:r.mostTitles,sport:u,...p}),r.linkedUniqueTournaments&&(null==(i=r.linkedUniqueTournaments)?void 0:i.length)>0&&(0,s.jsx)(J.Zp,{children:(0,s.jsx)(tG,{title:"tournament.sameDivision",tournaments:r.linkedUniqueTournaments,...c})})]})}),y&&f&&(0,s.jsx)(S.so,{direction:"column",gap:{base:"sm",md:"[1px]"},w:"100%",children:v.map(e=>(0,s.jsx)(t3,{children:(0,s.jsx)(J.Zp,{children:e})},null==e?void 0:e.key))}),!y&&f&&tD()(v,Math.ceil(v.length/2)).map((e,t)=>(0,s.jsx)(S.so,{w:"100%",gap:{base:"sm",md:"[1px]"},direction:"column",children:e.map((e,t)=>(0,s.jsx)(t3,{children:(0,s.jsx)(J.Zp,{children:e},"element-".concat(t))},null==e?void 0:e.key))},"group-".concat(t)))]})})})]}):null}function t2(e){let{uniqueTournament:t,seasonId:n,info:a,isCurrentSeason:i}=e;return(0,s.jsx)(e8.tU.Panel,{tabKey:H.x.Details,children:(0,s.jsx)(t4,{tournament:t,info:a,seasonId:n,isCurrentSeason:i})})}let t7=es()(()=>Promise.all([n.e(14591),n.e(4824),n.e(73003)]).then(n.bind(n,73003)),{loadableGenerated:{webpack:()=>[73003]},loading:()=>(0,s.jsx)(S.az,{h:"[500px]"})});function ne(e){var t;let{uniqueTournament:n,seasonId:a}=e,i=n.category.sport.slug;return(0,s.jsx)(e8.tU.Panel,{tabKey:H.x.Knockout,children:(0,s.jsx)(S.az,{overflow:"hidden",borderBottomRadius:"lg",children:(0,s.jsx)(J.WC,{variant:"square",children:(0,s.jsx)(t7,{uniqueTournamentId:null==n?void 0:n.id,uniqueTournamentSlug:null==n?void 0:n.slug,categorySlug:null==(t=n.category)?void 0:t.slug,seasonId:a,sport:i})})})})}var nt=n(4866),nn=n(14419),ns=n(34884),na=n(64073),ni=n(70679);function nr(e){let{isOpen:t,setIsOpen:n,editorData:a}=e;return(0,s.jsx)(ey.A,{isOpen:t,setIsOpen:n,header:"competition_editors_list_title",children:null==a?void 0:a.editors.map(e=>(0,s.jsx)(j.N_,{routeKey:"user",params:{userId:e.id},onClick:()=>(0,F.Zs)("editor_league_modal"),children:(0,s.jsxs)(S.so,{align:"center",justify:"space-between",h:"5xl",px:"lg",py:"md",_hover:{bg:"surface.s2"},children:[(0,s.jsxs)(S.so,{align:"center",gap:"lg",children:[(0,s.jsx)(ni.A,{src:e.imageURL,size:32}),(0,s.jsx)(ed.EY,{textStyle:"table.medium",truncate:!0,children:e.nickname})]}),(0,s.jsx)(eH.CCT,{fill:"primary.default"})]})},e.id))})}var nl=n(3167),no=n(48127),nd=n(6244),nu=n(45546);let nc=[8,17,23,34,35],nm=e=>{let{uniqueTournamentId:t,seasonYear:n}=e;return n&&nc.includes(t)?(0,s.jsxs)(s.Fragment,{children:[" ",(0,nu.b0)(n).join("/")]}):null};function nx(e){var t;let{uniqueTournament:n,seasons:i,seasonId:r,onSeasonChange:l}=e,o=(0,c.A)(),d=(0,W.N)(n),u=!!(i.length&&r&&r===i[0].id)&&!!(n.startDateTimestamp&&n.startDateTimestamp!==n.endDateTimestamp),{data:m}=(0,eT.Ay)(a.V3t.seasonEditors(n.id,r)),[x,p]=(0,C.useState)(!1),h=(0,C.useMemo)(()=>i.find(e=>e.id===r),[r,i]),g=null==m?void 0:m.editors,j={nickname:(null==m?void 0:m.organizations.length)?null==m?void 0:m.organizations[0].name:(null==g?void 0:g.length)===1?g[0].editorName:void 0,numberOfEditors:null==g?void 0:g.length,eventLocation:(null==g?void 0:g.length)===1?"editor_league":void 0,hasStarted:!0,isInLeagueHeader:!0,isOrganization:!!(null==m?void 0:m.organizations.length),userId:g&&g.length>1||null==g||null==(t=g[0])?void 0:t.id,onClick:g&&g.length>1&&!(null==m?void 0:m.organizations.length)?()=>p(!0):void 0};return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(nn.Fs,{image:(0,s.jsx)(nt.e,{id:n.id,name:n.name,w:"100%",h:"100%"}),name:(0,s.jsxs)(s.Fragment,{children:[d," ",(0,s.jsx)(nm,{uniqueTournamentId:n.id,seasonYear:null==h?void 0:h.year})]}),titleLabel:(0,s.jsx)(nd.W,{groundType:n.groundType}),subtitleItems:(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)(S.so,{align:"center",gap:"sm",children:[(0,s.jsx)(nt.w,{alpha2:n.category.alpha2,name:n.category.name,categoryId:n.category.id,w:32,h:32}),(0,s.jsx)(ed.EY,{textStyle:"display.medium",children:(0,s.jsx)(P.m,{slug:n.category.slug,name:n.category.name,uniqueTournament:n})})]}),r&&(0,s.jsx)(S.az,{position:"relative",zIndex:"fixed",children:(0,s.jsx)(no.s,{seasonId:r,seasons:i,onSeasonChange:l},n.id)})]}),actions:(0,s.jsxs)(s.Fragment,{children:[!!(null==m?void 0:m.editors.length)&&(0,s.jsx)(ns.i,{...j}),(0,s.jsx)(ed.m_,{label:o.formatMessage({id:"button_favourite"}),placement:"bottom",strategy:"hover",children:(0,s.jsx)(eV.e,{id:n.id,entity:a.bq7.Tournaments,location:Y.y.Header,type:Y.b.UniqueTournament,isNewButton:!0})})]}),footer:u&&(0,s.jsx)(nl.G,{start:n.startDateTimestamp,end:n.endDateTimestamp,c:"onSurface.nLv1",flex:"1"})}),(0,s.jsxs)(na.K,{id:n.id,name:d,entity:a.bq7.Tournaments,type:Y.b.UniqueTournament,children:[(0,s.jsx)(nt.e,{size:32,mr:"lg",style:{verticalAlign:"top"},id:n.id,name:n.slug}),(0,s.jsx)(ed.EY,{textStyle:"display.medium",color:"primary.default",mr:"lg",children:d})]}),(0,s.jsx)(nr,{isOpen:x,setIsOpen:p,editorData:m})]})}let np=es()(()=>Promise.all([n.e(56591),n.e(14632),n.e(26618),n.e(1949),n.e(73231),n.e(70986),n.e(98016)]).then(n.bind(n,11506)),{loadableGenerated:{webpack:()=>[11506]},ssr:!1,loading:()=>(0,s.jsx)(S.az,{h:"[500px]"})});function nh(e){let{uniqueTournament:t,seasonId:n,seasons:a}=e,i=a.find(e=>e.id===n);return n?(0,s.jsx)(e8.tU.Panel,{tabKey:H.x.Standings,children:(0,s.jsx)(J.WC,{variant:"square",children:(0,s.jsx)(np,{uniqueTournament:t,seasonId:n,selectedSeason:i})})}):(0,s.jsx)(S.az,{h:"[500px]"})}let ng=es()(()=>Promise.all([n.e(61976),n.e(72889),n.e(22088),n.e(66213),n.e(20606)]).then(n.bind(n,36064)),{loadableGenerated:{webpack:()=>[36064]},ssr:!1,loading:()=>(0,s.jsx)(S.az,{h:"[500px]"})});function nj(e){let{uniqueTournament:t,seasonId:n}=e;return(0,s.jsx)(e8.tU.Panel,{tabKey:H.x.Statistics,children:(0,s.jsx)(ng,{uniqueTournament:t,seasonId:n})})}var nv=n(82554),ny=n(35399);function nf(e){var t;let{uniqueTournament:n,seasons:i,info:r,seo:l,activeSeasonId:o,setActiveSeasonId:d=X(),hasEvents:u,activeTab:c,setActiveTab:m,hasInitialStandings:x}=e,p=i[0],h=i[1]?i[1].name:"",g=(null==p?void 0:p.id)===o,{hasStandingsTab:j,hasKnockoutTab:v,hasStatisticsTab:y,hasPlayerOfTheSeason:f,hasMedia:T,hasDetailsTab:b}=function(e,t,n){var s;let{initialStandings:i}=(0,C.useContext)(G.O),r=e.category.sport.slug,l=r===a.QCR.Tennis,o=l||!t||!ny.f.includes(r),{data:d}=(0,eT.Ay)(t&&ny.s.includes(r)?a.V3t.seasonTypes(e.id,t,"player"):null),{hasStandingsData:u,hasKnockoutTab:c,hasTopPlayersTab:m,hasTennisTopPlayers:x,hasTeamSeasonTypes:p,hasMedia:h,hasPlayerOfTheSeason:g}=(0,D.A)({hasKnockoutTab:{route:a.V3t.cupTrees(e.id,t),skipCheck:!t},hasTopPlayersTab:{route:a.V3t.seasonTypes(e.id,t,l?"team":"player"),skipCheck:!t||!(0,nv.w)(r)},hasTennisTopPlayers:{route:a.V3t.topTeams(e.id,t,"mainDraw"),skipCheck:!t||!(0,nv.w)(r)},hasTeamSeasonTypes:{route:a.V3t.seasonTypes(e.id,t,"team"),skipCheck:o},hasMediaTab:{route:a.V3t.media(e.id)},hasPowerRankings:{route:a.V3t.powerRankingRounds(e.id,t)},hasMedia:{route:a.V3t.media(e.id)},hasPlayerOfTheSeason:{route:a.V3t.playerOfTheSeason(e.id,t),skipCheck:!t},hasStandingsData:{route:a.V3t.standings(e.id,t),skipCheck:!t}},[t]),{hasTopStatsTab:j}=(0,D.A)({hasTopStatsTab:{route:a.V3t.topPlayersPerGame(e.id,t,"all",(null==d?void 0:d.types[0])||a.Vw_.overall),skipCheck:!t||!ny.s.includes(r)||!(null==d||null==(s=d.types)?void 0:s[0])}},[t,d]),{data:v}=(0,eT.Ay)(o||!p?null:a.V3t.seasonTypes(e.id,t,"team")),{hasTopTeamsTab:y}=(0,D.A)({hasTopTeamsTab:{route:a.V3t.topTeams(e.id,t,(null==v?void 0:v.types[0])||a.Vw_.overall),skipCheck:o||!(null==v?void 0:v.types.length)}},[v,t]),{data:f}=(0,eT.Ay)(a.V3t.info(e.id,t)),T=null==f?void 0:f.info,b=t8(T,e),w=n&&B(e)||K(T,e)||r===a.QCR.Football&&!!b;return{hasKnockoutTab:!!c,hasStatisticsTab:!!(j||y||m||x),hasStandingsTab:!!((null==i?void 0:i.length)||u),hasMedia:!!h,hasPlayerOfTheSeason:!!g,hasDetailsTab:!!w,hasTennisTopPlayers:!!x}}(n,o,g),w=[{tabKey:H.x.Standings,item:"app.standings",isHidden:!j},{tabKey:H.x.Knockout,item:"knockout",isHidden:!v},{tabKey:H.x.Statistics,item:"statistics",isHidden:!y},{tabKey:H.x.Details,item:"details",isHidden:!b}],S=w.some(e=>!e.isHidden&&e.tabKey===c)?c:null==(t=w.find(e=>!e.isHidden))?void 0:t.tabKey;return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(nx,{uniqueTournament:n,seasons:i,seasonId:o,onSeasonChange:d}),(0,s.jsxs)($.xA,{py:"md",gap:"md",children:[(0,s.jsxs)($.fv,{flexGrow:1,children:[(0,s.jsx)(tj,{hasEvents:u,hasMedia:T,hasPlayerOfTheSeason:f,activeSeasonId:o,uniqueTournament:n,seasons:i}),(0,s.jsx)(z.Aq,{route:I.xW.UniqueTournament})]}),(0,s.jsxs)($.fv,{flexGrow:2,children:[(0,s.jsx)(J.Zp,{children:(0,s.jsxs)(ee.A,{id:n.id,location:H.C.UniqueTournamentPage,initialTabKey:S,tabs:w,customControls:[S,m],children:[v&&(0,s.jsx)(ne,{uniqueTournament:n,seasonId:o}),(x||j)&&(0,s.jsx)(nh,{uniqueTournament:n,seasonId:o,seasons:i}),y&&(0,s.jsx)(nj,{seasonId:o,uniqueTournament:n}),b&&(0,s.jsx)(t2,{info:r,isCurrentSeason:g,uniqueTournament:n,seasonId:o})]})}),(0,s.jsx)(tF,{info:r,seo:l,details:n,season:p,lastSeason:h})]})]})]})}var nT=n(62827),nb=n(51372),nw=n(60908),nS=n(43783),nC=n(49679),n_=n(42021),nk=n(32312);function nI(e){let{rankings:t,rounds:n}=(0,nS.Q)(e.uniqueTournamentId,e.seasonId);return(null==n?void 0:n.length)?(0,s.jsx)(ea.t,{tag:"PowerRankingsCTA",children:(0,s.jsxs)(J.Zp,{children:[(0,s.jsx)(J.Zp.Header,{title:(0,s.jsx)(L.A,{id:"sofascore_power_rankings"}),actionComponent:(0,s.jsx)(n_.h,{})}),(0,s.jsx)(nk.i,{}),(0,s.jsx)(nC.a,{rankings:null==t?void 0:t.slice(0,4)}),(0,s.jsx)(J.Zp.Footer,{ctaParams:{messageId:"power_rankings_cta",onClick:e.onClick,icon:eu.X.Right}})]})}):null}function nz(e){let{uniqueTournament:t,seasonId:n,info:i,seo:r,currentSeason:l,lastSeasonName:o,showAbout:d,onPowerRankingsClick:u}=e,c=(null==l?void 0:l.id)===n,m=t.category.sport.slug===a.QCR.Football,x=(0,eM.b)(t.id,"header"),p=(0,eM.b)(t.id,"banner");return(0,s.jsxs)(e8.tU.Panel,{tabKey:H.x.Details,children:[x&&(0,s.jsx)(nb.O,{entityId:t.id,branding:x,location:"league_details"}),(0,s.jsxs)(J.BU,{children:[(0,s.jsx)(tp.Br,{uniqueTournamentId:t.id}),(0,s.jsx)(z.iN,{id:z.Rj.MOBILE_ENTITY_TOP}),m&&(0,s.jsx)(eW,{uniqueTournamentId:t.id,seasonId:n,showLoader:!!(!c||t.endDateTimestamp&&(null==t?void 0:t.endDateTimestamp)n.e(45151).then(n.bind(n,45151)),{loadableGenerated:{webpack:()=>[45151]}}),nP=es()(()=>n.e(97565).then(n.bind(n,97565)),{loadableGenerated:{webpack:()=>[97565]},ssr:!1});function nR(e){let{uniqueTournament:t,seasonId:n}=e;return(0,s.jsx)(e8.tU.Panel,{tabKey:H.x.Matches,children:(0,s.jsx)(ea.t,{tag:"UniqueTournamentEventList",children:n?(0,s.jsx)(nP,{uniqueTournamentId:t.id,seasonId:n},"UniqueTournamentEventList"):(0,s.jsx)(nA,{entity:a.wNW.UniqueTournament,id:t.id})})})}let nY=es()(()=>n.e(8056).then(n.bind(n,8056)),{loadableGenerated:{webpack:()=>[8056]}});function nq(e){let{id:t}=e;return(0,s.jsx)(e8.tU.Panel,{tabKey:H.x.Media,children:(0,s.jsx)(J.BU,{children:(0,s.jsx)(nY,{uniqueTournamentId:t,hideTitle:!0})})})}let nH=es()(()=>Promise.resolve().then(n.bind(n,78144)),{loadableGenerated:{webpack:()=>[78144]}});function nE(e){let{id:t,seasonId:n}=e;return(0,s.jsx)(e8.tU.Panel,{tabKey:H.x.PowerRankings,children:(0,s.jsx)(J.BU,{children:(0,s.jsx)(nH,{uniqueTournamentId:t,seasonId:n})})})}let nF=es()(()=>Promise.all([n.e(56591),n.e(14632),n.e(26618),n.e(1949),n.e(73231),n.e(70986),n.e(98016)]).then(n.bind(n,11506)),{loadableGenerated:{webpack:()=>[11506]}});function nN(e){let{uniqueTournament:t,seasonId:n,seo:a,lastSeasonName:i,info:r,currentSeason:l,selectedSeason:o}=e,d=(0,eM.b)(t.id,"standings");return(0,s.jsxs)(e8.tU.Panel,{tabKey:H.x.Standings,children:[d&&(0,s.jsx)(nb.O,{entityId:t.id,branding:d,bannerText:d.standingsText,location:"league_standings"}),(0,s.jsxs)(J.BU,{children:[(0,s.jsx)(nF,{uniqueTournament:t,seasonId:n,selectedSeason:o,isNarrowLayout:!0}),(0,s.jsx)(e_.pk,{utIds:[t.id]}),(0,s.jsx)(tF,{info:r,seo:a,details:t,season:l,lastSeason:i})]})]})}var nD=n(46664);let nO=es()(()=>Promise.all([n.e(66213),n.e(73655)]).then(n.bind(n,86344)),{loadableGenerated:{webpack:()=>[86344]}});function nL(e){let{uniqueTournament:t,seasonId:n}=e,i=(0,C.useContext)(k.Ws)===a.QCR.Tennis;return(0,s.jsx)(e8.tU.Panel,{tabKey:H.x.TopPlayers,children:i?(0,s.jsx)(nD.default,{uniqueTournamentId:t.id,seasonId:n}):(0,s.jsx)(nO,{uTournamentId:t.id,seasonId:n,gender:t.gender})})}let nW=es()(()=>n.e(25470).then(n.bind(n,25470)),{loadableGenerated:{webpack:()=>[25470]}});function nQ(e){let{uniqueTournament:t,seasonId:n,gender:i=a.YT8.Male}=e;return(0,s.jsx)(e8.tU.Panel,{tabKey:H.x.TopStats,children:(0,s.jsx)(nW,{uniqueTournamentId:t.id,seasonId:n,gender:i})})}let nU=es()(()=>Promise.resolve().then(n.bind(n,46664)),{loadableGenerated:{webpack:()=>[46664]}});function nV(e){let{uniqueTournament:t,seasonId:n}=e;return(0,s.jsx)(e8.tU.Panel,{tabKey:H.x.TopTeams,children:(0,s.jsx)(nU,{uniqueTournamentId:t.id,seasonId:n})})}var nG=n(21501);function nK(e){var t;let{uniqueTournament:n,seasons:i,seasonId:r,onSeasonChange:l}=e,{isMobile:o}=(0,ed.$c)(),d=(0,nG.hX)(),u=(0,W.N)(n),c=!!(i.length&&r&&r===i[0].id)&&!!(n.startDateTimestamp&&n.startDateTimestamp!==n.endDateTimestamp),m=!o&&!d,x=n.id===a.G6l.WorldCup,{data:p}=(0,eT.Ay)(a.V3t.seasonEditors(n.id,r)),[h,g]=(0,C.useState)(!1),j=(0,C.useMemo)(()=>i.find(e=>e.id===r),[r,i]),v=null==p?void 0:p.editors,y={nickname:(null==p?void 0:p.organizations.length)?null==p?void 0:p.organizations[0].name:(null==v?void 0:v.length)===1?v[0].editorName:void 0,numberOfEditors:null==v?void 0:v.length,eventLocation:(null==v?void 0:v.length)===1?"editor_league":void 0,hasStarted:!0,isInLeagueHeader:!0,isOrganization:!!(null==p?void 0:p.organizations.length),userId:v&&v.length>1||null==v||null==(t=v[0])?void 0:t.id,onClick:v&&v.length>1&&!(null==p?void 0:p.organizations.length)?()=>g(!0):void 0};return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)(e8.az,{bg:"surface.s1",px:["lg",0],br:[void 0,"xl"],elevation:[void 0,3],position:"relative",children:[(0,s.jsxs)(nn.z4,{bgImageSrc:a.V3t.image(n.id),minH:[80,void 0],children:[(0,s.jsx)(e8.az,{br:"xs",w:[48,112],h:[48,112],ml:[0,"md"],mr:["md","xl"],bg:[void 0,"surface.s1"],elevation:[void 0,2],children:(0,s.jsx)(nt.e,{id:n.id,name:n.name,w:[48,88],h:[48,88],m:[0,"md"],mr:["xs","md"],style:{verticalAlign:"top"}})}),(0,s.jsxs)(e8.az,{flex:"1 1 auto",mr:[0,"lg"],children:[(0,s.jsxs)(e8.so,{align:"center",mt:["xs","sm"],wrap:"wrap",minH:"36",w:"100%",justify:"space-between",children:[(0,s.jsxs)(e8.az,{children:[(0,s.jsxs)(e8.so,{align:"center",children:[(0,s.jsxs)(e8.EY,{as:"h2",m:"0",font:["display.large","display.extraLarge"],c:["onSurface.nLv1","onColor.primary"],children:[u,(0,s.jsx)(nm,{uniqueTournamentId:n.id,seasonYear:null==j?void 0:j.year})]}),(0,s.jsx)(e8.az,{d:["none","inline-block"],mx:"sm",style:{verticalAlign:"middle"},children:(0,s.jsx)(nd.W,{groundType:n.groundType})}),m&&(0,s.jsx)(eV.e,{id:n.id,entity:a.bq7.Tournaments,location:Y.y.Header,type:Y.b.UniqueTournament,isOnOverlay:!0})]}),(0,s.jsx)(e8.so,{w:"100%",align:"center",justify:"space-between",children:(0,s.jsxs)(e8.so,{align:"center",children:[(0,s.jsx)(nt.w,{alpha2:n.category.alpha2,name:n.category.name,categoryId:n.category.id,w:[16,32],h:[16,32],mr:"sm"}),(0,s.jsxs)(e8.EY,{font:["body.medium","display.medium"],c:["onSurface.nLv1","onColor.primary"],mr:"sm",children:[" ",x?(0,s.jsx)(e8.EY,{as:"h3",font:["body.medium","display.medium"],c:["onSurface.nLv1","onColor.primary"],my:["sm",0],children:(0,s.jsx)(L.A,{id:"wc.history.title"})}):(0,s.jsx)(P.m,{slug:n.category.slug,name:n.category.name,uniqueTournament:n})]}),r&&(0,s.jsx)(e8.az,{position:"relative",zIndex:e8.Py.Fixed,children:(0,s.jsx)(no.s,{seasonId:r,seasons:i,onSeasonChange:l},n.id)})]})})]}),!m&&(0,s.jsx)(eV.e,{id:n.id,entity:a.bq7.Tournaments,location:Y.y.Header,type:Y.b.UniqueTournament})]}),!m&&(0,s.jsx)(e8.az,{d:["block","none"],mt:"sm",children:(0,s.jsx)(nd.W,{groundType:n.groundType})}),c?(0,s.jsx)(e8.az,{d:["none","block"],children:(0,s.jsx)(nl.G,{start:n.startDateTimestamp,end:n.endDateTimestamp})}):null]}),m&&(0,s.jsxs)(na.K,{id:n.id,name:u,entity:a.bq7.Tournaments,type:Y.b.UniqueTournament,children:[(0,s.jsx)(nt.e,{size:32,mr:"lg",style:{verticalAlign:"top"},id:n.id,name:n.slug}),(0,s.jsx)(e8.EY,{font:"display.medium",color:"primary.default",mr:"lg",children:u})]}),m&&!!(null==p?void 0:p.editors.length)&&(0,s.jsx)(e8.az,{mt:"xs",children:(0,s.jsx)(ns.i,{...y})})]}),c&&(0,s.jsx)(e8.az,{d:["block","none"],px:"sm",pb:"xs",children:(0,s.jsx)(nl.G,{start:n.startDateTimestamp,end:n.endDateTimestamp})})]}),!m&&!!(null==p?void 0:p.editors.length)&&(0,s.jsx)(e8.az,{bg:"surface.s1",borderTop:"onSurface.nLv4",px:"sm",pt:"sm",children:(0,s.jsx)(ns.i,{...y})}),(0,s.jsx)(nr,{isOpen:h,setIsOpen:g,editorData:p})]})}function nB(e){var t,n,i;let{uniqueTournament:r,seasons:l,activeSeasonId:o,setActiveSeasonId:d=X(),info:u,seo:c,activeTab:m,setActiveTab:x,hasStandingsData:p,hasEvents:h}=e,g=r.category.sport.slug,j=g===a.QCR.Tennis,v=l[0],y=l.find(e=>e.id===o),f=l[1]?l[1].name:"",{initialStandings:T}=(0,C.useContext)(G.O),b=j||!o||!ny.f.includes(g),{data:w}=(0,eT.Ay)(o&&ny.s.includes(g)?a.V3t.seasonTypes(r.id,o,"player"):null),{hasKnockoutTab:_,hasTopPlayersTab:k,hasTeamSeasonTypes:I,hasMediaTab:M,hasPowerRankings:A}=(0,D.A)({hasKnockoutTab:{route:a.V3t.cupTrees(r.id,o),skipCheck:!o},hasTopPlayersTab:{route:a.V3t.seasonTypes(r.id,o,j?"team":"player"),skipCheck:!o||!(0,nv.w)(g)},hasTeamSeasonTypes:{route:a.V3t.seasonTypes(r.id,o,"team"),skipCheck:b},hasMediaTab:{route:a.V3t.media(r.id)},hasPowerRankings:{route:a.V3t.powerRankingRounds(r.id,o)}},[o]),{data:P}=(0,eT.Ay)(b||!I?null:a.V3t.seasonTypes(r.id,o,"team")),{hasTopStatsTab:R}=(0,D.A)({hasTopStatsTab:{route:a.V3t.topPlayersPerGame(r.id,o,"all",(null==w?void 0:w.types[0])||a.Vw_.overall),skipCheck:!o||!ny.s.includes(g)||!(null==w||null==(t=w.types)?void 0:t[0])}},[w,o]),{hasTopTeamsTab:Y}=(0,D.A)({hasTopTeamsTab:{route:a.V3t.topTeams(r.id,o,(null==P?void 0:P.types[0])||a.Vw_.overall),skipCheck:b||!(null==P?void 0:P.types.length)}},[P,o]),q=!!(null==T?void 0:T.length)||p,E=(null==(n=l[0])?void 0:n.id)!==o||h||!o,F=[{tabKey:H.x.Standings,item:"app.standings",isHidden:!q},{tabKey:H.x.Details,item:"details"},{tabKey:H.x.Matches,item:"matches",values:{sport:(0,nT.ap)(g)},isHidden:!E},{tabKey:H.x.Knockout,item:"knockout",isHidden:!_},{tabKey:H.x.TopPlayers,item:"top_players",values:{gender:null!=(i=r.gender)?i:"M"},isHidden:!k},{tabKey:H.x.TopStats,item:"top_stats",isHidden:!R},{tabKey:H.x.TopTeams,item:"top_teams",isHidden:!Y},{tabKey:H.x.Media,item:"media",isHidden:!M},{tabKey:H.x.PowerRankings,item:"Power Rankings",isHidden:!A}];return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(nK,{uniqueTournament:r,seasons:l,seasonId:o,onSeasonChange:d}),(0,s.jsxs)(ee.A,{id:r.id,location:ee.C.UniqueTournamentPage,seasonId:o,initialTabKey:m,customControls:[m,x],tabs:F,children:[q&&(0,s.jsx)(nN,{uniqueTournament:r,seasonId:o,seo:c,lastSeasonName:f,currentSeason:v,selectedSeason:y,info:u}),(0,s.jsx)(nz,{uniqueTournament:r,seasonId:o,currentSeason:v,lastSeasonName:f,info:u,seo:c,onPowerRankingsClick:()=>x(H.x.PowerRankings),showAbout:!q}),E&&(0,s.jsx)(nR,{uniqueTournament:r,seasonId:o}),_&&(0,s.jsx)(nM.A,{uniqueTournament:r,seasonId:o,sport:g}),k&&(0,s.jsx)(nL,{uniqueTournament:r,seasonId:o}),R&&(0,s.jsx)(nQ,{uniqueTournament:r,seasonId:o,gender:r.gender}),Y&&(0,s.jsx)(nV,{uniqueTournament:r,seasonId:o}),M&&(0,s.jsx)(nq,{id:r.id}),A&&(0,s.jsx)(nE,{id:r.id,seasonId:o})]}),(0,s.jsx)(tp.hz,{uniqueTournamentId:r.id}),(0,s.jsx)(S.az,{mb:"sm",children:(0,s.jsx)(z.iN,{id:z.Rj.MOBILE_ENTITY_BOTTOM})})]})}function nZ(e){var t,n,i,r;let{uniqueTournament:l,seasons:o,initialStandings:d,initialHasHomeAway:u,hasEvents:c,hasCupTree:m,info:x}=e,p=!!(null==d?void 0:d.length),h=l.category.sport.slug,g=()=>K(x,l)?H.x.Details:p?H.x.Standings:m?H.x.Knockout:H.x.Details,[v,y]=(0,C.useState)(g()),f=(0,C.useMemo)(()=>{var e;return{id:null==(e=o[0])?void 0:e.id,tab:v}},[null==(t=o[0])?void 0:t.id]),[T,b]=(0,O.Ay)({routeKey:"uniqueTournament",params:{sport:h,category:l.category.slug,tournament:l.slug,id:l.id}},f),w=null==T?void 0:T.id,L=o.find(e=>e.id===w),W=e=>b("id",null==e?void 0:e.toString()),{hasStandingsData:Q}=(0,D.A)({hasStandingsData:{route:a.V3t.standings(l.id,w),skipCheck:!w}},[w]);(0,C.useEffect)(()=>{void 0!==Q&&y(Q?H.x.Standings:g())},[Q]),(0,C.useEffect)(()=>{if(!o.find(e=>e.id===Number(w))){var e;W(null==(e=o[0])?void 0:e.id)}},[l.id]),(0,C.useEffect)(()=>{o.length>0&&""===window.location.hash&&W(o[0].id)},[]);let U=(0,s.jsx)(S.az,{bg:{mdDown:"surface.s1"},children:(0,s.jsxs)(_.B,{children:[(0,s.jsx)(_.B.Item,{children:(0,s.jsx)(j.di,{translatedParams:{sport:h},children:(0,s.jsx)(N.o,{sportSlug:h})})}),(0,s.jsx)(_.B.Item,{children:(0,s.jsx)(j.Z6,{category:l.category,children:(0,s.jsx)(P.m,{...l.category,uniqueTournament:l})})}),(0,s.jsx)(_.B.Title,{children:(0,s.jsx)(V,{uniqueTournament:l,year:null==(n=o[0])?void 0:n.year})})]})});return(0,s.jsx)(G.O.Provider,{value:{uniqueTournamentId:l.id,uniqueTournamentName:l.name,seasonId:null==L?void 0:L.id,editor:null==L?void 0:L.editor,initialStandings:w===(null==(i=o[0])?void 0:i.id)?d:void 0,initialHasHomeAway:w===(null==(r=o[0])?void 0:r.id)?u:void 0},children:(0,s.jsx)(R.MC.Provider,{value:{isShort:a.HwS.includes(h),location:Y.y.MatchesSection},children:(0,s.jsxs)(k.Ws.Provider,{value:h,children:[(0,s.jsx)(A.$B,{children:(0,s.jsxs)(M.YW,{children:[U,(0,s.jsx)(nB,{...e,activeSeasonId:w?Number(w):void 0,setActiveSeasonId:W,activeTab:(null==T?void 0:T.tab)||v,setActiveTab:e=>b("tab",e),hasStandingsData:Q,hasEvents:c})]})}),(0,s.jsx)(A.h6,{children:(0,s.jsxs)(z.JR,{route:I.xW.UniqueTournament,children:[U,(0,s.jsx)(nf,{...e,activeSeasonId:w?Number(w):void 0,setActiveSeasonId:W,hasEvents:c,hasInitialStandings:p,activeTab:(null==T?void 0:T.tab)||v,setActiveTab:e=>b("tab",e)})]})}),(0,s.jsx)(q.A,{entity:a.bq7.MutedTournaments,entityGroup:"tournament",id:l.id,entityTournamentId:l.id}),(0,s.jsx)(E.N,{page:{location:F.XN.LeagueScreen,entity:l}})]})})})}var nX=n(71937),nJ=n(25862),n$=n(65097);let n0=[a.QCR.Football,a.QCR.Tennis],n1={2122:{competitionName:"Champions League",gender:a.YT8.Male,type:"none"},9500:{competitionName:"Champions League",gender:a.YT8.Female,type:"none"},11457:{competitionName:"European Championship",gender:a.YT8.Male,type:"D"},11458:{competitionName:"European Championship",gender:a.YT8.Female,type:"D"},11459:{competitionName:"European Championship",gender:a.YT8.Mixed,type:"D"},11455:{competitionName:"European Championship",gender:a.YT8.Male,type:"S"},11456:{competitionName:"European Championship",gender:a.YT8.Female,type:"S"},9550:{competitionName:"ETTU Cup",gender:a.YT8.Male,type:"none"},9534:{competitionName:"ETTU Cup",gender:a.YT8.Female,type:"none"},564:{competitionName:"Olympic games",gender:a.YT8.Male,type:"S"},565:{competitionName:"Olympic games",gender:a.YT8.Female,type:"S"},1121:{competitionName:"Olympic games",gender:a.YT8.Male,type:"T"},1123:{competitionName:"Olympic games",gender:a.YT8.Female,type:"T"},11579:{competitionName:"World Championships",gender:a.YT8.Male,type:"S"},11586:{competitionName:"World Championships",gender:a.YT8.Female,type:"S"},11587:{competitionName:"World Championships",gender:a.YT8.Mixed,type:"D"},11580:{competitionName:"World Championships",gender:a.YT8.Male,type:"D"},11585:{competitionName:"World Championships",gender:a.YT8.Female,type:"D"},1966:{competitionName:"World Cup",gender:a.YT8.Male,type:"none"},1964:{competitionName:"World Cup",gender:a.YT8.Female,type:"none"},11604:{competitionName:"World Junior Championship",gender:void 0,type:"none"},10698:{competitionName:"World Junior Championship",gender:void 0,type:"none"},10697:{competitionName:"World Junior Championship",gender:void 0,type:"none"},10699:{competitionName:"World Junior Championship",gender:void 0,type:"none"},10700:{competitionName:"World Junior Championship",gender:void 0,type:"none"},15004:{competitionName:"Setka Cup",gender:a.YT8.Male,type:"none"},15007:{competitionName:"Setka Cup",gender:a.YT8.Female,type:"none"},15005:{competitionName:"TT Cup",gender:a.YT8.Male,type:"none"},15009:{competitionName:"TT Cup",gender:a.YT8.Female,type:"none"},15001:{competitionName:"Ukraine Win Cup",gender:a.YT8.Male,type:"none"},15068:{competitionName:"Ukraine Win Cup",gender:a.YT8.Female,type:"none"}},n9=[a.QCR.Football,a.QCR.Basketball,a.QCR.Cricket,a.QCR.Darts,a.QCR.IceHockey,a.QCR.Handball,a.QCR.Volleyball,a.QCR.Rugby,a.QCR.AmericanFootball,a.QCR.Baseball];function n5(e){var t;if("error"in e)return(0,s.jsx)(n$.default,{statusCode:404});let{uniqueTournament:n,seasons:i,seo:c,info:m,params:x,meta:p,seoContent:g,locale:j,standings:v,hasHomeAwayStandings:y,hasEvents:T,hasCupTree:b}=e;if(!n)return null;let w=n.category.sport.slug,S=n.id===a.G6l.Euro,C=n.id===a.G6l.WorldCup,_=S&&i.length?"Euro ".concat(i[0].year):n.name,k=S&&i.length?"European Championship ".concat(i[0].year):n.name,I=n1[n.id]||void 0,z=n0.includes(w)||!!g||I||f(n.id),M=(null==(t=n.category.alpha2)?void 0:t.toLowerCase())||"",A=!p&&(i.every(e=>e.editor)?!(0,l.N)(M,j):!z||(0,o.v)(w,j));return(0,s.jsxs)(u.an,{value:{meta:p,seoContent:g},children:[(0,s.jsxs)(r(),{children:[A&&(0,s.jsx)("meta",{name:"robots",content:"noindex, nofollow"}),(0,s.jsx)("link",{rel:"canonical",href:"https://www.sofascore.com".concat(d.z.getTranslatedCanonicalRoute(j,"uniqueTournament",x).route)}),(0,s.jsx)("link",{rel:"alternate",href:"android-app://com.sofascore.results/https/www.sofascore.com/league/".concat(x.id)})]}),(0,s.jsx)(h,{uniqueTournament:n}),(0,s.jsx)(u.Ay,{metaKey:I?"standings.tabletennis":"standings",titleKey:C?"ut.worldCup":S?"ut.euro":void 0,descriptionKey:C?"ut.worldCup":S?"ut.euro":void 0,values:{item:_,fullItem:k,...I||{}}}),(0,s.jsx)(nZ,{uniqueTournament:n,seasons:i,seo:c,info:m,initialStandings:v,initialHasHomeAway:y,hasEvents:T,hasCupTree:b})]})}n5.getInitialProps=nX.A.getInitialPageProps(e=>async t=>{let{query:n,req:s,res:i,...r}=t,l=s?s._originalUrl:r.asPath,o=d.z.getCurrentLocale(l),u=s&&s.params?s.params:n,c=Number(u.id),m=d.z.getSportKey(u.sport,o);try{let t,n,s,r,l,[x,p,h,g,j]=await Promise.allSettled([a.jFR.fetchUniqueTournamentDetails(c),a.jFR.fetchUniqueTournamentSeasons(c),a.jFR.fetchUniqueTournamentSeo(c),a.sdF.getEntityMeta("uniquetournament",c,o),n9.includes(m)?a.sdF.getSeoContent(a.wNW.UniqueTournament,c,o):Promise.reject()]);if("rejected"===x.status)throw Error("Unique tournament does not exist");let v=x.value.uniqueTournament,y="fulfilled"===p.status?p.value.seasons:[];i&&v.category.sport.slug===a.QCR.MMA&&(i.writeHead(301,{Location:d.z.getTranslatedRoute(o,"mma.organisation",{organisationId:v.id,slug:v.slug,sport:v.category.sport.slug}).route}),i.end()),i&&(v.slug!==u.tournament||v.category.slug!==u.category)&&(i.writeHead(301,{Location:d.z.getTranslatedRoute(o,"uniqueTournament",{...u,category:v.category.slug,tournament:v.slug}).route}),i.end());let f=y.length?y[0].id:void 0;if(f){let[e,i,o,d,u,m]=await Promise.allSettled([a.jFR.fetchUniqueTournamentInfo(c,f),a.jFR.fetchStandings(c,f),(0,a.m_X)(a.V3t.standings(c,f,a.lpv.Home)),(0,a.m_X)(a.V3t.events(c,f,!0)),(0,a.m_X)(a.V3t.events(c,f)),(0,a.m_X)(a.V3t.cupTrees(c,f))]);t="fulfilled"===e.status?e.value.info:void 0,n="fulfilled"===i.status?i.value.standings:void 0,s="fulfilled"===o.status&&o.value,r="fulfilled"===d.status&&"fulfilled"===u.status?d.value||u.value:void 0,l="fulfilled"===m.status}let T="fulfilled"===h.status?h.value.meta:void 0,b="fulfilled"===g.status?g.value.entityMeta:void 0,w="fulfilled"===j.status?j.value.content:void 0;return e.dispatch((0,nJ.Vy)(v.category.sport.slug)),{uniqueTournament:v,seasons:y,seo:T,info:t,params:u,meta:b,seoContent:w,locale:o,standings:n,hasHomeAwayStandings:s,hasEvents:r,hasCupTree:l}}catch(e){return i&&(i.statusCode=404),{error:e}}})},98423:(e,t,n)=>{"use strict";n.d(t,{e:()=>a.e,p:()=>s.p});var s=n(91603),a=n(33480)},98888:(e,t,n)=>{var s=n(11061);e.exports=function(e){var t=s(e),n=t%1;return t==t?n?t-n:t:0}}},e=>{var t=t=>e(e.s=t);e.O(0,[14092,19888,10395,83170,58621,84977,50346,60988,857,19907,39462,18017,31254,74224,9536,77536,57632,19622,26184,43621,64489,90636,46593,38792],()=>t(28167)),_N_E=e.O()}]);