!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]="9aa766ad-cbce-41e4-8ed1-0fe2f0998f22",e._sentryDebugIdIdentifier="sentry-dbid-9aa766ad-cbce-41e4-8ed1-0fe2f0998f22")}catch(e){}}();"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5907],{6354:(e,t,n)=>{n.d(t,{O:()=>r});let r=(0,n(55729).createContext)({})},7309:(e,t,n)=>{n.d(t,{w:()=>s});var r=n(947),a=n(84942),i=n(20336),o=n(79154);let l={};function s(e){let t=(0,r.A)();if(l[e.id])return l[e.id];let n=(0,a.s)(e,t.locale,{skipFallback:!0});if(n)return l[e.id]=n,n;let s=(0,i.t)(e.name,e.category.sport.slug,t);if(!e.uniqueTournament)return l[e.id]=s,s;let d=o[e.uniqueTournament.id];if(d){let n=e.uniqueTournament.name,r=t.formatMessage({id:d});s=s.replace(new RegExp("\\b".concat(n,"\\b")),r)}return l[e.id]=s,s}},7447:(e,t,n)=>{n.d(t,{A:()=>o});var r=n(6029),a=n(99064),i=n(54409);function o(e){let{isFollowed:t,disabled:n,onClick:o,isOnOverlay:l,...s}=e;return(0,r.jsx)(a.$n,{m:"0",p:"0",onClick:o,noFocus:!0,noActive:!0,variant:"unshielded",disabled:n,...s,children:t?(0,r.jsx)(i.zQC,{icon:"follow-active",fill:l?"onColor.primary":"primary.default",width:24,height:24}):(0,r.jsx)(i.zQC,{icon:"follow-default",fill:l?"onColor.primary":"neutral.default",width:24,height:24})})}},8973:(e,t,n)=>{n.d(t,{b:()=>r,y:()=>a});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}({}),a=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)=>{n.d(t,{J:()=>i});var r=n(6029),a=n(7309);let i=e=>{let{tournament:t}=e,n=(0,a.w)(t);return(0,r.jsx)(r.Fragment,{children:n})}},12047:(e,t,n)=>{n.d(t,{Ay:()=>o});var r=n(44194),a=n(21501),i=n(55729);function o(){let{isInMobileTabs:e=!0,isSportMenuVisible:t=!0}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},[n,o]=(0,i.useState)(0),l=(0,a.YU)(),{isMobile:s}=(0,r.$c)(),d=50*!!e,u=48+d+48*!!t;return(0,i.useEffect)(()=>{if(!s)return void o(0);o(l===a.Dh.Up?u:d)},[l,s]),n}},20336:(e,t,n)=>{n.d(t,{t:()=>u,g:()=>c});var r=n(21377),a=n(947);let i=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 o=n(27892);let l=Object.values(r.QCR),s=Object.keys(i).filter(e=>!l.includes(e));function d(e,t){return{id:(0,o.O)(i,e,t),values:(0,o.B)(i,e,t)}}function u(e,t,n){for(let r of s)if(e.includes(r)){let{id:a,values:i}=d(r,t),o=n.formatMessage({id:a,defaultMessage:r},i);return e.replace(new RegExp("\\b".concat(r,"\\b")),o)}return e}function c(e,t){let n=(0,a.A)();if(!e)return;let{id:r,values:i}=d(e,t);return n.formatMessage({id:r,defaultMessage:e},i)}},33752:(e,t,n)=>{n.d(t,{B:()=>m});var r=n(6029),a=n(44194),i=n(62042),o=n(76356);let l=(0,i.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]",borderYWidth:"xs",borderStartWidth:"[5px]",borderEndWidth:"0",borderTopColor:"[transparent]",borderEndColor:"[transparent]",borderBottomColor:"[transparent]",borderStartColor:"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"}}}),s=(0,o.I4)("li",l),d=(0,i.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]"}}}),u=(0,o.I4)("ul",d),c=(0,i.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]"}}}}}),f=(0,o.I4)("div",c),m=e=>{let{children:t,isHomePage:n}=e;return(0,r.jsx)(f,{isHomePage:n,children:(0,r.jsx)(u,{children:t})})};m.Item=e=>{let{children:t}=e;return(0,r.jsx)(s,{children:t})},m.Title=e=>{let{children:t}=e;return(0,r.jsx)(a.Li,{display:"inline",className:"breadcrumb-title",children:(0,r.jsx)(a.H1,{display:"inline",textStyle:"display.micro",color:"neutrals.nLv3",children:t})})}},39969:(e,t,n)=>{n.d(t,{h:()=>_,x:()=>k});var r=n(6029),a=n(21377),i=n(99064),o=n(55729),l=n(494),s=n(24313),d=n(70757),u=n(61836),c=n(10794),f=n(44194),m=n(76356),p=n(90248),h=n(54409);let v=(e,t,n)=>{if(n)switch(t){case"right":return{top:"-8px",left:0,transform:"translateY(-100%)"};case"bottom":return{};default:return{top:"-8px",right:0,transform:"translateY(-100%)"}}switch(t){case"right":return{bottom:"-8px",left:0,transform:"translateY(100%)"};case"bottom":return e?{transform:"translateX(-100%)"}:{};default:return{bottom:"-8px",right:0,transform:"translateY(100%)"}}},x=e=>{let{image:t,name:n,LinkComponent:a}=e,i=(0,r.jsxs)(m.so,{align:"center",cursor:"pointer",gap:"lg",children:[t,(0,r.jsx)(m.az,{style:{width:"102px"},textAlign:"start",children:(0,r.jsx)(f.EY,{color:"neutrals.nLv1",textStyle:"body.medium",children:n})})]});return(0,r.jsx)(m.az,{my:"md",children:a?(0,r.jsx)(a,{children:i}):i})},g=(0,o.forwardRef)((e,t)=>{let{isEventFollowed:n,entities:a=[],onDeleteClick:i,menuPosition:o,isMenuInverted:l}=e,{textDirection:s}=(0,f.$c)(),{isMobile:d}=(0,f.$c)();return"rtl"===s&&(o="right"===o?"left":"right"),(0,r.jsx)(m.az,{ref:t,position:"absolute",w:"[174px]",bg:"surface.s1",elevation:"3",br:"md",py:"sm",zIndex:"popover",style:{...v(d,o,l),whiteSpace:"normal"},children:n&&i?(0,r.jsxs)(m.so,{tabIndex:0,px:"lg",py:"sm",minH:"4xl",align:"center",br:"md",onKeyDown:e=>{("Enter"===e.key||" "===e.key)&&(null==i||i(e))},onClick:i,cursor:"pointer",children:[(0,r.jsx)(h.xV8,{fill:"error.default",width:24,height:24,mr:"lg"}),(0,r.jsx)(m.az,{style:{width:"102px"},children:(0,r.jsx)(f.EY,{color:"neutrals.nLv1",textStyle:"body.medium",children:(0,r.jsx)(p.A,{id:"remove_from_favourites"})})})]}):(0,r.jsxs)(m.az,{px:"lg",minH:"4xl",children:[(0,r.jsx)(m.az,{textAlign:"start",children:(0,r.jsx)(f.EY,{color:"neutrals.nLv3",textStyle:"assistive.default",pb:"sm",children:(0,r.jsx)(p.A,{id:"favorites.becauseYouFollow"})})}),a.map(e=>(0,r.jsx)(x,{...e},e.entityType+e.id))]})})});var b=n(37356),y=n(7447);let w=e=>{e.stopPropagation(),e.preventDefault()};function _(e){let{id:t,leftTeam:n,rightTeam:f,tournament:m,menuPosition:p,isMenuInverted:h,isOnOverlay:v,location:x,type:_}=e,j=(0,o.useMemo)(()=>(0,b.fB)(),[]),C=(0,o.useMemo)(()=>(0,b.KL)(),[]),S=(0,o.useMemo)(()=>({leftTeam:n,rightTeam:f,tournament:m}),[n.id,f.id,m.id]),k=(0,l.d4)(e=>j(e,t)),R=(0,l.d4)(e=>C(e,S)),E=(0,l.d4)(c.fg),F=k!==c.dE.NotFollowed&&!!k,M=F||!!R.length,{invertedMenu:T}=(0,s.l)(),A=(0,l.wA)(),q=()=>{A((0,d.q$)(a.bq7.Events,t)),A((0,d.q$)(a.bq7.MutedEvents,t)),(0,u.g2)({id:t,type:_,location:x,isFollowed:!1})},N=()=>{A((0,d.UQ)(a.bq7.Events,t)),(0,u.g2)({id:t,type:_,location:x,isFollowed:!0})},[Q,I]=(0,o.useState)(!1),z=()=>I(e=>!e),P=(0,o.useCallback)(()=>I(!1),[]),D=(0,i.jz)(P);return(0,r.jsxs)(i.az,{ref:D,w:"fit-content",children:[(0,r.jsx)(y.A,{"aria-label":M?"Remove from favourites":"Add to favourites",disabled:E,isFollowed:M,isOnOverlay:v,onClick:e=>{w(e),E||(M?F?q():z():N())}}),M&&Q&&!F&&(0,r.jsx)(g,{isEventFollowed:F,entities:R,menuPosition:p,isMenuInverted:T||h,onDeleteClick:e=>{w(e),q(),P()}})]})}var j=n(62859),C=n(8973),S=n(37470);function k(e){let{id:t,uniqueStage:n,menuPosition:f,location:m,isSubstageCell:p}=e,h=(0,o.useContext)(j.Ws),v=(0,o.useMemo)(()=>(0,b.BD)(),[]),x=(0,o.useMemo)(()=>(0,b.jM)(),[]),w=(0,l.d4)(e=>v(e,t)),_=(0,l.d4)(e=>x(e,null==n?void 0:n.id)),k=(0,l.d4)(c.fg),R=_&&n?(0,S.P3)({uniqueStage:n,sportSlug:h}):void 0,{invertedMenu:E}=(0,s.l)(),F=(0,l.wA)(),M=()=>{F((0,d.UQ)(a.bq7.Stages,t)),(0,u.g2)({id:t,type:p?C.b.Substage:C.b.Stage,location:m,isFollowed:!0})},T=()=>{F((0,d.q$)(a.bq7.Stages,t)),(0,u.g2)({id:t,type:p?C.b.Substage:C.b.Stage,location:m,isFollowed:!1})},[A,q]=(0,o.useState)(!1),N=()=>q(e=>!e),Q=()=>q(!1),I=(0,i.jz)(Q),z=w||_,P=_&&!p;return(0,r.jsxs)(i.az,{ref:I,position:"relative",w:"fit-content",children:[(0,r.jsx)(y.A,{disabled:k,isFollowed:z,onClick:e=>{e.stopPropagation(),e.preventDefault(),k||(z?N():M())}}),z&&A&&(0,r.jsx)(g,{entities:R?[R]:void 0,isEventFollowed:w&&!P,menuPosition:f,isMenuInverted:E,onDeleteClick:e=>{e.stopPropagation(),e.preventDefault(),T(),Q()}})]})}},42525:(e,t,n)=>{n.d(t,{C:()=>m});var r=n(6029),a=n(44194),i=n(76356),o=n(93338),l=n(55729),s=n(90248),d=n(54409),u=n(62827);let c=(0,i.I4)("input",{base:{width:"100%",height:"2xl",paddingInlineEnd:"3xl",bg:"surface.s2",textStyle:"assistive.default",color:"neutrals.nLv3",border:"1px solid",borderColor:"neutrals.nLv4",borderRadius:"sm",textOverflow:"ellipsis",outline:"none",cursor:"pointer",transitionProperty:"[box-shadow, background-color]",transitionDuration:"[300ms]",_focus:{outline:"none",bg:"neutral.highlight",boxShadow:"[0 0 0 3px]",boxShadowColor:"neutral.highlight"}}});function f(e){let{embedString:t,onToggle:n,onClick:a}=e;return(0,r.jsxs)(i.az,{position:"relative",mx:{base:"[0px]",md:"sm"},my:"xs",children:[(0,r.jsx)(c,{id:t,type:"text",readOnly:!0,value:t,onClick:a,onBlur:n}),(0,r.jsx)("label",{htmlFor:t,children:(0,r.jsx)(d.i2C,{width:"24",height:"24",fill:o.S.var("colors.action.primary.default"),style:{position:"absolute",top:4,right:8,cursor:"pointer"}})})]})}function m(e){let{id:t,callToAction:n,embedString:c,inverted:m,onCallToActionClick:p,...h}=e,[v,x]=(0,l.useState)(!1),[g,b]=(0,l.useState)(!1),{isMobile:y}=(0,a.$c)(),w=(0,l.useCallback)(async e=>{g||(b(!0),setTimeout(()=>{b(!1)},3e3),"writeText"in window.navigator.clipboard?(await window.navigator.clipboard.writeText(c),(0,u.MZ)((0,r.jsxs)(i.so,{align:"center",children:[(0,r.jsx)(d.G_L,{fill:"surface.s1",mr:"lg"}),(0,r.jsx)(a.EY,{display:"block",color:"surface.s1",textStyle:"display.small",children:(0,r.jsx)(s.A,{id:"basic.copiedToClipboard"})})]}))):(e.currentTarget.focus(),e.currentTarget.select()))},[v,c,g]);return(0,l.useEffect)(()=>{x(!1)},[t]),y?null:(0,r.jsx)(i.az,{px:"sm",mt:"sm",...h,children:(0,r.jsxs)(i.az,{cursor:"pointer",bg:{md:m?void 0:"surface.s2"},br:"lg",p:{md:"sm"},children:[(0,r.jsxs)(i.so,{justify:"flex-end",align:"center",onClick:()=>{x(!v),null==p||p()},children:[(0,r.jsx)(a.EY,{color:m?"onColor.primary":"action.primary.default",p:"sm",textStyle:{base:"assistive.default",md:"display.small"},display:"block",children:n}),(0,r.jsx)(i.az,{flexShrink:0,children:v?(0,r.jsx)(d.t8v,{width:"16",height:"16",fill:m?o.S.var("colors.onColor.primary"):o.S.var("colors.action.primary.default"),ml:"xs"}):(0,r.jsx)(d.QtO,{width:"16",height:"16",fill:m?o.S.var("colors.onColor.primary"):o.S.var("colors.action.primary.default"),ml:"xs"})})]}),v&&(0,r.jsx)(f,{embedString:c,onClick:w})]})})}},46009:(e,t,n)=>{n.d(t,{w:()=>a,e:()=>p});var r=n(55729);let a=(0,r.createContext)("");var i=n(6029),o=n(76356),l=n(494),s=n(54409),d=n(61836),u=n(10794),c=n(70757),f=n(12759);let m=e=>{e.stopPropagation(),e.preventDefault()};function p(e){let{entity:t,id:n,location:a,type:p,isOnOverlay:h,isDisabled:v,hasNoBorder:x=!1,onClick:g}=e,b=(0,l.wA)(),y=(0,l.d4)(e=>(0,u.Ql)(e,t,n),l.bN),w="boolean"==typeof y?y:y!==u.dE.NotFollowed,_=(0,l.d4)(u.fg)||v,j=(0,r.useCallback)(()=>{if(!_){if(w){let e=y===u.dE.Favorite?(0,f.Hz)(t):t;b((0,c.q$)(e,n))}else{let e=(0,f.Hz)(t);b((0,c.UQ)(e,n))}(0,d.g2)({id:n,type:p,location:a,isFollowed:!w})}},[w,_,t,n]);return(0,i.jsx)(o.I4.button,{border:x?"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:_,_disabled:{opacity:.5,color:"neutral.default",cursor:"not-allowed"},_hover:_?{}:{bg:"primary.default/8"},_active:_?{}:{bg:"primary.default/15"},_focusVisible:{},onClick:e=>{m(e),null==g||g(),j()},children:w?(0,i.jsx)(s.zQC,{icon:"follow-active",m:"0",fill:h?"onColor.primary":"primary.default"}):(0,i.jsx)(s.zQC,{icon:"follow-default",m:"0",fill:h?"onColor.primary":"neutral.default"})})}},47530:(e,t,n)=>{n.d(t,{DT:()=>u,Xl:()=>c,__:()=>s,rC:()=>d});var r=n(6029),a=n(21377),i=n(90248),o=n(947),l=n(20336);let s=e=>{let{name:t,sport:n}=e,a=(0,l.g)(t,n);return(0,r.jsx)(r.Fragment,{children:a})};function d(e){let{roundName:t,sport:n}=e,o=n===a.QCR.AmericanFootball;if(!isNaN(+t))return(0,r.jsx)(i.A,{id:o?"week_number":"round_number",values:{n:t}});let l=t.match(/\d+/),u=t.match(/2nd leg/),c=t.match(/place/);if(l&&!u&&!c)return t.match(/qualification/i)?(0,r.jsx)(i.A,{id:"qualificationRoundN",values:{n:l[0]},defaultMessage:t}):t.match(/round of/i)||t.match(/\d+[/]\d+/i)||t.match(/R\d+/i)?(0,r.jsx)(s,{name:t,sport:n}):(0,r.jsx)(i.A,{id:o?"week_number":"round_number",values:{n:l[0]},defaultMessage:t});if(u&&u.index){let e=t.slice(0,u.index-1);return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(d,{roundName:e})," ",(0,r.jsx)(i.A,{id:"tournament.totw.secondLeg",defaultMessage:u[0]})]})}return(0,r.jsx)(s,{name:t,sport:n})}let u=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)(d,{roundName:t.prefix}),"\xa0"]}),(0,r.jsx)(d,{roundName:(null==t?void 0:t.name)||t.round.toString(),sport:n})]}):null},c=(e,t,n)=>{let r=(0,o.A)(),i=(0,l.g)(e,t),s=t===a.QCR.AmericanFootball;if(!e)return;if(!isNaN(+e))return r.formatMessage({id:s?"week_number":"round_number"},{n:e});let d=e.match(/\d+/),u=e.match(/2nd leg/),c=e.match(/place/);return!d||u||c?n?r.formatMessage({id:"winner"}):i:e.match(/qualification/i)?r.formatMessage({id:"qualificationRoundN",defaultMessage:e},{n:d[0]}):e.match(/round of/i)||e.match(/\d+[/]\d+/i)||e.match(/R\d+/i)?i:r.formatMessage({id:s?"week_number":"round_number",defaultMessage:e},{n:d[0]})}},53486:(e,t,n)=>{n.d(t,{n6:()=>k,MC:()=>m.MC,gY:()=>E,G:()=>A,ey:()=>T});var r=n(6029),a=n(87827),i=n(21377),o=n(21501),l=n(99064),s=n(55729),d=n(90248),u=n(494),c=n(62859),f=n(54409),m=n(60988),p=n(41735);let h=p.default.span.withConfig({componentId:"sc-8e60f6ed-0"})(["padding:3px;color:white;font-size:12px;font-weight:600;min-width:44px;border-radius:4px;text-align:center;display:inline-block;background:",";"],e=>e.isWinner?e.theme.colors.secondary.default:e.theme.colors.onSurface.nLv3),v=function(e){let{points:t,isWinner:n,...a}=e;return(0,r.jsx)(h,{isWinner:n,...a,children:"number"==typeof t?"".concat(t," pts"):"-"})};var x=n(8703),g=n(65078),b=n(16620),y=n(48886),w=n(8973),_=n(39969),j=n(70591);let C=(0,p.default)(j.tj).withConfig({componentId:"sc-3f813a14-0"})(["display:block;border-radius:2px;:hover{background:",";}:active{background:",";}"],e=>e.theme.colors.surface.s2,e=>e.theme.colors.surface.s0),S=(0,p.default)(l.$n).withConfig({componentId:"sc-3f813a14-1"})(["display:inline-block;&:hover > *{transform:scale(1.1);}"]);function k(e){let t=(0,s.useRef)(null),n=(0,u.d4)(t=>t.favorites.events[e.event.id],u.bN),[a,i]=(0,g.jr)(n,"homeTeam","awayTeam",n),[l,d]=(0,g.jr)(n,"homeScore","awayScore",n),f=(0,o.ZC)(null==n?void 0:n.status.type);return((0,s.useEffect)(()=>{e.mutate&&f&&(null==n?void 0:n.status.type)&&f!==n.status.type&&e.mutate()},[e.mutate,f,null==n?void 0:n.status.type]),n)?(0,r.jsx)(c.y$.Provider,{value:{event:n,leftTeam:a,rightTeam:i,leftScore:l,rightScore:d},children:(0,r.jsx)(C,{event:n,className:"event-hl-".concat(n.id),onClick:t=>{e.onClick&&e.onClick(t,(null==n?void 0:n.id)||-1,e.isMobile)},children:(0,r.jsx)("div",{ref:t,children:(0,r.jsx)(m.n6,{...e,event:n,location:e.location})})})}):null}let R=()=>{let{event:e,leftTeam:t,rightTeam:n}=(0,s.useContext)(c.y$),{location:a}=(0,m.lv)();return(0,r.jsx)(_.h,{id:e.id,tournament:e.tournament,leftTeam:t,rightTeam:n,type:w.b.Event,location:a})},E=e=>(0,r.jsx)(k,{...e,children:R}),F=e=>{let{referenceId:t,isReferenceTeamId:n}=e,a=(0,g.h2)(t,n),o={background:"onSurface.nLv3",char:"?"};switch(a){case i.h18.Win:o={background:"secondary.default",char:"W"};break;case i.h18.OvertimeLoss:case i.h18.Lose:o={background:"error.default",char:"L"};break;case i.h18.Draw:o={background:"onSurface.nLv3",char:"D"}}return(0,r.jsx)(l.az,{w:24,h:24,br:"50%",bg:o.background,mx:1,children:(0,r.jsx)(l.EY,{font:"display.small",color:"onColor.primary",lineHeight:"24px",w:24,align:"center",as:"div",children:o.char})})},M=e=>{let{event:t,leftTeam:n,rightTeam:a}=(0,s.useContext)(c.y$);return[i.XUj.NotStarted,i.XUj.InProgress].includes(t.status.type)?(0,r.jsx)(_.h,{type:w.b.Event,location:w.y.MatchesSection,id:t.id,tournament:t.tournament,leftTeam:n,rightTeam:a}):(0,r.jsx)(F,{...e})},T=e=>{let{referenceId:t,isReferenceTeamId:n,incidentsMap:a,...i}=e;return e=>(0,r.jsx)(k,{incidents:a?a[e.event.id]:void 0,isReferenceTeamId:n,...i,...e,children:()=>(0,r.jsx)(M,{referenceId:t,isReferenceTeamId:n})})},A=e=>{let{rating:t,points:n,player:o,playedFor:u,isOnBench:m,incidents:p,isReferenceTeamId:h}=e;return e=>(0,r.jsx)(k,{incidents:p,entity:i.wNW.Player,...e,isReferenceTeamId:h,children:(0,x.rK)(e.event)?()=>{let{openEventPlayerStatistics:e}=(0,b.d)(),{event:p,leftTeam:h,rightTeam:x}=(0,s.useContext)(c.y$),g=p.status.type,j=p.tournament.category.sport,C=p.winnerCode===i.Jfo.Left?h.id:x.id,k=j.slug===i.QCR.Football,R=j.slug===i.QCR.Basketball,E=g===i.XUj.NotStarted,F=R&&void 0!==n,M=!k&&!F;return m&&j.slug===i.QCR.Football?(0,r.jsx)(l.az,{w:"28",h:"28",children:(0,r.jsx)(f.IKQ,{width:24,height:24,fill:"onSurface.nLv3"})}):E?(0,r.jsx)(_.h,{id:p.id,type:w.b.Event,location:w.y.MatchesSection,tournament:p.tournament,leftTeam:h,rightTeam:x}):p.hasEventPlayerStatistics?(0,r.jsxs)(S,{onClickCapture:t=>{t.preventDefault(),t.stopPropagation(),p.hasEventPlayerStatistics&&o&&e({event:p,player:o},y._.EventCell)},variant:M?void 0:"unshielded",colorScheme:M?"secondary":void 0,p:"0",w:F?48:28,h:"28",children:[k&&(0,r.jsx)(a.G,{rating:t}),F&&(0,r.jsx)(v,{points:n,isWinner:C===u}),M&&(0,r.jsx)(f.Abd,{width:24,height:24,fill:"onColor.primary"})]}):(0,r.jsx)(l.so,{w:"28",h:"28",align:"center",justify:"center",children:(0,r.jsx)(l.EY,{font:"assistive.default",color:"onSurface.nLv3",children:(0,r.jsx)(d.A,{id:"N/A"})})})}:null})}},79387:(e,t,n)=>{n.d(t,{C:()=>r.C});var r=n(42525)},85685:(e,t,n)=>{n.d(t,{o:()=>i});var r=n(6029),a=n(90248);let i=e=>{let{parsedMoney:t}=e;return t.measure?(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(a.A,{id:"value.".concat(t.measure),values:{value:t.parsedValue}})," ",t.currencySign]}):(0,r.jsxs)(r.Fragment,{children:[t.parsedValue," ",t.currencySign]})}}}]);