!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]="2f2a4c3c-2d5f-4f41-89d4-08af833b7135",e._sentryDebugIdIdentifier="sentry-dbid-2f2a4c3c-2d5f-4f41-89d4-08af833b7135")}catch(e){}}(),(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[29097],{1639:(e,t,n)=>{"use strict";n.d(t,{l:()=>u,W:()=>c});var a=n(6029),s=n(46787),i=n(10174),r=n(62042),l=n(76356),o=n(83359);let d=(0,r.Fj)({base:{display:"inline-block",borderRadius:"md",px:"sm"},variants:{groundType:{[s.QWe.HardcourtIndoor]:{bg:"tennis.terrain.hardcourtIndoor"},[s.QWe.HardcourtOutdoor]:{bg:"tennis.terrain.hardcourtOutdoor"},[s.QWe.Hard]:{bg:"tennis.terrain.hardcourtOutdoor"},[s.QWe.CarpetIndoor]:{bg:"tennis.terrain.default"},[s.QWe.Grass]:{bg:"tennis.terrain.grass"},[s.QWe.Clay]:{bg:"tennis.terrain.clay"},[s.QWe.RedClay]:{bg:"tennis.terrain.clay"},[s.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,a.jsx)(u,{groundType:t,children:(0,a.jsx)(i.EY,{display:"block",textStyle:"assistive.default",h:"lg",color:"surface.s1",children:(0,a.jsx)(o.n,{id:t})})}):null}},3483:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>Y});var a=n(6029),s=n(98423),i=n(46787),r=n(10174),l=n(76356),o=n(94565),d=n(55729),u=n(947),c=n(90248),m=n(46222),p=n(18970),g=n(52736),h=n(51283),x=n(64178),j=n(63435),v=n(17152),y=n(91113),f=n(18858),b=n(33144),T=n(64006),w=n(26286),_=n(88505);function k(){return(0,a.jsx)(l.az,{children:Array.from({length:3}).map((e,t)=>(0,a.jsx)(l.az,{h:"5xl"},t))})}function C(e){let{teams:t,selectedStat:n,showFullListWithIndexes:s,sport:i,children:o}=e,d=s?t:t.slice(0,3);return(null==t?void 0:t.length)&&n?(0,a.jsxs)(l.az,{pb:"sm",children:[d.map((e,t)=>(0,a.jsx)(T.gT,{sport:i,team:e.team,children:(0,a.jsxs)(l.so,{h:"5xl",align:"center",gap:"sm",px:"lg",_hover:{bg:"surface.s2"},cursor:"pointer",children:[s&&(0,a.jsx)(r.EY,{textStyle:"body.small",w:"lg",textAlign:"center",display:"block",children:t+1}),(0,a.jsxs)(l.so,{grow:1,align:"center",children:[(0,a.jsx)(b.p,{id:e.team.id,size:40}),(0,a.jsx)(r.EY,{ml:"lg",display:"block",children:(0,a.jsx)(_.Rm,{team:e.team})})]}),(0,a.jsx)(l.so,{minW:"6xl",justify:"flex-end",children:(0,a.jsx)(r.EY,{children:(0,a.jsx)(w.A,{stat:e.statistics,selectedStat:n,sport:i})})})]})},e.team.id)),o]}):(0,a.jsx)(k,{})}var S=n(45860),I=n(21518),z=n(93785),A=n(30269),M=n(50865);let P="all-division",R=e=>{let{options:t,sport:n}=e,s=(0,f.Ay)();return(0,a.jsx)(o.PI,{top:s,bg:"surface.s1",zIndex:o.Py.Sticky-1,children:e=>(0,a.jsx)(l.az,{borderBottom:e?void 0:"1px solid {colors.neutrals.nLv4}",elevation:e?"2":void 0,children:(0,a.jsx)(h.F,{items:t,sport:n})})})};function E(e){let{division:t,setDivision:n,divisions:o}=e,{uniqueTournamentId:u,uniqueTournamentName:c}=(0,d.useContext)(M.O),m={[P]:null!=c?c:"-",...i.Wb};return(0,a.jsx)(r.ms,{label:"Select division in top teams",items:[P,...o],renderItem:e=>(0,a.jsxs)(l.so,{align:"center",gap:"sm",children:[(0,a.jsx)(s.e,{id:u,size:24}),(0,a.jsx)(r.EY,{lineHeight:1,children:m[e]})]}),selectedItem:null!=t?t:P,onSelectedItemChange:e=>{let{selectedItem:t}=e;return n(t===P?void 0:t)}})}let Y=e=>{let{uniqueTournamentId:t,seasonId:n}=e,o=(0,u.A)(),h=(0,d.useContext)(p.Ws),[f,b]=(0,d.useState)(!1),[T,w]=(0,d.useState)(""),[_,k]=(0,d.useState)([]),{division:M,setDivision:P,divisions:Y}=function(e,t){let[n,a]=(0,d.useState)(),{data:s,isLoading:r,error:l}=(0,S.Ay)(e&&t?i.V3t.divisions(e,t):null);if(r||l||!s)return{division:n,setDivision:a,divisions:[]};let o=function(e){let t=[],n=[];for(let{conference:a,divisions:s}of e.divisions)t.push(a),n.push(...s);return[...t,...n]}(s);return 35115===t&&(o=["central-division"]),{division:n,setDivision:a,divisions:o}}(t,n),q=(0,I.A)({uniqueTournamentId:t,seasonId:n,division:M}),H=h===i.QCR.Tennis,N=h?(0,x.f)(h):null,{topTeams:F,stats:D,types:L,activeType:O,setActiveType:W}=q,B=null==D?void 0:D.map(e=>({value:e,label:H?o.formatMessage({id:(0,y.O)(i.QCR.Tennis,e)}):(0,j.b)(o,e,null==N?void 0:N.includes(e))}));return(0,a.jsxs)(a.Fragment,{children:[!!Y.length&&(0,a.jsx)(l.so,{hideFrom:"md",bg:"surface.s1",p:"sm",elevation:"2",borderBottom:"1px solid {colors.neutrals.nLv4}",children:(0,a.jsx)(E,{division:M,setDivision:P,divisions:Y})}),!!L&&L.length>1&&!!O&&(0,a.jsx)(l.az,{hideFrom:"md",bg:"surface.s1",p:"sm",elevation:"2",borderBottom:"1px solid {colors.neutrals.nLv4}",children:(0,a.jsx)(A.A,{selectedType:O,setSelectedType:W,types:L})}),(0,a.jsx)(R,{options:B,sport:h}),(0,a.jsx)(m.BU,{children:!!(null==B?void 0:B.length)&&B.map(e=>{var t,n,i;let o=F&&e&&F[e.value]||[],d=(0,x.g)(h);return((null==d?void 0:d.includes(e.value))||!d)&&(0,a.jsx)(m.Zp,{children:(0,a.jsxs)(l.az,{id:null==(t=e.value)?void 0:t.toLowerCase(),children:[(0,a.jsxs)(l.so,{align:"center",justify:"space-between",p:"lg",pr:"xs",children:[(0,a.jsxs)(l.so,{align:"center",children:[(0,a.jsx)(r.EY,{textStyle:"display.small",children:(0,a.jsx)(z.A,{id:e.value})}),"avgRating"===e.value&&(0,a.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,a.jsx)(s.p,{id:null==o||null==(t=o[0])?void 0:t.team.id,...e})}})]}),(0,a.jsx)(r.$n,{size:"tertiary",variant:"clear",onClick:()=>{var t;return t=e.value,void(b(!0),w(t),k(o))},children:(0,a.jsx)(r.EY,{textStyle:"display.small",color:"primary.default",children:(0,a.jsx)(c.A,{id:"see_all"})})})]}),(0,a.jsx)(C,{teams:o,selectedStat:e.value,sport:h,children:"avgRating"===e.value&&(0,a.jsx)(g.b,{mx:"sm",messageId:"rating_top_teams_general"})})]})},e.value)})}),(0,a.jsxs)(r.Xn,{isOpen:f,onClose:()=>{b(!1)},title:(0,a.jsx)(z.A,{id:T}),size:"contentFit",children:["avgRating"===T&&(0,a.jsx)(g.b,{mx:"sm",mb:"sm",messageId:"rating_top_teams_specific"}),(0,a.jsx)(C,{teams:_,selectedStat:T,showFullListWithIndexes:!0,sport:h})]})]})}},3881:(e,t,n)=>{"use strict";n.d(t,{E:()=>l});var a=n(64082),s=n(6029),i=n(94565),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,p=(0,a.T)(e,["height","width","rowHeight","wrapperStyle","rows","animate","rowGap","uniqueKey"]);return 0===t?null:(0,s.jsx)(i.az,Object.assign({maxW:"100%",bg:"surface.s1",overflow:"hidden"},p,{style:o,children:(0,s.jsx)(r.D,{animate:u,width:n,height:d&&l?d*(l+c):t,uniqueKey:m,children:(0,s.jsx)(s.Fragment,{children:d?Array(d).fill(null).map((e,t)=>(0,s.jsx)("rect",{x:0,y:t*(l+c),width:"100%",height:l},t)):(0,s.jsx)("rect",{x:0,y:0,width:"100%",height:t})})})}))}},7078:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>x});var a=n(6029),s=n(10174),i=n(76356),r=n(55729),l=n(90248),o=n(46222),d=n(14868),u=n(74610),c=n(9081),m=n(95798),p=n(41080),g=n(77474),h=n(56653);function x(e){let{isMobile:t}=(0,s.$c)(),[n,x]=(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 b=!t&&!!y&&y.length>5;return(0,a.jsx)(u.t,{tag:"PowerRankings",children:(0,a.jsxs)(o.Zp,{children:[(0,a.jsx)(o.Zp.Header,{title:(0,a.jsx)(l.A,{id:"sofascore_power_rankings"}),actionComponent:(0,a.jsx)(g.h,{})}),f&&j&&(0,a.jsx)(i.az,{mb:"sm",p:"sm",children:(0,a.jsx)(s.ms,{label:"Select round in power rankings",items:f,initialSelectedItem:f[0],onSelectedItemChange:e=>{let{selectedItem:t}=e;t&&v(t.id)},renderItem:e=>(0,a.jsx)(c.DT,{round:null==e?void 0:e.round})})}),(0,a.jsx)(h.i,{}),(0,a.jsx)(p.a,{rankings:null==y?void 0:y.slice(0,n?y.length:5)}),(0,a.jsx)(o.Zp.Footer,{ctaParams:b?{messageId:n?"show_less":"show_more",onClick:()=>x(e=>!e),icon:n?d.X.Up:d.X.Down}:void 0})]})})}},11061:(e,t,n)=>{var a=n(22479),s=1/0;e.exports=function(e){return e?(e=a(e))===s||e===-s?(e<0?-1:1)*17976931348623157e292:e==e?e:0:0===e?e:0}},13731:(e,t,n)=>{var a=n(53325),s=n(25725),i=Object.prototype.hasOwnProperty;e.exports=s(function(e,t,n){i.call(e,n)?e[n].push(t):a(e,n,[t])})},15538:(e,t,n)=>{"use strict";n.d(t,{J:()=>a});var a=function(e){return e[e.SpecificRatingPlayer=0]="SpecificRatingPlayer",e[e.AverageRatingTeam=1]="AverageRatingTeam",e[e.AverageRating=2]="AverageRating",e[e.AverageRatingTeamLineups=3]="AverageRatingTeamLineups",e[e.AverageRatingPlayer=4]="AverageRatingPlayer",e}({})},17152:(e,t,n)=>{"use strict";n.d(t,{D:()=>S});var a=n(6029),s=n(87827),i=n(46787),r=n(10174),l=n(62042),o=n(76356),d=n(55729),u=n(947),c=n(90248),m=n(52466),p=n(82536),g=n(31830),h=n(18970),x=n(15538),j=n(19991),v=n(94565),y=n(28446),f=n(41735);let b=(0,f.default)(v.az).withConfig({componentId:"sc-12120f08-0"})(["animation:"," 660ms ease-in-out 1;animation-delay:330ms;animation-fill-mode:forwards;"],e=>{let t;return t=e.ratingPosition,(0,f.keyframes)(["from{left:0;}to{left:",";}"],t)}),T=["3.0","6.0","6.5","7.0","8.0","9.0"],w=(0,y.A)().domain([3,6,6.5,7,8,9,10]).range([0,16.66666,33.33333,50,66.66666,83.33333,100]);function _(e){let{rating:t,format:n}=e;return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)(v.so,{id:"#container",position:"relative",mx:"sm",mb:"xs",children:[T.map((e,t)=>(0,a.jsx)(v.az,{flex:"1 1 1px",br:0===t?"xs 0 0 xs":5===t?"0 xs xs 0":void 0,bg:(0,j.Et)(e),h:"16"},e)),t&&(0,a.jsx)(b,{position:"absolute",top:"-2",ratingPosition:w(+t)+"%",w:"2",h:"20",bg:"neutral.variant"})]}),(0,a.jsx)(v.so,{justify:"space-between",children:[...T,"10"].map(e=>(0,a.jsxs)(v.EY,{color:(0,j.Et)(e),font:"tab.secondary",children:[e,"sideBox"===n&&"10"!==e?"0":""]},e))})]})}var k=n(96688);let C=(0,l.AH)({"& > div > div":{zoom:2.5},"& span":{zoom:2.5}});function S(e){let{type:t,rating:n=10,renderImage:l,children:j}=e,v=(0,u.A)(),[y,f]=(0,d.useState)(!1),{isDesktop:b}=(0,r.$c)(),T=(0,d.useContext)(h.Ws)===i.QCR.Football,w=(0,g.A)(),S=(0,k.y)(w),I="",z="box",A="sofascore_rating",M="";switch(t){case x.J.SpecificRatingPlayer:I="rating_general_text",M=[v.formatMessage({id:"rating_top_stats_general"}),v.formatMessage({id:"rating_top_stats_specific"})].join(" ");break;case x.J.AverageRatingTeam:I="average_team_rating_text",z="sideBox",M=[v.formatMessage({id:"rating_top_teams_general"}),v.formatMessage({id:"rating_top_teams_specific"})].join(" ");break;case x.J.AverageRating:I="average_team_rating_match",z="sideBox",A="average_sofascore_rating";break;case x.J.AverageRatingTeamLineups:I="average_team_rating_text",z="sideBox";break;case x.J.AverageRatingPlayer:I="average_player_rating_text",z="sideBox"}return(0,a.jsxs)(a.Fragment,{children:["function"==typeof j?(0,a.jsx)(a.Fragment,{children:j({isOpen:y,setIsOpen:f})}):null!=j?j:(0,a.jsx)(r.m_,{content:M,strategy:""!==M&&b?"hover":"controlled",isVisible:!1,children:(0,a.jsx)(r.K0,{mx:"xs",variant:"clear",onClick:()=>{f(!0)},children:(0,a.jsx)(m.G_L,{fill:"onSurface.nLv1"})})}),(0,a.jsxs)(p.A,{header:(0,a.jsx)(r.H3,{p:"lg",textStyle:"display.large",children:(0,a.jsx)(c.A,{id:A})}),isOpen:y,setIsOpen:f,footer:(0,a.jsx)(o.so,{justify:"flex-end",m:T?"[0 {spacing.lg} {spacing.lg} {spacing.lg}]":{base:"lg",mdDown:"[0 {spacing.lg} {spacing.lg} {spacing.lg}]"},children:(0,a.jsx)(r.$n,{w:{base:"auto",mdDown:"100%"},onClick:()=>{f(!1)},variant:b?"clear":void 0,children:(0,a.jsx)(c.A,{id:"ok_got_it_button"})})}),children:[(0,a.jsxs)(o.az,{maxW:{md:"[320px]"},px:"lg",mb:T?void 0:{mdDown:"2xl"},children:[I&&(0,a.jsx)(c.A,{id:I,values:{break:e=>(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("br",{}),(0,a.jsx)("br",{})]})}}),(0,a.jsxs)(o.so,{justify:"center",align:"center",pt:"4xl",pb:"xl",children:[(0,a.jsx)(o.az,{className:"sideBox"===z?C:void 0,children:(0,a.jsx)(s.G,{size:"xl",rating:n,format:z})}),null==l?void 0:l({size:40,ml:"lg"})]}),(0,a.jsx)(_,{rating:n,format:z})]}),T&&(0,a.jsx)(o.az,{px:"lg",py:"4xl",pb:"2xl",children:(0,a.jsxs)(r.Mz,{display:"block",color:"primary.default",textStyle:"display.small",href:S,target:"_blank",onClick:()=>{f(!1)},children:[(0,a.jsx)(c.A,{id:"rating_learn_more_button"}),(0,a.jsx)(m.CCT,{ml:"xs",w:"16",h:"16",fill:"primary.default"})]})})]})]})}S.type=x.J},17554:(e,t,n)=>{"use strict";n.d(t,{E5:()=>l,fz:()=>o,hE:()=>d});var a=n(6029),s=n(10174),i=n(90248),r=n(49188);function l(e){let{children:t,title:n,titleValues:l,titleHidden:o}=e;return t?(0,a.jsxs)(r.E,{children:[!o&&n&&(0,a.jsx)(s.H2,{textStyle:"display.medium",mb:"md",children:(0,a.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 a=n(46787),s=n(55729),i=n(45860),r=n(18970),l=n(98076);function o(e){let{uniqueTournamentId:t,seasonId:n,division:o,overrideSeasonType:d}=e,u=(0,s.useContext)(r.Ws),{types:c,currentType:m,setCurrentType:p,isLoading:g,isError:h}=(0,l.A)(t,n,u,"team",d),x=u===a.QCR.Tennis?"mainDraw":m,j=t&&n&&!g?a.V3t.topTeams(t,n,x,o):null,{data:v,error:y}=(0,i.Ay)(j),f=null==v?void 0:v.topTeams,b=f?Object.keys(f):[],[T,w]=(0,s.useState)(""),_=f&&T&&f[T]?f[T].map(e=>({team:e.team,stats:e.statistics})):[];return(0,s.useEffect)(()=>{w("")},[t]),(0,s.useEffect)(()=>{b.length&&!T&&w(b[0])},[null==b?void 0:b.length]),{topTeams:f,stats:b,activeStat:T,setActiveStat:w,types:c,activeType:m,setActiveType:p,activeTeams:_,isError:!!y||h,isLoading:(!v||!T)&&!y}}},22613:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>ai});var a=n(6029),s=n(46787),i=n(95669),r=n.n(i),l=n(67086),o=n(94164),d=n(88715),u=n(4917),c=n(947),m=n(58771),p=n(31830),g=n(92208);function h(e){let{uniqueTournament:t}=e,n=(0,c.A)(),i=(0,p.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(s.VTF).concat(d.z.getTranslatedRoute(i,"eventList",{sport:o.slug}).route)},{"@type":"ListItem",position:2,name:n.formatMessage({id:l.slug}),item:"".concat(s.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:s.V3t.image(t.id),url:"https://www.sofascore.com/tournament/".concat(o.slug,"/").concat(l.slug,"/").concat(t.slug,"/").concat(t.id),sameAs:(0,g._z)(t.id,i)};return(0,a.jsxs)(r(),{children:[(0,a.jsx)("script",{...(0,m.QQ)(u)}),",",(0,a.jsx)("script",{...(0,m.QQ)(h)}),","]})}var x=n(17554),j=n(64006);function v(){return(0,a.jsx)(x.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}};function b(e){var t;let n=f(e.uniqueTournament.id);if(!n)return null;let i=(t=e.uniqueTournament.name).includes("Women")?s.YT8.Female:t.includes("Mixed")?s.YT8.Mixed:t.includes("Boys")?"B":t.includes("Girls")?"G":s.YT8.Male,r=e.uniqueTournament.name.includes("Doubles")?"D":"S";return(0,a.jsxs)(y.J,{children:[(0,a.jsx)(x.fz,{id:"about.tt.ittf.challenge.1",values:{gender:i,type:r,tournamentName:n}}),(0,a.jsx)(v,{})]})}var T=n(76356),w=n(55729),_=n(88658),k=n(18970),C=n(90438),S=n(52763),I=n(25246),z=n(78767),A=n(60475),M=n(36678),P=n(36882),R=n(39979),E=n(56132),Y=n(73232),q=n(95084),H=n(99306),N=n(11996),F=n(79082),D=n(90248),L=n(91647);let O={"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"},W={1858:{id:"headerTitle.tt.bundesliga"},2122:{id:"headerTitle.tt.cl",values:{gender:s.YT8.Male}},9500:{id:"headerTitle.tt.cl",values:{gender:s.YT8.Female}},11457:{id:"headerTitle.tt.ec",values:{gender:s.YT8.Male,type:"D"}},11458:{id:"headerTitle.tt.ec",values:{gender:s.YT8.Female,type:"D"}},11459:{id:"headerTitle.tt.ec",values:{gender:s.YT8.Mixed,type:"D"}},11455:{id:"headerTitle.tt.ec",values:{gender:s.YT8.Male,type:"S"}},11456:{id:"headerTitle.tt.ec",values:{gender:s.YT8.Female,type:"S"}},9550:{id:"headerTitle.tt.ettu",values:{gender:s.YT8.Male}},9534:{id:"headerTitle.tt.ettu",values:{gender:s.YT8.Female}},564:{id:"headerTitle.tt.oly.wcships",values:{comp:"O",gender:s.YT8.Male,type:"S"}},565:{id:"headerTitle.tt.oly.wcships",values:{comp:"O",gender:s.YT8.Female,type:"S"}},1121:{id:"headerTitle.tt.oly.wcships",values:{comp:"O",gender:s.YT8.Male,type:"T"}},1123:{id:"headerTitle.tt.oly.wcships",values:{comp:"O",gender:s.YT8.Female,type:"T"}},11579:{id:"headerTitle.tt.oly.wcships",values:{comp:"WC",gender:s.YT8.Male,type:"S"}},11586:{id:"headerTitle.tt.oly.wcships",values:{comp:"WC",gender:s.YT8.Female,type:"S"}},11587:{id:"headerTitle.tt.oly.wcships",values:{comp:"WC",gender:s.YT8.Mixed,type:"D"}},11580:{id:"headerTitle.tt.oly.wcships",values:{comp:"WC",gender:s.YT8.Male,type:"D"}},11585:{id:"headerTitle.tt.oly.wcships",values:{comp:"WC",gender:s.YT8.Female,type:"D"}},1966:{id:"headerTitle.tt.wc",values:{gender:s.YT8.Male}},1964:{id:"headerTitle.tt.wc",values:{gender:s.YT8.Female}},11604:{id:"headerTitle.tt.junior.wc",values:{gender:s.YT8.Male,type:"S"}},10698:{id:"headerTitle.tt.junior.wc",values:{gender:s.YT8.Female,type:"S"}},10697:{id:"headerTitle.tt.junior.wc",values:{gender:s.YT8.Mixed,type:"D"}},10699:{id:"headerTitle.tt.junior.wc",values:{gender:s.YT8.Male,type:"D"}},10700:{id:"headerTitle.tt.junior.wc",values:{gender:s.YT8.Female,type:"D"}},15004:{id:"headerTitle.tt.setka.tt.uwc",values:{comp:"S",gender:s.YT8.Male}},15007:{id:"headerTitle.tt.setka.tt.uwc",values:{comp:"S",gender:s.YT8.Female}},15005:{id:"headerTitle.tt.setka.tt.uwc",values:{comp:"TT",gender:s.YT8.Male}},15009:{id:"headerTitle.tt.setka.tt.uwc",values:{comp:"TT",gender:s.YT8.Female}},15001:{id:"headerTitle.tt.setka.tt.uwc",values:{comp:"UWC",gender:s.YT8.Male}},15068:{id:"headerTitle.tt.setka.tt.uwc",values:{comp:"UWC",gender:s.YT8.Female}}};function B(e){let{uniqueTournament:t,year:n}=e,{meta:i,seoContent:r}=(0,w.useContext)(u.x),l=(0,c.A)(),o=(0,L.N)(t),d=(0,A.Hw)(t.category);if(null==r?void 0:r.heading)return(0,a.jsx)(a.Fragment,{children:r.heading});if(i&&i.h1)return(0,a.jsx)(a.Fragment,{children:i.h1});if(t.id===s.G6l.Euro&&n)return(0,a.jsx)(D.A,{id:"headerTitle.ut.euro",values:{year:n}});if(t.id===s.G6l.WorldCup)return(0,a.jsx)(D.A,{id:"headerTitle.ut.worldCup"});let m=t.category.sport.slug;if(m===s.QCR.Tennis){let e=t.category.slug,n={categoryName:"itf-men"===e||"itf-women"===e?"ITF":d,tournamentName:t.name};if(0===n.tournamentName.indexOf(n.categoryName)&&(n.categoryName=""),2361===t.id||2600===t.id)return(0,a.jsx)(a.Fragment,{children:l.formatMessage({id:"headerTitle.tennis.v2"},n).trim()});if(O[e])return(0,a.jsx)(a.Fragment,{children:l.formatMessage({id:O[e]},n).trim()})}return m===s.QCR.TableTennis&&W[t.id]?(0,a.jsx)(D.A,{id:W[t.id].id,values:W[t.id].values}):(0,a.jsx)(D.A,{id:"headerTitle.standings",values:{item:o}})}var Q=n(50865);let U=(e,t)=>{var n,a,s,i,r,l,o;return!!(null==e?void 0:e.winner)||!!(null==e||null==(n=e.newcomersUpperDivision)?void 0:n.length)||!!(null==e||null==(a=e.newcomersLowerDivision)?void 0:a.length)||!!(null==e||null==(s=e.newcomersOther)?void 0:s.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)};var G=n(78383),V=n.n(G),K=n(46222),Z=n(20945),X=n(2920),J=n(32523),$=n(71024),ee=n.n($),et=n(74610),en=n(17135),ea=n(79634),es=n(94822),ei=n(2061),er=n(61321),el=n(47151),eo=n(95404),ed=n(78952),eu=n(71587),ec=n(60067),em=n(17423),ep=n(10174),eg=n(52466),eh=n(83716),ex=n(85339),ej=n(22932);let ev=e=>{let{page:t}=e,n=(0,c.A)(),i=(0,p.A)(),{isMobile:r}=(0,ep.$c)();if(!(0,ej._)(t,ex.e8))return null;let l=d.z.getTranslatedRoute(i,"fantasy").route;return(0,a.jsx)(eh.Q,{banner:{logo:(0,a.jsx)(eg.azT,{w:"100%",h:"100%",fill:"onColor.primary"}),copy:{sectionTitle:n.formatMessage({id:"fantasy"}),description:n.formatMessage({id:"fantasy_ucl_banner_body"}),action:n.formatMessage({id:"fantasy_play_now_button"})},type:s.$pL.CreativeBannerLarge,background:s.jae.Image,campaignName:"promotion_ucl_fantasy",url:l},isDismissible:r,bgImageUrl:r?"/static/images/ucl-fantasy-promotion/ucl-fantasy-promotion-banner-mobile.png":"/static/images/ucl-fantasy-promotion/ucl-fantasy-promotion-banner-desktop.png",location:t.location})};var ey=n(12157),ef=n(19621),eb=n(494),eT=n(74664),ew=n(72753),e_=function(e){return e[e.NFL=9464]="NFL",e[e.MLB=11205]="MLB",e[e.NBA=132]="NBA",e[e.NHL=234]="NHL",e}(e_||{});let ek={9464:["US","CA","GB","AU","NZ","IE"],11205:["US","CA","GB","AU","NZ","IE"],132:["US","CA","GB","AU","NZ","IE"],234:["US","CA","GB","AU","NZ","IE"]};function eC(e){return"".concat("https://embed.sendtonews.com/player3/embedcode.js","?fk=").concat(e)}function eS(e){let{videoPlayerId:t,uniqueTournamentId:n}=e,s=(0,w.useRef)(null),i=(0,ef.ZC)(t);return(0,w.useEffect)(()=>{let e=()=>{if(console.log("STN_DEBUG: voltaxPlayerLoaded",t),!window.voltax)return void console.log("STN_DEBUG: voltaxNotFound",t);window.voltax.getAllPlayersOnPage().forEach(e=>{e.on("adImpression",()=>{console.log("STN_DEBUG: adImpression",t),(0,q.yk)({provider:"stn"})}),e.on("videoError",()=>{console.log("STN_DEBUG: videoError",t),(0,q.LJ)({id:n,location:"league_screen",provider:"stn"})}),e.on("playerSetupError",()=>{console.log("STN_DEBUG: playerSetupError",t),(0,q.LJ)({id:n,location:"league_screen",provider:"stn"})}),e.on("playerError",()=>{console.log("STN_DEBUG: playerError",t),(0,q.LJ)({id:n,location:"league_screen",provider:"stn"})}),e.on("pause",()=>{console.log("STN_DEBUG: pause",t),(0,q.ke)({action:"click",location:"league_screen",type:"video_pause"})}),e.on("fullScreenChange",()=>{console.log("STN_DEBUG: fullScreenChange",t),(0,q.ke)({action:"click",location:"league_screen",type:"full_screen_change"})})})};return window.addEventListener("voltaxPlayerLoaded",e),()=>{window.removeEventListener("voltaxPlayerLoaded",e)}},[t]),(0,w.useEffect)(()=>{var e;if(s.current&&i!==t){null==(e=window.voltax)||e.getAllPlayersOnPage().forEach(e=>e.destroyPlayer()),s.current.replaceChildren(),i&&function(e){let t=eC(e),n=document.querySelector('script[src="'.concat(t,'"]'));null==n||n.remove()}(i);let n=document.createElement("script");n.src=eC(t),n.async=!1,n.type="text/javascript",document.body.appendChild(n)}},[t,i]),(0,a.jsx)("div",{"data-stn-player":t,ref:s})}function eI(e){let{uniqueTournamentId:t,children:n}=e,i=(0,ef.hX)(),r=(0,eT.o)(),l=(0,eb.d4)(ew.LQ),o=(0,w.useMemo)(()=>((e,t,n)=>{let a=ek[t];if(n&&(null==a?void 0:a.includes(n.toUpperCase())))switch(e){case s.QCR.AmericanFootball:return"79mz8ed4";case s.QCR.Basketball:return"5w5ufgle";case s.QCR.Football:return"694fy39z";case s.QCR.Baseball:return"3j97k1fa";case s.QCR.IceHockey:return"36hbpsf4";case s.QCR.Motorsport:return"zhur1nuz";case s.QCR.Tennis:return"4n7ri2oy";case s.QCR.Cycling:return"4yen5gyb";default:return}})(r,t,l),[r,t,l]);return o?(0,a.jsx)(T.az,{aspectRatio:"16/9",bg:"surface.s1",elevation:"2",style:{margin:"0 auto"},w:"100%",children:!i&&(0,a.jsx)(eS,{videoPlayerId:o,uniqueTournamentId:t})}):(0,a.jsx)(a.Fragment,{children:n})}var ez=n(38185),eA=n(45860),eM=n(54836),eP=n(88540),eR=n(96016);function eE(e){let{uniqueTournamentId:t}=e,n=(0,eb.wA)(),{data:i,isLoading:r}=(0,eA.Ay)(s.V3t.featuredEvents(t),{onSuccess:e=>n((0,eR.oU)(e.featuredEvents))});return r?(0,a.jsxs)(K.Zp,{children:[(0,a.jsx)(K.Zp.Header,{titleId:"tournament.featuredEvent"}),(0,a.jsx)(T.az,{h:"[154px]"})]}):(0,a.jsx)(a.Fragment,{children:null==i?void 0:i.featuredEvents.map(e=>(0,a.jsx)(eM.S,{isLoading:!1,events:[e],hideEventTitle:!0,children:(0,a.jsx)(eP.Y,{event:e})},e.id))})}var eY=n(78259),eq=n(56494),eH=n(94156),eN=n(15341);let eF=e=>{let{fill:t="white"}=e;return(0,a.jsx)("svg",{width:"133",height:"160",viewBox:"0 0 133 160",xmlns:"http://www.w3.org/2000/svg",children:(0,a.jsxs)("g",{fill:t,fillRule:"nonzero",children:[(0,a.jsx)("path",{d:"M56.988 114h19v19h-19z"}),(0,a.jsx)("g",{opacity:".8",children:(0,a.jsx)("path",{d:"M38 133h19v19H38zM57 133h19v19H57zM95 133h19v19H95zM38 114h19v19H38zM76 95h19v19H76zM95 95h19v19H95zM57 57h19v19H57zM95 57h19v19H95zM114 57h19v19h-19zM0 0h19v19H0zM57 0h19v19H57z"})}),(0,a.jsx)("g",{opacity:".5",children:(0,a.jsx)("path",{d:"M19 133h19v19H19zM114 133h19v19h-19zM76 114h19v19H76zM0 95h19v19H0zM57 95h19v19H57zM76 76h19v19H76zM95 76h19v19H95zM38 57h19v19H38zM76 57h19v19H76zM38 38h19v19H38zM76 38h19v19H76zM0 19h19v19H0z"})})]})})},eD=e=>{let{fill:t="white"}=e;return(0,a.jsx)("svg",{width:"133",height:"160",viewBox:"0 0 133 160",xmlns:"http://www.w3.org/2000/svg",children:(0,a.jsxs)("g",{fill:t,fillRule:"nonzero",children:[(0,a.jsx)("path",{d:"M76.012 114h-19v19h19z"}),(0,a.jsx)("g",{opacity:".5",children:(0,a.jsx)("path",{d:"M114 133H95v19h19zM19 133H0v19h19zM57 114H38v19h19zM133 95h-19v19h19zM76 95H57v19h19zM57 76H38v19h19zM38 76H19v19h19zM95 57H76v19h19zM57 57H38v19h19zM95 38H76v19h19zM57 38H38v19h19zM133 19h-19v19h19z"})}),(0,a.jsx)("g",{opacity:".8",children:(0,a.jsx)("path",{d:"M95 133H76v19h19zM76 133H57v19h19zM38 133H19v19h19zM95 114H76v19h19zM57 95H38v19h19zM38 95H19v19h19zM76 57H57v19h19zM38 57H19v19h19zM19 57H0v19h19zM133 0h-19v19h19zM76 0H57v19h19z"})})]})})};var eL=n(82536);let eO=e=>{let{isOpen:t,setIsOpen:n}=e;return(0,a.jsx)(eL.A,{isOpen:t,setIsOpen:n,header:"player_of_the_season_title",children:(0,a.jsxs)(T.so,{direction:"column",p:"lg",pt:"0",gap:"lg",maxW:{md:"[320px]"},children:[(0,a.jsx)(T.so,{width:"100%",justify:"center",bgColor:"surface.s0",br:"sm",p:"lg",children:(0,a.jsx)("img",{width:264,height:183,src:"/static/images/player-of-the-season-award.png",alt:"Sofascore player of the season award"})}),(0,a.jsxs)(T.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,a.jsx)(D.A,{id:"rating_learn_more_button"}),(0,a.jsx)(eg.CCT,{fill:"primary.default",width:16,height:16})]}),(0,a.jsx)(ep.EY,{display:"block",color:"neutrals.nLv1",textStyle:"body.mediumParagraph",children:(0,a.jsx)(D.A,{id:"rating_player_of_the_season_body_1"})}),(0,a.jsx)(ep.EY,{display:"block",color:"neutrals.nLv1",textStyle:"body.mediumParagraph",children:(0,a.jsx)(D.A,{id:"rating_player_of_the_season_body_2"})}),(0,a.jsx)(ep.$n,{onClick:()=>{window.open("https://corporate.sofascore.com/about/rating","_blank"),n(!1)},mt:"lg",display:{md:"none"},children:(0,a.jsx)(D.A,{id:"learn_more_button"})})]})})},eW=e=>{var t,n;let{uniqueTournamentId:i,seasonId:r,showLoader:l}=e,[o,d]=(0,w.useState)(!1),{data:u,isLoading:c,error:m}=(0,eA.Ay)(r?s.V3t.playerOfTheSeason(i,r):null),[p,g]=(0,eN.A)("playerOfTheSeason",{uniqueTournamentId:i,seasonId:r,playerId:null==u?void 0:u.player.id});if((0,w.useEffect)(()=>{r&&!m&&l&&!c&&(0,q.ke)({action:"impression",location:"league_details",type:"player_of_the_season"})},[i,r,m,l,c]),(0,w.useEffect)(()=>{g({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=s.V3t.image(i),x=u&&s.qvj.image(u.player.id);return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)(T.az,{position:"relative",br:["lg","xl"],elevation:"2",h:"[152px]",overflow:"hidden",children:[(0,a.jsxs)(T.az,{position:"absolute",width:"100%",height:"100%",overflow:"hidden",br:"lg",children:[(0,a.jsx)(T.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,a.jsxs)(T.so,{position:"absolute",top:"0",left:"0",w:"100%",justify:"space-between",br:"lg",elevation:"3",opacity:"0.1",children:[(0,a.jsx)(eF,{}),(0,a.jsx)(eD,{})]})]}),(0,a.jsxs)(T.so,{direction:"column",justify:"space-between",w:"100%",h:"100%",p:"lg",pt:"md",bg:"overlay.darken3",children:[(0,a.jsxs)(T.so,{w:"100%",justify:"space-between",zIndex:"button",children:[(0,a.jsxs)(T.so,{align:"center",gap:"lg",children:[(0,a.jsx)(eg.gWL,{w:24,h:24,fill:"white"}),(0,a.jsx)(ep.EY,{textStyle:"display.medium",color:"onColor.primary",children:(0,a.jsx)(D.A,{id:"player_of_the_season",values:{gender:null!=(t=null==u?void 0:u.team.gender)?t:s.YT8.Male}})})]}),(0,a.jsx)(eg.G_L,{cursor:"pointer",fill:"onColor.primary",onClick:()=>d(!0)})]}),c?(0,a.jsx)(eq.a,{}):(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)(T.so,{w:"100%",justify:"space-between",align:"center",zIndex:"button",children:[(0,a.jsx)(j.uc,{player:null==u?void 0:u.player,sportSlug:s.QCR.Football,hash:"tab:details",onClick:()=>{(0,q.ke)({action:"click",location:"league_details",type:"player_of_the_season"})},children:(0,a.jsxs)(T.so,{align:"center",children:[(0,a.jsx)(eY.tg,{src:x,size:48}),(0,a.jsxs)(T.az,{ml:"sm",children:[(0,a.jsx)(ep.EY,{display:"block",textStyle:"display.medium",color:"onColor.primary",children:(null==u?void 0:u.player)&&(0,a.jsx)(eH.c,{entity:null==u?void 0:u.player})}),(0,a.jsxs)(T.so,{mt:"xs",align:"center",children:[(0,a.jsx)(eY.pY,{id:null==u?void 0:u.team.id,size:16}),(0,a.jsx)(ep.EY,{display:"block",textStyle:"assistive.default",color:"onColor.primary",ml:"xs",mt:"2xs",children:(null==u?void 0:u.team)&&(0,a.jsx)(eH.c,{entity:null==u?void 0:u.team})})]})]})]})}),(0,a.jsx)(eY.GW,{rating:null==u?void 0:u.statistics.rating,format:"sideBox",isOnColor:!0})]}),(0,a.jsx)(T.so,{w:"100%",justify:"center",align:"center",zIndex:"button",children:(0,a.jsx)(j.uc,{player:null==u?void 0:u.player,sportSlug:s.QCR.Football,hash:"tab:details",onClick:()=>{(0,q.ke)({action:"click",location:"league_details",type:"player_of_the_season"})},children:(0,a.jsxs)(T.so,{align:"center",cursor:"pointer",children:[(0,a.jsx)(ep.Ym,{ml:"sm",textStyle:"display.small",color:"onColor.primary",children:(0,a.jsx)(D.A,{id:"see_player_statistics",values:{gender:null!=(n=null==u?void 0:u.team.gender)?n:s.YT8.Male}})}),(0,a.jsx)(eg.CCT,{fill:"onColor.primary",ml:"xs"})]})})})]})]})]}),(0,a.jsx)(eO,{isOpen:o,setIsOpen:d})]})};var eB=n(14868);let eQ=e=>{var t,n,i;let{uniqueTournamentId:r,seasonId:l}=e,[o,d]=(0,w.useState)(!1),u=(0,w.useContext)(k.Ws),{data:c,error:m,isLoading:p}=(0,eA.Ay)(l?s.V3t.playerOfTheSeasonRace(r,l):null);if(m||!c||!(null==(t=c.topPlayers.rating)?void 0:t.length))return null;let g=null==c?void 0:c.topPlayers.rating,h=null!=(i=null==(n=g[0].team)?void 0:n.gender)?i:s.YT8.Male;return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)(K.Zp,{children:[(0,a.jsx)(K.Zp.Header,{title:(0,a.jsxs)(T.so,{w:"100%",justify:"space-between",zIndex:"button",children:[(0,a.jsxs)(T.so,{align:"center",gap:"lg",children:[(0,a.jsx)(eg.gWL,{w:24,h:24,fill:"onSurface.nLv1"}),(0,a.jsx)(ep.EY,{textStyle:"display.medium",children:(0,a.jsx)(D.A,{id:"player_of_the_season_race",values:{gender:h}})})]}),(0,a.jsx)(eg.G_L,{cursor:"pointer",fill:"onSurface.nLv1",onClick:()=>d(!0)})]})}),(0,a.jsx)(T.so,{direction:"column",overflow:"hidden",pb:{base:"lg",mdDown:"0"},children:p?(0,a.jsx)(T.so,{justify:"center",align:"center",w:"100%",children:(0,a.jsx)(eq.a,{})}):null==g?void 0:g.map((e,t)=>(0,a.jsx)(j.uc,{player:e.player,sportSlug:u,hash:"tab:details",onClick:()=>{(0,q.ke)({action:"click",location:"league_details",type:"player_of_the_season_race"})},children:(0,a.jsxs)(T.so,{w:"100%",justify:"space-between",align:"center",h:"5xl",px:"lg",cursor:"pointer",_hover:{bg:"surface.s2"},children:[(0,a.jsxs)(T.so,{align:"center",children:[(0,a.jsx)(ep.EY,{display:"block",w:"lg",h:"lg",mr:"xs",children:t+1}),(0,a.jsx)(eY.tg,{id:e.player.id,name:e.player.name,size:40}),(0,a.jsxs)(T.az,{flexGrow:1,ml:"lg",children:[(0,a.jsx)(ep.EY,{display:"block",children:e.player&&(0,a.jsx)(eH.c,{entity:e.player})}),(0,a.jsxs)(T.so,{align:"center",mt:"xs",children:[e.team&&(0,a.jsx)(eY.pY,{id:e.team.id,size:16,name:e.player.name}),(0,a.jsx)(ep.EY,{display:"block",textStyle:"assistive.default",color:"neutrals.nLv3",ml:"xs",children:(null==e?void 0:e.team)&&(0,a.jsx)(eH.c,{entity:null==e?void 0:e.team})})]})]})]}),(0,a.jsx)(eY.GW,{rating:null==e?void 0:e.statistics.rating,format:"sideBox"})]})},t))}),l&&(0,a.jsx)(T.I4.a,{onClick:()=>{window.location.hash="id:".concat(l,",tab:top_players")},hideFrom:"md",children:(0,a.jsx)(K.Zp.Footer,{ctaParams:{messageId:"view_top_players",values:{gender:h},icon:eB.X.Right}})})]}),(0,a.jsx)(eO,{isOpen:o,setIsOpen:d})]})};var eU=n(77015),eG=n(15340),eV=n(47815);let eK=e=>{let{player:t,team:n,popularityRanking:i}=e,r=s.USm.includes(n.sport.slug);return(0,a.jsx)(j.uc,{player:t,sportSlug:n.sport.slug,children:(0,a.jsxs)(T.so,{flexGrow:"1",align:"center",w:"100%",px:"lg",py:"sm",cursor:"pointer",_hover:{bg:"surface.s2"},direction:"row",justify:"space-between",children:[(0,a.jsxs)(T.so,{children:[(0,a.jsx)(T.so,{w:"lg",align:"center",justify:"center",children:(0,a.jsx)(ep.EY,{textStyle:"body.small",children:i})}),(0,a.jsxs)(T.az,{position:"relative",w:"3xl",h:"3xl",mx:"md",children:[(0,a.jsx)(eU.t,{id:t.id,name:t.name,size:40}),t.country&&(0,a.jsx)(T.so,{position:"absolute",bottom:"[0px]",right:"[0px]",children:(0,a.jsx)(eU.w,{alpha2:t.country.alpha2,h:"16px",w:"16px"})})]}),(0,a.jsxs)(T.so,{direction:"column",justify:"center",align:"flex-start",children:[(0,a.jsx)(ep.EY,{lineHeight:"md",children:(0,a.jsx)(eH.c,{entity:t})}),(0,a.jsx)(ep.EY,{display:"block",mt:"xs",textAlign:"end",textStyle:"assistive.default",color:"neutrals.nLv3",textTransform:"capitalize",children:(0,a.jsx)(D.A,{id:"basic.followersWithCount",values:{n:(0,a.jsx)(ep.EY,{textStyle:"assistive.default",color:"primary.default",children:(0,eV.A)(t.userCount)})}})})]})]}),r&&(0,a.jsx)(eG.e,{entity:s.bq7.Players,id:t.id,location:P.y.PopularPlayers,type:P.b.Player})]})})};function eZ(e){let{popularPlayers:t}=e,[n,s]=(0,w.useState)(!1),i=t.length>5,r=n?t:t.slice(0,5);return(0,a.jsxs)(K.Zp,{children:[(0,a.jsx)(K.Zp.Header,{titleId:"tournament.popularPlayers"}),r.map((e,t)=>(0,a.jsx)(eK,{team:e.team,player:e.player,popularityRanking:t+1},e.player.id)),(0,a.jsx)(K.Zp.Footer,{ctaParams:i?{messageId:n?"show_less":"show_more",onClick:()=>s(e=>!e),icon:n?eB.X.Up:eB.X.Down}:void 0})]})}var eX=n(59721),eJ=n(82346);let e$=e=>{let{uniqueTournament:t}=e;return(0,a.jsxs)(T.so,{p:"lg",children:[(0,a.jsx)(T.so,{children:(0,a.jsx)(eX.e,{id:t.id,h:"56px",w:"56px"})}),(0,a.jsxs)(T.so,{direction:"column",align:"flex-start",justify:"center",ml:"sm",children:[(0,a.jsx)(ep.H3,{textStyle:"display.large",children:(0,a.jsx)(eJ.O,{uniqueTournament:t})}),(0,a.jsx)(ep.EY,{textStyle:"assistive.default",color:"neutrals.nLv3",children:(0,a.jsx)(D.A,{id:"tournament.popularPlayers"})})]})]})};function e0(e){let{popularPlayers:t,uniqueTournament:n}=e,[s,i]=(0,w.useState)(!1),r=null==t?void 0:t.slice(0,3);return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)(K.Zp,{children:[(0,a.jsx)(K.Zp.Header,{titleId:"tournament.popularPlayers"}),r.map((e,t)=>(0,a.jsx)(eK,{team:e.team,player:e.player,popularityRanking:t+1},e.player.id)),(0,a.jsx)(K.Zp.Footer,{ctaParams:{messageId:"basic.seeAllPlayers",onClick:()=>i(e=>!e),icon:eB.X.Right}})]}),(0,a.jsx)(ep.Xn,{isOpen:s,onClose:()=>i(!1),header:(0,a.jsx)(e$,{uniqueTournament:n}),size:"contentFit",children:(0,a.jsx)(T.so,{h:"100%",w:"100%",direction:"column",children:t.map((e,t)=>(0,a.jsx)(eK,{team:e.team,player:e.player,popularityRanking:t+1},e.player.id))})})]})}function e1(e){let{uniqueTournament:t,seasonId:n}=e,i=56953===n&&t.id===s.G6l.Euro||57114===n&&t.id===s.G6l.CopaAmerica,{data:r}=(0,eA.Ay)(i?s.V3t.topFollowedPlayers(t.id,n):null);return r?(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(T.az,{hideBelow:"md",maxW:"[440px]",children:(0,a.jsx)(eZ,{popularPlayers:null==r?void 0:r.topFollowedPlayers})}),(0,a.jsx)(T.az,{display:{md:"none"},children:(0,a.jsx)(e0,{popularPlayers:null==r?void 0:r.topFollowedPlayers,uniqueTournament:t})})]}):null}var e5=n(33144);let e8=e=>{let{team:t,popularityRanking:n}=e,i=(0,eT.o)();return(0,a.jsx)(j.gT,{team:t,sport:i,children:(0,a.jsxs)(T.so,{flexGrow:"1",align:"center",w:"100%",px:"lg",py:"sm",cursor:"pointer",_hover:{bg:"surface.s2"},direction:"row",justify:"space-between",children:[(0,a.jsxs)(T.so,{children:[(0,a.jsx)(T.so,{w:"lg",align:"center",justify:"center",children:(0,a.jsx)(ep.EY,{textStyle:"body.small",color:"neutrals.nLv1",children:n})}),(0,a.jsx)(T.az,{position:"relative",w:"3xl",h:"3xl",mx:"md",children:(0,a.jsx)(e5.p,{id:t.id,name:t.name,size:40})}),(0,a.jsxs)(T.so,{direction:"column",justify:"center",align:"flex-start",children:[(0,a.jsx)(ep.EY,{lineHeight:"md",textStyle:"body.medium",color:"neutrals.nLv1",children:(0,a.jsx)(eH.c,{entity:t})}),(0,a.jsx)(ep.EY,{display:"block",mt:"xs",textAlign:"end",textStyle:"assistive.default",color:"neutrals.nLv3",textTransform:"capitalize",children:(0,a.jsx)(D.A,{id:"basic.followersWithCount",values:{n:(0,a.jsx)(ep.EY,{textStyle:"assistive.default",color:"primary.default",children:(0,eV.A)(t.userCount)})}})})]})]}),(0,a.jsx)(eG.e,{entity:s.bq7.Teams,id:t.id,location:P.y.PopularTeams,type:P.b.Team})]})})},e3=e=>{let{uniqueTournament:t}=e;return(0,a.jsxs)(T.so,{p:"lg",children:[(0,a.jsx)(T.so,{children:(0,a.jsx)(eX.e,{id:t.id,h:"56px",w:"56px"})}),(0,a.jsxs)(T.so,{direction:"column",align:"flex-start",justify:"center",ml:"sm",children:[(0,a.jsx)(ep.H3,{textStyle:"display.large",color:"neutrals.nLv1",children:(0,a.jsx)(eJ.O,{uniqueTournament:t})}),(0,a.jsx)(ep.EY,{textStyle:"assistive.default",color:"neutrals.nLv3",children:(0,a.jsx)(D.A,{id:"tournament.popularTeams"})})]})]})};function e9(e){let{uniqueTournament:t,seasonId:n}=e,i=74858===n&&t.id===s.G6l.SofascoreClubNXTU14,{data:r}=(0,eA.Ay)(i?s.V3t.topFollowedTeams(t.id,n):null),l=(null==r?void 0:r.topFollowedTeams)||[],{isMobile:o}=(0,ep.$c)(),[d,u]=(0,w.useState)(!1),c=[...l].slice(0,o?3:5);return l.length?(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)(K.Zp,{children:[(0,a.jsx)(K.Zp.Header,{titleId:"tournament.popularTeams"}),(!o&&d?l:c).map((e,t)=>(0,a.jsx)(e8,{team:e,popularityRanking:t+1},e.id)),(0,a.jsx)(K.Zp.Footer,{ctaParams:c.lengthu(e=>!e),icon:o?eB.X.Right:d?eB.X.Up:eB.X.Down}})]}),o&&(0,a.jsx)(ep.Xn,{isOpen:d,onClose:()=>u(!1),header:(0,a.jsx)(e3,{uniqueTournament:t}),children:(0,a.jsx)(T.so,{h:"100%",w:"100%",direction:"column",pb:"xl",children:l.map((e,t)=>(0,a.jsx)(e8,{team:e,popularityRanking:t+1},e.id))})})]}):null}var e6=n(7078),e2=n(41910),e4=n(9081),e7=n(24230),te=n(55058),tt=n(45500),tn=n(91452);let ta=e=>{let{tournamentId:t,roundId:n,eventHighlights:s}=e,{isMobile:i}=(0,ep.$c)(),[r,l]=(0,w.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,te.P)({containerId:o,storyIds:s.map(e=>{let{sdkId:t}=e;return t}),location:tt.D.TournamentPage,setErrorOccurred:l});let d=(0,e7.i)(o,r,"wsc");return r?null:(0,a.jsx)(T.az,{ref:d,id:o,h:"[188px]"})};function ts(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:a,roundId:i}=e,r=(0,eb.d4)(ew.LQ),{data:l,isLoading:o,error:d}=(0,eA.Ay)(r&&n&&a&&i?s.vCt.tournamentRoundVideoHighlights(r,n,a,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}),[p,g]=(0,w.useState)(!1),h=[s.QCR.Basketball,s.QCR.AmericanFootball].includes(d)?"game_highlights_title":"match_highlights_title";return((0,w.useEffect)(()=>{g(!0),setTimeout(()=>{g(!1)},0)},[null==l?void 0:l.eventRoundId]),m)?null:(0,a.jsxs)(T.az,{p:"sm",children:[(0,a.jsxs)(T.so,{justify:"space-between",align:"center",p:"sm",mb:"sm",children:[(0,a.jsx)(ep.EY,{textStyle:r?"display.medium":"display.small",children:(0,a.jsx)(D.A,{id:h})}),r&&l&&(0,a.jsx)(ep.ms,{label:"Select round in tournament highlights",items:i,onSelectedItemChange:e=>{let{selectedItem:t}=e;t&&o(t)},initialSelectedItem:l,renderItem:e=>e?(0,a.jsx)(e4.rC,{roundName:null==e?void 0:e.roundName}):"",alignRight:!0})]}),(0,a.jsx)(T.az,{minH:"[188px]",position:"relative",children:p||!(null==l?void 0:l.eventRoundId)||c?null:(0,a.jsx)(ta,{tournamentId:t,roundId:null==l?void 0:l.eventRoundId,eventHighlights:u||[]})})]})}var ti=n(22375),tr=n(90510),tl=n(52736),to=n(20288),td=n(66331),tu=n(91113),tc=n(45607);let tm=JSON.parse('{"basketball":{"totw":"basketball_team_of_the_week","tots":"basketball_team_of_the_season"},"totw":"rating_team_of_the_week","tots":"rating_team_of_the_season"}');function tp(e){let{uniqueTournament:t,seasonId:n,selectedRound:i,setSelectedRound:r,rounds:l,showPicker:o,isRoundLoading:d,sportSlug:u}=e,{setTotwUrl:c}=(0,td.d)(),m=(null==i?void 0:i.roundName.toLowerCase())==="season",p=(null==i?void 0:i.totwRoundId)&&n?s.V3t.teamOfTheWeekRoundDetails(t.id,n,i.totwRoundId):null,{data:g,isLoading:h}=(0,eA.Ay)(p);(0,w.useEffect)(()=>(c(p),()=>c(null)),[i]);let x=d||h;if(!x&&!g)return null;let j=(0,tu.O)(tm,m?"tots":"totw",u),v=!!(null==i?void 0:i.dateFrom)&&!!(null==i?void 0:i.dateTo);return(0,a.jsxs)(T.az,{children:[(0,a.jsx)(K.Zp.Header,{title:(0,a.jsxs)(T.BJ,{gap:"0",justify:"center",h:"[36px]",children:[(0,a.jsx)(T.I4.span,{lineHeight:"20px",children:(0,a.jsx)(D.A,{id:m?"tournament.teamOfTheSeason":"team_of_the_week"})}),v?(0,a.jsxs)(ep.EY,{textStyle:"assistive.default",color:"neutrals.nLv3",children:[(0,a.jsx)(tr.XU,{value:(0,ti.pp)(i.dateFrom),...ti.or.date})," -"," ",(0,a.jsx)(tr.XU,{value:(0,ti.pp)(i.dateTo),...ti.or.date})]}):void 0]}),variant:"left-aligned",actionComponent:(0,a.jsxs)(T.so,{align:"center",gap:"lg",children:[o&&i?(0,a.jsx)(ep.ms,{label:"Select round in team of the week",items:l,onSelectedItemChange:e=>{let{selectedItem:t}=e;t&&r(t)},initialSelectedItem:i,selectedItem:i,renderItem:e=>e?(0,a.jsx)(e4.rC,{roundName:null==e?void 0:e.roundName,isWeek:e.roundName.includes("week")}):"",alignRight:!0}):(0,a.jsx)(T.az,{h:"2xl"}),n&&(null==i?void 0:i.totwRoundId)&&!x&&u===s.QCR.Football&&(0,a.jsx)(to.w,{type:"team_of_the_week",sport:t.category.sport.slug,uniqueTournamentId:t.id,uniqueTournamentName:t.name,uniqueTournamentSlug:t.slug,categorySlug:t.category.slug,seasonId:n,roundId:i.totwRoundId})]})}),(0,a.jsxs)(K.BU,{children:[(0,a.jsx)(tl.b,{messageId:j}),(0,a.jsxs)(T.az,{children:[(0,a.jsx)(tc.I,{...g,isSeason:m,sportSlug:u}),(null==i?void 0:i.totwCreatedTimestamp)?(0,a.jsxs)(ep.EY,{my:"sm",mx:"2xs",display:"block",textAlign:"end",textStyle:"assistive.default",color:"neutrals.nLv3",children:[(0,a.jsx)(D.A,{id:"published"}),":"," ",(0,a.jsx)(tr.XU,{value:1e3*i.totwCreatedTimestamp,day:"numeric",month:"short"})]}):(0,a.jsx)(T.az,{h:"2xl"})]})]})]})}function tg(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 a=(0,eb.d4)(ew.LQ),[i,r]=(0,w.useState)(void 0),l=t?s.V3t.teamOfTheWeekPeriods(e,t):null,{data:o,isLoading:d}=(0,eA.Ay)(l),u=(null==o?void 0:o.periods)||[],c=t&&a?s.vCt.tournamentRoundsWithVideoHighlights(a,e,t):null,{data:m,isLoading:p}=(0,eA.Ay)(c),g=(null==m?void 0:m.rounds.filter(e=>!u.find(t=>t.id===(null==e?void 0:e.eventRoundId))))||[],h=e=>{var t;return"round"===e.periodName?null==(t=e.round)?void 0:t.slug:"week"===e.periodName?String(e.sequence):e.periodName},x=Array.from(new Set([...u.map(h)])).map(e=>{var t;let n=u.find(t=>h(t)===e),a=g.find(t=>t.roundSlug===e),s=n.id||(null==a?void 0:a.eventRoundId);return{eventRoundId:s,roundName:(e=>{let t;switch(e.type){case"round":{var n;let a=null==(n=e.round)?void 0:n.name;if(a&&isNaN(+a))return a;t=a;break}case"timespan":t=String(e.sequence)}return t?"".concat(e.periodName," ").concat(t):e.periodName})(n)||(null==a?void 0:a.eventRoundName)||s.toString(),roundSlug:h(n)||(null==a?void 0:a.roundSlug),startDateTimestamp:null!=(t=(null==n?void 0:n.startDateTimestamp)||(null==a?void 0:a.startDateTimestamp))?t:null==n?void 0:n.createdAtTimestamp,totwRoundId:null==n?void 0:n.id,totwCreatedTimestamp:null==n?void 0:n.createdAtTimestamp,dateFrom:n.dateFrom,dateTo:n.dateTo}}).sort((e,t)=>{var n;return e.startDateTimestamp&&t.startDateTimestamp?t.startDateTimestamp-e.startDateTimestamp:null!=(n=t.startDateTimestamp)?n:0});return(0,w.useEffect)(()=>{r(x[0])},[t,null==(n=x[0])?void 0:n.roundSlug]),{rounds:x,isLoading:p||d,selectedRound:i,setSelectedRound:r,hasWSC:!!(null==m?void 0:m.rounds.length),hasTOTW:!!u.length}}(r,n),p=(0,ez.b)(r,"teamOfTheWeek"),g=i===s.QCR.AmericanFootball?"am_football_week_summary_title":"round_summary_title",h=n?(0,a.jsx)(ts,{uniqueTournamentId:r,seasonId:n,selectedRound:d,setSelectedRound:u,rounds:l,showPicker:!m,sportSlug:i}):null,x=(0,a.jsx)(tp,{uniqueTournament:t,seasonId:n,showPicker:!c,isRoundLoading:o,rounds:l,selectedRound:d,setSelectedRound:u,sportSlug:i});if(!o&&!m&&!c)return null;if(m&&c)return(0,a.jsxs)(e2.b,{branding:p,entityId:r,location:"league_totw",children:[(0,a.jsx)(K.Zp.Header,{titleId:g,variant:"left-aligned",actionComponent:d?(0,a.jsx)(ep.ms,{label:"Select round in team of the week",items:l,onSelectedItemChange:e=>{let{selectedItem:t}=e;t&&u(t)},initialSelectedItem:d,renderItem:e=>e?(0,a.jsx)(e4.rC,{roundName:null==e?void 0:e.roundName}):"",alignRight:!0}):void 0}),h,x]});if(m)return(0,a.jsx)(e2.b,{branding:p,entityId:r,location:"league_totw",children:x});if(c)return(0,a.jsx)(K.Zp,{children:h});if(i===s.QCR.Football)return(0,a.jsx)(e2.b,{branding:p,entityId:r,location:"league_totw",children:x});else return null}let th=[21559,21560,21561],tx=()=>(0,a.jsx)("svg",{width:"9",height:"10",viewBox:"0 0 9 10",fill:"none",children:(0,a.jsx)("path",{d:"M0.0285624 8.37741C0.0285624 8.37741 -0.035703 8.22345 0.0285624 8.1593L5.07982 3.11725C5.07982 3.11725 5.23405 3.0531 5.29832 3.11725L6.36512 4.18211C6.44224 4.25909 6.44224 4.32324 6.36512 4.40021L1.32672 9.44227C1.2496 9.51924 1.17248 9.51924 1.09537 9.44227L0.0285624 8.37741ZM7.17487 2.32181H1.36528C1.26246 2.32181 1.19819 2.25766 1.19819 2.16785V0.653956C1.19819 0.564148 1.27531 0.5 1.35243 0.5H8.07458C8.16455 0.5 8.21596 0.5 8.29308 0.576978L8.93573 1.21846C8.93573 1.21846 9 1.29544 9 1.35959V8.12081C9 8.21062 8.92288 8.27477 8.84576 8.27477H7.3291C7.22628 8.27477 7.17487 8.21062 7.17487 8.10798V2.32181Z",fill:"white"})}),tj=()=>((0,w.useEffect)(()=>{(0,q.ke)({action:"impression",location:"league_details",type:"banner_kutija_sibica"})},[]),(0,a.jsx)("a",{href:"https://www.entrio.hr/event/mnt-kutija-sibica-2024-powered-by-powerade-zavrsnica-21625/?utm_source=sofascore&utm_medium=sof_web",target:"_blank",rel:"noopener noreferrer",onClick:()=>{(0,q.ke)({action:"click",location:"league_details",type:"banner_kutija_sibica"})},children:(0,a.jsx)("bdi",{children:(0,a.jsx)(K.Zp,{children:(0,a.jsxs)(T.so,{backgroundImage:"url(/static/images/kutija-sibica/kutija_bg.png)",backgroundSize:"cover",backgroundRepeat:"no-repeat",minH:{base:"[148px]",lg:"[162px]"},p:{base:"md",lg:"lg"},align:"center",justify:"space-between",br:{mdDown:"lg",md:"xl"},overflow:"hidden",children:[(0,a.jsxs)(T.so,{direction:"column",gap:"sm",flexGrow:1,flexShrink:1,flexBasis:"[150px]",maxW:"[214px]",children:[(0,a.jsx)(ep.EY,{display:"block",textStyle:"display.extraLarge",color:"onColor.primary",textAlign:"start",children:"Navijaj na Kutiji šibica i uživo! \uD83D\uDD25"}),(0,a.jsx)(ep.$n,{w:"100%",variant:"clear",size:"secondary",bg:"[#E82F34]",textTransform:"none",children:(0,a.jsxs)(T.so,{justify:"center",align:"center",gap:"sm",children:[(0,a.jsx)(ep.EY,{display:"block",textStyle:"display.small",color:"onColor.primary",children:"Kupi ulaznice"}),(0,a.jsx)(tx,{})]})})]}),(0,a.jsx)(T.az,{backgroundImage:"url(/static/images/kutija-sibica/kutija_logo.svg)",backgroundSize:"cover",backgroundRepeat:"no-repeat",h:{base:"[128px]",lg:"[134px]"},w:{base:"[110px]",lg:"[114px]"}})]})})})})),tv=e=>{let{uniqueTournamentId:t}=e,n=(0,ef.hX)();if(!th.includes(t))return null;if(n)return(0,a.jsx)(K.Zp,{children:(0,a.jsx)(T.az,{h:{base:"[148px]",lg:"[162px]"}})});let s=new Date().getTime(),i=new Date("2024-12-15 12:00:00").getTime(),r=new Date("2024-12-28 12:00:00").getTime();return s>i&&sn.e(32035).then(n.bind(n,32035)),{loadableGenerated:{webpack:()=>[32035]},ssr:!1,loading:()=>(0,a.jsx)(J.E,{uniqueKey:"unique-tournament-media-cl-2",br:"lg"})}),tf=ee()(()=>n.e(59007).then(n.bind(n,59007)),{loadableGenerated:{webpack:()=>[59007]},ssr:!1,loading:()=>(0,a.jsxs)(K.Zp,{children:[(0,a.jsx)(K.Zp.Header,{titleId:"matches",values:{sport:s.QCR.Football}}),(0,a.jsx)(er.A,{initialEventCount:12})]})});function tb(e){var t;let{uniqueTournament:n,seasons:i,activeSeasonId:r,hasEvents:l,hasPlayerOfTheSeason:o,hasMedia:d}=e,u=eu.zK[n.id],c=u&&(null==u?void 0:u.historyHighlightsEndYear),m=n.category.sport.slug,p=m===s.QCR.Football,g=i[0],h=(null==g?void 0:g.id)===r,x=(0,ez.b)(n.id,"banner"),j=(null==(t=i[0])?void 0:t.id)===r;return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(eI,{uniqueTournamentId:n.id,children:h&&(0,a.jsx)(eE,{uniqueTournamentId:n.id})}),(!j||l||!r)&&(0,a.jsx)(et.t,{tag:"UniqueTournamentEventList",children:(0,a.jsx)(en.MC,{value:{isNarrow:!0,isShort:s.HwS.includes(m),location:P.y.MatchesSection},children:r?(0,a.jsx)(tf,{uniqueTournamentId:n.id,seasonId:r},"UniqueTournamentEventList-".concat(n.id,"-").concat(r)):(0,a.jsx)(el.A,{entity:s.wNW.UniqueTournament,id:n.id})})}),(0,a.jsx)(tv,{uniqueTournamentId:n.id}),r&&(0,a.jsx)(e6.default,{uniqueTournamentId:n.id,seasonId:r}),p&&o&&(0,a.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,a.jsxs)(T.so,{_hover:{bg:"surface.s2"},px:{mdDown:"sm",md:"lg"},py:"xs",gap:"lg",align:"center",children:[n,(0,a.jsx)(ep.EY,{children:t})]})};function tX(e){let{title:t,tournaments:n,teams:s,sport:i}=e,r=[];(null==n?void 0:n.length)&&r.push(...n.map(e=>(0,a.jsx)(j.tQ,{tournament:e,children:(0,a.jsx)(tZ,{image:(0,a.jsx)(tK.e,{size:32,...e}),name:(0,a.jsx)(eJ.O,{uniqueTournament:e})})},e.id)));let l=null==s?void 0:s.filter(Boolean);return((null==l?void 0:l.length)&&r.push(...l.map(e=>(0,a.jsx)(j.gT,{sport:i,team:e,children:(0,a.jsx)(tZ,{image:(0,a.jsx)(tK.p,{size:32,...e}),name:(0,a.jsx)(tT.Rm,{team:e})})},e.id))),r.length)?(0,a.jsxs)(K.Zp,{children:[(0,a.jsx)(K.Zp.Header,{titleId:t}),r,(0,a.jsx)(K.Zp.Footer,{})]}):null}var tJ=n(53960);let t$=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"}'),t0=e=>{let{id:t}=e;return(0,a.jsx)(D.A,{id:(0,tu.O)(t$,t)})};function t1(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,a.jsxs)(T.az,{pb:"sm",children:[(0,a.jsx)(K.Zp.Header,{title:(0,a.jsx)(ep.EY,{textTransform:"capitalize",textStyle:"display.medium",lineHeight:"24px",children:(0,a.jsx)(D.A,{id:"tournament.facts"})})}),Object.keys(t).map(e=>"winner"!==e&&void 0!==t[e]&&("numberOfCompetitors"!==e||n)&&"groundType"!==e?(0,a.jsxs)(T.so,{py:"sm",px:{mdDown:"sm",md:"lg"},justify:"space-between",align:"center",children:[(0,a.jsx)(ep.EY,{children:(0,a.jsx)(t0,{id:e})}),(0,a.jsx)(ep.EY,{children:"totalPrizeMoney"===e&&t.totalPrizeMoney?(0,a.jsx)(tJ.o,{parsedMoney:(0,s.oaz)(t.totalPrizeMoney)}):t[e]})]},e):null)]}):null}function t5(e){let{countries:t,city:n}=e,s=(null==t?void 0:t.length)?t.join(", "):null,i=((null==t?void 0:t.length)||0)>1,r=(n||"").split(",").length>1;return s||n?(0,a.jsxs)(T.az,{pb:"sm",children:[(0,a.jsx)(K.Zp.Header,{titleId:"tournament.host"}),s&&(0,a.jsxs)(T.so,{py:"sm",px:{mdDown:"sm",md:"lg"},justify:"space-between",gap:"lg",children:[(0,a.jsx)(ep.EY,{children:(0,a.jsx)(D.A,{id:i?"countries":"country"})}),(0,a.jsx)(ep.EY,{textAlign:"end",children:s})]}),n&&(0,a.jsxs)(T.so,{py:"sm",px:{mdDown:"sm",md:"lg"},justify:"space-between",gap:"lg",children:[(0,a.jsx)(ep.EY,{children:(0,a.jsx)(D.A,{id:r?"cities":"city"})}),(0,a.jsx)(ep.EY,{textAlign:"end",children:n})]})]}):null}function t8(e){let{team:t,sport:n,text:s}=e;return(0,a.jsx)(T.az,{children:(0,a.jsx)(j.gT,{team:t,sport:n,children:(0,a.jsxs)(T.so,{pt:"sm",direction:"column",align:"center",children:[(0,a.jsx)(e5.p,{size:40,id:t.id,name:t.name}),(0,a.jsx)(ep.Ym,{px:"sm",mt:"xs",textStyle:"display.small",textAlign:"center",children:(0,a.jsx)(tT.Rm,{team:t})}),(0,a.jsx)(ep.EY,{px:"sm",textStyle:"assistive.default",color:"neutrals.nLv3",mt:"xs",h:s?"2xl":"xs",textAlign:"center",children:s})]})})})}function t3(e){let{titleHolder:t,mostTitlesTeams:n,titleHolderTitles:s,mostTitles:i,sport:r}=e,l=(0,c.A)(),o=s?"".concat(l.formatMessage({id:"title_holder"})," (").concat(s,")"):l.formatMessage({id:"title_holder"}),d=i&&i>1?"".concat(l.formatMessage({id:"most_titles"})," (").concat(i,")"):"";return t||n?(0,a.jsxs)(K.Zp,{children:[(0,a.jsx)(T.az,{display:["none","block"],children:(0,a.jsx)(K.Zp.Header,{titleId:"titles"})}),(0,a.jsxs)(T.so,{wrap:"wrap",align:"center",p:"sm",justify:"space-around",children:[t&&(0,a.jsx)(t8,{team:t,sport:r,text:o}),n?n.map(e=>(0,a.jsx)(t8,{team:e,sport:r,text:d},e.id)):void 0]})]}):null}let t9=["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 t2(e,t){if(void 0===e)return null;let n=Object.keys(e).filter(e=>-1===t9.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),{}),a={};t&&(t.groundType&&(a.groundType=t.groundType),t.numberOfSets&&(a.numberOfSets=t.numberOfSets),t.tier&&(a.tier=t.tier));let s=(n.homeTeamWins||0)+(n.awayTeamWins||0)+(n.draws||0);if(s){let e={...n,...a};if(n.goals){let t=t6(n.goals/s);e={goals:e.goals,averageGoals:t,...e}}return n.yellowCards&&(e.yellowCards=t6(n.yellowCards/s)),n.redCards&&(e.redCards=t6(n.redCards/s)),n.homeTeamWins&&(e.homeTeamWins=t6(n.homeTeamWins/s,!0)),n.awayTeamWins&&(e.awayTeamWins=t6(n.awayTeamWins/s,!0)),n.draws&&(e.draws=t6(n.draws/s,!0)),e}return{...n,...a}}let t4=e=>{let{children:t}=e;return(0,a.jsx)(T.az,{_lastOfType:{h:"100%",bg:"surface.s1"},children:t})};function t7(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,eA.Ay)(o?s.V3t.info(r.id,o):null,{fallbackData:d&&l?{info:l}:void 0}).data)?void 0:t.info,p=(0,w.useMemo)(()=>t2(m,r),[o,m]),g={},h={};u===s.QCR.Tennis?((null==p?void 0:p.totalPrizeMoney)&&(g.totalPrizeMoney=tU()(p.totalPrizeMoney)),g.numberOfCompetitors=tU()(null==p?void 0:p.numberOfCompetitors),g.numberOfSets=tU()(null==p?void 0:p.numberOfSets),p&&(null==(h=tU()(p))||delete h.totalPrizeMoney,null==h||delete h.numberOfCompetitors,null==h||delete h.numberOfSets,null==h||delete h.groundType)):p&&(h={...p});let x=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,a.jsx)(tX,{...e,...c},e.title):null}),!tV()(h)&&Object.keys(h).some(e=>"winner"!==e&&"groundType"!==e&&void 0!==h[e]&&!("numberOfCompetitors"===e&&!d))?(0,a.jsx)(t1,{facts:h,isCurrentSeason:d},h.id):null,(null==m?void 0:m.hostCountries.length)||(null==m?void 0:m.hostCity)?(0,a.jsx)(t5,{countries:null==m?void 0:m.hostCountries,city:null==m?void 0:m.hostCity},m.id):null].filter(e=>!!e),y=!!x||!!(null==j?void 0:j.length)||!!(null==(n=r.linkedUniqueTournaments)?void 0:n.length),f=!!v.length;return y||f?(0,a.jsxs)(K.Zp,{variant:"mobile-only",children:[(0,a.jsx)(T.az,{hideFrom:"md",children:(0,a.jsx)(K.Zp.Header,{titleId:"tournament.leagueInfo"})}),(0,a.jsx)(K.WC,{variant:"inverse-mobile",children:(0,a.jsx)(K.WC,{variant:"square-desktop",children:(0,a.jsxs)(T.so,{mdDown:{p:"sm",gap:"sm",flexDirection:"column"},md:{gap:"[1px]",bg:"neutrals.nLv4",br:"lg",mt:"sm"},overflow:"hidden",children:[y&&(0,a.jsx)(T.so,{w:"100%",direction:"column",gap:{base:"sm",md:"[1px]"},children:(0,a.jsxs)(t4,{children:[(0,a.jsx)(t3,{titleHolder:x,titleHolderTitles:r.titleHolderTitles,mostTitlesTeams:j,mostTitles:r.mostTitles,sport:u}),r.linkedUniqueTournaments&&(null==(i=r.linkedUniqueTournaments)?void 0:i.length)>0&&(0,a.jsx)(K.Zp,{children:(0,a.jsx)(tX,{title:"tournament.sameDivision",tournaments:r.linkedUniqueTournaments,...c})})]})}),y&&f&&(0,a.jsx)(T.so,{direction:"column",gap:{base:"sm",md:"[1px]"},w:"100%",children:v.map(e=>(0,a.jsx)(t4,{children:(0,a.jsx)(K.Zp,{children:e})},null==e?void 0:e.key))}),!y&&f&&tB()(v,Math.ceil(v.length/2)).map((e,t)=>(0,a.jsx)(T.so,{w:"100%",gap:{base:"sm",md:"[1px]"},direction:"column",children:e.map((e,t)=>(0,a.jsx)(t4,{children:(0,a.jsx)(K.Zp,{children:e},"element-".concat(t))},null==e?void 0:e.key))},"group-".concat(t)))]})})})]}):null}var ne=n(49611);let nt=e=>{let{text:t,value:n}=e;return(0,a.jsxs)(T.so,{px:"lg",w:"100%",h:"2xl",justifyContent:"space-between",children:[(0,a.jsx)(ep.EY,{display:"block",children:t}),(0,a.jsx)(ep.EY,{display:"block",children:n})]})},nn=e=>{var t,n;let{info:i,tournament:r,seasonId:l,isCurrentSeason:o}=e,d=(0,c.A)(),u=null==(t=(0,eA.Ay)(l?s.V3t.info(r.id,l):null,{fallbackData:o&&i?{info:i}:void 0}).data)?void 0:t.info,m=(0,w.useMemo)(()=>t2(u,r),[l,u]),p=(null==u||null==(n=u.hostCountries)?void 0:n.length)?null==u?void 0:u.hostCountries.join(", "):null,g=null==u?void 0:u.hostCity;return m||p||g?(0,a.jsxs)(K.Zp,{children:[(0,a.jsx)(K.Zp.Header,{titleId:"info"}),(0,a.jsxs)(T.so,{direction:"column",py:"sm",gap:"xs",children:[o&&(null==m?void 0:m.numberOfSets)&&(0,a.jsx)(nt,{text:d.formatMessage({id:"sets"}),value:m.numberOfSets.toString()}),o&&(null==m?void 0:m.totalPrizeMoney)&&(0,a.jsx)(nt,{text:d.formatMessage({id:"totalPrizeMoney"}),value:"".concat((0,s.oaz)(m.totalPrizeMoney).parsedValue).concat((0,s.oaz)(m.totalPrizeMoney).measure," ").concat(m.totalPrizeMoney.currency)}),o&&(null==m?void 0:m.numberOfCompetitors)&&(0,a.jsx)(nt,{text:d.formatMessage({id:"competitors"}),value:m.numberOfCompetitors.toString()}),p&&(0,a.jsx)(nt,{text:d.formatMessage({id:"country"}),value:p}),g&&(0,a.jsx)(nt,{text:d.formatMessage({id:"city"}),value:g})]})]}):null},na=e=>{let{teamId:t,team:n,year:i,description:r,highlightText:l}=e;return(0,a.jsx)(j.gT,{team:n,sport:s.QCR.Tennis,style:{width:"100%",display:"flex"},children:(0,a.jsxs)(T.so,{w:"100%",px:"lg",py:"sm",justifyContent:"space-between",align:"center",_hover:{bg:"neutrals.nLv5"},children:[(0,a.jsxs)(T.so,{gap:"lg",children:[(0,a.jsx)(e5.p,{id:t}),(0,a.jsxs)(T.so,{direction:"column",gap:"xs",minW:"[0px]",justify:"center",children:[(i||r)&&(0,a.jsx)(ep.EY,{textStyle:"assistive.default",color:"neutrals.nLv3",children:i||r}),(0,a.jsx)(ep.EY,{textStyle:"body.medium",color:"neutrals.nLv1",maxW:"[169px]",truncate:!0,style:{whiteSpace:"nowrap",overflow:"hidden"},children:(0,a.jsx)(tT.Rm,{team:n})})]})]}),l&&(0,a.jsx)(T.so,{br:"md",bg:"primary.highlight",px:"sm",alignSelf:"center",children:(0,a.jsx)(ep.EY,{textStyle:"assistive.default",color:"primary.default",children:l})})]})})},ns=e=>{let{tournament:t,uniqueTournamentWinners:n,isCurrentSeason:s}=e,i=(0,c.A)();if(!(null==n?void 0:n.length))return null;let r=s?t.mostTitlesTeams:void 0,l=r&&r.length>0,o=l&&r.length>1,d=n.sort((e,t)=>t.year-e.year);return(0,a.jsxs)(K.Zp,{children:[(0,a.jsx)(K.Zp.Header,{titleId:"titles"}),(0,a.jsx)(T.so,{direction:"column",pb:"sm",children:(0,a.jsxs)(T.so,{direction:"column",width:"100%",align:"flex-start",children:[d.map((e,t)=>(0,a.jsx)(na,{teamId:e.team.id,team:e.team,year:e.year,highlightText:0===t?i.formatMessage({id:"title_holder"}):void 0},t)),l&&(0,a.jsxs)(a.Fragment,{children:[o?(0,a.jsx)(T.so,{width:"100%",h:"xl",mt:"md",mb:"xs",justify:"center",align:"center",children:(0,a.jsx)(ep.EY,{textStyle:"display.medium",children:i.formatMessage({id:"most_titles"})})}):(0,a.jsx)(T.cG,{my:"sm"}),r.map(e=>(0,a.jsx)(na,{teamId:e.id,team:e,description:o?void 0:i.formatMessage({id:"most_titles"}),highlightText:"".concat(t.mostTitles," ").concat(i.formatMessage({id:"titles"}))},e.id))]})]})})]})},ni=e=>{let{uniqueTournamentWinners:t,info:n,tournament:s,isCurrentSeason:i,seasonId:r}=e;return(0,a.jsx)(K.Zp,{variant:"mobile-only",children:(0,a.jsx)(K.WC,{variant:"inverse-mobile",children:(0,a.jsx)(K.WC,{variant:"square-desktop",children:(0,a.jsxs)(ne.X,{children:[i&&(0,a.jsx)(ns,{tournament:s,uniqueTournamentWinners:t,isCurrentSeason:i}),(0,a.jsx)(nn,{info:n,tournament:s,seasonId:r,isCurrentSeason:i})]})})})})};function nr(e){let{uniqueTournament:t,seasonId:n,info:i,isCurrentSeason:r,uniqueTournamentWinners:l}=e,o=t.category.sport.slug===s.QCR.Tennis;return(0,a.jsx)(ep.tU.Panel,{tabKey:E.x.Details,children:o?(0,a.jsx)(ni,{uniqueTournamentWinners:l,info:i,tournament:t,seasonId:n,isCurrentSeason:r}):(0,a.jsx)(t7,{tournament:t,info:i,seasonId:n,isCurrentSeason:r})})}let nl=ee()(()=>Promise.all([n.e(14591),n.e(96175),n.e(99866)]).then(n.bind(n,99866)),{loadableGenerated:{webpack:()=>[99866]},loading:()=>(0,a.jsx)(T.az,{h:"[500px]"})});function no(e){var t;let{uniqueTournament:n,seasonId:s}=e,i=n.category.sport.slug;return(0,a.jsx)(ep.tU.Panel,{tabKey:E.x.Knockout,children:(0,a.jsx)(T.az,{overflow:"hidden",borderBottomRadius:"lg",children:(0,a.jsx)(K.WC,{variant:"square",children:(0,a.jsx)(nl,{uniqueTournamentId:null==n?void 0:n.id,uniqueTournamentSlug:null==n?void 0:n.slug,categorySlug:null==(t=n.category)?void 0:t.slug,seasonId:s,sport:i})})})})}var nd=n(36041);let nu=e=>{let{uniqueTournamentId:t}=e,{data:n}=(0,eA.Ay)(s.V3t.featuredEvents(t));return n?(0,a.jsx)(nd.w,{event:n.featuredEvents[0]}):null};var nc=n(4866),nm=n(85658),np=n(28377),ng=n(31139),nh=n(48524),nx=n(73559),nj=n(37578);function nv(e){let{isOpen:t,setIsOpen:n,editorData:s}=e;return(0,a.jsx)(eL.A,{isOpen:t,setIsOpen:n,header:"competition_editors_list_title",children:null==s?void 0:s.editors.map(e=>(0,a.jsx)(j.N_,{routeKey:"user",params:{userId:e.id},onClick:()=>(0,q.Zs)("editor_league_modal"),children:(0,a.jsxs)(T.so,{align:"center",justify:"space-between",h:"5xl",px:"lg",py:"md",_hover:{bg:"surface.s2"},children:[(0,a.jsxs)(T.so,{align:"center",gap:"lg",children:[(0,a.jsx)(nj.A,{src:e.imageURL,size:32}),(0,a.jsx)(ep.EY,{textStyle:"table.medium",truncate:!0,children:e.nickname})]}),(0,a.jsx)(eg.CCT,{fill:"primary.default"})]})},e.id))})}var ny=n(9050),nf=n(68318),nb=n(1639),nT=n(33618);let nw=[8,17,23,34,35],n_=e=>{let{uniqueTournamentId:t,seasonYear:n}=e;return n&&nw.includes(t)?(0,a.jsxs)(a.Fragment,{children:[" ",(0,nT.b0)(n).join("/")]}):null};function nk(e){var t;let{uniqueTournament:n,seasons:i,seasonId:r,onSeasonChange:l}=e,o=(0,c.A)(),{wasFollowed:d}=(0,nx.e)({entity:s.bq7.Tournaments,id:n.id}),u=(0,L.N)(n),m=!!(i.length&&r&&r===i[0].id)&&!!(n.startDateTimestamp&&n.startDateTimestamp!==n.endDateTimestamp),{data:p}=(0,eA.Ay)(s.V3t.seasonEditors(n.id,r)),[g,h]=(0,w.useState)(!1),x=(0,w.useMemo)(()=>i.find(e=>e.id===r),[r,i]),j=null==p?void 0:p.editors,v={nickname:(null==p?void 0:p.organizations.length)?null==p?void 0:p.organizations[0].name:(null==j?void 0:j.length)===1?j[0].editorName:void 0,numberOfEditors:null==j?void 0:j.length,eventLocation:(null==j?void 0:j.length)===1?"editor_league":void 0,hasStarted:!0,isInLeagueHeader:!0,isOrganization:!!(null==p?void 0:p.organizations.length),userId:j&&j.length>1||null==j||null==(t=j[0])?void 0:t.id,onClick:j&&j.length>1&&!(null==p?void 0:p.organizations.length)?()=>h(!0):void 0};return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(np.F,{image:(0,a.jsx)(nc.e,{id:n.id,name:n.name,w:"100%",h:"100%"}),name:(0,a.jsxs)(a.Fragment,{children:[u," ",(0,a.jsx)(n_,{uniqueTournamentId:n.id,seasonYear:null==x?void 0:x.year})]}),titleLabel:(0,a.jsx)(nb.W,{groundType:n.groundType}),subtitleItems:(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)(T.so,{align:"center",gap:"sm",children:[(0,a.jsx)(nc.w,{alpha2:n.category.alpha2,name:n.category.name,categoryId:n.category.id,w:32,h:32}),(0,a.jsx)(ep.EY,{textStyle:"display.medium",children:(0,a.jsx)(A.md,{slug:n.category.slug,name:n.category.name,fieldTranslations:n.category.fieldTranslations,uniqueTournament:n})})]}),r&&(0,a.jsx)(T.az,{position:"relative",children:(0,a.jsx)(nf.s,{seasonId:r,seasons:i,onSeasonChange:l},n.id)})]}),actions:[!!(null==p?void 0:p.editors.length)&&(0,a.jsx)(ng.i,{...v}),(0,a.jsx)(nm.P2,{children:e=>(0,a.jsx)(ep.m_,{content:o.formatMessage({id:d?"remove_from_favourites":"add_to_favourites"}),placement:"bottom",strategy:"hover",disabled:e&&!d,children:(0,a.jsx)(eG.e,{id:n.id,entity:s.bq7.Tournaments,location:P.y.Header,type:P.b.UniqueTournament,isNewButton:!0})})},"follow-button-".concat(n.id))],footer:m&&(0,a.jsx)(ny.G,{start:n.startDateTimestamp,end:n.endDateTimestamp,c:"onSurface.nLv1",flex:"1"})}),(0,a.jsxs)(nh.K,{id:n.id,name:u,entity:s.bq7.Tournaments,type:P.b.UniqueTournament,children:[(0,a.jsx)(nc.e,{size:32,mr:"lg",style:{verticalAlign:"top"},id:n.id,name:n.slug}),(0,a.jsx)(ep.EY,{textStyle:"display.medium",color:"primary.default",mr:"lg",children:u})]}),(0,a.jsx)(nv,{isOpen:g,setIsOpen:h,editorData:p})]})}var nC=n(69382),nS=n(77812);let nI=ee()(()=>Promise.all([n.e(56591),n.e(14632),n.e(35597),n.e(73240),n.e(32935),n.e(53805)]).then(n.bind(n,53805)),{loadableGenerated:{webpack:()=>[53805]},ssr:!1,loading:()=>(0,a.jsx)(T.az,{h:"[500px]"})});function nz(e){let{uniqueTournament:t,seasonId:n,seasons:s}=e,i=s.find(e=>e.id===n);return n?(0,a.jsx)(ep.tU.Panel,{tabKey:E.x.Standings,children:(0,a.jsx)(K.WC,{variant:"square",roundedBottom:"lg",overflow:"hidden",children:(0,a.jsx)(nI,{uniqueTournamentId:t.id,seasonId:n,selectedSeason:i,hasPerformanceGraphFeature:t.hasPerformanceGraphFeature})})}):(0,a.jsx)(T.az,{h:"[500px]"})}let nA=ee()(()=>Promise.all([n.e(88620),n.e(72889),n.e(28105),n.e(14264),n.e(15815)]).then(n.bind(n,54581)),{loadableGenerated:{webpack:()=>[54581]},ssr:!1,loading:()=>(0,a.jsx)(T.az,{h:"[500px]"})});function nM(e){let{uniqueTournament:t,seasonId:n}=e;return(0,a.jsx)(ep.tU.Panel,{tabKey:E.x.Statistics,children:(0,a.jsx)(nA,{uniqueTournament:t,seasonId:n})})}function nP(e){var t;let{uniqueTournament:n,seasons:i,info:r,uniqueTournamentWinners:l,seo:o,activeSeasonId:d,setActiveSeasonId:u=V(),hasEvents:c,activeTab:m,setActiveTab:p,hasInitialStandings:g}=e,h=i[0],x=i[1]?i[1].name:"",j=(null==h?void 0:h.id)===d,v=n.category.sport.slug===s.QCR.Tennis,{hasStandingsTab:y,hasKnockoutTab:f,hasStatisticsTab:b,hasPlayerOfTheSeason:_,hasMedia:k,hasDetailsTab:I,isLoadingFlagsData:z}=function(e,t,n){var a,i;let{initialStandings:r}=(0,w.useContext)(Q.O),l=e.category.sport.slug,o=l===s.QCR.Tennis,d=o||!t||!nS.f.includes(l),{data:u}=(0,eA.Ay)(t&&nS.s.includes(l)?s.V3t.seasonTypes(e.id,t,"player"):null),{hasStandingsData:c,hasKnockoutTab:m,hasTopPlayersTab:p,hasTennisTopPlayers:g,hasTeamSeasonTypes:h,hasMedia:x,hasPlayerOfTheSeason:j}=(0,N.A)({hasStandingsData:{route:s.V3t.standings(e.id,t),skipCheck:!t},hasKnockoutTab:{route:s.V3t.cupTrees(e.id,t),skipCheck:!t},hasTopPlayersTab:{route:s.V3t.seasonTypes(e.id,t,o?"team":"player"),skipCheck:!t||!(0,nC.w)(l)},hasTennisTopPlayers:{route:s.V3t.topTeams(e.id,t,"mainDraw"),skipCheck:!t||!(0,nC.w)(l)},hasTeamSeasonTypes:{route:s.V3t.seasonTypes(e.id,t,"team"),skipCheck:d},hasMedia:{route:s.V3t.media(e.id)},hasPlayerOfTheSeason:{route:s.V3t.playerOfTheSeason(e.id,t),skipCheck:!t}},[t]),{hasTopStatsTab:v}=(0,N.A)({hasTopStatsTab:{route:s.V3t.topPlayersPerGame(e.id,t,"all",(null==u?void 0:u.types[0])||s.Vw_.overall),skipCheck:!t||!nS.s.includes(l)||!(null==u||null==(a=u.types)?void 0:a[0])}},[t,u]),{data:y}=(0,eA.Ay)(d||!h?null:s.V3t.seasonTypes(e.id,t,"team")),{hasTopTeamsTab:f}=(0,N.A)({hasTopTeamsTab:{route:s.V3t.topTeams(e.id,t,(null==y?void 0:y.types[0])||s.Vw_.overall),skipCheck:d||!(null==y?void 0:y.types.length)}},[y,t]),{data:b,isLoading:T}=(0,eA.Ay)(s.V3t.info(e.id,t)),_=null==b?void 0:b.info,k=t2(_,e),C=n&&(!!(null==e||null==(i=e.mostTitlesTeams)?void 0:i.length)||!!(null==e?void 0:e.titleHolder))||U(_,e)||l===s.QCR.Football&&!!k,S=!!(null==r?void 0:r.length)||c,I=v||f||p||g,z=void 0===S||void 0===m||void 0===I||void 0===x||void 0===j||T;return{hasStandingsTab:!!S,hasKnockoutTab:!!m,hasStatisticsTab:!!I,hasDetailsTab:!!C,hasMedia:!!x,hasPlayerOfTheSeason:!!j,isLoadingFlagsData:z}}(n,d,j),A=[{tabKey:E.x.Standings,item:"app.standings",isHidden:!y},{tabKey:E.x.Knockout,item:v?"draw":"knockout",isHidden:!f},{tabKey:E.x.Statistics,item:"statistics",isHidden:!b},{tabKey:E.x.Details,item:"details",isHidden:!I}],M=A.some(e=>!e.isHidden&&e.tabKey===m)?m:null==(t=A.find(e=>!e.isHidden))?void 0:t.tabKey;return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(nk,{uniqueTournament:n,seasons:i,seasonId:d,onSeasonChange:u}),(0,a.jsxs)(Z.xA,{py:"md",gap:"md",children:[(0,a.jsxs)(Z.fv,{flexGrow:1,children:[(0,a.jsx)(tb,{hasEvents:c,hasMedia:k,hasPlayerOfTheSeason:_,activeSeasonId:d,uniqueTournament:n,seasons:i}),(0,a.jsx)(nu,{uniqueTournamentId:n.id}),(0,a.jsx)(S.Aq,{route:C.xW.UniqueTournament})]}),(0,a.jsxs)(Z.fv,{flexGrow:2,children:[(0,a.jsx)(K.Zp,{children:z?(0,a.jsx)(T.az,{h:"[1000px]"}):(0,a.jsx)(T.so,{w:"100%",overflow:"hidden",br:"lg",children:(0,a.jsxs)(X.A,{id:n.id,location:E.C.UniqueTournamentPage,initialTabKey:M,tabs:A,customControls:[M,p],children:[f&&(0,a.jsx)(no,{uniqueTournament:n,seasonId:d}),(g||y)&&(0,a.jsx)(nz,{uniqueTournament:n,seasonId:d,seasons:i}),b&&(0,a.jsx)(nM,{seasonId:d,uniqueTournament:n}),I&&(0,a.jsx)(nr,{info:r,isCurrentSeason:j,uniqueTournament:n,seasonId:d,uniqueTournamentWinners:l})]})})}),(0,a.jsx)(tO,{info:r,seo:o,details:n,season:h,lastSeason:x})]})]})]})}var nR=n(14831),nE=n(53255),nY=n(95798),nq=n(41080),nH=n(77474),nN=n(56653);function nF(e){let{rankings:t,rounds:n}=(0,nY.Q)(e.uniqueTournamentId,e.seasonId);return(null==n?void 0:n.length)?(0,a.jsx)(et.t,{tag:"PowerRankingsCTA",children:(0,a.jsxs)(K.Zp,{children:[(0,a.jsx)(K.Zp.Header,{title:(0,a.jsx)(D.A,{id:"sofascore_power_rankings"}),actionComponent:(0,a.jsx)(nH.h,{})}),(0,a.jsx)(nN.i,{}),(0,a.jsx)(nq.a,{rankings:null==t?void 0:t.slice(0,4)}),(0,a.jsx)(K.Zp.Footer,{ctaParams:{messageId:"power_rankings_cta",onClick:e.onClick,icon:eB.X.Right}})]})}):null}function nD(e){let{uniqueTournament:t,seasonId:n,info:i,seo:r,currentSeason:l,lastSeasonName:o,showAbout:d,onPowerRankingsClick:u,uniqueTournamentWinners:c}=e,m=(null==l?void 0:l.id)===n,p=t.category.sport.slug===s.QCR.Football,g=t.category.sport.slug===s.QCR.Tennis,h=(0,ez.b)(t.id,"header"),x=(0,ez.b)(t.id,"banner");return(0,a.jsxs)(ep.tU.Panel,{tabKey:E.x.Details,children:[h&&(0,a.jsx)(nE.O,{entityId:t.id,branding:h,location:"league_details"}),(0,a.jsxs)(K.BU,{children:[(0,a.jsx)(tv,{uniqueTournamentId:t.id}),(0,a.jsx)(S.iN,{id:S.Rj.MOBILE_ENTITY_TOP}),p&&(0,a.jsx)(eW,{uniqueTournamentId:t.id,seasonId:n,showLoader:!!(!m||t.endDateTimestamp&&(null==t?void 0:t.endDateTimestamp)n.e(11946).then(n.bind(n,11946)),{loadableGenerated:{webpack:()=>[11946]}}),nW=ee()(()=>n.e(59007).then(n.bind(n,59007)),{loadableGenerated:{webpack:()=>[59007]},ssr:!1});function nB(e){let{uniqueTournament:t,seasonId:n}=e;return(0,a.jsx)(ep.tU.Panel,{tabKey:E.x.Matches,children:(0,a.jsx)(et.t,{tag:"UniqueTournamentEventList",children:n?(0,a.jsx)(nW,{uniqueTournamentId:t.id,seasonId:n},"UniqueTournamentEventList"):(0,a.jsx)(nO,{entity:s.wNW.UniqueTournament,id:t.id})})})}let nQ=ee()(()=>n.e(32035).then(n.bind(n,32035)),{loadableGenerated:{webpack:()=>[32035]}});function nU(e){let{id:t}=e;return(0,a.jsx)(ep.tU.Panel,{tabKey:E.x.Media,children:(0,a.jsx)(K.BU,{children:(0,a.jsx)(nQ,{uniqueTournamentId:t,hideTitle:!0})})})}let nG=ee()(()=>Promise.resolve().then(n.bind(n,7078)),{loadableGenerated:{webpack:()=>[7078]}});function nV(e){let{id:t,seasonId:n}=e;return(0,a.jsx)(ep.tU.Panel,{tabKey:E.x.PowerRankings,children:(0,a.jsx)(K.BU,{children:(0,a.jsx)(nG,{uniqueTournamentId:t,seasonId:n})})})}let nK=ee()(()=>Promise.all([n.e(56591),n.e(14632),n.e(35597),n.e(73240),n.e(32935),n.e(53805)]).then(n.bind(n,53805)),{loadableGenerated:{webpack:()=>[53805]}});function nZ(e){let{uniqueTournament:t,seasonId:n,seo:s,lastSeasonName:i,info:r,currentSeason:l,selectedSeason:o}=e,d=(0,ez.b)(t.id,"standings");return(0,a.jsxs)(ep.tU.Panel,{tabKey:E.x.Standings,children:[d&&(0,a.jsx)(nE.O,{entityId:t.id,branding:d,bannerText:d.standingsText,location:"league_standings"}),(0,a.jsxs)(K.BU,{children:[(0,a.jsx)(nK,{uniqueTournamentId:t.id,seasonId:n,selectedSeason:o,hasPerformanceGraphFeature:t.hasPerformanceGraphFeature,isNarrowLayout:!0}),(0,a.jsx)(eo.pk,{utIds:[t.id]}),(0,a.jsx)(tO,{info:r,seo:s,details:t,season:l,lastSeason:i})]})]})}var nX=n(3483);let nJ=ee()(()=>Promise.all([n.e(14264),n.e(24106)]).then(n.bind(n,69303)),{loadableGenerated:{webpack:()=>[69303]}});function n$(e){let{uniqueTournament:t,seasonId:n}=e,i=(0,w.useContext)(k.Ws)===s.QCR.Tennis;return(0,a.jsx)(ep.tU.Panel,{tabKey:E.x.TopPlayers,children:i?(0,a.jsx)(nX.default,{uniqueTournamentId:t.id,seasonId:n}):(0,a.jsx)(nJ,{uTournamentId:t.id,seasonId:n,gender:t.gender})})}let n0=ee()(()=>n.e(66569).then(n.bind(n,66569)),{loadableGenerated:{webpack:()=>[66569]}});function n1(e){let{uniqueTournament:t,seasonId:n,gender:i=s.YT8.Male}=e;return(0,a.jsx)(ep.tU.Panel,{tabKey:E.x.TopStats,children:(0,a.jsx)(n0,{uniqueTournamentId:t.id,seasonId:n,gender:i})})}let n5=ee()(()=>Promise.resolve().then(n.bind(n,3483)),{loadableGenerated:{webpack:()=>[3483]}});function n8(e){let{uniqueTournament:t,seasonId:n}=e;return(0,a.jsx)(ep.tU.Panel,{tabKey:E.x.TopTeams,children:(0,a.jsx)(n5,{uniqueTournamentId:t.id,seasonId:n})})}var n3=n(62042),n9=n(94565);function n6(e){var t;let{uniqueTournament:n,seasons:i,seasonId:r,onSeasonChange:l}=e,{isMobile:o}=(0,ep.$c)(),d=(0,ef.hX)(),u=(0,L.N)(n),c=!!(i.length&&r&&r===i[0].id)&&!!(n.startDateTimestamp&&n.startDateTimestamp!==n.endDateTimestamp),m=!o&&!d,p=n.id===s.G6l.WorldCup,{data:g}=(0,eA.Ay)(s.V3t.seasonEditors(n.id,r)),[h,x]=(0,w.useState)(!1),j=(0,w.useMemo)(()=>i.find(e=>e.id===r),[r,i]),v=null==g?void 0:g.editors,y={nickname:(null==g?void 0:g.organizations.length)?null==g?void 0:g.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==g?void 0:g.organizations.length),userId:v&&v.length>1||null==v||null==(t=v[0])?void 0:t.id,onClick:v&&v.length>1&&!(null==g?void 0:g.organizations.length)?()=>x(!0):void 0};return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)(n9.az,{bg:"surface.s1",px:["lg",0],br:[void 0,"xl"],elevation:[void 0,3],position:"relative",children:[(0,a.jsxs)(np.z,{className:(0,n3.AH)({mdDown:{minH:"8xl"}}),children:[(0,a.jsx)(n9.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,a.jsx)(nc.e,{id:n.id,name:n.name,w:[48,88],h:[48,88],m:[0,"md"],mr:["xs","md"],style:{verticalAlign:"top"}})}),(0,a.jsxs)(n9.az,{flex:"1 1 auto",mr:[0,"lg"],children:[(0,a.jsxs)(n9.so,{align:"center",mt:["xs","sm"],wrap:"wrap",minH:"36",w:"100%",justify:"space-between",children:[(0,a.jsxs)(n9.az,{children:[(0,a.jsxs)(n9.so,{align:"center",children:[(0,a.jsxs)(n9.EY,{as:"h2",m:"0",font:["display.large","display.extraLarge"],c:["onSurface.nLv1","onColor.primary"],children:[u,(0,a.jsx)(n_,{uniqueTournamentId:n.id,seasonYear:null==j?void 0:j.year})]}),(0,a.jsx)(n9.az,{d:["none","inline-block"],mx:"sm",style:{verticalAlign:"middle"},children:(0,a.jsx)(nb.W,{groundType:n.groundType})}),m&&(0,a.jsx)(eG.e,{id:n.id,entity:s.bq7.Tournaments,location:P.y.Header,type:P.b.UniqueTournament,isOnOverlay:!0})]}),(0,a.jsx)(n9.so,{w:"100%",align:"center",justify:"space-between",children:(0,a.jsxs)(n9.so,{align:"center",children:[(0,a.jsx)(nc.w,{alpha2:n.category.alpha2,name:n.category.name,categoryId:n.category.id,w:[16,32],h:[16,32],mr:"sm"}),(0,a.jsxs)(n9.EY,{font:["body.medium","display.medium"],c:["onSurface.nLv1","onColor.primary"],mr:"sm",children:[" ",p?(0,a.jsx)(n9.EY,{as:"h3",font:["body.medium","display.medium"],c:["onSurface.nLv1","onColor.primary"],my:["sm",0],children:(0,a.jsx)(D.A,{id:"wc.history.title"})}):(0,a.jsx)(A.md,{slug:n.category.slug,name:n.category.name,fieldTranslations:n.category.fieldTranslations,uniqueTournament:n})]}),r&&(0,a.jsx)(n9.az,{position:"relative",zIndex:n9.Py.Fixed,children:(0,a.jsx)(nf.s,{seasonId:r,seasons:i,onSeasonChange:l},n.id)})]})})]}),!m&&(0,a.jsx)(eG.e,{id:n.id,entity:s.bq7.Tournaments,location:P.y.Header,type:P.b.UniqueTournament})]}),!m&&(0,a.jsx)(n9.az,{d:["block","none"],mt:"sm",children:(0,a.jsx)(nb.W,{groundType:n.groundType})}),c?(0,a.jsx)(n9.az,{d:["none","block"],children:(0,a.jsx)(ny.G,{start:n.startDateTimestamp,end:n.endDateTimestamp})}):null]}),m&&(0,a.jsxs)(nh.K,{id:n.id,name:u,entity:s.bq7.Tournaments,type:P.b.UniqueTournament,children:[(0,a.jsx)(nc.e,{size:32,mr:"lg",style:{verticalAlign:"top"},id:n.id,name:n.slug}),(0,a.jsx)(n9.EY,{font:"display.medium",color:"primary.default",mr:"lg",children:u})]}),m&&!!(null==g?void 0:g.editors.length)&&(0,a.jsx)(n9.az,{mt:"xs",children:(0,a.jsx)(ng.i,{...y})})]}),c&&(0,a.jsx)(n9.az,{d:["block","none"],px:"sm",pb:"xs",children:(0,a.jsx)(ny.G,{start:n.startDateTimestamp,end:n.endDateTimestamp})})]}),!m&&!!(null==g?void 0:g.editors.length)&&(0,a.jsx)(n9.az,{bg:"surface.s1",borderTop:"onSurface.nLv4",px:"sm",pt:"sm",children:(0,a.jsx)(ng.i,{...y})}),(0,a.jsx)(nv,{isOpen:h,setIsOpen:x,editorData:g})]})}function n2(e){var t,n,i;let{uniqueTournament:r,seasons:l,activeSeasonId:o,setActiveSeasonId:d=V(),info:u,uniqueTournamentWinners:c,seo:m,activeTab:p,setActiveTab:g,hasStandingsData:h,hasEvents:x}=e,j=r.category.sport.slug,v=j===s.QCR.Tennis,y=l[0],f=l.find(e=>e.id===o),b=l[1]?l[1].name:"",{initialStandings:_}=(0,w.useContext)(Q.O),k=v||!o||!nS.f.includes(j),{data:C}=(0,eA.Ay)(o&&nS.s.includes(j)?s.V3t.seasonTypes(r.id,o,"player"):null),{hasKnockoutTab:I,hasTopPlayersTab:z,hasTeamSeasonTypes:A,hasMediaTab:M,hasPowerRankings:P}=(0,N.A)({hasKnockoutTab:{route:s.V3t.cupTrees(r.id,o),skipCheck:!o},hasTopPlayersTab:{route:s.V3t.seasonTypes(r.id,o,v?"team":"player"),skipCheck:!o||!(0,nC.w)(j)},hasTeamSeasonTypes:{route:s.V3t.seasonTypes(r.id,o,"team"),skipCheck:k},hasMediaTab:{route:s.V3t.media(r.id)},hasPowerRankings:{route:s.V3t.powerRankingRounds(r.id,o)}},[o]),{data:R}=(0,eA.Ay)(k||!A?null:s.V3t.seasonTypes(r.id,o,"team")),{hasTopStatsTab:Y}=(0,N.A)({hasTopStatsTab:{route:s.V3t.topPlayersPerGame(r.id,o,"all",(null==C?void 0:C.types[0])||s.Vw_.overall),skipCheck:!o||!nS.s.includes(j)||!(null==C||null==(t=C.types)?void 0:t[0])}},[C,o]),{hasTopTeamsTab:q}=(0,N.A)({hasTopTeamsTab:{route:s.V3t.topTeams(r.id,o,(null==R?void 0:R.types[0])||s.Vw_.overall),skipCheck:k||!(null==R?void 0:R.types.length)}},[R,o]),H=!!(null==_?void 0:_.length)||h,F=(null==(n=l[0])?void 0:n.id)!==o||x||!o,D=[{tabKey:E.x.Standings,item:"app.standings",isHidden:!H},{tabKey:E.x.Details,item:"details"},{tabKey:E.x.Matches,item:"matches",values:{sport:(0,nR.ap)(j)},isHidden:!F},{tabKey:E.x.Knockout,item:v?"draw":"knockout",isHidden:!I},{tabKey:E.x.TopPlayers,item:"top_players",values:{gender:null!=(i=r.gender)?i:"M"},isHidden:!z},{tabKey:E.x.TopStats,item:"top_stats",isHidden:!Y},{tabKey:E.x.TopTeams,item:"top_teams",isHidden:!q},{tabKey:E.x.Media,item:"media",isHidden:!M},{tabKey:E.x.PowerRankings,item:"Power Rankings",isHidden:!P}];return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(n6,{uniqueTournament:r,seasons:l,seasonId:o,onSeasonChange:d}),(0,a.jsxs)(X.A,{id:r.id,location:X.C.UniqueTournamentPage,seasonId:o,initialTabKey:p,customControls:[p,g],tabs:D,children:[H&&(0,a.jsx)(nZ,{uniqueTournament:r,seasonId:o,seo:m,lastSeasonName:b,currentSeason:y,selectedSeason:f,info:u}),(0,a.jsx)(nD,{uniqueTournament:r,seasonId:o,currentSeason:y,lastSeasonName:b,info:u,uniqueTournamentWinners:c,seo:m,onPowerRankingsClick:()=>g(E.x.PowerRankings),showAbout:!H}),F&&(0,a.jsx)(nB,{uniqueTournament:r,seasonId:o}),I&&(0,a.jsx)(nL.A,{uniqueTournament:r,seasonId:o,sport:j}),z&&(0,a.jsx)(n$,{uniqueTournament:r,seasonId:o}),Y&&(0,a.jsx)(n1,{uniqueTournament:r,seasonId:o,gender:r.gender}),q&&(0,a.jsx)(n8,{uniqueTournament:r,seasonId:o}),M&&(0,a.jsx)(nU,{id:r.id}),P&&(0,a.jsx)(nV,{id:r.id,seasonId:o})]}),(0,a.jsx)(T.az,{mb:"sm",children:(0,a.jsx)(S.iN,{id:S.Rj.MOBILE_ENTITY_BOTTOM})})]})}function n4(e){var t,n,i,r;let{uniqueTournament:l,seasons:o,initialStandings:d,initialHasHomeAway:u,hasEvents:c,hasCupTree:m,info:p,uniqueTournamentWinners:g}=e,h=!!(null==d?void 0:d.length),x=l.category.sport.slug,v=()=>U(p,l)?E.x.Details:h?E.x.Standings:m?E.x.Knockout:E.x.Details,[y,f]=(0,w.useState)(v()),b=(0,w.useMemo)(()=>{var e;return{id:null==(e=o[0])?void 0:e.id,tab:y}},[null==(t=o[0])?void 0:t.id]),[D,L]=(0,F.Ay)({routeKey:"uniqueTournament",params:{sport:x,category:l.category.slug,tournament:l.slug,id:l.id}},b),O=null==D?void 0:D.id,W=o.find(e=>e.id===O),G=e=>L("id",null==e?void 0:e.toString()),{hasStandingsData:V}=(0,N.A)({hasStandingsData:{route:s.V3t.standings(l.id,O),skipCheck:!O}},[O]);(0,w.useEffect)(()=>{void 0!==V&&f(V?E.x.Standings:v())},[V]),(0,w.useEffect)(()=>{if(!o.find(e=>e.id===Number(O))){var e;G(null==(e=o[0])?void 0:e.id)}},[l.id]),(0,w.useEffect)(()=>{o.length>0&&""===window.location.hash&&G(o[0].id)},[]);let K=(0,a.jsx)(T.az,{bg:{mdDown:"surface.s1"},children:(0,a.jsxs)(_.B,{children:[(0,a.jsx)(_.B.Item,{children:(0,a.jsx)(j.di,{translatedParams:{sport:x},children:(0,a.jsx)(H.o,{sportSlug:x})})}),(0,a.jsx)(_.B.Item,{children:(0,a.jsx)(j.Z6,{category:l.category,children:(0,a.jsx)(A.md,{...l.category,uniqueTournament:l})})}),(0,a.jsx)(_.B.Title,{children:(0,a.jsx)(B,{uniqueTournament:l,year:null==(n=o[0])?void 0:n.year})})]})});return(0,a.jsx)(Q.O,{value:{uniqueTournamentId:l.id,uniqueTournamentName:l.name,seasonId:null==W?void 0:W.id,editor:null==W?void 0:W.editor,initialStandings:O===(null==(i=o[0])?void 0:i.id)?d:void 0,initialHasHomeAway:O===(null==(r=o[0])?void 0:r.id)?u:void 0},children:(0,a.jsx)(M.MC,{value:{isShort:s.HwS.includes(x),location:P.y.MatchesSection},children:(0,a.jsxs)(k.Ws,{value:x,children:[(0,a.jsx)(z.$B,{children:(0,a.jsxs)(I.YW,{children:[K,(0,a.jsx)(n2,{...e,activeSeasonId:O?Number(O):void 0,setActiveSeasonId:G,activeTab:(null==D?void 0:D.tab)||y,setActiveTab:e=>L("tab",e),hasStandingsData:V,hasEvents:c,uniqueTournamentWinners:g})]})}),(0,a.jsx)(z.h6,{children:(0,a.jsxs)(S.JR,{route:C.xW.UniqueTournament,children:[K,(0,a.jsx)(nP,{...e,activeSeasonId:O?Number(O):void 0,setActiveSeasonId:G,hasEvents:c,hasInitialStandings:h,activeTab:(null==D?void 0:D.tab)||y,uniqueTournamentWinners:g,setActiveTab:e=>L("tab",e)})]})}),(0,a.jsx)(R.A,{entity:s.bq7.MutedTournaments,entityGroup:"tournament",id:l.id}),(0,a.jsx)(Y.N,{page:{location:q.XN.LeagueScreen,entity:l}})]})})})}var n7=n(61306),ae=n(18153),at=n(45906);let an=[s.QCR.Football,s.QCR.Tennis],aa={2122:{competitionName:"Champions League",gender:s.YT8.Male,type:"none"},9500:{competitionName:"Champions League",gender:s.YT8.Female,type:"none"},11457:{competitionName:"European Championship",gender:s.YT8.Male,type:"D"},11458:{competitionName:"European Championship",gender:s.YT8.Female,type:"D"},11459:{competitionName:"European Championship",gender:s.YT8.Mixed,type:"D"},11455:{competitionName:"European Championship",gender:s.YT8.Male,type:"S"},11456:{competitionName:"European Championship",gender:s.YT8.Female,type:"S"},9550:{competitionName:"ETTU Cup",gender:s.YT8.Male,type:"none"},9534:{competitionName:"ETTU Cup",gender:s.YT8.Female,type:"none"},564:{competitionName:"Olympic games",gender:s.YT8.Male,type:"S"},565:{competitionName:"Olympic games",gender:s.YT8.Female,type:"S"},1121:{competitionName:"Olympic games",gender:s.YT8.Male,type:"T"},1123:{competitionName:"Olympic games",gender:s.YT8.Female,type:"T"},11579:{competitionName:"World Championships",gender:s.YT8.Male,type:"S"},11586:{competitionName:"World Championships",gender:s.YT8.Female,type:"S"},11587:{competitionName:"World Championships",gender:s.YT8.Mixed,type:"D"},11580:{competitionName:"World Championships",gender:s.YT8.Male,type:"D"},11585:{competitionName:"World Championships",gender:s.YT8.Female,type:"D"},1966:{competitionName:"World Cup",gender:s.YT8.Male,type:"none"},1964:{competitionName:"World Cup",gender:s.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:s.YT8.Male,type:"none"},15007:{competitionName:"Setka Cup",gender:s.YT8.Female,type:"none"},15005:{competitionName:"TT Cup",gender:s.YT8.Male,type:"none"},15009:{competitionName:"TT Cup",gender:s.YT8.Female,type:"none"},15001:{competitionName:"Ukraine Win Cup",gender:s.YT8.Male,type:"none"},15068:{competitionName:"Ukraine Win Cup",gender:s.YT8.Female,type:"none"}},as=[s.QCR.Football,s.QCR.Basketball,s.QCR.Cricket,s.QCR.Darts,s.QCR.IceHockey,s.QCR.Handball,s.QCR.Volleyball,s.QCR.Rugby,s.QCR.AmericanFootball,s.QCR.Baseball];function ai(e){var t;if("error"in e)return(0,a.jsx)(at.default,{statusCode:404});let{uniqueTournament:n,seasons:i,seo:c,info:m,uniqueTournamentWinners:p,params:g,meta:x,seoContent:j,locale:v,standings:y,hasHomeAwayStandings:b,hasEvents:T,hasCupTree:w}=e;if(!n)return null;let _=n.category.sport.slug,k=n.id===s.G6l.Euro,C=n.id===s.G6l.WorldCup,S=k&&i.length?"Euro ".concat(i[0].year):n.name,I=k&&i.length?"European Championship ".concat(i[0].year):n.name,z=aa[n.id]||void 0,A=an.includes(_)||!!j||z||f(n.id),M=(null==(t=n.category.alpha2)?void 0:t.toLowerCase())||"",P=!x&&(i.every(e=>e.editor)?!(0,l.N)(M,v):!A||(0,o.v)(_,v));return(0,a.jsxs)(u.x,{value:{meta:x,seoContent:j},children:[(0,a.jsxs)(r(),{children:[P&&(0,a.jsx)("meta",{name:"robots",content:"noindex, nofollow"}),(0,a.jsx)("link",{rel:"canonical",href:"https://www.sofascore.com".concat(d.z.getTranslatedCanonicalRoute(v,"uniqueTournament",g).route)}),(0,a.jsx)("link",{rel:"alternate",href:"android-app://com.sofascore.results/https/www.sofascore.com/league/".concat(g.id)})]}),(0,a.jsx)(h,{uniqueTournament:n}),(0,a.jsx)(u.A,{metaKey:z?"standings.tabletennis":"standings",titleKey:C?"ut.worldCup":k?"ut.euro":void 0,descriptionKey:C?"ut.worldCup":k?"ut.euro":void 0,values:{item:S,fullItem:I,...z||{}}}),(0,a.jsx)(n4,{uniqueTournament:n,seasons:i,seo:c,info:m,uniqueTournamentWinners:p,initialStandings:y,initialHasHomeAway:b,hasEvents:T,hasCupTree:w})]})}ai.getInitialProps=n7.A.getInitialPageProps(e=>async t=>{let{query:n,req:a,res:i,...r}=t,l=a?a._originalUrl:r.asPath,o=d.z.getCurrentLocale(l),u=a&&a.params?a.params:n,c=Number(u.id),m=d.z.getSportKey(u.sport,o);try{let t,n,a,r,l,[p,g,h,x,j,v]=await Promise.allSettled([s.jFR.fetchUniqueTournamentDetails(c),s.jFR.fetchUniqueTournamentSeasons(c),s.jFR.fetchUniqueTournamentSeo(c),s.jFR.fetchUniqueTournamentWinners(c),s.sdF.getEntityMeta("uniquetournament",c,o),as.includes(m)?s.sdF.getSeoContent(s.wNW.UniqueTournament,c,o):Promise.reject()]);if("rejected"===p.status)throw Error("Unique tournament does not exist");let y=p.value.uniqueTournament,f="fulfilled"===g.status?g.value.seasons:[];i&&y.category.sport.slug===s.QCR.MMA&&(i.writeHead(301,{Location:d.z.getTranslatedRoute(o,"mma.organisation",{organisationId:y.id,slug:y.slug,sport:y.category.sport.slug}).route}),i.end()),i&&(y.slug!==u.tournament||y.category.slug!==u.category)&&(i.writeHead(301,{Location:d.z.getTranslatedRoute(o,"uniqueTournament",{...u,category:y.category.slug,tournament:y.slug}).route}),i.end());let b=f.length?f[0].id:void 0;if(b){let[e,i,o,d,u,m]=await Promise.allSettled([s.jFR.fetchUniqueTournamentInfo(c,b),s.jFR.fetchStandings(c,b),(0,s.m_X)(s.V3t.standings(c,b,s.lpv.Home)),(0,s.m_X)(s.V3t.events(c,b,!0)),(0,s.m_X)(s.V3t.events(c,b)),(0,s.m_X)(s.V3t.cupTrees(c,b))]);t="fulfilled"===e.status?e.value.info:void 0,n="fulfilled"===i.status?i.value.standings:void 0,a="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,w="fulfilled"===j.status?j.value.entityMeta:void 0,_="fulfilled"===v.status?v.value.content:void 0,k="fulfilled"===x.status?x.value.winners:void 0;return e.dispatch((0,ae.Vy)(y.category.sport.slug)),{uniqueTournament:y,seasons:f,seo:T,info:t,uniqueTournamentWinners:k,params:u,meta:w,seoContent:_,locale:o,standings:n,hasHomeAwayStandings:a,hasEvents:r,hasCupTree:l}}catch(e){return i&&(i.statusCode=404),{error:e}}})},23246:(e,t,n)=>{"use strict";n.d(t,{A:()=>d});var a=n(6029),s=n(10174),i=n(71024),r=n.n(i),l=n(56132);let o=r()(()=>Promise.all([n.e(96175),n.e(33211)]).then(n.bind(n,55891)),{loadableGenerated:{webpack:()=>[55891]},ssr:!1});function d(e){let{uniqueTournament:t,seasonId:n,sport:i}=e;return(0,a.jsx)(s.tU.Panel,{tabKey:l.x.Knockout,children:(0,a.jsx)(o,{sport:i,uniqueTournamentId:t.id,uniqueTournamentSlug:t.slug,categorySlug:t.category.slug,seasonId:n})})}},24230:(e,t,n)=>{"use strict";n.d(t,{i:()=>r});var a=n(16503),s=n(95084),i=n(91452);function r(e,t,n){let r=(0,i.HK)(e,n);return(0,a.e)(()=>t?(0,s.LJ)({id:r.eventId||r.tournamentId,location:r.location,provider:n}):(0,s.WG)({id:r.eventId||r.tournamentId,location:r.location,provider:n}))}},25725:(e,t,n)=>{var a=n(81648),s=n(78492),i=n(68988),r=n(91544);e.exports=function(e,t){return function(n,l){var o=r(n)?a:s,d=t?t():{};return o(n,e,i(l,2),d)}}},26286:(e,t,n)=>{"use strict";n.d(t,{A:()=>d});var a=n(6029),s=n(87827),i=n(46787),r=n(89827),l=n(77285);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,a.jsx)(s.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 p=d;switch(p){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[p]/t.matches,1);case"fieldGoalsPercentage":case"fieldGoalsPercentageAgainst":case"freeThrowsPercentage":case"threePointsPercentage":case"threePointsPercentageAgainst":case"effectiveFieldGoalPercentage":case"trueShootingPercentage":return"".concat((0,r.M)(t[p],1),"%");case"offensiveRating":case"defensiveRating":case"pace":case"netRating":return(0,r.M)(t[p],1);default:return o(t[p])}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 g=d;switch(g){case"firstServePercentage":case"firstServePointsWonPercentage":case"secondServePercentage":case"secondServePointsWonPercentage":return(0,r.M)(t[g],1)+"%";case"avgAces":case"avgDoubleFaults":return(0,r.M)(t[g],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[g],1),"%)");case"breakPointsSavedConvertedPercentage":if(isNaN(t.breakPointsScored)||isNaN(t.breakPointsTotal))return 0;return"".concat(t.breakPointsScored,"/").concat(t.breakPointsTotal," (").concat((0,r.M)(t[g],1),"%)");case"tiebreakWinPercentage":let{tiebreaksWon:x,tiebreakLosses:j}=t;if(isNaN(x)||isNaN(j))return 0;let v=x+j;if(v>0)return"".concat(x,"/").concat(v," (").concat((0,r.M)(t[g],1),"%)");return"".concat(x,"/").concat(v," (0%)");default:return o(t[g])}default:return o(t[d])}}},28167:(e,t,n)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/tournament",function(){return n(22613)}])},30269:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});var a=n(6029),s=n(10174),i=n(90248);function r(e){let{types:t,selectedType:n,setSelectedType:r}=e;return(null==t?void 0:t.length)&&n?(0,a.jsx)(s.tU,{variant:"secondary",initialValue:n,onChange:e=>r?r(e):void 0,fullWidthTabs:!0,children:(0,a.jsx)(s.tU.List,{children:t.map(e=>(0,a.jsx)(s.tU.Tab,{tabKey:e,children:(0,a.jsx)(i.A,{id:e})},e))})}):null}},31139:(e,t,n)=>{"use strict";n.d(t,{i:()=>m});var a=n(6029),s=n(10174),i=n(76356),r=n(947),l=n(46222),o=n(73498),d=n(52466),u=n(64006),c=n(95084);function m(e){let{numberOfEditors:t,isOrganization:n,eventLocation:m,nickname:p,userId:g,hasStarted:h,isInLeagueHeader:x,onClick:j}=e,v=(0,r.A)(),{isDesktop:y}=(0,s.$c)(),f=p?v.formatMessage({id:h?"edited_by":"event.createdBy"},{nickname:p}):v.formatMessage({id:"edited_by_more_editors"},{number:t}),b=(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(s.EY,{textStyle:"assistive.default",color:"primary.default",children:f}),(0,a.jsx)(d._jO,{ml:"sm",height:16,width:16,fill:"primary.default"})]}),T=(0,a.jsx)(o.u,{onClick:j,label:f,children:(0,a.jsx)(d._jO,{})}),w=x&&y?T:b;return p||t?(0,a.jsx)(l.Zp,{variant:x?"never":"desktop-only",children:(0,a.jsx)(i.so,{justify:"flex-end",align:"center",md:x?void 0:{px:"lg",py:"sm"},children:j?w:n?(0,a.jsx)("a",{href:"https://torneo.sofascore.com/",target:"_blank",rel:"noreferrer",children:w}):(0,a.jsx)(u.N_,{routeKey:"user",params:{userId:g},onClick:()=>(0,c.Zs)(m),children:w})})}):null}},32523:(e,t,n)=>{"use strict";n.d(t,{E:()=>a.E});var a=n(3881)},33618:(e,t,n)=>{"use strict";n.d(t,{UW:()=>i,b0:()=>a,jt:()=>s});let a=e=>{let t=[],n=e.match(/\d{4}/g)||e.match(/\d{2}/g);return null==n||n.forEach(e=>{let n=+e;2===e.length&&(n=70>+e?+"20".concat(e):+"19".concat(e)),t.push(isNaN(n)?0:n)}),t.length?t:[0]},s=(e,t)=>a(t.year)[0]-a(e.year)[0],i=e=>{let t=[];for(let n=0,a=e.tournamentSeasons.length;ne.id===s.id);if(!i){let e=t.push(s);i=t[e-1]}i.seasons=i.seasons||{},i.tournaments=i.tournaments||{},a.seasons.forEach(e=>{(null==i?void 0:i.seasons[e.id])?i.tournaments[e.id]=[...i.tournaments[e.id],a.tournament]:(i.seasons[e.id]=e,i.tournaments[e.id]=[a.tournament])})}return t}},41080:(e,t,n)=>{"use strict";n.d(t,{a:()=>m});var a=n(6029),s=n(32523),i=n(76356),r=n(33144),l=n(46787),o=n(10174),d=n(64006),u=n(88505);function c(e){return(0,a.jsx)(d.gT,{team:e.team,sport:l.QCR.Football,children:(0,a.jsxs)(i.so,{align:"center",px:"sm",py:"sm",_hover:{bg:"surface.s2"},children:[(0,a.jsx)(o.EY,{minW:"xl",textAlign:"center",textStyle:"display.small",children:e.rank}),(0,a.jsx)(r.p,{ml:"lg",mr:"sm",id:e.team.id,national:!0,size:32}),(0,a.jsx)(i.az,{flexGrow:"1",flexShrink:"1",children:(0,a.jsx)(o.EY,{textStyle:"table.medium",children:(0,a.jsx)(u.Rm,{team:e.team})})}),(0,a.jsx)(i.az,{children:(0,a.jsx)(o.EY,{textStyle:"table.medium",children:e.points})})]})})}let m=e=>{let{rankings:t}=e;return(0,a.jsx)(i.az,{minH:"[192px]",children:t?t.map(e=>(0,a.jsx)(c,{...e},e.rank)):(0,a.jsx)(s.E,{uniqueKey:"power-ranking-list-cl",pt:"xs",rows:4,rowHeight:44,rowGap:4,animate:!0})})}},45500:(e,t,n)=>{"use strict";n.d(t,{D:()=>a});var a=function(e){return e.MainScreen="main_screen",e.EventPage="event_page",e.TournamentPage="league_screen",e.DetailsTab="details",e.MediaTab="media",e}({})},48524:(e,t,n)=>{"use strict";n.d(t,{K:()=>f});var a=n(6029),s=n(10174),i=n(76356),r=n(88354),l=n(14107),o=n(12364),d=n.n(o),u=n(55729),c=n(90248),m=n(494),p=n(87919),g=n(52466),h=n(36882),x=n(15341),j=n(35152),v=n(15340);let y=(0,r.m)(i.az);function f(e){let{id:t,name:n,entity:r,children:o,threshold:f=144,type:b}=e,[T,w]=(0,u.useState)(0),[_,k]=(0,x.A)("sticky_follow_header_closed_".concat(r),!1),C=(0,j.Pz)(r),S=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1e3,[n,a]=(0,u.useState)(e);return(0,u.useEffect)(()=>{let n=setTimeout(()=>{a(e)},t);return()=>clearTimeout(n)},[e]),n}((0,m.d4)(e=>e.favorites.lists[C[0]].includes(t)||2===C.length&&e.favorites.lists[C[1]].includes(t)));return(0,u.useEffect)(()=>{if(_)return;let e=d()(()=>{window.requestAnimationFrame(()=>{w(window.scrollY)})},300);return window.addEventListener("scroll",e),()=>window.removeEventListener("scroll",e)},[T,_]),(0,a.jsx)(l.N,{children:T>f&&!S&&(0,a.jsx)(y,{position:"fixed",left:"0",right:"0",mt:"0 !important",h:"[168px]",bg:"surface.sp",textAlign:"center",initial:{top:-160,opacity:0},animate:{top:0,opacity:1},exit:{top:-160,opacity:0},transition:{type:"spring",bounce:.3,restDelta:.5},zIndex:"subheader",elevation:"3",children:(0,a.jsx)(i.az,{position:"absolute",bottom:"0",left:"0",right:"0",children:(0,a.jsx)(p.m,{h:"5xl",py:"sm",children:(0,a.jsxs)(i.so,{h:"[40px]",children:[(0,a.jsx)(i.so,{onClick:()=>{window.scrollTo({top:0,behavior:"smooth"})},justify:"flex-end",align:"center",flex:"[1 1 50%]",children:(0,a.jsxs)(i.so,{backgroundColor:"surface.s2",align:"center",px:"sm",py:"xs",br:"lg",cursor:"pointer",children:[o,(0,a.jsx)(v.e,{id:t,entity:r,type:b,location:h.y.FloatingHeader})]})}),(0,a.jsx)(i.so,{align:"center",flex:"[1 1 50%]",children:(0,a.jsx)(s.EY,{textStyle:"assistive.default",ml:"lg",children:(0,a.jsx)(c.A,{id:"add_to_favorites_text",values:{name:n}})})}),(0,a.jsx)(i.so,{align:"center",children:(0,a.jsx)(s.$n,{variant:"clear",p:"0",onClick:()=>{k(!0),w(0)},children:(0,a.jsx)(g.zQC,{icon:"close"})})})]})})})})})}},49188:(e,t,n)=>{"use strict";n.d(t,{E:()=>a});let a=(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"}}}}})},51283:(e,t,n)=>{"use strict";n.d(t,{F:()=>a.A});var a=n(63435)},52736:(e,t,n)=>{"use strict";n.d(t,{b:()=>u});var a=n(6029),s=n(10174),i=n(62042),r=n(76356),l=n(90248),o=n(15341),d=n(52466);function u(e){let{messageId:t,children:n,onClick:u,...c}=e,[m,p,g]=(0,o.A)(t,!1);return!g||m?null:(0,a.jsxs)(r.so,{align:"center",bg:"surface.s2",br:"sm",py:"sm",pl:"lg",className:(0,i.AH)(c),children:[(0,a.jsx)(r.az,{children:(0,a.jsx)(d.G_L,{fill:"onSurface.nLv3"})}),(0,a.jsxs)(s.EY,{w:"100%",mx:"lg",my:"0",textStyle:"body.small",children:[(0,a.jsx)(l.A,{id:t,values:{strong:function(){for(var e=arguments.length,t=Array(e),n=0;n{null==u||u(),p(!0)},children:(0,a.jsx)(d.zQC,{icon:"close",width:"16",height:"16",fill:"onSurface.nLv1"})})]})}},55058:(e,t,n)=>{"use strict";n.d(t,{P:()=>d});var a=n(55729),s=n(45500),i=n(91452);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,p]=(0,a.useState)(l);(0,a.useEffect)(()=>{o();let e=()=>{l=!0,p(!0)};return document.addEventListener("onBlazeSDKConnect",e),()=>{document.removeEventListener("onBlazeSDKConnect",e)}},[u]),(0,a.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 a=r.Theme(d===s.D.TournamentPage?"row-rectangle":"row-rectangle-horizontal","story");a.layoutStyle.labelStyle.isVisible=!e,a.layoutStyle.statusLiveStyle.isVisible=!1,a.layoutStyle.statusUnreadStyle.isVisible=!1,a.layoutStyle.statusLiveUnreadStyle.isVisible=!1,a.layoutStyle.borderRadius=e?"0":"12px",a.layoutStyle.horizontalItemsSpacing=4,r.WidgetRowView(t,{dataSource:r.DataSourceBuilder().ids({ids:n}),theme:a,maxDisplayItemsCount:e?1:void 0}),c(!1)}catch(e){c(!0),console.error(e)}},[n.length,t,m])}},56653:(e,t,n)=>{"use strict";n.d(t,{i:()=>l});var a=n(6029),s=n(10174),i=n(76356),r=n(90248);let l=()=>(0,a.jsxs)(i.so,{px:"sm",mt:"sm",h:"xl",children:[(0,a.jsx)(s.EY,{minW:"xl",textAlign:"center",textStyle:"display.small",color:"neutrals.nLv3",children:"#"}),(0,a.jsx)(i.az,{flexGrow:1,flexShrink:1,ml:"lg",children:(0,a.jsx)(s.EY,{textStyle:"table.medium",color:"neutrals.nLv3",children:(0,a.jsx)(r.A,{id:"team"})})}),(0,a.jsx)(s.EY,{textStyle:"table.medium",color:"neutrals.nLv3",textTransform:"uppercase",children:(0,a.jsx)(r.A,{id:"Pts"})})]})},63435:(e,t,n)=>{"use strict";n.d(t,{A:()=>m,b:()=>c});var a=n(6029),s=n(10174),i=n(76356),r=n(55729),l=n(90248),o=n(50677),d=n(91113),u=n(64178);function c(e,t,n,a,s){let i=s?(0,d.O)(o,t,a):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));return(0,r.useEffect)(()=>{window.scrollTo({top:o,behavior:"smooth"})},[o]),(0,a.jsx)(i.az,{p:"sm",children:(0,a.jsx)(s.ms,{label:"Quick find statistic",items:m,renderItem:(e,t)=>t?(0,a.jsx)(l.A,{id:"quick_find"}):(null==e?void 0:e.label)||null,onSelectedItemChange:e=>{e.selectedItem&&(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)}})(e.selectedItem)},forceMenuBelow:!0})})}},64178:(e,t,n)=>{"use strict";n.d(t,{f:()=>i,g:()=>s});var a=n(46787);function s(e){return e===a.QCR.IceHockey?["powerPlayPercentage","penaltyKillPercentage","goals","goalsAgainst","shots","shotsAgainst","hits","blocks","faceOffPercentage","penaltyMinutes"]:null}function i(e){return e===a.QCR.IceHockey?["goals","goalsAgainst","shots","shotsAgainst","hits","blocks","penaltyMinutes"]:null}},64976:(e,t,n)=>{"use strict";n.d(t,{o:()=>i});var a=n(46787);let s=[a.Vw_.overall,a.Vw_.regularSeason,a.Vw_.playoffs];function i(e){if(!e)return[];let t=e.filter(e=>s.includes(e));return t.length>1||1===t.length&&t[0]!==a.Vw_.overall?t:[]}},67086:(e,t,n)=>{"use strict";n.d(t,{N:()=>s});var a=n(49856);function s(e,t){return"en"===t||t===a.vo[e]}},68318:(e,t,n)=>{"use strict";n.d(t,{s:()=>u});var a=n(6029),s=n(10174),i=n(94565),r=n(13731),l=n.n(r),o=n(59018),d=n.n(o);function u(e){let{onSeasonChange:t,seasons:n,seasonId:r,alignRight:o}=e,u=l()(n,"year"),c=d()(n.map(e=>e.year)),m=n.find(e=>e.id===r)||n[0],p=m&&u[m.year],g=(null==p?void 0:p.length)>1;return(0,a.jsxs)(i.so,{wrap:"wrap",flex:["1 1 100%",void 0],mt:[0,"sm","xs"],zIndex:i.Py.Dropdown,children:[(0,a.jsx)(s.ms,{label:"Select season in unique tournament header",mr:"sm",items:c,selectedItem:(null==m?void 0:m.year)||c[0],onSelectedItemChange:e=>{let{selectedItem:n}=e;if(n&&u[n]){let e=u[n];e.length&&t(e[0].id)}},alignRight:o}),g&&(0,a.jsx)(s.ms,{label:"Select season in unique tournament header",items:p,selectedItem:m,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,a.jsx)(i.EY,{font:"body.small",color:"inherit",maxW:t?96:void 0,block:!0,ellipsis:!0,children:n.replace(m.year,"")})}return""},alignRight:!0},m.year)]})}},77015:(e,t,n)=>{"use strict";n.d(t,{t:()=>s.t,w:()=>a.w});var a=n(53192),s=n(91407)},77285:(e,t,n)=>{"use strict";n.d(t,{I:()=>r,k:()=>l});var a=n(55729),s=n(947),i=n(8900);let r="-playoffs";function l(e,t){var n;let[l,o]=(0,a.useState)({label:"",value:""}),[d,u]=(0,a.useState)(),c=(0,s.A)(),m=e.map(e=>((e,t,n)=>{let a=t.split(r),s=a[0],l=a.length>1;return{label:(0,i.y)(e,s,n,l),value:t}})(c,e,t));return(0,a.useEffect)(()=>{var e,t;if((null==(e=m[0])?void 0:e.value)!==(null==d?void 0:d.value)||!l.value&&m.length&&m[0]){let e=m.find(e=>"rating"===e.value);o(null!=(t=null!=e?e:m[0])?t:{label:"",value:""}),u(null!=e?e:m[0])}},[m.length,null==(n=m[0])?void 0:n.value]),{selectedStat:l,setSelectedStat:o,statItems:m}}},77474:(e,t,n)=>{"use strict";n.d(t,{h:()=>d});var a=n(6029),s=n(10174),i=n(55729),r=n(90248),l=n(52466),o=n(82536);let d=()=>{let[e,t]=(0,i.useState)(!1);return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("button",{onClick:()=>t(!0),children:(0,a.jsx)(l.G_L,{fill:"onSurface.nLv1"})}),(0,a.jsx)(o.A,{isOpen:e,setIsOpen:t,header:"sofascore_power_rankings",children:(0,a.jsx)(s.EY,{display:"block",maxW:{md:"[312px]"},px:"lg",textStyle:"body.mediumParagraph",children:(0,a.jsx)(r.A,{id:"power_rankings_description"})})})]})}},77812:(e,t,n)=>{"use strict";n.d(t,{f:()=>i,s:()=>s});var a=n(46787);let s=[a.QCR.Football,a.QCR.Handball,a.QCR.Basketball,a.QCR.IceHockey,a.QCR.Volleyball],i=[a.QCR.Football,a.QCR.Handball,a.QCR.Basketball,a.QCR.IceHockey,a.QCR.Tennis,a.QCR.Volleyball]},78492:(e,t,n)=>{var a=n(50956);e.exports=function(e,t,n,s){return a(e,function(e,a,i){t(s,e,n(e),i)}),s}},81648:e=>{e.exports=function(e,t,n,a){for(var s=-1,i=null==e?0:e.length;++s{e.exports=function(e,t,n){var a=-1,s=e.length;t<0&&(t=-t>s?0:s+t),(n=n>s?s:n)<0&&(n+=s),s=t>n?0:n-t>>>0,t>>>=0;for(var i=Array(s);++a{var a=n(88165),s=n(48877),i=n(98888),r=Math.ceil,l=Math.max;e.exports=function(e,t,n){t=(n?s(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:()=>r,HK:()=>l,hT:()=>d,R5:()=>o});var a=n(95084),s=n(45500);let i="___sofa-wsc___",r=e=>{let{type:t,location:n,tournamentId:a,roundId:s,eventId:r,screen:l,provider:o}=e;return"wsc"===o?"".concat(i).concat(l,"--").concat(t,"--").concat(n,"--").concat(a,"--").concat(s,"--").concat(r).concat(i):"".concat(l,"--").concat(t,"--").concat(n,"--").concat(a,"--").concat(s,"--").concat(r)},l=(e,t)=>{let[n,a,s,r,l,o]=("wsc"===t?(e=>{let t=new RegExp("".concat(i,"(.*?)").concat(i)),n=e.match(t);return n?n[1]:""})(e||""):e).split("--");return{screen:n,type:a,location:s,tournamentId:Number(r),roundId:"null"===l||"undefined"===l?null:Number(l),eventId:"null"===o||"undefined"===o?null:Number(o)}},o=e=>{let{screen:t,type:n,location:a,tournamentId:i,roundId:r,eventId:o}=l(e,"wsc"),d="Invalid WSC widget containerId: ".concat(e);if(e&&["single","multiple"].includes(n)&&["mobile","desktop"].includes(t)&&Object.values(s.D).includes(a)){if(isNaN(Number(i)));else if(r&&isNaN(Number(r)));else if(!(o&&isNaN(Number(o))))return!0}throw Error(d)},d=e=>{var t,n;let s=null==(t=e.detail)?void 0:t.eventData,i=(null==s?void 0:s.widget_id)||(null==s?void 0:s.origin_widget_id),r=null==(n=e.detail)?void 0:n.eventType;if(r&&i){let{eventId:e,tournamentId:t,location:n}=l(i,"wsc");switch(r){case"widget_click":(0,a.kA)({id:e||t,location:n,provider:"wsc"});break;case"story_exit":(0,a.G9)({id:e||t,location:n,timeOnScreen:s.content_duration_viewed,provider:"wsc"})}}}},92208:(e,t,n)=>{"use strict";n.d(t,{WG:()=>u,YL:()=>m,_z:()=>c,lE:()=>i,o_:()=>r});var a=n(46787);let s={EN:"GB",SX:"GB",WA:"GB",NX:"GB"},i=e=>e&&(s[e]||e),r=e=>{if(e)return e===a.YT8.Male?"Male":e===a.YT8.Female?"Female":void 0},l={en:{35:"https://en.wikipedia.org/wiki/Manchester_United_F.C.",38:"https://en.wikipedia.org/wiki/Chelsea_F.C.",1644:"https://en.wikipedia.org/wiki/Paris_Saint-Germain_F.C.",2351:"https://en.wikipedia.org/wiki/Rangers_F.C.",2687:"https://en.wikipedia.org/wiki/Juventus_F.C.",2817:"https://en.wikipedia.org/wiki/FC_Barcelona"},pt:{1963:"https://pt.wikipedia.org/wiki/Sociedade_Esportiva_Palmeiras",1966:"https://pt.wikipedia.org/wiki/Sport_Club_Internacional",5926:"https://pt.wikipedia.org/wiki/Gr%C3%AAmio_Foot-Ball_Porto_Alegrense",5981:"https://pt.wikipedia.org/wiki/Clube_de_Regatas_do_Flamengo"}},o={en:{7:"https://en.wikipedia.org/wiki/UEFA_Champions_League",8:"https://en.wikipedia.org/wiki/La_Liga",17:"https://en.wikipedia.org/wiki/Premier_League",19:"https://en.wikipedia.org/wiki/FA_Cup",23:"https://en.wikipedia.org/wiki/Serie_A",34:"https://en.wikipedia.org/wiki/Ligue_1",36:"https://en.wikipedia.org/wiki/Scottish_Premiership",328:"https://en.wikipedia.org/wiki/Coppa_Italia",329:"https://en.wikipedia.org/wiki/Copa_del_Rey",332:"https://en.wikipedia.org/wiki/Scottish_League_Cup",335:"https://en.wikipedia.org/wiki/Coupe_de_France",347:"https://en.wikipedia.org/wiki/Scottish_Cup"},pt:{325:"https://pt.wikipedia.org/wiki/Campeonato_Brasileiro_de_Futebol",373:"https://pt.wikipedia.org/wiki/Copa_do_Brasil_de_Futebol",384:"https://pt.wikipedia.org/wiki/Copa_Libertadores_da_Am%C3%A9rica"}},d={pt:{358554:"https://pt.wikipedia.org/wiki/Gabriel_Barbosa",32891:"https://pt.wikipedia.org/wiki/Mauricio_Isla",840219:"https://pt.wikipedia.org/wiki/Pedro_Guilherme_Abreu_dos_Santos",795291:"https://pt.wikipedia.org/wiki/Bruno_Henrique_Pinto",822526:"https://en.wikipedia.org/wiki/Gabriel_Batista",950454:"https://pt.wikipedia.org/wiki/Hugo_de_Souza_Nogueira",804703:"https://pt.wikipedia.org/wiki/Bruno_Viana_Willemen_da_Silva",333587:"https://pt.wikipedia.org/wiki/Giorgian_De_Arrascaeta",242213:"https://pt.wikipedia.org/wiki/Willian_Ar%C3%A3o"}},u=(e,t)=>{var n;return null==(n=l[t])?void 0:n[e]},c=(e,t)=>{var n;return null==(n=o[t])?void 0:n[e]},m=(e,t)=>{var n;return null==(n=d[t])?void 0:n[e]}},93785:(e,t,n)=>{"use strict";n.d(t,{A:()=>c});var a=n(6029),s=n(10174),i=n(55729),r=n(90248),l=n(18970),o=n(64178),d=n(91113);let u=JSON.parse('{"basketball":{"fastbreakPoints":"basketball_fast_break_points","offensiveRating":"basketball_offensive_rating","defensiveRating":"basketball_defensive_rating","possession":"basketball_possession","netRating":"basketball_net_rating","pace":"basketball_pace","effectiveFieldGoalPercentage":"basketball_effective_field_goal_pct","trueShootingPercentage":"basketball_true_shooting_pct"},"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"},"volleyball":{"pointsTotal":"volleyball_points","aces":"volleyball_aces","serveEfficiency":"volleyball_serve_efficiency_percentage","blockPoints":"volleyball_block_points","attackPoints":"volleyball_attack_points","attacksEfficiency":"volleyball_attack_efficiency_percentage","attackErrors":"volleyball_attack_errors","serveErrors":"volleyball_serve_errors","receptionErrors":"volleyball_reception_errors","attacksBlocked":"volleyball_attacks_blocked"},"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","successfulDribbles":"football_successful_dribbles"}');function c(e){let{id:t}=e,n=(0,i.useContext)(l.Ws),c=n?(0,o.f)(n):null;return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(r.A,{id:(0,d.O)(u,t,n)}),(null==c?void 0:c.includes(t))&&(0,a.jsxs)(s.EY,{textStyle:"[inherit]",textTransform:"lowercase",children:[" ",(0,a.jsx)(r.A,{id:"per_match"})]})]})}},95798:(e,t,n)=>{"use strict";n.d(t,{Q:()=>i});var a=n(46787),s=n(45860);function i(e,t,n){var i,r;let{data:l}=(0,s.Ay)(a.V3t.powerRankingRounds(e,t)),o=n||(null==l||null==(r=l.powerRankingRounds)||null==(i=r[0])?void 0:i.id),{data:d}=(0,s.Ay)(o?a.V3t.powerRankings(e,t,o):null);return{rankings:null==d?void 0:d.powerRankings,rounds:null==l?void 0:l.powerRankingRounds}}},96688:(e,t,n)=>{"use strict";function a(e){let t=(null==e?void 0:e.toLowerCase())||"",n=["hr","es","pt"].includes(t);return"https://corporate.sofascore.com".concat(n?"/".concat(t):"","/about/rating")}n.d(t,{y:()=>a})},98076:(e,t,n)=>{"use strict";n.d(t,{A:()=>l});var a=n(46787),s=n(55729),i=n(45860),r=n(64976);let l=function(e,t,n,l,o){let d=e&&t&&l?a.V3t.seasonTypes(e,t,l):null,{data:u,error:c}=(0,i.Ay)(d),m=(0,r.o)(null==u?void 0:u.types),[p,g]=(0,s.useState)(o||m[0]);return(0,s.useEffect)(()=>{!p&&m.length&&g(m[0])},[null==m?void 0:m.length,n]),(0,s.useEffect)(()=>{o&&g(o)},[o]),{types:m,currentType:m.length?p:void 0,setCurrentType:g,isError:!!c||!d,isLoading:!!d&&!u&&!c}}},98423:(e,t,n)=>{"use strict";n.d(t,{e:()=>s.e,p:()=>a.p});var a=n(91603),s=n(33480)},98888:(e,t,n)=>{var a=n(11061);e.exports=function(e){var t=a(e),n=t%1;return t==t?n?t-n:t:0}}},e=>{e.O(0,[14092,28446,83170,84526,56587,17135,36678,20288,24649,93785,36701,54820,3074,83716,66327,80376,19475,85129,89666,16510,90636,46593,38792],()=>e(e.s=28167)),_N_E=e.O()}]);