!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]="9b7b6913-0132-4a63-aa44-7af1eadca264",e._sentryDebugIdIdentifier="sentry-dbid-9b7b6913-0132-4a63-aa44-7af1eadca264")}catch(e){}}();"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[988],{14407:(e,t,n)=>{n.d(t,{I:()=>a});var i=n(6029),s=n(41735),r=n(94497);let o=s.default.span.withConfig({componentId:"sc-923226f3-0"})(["animation:"," 1s ease-in infinite;"],r.HI.fast),a=()=>(0,i.jsx)(o,{children:"'"})},60988:(e,t,n)=>{n.d(t,{n6:()=>er,MC:()=>g.M,lv:()=>g.l});var i=n(6029),s=n(21377),r=n(4967),o=n(41249),a=n(55729),l=n(90510),c=n(90248),d=n(14407),u=n(62859),f=n(73022),h=n(71046),m=n(31105),x=n(87763),p=n(37394),g=n(24313);let y=(e,t,n)=>n?(0,h.vJ)(e.tournament.category.sport.slug)?"".concat(n," ").concat(t):"".concat(t," (").concat(n,")"):t,v=e=>{let t=e.status.type===s.XUj.InProgress,n=e.crowdsourcingDataDisplayEnabled,i=(0,p.sw)(e)||e.isAwarded,r=(0,p.ux)(e);return t?n?"sofaSingles.crowdsourcingLive":"sofaSingles.live":r||e.isAwarded||!i?"onSurface.nLv3":"sofaSingles.live"};function j(e){let{isShortDate:t}=e,{event:n}=(0,a.useContext)(u.y$),j=r.pp(n.startTimestamp),w=j.getTime(),S=n.status.type===s.XUj.Finished,b=n.status.type===s.XUj.InProgress,C=n.status.type===s.XUj.NotStarted,I=n.status.code===s.sum.Halftime||n.status.code===s.sum["Extra time halftime"],T=(0,p.sw)(n)||n.isAwarded,k=(0,p.ux)(n),D=n.tournament.category.sport.slug===s.QCR.Football,P=n.crowdsourcingDataDisplayEnabled,U=n.status.type===s.XUj.WillContinue,A=(0,h.Sw)(n),z=v(n),{statusTimeOnly:L}=(0,g.l)(),M=(0,x.c8)((0,p.B_)(n),!0);return(0,i.jsxs)(o.az,{textAlign:"center",grow:0,shrink:0,mx:"sm",basis:56,title:M.toString(),children:[(0,i.jsx)(o.EY,{fontSize:12,color:"onSurface.nLv3",as:"bdi",children:function(){if(r.cK(j)||L)return(0,i.jsx)(l.ib,{value:w});let e=t?r.or.date:r.or.fullDate;return(0,i.jsx)(l.XU,{value:w,...e})}()}),(0,i.jsx)(m.c,{eventId:n.id,changeKey:"status",align:"center",children:(0,i.jsx)(o.EY,{block:!0,ellipsis:!0,w:56,fontSize:12,align:"center",as:"bdi",color:z,children:function(){if(L&&C&&!T)return null;if(b){if(P)return(0,i.jsx)(c.A,{id:"live"});if(n.status.code===s.sum["Awaiting extra time"])return(0,i.jsx)(c.A,{id:"awaitingExtraTime.short"});if(n.status.code===s.sum["Awaiting penalties"])return(0,i.jsx)(c.A,{id:"awaitingPenalties.short"});if([s.sum.Penalties,s.sum["Penalties alt."]].includes(n.status.code))return(0,i.jsx)(c.A,{id:"penalties"});if(n.time&&D&&!I)return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(f.kG,{time:n.time,status:n.status,currentPeriodStartTimestamp:n.currentPeriodStartTimestamp}),(0,i.jsx)(d.I,{})]})}return k?(0,i.jsx)(c.A,{id:"final_result_only_short"}):n.isAwarded?(0,i.jsx)(c.A,{id:"awarded"}):(b||S||T||U)&&M?y(n,M,A):r.cK(j)?"-":(0,i.jsx)(l.ib,{value:j.getTime()})}()})})]})}var w=n(49031),S=n(44194),b=n(81278),C=n(494),I=n(41735),T=n(54409),k=n(19451),D=n(50346),P=n(8703),U=n(98368),A=n(50154),z=n(82169),L=n(2294),M=n(10794),R=n(62827),E=n(87473),X=n(7360),_=n(947),Q=n(21501);let Y=e=>{let{text:t,width:n,ellipsis:s}=e;return n?(0,i.jsx)("span",{style:{display:"inline-block",width:n-1,overflow:"hidden",textOverflow:s?"ellipsis":"clip",whiteSpace:"nowrap",direction:s?"rtl":void 0},children:t}):null};function F(e){let{text:t,...n}=e,s=(0,a.useRef)(null),r=(0,Q.uc)(s)||0,[l,c]=n.font?n.font.split("."):["body","medium"],d=function(e,t){let n="get-text-width-div-id",i=document.createElement("div");i.style.position="absolute",i.style.top="-10000px",i.style.left="-10000px",i.style.font=t,i.id=n,i.innerHTML=e,document.body.appendChild(i);let s=document.getElementById(n),r=s.offsetWidth;return document.body.removeChild(s),r}(t,o.Il.font[l][c]);return(0,i.jsx)(o.EY,{...n,children:(0,i.jsx)("div",{style:{display:"inline-block",width:"100%"},ref:s,children:d{let{event:t}=e,n=t.status.type===s.XUj.InProgress,i=t.lastPeriod?J[t.lastPeriod]:null;return[n&&t.homeTeam.id===t.currentBattingTeamId&&i===V()(K()(t.homeScore.innings)),n&&t.awayTeam.id===t.currentBattingTeamId&&i===V()(K()(t.awayScore.innings))]},q=e=>{let t=$()(e),n=V()(t),i=(null==n?void 0:n.overs)||0;return[(null==n?void 0:n.score)||0,(null==n?void 0:n.wickets)||0,(0,G.M)(i,1)]};function Z(e){let{event:t}=(0,a.useContext)(u.y$),n=(0,P.c5)(t),r=t.status.type===s.XUj.NotStarted,l=t.status.type===s.XUj.InProgress,c=t.winnerCode===s.Jfo.Left,d=t.winnerCode===s.Jfo.Right,f=void 0===t.winnerCode;if(n!==s.QCR.Cricket||r)return null;let[h,x]=O({event:t}),[p,g,y]=q(t.homeScore.innings),[v,j,w]=q(t.awayScore.innings),S=t.homeScore.display||0,b=t.awayScore.display||0,C=S>p||b>v,I=(0,R.sw)(t)?0===p&&p0&&"".concat(p).concat(g>=0&&g<10?"-".concat(g):""," (").concat(y,")"),C?(0,i.jsx)(o.az,{as:"strong",ml:"xs",children:S}):null]})}),(0,i.jsx)(o.so,{justify:"flex-end",children:k?(0,i.jsx)(o.EY,{align:"right",pr:"sm",block:!0,children:"-"}):(0,i.jsxs)(m.c,{eventId:t.id,changeKey:"awayScore.display",textAlign:"end",mr:"sm",color:l&&x?"sofaSingles.live":d||f?"onSurface.nLv1":"onSurface.nLv3",flex:"1 1 16px",maxW:"fit-content",children:[x&&D," ",v>0&&"".concat(v).concat(j>=0&&j<10?"-".concat(j):""," (").concat(w,")"),C?(0,i.jsx)(o.az,{as:"strong",ml:"xs",children:b}):null]})})]})}function ee(e){let{event:t}=(0,a.useContext)(u.y$),[n,r]=O({event:t}),l=(0,P.c5)(t),c=t.status.type===s.XUj.NotStarted,d=t.status.type===s.XUj.InProgress,f=t.winnerCode===s.Jfo.Left,h=t.winnerCode===s.Jfo.Right,x=void 0===t.winnerCode;if(l!==s.QCR.Cricket||c)return null;let p=t.homeScore.display||"-",g=t.awayScore.display||"-",y="-"!==p||"-"!==g;return(0,i.jsxs)(o.az,{pr:"sm",...e,children:[y?(0,i.jsx)(o.az,{mb:"xxs",children:(0,i.jsx)(m.c,{eventId:t.id,changeKey:"homeScore.display",textAlign:"end",color:d&&n?"sofaSingles.live":f||x?"onSurface.nLv1":"onSurface.nLv3",children:p})}):null,y?(0,i.jsx)(o.az,{children:(0,i.jsx)(m.c,{eventId:t.id,changeKey:"awayScore.display",textAlign:"end",color:d&&r?"sofaSingles.live":h||x?"onSurface.nLv1":"onSurface.nLv3",children:g})}):null]})}let et=(0,I.default)(o.so).withConfig({componentId:"sc-929a8fc9-0"})(["align-items:center;position:relative;color:",";&.active{background-color:",";}"],e=>e.theme.colors.onSurface.nLv1,e=>e.theme.colors.neutral.highlight),en=[s.QCR.Basketball,s.QCR.IceHockey,s.QCR.AmericanFootball,s.QCR.Floorball,s.QCR.AussieRules],ei=[s.QCR.Volleyball,s.QCR.Baseball,s.QCR.BeachVolley,s.QCR.Badminton],es=function(e){let{children:t}=e;return"function"!=typeof t?null:(0,i.jsx)(o.az,{flex:"0 1 auto",mr:"md",children:(0,i.jsx)(o.EY,{as:"div",align:"center",ellipsis:!0,style:{overflow:"visible"},children:t()})})};function er(e){var t,n;let r=(0,g.l)(),{children:l,style:c,odds:d,isSelected:f,entity:h,incidents:m,isReferenceTeamId:x}=e,{isAdsTestTreatment:p}=(0,A.Q)(),{isDesktop:y}=(0,S.$c)(),v=void 0===e.isShort?r.isShort:e.isShort,I=p&&y||(null!=(n=e.isNarrow)?n:r.isNarrow),R=void 0===e.isShortDate?r.isShortDate:e.isShortDate,_=void 0===e.hideIncidentIcons?r.hideIncidentIcons:e.hideIncidentIcons,{event:Q}=(0,a.useContext)(u.y$),Y=(0,C.d4)(M.LQ),F=(0,b.useRouter)().route===k.xW.Favorites,B=(0,P.c5)(Q),K=(0,C.d4)((0,L.Ul)(Q)),N=r.showOdds&&K,V=B===s.QCR.Cricket&&!F,W=Q.status.type===s.XUj.InProgress,$=Q.status.type===s.XUj.Finished,G=W&&Q.crowdsourcingDataDisplayEnabled,J=$&&Q.crowdsourcingDataDisplayEnabled,O=B===s.QCR.AmericanFootball&&W&&(null==(t=Q.tournament.uniqueTournament)?void 0:t.hasDownDistance),q=O&&(0,U.H_)(Q.yardDistance),en=V||q,er=(0,w.TF)(Q,Y)?(0,i.jsx)(T.PEB,{fill:W?"sofaSingles.live":"neutral.default"}):void 0;return(0,i.jsxs)(et,{bg:f?"surface.s2":void 0,className:"js-list-cell-target js-list-cell-target-".concat(Q.id),isFinished:Q.status.type===s.XUj.Finished,h:en?68:48,style:c,children:[V?(0,i.jsx)(o.az,{minW:"md",w:"md",h:"100%"}):(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(z.kV,{eventId:Q.id}),(0,i.jsx)(j,{isShortDate:R})]}),(0,i.jsx)(o.az,{mr:"sm",h:en?56:36,flex:"0 0 1px",bg:"onSurface.nLv4"}),(0,i.jsxs)(o.az,{grow:1,overflowX:"clip",minW:"0",children:[(0,i.jsxs)(o.so,{align:"center",children:[(0,i.jsx)(X.g,{isShort:v,entity:h}),N?(0,i.jsx)(D.ZK,{eventId:Q.id,odds:d,sport:B,fallback:er}):(0,i.jsxs)(i.Fragment,{children:[_||Q.isAwarded?null:(0,i.jsx)(function(e){let{incidents:t,sportSlug:n,isReferenceTeamId:r}=e,{event:l,leftTeam:c}=(0,a.useContext)(u.y$);return n!==s.QCR.Cricket&&t?(0,i.jsx)(o.so,{mr:"sm",alignSelf:(null==r?void 0:r(Number(c.id),l.id))?"flex-start":"flex-end",children:(0,w.t3)(n,t)}):null},{isReferenceTeamId:x,incidents:m,sportSlug:B}),G&&(0,i.jsx)(T.Mv5,{fill:"sofaSingles.crowdsourcingLive"}),er,J&&(0,i.jsx)(T.Mv5,{fill:"onSurface.nLv3",w:16}),(0,i.jsx)(eo,{}),B===s.QCR.Cricket?(0,i.jsx)(Z,{mr:l?void 0:"sm"}):h!==s.wNW.Player?(0,i.jsx)(ea,{isNarrow:I||ei.includes(B)}):null]}),O&&(0,i.jsx)(U.x8,{event:Q}),N&&(0,i.jsx)(ee,{mr:l?void 0:"sm"}),!r.hideScores&&(0,i.jsx)(E.$,{})]}),V&&(0,i.jsx)(H,{event:Q,isShortDate:R}),q&&(0,i.jsx)(U.RU,{})]}),!!l&&(0,i.jsx)(o.az,{mr:"md",h:en?56:36,flex:"0 0 ".concat(+!!l,"px"),bg:"onSurface.nLv4"}),(0,i.jsx)(es,{children:l})]})}function eo(){let{event:e,leftScore:t,rightScore:n}=(0,a.useContext)(u.y$),r=(0,a.useContext)(I.ThemeContext),l="rtl"===r.settings.textDirection;if((0,P.c5)(e)===s.QCR.Tennis&&e.status.type===s.XUj.InProgress){let s=r.colors.secondary.default,a=(0,i.jsx)(T.OXq,{fill:s,position:"absolute",w:"12",h:"16",style:l?{right:-16}:{left:-16}});return(0,i.jsxs)(o.so,{direction:"column",mr:"md",ml:"lg",justify:"flex-end",align:"flex-end",w:"32",flex:"0 1 32px",children:[(0,i.jsxs)(o.az,{position:"relative",minW:"16",mb:"xxs",children:[1===e.firstToServe&&a,(0,i.jsx)(z.cU,{eventId:e.id,color:"secondary.default",textAlign:"end",changeKey:"homeScore.point",score:t.point})]}),(0,i.jsxs)(o.az,{position:"relative",minW:"16",children:[2===e.firstToServe&&a,(0,i.jsx)(z.cU,{eventId:e.id,color:"secondary.default",textAlign:"end",changeKey:"awayScore.point",score:n.point})]})]})}return null}function ea(e){let{isNarrow:t}=e,{mediaBreakpoint:n}=(0,S.$c)();return["lg","sm"].includes(n)&&!t?(0,i.jsx)(el,{}):(0,i.jsx)(ec,{})}function el(){var e,t;let{event:n,leftTeam:r,rightTeam:l,leftScore:c,rightScore:d}=(0,a.useContext)(u.y$),f=(null==(e=r.subTeams)?void 0:e.length)===2&&(null==(t=l.subTeams)?void 0:t.length)===2,[h,m]=(0,a.useMemo)(()=>{let e=[],t=[],r=(0,P.c5)(n),a=r===s.QCR.Tennis?"start":"end",l=[],u=0;return n.periods?(Object.keys(n.periods).filter(e=>!["point","current"].includes(e)).forEach(e=>{let t=c[e],n=d[e],s="".concat(e,"TieBreak"),r=c[s],a=d[s],h=f&&"period3TieBreak"===s&&!!r&&!!a&&(t===r||n===a),m=!h&&(r||0===r)?(0,i.jsx)(o.EY,{as:"sup",top:"0",left:t<10?"14px":"18px",position:"absolute",verticalAlign:"super",fontSize:"micro",lineHeight:"1","data-change-key":"homeScore.".concat(s),children:r}):null,x=!h&&(a||0===a)?(0,i.jsx)(o.EY,{as:"sup",top:"0",left:n<10?"14px":"18px",position:"absolute",verticalAlign:"super",fontSize:"micro",lineHeight:"1","data-change-key":"awayScore.".concat(s),children:a}):null;l.push({left:t,right:n,leftTie:m,rightTie:x,periodKey:e}),(t||0===t||n||0===n||m||x)&&u++}),l.forEach((l,c)=>{let{left:d,right:f,leftTie:h,rightTie:m,periodKey:x}=l,p=n.status.type===s.XUj.InProgress&&c+1===u,g=r===s.QCR.Tennis?"center":"end",y=d>99||f>99?36:24;e.push((0,i.jsxs)(o.az,{d:"inline-block",position:"relative",textAlign:a,w:y,children:[(0,i.jsx)(z.cU,{eventId:n.id,changeKey:"homeScore.".concat(x),score:d,textAlign:g,align:"flex-start",color:p?"sofaSingles.live":d>f?"onSurface.nLv1":"onSurface.nLv3",w:y}),h]},x)),t.push((0,i.jsxs)(o.az,{d:"inline-block",position:"relative",textAlign:a,w:y,children:[(0,i.jsx)(z.cU,{eventId:n.id,changeKey:"awayScore.".concat(x),score:f,textAlign:g,align:"flex-start",color:p?"sofaSingles.live":f>d?"onSurface.nLv1":"onSurface.nLv3",w:y}),m]},x))}),[e,t]):[void 0,void 0]},[n.periods,c,d,n.status.type]);return void 0!==n.periods&&(n.status.type!==s.XUj.NotStarted||(0,R.sw)(n))&&(h||m)?(0,i.jsxs)(o.az,{flex:"0 1 auto",children:[(0,i.jsx)(o.so,{h:"16",mb:"xxs",children:h}),(0,i.jsx)(o.so,{h:"16",children:m})]}):null}function ec(){let{event:e,leftScore:t,rightScore:n}=(0,a.useContext)(u.y$),r=(0,P.c5)(e);if(void 0===e.periods||!e.lastPeriod||en.includes(r))return null;let l=r===s.QCR.Tennis?"sofaSingles.live":"secondary.default";return e.status.type===s.XUj.InProgress&&e.lastPeriod?(0,i.jsxs)(o.az,{flex:"0 1 auto",w:"28",children:[(0,i.jsx)(o.az,{position:"relative",mb:"2",children:(0,i.jsx)(z.cU,{eventId:e.id,align:"right",color:l,changeKey:"homeScore.".concat(e.lastPeriod),score:t[e.lastPeriod]},e.lastPeriod)}),(0,i.jsx)(o.az,{position:"relative",children:(0,i.jsx)(z.cU,{eventId:e.id,align:"right",color:l,changeKey:"awayScore.".concat(e.lastPeriod),score:n[e.lastPeriod]},e.lastPeriod)})]}):null}},73022:(e,t,n)=>{n.d(t,{Gi:()=>i.Gi,iV:()=>i.iV,kG:()=>i.kG,lx:()=>i.lx,zV:()=>i.zV});var i=n(97477)},79027:(e,t,n)=>{n.d(t,{$_:()=>i.A}),n(94497);var i=n(60443);n(19600)},94497:(e,t,n)=>{n.d(t,{HI:()=>s,qG:()=>o});var i=n(41735);let s=(0,i.keyframes)(["0%{opacity:1;}30%{opacity:1;}60%{opacity:0.25;}100%{opacity:1;}"]);s.slow=(0,i.keyframes)(["0%{opacity:1;}5%{opacity:1;}10%{opacity:.25;}15%{opacity:1;}100%{opacity:1;}"]),s.fast=(0,i.keyframes)(["0%{opacity:1;}50%{opacity:1;}51%{opacity:0;}100%{opacity:0;}"]),(0,i.css)(["animation:"," 1s ease-in infinite;"],s).slow=(0,i.css)(["animation:"," 10s ease-in infinite;"],s.slow);let r=(0,i.keyframes)(["0%{transform:translateY(50px);opacity:0;}50%{opacity:1;}100%{opacity:1;transform:translateY(0);}"]);(0,i.css)(["animation:0.3s "," ease-in-out;animation-fill-mode:forwards;"],r);let o=(0,i.keyframes)(["from{opacity:0.0001;}to{opacity:1;}"])},97477:(e,t,n)=>{n.d(t,{Gi:()=>j,kG:()=>S,lx:()=>C,iV:()=>v,zV:()=>p});var i=n(6029),s=n(21377),r=n(4967),o=n(41249),a=n(55729),l=n(14407),c=n(47146),d=n(62827),u=n(31710),f=n(41735),h=n(79027);function m(){let e=(0,u._)(["font-size: 24px"]);return m=function(){return e},e}let x=f.default.span.withConfig({componentId:"sc-8990aa68-0"})(["font-size:20px;",";font-weight:500;"],h.$_.lgMin(m())),p=e=>{let{time:t,status:n,currentPeriodStartTimestamp:i}=e;return n.type===s.XUj.InProgress&&"number"==typeof(null==t?void 0:t.initial)&&!d.p2.includes(n.code)&&!!(t.currentPeriodStartTimestamp||i)},g=e=>e.map(e=>"0".concat(e).slice(-2)).join(":"),y=e=>e.code===s.sum["1st extra"]||e.code===s.sum["2nd extra"]||e.code===s.sum.Overtime?"ET-":"";class v extends a.PureComponent{componentDidMount(){this.start(),document.addEventListener("visibilitychange",this.onVisibilityChange)}componentDidUpdate(e){let{referenceTime:t}=this.props;t!==e.referenceTime&&this.resetDelta()}componentWillUnmount(){this.stop(),document.removeEventListener("visibilitychange",this.onVisibilityChange)}resetDelta(){let{referenceTime:e,modifier:t}=this.props,n=Math.floor(Date.now()/1e3);this.setState({delta:t<0?e-n:n-e})}tick(){if(1>=Math.abs(this.props.modifier)){let e=this.state.delta+this.props.modifier;this.setState({delta:e})}else this.resetDelta()}start(){if(this.stop(),Math.abs(this.props.modifier)>1){let e=Math.floor(Date.now()/1e3)-this.props.referenceTime,[,,,t]=(0,r.U1)(e);this.timeoutIntervalId=window.setTimeout(()=>{this.intervalId=window.setInterval(this.tick,1e3*this.props.modifier),this.tick()},(60-t+1)*1e3)}else this.intervalId=window.setInterval(this.tick,1e3)}stop(){window.clearInterval(this.intervalId),window.clearTimeout(this.timeoutIntervalId)}onVisibilityChange(){"visible"===document.visibilityState&&(this.resetDelta(),this.setState({isPageHidden:!1}),this.start()),"hidden"===document.visibilityState&&(this.stop(),this.setState({isPageHidden:!0}))}render(){if(this.state.isPageHidden)return"-";let e=this.state.delta,t=(0,r.U1)(e),n=g(t.slice(1));return this.props.children({timeParts:t,formattedTime:n,delta:e})}constructor(e){if(super(e),"function"!=typeof e.children&&(0,s.Cu5)())throw Error("Timekeeper component requires prop children as a function!");let t=Math.floor(Date.now()/1e3),n=this.props.modifier<0?e.referenceTime-t:t-e.referenceTime;this.state={delta:n,isPageHidden:!1},this.tick=this.tick.bind(this),this.start=this.start.bind(this),this.stop=this.stop.bind(this),this.resetDelta=this.resetDelta.bind(this),this.onVisibilityChange=this.onVisibilityChange.bind(this)}}function j(e){let{startTimestamp:t}=e;return(0,i.jsx)(v,{referenceTime:t,modifier:-1,children:e=>{let{timeParts:n,delta:s}=e,[r,o,a,l]=n,d="";return s<0?"-":r>=1?(0,i.jsx)(c.v,{timestamp:1e3*t,isAbsoluteTime:!0}):g([o,a,l])}})}function w(e){let{startTimestamp:t,children:n,modifier:s=1}=e;return(0,i.jsx)(v,{referenceTime:t,modifier:s,children:"function"==typeof n?n:e=>{let{delta:t,formattedTime:n}=e;return t<0?null:n}})}function S(e){let{time:t,status:n,currentPeriodStartTimestamp:s}=e;if("number"!=typeof(null==t?void 0:t.initial))return null;let r=t.currentPeriodStartTimestamp||s;if(!r)return null;let o=r-t.initial;return(0,i.jsx)(w,{startTimestamp:o,modifier:60,children:e=>{let{delta:i}=e;if(t.max&&i>t.max)return Math.floor(t.max/60)+"+";let s=0===i?1:Math.ceil(i/60),r=y(n);return s>=0?r+s:null}})}j.StyledComponent=x;let b={period1:"injuryTime1",period2:"injuryTime2",extra1:"injuryTime3",extra2:"injuryTime4"};function C(e){let{time:t,status:n,currentPeriodStartTimestamp:s,lastPeriod:a,hasMinuteBlinker:d}=e;if(!p({time:t,status:n,currentPeriodStartTimestamp:s}))return null;let u=a?t[b[a]]:void 0,f=(t.currentPeriodStartTimestamp||s)-t.initial;return(0,i.jsx)(w,{startTimestamp:f,children:e=>{let{timeParts:n,delta:s}=e;if(s<0)return null;let[a,h,m,x]=n;if(a>0)return(0,i.jsx)(c.v,{timestamp:1e3*f});let p="",g="",y=t.max,v=!1;if(y&&s>y){let e=s-y;if(e>r.av)v=!0,g=Math.floor(y/60)+"+";else if(e>0&&u){x=Math.floor(s%60),m=Math.floor(s/60),h=Math.floor(s/3600);let e=m<10?"0".concat(m):"".concat(m),t=x<10?"0".concat(x):"".concat(x);g="".concat(p+e,":").concat(t)}else{p+=Math.floor(y/60)+"+",x=Math.floor(e%60),m=Math.floor(e/60)%60,h=Math.floor(e/3600)%24;let t=m<10?"0".concat(m):"".concat(m),n=x<10?"0".concat(x):"".concat(x);g="".concat(p+t,":").concat(n)}}else{let e=(m=60*h+m)<10?"0".concat(m):"".concat(m),t=x<10?"0".concat(x):"".concat(x);g="".concat(p+e,":").concat(t)}return(0,i.jsxs)(o.so,{justify:"center",children:[g,u&&(0,i.jsx)(o.so,{px:"sm",br:"md",bg:"sofaSingles.liveHighlight",ml:"xs",align:"center",children:(0,i.jsxs)(o.EY,{font:"assistive.default",color:"sofaSingles.live",as:"bdi",children:["+",u,"'"]})}),d&&!v&&(0,i.jsx)(l.I,{})]})}})}},98368:(e,t,n)=>{n.d(t,{x8:()=>l,RU:()=>u,XE:()=>g,H_:()=>y,XB:()=>p});var i=n(6029),s=n(21377),r=n(76356),o=n(54409),a=n(65078);function l(e){var t;let{event:n}=e,l=(0,a.gm)(n.yardDistance,"currentPossession",n),c=Number(null==(t=n.yardDistance)?void 0:t.currentDown);return(0,i.jsx)(r.so,{alignSelf:"flex-start",direction:"column",mr:"-xs",h:"[34px]",w:"[20px]",justify:l===s.Jfo.Right?"flex-end":"flex-start",children:!(void 0===l||c<1||c>4)&&(0,i.jsx)(o.CvR,{icon:"af-touchdown",width:"16px",height:"16px",mr:"xs",mt:"xxs",fill:"sofaSingles.live"})})}var c=n(44194),d=n(90248);function u(){return(0,i.jsx)(r.so,{align:"center",children:(0,i.jsx)(c.EY,{textStyle:"body.medium",color:"status.live",children:(0,i.jsx)(d.A,{id:"am_football_red_zone_status"})})})}let f=e=>{switch(e){case 1:return"1st";case 2:return"2nd";case 3:return"3rd";case 4:return"4th";default:return}},h=e=>{let{currentDown:t,currentYardsToFirstDown:n,isGoalPossession:i}=e,s=f(t),r=n;if("number"==typeof n&&s)return n<1&&(r="Inches"),i&&(r="Goal"),"".concat(s," & ").concat(r)},m=e=>e.nameCode||e.name.slice(0,3).toLocaleUpperCase(),x=(e,t,n,i)=>{if("number"==typeof n&&void 0!==i)return"".concat(m(i===s.Jfo.Left?e:t)," ").concat(n)},p=e=>!!(e.currentPossession&&e.currentTeamHalf&&e.currentDown&&"number"==typeof e.currentYardline&&"number"==typeof e.currentYardsToFirstDown);function g(e,t){let{homeTeam:n,awayTeam:i}=t,r=m(e.currentPossession===s.Jfo.Left?n:i),o=h(e),a=x(n,i,e.currentYardline,e.currentTeamHalf);return o&&a?"".concat(r," ").concat(o," @ ").concat(a):null}function y(e){return!!e&&!!p(e)&&!!(e.currentYardline&&e.currentYardline<=20&&e.currentPossession!==e.currentTeamHalf)}}}]);