!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]="716cfc5a-a089-4519-9037-3bdaa17dc213",e._sentryDebugIdIdentifier="sentry-dbid-716cfc5a-a089-4519-9037-3bdaa17dc213")}catch(e){}}();"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[15102],{3460:(e,t,s)=>{s.d(t,{A:()=>d});var n=s(46787),r=s(494),l=s(68789),i=s(37455),a=s(60682),o=s(11996);function d(e){let t=(0,r.d4)(i.BF),s=(0,r.d4)((0,i.bS)(e)),d=(0,l.F0)(e),[c]=(0,a.Z)(d),u=e.tournament.id,x=e.tournament.category.sport.slug,h=t||!c||!s,{hasOdds:p,hasTopVoted:m}=(0,o.A)({hasOdds:{route:c?n.npy.recommendedPrematch(c,u):void 0,skipCheck:h},hasTopVoted:{route:c?n.npy.recommendedPrematchTopVoted(c,x):void 0,skipCheck:h}},[e.id,s,t,c,h]);return h?{hasRecommendedPrematchOdds:!1,hasRecommendedPrematchTopVotedOdds:!1}:{hasRecommendedPrematchOdds:!!p,hasRecommendedPrematchTopVotedOdds:!!m}}},8431:(e,t,s)=>{s.d(t,{A:()=>i});var n=s(6029),r=s(76356),l=s(46222);function i(){return(0,n.jsx)(l.Zp,{children:(0,n.jsx)(r.az,{h:"[176px]"})})}},8968:(e,t,s)=>{s.d(t,{A:()=>v});var n=s(6029),r=s(46787),l=s(76356),i=s(55729),a=s(18970),o=s(66331),d=s(96861),c=s(31830),u=s(10174),x=s(74664),h=s(52466),p=s(67087),m=s(81484);function j(e){let{period:t,open:s,toggleOpen:i,isLive:a}=e,o=(0,x.o)(),d=t.incidents.length?t.incidents[0]:null,c=(0,p.g3)(),j=c?null==d?void 0:d.awayScore:null==d?void 0:d.homeScore,g=c?null==d?void 0:d.homeScore:null==d?void 0:d.awayScore,y=o===r.QCR.Volleyball&&"Golden set"===t.periodIncident.text;return(0,n.jsxs)(l.so,{onClick:i,cursor:"pointer",align:"center",justify:"center",px:"lg",children:[(0,n.jsx)(l.so,{grow:1,h:"sm",borderTop:a?"1px solid {colors.status.live}":"1px solid {colors.neutrals.nLv4}",borderStart:a?"1px solid {colors.status.live}":"1px solid {colors.neutrals.nLv4}"}),(0,n.jsxs)(l.so,{gap:"xs",px:"lg",align:"center",pt:"sm",pb:"lg",color:y?"status.val":a?"status.live":"neutrals.nLv1",children:[(0,n.jsxs)(u.EY,{textStyle:"display.micro",textAlign:"center",display:"block",color:"[currentcolor]",children:[(0,n.jsx)(m.fP,{id:t.periodIncident.text}),d&&" ".concat(j," - ").concat(g)]}),(0,n.jsx)(h.zQC,{icon:s?"chevron-up":"chevron-down",width:16,height:16,fill:"onSurface.nLv1"})]}),(0,n.jsx)(l.so,{grow:1,h:"sm",borderTop:a?"1px solid {colors.status.live}":"1px solid {colors.neutrals.nLv4}",borderEnd:a?"1px solid {colors.status.live}":"1px solid {colors.neutrals.nLv4}"})]})}var g=s(80370),y=s(57724);function v(e){let{groupedIncidents:t,event:s}=e,u=(0,c.A)(),[x,h]=(0,i.useState)(t.map((e,t)=>0===t)),p=(0,i.useContext)(a.Ws),{openEventPlayerStatistics:m}=(0,o.d)();return(0,n.jsx)(l.az,{py:"md",children:t.map((e,t)=>(0,n.jsxs)(i.Fragment,{children:[(0,n.jsx)(j,{period:e,open:x[t],toggleOpen:()=>{h(x.map((e,s)=>s===t?!e:e))},isLive:s.status.type===r.XUj.InProgress&&0===t}),x[t]&&(0,n.jsx)(l.az,{children:e.incidents.map(e=>(0,n.jsx)(i.Fragment,{children:"overtimeBreak"===e.incidentType?(0,n.jsx)(l.cG,{}):(0,n.jsx)(g.f,{incident:e,locale:u,hideTime:!y.QC.includes(p),onPlayerClick:e=>{!e.disabled&&s.hasEventPlayerStatistics&&m({event:s,player:e},d._l.Incidents)},hasEventPlayerStatistics:s.hasEventPlayerStatistics,hasGroupedIncidents:!0},e.id)},e.id))})]},e.periodIncident.text))})}},11059:(e,t,s)=>{s.d(t,{A:()=>d});var n=s(6029),r=s(10174),l=s(71024),i=s.n(l),a=s(56132);let o=i()(()=>s.e(88947).then(s.bind(s,88947)),{loadableGenerated:{webpack:()=>[88947]},ssr:!1});function d(){return(0,n.jsx)(r.tU.Panel,{tabKey:a.x.Games,children:(0,n.jsx)(o,{})})}},12337:(e,t,s)=>{s.d(t,{k:()=>x});var n=s(6029),r=s(46787),l=s(10174),i=s(55729),a=s(90248),o=s(18970),d=s(41164),c=s(57724);let u=e=>{let{time:t,addedTime:s,formatSeconds:l}=e,i=l?"".concat(Math.floor(t/60),":").concat(String(t%60).padStart(2,"0")):"".concat(t,"'");return -1===t||-2===t||-5===t?null:-3===t?(0,n.jsx)(a.A,{id:"ht_status"}):-4===t?(0,n.jsx)(a.A,{id:"full_time_short"}):(0,n.jsxs)(n.Fragment,{children:[void 0!==t&&t!==r.yBP.OnBenchIncidentTime?i:"-",s&&(0,n.jsxs)("sup",{children:[" +",s]})]})},x=e=>{let{time:t,timeSeconds:s,addedTime:a,reversedPeriodTime:x,reversedPeriodTimeSeconds:h,incidentType:p}=e,m=(0,i.useContext)(o.Ws),j=c.QC.includes(m),g=(0,d.vJ)(m)&&void 0!==h||m===r.QCR.Handball&&!!s,y=g&&s?s:t,v=void 0!==t&&-1!==t&&"penaltyShootout"!==p;return(0,n.jsx)(l.Ym,{display:"block",w:j?"2xl":"3xl",children:(0,n.jsx)(l.EY,{textStyle:"display.micro",textAlign:"center",display:"block",children:v?(0,n.jsx)(u,{time:(0,d.vJ)(m)?h||x:y,addedTime:a,formatSeconds:g}):"-"})})}},12714:(e,t,s)=>{s.d(t,{A:()=>h});var n=s(46787),r=s(22375),l=s(55729),i=s(494),a=s(18970),o=s(68789),d=s(24534),c=s(37455),u=s(60682),x=s(11996);let h=()=>{let{event:e}=(0,l.useContext)(a.y$),t=e.status.type===n.XUj.InProgress,s=(0,o.F0)(e),[h,p]=(0,u.Z)(s,t),m=(0,i.d4)((0,c.Ul)(e)),j=(0,i.d4)(c.fq),g=(e,t,s)=>s?void 0:n.bnp.teamStreaksOdds(e,t),{hasProviderOdds:y,hasFallbackProviderOdds:v}=(0,x.A)({hasProviderOdds:{route:h?g(e.id,h,j):void 0,skipCheck:!h||!m},hasFallbackProviderOdds:{route:p?g(e.id,p,j):void 0,skipCheck:!p||!m}},[e.id,h,p,m,j],{refreshInterval:120*r.Z2}),f=(0,d.q1)();return j?f:!!y||!!v}},13705:(e,t,s)=>{s.d(t,{A:()=>d});var n=s(6029),r=s(10174),l=s(71024),i=s.n(l),a=s(56132);let o=i()(()=>s.e(30302).then(s.bind(s,30302)),{loadableGenerated:{webpack:()=>[30302]},ssr:!1});function d(){return(0,n.jsx)(r.tU.Panel,{tabKey:a.x.BoxScore,children:(0,n.jsx)(o,{})})}},15220:(e,t,s)=>{s.d(t,{x:()=>c});var n=s(6029),r=s(76356),l=s(71024),i=s.n(l),a=s(46222),o=s(67430);let d=i()(()=>s.e(51614).then(s.bind(s,51614)),{loadableGenerated:{webpack:()=>[51614]},loading:()=>(0,n.jsx)(a.Zp,{children:(0,n.jsx)(r.az,{h:"[372px]"})})});function c(){let{incidents:e,isLoading:t,isError:s}=(0,o.L)();return t||(null==e?void 0:e.length)&&!s?t?(0,n.jsx)(a.Zp,{children:(0,n.jsx)(r.az,{h:"[372px]"})}):(0,n.jsx)(d,{incidents:e}):null}},15258:(e,t,s)=>{s.d(t,{d:()=>n.d,p:()=>r.p});var n=s(25635),r=s(91603)},18749:(e,t,s)=>{s.d(t,{A:()=>v});var n=s(6029),r=s(46787),l=s(10174),i=s(76356),a=s(71024),o=s.n(a),d=s(55729),c=s(46222),u=s(18970),x=s(12714),h=s(173),p=s(68789),m=s(56132),j=s(79796);let g=o()(()=>s.e(82925).then(s.bind(s,82925)),{loadableGenerated:{webpack:()=>[82925]},ssr:!1,loading:()=>(0,n.jsx)(i.az,{h:"[620px]"})}),y=o()(()=>Promise.all([s.e(3074),s.e(43738),s.e(66735)]).then(s.bind(s,43738)),{loadableGenerated:{webpack:()=>[43738]},ssr:!1,loading:()=>(0,n.jsx)(i.az,{h:"[560px]"})});function v(){let e=(0,d.useContext)(u.Ws),{event:t}=(0,d.useContext)(u.y$),s=(0,x.A)(),i=e===r.QCR.MMA,a=(0,p.F0)(t);return(0,n.jsx)(l.tU.Panel,{tabKey:i?m.x.Fights:m.x.Matches,children:(0,n.jsxs)(c.BU,{children:[(0,n.jsx)(g,{}),(0,n.jsx)(j.v,{event:t}),(0,n.jsx)(y,{}),s&&(0,n.jsx)(h.z,{provider:a})]})})}},21795:(e,t,s)=>{s.d(t,{A:()=>x});var n=s(6029),r=s(46787),l=s(10174),i=s(71024),a=s.n(i),o=s(56132),d=s(89047);let c=a()(()=>Promise.resolve().then(s.bind(s,14769)),{loadableGenerated:{webpack:()=>[14769]},ssr:!1}),u=a()(()=>Promise.all([s.e(46432),s.e(81943)]).then(s.bind(s,81943)),{loadableGenerated:{webpack:()=>[81943]},ssr:!1,loading:()=>(0,n.jsx)(d.O,{})});function x(e){let{event:t}=e;return(0,n.jsx)(l.tU.Panel,{tabKey:o.x.Statistics,children:t.tournament.category.sport.slug===r.QCR.MMA?(0,n.jsx)(c,{}):(0,n.jsx)(u,{event:t})})}},22275:(e,t,s)=>{s.d(t,{n:()=>o});var n=s(6029),r=s(19621),l=s(76356),i=s(55729),a=s(33140);function o(e){let t=1===i.Children.count(e.children),s=(0,r.hX)()&&e.openOnServer,[o,d]=(0,i.useState)(s||!1);return(0,n.jsxs)(l.az,{children:[(0,n.jsx)(l.az,{children:e.children[0]}),(0,n.jsx)(l.az,{display:o?"initial":"none",children:e.children.slice(1)}),!t&&(0,n.jsx)(a.d,{isOpen:o,onClick:()=>d(e=>!e)})]})}},22830:(e,t,s)=>{s.d(t,{j:()=>d,q:()=>c});var n=s(46787),r=s(55729),l=s(45860),i=s(18970),a=s(41164),o=s(31830);let d=e=>{var t;let s=(0,o.A)().substring(0,2);if(null==(t=n.DcR[e])?void 0:t.includes(s))return s};function c(e){let{event:t}=(0,r.useContext)(i.y$),s=d(t.tournament.category.sport.slug),{data:o}=(0,l.Ay)(s?n.bnp.commentary(t.id,s):null,(0,a.rf)(t)),c=[];return{textCommentary:null==o?void 0:o.comments.reduce((e,t)=>(t.periodName&&(c.find(e=>e===t.periodName)?e[t.periodName].push(t):(c.unshift(t.periodName),e[t.periodName]=[t])),e),e?{all:null==o?void 0:o.comments}:{}),periods:e?["all",...c]:c}}},24230:(e,t,s)=>{s.d(t,{i:()=>i});var n=s(16503),r=s(95084),l=s(91452);function i(e,t,s){let i=(0,l.HK)(e,s);return(0,n.e)(()=>t?(0,r.LJ)({id:i.eventId||i.tournamentId,location:i.location,provider:s}):(0,r.WG)({id:i.eventId||i.tournamentId,location:i.location,provider:s}))}},24534:(e,t,s)=>{s.d(t,{PW:()=>f,Q:()=>g,q1:()=>v});var n=s(46787),r=s(22375),l=s(55729),i=s(494),a=s(18970),o=s(68789),d=s(72753),c=s(11996),u=s(72388),x=s(30120),h=s(94122),p=s(37455),m=s(60682);let j=30*r.Z2,g=()=>{let e=(0,i.d4)(d.LQ),{event:t}=(0,l.useContext)(a.y$),s=(0,i.d4)((0,p.Ul)(t)),r=t.status.type===n.XUj.InProgress,x=(0,o.F0)(t),g=(0,o.ks)(t),[y,v]=(0,m.Z)(x,r),[f,b]=(0,m.Z)(g,r),C=(0,i.d4)(p.fq),w=e&&!C&&!h.fe.includes(e),{hasProviderOdds:S,hasFallbackProviderOdds:k,hasOddsTabProviderOdds:A,hasOddsTabFallbackProviderOdds:_,hasWinningOdds:T,hasFallbackProviderWinningOdds:P}=(0,c.A)({hasProviderOdds:{route:y?n.bnp.featuredOdds(t.id,y):void 0,skipCheck:!s||!y},hasFallbackProviderOdds:{route:v?n.bnp.featuredOdds(t.id,v):void 0,skipCheck:!s||!v},hasOddsTabProviderOdds:{route:f?n.bnp.allOdds(t.id,f):void 0,skipCheck:!s||!y||!w},hasOddsTabFallbackProviderOdds:{route:b?n.bnp.allOdds(t.id,b):void 0,skipCheck:!s||!v||!w},hasWinningOdds:{route:y?n.bnp.winningOdds(t.id,y):void 0,skipCheck:!s||!y},hasFallbackProviderWinningOdds:{route:y!==h.u3?n.bnp.winningOdds(t.id,h.u3):void 0,skipCheck:!s||!v}},[t.id,s,w,y,v],{refreshInterval:(0,u.c)(t)?j:void 0});return s?{hasFeaturedOdds:!!(S||k),hasOddsTab:!!(A||_),hasWinningOdds:!!(T||P)}:{hasFeaturedOdds:!1,hasOddsTab:!1}},y=(e,t)=>{let{event:s}=(0,l.useContext)(a.y$),r=s.status.type===n.XUj.InProgress,o=(0,i.d4)(p.K),d={};null==t||t.forEach(t=>{d["provider".concat(t.oddsFromId)]={route:n.bnp.allOdds(s.id,t.oddsFromId),skipCheck:!e},t.fallbackProviderId&&(d["provider".concat(t.fallbackProviderId)]={route:n.bnp.allOdds(s.id,t.fallbackProviderId),skipCheck:!e})});let x=(0,c.A)(d,[s.id,e,r,null==t?void 0:t.length],{refreshInterval:(0,u.c)(s)?j:void 0}),h=(null!=t?t:[]).map(e=>x["provider".concat(e.oddsFromId)]||x["provider".concat(e.fallbackProviderId)]?1:0).reduce((e,t)=>e+t,0);return e&&h>=(null!=o?o:1)},v=()=>{let{event:e}=(0,l.useContext)(a.y$);return y((0,i.d4)(p.fq),(0,x.tV)(e.status.type===n.XUj.InProgress))},f=()=>{let{event:e}=(0,l.useContext)(a.y$);return y((0,i.d4)(p._I),(0,x.Qe)(e.status.type===n.XUj.InProgress))}},25145:(e,t,s)=>{s.d(t,{A:()=>i});var n=s(6029),r=s(76356),l=s(46222);function i(e){let{gender:t}=e;return(0,n.jsxs)(l.Zp,{children:[(0,n.jsx)(l.Zp.Header,{titleId:"featured_players",values:{gender:t}}),(0,n.jsx)(r.az,{h:"[440px]"})]})}},26201:(e,t,s)=>{s.d(t,{b:()=>k});var n=s(6029),r=s(10174),l=s(55729),i=s(947),a=s(18970),o=s(74664),d=s(90438),c=s(46787),u=s(73498),x=s(52466),h=s(64006),p=s(95084),m=s(11996);let j=[c.QCR.Tennis],g=(e,t,s)=>{if(t&&s)return c.cWY.seasonStatistics(e,t,s,c.Vw_.overall)},y=()=>{var e,t;let{event:s,leftTeam:n,rightTeam:r,location:i}=(0,l.useContext)(a.y$),o=null==(e=s.tournament.uniqueTournament)?void 0:e.id,d=null==(t=s.season)?void 0:t.id,{ltHasStats:u,ltHasGivenSeason:x,rtHasStats:h,rtHasGivenSeason:j}=(0,m.A)({ltHasStats:{route:c.cWY.statisticsSeasons(n.id)},ltHasGivenSeason:{route:g(n.id,o,d)},rtHasStats:{route:c.cWY.statisticsSeasons(r.id)},rtHasGivenSeason:{route:g(r.id,o,d)}},[s]);return{shouldShowAction:u&&h,getLinkQueryParams:()=>x&&j&&d&&o?{ids:"".concat(n.id,",").concat(r.id),s_ids:"".concat(d,",").concat(d),ut_ids:"".concat(o,",").concat(o)}:{ids:"".concat(n.id,",").concat(r.id)},logAnalyticsEvent:()=>(0,p.ke)({action:"click",location:"event_widget"===i?"event_widget":"event_details",type:"compare_teams"})}},v=e=>{let{isInDesktopHeader:t}=e,s=(0,i.A)(),l=(0,o.o)(),{shouldShowAction:a,getLinkQueryParams:d,logAnalyticsEvent:p}=y();return void 0===a&&t?(0,n.jsx)(r.D7,{disabled:!0,children:(0,n.jsx)(x.cSg,{style:{width:24,height:24}})}):a&&t?(0,n.jsx)(h.N_,{routeKey:"comparison",params:{sport:l,entityType:c.wNW.Team},query:d(),children:(0,n.jsx)(u.u,{onClick:p,label:s.formatMessage({id:"compare_players"}),children:(0,n.jsx)(x.cSg,{style:{width:24,height:24}})})}):null};var f=s(33144),b=s(76356),C=s(90248),w=s(46222);let S=e=>{let{event:t,leftTeam:s,rightTeam:l,isInDesktopHeader:a}=e,o=(0,i.A)(),{shouldShowAction:d,getLinkQueryParams:p,logAnalyticsEvent:m}=y(),j=t.tournament.category.sport.slug;return void 0===d?a?(0,n.jsx)(r.D7,{disabled:!0,children:(0,n.jsx)(x.l3$,{style:{width:24,height:24}})}):(0,n.jsx)(w.Zp,{children:(0,n.jsx)(b.az,{h:"4xl"})}):d?a?(0,n.jsx)(h.N_,{routeKey:"comparison",params:{sport:j,entityType:c.wNW.Team},query:p(),children:(0,n.jsx)(u.u,{onClick:m,label:o.formatMessage({id:"compare_teams"}),children:(0,n.jsx)(x.l3$,{style:{width:24,height:24}})})}):(0,n.jsx)(w.Zp,{children:(0,n.jsxs)(b.so,{px:"lg",py:"sm",justify:"space-between",align:"center",children:[(0,n.jsx)(f.p,{id:s.id,alt:s.name,size:32}),(0,n.jsx)(h.N_,{routeKey:"comparison",params:{sport:j,entityType:c.wNW.Team},query:p(),style:{width:"calc(100% - 64px - 32px)"},children:(0,n.jsxs)(r.$n,{textWrap:"wrap",w:"100%",size:"secondary",onClick:m,children:[(0,n.jsx)(C.A,{id:"compare_teams"})," ",(0,n.jsx)(x.l3$,{minW:24})]})}),(0,n.jsx)(f.p,{id:l.id,alt:l.name,size:32})]})}):null},k=e=>{let{isInDesktopHeader:t}=e,s=(0,i.A)(),c=(0,l.useContext)(a.y$),u=(0,o.o)(),{shouldShowAction:x}=y();if(!c)throw Error("CompareTeamsContainer must be used within EventContext");if(!d.mz.includes(u)||!x)return null;let h=j.includes(u)?(0,n.jsx)(v,{isInDesktopHeader:t}):(0,n.jsx)(S,{...c,isInDesktopHeader:t});return t?(0,n.jsx)(r.m_,{content:s.formatMessage({id:j.includes(u)?"compare_players":"compare_teams"}),strategy:"hover",children:h}):h}},26208:(e,t,s)=>{s.d(t,{I:()=>L});var n=s(6029),r=s(46787),l=s(10174),i=s(76356),a=s(55729),o=s(90248),d=s(46222),c=s(4917),u=s(14831),x=s(22375),h=s(947),p=s(22275),m=s(60475),j=s(64006),g=s(88505),y=s(30774),v=s(80055),f=s(63561);function b(e){let{event:t}=e,s=(0,h.A)(),{homeTeam:r,awayTeam:i,tournament:a,startTimestamp:d,venue:c}=t,u=(0,v.s)(r,s.locale),p=(0,v.s)(i,s.locale),m=a.category.sport,g=s.formatDate((0,x.pp)(d,!0),{...x.or.dateWithShortMonth}),y=s.formatTime((0,x.pp)(d,!0));return(0,n.jsxs)(n.Fragment,{children:[!!c&&(0,n.jsx)(l.EY,{py:"sm",display:"block",children:(0,n.jsx)(o.A,{id:"event.about.schema",values:{homeTeamName:u,awayTeamName:p,startDate:g,startTime:y,...(0,f.Ee)(c),title:function(){for(var e=arguments.length,t=Array(e),s=0;s(0,n.jsx)("a",{href:"https://www.sofascore.com",children:e}),sport:P.slug}})]}),(0,n.jsxs)("div",{children:[(0,n.jsx)(l.EY,{py:"sm",textStyle:"body.mediumParagraph",display:"block",children:(0,n.jsx)(o.A,{id:"event.about3",values:{homeTeamName:A,awayTeamName:_,streamSponsor:i,sportName:P.name,sportLink:(0,n.jsx)(j.di,{translatedParams:{sport:P.slug},children:(0,n.jsx)(o.A,{id:"team.about.sportLivescore",values:{sport:P.name}})})}})}),(0,n.jsx)(b,{event:t})]})]})}var _=s(99306);function T(e){let{event:t}=e,s=(0,h.A)(),{homeTeam:r,awayTeam:i,tournament:d,startTimestamp:u,venue:m}=t,v=(0,n.jsx)(g.Rm,{team:r}),C=(0,n.jsx)(g.Rm,{team:i}),w=!!m,S=s.formatDate((0,x.pp)(u,!0),{...x.or.dateWithShortMonth}),k=s.formatTime((0,x.pp)(u,!0)),A=(0,f.Ee)(m),{eventMeta:T}=(0,a.useContext)(c.x),P=(0,y.w)(d);return(0,n.jsxs)(p.n,{children:[(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(l.EY,{py:"sm",textStyle:"body.mediumParagraph",display:"block",children:(0,n.jsx)(o.A,{id:"event.about.new",values:{homeTeamName:v,awayTeamName:C,startDate:S,startTime:k,tournamentName:P,hasVenue:w,...A,tlink:function(){for(var e=arguments.length,t=Array(e),s=0;se.event.id===t.event.id&&typeof e.event.venue==typeof t.event.venue)},26431:(e,t,s)=>{s.d(t,{f:()=>_});var n=s(6029),r=s(33144),l=s(46787),i=s(10174),a=s(76356),o=s(55729),d=s(90248),c=s(46222),u=s(18970),x=s(52466),h=s(64006),p=s(49519),m=s(494),j=s(45860),g=s(56494),y=s(82536),v=s(7646),f=s(36678);let b=e=>{let{id:t}=e,s=(0,m.d4)(e=>e.favorites.events[t]);return s?(0,n.jsx)(h.tj,{event:s,target:"_blank",children:(0,n.jsx)(f.n6,{isShort:!0,isNarrow:!0,isMobile:!0,isShortDate:!0,event:s})}):(0,n.jsx)(a.az,{minH:"4xl"})},C=e=>{let{eventId:t,onClose:s}=e,r=(0,m.wA)(),{data:i,error:o}=(0,j.Ay)(l.bnp.series(t),{onSuccess:async e=>{let t=await Promise.all(e.series.map(e=>l.nk6.fetchEvent(e)));r((0,v.oU)(t.map(e=>e.event)))}});return o?null:i?(0,n.jsx)(n.Fragment,{children:i.series.map(e=>(0,n.jsx)(a.az,{onClick:s,children:(0,n.jsx)(b,{id:e})},e))}):(0,n.jsx)(a.ov,{minH:"[220px]",py:"2xl",children:(0,n.jsx)(g.a,{})})},w=()=>{var e,t,s,r;let{event:c,leftScore:h,rightScore:m,leftTeam:j,rightTeam:g}=(0,o.useContext)(u.y$),[v,f]=(0,o.useState)(!1),b=c.tournament.category.sport.slug===l.QCR.Tennis;return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)(a.az,{cursor:"pointer",children:[(0,n.jsx)(i.EY,{textStyle:"display.micro",color:"neutrals.nLv3",display:"block",textAlign:"center",mb:"xs",children:(0,n.jsx)(d.A,{id:"event.series"})}),(0,n.jsxs)(a.so,{bg:"surface.s2",br:"sm",py:"xs",onClick:()=>f(!0),align:"center",children:[(0,n.jsx)(a.az,{flexGrow:1,children:(0,n.jsxs)(a.ov,{children:[b?(0,n.jsx)(p.w,{size:24,alpha2:null==(e=j.country)?void 0:e.alpha2,name:null==(t=j.country)?void 0:t.name}):(0,n.jsx)(p.p,{size:24,id:j.id}),(0,n.jsxs)(i.EY,{textStyle:"display.micro",display:"block",mx:"xs",children:[h.series," - ",m.series]}),b?(0,n.jsx)(p.w,{size:24,alpha2:null==(s=g.country)?void 0:s.alpha2,name:null==(r=g.country)?void 0:r.name}):(0,n.jsx)(p.p,{size:24,id:g.id})]})}),(0,n.jsx)(a.az,{alignSelf:"stretch",children:(0,n.jsx)(a.cG,{orientation:"vertical",my:"2xs"})}),(0,n.jsx)(x.fJR,{m:"sm",w:"24",h:"24",fill:"primary.default"})]})]}),(0,n.jsx)(y.A,{isOpen:v,setIsOpen:f,header:"event.series",children:(0,n.jsx)(a.az,{minW:{md:"[420px]"},children:(0,n.jsx)(C,{eventId:c.id,onClose:()=>f(!1)})})})]})};var S=s(67087);let k=e=>{let{leftScore:t,rightScore:s,leftTeam:l,rightTeam:o}=(0,S.AR)(e.event);return e.event?(0,n.jsxs)(a.az,{children:[(0,n.jsx)(i.EY,{textStyle:"display.micro",color:"neutrals.nLv3",display:"block",textAlign:"center",mb:"xs",children:e.title}),(0,n.jsx)(h.tj,{event:e.event,children:(0,n.jsxs)(a.so,{bg:"surface.s2",br:"sm",py:"xs",onClick:e.onClick,align:"center",children:[(0,n.jsx)(x.zQC,{icon:"chevron-left",m:"sm",w:"24",h:"24",fill:"primary.default"}),(0,n.jsx)(a.az,{alignSelf:"stretch",children:(0,n.jsx)(a.cG,{orientation:"vertical",my:"2xs"})}),(0,n.jsx)(a.az,{flexGrow:1,children:(0,n.jsxs)(a.ov,{children:[(0,n.jsx)(r.p,{size:24,id:l.id}),(0,n.jsxs)(i.EY,{textStyle:"display.micro",mx:"xs",children:[t.display," - ",s.display]}),(0,n.jsx)(r.p,{size:24,id:o.id})]})})]})})]}):null},A=()=>{let{event:e,leftScore:t,rightScore:s,leftTeam:l,rightTeam:c}=(0,o.useContext)(u.y$),h=(0,S.gm)(e,"aggregatedWinnerCode");return(0,n.jsxs)(a.az,{children:[(0,n.jsx)(i.EY,{textStyle:"display.micro",color:"neutrals.nLv3",display:"block",textAlign:"center",mb:"xs",children:(0,n.jsx)(d.A,{id:"event.aggregated"})}),(0,n.jsxs)(a.ov,{br:"lg",py:"md",children:[(0,n.jsx)(r.p,{size:24,id:l.id}),(0,n.jsxs)(i.EY,{textStyle:"display.micro",mx:"xs",children:[t.aggregated,1===h&&(0,n.jsx)("span",{children:(0,n.jsx)(x.UFI,{fill:"onSurface.nLv1",mt:"-2",width:"7",height:"14"})})," - ",s.aggregated,2===h&&(0,n.jsx)("span",{children:(0,n.jsx)(x.UFI,{fill:"onSurface.nLv1",mt:"-2",width:"7",height:"14"})})]}),(0,n.jsx)(r.p,{size:24,id:c.id})]})]})};function _(){let{event:e,leftScore:t,rightScore:s}=(0,o.useContext)(u.y$),{event:r}=(0,S.mJ)(e.previousLegEventId),i="number"==typeof e.previousLegEventId,x="number"==typeof t.aggregated&&"number"==typeof s.aggregated,h="number"==typeof t.series&&"number"==typeof s.series;if(i||x||h){let e=x?(0,n.jsx)(d.A,{id:"event.firstLeg"}):h?(0,n.jsx)(d.A,{id:"event.previousMatch"}):null;return(0,n.jsx)(c.Zp,{children:(0,n.jsxs)(a.so,{py:"lg",px:"sm",children:[(0,n.jsx)(a.az,{flexGrow:1,flexBasis:"1/2",mr:"xs",children:r&&r.status.code!==l.sum["Not started"]&&(0,n.jsx)(k,{title:e,event:r})}),(0,n.jsx)(a.az,{flexGrow:1,flexBasis:"1/2",ml:"xs",children:x?(0,n.jsx)(A,{}):h?(0,n.jsx)(w,{}):null})]})})}return null}},26567:(e,t,s)=>{s.d(t,{d:()=>k});var n=s(6029),r=s(46787),l=s(10174),i=s(76356),a=s(55729),o=s(947),d=s(494),c=s(45860),u=s(46222),x=s(6813),h=s(79634),p=s(98133),m=s(32523),j=s(22375),g=s(52466),y=s(16503),v=s(95084);let f=e=>{let{count:t,isPositive:s}=e,r=s?g.URl:g.fHS;return(0,n.jsxs)(i.so,{border:"1px solid {colors.neutrals.nLv4}",align:"center",p:"xs",h:"xl",br:"xs",gap:"xs",children:[(0,n.jsx)(r,{width:16,height:16,fill:s?"success.default":"error.default"}),(0,n.jsx)(i.az,{textStyle:"assistive.default",color:"neutrals.nLv3",children:t})]})},b=e=>{let{channel:t}=e;return(0,n.jsx)(i.az,{textStyle:"display.small",color:t.link?"primary.default":"neutrals.nLv1",truncate:!0,children:t.name})},C=e=>{let{channel:t}=e,s=(0,y.e)(()=>(0,v.ke)({action:"impression",location:"event_details",type:"banner_channel_".concat(t.id)}),{delay:500,sendInterval:30*j.Z2});return t.link?(0,n.jsx)(l.Mz,{href:t.link,target:"_blank",rel:"noopener",overflow:"hidden",onClick:()=>{(0,v.ke)({action:"click",location:"event_details",type:"banner_channel_".concat(t.id)})},children:(0,n.jsxs)(i.so,{ref:s,align:"center",gap:"xs",children:[(0,n.jsx)(b,{channel:t}),(0,n.jsx)(i.az,{h:"lg",w:"lg",children:(0,n.jsx)(g.HW5,{h:16,w:16})})]})}):(0,n.jsx)(b,{channel:t})};function w(e){let{channelId:t,type:s,eventId:l}=e,{data:a}=(0,c.Ay)(r.RMf.eventChannelVotes(t,s,l));return a?(0,n.jsxs)(i.so,{px:"lg",py:"sm",align:"center",justify:"space-between",gap:"xs",children:[(0,n.jsxs)(i.so,{grow:1,align:"center",overflow:"hidden",gap:"sm",children:[(0,n.jsx)(i.az,{w:"xl",h:"xl",children:(0,n.jsx)(g.oIR,{w:24,h:24,fill:"onSurface.nLv1"})}),(0,n.jsx)(C,{channel:a.tvChannelVotes.tvChannel})]}),(0,n.jsxs)(i.so,{w:"fit",align:"center",justify:"flex-end",gap:"sm",children:[(0,n.jsx)(f,{count:a.tvChannelVotes.upvote||0,isPositive:!0}),(0,n.jsx)(f,{count:a.tvChannelVotes.downvote||0})]})]}):(0,n.jsx)(m.E,{uniqueKey:"tv-channel-cl",my:"sm",height:24,br:"xs",animate:!0})}let S=(e,t)=>(null==e?void 0:e.alpha2)?(0,n.jsxs)(i.so,{align:"center",gap:"lg",children:[(0,n.jsx)("img",{style:{verticalAlign:"top"},src:(0,r.RHm)(e.alpha2),width:24,height:24,alt:e.name},e.alpha2),!t&&(0,n.jsx)(l.EY,{textTransform:"capitalize",children:e.name.replace("-"," ")})]}):null;function k(e){var t;let{eventId:s,type:m,startTimestamp:j}=e,g=(0,o.A)(),y=(0,d.d4)(e=>{let{locale:t}=e;return t.geoIPAlpha2}),[v,f]=(0,a.useState)(y),{data:b,isLoading:C}=(0,c.Ay)(r.RMf.eventCountryChannels(m,s)),k=(0,a.useMemo)(()=>(null==b?void 0:b.countryChannels)?Object.keys(null==b?void 0:b.countryChannels).map(e=>({alpha2:e,name:g.formatMessage({id:(0,p.K_)(e)})})).sort((e,t)=>e.name>t.name?1:-1):[],[null==b?void 0:b.countryChannels]);if((0,a.useEffect)(()=>{f(y)},[y]),!(null==b?void 0:b.countryChannels)&&!C||void 0===j||!(e=>{let t=Date.now()/1e3;return e-604800t})(j))return null;let A=v&&!!(null==b||null==(t=b.countryChannels[v])?void 0:t.length);return(0,n.jsx)(h.q,{persist:!0,children:(0,n.jsxs)(u.Zp,{children:[(0,n.jsx)(u.Zp.Header,{titleId:"tv_channels",variant:"left-aligned",actionComponent:y&&(0,n.jsx)(l.ms,{label:"Select country in tv channels",items:k,renderItem:S,initialSelectedItem:{alpha2:y,name:g.formatMessage({id:(0,p.K_)(y)})},onSelectedItemChange:e=>{var t;return f(null==(t=e.selectedItem)?void 0:t.alpha2)},alignRight:!0})}),(0,n.jsx)(i.az,{py:"sm",children:A?b.countryChannels[v].map(e=>(0,n.jsx)(w,{type:m,channelId:e,eventId:s},e)):(0,n.jsx)(x.p,{graphic:"no-tv-events",descriptionMessageId:"tv_channels_no_votes"})})]})})}},29156:(e,t,s)=>{s.d(t,{A:()=>eM});var n=s(6029),r=s(46787),l=s(10174),i=s(19621),a=s(76356),o=s(55729),d=s(494),c=s(18970),u=s(74610),x=s(94822),h=s(31591),p=s(52763),m=s(98408),j=s(93053),g=s(26201),y=s(15220),v=s(95404),f=s(32137),b=s(173),C=s(68789),w=s(24534),S=s(49069),k=s(82827),A=s(75837),_=s(94122),T=s(72753),P=s(81813);function E(e){let{event:t,onFeaturedOddsClick:s}=e,l=(0,C.F0)(t),i=t.status.type===r.XUj.InProgress,a=(0,d.d4)(T.LQ);return(0,n.jsx)(A.S,{event:t,countryOddsProvider:l,fallback:{NL:(0,n.jsx)(p.iN,{id:P.Rj.MOBILE_EVENT_BELOW_ODDS}),PT:(0,n.jsx)(S.U,{onClick:s}),DE:(0,n.jsx)(p.iN,{id:P.Rj.MOBILE_EVENT_BELOW_ODDS})},hasCTALoader:!!a&&_.fe.includes(a),children:(0,n.jsx)(k.J7,{eventId:t.id,isLive:i})})}var I=s(37455),L=s(56132),z=s(92099),H=s(60067),M=s(17423),R=s(12157),Y=s(30789),F=s(78383),O=s.n(F),D=s(90248),V=s(45860),Z=s(46222),W=s(52466),N=s(41164),U=s(62071),B=s(755),Q=s(86488);let G=e=>{let{eventId:t,period:s,onSeeAllStatisticsClick:i}=e,{data:a,error:o}=(0,V.Ay)(r.bnp.statistics(t));if(!a||o)return null;let d=a.statistics,{strikeGraph:c}=(0,B.Ip)(d,s);return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(Z.Zp.Header,{titleId:"strikes_by_zones"}),(0,n.jsx)(U.lg,{statsStrikeGraph:c}),i&&(0,n.jsxs)(l.EY,{textStyle:"display.small",color:"primary.default",textAlign:"center",display:"block",pt:"md",pb:"xl",onClick:i,children:[(0,n.jsx)(D.A,{id:"see_all_statistics"})," ",(0,n.jsx)(W.CCT,{fill:"primary.default"})]})]})},$=e=>{let{onSeeAllStatisticsClick:t}=e,{event:s}=(0,o.useContext)(c.y$);return s.status.type!==r.XUj.Finished||(0,N.c5)(s)!==r.QCR.MMA?null:(0,n.jsx)(Q.E,{value:{eventStatusType:s.status.type,isPercent:!0,period:0,gender:s.gender,changeStatsDisplay:O(),setPeriod:O()},children:(0,n.jsx)(Z.Zp,{children:(0,n.jsx)(G,{eventId:s.id,period:0,onSeeAllStatisticsClick:t})})})};var X=s(26567),K=s(66022),q=s(95084),J=s(96662),ee=s(26208),et=s(82203),es=s.n(et),en=s(31830),er=s(22116),el=s(18153),ei=s(83373);let ea=e=>{let{name:t,startDate:s}=e,{event:r}=(0,o.useContext)(c.y$),i=(0,d.d4)(er.$F),a=!!(null==i?void 0:i.id),u=(0,en.A)(),x=(0,d.wA)(),h=(0,ei.oY)(r,u),p=(0,ei.GY)(t,s,h);return(0,n.jsx)(n.Fragment,{children:a?(0,n.jsx)(es(),{href:p,onClick:()=>{(0,q.ke)({action:"click",location:"event_screen",type:"add_to_calendar_button"})},target:"_blank",children:(0,n.jsx)(l.$n,{size:"tertiary",children:(0,n.jsx)(D.A,{id:"add_event_button"})})}):(0,n.jsx)(l.$n,{size:"tertiary",onClick:()=>{a||x((0,el.aS)()),(0,q.ke)({action:"click",location:"event_screen",type:"add_to_calendar_button"})},children:(0,n.jsx)(D.A,{id:"add_event_button"})})})},eo=()=>{let{event:e}=(0,o.useContext)(c.y$);return(0,n.jsx)(Z.Zp,{children:(0,n.jsx)(Z.BU,{children:(0,n.jsxs)(a.so,{w:"100%",justify:"space-between",align:"center",px:"sm",children:[(0,n.jsxs)(a.so,{align:"center",gap:"sm",children:[(0,n.jsx)(W.E8x,{fill:"onSurface.nLv1"}),(0,n.jsx)(l.EY,{children:(0,n.jsx)(D.A,{id:"add_to_calendar"})})]}),(0,n.jsx)(ea,{name:"".concat(e.homeTeam.name," - ").concat(e.awayTeam.name),startDate:e.startTimestamp})]})})})};var ed=s(55878),ec=s(31139),eu=s(73844),ex=s(66301),eh=s(42385),ep=s(62235),em=s(51219),ej=s(57724),eg=s(60962),ey=s(88037),ev=s(86931),ef=s(41586),eb=s(26431),eC=s(88120),ew=s(69408),eS=s(94976),ek=s(30121);let eA=e=>{let{event:t,onFeaturedOddsClick:s}=e,l=t.status.type===r.XUj.InProgress,i=(0,d.d4)(T.LQ),a=(0,C.F0)(t);return(0,n.jsx)(A.S,{countryOddsProvider:a,event:t,fallback:{PT:(0,n.jsx)(S.U,{onClick:s})},hasCTALoader:!!i&&_.fe.includes(i),children:(0,n.jsx)(k.f9,{eventId:t.id,isLive:l})})};var e_=s(89450),eT=s(35676),eP=s(63561),eE=s(71024);let eI=s.n(eE)()(()=>s.e(54115).then(s.bind(s,54115)),{loadableGenerated:{webpack:()=>[54115]},ssr:!1});function eL(e){let{event:t}=e;return(0,n.jsx)(Z.Zp,{children:(0,n.jsx)(a.az,{maxW:"100%",minH:"[322px]",p:"lg",children:(0,n.jsx)(eI,{id:5,name:"EventAC",event:t})})})}function ez(e){let{event:t}=e;return(0,n.jsx)(eL,{event:t})}let eH=e=>{let{event:t}=e,s=(0,eP.D7)(),{service:r}=(0,o.useContext)(p.i4),l=(0,d.d4)(T.LQ),i=!!l&&(0,eP.Q9)(l);return(0,o.useEffect)(()=>{(null==r?void 0:r.provider)===p.wZ.Google&&i&&r.addExcludedSlot([p.Rj.MOBILE_EVENT_TOP])},[r]),(0,n.jsx)(a.az,{ref:i?void 0:s,children:i?(0,n.jsx)(ez,{event:t}):(0,n.jsx)(J.i,{id:p.Rj.MOBILE_EVENT_TOP})})};function eM(e){var t,s,S,k,A,_;let{isInsideEventWidget:T,isSpecialEsports:P,hasStandings:F,hasCricketIncidents:O,hasWinningOdds:D,hasFeaturedOdds:V,hasMediaTab:Z,onFeaturedOddsClick:W,onBestPlayersClick:N,onPrematchStandingsClick:U,onSeeAllStatisticsClick:B,onHighlightShortcutClick:Q}=e,{event:G,leftTeam:et,rightTeam:es}=(0,o.useContext)(c.y$),en=G.tournament.category.sport,er=(0,i.hX)(),el=G.tournament.category.sport.slug,ei=el===r.QCR.MMA,ea=ex.I.includes(el)&&G.status.type===r.XUj.NotStarted,eP=en.slug===r.QCR.Football,eE=en.slug===r.QCR.Tennis,eI=G.status.type===r.XUj.NotStarted,eL=(0,d.d4)(I.fq),ez=(0,w.q1)(),eM=eL?ez:V,eR=D||eM,eY=(0,C.F0)(G);return(0,n.jsx)(l.tU.Panel,{tabKey:L.x.Details,children:(0,n.jsxs)(a.so,{direction:"column",p:"sm",gap:"sm",children:[(0,n.jsx)(ec.i,{eventLocation:"editor_event",nickname:null==(t=G.eventEditor)?void 0:t.name,userId:null==(s=G.eventEditor)?void 0:s.id,hasStarted:G.status.type!==r.XUj.NotStarted}),(0,n.jsx)(ew.R,{}),(0,n.jsx)(eu.N,{event:G}),T?(0,n.jsx)(eA,{event:G,onFeaturedOddsClick:W}):(0,n.jsx)(E,{event:G,onFeaturedOddsClick:W}),(0,n.jsx)(ey.y,{}),(0,n.jsx)(eC.z,{}),!er&&(0,n.jsx)(Y.m2,{eventId:G.id,tournamentId:G.tournament.id,roundId:null==(S=G.roundInfo)?void 0:S.round,type:"single",screen:"mobile",isLive:G.status.type===r.XUj.InProgress,location:Y.D_.DetailsTab,hasMediaTab:Z,onHighlightShortcutClick:Q}),(0,n.jsx)(eT.C,{}),P&&(0,n.jsx)(j.A,{event:G}),!T&&(0,n.jsx)(eH,{event:G}),(0,n.jsx)(u.t,{tag:"PreviousMatchInfo",children:(0,n.jsx)(eb.f,{})}),(0,n.jsx)(ev.f,{event:G}),!eP&&(0,n.jsx)(ed.E,{event:G,onClick:N}),ej.rt.includes(el)?(0,n.jsx)(z.A,{event:G}):(0,ej.Di)(el)?(0,n.jsx)(ep.A,{event:G}):el===r.QCR.Cricket?O&&(0,n.jsx)(y.x,{}):(0,n.jsx)(em.w,{event:G}),eP&&(0,n.jsx)(ed.E,{event:G,onClick:N}),(0,n.jsx)(K.A,{placement:T?p.Mx.DesktopWidget:p.Mx.MobileEventPage,event:G}),(0,n.jsx)(m.A,{}),(0,n.jsx)($,{onSeeAllStatisticsClick:B}),(0,n.jsx)(M.Y,{page:{location:q.XN.EventScreen,entity:G}}),G.status.type!==r.XUj.NotStarted&&(0,n.jsx)(g.b,{}),(0,n.jsx)(ef.s,{eventId:G.id,onClick:F?U:void 0}),el===r.QCR.Tennis&&(0,n.jsx)(eS.J,{}),eE&&eI&&(0,n.jsx)(ek.p,{}),(0,n.jsx)(eh.H,{eventId:G.id,leftTeam:et,rightTeam:es,sportSlug:el}),G.status.type===r.XUj.NotStarted&&(0,n.jsx)(g.b,{}),(0,n.jsx)(R.y,{location:q.XN.EventScreen}),!T&&(0,n.jsx)(J.i,{id:p.Rj.MOBILE_EVENT_MID}),D&&(0,n.jsx)(e_.A,{}),!ei&&(0,n.jsx)(X.d,{eventId:G.id,type:r.IAy.Event,startTimestamp:G.startTimestamp}),(0,n.jsx)(H._,{page:{location:q.XN.EventScreen,entity:G}}),ei&&(0,n.jsx)(f.A,{homeTeam:G.homeTeam,awayTeam:G.awayTeam}),(0,n.jsx)(eg.W,{event:G,showTournamentInfo:P}),ea&&(0,n.jsx)(ex.x,{eventId:G.id,leftTeam:et,rightTeam:es}),(null==(k=G.eventEditor)?void 0:k.name)&&(0,n.jsx)(h.s,{}),(0,n.jsx)(v.pk,{utIds:[null==(A=G.tournament.uniqueTournament)?void 0:A.id]}),(null==(_=G.tournament.uniqueTournament)?void 0:_.showBanner)&&(0,n.jsx)(x.Z,{entity:"unique-tournament",entityId:G.tournament.uniqueTournament.id,location:q.XN.EventScreen,entityBackgroundImageUrl:[r.cWY.image(et.id),r.cWY.image(es.id)]}),!T&&(0,n.jsx)(ee.I,{event:G}),G.status.type===r.XUj.NotStarted&&(0,n.jsx)(eo,{}),eR&&(0,n.jsx)(b.z,{showTailingRegulation:!eM,provider:eY})]})})}},29595:(e,t,s)=>{s.d(t,{A:()=>p});var n=s(6029),r=s(10174),l=s(76356),i=s(55729),a=s(18970),o=s(93819),d=s(61209),c=s(48342),u=s(56132),x=s(18858);function h(e){let{isInsideEventWidget:t}=e,{hasTabs:s}=(0,o.gY)();return s?(0,n.jsx)(l.az,{elevation:t?"none":"2",children:(0,n.jsx)(c.A,{})}):null}function p(e){let{event:t}=e,s=(0,x.Ay)({isInMobileTabs:!0,isSportMenuVisible:!0}),{location:l}=(0,i.useContext)(a.y$),c=l===a.cb.Widget;return(0,n.jsx)(o.Ad,{event:t,children:(0,n.jsxs)(r.tU.Panel,{tabKey:u.x.AiInsights,children:[(0,n.jsxs)(r.PI,{isStickingDisabled:c,top:s,zIndex:"stickySecondary",children:[(0,n.jsx)(d.K,{}),(0,n.jsx)(h,{isInsideEventWidget:c})]}),(0,n.jsx)(d.M,{event:t,variant:c?"widget":"card-layout"})]})})}},30121:(e,t,s)=>{s.d(t,{p:()=>v});var n=s(6029),r=s(46787),l=s(10174),i=s(76356),a=s(55729),o=s(90248),d=s(45860),c=s(46222),u=s(18970),x=s(52466),h=s(94008),p=s(46789),m=s(95084),j=s(67020);let g=[{titleId:"tennis_first_serve",key:"firstServePercentage"},{titleId:"tennis_average_aces_per_match",key:"aces"},{titleId:"break_points_saved",key:"breakPointsSavedPercentage"},{titleId:"break_points_converted",key:"breakPointsSavedConvertedPercentage"}],y=(e,t)=>{switch(t){case"firstServePercentage":if(isNaN(e.firstServePointsTotal)||isNaN(e.firstServeTotal))return[0,"-"];let s=Math.round(10*(e.firstServePointsTotal/e.firstServeTotal*100))/10;return[s,"".concat(s,"%")];case"aces":if(isNaN(e.aces)||isNaN(e.matches))return[0,"-"];let n=Math.round(e.aces/e.matches*10)/10;return[n,"".concat(n)];case"breakPointsSavedPercentage":if(isNaN(e.breakPointsSavedPercentage)||isNaN(e.opponentBreakPointsTotal)||isNaN(e.opponentBreakPointsScored))return[0,"-"];let r=Math.round(10*e.breakPointsSavedPercentage)/10,l=e.opponentBreakPointsTotal-e.opponentBreakPointsScored;return[r,"".concat(l,"/").concat(e.opponentBreakPointsTotal," (").concat(r,"%)")];case"breakPointsSavedConvertedPercentage":if(isNaN(e.breakPointsSavedConvertedPercentage)||isNaN(e.breakPointsScored)||isNaN(e.breakPointsTotal))return[0,"-"];let i=Math.round(10*e.breakPointsSavedConvertedPercentage)/10;return[i,"".concat(e.breakPointsScored,"/").concat(e.breakPointsTotal," (").concat(i,"%)")];default:return null}},v=()=>{var e,t;let{leftTeam:s,rightTeam:v,event:f}=(0,a.useContext)(u.y$),b=f.tournament.category.sport.slug,C=null==(e=f.tournament.uniqueTournament)?void 0:e.id,w=null==(t=f.season)?void 0:t.id,{data:S}=(0,d.Ay)(C&&w?r.cWY.seasonStatistics(s.id,C,w,"overall"):null),{data:k}=(0,d.Ay)(C&&w?r.cWY.seasonStatistics(v.id,C,w,"overall"):null);return S&&k?(0,n.jsxs)(c.Zp,{children:[(0,n.jsx)(c.Zp.Header,{titleId:"tennis_tournament_stats_title"}),(0,n.jsxs)(i.az,{px:"sm",pb:"sm",children:[g.map((e,t)=>{let s=y(S.statistics,e.key),r=y(k.statistics,e.key);if(!s||!r)return null;let[a,d]=s,[c,u]=r;return(0,n.jsxs)(i.so,{minH:"[36px]",py:"sm",px:{mdDown:"sm"},w:"100%",align:"center",justify:"space-between",borderBottom:t!==g.length-1?"onSurface.nLv4":void 0,children:[(0,n.jsx)(l.Ym,{display:"block",textAlign:"start",w:"8xl",position:"relative",h:"100%",children:(0,n.jsx)(i.az,{position:"absolute",left:"0",top:"[50%]",whiteSpace:"nowrap",transform:"translateY(-50%)",children:(0,n.jsx)(p.W,{leftTeamBetter:a>c,children:d})})}),(0,n.jsx)(l.EY,{display:"block",textStyle:"table.medium",maxW:{md:"12xl"},textAlign:"center",lineClamp:3,children:(0,n.jsx)(o.A,{id:e.titleId})}),(0,n.jsx)(l.Ym,{display:"block",textAlign:"end",w:"8xl",position:"relative",h:"100%",children:(0,n.jsx)(i.az,{position:"absolute",right:"0",top:"[50%]",whiteSpace:"nowrap",transform:"translateY(-50%)",children:(0,n.jsx)(p.W,{rightTeamBetter:a(0,m.ke)({action:"click",location:"details_tab",type:"compare_teams_tennis"}),children:[(0,n.jsx)(l.EY,{textStyle:"action.button.primary",textTransform:"uppercase",color:"surface.s1",children:(0,n.jsx)(o.A,{id:"button_compare_more_stats"})}),(0,n.jsx)(i.az,{w:"lg",children:(0,n.jsx)(x.cSg,{fill:"surface.s1",w:16,h:16})})]})})})]})]}):null}},30789:(e,t,s)=>{s.d(t,{m2:()=>z,D_:()=>v.D});var n=s(6029),r=s(46787),l=s(76356),i=s(55729),a=s(45860),o=s(46222),d=s(18970),c=s(67087),u=s(33144),x=s(10174),h=s(90248),p=s(52466);let m=e=>{let{event:t,onHighlightShortcutClick:s}=e;return(0,n.jsx)(o.Zp,{children:(0,n.jsxs)(l.so,{direction:"row",align:"center",justify:"center",gap:"lg",p:"lg",children:[(0,n.jsxs)(l.so,{w:"100%",h:"auto",align:"flex-start",justify:"center",direction:"column",gap:"md",children:[(0,n.jsx)(x.EY,{textStyle:"display.small",children:(0,n.jsx)(h.A,{id:"media_tab_banner_text"})}),(0,n.jsxs)(x.$n,{size:"tertiary",onClick:s,p:"sm",children:[(0,n.jsx)(x.EY,{textStyle:"display.small",color:"surface.s1",children:(0,n.jsx)(h.A,{id:"button_view_media"})}),(0,n.jsx)(l.so,{pl:"xs",children:(0,n.jsx)(p.pTb,{})})]})]}),(0,n.jsxs)(l.so,{w:"100%",direction:"column",justify:"center",align:"flex-end",pr:"lg",children:[(0,n.jsx)(l.so,{position:"absolute",mb:"md",mr:"md",children:(0,n.jsx)(u.p,{id:null==t?void 0:t.homeTeam.id})}),(0,n.jsx)(l.so,{position:"absolute",mt:"md",ml:"md",children:(0,n.jsx)(u.p,{id:null==t?void 0:t.awayTeam.id})})]})]})})};var j=s(22375),g=s(494),y=s(72753),v=s(45500),f=s(95084);let b=(0,s(88354).m)(l.az),C=()=>(0,n.jsxs)(l.so,{justify:"space-between",align:"center",w:"4xl",h:"lg",pl:"sm",pr:"xs",br:"sm",bg:"surface.s1",position:"absolute",top:"sm",right:"sm",children:[(0,n.jsx)(x.EY,{textStyle:"assistive.default",color:"status.live",lineHeight:1,children:(0,n.jsx)(h.A,{id:"live"})}),(0,n.jsx)(b,{w:"md",h:"md",br:"md",border:"1px solid {colors.status.live}",position:"absolute",right:"2xs",animate:{opacity:[0,1,0],scale:[.1,.7,1.2]},transition:{type:"tween",duration:1,repeat:1/0,ease:"easeOut"}}),(0,n.jsx)(l.az,{w:"sm",h:"sm",br:"sm",ml:"xs",bg:"status.live"})]}),w=e=>{var t;let{eventId:s,location:r,messageId:a,isLive:o,thumbnail:m,children:j,showWebviewContent:g,isDetailsTab:y,isSpecialMediaHighlight:v,errorOccurred:b,highlightProvider:w,setShowWebviewContent:S,onMediaShortcutClick:k}=e,{location:A}=(0,i.useContext)(d.y$),{event:_}=(0,c.mJ)(s),T=A===d.cb.Widget,P=b&&y||!b,E=null==_||null==(t=_.tournament.uniqueTournament)?void 0:t.slug.includes("fiba");return(0,n.jsxs)(l.az,{w:"100%",h:"100%",br:T?"sm":"lg",bg:"overlay.darken1",position:"absolute",overflow:"hidden",style:{pointerEvents:v?"fill":"none"},children:[P&&(0,n.jsxs)(l.so,{w:"100%",py:"sm",justify:"space-between",align:"center",px:"lg",bg:"overlay.darken1",position:"absolute",left:"0",bottom:"0",zIndex:"fixed",children:[(0,n.jsx)(x.EY,{textStyle:"display.medium",color:"onColor.primary",children:(0,n.jsx)(h.A,{id:y?"official_highlights_title":a})}),y?(0,n.jsx)(l.so,{style:{pointerEvents:"fill"},children:(0,n.jsxs)(x.$n,{size:"tertiary",onClick:k,negative:!0,children:[(0,n.jsx)(x.EY,{color:"graphics.dark",fontStyle:"assistive.default",children:(0,n.jsx)(h.A,{id:"button_see_all_media"})}),(0,n.jsx)(p.pTb,{})]})}):null]}),o&&(0,n.jsx)(C,{}),(0,n.jsxs)(l.so,{h:"100%",w:"100%",cursor:"pointer",justify:"center",onClick:()=>{null==S||S(e=>!e),w&&(0,f.kA)({id:s,location:r,provider:w})},children:[(0,n.jsx)(p.reY,{w:"48px",h:"48px",fill:"onColor.primary",top:E?"40%":"50%",left:"50%",position:"absolute",display:b?"none":"flex",style:{transform:"translate(-50%, -50%)"}}),E&&(0,n.jsxs)(l.so,{w:"[374px]",justify:"center",align:"center",gap:"[90px]",position:"absolute",top:P?"[23%]":"[28%]",children:[(0,n.jsx)(u.p,{id:null==_?void 0:_.homeTeam.id,size:72}),(0,n.jsx)(u.p,{id:null==_?void 0:_.awayTeam.id,size:72})]}),v&&(0,n.jsx)(l.so,{h:"[210px]",w:"[374px]",cursor:"pointer",bgSize:"cover",bgPosition:"center",style:{backgroundImage:"url(".concat(m,")")}})]}),g&&(0,n.jsx)(l.so,{h:"100%",w:"100%",justify:"center",position:"absolute",top:"0",elevation:"1",children:j})]})},S=e=>{let{eventId:t,location:s,eventMediaHighlight:r,messageId:i,isLive:a,isDetailsTab:o,setShowWebviewContent:d,onMediaShortcutClick:c}=e;return(0,n.jsx)(n.Fragment,{children:(0,n.jsx)(w,{eventId:t,location:s,messageId:i,isLive:a,isDetailsTab:o,onMediaShortcutClick:c,thumbnail:r.thumbnailUrl,isSpecialMediaHighlight:!0,showWebviewContent:!0,setShowWebviewContent:d,children:(0,n.jsx)(l.I4.a,{w:"100%",h:"100%",href:r.url,target:"_blank"})})})};var k=s(24230),A=s(91452);let _=e=>{let{eventId:t,location:s,containerIdParams:r,eventWSCHighlight:i,messageId:a,isLive:o,isDetailsTab:d,errorOccurred:c,onMediaShortcutClick:u}=e,x=(0,A.TW)({...r,provider:"wsc"}),h=(0,k.i)(x,c,"wsc");return(0,n.jsx)(l.I4.a,{href:i.storyUrl,target:"_blank",rel:"noopener noreferrer",ref:h,id:x,w:"100%",h:"100%",children:(0,n.jsx)(w,{eventId:t,location:s,messageId:a,isLive:o,isDetailsTab:d,highlightProvider:"wsc",onMediaShortcutClick:u,thumbnail:i.storyThumbnailUrl,isSpecialMediaHighlight:!!i.storyUrl})})};var T=s(55058);let P=e=>{let{eventId:t,location:s,containerIdParams:r,eventWSCHighlight:i,messageId:a,isLive:o,isDetailsTab:d,errorOccurred:c,reloadTrigger:u,setShowWebviewContent:x,setErrorOccurred:h,onMediaShortcutClick:p}=e,m=(0,A.TW)({...r,provider:"wsc"});(0,T.P)({containerId:m,storyIds:[i.sdkId],reloadTrigger:u,setErrorOccurred:h});let j=(0,k.i)(m,c,"wsc");return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(l.az,{ref:j,id:m,h:"100%"}),(0,n.jsx)(w,{eventId:t,location:s,messageId:a,isLive:o,isDetailsTab:d,onMediaShortcutClick:p,setShowWebviewContent:x,errorOccurred:c})]})},E=e=>{let{url:t,title:s,showPlayer:r,setShowPlayer:i}=e;return(0,n.jsxs)(l.so,{h:"100%",w:"100%",position:"fixed",display:r?void 0:"none",left:"0",top:"0",zIndex:"modal",children:[(0,n.jsx)(l.so,{p:"sm",br:"50%",top:{base:"[70px]",md:"xl"},right:{md:"xl"},left:{mdDown:"lg"},position:"absolute",bgColor:"overlay.darken2",_hover:{bg:"overlay.darken1"},onClick:()=>i(e=>!e),children:(0,n.jsx)(p.zQC,{h:"30",w:"30",icon:"close",style:{cursor:"pointer"},fill:"onColor.primary"})}),(0,n.jsx)("iframe",{src:t,width:"100%",height:"100%",title:s,style:{border:"none"},loading:"lazy"})]})},I=e=>{let{eventId:t,location:s,eventStory:r,containerIdParams:i,messageId:a,isLive:o,isDetailsTab:d,showWebviewContent:c,setShowWebviewContent:u,onMediaShortcutClick:h}=e,p=(0,A.TW)({...i}),m=(0,k.i)(p,!1,"fiba");return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(l.az,{ref:m,id:p,h:"100%"}),(0,n.jsx)(w,{eventId:t,location:s,messageId:a,isLive:o,isDetailsTab:d,onMediaShortcutClick:h,showWebviewContent:c,setShowWebviewContent:u,thumbnail:r.backgroundUrl,isSpecialMediaHighlight:!!r.url,highlightProvider:"fiba",children:r.url&&(0,n.jsx)(x.ZL,{children:(0,n.jsx)(E,{url:r.url,showPlayer:!!c,setShowPlayer:u,title:"video_highlights_title"})})})]})},L=e=>{let{isDetails:t,setReloadTrigger:s}=e,{isMobile:r}=(0,x.$c)();return(0,n.jsxs)(l.so,{w:"100%",h:"100%",bgColor:"neutral.variant",direction:"column",align:"center",pt:t?"[55px]":void 0,justify:t?void 0:"center",rowGap:"sm",cursor:"pointer",onClick:()=>{s(e=>!e)},children:[(0,n.jsx)(p.iQw,{fill:"onColor.primary"}),(0,n.jsxs)(l.so,{direction:"column",children:[(0,n.jsx)(x.EY,{textStyle:"body.mediumParagraph",textAlign:"center",color:"onColor.primary",children:(0,n.jsx)(h.A,{id:"video_not_loading"})}),(0,n.jsx)(x.EY,{textStyle:"body.mediumParagraph",textAlign:"center",color:"onColor.primary",children:(0,n.jsx)(h.A,{id:r?"tap_to_retry":"click_to_retry"})})]})]})};function z(e){var t,s,u;let{eventId:x,isLive:h,location:p,tournamentId:f,roundId:b,screen:C,type:w,hasMediaTab:k,onHighlightShortcutClick:A,getEventHighlightId:T}=e,{event:E}=(0,c.mJ)(x),[z,H]=(0,i.useState)(!1),[M,R]=(0,i.useState)(!1),[Y,F]=(0,i.useState)(!1),{data:O}=(0,a.Ay)(r.bnp.eventHighlights(x)),{videoStories:D}=function(e){let{eventId:t,isInProgress:s}=e,n=(0,g.d4)(y.LQ),{data:l,isLoading:i,error:o}=(0,a.Ay)(n&&r.vCt.eventVideoStories(t,n),{refreshInterval:s?3*j.pY:0});return{videoStories:null==l?void 0:l.videoStories,isError:o,isLoading:i}}({eventId:x,isInProgress:(null==E?void 0:E.status.type)===r.XUj.InProgress}),V={type:w,location:p,tournamentId:f,roundId:b,screen:C,eventId:x},{eventWSCHighlights:Z,isLoading:W}=function(e){let{eventId:t}=e,s=(0,g.d4)(y.LQ),{data:n,isLoading:l,error:i}=(0,a.Ay)(s?r.vCt.eventVideoHighlights(t,s):null);return{eventWSCHighlights:null==n?void 0:n.sportVideoHighlights,isError:i,isLoading:l}}({eventId:x}),{location:N}=(0,i.useContext)(d.y$),U=N===d.cb.Widget,B="mobile"===C&&p===v.D.DetailsTab&&k,Q=null==Z?void 0:Z.find(e=>e.storyUrl),G=null==Z?void 0:Z[0],$=null==O?void 0:O.highlights.filter(e=>e.keyHighlight)[0],X=null==D?void 0:D[0],K=!X&&Q,q=G&&!Q&&!X,J=$&&!G&&!Q&&!W&&!X;if(!Q&&!X&&!G&&!$&&!W)return B?(0,n.jsx)(m,{event:E,onHighlightShortcutClick:A}):null;if(W)return null;null==T||T((null==X?void 0:X.id)||(null==Q?void 0:Q.id)||(null==G?void 0:G.id)||(null==$?void 0:$.id));let ee=null!=(u=null!=(s=null!=(t=null==X?void 0:X.backgroundUrl)?t:null==Q?void 0:Q.storyThumbnailUrl)?s:null==G?void 0:G.storyThumbnailUrl)?u:null==$?void 0:$.thumbnailUrl;return(0,n.jsx)(o.Zp,{children:(0,n.jsxs)(l.so,{justify:"center",h:"[210px]",bg:"surface.s0",br:U?"sm":"lg",position:"relative",overflow:"hidden",children:[(0,n.jsx)(l.az,{w:"100%",h:"100%",br:U?"sm":"lg",position:"absolute",overflow:"hidden",children:Y&&q?(0,n.jsx)(L,{setReloadTrigger:R,isDetails:B}):(0,n.jsx)(l.az,{w:"100%",h:"100%",br:U?"sm":"lg",position:"absolute",overflow:"hidden",bgSize:"[100% 100%]",bgPosition:"center",filter:"auto",blur:"[25px]",scale:"auto",style:{backgroundImage:"url(".concat(ee,")")}})}),X&&(0,n.jsx)(I,{eventId:x,location:p,containerIdParams:V,eventStory:X,messageId:"video_highlights_title",isLive:h,isDetailsTab:B,showWebviewContent:z,setShowWebviewContent:H,onMediaShortcutClick:A,setErrorOccurred:F}),K&&(0,n.jsx)(_,{eventId:x,location:p,containerIdParams:V,eventWSCHighlight:Q,messageId:Q.title,isLive:h,isDetailsTab:B,errorOccurred:Y,onMediaShortcutClick:A,setErrorOccurred:F}),q&&(0,n.jsx)(P,{eventId:x,location:p,containerIdParams:V,messageId:G.title,eventWSCHighlight:G,isLive:h,isDetailsTab:B,errorOccurred:Y,reloadTrigger:M,onMediaShortcutClick:A,setShowWebviewContent:H,setErrorOccurred:F}),J&&(0,n.jsx)(S,{eventId:x,location:p,messageId:$.title,eventMediaHighlight:$,isLive:h,isDetailsTab:B,onMediaShortcutClick:A,setShowWebviewContent:H})]})})}},31139:(e,t,s)=>{s.d(t,{i:()=>x});var n=s(6029),r=s(10174),l=s(76356),i=s(947),a=s(46222),o=s(73498),d=s(52466),c=s(64006),u=s(95084);function x(e){let{numberOfEditors:t,isOrganization:s,eventLocation:x,nickname:h,userId:p,hasStarted:m,isInLeagueHeader:j,onClick:g}=e,y=(0,i.A)(),{isDesktop:v}=(0,r.$c)(),f=h?y.formatMessage({id:m?"edited_by":"event.createdBy"},{nickname:h}):y.formatMessage({id:"edited_by_more_editors"},{number:t}),b=(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(r.EY,{textStyle:"assistive.default",color:"primary.default",children:f}),(0,n.jsx)(d._jO,{ml:"sm",height:16,width:16,fill:"primary.default"})]}),C=(0,n.jsx)(o.u,{onClick:g,label:f,children:(0,n.jsx)(d._jO,{})}),w=j&&v?C:b;return h||t?(0,n.jsx)(a.Zp,{variant:j?"never":"desktop-only",children:(0,n.jsx)(l.so,{justify:"flex-end",align:"center",md:j?void 0:{px:"lg",py:"sm"},children:g?w:s?(0,n.jsx)("a",{href:"https://torneo.sofascore.com/",target:"_blank",rel:"noreferrer",children:w}):(0,n.jsx)(c.N_,{routeKey:"user",params:{userId:p},onClick:()=>(0,u.Zs)(x),children:w})})}):null}},31591:(e,t,s)=>{s.d(t,{s:()=>x});var n=s(6029),r=s(10174),l=s(76356),i=s(90248),a=s(494),o=s(46222),d=s(52466),c=s(22116),u=s(95084);let x=()=>{let e=(0,a.d4)(c.$F);return(null==e?void 0:e.editor)?null:(0,n.jsx)(o.Zp,{children:(0,n.jsxs)(l.az,{p:"md",children:[(0,n.jsxs)(l.so,{align:"center",p:"xs",mb:"xs",children:[(0,n.jsx)(d._jO,{minW:40,minH:40,width:"40px",height:"40px",mr:"md",fill:"primary.default"}),(0,n.jsx)(r.EY,{textStyle:"display.small",children:(0,n.jsx)(i.A,{id:"torneo_promo_text"})})]}),(0,n.jsx)("img",{style:{maxWidth:"280px",width:"100%"},src:"/static/images/editor/editor-mobile.png",alt:"eventTorneoBannerImage"}),(0,n.jsx)("a",{href:"https://torneo.sofascore.com/?utm_source=torneo.sofascore.com&utm_medium=web_button&utm_campaign=join_sofascore_editor_team_desktop&utm_content=web_button_desktop",target:"_blank",rel:"noreferrer",onClick:u.ix,children:(0,n.jsxs)(l.so,{justify:"center",align:"center",gap:"xs",bg:"surface.s2",cursor:"pointer",br:"sm",mt:"lg",p:"md",children:[(0,n.jsx)(r.EY,{textStyle:"display.small",color:"primary.default",_hover:{filter:"auto",brightness:1.3,textDecoration:"underline"},children:(0,n.jsx)(i.A,{id:"check_out_torneo_by_sofascore"})}),(0,n.jsx)(d.HW5,{fill:"primary.default",width:16,height:16})]})})]})})}},32137:(e,t,s)=>{s.d(t,{A:()=>p});var n=s(6029),r=s(22375),l=s(10174),i=s(76356),a=s(90248),o=s(46222),d=s(67087),c=s(30821),u=s(86795);let x=e=>{let{id:t,left:s,right:r,isLength:o}=e;return void 0===s&&void 0===r?null:(0,n.jsxs)(i.so,{justify:"space-between",align:"center",h:"4xl",px:"lg",children:[(0,n.jsx)(i.so,{grow:1,basis:"[0px]",children:(0,n.jsx)(l.EY,{children:s?o?(0,n.jsx)(c.Z,{value:+s,fromUnit:"m"}):s:"-"})}),(0,n.jsx)(i.so,{justify:"center",grow:1,basis:"[0px]",children:(0,n.jsx)(l.EY,{color:"neutrals.nLv3",textAlign:"center",children:(0,n.jsx)(a.A,{id:t})})}),(0,n.jsx)(i.so,{justify:"right",grow:1,basis:"[0px]",children:(0,n.jsx)(l.EY,{textAlign:"end",children:r?o?(0,n.jsx)(c.Z,{value:+r,fromUnit:"m"}):r:"-"})})]})},h=e=>{let{left:t,right:s}=e,r=(0,u.Q6)(t),l=(0,u.Q6)(s);return void 0===t&&void 0===s?null:(0,n.jsx)(x,{id:"reach",left:r,right:l})};function p(e){var t,s,l,i,a,c,u,p,m,j;let{homeTeam:g,awayTeam:y}=e,[v,f]=(0,d.jr)({homeTeam:g,awayTeam:y},"homeTeam","awayTeam"),b=(null==(t=v.playerTeamInfo)?void 0:t.birthDateTimestamp)&&(0,r.KW)(null==(s=v.playerTeamInfo)?void 0:s.birthDateTimestamp),C=(null==(l=f.playerTeamInfo)?void 0:l.birthDateTimestamp)&&(0,r.KW)(null==(i=f.playerTeamInfo)?void 0:i.birthDateTimestamp);return(0,n.jsxs)(o.Zp,{children:[(0,n.jsx)(o.Zp.Header,{titleId:"fighters_bio"}),(0,n.jsx)(x,{id:"basic.fullName",left:v.name,right:f.name}),(0,n.jsx)(x,{id:"age",left:b,right:C}),(0,n.jsx)(x,{id:"home_country",left:null==(a=v.country)?void 0:a.name,right:null==(c=f.country)?void 0:c.name}),(0,n.jsx)(x,{id:"player_height",left:null==(u=v.playerTeamInfo)?void 0:u.height,right:null==(p=f.playerTeamInfo)?void 0:p.height,isLength:!0}),(0,n.jsx)(h,{left:null==(m=v.playerTeamInfo)?void 0:m.reach,right:null==(j=f.playerTeamInfo)?void 0:j.reach})]})}},33140:(e,t,s)=>{s.d(t,{d:()=>o});var n=s(6029),r=s(10174),l=s(76356),i=s(90248),a=s(52466);let o=e=>{let{isOpen:t,onClick:s}=e;return(0,n.jsx)(l.so,{align:"center",justify:"center",p:"lg",children:(0,n.jsx)(l.I4.button,{onClick:s,padding:"0",cursor:"pointer",children:(0,n.jsxs)(l.so,{align:"center",children:[(0,n.jsx)(r.EY,{textStyle:"display.small",color:"primary.default",children:(0,n.jsx)(i.A,{id:t?"show_less":"show_more"})}),t?(0,n.jsx)(a.t8v,{fill:"primary.default",ml:"xs"}):(0,n.jsx)(a.QtO,{fill:"primary.default",ml:"xs"})]})})})}},33396:(e,t,s)=>{s.d(t,{A:()=>h});var n=s(6029),r=s(10174),l=s(71024),i=s.n(l),a=s(55729),o=s(46222),d=s(56132),c=s(30789);let u=i()(()=>Promise.resolve().then(s.bind(s,64093)),{loadableGenerated:{webpack:()=>[64093]},ssr:!1}),x=i()(()=>s.e(14866).then(s.bind(s,14866)),{loadableGenerated:{webpack:()=>[14866]},ssr:!1});function h(e){var t;let{event:s,isLive:l}=e,[i,h]=(0,a.useState)();return(0,n.jsx)(r.tU.Panel,{tabKey:d.x.Media,children:(0,n.jsxs)(o.BU,{children:[(0,n.jsx)(c.m2,{eventId:s.id,tournamentId:s.tournament.id,roundId:null==(t=s.roundInfo)?void 0:t.round,type:"single",screen:"mobile",isLive:l,location:c.D_.MediaTab,getEventHighlightId:h}),l&&(0,n.jsx)(o.Zp,{children:(0,n.jsx)(x,{eventId:s.id,useNativeFullscreen:!0})}),(0,n.jsx)(u,{eventId:s.id,hideTitle:!0,eventHighlightId:i})]})})}},35676:(e,t,s)=>{s.d(t,{C:()=>M});var n=s(6029),r=s(46787),l=s(71024),i=s.n(l),a=s(55729),o=s(18970),d=s(11996),c=s(87397),u=s(87777),x=s(69555),h=s(8431),p=s(71791),m=s(19621),j=s(76356),g=s(46222),y=s(10174);function v(e){let{isLive:t,times:s}=e;return(0,n.jsx)(j.I4.tfoot,{borderTop:"1px solid {neutrals.nLv4}",children:(0,n.jsxs)("tr",{children:[(0,n.jsx)("td",{}),s.map((e,r)=>(0,n.jsx)("td",{children:(0,n.jsx)(y.EY,{textStyle:"table.medium",color:t&&r===s.length-1?"status.live":"neutrals.nLv3",py:"sm",display:"block",textAlign:"center",textTransform:"lowercase",whiteSpace:"nowrap",children:e})},"setTime-".concat(r)))]})})}var f=s(90248),b=s(81484);function C(e){let{periods:t,isTennis:s,isQSport:r}=e;return(0,n.jsx)(j.I4.thead,{borderBottom:"1px solid {neutrals.nLv4}",children:(0,n.jsxs)("tr",{children:[s&&(0,n.jsx)(j.I4.td,{w:"1/3"}),t.map((e,t)=>{let s=e.key.startsWith("period");return(0,n.jsx)("th",{children:(0,n.jsx)(y.EY,{textStyle:"table.medium",color:"neutrals.nLv3",py:"sm",textAlign:"center",display:"block",textTransform:s&&!r?"lowercase":"capitalize",children:s?(0,n.jsx)(f.A,{id:r?"status_quarter_short":"ordinalPeriod.short",values:{n:t+1}}):(0,n.jsx)(b.fP,{id:e.value})})},"thead-".concat(e.value))})]})})}let w=()=>{let{event:e}=(0,a.useContext)(o.y$);return r.HwS.indexOf(e.tournament.category.sport.slug)>-1&&e.status.type!==r.XUj.NotStarted?(0,n.jsx)(g.Zp,{children:(0,n.jsx)("div",{style:{height:109}})}):null};var S=s(93338);function k(e){let{teamName:t,scores:s}=e;return(0,n.jsxs)("tr",{children:[t&&(0,n.jsx)("td",{children:(0,n.jsx)(y.Ym,{h:"2xl",lineHeight:"2xl",textStyle:"table.medium",truncate:!0,children:t})}),s.map((e,s)=>(0,n.jsx)("td",{children:(0,n.jsx)(j.so,{h:"2xl",align:"flex-end",justify:"center",pb:"sm",children:(0,n.jsxs)(y.EY,{textStyle:"table.medium",style:{color:S.S.var(e.color)},children:[e.value,e.super]})})},"".concat(t,"-score").concat(s)))]})}var A=s(63561);let _=(e,t,s,n)=>{let r=n?t:s,l=n?s:t;return e?"colors.status.live":r>l||r===l&&r>0?"colors.neutrals.nLv1":"colors.neutrals.nLv3"},T=()=>{let e,t=(0,m.hX)(),{event:s,leftScore:l,rightScore:i,leftTeam:d,rightTeam:c}=(0,a.useContext)(o.y$),u=s.status.type===r.XUj.InProgress,x=s.tournament.category.sport.slug,{periods:h,time:p}=s,y=(0,A.jY)(x),f=x===r.QCR.Tennis;if((0,A.uk)(6e4,u),t)return(0,n.jsx)(w,{});if(!h)return null;let b=[],S=[],T=[],P=[],E=[],I=[],L=["overtime"],z=0;for(let t in h)if(!["current","point"].includes(t)){var H,M,R,Y,F,O;if(z+=1,t.startsWith("period")&&(null==s?void 0:s.defaultPeriodCount)&&z>(null==s?void 0:s.defaultPeriodCount)&&void 0===l[t]&&void 0===i[t]||"penalties"===t&&void 0===l.penalties)continue;if(t.startsWith("inning")||t.startsWith("extra")){e=t.startsWith("extra")?"inning10":t;let s=t.startsWith("inning")?String(z):"EI",n=l.innings&&"object"==typeof l.innings[e],r=i.innings&&"object"==typeof i.innings[e];if((n||r)&&b.push({key:e,value:s}),n){let t=null==(M=l.innings)||null==(H=M[e])?void 0:H.run;void 0!==t&&S.push(t>=0?"".concat(t):"X")}if(r){let t=null==(Y=i.innings)||null==(R=Y[e])?void 0:R.run;void 0!==t&&T.push(t>=0?"".concat(t):"X")}}else{let e="".concat(t,"TieBreak"),s=l[e],r=i[e],a="number"==typeof s?(0,n.jsx)("sup",{"data-change-key":"leftScore.".concat(e),children:s}):null,o="number"==typeof s?(0,n.jsx)("sup",{"data-change-key":"rightScore.".concat(e),children:r}):null;(-1===L.indexOf(t)||void 0!==l[t]&&void 0!==i[t])&&(b.push({key:t,value:h[t]}),S.push(null!=(F=l[t])?F:""),T.push(null!=(O=i[t])?O:""),E.push(a),I.push(o))}p&&"current"!==t&&void 0!==p[t]?P.push((0,A.jQ)(p[t])):P.push("")}let D=l.inningsBaseball,V=i.inningsBaseball,Z=D&&V;if(Z&&(b.push({key:"blank",value:" "}),S.push(""),T.push(""),(void 0!==D.hits||void 0!==V.hits)&&(b.push({key:"hits",value:"H"}),S.push(void 0!==D.hits?"".concat(D.hits):"-"),T.push(void 0!==V.hits?"".concat(V.hits):"-")),(void 0!==D.errors||void 0!==V.errors)&&(b.push({key:"errors",value:"E"}),S.push(void 0!==D.errors?"".concat(D.errors):"-"),T.push(void 0!==V.errors?"".concat(V.errors):"-"))),0===S.length||0===T.length)return null;let W=f&&c.shortName?d.shortName:void 0,N=W?c.shortName:void 0,U=S.length-1;if(Z)U-=3;else if(u&&s.currentPeriodStartTimestamp){let e=Math.round(Date.now()-1e3*s.currentPeriodStartTimestamp)/1e3,t=(0,A.jQ)(e);P[U]=t}let B=S.map((e,t)=>({value:e,super:E[t],color:t>U?"colors.neutrals.nLv1":_(u&&t===U,parseInt(e,10),parseInt(T[t],10),!0)})),Q=T.map((e,t)=>({value:e,super:I[t],color:t>U?"colors.neutrals.nLv1":_(u&&t===U,parseInt(S[t],10),parseInt(e,10),!1)})),G=B.map((e,t)=>P[t]||"");return(0,n.jsx)(g.Zp,{children:(0,n.jsx)(j.az,{px:"sm",style:{paddingBlock:"3px"},children:(0,n.jsxs)(j.I4.table,{tableLayout:"fixed",w:"100%",borderCollapse:"collapse",borderSpacing:"0",children:[(0,n.jsx)(C,{periods:b,isQSport:y,isTennis:f}),(0,n.jsxs)("tbody",{children:[(0,n.jsx)(k,{teamName:W,scores:B}),(0,n.jsx)(k,{teamName:N,scores:Q})]}),f&&G.some(Boolean)&&(0,n.jsx)(v,{isLive:u,times:G})]})})})};var P=s(36824);let E=i()(()=>Promise.all([s.e(56591),s.e(14632),s.e(83170),s.e(27462),s.e(58309),s.e(12514)]).then(s.bind(s,12514)),{loadableGenerated:{webpack:()=>[12514]},ssr:!1,loading:()=>(0,n.jsx)(c.u,{})}),I=i()(()=>Promise.all([s.e(56591),s.e(14632),s.e(83170),s.e(27462),s.e(58309),s.e(60565)]).then(s.bind(s,60565)),{loadableGenerated:{webpack:()=>[60565]},ssr:!1,loading:()=>(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(u.W,{}),(0,n.jsx)(w,{})]})}),L=i()(()=>Promise.all([s.e(56591),s.e(14632),s.e(83170),s.e(27462),s.e(84741)]).then(s.bind(s,84741)),{loadableGenerated:{webpack:()=>[84741]},ssr:!1,loading:()=>(0,n.jsx)(x.U,{})}),z=i()(()=>Promise.all([s.e(56591),s.e(14632),s.e(83170),s.e(27462),s.e(58309),s.e(60565),s.e(71411)]).then(s.bind(s,71411)),{loadableGenerated:{webpack:()=>[71411]},ssr:!1,loading:()=>(0,n.jsx)(p.n,{withScoreGraph:!0})}),H=i()(()=>Promise.all([s.e(56591),s.e(14632),s.e(19858)]).then(s.bind(s,19858)),{loadableGenerated:{webpack:()=>[19858]},ssr:!1,loading:()=>(0,n.jsx)(h.A,{})}),M=()=>{let{event:e}=(0,a.useContext)(o.y$),t=e.tournament.category.sport,s=e.crowdsourcingDataDisplayEnabled,l=e.status.type===r.XUj.NotStarted,i=[r.XUj.Postponed,r.XUj.Canceled].includes(e.status.type),c=t.slug===r.QCR.Football&&!i,u=r.HwS.includes(t.slug)&&!l,x=(0,A.pX)(t.slug)&&!l,h=t.slug===r.QCR.Tennis&&!l,{hasWinProbabilityGraph:p}=(0,d.A)({hasWinProbabilityGraph:{route:r.bnp.graphDataWinProbability(e.id)}},[e.id]),m=t.slug===r.QCR.AmericanFootball&&!l&&p,j=t.slug===r.QCR.Volleyball&&!l;return s?null:h?(0,n.jsx)(L,{}):c?(0,n.jsx)(E,{}):x&&m?(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(P.n,{event:e}),u&&(0,n.jsx)(T,{}),(0,n.jsx)(z,{})]}):x?(0,n.jsx)(I,{children:u&&(0,n.jsx)(T,{})}):j?(0,n.jsx)(H,{}):(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(P.n,{event:e}),u&&(0,n.jsx)(T,{})]})}},36824:(e,t,s)=>{s.d(t,{n:()=>n.A});var n=s(70465)},41004:(e,t,s)=>{s.d(t,{Bj:()=>l,ZV:()=>r,n_:()=>i,xh:()=>n});var n=function(e){return e.Scoring="scoring",e.Penalties="penalties",e}({});function r(e,t){return e.filter(e=>"penalties"===t?["suspension","period"].includes(e.incidentType):"suspension"!==e.incidentType)}function l(e){if(e&&"misconduct_10min"!==e.key)return e.severity}function i(e){return e.some(e=>"suspension"===e.incidentType)}},41586:(e,t,s)=>{s.d(t,{s:()=>L});var n=s(6029),r=s(40237),l=s(46787),i=s(10174),a=s(76356),o=s(55729),d=s(90248),c=s(45860),u=s(46222),x=s(14868),h=s(18970),p=s(52466),m=s(74610);let j=[l.QCR.MMA],g=(e,t,s)=>j.includes(s)?[e.homeTeamRanking,e.awayTeamRanking]:[t.homeTeam.position,t.awayTeam.position];var y=s(82536),v=s(78841),f=s(75754);let b=()=>{let{event:e}=(0,o.useContext)(h.y$),{data:t}=(0,c.Ay)((e=>e.tournament.uniqueTournament&&e.weightClass&&e.gender?l.AZO.divisionRankings(e.tournament.uniqueTournament.id,e.weightClass,e.gender):null)(e));return t?(0,n.jsxs)(a.az,{maxH:{md:"[600px]"},children:[(0,n.jsx)(i.EY,{textStyle:"display.medium",p:"md",display:"block",children:(0,n.jsx)(f.L,{weightClass:e.weightClass})}),t.rankingRows.map(t=>(0,n.jsx)(v.A,{ranking:t,gender:e.gender},t.id))]}):null},C=()=>{let[e,t]=(0,o.useState)(!1);return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)(i.EY,{textStyle:"display.small",color:"primary.default",textAlign:"center",cursor:"pointer",onClick:()=>t(!0),children:[(0,n.jsx)(d.A,{id:"mma_division_rankings"}),(0,n.jsx)(p.zQC,{icon:"chevron-right",fill:"primary.default",width:16,height:16})]}),(0,n.jsx)(y.A,{isOpen:e,setIsOpen:t,children:(0,n.jsx)(b,{})})]})};var w=s(33144);let S=e=>{let{record:t,placement:s,reversed:r}=e;return(0,n.jsxs)(a.so,{direction:"column",rowGap:"xs",children:[0===s?(0,n.jsxs)(a.so,{columnGap:"xs",children:[(0,n.jsx)(p.Lam,{w:16,h:16}),(0,n.jsx)(i.EY,{textStyle:"assistive.default",children:(0,n.jsx)(d.A,{id:"fighter_ranking_mma"})})]}):(0,n.jsx)(i.EY,{textStyle:"assistive.default",textAlign:r?"end":"start",children:void 0!==s?"#".concat(s):(0,n.jsx)(d.A,{id:"mma_fighter_not_ranked"})}),t&&(0,n.jsxs)(a.so,{gap:"sm",children:[(0,n.jsx)(i.EY,{textStyle:"assistive.default",color:"neutrals.nLv3",children:"W-L-D"}),(0,n.jsx)(a.cG,{orientation:"vertical"}),(0,n.jsxs)(i.EY,{textStyle:"assistive.default",children:[t.wins,"-",t.losses,"-",t.draws]})]})]})};var k=s(73240),A=s(21754);let _=e=>{let{winTypeForm:t}=e,s=function(e){let t=e.slice(-3);for(;t.length<3;)t.push(void 0);return t}(t);return(0,n.jsx)(a.so,{br:"xs",h:"xl",overflow:"hidden",gap:"[1px]",children:s.map((e,t)=>void 0===e?(0,n.jsx)(a.az,{flexGrow:1,flexBasis:"[0]",bg:"neutrals.nLv4"},t):(0,n.jsx)(A.E,{flexGrow:1,flexBasis:"[0]",colorPalette:k.nf[e.outcome],children:(0,n.jsx)(i.EY,{textStyle:"display.small",color:"surface.s1",children:e.winType||e.outcome})},t))})},T=e=>{let{fighter:t,placement:s,form:r,reversed:l}=e,i=null==t?void 0:t.wdlRecord;return(0,n.jsxs)(a.so,{direction:"column",gap:"lg",grow:1,basis:"[0]",children:[(0,n.jsxs)(a.so,{gap:"md",direction:l?"row-reverse":"row",children:[(0,n.jsx)(w.p,{hasFlag:!0,size:32,id:t.id,sport:t.sport,gender:t.gender}),(0,n.jsx)(S,{record:i,placement:s,reversed:l})]}),(0,n.jsx)(_,{winTypeForm:r.winTypeForm||[]})]})},P=e=>{let{form:t}=e,{event:s,leftTeam:r,rightTeam:c}=(0,o.useContext)(h.y$),[u,x]=g(s,t,l.QCR.MMA);return(0,n.jsxs)(a.so,{direction:"column",rowGap:"xl",p:"md",children:[(0,n.jsx)(i.EY,{textStyle:"display.medium",display:"block",textAlign:"center",children:(0,n.jsx)(d.A,{id:"mma_last_3_fights"})}),(0,n.jsxs)(a.so,{gap:{base:"2xl",md:"lg",lg:"2xl"},children:[(0,n.jsx)(T,{fighter:r,placement:u,form:t.homeTeam}),(0,n.jsx)(a.az,{alignSelf:"stretch",children:(0,n.jsx)(a.cG,{orientation:"vertical"})}),(0,n.jsx)(T,{fighter:c,placement:x,form:t.awayTeam,reversed:!0})]}),(0,n.jsx)(C,{})]})},E=e=>{var t,s;let{form:d,team:c,placement:u,showPlacement:x}=e,m=(0,o.useContext)(h.Ws)===l.QCR.MMA;return(0,n.jsxs)(a.so,{align:"center",h:"4xl",children:[x&&(0,n.jsx)(i.EY,{textStyle:"table.medium",w:"[36px]",letterSpacing:"-0.5px",textAlign:"center",children:0===u&&m?(0,n.jsx)(p.Lam,{}):u||"-"}),(0,n.jsx)(a.so,{justify:"center",w:"5xl",children:(0,n.jsx)(i.EY,{textStyle:"table.medium",children:m?(0,n.jsx)(r.p,{hasFlag:!0,size:32,id:c.id,countryName:null==(t=c.country)?void 0:t.name,alpha2:null==(s=c.country)?void 0:s.alpha2,sport:c.sport,gender:c.gender,right:!0}):(0,n.jsx)(r.p,{size:32,id:c.id})})}),(0,n.jsx)(a.az,{flexGrow:1,flexShrink:0,children:(0,n.jsx)(k.o1,{form:null==d?void 0:d.form})}),(0,n.jsxs)(a.so,{minW:"10xl",align:"center",justify:d.avgRating?"space-between":"flex-end",px:"md",children:[d.avgRating&&(0,n.jsx)(r.G,{rating:d.avgRating,format:"sideBox"}),(0,n.jsx)(i.EY,{textStyle:"table.medium",textAlign:"end",minW:"lg",ml:"md",letterSpacing:"-0.5px",children:d.value})]})]})},I=e=>{let{form:t,labels:s}=e,r=(0,o.useContext)(h.Ws),{event:l}=(0,o.useContext)(h.y$),[c,u]=g(l,t,r),x=void 0===u||Number(c)=0||(null!=u?u:-1)>=0;return(0,n.jsxs)(a.az,{children:[(0,n.jsxs)(a.so,{align:"center",pt:"sm",children:[p&&(0,n.jsx)(i.EY,{textStyle:"table.medium",color:"neutrals.nLv3",w:"[36px]",letterSpacing:"-0.5px",textAlign:"center",children:"#"}),(0,n.jsx)(i.EY,{textStyle:"table.medium",color:"neutrals.nLv3",w:"5xl",letterSpacing:"-0.5px",textAlign:"center",children:(0,n.jsx)(d.A,{id:s.teamLabelId})}),(0,n.jsx)(a.az,{flexGrow:1,flexShrink:0,children:(0,n.jsx)(i.EY,{display:"block",textStyle:"table.medium",color:"neutrals.nLv3",maxW:{base:"[156px]",md:"[188px]"},pl:"sm",letterSpacing:"-0.5px",textAlign:"end",children:(0,n.jsx)(d.A,{id:"latest"})})}),(0,n.jsx)(i.EY,{display:"block",textStyle:"table.medium",color:"neutrals.nLv3",w:"12xl",pr:"md",letterSpacing:"-0.5px",textAlign:"end",children:(0,n.jsx)(d.A,{id:s.recordLabelId})})]}),(0,n.jsx)(E,{form:x?t.homeTeam:t.awayTeam,team:x?l.homeTeam:l.awayTeam,placement:x?c:u,showPlacement:p}),(0,n.jsx)(E,{form:x?t.awayTeam:t.homeTeam,team:x?l.awayTeam:l.homeTeam,placement:x?u:c,showPlacement:p})]})},L=function(e){let{eventId:t,onClick:s}=e,{data:r,isLoading:i}=(0,c.Ay)(l.bnp.prematchStandings(t)),d=(0,o.useContext)(h.Ws),p=d!==l.QCR.MMA&&!!s;if(i)return(0,n.jsx)(u.Zp,{children:(0,n.jsx)("div",{style:{height:p?178:170}})});if(!r)return null;let j=d===l.QCR.MMA?{titleId:"pre_match_rankings",teamLabelId:"fighter",recordLabelId:"record"}:{titleId:"form.prematchStandings",teamLabelId:"team",recordLabelId:r.label};return(0,n.jsx)(m.t,{tag:"PrematchStandings",children:(0,n.jsxs)(u.Zp,{children:[!p&&(0,n.jsx)(u.Zp.Header,{titleId:j.titleId}),(0,n.jsx)(a.az,{px:"sm",pt:p?"sm":void 0,children:d===l.QCR.MMA?(0,n.jsx)(P,{form:r}):(0,n.jsx)(I,{form:r,labels:j})}),(0,n.jsx)(u.Zp.Footer,{ctaParams:p?{messageId:j.titleId,onClick:s,icon:x.X.Right}:void 0,defaultHeight:"sm"})]})})}},42051:(e,t,s)=>{s.d(t,{A:()=>y});var n=s(46787),r=s(22375),l=s(55729),i=s(18970),a=s(93819),o=s(22830),d=s(72696),c=s(26542),u=s(24534),x=s(11996),h=s(72388),p=s(3460),m=s(63561);let j=[n.QCR.Rugby],g=30*r.Z2;function y(e){let t=e.status.type===n.XUj.InProgress,s=e.status.type===n.XUj.NotStarted,y=(0,o.j)(e.tournament.category.sport.slug),v=(0,l.useContext)(i.y$),{hasFeaturedOdds:f,hasOddsTab:b,hasWinningOdds:C}=(0,u.Q)(),w=(0,u.PW)(),S=!!b||!!w,{hasScorecardTab:k,hasCricketIncidents:A,hasMedia:_,hasLAWData:T,hasHomeMMACareerStatistics:P,hasAwayMMACareerStatistics:E,hasLineups:I,hasStandings:L,hasWinProbability:z,hasStatistics:H,hasCommentary:M,hasESportsGames:R,hasCuptrees:Y}=(0,x.A)((0,m.Yx)(e,y),[e.id,y],{refreshInterval:(0,h.c)(e)?g:void 0,deduplicationInterval:t||s?g/2:2*r.pY}),{showAiInsights:F,showPostmatchAiInsights:O}=(0,a.tN)(e),{hasPregameTopPlayers:D}=(0,d.M)(e),V=void 0===I?v.initialHasLineups:I,{hasRecommendedPrematchOdds:Z,hasRecommendedPrematchTopVotedOdds:W}=(0,p.A)(e),N=e.tournament.category.sport.slug,U=N===n.QCR.ESports&&(0,m.f2)(e.tournament.category.id),B=!!(c.bU.includes(N)&&e.hasEventPlayerStatistics),Q=(V||D)&&!U,G=N===n.QCR.Basketball&&s&&!V&&D,$=!!e.tournament.uniqueTournament&&!!e.season&&e.tournament.competitionType===n.wGu.Cup&&!!Y;return{hasCricketIncidents:!!A,hasScorecardTab:!!k,hasOversTab:!!A,hasGraphsTab:!!A,hasCommentaryTab:!!M,hasGamesTab:!!R,hasBoxScoreTab:Q&&B,hasLineupsTab:Q&&!B||!!V&&j.includes(N),hasStatisticsTab:!!H||N===n.QCR.MMA&&P&&E||!!z,hasPlayByPlayTab:!!M&&N===n.QCR.IceHockey,hasStandingsTab:!!L&&!!e.season,hasMatchesTab:!0,hasFeaturedOdds:f,hasAdditionalOddsTab:S,hasWinningOdds:!!C,hasFeaturedOddsTab:!S&&(Z||W),hasMediaTab:_||!!T&&t,isSpecialEsports:U,hasPregameTopPlayers:D,hasRecommendedPrematchOdds:Z,hasKnockoutTab:$,hasAiInsights:!!F||!!O,hasBasketballPregameTopPlayers:G}}},42385:(e,t,s)=>{s.d(t,{H:()=>v,Eb:()=>m.H,dU:()=>p});var n=s(6029),r=s(15258),l=s(46787),i=s(10174),a=s(90248),o=s(45860),d=s(46222),c=s(31830),u=s(64006),x=s(88505),h=s(80055);let p=[l.QCR.Tennis,l.QCR.TableTennis,l.QCR.Badminton];var m=s(49634),j=s(54548);let g=e=>{let{managerDuel:t,sportSlug:s,leftManager:l,rightManager:o}=e,x=(0,c.A)();if(!t||!l||!o)return null;let p=Object.values(t).reduce((e,t)=>e+t,0);return(0,n.jsxs)(d.Zp,{children:[(0,n.jsx)(d.Zp.Header,{titleId:"manager_h2h",as:"h4"}),(0,n.jsxs)(i.EY,{display:"block",textStyle:"display.micro",textAlign:"center",py:"sm",children:[(0,n.jsx)(a.A,{id:f(s),values:{n:p}}),":"]}),(0,n.jsx)(m.H,{h2hDuel:t,leftImage:(0,n.jsx)(u.yI,{manager:l,children:(0,n.jsx)(r.d,{size:40,id:l.id,name:l.name})}),leftName:(0,n.jsx)(u.yI,{manager:l,children:(0,n.jsx)(i.Ym,{truncate:!0,children:(0,h.s)(l,x,{short:!0})})}),rightImage:(0,n.jsx)(u.yI,{manager:o,children:(0,n.jsx)(r.d,{size:40,id:o.id,name:o.name})}),rightName:(0,n.jsx)(u.yI,{manager:o,children:(0,n.jsx)(i.Ym,{truncate:!0,textAlign:"end",children:(0,h.s)(o,x,{short:!0})})})})]})},y=e=>{let{teamDuel:t,sportSlug:s,leftTeam:l,rightTeam:o}=e;if(!t)return null;let c=Object.values(t).reduce((e,t)=>e+t,0);return(0,n.jsxs)(d.Zp,{children:[(0,n.jsx)(d.Zp.Header,{titleId:"team_head_to_head",as:"h4"}),(0,n.jsxs)(i.EY,{display:"block",textStyle:"display.micro",textAlign:"center",py:"sm",children:[(0,n.jsx)(a.A,{id:f(s),values:{n:c}}),":"]}),(0,n.jsx)(m.H,{h2hDuel:t,leftImage:(0,n.jsx)(u.gT,{sport:s,team:l,children:(0,n.jsx)(r.p,{size:40,id:l.id,name:l.name})}),leftName:(0,n.jsx)(u.gT,{sport:s,team:l,children:(0,n.jsx)(i.Ym,{display:"block",truncate:!0,pr:"2xs",children:(0,n.jsx)(x.Rm,{team:l,short:!0})})}),rightImage:(0,n.jsx)(u.gT,{sport:s,team:o,children:(0,n.jsx)(r.p,{size:40,id:o.id,name:o.name})}),rightName:(0,n.jsx)(u.gT,{sport:s,team:o,children:(0,n.jsx)(i.Ym,{display:"block",truncate:!0,textAlign:"end",pl:"2xs",children:(0,n.jsx)(x.Rm,{team:o,short:!0})})}),hasDraws:!p.includes(s)})]})},v=e=>{let{eventId:t,leftTeam:s,rightTeam:r,sportSlug:i}=e,{data:a}=(0,o.Ay)(l.bnp.head2Head(t)),{managers:d}=(0,j.K)();return a&&a.managerDuel&&d&&d.leftManager&&d.rightManager||a&&a.teamDuel?(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(y,{teamDuel:a.teamDuel,sportSlug:i,leftTeam:s,rightTeam:r}),(0,n.jsx)(g,{managerDuel:a.managerDuel,sportSlug:i,leftManager:d.leftManager,rightManager:d.rightManager})]}):null};function f(e){switch(e){case l.QCR.AmericanFootball:return"am_football_last_x_games";case l.QCR.Basketball:return"basketball_last_x_games";case l.QCR.Baseball:return"baseball_last_x_games";case l.QCR.IceHockey:return"ice_hockey_last_x_games";case l.QCR.Tennis:return"tennis_last_x_matches";case l.QCR.TableTennis:return"table_tennis_last_x_matches";case l.QCR.Badminton:return"badminton_last_x_matches";case l.QCR.Snooker:return"snooker_last_x_matches";case l.QCR.Darts:return"darts_last_x_matches";case l.QCR.ESports:return"esports_last_x_events";default:return"general_last_x_matches"}}},43601:(e,t,s)=>{s.d(t,{A:()=>c});var n=s(6029),r=s(10174),l=s(76356),i=s(71024),a=s.n(i),o=s(56132);let d=a()(()=>Promise.all([s.e(29695),s.e(89937)]).then(s.bind(s,89937)),{loadableGenerated:{webpack:()=>[89937]},ssr:!1});function c(){return(0,n.jsx)(r.tU.Panel,{tabKey:o.x.PlayByPlay,children:(0,n.jsx)(l.az,{pr:"sm",children:(0,n.jsx)(d,{})})})}},45500:(e,t,s)=>{s.d(t,{D:()=>n});var n=function(e){return e.MainScreen="main_screen",e.EventPage="event_page",e.TournamentPage="league_screen",e.DetailsTab="details",e.MediaTab="media",e}({})},46789:(e,t,s)=>{s.d(t,{W:()=>i});var n=s(62042),r=s(76356);let l=(0,n.Fj)({base:{textStyle:"table.medium",color:"neutrals.nLv1",textAlign:"center",overflow:"visible",whiteSpace:"nowrap",textOverflow:"ellipsis",width:"100%",py:"2xs",px:"md",br:"xl"},variants:{isBoldedGraph:{true:{},false:{}},leftTeamBetter:{true:{}},rightTeamBetter:{true:{}},isLeft:{true:{},false:{}}},compoundVariants:[{isBoldedGraph:!0,isLeft:!0,css:{bg:"secondary.default"}},{isBoldedGraph:!0,isLeft:!1,css:{bg:"primary.default"}},{isBoldedGraph:!1,leftTeamBetter:!0,css:{bg:"secondary.default/30"}},{isBoldedGraph:!1,rightTeamBetter:!0,css:{bg:"primary.default/30"}}]}),i=(0,r.I4)("span",l)},47819:(e,t,s)=>{s.d(t,{A:()=>r});var n=s(45860);let r=(0,s(17259).Ht)(n.Ay,e=>(t,s,n)=>(n.revalidateOnFocus=!1,n.revalidateIfStale=!1,n.revalidateOnReconnect=!1,e(t,s,n)))},48342:(e,t,s)=>{s.d(t,{A:()=>o});var n=s(6029),r=s(10174),l=s(76356),i=s(90248),a=s(93819);function o(){let{activeTab:e,setActiveTab:t,hasTabs:s}=(0,a.gY)();return s?(0,n.jsx)(l.az,{p:"sm",bg:"surface.s1",children:(0,n.jsx)(r.tU,{variant:"tertiary",initialValue:e,onChange:e=>t(e),children:(0,n.jsxs)(r.tU.List,{children:[(0,n.jsx)(r.tU.Tab,{tabKey:a.k9.Postmatch,children:(0,n.jsx)(i.A,{id:"prematch"})}),(0,n.jsx)(r.tU.Tab,{tabKey:a.k9.Halftime,children:(0,n.jsx)(i.A,{id:"halftime"})})]})})}):null}},49069:(e,t,s)=>{s.d(t,{U:()=>j});var n=s(6029),r=s(55729),l=s(90248),i=s(18970),a=s(3460),o=s(10174),d=s(76356),c=s(46222),u=s(52466),x=s(68789),h=s(17763),p=s(74207);let m=e=>{let{children:t,onClick:s,isElevated:l}=e,{event:a}=(0,r.useContext)(i.y$),m=(0,x.F0)(a),j=null==m?void 0:m.provider,g=(0,r.useCallback)(()=>{null==s||s()},[a.id,s]);return j?(0,n.jsx)(c.Zp,{variant:l?void 0:"never",children:(0,n.jsxs)(h.A,{onClick:g,countryOddsProvider:m,children:[(0,n.jsx)(d.az,{position:"absolute",top:"[6px]",children:(0,n.jsx)(p.r,{selectedProvider:m})}),(0,n.jsxs)(d.so,{align:"center",justify:"center",color:"primary.default",gap:"xs",children:[(0,n.jsx)(o.EY,{textStyle:"display.small",color:"primary.default",children:t}),(0,n.jsx)(u.CCT,{fill:"primary.default"})]})]})}):null},j=e=>{let{onClick:t,isElevated:s}=e,{event:o}=(0,r.useContext)(i.y$),{hasRecommendedPrematchOdds:d,hasRecommendedPrematchTopVotedOdds:c}=(0,a.A)(o);return d||c?(0,n.jsx)(m,{onClick:t,isElevated:s,children:(0,n.jsx)(l.A,{id:"featured_odds"})}):null}},49634:(e,t,s)=>{s.d(t,{H:()=>a});var n=s(6029),r=s(10174),l=s(76356),i=s(41397);let a=e=>{let{leftImage:t,leftName:s,rightImage:a,rightName:o,h2hDuel:d,hasDraws:c=!0}=e,[u,x]=(0,i.A)(d,"homeWins","awayWins");return(0,n.jsxs)(l.so,{align:"center",pl:"lg",pr:"lg",pt:"sm",pb:"sm",grow:1,children:[(0,n.jsx)(l.az,{mr:"sm",children:t}),(0,n.jsxs)(l.az,{flexGrow:1,children:[(0,n.jsxs)(l.so,{justify:"space-between",children:[(0,n.jsx)(r.EY,{minW:"xl",textStyle:"display.medium",color:"secondary.default",children:u}),c&&(0,n.jsx)(r.EY,{textAlign:"center",minW:"xl",textStyle:"display.medium",color:"neutral.default",children:d.draws}),(0,n.jsx)(r.EY,{textAlign:"end",minW:"xl",textStyle:"display.medium",color:"primary.default",children:x})]}),(0,n.jsxs)(l.so,{justify:"space-between",children:[(0,n.jsx)(r.EY,{maxW:"[150px]",textStyle:"body.small",truncate:!0,display:"block",children:s}),(0,n.jsx)(r.EY,{maxW:"[150px]",textStyle:"body.small",truncate:!0,display:"block",children:o})]})]}),(0,n.jsx)(l.az,{ml:"sm",children:a})]})}},51219:(e,t,s)=>{s.d(t,{w:()=>S});var n=s(6029),r=s(46787),l=s(55729),i=s(46222),a=s(41164),o=s(10174),d=s(76356),c=s(90248),u=s(18970),x=s(66331),h=s(96861),p=s(31830),m=s(80370);let j=e=>{let{incidents:t,hasBenchIncidents:s}=e,r=(0,p.A)(),{event:i}=(0,l.useContext)(u.y$),{openEventPlayerStatistics:a}=(0,x.d)();return 0===t.length?null:(0,n.jsxs)(d.az,{pb:{mdDown:"sm",md:"md"},children:[!!s&&(0,n.jsxs)(d.so,{py:"md",px:"lg",gap:"lg",w:"100%",children:[(0,n.jsx)(d.so,{grow:1,mt:"xs",borderTop:"1px solid {colors.neutrals.nLv1/15}",borderStart:"1px solid {colors.neutrals.nLv1/15}"}),(0,n.jsx)(o.EY,{textStyle:"display.micro",color:"neutrals.nLv3",textAlign:"center",display:"block",children:(0,n.jsx)(c.A,{id:"onBench"})}),(0,n.jsx)(d.so,{grow:1,mt:"xs",borderTop:"1px solid {colors.neutrals.nLv1/15}",borderEnd:"1px solid {colors.neutrals.nLv1/15}"})]}),t.map((e,t)=>(0,n.jsx)(m.f,{incident:e,locale:r,onPlayerClick:e=>(e=>{!e.disabled&&i.hasEventPlayerStatistics&&a({event:i,player:e},h._l.Incidents)})(e),hasEventPlayerStatistics:i.hasEventPlayerStatistics},"".concat(t,"-").concat(e.incidentType)))]})},g=e=>{let{onFieldIncidents:t,onBenchIncidents:s}=e;return(0,n.jsxs)("div",{children:[(0,n.jsx)(j,{incidents:t}),(0,n.jsx)(j,{incidents:s,hasBenchIncidents:!!s.length})]})};var y=s(67430),v=s(57724),f=s(41004);let b=f.xh.Scoring,C=e=>{let{onFieldIncidents:t,onBenchIncidents:s}=e,[r,i]=(0,l.useState)(b),a=(0,f.ZV)(t,r),u=(0,f.ZV)(s,r),x=(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(j,{incidents:a}),(0,n.jsx)(j,{incidents:u,hasBenchIncidents:u.length>0})]});return(0,n.jsxs)(o.tU,{variant:"tertiary",value:r,onChange:e=>{i(e)},children:[(0,n.jsx)(d.az,{p:"sm",children:(0,n.jsxs)(o.tU.List,{children:[(0,n.jsx)(o.tU.Tab,{tabKey:f.xh.Scoring,children:(0,n.jsx)(c.A,{id:"scoring"})}),(0,n.jsx)(o.tU.Tab,{tabKey:f.xh.Penalties,children:(0,n.jsx)(c.A,{id:"hockey_penalties_tab"})})]})}),(0,n.jsx)(o.tU.Panel,{tabKey:f.xh.Scoring,children:x}),(0,n.jsx)(o.tU.Panel,{tabKey:f.xh.Penalties,children:x})]})},w=e=>{let{onFieldIncidents:t,onBenchIncidents:s}=e;return(0,f.n_)([...t,...s])?(0,n.jsx)(C,{onFieldIncidents:t,onBenchIncidents:s}):(0,n.jsx)(g,{onFieldIncidents:t,onBenchIncidents:s})},S=(0,l.memo)(function(e){let{event:t}=e,{incidents:s}=(0,y.L)();if(!s)return null;let l=(0,a.c5)(t),o=s.filter(e=>e.time!==r.yBP.OnBenchIncidentTime),d=s.filter(e=>e.time===r.yBP.OnBenchIncidentTime);if(!o.length&&!d.length)return null;let c=v.fS.includes(l)?w:g;return(0,n.jsx)(i.Zp,{children:(0,n.jsx)(c,{onFieldIncidents:o,onBenchIncidents:d})})},(e,t)=>e.event.id===t.event.id&&e.event.status.type!==t.event.status.type&&e.event.hasEventPlayerStatistics===t.event.hasEventPlayerStatistics)},53198:(e,t,s)=>{s.d(t,{i:()=>A});var n=s(6029),r=s(46787),l=s(76356),i=s(55729),a=s(18970),o=s(82455),d=s(173);let c=e=>{let{providers:t}=e;return(0,n.jsx)(l.az,{p:"sm",children:null==t?void 0:t.map(e=>(0,n.jsx)(l.az,{h:"xl",w:"100%"},e.provider.id))})};var u=s(46222),x=s(91201),h=s(64046);let p=e=>{let{providers:t,odds:s}=e;return(0,n.jsx)(n.Fragment,{children:Object.keys(s).map(e=>(0,n.jsxs)(u.Zp,{variant:"mobile-only",children:[""!==e&&(0,n.jsx)(l.az,{h:"3xl",pt:"lg",px:"lg",textStyle:"display.micro",truncate:!0,color:"neutrals.nLv1",borderBottom:"1px solid {colors.neutrals.nLv4}",children:e}),(0,n.jsx)(l.az,{p:"sm",w:"100%",overflow:"hidden",children:null==t?void 0:t.map((t,r)=>{let l=s[e][r];return l?(0,n.jsx)(x.E,{countryOddsProvider:t,market:l,marketName:l.marketName,secondary:!0,clickType:h.jF.Additional},t.provider.id):null})})]},e))})};var m=s(10174),j=s(97340);let g=e=>{let{selectionOptions:t,selected:s,setSelected:r}=e,l=Object.keys(t);if(!(null==l?void 0:l.length))return null;let i=l.map(e=>({tabKey:e,tabValue:(0,n.jsx)(j.f,{id:e})}));return(0,n.jsx)(m.tU,{variant:"secondary",initialValue:s.marketGroup,onChange:e=>{t[e]&&r({marketGroup:e,marketPeriod:t[e][0]})},centered:!0,children:(0,n.jsx)(m.tU.List,{children:i.map((e,t)=>(0,n.jsx)(m.tU.Tab,{tabKey:e.tabKey,children:e.tabValue},t))})})};var y=s(81484);let v=e=>{let{selectionOptions:t,selected:s,setSelected:r}=e,l=t[s.marketGroup];if(!(null==l?void 0:l.length))return null;let i=l.map(e=>({tabKey:e,tabValue:(0,n.jsx)(y.fP,{id:e})}));return(0,n.jsx)(m.tU,{variant:"tertiary",initialValue:s.marketPeriod,onChange:e=>r({marketGroup:s.marketGroup,marketPeriod:e}),children:(0,n.jsx)(m.tU.List,{children:i.map((e,t)=>(0,n.jsx)(m.tU.Tab,{tabKey:e.tabKey,children:e.tabValue},t))})})},f=e=>{let{availableMarkets:t,isLoading:s,...r}=e;if(s)return(0,n.jsx)(l.az,{h:"10xl",w:"100%"});let i={};return t.forEach(e=>{i[e.marketGroup]||(i[e.marketGroup]=[]),i[e.marketGroup].includes(e.marketPeriod)||i[e.marketGroup].push(e.marketPeriod)}),(0,n.jsxs)(l.BJ,{gap:"sm",p:"sm",bg:"surface.s1",children:[(0,n.jsx)(g,{selectionOptions:i,...r}),(0,n.jsx)(v,{selectionOptions:i,...r})]})};var b=s(494),C=s(60604),w=s(37455),S=s(54270),k=s(21287);let A=e=>{var t;let{providers:s,placement:u}=e,{event:x}=(0,i.useContext)(a.y$),h=x.status.type===r.XUj.InProgress,{availableMarkets:m,groupedOdds:j,selected:g,setSelected:y,isLoading:v}=((e,t,s)=>{var n;let[r,l]=(0,i.useState)({marketGroup:"1X2",marketPeriod:"Full time"}),a=(0,b.d4)(w.K),{data:o,error:d,isLoading:c}=(0,C.j)(e,t,s),{groupedOdds:u,availableMarkets:x}=((e,t,s)=>{let n={};null==e||e.forEach((e,s)=>{var r;null==(r=e.markets)||r.forEach(e=>{let r=e.marketGroup;n[r]||(n[r]={});let l=e.marketPeriod;n[r][l]||(n[r][l]={});let i=e.choiceGroup||"";n[r][l][i]||(n[r][l][i]=[]);let a=n[r][l][i][s];a&&(a.isLive===t||e.isLive!==t)||(n[r][l][i][s]=e)})});let r=[];return Object.keys(n).forEach(e=>{Object.keys(n[e]).forEach(t=>{Object.keys(n[e][t]).forEach(l=>{let i=n[e][t][l];(!s||i.filter(Boolean).length>=s)&&r.push({choiceGroup:l,marketGroup:e,marketPeriod:t})})})}),{groupedOdds:n,availableMarkets:r}})(null==o?void 0:o.providerOdds,s,a),h=null!=(n=x.find(e=>e.marketGroup===r.marketGroup&&e.marketPeriod===r.marketPeriod))?n:x[0];return(0,i.useEffect)(()=>{h&&l(e=>e.marketPeriod===h.marketPeriod&&e.marketGroup===h.marketGroup?e:h)},[null==h?void 0:h.marketPeriod,null==h?void 0:h.marketGroup]),{groupedOdds:u,availableMarkets:x,selected:r,setSelected:l,error:d,isLoading:c,oddsMayDiffer:null==o?void 0:o.oddsMayDiffer}})(s,x.id,h),A=null==j||null==(t=j[g.marketGroup])?void 0:t[g.marketPeriod];return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(f,{availableMarkets:m,selected:g,setSelected:y,placement:u,isLoading:v}),(0,n.jsxs)(l.so,{direction:"column",gap:"sm",p:"sm",pt:"desktop"===u?"0":"sm",children:[(0,n.jsx)(l.so,{justify:"flex-end",children:(0,n.jsx)(k.V,{})}),A?(0,n.jsx)(p,{providers:s,odds:A,selected:g}):v?(0,n.jsx)(c,{providers:s}):(0,n.jsx)(o.c,{messageId:"odds_currently_unavailable"}),(0,n.jsx)(S._,{}),(0,n.jsx)(d.z,{provider:s[0]})]})]})}},54270:(e,t,s)=>{s.d(t,{_:()=>y});var n=s(6029),r=s(46787),l=s(10174),i=s(76356),a=s(55729),o=s(947),d=s(90248),c=s(494),u=s(45860),x=s(46222),h=s(16503),p=s(95084),m=s(72753);let j=e=>{let{offer:t,noLink:s,children:r}=e;return s?(0,n.jsx)(n.Fragment,{children:r}):(0,n.jsx)("a",{target:"_blank",rel:"nofollow noopener noreferrer",href:t.url,onClick:()=>(0,p.p7)({id:t.id,location:"odds_tab"}),children:r})},g=e=>{let{offer:t}=e,s=(0,a.useRef)(null),c=(0,a.useRef)(null),[u,x]=(0,a.useState)(!1),m=(0,o.A)(),g=(0,h.e)(()=>(0,p.fb)({id:t.id,location:"odds_tab"}),{delay:500});(0,a.useEffect)(()=>{if(!(null==s?void 0:s.current)||u)return;let e=new ResizeObserver(()=>{x(!c.current||0===c.current.clientWidth)});return e.observe(s.current),x(!c.current||0===c.current.clientWidth),()=>{e.disconnect()}},[u]);let y=u?m.formatMessage({id:"odds_turn_off_adblocker"},{providerName:t.signupLink.providerName}):t.cta,v=u?void 0:t.disclaimer;return(0,n.jsxs)(i.so,{ref:g,br:"sm",bg:{base:"surface.s0",md:"surface.s1"},direction:"column",p:"sm",gap:"sm",children:[(0,n.jsx)(i.az,{textStyle:"assistive.default",color:"neutrals.nLv1",children:y}),v&&(0,n.jsx)(i.az,{textStyle:"body.small",color:"neutrals.nLv3",children:v}),(0,n.jsx)(i.cG,{}),(0,n.jsxs)(i.so,{h:"xl",justify:"space-between",children:[(0,n.jsx)(j,{offer:t,noLink:u,children:(0,n.jsx)(l._V,{src:r.Oaq.signupLinkLogo(t.signupLink.id),h:"xl",alt:t.signupLink.providerName})}),(0,n.jsx)(i.az,{ref:s,children:(0,n.jsx)(j,{offer:t,noLink:u,children:(0,n.jsx)(l.$n,{ref:c,size:"tertiary",disabled:u,children:t.button||(0,n.jsx)(d.A,{id:"claim_your_bonus_button"})})})})]})]})},y=()=>{let e=(0,c.d4)(m.LQ),{data:t}=(0,u.Ay)(e?r.Oaq.countryOffers(e):null);return(null==t?void 0:t.signupLinks.length)?(0,n.jsx)(x.Zp,{children:(0,n.jsxs)(i.az,{p:"sm",children:[(0,n.jsx)(i.so,{h:"2xl",px:"sm",align:"center",children:(0,n.jsx)(l.EY,{textStyle:"display.medium",children:(0,n.jsx)(d.A,{id:"bet_boost_special_offer"})})}),(0,n.jsx)(i.so,{direction:"column",gap:"sm",children:null==t?void 0:t.signupLinks.map(e=>(0,n.jsx)(g,{offer:e},e.id))})]})}):null}},54369:(e,t,s)=>{s.d(t,{A:()=>x});var n=s(6029),r=s(10174),l=s(71024),i=s.n(l),a=s(46222),o=s(53255),d=s(32019),c=s(56132);let u=i()(()=>Promise.all([s.e(56591),s.e(14632),s.e(35597),s.e(32935),s.e(66044)]).then(s.bind(s,66044)),{loadableGenerated:{webpack:()=>[66044]},ssr:!1});function x(e){let{event:t,leftTeamId:s,rightTeamId:l}=e,i=(0,d.Z)(t,"standings");return(0,n.jsxs)(r.tU.Panel,{tabKey:c.x.Standings,children:[i&&(0,n.jsx)(o.O,{entityId:t.id,branding:i,bannerText:i.standingsText,location:"event_standings"}),!!t.season&&(0,n.jsx)(a.BU,{children:(0,n.jsx)(u,{tournament:t.tournament,seasonId:t.season.id,homeTeamId:s,awayTeamId:l,isNarrowLayout:!0})})]})}},55058:(e,t,s)=>{s.d(t,{P:()=>d});var n=s(55729),r=s(45500),l=s(91452);let i=null,a=!1;async function o(){if(!i)try{i=(await s.e(55831).then(s.t.bind(s,61985,23))).default,await i.Initialize("3de57cc21a364c9c918d8899d0aee6bf",{shouldModifyUrlWithStoryId:!1}),i.addDelegateListener(i.Delegations.onEventTriggered,l.hT)}catch(e){return console.error("WSC SDK initialization error:",e),!1}return!0}function d(e){let{containerId:t,storyIds:s,location:d,reloadTrigger:c,setErrorOccurred:u}=e,[x,h]=(0,n.useState)(a);(0,n.useEffect)(()=>{o();let e=()=>{a=!0,h(!0)};return document.addEventListener("onBlazeSDKConnect",e),()=>{document.removeEventListener("onBlazeSDKConnect",e)}},[c]),(0,n.useEffect)(()=>{if(!(null==s?void 0:s.length)||!i||!x||!t||!(0,l.R5)(t))return;i.addDelegateListener(i.Delegations.onErrorThrown,()=>{u(!0)});let{eventId:e}=(0,l.HK)(t,"wsc");try{let n=i.Theme(d===r.D.TournamentPage?"row-rectangle":"row-rectangle-horizontal","story");n.layoutStyle.labelStyle.isVisible=!e,n.layoutStyle.statusLiveStyle.isVisible=!1,n.layoutStyle.statusUnreadStyle.isVisible=!1,n.layoutStyle.statusLiveUnreadStyle.isVisible=!1,n.layoutStyle.borderRadius=e?"0":"12px",n.layoutStyle.horizontalItemsSpacing=4,i.WidgetRowView(t,{dataSource:i.DataSourceBuilder().ids({ids:s}),theme:n,maxDisplayItemsCount:e?1:void 0}),u(!1)}catch(e){u(!0),console.error(e)}},[s.length,t,x])}},55878:(e,t,s)=>{s.d(t,{E:()=>es});var n=s(6029),r=s(46787),l=s(19621),i=s(76356),a=s(45860),o=s(46222),d=s(67087);let c={[r.QCR.Basketball]:["points","rebounds","assists","steals","blocks"],[r.QCR.Volleyball]:["pointsTotal","attackPoints","aces","blockPoints"]},u={[r.QCR.Basketball]:{points:"points_short",rebounds:"basketball_lineups_rebounds",assists:"basketball_lineups_assists",steals:"basketball_lineups_steals",blocks:"basketball_lineups_blocks"},[r.QCR.Volleyball]:{pointsTotal:"volleyball_points_short",attackPoints:"volleyball_attack_short",aces:"volleyball_aces_short",blockPoints:"volleyball_blocks_short"}};var x=s(99397),h=s(10174),p=s(62042),m=s(90248),j=s(52466),g=s(95700),y=s(94156);let v=e=>{let{messageKey:t,isClickable:s}=e;return(0,n.jsxs)(h.EY,{w:"100%",color:"primary.default",textStyle:"assistive.default",textTransform:"capitalize",textAlign:"center",px:"xs",display:"block",truncate:!0,children:[(0,n.jsx)(i.I4.span,{hideBelow:"md",children:(0,n.jsx)(m.A,{id:t})}),(0,n.jsx)(i.I4.span,{hideFrom:"md",children:(0,n.jsx)(m.A,{id:"controls.more"})}),s&&(0,n.jsx)(j.zQC,{icon:"chevron-right",ml:"2px",width:16,height:16,fill:"primary.default"})]})},f=e=>{let{value:t,label:s,isReversed:r}=e;return"rating"===s?(0,n.jsx)(x.G,{rating:t}):(0,n.jsxs)(i.so,{align:"center",direction:r?"row-reverse":"row",children:[(0,n.jsx)(h.EY,{textStyle:"table.large",mr:r?void 0:"xs",children:t}),(0,n.jsx)(h.EY,{textStyle:"assistive.default",textTransform:"uppercase",mr:r?"xs":void 0,children:s})]})},b=e=>{let{name:t,isReversed:s}=e;return(0,n.jsx)(h.EY,{w:"1/2",textStyle:"assistive.default",color:"neutrals.nLv3",display:"block",textAlign:s?"end":"start",truncate:!0,children:t})};function C(e){let{event:t,onClick:s,messageKey:l="player_stats"}=e,{data:d,error:c}=(0,a.Ay)(r.bnp.bestPlayers(t.id)),u=(0,g.A)(),h=u?null==d?void 0:d.bestAwayTeamPlayer:null==d?void 0:d.bestHomeTeamPlayer,m=u?null==d?void 0:d.bestHomeTeamPlayer:null==d?void 0:d.bestAwayTeamPlayer;return c?null:(0,n.jsx)(o.Zp,{children:(0,n.jsx)(i.az,{minH:"5xl",p:"sm",children:h&&m&&(0,n.jsxs)(i.so,{h:"100%",w:"100%",justify:"space-between",onClick:s,cursor:s?"pointer":"default",children:[(0,n.jsx)(x.t,{id:h.player.id,name:h.player.name,size:40,className:(0,p.AH)({border:"1px solid {colors.neutrals.nLv4}"})}),(0,n.jsx)(i.az,{h:"100%",w:"3/4",flexGrow:1,px:"sm",children:(0,n.jsxs)(i.so,{w:"100%",h:"100%",direction:"column",justify:"space-between",children:[(0,n.jsxs)(i.so,{w:"100%",justify:"space-between",children:[(0,n.jsx)(f,{value:h.value,label:h.label}),(0,n.jsx)(v,{messageKey:l,isClickable:!!s}),(0,n.jsx)(f,{value:m.value,label:m.label,isReversed:!0})]}),(0,n.jsxs)(i.so,{w:"100%",justify:"space-between",children:[(0,n.jsx)(b,{name:(0,n.jsx)(y.c,{entity:h.player})}),(0,n.jsx)(b,{name:(0,n.jsx)(y.c,{entity:m.player}),isReversed:!0})]})]})}),(0,n.jsx)(x.t,{id:m.player.id,name:m.player.name,size:40,className:(0,p.AH)({border:"1px solid {colors.neutrals.nLv4}"})})]})})})}var w=s(66331),S=s(96861);function k(e){let{event:t,player:s,rating:r}=e,{openEventPlayerStatistics:l}=(0,w.d)();return(0,n.jsxs)(i.ov,{flexDirection:"column",gap:"lg",pt:"sm",position:"relative",w:"[84px]",children:[(0,n.jsxs)(i.so,{justify:"center",position:"relative",cursor:"pointer",onClick:()=>l({event:t,player:s},S._l.TopPlayers),children:[(0,n.jsx)(x.t,{id:s.id,name:s.name,size:48}),r&&(0,n.jsx)(i.az,{position:"absolute",left:"xl",top:"3xl",transform:"translateX(-50%)",children:(0,n.jsx)(x.G,{rating:r,size:"sm"})})]}),(0,n.jsx)(h.EY,{textStyle:"display.micro",textAlign:"center",truncate:!0,children:(0,n.jsx)(y.c,{entity:s,short:!0})})]})}function A(e){let{translationId:t,leftValue:s,rightValue:r}=e;return t?(0,n.jsxs)(i.so,{justify:"space-between",children:[(0,n.jsx)(h.EY,{display:"block",textStyle:"display.small",w:"lg",children:s}),(0,n.jsx)(h.EY,{textStyle:"assistive.default",color:"neutrals.nLv3",children:(0,n.jsx)(m.A,{id:t})}),(0,n.jsx)(h.EY,{display:"block",textStyle:"display.small",w:"lg",textAlign:"end",children:r})]}):null}function _(e){var t,s,x,h;let{event:p,onClick:m}=e,j=(0,l.hX)(),g=p.tournament.category.sport.slug,y=p.status.type===r.XUj.Finished,{data:v,error:f,isLoading:b}=(0,a.Ay)(y?r.bnp.bestPlayers(p.id):null),w=(0,d.g3)(),S=w?null==v?void 0:v.bestAwayTeamPlayer:null==v?void 0:v.bestHomeTeamPlayer,_=w?null==v?void 0:v.bestHomeTeamPlayer:null==v?void 0:v.bestAwayTeamPlayer;if(!S||!_||f)return null;if(j||b)return(0,n.jsx)(o.Zp,{children:(0,n.jsx)(i.az,{h:"9xl",p:"lg",boxSizing:"content-box"})});let T=S.additionalStatistics,P=_.additionalStatistics;return T&&P&&(null==(t=c[g])?void 0:t.every(e=>void 0!==T[e]&&void 0!==P[e]))?(0,n.jsx)(o.Zp,{children:(0,n.jsxs)(i.so,{p:"lg",justify:"space-between",_before:{content:'""',display:"block",position:"absolute",w:"8xl",h:"xl",top:"lg",left:"lg",borderTop:"1px solid {colors.neutrals.nLv4}",borderStart:"1px solid {colors.neutrals.nLv4}"},_after:{content:'""',display:"block",position:"absolute",w:"8xl",h:"xl",top:"lg",right:"lg",borderTop:"1px solid {colors.neutrals.nLv4}",borderEnd:"1px solid {colors.neutrals.nLv4}"},children:[(0,n.jsx)(k,{event:p,player:S.player,rating:null==(s=S.additionalStatistics)?void 0:s.rating}),(0,n.jsx)(i.so,{direction:"column",gap:"2xs",w:"10xl",children:!!c[g]&&(null==(x=c[g])?void 0:x.map(e=>{var t;return(0,n.jsx)(A,{translationId:null==(t=u[g])?void 0:t[e],leftValue:T[e],rightValue:P[e]},e)}))}),(0,n.jsx)(k,{event:p,player:_.player,rating:null==(h=_.additionalStatistics)?void 0:h.rating})]})}):(0,n.jsx)(C,{event:p,onClick:m})}var T=s(55729),P=s(14868),E=s(64006),I=s(63561);let L=e=>{let{value:t,label:s,isReversed:r}=e;return"rating"===s?(0,n.jsx)(x.G,{rating:t}):(0,n.jsxs)(i.so,{align:"center",direction:r?"row-reverse":"row",children:[(0,n.jsx)(h.EY,{textStyle:"table.large",mr:r?void 0:"xs",children:t}),(0,n.jsx)(h.EY,{textStyle:"assistive.default",textTransform:"uppercase",mr:r?"xs":void 0,children:s})]})},z=e=>{let{event:t,bestPlayers:s,isRight:r}=e;return(0,n.jsx)(i.az,{w:"1/2",children:s.length?s.map(e=>(0,n.jsx)(M,{event:t,bestPlayer:e,isRight:!!r},e.player.id)):Array.from({length:3}).map((e,s)=>(0,n.jsx)(H,{event:t,isRight:!!r},s))})},H=e=>{let{event:t,bestPlayer:s,isRight:r}=e,{openEventPlayerStatistics:l}=(0,w.d)();return(0,n.jsx)(E.uc,{onClick:s?e=>{e.preventDefault(),l({event:t,player:s.player},S._l.HighestRatedPlayers)}:void 0,player:null==s?void 0:s.player,sportSlug:t.tournament.category.sport.slug,children:(0,n.jsx)(i.so,{_hover:{bg:"primary.highlight"},align:"center",pl:r?"sm":"lg",pr:r?"lg":"sm",py:"xs",gap:"sm",direction:r?"row-reverse":"row",children:s&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(L,{value:s.value,label:s.label}),(0,n.jsx)(x.t,{id:s.player.id,name:s.player.name,size:32}),(0,n.jsx)(h.EY,{textStyle:"body.small",flexGrow:1,lineClamp:2,children:(0,n.jsx)(y.c,{entity:s.player})})]})})})},M=(0,T.memo)(H,(e,t)=>{var s,n,r,l;return(null==(s=e.bestPlayer)?void 0:s.player.id)===(null==(n=t.bestPlayer)?void 0:n.player.id)&&(null==(r=e.bestPlayer)?void 0:r.value)===(null==(l=t.bestPlayer)?void 0:l.value)});function R(e){let{event:t,onCtaClick:s,hideCta:l}=e,{data:d,isLoading:c}=(0,a.Ay)(r.bnp.bestPlayersSummary(t.id),(0,I.rf)(t)),u=(null==d?void 0:d.bestHomeTeamPlayers)||[],x=(null==d?void 0:d.bestAwayTeamPlayers)||[];return(u.length&&x.length||c)&&(!c||t.status.type!==r.XUj.NotStarted)?(0,n.jsxs)(o.Zp,{children:[(0,n.jsx)(o.Zp.Header,{titleId:"highest_rated_players"}),(0,n.jsxs)(i.so,{children:[(0,n.jsx)(z,{event:t,bestPlayers:u}),(0,n.jsx)(z,{event:t,bestPlayers:x,isRight:!0})]}),(0,n.jsx)(o.Zp.Footer,{ctaParams:l?void 0:{messageId:"see_all",onClick:s,icon:P.X.Right}})]}):null}var Y=s(77708);let F=["GLS","AST","+/-","PIM","TOI"],O=["SV%","SAV","SHT","SH"],D=e=>{let{position:t}=e,s="G"===t?O:F;return(0,n.jsxs)(i.so,{px:"lg",pt:"md",children:[(0,n.jsx)(i.az,{w:"[148px]"}),(0,n.jsx)(i.so,{justify:"flex-end",grow:1,children:s.map((e,t)=>(0,n.jsxs)(T.Fragment,{children:[(0,n.jsx)(i.so,{justify:"center",flexGrow:0,flexShrink:0,flexBasis:"2xl",children:(0,n.jsx)(h.EY,{textStyle:"tab.secondary",color:"neutrals.nLv3",children:e})}),t{let{prevPlayer:t,currentPlayer:s}=e;if(void 0===t)return(0,n.jsx)(D,{position:s.position});let r=V.includes(t.position);return r!==V.includes(s.position)?(0,n.jsx)(D,{position:s.position}):null};var W=s(18970);let N=e=>{let{data:t}=e;return(0,n.jsxs)(i.so,{direction:"column",justify:"center",gap:"xs",children:[(0,n.jsxs)(i.so,{gap:"xs",children:[(0,n.jsx)(j.aGI,{w:16,h:16,fill:"sofaSingles.value"}),t.gameStar?(0,n.jsx)(h.EY,{textStyle:"assistive.default",color:"neutrals.nLv3",textTransform:"lowercase",children:(0,n.jsx)(m.A,{id:"ordinalPeriod.short",values:{n:t.gameStar}})}):null]}),(0,n.jsx)(h.EY,{textStyle:"body.medium",w:{base:"7xl",sm:"10xl",md:"7xl",lg:"7xl"},truncate:!0,children:t.player.shortName})]})};var U=s(94446),B=s(93338);let Q=e=>{let{data:t}=e;return(0,n.jsxs)(i.az,{position:"relative",w:"3xl",h:"3xl",children:[(0,n.jsx)(U.t,{id:t.player.id,name:t.player.name,size:40}),(0,n.jsx)(i.az,{position:"absolute",bottom:"[0px]",left:"[0px]",w:"lg",h:"lg",children:(0,n.jsx)(U.p,{id:t.teamId,size:16})}),(0,n.jsx)(i.az,{position:"absolute",bottom:"[0px]",right:"[0px]",br:"lg",style:{backgroundColor:B.S.var("colors.".concat((e=>"G"===e?"playerPosition.goalkeeper":"D"===e?"playerPosition.defender":"playerPosition.forward")(t.position)))},w:"lg",h:"lg",textAlign:"center",children:(0,n.jsx)(h.EY,{textStyle:"display.micro",color:"onColor.primary",children:t.position})})]})};var G=s(22375);let $=e=>{let{stats:t}=e;return(0,n.jsx)(i.so,{grow:1,justify:"flex-end",h:"lg",children:[t.goals,t.assists,t.plusMinus,t.penaltyMinutes,(0,G.OV)(t.secondsPlayed)].map((e,t)=>(0,n.jsx)(i.ov,{flexGrow:0,flexShrink:0,flexBasis:"2xl",position:"relative",mr:"2xs",children:(0,n.jsx)(h.EY,{position:"absolute",children:e})},t))})},X=e=>{let{stats:t}=e;return(0,n.jsx)(i.so,{grow:1,justify:"flex-end",h:"lg",children:[t.savePercentage,t.saves,t.shotsAgainst,t.shortHandedSaves].map((e,t)=>(0,n.jsx)(i.ov,{flexGrow:0,flexShrink:0,flexBasis:"2xl",position:"relative",mr:"2xs",children:(0,n.jsx)(h.EY,{position:"absolute",children:e})},t))})},K=e=>{let{position:t,stats:s}=e;return s?"G"===t?(0,n.jsx)(X,{stats:s}):(0,n.jsx)($,{stats:s}):null},q=e=>{let{data:t,headerColumns:s}=e,{event:r}=(0,T.useContext)(W.y$),{openEventPlayerStatistics:l}=(0,w.d)();return(0,n.jsxs)(n.Fragment,{children:[s,(0,n.jsxs)(i.so,{h:"4xl",py:"xs",px:"lg",align:"flex-end",cursor:"pointer",onClick:()=>{l({event:r,player:t.player},S._l.StarPlayer)},children:[(0,n.jsxs)(i.so,{gap:"sm",align:"flex-end",children:[(0,n.jsx)(Q,{data:t}),(0,n.jsx)(N,{data:t})]}),(0,n.jsx)(K,{position:t.position,stats:t.statistics})]})]})},J=e=>{let{stars:t}=e;return(0,n.jsx)(n.Fragment,{children:t.map((e,s)=>(0,n.jsx)(q,{data:e,headerColumns:(0,n.jsx)(Z,{prevPlayer:t[s-1],currentPlayer:e})},e.player.id))})},ee=e=>{let{stars:t,onViewBoxScoreClick:s}=e;return(0,n.jsxs)(o.Zp,{children:[(0,n.jsx)(o.Zp.Header,{titleId:"game_stars_title"}),(0,n.jsxs)(i.so,{direction:"column",pb:s?void 0:"md",children:[(0,n.jsx)(J,{stars:t}),s&&(0,n.jsxs)(h.EY,{textStyle:"display.small",color:"primary.default",textAlign:"center",cursor:"pointer",py:"md",onClick:s,children:[(0,n.jsx)(m.A,{id:"game_stars_box_score_button"}),(0,n.jsx)(j.CCT,{fill:"currentColor",ml:"xs"})]})]})]})},et=e=>{let{event:t,onClick:s,...a}=e,{lineups:d,isLoading:c}=(0,Y.Ir)();if(((0,l.hX)()||c)&&t.status.type===r.XUj.Finished)return(0,n.jsx)(o.Zp,{children:(0,n.jsx)(i.az,{h:"[224px]"})});if(!d)return null;let u=((e,t)=>{let{left:s,right:n}=t,{homeTeam:r,awayTeam:l}=e;return[...s.players.map(e=>({...e,teamId:r.id})),...n.players.map(e=>({...e,teamId:l.id}))].filter(e=>e.gameStar).sort((e,t)=>e.gameStar&&t.gameStar?e.gameStar-t.gameStar:-1)})(t,d);return 0===u.length?(0,n.jsx)(C,{event:t,onClick:s,...a}):(0,n.jsx)(ee,{stars:u,onViewBoxScoreClick:s})},es=e=>{let{event:t,onClick:s,hideCta:l}=e,{slug:i}=t.tournament.category.sport;if(t.hasEventPlayerStatistics)switch(i){case r.QCR.Football:return(0,n.jsx)(R,{event:t,onCtaClick:s,hideCta:l});case r.QCR.Basketball:case r.QCR.Volleyball:return(0,n.jsx)(_,{event:t,onClick:s});case r.QCR.IceHockey:return(0,n.jsx)(et,{event:t,onClick:s,hideCta:l});default:return(0,n.jsx)(C,{event:t,onClick:s})}return null}},59777:(e,t,s)=>{s.d(t,{A:()=>l});var n=s(6029),r=s(94008);let l=e=>{let{venue:t,children:s,ref:l,...i}=e;return t&&!t.hidden&&t.country.slug?(0,n.jsx)(r.A,{...i,routeKey:"venue",params:{country:t.country.slug,slug:t.slug,id:t.id},ref:l,children:s}):(0,n.jsx)(n.Fragment,{children:s})}},60962:(e,t,s)=>{s.d(t,{W:()=>Z});var n=s(6029),r=s(98423),l=s(46787),i=s(22375),a=s(10174),o=s(19621),d=s(76356),c=s(93338),u=s(55729),x=s(90248),h=s(90510),p=s(41735),m=s(45860),j=s(46222),g=s(14868),y=s(52466),v=s(60475),f=s(64987);let b=[1,2,3,5,7],C=e=>{let{cupMatchesInRound:t}=e;return t&&b.indexOf(t)>-1?(0,n.jsx)(a.EY,{children:(()=>{switch(t){case 1:return(0,n.jsx)(x.A,{id:"single_leg"});case 2:return(0,n.jsx)(x.A,{id:"twoLegs"});case 3:case 5:case 7:return(0,n.jsx)(x.A,{id:"esports.bestOf",values:{numberOfGames:t}});default:return null}})()}):null};var w=s(67087),S=s(64006),k=s(42140),A=s(59777),_=s(94156),T=s(75754),P=s(76603),E=s(53960),I=s(9081),L=s(99306),z=s(88505),H=s(83359),M=s(76155),R=s(82346);let Y=["international","europe","africa","asia","oceania"],F={[l.QWe.HardcourtIndoor]:"colors.tennis.terrain.hardcourtIndoor",[l.QWe.HardcourtOutdoor]:"colors.tennis.terrain.hardcourtOutdoor",[l.QWe.Grass]:"colors.tennis.terrain.grass",[l.QWe.Clay]:"colors.tennis.terrain.clay",[l.QWe.RedClay]:"colors.tennis.terrain.clay",[l.QWe.SyntheticOutdoor]:"colors.tennis.terrain.default",[l.QWe.Hard]:"colors.tennis.terrain.default",[l.QWe.CarpetIndoor]:"colors.tennis.terrain.default"},O=(e,t)=>(Math.round(e/t*100)/100).toFixed(2),D=e=>{let{graphic:t,title:s,titleValues:r,value:l,secondary:i,isClickable:o,isEmptyGraphic:c,ctaText:u}=e;return l?(0,n.jsxs)(d.so,{align:"center",gap:"sm",px:"lg",py:"sm",_hover:{bg:o?"surface.s2":void 0},children:[t||(c?(0,n.jsx)(d.az,{w:"lg",h:"lg"}):null),(0,n.jsxs)(d.so,{direction:"column",justify:"center",children:[(0,n.jsx)(a.EY,{textStyle:"body.small",color:"neutrals.nLv3",children:(0,n.jsx)(x.A,{id:s,values:r})}),(0,n.jsx)(a.EY,{overflow:"hidden",children:l}),i]}),o&&(0,n.jsxs)(d.so,{ml:"auto",children:[u,(0,n.jsx)(y.CCT,{fill:"primary.default"})]})]}):null},V=e=>{let{event:t}=e,[s,i]=(0,w.jr)(t,"homeTeam","awayTeam"),o=t.tournament.category.sport.slug,c=s.gender&&i.gender&&s.gender===i.gender?s.gender:void 0,u=o===l.QCR.Football&&s.national&&i.national?"FIFA ":o===l.QCR.Tennis&&c?c===l.YT8.Male?"ATP ":"WTA ":"";return"number"!=typeof(null==s?void 0:s.ranking)||"number"!=typeof(null==i?void 0:i.ranking)||o===l.QCR.Tennis?null:(0,n.jsxs)(d.az,{children:[(0,n.jsxs)(a.EY,{textStyle:"display.micro",textAlign:"start",px:"lg",pt:"md",pb:"sm",display:"block",children:[u,(0,n.jsx)(a.EY,{textStyle:"display.micro",children:(0,n.jsx)(x.A,{id:"rankings"})})]}),(0,n.jsxs)(d.so,{children:[(0,n.jsx)(S.gT,{team:s,sport:o,style:{width:"50%"},children:(0,n.jsxs)(d.so,{px:"lg",py:"sm",_hover:{bg:"surface.s2"},children:[(0,n.jsx)(r.p,{id:s.id,name:s.name,size:40,mr:"lg"}),(0,n.jsxs)(d.az,{children:[(0,n.jsx)(a.EY,{color:"primary.default",mb:"xs",display:"block",children:0!==s.ranking||o!==l.QCR.MMA?"#".concat(s.ranking):(0,n.jsx)(x.A,{id:"fighter_ranking_mma"})}),(0,n.jsx)(a.EY,{textStyle:"assistive.default",color:"neutrals.nLv3",children:(0,n.jsx)(z.Rm,{team:s})})]})]})}),(0,n.jsx)(S.gT,{team:i,sport:o,style:{width:"50%"},children:(0,n.jsxs)(d.so,{justify:"flex-end",px:"lg",py:"sm",_hover:{bg:"surface.s2"},children:[(0,n.jsxs)(d.az,{children:[(0,n.jsx)(a.EY,{color:"primary.default",mb:"xs",display:"block",children:0!==i.ranking||o!==l.QCR.MMA?"#".concat(i.ranking):(0,n.jsx)(x.A,{id:"fighter_ranking_mma"})}),(0,n.jsx)(a.EY,{textStyle:"assistive.default",color:"neutrals.nLv3",children:(0,n.jsx)(z.Rm,{team:i})})]}),(0,n.jsx)(r.p,{id:i.id,name:i.name,size:40,ml:"lg"})]})})]})]})};function Z(e){var t,s;let{event:b,showTournamentInfo:w}=e,z=(0,o.hX)(),Z=(0,u.useContext)(p.ThemeContext),W=b.tournament.uniqueTournament&&b.tournament.uniqueTournament.id,N=b.season&&b.season.id,{venue:U,referee:B,refereeName:Q,attendance:G,tossWin:$,tossDecision:X,umpire1Name:K,umpire2Name:q,tvUmpireName:J,manOfMatch:ee}=b,et=b.status.type===l.XUj.NotStarted,es=et&&!!b.finalResultOnly,{data:en}=(0,m.Ay)(w&&W&&N?l.V3t.info(W,N):null),er={};en&&(er.tier=en.info.tier,er.numberOfCompetitors=en.info.numberOfCompetitors,er.totalPrizeMoneyRaw=en.info.totalPrizeMoneyRaw);let el=B||$||X||K||q||J||ee,ei=U||G,ea=er.tier||er.numberOfRounds||er.totalPrizeMoneyRaw,eo=new Date(1e3*b.startTimestamp),ed=(null==B?void 0:B.games)&&"number"==typeof B.yellowCards&&"number"==typeof B.redCards&&"number"==typeof B.yellowRedCards,ec=b.tournament.category.sport.slug,eu=b.tournament.category.sport.slug===l.QCR.MMA,ex=!!b.tournament.category.flag&&(Y.includes(b.tournament.category.flag)||b.tournament.category.flag.includes("america"));return b.startTimestamp||b.tournament.uniqueTournament||el||ei||ea?z?null:(0,n.jsxs)(n.Fragment,{children:[ee&&(0,n.jsx)(j.Zp,{children:(0,n.jsx)(S.uc,{player:ee,sportSlug:ec,children:(0,n.jsx)(D,{graphic:(0,n.jsx)(y.NcS,{icon:"player",fill:"onSurface.nLv1"}),title:"details.manOfMatch",value:ee.name,isClickable:!0})})}),(0,n.jsx)(j.Zp,{children:(0,n.jsxs)(d.az,{py:{base:"sm",md:"md"},cursor:et&&!es?"pointer":"default",children:[(0,n.jsx)(f.A,{name:"".concat(b.homeTeam.name," - ").concat(b.awayTeam.name),startDate:b.startTimestamp,isClickable:et&&!es,children:(0,n.jsx)(D,{graphic:(0,n.jsx)(y.E8x,{fill:"onSurface.nLv1",w:"16px",h:"16px"}),title:"date_and_time",value:(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("span",{children:(0,n.jsx)(h.XU,{value:eo,...i.or.fullDateWithLongYear})}),(0,n.jsx)(d.az,{display:"inline-block",w:"xs",h:"xs",br:"50%",bg:"neutrals.nLv1",mx:"sm",position:"relative",top:"[-3px]"}),(0,n.jsx)("span",{children:(0,n.jsx)(h.XU,{value:eo,hour:"numeric",minute:"numeric"})})]}),ctaText:et&&!es?(0,n.jsx)(a.EY,{textStyle:"assistive.default",color:"primary.default",mr:"xs",children:(0,n.jsx)(x.A,{id:"add_to_calendar"})}):void 0,isClickable:et&&!es})}),(0,n.jsx)(S.Mq,{tournament:b.tournament,seasonId:null==(t=b.season)?void 0:t.id,children:(0,n.jsx)(D,{graphic:(0,n.jsx)(r.e,{id:null==(s=b.tournament.uniqueTournament)?void 0:s.id,size:16}),title:"basic.competition",value:(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(L.o,{sportSlug:ec}),","," ",!ex&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(v.md,{...b.tournament.category,uniqueTournament:b.tournament.uniqueTournament}),","," "]}),eu&&(0,n.jsxs)(n.Fragment,{children:[b.tournament.uniqueTournament&&(0,n.jsx)(R.O,{uniqueTournament:b.tournament.uniqueTournament}),", "]}),(0,n.jsx)(M.J,{tournament:b.tournament}),b.roundInfo&&(0,n.jsxs)(n.Fragment,{children:[", ",(0,n.jsx)(I.DT,{round:b.roundInfo})," "]}),b.cupMatchesInRound&&(0,n.jsxs)(n.Fragment,{children:["- ",(0,n.jsx)(C,{cupMatchesInRound:b.cupMatchesInRound})]}),b.bestOfSets&&b.bestOfSets>1&&(0,n.jsxs)(n.Fragment,{children:[", ",(0,n.jsx)(x.A,{id:"darts_best_of_number_of_sets",values:{n:b.bestOfSets}})]}),b.bestOfSets&&1===b.bestOfSets&&b.bestOfLegs&&b.bestOfLegs>1&&(0,n.jsxs)(n.Fragment,{children:[", ",(0,n.jsx)(x.A,{id:"darts_best_of_number_of_legs",values:{n:b.bestOfLegs}})]})]}),isClickable:!0})}),(null==U?void 0:U.city)&&U.hidden&&(0,n.jsx)(D,{graphic:(0,n.jsx)(y.fRZ,{fill:"onSurface.nLv1",w:"16px",h:"16px"}),title:"venue",value:null==U?void 0:U.stadium.name}),(null==U?void 0:U.city)&&U.hidden&&(0,n.jsx)(D,{graphic:(0,n.jsx)(a._V,{src:U.country.alpha2?(0,l.RHm)(U.country.alpha2):void 0,w:"lg",h:"lg",alt:U.country.alpha2}),title:"location",value:(0,n.jsxs)(n.Fragment,{children:[U.city.name,(null==U?void 0:U.country.slug)&&(0,n.jsxs)(n.Fragment,{children:[", ",(0,n.jsx)(x.A,{id:U.country.slug,defaultMessage:U.country.name})]})]})}),b.groundType&&(0,n.jsx)(D,{graphic:(0,n.jsx)(d.az,{w:"lg",h:"lg",br:"50%",style:{backgroundColor:c.S.var(F[b.groundType])}}),title:"groundType",value:(0,n.jsx)(H.n,{id:b.groundType})}),eu&&(0,n.jsxs)(n.Fragment,{children:[b.weightClass&&(0,n.jsx)(D,{graphic:(0,n.jsx)(y.KnJ,{fill:"onSurface.nLv1",w:"16px",h:"16px"}),title:"division",value:(0,n.jsx)(T.L,{weightClass:b.weightClass})}),b.fightDiscipline&&(0,n.jsx)(D,{graphic:(0,n.jsx)(y.KnJ,{fill:"onSurface.nLv1",w:"16px",h:"16px"}),title:"football_discipline",value:(0,n.jsx)(P.A,{id:b.fightDiscipline})})]}),(0,n.jsx)(D,{graphic:(0,n.jsx)(y.$cJ,{fill:"onSurface.nLv1",w:"16px",h:"16px"}),title:"attendance",value:G}),B?(0,n.jsx)(k.A,{referee:B,children:(0,n.jsx)(D,{graphic:(0,n.jsx)(y.UPv,{fill:"onSurface.nLv1",w:"16px",h:"16px"}),title:"referee",value:(0,n.jsxs)(d.so,{align:"center",gap:"xs",pb:"2xs",children:[(0,n.jsx)(a.EY,{overflow:"hidden",children:(0,n.jsx)(_.c,{entity:B})}),!!B.country&&(0,n.jsx)(a._V,{src:B.country.alpha2?(0,l.RHm)(B.country.alpha2):void 0,w:"lg",h:"lg",alt:B.country.alpha2})]}),secondary:ed&&(0,n.jsxs)(a.EY,{display:"block",children:[(0,n.jsx)(x.A,{id:"average_cards"}),(0,n.jsx)(y.PhV,{width:"16px",height:"16px",fill:Z.colors.error.default,ml:"sm",mr:"xs"}),O((B.redCards||0)+(B.yellowRedCards||0),B.games),(0,n.jsx)(y.PhV,{width:"16px",height:"16px",fill:Z.colors.scoreRating.s65,ml:"sm",mr:"xs"}),B.yellowCards&&O(B.yellowCards,B.games)]}),isClickable:!0})}):Q&&(0,n.jsx)(D,{graphic:(0,n.jsx)(y.UPv,{fill:"onSurface.nLv1",w:"16px",h:"16px"}),title:"referee",value:Q}),$&&(0,n.jsx)(D,{title:"details.tossWin",value:$,isEmptyGraphic:!0}),X&&(0,n.jsx)(D,{title:"details.tossDecision",value:X,isEmptyGraphic:!0}),K&&(0,n.jsx)(D,{title:"details.umpireN",titleValues:{n:1},value:K,isEmptyGraphic:!0}),q&&(0,n.jsx)(D,{title:"details.umpireN",titleValues:{n:2},value:q,isEmptyGraphic:!0}),J&&(0,n.jsx)(D,{title:"details.tvUmpire",value:J,isEmptyGraphic:!0}),(0,n.jsx)(V,{event:b})]})}),(null==U?void 0:U.city)&&!U.hidden&&(0,n.jsxs)(j.Zp,{children:[(0,n.jsx)(j.Zp.Header,{titleId:"venue"}),(0,n.jsx)(D,{graphic:(0,n.jsx)(y.fRZ,{fill:"onSurface.nLv1",w:"16px",h:"16px"}),title:"basic.name",value:null==U?void 0:U.stadium.name}),(0,n.jsx)(D,{graphic:(0,n.jsx)(a._V,{src:U.country.alpha2?(0,l.RHm)(U.country.alpha2):void 0,w:"lg",h:"lg",alt:U.country.alpha2}),title:"location",value:(0,n.jsxs)(n.Fragment,{children:[U.city.name,(null==U?void 0:U.country.name)&&U.country.slug&&(0,n.jsxs)(n.Fragment,{children:[", ",(0,n.jsx)(x.A,{id:U.country.slug,defaultMessage:U.country.name})]})]})}),(0,n.jsx)(A.A,{venue:U,children:(0,n.jsx)(j.Zp.Footer,{ctaParams:{messageId:"basic.seeMoreDetails",icon:g.X.Right}})})]}),(er.winner||er.tier||er.numberOfCompetitors||er.totalPrizeMoneyRaw)&&(0,n.jsxs)(j.Zp,{children:[(0,n.jsx)(j.Zp.Header,{titleId:"tournament_info"}),er.winner&&(0,n.jsx)(D,{title:"tier",value:er.winner.name}),er.tier&&(0,n.jsx)(D,{title:"tier",value:er.tier}),er.numberOfCompetitors&&(0,n.jsx)(D,{title:"numberOfCompetitors",value:er.numberOfCompetitors}),er.totalPrizeMoneyRaw&&(0,n.jsx)(D,{title:"totalPrizeMoney",value:(0,n.jsx)(E.o,{parsedMoney:(0,l.oaz)(er.totalPrizeMoneyRaw)})}),(0,n.jsx)(j.Zp.Footer,{})]})]}):null}},61209:(e,t,s)=>{s.d(t,{M:()=>ee,K:()=>es});var n=s(6029),r=s(46787),l=s(76356),i=s(55729),a=s(45860),o=s(46222),d=s(56494),c=s(93819),u=s(10174),x=s(90248);function h(){return(0,n.jsx)(u.EY,{color:"neutrals.nLv3",textStyle:"body.small",textAlign:"center",display:"block",px:"lg",py:"sm",children:(0,n.jsx)(x.A,{id:"ai_insights_betting_disclaimer"})})}function p(e){let{section:t}=e;return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(u.EY,{display:"block",textStyle:"display.medium",px:"lg",pt:"md",pb:"xs",children:t.subtitle}),(0,n.jsx)(u.EY,{display:"block",textStyle:"body.mediumParagraph",px:"lg",py:"sm",children:t.text})]})}function m(e){let{sections:t}=e;return t?(0,n.jsx)(n.Fragment,{children:t.map(e=>(0,n.jsx)(p,{section:e},e.subtitle))}):null}var j=s(52466),g=s(88505);let y=e=>{let{team:t}=e,s=(0,g.s_)({team:t});return(0,n.jsx)(x.A,{id:"ai_forecast_correct_win",values:{teamName:s}})};function v(e){let{winner:t,isCorrect:s}=e,r=s&&!t;return s?(0,n.jsxs)(l.ov,{py:"md",px:"lg",gap:"sm",br:"sm",children:[s&&!r?(0,n.jsx)(j.VsF,{fill:"success.default"}):(0,n.jsx)(j.LG7,{height:"16px",width:"16px",fill:"onSurface.nLv3"}),(0,n.jsx)(u.EY,{color:"neutrals.nLv3",textStyle:"assistive.default",textAlign:"center",children:r?(0,n.jsx)(x.A,{id:"ai_forecast_correct_draw"}):t?(0,n.jsx)(y,{team:t}):null})]}):null}var f=s(64006);function b(e){let{titleId:t,isHidden:s,children:r}=e;return s?null:(0,n.jsxs)(l.so,{justify:"space-between",align:"center",px:"lg",gap:"lg",minH:"2xl",children:[(0,n.jsx)(u.EY,{children:(0,n.jsx)(x.A,{id:t})}),(0,n.jsx)(u.EY,{children:r})]})}var C=s(494),w=s(72753);let S=["US","CA"];function k(){let e=(0,C.d4)(w.LQ);return e&&S.includes(e)?(0,n.jsx)(n.Fragment,{children:"Tie"}):(0,n.jsx)(x.A,{id:"draw"})}function A(e){let{hasWinner:t,winner:s}=e;return(0,n.jsx)(b,{titleId:t?"football_full_time_winner":"football_full_time_outcome",children:t&&s?(0,n.jsx)(g.Rm,{team:s}):(0,n.jsx)(k,{})})}function _(e){let{event:t,predictions:s}=e;if(!s)return null;let r=t.correctHalftimeAiInsight,{hasWinner:i,winner:a}=(0,c.mV)(t,s.homeNormaltimeScore,s.awayNormaltimeScore);return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(b,{titleId:"football_scores_next_goal",isHidden:!s.nextTeamToScore,children:null==s?void 0:s.nextTeamToScore.shortName}),(0,n.jsx)(b,{titleId:"football_over_goals_second_half",isHidden:"boolean"!=typeof(null==s?void 0:s.secondHalfOverOneAndAHalfGoals),children:(0,n.jsx)(x.A,{id:(null==s?void 0:s.secondHalfOverOneAndAHalfGoals)?"yes":"no"})}),(0,n.jsx)(b,{titleId:"football_scores_in_second_half",isHidden:!s.playerToScore,children:(0,n.jsx)(f.uc,{player:s.playerToScore,sportSlug:t.tournament.category.sport.slug,children:(0,n.jsxs)(u.EY,{color:"primary.default",children:[null==s?void 0:s.playerToScore.shortName,(0,n.jsx)(j.CCT,{fill:"primary.default",ml:"xs"})]})})}),(0,n.jsx)(A,{hasWinner:i,winner:a}),(0,n.jsx)(l.az,{mx:"sm",bg:"surface.s2",br:"sm",children:(0,n.jsx)(v,{isCorrect:r,winner:a})})]})}var T=s(18970),P=s(93338),E=s(82536);let I=[[{percentage:.1},{percentage:.2},{percentage:.3},{percentage:.2}],[{percentage:.3},{percentage:.4},{percentage:.5},{percentage:.3}],[{percentage:.2},{percentage:.3},{percentage:.4},{percentage:1,description:"1:3"}],[{percentage:.1},{percentage:.2},{percentage:.3},{percentage:.4}]],L=()=>(0,n.jsx)("svg",{width:"13",height:"124",viewBox:"0 0 13 124",fill:"none",style:{position:"absolute",insetInlineStart:6},children:(0,n.jsx)("path",{d:"M6 0L0.307328 10.0462L11.854 9.95312L6 0ZM7 124L12.6927 113.954L1.14604 114.047L7 124ZM6.07258 8.99971L5.07261 9.00777L5.92745 115.008L6.92742 115L7.92739 114.992L7.07255 8.99164L6.07258 8.99971Z",fill:P.S.var("colors.neutral.default")})}),z=()=>(0,n.jsx)("svg",{width:"170",height:"12",viewBox:"0 0 170 12",fill:"none",children:(0,n.jsx)("path",{d:"M170 6L160 0.226496L160 11.7735L170 6ZM0 5.99999L10 11.7735L10 0.226483L0 5.99999ZM161 6L161 5L9 4.99999L9 5.99999L9 6.99999L161 7L161 6Z",fill:P.S.var("colors.neutral.default")})}),H=e=>{let{score:t,rowConfigs:s}=e;return(0,n.jsxs)(l.so,{align:"center",children:[(0,n.jsxs)(l.so,{align:"center",gap:"sm",children:[(0,n.jsx)(u.EY,{w:"[20px]",display:"block",textAlign:"end",textStyle:"assistive.micro",color:"neutrals.nLv3",children:t}),s.map((e,t)=>(0,n.jsx)(l.so,{h:"xl",w:"[36px]",br:"xs",align:"center",justify:"center",textStyle:"assistive.default",color:"onColor.primary",style:{background:"linear-gradient(0deg, rgba(55, 77, 245, ".concat(e.percentage,") 0%, rgba(55, 77, 245, ").concat(e.percentage,") 100%), var(--surface-sp, #FFF)")},children:e.description},t))]}),2===t&&(0,n.jsxs)(l.so,{align:"center",gap:"xs",children:[(0,n.jsx)(l.az,{h:"[1px]",w:"xl",borderTop:"1px dashed {colors.neutral.default}"}),(0,n.jsx)(u.EY,{display:"block",textStyle:"assistive.default",color:"neutrals.nLv3",w:"9xl",children:(0,n.jsx)(x.A,{id:"most_likely_outcome"})})]})]})},M=()=>{let{event:e}=(0,i.useContext)(T.y$),t=(0,g.s_)({team:e.awayTeam,short:!0}),s=(0,g.s_)({team:e.homeTeam,short:!0});return(0,n.jsxs)(l.az,{pt:"2xl",ps:"lg",pb:"xl",position:"relative",children:[(0,n.jsxs)(l.so,{position:"absolute",top:"md",insetInlineStart:"4xl",gap:"xs",children:[(0,n.jsx)(l.az,{h:"[27px]",w:"[36px]",borderStart:"1px dashed {colors.neutral.default}",borderTop:"1px dashed {colors.neutral.default}"}),(0,n.jsx)(u.EY,{display:"block",position:"relative",textStyle:"assistive.default",color:"neutrals.nLv3",style:{transform:"translateY(-30%)"},children:(0,n.jsx)(x.A,{id:"result_probability_team_goals",values:{shortTeamName:s}})})]}),(0,n.jsxs)(l.so,{gap:"sm",direction:"column",p:"lg",position:"relative",children:[I.map((e,t)=>(0,n.jsx)(H,{score:I.length-t,rowConfigs:e},t)),(0,n.jsx)(L,{}),(0,n.jsx)(l.so,{ps:"[28px]",gap:"sm",children:I.map((e,t)=>(0,n.jsx)(u.EY,{w:"[36px]",display:"block",textAlign:"center",textStyle:"assistive.micro",color:"neutrals.nLv3",children:t},t))}),(0,n.jsxs)(l.az,{ps:"[28px]",children:[(0,n.jsx)(z,{}),(0,n.jsx)(u.EY,{textStyle:"assistive.default",color:"neutrals.nLv3",w:"[170px]",display:"block",textAlign:"center",children:(0,n.jsx)(x.A,{id:"result_probability_team_goals",values:{shortTeamName:t}})})]})]})]})},R=e=>{let{isOpen:t,setIsOpen:s}=e;return(0,n.jsxs)(E.A,{isOpen:t,setIsOpen:s,header:"result_probability_matrix_header",modalContentStyles:{width:"360px"},children:[(0,n.jsx)(l.az,{children:(0,n.jsx)(u.EY,{display:"block",py:"sm",px:"lg",children:(0,n.jsx)(x.A,{id:"result_probability_matrix_body"})})}),(0,n.jsx)(M,{}),(0,n.jsx)(l.az,{md:{display:"none"},p:"lg",children:(0,n.jsx)(u.$n,{w:"100%",onClick:()=>s(!1),children:(0,n.jsx)(x.A,{id:"close"})})})]})};var Y=s(89827);let F=e=>{let{percentage:t}=e;return t<.1?"<0.1%":"".concat((0,Y.M)(t,1),"%")},O=e=>{let{percentage:t,matrixMax:s}=e,r=(0,Y.M)(Math.min(Math.max(t/s,.1),1),2);return(0,n.jsx)(l.ov,{py:"xs",flexGrow:1,flexShrink:1,flexBasis:"[0]",br:"xs",bg:"surface.s2",style:{background:"linear-gradient(0deg, rgba(55, 77, 245, ".concat(r,") 0%, rgba(55, 77, 245, ").concat(r,") 100%), var(--surface-sp, #FFF)")},children:(0,n.jsx)(u.EY,{color:Number(r)>=.8?"onColor.primary":void 0,children:(0,n.jsx)(F,{percentage:100*t})})})},D=e=>{let{awayScore:t,possibleResultsMatrix:s,matrixMax:r}=e;return(0,n.jsxs)(l.so,{gap:"sm",align:"center",children:[(0,n.jsx)(u.EY,{color:"neutrals.nLv3",w:"md",textAlign:"center",children:t}),s[t].map((e,t)=>(0,n.jsx)(O,{percentage:e,matrixMax:r},t))]})},V=[5,4,3,2,1,0],Z=[0,1,2,3,4,5],W=e=>{let{team:t,icon:s}=e,r=(0,g.s_)({team:t,short:!0});return(0,n.jsxs)(l.so,{h:"xl",gap:"sm",align:"center",children:[(0,n.jsx)(l.az,{h:"xl",w:"xl",children:s}),(0,n.jsx)(u.EY,{textStyle:"assistive.default",color:"neutrals.nLv3",children:(0,n.jsx)(x.A,{id:"result_probability_team_goals",values:{shortTeamName:r}})})]})},N=e=>{let{possibleResultsMatrix:t}=e,{event:s}=(0,i.useContext)(T.y$),{textDirection:r}=(0,u.$c)(),[a,o]=(0,i.useState)(!1),d=t.reduce((e,t)=>Math.max(e,...t),0);return(0,n.jsxs)(l.az,{children:[(0,n.jsxs)(l.so,{justify:"space-between",align:"center",pt:"md",pb:"xs",px:"lg",children:[(0,n.jsx)(u.EY,{textStyle:"display.medium",children:(0,n.jsx)(x.A,{id:"result_probability"})}),(0,n.jsx)(l.I4.button,{h:"xl",w:"xl",p:"0",cursor:"pointer",onClick:()=>o(!0),children:(0,n.jsx)(j.G_L,{fill:"onSurface.nLv1"})}),a&&(0,n.jsx)(R,{isOpen:a,setIsOpen:o})]}),(0,n.jsxs)(l.so,{direction:"column",gap:"sm",p:"lg",pb:"sm",children:[V.map(e=>(0,n.jsx)(D,{awayScore:e,possibleResultsMatrix:t,matrixMax:d},e)),(0,n.jsxs)(l.so,{gap:"sm",align:"center",children:[(0,n.jsx)(l.az,{w:"md"}),Z.map(e=>(0,n.jsx)(u.EY,{color:"neutrals.nLv3",flexGrow:1,flexShrink:1,flexBasis:"[0]",textAlign:"center",children:e},e))]})]}),(0,n.jsxs)(l.so,{direction:"column",gap:"xs",px:"lg",children:[(0,n.jsx)(W,{team:s.homeTeam,icon:(0,n.jsx)(j.Z_0,{fill:"onSurface.nLv1",isRtlPrevented:!0})}),(0,n.jsx)(W,{team:s.awayTeam,icon:"rtl"===r?(0,n.jsx)(j.Bbe,{fill:"onSurface.nLv1",isRtlPrevented:!0}):(0,n.jsx)(j.H8G,{fill:"onSurface.nLv1"})})]})]})};var U=s(33144),B=s(86903),Q=s(67087);let G=e=>{let{prob:t}=e;return(0,n.jsxs)(u.EY,{textStyle:"display.small",children:[t,"%"]})},$=e=>{let{isCorrect:t,winner:s,probabilities:r}=e,{leftTeam:a,rightTeam:o}=(0,i.useContext)(T.y$),[d,c]=(0,Q.jr)(r,"home","away");return r||t?(0,n.jsxs)(l.az,{bg:"surface.s2",br:"sm",pb:r?"sm":void 0,children:[r&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(u.EY,{display:"block",px:"lg",pt:"lg",pb:"sm",textStyle:"assistive.default",textAlign:"center",color:"neutrals.nLv3",children:(0,n.jsx)(x.A,{id:"ai_forecast_win_probability"})}),(0,n.jsxs)(l.so,{px:"lg",py:"sm",justify:"center",align:"center",gap:"lg",children:[(0,n.jsx)(U.p,{id:a.id,name:a.name}),(0,n.jsx)(G,{prob:(0,B.M)(d,0)}),(0,n.jsx)(l.cG,{orientation:"vertical",h:"xl"}),(0,n.jsx)(G,{prob:(0,B.M)(r.draw,0)}),(0,n.jsx)(l.cG,{orientation:"vertical",h:"xl"}),(0,n.jsx)(G,{prob:(0,B.M)(c,0)}),(0,n.jsx)(U.p,{id:o.id,name:o.name})]})]}),(0,n.jsx)(v,{isCorrect:t,winner:s})]}):null};function X(e){let{event:t,predictions:s}=e;if(!s)return null;let r=t.correctAiInsight,{hasWinner:i,winner:a}=(0,c.mV)(t,s.homeNormaltimeScore,s.awayNormaltimeScore);return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(b,{titleId:"football_total_yellow_cards",isHidden:!s.yellowCards,children:s.yellowCards}),(0,n.jsx)(b,{titleId:"football_total_corners",isHidden:!s.corners,children:s.corners}),(0,n.jsx)(b,{titleId:"both_teams_to_score",isHidden:"boolean"!=typeof s.bothTeamsToScore,children:(0,n.jsx)(x.A,{id:s.bothTeamsToScore?"yes":"no"})}),(0,n.jsx)(A,{hasWinner:i,winner:a}),(0,n.jsx)(l.az,{px:"sm",pt:"sm",children:(0,n.jsx)($,{isCorrect:r,winner:i?a:void 0,probabilities:s.winningProbability})}),s.possibleResultsMatrix&&(0,n.jsx)(N,{possibleResultsMatrix:s.possibleResultsMatrix})]})}function K(e){let{event:t,predictions:s,halftimePredictions:r}=e,{hasTabs:i,activeTab:a}=(0,c.gY)(),o=i&&a===c.k9.Halftime;return(o?r:s)?(0,n.jsxs)(l.az,{children:[(0,n.jsxs)(l.az,{px:"lg",pt:"md",pb:"xs",children:[(0,n.jsx)(u.EY,{display:"block",textStyle:"display.medium",children:(0,n.jsx)(x.A,{id:"ai_match_forecast_title"})}),(0,n.jsx)(u.EY,{display:"block",textStyle:"assistive.default",color:"neutrals.nLv3",children:(0,n.jsx)(x.A,{id:o?"generated_at_halftime":"generated_before_match_start"})})]}),o?(0,n.jsx)(_,{event:t,predictions:r}):(0,n.jsx)(X,{event:t,predictions:s})]}):null}function q(e){let{aiInsightsResponse:t,event:s}=e,{data:r,isLoading:i}=t,{activeTab:a,hasTabs:o}=(0,c.gY)(),u=(0,c.jS)(c.n1.includes(s.status.type),!!r,i,s.id),x=o&&a===c.k9.Halftime?null==r?void 0:r.halftimeSections:null==r?void 0:r.sections;return(0,n.jsxs)(l.az,{pb:"sm",children:[i?(0,n.jsx)(l.az,{h:"[700px]"}):u?(0,n.jsx)(l.az,{h:"[700px]",py:"sm",children:(0,n.jsx)(d.a,{})}):(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(K,{event:s,predictions:null==r?void 0:r.predictions,halftimePredictions:null==r?void 0:r.halftimePredictions}),(0,n.jsx)(m,{sections:x})]}),(0,n.jsx)(h,{})]})}function J(e){let{aiInsightsResponse:t,event:s}=e,{data:r,isLoading:i}=t,{activeTab:a,hasTabs:u}=(0,c.gY)(),x=(0,c.jS)(c.n1.includes(s.status.type),!!r,i,s.id),p=u&&a===c.k9.Halftime?null==r?void 0:r.halftimeSections:null==r?void 0:r.sections;return(0,n.jsxs)(o.BU,{children:[x?(0,n.jsx)(o.Zp,{children:(0,n.jsx)(l.az,{py:"lg",h:"[500px]",children:(0,n.jsx)(d.a,{})})}):(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)(o.Zp,{children:[(0,n.jsx)(K,{event:s,predictions:null==r?void 0:r.predictions,halftimePredictions:null==r?void 0:r.halftimePredictions}),(0,n.jsx)(o.Zp.Footer,{defaultHeight:"sm"})]}),(0,n.jsxs)(o.Zp,{children:[(0,n.jsx)(m,{sections:p}),(0,n.jsx)(o.Zp.Footer,{defaultHeight:"sm"})]})]}),(0,n.jsx)(h,{})]})}function ee(e){let{event:t,variant:s="default"}=e,l=(0,c.ff)(),{showAiInsights:o,showPostmatchAiInsights:d}=(0,c.tN)(t),{setHasTabs:u}=(0,c.gY)(),x=(0,a.Ay)(d?r.bnp.aiInsightsPostmatch(t.id,l):null),h=(0,c.$e)(t,!o),p=d?x:h;return((0,i.useEffect)(()=>{var e;u(!!(null==(e=p.data)?void 0:e.halftimePredictions)&&!!p.data.halftimeSections)},[p.data]),o||d)?"card-layout"===s?(0,n.jsx)(J,{aiInsightsResponse:p,event:t}):(0,n.jsx)(q,{aiInsightsResponse:p,event:t}):null}function et(e){let{height:t=28,fill:s}=e,r=s||P.S.var("colors.neutrals.nLv2");return(0,n.jsxs)("svg",{height:t,viewBox:"0 0 251 28",fill:"none",children:[(0,n.jsx)("path",{d:"M243.93 18.6029V9.58272H241.699C241.531 9.58272 241.42 9.47136 241.42 9.30432V7.46688C241.42 7.29984 241.531 7.18848 241.699 7.18848H243.93V4.04256C243.93 3.87552 244.041 3.76416 244.209 3.76416H246.217C246.384 3.76416 246.495 3.87552 246.495 4.04256V7.18848H250.484C250.651 7.18848 250.762 7.29984 250.762 7.46688V9.30432C250.762 9.47136 250.651 9.58272 250.484 9.58272H246.495V18.2131C246.495 19.104 246.997 19.4938 247.778 19.4938H250.484C250.651 19.4938 250.762 19.6051 250.762 19.7722V21.6096C250.762 21.7766 250.651 21.888 250.484 21.888H247.053C245.045 21.888 243.93 20.8301 243.93 18.6029Z",fill:r}),(0,n.jsx)("path",{d:"M228.407 17.6841C228.407 17.5171 228.518 17.4057 228.686 17.4057H230.721C230.889 17.4057 231 17.5171 231.028 17.6841C231.223 19.0761 232.757 19.8278 234.821 19.8278C237.052 19.8278 238.279 18.9369 238.279 17.6006C238.279 16.2643 237.471 15.5405 234.626 15.5405C230.972 15.5405 228.713 14.3433 228.713 11.3923C228.713 8.63614 231.14 6.91006 234.375 6.91006C237.889 6.91006 240.064 8.58047 240.427 11.3645C240.455 11.5872 240.343 11.6429 240.176 11.6429H238.112C237.945 11.6429 237.861 11.5593 237.833 11.3923C237.638 10.0838 236.55 9.24863 234.319 9.24863C232.227 9.24863 231.251 10.056 231.251 11.2531C231.251 12.4781 232.032 13.2576 234.933 13.2576C239.2 13.2576 240.817 14.7609 240.817 17.4893C240.817 20.2176 238.391 22.1664 234.793 22.1664C231.363 22.1664 228.574 20.7187 228.407 17.6841Z",fill:r}),(0,n.jsx)("path",{d:"M228.193 7.43903L222.058 23.809C221.137 26.2867 220.552 27.5117 218.376 27.5117H215.448C215.281 27.5117 215.169 27.4003 215.169 27.2333V25.3958C215.169 25.2288 215.281 25.1174 215.448 25.1174H217.958C218.683 25.1174 219.129 24.839 219.464 23.9203L219.938 22.6118L214.221 7.43903C214.137 7.29984 214.221 7.18848 214.388 7.18848H216.703C216.898 7.18848 217.01 7.272 217.066 7.43903L221.277 19.3267L225.488 7.43903C225.544 7.272 225.655 7.18848 225.851 7.18848H228.026C228.193 7.18848 228.277 7.29984 228.193 7.43903Z",fill:r}),(0,n.jsx)("path",{d:"M210.114 21.6096V1.2864C210.114 1.11936 210.225 1.008 210.392 1.008H212.4C212.568 1.008 212.679 1.11936 212.679 1.2864V21.6096C212.679 21.7766 212.568 21.888 212.4 21.888H210.392C210.225 21.888 210.114 21.7766 210.114 21.6096Z",fill:r}),(0,n.jsx)("path",{d:"M194.35 11.3923C194.768 8.66398 197.25 6.91006 200.708 6.91006C204.557 6.91006 207.039 8.91455 207.039 12.4781V21.6096C207.039 21.7766 206.927 21.888 206.788 21.888H204.975C204.808 21.888 204.696 21.7766 204.696 21.6096V19.9113C203.358 21.6096 201.629 22.1664 199.565 22.1664C197.306 22.1664 194.182 21.2198 194.182 17.6285C194.182 14.7053 196.553 12.9235 200.206 12.9235H204.445V12.4781C204.445 10.4179 203.162 9.30431 200.569 9.30431C198.505 9.30431 197.417 10.0281 196.915 11.3923C196.86 11.5593 196.776 11.6707 196.609 11.6707H194.601C194.433 11.6707 194.322 11.5593 194.35 11.3923ZM199.983 19.8557C201.935 19.8557 204.445 18.5472 204.445 15.7353V15.1507H200.29C197.864 15.1507 196.804 15.9859 196.804 17.5171C196.804 19.0761 197.891 19.8557 199.983 19.8557Z",fill:r}),(0,n.jsx)("path",{d:"M179.486 21.6096V7.46687C179.486 7.29982 179.597 7.18847 179.765 7.18847H181.605C181.773 7.18847 181.884 7.29982 181.884 7.46687V8.85887C182.916 7.41118 184.311 6.91006 186.123 6.91006C189.414 6.91006 191.896 8.94239 191.896 12.9513V21.6096C191.896 21.7766 191.785 21.888 191.618 21.888H189.61C189.442 21.888 189.331 21.7766 189.331 21.6096V13.1462C189.331 10.5014 187.741 9.30431 185.677 9.30431C183.864 9.30431 182.052 10.3901 182.052 13.1462V21.6096C182.052 21.7766 181.94 21.888 181.773 21.888H179.765C179.597 21.888 179.486 21.7766 179.486 21.6096Z",fill:r}),(0,n.jsx)("path",{d:"M160.595 21.6096L166.926 2.37215C166.981 2.17727 167.093 2.09375 167.288 2.09375H171.165C171.36 2.09375 171.472 2.17727 171.527 2.37215L177.774 21.6096C177.83 21.7766 177.747 21.888 177.579 21.888H175.348C175.153 21.888 175.041 21.8045 174.986 21.6096L173.396 16.7098H164.918L163.356 21.6096C163.3 21.8045 163.189 21.888 162.993 21.888H160.79C160.623 21.888 160.539 21.7766 160.595 21.6096ZM165.726 14.2041H172.615L169.519 4.65503H168.794L165.726 14.2041Z",fill:r}),(0,n.jsx)("path",{d:"M44.4479 10.9855C43.36 10.5113 41.8934 10.2171 40.0482 10.1091C38.5215 10.019 37.4697 9.76091 36.9047 9.3407C36.3337 8.92049 36.0512 8.33219 36.0512 7.56981C36.0512 6.86145 36.3457 6.27316 36.9287 5.79892C37.5178 5.32469 38.3292 5.08457 39.375 5.08457C40.529 5.08457 41.4547 5.3427 42.1579 5.86496C42.8311 6.36921 43.2398 7.08957 43.384 8.02604C43.3961 8.08607 43.4441 8.12809 43.5042 8.12809H47.0144C47.0865 8.12809 47.1406 8.06806 47.1346 7.99602C46.9242 6.03304 46.1489 4.51428 44.8025 3.43974C43.4261 2.3412 41.635 1.79492 39.4351 1.79492C38.0948 1.79492 36.8987 2.04105 35.8408 2.53329C34.789 3.02554 33.9535 3.71588 33.3404 4.59832C32.7274 5.48076 32.4208 6.50128 32.4208 7.65385C32.4208 9.01053 32.7213 10.0911 33.3284 10.8895C33.9355 11.6879 34.783 12.2762 35.8709 12.6483C36.9588 13.0205 38.251 13.2547 39.7417 13.3447C41.1962 13.4407 42.242 13.6989 42.8852 14.1251C43.5283 14.5513 43.8468 15.2056 43.8468 16.0761C43.8468 16.9345 43.5042 17.6188 42.8251 18.1291C42.1459 18.6393 41.1782 18.8975 39.934 18.8975C38.78 18.8975 37.8183 18.6333 37.0549 18.0991C36.3156 17.5828 35.8649 16.7964 35.7026 15.7339C35.6966 15.6739 35.6425 15.6318 35.5824 15.6318H32.0722C32.0001 15.6318 31.946 15.6919 31.952 15.7579C32.0602 17.1686 32.4749 18.3512 33.2022 19.2997C33.9475 20.2782 34.9032 21.0045 36.0692 21.4788C37.2353 21.953 38.5155 22.1931 39.9099 22.1931C41.4006 22.1931 42.7229 21.929 43.8769 21.3947C45.0309 20.8665 45.9325 20.1281 46.5756 19.1916C47.2188 18.2492 47.5373 17.1686 47.5373 15.938C47.5373 14.7674 47.2969 13.7649 46.81 12.9365C46.3292 12.1141 45.5418 11.4598 44.4479 10.9855Z",fill:r}),(0,n.jsx)("path",{d:"M59.6245 7.77991C58.5366 7.19162 57.3465 6.90347 56.0603 6.90347C54.7379 6.90347 53.5358 7.19762 52.4539 7.77991C51.372 8.36821 50.5185 9.22663 49.8814 10.3612C49.2503 11.4958 48.9318 12.8825 48.9318 14.5213C48.9318 16.1601 49.2503 17.5468 49.8814 18.6814C50.5125 19.8159 51.372 20.6804 52.4539 21.2747C53.5358 21.869 54.7379 22.1691 56.0603 22.1691C57.3465 22.1691 58.5366 21.869 59.6245 21.2747C60.7124 20.6804 61.5839 19.8159 62.2391 18.6814C62.8882 17.5468 63.2188 16.1601 63.2188 14.5213C63.2188 12.8825 62.8942 11.4958 62.2391 10.3612C61.59 9.22663 60.7184 8.3622 59.6245 7.77991ZM58.6328 17.7689C58.0017 18.5253 57.1422 18.8975 56.0603 18.8975C54.9784 18.8975 54.1249 18.5193 53.5058 17.7689C52.8807 17.0125 52.5681 15.938 52.5681 14.5453C52.5681 13.1286 52.8867 12.048 53.5178 11.2917C54.1489 10.5353 54.9964 10.1631 56.0603 10.1631C57.1422 10.1631 57.9957 10.5413 58.6328 11.2917C59.2639 12.048 59.5824 13.1286 59.5824 14.5453C59.5824 15.944 59.2699 17.0185 58.6328 17.7689Z",fill:r}),(0,n.jsx)("path",{d:"M67.3961 1.945C66.6388 2.58732 66.2661 3.56581 66.2661 4.89247V7.05956C66.2661 7.12559 66.2121 7.17962 66.1459 7.17962H64.0963C64.0302 7.17962 63.9761 7.23364 63.9761 7.29968V10.3552C63.9761 10.4212 64.0302 10.4753 64.0963 10.4753H66.1459C66.2121 10.4753 66.2661 10.5293 66.2661 10.5953V21.7969C66.2661 21.863 66.3202 21.917 66.3864 21.917H69.6681C69.7342 21.917 69.7883 21.863 69.7883 21.7969V10.5893C69.7883 10.5233 69.8424 10.4693 69.9085 10.4693H73.4668C73.5329 10.4693 73.587 10.4152 73.587 10.3492V7.29367C73.587 7.22764 73.5329 7.17361 73.4668 7.17361H69.9085C69.8424 7.17361 69.7883 7.11959 69.7883 7.05355V5.58282C69.7883 4.70638 70.161 4.26816 70.9063 4.26816H73.4668C73.5329 4.26816 73.587 4.21413 73.587 4.1481V1.09858C73.587 1.03254 73.5329 0.978516 73.4668 0.978516H70.2331C69.0971 0.978516 68.1535 1.30268 67.3961 1.945Z",fill:r}),(0,n.jsx)("path",{d:"M86.0108 8.35019C84.8267 7.3837 83.2279 6.89746 81.2204 6.89746C80.0483 6.89746 78.9845 7.09556 78.0348 7.48575C77.0851 7.87595 76.3098 8.44624 75.7147 9.19061C75.1437 9.90497 74.7951 10.7514 74.6689 11.7359C74.6569 11.8079 74.717 11.8679 74.7891 11.8679H78.131C78.1911 11.8679 78.2392 11.8259 78.2512 11.7719C78.3774 11.2016 78.6659 10.7574 79.1287 10.4332C79.6156 10.0911 80.3008 9.91697 81.1963 9.91697C83.2459 9.91697 84.2737 10.7754 84.2737 12.4863V12.7024C84.2737 12.7684 84.2196 12.8224 84.1535 12.8224H80.3909C78.5637 12.8224 77.1152 13.2426 76.0453 14.0771C74.9754 14.9175 74.4405 16.0761 74.4405 17.5648C74.4405 18.4953 74.6088 19.2636 74.9454 19.8699C75.282 20.4763 75.7147 20.9565 76.2437 21.3047C76.7726 21.6588 77.3556 21.905 77.9927 22.043C78.6238 22.1811 79.2309 22.2531 79.8079 22.2531C81.1302 22.2531 82.2362 21.995 83.1197 21.4848C83.5945 21.2086 84.0033 20.8905 84.3519 20.5183C84.424 20.4402 84.5622 20.4943 84.5622 20.6023V21.8029C84.5622 21.8689 84.6163 21.923 84.6824 21.923H87.6817C87.7478 21.923 87.8019 21.8689 87.8019 21.8029V12.4803C87.7839 10.6914 87.1948 9.31667 86.0108 8.35019ZM82.2241 18.9575C81.6471 19.2156 81.0881 19.3477 80.5472 19.3477C79.7839 19.3477 79.1708 19.1916 78.702 18.8855C78.2331 18.5793 78.0047 18.1111 78.0047 17.4748C78.0047 16.8624 78.2331 16.3942 78.6899 16.0821C79.1467 15.7639 79.868 15.6078 80.8537 15.6078H84.1415C84.2076 15.6078 84.2617 15.6618 84.2617 15.7279V15.8059C84.2617 16.6043 84.0634 17.2646 83.6727 17.7869C83.288 18.3032 82.8011 18.6934 82.2241 18.9575Z",fill:r}),(0,n.jsx)("path",{d:"M101.175 14.1431C100.208 13.4648 98.6028 13.0565 96.3669 12.9305C95.5074 12.8945 94.8583 12.8164 94.4135 12.6904C93.9687 12.5703 93.6622 12.4082 93.5059 12.2041C93.3496 12 93.2655 11.7419 93.2655 11.4237C93.2655 10.9795 93.4758 10.6133 93.8966 10.3372C94.3173 10.0611 94.9424 9.91698 95.7839 9.91698C96.5833 9.91698 97.2445 10.0671 97.7674 10.3612C98.2602 10.6433 98.5547 11.0576 98.6449 11.6038C98.6569 11.6579 98.705 11.6999 98.7651 11.6999H102.107C102.179 11.6999 102.233 11.6398 102.227 11.5678C102.053 10.1091 101.41 8.96851 100.298 8.1581C99.1498 7.32368 97.6472 6.90347 95.7839 6.90347C94.6118 6.90347 93.572 7.10157 92.6704 7.49177C91.7689 7.88196 91.0596 8.42223 90.5487 9.11258C90.0378 9.80292 89.7794 10.6133 89.7794 11.5438C89.7794 12.5883 90.0318 13.4167 90.5367 14.029C91.0416 14.6413 91.7568 15.0916 92.6885 15.3677C93.6201 15.6438 94.7381 15.8119 96.0423 15.872C97.2505 15.926 98.0619 16.0821 98.4766 16.3342C98.8853 16.5863 99.0897 16.9705 99.0897 17.4928C99.0897 18.015 98.8613 18.4292 98.4045 18.7354C97.9477 19.0415 97.2264 19.1976 96.2407 19.1976C95.3632 19.1976 94.6239 19.0535 94.0168 18.7654C93.4398 18.4893 93.1092 18.0631 93.013 17.4808C93.001 17.4267 92.9529 17.3847 92.8928 17.3847H89.575C89.5029 17.3847 89.4488 17.4447 89.4548 17.5108C89.5269 18.5493 89.8635 19.4137 90.4525 20.0921C91.0656 20.8004 91.871 21.3287 92.8688 21.6829C93.8665 22.037 94.9785 22.2111 96.2106 22.2111C97.569 22.2111 98.7291 21.995 99.6907 21.5688C100.652 21.1426 101.38 20.5543 101.885 19.8099C102.389 19.0656 102.642 18.2311 102.642 17.2947C102.624 15.866 102.143 14.8214 101.175 14.1431Z",fill:r}),(0,n.jsx)("path",{d:"M112.938 18.3992C112.343 18.7354 111.7 18.9035 111.009 18.9035C109.927 18.9035 109.073 18.5313 108.454 17.7869C107.829 17.0426 107.516 15.962 107.516 14.5513C107.516 13.1346 107.835 12.0541 108.466 11.2977C109.097 10.5413 109.945 10.1691 111.009 10.1691C111.79 10.1691 112.451 10.3672 112.992 10.7574C113.509 11.1356 113.858 11.7179 114.032 12.5043C114.044 12.5583 114.092 12.6003 114.152 12.6003H117.524C117.596 12.6003 117.656 12.5343 117.644 12.4623C117.386 10.5953 116.652 9.20863 115.456 8.30218C114.224 7.37172 112.728 6.90948 110.954 6.90948C109.704 6.90948 108.544 7.19763 107.474 7.77392C106.405 8.35021 105.539 9.20863 104.878 10.3432C104.217 11.4778 103.886 12.8765 103.886 14.5333C103.886 16.1901 104.205 17.5828 104.836 18.7234C105.467 19.858 106.32 20.7164 107.39 21.3047C108.46 21.893 109.65 22.1811 110.954 22.1811C112.018 22.1811 113.022 21.989 113.972 21.6108C114.921 21.2266 115.721 20.6383 116.376 19.84C117.001 19.0716 117.44 18.1171 117.686 16.9705C117.704 16.8985 117.644 16.8264 117.566 16.8264H114.2C114.146 16.8264 114.098 16.8625 114.086 16.9165C113.894 17.5768 113.509 18.0751 112.938 18.3992Z",fill:r}),(0,n.jsx)("path",{d:"M129.749 7.77991C128.662 7.19162 127.471 6.90347 126.185 6.90347C124.863 6.90347 123.661 7.19762 122.579 7.77991C121.497 8.36821 120.643 9.22663 120.006 10.3612C119.375 11.4958 119.057 12.8825 119.057 14.5213C119.057 16.1601 119.375 17.5468 120.006 18.6814C120.637 19.8159 121.497 20.6804 122.579 21.2747C123.661 21.869 124.863 22.1691 126.185 22.1691C127.471 22.1691 128.662 21.869 129.749 21.2747C130.837 20.6804 131.709 19.8159 132.364 18.6814C133.013 17.5468 133.344 16.1601 133.344 14.5213C133.344 12.8825 133.019 11.4958 132.364 10.3612C131.709 9.22663 130.837 8.3622 129.749 7.77991ZM128.758 17.7689C128.127 18.5253 127.267 18.8975 126.185 18.8975C125.103 18.8975 124.25 18.5193 123.631 17.7689C123.006 17.0125 122.693 15.938 122.693 14.5453C122.693 13.1286 123.012 12.048 123.643 11.2917C124.274 10.5353 125.121 10.1631 126.185 10.1631C127.267 10.1631 128.121 10.5413 128.758 11.2917C129.389 12.048 129.707 13.1286 129.707 14.5453C129.707 15.944 129.389 17.0185 128.758 17.7689Z",fill:r}),(0,n.jsx)("path",{d:"M139.264 7.942C139.036 8.15811 138.819 8.41023 138.615 8.69237C138.549 8.78842 138.399 8.7404 138.399 8.62034V7.29367C138.399 7.22764 138.344 7.17361 138.278 7.17361H135.249C135.183 7.17361 135.129 7.22764 135.129 7.29367V21.7909C135.129 21.857 135.183 21.911 135.249 21.911H138.531C138.597 21.911 138.651 21.857 138.651 21.7909V13.4588C138.651 12.7324 138.765 12.1501 138.988 11.7119C139.21 11.2737 139.511 10.9555 139.883 10.7634C140.256 10.5653 140.683 10.4693 141.169 10.4693H143.874C143.94 10.4693 143.994 10.4152 143.994 10.3492V7.29367C143.994 7.22764 143.94 7.17361 143.874 7.17361H141.644C140.598 7.17962 139.805 7.43174 139.264 7.942Z",fill:r}),(0,n.jsx)("path",{d:"M157.518 10.3732C156.923 9.22663 156.106 8.3622 155.072 7.77991C154.038 7.19762 152.878 6.90347 151.592 6.90347C150.342 6.90347 149.188 7.20963 148.124 7.82193C147.06 8.43424 146.206 9.31068 145.569 10.4452C144.926 11.5798 144.607 12.9485 144.607 14.5513C144.607 16.1901 144.914 17.5768 145.527 18.7114C146.14 19.8459 146.97 20.7044 148.015 21.2927C149.061 21.881 150.221 22.1691 151.508 22.1691C153.148 22.1691 154.579 21.7669 155.811 20.9685C157.007 20.1941 157.789 19.0055 158.155 17.4027C158.173 17.3307 158.113 17.2587 158.035 17.2587H154.639C154.585 17.2587 154.543 17.2947 154.525 17.3427C154.333 17.931 153.99 18.3572 153.491 18.6093C152.968 18.8795 152.337 19.0115 151.592 19.0115C150.456 19.0115 149.596 18.6273 149.007 17.865C148.568 17.2947 148.292 16.5263 148.184 15.5718C148.178 15.4998 148.232 15.4397 148.304 15.4397H158.257C158.318 15.4397 158.366 15.3977 158.378 15.3377C158.402 15.2236 158.414 15.1096 158.414 15.0015C158.414 14.8635 158.414 14.7074 158.414 14.5393C158.414 12.9065 158.113 11.5198 157.518 10.3732ZM151.562 9.94099C152.662 9.94099 153.467 10.2832 153.978 10.9735C154.308 11.4117 154.531 11.964 154.645 12.6183C154.657 12.6904 154.603 12.7624 154.525 12.7624H148.46C148.382 12.7624 148.322 12.6904 148.346 12.6123C148.496 12.03 148.719 11.5318 149.025 11.1296C149.614 10.3372 150.462 9.94099 151.562 9.94099Z",fill:r}),(0,n.jsxs)("g",{"clip-path":"url(#clip0_7871_1728)",children:[(0,n.jsx)("path",{d:"M24.0421 0.176488C24.0421 0.129681 24.0235 0.0847902 23.9904 0.0516922C23.9572 0.0185942 23.9123 0 23.8654 0L0.17671 0C0.129843 0 0.0848966 0.0185942 0.0517571 0.0516922C0.0186176 0.0847902 0 0.129681 0 0.176488L0 11.8295C0 11.8763 0.0186176 11.9212 0.0517571 11.9543C0.0848966 11.9874 0.129843 12.006 0.17671 12.006H5.83383C5.88069 12.006 5.92564 11.9874 5.95878 11.9543C5.99192 11.9212 6.01054 11.8763 6.01054 11.8295V6.17949C6.01054 6.13268 6.02915 6.08779 6.06229 6.05469C6.09543 6.0216 6.14038 6.003 6.18725 6.003H23.8654C23.9123 6.003 23.9572 5.98441 23.9904 5.95131C24.0235 5.91821 24.0421 5.87332 24.0421 5.82651V0.176488Z",fill:r}),(0,n.jsx)("path",{d:"M18.2083 12.006C18.1615 12.006 18.1165 12.0246 18.0834 12.0577C18.0502 12.0908 18.0316 12.1357 18.0316 12.1825V17.8325C18.0316 17.8793 18.013 17.9242 17.9799 17.9573C17.9467 17.9904 17.9018 18.009 17.8549 18.009H0.17671C0.129843 18.009 0.0848966 18.0276 0.0517571 18.0607C0.0186176 18.0938 0 18.1387 0 18.1855L0 23.8355C0 23.8823 0.0186176 23.9272 0.0517571 23.9603C0.0848966 23.9934 0.129843 24.012 0.17671 24.012H23.8654C23.9123 24.012 23.9572 23.9934 23.9904 23.9603C24.0235 23.9272 24.0421 23.8823 24.0421 23.8355V12.1825C24.0421 12.1357 24.0235 12.0908 23.9904 12.0577C23.9572 12.0246 23.9123 12.006 23.8654 12.006H18.2083Z",fill:r})]}),(0,n.jsx)("defs",{children:(0,n.jsx)("clipPath",{id:"clip0_7871_1728",children:(0,n.jsx)("rect",{width:"24.0421",height:"24.012",fill:"white"})})})]})}function es(e){let{...t}=e;return(0,n.jsx)(l.so,{overflow:"hidden",align:"center",justify:"center",minH:"xl",bg:"tertiary.default",...t,children:(0,n.jsx)(et,{height:12})})}},61837:(e,t,s)=>{s.d(t,{A:()=>u});var n=s(6029),r=s(10174),l=s(76356),i=s(71024),a=s.n(i),o=s(55729),d=s(18970);let c=a()(()=>s.e(2135).then(s.bind(s,2135)),{loadableGenerated:{webpack:()=>[2135]},ssr:!1,loading:()=>(0,n.jsx)(l.az,{h:"[1000px]"})});function u(e){let{tabKey:t}=e,{location:s}=(0,o.useContext)(d.y$),i=s===d.cb.Widget;return(0,n.jsx)(r.tU.Panel,{tabKey:t,children:(0,n.jsx)(l.az,{bg:{mdDown:"surface.s0"},p:{base:"sm",md:i?"sm":void 0},children:(0,n.jsx)(c,{})})})}},62235:(e,t,s)=>{s.d(t,{A:()=>a});var n=s(6029),r=s(46222),l=s(8968),i=s(67430);let a=e=>{let{event:t}=e,{incidents:s,isLoading:a}=(0,i.L)();if(a||!s.length)return null;let o=[];return s.forEach(e=>{if("period"===e.incidentType)o.push({incidents:[],periodIncident:e});else{if(!o.length)return;o[o.length-1].incidents.push(e)}}),(0,n.jsx)(r.Zp,{children:(0,n.jsx)(l.A,{groupedIncidents:o,event:t})})}},64987:(e,t,s)=>{s.d(t,{A:()=>m});var n=s(6029),r=s(76356),l=s(82203),i=s.n(l),a=s(55729),o=s(494),d=s(18970),c=s(31830),u=s(22116),x=s(95084),h=s(18153),p=s(83373);let m=e=>{let{name:t,startDate:s,children:l,isClickable:m=!0}=e,{event:j}=(0,a.useContext)(d.y$),g=(0,c.A)(),y=(0,o.d4)(u.$F),v=!!(null==y?void 0:y.id),f=(0,o.wA)(),b=(0,p.oY)(j,g),C=(0,p.GY)(t,s,b);return m&&v?(0,n.jsx)(i(),{href:C,target:"_blank",onClick:()=>{(0,x.ke)({action:"click",location:"event_screen",type:"add_to_calendar_button"})},children:l}):(0,n.jsx)(r.az,{onClick:()=>{v||f((0,h.aS)()),(0,x.ke)({action:"click",location:"event_screen",type:"add_to_calendar_button"})},children:l})}},66081:(e,t,s)=>{s.d(t,{o:()=>c});var n=s(6029),r=s(55729),l=s(72369);let i=(0,r.createContext)(null);var a=s(50891),o=s(2274);let d=e=>!e.isLayoutDirty&&e.willUpdate(!1),c=({children:e,id:t,inherit:s=!0})=>{let c=(0,r.useContext)(l.L),u=(0,r.useContext)(i),[x,h]=function(){let e=function(){let e=(0,r.useRef)(!1);return(0,o.E)(()=>(e.current=!0,()=>{e.current=!1}),[]),e}(),[t,s]=(0,r.useState)(0),n=(0,r.useCallback)(()=>{e.current&&s(t+1)},[t]);return[(0,r.useCallback)(()=>a.Gt.postRender(n),[n]),t]}(),p=(0,r.useRef)(null),m=c.id||u;null===p.current&&((e=>!0==(!0===e)||"id"===e)(s)&&m&&(t=t?m+"-"+t:m),p.current={id:t,group:!0===s&&c.group||function(){let e=new Set,t=new WeakMap,s=()=>e.forEach(d);return{add:n=>{e.add(n),t.set(n,n.addEventListener("willUpdate",s))},remove:n=>{e.delete(n);let r=t.get(n);r&&(r(),t.delete(n)),s()},dirty:s}}()});let j=(0,r.useMemo)(()=>({...p.current,forceRender:x}),[h]);return(0,n.jsx)(l.L.Provider,{value:j,children:e})}},66301:(e,t,s)=>{s.d(t,{I:()=>m,x:()=>p});var n=s(6029),r=s(46787),l=s(71024),i=s.n(l),a=s(55729),o=s(45860),d=s(18970),c=s(77818),u=s(25145);let x=i()(()=>Promise.all([s.e(56591),s.e(14632),s.e(57202)]).then(s.bind(s,57202)),{loadableGenerated:{webpack:()=>[57202]}}),h=i()(()=>s.e(61609).then(s.bind(s,61609)),{loadableGenerated:{webpack:()=>[61609]}});function p(e){var t,s;let{eventId:l,leftTeam:i,rightTeam:p}=e,m=(0,a.useContext)(d.Ws),j=m===r.QCR.Football,g=m===r.QCR.Basketball,{data:y,isLoading:v}=(0,o.Ay)(r.cWY.featuredPlayers(i.id)),{data:f,isLoading:b}=(0,o.Ay)(r.cWY.featuredPlayers(p.id)),C=i.gender||p.gender||r.YT8.Male;if(v||b)return g?(0,n.jsx)(c.A,{gender:C}):(0,n.jsx)(u.A,{gender:C});let w=null==y||null==(t=y.featuredPlayers)?void 0:t[l],S=null==f||null==(s=f.featuredPlayers)?void 0:s[l];return(0,n.jsxs)(n.Fragment,{children:[j&&(0,n.jsx)(x,{leftPlayer:w,rightPlayer:S}),g&&(0,n.jsx)(h,{leftPlayer:w,rightPlayer:S})]})}let m=[r.QCR.Football,r.QCR.Basketball]},67459:(e,t,s)=>{s.d(t,{Hy:()=>j,lZ:()=>y,vA:()=>g,xw:()=>o});var n=s(46787),r=s(494),l=s(36002),i=s(30578),a=s(72753);function o(){let e=(0,r.d4)(a.aD),t=(0,r.d4)(e=>e.locale),s=(0,r.wA)();return()=>new Promise((r,a)=>{(async()=>{try{let a=e.uuid||(0,l.A)(),{token:o}=await n.win.fetchToken(a,t.geoIPAlpha2,t.region);s((0,i.AR)(o,a)),r(o)}catch(e){a()}})()})}var d=s(16503),c=s(95084),u=s(6029),x=s(78383),h=s.n(x),p=s(55729);let m=(0,p.createContext)({impressionSent:!1,setImpressionSent:h(),streamUrl:void 0,setStreamUrl:h()});function j(e){let[t,s]=(0,p.useState)(!1),[n,r]=(0,p.useState)(void 0),l=(0,p.useMemo)(()=>({impressionSent:t,setImpressionSent:s,streamUrl:n,setStreamUrl:r}),[t,n]);return(0,u.jsx)(m,{value:l,children:e.children})}function g(){return(0,p.useContext)(m)}function y(e,t){let{impressionSent:s,setImpressionSent:n}=g();return(0,d.e)(()=>{s||((0,c.Z4)(e,t?"autostarted":void 0),n(!0))})}},69408:(e,t,s)=>{s.d(t,{R:()=>h});var n=s(6029),r=s(10174),l=s(76356),i=s(55729),a=s(90248),o=s(46222),d=s(18970),c=s(52466),u=s(14831),x=s(63561);function h(){let{event:e}=(0,i.useContext)(d.y$),t=e.statusReason?"event.statusReason":(0,u.ux)(e)?"status.finalResultOnly":(0,x.WY)(e)?"event.coverageDowngradeInfo":void 0;return t?(0,n.jsx)(o.Zp,{children:(0,n.jsxs)(l.so,{br:"lg",px:"lg",py:"sm",align:"center",children:[(0,n.jsx)(c.G_L,{width:24,height:24,fill:"onSurface.nLv3",mr:"lg",my:"auto"}),(0,n.jsx)(r.EY,{textStyle:"body.small",children:(0,n.jsx)(a.A,{id:t,values:e.statusReason?{statusType:e.status.type,statusReason:(0,u.ap)(e.statusReason)}:void 0})})]})}):null}},69487:(e,t,s)=>{s.d(t,{Ay:()=>h});var n=s(6029),r=s(10292),l=s(10174),i=s(76356),a=s(55729),o=s(90248),d=s(64006),c=s(94156),u=s(18970),x=s(82536);let h=e=>{let{isOpen:t,setIsOpen:s,players:h,onPlayerClick:p,incident:m}=e,{event:j}=(0,a.useContext)(u.y$);if(!(null==h?void 0:h.length))return null;let g=m?(e=>{let{iceHockeyPenaltyType:t}=e;switch(e.incidentType){case"goal":return"goal";case"substitution":return"substitution";case"suspension":return null==t?void 0:t.key;default:return}})(m):void 0;return(0,n.jsx)(x.A,{isOpen:t,setIsOpen:s,header:null!=g?g:(0,n.jsx)(i.az,{h:"md"}),children:h.map(e=>{let t=m?((e,t)=>{let{player:s,assist1:n,assist2:r}=e,{playerIn:l,playerOut:i}=e;switch(e.incidentType){case"goal":return(null==s?void 0:s.id)===t.id?{descriptionId:"goal_scorer"}:(null==n?void 0:n.id)===t.id?{descriptionId:r?"ordinalAssist":"assistant",descriptionValues:{n:1}}:(null==r?void 0:r.id)===t.id?{descriptionId:"ordinalAssist",descriptionValues:{n:2}}:void 0;case"substitution":return(null==l?void 0:l.id)===t.id?{descriptionId:"substitutionIn"}:(null==i?void 0:i.id)===t.id?{descriptionId:"substitutionOut"}:void 0;default:return}})(m,e):void 0;return(0,n.jsx)(d.uc,{sportSlug:j.tournament.category.sport.slug,player:e,onClick:t=>{!e.disabled&&j.hasEventPlayerStatistics&&p&&(t.preventDefault(),p(e),s(!1))},children:(0,n.jsxs)(i.so,{md:{minW:"[400px]"},px:"lg",py:"sm",gap:"md",align:"center",_hover:{bg:e.disabled?void 0:"surface.s2"},cursor:e.disabled?"not-allowed":"pointer",children:[(0,n.jsx)(r.t,{id:e.id,name:e.name,size:48}),(0,n.jsxs)(i.az,{flexGrow:1,children:[(0,n.jsx)(l.EY,{display:"block",textStyle:"body.large",children:(0,n.jsx)(c.c,{entity:e})}),(null==t?void 0:t.descriptionId)&&(0,n.jsx)(l.EY,{textStyle:"assistive.default",color:"neutrals.nLv3",truncate:!0,children:(0,n.jsx)(o.A,{id:t.descriptionId,values:t.descriptionValues})})]})]})},e.id)})})}},69555:(e,t,s)=>{s.d(t,{U:()=>c});var n=s(6029),r=s(32523),l=s(10174),i=s(76356),a=s(94565),o=s(90248),d=s(52466);let c=()=>(0,n.jsxs)("div",{children:[(0,n.jsx)(r.E,{uniqueKey:"tennis-power-cl",br:"lg",height:148,mb:"sm",animate:!0}),(0,n.jsxs)(i.so,{position:"relative",bg:"surface.s2",br:"sm",justify:"space-between",align:"center",p:"sm",children:[(0,n.jsxs)(i.az,{_hover:{bg:"neutrals.nLv5"},px:"sm",py:"xs",br:"md",cursor:"pointer",children:[(0,n.jsxs)(l.EY,{display:"block",textStyle:"body.medium",color:"neutrals.nLv1",children:[(0,n.jsx)(o.A,{id:"event.tennisPower.title"}),(0,n.jsx)(d.G_L,{width:"16",height:"16",ml:"xs"})]}),(0,n.jsx)(l.EY,{display:"block",textStyle:"body.small",color:"neutrals.nLv3",children:(0,n.jsx)(o.A,{id:"event.tennisPower.description"})})]}),(0,n.jsx)(i.az,{mr:"md",children:(0,n.jsx)(a.lM,{checked:!1})})]})]})},70465:(e,t,s)=>{s.d(t,{J:()=>T,A:()=>P});var n=s(6029),r=s(46787),l=s(22375),i=s(10174),a=s(76356),o=s(90248),d=s(90510),c=s(47125),u=s(46222),x=s(64287),h=s(55729),p=s(18970),m=s(52466),j=s(89827),g=s(40134);function y(e){let{score:t}=e;return(null==t?void 0:t.score)?(null==t?void 0:t.wickets)===void 0||(null==t?void 0:t.overs)===void 0?(0,n.jsx)(n.Fragment,{children:null==t?void 0:t.score}):(0,n.jsxs)(n.Fragment,{children:[(0,g.gj)(t)," (",(0,j.M)(null==t?void 0:t.overs,1),")"]}):null}function v(e){let{isBatting:t,score:s,isLeft:r,isLive:l}=e,o=(null==s?void 0:s.score)!==void 0||!l;return(0,n.jsxs)(a.so,{gap:"lg",h:"xl",align:"center",children:[!r&&l&&(t?(0,n.jsx)(m.BM3,{fill:"sofaSingles.live"}):(0,n.jsx)(m.Pvq,{fill:"sofaSingles.live"})),o&&(0,n.jsx)(i.EY,{color:l&&t?"status.live":"neutrals.nLv1",textStyle:"table.medium",display:"block",children:(0,n.jsx)(y,{score:s})}),r&&l&&(t?(0,n.jsx)(m.BM3,{fill:"sofaSingles.live"}):(0,n.jsx)(m.Pvq,{fill:"sofaSingles.live"}))]})}function f(e){let{messageId:t,value:s}=e;return void 0===s?null:(0,n.jsx)(i.EY,{h:"xl",textStyle:"table.medium",color:"neutrals.nLv3",display:"block",children:(0,n.jsx)(o.A,{id:t,values:{rate:s}})})}function b(){var e;let{event:t,leftTeam:s,leftScore:l,rightScore:i}=(0,h.useContext)(p.y$),o=t.status.type===r.XUj.InProgress,d=t.currentBattingTeamId?t.currentBattingTeamId===s.id?r.cxP.Left:r.cxP.Right:void 0,c=d===r.cxP.Left?l:d===r.cxP.Right?i:void 0,u=[...new Set([...Object.keys(l.innings||{}),...Object.keys(i.innings||{})])].sort();if(0===u.length)return null;let x=u[u.length-1],m=t.currentBattingTeamId===s.id;return(0,n.jsxs)(a.az,{px:"xs",children:[u.map(e=>{var s,o;let c=e===x&&d&&t.status.type===r.XUj.InProgress;return(0,n.jsxs)(a.so,{justify:"space-between",align:"center",children:[(0,n.jsx)(v,{score:null==(s=l.innings)?void 0:s[e],isLeft:!0,isLive:c,isBatting:c&&d===r.cxP.Left}),(0,n.jsx)(v,{score:null==(o=i.innings)?void 0:o[e],isLive:c,isBatting:c&&d===r.cxP.Right})]},e)}),c&&(null==(e=c.innings)?void 0:e[x])&&o&&(0,n.jsxs)(a.so,{direction:"column",align:m?"flex-start":"flex-end",children:[(0,n.jsx)(f,{messageId:"cricket_current_run_rate",value:c.innings[x].runRate}),(0,n.jsx)(f,{messageId:"cricket_target_run_rate",value:c.innings[x].targetRunRate})]})]})}var C=s(81484),w=s(90223),S=s(63561);let k=e=>{let{startTimestamp:t}=e;return(0,l.cK)((0,l.pp)(t))?(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(o.A,{id:"today"})," ",(0,n.jsx)(d.ib,{value:1e3*t})]}):(0,n.jsx)(d.XU,{value:1e3*t,day:"numeric",month:"short",year:"numeric",hour:"numeric",minute:"numeric"})},A=e=>{let{event:t,isPowerGraph:s=!1}=e,{time:l,status:a,currentPeriodStartTimestamp:d}=t,c=a.type===r.XUj.InProgress;if((0,S.uk)(6e4,c),!l)return null;let u=0;for(let e in l)e.startsWith("period")&&(u+=l[e]);return(c&&d&&(u+=Math.round(Date.now()-1e3*d)/1e3),s&&c)?a.code>r.sum["1st set"]?(0,n.jsxs)(i.EY,{textTransform:"lowercase",textStyle:s?"display.small":"body.small",children:["(",(0,n.jsx)(o.A,{id:"total"}),": ",(0,S.jQ)(u),")"]}):null:u>0?c?(0,n.jsxs)(i.EY,{textTransform:"lowercase",textStyle:s?"display.small":"body.small",children:["(",(0,n.jsx)(o.A,{id:"total"}),": ",(0,S.jQ)(u),")"]}):(0,n.jsxs)(i.EY,{textStyle:s?"display.small":"body.small",color:s?void 0:"neutrals.nLv3",children:[" - ",(0,S.jQ)(u)]}):null},_=e=>{let{event:t}=e,s=t.tournament.category.sport.slug,l=(0,w.sw)(t),a=t.status.type===r.XUj.InProgress,d=s===r.QCR.Tennis,u=(0,S.Sw)(t),h=(0,S.vJ)(s),p=[];if(l)p.push((0,n.jsx)(i.EY,{textStyle:"body.small",color:"status.error.default",children:(0,n.jsx)(C.fP,{id:(0,w.B_)(t),short:!0})},"specialStatusDescription"));else if(t.isAwarded)p.push((0,n.jsx)(i.EY,{textStyle:"body.small",color:"status.error.default",children:(0,n.jsx)(o.A,{id:"awarded"})},"statusAwarded"));else if(d)a?(p.push((0,n.jsx)(A,{event:t},"tennisLiveTotalTime")),p.push((0,n.jsx)(i.EY,{textStyle:"body.small",color:"secondary.default",ml:"xs",children:(0,n.jsx)(C.fP,{id:(0,w.B_)(t),short:!0})},"tennisLiveDescription"))):(p.push((0,n.jsx)(i.EY,{textStyle:"body.small",color:"neutrals.nLv3",children:(0,n.jsx)(C.fP,{id:(0,w.B_)(t),short:!0})},"tennisFinishedDescription")),p.push((0,n.jsx)(A,{event:t},"tennisFinishedTotalTime")));else if(u)p.push((0,n.jsxs)(i.EY,{textStyle:"body.small",color:"secondary.default",children:[h&&(0,n.jsx)(o.A,{id:"time_left",values:{time:u}}),u]},"statusDescription"));else{let e=s===r.QCR.MMA&&t.status.code===r.sum.Ended;p.push((0,n.jsx)(i.EY,{textStyle:"body.small",color:a?"status.live":"neutrals.nLv3",children:(0,n.jsx)(C.fP,{id:(0,w.B_)(t),short:!e})},"statusDescription")),t.time&&t.time.currentPeriodStartTimestamp&&void 0!==t.time.initial&&t.status.type===r.XUj.InProgress&&!w.p2.includes(t.status.code)&&(0,S.c5)(t)!==r.QCR.Darts&&(p.push((0,n.jsx)(i.EY,{textStyle:"body.small",color:"secondary.default",mx:"2xs",children:"•"},"bullet")),s!==r.QCR.Darts&&p.push((0,n.jsxs)(i.EY,{textStyle:"body.small",color:"secondary.default",children:[(0,n.jsx)(x.lx,{time:t.time,status:t.status,currentPeriodStartTimestamp:t.currentPeriodStartTimestamp,hasMinuteBlinker:!0}),(0,n.jsx)(c.I,{})]},"progressTimer")))}return(0,n.jsx)(n.Fragment,{children:p})},T=e=>{let{event:t}=e,s=t.status.type===r.XUj.InProgress,l=t.currentPeriodStartTimestamp&&Math.round(Date.now()-1e3*t.currentPeriodStartTimestamp)/1e3,o=l&&(0,S.jQ)(l);return s?(0,n.jsxs)(a.so,{w:"100%",gap:"xs",align:"center",justifyContent:"center",children:[(0,n.jsxs)(i.EY,{textStyle:"display.small",color:"status.live",ml:"xs",children:[(0,n.jsx)(C.fP,{id:(0,w.B_)(t),short:!0})," - ",o]}),(0,n.jsx)(A,{event:t,isPowerGraph:!0},"tennisFinishedTotalTime")]}):(0,n.jsxs)(a.az,{children:[(0,n.jsx)(i.EY,{textStyle:"display.small",children:(0,n.jsx)(C.fP,{id:(0,w.B_)(t),short:!0})}),(0,n.jsx)(A,{event:t,isPowerGraph:!0},"tennisFinishedTotalTime")]})},P=e=>{let{event:t}=e,s=t.tournament.category.sport.slug===r.QCR.Cricket,l=t.status.type===r.XUj.NotStarted||t.status.type===r.XUj.Postponed||t.status.type===r.XUj.Canceled;return!l||t.note||s?(0,n.jsx)(a.az,{hideFrom:s||t.note?void 0:"md",children:(0,n.jsx)(u.Zp,{children:(0,n.jsxs)(a.BJ,{p:"sm",gap:"sm",children:[s?(0,n.jsx)(b,{}):l?null:(0,n.jsxs)(a.so,{hideFrom:"md",justify:"space-between",align:"center",p:"xs",children:[(0,n.jsx)(i.EY,{textStyle:"body.small",color:"neutrals.nLv3",children:(0,n.jsx)(k,{startTimestamp:t.startTimestamp})}),(0,n.jsx)(i.EY,{textStyle:"body.small",color:"neutrals.nLv3",children:(0,n.jsx)(_,{event:t})})]}),t.note&&(0,n.jsx)(i.EY,{textStyle:"body.small",children:t.note})]})})}):null}},71791:(e,t,s)=>{s.d(t,{n:()=>i});var n=s(6029),r=s(32523),l=s(76356);let i=e=>{let{withScoreGraph:t}=e;return(0,n.jsx)(l.az,{pt:t?"[124px]":"[76px]",pb:"[28px]",children:(0,n.jsx)(r.E,{uniqueKey:"win-probability-cl",animate:!0,height:80,br:"sm"})})}},73844:(e,t,s)=>{s.d(t,{N:()=>x});var n=s(6029),r=s(46787),l=s(10174),i=s(76356),a=s(55729),o=s(90248),d=s(46222),c=s(52466),u=s(82536);let x=e=>{let{event:t}=e,[s,x]=(0,a.useState)(!1),h=t.status.type===r.XUj.InProgress||t.status.type===r.XUj.Finished,p=void 0!==t.homeScore.display||void 0!==t.homeScore.current,m=void 0!==t.awayScore.display||void 0!==t.awayScore.current;return t.crowdsourcingDataDisplayEnabled&&h&&p&&m?(0,n.jsx)(d.Zp,{children:(0,n.jsxs)(i.so,{onClick:()=>x(e=>!e),py:"sm",px:"lg",align:"center",cursor:"pointer",children:[(0,n.jsx)(c.Mv5,{fill:"sofaSingles.crowdsourcingLive",w:24,h:24,mr:"lg"}),(0,n.jsx)(l.EY,{textStyle:"body.small",children:(0,n.jsx)(o.A,{id:"crowdsourcing_unofficial_result"})}),(0,n.jsx)(u.A,{isOpen:s,setIsOpen:x,children:(0,n.jsxs)(i.az,{px:"lg",maxW:{md:"[312px]"},children:[(0,n.jsx)(i.so,{w:"100%",justify:"center",align:"center",mt:{md:"lg"},children:(0,n.jsx)(i.az,{w:"5xl",h:"5xl",br:"50%",p:"md",bg:"status.crowdsourcingLiveHighlight",children:(0,n.jsx)(c.Mv5,{fill:"sofaSingles.crowdsourcingLive",w:32,h:32})})}),(0,n.jsx)(l.H3,{textStyle:"display.large",my:"lg",children:(0,n.jsx)(o.A,{id:"crowdsourcing_displaying_result_title"})}),(0,n.jsx)(l.EY,{textStyle:"body.mediumParagraph",children:(0,n.jsx)(o.A,{id:"crowdsourcing_displaying_result_info_text"})})]})})]})}):null}},75289:(e,t,s)=>{s.d(t,{A:()=>d});var n=s(6029),r=s(10174),l=s(71024),i=s.n(l),a=s(56132);let o=i()(()=>Promise.all([s.e(29695),s.e(67536)]).then(s.bind(s,67536)),{loadableGenerated:{webpack:()=>[67536]},ssr:!1});function d(){return(0,n.jsx)(r.tU.Panel,{tabKey:a.x.Commentary,children:(0,n.jsx)(o,{})})}},75467:(e,t,s)=>{s.d(t,{A:()=>L});var n=s(6029),r=s(10174),l=s(55729),i=s(494),a=s(18970),o=s(53198),d=s(46787),c=s(46222),u=s(53255),x=s(173),h=s(76356),p=s(90248),m=s(74207),j=s(21287),g=s(37455);function y(e){let{countryOddsProvider:t}=e;return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(r.EY,{display:"block",textStyle:"assistive.default",color:"neutrals.nLv3",children:(0,n.jsx)(p.A,{id:"featured_by"})}),(0,n.jsx)(m.r,{selectedProvider:t,size:"48x24",location:a.cb.MonetizedOddsTab})]})}let v=e=>{let{isBranded:t,countryOddsProvider:s}=e,r=(0,i.d4)(g.y$),l=t||!(null==s?void 0:s.branded);return r?(0,n.jsxs)(h.so,{justify:"space-between",align:"center",gap:"sm",children:[(0,n.jsx)(j.V,{}),!l&&(0,n.jsx)(h.so,{align:"center",gap:"sm",children:(0,n.jsx)(y,{countryOddsProvider:s})})]}):l?null:(0,n.jsx)(h.so,{justify:"flex-end",align:"center",gap:"sm",px:"sm",children:(0,n.jsx)(y,{countryOddsProvider:s})})};var f=s(32523),b=s(53337),C=s(64046),w=s(6086);function S(e){let{countryOddsProvider:t,groupedMarketOdds:s,secondary:r,onClick:l}=e;return s?(0,n.jsx)(c.Zp,{children:(0,n.jsx)(h.az,{px:"sm",pb:"sm",pt:"xs",children:s.odds.map((e,i)=>{let a=0===i?void 0:s.odds[i-1],o=(null==a?void 0:a.isLive)!==e.isLive;return(0,n.jsx)(w.A,{market:e,secondary:r,onClick:null==l?void 0:l(e.marketName),hideMarketName:!o,showRegulationImages:!1,hideProviderLogo:!0,showLiveLabel:o&&e.isLive,selectedProvider:t},e.id)})})},s.marketId):null}let k=e=>{var t;let{eventId:s,isLive:r,countryOddsProvider:i}=e,{allEventOdds:o,error:d}=(0,b.k)(i,s,r),{ref:c,makeOnClick:u}=(0,C.kW)({countryOddsProvider:i,type:C.jF.Additional,marketName:null==o||null==(t=o[0])?void 0:t.marketName,location:a.cb.MonetizedOddsTab}),{location:x}=(0,l.useContext)(a.y$),p=x===a.cb.Widget;if(d)return null;if(!o)return(0,n.jsx)(f.E,{uniqueKey:"odds-tab"});let m=(e=>{let t,s=[];return e.forEach(e=>{t===e.marketId?s[s.length-1].odds.push(e):(t=e.marketId,s.push({marketId:e.marketId,marketName:e.marketName,odds:[e]}))}),s})(o),j=e=>u(e,C.ki.OddsValue);return(0,n.jsx)(h.so,{direction:"column",gap:"sm",ref:c,children:m.map(e=>(0,n.jsx)(S,{countryOddsProvider:i,groupedMarketOdds:e,secondary:!p,onClick:j},e.marketId))})};var A=s(54270),_=s(50526),T=s(68789),P=s(86522);let E=()=>{let{event:e}=(0,l.useContext)(a.y$),t=(0,T.ks)(e),s=e.status.type===d.XUj.InProgress,r=((e,t)=>{var s,n;let r=(0,i.d4)(P.g);if(!e||!e.branded)return;let l=e.provider.id;if(null==r||null==(n=r.oddsTab)||null==(s=n[l])?void 0:s[t])return null==r?void 0:r.oddsTab[l]})(t,"oddsTab");return(0,n.jsxs)(n.Fragment,{children:[r&&(0,n.jsx)(u.O,{entityId:e.id,branding:r,location:"monetized_odds_tab"}),(0,n.jsxs)(c.BU,{children:[(0,n.jsx)(v,{countryOddsProvider:t,isBranded:!!r}),(0,n.jsx)(_.A,{}),(0,n.jsx)(k,{countryOddsProvider:t,eventId:e.id,isLive:s}),(0,n.jsx)(A._,{}),(0,n.jsx)(x.z,{provider:t})]})]})};var I=s(56132);function L(){let e=(0,i.d4)(g._I),t=(0,i.d4)(g.SM),{location:s}=(0,l.useContext)(a.y$),d=s===a.cb.Widget;return(0,n.jsx)(r.tU.Panel,{tabKey:I.x.AdditionalOdds,children:e?(0,n.jsx)(o.i,{providers:t||[],placement:d?"widget":"mobile"}):(0,n.jsx)(E,{})})}},77285:(e,t,s)=>{s.d(t,{I:()=>i,k:()=>a});var n=s(55729),r=s(947),l=s(8900);let i="-playoffs";function a(e,t){var s;let[a,o]=(0,n.useState)({label:"",value:""}),[d,c]=(0,n.useState)(),u=(0,r.A)(),x=e.map(e=>((e,t,s)=>{let n=t.split(i),r=n[0],a=n.length>1;return{label:(0,l.y)(e,r,s,a),value:t}})(u,e,t));return(0,n.useEffect)(()=>{var e,t;if((null==(e=x[0])?void 0:e.value)!==(null==d?void 0:d.value)||!a.value&&x.length&&x[0]){let e=x.find(e=>"rating"===e.value);o(null!=(t=null!=e?e:x[0])?t:{label:"",value:""}),c(null!=e?e:x[0])}},[x.length,null==(s=x[0])?void 0:s.value]),{selectedStat:a,setSelectedStat:o,statItems:x}}},77708:(e,t,s)=>{s.d(t,{Vj:()=>n.A,Ir:()=>r.Ir}),s(3384),s(30685),s(6664),s(83094),s(28105);var n=s(84449),r=s(92667);s(40094)},77818:(e,t,s)=>{s.d(t,{A:()=>i});var n=s(6029),r=s(76356),l=s(46222);function i(e){let{gender:t}=e;return(0,n.jsxs)(l.Zp,{children:[(0,n.jsx)(l.Zp.Header,{titleId:"featured_players",values:{gender:t}}),(0,n.jsx)(r.az,{h:"[384px]"})]})}},79796:(e,t,s)=>{s.d(t,{v:()=>b});var n=s(6029),r=s(33144),l=s(46787),i=s(10174),a=s(76356),o=s(93338),d=s(55729),c=s(90248),u=s(45860),x=s(46222),h=s(31830),p=s(80055),m=s(30774);function j(){return(0,n.jsx)(x.Zp,{children:(0,n.jsx)("div",{style:{height:272}})})}var g=s(41735);let y=[0,.35,.55,.8,1],v=e=>{let{typeKey:t,teamId:s,distributions:l}=e,u="scoredGoals"===t?{message:"details.scored",color:"colors.status.success.default"}:{message:"details.conceded",color:"colors.status.error.default"},x=Math.max(...l.periods.map(e=>{var s;return null!=(s=e[t])?s:0})),h=function(e,t){let s=(0,d.useContext)(g.ThemeContext),n=function(e){let t=[0];if(e<4)for(let s=1;s<=e;s++)t.push(s);else{let s=Math.floor(e/4),n=e%4;for(let e=1;e<=4;e++){for(let n=0;n{var r;let l;0===s?l="scoredGoals"===t?{borderTopLeftRadius:4}:{borderBottomLeftRadius:4}:5===s&&(l="scoredGoals"===t?{borderTopRightRadius:4}:{borderBottomRightRadius:4});let o=null!=(r=e[t])?r:0,d=h(o);return(0,n.jsx)(a.az,{alignSelf:"center",h:"xl",w:"xl",pt:"xs",pb:"2xs",mr:2===s?"2xs":void 0,textAlign:"center",style:{...l,backgroundColor:d},children:(0,n.jsx)(i.EY,{textStyle:"display.small",color:"surface.s1",textAlign:"center",children:o})},e.id)})]})},f=e=>{var t,s;let{event:r,home:l,away:o,overall:d=!1}=e,u=(0,h.A)(),x=(0,m.w)(r.tournament),j=l.find(e=>d?"overall"===e.type:"home"===e.type),g=o.find(e=>d?"overall"===e.type:"away"===e.type);return j&&g?(0,n.jsxs)(a.az,{p:"lg",pb:"sm",children:[(0,n.jsx)(v,{typeKey:"scoredGoals",teamId:r.homeTeam.id,distributions:j}),(0,n.jsx)(v,{typeKey:"concededGoals",teamId:r.awayTeam.id,distributions:g}),(0,n.jsx)(a.az,{h:"lg"}),(0,n.jsx)(v,{typeKey:"scoredGoals",teamId:r.awayTeam.id,distributions:g}),(0,n.jsx)(v,{typeKey:"concededGoals",teamId:r.homeTeam.id,distributions:j}),(0,n.jsx)(a.az,{position:"relative",h:"lg",children:(0,n.jsx)(a.az,{position:"absolute",w:"[150px]",top:"0",right:"-2xs",children:(0,n.jsx)(i.EY,{textStyle:"table.medium",color:"neutrals.nLv3",children:(0,n.jsxs)(a.so,{justify:"space-between",children:[(0,n.jsx)(a.az,{position:"relative",left:"-xs",children:"00'"}),(0,n.jsx)(a.az,{position:"relative",left:"-xs",children:"15'"}),(0,n.jsx)(a.az,{position:"relative",left:"-2xs",children:"30'"}),(0,n.jsx)(a.az,{children:"45'"}),(0,n.jsx)(a.az,{position:"relative",left:"-2xs",children:"60'"}),(0,n.jsx)(a.az,{position:"relative",left:"-xs",children:"75'"}),(0,n.jsx)(a.az,{position:"relative",left:"-xs",children:"90'"})]})})})}),(0,n.jsx)(i.P,{children:(0,n.jsx)(i.EY,{textStyle:"assistive.default",color:"neutrals.nLv3",children:(0,n.jsx)(c.A,{id:"details.goalDistribution",values:{homeTeam:(0,p.s)(r.homeTeam,u),awayTeam:(0,p.s)(r.awayTeam,u),homeMatchesCount:j.matches,awayMatchesCount:g.matches,tournament:x,hasSeason:!!(null==(t=r.season)?void 0:t.year),season:null==(s=r.season)?void 0:s.year}})})})]}):null};function b(e){var t,s;let{event:r}=e,[o,h]=(0,d.useState)("all"),p=null==(t=r.tournament.uniqueTournament)?void 0:t.id,m=null==(s=r.season)?void 0:s.id,{data:g,isLoading:y}=(0,u.Ay)(p&&m?l.cWY.goalDistributions(r.homeTeam.id,p,m):null),{data:v,isLoading:b}=(0,u.Ay)(p&&m?l.cWY.goalDistributions(r.awayTeam.id,p,m):null);return y||b?(0,n.jsx)(j,{}):g&&v?(0,n.jsxs)(x.Zp,{children:[(0,n.jsx)(x.Zp.Header,{titleId:"football_goal_distribution"}),(0,n.jsxs)(i.tU,{variant:"tertiary",initialValue:o,onChange:e=>{h(e)},children:[(0,n.jsx)(a.az,{pl:"lg",pt:"sm",children:(0,n.jsxs)(i.tU.List,{children:[(0,n.jsx)(i.tU.Tab,{tabKey:"all",children:(0,n.jsx)(c.A,{id:"all"})}),(0,n.jsx)(i.tU.Tab,{tabKey:"homeAway",children:(0,n.jsx)(c.A,{id:"details.homeAway"})})]})}),(0,n.jsx)(i.tU.Panel,{tabKey:"all",children:(0,n.jsx)(f,{event:r,home:g.goalDistributions,away:v.goalDistributions,overall:!0})}),(0,n.jsx)(i.tU.Panel,{tabKey:"homeAway",children:(0,n.jsx)(f,{event:r,home:g.goalDistributions,away:v.goalDistributions})})]})]}):null}},80370:(e,t,s)=>{s.d(t,{f:()=>Z});var n=s(6029),r=s(46787),l=s(10174),i=s(76356),a=s(55729),o=s(90248),d=s(947),c=s(18970),u=s(69487),x=s(67087),h=s(64006),p=s(9835),m=s(81484),j=s(80055),g=s(52466),y=s(41164),v=s(41735),f=s(82536),b=s(47550);let C=[{href:"https://app.sofascore.com/eAnU/69sriykv",name:"PlayStore",Icon:g.ik$},{href:"https://app.sofascore.com/L1k1/65390mw7",name:"AppStore",Icon:g.tzj},{href:"https://appgallery.huawei.com/#/app/C102243091?sharePrepath=ag&channelId=EURSMKT20200807SS&detailType=0",name:"AppGallery",Icon:g._s0},{href:"https://galaxy.store/okgkggasg",name:"GalaxyStore",Icon:g.m7K},{href:"https://www.kaiostech.com/store/apps/?bundle_id=com.sofascore.results",name:"KaiStore",Icon:g.B1S}],w=e=>{let{downloadURL:t,theme:s}=e;return(0,n.jsxs)(i.so,{children:[(0,n.jsx)(l.Mz,{display:"block",href:t,target:"_blank",rel:"noreferrer",br:"sm",p:"xs",bg:"surface.s2",h:"7xl",w:"7xl",children:(0,n.jsx)("img",{width:64,height:64,src:"/static/images/banner/dl-qr-".concat("light"===s?"light":"dark",".webp?v=1"),alt:"Sofascore App QR code"})}),(0,n.jsx)(i.so,{br:"sm",wrap:"wrap",bg:"surface.s2",w:"[148px]",h:"7xl",align:"center",px:"xl",py:"sm",ml:"sm",children:C.map(e=>{let{name:t,href:s,Icon:r}=e;return(0,n.jsx)(l.Mz,{display:"block",ml:"sm",href:s,target:"_blank",rel:"noreferrer",w:"xl",h:"xl",children:(0,n.jsx)(r,{fill:"onSurface.nLv1"})},t)})})]})},S=e=>{let{downloadURL:t}=e;return(0,n.jsxs)(l.Mz,{display:"flex","aria-label":"Download Sofascore",href:t,target:"_blank",rel:"noreferrer",flexDirection:"column",children:[(0,n.jsx)(g.m68,{h:48,w:160,mb:"lg"}),(0,n.jsx)(g.WkF,{h:48,w:160})]})},k=()=>(0,n.jsxs)(i.so,{direction:"column",gap:"xl",align:"center",pb:"sm",children:[(0,n.jsx)(l.EY,{textAlign:"center",children:(0,n.jsx)(o.A,{id:"passing_network_teaser"})}),(0,n.jsx)(l.EY,{textStyle:"display.large",textAlign:"center",children:(0,n.jsx)(o.A,{id:"basic.downloadSofascore"})})]}),A=e=>{let{goal:t,onClose:s}=e;return(0,n.jsxs)(i.so,{justify:"space-between",px:"xl",align:"center",pt:"lg",pb:"sm",children:[(0,n.jsx)(i.az,{w:"xl"}),(0,n.jsxs)(l.EY,{textStyle:"display.large",textAlign:"center",display:"block",children:[t.homeScore," - ",t.awayScore]}),(0,n.jsx)(i.az,{w:"xl",h:"xl",children:(0,n.jsx)(i.I4.button,{onClick:s,hideBelow:"md",p:"0",children:(0,n.jsx)(g.zQC,{icon:"close",fill:"onSurface.nLv1"})})})]})},_=e=>{let{theme:t}=e;return(0,n.jsx)(i.az,{pb:"[69%]",position:"relative",w:"100%",children:(0,n.jsx)("video",{width:"100%",height:"auto",loop:!0,playsInline:!0,muted:!0,autoPlay:!0,preload:"none",style:{position:"absolute",left:0,top:0,width:"100%",height:"100%",borderRadius:"16px"},children:(0,n.jsx)("source",{src:"/static/videos/passing_network_teaser_".concat("light"===t?"light":"dark",".mp4"),type:"video/mp4"})})})},T=e=>{let{goal:t,teaserOpened:s,setTeaserOpened:r}=e,{isMobile:a}=(0,l.$c)(),o=(0,v.useTheme)(),d=(0,b.b9)(b.tz.FootballPassingNetworkTeaser);return(0,n.jsx)(f.A,{isOpen:s,setIsOpen:r,header:(0,n.jsx)(A,{goal:t,onClose:()=>r(!1)}),footer:null,children:(0,n.jsxs)(i.so,{px:{base:"md",md:"xl"},direction:"column",gap:"lg",align:"center",pb:"xl",w:{base:"auto",md:"[340px]"},position:"relative",children:[(0,n.jsx)(_,{theme:o.name}),(0,n.jsx)(k,{}),a?(0,n.jsx)(S,{downloadURL:d}):(0,n.jsx)(w,{downloadURL:d,theme:o.name})]})})},P=e=>{let{scores:t,isCompact:s=!1}=e;return t.every(e=>"number"==typeof e)?(0,n.jsx)(l.EY,{minW:"fit",textStyle:s?"display.small":"display.large",display:"block",letterSpacing:"-0.1px",children:t.join(" - ")}):null},E=e=>{var t;let{goal:s,isLeft:o,scores:d}=e,{event:u}=(0,a.useContext)(c.y$),[x,h]=(0,a.useState)(!1);return(0,y.c5)(u)===r.QCR.Football&&(null==(t=s.footballPassingNetworkAction)?void 0:t.length)?(0,n.jsxs)(i.so,{grow:999,justify:o?"flex-end":"flex-start",children:[(0,n.jsx)(l.$n,{variant:"outline",size:"tertiary",onClick:e=>{e.preventDefault(),e.stopPropagation(),h(!0)},bg:"surface.s2",children:(0,n.jsxs)(i.ov,{gap:"sm",br:"xl",children:[(0,n.jsx)(g.stC,{}),(0,n.jsx)(P,{scores:d})]})}),(0,n.jsx)(T,{goal:s,teaserOpened:x,setTeaserOpened:h})]}):null};var I=s(24854),L=s(57724);let z=e=>{let{align:t,hover:s,text:r,isPrimary:i}=e;return(0,n.jsx)(l.EY,{h:"lg",color:i?"neutrals.nLv1":"neutrals.nLv3",textAlign:t,display:"block",truncate:!0,_hover:s?{color:"primary.default"}:void 0,children:r})},H=e=>{let{ternary:t,align:s,children:r,notMain:l}=e;return(0,n.jsx)(i.so,{maxW:"100%",overflow:"hidden",h:l?void 0:{base:t?"7xl":"3xl",md:t?"[60px]":"2xl"},direction:t?"column":"start"===s?"row":"row-reverse",align:t?"start"===s?"flex-start":"flex-end":"center",justify:"center",gap:t?void 0:"xs",children:r})},M=e=>{let{primary:t,secondary:s,ternary:l,primaryHover:o,secondaryHover:d,ternaryHover:u,align:x}=e,h=(0,a.useContext)(c.Ws);return L.QC.includes(h)?(0,n.jsx)(H,{align:x,children:t&&(0,n.jsx)(z,{text:t,hover:o,align:x,isPrimary:!1})}):t&&s&&h===r.QCR.IceHockey?(0,n.jsx)(H,{ternary:!0,align:x,children:(0,n.jsx)(H,{notMain:!0,align:x,children:(0,n.jsxs)(i.so,{direction:"column",w:"100%",maxW:"100%",children:[(0,n.jsx)(z,{text:t,hover:o,align:x,isPrimary:!0}),(0,n.jsx)(z,{text:s,hover:d,align:x}),l&&(0,n.jsx)(z,{text:l,hover:u,align:x})]})})}):(0,n.jsxs)(H,{align:x,children:[t&&(0,n.jsx)(z,{text:t,hover:o,align:x,isPrimary:!0}),s&&(0,n.jsx)(z,{text:s,hover:d,align:x}),l&&(0,n.jsx)(z,{text:l,hover:u,align:x})]})};var R=s(12337),Y=s(86903),F=s(41004);let O=["minor","major"],D=e=>{var t;let{suspension:s}=e,r=(0,F.Bj)(s.iceHockeyPenaltyType),i=null==s||null==(t=s.iceHockeyPenaltyType)?void 0:t.key,a=s.duration?(0,Y.M)(s.duration/60):void 0;return(0,n.jsxs)(l.EY,{mb:"2xs",children:[r&&!O.includes(r)&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(p.H7,{id:r}),":"]})," ",i&&(0,n.jsx)(p.H7,{id:i}),a&&" | ".concat(a,"'")]})},V=e=>{let{suspension:t,locale:s,isLeft:r}=e,{player:a,suspensionDrawnByPlayer:d,suspensionServedByPlayer:c,iceHockeyPenaltyType:u}=t,x=a&&(0,j.s)(a,s),h=c&&(0,j.s)(c,s),p=d&&(0,j.s)(d,s);return(0,n.jsxs)(i.so,{direction:"column",py:"md",align:r?"flex-start":"flex-end",children:[(0,n.jsx)(D,{suspension:t}),x&&(0,n.jsx)(l.EY,{textStyle:"body.small",color:"neutrals.nLv3",children:x}),h&&(0,n.jsxs)(l.EY,{textStyle:"body.small",color:"neutrals.nLv3",children:[(0,n.jsx)(o.A,{id:"penalty_served_by"}),": ",h]}),p&&(null==u?void 0:u.key)!=="embellishment"&&(0,n.jsxs)(l.EY,{textStyle:"body.small",color:"neutrals.nLv3",children:[(0,n.jsx)(o.A,{id:"penalty_against"}),": ",p]})]})};function Z(e){let{incident:t,onPlayerClick:s,hasEventPlayerStatistics:l,locale:o,hideTime:d,hasGroupedIncidents:p=!1}=e,m=(0,x.g3)()?!t.isHome:t.isHome,{incidentClass:j,incidentType:g}=t,[y,v]=(0,a.useState)(),f=(0,a.useContext)(c.Ws),b=(()=>{switch(g){case"card":return(0,n.jsx)(W,{incident:t,isLeft:m,locale:o});case"goal":return(0,n.jsx)(B,{incident:t,isLeft:m,locale:o});case"penaltyShootout":case"inGamePenalty":return(0,n.jsx)(Q,{incident:t,isLeft:m,locale:o});case"substitution":return(0,n.jsx)(G,{incident:t,isLeft:m,locale:o});case"varDecision":return(0,n.jsx)(X,{incident:t,isLeft:m,locale:o});case"penaltyAwarded":return(0,n.jsx)($,{incident:t,isLeft:m,locale:o});case"suspension":return L.fS.includes(f)?(0,n.jsx)(V,{suspension:t,isLeft:m,locale:o}):(0,n.jsx)(J,{incident:t,isLeft:m,locale:o});default:return null}})();if(b){var C;let e="goal"===g&&((null==t?void 0:t.assist1)||(null==t?void 0:t.assist1Name))&&((null==t?void 0:t.assist2)||(null==t?void 0:t.assist2Name)),{player:a,assist1:o,assist2:c}=t,{playerIn:x,playerOut:w}=t,{suspensionServedByPlayer:S,suspensionDrawnByPlayer:k}=t,A=[a,o,c,x,w,S];"iceHockeyPenaltyType"in t&&(null==(C=t.iceHockeyPenaltyType)?void 0:C.key)!=="embellishment"&&A.push(k);let _="penaltyShootout"===g,T=A.filter(e=>!!e),P=T.every(e=>e.disabled),E=e=>{if(!P){if((1===T.length||f===r.QCR.Basketball)&&s)return void s(T[0]);!1===e?v(void 0):!0===e&&T.length&&v(T)}};return(0,n.jsxs)(h.uc,{player:1!==T.length||l?void 0:T[0],sportSlug:f,children:[(0,n.jsx)(i.az,{_hover:{bg:T.length&&!P?"surface.s2":void 0},cursor:!P&&T.length?"pointer":"default",onClick:()=>{E(!0)},children:(0,n.jsxs)(i.so,{position:"relative",direction:m?"row":"row-reverse",align:"center",h:L.fS.includes(f)?"100%":"3xl",gap:"sm",pl:m?_||p?"lg":"sm":_?"sm":void 0,pr:m?_?"sm":void 0:_||p?"lg":"sm",children:[(0,n.jsxs)(i.so,{minW:"fit",direction:m?"row":"row-reverse",justify:{base:"space-between",md:"center"},gap:p?"sm":"xs",align:{base:"center",md:e?"flex-start":"center"},children:[!_&&!d&&(0,n.jsx)(R.k,{...t}),(0,n.jsx)(I.M,{incidentType:g,incidentClass:j,isLeft:m})]}),(0,n.jsx)(i.so,{overflow:"hidden",align:"center",direction:m?"row":"row-reverse",grow:999,children:b})]})}),T.length>1&&(0,n.jsx)(u.Ay,{isOpen:!!(null==y?void 0:y.length),setIsOpen:e=>{E(e)},players:T,onPlayerClick:s,incident:t})]})}return"period"===g?(0,n.jsx)(q,{incident:t}):"injuryTime"===g?(0,n.jsx)(K,{incident:t}):null}function W(e){let{incident:t,isLeft:s,locale:r}=e,{player:l,reason:i,incidentDescription:a}=t,o=l?(0,j.s)(l,r,{short:!0}):t.playerName,d=(0,L.iF)(t.incidentClass);return(0,n.jsx)(M,{align:s?"start":"end",primary:o||a&&(0,n.jsx)(p.H7,{id:a})||d&&(0,n.jsx)(p.H7,{id:d}),secondary:i&&(0,n.jsx)(p.H7,{id:i})})}let N="volleyball_opponent_error",U=e=>{let{incidentDescriptionId:t,isLeft:s,playerName:r}=e,l=t===N,i=l?(0,n.jsx)(o.A,{id:N}):r,a=l?r:t?(0,n.jsx)(o.A,{id:t}):void 0;return(0,n.jsx)(M,{align:s?"start":"end",primary:i,secondary:a})};function B(e){var t;let{incident:s,isLeft:u,locale:h}=e,{player:m,assist1:g,assist2:y}=s,{isMobile:v}=(0,l.$c)(),f=(0,d.A)(),b=(0,a.useContext)(c.Ws),[C,w]=(0,x.jr)(s,"homeScore","awayScore"),S=[C,w],k="emptynet"===s.incidentClass,A=(0,p.q6)(s.incidentType,s.incidentClass,b),_=A?(0,n.jsx)(p.H7,{id:A}):void 0,T=L.QC.includes(b),I=m?(0,j.s)(m,h,{short:!0}):s.playerName,z=g?(0,j.s)(g,h,{short:!0}):s.assist1Name,H=y?(0,j.s)(y,h,{short:!0}):s.assist2Name,R=z&&H;return(0,n.jsxs)(n.Fragment,{children:[(null==(t=s.footballPassingNetworkAction)?void 0:t.length)?(0,n.jsx)(i.az,{hideFrom:R?"md":void 0,mr:u?"sm":void 0,ml:u?void 0:"sm",children:(0,n.jsx)(E,{goal:s,isLeft:u,scores:S})}):(0,n.jsx)(i.az,{px:T?void 0:"sm",minW:"fit",bg:(()=>{if(!T)return v?"surface.s2":"neutrals.nLv5"})(),br:"lg",ml:u?void 0:T?"xs":"sm",mr:u?T?"xs":"sm":void 0,children:(0,n.jsx)(P,{scores:S,isCompact:T})}),b===r.QCR.Volleyball?(0,n.jsx)(U,{incidentDescriptionId:A,isLeft:u,playerName:I}):(0,n.jsx)(M,{align:u?"start":"end",primary:(k?"".concat(I," (").concat(f.formatMessage({id:"hockey_empty_net_goal_short"}),")"):I)||_,secondary:z?b===r.QCR.IceHockey?(0,n.jsx)(o.A,{id:"assist",children:e=>(0,n.jsx)(n.Fragment,{children:"".concat(e,": ").concat(z)})}):z:void 0,ternary:H&&(0,n.jsx)(o.A,{id:"ordinalAssist",values:{n:2},children:e=>(0,n.jsx)(n.Fragment,{children:"".concat(e,": ").concat(H)})})})]})}function Q(e){let{incident:t,isLeft:s,locale:r}=e,{incidentType:l,incidentClass:d,player:u,description:x,homeScore:h,awayScore:m}=t,g=u?(0,j.s)(u,r,{short:!0}):t.playerName,y=(0,a.useContext)(c.Ws),v=(0,p.q6)(l,d,y);return(0,n.jsxs)(n.Fragment,{children:["scored"===d&&(0,n.jsx)(i.az,{px:"sm",backgroundColor:"surface.s2",borderRadius:"lg",ml:s?void 0:"sm",mr:s?"sm":void 0,children:(0,n.jsx)(P,{scores:[h,m]})}),(0,n.jsx)(M,{align:s?"start":"end",primary:g||v&&(0,n.jsx)(o.A,{id:v}),secondary:x&&(0,n.jsx)(p.H7,{id:x})})]})}function G(e){let{incident:t,isLeft:s,locale:r}=e,{playerIn:l,playerOut:i}=t,a=l?(0,j.s)(l,r,{short:!0}):t.playerNameIn||"",o=i?(0,j.s)(i,r,{short:!0}):t.playerNameOut||"";return(0,n.jsx)(M,{align:s?"start":"end",primary:a,secondary:o})}let $=e=>{let{incident:t,isLeft:s,locale:r}=e,l=t.player?(0,j.s)(t.player,r,{short:!0}):"";return(0,n.jsx)(M,{align:s?"start":"end",primary:(0,n.jsx)(p.H7,{id:t.incidentType}),secondary:" ".concat(l)})};function X(e){let{incident:t,isLeft:s,locale:r}=e,{incidentClass:i,confirmed:a,player:o}=t;if(i.includes("vip_for_"))return(0,n.jsx)(l.EY,{color:"status.live",children:(0,n.jsx)(p.H7,{id:i})});let d=o?(0,j.s)(o,r,{short:!0}):t.playerName||"",c="boolean"==typeof a?"."+String(a):"";return(0,n.jsx)(M,{align:s?"start":"end",primary:(0,n.jsx)(p.H7,{id:i+c}),secondary:" ".concat(d)})}function K(e){let{incident:t}=e,{length:s}=t,{isMobile:r}=(0,l.$c)();return(0,n.jsx)(i.ov,{w:"100%",my:"sm",children:(0,n.jsx)(i.so,{bg:r?"surface.s2":"neutrals.nLv5",py:"2xs",px:"sm",br:"md",align:"center",children:(0,n.jsx)(l.Ym,{textStyle:"assistive.default",children:(0,n.jsx)(o.A,{id:"football_additional_time",values:{time:s}})})})})}function q(e){let{incident:t}=e,s=(0,x.jr)(t,"homeScore","awayScore");return(0,n.jsxs)(i.so,{py:"md",px:"lg",gap:"lg",w:"100%",children:[(0,n.jsx)(i.so,{grow:1,mt:"xs",borderTop:t.isLive?"1px solid {colors.status.live}":"1px solid {colors.neutrals.nLv1/15}",borderStart:t.isLive?"1px solid {colors.status.live}":"1px solid {colors.neutrals.nLv1/15}"}),(0,n.jsxs)(l.EY,{textStyle:"display.micro",color:t.isLive?"status.live":"neutrals.nLv1",textAlign:"center",display:"block",children:[(0,n.jsx)(m.fP,{id:t.text})," ",s.every(e=>"number"==typeof e)&&s.join(" - ")]}),(0,n.jsx)(i.so,{grow:1,mt:"xs",borderTop:t.isLive?"1px solid {colors.status.live}":"1px solid {colors.neutrals.nLv1/15}",borderEnd:t.isLive?"1px solid {colors.status.live}":"1px solid {colors.neutrals.nLv1/15}"})]})}function J(e){let{incident:t,isLeft:s,locale:r}=e,{player:l}=t,i=(0,a.useContext)(c.Ws),o=(0,p.q6)(t.incidentType,t.incidentClass,i),d=l?(0,j.s)(l,r,{short:!0}):t.playerName;return(0,n.jsx)(M,{align:s?"start":"end",primary:d||o&&(0,n.jsx)(p.H7,{id:o})})}},82455:(e,t,s)=>{s.d(t,{c:()=>d});var n=s(6029),r=s(10174),l=s(76356),i=s(90248),a=s(46222),o=s(52466);let d=e=>{let{messageId:t}=e;return(0,n.jsx)(a.WC,{variant:"inverse",children:(0,n.jsx)(a.Zp,{children:(0,n.jsxs)(l.so,{align:"center",w:"100%",gap:"sm",py:"sm",px:"lg",children:[(0,n.jsx)(o.G_L,{fill:"onSurface.nLv3",minW:"24px"}),(0,n.jsx)(r.EY,{textStyle:"assistive.default",display:"block",color:"neutrals.nLv3",children:(0,n.jsx)(i.A,{id:t})})]})})})}},83373:(e,t,s)=>{s.d(t,{GY:()=>i,oY:()=>a});var n=s(88715),r=s(79082);let l=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,s=new Date(1e3*e);return s.setHours(s.getHours()+t),s.toISOString().replace(/-|:|\.\d+/g,"")},i=(e,t,s)=>{let n=new URLSearchParams({action:"TEMPLATE",text:e,dates:"".concat(l(t),"/").concat(l(t,2)),details:s});return"".concat("https://calendar.google.com/calendar/render","?").concat(n.toString())},a=(e,t)=>{let s=e.tournament.category.sport.slug;return"https://www.sofascore.com".concat(n.z.getTranslatedRoute(t,"event",{name:e.slug,id:e.customId,sport:s},(0,r.HL)({id:e.id})).route)}},87397:(e,t,s)=>{s.d(t,{u:()=>d});var n=s(6029),r=s(46787),l=s(76356),i=s(55729),a=s(46222),o=s(18970);let d=()=>{let{event:e}=(0,i.useContext)(o.y$);return void 0!==e.detailId&&1!==e.detailId||e.status.type===r.XUj.NotStarted?null:(0,n.jsxs)(a.Zp,{children:[(0,n.jsx)(a.Zp.Header,{titleId:"attack_momentum"}),(0,n.jsx)(l.az,{h:"[136px]"})]})}},87448:(e,t,s)=>{s.d(t,{A:()=>c});var n=s(6029),r=s(46787),l=s(10174),i=s(71024),a=s.n(i),o=s(56132);let d=a()(()=>Promise.all([s.e(85581),s.e(60465)]).then(s.bind(s,60465)),{loadableGenerated:{webpack:()=>[60465]},ssr:!1});function c(e){let{event:t}=e,s=t.status.type===r.XUj.InProgress;return(0,n.jsx)(l.tU.Panel,{tabKey:o.x.Scorecard,children:(0,n.jsx)(d,{event:t,isLive:s})})}},87777:(e,t,s)=>{s.d(t,{W:()=>i});var n=s(6029),r=s(76356),l=s(46222);let i=()=>(0,n.jsx)(l.Zp,{children:(0,n.jsx)(r.az,{h:"[136px]"})})},88037:(e,t,s)=>{s.d(t,{y:()=>g});var n=s(6029),r=s(46787),l=s(76356),i=s(55729),a=s(46222),o=s(18970),d=s(33144),c=s(10174);let u=e=>{let{status:t}=e;return(0,n.jsx)(l.az,{w:"sm",h:"sm",bg:"scored"===t?"status.success.default":"missed"===t?"status.error.default":"neutrals.nLv4",br:"xs",my:"xs"})};function x(e){let{team:t,incidents:s,score:r,isLive:i,isTied:a,isWinner:o,isShootingNext:x,basePenaltyCount:h}=e,p=[...Array(h).keys()],m=Math.max(0,s.length-h),j=[];for(let e=0;e{var t,s;return(null==(t=e.player)?void 0:t.shortName)||(null==(s=e.player)?void 0:s.name)||e.playerName});return(0,n.jsxs)(l.az,{w:"100%",children:[(0,n.jsxs)(l.so,{align:"flex-start",bg:x?"secondary.highlight":"surface.s2",br:"lg",children:[(0,n.jsx)(l.az,{mr:"lg",children:(0,n.jsx)(d.p,{id:t.id,size:24})}),(0,n.jsxs)(l.so,{my:"xs",gap:"lg",children:[(0,n.jsx)(l.so,{gap:"sm",children:p.map(e=>{var r;return(0,n.jsx)(u,{status:null==(r=s[e])?void 0:r.incidentClass},"".concat(t.id,"-").concat(e))})}),!!j.length&&(0,n.jsxs)(l.so,{wrap:"wrap",gap:"sm",children:[j.map(e=>{var r;return(0,n.jsx)(u,{status:null==(r=s[e])?void 0:r.incidentClass},"".concat(t.id,"-").concat(e+h))}),a&&(0,n.jsx)(u,{status:"taker"})]})]}),(0,n.jsx)(l.az,{flexGrow:1,my:"xs",ml:"sm",mr:"md",children:(0,n.jsx)(c.EY,{textStyle:"display.small",color:i?"status.live":o?"neutrals.nLv1":"neutrals.nLv3",minW:"[20px]",textAlign:"end",display:"block",children:r})})]}),g&&(0,n.jsx)(l.so,{ml:"4xl",mt:"2xs",wrap:"wrap",children:s.map((e,r)=>{var l,i;let a=(null==(l=e.player)?void 0:l.shortName)||(null==(i=e.player)?void 0:i.name)||e.playerName||"-",o=e.incidentClass;return(0,n.jsx)(c.EY,{color:"scored"===o?"status.success.default":"missed"===o?"status.error.default":"neutrals.nLv4",textStyle:"body.small",display:"block",mr:"xs",children:"".concat(a).concat(r===s.length-1?"":",")},"".concat(t.id,"-").concat(a))})})]})}var h=s(95700),p=s(67430);let m={[r.QCR.Football]:5,[r.QCR.Minifootball]:3,[r.QCR.Rugby]:5},j=e=>{let{incidents:t,isLoading:s,isError:d}=e,{event:c,leftTeam:u,rightTeam:p,leftScore:j,rightScore:g}=(0,i.useContext)(o.y$),y=(0,h.A)(c),{leftIncidents:v,rightIncidents:f,...b}=(0,i.useMemo)(()=>{let e=[],s=[],n=0,r=0,l=!1;return t.forEach(t=>{"penaltyShootout"===t.incidentType&&("taker"!==t.incidentClass?((e,t)=>e.isHome&&!t||!e.isHome&&t)(t,y)?(e.unshift(t),"scored"===t.incidentClass&&n++):(s.unshift(t),"scored"===t.incidentClass&&r++):l=!0)}),{leftIncidents:e,rightIncidents:s,leftComputedScore:n,rightComputedScore:r,hasTaker:l}},[t]),C=c.tournament.category.sport.slug;if(!m[C]||d)return null;let w=b.leftComputedScore,S=b.rightComputedScore,k=!v.length&&!f.length&&!b.hasTaker;c.status.code===r.sum.AP&&j.penalties&&g.penalties&&(w=Math.max(w,j.penalties),S=Math.max(S,g.penalties));let A=s&&[r.sum.AP,r.sum.Penalties].includes(c.status.code);if(k&&!A)return null;let _=w===S&&v.length===f.length,T=c.status.type===r.XUj.InProgress;return(0,n.jsxs)(a.Zp,{children:[(0,n.jsx)(a.Zp.Header,{titleId:"penaltyShootout"}),(0,n.jsxs)(l.so,{direction:"column",gap:"lg",px:"md",pt:"sm",pb:"md",children:[(0,n.jsx)(x,{team:u,incidents:v,score:w,isLive:T,isTied:_,isWinner:w>S,basePenaltyCount:m[C]}),(0,n.jsx)(x,{team:p,incidents:f,score:S,isLive:T,isTied:_,isWinner:w{let{incidents:e,isError:t,isLoading:s}=(0,p.L)(),{event:r}=(0,i.useContext)(o.y$);return m[r.tournament.category.sport.slug]&&(e.length||s)?(0,n.jsx)(j,{incidents:e,isError:t,isLoading:s}):null}},88120:(e,t,s)=>{s.d(t,{z:()=>R});var n=s(6029),r=s(46787),l=s(10174),i=s(78383),a=s.n(i),o=s(55729),d=s(494),c=s(18970),u=s(95084),x=s(72753),h=s(33144),p=s(76356),m=s(90248),j=s(90510),g=s(52466),y=s(94565),v=s(41735);let f=v.default.div.withConfig({componentId:"FancyEventBackground"}).withConfig({componentId:"sc-18173878-0"})(["position:absolute;width:100%;height:100%;"," filter:blur(36px);overflow:hidden;border-radius:",";::after{content:'';display:block;position:absolute;top:0;left:0;width:100%;height:100%;border-radius:",";background-color:",";opacity:0.2;}"],e=>e.tournamentImage?"background-image: url(".concat(e.tournamentImage,");\n background-size: 100% 100%;\n background-position: center;\n background-repeat: no-repeat;\n "):"background-image: url(".concat(e.leftTeamImage,"), url(").concat(e.rightTeamImage,");\n background-size: 50% 100%, 50% 100%;\n background-position: center left, center right;\n background-repeat: no-repeat, no-repeat;\n "),e=>e.theme.spacing.md,e=>e.theme.spacing.md,e=>e.theme.colors.overlay.darken1),b=(0,v.default)(y.az).withConfig({componentId:"FancyEventBackgroundContainer"}).withConfig({componentId:"sc-18173878-1"})(["position:absolute;top:0;left:0;width:100%;height:100%;overflow:hidden;border-radius:",";"],e=>e.theme.spacing.lg);function C(e){let{leftTeamImage:t,rightTeamImage:s,tournamentImage:r}=e;return t&&s||r?(0,n.jsx)(b,{children:(0,n.jsx)(f,{leftTeamImage:t,rightTeamImage:s,tournamentImage:r})}):null}function w(e){let{leftTeamId:t,rightTeamId:s,onClick:i,isClickable:a,isLoading:o,startTimestamp:d}=e,c=o?"watch_livestream_starting_soon":a?"watch_livestream":"watch_livestream_prematch";return(0,n.jsxs)(p.az,{cursor:a?"pointer":"auto",position:"relative",style:{paddingTop:"56.25%"},br:"lg",bg:"surface.s2",onClick:i,children:[(0,n.jsx)(C,{leftTeamImage:r.cWY.image(t),rightTeamImage:r.cWY.image(s)}),(0,n.jsx)(p.az,{bg:"overlay.darken3",br:"lg",position:"absolute",top:"0",left:"0",w:"100%",h:"100%"}),(0,n.jsx)(p.ov,{position:"absolute",top:"0",left:"0",w:"100%",style:{height:"calc(100% - 40px)"},children:(0,n.jsxs)(p.so,{justify:"space-between",align:"center",w:"100%",children:[(0,n.jsx)(p.so,{justify:"center",flexGrow:1,flexBasis:"1/2",children:(0,n.jsx)(h.p,{size:72,id:t})}),(0,n.jsx)(p.az,{w:"4xl",children:a&&(0,n.jsx)(g.reY,{fill:"onColor.primary",w:"48",h:"48"})}),(0,n.jsx)(p.so,{justify:"center",flexGrow:1,flexBasis:"1/2",children:(0,n.jsx)(h.p,{size:72,id:s})})]})}),(0,n.jsxs)(p.so,{bg:"overlay.darken2",w:"100%",h:"3xl",align:"center",justify:a?"center":"space-between",position:"absolute",bottom:"0",left:"0",roundedBottom:"lg",children:[(0,n.jsxs)(l.EY,{textStyle:"display.medium",color:"onColor.primary",px:"lg",children:[(0,n.jsx)(m.A,{id:c}),"watch_livestream_prematch"===c&&":"]}),!a&&!o&&d&&(0,n.jsxs)(l.EY,{textStyle:"assistive.default",color:"onColor.secondary",px:"lg",children:[(0,n.jsx)(j.XU,{value:d}),", ",(0,n.jsx)(j.ib,{value:d})]})]})]})}var S=s(19621);async function k(e,t,s,n){let l=3e3,i=Date.now();for(;;){if(null==n?void 0:n.aborted)throw new DOMException("Aborted","AbortError");try{return await (0,r.B2D)(e,t,s)}catch(e){if(Date.now()-i+l>3e5)throw Error("Stream url fetch timeout.");await function(e,t){return new Promise((s,n)=>{if(null==t?void 0:t.aborted)return n(new DOMException("Aborted","AbortError"));let r=setTimeout(()=>{null==t||t.removeEventListener("abort",l),s()},e),l=()=>{clearTimeout(r),n(new DOMException("Aborted","AbortError"))};null==t||t.addEventListener("abort",l)})}(l,n),l*=2}}}async function A(e,t,s){let n,{token:l}=await r.HDw.fetchToken(e);if(!l)throw Error("Stream token fetch failed.");let i={headers:{Authorization:"Bearer "+l},isApiRoute:!1,isImageRoute:!1},a="https://ott.sofascore.com/api/v3/contents/".concat(t,"/access/hls");if(!(n=s?await k(a,void 0,i,s):await (0,r.B2D)(a,void 0,i)).data.stream)throw Error("Stream url fetch failed.");return n.data.stream}async function _(e,t,n,r,l){let i=(await s.e(23771).then(s.bind(s,85511))).default;if(!e)throw Error("Video element not found.");if(i.isSupported()){let s=new i;try{s.attachMedia(e)}catch(e){console.error("Error attaching media:",e)}s.on(i.Events.MEDIA_ATTACHED,()=>{s.loadSource(t),null==l||l()}),s.on(i.Events.ERROR,(e,t)=>{null==r||r(t)}),null==n||n.addEventListener("abort",()=>{s.stopLoad()})}else throw Error("HLS streaming not supported.")}var T=s(70778),P=s(41342);class E{async initializeIMAPlayer(e,t){try{this.scriptLoaded||(await (0,T.A)("//imasdk.googleapis.com/js/sdkloader/ima3.js"),this.scriptLoaded=!0)}catch(e){throw this.scriptLoaded=!1,Error("Error fetching IMA script")}this.currentVideoElement=e,this.currentAdElement=t;let s=e.getBoundingClientRect();return this.width=s.width,this.height=s.height,this.adDisplayContainer=new google.ima.AdDisplayContainer(t,e),this.adDisplayContainer.initialize(),this.adsLoader=new google.ima.AdsLoader(this.adDisplayContainer),this.adsLoader.addEventListener(google.ima.AdsManagerLoadedEvent.Type.ADS_MANAGER_LOADED,this.onAdsManagerLoaded,!1),this.adsLoader.addEventListener(google.ima.AdErrorEvent.Type.AD_ERROR,this.onAdError,!1),()=>{this.destroy()}}startPlayback(e,t,s){let n=new google.ima.AdsRequest;n.adTagUrl=e,n.linearAdSlotWidth=this.width,n.linearAdSlotHeight=this.height,n.nonLinearAdSlotWidth=this.width,n.nonLinearAdSlotHeight=this.height,this._onAdError=s,this._onAdCompleted=t,this.adsLoader.requestAds(n)}resizeCurrentAd(e,t){(e!==this.width||t!==this.height)&&(this.width=e,this.height=t,this.adsManager&&this.adsManager.resize(this.width,this.height,google.ima.ViewMode.NORMAL))}destroy(){this.adsLoader&&this.adsLoader.destroy(),this.adDisplayContainer&&this.adDisplayContainer.destroy(),this.adsManager&&this.adsManager.destroy(),this._onAdCompleted&&delete this._onAdCompleted,this.currentAdElement&&(this.currentAdElement.removeEventListener("click",this.resumePrerollPlayback),this.currentAdElement.style.display="block")}constructor(){this.scriptLoaded=!1,this.width=320,this.height=180,this.onAdsManagerLoaded=e=>{if(this.currentVideoElement){this.adsManager=e.getAdsManager(this.currentVideoElement),this.adsManager.addEventListener(google.ima.AdEvent.Type.STARTED,this.onPrerollStarted),this.adsManager.addEventListener(google.ima.AdEvent.Type.CLICK,this.onPrerollClicked),this.adsManager.addEventListener(google.ima.AdEvent.Type.PAUSED,this.onAdPause),this.adsManager.addEventListener(google.ima.AdEvent.Type.CONTENT_PAUSE_REQUESTED,this.onContentPause),this.adsManager.addEventListener(google.ima.AdEvent.Type.ALL_ADS_COMPLETED,this.onAllAdsCompleted),this.adsManager.addEventListener(google.ima.AdErrorEvent.Type.AD_ERROR,this.onAdError);try{this.adsManager.init(this.width,this.height,google.ima.ViewMode.NORMAL),this.adsManager.start()}catch(e){}}},this.onAdError=e=>{var t,s;let n=e.getError();(0,u.Fk)({id:null==(t=n.getErrorCode)?void 0:t.call(n),position:P.p4,provider:"google",type:"preroll"}),this.adsManager&&this.adsManager.destroy(),this.currentAdElement&&(this.currentAdElement.removeEventListener("click",this.resumePrerollPlayback),this.currentAdElement.style.display="none"),null==(s=this._onAdError)||s.call(this,e)},this.onContentPause=e=>{},this.onAdPause=e=>{this.currentAdElement&&this.currentAdElement.addEventListener("click",this.resumePrerollPlayback)},this.onPrerollStarted=e=>{(0,u.Te)({position:P.p4,provider:"google"})},this.onPrerollClicked=e=>{(0,u.WT)({position:P.p4,provider:"google"})},this.onAllAdsCompleted=e=>{this.adDisplayContainer.destroy(),this._onAdCompleted&&this._onAdCompleted(),this.currentAdElement&&(this.currentAdElement.removeEventListener("click",this.resumePrerollPlayback),this.currentAdElement.style.display="none"),this.currentVideoElement&&this.currentVideoElement.play()},this.resumePrerollPlayback=()=>{this.adsManager.resume()}}}let I=new E;var L=s(67459),z=function(e){return e[e.Uninitialized=0]="Uninitialized",e[e.Loading=1]="Loading",e[e.Initialized=2]="Initialized",e[e.Failed=3]="Failed",e}(z||{});function H(e){let{streamContentId:t,leftTeamId:s,rightTeamId:r,autoplay:l}=e,i=(0,o.useRef)(null),a=(0,o.useRef)(null),[d,c]=(0,o.useState)(0),{streamUrl:u,setStreamUrl:x}=(0,L.vA)(),h=(0,L.xw)();function m(){var e,t;let s=null==(t=i.current)||null==(e=t.parentElement)?void 0:e.getBoundingClientRect(),n=320,r=180;return i.current&&s&&(n=s.width,r=s.width*(9/16),i.current.width=n,i.current.height=r,a.current&&(a.current.style.width=n+"px",a.current.style.height=r+"px")),{width:n,height:r}}if((0,S.st)(()=>{let{width:e,height:t}=m();I.resizeCurrentAd(e,t)},100),(0,o.useEffect)(()=>{let e,s;async function n(){let n;try{a.current&&i.current&&(e=await I.initializeIMAPlayer(i.current,a.current),m())}catch(e){var r;null==(r=a.current)||r.remove()}try{let e=await h();c(1),n=await A(e,t,null==s?void 0:s.signal),_(i.current,n,null==s?void 0:s.signal),c(2)}catch(e){if("AbortError"===e.name)return;c(3)}I.startPlayback(P.NR,()=>{if(x(n),l){var e;null==(e=i.current)||e.play()}},()=>{if(l){var e;null==(e=i.current)||e.play()}})}return"AbortController"in window&&(s=new AbortController),u?(c(2),_(i.current,u,null==s?void 0:s.signal,e=>{e.fatal&&403===e.networkDetails.status&&(x(void 0),n())},()=>{if(l){var e;a.current&&(a.current.style.width="0",a.current.style.height="0"),null==(e=i.current)||e.play()}})):n(),()=>{null==e||e(),null==s||s.abort()}},[]),3===d)return null;let j=1===d;return(0,n.jsxs)(p.az,{position:"relative",br:"lg",children:[j&&(0,n.jsx)(p.az,{position:"absolute",w:"100%",h:"100%",top:"0",left:"0",style:{zIndex:1e3},children:(0,n.jsx)(w,{leftTeamId:s,rightTeamId:r,isLoading:!0})}),(0,n.jsx)(p.I4.video,{br:"lg",ref:i,controls:!0,muted:l,style:j?{opacity:0}:{opacity:1},disablePictureInPicture:!0}),(0,n.jsx)(p.az,{br:"lg",overflow:"clip",ref:a,position:"absolute",w:"[400px]",h:"[225px]",top:"0",left:"0"})]})}var M=s(45525);function R(){let{event:e,leftTeam:t,rightTeam:s}=(0,o.useContext)(c.y$),{isMobile:i}=(0,l.$c)(),h=(0,M.W)(i),p=e.status.type===r.XUj.InProgress,m=p&&h,j=p&&!h,[g,y]=(0,o.useState)(m),v=(0,L.lZ)(e.id,m),f=(0,d.d4)(x.LQ),b=(0,o.useMemo)(()=>e.status.type,[e.id]);return!e.streamContentId||(0,M.X)(f)||b===r.XUj.Finished?null:(0,n.jsx)("div",{ref:v,children:g?(0,n.jsx)(H,{streamContentId:e.streamContentId,autoplay:m,leftTeamId:t.id,rightTeamId:s.id},e.id):(0,n.jsx)(w,{leftTeamId:t.id,rightTeamId:s.id,onClick:j?()=>{y(!0),(0,u.K2)(e.id)}:a(),isClickable:j,startTimestamp:1e3*e.startTimestamp})})}},89047:(e,t,s)=>{s.d(t,{O:()=>a});var n=s(6029),r=s(18612),l=s(55729);let i=e=>{let{offset:t,rows:s}=e;return(0,n.jsx)(n.Fragment,{children:Array.from(Array(s).keys()).map(e=>(0,n.jsxs)(l.Fragment,{children:[e%2==0&&(0,n.jsx)("rect",{x:8,y:t+36*e,width:48,height:24,rx:"12"}),(0,n.jsx)("rect",{x:"calc(50% - 50px)",y:t+36*e+6,width:100,height:16}),e%2!=0&&(0,n.jsx)("rect",{x:"calc(100% - 56px)",y:t+36*e,width:48,height:24,rx:"12"}),(0,n.jsx)("rect",{x:8,y:t+36*e+30,width:"calc(100% - 16px)",height:1})]},e))})};function a(e){let{style:t}=e;return(0,n.jsxs)(r.D,{height:600,style:t,uniqueKey:"statistics-cl",children:[(0,n.jsx)("rect",{x:"calc(50% - 88px)",y:25,width:48,height:34,rx:"8"}),(0,n.jsx)("rect",{x:"calc(50% - 24px)",y:25,width:48,height:34,rx:"8"}),(0,n.jsx)("rect",{x:"calc(50% + 40px)",y:25,width:48,height:34,rx:"8"}),(0,n.jsx)(i,{rows:4,offset:86}),(0,n.jsx)(i,{rows:4,offset:262}),(0,n.jsx)(i,{rows:4,offset:438})]})}},89450:(e,t,s)=>{s.d(t,{A:()=>w});var n=s(6029),r=s(33144),l=s(46787),i=s(10174),a=s(76356),o=s(55729),d=s(90248),c=s(494),u=s(45860),x=s(46222),h=s(18970),p=s(52466),m=s(18862),j=s(94122),g=s(68789),y=s(37455),v=s(60682),f=s(41397);let b=()=>(0,n.jsxs)(x.Zp,{children:[(0,n.jsx)(x.Zp.Header,{titleId:"odds"}),(0,n.jsx)(a.az,{h:{base:"5xl",md:"8xl"}}),(0,n.jsx)(a.az,{h:{base:"5xl",md:"8xl"}})]}),C=e=>{let{team:t,odds:s}=e,{isMobile:l}=(0,i.$c)(),[c,u]=(0,o.useState)(!l);return(0,o.useEffect)(()=>{u(!l)},[l]),(0,n.jsxs)(a.az,{onClick:l?()=>u(e=>!e):void 0,cursor:l?"pointer":void 0,children:[(0,n.jsxs)(a.so,{align:"center",justify:"space-between",children:[(0,n.jsxs)(a.so,{align:"center",gap:"lg",children:[(0,n.jsx)(r.p,{size:28,id:t.id,name:t.name}),(0,n.jsxs)(a.az,{color:"neutrals.nLv1",children:[(0,n.jsx)(m.c,{fractionalValue:s.fractionalValue}),"\xa0 \xa0 = \xa0 \xa0",s.expected,"%"]})]}),(0,n.jsxs)(a.so,{align:"center",gap:"lg",children:[(0,n.jsx)(a.ov,{h:"xl",bg:s.actual>s.expected?"status.val":"neutral.default",br:"sm",py:"xs",px:"sm",children:(0,n.jsxs)(i.EY,{textStyle:"assistive.default",color:"surface.s1",children:["W: ",s.actual,"%"]})}),l&&(0,n.jsx)(p.zQC,{icon:"chevron-down",style:{transition:".2s transform",transform:"rotate(".concat(180*!!c,"deg)")},width:24,height:24,fill:"primary.default"})]})]}),c&&(0,n.jsx)(i.EY,{display:"block",textStyle:"body.medium",pt:"md",children:(0,n.jsx)(d.A,{id:"winning_odds_text",values:{odds:(0,n.jsx)(m.c,{fractionalValue:s.fractionalValue}),expectedChance:"".concat(s.expected,"%"),actualChance:"".concat(s.actual,"%"),name:"".concat(t.name)}})})]})},w=function(){let{event:e,leftTeam:t,rightTeam:s}=(0,o.useContext)(h.y$),r=(0,c.d4)((0,y.Ul)(e)),i=(0,c.d4)(y.BF),d=(0,g.F0)(e),[p]=(0,v.Z)(d),m=r&&!i,{data:w,error:S,isLoading:k}=(0,u.Ay)(m&&p?l.bnp.winningOdds(e.id,p):null),A=m&&p&&p!==j.u3&&S,{data:_}=(0,u.Ay)(A?l.bnp.winningOdds(e.id,j.u3):null),[T,P]=(0,f.A)(w||_,"home","away");return m&&(T||P||k)?k?(0,n.jsx)(b,{}):(0,n.jsxs)(x.Zp,{children:[(0,n.jsx)(x.Zp.Header,{titleId:"odds"}),(0,n.jsxs)(a.BJ,{py:"sm",px:"sm",gap:"lg",children:[T?(0,n.jsx)(C,{team:t,odds:T}):null,P?(0,n.jsx)(C,{team:s,odds:P}):null]}),(0,n.jsx)(x.Zp.Footer,{})]}):null}},91452:(e,t,s)=>{s.d(t,{TW:()=>i,HK:()=>a,hT:()=>d,R5:()=>o});var n=s(95084),r=s(45500);let l="___sofa-wsc___",i=e=>{let{type:t,location:s,tournamentId:n,roundId:r,eventId:i,screen:a,provider:o}=e;return"wsc"===o?"".concat(l).concat(a,"--").concat(t,"--").concat(s,"--").concat(n,"--").concat(r,"--").concat(i).concat(l):"".concat(a,"--").concat(t,"--").concat(s,"--").concat(n,"--").concat(r,"--").concat(i)},a=(e,t)=>{let[s,n,r,i,a,o]=("wsc"===t?(e=>{let t=new RegExp("".concat(l,"(.*?)").concat(l)),s=e.match(t);return s?s[1]:""})(e||""):e).split("--");return{screen:s,type:n,location:r,tournamentId:Number(i),roundId:"null"===a||"undefined"===a?null:Number(a),eventId:"null"===o||"undefined"===o?null:Number(o)}},o=e=>{let{screen:t,type:s,location:n,tournamentId:l,roundId:i,eventId:o}=a(e,"wsc"),d="Invalid WSC widget containerId: ".concat(e);if(e&&["single","multiple"].includes(s)&&["mobile","desktop"].includes(t)&&Object.values(r.D).includes(n)){if(isNaN(Number(l)));else if(i&&isNaN(Number(i)));else if(!(o&&isNaN(Number(o))))return!0}throw Error(d)},d=e=>{var t,s;let r=null==(t=e.detail)?void 0:t.eventData,l=(null==r?void 0:r.widget_id)||(null==r?void 0:r.origin_widget_id),i=null==(s=e.detail)?void 0:s.eventType;if(i&&l){let{eventId:e,tournamentId:t,location:s}=a(l,"wsc");switch(i){case"widget_click":(0,n.kA)({id:e||t,location:s,provider:"wsc"});break;case"story_exit":(0,n.G9)({id:e||t,location:s,timeOnScreen:r.content_duration_viewed,provider:"wsc"})}}}},92099:(e,t,s)=>{s.d(t,{A:()=>P});var n=s(6029),r=s(46787),l=s(10174),i=s(76356),a=s(93338),o=s(83817),d=s.n(o),c=s(55729),u=s(90248),x=s(45860),h=s(46222),p=s(18970),m=s(52466),j=s(74610),g=s(41164),y=s(67087),v=s(64006);let f=()=>(0,n.jsx)(i.ov,{backgroundColor:"status.val",br:"md",px:"sm",children:(0,n.jsx)(l.EY,{textStyle:"assistive.default",color:"surface.s1",lineHeight:"16px",children:(0,n.jsx)(u.A,{id:"tennis.brake"})})}),b=e=>{let{winner:t,isLeftBreak:s,isRightBreak:r,isTieBreak:a,isInsideEventWidget:o,isTennis:d,isDoubles:c,sport:u}=e,x=(0,n.jsxs)(i.so,{direction:"column",justify:"center",align:"center",w:"100%",backgroundColor:o?"neutrals.nLv5":"surface.s2",p:"xs",br:"sm",gap:"sm",children:[s&&!a&&(0,n.jsx)(f,{}),(0,n.jsx)(l.EY,{display:"block",textStyle:"assistive.default",truncate:!0,maxW:"100%",style:{whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"},children:d&&c?t.nameCode:t.shortName}),r&&!a&&(0,n.jsx)(f,{})]});return d&&c?x:d?(0,n.jsx)(v.gT,{sport:u,team:t,target:"_blank",style:{display:"block",width:"100%"},children:x}):(0,n.jsx)(v.uc,{player:t,sportSlug:u,target:"_blank",style:{display:"block",width:"100%"},children:x},t.id)},C=e=>{let{isServingAndScoring:t,isBreak:s}=e;return(0,n.jsx)(i.az,{w:"2xs",h:"1/2",bg:t?"status.success.default":s?"status.error.default":"neutrals.nLv4"})},w=e=>{switch(e){case 1:return"neutrals.nLv1";case 2:case 6:return"status.val";case 3:case 4:return"secondary.default";default:return"neutrals.nLv3"}},S=e=>e?"neutrals.nLv1":"neutrals.nLv3";var k=function(e){return e.Live="LIVE",e.LeftServingAndScoring="leftServingAndScoring",e.RightServingAndScoring="rightServingAndScoring",e.LeftBreak="leftBreak",e.RightBreak="rightBreak",e}({});let A=e=>{let{point:t}=e,s=(0,c.useContext)(p.Ws)===r.QCR.Tennis,[o,d]=(0,y.jr)(t,"homePoint","awayPoint"),[u,x]=(0,y.jr)(t,"homePointType","awayPointType");return(0,n.jsxs)(i.so,{direction:"column",gap:"sm",children:[(0,n.jsx)(l.EY,{textStyle:"body.small",w:"xl",style:{color:a.S.var("colors.".concat(s?w(u):S(!!(null==t?void 0:t.isHome))))},textAlign:"center",display:"block",children:o}),(0,n.jsx)(l.EY,{textStyle:"body.small",w:"xl",style:{color:a.S.var("colors.".concat(s?w(x):S(!(null==t?void 0:t.isHome))))},textAlign:"center",display:"block",children:d})]})},_=e=>{var t,s,a;let{game:o,setKey:d}=e,{event:u,leftTeam:x,rightTeam:h}=(0,c.useContext)(p.y$),j=(0,c.useContext)(p.Ws),g=j===r.QCR.Tennis,[v,f]=(0,y.jr)(o.score,"homeScore","awayScore"),w=(0,y.gm)(o.score,"scoring"),S=(0,y.gm)(o.score,"serving"),_=-1===w&&u.status.type===r.XUj.InProgress,T=15>+o.points[0].awayPoint&&15>+o.points[0].homePoint&&j===r.QCR.Tennis,{location:P}=(0,c.useContext)(p.y$),E=P===p.cb.Widget,I=(null==(t=x.subTeams)?void 0:t.length)===2,L=(e=>{let{score:t,isLive:s,sport:n}=e;if(!t)return s?"LIVE":void 0;let{scoring:l,throwing:i,serving:a}=t;if(n===r.QCR.Tennis){if(1===l&&1===a)return"leftServingAndScoring";if(2===l&&1===a)return"leftBreak";if(2===l&&2===a)return"rightServingAndScoring";if(1===l&&2===a)return"rightBreak"}if(n===r.QCR.Darts){if(1===l&&1===i)return"leftServingAndScoring";if(2===l&&1===i)return"leftBreak";if(2===l&&2===i)return"rightServingAndScoring";if(1===l&&2===i)return"rightBreak"}})({score:o.score,isLive:u.status.type===r.XUj.InProgress,sport:j}),z=!T&&L===k.LeftServingAndScoring,H=!T&&L===k.RightServingAndScoring,M=L===k.LeftBreak,R=L===k.RightBreak,Y=z||H||M||R;return(0,n.jsx)(n.Fragment,{children:(0,n.jsxs)(i.so,{px:"lg",children:[(0,n.jsx)(i.az,{py:"sm",children:_?(0,n.jsxs)(i.so,{children:[(0,n.jsx)(i.so,{direction:"column",justify:1===S?"flex-start":"flex-end",align:"end",w:"[84px]",pt:1===S?"xs":"0",pb:2===S?"[6px]":"0",children:(()=>{switch(j){case r.QCR.Tennis:return(0,n.jsx)(m.OXq,{fill:"secondary.default",w:13,h:13});case r.QCR.Darts:return(0,n.jsx)(m.v1,{fill:"secondary.default",w:13,h:13});default:return null}})()}),(0,n.jsxs)(i.so,{direction:"column",gap:"sm",py:"xs",ml:"xs",children:[(0,n.jsx)(l.EY,{textStyle:"display.small",color:_?"status.live":"neutrals.nLv3",minW:"[20px]",textAlign:"center",display:"block",children:v}),(0,n.jsx)(l.EY,{textStyle:"display.small",color:_?"status.live":"neutrals.nLv3",minW:"[20px]",textAlign:"center",display:"block",children:f})]}),(0,n.jsxs)(i.az,{children:[(0,n.jsx)(C,{isServingAndScoring:!T&&z,isBreak:!T&&M}),(0,n.jsx)(C,{isServingAndScoring:!T&&H,isBreak:!T&&R})]})]}):(0,n.jsxs)(i.so,{children:[(0,n.jsx)(i.so,{direction:"column",justify:z||M?"flex-start":"flex-end",w:"[84px]",children:Y&&(0,n.jsx)(b,{winner:z||R?x:h,isLeftBreak:M,isRightBreak:R,isTieBreak:T,isInsideEventWidget:E,isTennis:g,isDoubles:I,sport:j})}),(0,n.jsxs)(i.so,{direction:"column",gap:"sm",py:"xs",ml:"xs",children:[(0,n.jsx)(l.EY,{textStyle:"display.small",color:1===w?"neutrals.nLv1":"neutrals.nLv3",minW:"[20px]",textAlign:"center",display:"block",children:v}),(0,n.jsx)(l.EY,{textStyle:"display.small",color:2===w?"neutrals.nLv1":"neutrals.nLv3",minW:"[20px]",textAlign:"center",display:"block",children:f})]}),(0,n.jsxs)(i.az,{children:[(0,n.jsx)(C,{isServingAndScoring:z,isBreak:!T&&M}),(0,n.jsx)(C,{isServingAndScoring:H,isBreak:!T&&R})]})]})}),(0,n.jsx)(i.so,{wrap:"wrap",rowGap:"lg",columnGap:"xs",pt:"md",pb:"sm",px:g?"0":"sm",children:null==(s=(a=o.points).map)?void 0:s.call(a,(e,t)=>(0,n.jsx)(A,{point:e},"".concat(d,"-").concat(o.game,"-").concat(t)))})]})})},T=e=>{var t,s,a,o;let{event:d,set:x,isInitiallyOpen:h,isLast:j}=e,[y,v]=(0,c.useState)(h),f=d.status.type===r.XUj.InProgress,b=((e,t,s)=>{let n=t.lastPeriod&&t.lastPeriod[t.lastPeriod.length-1],r=!!n&&!!s.set&&Number(n)===s.set;if(e&&r){if(t.time&&t.time.currentPeriodStartTimestamp)return Math.round((Date.now()-1e3*t.time.currentPeriodStartTimestamp)/1e3);if(t.currentPeriodStartTimestamp)return Math.round((Date.now()-1e3*t.currentPeriodStartTimestamp)/1e3)}return t.time&&t.time["period".concat(s.set)]?t.time["period".concat(s.set)]:null})(f,d,x),C=(0,c.useContext)(p.Ws),w=(null!=(a=null==d?void 0:d.bestOfSets)?a:0)>1;return C!==r.QCR.Darts||w?(0,n.jsxs)(i.az,{pb:"sm",children:[!j&&(0,n.jsx)(i.cG,{}),(0,n.jsxs)(i.so,{h:"3xl",position:"relative",justify:"flex-start",align:"center",onClick:()=>v(e=>!e),cursor:"pointer",pt:"md",pb:"xs",px:"lg",children:[(0,n.jsxs)(l.EY,{lineHeight:"100%",color:f&&j?"status.live":"neutrals.nLv1",textStyle:"display.small",textAlign:"center",display:"block",children:[(0,n.jsx)(u.A,{id:"ordinalSet",values:{n:x.set}}),b&&" • ",b&&(0,g.jQ)(b)]}),(0,n.jsx)(m.zQC,{icon:y?"chevron-up":"chevron-down",position:"absolute",right:16,width:24,height:24,fill:"onSurface.nLv1",ml:"4px"})]}),y&&C===r.QCR.Darts&&w&&(null==(t=[...x.legs].reverse())?void 0:t.map(e=>(0,n.jsx)(_,{setKey:x.set,game:e},e.game))),y&&C===r.QCR.Tennis&&(null==(s=x.games)?void 0:s.map(e=>(0,n.jsx)(_,{setKey:x.set,game:e},e.game)))]}):(0,n.jsx)(n.Fragment,{children:null==(o=[...x.legs].reverse())?void 0:o.map(e=>(0,n.jsx)(_,{setKey:x.set,game:e},e.game))})},P=(0,c.memo)(function(e){let{event:t}=e,s=(0,c.useContext)(p.Ws),{data:l}=(0,x.Ay)(r.bnp.pointByPoint(t.id),(0,g.rf)(t));if(!l||!l.pointByPoint.length)return null;let i=s===r.QCR.Darts?[...l.pointByPoint].reverse():l.pointByPoint;return(0,n.jsx)(j.t,{tag:"PointByPoint",children:(0,n.jsx)(h.Zp,{children:i.map((e,s)=>(0,n.jsx)(T,{set:e,isInitiallyOpen:!s,isLast:!s,event:t},e.set))})})},(e,t)=>e.event.id===t.event.id&&d()(e.event.time,t.event.time))},92852:(e,t,s)=>{s.d(t,{A:()=>u});var n=s(6029),r=s(10174),l=s(71024),i=s.n(l),a=s(74610),o=s(77708),d=s(56132);let c=i()(()=>Promise.resolve().then(s.bind(s,28105)),{loadableGenerated:{webpack:()=>[28105]},ssr:!1,loading:()=>(0,n.jsx)(o.Vj,{})});function u(){return(0,n.jsx)(r.tU.Panel,{tabKey:d.x.Lineups,children:(0,n.jsx)(a.t,{tag:"lineups",children:(0,n.jsx)(c,{})})})}},93053:(e,t,s)=>{s.d(t,{A:()=>r});var n=s(71024);let r=s.n(n)()(()=>s.e(14683).then(s.bind(s,14683)),{loadableGenerated:{webpack:()=>[14683]}})},93819:(e,t,s)=>{s.d(t,{Ad:()=>A,k9:()=>S,n1:()=>d,mV:()=>T,$e:()=>p,gY:()=>_,ff:()=>h,tN:()=>j,kR:()=>v,jS:()=>b,eo:()=>C});var n=s(46787),r=s(494),l=s(45860),i=s(88362),a=s(22116);let o=["de","en","es","fr","it","pt","ar","tr","id","ru","pt-pt","pl","hr","nl","el","sr","ro","vi","th","az","hu","uz","ko","fa","sv","zh","da","bg"],d=[n.XUj.NotStarted,n.XUj.InProgress],c="seen-insights-promotion-timestamp",u="times-seen-insights-promotion-key";var x=s(31830);let h=()=>{let e=(0,x.A)();return e&&o.includes(e)?e:"en"},p=(e,t)=>{let s=(0,r.wA)(),o=(0,r.d4)(a.Cd),c=(0,r.d4)(a.hl),u=(0,r.d4)(a.$F),x=h(),p=d.includes(e.status.type);return(0,l.Ay)(o&&c&&!t?[e.id,x,o,c]:null,{fetcher:e=>{let[t,s,r,l]=e;return n.nk6.fetchAiInsights(t,s,r,l)},onError:async(e,t)=>{var n;p&&(null==u?void 0:u.hasPremium)&&(null==e||null==(n=e.error)?void 0:n.code)===403&&(await s((0,i.QT)()),await s((0,i.lX)()),(0,l.Tk)(t))}})};var m=s(70344);let j=(e,t,s)=>{let i=(0,r.d4)(a.Cd),o=(0,r.d4)(a.hl),c=h(),u=d.includes(e.status.type),x=!!s||i&&o,p={fetcher:m.n,revalidateOnFocus:!0,refreshInterval:6e4*!!u,...t},{data:j}=(0,l.Ay)(x&&e.status.type===n.XUj.Finished?[n.bnp.aiInsightsPostmatch(e.id,c),"HEAD"]:null,p),{data:g}=(0,l.Ay)(x&&u?[n.bnp.aiInsights(e.id,c),"HEAD"]:null,p);return{showAiInsights:g,showPostmatchAiInsights:j}};var g=s(22375),y=s(15341);function v(){let e=(0,r.d4)(a.$F),t=(0,r.d4)(a.hl),s=(null==e?void 0:e.hasPremium)&&!!t,[n,l,i]=(0,y.A)(c,void 0),[o]=(0,y.A)(u,0),d=!n||Date.now()3)}var f=s(55729);let b=(e,t,s,n)=>{let[r,l]=(0,y.A)("last-seen-insights",[]),[i,a]=(0,f.useState)(!0),o=!r.includes(n);return(0,f.useEffect)(()=>{if(s||!e)return;let r=setTimeout(()=>{a(!1),t&&o&&l(e=>e.length>=30?[...e.slice(1),n]:[...e,n])},3e3);return()=>clearTimeout(r)},[s,e]),i&&e&&o};function C(e){let[t,s]=(0,y.A)(c,void 0),[n,r]=(0,y.A)(u,0);(0,f.useEffect)(()=>{e&&(t||s(Date.now()),n<3&&r(e=>e+1))},[e])}var w=s(6029),S=function(e){return e.Halftime="halftime",e.Postmatch="postmatch",e}({});let k=(0,f.createContext)(null),A=e=>{let{event:t,children:s}=e,r=t.status.type===n.XUj.InProgress?S.Halftime:S.Postmatch,[l,i]=(0,f.useState)(r),[a,o]=(0,f.useState)(!1);return(0,w.jsx)(k,{value:{activeTab:l,setActiveTab:i,hasTabs:a,setHasTabs:o},children:s})},_=()=>{let e=(0,f.useContext)(k);if(!e)throw Error("useAiInsightsContext must be used within an AiInsightsContext");return e};function T(e,t,s){let n=s!==t,r=n?(n?s>t:void 0)?e.awayTeam:e.homeTeam:void 0;return{hasWinner:n,winner:r}}},94976:(e,t,s)=>{s.d(t,{J:()=>m});var n=s(6029),r=s(8329),l=s(46787),i=s(10174),a=s(76356),o=s(55729),d=s(45860),c=s(46222),u=s(18970),x=s(64006),h=s(77419);let p=e=>{let{leftPlayerRanking:t,rightPlayerRanking:s,leftPlayerPoints:r,rightPlayerPoints:o,label:d,logo:c,gender:u,rankingClass:h,leftTeamId:p,rightTeamId:m}=e,j=((e,t)=>{let s=t===l.YT8.Female;return"team"===e?s?"wta":"atp":"utr"===e?s?"utr-women":"utr-men":"atp"})(h,u);return(0,n.jsxs)(a.so,{position:"relative",justify:"center",alignItems:"center",gap:"sm",w:"100%",children:[(0,n.jsx)(a.so,{position:"absolute",left:"0",children:t?(0,n.jsx)(x.N_,{routeKey:"rankings",params:{sport:"tennis",category:j},hash:String(p),children:(0,n.jsxs)(a.so,{flexDir:"column",_hover:{cursor:"pointer"},children:[(0,n.jsx)(i.EY,{textStyle:"display.small",color:"primary.default",fontWeight:"bold",children:"".concat(t,".")}),(0,n.jsx)(i.EY,{textStyle:"assistive.default",color:"neutrals.nLv3",children:null!=r?r:"-"})]})}):(0,n.jsxs)(a.so,{flexDir:"column",children:[(0,n.jsx)(i.EY,{textStyle:"display.small",color:"neutrals.nLv3",fontWeight:"bold",children:"-"}),(0,n.jsx)(i.EY,{textStyle:"assistive.default",color:"neutrals.nLv3",children:null!=r?r:"-"})]})}),(0,n.jsxs)(a.so,{alignItems:"center",gap:"xs",children:[c,(0,n.jsx)(i.EY,{textStyle:"assistive.default",color:"neutrals.nLv3",children:d})]}),(0,n.jsx)(a.so,{position:"absolute",right:"0",alignItems:"flex-end",children:s?(0,n.jsx)(x.N_,{routeKey:"rankings",params:{sport:"tennis",category:j},hash:String(m),children:(0,n.jsxs)(a.so,{flexDir:"column",alignItems:"flex-end",_hover:{cursor:"pointer"},children:[(0,n.jsx)(i.EY,{textStyle:"display.small",color:"primary.default",fontWeight:"bold",children:"".concat(s,".")}),(0,n.jsx)(i.EY,{textStyle:"assistive.default",color:"neutrals.nLv3",children:null!=o?o:"-"})]})}):(0,n.jsxs)(a.so,{flexDir:"column",alignItems:"flex-end",children:[(0,n.jsx)(i.EY,{textStyle:"display.small",color:"neutrals.nLv3",fontWeight:"bold",children:"-"}),(0,n.jsx)(i.EY,{textStyle:"assistive.default",color:"neutrals.nLv3",children:null!=o?o:"-"})]})})]})},m=()=>{var e,t;let{leftTeam:s,rightTeam:i}=(0,o.useContext)(u.y$),m=s.gender===l.YT8.Female,{data:j}=(0,d.Ay)(l.cWY.rankings(s.id)),{data:g}=(0,d.Ay)(l.cWY.rankings(i.id)),y=(e,t)=>{var s;return null==t||null==(s=t.rankings)?void 0:s.find(t=>t.rankingClass===e)},v=y("team",j),f=y("team",g),b=y("utr",j),C=y("utr",g),w=v||f,S=b||C;return w||S?(0,n.jsxs)(c.Zp,{children:[(0,n.jsx)(c.Zp.Header,{titleId:"rankings"}),(0,n.jsxs)(a.so,{px:"lg",pb:"sm",alignItems:"center",gap:"lg",children:[(0,n.jsx)(x.gT,{team:s,sport:l.QCR.Tennis,children:(0,n.jsx)(h.N,{team:s,sport:l.QCR.Tennis,hasFlag:!1,size:40})}),(0,n.jsxs)(a.so,{w:"100%",flexDirection:"column",gap:"sm",py:"lg",children:[w&&(0,n.jsx)(p,{leftPlayerRanking:null==v?void 0:v.ranking,leftPlayerPoints:null==v?void 0:v.points,rightPlayerRanking:null==f?void 0:f.ranking,rightPlayerPoints:null==f?void 0:f.points,label:m?"WTA":"ATP",gender:null!=(e=s.gender)?e:l.YT8.Male,rankingClass:"team",leftTeamId:s.id,rightTeamId:i.id,logo:(0,n.jsx)(r.w,{rankingSlug:m?"wta":"atp",categoryId:m?6:3,size:16})}),w&&S&&(0,n.jsx)(a.cG,{my:"sm"}),S&&(0,n.jsx)(p,{leftPlayerRanking:null==b?void 0:b.ranking,leftPlayerPoints:null==b?void 0:b.points,rightPlayerRanking:null==C?void 0:C.ranking,rightPlayerPoints:null==C?void 0:C.points,label:"UTR",gender:null!=(t=s.gender)?t:l.YT8.Male,rankingClass:"utr",leftTeamId:s.id,rightTeamId:i.id,logo:(0,n.jsx)(r.w,{rankingSlug:m?"utr-female":"utr-male",categoryId:m?1844:1843,size:16})})]}),(0,n.jsx)(x.gT,{team:i,sport:l.QCR.Tennis,children:(0,n.jsx)(h.N,{team:i,sport:l.QCR.Tennis,hasFlag:!1,size:40})})]})]}):null}},95224:(e,t,s)=>{s.d(t,{A:()=>d});var n=s(6029),r=s(10174),l=s(71024),i=s.n(l),a=s(56132);let o=i()(()=>s.e(76186).then(s.bind(s,76186)),{loadableGenerated:{webpack:()=>[76186]},ssr:!1});function d(e){let{hasRecommendedPrematchOdds:t}=e;return(0,n.jsx)(r.tU.Panel,{tabKey:a.x.FeaturedOdds,children:(0,n.jsx)(o,{preferRecommendedPrematch:t})})}},97563:(e,t,s)=>{s.d(t,{A:()=>d});var n=s(6029),r=s(10174),l=s(71024),i=s.n(l),a=s(56132);let o=i()(()=>Promise.all([s.e(75672),s.e(50719)]).then(s.bind(s,50719)),{loadableGenerated:{webpack:()=>[50719]},ssr:!1});function d(){return(0,n.jsx)(r.tU.Panel,{tabKey:a.x.Overs,children:(0,n.jsx)(o,{})})}},98408:(e,t,s)=>{s.d(t,{A:()=>P});var n=s(6029),r=s(46787),l=s(10174),i=s(76356),a=s(55729),o=s(90248),d=s(494),c=s(46222),u=s(18970),x=s(52466),h=s(93819),p=s(22116),m=s(95084),j=s(18153),g=s(93338);function y(e){let{height:t=26,fill:s}=e,r=s||g.S.var("colors.tertiary.variant");return(0,n.jsxs)("svg",{height:t,viewBox:"0 0 90 26",fill:"none",children:[(0,n.jsx)("path",{d:"M69.1395 21.2396V16.955H68.0816C68.0022 16.955 67.9493 16.9021 67.9493 16.8228V15.95C67.9493 15.8706 68.0022 15.8177 68.0816 15.8177H69.1395V14.3234C69.1395 14.2441 69.1924 14.1912 69.2717 14.1912H70.2239C70.3032 14.1912 70.3561 14.2441 70.3561 14.3234V15.8177H72.2471C72.3265 15.8177 72.3794 15.8706 72.3794 15.95V16.8228C72.3794 16.9021 72.3265 16.955 72.2471 16.955H70.3561V21.0544C70.3561 21.4776 70.5941 21.6628 70.9644 21.6628H72.2471C72.3265 21.6628 72.3794 21.7156 72.3794 21.795V22.6678C72.3794 22.7471 72.3265 22.8 72.2471 22.8H70.6206C69.6685 22.8 69.1395 22.2975 69.1395 21.2396Z",fill:r}),(0,n.jsx)("path",{d:"M61.7791 20.8032C61.7791 20.7239 61.832 20.671 61.9113 20.671H62.8766C62.956 20.671 63.0089 20.7239 63.0221 20.8032C63.1147 21.4644 63.842 21.8215 64.8206 21.8215C65.8785 21.8215 66.4603 21.3983 66.4603 20.7635C66.4603 20.1288 66.0769 19.785 64.728 19.785C62.9957 19.785 61.9245 19.2163 61.9245 17.8146C61.9245 16.5054 63.075 15.6855 64.609 15.6855C66.2752 15.6855 67.3067 16.479 67.4786 17.8014C67.4918 17.9071 67.4389 17.9336 67.3596 17.9336H66.381C66.3017 17.9336 66.262 17.8939 66.2488 17.8146C66.1562 17.1931 65.6405 16.7963 64.5825 16.7963C63.5907 16.7963 63.1279 17.1798 63.1279 17.7485C63.1279 18.3303 63.4982 18.7006 64.8735 18.7006C66.8967 18.7006 67.6637 19.4147 67.6637 20.7106C67.6637 22.0066 66.5132 22.9323 64.8073 22.9323C63.1808 22.9323 61.8584 22.2446 61.7791 20.8032Z",fill:r}),(0,n.jsx)("path",{d:"M61.6779 15.9368L58.7686 23.7125C58.3322 24.8894 58.0545 25.4713 57.023 25.4713H55.6345C55.5552 25.4713 55.5023 25.4184 55.5023 25.339V24.4662C55.5023 24.3869 55.5552 24.334 55.6345 24.334H56.8247C57.1685 24.334 57.3801 24.2018 57.5388 23.7654L57.7636 23.1438L55.0527 15.9368C55.013 15.8706 55.0527 15.8177 55.132 15.8177H56.2296C56.3222 15.8177 56.3751 15.8574 56.4015 15.9368L58.3983 21.5834L60.3952 15.9368C60.4216 15.8574 60.4745 15.8177 60.5671 15.8177H61.5986C61.6779 15.8177 61.7176 15.8706 61.6779 15.9368Z",fill:r}),(0,n.jsx)("path",{d:"M53.105 22.6678V13.0143C53.105 12.9349 53.1579 12.882 53.2372 12.882H54.1893C54.2687 12.882 54.3216 12.9349 54.3216 13.0143V22.6678C54.3216 22.7471 54.2687 22.8 54.1893 22.8H53.2372C53.1579 22.8 53.105 22.7471 53.105 22.6678Z",fill:r}),(0,n.jsx)("path",{d:"M45.6302 17.8146C45.8286 16.5186 47.0055 15.6855 48.6453 15.6855C50.4702 15.6855 51.6472 16.6376 51.6472 18.3303V22.6678C51.6472 22.7471 51.5943 22.8 51.5282 22.8H50.6686C50.5892 22.8 50.5364 22.7471 50.5364 22.6678V21.8611C49.9016 22.6678 49.0817 22.9323 48.1031 22.9323C47.032 22.9323 45.5509 22.4827 45.5509 20.7768C45.5509 19.3882 46.6749 18.5419 48.4073 18.5419H50.4173V18.3303C50.4173 17.3517 49.809 16.8228 48.5792 16.8228C47.6006 16.8228 47.0849 17.1666 46.8469 17.8146C46.8204 17.8939 46.7807 17.9468 46.7014 17.9468H45.7493C45.6699 17.9468 45.617 17.8939 45.6302 17.8146ZM48.3015 21.8347C49.2272 21.8347 50.4173 21.2131 50.4173 19.8775V19.5998H48.447C47.2965 19.5998 46.794 19.9965 46.794 20.7239C46.794 21.4644 47.3097 21.8347 48.3015 21.8347Z",fill:r}),(0,n.jsx)("path",{d:"M38.5824 22.6678V15.95C38.5824 15.8707 38.6353 15.8178 38.7146 15.8178H39.5874C39.6668 15.8178 39.7197 15.8707 39.7197 15.95V16.6112C40.2089 15.9235 40.8701 15.6855 41.7297 15.6855C43.2901 15.6855 44.4671 16.6509 44.4671 18.5551V22.6678C44.4671 22.7471 44.4142 22.8 44.3348 22.8H43.3827C43.3034 22.8 43.2505 22.7471 43.2505 22.6678V18.6477C43.2505 17.3914 42.4967 16.8228 41.5181 16.8228C40.6586 16.8228 39.799 17.3385 39.799 18.6477V22.6678C39.799 22.7471 39.7461 22.8 39.6668 22.8H38.7146C38.6353 22.8 38.5824 22.7471 38.5824 22.6678Z",fill:r}),(0,n.jsx)("path",{d:"M29.6249 22.6678L32.6267 13.53C32.6532 13.4374 32.7061 13.3978 32.7986 13.3978H34.6368C34.7293 13.3978 34.7822 13.4374 34.8087 13.53L37.7708 22.6678C37.7973 22.7471 37.7576 22.8 37.6783 22.8H36.6204C36.5278 22.8 36.4749 22.7604 36.4484 22.6678L35.6947 20.3404H31.6746L30.934 22.6678C30.9076 22.7604 30.8547 22.8 30.7621 22.8H29.7174C29.6381 22.8 29.5984 22.7471 29.6249 22.6678ZM32.0581 19.1502H35.3244L33.8565 14.6144H33.5127L32.0581 19.1502Z",fill:r}),(0,n.jsx)("path",{d:"M35.9254 5.95097C35.4095 5.72582 34.7141 5.58617 33.8392 5.53487C33.1153 5.49212 32.6165 5.36957 32.3486 5.17007C32.0779 4.97057 31.9439 4.69127 31.9439 4.32932C31.9439 3.99302 32.0836 3.71372 32.36 3.48857C32.6393 3.26342 33.0241 3.14942 33.52 3.14942C34.0672 3.14942 34.5061 3.27197 34.8395 3.51992C35.1587 3.75932 35.3525 4.10132 35.4209 4.54592C35.4266 4.57442 35.4494 4.59437 35.4779 4.59437H37.1423C37.1765 4.59437 37.2022 4.56587 37.1993 4.53167C37.0996 3.59972 36.7319 2.87867 36.0935 2.36852C35.4409 1.84697 34.5916 1.58762 33.5485 1.58762C32.9129 1.58762 32.3458 1.70447 31.8442 1.93817C31.3454 2.17187 30.9493 2.49962 30.6586 2.91857C30.3679 3.33752 30.2225 3.82202 30.2225 4.36922C30.2225 5.01332 30.365 5.52632 30.6529 5.90537C30.9407 6.28442 31.3426 6.56372 31.8584 6.74042C32.3743 6.91712 32.987 7.02827 33.6938 7.07102C34.3835 7.11662 34.8794 7.23917 35.1844 7.44152C35.4893 7.64387 35.6404 7.95452 35.6404 8.36777C35.6404 8.77532 35.4779 9.10022 35.1559 9.34247C34.8338 9.58472 34.375 9.70727 33.785 9.70727C33.2378 9.70727 32.7818 9.58187 32.4199 9.32822C32.0693 9.08312 31.8556 8.70977 31.7786 8.20532C31.7758 8.17682 31.7501 8.15687 31.7216 8.15687H30.0572C30.023 8.15687 29.9974 8.18537 30.0002 8.21672C30.0515 8.88647 30.2482 9.44792 30.593 9.89822C30.9464 10.3628 31.3996 10.7076 31.9525 10.9328C32.5054 11.1579 33.1124 11.2719 33.7736 11.2719C34.4804 11.2719 35.1074 11.1465 35.6546 10.8929C36.2018 10.6421 36.6293 10.2915 36.9343 9.84692C37.2392 9.39947 37.3903 8.88647 37.3903 8.30222C37.3903 7.74647 37.2763 7.27052 37.0454 6.87722C36.8174 6.48677 36.4441 6.17612 35.9254 5.95097Z",fill:r}),(0,n.jsx)("path",{d:"M43.1217 4.42907C42.6058 4.14977 42.0415 4.01297 41.4316 4.01297C40.8046 4.01297 40.2346 4.15262 39.7216 4.42907C39.2086 4.70837 38.8039 5.11592 38.5018 5.65457C38.2026 6.19322 38.0515 6.85157 38.0515 7.62962C38.0515 8.40767 38.2026 9.06602 38.5018 9.60467C38.8011 10.1433 39.2086 10.5537 39.7216 10.8359C40.2346 11.118 40.8046 11.2605 41.4316 11.2605C42.0415 11.2605 42.6058 11.118 43.1217 10.8359C43.6375 10.5537 44.0508 10.1433 44.3614 9.60467C44.6692 9.06602 44.826 8.40767 44.826 7.62962C44.826 6.85157 44.6721 6.19322 44.3614 5.65457C44.0536 5.11592 43.6404 4.70552 43.1217 4.42907ZM42.6514 9.17147C42.3522 9.53057 41.9446 9.70727 41.4316 9.70727C40.9186 9.70727 40.5139 9.52772 40.2204 9.17147C39.924 8.81237 39.7758 8.30222 39.7758 7.64102C39.7758 6.96842 39.9268 6.45542 40.2261 6.09632C40.5253 5.73722 40.9272 5.56052 41.4316 5.56052C41.9446 5.56052 42.3493 5.74007 42.6514 6.09632C42.9507 6.45542 43.1017 6.96842 43.1017 7.64102C43.1017 8.30507 42.9535 8.81522 42.6514 9.17147Z",fill:r}),(0,n.jsx)("path",{d:"M46.8066 1.65886C46.4475 1.96381 46.2708 2.42836 46.2708 3.05821V4.08706C46.2708 4.11841 46.2451 4.14406 46.2138 4.14406H45.2419C45.2106 4.14406 45.1849 4.16971 45.1849 4.20106V5.65171C45.1849 5.68306 45.2106 5.70871 45.2419 5.70871H46.2138C46.2451 5.70871 46.2708 5.73436 46.2708 5.76571V11.0838C46.2708 11.1152 46.2964 11.1408 46.3278 11.1408H47.8839C47.9152 11.1408 47.9409 11.1152 47.9409 11.0838V5.76286C47.9409 5.73151 47.9665 5.70586 47.9979 5.70586H49.6851C49.7164 5.70586 49.7421 5.68021 49.7421 5.64886V4.19821C49.7421 4.16686 49.7164 4.14121 49.6851 4.14121H47.9979C47.9665 4.14121 47.9409 4.11556 47.9409 4.08421V3.38596C47.9409 2.96986 48.1176 2.76181 48.471 2.76181H49.6851C49.7164 2.76181 49.7421 2.73616 49.7421 2.70481V1.25701C49.7421 1.22566 49.7164 1.20001 49.6851 1.20001H48.1518C47.6131 1.20001 47.1657 1.35391 46.8066 1.65886Z",fill:r}),(0,n.jsx)("path",{d:"M55.6331 4.6998C55.0717 4.24095 54.3136 4.0101 53.3617 4.0101C52.8059 4.0101 52.3015 4.10415 51.8512 4.2894C51.4009 4.47465 51.0332 4.7454 50.751 5.0988C50.4803 5.43795 50.315 5.8398 50.2552 6.3072C50.2495 6.3414 50.278 6.3699 50.3122 6.3699H51.8968C51.9253 6.3699 51.9481 6.34995 51.9538 6.3243C52.0136 6.05355 52.1504 5.84265 52.3699 5.68875C52.6007 5.5263 52.9256 5.44365 53.3503 5.44365C54.3221 5.44365 54.8094 5.8512 54.8094 6.66345V6.76605C54.8094 6.7974 54.7838 6.82305 54.7524 6.82305H52.9684C52.102 6.82305 51.4151 7.02255 50.9078 7.4187C50.4005 7.8177 50.1469 8.36775 50.1469 9.07455C50.1469 9.5163 50.2267 9.8811 50.3863 10.169C50.5459 10.4568 50.7511 10.6848 51.0019 10.8501C51.2527 11.0183 51.5291 11.1351 51.8312 11.2007C52.1304 11.2662 52.4183 11.3004 52.6919 11.3004C53.3189 11.3004 53.8433 11.1779 54.2623 10.9356C54.4874 10.8045 54.6812 10.6535 54.8465 10.4768C54.8807 10.4397 54.9463 10.4654 54.9463 10.5167V11.0867C54.9463 11.118 54.9719 11.1437 55.0033 11.1437H56.4254C56.4568 11.1437 56.4824 11.118 56.4824 11.0867V6.6606C56.4739 5.8113 56.1946 5.15865 55.6331 4.6998ZM53.8376 9.73575C53.564 9.8583 53.2989 9.921 53.0424 9.921C52.6805 9.921 52.3898 9.8469 52.1675 9.70155C51.9452 9.5562 51.8369 9.3339 51.8369 9.0318C51.8369 8.7411 51.9452 8.5188 52.1618 8.3706C52.3784 8.21955 52.7204 8.14545 53.1878 8.14545H54.7468C54.7781 8.14545 54.8038 8.1711 54.8038 8.20245V8.2395C54.8038 8.61855 54.7097 8.93205 54.5244 9.18C54.3421 9.4251 54.1112 9.61035 53.8376 9.73575Z",fill:r}),(0,n.jsx)("path",{d:"M62.8236 7.45007C62.3647 7.12802 61.6038 6.93422 60.5436 6.87437C60.136 6.85727 59.8282 6.82022 59.6173 6.76037C59.4064 6.70337 59.2611 6.62642 59.187 6.52952C59.1129 6.43262 59.073 6.31007 59.073 6.15902C59.073 5.94812 59.1727 5.77427 59.3722 5.64317C59.5717 5.51207 59.8681 5.44367 60.2671 5.44367C60.6462 5.44367 60.9597 5.51492 61.2076 5.65457C61.4413 5.78852 61.581 5.98517 61.6237 6.24452C61.6294 6.27017 61.6522 6.29012 61.6807 6.29012H63.2653C63.2995 6.29012 63.3252 6.26162 63.3223 6.22742C63.2397 5.53487 62.9347 4.99337 62.4075 4.60862C61.8631 4.21247 61.1506 4.01297 60.2671 4.01297C59.7114 4.01297 59.2183 4.10702 58.7908 4.29227C58.3633 4.47752 58.027 4.73402 57.7848 5.06177C57.5425 5.38952 57.42 5.77427 57.42 6.21602C57.42 6.71192 57.5397 7.10522 57.7791 7.39592C58.0185 7.68662 58.3576 7.90037 58.7994 8.03147C59.2411 8.16257 59.7712 8.24237 60.3897 8.27087C60.9625 8.29652 61.3473 8.37062 61.5439 8.49032C61.7377 8.61002 61.8346 8.79242 61.8346 9.04037C61.8346 9.28832 61.7263 9.48497 61.5097 9.63032C61.2931 9.77567 60.9511 9.84977 60.4837 9.84977C60.0676 9.84977 59.7171 9.78137 59.4292 9.64457C59.1556 9.51347 58.9989 9.31112 58.9533 9.03467C58.9476 9.00902 58.9248 8.98907 58.8963 8.98907H57.3231C57.2889 8.98907 57.2632 9.01757 57.2661 9.04892C57.3003 9.54197 57.4599 9.95237 57.7392 10.2744C58.0299 10.6107 58.4118 10.8615 58.8849 11.0297C59.358 11.1978 59.8852 11.2805 60.4695 11.2805C61.1136 11.2805 61.6636 11.1779 62.1196 10.9755C62.5756 10.7732 62.9205 10.4939 63.1599 10.1405C63.3993 9.78707 63.519 9.39092 63.519 8.94632C63.5104 8.26802 63.2824 7.77212 62.8236 7.45007Z",fill:r}),(0,n.jsx)("path",{d:"M68.4011 9.47071C68.119 9.63031 67.814 9.71011 67.4863 9.71011C66.9733 9.71011 66.5686 9.53341 66.275 9.18001C65.9786 8.82661 65.8304 8.31361 65.8304 7.64386C65.8304 6.97126 65.9815 6.45826 66.2807 6.09916C66.58 5.74006 66.9818 5.56336 67.4863 5.56336C67.8568 5.56336 68.1703 5.65741 68.4268 5.84266C68.6719 6.02221 68.8372 6.29866 68.9198 6.67201C68.9255 6.69766 68.9483 6.71761 68.9768 6.71761H70.5757C70.6099 6.71761 70.6384 6.68626 70.6327 6.65206C70.5101 5.76571 70.1624 5.10736 69.5953 4.67701C69.011 4.23526 68.3014 4.01581 67.4606 4.01581C66.8678 4.01581 66.3178 4.15261 65.8105 4.42621C65.3032 4.69981 64.8928 5.10736 64.5793 5.64601C64.2658 6.18466 64.109 6.84871 64.109 7.63531C64.109 8.42191 64.2601 9.08311 64.5593 9.62461C64.8586 10.1633 65.2633 10.5708 65.7706 10.8501C66.2779 11.1294 66.8422 11.2662 67.4606 11.2662C67.9651 11.2662 68.441 11.175 68.8913 10.9955C69.3416 10.8131 69.7207 10.5338 70.0313 10.1547C70.3277 9.78991 70.5358 9.33676 70.6526 8.79241C70.6612 8.75821 70.6327 8.72401 70.5956 8.72401H68.9996C68.974 8.72401 68.9512 8.74111 68.9455 8.76676C68.8543 9.08026 68.6719 9.31681 68.4011 9.47071Z",fill:r}),(0,n.jsx)("path",{d:"M76.3725 4.42907C75.8567 4.14977 75.2924 4.01297 74.6825 4.01297C74.0555 4.01297 73.4855 4.15262 72.9725 4.42907C72.4595 4.70837 72.0548 5.11592 71.7527 5.65457C71.4534 6.19322 71.3024 6.85157 71.3024 7.62962C71.3024 8.40767 71.4534 9.06602 71.7527 9.60467C72.0519 10.1433 72.4595 10.5537 72.9725 10.8359C73.4855 11.118 74.0555 11.2605 74.6825 11.2605C75.2924 11.2605 75.8567 11.118 76.3725 10.8359C76.8884 10.5537 77.3016 10.1433 77.6123 9.60467C77.9201 9.06602 78.0768 8.40767 78.0768 7.62962C78.0768 6.85157 77.9229 6.19322 77.6123 5.65457C77.3016 5.11592 76.8884 4.70552 76.3725 4.42907ZM75.9023 9.17147C75.603 9.53057 75.1955 9.70727 74.6825 9.70727C74.1695 9.70727 73.7648 9.52772 73.4712 9.17147C73.1748 8.81237 73.0266 8.30222 73.0266 7.64102C73.0266 6.96842 73.1777 6.45542 73.4769 6.09632C73.7762 5.73722 74.178 5.56052 74.6825 5.56052C75.1955 5.56052 75.6002 5.74007 75.9023 6.09632C76.2015 6.45542 76.3526 6.96842 76.3526 7.64102C76.3526 8.30507 76.2015 8.81522 75.9023 9.17147Z",fill:r}),(0,n.jsx)("path",{d:"M80.8841 4.506C80.7758 4.6086 80.6732 4.7283 80.5763 4.86225C80.545 4.90785 80.4737 4.88506 80.4737 4.82806V4.1982C80.4737 4.16685 80.4481 4.1412 80.4167 4.1412H78.9803C78.949 4.1412 78.9233 4.16685 78.9233 4.1982V11.081C78.9233 11.1123 78.949 11.138 78.9803 11.138H80.5364C80.5678 11.138 80.5934 11.1123 80.5934 11.081V7.12515C80.5934 6.7803 80.6476 6.50386 80.753 6.29581C80.8585 6.08776 81.001 5.9367 81.1777 5.8455C81.3544 5.75146 81.5567 5.70585 81.7876 5.70585H83.0701C83.1014 5.70585 83.1271 5.6802 83.1271 5.64885V4.1982C83.1271 4.16685 83.1014 4.1412 83.0701 4.1412H82.0127C81.5168 4.14405 81.1406 4.26375 80.8841 4.506Z",fill:r}),(0,n.jsx)("path",{d:"M89.5395 5.66027C89.2574 5.11592 88.8698 4.70552 88.3796 4.42907C87.8894 4.15262 87.3393 4.01297 86.7294 4.01297C86.1366 4.01297 85.5894 4.15832 85.085 4.44902C84.5805 4.73972 84.1758 5.15582 83.8737 5.69447C83.5688 6.23312 83.4177 6.88292 83.4177 7.64387C83.4177 8.42192 83.5631 9.08027 83.8538 9.61892C84.1445 10.1576 84.5378 10.5651 85.0337 10.8444C85.5296 11.1237 86.0796 11.2605 86.6895 11.2605C87.4676 11.2605 88.1459 11.0696 88.7301 10.6905C89.2973 10.3229 89.6678 9.75857 89.8416 8.99762C89.8502 8.96342 89.8217 8.92922 89.7846 8.92922H88.1744C88.1487 8.92922 88.1288 8.94632 88.1202 8.96912C88.029 9.24842 87.8666 9.45077 87.63 9.57047C87.3821 9.69872 87.0828 9.76142 86.7294 9.76142C86.1908 9.76142 85.7832 9.57902 85.5039 9.21707C85.2959 8.94632 85.1648 8.58152 85.1135 8.12837C85.1106 8.09417 85.1363 8.06567 85.1705 8.06567H89.8901C89.9186 8.06567 89.9414 8.04572 89.9471 8.01722C89.9585 7.96307 89.9642 7.90892 89.9642 7.85762C89.9642 7.79207 89.9642 7.71797 89.9642 7.63817C89.9642 6.86297 89.8217 6.20462 89.5395 5.66027ZM86.7152 5.45507C87.2367 5.45507 87.6186 5.61752 87.8609 5.94527C88.0176 6.15332 88.1231 6.41552 88.1772 6.72617C88.1829 6.76037 88.1573 6.79457 88.1202 6.79457H85.2446C85.2075 6.79457 85.179 6.76037 85.1904 6.72332C85.2617 6.44687 85.3671 6.21032 85.5125 6.01937C85.7918 5.64317 86.1936 5.45507 86.7152 5.45507Z",fill:r}),(0,n.jsx)("path",{d:"M24 0.174087C24 0.078039 23.922 0 23.826 0H0.174C0.078 0 0 0.078039 0 0.174087V11.8259C0 11.922 0.078 12 0.174 12H5.82C5.916 12 5.994 11.922 5.994 11.8259V6.17709C5.994 6.08104 6.072 6.003 6.168 6.003H23.814C23.91 6.003 23.988 5.92496 23.988 5.82891V0.174087H24Z",fill:r}),(0,n.jsx)("path",{d:"M18.174 12.006C18.078 12.006 18 12.0841 18 12.1801V17.8289C18 17.925 17.922 18.003 17.826 18.003H0.174C0.078 18.003 0 18.081 0 18.1771V23.8259C0 23.922 0.078 24 0.174 24H23.82C23.916 24 23.994 23.922 23.994 23.8259V12.1801C23.994 12.0841 23.916 12.006 23.82 12.006H18.174Z",fill:r})]})}var v=s(82536),f=s(41940);function b(){let e=(0,d.wA)();return(0,n.jsx)(l.$n,{onClick:()=>{e((0,j.aS)()),(0,m.ke)({action:"click",type:"sign_in",location:"ai_insights"})},w:"100%",children:(0,n.jsx)(o.A,{id:"user.signIn"})})}function C(){return(0,n.jsx)(l.Mz,{href:"https://app.sofascore.com/nixz/dugvtlde",target:"_blank",rel:"nofollow noopener noreferrer",w:"100%",children:(0,n.jsx)(l.$n,{w:"100%",children:(0,n.jsx)(o.A,{id:"button_continue_in_app"})})})}function w(){let e=(0,d.d4)(p.$F),t=!!(null==e?void 0:e.id),{isDesktop:s}=(0,l.$c)();return t?s?(0,n.jsx)(f.JR,{position:f.m.AIInsights}):(0,n.jsx)(C,{}):(0,n.jsx)(b,{})}function S(e){let{textId:t}=e;return(0,n.jsxs)(l.EY,{textStyle:"body.mediumParagraph",children:[(0,n.jsx)(x.VsF,{fill:"primary.default",mr:"sm",isRtlPrevented:!0})," ",(0,n.jsx)(o.A,{id:t})]})}function k(){return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(S,{textId:"sofascore_analyst_benefit_forecasts"}),(0,n.jsx)(S,{textId:"sofascore_analyst_benefit_halftime_analysis"}),(0,n.jsx)(S,{textId:"sofascore_analyst_benefit_leagues"})]})}function A(){return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)(i.Tk,{pt:"xl",pb:"xl",px:"2xl",gap:"lg",children:[(0,n.jsx)(x.XEb,{fill:"onSurface.nLv1"}),(0,n.jsx)(l.EY,{textStyle:"display.medium",children:(0,n.jsx)(o.A,{id:"sofascore_analyst_subscription_title"})})]}),(0,n.jsx)(l.EY,{textStyle:"body.mediumParagraph",display:"block",px:"lg",py:"sm",children:(0,n.jsx)(o.A,{id:"sofascore_analyst_description_web_users"})}),(0,n.jsx)(i.so,{direction:"column",gap:"xs",px:"lg",py:"sm",children:(0,n.jsx)(k,{})})]})}function _(e){let{isOpen:t,setIsOpen:s}=e;return(0,h.eo)(t),(0,n.jsxs)(v.A,{isOpen:t,setIsOpen:s,width:340,children:[(0,n.jsx)(A,{}),(0,n.jsx)(i.so,{p:"lg",justify:"center",children:(0,n.jsx)(w,{})})]})}function T(e){let{eventStatusType:t}=e,s=(0,d.wA)(),[u,h]=(0,a.useState)(!1),g=(0,d.d4)(p.$F),v=!!(null==g?void 0:g.id),f=[r.XUj.NotStarted,r.XUj.InProgress].includes(t);return(0,n.jsxs)(c.Zp,{children:[(0,n.jsxs)(i.so,{align:"center",justify:"space-between",minH:"[52px]",px:"lg",cursor:"pointer",onClick:()=>{(0,m.ke)({action:"click",type:"open_AI_insights",location:"event_details"}),v?h(e=>!e):(h(!1),s((0,j.aS)()))},role:"button",children:[(0,n.jsx)(y,{height:18}),(0,n.jsxs)(i.so,{align:"center",children:[(0,n.jsx)(l.EY,{textStyle:"display.small",color:"primary.default",userSelect:"none",children:(0,n.jsx)(o.A,{id:f?"analyse_match_with_ai":"view_ai_match_analysis"})}),(0,n.jsx)(x.CCT,{fill:"primary.default"})]})]}),(0,n.jsx)(_,{isOpen:u,setIsOpen:h})]})}function P(){let{event:e}=(0,a.useContext)(u.y$),{showAiInsights:t,showPostmatchAiInsights:s}=(0,h.tN)(e,void 0,!0),r=(0,h.kR)();return(t||s)&&r?(0,n.jsx)(T,{eventStatusType:e.status.type}):null}},98423:(e,t,s)=>{s.d(t,{e:()=>r.e,p:()=>n.p});var n=s(91603),r=s(33480)},99397:(e,t,s)=>{s.d(t,{G:()=>r.A,t:()=>n.t});var n=s(91407),r=s(94400)}}]);