!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]="05c01a1e-0483-4e05-ae05-22c736c9278a",e._sentryDebugIdIdentifier="sentry-dbid-05c01a1e-0483-4e05-ae05-22c736c9278a")}catch(e){}}(),(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6489],{1440:(e,t,n)=>{"use strict";n.d(t,{A:()=>l,q:()=>o});var r=n(6029),i=n(41249),a=n(55729),s=n(43072);let o=e=>{let{initialVisible:t=!1,defaultHeight:n=0,visibleOffset:o=1e3,persist:l=!1,loader:u,children:d,...c}=e,m={initialInView:t,rootMargin:"".concat(o,"px 0px ").concat(o,"px 0px")},[f,h,p]=(0,s.Wx)(m),x=(0,a.useRef)(t),g=(0,a.useRef)(n);(0,a.useEffect)(()=>{h&&!0!==x.current&&(x.current=!0),h&&g.current!==n&&(g.current=(null==p?void 0:p.boundingClientRect.height)||n)},[h,p]);let v=u||(g.current?(0,r.jsx)(i.az,{h:g.current}):null),b=h||l&&x.current;return(0,r.jsx)(i.az,{ref:f,...c,children:b?d:v})},l=o},3518:(e,t,n)=>{"use strict";n.d(t,{Z:()=>u,i:()=>o.i});var r=n(6029),i=n(90510),a=n(494),s=n(5339),o=n(5921),l=n(52905);function u(e){let{value:t,fromUnit:n}=e,u=(0,a.d4)(l.Y);if(!t)return null;if((0,s.C)(t,n).to("m")>=1e3)return(0,r.jsx)(d,{value:t,fromUnit:n});if(u===o.i.Imperial){let e=function(e,t){let n=(0,s.C)(e,t).to("feet"),r=Math.floor(n),i=Math.round((0,s.C)(n-Math.floor(n),"ft").to("in"));return 12===i&&(r+=1,i=0),{ft:r,in:i}}(t,n);return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(i.Gr,{value:e.ft,style:"unit",unit:"foot",unitDisplay:"narrow"}),"\xa0",(0,r.jsx)(i.Gr,{value:e.in,style:"unit",unit:"inch",unitDisplay:"narrow"})]})}return(0,r.jsx)(i.Gr,{value:(0,s.C)(t,n).to("cm"),style:"unit",unit:"centimeter",unitDisplay:"short"})}function d(e){let{value:t,fromUnit:n}=e,u=(0,a.d4)(l.Y);return t?u===o.i.Imperial?(0,r.jsx)(i.Gr,{value:(0,s.C)(t,n).to("mile"),style:"unit",unit:"mile",maximumFractionDigits:1,unitDisplay:"short"}):(0,r.jsx)(i.Gr,{value:(0,s.C)(t,n).to("km"),style:"unit",unit:"kilometer",maximumFractionDigits:1,unitDisplay:"short"}):null}},3881:(e,t,n)=>{"use strict";n.d(t,{E:()=>o});var r=n(64082),i=n(6029),a=n(41249),s=n(43451);function o(e){var{height:t=800,width:n="100%",rowHeight:o=45,wrapperStyle:l={},rows:u,animate:d=!1,rowGap:c=8,uniqueKey:m}=e,f=(0,r.T)(e,["height","width","rowHeight","wrapperStyle","rows","animate","rowGap","uniqueKey"]);return 0===t?null:(0,i.jsx)(a.az,Object.assign({maxW:"100%",bg:"surface.s1",overflow:"hidden"},f,{style:l},{children:(0,i.jsx)(s.D,Object.assign({animate:d,width:n,height:u&&o?u*(o+c):t,uniqueKey:m},{children:(0,i.jsx)(i.Fragment,{children:u?Array(u).fill(null).map((e,t)=>(0,i.jsx)("rect",{x:0,y:t*(o+c),width:"100%",height:o},t)):(0,i.jsx)("rect",{x:0,y:0,width:"100%",height:t})})}))}))}},7263:(e,t,n)=>{"use strict";n.d(t,{n:()=>r.n});var r=n(3959)},7309:(e,t,n)=>{"use strict";n.d(t,{w:()=>l});var r=n(947),i=n(84942),a=n(20336),s=n(79154);let o={};function l(e){let t=(0,r.A)();if(o[e.id])return o[e.id];let n=(0,i.s)(e,t.locale,{skipFallback:!0});if(n)return o[e.id]=n,n;let l=(0,a.t)(e.name,e.category.sport.slug,t);if(!e.uniqueTournament)return o[e.id]=l,l;let u=s[e.uniqueTournament.id];if(u){let n=e.uniqueTournament.name,r=t.formatMessage({id:u});l=l.replace(new RegExp("\\b".concat(n,"\\b")),r)}return o[e.id]=l,l}},8973:(e,t,n)=>{"use strict";n.d(t,{b:()=>r,y:()=>i});var r=function(e){return e.Event="event",e.Team="team",e.UniqueTournament="unique_tournament",e.Tournament="tournament",e.Player="player",e.Stage="stage",e.Substage="substage",e.UniqueStages="unique_stage",e.Constructor="constructor",e.Driver="driver",e}({}),i=function(e){return e.MainMatches="main_matches",e.MainLeagues="main_leagues",e.Header="header",e.EventHeader="event_header",e.EventsTab="events_tab",e.EventWidget="event_widget",e.MatchesSection="matches_section",e.H2HSection="h2h_section",e.FloatingHeader="floating_header",e.Favorites="favorites",e.PlayerStatistics="player_statistics",e.RacesTab="races_tab",e.FightNight="fight_night",e.Fights="fights",e.PopularPlayers="popular_players",e.PopularTeams="popular_teams",e.Search="search",e.Popup="popup",e}({})},10234:(e,t,n)=>{"use strict";n.d(t,{J:()=>a});var r=n(6029),i=n(7309);let a=e=>{let{tournament:t}=e,n=(0,i.w)(t);return(0,r.jsx)(r.Fragment,{children:n})}},12047:(e,t,n)=>{"use strict";n.d(t,{Ay:()=>s});var r=n(44194),i=n(21501),a=n(55729);function s(){let{isInMobileTabs:e=!0,isSportMenuVisible:t=!0}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},[n,s]=(0,a.useState)(0),o=(0,i.YU)(),{isMobile:l}=(0,r.$c)(),u=50*!!e,d=48+u+48*!!t;return(0,a.useEffect)(()=>{if(!l)return void s(0);s(o===i.Dh.Up?d:u)},[o,l]),n}},14407:(e,t,n)=>{"use strict";n.d(t,{I:()=>o});var r=n(6029),i=n(41735),a=n(94497);let s=i.default.span.withConfig({componentId:"sc-923226f3-0"})(["animation:"," 1s ease-in infinite;"],a.HI.fast),o=()=>(0,r.jsx)(s,{children:"'"})},17331:(e,t,n)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/rankings",function(){return n(86319)}])},17357:(e,t,n)=>{"use strict";n.d(t,{A:()=>l});var r=n(21377),i=n(55729),a=n(494),s=n(30720),o=n(19121);function l(e,t){let n=null==t?void 0:t.shouldRefresh,[l,u]=(0,i.useState)(),[d,c]=(0,i.useState)(),m=(0,a.wA)();(0,i.useEffect)(()=>{(null==t?void 0:t.event)?m((0,o.$n)(t.event)):e&&r.nk6.fetchEvent(e).then(e=>{m((0,o.$n)(e.event)),u(e.event),c(void 0)}).catch(e=>{c(e),(null==t?void 0:t.onFetchError)&&t.onFetchError(),u(void 0)})},[e,null==t?void 0:t.event]);let f=(0,a.d4)(t=>{let{favorites:{events:n}}=t;return e?n[e]:void 0});(0,i.useEffect)(()=>{if(!e||!n)return;let t="event-details-".concat(e);return m((0,o.vB)({entities:[e],refreshTaskId:t},{fetchFunction:r.nk6.fetchEvent.bind(null,e)})),()=>{m((0,o.tM)(t))}},[e,n]);let[h,p]=(0,s.A)(f||(null==t?void 0:t.event),"homeTeam","awayTeam",l||(null==t?void 0:t.event)),[x,g]=(0,s.A)(f||(null==t?void 0:t.event),"homeScore","awayScore",l||(null==t?void 0:t.event));return{event:f,fetchedEvent:l,leftTeam:h,rightTeam:p,leftScore:x,rightScore:g,error:d}}},20336:(e,t,n)=>{"use strict";n.d(t,{t:()=>d,g:()=>c});var r=n(21377),i=n(947);let a=JSON.parse('{"american-football":{"Quarterfinal":"american_football_divisional_round","Quarterfinals":"american_football_divisional_round","Round of 16":"american_football_wild_card","Round 1":{"id":"week_number","values":{"n":1}},"Round 2":{"id":"week_number","values":{"n":2}},"Round 3":{"id":"week_number","values":{"n":3}},"Round 4":{"id":"week_number","values":{"n":4}},"Round 5":{"id":"week_number","values":{"n":5}},"Round 6":{"id":"week_number","values":{"n":6}},"Round 7":{"id":"week_number","values":{"n":7}},"Round 8":{"id":"week_number","values":{"n":8}},"Round 9":{"id":"week_number","values":{"n":9}},"Round 10":{"id":"week_number","values":{"n":10}}},"Qualifications":"qualifications","Qualification":"Qualification","Quarterfinal":"quarterfinals","Quarterfinals":"quarterfinals","Semifinal":"semifinals","Semifinals":"semifinals","Final":"final","Match for 3rd place":"match-for-3rd-place","Round 1":{"id":"round_number","values":{"n":1}},"Round 2":{"id":"round_number","values":{"n":2}},"Round 3":{"id":"round_number","values":{"n":3}},"Round 4":{"id":"round_number","values":{"n":4}},"Round 5":{"id":"round_number","values":{"n":5}},"Round 6":{"id":"round_number","values":{"n":6}},"Round 7":{"id":"round_number","values":{"n":7}},"Round 8":{"id":"round_number","values":{"n":8}},"Round 9":{"id":"round_number","values":{"n":9}},"Round 10":{"id":"round_number","values":{"n":10}},"Qualification round 1":{"id":"qualificationRoundN","values":{"n":1}},"Qualification round 2":{"id":"qualificationRoundN","values":{"n":2}},"Qualification round 3":{"id":"qualificationRoundN","values":{"n":3}},"Qualification round 4":{"id":"qualificationRoundN","values":{"n":4}},"Qualification round 5":{"id":"qualificationRoundN","values":{"n":5}},"Qualification round 6":{"id":"qualificationRoundN","values":{"n":6}},"Round of 16":"round_of_16","Round of 32":"round_of_32","Round of 64":"round_of_64","Round of 128":"round_of_128","R16":"round_of_16","R32":"round_of_32","R64":"round_of_64","R128":"round_of_128","1/8":"round_of_16","1/16":"round_of_32","1/32":"round_of_64","1/64":"round_of_128","Group A":{"id":"group_letter","values":{"n":"A"}},"Group B":{"id":"group_letter","values":{"n":"B"}},"Group C":{"id":"group_letter","values":{"n":"C"}},"Group D":{"id":"group_letter","values":{"n":"D"}},"Group E":{"id":"group_letter","values":{"n":"E"}},"Group F":{"id":"group_letter","values":{"n":"F"}},"Group G":{"id":"group_letter","values":{"n":"G"}},"Group H":{"id":"group_letter","values":{"n":"H"}},"Third-placed teams":"third_place","Playoffs":"playoffs","Playoff round":"playoff_round","Knockout stage":"knockout_stage","Season":"season"}');var s=n(27892);let o=Object.values(r.QCR),l=Object.keys(a).filter(e=>!o.includes(e));function u(e,t){return{id:(0,s.O)(a,e,t),values:(0,s.B)(a,e,t)}}function d(e,t,n){for(let r of l)if(e.includes(r)){let{id:i,values:a}=u(r,t),s=n.formatMessage({id:i,defaultMessage:r},a);return e.replace(new RegExp("\\b".concat(r,"\\b")),s)}return e}function c(e,t){let n=(0,i.A)();if(!e)return;let{id:r,values:a}=u(e,t);return n.formatMessage({id:r,defaultMessage:e},a)}},30720:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var r=n(69385);function i(e,t,n,i){let a=(0,r.A)(i);if(!(e&&void 0!==t&&void 0!==n))return[];let[s,o]=[e[t],e[n]];return a?[o,s]:[s,o]}},32523:(e,t,n)=>{"use strict";n.d(t,{E:()=>r.E});var r=n(3881)},33144:(e,t,n)=>{"use strict";n.d(t,{p:()=>r.p});var r=n(91603)},33752:(e,t,n)=>{"use strict";n.d(t,{B:()=>f});var r=n(6029),i=n(44194),a=n(62042),s=n(76356);let o=(0,a.Fj)({base:{display:"inline-block",verticalAlign:"bottom",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",color:"neutrals.nLv3",textStyle:"display.micro","& > a":{color:"primary.default",_hover:{textDecoration:"underline"}},"& + li":{_before:{content:'""',display:"inline-block",width:"[0px]",height:"[0px]",borderStyle:"solid",margin:"[1px 5px]",borderWidth:"[3px 0 3px 5px]",borderTopColor:"[transparent]",borderRightColor:"[transparent]",borderBottomColor:"[transparent]",borderLeftColor:"neutrals.nLv3",_rtl:{borderWidth:"[3px 5px 3px 0]",borderTopColor:"[transparent]",borderLeftColor:"[transparent]",borderBottomColor:"[transparent]",borderRightColor:"neutrals.nLv3"}}},"&:first-child:nth-last-child(3)":{maxWidth:"[50%]"},"&:first-child:nth-last-child(3) ~ &":{maxWidth:"[50%]"},"&:first-child:nth-last-child(4)":{maxWidth:"[33.33%]"},"&:first-child:nth-last-child(4) ~ &":{maxWidth:"[33.33%]"},"&:last-child":{display:"inline",whiteSpace:"initial"}}}),l=(0,s.I4)("li",o),u=(0,a.Fj)({base:{display:"flow-root",lineClamp:1,lineHeight:"[16px]",boxOrient:"vertical",overflow:"hidden",listStyle:"none",margin:"0",padding:"0",color:"neutrals.nLv3","&:has(.breadcrumb-title)":{lineClamp:2},"& > li":{lineHeight:"[16px]"}}}),d=(0,s.I4)("ul",u),c=(0,a.Fj)({base:{"&:has(.breadcrumb-title)":{py:"md",px:"lg",md:{px:"0"},"@supports not selector(:has(a, b))":{py:"md",px:"lg",md:{px:"0"}}}},variants:{isHomePage:{true:{mdDown:{padding:"[0px !important]"}}}}}),m=(0,s.I4)("div",c),f=e=>{let{children:t,isHomePage:n}=e;return(0,r.jsx)(m,{isHomePage:n,children:(0,r.jsx)(d,{children:t})})};f.Item=e=>{let{children:t}=e;return(0,r.jsx)(l,{children:t})},f.Title=e=>{let{children:t}=e;return(0,r.jsx)(i.Li,{display:"inline",className:"breadcrumb-title",children:(0,r.jsx)(i.H1,{display:"inline",textStyle:"display.micro",color:"neutrals.nLv3",children:t})})}},34765:(e,t,n)=>{"use strict";n.d(t,{L:()=>l});var r=n(21377),i=n(55729),a=n(45860),s=n(62859),o=n(8703);function l(){let{event:e,initialIncidents:t}=(0,i.useContext)(s.y$),n={};if(e.status.type===r.XUj.InProgress)n.onErrorRetry=(e,t,n,r,i)=>{let{retryCount:a}=i;404===e.status&&setTimeout(()=>r({retryCount:a}),15e3)};else{let e={incidents:[]};n.onError=(t,n)=>{(0,a.Tk)(n,()=>e,!1)}}let{data:l,isLoading:u,error:d}=(0,a.Ay)(r.bnp.incidents(e.id),(0,o.rf)(e,n));return{incidents:(null==l?void 0:l.incidents)||t||[],isLoading:(null==t||!t.length)&&u,isError:!!d}}},37721:(e,t,n)=>{"use strict";n.d(t,{l:()=>o});var r=n(64082),i=n(6029),a=n(21377),s=n(41249);function o(e){var{id:t,name:n,size:o=56,placeholder:l="/static/images/placeholders/tournament.svg",fallback:u}=e,d=(0,r.T)(e,["id","name","size","placeholder","fallback"]);let c=d.w||d.width||o,m=d.h||d.height||o;return(0,i.jsx)(s._V,Object.assign({fallback:u||(0,i.jsx)(s._V,{w:c,h:m,src:l,alt:n}),src:t?a.yKR.image(t):"",alt:n,w:c,h:m,isGrayscale:d.grayscale},d))}},42621:(e,t,n)=>{"use strict";n.d(t,{q:()=>r.q});var r=n(1440)},43451:(e,t,n)=>{"use strict";n.d(t,{D:()=>s});var r=n(6029),i=n(36145),a=n(41735);let s=({width:e="100%",height:t,animate:n=!1,viewBox:s,style:o,children:l,uniqueKey:u})=>{let d=(0,a.useTheme)();return(0,r.jsx)(i.Ay,Object.assign({speed:2,animate:n,width:e,height:t,backgroundColor:n?d.colors.surface.s0:d.colors.surface.s2,foregroundColor:d.colors.surface.s2,viewBox:s,style:o,uniqueKey:u},{children:l}))}},45152:(e,t,n)=>{"use strict";n.d(t,{S:()=>j});var r=n(6029),i=n(65789),a=n(73045),s=n(41249),o=n(90248),l=n(62859),u=n(54409),d=n(98449),c=n(95247),m=n(65078),f=n(70591),h=n(47530),p=n(10234);let x=e=>{let{event:t,hideTitle:n,hasCta:i=!1,onClick:l}=e;return(0,r.jsxs)(f.tj,{event:t,onClick:l,children:[(0,r.jsxs)(s.az,{br:["sm","lg"],bg:"surface.s2",hoverBg:"onSurface.nLv4",minH:102+32*!n,children:[!n&&(0,r.jsxs)(s.so,{pt:"sm",align:"center",px:"lg",children:[t.tournament.uniqueTournament?(0,r.jsx)(a.e,{id:t.tournament.uniqueTournament.id,size:24}):(0,r.jsx)(a.l,{id:t.tournament.id,size:24}),(0,r.jsxs)(s.EY,{as:"bdi",ml:"sm",block:!0,font:"assistive.default",color:"onSurface.nLv3",children:[(0,r.jsx)(d.m,{slug:t.tournament.category.slug,name:t.tournament.category.name,uniqueTournament:t.tournament.uniqueTournament}),", ",(0,r.jsx)(p.J,{tournament:t.tournament}),t.roundInfo&&(0,r.jsxs)(r.Fragment,{children:[", ",(0,r.jsx)(h.DT,{round:t.roundInfo})]})]})]}),(0,r.jsx)(c.g,{disableFollow:!0,hasCountdown:!0,hideIncidents:!0,hideTimeouts:!0})]}),i&&(0,r.jsxs)(s.so,{px:"lg",py:"lg",justify:"center",cursor:"pointer",children:[(0,r.jsx)(s.EY,{color:"primary.default",font:"display.small",children:(0,r.jsx)(o.A,{id:"see_all"})}),(0,r.jsx)(u.CCT,{fill:"primary.default",ml:"xs"})]})]})};function g(e){let{event:t,...n}=e,{event:i,leftTeam:a,rightTeam:s,leftScore:o,rightScore:u}=(0,m.mJ)(t.id,{shouldRefresh:!0,event:t});return t?(0,r.jsx)(l.y$.Provider,{value:{event:t,leftTeam:a,rightTeam:s,leftScore:o,rightScore:u},children:(0,r.jsx)(x,{event:{...t,...i},...n})}):null}var v=n(76356);let b=e=>(0,r.jsxs)(v.az,{br:"lg",bg:"surface.s2",minH:e.hideTitle?"[134px]":"11xl",children:[(0,r.jsx)(v.az,{h:"[134px]"}),e.showCta&&(0,r.jsx)(v.az,{h:"2xl"})]});function j(e){let{titleId:t="featured",titleValues:n,hideEventTitle:a,showCta:s,ignoreCardLayout:o,isLoading:l,events:u,onEventClick:d,children:c}=e,m=u.filter(e=>!!e);if(!m.length&&!l)return null;let f=(0,r.jsx)(r.Fragment,{children:m.length?m.map(e=>(0,r.jsx)(g,{hideTitle:a,hasCta:s,event:e,onClick:()=>null==d?void 0:d(e)},e.id)):(0,r.jsx)(b,{hideTitle:a,showCta:s})});return o?(0,r.jsxs)(r.Fragment,{children:[f,c]}):(0,r.jsxs)(i.Zp,{children:[(0,r.jsx)(i.Zp.Header,{titleId:t,values:n,as:"h3"}),(0,r.jsxs)(i.BU,{children:[f,c]})]})}},46009:(e,t,n)=>{"use strict";n.d(t,{w:()=>i,e:()=>h});var r=n(55729);let i=(0,r.createContext)("");var a=n(6029),s=n(76356),o=n(494),l=n(54409),u=n(61836),d=n(10794),c=n(70757),m=n(12759);let f=e=>{e.stopPropagation(),e.preventDefault()};function h(e){let{entity:t,id:n,location:i,type:h,isOnOverlay:p,isDisabled:x,hasNoBorder:g=!1,onClick:v}=e,b=(0,o.wA)(),j=(0,o.d4)(e=>(0,d.Ql)(e,t,n),o.bN),y="boolean"==typeof j?j:j!==d.dE.NotFollowed,w=(0,o.d4)(d.fg)||x,_=(0,r.useCallback)(()=>{if(!w){if(y){let e=j===d.dE.Favorite?(0,m.Hz)(t):t;b((0,c.q$)(e,n))}else{let e=(0,m.Hz)(t);b((0,c.UQ)(e,n))}(0,u.g2)({id:n,type:h,location:i,isFollowed:!y})}},[y,w,t,n]);return(0,a.jsx)(s.I4.button,{border:g?"1.5px solid transparent":void 0,alignItems:"center",appearance:"none",cursor:"pointer",display:"inline-flex",isolation:"isolate",justifyContent:"center",outline:"none",position:"relative",userSelect:"none",flexShrink:"0",whiteSpace:"nowrap",h:"[26px]",w:"[26px]",p:"[0px]",textStyle:"action.button.primary",gap:"xs",br:"xs",color:"primary.default",backgroundColor:"[transparent]",disabled:w,_disabled:{opacity:.5,color:"neutral.default",cursor:"not-allowed"},_hover:w?{}:{bg:"primary.default/8"},_active:w?{}:{bg:"primary.default/15"},_focusVisible:{},onClick:e=>{f(e),null==v||v(),_()},children:y?(0,a.jsx)(l.zQC,{icon:"follow-active",m:"0",fill:p?"onColor.primary":"primary.default"}):(0,a.jsx)(l.zQC,{icon:"follow-default",m:"0",fill:p?"onColor.primary":"neutral.default"})})}},46954:(e,t,n)=>{"use strict";n.d(t,{A:()=>h,U:()=>f});var r=n(6029),i=n(8329),a=n(21377),s=n(44194),o=n(41249),l=n(90248),u=n(41735),d=n(27289),c=n(57569);let m=["atp"],f=e=>{switch(e){case"atp":return 3;case"wta":return 6;case"rugby-union":return 82;default:return}},h=e=>{let{category:t,sport:n,children:h}=e,{isMobile:p}=(0,s.$c)(),x=(0,u.useTheme)(),g=(0,c.A)(n,t),v=m.includes(t)&&"dark"===x.name,b=f(t);return(0,r.jsx)(l.A,{id:"rankings.category",values:{category:n===a.QCR.Tennis?(0,r.jsxs)(r.Fragment,{children:[g," ",(0,r.jsx)(d.o,{sportSlug:n})]}):g},children:e=>(0,r.jsxs)(o.so,{px:["lg","lg"],pt:["sm","lg"],pb:["sm","md"],align:"center",mb:[0,"sm"],children:[(0,r.jsx)(i.w,{rankingSlug:"".concat(t,"-big").concat(v?"-dark-theme":""),name:String(e),categoryId:b,size:p?48:96}),(0,r.jsx)(o.az,{flex:"1 0 0px",children:(0,r.jsx)(o.EY,{block:!0,font:["display.large","display.extraLarge"],ml:["lg","xl"],children:e})}),h]})})}},47146:(e,t,n)=>{"use strict";n.d(t,{v:()=>s});var r=n(6029),i=n(29705);let a={second:59,minute:59,hour:24,day:7},s=e=>{let{timestamp:t,isAbsoluteTime:n,children:s}=e,{value:o,unit:l}=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Date.now(),n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=arguments.length>3?arguments[3]:void 0,i={...a,...n||{}},s=(e-t)/1e3;if(Math.abs(s)0)return{value:Math.round(m),unit:"year"};let f=12*m+u.getMonth()-d.getMonth();return Math.round(Math.abs(f))>0?{value:Math.round(f),unit:"month"}:{value:Math.round(s/604800),unit:"week"}}(t,void 0,void 0,n);return(0,r.jsx)(i.A,{value:o,unit:l,numeric:"auto",children:e=>"function"==typeof s?s(e):(0,r.jsx)(r.Fragment,{children:e})})}},47530:(e,t,n)=>{"use strict";n.d(t,{DT:()=>d,Xl:()=>c,__:()=>l,rC:()=>u});var r=n(6029),i=n(21377),a=n(90248),s=n(947),o=n(20336);let l=e=>{let{name:t,sport:n}=e,i=(0,o.g)(t,n);return(0,r.jsx)(r.Fragment,{children:i})};function u(e){let{roundName:t,sport:n}=e,s=n===i.QCR.AmericanFootball;if(!isNaN(+t))return(0,r.jsx)(a.A,{id:s?"week_number":"round_number",values:{n:t}});let o=t.match(/\d+/),d=t.match(/2nd leg/),c=t.match(/place/);if(o&&!d&&!c)return t.match(/qualification/i)?(0,r.jsx)(a.A,{id:"qualificationRoundN",values:{n:o[0]},defaultMessage:t}):t.match(/round of/i)||t.match(/\d+[/]\d+/i)||t.match(/R\d+/i)?(0,r.jsx)(l,{name:t,sport:n}):(0,r.jsx)(a.A,{id:s?"week_number":"round_number",values:{n:o[0]},defaultMessage:t});if(d&&d.index){let e=t.slice(0,d.index-1);return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(u,{roundName:e})," ",(0,r.jsx)(a.A,{id:"tournament.totw.secondLeg",defaultMessage:d[0]})]})}return(0,r.jsx)(l,{name:t,sport:n})}let d=e=>{let{round:t,sport:n}=e;return t?(0,r.jsxs)(r.Fragment,{children:[t.prefix&&(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(u,{roundName:t.prefix}),"\xa0"]}),(0,r.jsx)(u,{roundName:(null==t?void 0:t.name)||t.round.toString(),sport:n})]}):null},c=(e,t,n)=>{let r=(0,s.A)(),a=(0,o.g)(e,t),l=t===i.QCR.AmericanFootball;if(!e)return;if(!isNaN(+e))return r.formatMessage({id:l?"week_number":"round_number"},{n:e});let u=e.match(/\d+/),d=e.match(/2nd leg/),c=e.match(/place/);return!u||d||c?n?r.formatMessage({id:"winner"}):a:e.match(/qualification/i)?r.formatMessage({id:"qualificationRoundN",defaultMessage:e},{n:u[0]}):e.match(/round of/i)||e.match(/\d+[/]\d+/i)||e.match(/R\d+/i)?a:r.formatMessage({id:l?"week_number":"round_number",defaultMessage:e},{n:u[0]})}},49519:(e,t,n)=>{"use strict";n.d(t,{p:()=>i.p,w:()=>r.w});var r=n(53192),i=n(91603)},52951:(e,t,n)=>{"use strict";n.d(t,{xV:()=>d,an:()=>c,Ay:()=>m});var r=n(6029),i=n(55575),a=n.n(i),s=n(95669),o=n.n(s),l=n(55729),u=n(947);let d=(0,l.createContext)({}),c=d.Provider,m=e=>{let{titleKey:t,descriptionKey:n,keywordsKey:i,metaKey:s,values:c={},entityName:m}=e,{meta:f,seoContent:h}=(0,l.useContext)(d),p=(0,u.A)(),x=m?"".concat(m," | Sofascore"):"Sofascore",g=p.formatMessage({id:"title.".concat(t||s),defaultMessage:x},c),v=p.formatMessage({id:"description.".concat(n||s),defaultMessage:x},c),b=p.formatMessage({id:"keywords.".concat(i||s),defaultMessage:x},c);return(0,r.jsxs)(o(),{children:[(0,r.jsx)("title",{children:a()((null==h?void 0:h.title)||(null==f?void 0:f.title)||g)}),(null==h?void 0:h.description)||(null==f?void 0:f.description)?(0,r.jsx)("meta",{name:"description",content:(null==h?void 0:h.description)||(null==f?void 0:f.description)},"description"):p.messages["description.".concat(n||s)]&&(0,r.jsx)("meta",{name:"description",content:v},"description"),(null==f?void 0:f.keywords)?(0,r.jsx)("meta",{name:"keywords",content:f.keywords}):p.messages["keywords.".concat(i||s)]&&(0,r.jsx)("meta",{name:"keywords",content:b})]})}},57569:(e,t,n)=>{"use strict";n.d(t,{A:()=>o,p:()=>l});var r=n(21377),i=n(21985),a=n.n(i),s=n(55938);let o=(e,t)=>{if(e!==r.QCR.Rugby)return t.toUpperCase();{let e=t.split("-");return"".concat(e[0].charAt(0).toUpperCase()+e[0].slice(1)," ").concat(e[1].charAt(0).toUpperCase()+e[1].slice(1))}},l=(e,t)=>e.map(e=>{var n,r,i,o,l,u,d,c;let m=e.rowName||"";return m+=" ",(null==(n=e.uniqueTournament)?void 0:n.category.slug)&&(m+=e.uniqueTournament.category.slug+" "),(null==(r=e.uniqueTournament)?void 0:r.name)&&(m+=e.uniqueTournament.name+" "),(null==(i=e.team)?void 0:i.name)&&(m+=e.team.name+" ",m+=t.formatMessage({id:e.team.slug})+" "),(null==(o=e.team)?void 0:o.country.name)&&(m+=t.formatMessage({id:e.team.country.name})+" "),(null==(l=e.team)?void 0:l.country.alpha2)&&(m+=t.formatMessage({id:(0,s.K_)(e.team.country.alpha2)})+" "),(null==(u=e.country)?void 0:u.alpha2)&&(m+=t.formatMessage({id:(0,s.K_)(e.country.alpha2)})+" "),(null==(c=e.uniqueTournament)||null==(d=c.country)?void 0:d.alpha2)&&(m+=t.formatMessage({id:(0,s.K_)(e.uniqueTournament.country.alpha2)})+" "),m+" "+a()(m)})},65078:(e,t,n)=>{"use strict";n.d(t,{gm:()=>r.A,g3:()=>i.A,mJ:()=>a.A,jr:()=>s.A,AR:()=>l,h2:()=>f});var r=n(70215),i=n(69385),a=n(17357),s=n(30720),o=n(494);function l(e){let t=(0,o.d4)(t=>{let{favorites:{events:n}}=t;return n[e.id]}),[n,r]=(0,s.A)(e,"homeTeam","awayTeam",e),[i,a]=(0,s.A)(e,"homeScore","awayScore",e);return{event:t||e,leftTeam:n,rightTeam:r,leftScore:i,rightScore:a}}var u=n(21377),d=n(55729),c=n(62859);let m=e=>t=>e===t;function f(e,t){var n,i;let{event:a,leftTeam:s,rightTeam:o}=(0,d.useContext)(c.y$),l=(0,r.A)(a,"winnerCode"),f=(a.status.code===u.sum.AET||a.status.code===u.sum.AP)&&a.tournament.category.sport.slug===u.QCR.IceHockey,h=e?m(e):t||(()=>!1),p=h(s.id,a.id)||(null==(n=s.subTeams)?void 0:n.some(e=>h(e.id,a.id))),x=h(o.id,a.id)||(null==(i=o.subTeams)?void 0:i.some(e=>h(e.id,a.id)));switch(l){case u.Jfo.Left:if(p)return u.h18.Win;if(x)return f?u.h18.OvertimeLoss:u.h18.Lose;break;case u.Jfo.Right:if(p)return f?u.h18.OvertimeLoss:u.h18.Lose;if(x)return u.h18.Win;break;case u.Jfo.Draw:if(p||x)return u.h18.Draw}}},65097:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>x});var r=n(6029),i=n(14092),a=n(44194),s=n(76356),o=n(95669),l=n.n(o),u=n(947),d=n(90248),c=n(54409),m=n(76868),f=n(29129),h=n(70010),p=n(70591);function x(e){let{statusCode:t}=e;i.O({statusCode:t});let n=(0,u.A)().formatMessage({id:404===t?"error.pageNotFound":"error.anErrorOccurred"});return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)(l(),{children:[(0,r.jsx)("title",{children:"".concat(t," | ").concat(n||"")}),(0,r.jsx)("meta",{name:"robots",content:"noindex"})]}),(0,r.jsx)("div",{id:"errorPage",children:(0,r.jsx)(f.YW,{children:(0,r.jsx)(h.xA,{children:(0,r.jsx)(h.fv,{flexGrow:1,textAlign:"center",my:"2xl",children:(0,r.jsx)(m.p,{graphic:"no-connection",children:(0,r.jsxs)(s.BJ,{children:[(0,r.jsx)(a.H1,{textStyle:"display.extraLarge",color:"neutrals.nLv3",alignSelf:"center",mt:"[28px]",mb:"2xs",children:t}),(0,r.jsx)(a.H3,{display:"block",textStyle:"display.medium",color:"neutrals.nLv3",alignSelf:"center",children:(0,r.jsx)(d.A,{id:"error.anErrorOccurred"})}),(0,r.jsx)(a.EY,{alignSelf:"center",mb:"2xl",display:"block",children:404===t?(0,r.jsx)(d.A,{id:"error.pageCannotBeFound"}):(0,r.jsx)(d.A,{id:"error.somethingWrongWithPage"})}),(0,r.jsx)(p.N_,{routeKey:"home",children:(0,r.jsxs)(a.$n,{children:[(0,r.jsx)(c.pa2,{mt:"-3px"})," ",(0,r.jsx)(d.A,{id:"error.backToSofascore"})]})})]})})})})})})]})}x.getInitialProps=async e=>{await i.O(e);let{res:t,err:n}=e;return{statusCode:t?t.statusCode:n?n.statusCode:null}}},69385:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=n(55729),i=n(494),a=n(62859),s=n(57126);function o(e){var t;let n=(0,r.useContext)(a.y$),o=e||n.event,l=(0,i.d4)(s.xl);return(null==o||null==(t=o.tournament.uniqueTournament)?void 0:t.displayInverseHomeAwayTeams)&&l}},69759:(e,t,n)=>{"use strict";n.d(t,{I:()=>i,J:()=>a});var r=n(87357);let i=501;function a(e,t){return void 0!==t.point&&void 0!==e.bestOfSets&&e.bestOfSets>1?{topScore:Number(t.point)||i,bottomScore:t.display,bottomScoreExtra:(0,r.U)(t)}:void 0!==t.point&&void 0!==e.bestOfLegs&&e.bestOfLegs>0?{topScore:Number(t.point)||i,bottomScore:t.display,bottomScoreExtra:void 0}:(void 0===t.point||null===t.point)&&e.bestOfSets&&e.bestOfSets>1?{topScore:(0,r.U)(t)||0,bottomScore:t.display,bottomScoreExtra:void 0}:{topScore:t.display||0,bottomScore:void 0,bottomScoreExtra:void 0}}},70215:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var r=n(69385);function i(e,t,n){let i=(0,r.A)(n);if(!(e&&t))return;let a=e[t];if("number"==typeof a)return i&&[1,2].includes(a)?1===a?2:1:a}},73022:(e,t,n)=>{"use strict";n.d(t,{Gi:()=>r.Gi,iV:()=>r.iV,kG:()=>r.kG,lx:()=>r.lx,zV:()=>r.zV});var r=n(97477)},73045:(e,t,n)=>{"use strict";n.d(t,{e:()=>i.e,l:()=>r.l});var r=n(37721),i=n(33480)},79027:(e,t,n)=>{"use strict";n.d(t,{$_:()=>r.A}),n(94497);var r=n(60443);n(19600)},86319:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>eg});var r=n(6029),i=n(95669),a=n.n(i),s=n(90248),o=n(33752),l=n(70010),u=n(73088),d=n(52951),c=n(21377),m=n(55729),f=n(494),h=n(75751),p=n(45152),x=n(89489),g=n(62827);let v=e=>{let{sport:t,category:n}=e,[i,a]=(0,m.useState)(null),[s,o]=(0,m.useState)(!1),l=(0,f.wA)();return(0,m.useEffect)(()=>{let e="rankings-featured-events-".concat(t,"-").concat(n);return(async()=>{try{o(!0);let r=c.X6J["".concat(t,"-").concat(n)],{featuredEvents:i}=await c.Mcn.fetchRankingsFeaturedEvents(r);l((0,x.oU)(i)),l((0,x.vB)({entities:i.map(e=>e.id),refreshTaskId:e},{fetchFunction:c.Mcn.fetchRankingsFeaturedEvents.bind(null,r)})),a(i)}catch(e){console.error(e)}finally{o(!1)}})(),()=>{l((0,x.tM)(e))}},[t,n]),(0,r.jsx)(h.t,{tag:"RankingsFeaturedEventsContainer",children:(0,r.jsx)(p.S,{isLoading:s,events:i||[],titleId:"matches",titleValues:{sport:(0,g.ap)(t)}})})};var b=n(44194),j=n(76356),y=n(41249),w=n(947),_=n(45860),S=n(76868),k=n(42621),A=n(7263),C=n(12047),T=n(54409);function M(e){let{value:t,onChange:n,...i}=e;return(0,r.jsx)(y.pd,{w:["100%",240],clearable:!0,onFocus:()=>{scrollTo({top:0,behavior:"smooth"})},onClear:()=>n(""),value:t,onChange:n,label:(0,r.jsx)(s.A,{id:"filter"}),endAdornment:0===t.length&&(0,r.jsx)(T.zQC,{icon:"search",fill:"onSurface.nLv1"}),...i})}var R=n(46954),F=n(4967),E=n(90510);let L=e=>{let{updatedAtTimestamp:t}=e;return(0,r.jsx)(y.EY,{as:"div",font:"assistive.default",color:"onSurface.nLv3",px:"lg",py:"sm",align:"right",children:(0,r.jsx)(s.A,{id:"basic.lastUpdated",values:{dateTime:(0,r.jsx)(E.XU,{value:1e3*t,...F.or.fullDateTime})}})})};var q=n(21501),I=n(71024),D=n.n(I);let H=(0,m.createContext)(void 0),N=D()(()=>n.e(5440).then(n.bind(n,15440)),{loadableGenerated:{webpack:()=>[15440]},ssr:!1,loading:()=>{let e=(0,m.useContext)(H);return(0,r.jsx)(r.Fragment,{children:e})}}),P=D()(()=>n.e(5270).then(n.bind(n,82889)),{loadableGenerated:{webpack:()=>[82889]},ssr:!1,loading:()=>{let e=(0,m.useContext)(H);return(0,r.jsx)(r.Fragment,{children:e})}}),z=D()(()=>n.e(4434).then(n.bind(n,54434)),{loadableGenerated:{webpack:()=>[54434]},ssr:!1,loading:()=>{let e=(0,m.useContext)(H);return(0,r.jsx)(r.Fragment,{children:e})}});function O(e){return(0,r.jsx)(H.Provider,{value:e.children,children:"strategy"in e?"hover"===e.strategy?(0,r.jsx)(N,{isInDOM:!1,...e}):(0,r.jsx)(P,{isInDOM:!1,...e}):(0,r.jsx)(z,{isInDOM:!1,...e})})}let U=e=>{let{isLive:t,isClub:n,enSport:i,category:a}=e,o=i===c.QCR.Tennis,{isDesktop:l}=(0,b.$c)(),u=(0,q.YU)()===q.Dh.Up?156:64;return(0,r.jsx)(y.PI,{top:u,isStickingDisabled:l,children:e=>(0,r.jsxs)(j.so,{align:"flex-end",justify:"space-between",px:"lg",py:"md",bg:"surface.s1",elevation:e?"2":void 0,children:[(0,r.jsxs)(j.so,{align:"center",children:[(0,r.jsx)(b.EY,{textStyle:"table.medium",color:"neutrals.nLv3",children:(0,r.jsx)(s.A,{id:"basic.rank"})}),(0,r.jsx)(j.az,{mx:"sm",w:"[1px]",h:"lg",bg:"neutrals.nLv4"}),(0,r.jsx)(b.EY,{textStyle:"table.medium",color:"neutrals.nLv3",children:(0,r.jsx)(s.A,{id:o?"pickem.leaderboard.player":"team"})})]}),t?(0,r.jsxs)(j.so,{align:"center",children:[(0,r.jsx)(b.EY,{textStyle:"table.medium",color:"neutrals.nLv3",children:(0,r.jsx)(s.A,{id:"live"})}),(0,r.jsx)(j.az,{mx:"sm",w:"[1px]",h:"lg",bg:"neutrals.nLv4"}),(0,r.jsx)(b.EY,{textStyle:"table.medium",color:"neutrals.nLv3",children:(0,r.jsx)(s.A,{id:"next"})}),(0,r.jsx)(j.az,{mx:"sm",w:"[1px]",h:"lg",bg:"neutrals.nLv4"}),(0,r.jsx)(b.EY,{textStyle:"table.medium",color:"neutrals.nLv3",children:(0,r.jsx)(s.A,{id:"max"})})]}):(0,r.jsx)(b.EY,{textStyle:"table.medium",color:"neutrals.nLv3",children:"uefa"===a?(0,r.jsxs)(r.Fragment,{children:[!n&&(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(O,{strategy:"hover",placement:"top",label:(0,r.jsxs)(r.Fragment,{children:["*",(0,r.jsx)(s.A,{id:"rankings_teams_info"})]}),children:(0,r.jsxs)(j.az,{d:"inline-block",children:[(0,r.jsx)(s.A,{id:"teams"}),"*"]})}),(0,r.jsx)(j.I4.span,{mx:"sm",children:"|"})]}),(0,r.jsx)(s.A,{id:"basic.coefficient"})]}):(0,r.jsx)(s.A,{id:i===c.QCR.Tennis?"totalPoints":"points"})})]})})};var Y=n(49519),G=n(70591),Q=n(94604),W=n(98516);function B(e){let{ranking:t,link:n,positionChange:i,image:a,title:s,subtitle:o,data:l}=e,u=(0,r.jsxs)(y.so,{align:"center",px:"lg",py:"md",children:[(0,r.jsxs)(y.so,{direction:"column",justify:"center",align:"center",children:[(0,r.jsxs)(y.EY,{font:"body.small",w:"40",align:"center",children:[t,"."]}),i]}),a,(0,r.jsxs)(y.so,{direction:"column",ml:"lg",flex:"1 0 0px",children:[(0,r.jsx)(y.EY,{font:"body.medium",as:"bdi",children:s}),!!o&&(0,r.jsx)(y.EY,{font:"assistive.default",color:"onSurface.nLv3",children:o})]}),l]});return n?(0,r.jsx)(r.Fragment,{children:(0,m.cloneElement)(n,{...n.props,children:u})}):(0,r.jsx)(r.Fragment,{children:u})}var V=n(41735);let K=V.default.span.withConfig({componentId:"sc-7044acb8-0"})(["width:0;height:0;display:inline-block;border-style:solid;vertical-align:middle;"]),J=(0,V.default)(K).withConfig({componentId:"sc-7044acb8-1"})(["border-width:0 4px 6px 4px;border-color:transparent transparent "," transparent;margin:0 2px 2px;"],e=>e.theme.colors.secondary.default),$=(0,V.default)(K).withConfig({componentId:"sc-7044acb8-2"})(["border-width:6px 4px 0 4px;border-color:"," transparent transparent transparent;margin:0 2px 2px;"],e=>e.theme.colors.sofaSingles.live);var X=function(e){return e.Countries="countries",e.Clubs="clubs",e}({}),Z=function(e){return e.Official="official",e.Live="live",e}({});let ee=[c.sqH.FifaCountry,c.sqH.RugbyUnion],et={[c.sqH.FifaCountry]:2,[c.sqH.UefaCountryLeague]:3,[c.sqH.UefaClubs]:3,[c.sqH.AtpSingles]:0,[c.sqH.AtpSinglesLive]:0,[c.sqH.WtaSingles]:0,[c.sqH.WtaSinglesLive]:0,[c.sqH.RugbyLeague]:2,[c.sqH.RugbyUnion]:2};function en(e){let{ranking:t,previousRanking:n}=e;if(n){let e=n-t;if(e>0)return(0,r.jsxs)(y.EY,{font:"assistive.default",color:"success.default",ml:"xxs",children:[e,(0,r.jsx)(J,{})]});if(e<0)return(0,r.jsxs)(y.EY,{font:"assistive.default",color:"error.default",ml:"xxs",children:[Math.abs(e),(0,r.jsx)($,{})]})}return null}let er=e=>{let{children:t,...n}=e;return(0,r.jsx)(y.EY,{font:"table.medium",color:"onSurface.nLv1",minW:40,ml:"sm",align:"right",...n,children:t})};function ei(e){let{rankingsItem:t,sport:n,category:i,activeTab:a,selectedId:o,...l}=e,u=ee.includes(t.type);if("team"in t){var d;let{team:e,ranking:i,previousRanking:s,nextWinPoints:c,maxPoints:m,points:f,type:h}=t,p=[(0,r.jsx)(er,{color:a===Z.Live?"sofaSingles.live":void 0,children:f?(0,W.M)(f,et[h]||0):"-"},"points")];return(a===Z.Live&&p.push((0,r.jsx)(er,{children:c||"-"},"nextPts"),(0,r.jsx)(er,{children:m||"-"},"maxPts")),!e||e.disabled)?null:(0,r.jsx)(y.az,{bg:o==="".concat(e.id)?"primary.highlight":void 0,hoverBg:"surface.s2",borderBottom:"onSurface.nLv4",...l,children:(0,r.jsx)(B,{link:e?(0,r.jsx)(G.gT,{team:e,sport:n,children:null}):void 0,ranking:i,image:(0,r.jsx)(Y.p,{...e,size:32}),title:(0,r.jsx)(Q.Rm,{team:e}),subtitle:!u&&(null==(d=e.country)?void 0:d.name)?(0,r.jsx)(Q.lC,{original:e.country.name}):null,positionChange:(0,r.jsx)(en,{ranking:i,previousRanking:s}),data:p})})}if("uniqueTournament"in t){let{uniqueTournament:e,playingTeams:i,totalTeams:a,ranking:d,points:c}=t,m=[(0,r.jsxs)(er,{children:[i||0,"/",a||0]},"teams"),(0,r.jsx)(er,{children:c?(0,W.M)(c,3):"-"},"points")];return(0,r.jsx)(y.az,{bg:o==="".concat(e.id)?"primary.highlight":void 0,hoverBg:"surface.s2",borderBottom:"onSurface.nLv4",...l,children:(0,r.jsx)(B,{link:e&&(0,r.jsx)(G.tQ,{tournament:e,children:null}),ranking:d,image:(0,r.jsx)(Y.w,{categoryId:e.category.id,sport:n,size:32}),title:(0,r.jsx)(s.A,{id:e.category.slug}),subtitle:u?null:e.name,data:m})})}return(0,r.jsx)(B,{ranking:t.ranking,image:(0,r.jsx)(Y.p,{id:-1,name:"N/A",size:32}),title:t.rowName})}var ea=n(32523);function es(e){let{header:t,tabs:n}=e,i="rankings-content-cl";return(0,r.jsxs)(y.az,{bg:"surface.s1",br:[0,"lg"],elevation:[void 0,2],mb:"xl",pb:"lg",children:[t,(0,r.jsx)(y.so,{pl:"lg",py:"sm",minH:"56",justify:"center",align:"center",borderBottom:"onSurface.nLv4",children:(0,r.jsx)(y.az,{flex:"1 1 auto",children:n})}),(0,r.jsx)(ea.E,{uniqueKey:"".concat(i,"-1"),h:"18",mt:"12",mb:"4",px:"lg"}),(0,r.jsx)(ea.E,{uniqueKey:"".concat(i,"-2"),px:"lg",rowHeight:56,rowGap:1,rows:20})]})}var eo=n(57569);let el=(e,t)=>t?e:e===c.sqH.AtpSingles?c.sqH.AtpSinglesLive:e===c.sqH.WtaSingles?c.sqH.WtaSinglesLive:-1,eu=e=>e===c.sqH.AtpSinglesLive?c.sqH.AtpSingles:e===c.sqH.WtaSinglesLive?c.sqH.WtaSingles:-1;function ed(e){let{value:t,onChange:n}=e,i=(0,C.Ay)({isSportMenuVisible:!0,isInMobileTabs:!1});return(0,r.jsx)(y.PI,{p:"sm",top:i,bg:"surface.s1",children:(0,r.jsx)(M,{value:t,onChange:n})})}function ec(e){let{sport:t,category:n}=e,i=(0,w.A)(),{isMobile:a}=(0,b.$c)(),o=t===c.QCR.Tennis,[l,u]=(0,m.useState)(o?Z.Official:X.Countries),[d,f]=(0,m.useState)(""),[h,p]=(0,m.useState)(""),x=(0,m.useRef)(!1),g="uefa"===n,v=l===X.Clubs&&g,C=l===Z.Live;(0,m.useEffect)(()=>{p(window.location.hash.substring(1))},[]);let T=c.X6J[v?"club":"".concat(t,"-").concat(n).concat(C?"-live":"")],F=el(T,C),{data:E}=(0,_.Ay)(()=>C?[c.AZO.rankings(eu(T)),"HEAD"]:[c.AZO.rankings(T),"HEAD"],{fetcher:A.n}),{data:q}=(0,_.Ay)(()=>void 0!==E&&o?[c.AZO.rankings(F),"HEAD"]:null,{fetcher:A.n,onSuccess:e=>{!E&&e&&u(Z.Live)}}),{data:I,error:D}=(0,_.Ay)(()=>o?E?c.AZO.rankings(T):q?c.AZO.rankings(F):null:c.AZO.rankings(T),{dedupingInterval:300}),H=(0,m.useMemo)(()=>(null==I?void 0:I.rankings)?(0,eo.p)(I.rankings,i):[],[null==I?void 0:I.rankings,i]);(0,m.useEffect)(()=>{!x.current&&h&&(null==I?void 0:I.rankings)&&setTimeout(()=>{let e=document.querySelector('[data-id="'.concat(h,'"]')),t=0;for(;e;)t+=e.offsetTop,e=e.offsetParent;requestAnimationFrame(()=>{t&&(window.scrollTo({left:0,top:t-(a?160:112),behavior:"smooth"}),x.current=!0)})},500)},[h,null==I?void 0:I.rankings]);let[N,P]=[X.Countries,X.Clubs];o&&([N,P]=[Z.Official,Z.Live]);let z=(0,r.jsx)(R.A,{sport:t,category:n,children:a?null:(0,r.jsx)(M,{value:d,onChange:f})}),O=o||g?(0,r.jsxs)(y.tU,{variant:"secondary",onChange:e=>u(e),value:l,children:[(0,r.jsx)(y.tU.Tab,{tabKey:N,children:(0,r.jsx)(s.A,{id:"basic.".concat(N)})}),(0,r.jsx)(y.tU.Tab,{tabKey:P,children:(0,r.jsx)(s.A,{id:P===Z.Live?"live":"basic.".concat(P)})})]}):null;if(D)return(0,r.jsxs)(j.az,{bg:"surface.s1",br:{md:"lg"},elevation:{md:"2"},pb:"lg",children:[z,(0,r.jsx)(S.p,{graphic:"no-standings",titleMessageId:"rankings.checkBackLater",descriptionMessageId:"rankings.willAppear"})]});if(!I)return(0,r.jsx)(es,{header:z,tabs:O});let Y=I.rankings;if(d.length){let e=RegExp(d,"i");Y=I.rankings.filter((t,n)=>{let r=H[n]||"";return e.test(r)})}return(0,r.jsxs)(j.az,{bg:"surface.s1",br:{md:"lg"},elevation:{md:"2"},pb:"lg",children:[z,(0,r.jsxs)(j.az,{position:"relative",children:[a&&(0,r.jsx)(ed,{value:d,onChange:f}),(0,r.jsxs)(j.so,{pl:"lg",py:"sm",minH:"[56px]",justify:"center",align:"center",borderBottom:"onSurface.nLv4",children:[(0,r.jsx)(j.az,{flexGrow:"1",flexShrink:"0",children:O}),(0,r.jsx)(L,{updatedAtTimestamp:I.updatedAtTimestamp})]}),(0,r.jsx)(U,{isClub:v,isLive:C,enSport:t,category:n}),Y.map((e,i)=>{var a,s;return(0,r.jsx)(k.q,{"data-id":(null==(a=e.team)?void 0:a.id)||(null==(s=e.uniqueTournament)?void 0:s.id)||"",initialVisible:i<30,defaultHeight:56,children:(0,r.jsx)(ei,{selectedId:h,activeTab:l,rankingsItem:e,sport:t,category:n})},e.id)})]})]})}var em=n(71937),ef=n(25862),eh=n(65097);let ep={football:["fifa","uefa"],tennis:["atp","wta"],rugby:["rugby-union"]},ex={fifa:"FIFA",uefa:"UEFA",atp:"ATP",wta:"WTA","rugby-union":"Rugby Union"};function eg(e){let{sport:t,category:n,statusCode:i,enSport:c,locale:m}=e,f=ex[n],h=new Date().getFullYear();return 200===i?(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(a(),{children:(0,r.jsx)("link",{rel:"canonical",href:"https://www.sofascore.com".concat(u.z.getTranslatedCanonicalRoute(m,"rankings",{sport:t,category:n}).route)})}),(0,r.jsx)(s.A,{id:"sport.".concat(c),children:e=>(0,r.jsx)(d.Ay,{metaKey:"rankings",values:{item:f,year:h,sport:String(e)},descriptionKey:"rankings.".concat(n)})}),(0,r.jsxs)(l.YW,{children:[(0,r.jsx)(o.B,{children:(0,r.jsx)(o.B.Title,{children:(0,r.jsx)(s.A,{id:"headerTitle.rankings",values:{item:f,year:h,sport:(0,r.jsx)(s.A,{id:"sport.".concat(c)})}})})}),(0,r.jsxs)(l.xA,{children:[(0,r.jsx)(l.fv,{flexGrow:{mdDown:1,md:2},pb:{md:"xl"},children:(0,r.jsx)(ec,{sport:c,category:n})}),(0,r.jsx)(l.fv,{flexGrow:1,pb:{mdDown:"sm"},children:(0,r.jsx)(v,{sport:c,category:n})})]})]})]}):(0,r.jsx)(eh.default,{statusCode:i})}eg.getInitialProps=em.A.getInitialPageProps(e=>async t=>{let{req:n,query:r,...i}=t,a=n?n._originalUrl:i.asPath,s="",o="";n&&(s=n.params.sport,o=n.params.category),r&&r.sport&&r.category&&(s=r.sport,o=r.category);let l=u.z.getCurrentLocale(a),d=u.z.getSportKey(s,l);n||(d=s);let c=404;return -1!==ep[d].indexOf(o)&&(c=200),e.dispatch((0,ef.Vy)(d)),{sport:s,category:o,statusCode:c,enSport:d,locale:l}})},87357:(e,t,n)=>{"use strict";function r(e){let t=Object.keys(e).filter(e=>e.startsWith("period")).sort((e,t)=>Number(e.replace("period",""))-Number(t.replace("period",""))).pop();if(t)return e[t]}n.d(t,{U:()=>r})},94497:(e,t,n)=>{"use strict";n.d(t,{HI:()=>i,qG:()=>s});var r=n(41735);let i=(0,r.keyframes)(["0%{opacity:1;}30%{opacity:1;}60%{opacity:0.25;}100%{opacity:1;}"]);i.slow=(0,r.keyframes)(["0%{opacity:1;}5%{opacity:1;}10%{opacity:.25;}15%{opacity:1;}100%{opacity:1;}"]),i.fast=(0,r.keyframes)(["0%{opacity:1;}50%{opacity:1;}51%{opacity:0;}100%{opacity:0;}"]),(0,r.css)(["animation:"," 1s ease-in infinite;"],i).slow=(0,r.css)(["animation:"," 10s ease-in infinite;"],i.slow);let a=(0,r.keyframes)(["0%{transform:translateY(50px);opacity:0;}50%{opacity:1;}100%{opacity:1;transform:translateY(0);}"]);(0,r.css)(["animation:0.3s "," ease-in-out;animation-fill-mode:forwards;"],a);let s=(0,r.keyframes)(["from{opacity:0.0001;}to{opacity:1;}"])},94604:(e,t,n)=>{"use strict";n.d(t,{Rm:()=>c,lC:()=>d,ub:()=>m});var r=n(6029),i=n(21377),a=n(947),s=n(26331);let o=/(.*)(\s(U.\d+|Olympic Team|Universiade Team|[A-C]|7[Ss])$)/,l=e=>e.normalize("NFD").replace(/[\u0300-\u036f\']/g,"").toLowerCase().replace(/\s/g,"-").replace(/&/g,"and"),u=e=>{let{translation:t,suffixedTeam:n,showFemaleSuffix:i}=e,a=i?" (F)":"";return n?(0,r.jsx)(r.Fragment,{children:"".concat(t).concat(n[2]).concat(a)}):(0,r.jsx)(r.Fragment,{children:"".concat(t).concat(a)})},d=e=>{let{original:t,showFemaleSuffix:n}=e,i=o.exec(t),s=(0,a.A)(),d=l(i?i[1]:t),c=s.formatMessage({id:d});return c===d?(0,r.jsx)(u,{translation:t,showFemaleSuffix:n}):(0,r.jsx)(u,{translation:c,suffixedTeam:i,showFemaleSuffix:n})},c=e=>{var t,n,i,o;let l=(0,s.A)(),c=(0,a.A)();if("short"in e&&e.short&&(null==(n=e.team.fieldTranslations)||null==(t=n.shortNameTranslation)?void 0:t[l]))return(0,r.jsx)(u,{translation:e.team.fieldTranslations.shortNameTranslation[l],showFemaleSuffix:e.showFemaleSuffix});if(null==(o=e.team.fieldTranslations)||null==(i=o.nameTranslation)?void 0:i[l])return(0,r.jsx)(u,{translation:e.team.fieldTranslations.nameTranslation[l],showFemaleSuffix:e.showFemaleSuffix});let m=e.team.name;return("full"in e&&e.full&&(e.team.fullName||e.team.name)&&(m=e.team.fullName||e.team.name),"short"in e&&e.short&&e.team.shortName&&(m=e.team.shortName),"No team"===m&&(m=c.formatMessage({id:"player.noTeam"})),e.team.national)?(0,r.jsx)(d,{original:m,showFemaleSuffix:e.showFemaleSuffix}):(0,r.jsx)(u,{translation:m,showFemaleSuffix:e.showFemaleSuffix})},m=e=>"F"===e.gender&&e.type===i.YVh.Regular},97477:(e,t,n)=>{"use strict";n.d(t,{Gi:()=>j,kG:()=>w,lx:()=>S,iV:()=>b,zV:()=>x});var r=n(6029),i=n(21377),a=n(4967),s=n(41249),o=n(55729),l=n(14407),u=n(47146),d=n(62827),c=n(31710),m=n(41735),f=n(79027);function h(){let e=(0,c._)(["font-size: 24px"]);return h=function(){return e},e}let p=m.default.span.withConfig({componentId:"sc-8990aa68-0"})(["font-size:20px;",";font-weight:500;"],f.$_.lgMin(h())),x=e=>{let{time:t,status:n,currentPeriodStartTimestamp:r}=e;return n.type===i.XUj.InProgress&&"number"==typeof(null==t?void 0:t.initial)&&!d.p2.includes(n.code)&&!!(t.currentPeriodStartTimestamp||r)},g=e=>e.map(e=>"0".concat(e).slice(-2)).join(":"),v=e=>e.code===i.sum["1st extra"]||e.code===i.sum["2nd extra"]||e.code===i.sum.Overtime?"ET-":"";class b extends o.PureComponent{componentDidMount(){this.start(),document.addEventListener("visibilitychange",this.onVisibilityChange)}componentDidUpdate(e){let{referenceTime:t}=this.props;t!==e.referenceTime&&this.resetDelta()}componentWillUnmount(){this.stop(),document.removeEventListener("visibilitychange",this.onVisibilityChange)}resetDelta(){let{referenceTime:e,modifier:t}=this.props,n=Math.floor(Date.now()/1e3);this.setState({delta:t<0?e-n:n-e})}tick(){if(1>=Math.abs(this.props.modifier)){let e=this.state.delta+this.props.modifier;this.setState({delta:e})}else this.resetDelta()}start(){if(this.stop(),Math.abs(this.props.modifier)>1){let e=Math.floor(Date.now()/1e3)-this.props.referenceTime,[,,,t]=(0,a.U1)(e);this.timeoutIntervalId=window.setTimeout(()=>{this.intervalId=window.setInterval(this.tick,1e3*this.props.modifier),this.tick()},(60-t+1)*1e3)}else this.intervalId=window.setInterval(this.tick,1e3)}stop(){window.clearInterval(this.intervalId),window.clearTimeout(this.timeoutIntervalId)}onVisibilityChange(){"visible"===document.visibilityState&&(this.resetDelta(),this.setState({isPageHidden:!1}),this.start()),"hidden"===document.visibilityState&&(this.stop(),this.setState({isPageHidden:!0}))}render(){if(this.state.isPageHidden)return"-";let e=this.state.delta,t=(0,a.U1)(e),n=g(t.slice(1));return this.props.children({timeParts:t,formattedTime:n,delta:e})}constructor(e){if(super(e),"function"!=typeof e.children&&(0,i.Cu5)())throw Error("Timekeeper component requires prop children as a function!");let t=Math.floor(Date.now()/1e3),n=this.props.modifier<0?e.referenceTime-t:t-e.referenceTime;this.state={delta:n,isPageHidden:!1},this.tick=this.tick.bind(this),this.start=this.start.bind(this),this.stop=this.stop.bind(this),this.resetDelta=this.resetDelta.bind(this),this.onVisibilityChange=this.onVisibilityChange.bind(this)}}function j(e){let{startTimestamp:t}=e;return(0,r.jsx)(b,{referenceTime:t,modifier:-1,children:e=>{let{timeParts:n,delta:i}=e,[a,s,o,l]=n,d="";return i<0?"-":a>=1?(0,r.jsx)(u.v,{timestamp:1e3*t,isAbsoluteTime:!0}):g([s,o,l])}})}function y(e){let{startTimestamp:t,children:n,modifier:i=1}=e;return(0,r.jsx)(b,{referenceTime:t,modifier:i,children:"function"==typeof n?n:e=>{let{delta:t,formattedTime:n}=e;return t<0?null:n}})}function w(e){let{time:t,status:n,currentPeriodStartTimestamp:i}=e;if("number"!=typeof(null==t?void 0:t.initial))return null;let a=t.currentPeriodStartTimestamp||i;if(!a)return null;let s=a-t.initial;return(0,r.jsx)(y,{startTimestamp:s,modifier:60,children:e=>{let{delta:r}=e;if(t.max&&r>t.max)return Math.floor(t.max/60)+"+";let i=0===r?1:Math.ceil(r/60),a=v(n);return i>=0?a+i:null}})}j.StyledComponent=p;let _={period1:"injuryTime1",period2:"injuryTime2",extra1:"injuryTime3",extra2:"injuryTime4"};function S(e){let{time:t,status:n,currentPeriodStartTimestamp:i,lastPeriod:o,hasMinuteBlinker:d}=e;if(!x({time:t,status:n,currentPeriodStartTimestamp:i}))return null;let c=o?t[_[o]]:void 0,m=(t.currentPeriodStartTimestamp||i)-t.initial;return(0,r.jsx)(y,{startTimestamp:m,children:e=>{let{timeParts:n,delta:i}=e;if(i<0)return null;let[o,f,h,p]=n;if(o>0)return(0,r.jsx)(u.v,{timestamp:1e3*m});let x="",g="",v=t.max,b=!1;if(v&&i>v){let e=i-v;if(e>a.av)b=!0,g=Math.floor(v/60)+"+";else if(e>0&&c){p=Math.floor(i%60),h=Math.floor(i/60),f=Math.floor(i/3600);let e=h<10?"0".concat(h):"".concat(h),t=p<10?"0".concat(p):"".concat(p);g="".concat(x+e,":").concat(t)}else{x+=Math.floor(v/60)+"+",p=Math.floor(e%60),h=Math.floor(e/60)%60,f=Math.floor(e/3600)%24;let t=h<10?"0".concat(h):"".concat(h),n=p<10?"0".concat(p):"".concat(p);g="".concat(x+t,":").concat(n)}}else{let e=(h=60*f+h)<10?"0".concat(h):"".concat(h),t=p<10?"0".concat(p):"".concat(p);g="".concat(x+e,":").concat(t)}return(0,r.jsxs)(s.so,{justify:"center",children:[g,c&&(0,r.jsx)(s.so,{px:"sm",br:"md",bg:"sofaSingles.liveHighlight",ml:"xs",align:"center",children:(0,r.jsxs)(s.EY,{font:"assistive.default",color:"sofaSingles.live",as:"bdi",children:["+",c,"'"]})}),d&&!b&&(0,r.jsx)(l.I,{})]})}})}},98368:(e,t,n)=>{"use strict";n.d(t,{x8:()=>l,RU:()=>c,XE:()=>g,H_:()=>v,XB:()=>x});var r=n(6029),i=n(21377),a=n(76356),s=n(54409),o=n(65078);function l(e){var t;let{event:n}=e,l=(0,o.gm)(n.yardDistance,"currentPossession",n),u=Number(null==(t=n.yardDistance)?void 0:t.currentDown);return(0,r.jsx)(a.so,{alignSelf:"flex-start",direction:"column",mr:"-xs",h:"[34px]",w:"[20px]",justify:l===i.Jfo.Right?"flex-end":"flex-start",children:!(void 0===l||u<1||u>4)&&(0,r.jsx)(s.CvR,{icon:"af-touchdown",width:"16px",height:"16px",mr:"xs",mt:"xxs",fill:"sofaSingles.live"})})}var u=n(44194),d=n(90248);function c(){return(0,r.jsx)(a.so,{align:"center",children:(0,r.jsx)(u.EY,{textStyle:"body.medium",color:"status.live",children:(0,r.jsx)(d.A,{id:"am_football_red_zone_status"})})})}let m=e=>{switch(e){case 1:return"1st";case 2:return"2nd";case 3:return"3rd";case 4:return"4th";default:return}},f=e=>{let{currentDown:t,currentYardsToFirstDown:n,isGoalPossession:r}=e,i=m(t),a=n;if("number"==typeof n&&i)return n<1&&(a="Inches"),r&&(a="Goal"),"".concat(i," & ").concat(a)},h=e=>e.nameCode||e.name.slice(0,3).toLocaleUpperCase(),p=(e,t,n,r)=>{if("number"==typeof n&&void 0!==r)return"".concat(h(r===i.Jfo.Left?e:t)," ").concat(n)},x=e=>!!(e.currentPossession&&e.currentTeamHalf&&e.currentDown&&"number"==typeof e.currentYardline&&"number"==typeof e.currentYardsToFirstDown);function g(e,t){let{homeTeam:n,awayTeam:r}=t,a=h(e.currentPossession===i.Jfo.Left?n:r),s=f(e),o=p(n,r,e.currentYardline,e.currentTeamHalf);return s&&o?"".concat(a," ").concat(s," @ ").concat(o):null}function v(e){return!!e&&!!x(e)&&!!(e.currentYardline&&e.currentYardline<=20&&e.currentPossession!==e.currentTeamHalf)}},98449:(e,t,n)=>{"use strict";n.d(t,{m:()=>s,x:()=>o});var r=n(6029),i=n(90248);let a=e=>e.indexOf("-amateur");function s(e){let{slug:t,name:n,uniqueTournament:s}=e,o=a(t);if(-1!==o){let e=t.substr(0,o);return(0,r.jsx)(i.A,{id:"amateurCategory",defaultMessage:n,values:{countryName:(0,r.jsx)(i.A,{id:e})}})}if(null==s?void 0:s.tennisPoints){let e=n.split("").some(e=>!isNaN(Number(e))&&" "!==e);return 2e3===s.tennisPoints?(0,r.jsx)(i.A,{id:"tennis.grandSlam"}):(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(i.A,{id:t,defaultMessage:n})," ",e?null:(0,r.jsx)(r.Fragment,{children:s.tennisPoints})]})}return(0,r.jsx)(i.A,{id:t,defaultMessage:n})}function o(e){let{slug:t,name:n,intl:r}=e,i=a(t);if(-1!==i){let e=t.substr(0,i);return r.formatMessage({id:"amateurCategory",defaultMessage:n},{countryName:r.formatMessage({id:e})})}return r.formatMessage({id:t,defaultMessage:n})}}},e=>{var t=t=>e(e.s=t);e.O(0,[4092,6206,3338,4719,5247,636,6593,8792],()=>t(17331)),_N_E=e.O()}]);