!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]="4859d3dd-6f95-4def-becb-26c962f21ff1",e._sentryDebugIdIdentifier="sentry-dbid-4859d3dd-6f95-4def-becb-26c962f21ff1")}catch(e){}}();"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[19268],{4790:(e,t,n)=>{n.d(t,{s:()=>o});async function o(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"Sofa365!Sofa365!",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"qC9sJnXgvT3C";if(!e)return;let o=new TextEncoder,r=o.encode(t),i={name:"AES-GCM",iv:o.encode(n)},l=await crypto.subtle.importKey("raw",r,i,!1,["decrypt"]),a=new Uint8Array(Array.from(window.atob(e)).map(e=>e.charCodeAt(0)));try{let e=await crypto.subtle.decrypt(i,l,a);return new TextDecoder().decode(e)}catch(e){throw Error("Decrypt failed")}}},8536:(e,t,n)=>{n.d(t,{$:()=>j});var o=n(6029),r=n(46787),i=n(51569),l=n(20325),a=n(55729),s=n(90248),d=n(18970),c=n(58456),u=n(41164),h=n(67087),f=n(98835);let v=(e,t,n,o)=>{let i=e===r.XUj.Finished,l=o===r.Jfo.Left,a=o===r.Jfo.Right,s="onSurface.nLv1",d="onSurface.nLv1",c="onSurface.nLv1",u="onSurface.nLv1";return(i||e===r.XUj.WillContinue)&&(s=l?"onSurface.nLv1":"onSurface.nLv3",d=a?"onSurface.nLv1":"onSurface.nLv3","number"==typeof t.penalties&&"number"==typeof n.penalties&&(c=t.penalties>n.penalties?"onSurface.nLv1":"onSurface.nLv3",u=n.penalties>t.penalties?"onSurface.nLv1":"onSurface.nLv3")),{leftColor:s,rightColor:d,leftPenaltyColor:c,rightPenaltyColor:u}};var g=n(52466),p=n(75866),x=function(e){return e[e.Home=1]="Home",e[e.Away=2]="Away",e}({}),m=n(67676);let w=e=>{let{event:t,leftScore:n,rightScore:r}=e,{mediaBreakpoint:a}=(0,i.$c)(),s=void 0!==t.bestOfSets&&t.bestOfSets>1,d=(0,m.U)(n)||0,u=(0,m.U)(r)||0;return(0,o.jsxs)(l.so,{direction:"column",align:"flex-end",pr:"sm",children:[(0,o.jsxs)(l.so,{align:"flex-end",children:[t.firstToServe===x.Home?(0,o.jsx)(g.v1,{color:"secondary.default"}):(0,o.jsx)(l.az,{w:"lg"}),void 0!==n.point&&(0,o.jsx)(i.EY,{color:"secondary.default",display:"block",ml:"[10px]",children:n.point||p.Zl}),s&&(0,o.jsx)(i.EY,{color:"status.live",display:"block",ml:"sm",children:d}),(0,o.jsx)(f.cU,{eventId:t.id,changeKey:"leftScore.display",color:"sofaSingles.live",...(0,c.J_)(t,n,a),textAlign:"end"})]}),(0,o.jsxs)(l.so,{align:"flex-end",children:[t.firstToServe===x.Away?(0,o.jsx)(g.v1,{color:"secondary.default"}):(0,o.jsx)(l.az,{w:"lg"}),void 0!==r.point&&(0,o.jsx)(i.EY,{color:"secondary.default",display:"block",ml:"[10px]",children:r.point||p.Zl}),s&&(0,o.jsx)(i.EY,{color:"status.live",display:"block",ml:"sm",children:u}),(0,o.jsx)(f.cU,{eventId:t.id,changeKey:"rightScore.display",color:"sofaSingles.live",...(0,c.J_)(t,r,a),textAlign:"end"})]})]})},y=()=>{let{event:e,leftScore:t,rightScore:n}=(0,a.useContext)(d.y$),{mediaBreakpoint:s}=(0,i.$c)(),u=(0,h.gm)(e,"winnerCode");if(e.status.type===r.XUj.NotStarted)return(0,o.jsx)(l.az,{w:"[38px]",flex:"[0 0 38px]",ml:"sm"});if(e.status.type===r.XUj.InProgress)return(0,o.jsx)(w,{event:e,leftScore:t,rightScore:n});let g=v(e.status.type,t,n,u);return(0,o.jsxs)(l.so,{direction:"column",align:"flex-end",pr:"sm",children:[(0,o.jsx)(l.so,{align:"flex-end",children:(0,o.jsx)(f.cU,{eventId:e.id,changeKey:"leftScore.display",color:g.leftColor||"onSurface.nLv3",...(0,c.J_)(e,t,s),textAlign:"end"})}),(0,o.jsx)(l.so,{align:"flex-end",children:(0,o.jsx)(f.cU,{eventId:e.id,changeKey:"rightScore.display",color:g.rightColor||"onSurface.nLv3",...(0,c.J_)(e,n,s),textAlign:"end"})})]})};function j(){let{event:e,leftScore:t,rightScore:n}=(0,a.useContext)(d.y$),s=(0,h.gm)(e,"aggregatedWinnerCode"),g=(0,u.c5)(e),p=(0,h.gm)(e,"winnerCode"),{mediaBreakpoint:x}=(0,i.$c)();if(g===r.QCR.Cricket)return null;if(g===r.QCR.MMA)return(0,o.jsx)(b,{winnerCode:e.winnerCode});if(g===r.QCR.Darts)return(0,o.jsx)(y,{});if(e.status.type===r.XUj.NotStarted)return(0,o.jsx)(l.az,{w:"[38px]",mr:"sm"});let m=e.status.type===r.XUj.InProgress,w=m?((e,t)=>{let n=e.tournament.category.sport.slug===r.QCR.Tennis,o=e.status.type===r.XUj.InProgress,i=e.crowdsourcingDataDisplayEnabled;return o&&(0,u.c5)(e)===r.QCR.Darts&&void 0===e.bestOfSets?"sofaSingles.live":o&&!n&&t===r.Jfo.Left?"onSurface.nLv1":o&&i?"sofaSingles.crowdsourcingLive":"inherit"})(e,p):m?"sofaSingles.live":"onSurface.nLv3",j=m?{leftColor:"onSurface.nLv3",rightColor:"onSurface.nLv3",leftPenaltyColor:"onSurface.nLv3",rightPenaltyColor:"onSurface.nLv3"}:v(e.status.type,t,n,p),C=s===r.Jfo.Left,S=s===r.Jfo.Right;return(0,o.jsxs)(l.so,{direction:"column",justify:"flex-end",align:"flex-end",w:"[38px]",mr:"sm",color:m?"status.live":"neutrals.nLv3",position:"relative",children:[(0,o.jsx)(f.cU,{eventId:e.id,changeKey:"homeScore.display",color:m?w:j.leftColor,penaltiesColor:m?w:j.leftPenaltyColor,...(0,c.J_)(e,t,x),aggWin:C,textAlign:"end"}),(0,o.jsx)(f.cU,{eventId:e.id,changeKey:"awayScore.display",color:m?w:j.rightColor,penaltiesColor:m?w:j.rightPenaltyColor,...(0,c.J_)(e,n,x),aggWin:S,textAlign:"end"})]})}function b(e){let{winnerCode:t}=e;return t!==r.Jfo.Left&&t!==r.Jfo.Right?null:(0,o.jsxs)(l.so,{direction:t===r.Jfo.Left?"column":"column-reverse",gap:"2xs",mx:"sm",children:[(0,o.jsx)(i.EY,{color:"secondary.default",textAlign:"center",display:"block",children:(0,o.jsx)(s.A,{id:"standings.label.wins"})}),(0,o.jsx)(i.EY,{color:"status.error.default",textAlign:"center",display:"block",children:(0,o.jsx)(s.A,{id:"standings.label.losses"})})]})}},15946:(e,t,n)=>{n.d(t,{A:()=>s});var o=n(46787),r=n(55729),i=n(494),l=n(41397),a=n(7646);function s(e,t){let n=null==t?void 0:t.shouldRefresh,[s,d]=(0,r.useState)(),[c,u]=(0,r.useState)(),h=(0,i.wA)();(0,r.useEffect)(()=>{(null==t?void 0:t.event)?h((0,a.$n)(t.event)):e&&o.nk6.fetchEvent(e).then(e=>{h((0,a.$n)(e.event)),d(e.event),u(void 0)}).catch(e=>{u(e),(null==t?void 0:t.onFetchError)&&t.onFetchError(),d(void 0)})},[e,null==t?void 0:t.event]);let f=(0,i.d4)(t=>{let{favorites:{events:n}}=t;return e?n[e]:void 0});(0,r.useEffect)(()=>{if(!e||!n)return;let t="event-details-".concat(e);return h((0,a.vB)({entities:[e],refreshTaskId:t},{fetchFunction:o.nk6.fetchEvent.bind(null,e)})),()=>{h((0,a.tM)(t))}},[e,n]);let[v,g]=(0,l.A)(f||(null==t?void 0:t.event),"homeTeam","awayTeam",s||(null==t?void 0:t.event)),[p,x]=(0,l.A)(f||(null==t?void 0:t.event),"homeScore","awayScore",s||(null==t?void 0:t.event));return{event:f,fetchedEvent:s,leftTeam:v,rightTeam:g,leftScore:p,rightScore:x,error:c}}},18612:(e,t,n)=>{n.d(t,{D:()=>o.D});var o=n(43451)},18862:(e,t,n)=>{n.d(t,{Y:()=>s,c:()=>a});var o=n(6029),r=n(494),i=n(33775),l=n(37455);let a=e=>{let{fractionalValue:t,children:n}=e,a=(0,r.d4)(l.$4),s=(0,i.YB)(t,a);return(0,o.jsx)(o.Fragment,{children:n?n(s):s})},s=e=>{let[t,n]=e.split("/");return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)("sup",{children:t}),"/",(0,o.jsx)("sub",{children:n})]})}},18970:(e,t,n)=>{n.d(t,{y$:()=>l,cb:()=>i,Ws:()=>o.A});var o=n(74664);let r=(0,n(55729).createContext)({});var i=function(e){return e.EventPage="event_details",e.Widget="event_widget",e.BettingWidget="betting_widget",e.MainList="main_list",e.FeaturedMatch="featured_match",e.OddsTable="odds_table",e.FeaturedOdds="featured_odds",e.SpecialEventWidget="special_event_widget",e.FeaturedTournamentTab="featured_tournament_tab",e.AdditionalOdds="additional_odds",e.AdditionalOddsTab="additional_odds_tab",e.MonetizedOddsTab="monetized_odds_tab",e.WeeklyChallenge="weekly_challenge",e.Fantasy="fantasy",e}({});let l=r},20284:(e,t,n)=>{n.d(t,{LS:()=>h,SR:()=>u});var o=n(46787),r=n(22375),i=n(60235),l=n(494),a=n(72753),s=n(43738);let d=(e,t)=>(!t.visibleTo||!(e>=t.visibleTo))&&(!t.visibleFrom||!(e("AF"===t||e&&s.x.includes(e)?[o.G6l.AFCON]:[]).map(e=>s.g[e]).filter(e=>void 0!==e&&d((0,r.UG)(new Date),e)),u=(e,t)=>{let n=(0,l.d4)(a.LQ),r=(0,l.d4)(a.uZ);return e!==o.QCR.Football?[]:c(n,r).filter(e=>d(t,e))},h=()=>{let e=(0,i.hX)(),t=(0,l.d4)(a.LQ),n=(0,l.d4)(a.uZ);return e?{tournament:void 0}:{tournament:c(t,n).find(e=>d((0,r.UG)(new Date),e))}}},25133:(e,t,n)=>{n.d(t,{g:()=>p});var o=n(6029),r=n(49519),i=n(46787),l=n(51569),a=n(20325),s=n(55729),d=n(947),c=n(18970),u=n(52466),h=n(67087),f=n(88505),v=n(58456);function g(e){let{count:t}=e;return"number"!=typeof t||t<1?null:(0,o.jsxs)(l.Ym,{children:[(0,o.jsx)(u.sm9,{width:"14",height:"14",color:"status.error.default"}),t>1&&(0,o.jsxs)(l.EY,{textStyle:"body.small",color:"neutrals.nLv3",verticalAlign:"middle",children:["x",t]})]})}function p(e){var t,n,u,p,x,m;let{isShort:w,style:y,entity:j}=e,b=(0,d.A)(),{event:C,leftTeam:S,rightTeam:L}=(0,s.useContext)(c.y$),[R,A]=(0,h.jr)(C,"homeRedCards","awayRedCards"),k=(0,h.gm)(C,"winnerCode"),T=C.status.type===i.XUj.Finished,_=k===i.Jfo.Left,F=k===i.Jfo.Right,E=T||C.status.type===i.XUj.WillContinue,D=j===i.wNW.Manager||j===i.wNW.Player,M=(0,v.PZ)(C,b.formatMessage,b.locale),Y=(0,o.jsx)(r.p,{id:S.id,name:S.name,size:"lg",isSmall:!0}),N=(0,o.jsx)(r.p,{id:L.id,name:L.name,size:"lg",isSmall:!0});return S.type===i.YVh.Person?Y=(0,o.jsx)(r.w,{size:16,alpha2:null==(t=S.country)?void 0:t.alpha2,fallback:(0,o.jsx)(l._V,{src:"/static/images/placeholders/team.svg",w:"lg",h:"lg",alt:null==(n=S.country)?void 0:n.name}),name:null==(u=S.country)?void 0:u.name}):S.type===i.YVh.Double&&(Y=null),L.type===i.YVh.Person?N=(0,o.jsx)(r.w,{size:16,alpha2:null==(p=L.country)?void 0:p.alpha2,fallback:(0,o.jsx)(l._V,{src:"/static/images/placeholders/team.svg",w:"lg",h:"lg",alt:null==(x=L.country)?void 0:x.name}),name:null==(m=L.country)?void 0:m.name}):L.type===i.YVh.Double&&(N=null),(0,o.jsxs)(a.az,{title:M,overflow:"hidden",minW:"[0px]",style:y||{flex:"1 1 ".concat(w?"100px":"140px")},children:[(0,o.jsxs)(a.so,{align:"center",mb:"2xs",children:[Y&&(0,o.jsx)(a.az,{w:"lg",h:"lg",mr:"sm",children:Y}),(0,o.jsxs)(l.Ym,{color:E&&!_?"neutrals.nLv3":"neutrals.nLv1",truncate:!0,children:[(0,o.jsx)(f.Rm,{team:S,short:!0}),D?null:(0,o.jsx)(g,{count:R})]})]}),(0,o.jsxs)(a.so,{align:"center",children:[N&&(0,o.jsx)(a.az,{w:"lg",h:"lg",mr:"sm",children:N}),(0,o.jsxs)(l.Ym,{color:E&&!F?"neutrals.nLv3":"neutrals.nLv1",truncate:!0,children:[(0,o.jsx)(f.Rm,{team:L,short:!0}),D?null:(0,o.jsx)(g,{count:A})]})]})]})}},41164:(e,t,n)=>{n.d(t,{AD:()=>o.AD,Mh:()=>o.Mh,Sw:()=>o.Sw,c5:()=>o.c5,f2:()=>o.f2,jQ:()=>o.jQ,jY:()=>o.jY,rK:()=>o.rK,rf:()=>o.rf,vJ:()=>o.vJ});var o=n(63561)},41342:(e,t,n)=>{n.d(t,{Hs:()=>i,NR:()=>r,p4:()=>o});let o="/21866864457/preroll_video_app",r="https://pubads.g.doubleclick.net/gampad/live/ads?iu="+o+"&description_url=http%3A%2F%2Fsofascore.com&tfcd=0&npa=0&sz=1x1%7C400x300%7C640x480&ciu_szs=300x250%2C336x280%2C728x90&min_ad_duration=5000&max_ad_duration=30000&gdfp_req=1&unviewed_position_start=1&output=vast&env=vp&impl=s&correlator=",i=["BR","BG","JP","UK","KE","GB","NG","IT","NL","ES","MA","IR","BD","IN","TH","VN"]},41397:(e,t,n)=>{n.d(t,{A:()=>r});var o=n(95700);function r(e,t,n,r){let i=(0,o.A)(r);if(!(e&&void 0!==t&&void 0!==n))return[];let[l,a]=[e[t],e[n]];return i?[a,l]:[l,a]}},43451:(e,t,n)=>{n.d(t,{D:()=>l});var o=n(6029),r=n(36145),i=n(41735);let l=({width:e="100%",height:t,animate:n=!1,viewBox:l,style:a,children:s,uniqueKey:d})=>{let c=(0,i.useTheme)();return(0,o.jsx)(r.Ay,{speed:2,animate:n,width:e,height:t,backgroundColor:n?c.colors.surface.s0:c.colors.surface.s2,foregroundColor:c.colors.surface.s2,viewBox:l,style:a,uniqueKey:d,children:s})}},45525:(e,t,n)=>{n.d(t,{W:()=>i,X:()=>r});var o=n(41342);function r(e){return!e||!o.Hs.includes(e)}function i(e){var t;return e&&(null==(t=window.navigator.connection)?void 0:t.effectiveType)?"4g"===window.navigator.connection.effectiveType:!e}},47402:(e,t,n)=>{n.d(t,{v:()=>l});var o=n(6029),r=n(29705);let i={second:59,minute:59,hour:24,day:7},l=e=>{let{timestamp:t,isAbsoluteTime:n,children:l}=e,{value:a,unit:s}=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Date.now(),n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=arguments.length>3?arguments[3]:void 0,r={...i,...n||{}},l=(e-t)/1e3;if(Math.abs(l)0)return{value:Math.round(h),unit:"year"};let f=12*h+d.getMonth()-c.getMonth();return Math.round(Math.abs(f))>0?{value:Math.round(f),unit:"month"}:{value:Math.round(l/604800),unit:"week"}}(t,void 0,void 0,n);return(0,o.jsx)(r.A,{value:a,unit:s,numeric:"auto",children:e=>"function"==typeof l?l(e):(0,o.jsx)(o.Fragment,{children:e})})}},56587:(e,t,n)=>{n.d(t,{ZK:()=>k,Ay:()=>E});var o=n(6029),r=n(18612),i=n(46787),l=n(22375),a=n(94565),s=n(78383),d=n.n(s),c=n(55729),u=n(90510),h=n(90248),f=n(494),v=n(18970);n(8536);var g=n(25133),p=n(67087),x=n(11219),m=n(18862),w=n(68789),y=n(64046),j=n(37455),b=n(8785),C=n(95084),S=n(89827);let L=e=>e<20?"sofaSingles.value":"error.default",R=e=>-1!==[i.QCR.Football,i.QCR.Handball].indexOf(e),A=e=>{let{hasDraw:t}=e;return(0,o.jsx)(a.az,{minW:t?132:88,w:t?132:88,ml:"xs",children:(0,o.jsxs)(r.D,{height:"auto",viewBox:"0 0 ".concat(t?132:88," 36"),uniqueKey:"event-cell-odds-cl",children:[(0,o.jsx)("rect",{x:"19",y:"4",width:"7",height:"13",rx:"4",ry:"2"}),(0,o.jsx)("rect",{x:"63",y:"4",width:"7",height:"13",rx:"4",ry:"2"}),t&&(0,o.jsx)("rect",{x:"93",y:"20",width:"34",height:"16",rx:"4",ry:"4"}),(0,o.jsx)("rect",{x:"5",y:"20",width:"34",height:"16",rx:"4",ry:"4"}),(0,o.jsx)("rect",{x:"49",y:"20",width:"34",height:"16",rx:"4",ry:"4"}),t&&(0,o.jsx)("rect",{x:"107",y:"4",width:"7",height:"13",rx:"4",ry:"4"})]})})};function k(e){let{odds:t,sport:n,eventId:r,fallback:i}=e,l=(0,w.Ae)(),s=(0,f.d4)(j.$4),d=(0,p.g3)(),u=null==l?void 0:l.branded,h="fractional"===s,g=(0,c.useCallback)(e=>{e.stopPropagation(),(0,C.Fe)({id:r,provider:null==l?void 0:l.provider.slug,providerType:null==l?void 0:l.type,category:null==t?void 0:t.marketName,type:y.jF.Featured,location:v.cb.MainList,position:y.ki.OddsValue})},[r,l,t]),x=R(n);if(!t)return(0,o.jsx)(A,{hasDraw:x});if(t.loaded)return i||(0,o.jsx)("div",{style:{minWidth:x?132:88}});let S=(0,b.nu)(t.choices,d),L=h?m.Y:void 0;return(0,o.jsx)(o.Fragment,{children:S.map(e=>{let n=l&&u?(0,b.Iz)(e,t,l):null,r=(0,o.jsxs)(a.so,{direction:"column",align:"center",gap:"xs",children:[(0,o.jsx)(a.EY,{font:"assistive.default",color:"onSurface.nLv3",children:e.name}),(0,o.jsx)(a.so,{justify:"center",align:"center",w:h?48:40,h:h?20:16,border:e.winning?"primary.default":"onSurface.nLv4",br:"xs",bg:"surface.s1",hoverBg:"surface.s2",children:(0,o.jsx)(a.EY,{font:"display.micro",fontSize:h?14:void 0,letterSpacing:h?"-0.5px":void 0,color:t.isLive?"sofaSingles.value":"onSurface.nLv1",lineHeight:1,children:(0,o.jsx)(m.c,{fractionalValue:e.fractionalValue,children:L})})})]});return n?(0,o.jsx)(a.az,{as:"a",target:"_blank",href:n,rel:"nofollow noopener",onClick:g,zIndex:a.Py.Button,children:r},e.name):r})})}function T(e){let{startTimestamp:t,showDraw:n}=e;return(0,o.jsxs)(a.so,{justify:"space-between",px:"lg",pt:"xs",children:[(0,o.jsx)(a.EY,{font:"assistive.micro",color:"onSurface.nLv3",children:(0,o.jsx)(u.XU,{value:1e3*t,...l.or.dateTime})}),(0,o.jsxs)(a.so,{gap:"sm",children:[(0,o.jsx)(a.EY,{w:40,font:"assistive.micro",color:"onSurface.nLv3",align:"center",children:"1"}),n&&(0,o.jsx)(a.EY,{w:40,font:"assistive.micro",color:"onSurface.nLv3",align:"center",children:"X"}),(0,o.jsx)(a.EY,{w:40,font:"assistive.micro",color:"onSurface.nLv3",align:"center",children:"2"}),(0,o.jsx)(a.EY,{w:60,font:"assistive.micro",color:"onSurface.nLv3",align:"center",children:(0,o.jsx)(h.A,{id:"betting.drop"})})]})]})}function _(e){let{isChoice:t,choice:n,drop:r}=e;return(0,o.jsxs)(a.az,{children:[(0,o.jsx)(a.az,{w:40,border:"onSurface.nLv4",textAlign:"center",br:"sm",mb:"xs",children:(0,o.jsx)(a.EY,{font:"display.micro",lineHeight:"16px",color:"onSurface.nLv1",children:n.initialFractionalValue&&(0,o.jsx)(m.c,{fractionalValue:n.initialFractionalValue})})}),(0,o.jsx)(a.az,{w:40,border:"onSurface.nLv4",textAlign:"center",br:"sm",children:(0,o.jsx)(a.EY,{font:"display.micro",lineHeight:"16px",color:t?L(r):"onSurface.nLv1",children:(0,o.jsx)(m.c,{fractionalValue:n.fractionalValue})})})]})}function F(e){let{choices:t,choice:n,showDraw:r,drop:i}=e,l=t.length-1,[s,d]=(0,p.jr)(t,0,l);return(0,o.jsxs)(a.so,{gap:"sm",align:"center",children:[(0,o.jsx)(_,{choice:s,isChoice:s.name===n,drop:i},s.name),r&&(0,o.jsx)(_,{choice:t[1],isChoice:t[1].name===n,drop:i},t[1].name),(0,o.jsx)(_,{choice:d,isChoice:d.name===n,drop:i},d.name),(0,o.jsx)(a.EY,{font:"display.small",color:L(i),w:60,align:"center",children:"".concat((0,S.M)(i,1),"%")})]})}let E=function(e){let{event:t,choice:n,onClick:r=d(),isSelected:i,choices:l,drop:s,isMobile:c}=e,{event:u,...h}=(0,p.AR)(t),f=u.tournament.category.sport.slug,m=(R(u.tournament.category.sport.slug)||R(f)||null===f)&&3===l.length;return(0,o.jsx)(v.y$,{value:{event:u,...h},children:(0,o.jsx)(x.tj,{event:u,children:(0,o.jsxs)(a.az,{bg:[void 0,i?"surface.s2":"surface.s1"],onClick:e=>{r&&r(e,u.id,c)},cursor:"pointer",hoverBg:"surface.s2",children:[(0,o.jsx)(T,{startTimestamp:u.startTimestamp,showDraw:m}),(0,o.jsxs)(a.so,{justify:"space-between",align:"center",px:"lg",py:"sm",children:[(0,o.jsx)(g.g,{style:c?{flex:"1 1 auto"}:{}}),(0,o.jsx)(F,{choice:n,choices:l,drop:s,showDraw:m})]})]})})})}},58456:(e,t,n)=>{n.d(t,{J_:()=>x,PZ:()=>u,TF:()=>m,t3:()=>v});var o=n(6029),r=n(46787),i=n(51569),l=n(55729),a=n(52466),s=n(41164),d=n(45525),c=n(80055);function u(e,t,n){return t({id:"event.title"},{home:(0,c.s)(e.homeTeam,n),away:(0,c.s)(e.awayTeam,n)})}let h={[r.QCR.IceHockey]:{assists:e=>(0,o.jsx)(a.NcS,{icon:"ice-hockey-puck",width:e.width,height:e.height,color:"neutrals.nLv1"}),goals:e=>(0,o.jsx)(a.CvR,{icon:"hockey-pak",width:e.width,height:e.height,color:"neutrals.nLv1"})},[r.QCR.Handball]:{goals:e=>(0,o.jsx)(a.NcS,{icon:"handball",width:e.width,height:e.height,color:"neutrals.nLv1"})},[r.QCR.Football]:{redCards:e=>(0,o.jsx)(a.CvR,{icon:"card-red",width:e.width,height:e.height,color:"status.error.default"}),yellowRedCards:e=>(0,o.jsx)(a.CvR,{icon:"card-double-yellow",width:e.width,height:e.height}),yellowCards:e=>(0,o.jsx)(a.CvR,{icon:"card-yellow",width:e.width,height:e.height,color:"rating.s65"}),ownGoals:e=>(0,o.jsx)(a.NcS,{icon:"football-own-goal",width:e.width,height:e.height,color:"status.error.default"}),assists:e=>(0,o.jsx)(a.NcS,{icon:"football-assist",width:e.width,height:e.height,color:"neutrals.nLv1"}),penaltyGoals:e=>(0,o.jsx)(a.NcS,{icon:"football-penalty",width:e.width,height:e.height,color:"neutrals.nLv1"}),goals:e=>(0,o.jsx)(a.NcS,{icon:"football-ball",width:e.width,height:e.height,color:"neutrals.nLv1"})},[r.QCR.AmericanFootball]:{kickingExtraMade:e=>(0,o.jsx)(a.CvR,{icon:"af-extra-point",width:e.width,height:e.height,color:"neutrals.nLv1"}),kickingFgMade:e=>(0,o.jsx)(a.CvR,{icon:"af-field-goal",width:e.width,height:e.height,color:"neutrals.nLv1"}),passingTouchdowns:e=>(0,o.jsx)(a.NcS,{icon:"af-passing-touchdown",width:e.width,height:e.height,color:"neutrals.nLv1"}),rushingTouchdowns:e=>(0,o.jsx)(a.CvR,{icon:"af-touchdown",width:e.width,height:e.height,color:"neutrals.nLv1"}),receivingTouchdowns:e=>(0,o.jsx)(a.CvR,{icon:"af-touchdown",width:e.width,height:e.height,color:"neutrals.nLv1"}),puntReturnsTouchdowns:e=>(0,o.jsx)(a.CvR,{icon:"af-touchdown",width:e.width,height:e.height,color:"neutrals.nLv1"}),puntingReturnTouchdowns:e=>(0,o.jsx)(a.CvR,{icon:"af-touchdown",width:e.width,height:e.height,color:"neutrals.nLv1"}),kickReturnsTouchdowns:e=>(0,o.jsx)(a.CvR,{icon:"af-touchdown",width:e.width,height:e.height,color:"neutrals.nLv1"}),fumbleTouchdownReturns:e=>(0,o.jsx)(a.CvR,{icon:"af-touchdown",width:e.width,height:e.height,color:"neutrals.nLv1"}),defensiveInterceptionsTouchdowns:e=>(0,o.jsx)(a.CvR,{icon:"af-touchdown",width:e.width,height:e.height,color:"neutrals.nLv1"})},[r.QCR.Minifootball]:{redCards:e=>(0,o.jsx)(a.CvR,{icon:"card-red",width:e.width,height:e.height,color:"status.error.default"}),yellowRedCards:e=>(0,o.jsx)(a.CvR,{icon:"card-double-yellow",width:e.width,height:e.height}),yellowCards:e=>(0,o.jsx)(a.CvR,{icon:"card-yellow",width:e.width,height:e.height,color:"rating.s65"}),ownGoals:e=>(0,o.jsx)(a.NcS,{icon:"football-own-goal",width:e.width,height:e.height,color:"status.error.default"}),assists:e=>(0,o.jsx)(a.NcS,{icon:"football-assist",width:e.width,height:e.height,color:"neutrals.nLv1"}),penaltyGoals:e=>(0,o.jsx)(a.NcS,{icon:"football-penalty",width:e.width,height:e.height,color:"neutrals.nLv1"}),goals:e=>(0,o.jsx)(a.NcS,{icon:"football-ball",width:e.width,height:e.height,color:"neutrals.nLv1"}),accumulatedPenaltyGoals:e=>(0,o.jsx)(a.CvR,{icon:"accumulated-penalty",width:e.width,height:e.height,color:"neutrals.nLv1"})}},f={rushingTouchdowns:1,receivingTouchdowns:1,puntReturnsTouchdowns:1,puntingReturnTouchdowns:1,kickReturnsTouchdowns:1,fumbleTouchdownReturns:1,defensiveInterceptionsTouchdowns:1},v=(e,t)=>{let n=[],s=h[e]||{};if(Object.keys(s).map(a=>{let d=s[a],c=(null==t?void 0:t[a])||0;if(!c||a in f||e===r.QCR.Football&&"goals"===a&&!(c-=(null==t?void 0:t.penaltyGoals)||0)||"yellowCards"===a&&((null==t?void 0:t.redCards)||(null==t?void 0:t.yellowRedCards)))return;let u=16;"yellowRedCards"===a&&(u=20);let h=c>1?c:"";n.push((0,o.jsxs)(l.Fragment,{children:[(0,o.jsx)(i.EY,{textStyle:"assistive.default",color:"neutrals.nLv1",ml:"sm",children:h}),(0,o.jsx)(d,{width:u,height:u},"".concat(c,"-").concat(a))]},"".concat(c,"-").concat(a)))}),e===r.QCR.AmericanFootball){let e=Object.keys(f).map(e=>(null==t?void 0:t[e])||0).reduce((e,t)=>e+t,0);e&&n.push((0,o.jsxs)(l.Fragment,{children:[(0,o.jsx)(i.EY,{textStyle:"assistive.default",color:"neutrals.nLv1",ml:"sm",children:e>1&&e}),(0,o.jsx)(a.CvR,{icon:"af-touchdown",width:16,height:16,color:"neutrals.nLv1"},"special")]},"".concat(e,"-af")))}return n},g=["sm","lg"],p=[r.QCR.IceHockey,r.QCR.Waterpolo,r.QCR.Floorball],x=(e,t,n)=>[r.sum.Penalties,r.sum.AP].includes(e.status.code)&&"number"==typeof t.penalties?g.includes(n)&&p.includes((0,s.c5)(e))?{score:t.display}:{score:t.display,penalties:t.penalties}:{score:t.display},m=(e,t)=>(e.status.type===r.XUj.NotStarted||e.status.type===r.XUj.InProgress)&&e.streamContentId&&!(0,d.X)(t)},61552:(e,t,n)=>{n.d(t,{KY:()=>c,Oz:()=>v,UR:()=>h,gj:()=>d,lZ:()=>s,mq:()=>u,qF:()=>f});var o=n(6029),r=n(46787),i=n(93338),l=n(52466),a=n(89827);let s=(e,t,n)=>{let o=e.status.type===r.XUj.InProgress,l=o&&e.crowdsourcingDataDisplayEnabled,a=t===r.Jfo.Left,s=t===r.Jfo.Right;return l?i.S.var("colors.status.crowdsourcingLive"):o?i.S.var("colors.status.live"):n?a?i.S.var("colors.neutrals.nLv1"):i.S.var("colors.neutrals.nLv3"):s?i.S.var("colors.neutrals.nLv1"):i.S.var("colors.neutrals.nLv3")};function d(e){let t=(null==e?void 0:e.score)||0,n=(null==e?void 0:e.wickets)||0;return t||n?"".concat(t).concat(n>=0&&n<10?"-".concat(n):""):"-"}let c=(e,t)=>(0,a.M)(e.map(e=>{var n;return(null==t||null==(n=t[e])?void 0:n.overs)||0}).reduce((e,t)=>e+t,0),1),u=e=>{switch(e){case"WC":case"LL":return"colors.playoffs.relegation";case"Q":case"A":case"PR":case"SE":return"colors.playoffs.promotionToXPlayoff";default:return"colors.playoffs.promotionToYPlayoff"}},h=(e,t,n)=>{if(e===r.QCR.Tennis)return n===r.Jfo.Left||n===r.Jfo.Right?(0,o.jsx)(l.OXq,{color:"secondary.default"}):void 0;if(e===r.QCR.AmericanFootball){let e=null==t?void 0:t.currentPossession,n=Number(null==t?void 0:t.currentDown);return n>=1&&n<=4&&(e===r.Jfo.Left||e===r.Jfo.Right)?(0,o.jsx)(l.CvR,{icon:"af-touchdown",w:16,h:16,color:"status.live"}):void 0}},f=(e,t,n)=>Object.keys(e).filter(o=>n.includes(o)&&void 0!==e[o]&&void 0!==t[o]),v=(e,t,n,o,r,i)=>n&&r===i?"onColor.default":(o?e>t:t>e)?"onSurface.nLv1":"onSurface.nLv3"},64046:(e,t,n)=>{n.d(t,{fl:()=>d,jF:()=>s,kW:()=>u,ki:()=>c});var o=n(55729),r=n(18970),i=n(16503),l=n(95084),a=n(4790),s=function(e){return e.Featured="featured",e.Additional="additional",e.Streaks="streaks",e.Compliance="compliance",e}({}),d=function(e){return e.BetBoostButton="bet_boost_button",e.AffiliateButton="affiliate_button",e}({}),c=function(e){return e.ProviderLogo="provider_logo",e.OddsValue="odds_value",e.BookmakerButton="bookmaker_button",e.AffiliateButton="affiliate_button",e}({});function u(e){let{event:t,location:n}=(0,o.useContext)(r.y$),s=e.location||n,c=e.countryOddsProvider,u=(0,a.s)(null==c?void 0:c.impressionCostEncrypted),h="compliance"===e.type||c&&t.status.type&&(e.marketName||e.isComparison),f=Object.values(d).find(t=>{var n,o;return!!(null==(o=e.activeCTA)||null==(n=o[t])?void 0:n.isActive)}),v=async()=>{"compliance"===e.type?(0,l.D5)({id:t.id,provider:null==c?void 0:c.provider.slug,status:t.status.type,location:s===r.cb.Widget?r.cb.EventPage:s,value:await u}):c&&t.status.type&&(e.marketName||e.isComparison)&&(0,l.CH)({id:t.id,provider:null==c?void 0:c.provider.slug,providerType:null==c?void 0:c.type,category:e.marketName,status:t.status.type,location:s,value:await u,is_active:!!f,type:f})},g=e.deps||[],p=(0,i.e)(v,{deps:[t.id,f,...g]});return{ref:h?p:void 0,makeOnClick:(0,o.useCallback)((n,o,r)=>{if(c&&n)return()=>{(0,l.Fe)({id:t.id,provider:r?r.provider.slug:c.provider.slug,providerType:c.type,category:n,type:e.type,location:s,position:o})}},[t.id,c,n])}}},67087:(e,t,n)=>{n.d(t,{gm:()=>o.A,g3:()=>r.A,mJ:()=>i.A,jr:()=>l.A,AR:()=>s,h2:()=>h});var o=n(81162),r=n(95700),i=n(15946),l=n(41397),a=n(494);function s(e){let t=(0,a.d4)(t=>{let{favorites:{events:n}}=t;return n[e.id]}),[n,o]=(0,l.A)(e,"homeTeam","awayTeam",e),[r,i]=(0,l.A)(e,"homeScore","awayScore",e);return{event:t||e,leftTeam:n,rightTeam:o,leftScore:r,rightScore:i}}var d=n(46787),c=n(55729),u=n(18970);function h(e,t){var n,r;let{event:i,leftTeam:l,rightTeam:a}=(0,c.useContext)(u.y$),s=(0,o.A)(i,"winnerCode"),h=(i.status.code===d.sum.AET||i.status.code===d.sum.AP)&&i.tournament.category.sport.slug===d.QCR.IceHockey,f=e?t=>e===t:t||(()=>!1),v=f(l.id,i.id)||(null==(n=l.subTeams)?void 0:n.some(e=>f(e.id,i.id))),g=f(a.id,i.id)||(null==(r=a.subTeams)?void 0:r.some(e=>f(e.id,i.id)));switch(s){case d.Jfo.Left:if(v)return d.h18.Win;if(g)return h?d.h18.OvertimeLoss:d.h18.Lose;break;case d.Jfo.Right:if(v)return h?d.h18.OvertimeLoss:d.h18.Lose;if(g)return d.h18.Win;break;case d.Jfo.Draw:if(v||g)return d.h18.Draw}}},67676:(e,t,n)=>{n.d(t,{U:()=>o});function o(e){let t=Object.keys(e).filter(e=>e.startsWith("period")).sort((e,t)=>Number(e.replace("period",""))-Number(t.replace("period",""))).pop();if(t)return e[t]}},68789:(e,t,n)=>{n.d(t,{Ae:()=>u,F0:()=>d,ks:()=>c,uZ:()=>h});var o=n(46787),r=n(22375),i=n(494),l=n(20284),a=n(37455);let s=(e,t)=>{var n;return((e,t,n)=>{let i=h(t),a=(0,l.SR)(e,(0,r.UG)(new Date));return i&&t&&a.find(e=>e.id===t)&&i.featuredOddsDisplayArea===o.kRm.TournamentAndEvents?i:n})(e.tournament.category.sport.slug,null==(n=e.tournament.uniqueTournament)?void 0:n.id,t)},d=e=>s(e,(0,i.d4)(a.a5)),c=e=>s(e,(0,i.d4)(a.Zj)),u=()=>(0,i.d4)(a.a5),h=e=>{let t=(0,i.d4)(a.eD),n=(0,i.d4)(a.Np);if(e)return null==t?void 0:t.find(t=>{var o;return(null==(o=t.featuredUniqueTournament)?void 0:o.id)===e&&t.provider.id===(null==n?void 0:n[e])})}},74664:(e,t,n)=>{n.d(t,{A:()=>l,o:()=>a});var o=n(46787),r=n(55729);let i=(0,r.createContext)(o.QCR.Football),l=i,a=()=>{let e=(0,r.useContext)(i);if(!e)throw Error("useSport must be used within SportContext component");return e}},75866:(e,t,n)=>{n.d(t,{Zl:()=>l,cr:()=>i,Vh:()=>r,qF:()=>h.qF,Oz:()=>h.Oz,sX:()=>u});var o=n(46787);let r=[o.QCR.Tennis,o.QCR.Volleyball],i=7,l=501;var a=n(55729),s=n(18970),d=n(67087);function c(e){if(!e)return;let{wins:t,draws:n,losses:o}=e;return"".concat(t,"-").concat(o).concat(void 0!==n?"-".concat(n):"")}function u(){let{event:e}=(0,a.useContext)(s.y$),t=(0,d.g3)(),n=t?e.awayTeamSeasonHistoricalForm:e.homeTeamSeasonHistoricalForm,o=t?e.homeTeamSeasonHistoricalForm:e.awayTeamSeasonHistoricalForm;return{leftWLD:c(n),rightWLD:c(o)}}var h=n(61552)},81162:(e,t,n)=>{n.d(t,{A:()=>r});var o=n(95700);function r(e,t,n){let r=(0,o.A)(n);if(!(e&&t))return;let i=e[t];if("number"==typeof i)return r&&[1,2].includes(i)?1===i?2:1:i}},95700:(e,t,n)=>{n.d(t,{A:()=>a});var o=n(55729),r=n(494),i=n(18970),l=n(90808);function a(e){var t;let n=(0,o.useContext)(i.y$),a=e||n.event,s=(0,r.d4)(l.xl);return(null==a||null==(t=a.tournament.uniqueTournament)?void 0:t.displayInverseHomeAwayTeams)&&s}}}]);