!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]="54fa8e30-9c30-441e-9584-0278f0f968ee",e._sentryDebugIdIdentifier="sentry-dbid-54fa8e30-9c30-441e-9584-0278f0f968ee")}catch(e){}}();"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[28018],{23240:(e,t,n)=>{n.d(t,{M:()=>s,l:()=>r});var i=n(55729);let s=(0,i.createContext)({}),r=()=>(0,i.useContext)(s);s.displayName="EventCellContext"},28018:(e,t,n)=>{n.d(t,{n6:()=>es,MC:()=>g.M,lv:()=>g.l});var i=n(6029),s=n(21377),r=n(4967),o=n(25940),a=n(55729),l=n(90510),c=n(90248),d=n(47125),u=n(18970),f=n(70923),h=n(63561),m=n(86300),x=n(81484),p=n(90223),g=n(23240);function y(e){let{isShortDate:t}=e,{event:n}=(0,a.useContext)(u.y$),y=r.pp(n.startTimestamp),v=y.getTime(),j=n.status.type===s.XUj.Finished,w=n.status.type===s.XUj.InProgress,S=n.status.type===s.XUj.NotStarted,b=n.status.code===s.sum.Halftime||n.status.code===s.sum["Extra time halftime"],I=(0,p.sw)(n)||n.isAwarded,C=(0,p.ux)(n),T=n.tournament.category.sport.slug===s.QCR.Football,P=n.crowdsourcingDataDisplayEnabled,k=n.status.type===s.XUj.WillContinue,D=(0,h.Sw)(n),U=(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"})(n),{statusTimeOnly:A}=(0,g.l)(),R=(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:R.toString(),children:[(0,i.jsx)(o.EY,{fontSize:12,color:"onSurface.nLv3",as:"bdi",children:function(){if(r.cK(y)||A)return(0,i.jsx)(l.ib,{value:v});let e=t?r.or.date:r.or.fullDate;return(0,i.jsx)(l.XU,{value:v,...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:U,children:function(){if(A&&S&&!I)return null;if(w){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&&T&&!b)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,{})]})}if(C)return(0,i.jsx)(c.A,{id:"final_result_only_short"});if(n.isAwarded)return(0,i.jsx)(c.A,{id:"awarded"});if((w||j||I||k)&&R)return D?(0,h.vJ)(n.tournament.category.sport.slug)?"".concat(D," ").concat(R):"".concat(R," (").concat(D,")"):R;return r.cK(y)?"-":(0,i.jsx)(l.ib,{value:y.getTime()})}()})})]})}var v=n(58456),j=n(28349),w=n(81278),S=n(494),b=n(41735),I=n(52466),C=n(90438),T=n(12155),P=n(41164),k=n(40076),D=n(98835),U=n(37455),A=n(72753),R=n(14831),L=n(76356);let M=()=>{let{event:e}=(0,a.useContext)(u.y$);return e.status.type===s.XUj.InProgress&&e.varInProgress&&(e.varInProgress.homeTeam||e.varInProgress.awayTeam)?e.varInProgress.homeTeam&&e.varInProgress.awayTeam?(0,i.jsx)(L.so,{animationName:"pulse",animationDuration:"[3s]",animationIterationCount:"infinite",children:(0,i.jsx)(I.FgT,{fill:"sofaSingles.live",w:16,h:16})}):(0,i.jsxs)(L.so,{direction:e.varInProgress.homeTeam?"column":"column-reverse",children:[(0,i.jsx)(L.so,{h:"lg",justify:"center",align:"center",animationName:"pulse",animationDuration:"[3s]",animationIterationCount:"infinite",children:(0,i.jsx)(I.FgT,{fill:"sofaSingles.live",w:16,h:16})}),(0,i.jsx)(L.az,{h:"lg"})]}):null};var z=n(8536),E=n(25133),X=n(947),Q=n(21501);let F=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 _(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=o.Il.font[l],u=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,"string"==typeof d?d:null==d?void 0:d[c]);return(0,i.jsx)(o.EY,{...n,children:(0,i.jsx)("div",{style:{display:"inline-block",width:"100%"},ref:s,children:u{let{event:t}=e,n=t.status.type===s.XUj.InProgress,i=t.lastPeriod?G[t.lastPeriod]:null;return[n&&t.homeTeam.id===t.currentBattingTeamId&&i===K()(N()(t.homeScore.innings)),n&&t.awayTeam.id===t.currentBattingTeamId&&i===K()(N()(t.awayScore.innings))]},O=e=>{let t=W()(e),n=K()(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,$.M)(i,1)]};function q(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]=J({event:t}),[p,g,y]=O(t.homeScore.innings),[v,j,w]=O(t.awayScore.innings),S=t.homeScore.display||0,b=t.awayScore.display||0,C=S>p||b>v,T=(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 Z(e){let{event:t}=(0,a.useContext)(u.y$),[n,r]=J({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 ee=(0,b.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),et=[s.QCR.Basketball,s.QCR.IceHockey,s.QCR.AmericanFootball,s.QCR.Floorball,s.QCR.AussieRules],en=[s.QCR.Volleyball,s.QCR.Baseball,s.QCR.BeachVolley,s.QCR.Badminton],ei=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"},position:"relative",children:t()})})};function es(e){var t,n;let r=(0,g.l)(),{children:l,style:c,odds:d,isSelected:f,entity:h,incidents:m,isReferenceTeamId:x}=e,p=(0,w.useRouter)(),j=void 0===e.isShort?r.isShort:e.isShort,b=null!=(n=e.isNarrow)?n:r.isNarrow,R=void 0===e.isShortDate?r.isShortDate:e.isShortDate,L=void 0===e.hideIncidentIcons?r.hideIncidentIcons:e.hideIncidentIcons,{event:X}=(0,a.useContext)(u.y$),Q=(0,S.d4)(A.LQ),F=p.route===C.xW.Favorites,_=(0,P.c5)(X),H=(0,S.d4)((0,U.Ul)(X)),N=r.showOdds&&H,B=_===s.QCR.Cricket&&!F,K=X.status.type===s.XUj.InProgress,V=X.status.type===s.XUj.Finished,W=K&&X.crowdsourcingDataDisplayEnabled,$=V&&X.crowdsourcingDataDisplayEnabled,G=_===s.QCR.AmericanFootball&&K&&(null==(t=X.tournament.uniqueTournament)?void 0:t.hasDownDistance),J=G&&(0,k.H_)(X.yardDistance),O=B||J,et=(0,v.TF)(X,Q)?(0,i.jsx)(I.PEB,{fill:K?"sofaSingles.live":"neutral.default"}):void 0;return(0,i.jsxs)(ee,{bg:f?"surface.s2":void 0,className:"js-list-cell-target js-list-cell-target-".concat(X.id),isFinished:X.status.type===s.XUj.Finished,h:O?68:48,style:c,children:[B?(0,i.jsx)(o.az,{minW:"md",w:"md",h:"100%"}):(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(D.kV,{eventId:X.id}),(0,i.jsx)(y,{isShortDate:R})]}),(0,i.jsx)(o.az,{mr:"sm",h:O?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)(E.g,{isShort:j,entity:h}),N?(0,i.jsx)(T.ZK,{eventId:X.id,odds:d,sport:_,fallback:et}):(0,i.jsxs)(i.Fragment,{children:[L||X.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,v.t3)(n,t)}):null},{isReferenceTeamId:x,incidents:m,sportSlug:_}),W&&(0,i.jsx)(I.Mv5,{fill:"sofaSingles.crowdsourcingLive"}),et,$&&(0,i.jsx)(I.Mv5,{fill:"onSurface.nLv3",w:16}),(0,i.jsx)(er,{}),_===s.QCR.Cricket?(0,i.jsx)(q,{mr:l?void 0:"sm"}):h!==s.wNW.Player?(0,i.jsx)(eo,{isNarrow:b||en.includes(_)}):null]}),G&&(0,i.jsx)(k.x8,{event:X}),N&&(0,i.jsx)(Z,{mr:l?void 0:"sm"}),_===s.QCR.Football&&(0,i.jsx)(M,{}),!r.hideScores&&(0,i.jsx)(z.$,{})]}),B&&(0,i.jsx)(Y,{event:X,isShortDate:R}),J&&(0,i.jsx)(k.RU,{})]}),!!l&&(0,i.jsx)(o.az,{mr:"md",h:O?56:36,flex:"0 0 ".concat(+!!l,"px"),bg:"onSurface.nLv4"}),(0,i.jsx)(ei,{children:l})]})}function er(){let{event:e,leftScore:t,rightScore:n}=(0,a.useContext)(u.y$),r=(0,a.useContext)(b.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)(I.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)(D.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)(D.cU,{eventId:e.id,color:"secondary.default",textAlign:"end",changeKey:"awayScore.point",score:n.point})]})]})}return null}function eo(e){let{isNarrow:t}=e,{mediaBreakpoint:n}=(0,j.$c)();return["lg","sm"].includes(n)&&!t?(0,i.jsx)(ea,{}):(0,i.jsx)(el,{})}function ea(){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)(D.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)(D.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 el(){let{event:e,leftScore:t,rightScore:n}=(0,a.useContext)(u.y$),r=(0,P.c5)(e);if(void 0===e.periods||!e.lastPeriod||et.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)(D.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)(D.cU,{eventId:e.id,align:"right",color:l,changeKey:"awayScore.".concat(e.lastPeriod),score:n[e.lastPeriod]},e.lastPeriod)})]}):null}},40076:(e,t,n)=>{n.d(t,{x8:()=>l,RU:()=>u,XE:()=>m,H_:()=>x,XB:()=>h});var i=n(6029),s=n(21377),r=n(76356),o=n(52466),a=n(67087);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(28349),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=>e.nameCode||e.name.slice(0,3).toLocaleUpperCase(),h=e=>!!(e.currentPossession&&e.currentTeamHalf&&e.currentDown&&"number"==typeof e.currentYardline&&"number"==typeof e.currentYardsToFirstDown);function m(e,t){let{homeTeam:n,awayTeam:i}=t,r=f(e.currentPossession===s.Jfo.Left?n:i),o=(e=>{let{currentDown:t,currentYardsToFirstDown:n,isGoalPossession:i}=e,s=(e=>{switch(e){case 1:return"1st";case 2:return"2nd";case 3:return"3rd";case 4:return"4th";default:return}})(t),r=n;if("number"==typeof n&&s)return n<1&&(r="Inches"),i&&(r="Goal"),"".concat(s," & ").concat(r)})(e),a=((e,t,n,i)=>{if("number"==typeof n&&void 0!==i)return"".concat(f(i===s.Jfo.Left?e:t)," ").concat(n)})(n,i,e.currentYardline,e.currentTeamHalf);return o&&a?"".concat(r," ").concat(o," @ ").concat(a):null}function x(e){return!!e&&!!h(e)&&!!(e.currentYardline&&e.currentYardline<=20&&e.currentPossession!==e.currentTeamHalf)}},47125:(e,t,n)=>{n.d(t,{I:()=>a});var i=n(6029),s=n(41735),r=n(79261);let o=s.default.span.withConfig({componentId:"sc-923226f3-0"})(["animation:"," 1s ease-in infinite;"],r.HI.fast),a=()=>(0,i.jsx)(o,{children:"'"})},64287:(e,t,n)=>{n.d(t,{Gi:()=>x,iV:()=>m,kG:()=>g,lx:()=>v,zV:()=>f});var i=n(6029),s=n(21377),r=n(4967),o=n(28349),a=n(76356),l=n(55729),c=n(47125),d=n(47402),u=n(14831);let f=e=>{let{time:t,status:n,currentPeriodStartTimestamp:i}=e;return n.type===s.XUj.InProgress&&"number"==typeof(null==t?void 0:t.initial)&&!u.p2.includes(n.code)&&!!(t.currentPeriodStartTimestamp||i)},h=e=>e.map(e=>"0".concat(e).slice(-2)).join(":");class m extends l.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=h(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 x(e){let{startTimestamp:t}=e;return(0,i.jsx)(m,{referenceTime:t,modifier:-1,children:e=>{let{timeParts:n,delta:s}=e,[r,o,a,l]=n;return s<0?"-":r>=1?(0,i.jsx)(d.v,{timestamp:1e3*t,isAbsoluteTime:!0}):h([o,a,l])}})}function p(e){let{startTimestamp:t,children:n,modifier:s=1}=e;return(0,i.jsx)(m,{referenceTime:t,modifier:s,children:"function"==typeof n?n:e=>{let{delta:t,formattedTime:n}=e;return t<0?null:n}})}function g(e){let{time:t,status:n,currentPeriodStartTimestamp:r}=e;if("number"!=typeof(null==t?void 0:t.initial))return null;let o=t.currentPeriodStartTimestamp||r;if(!o)return null;let a=o-t.initial;return(0,i.jsx)(p,{startTimestamp:a,modifier:60,children:e=>{let{delta:i}=e;if(t.max&&i>t.max)return Math.floor(t.max/60)+"+";let r=0===i?1:Math.ceil(i/60),o=n.code===s.sum["1st extra"]||n.code===s.sum["2nd extra"]||n.code===s.sum.Overtime?"ET-":"";return r>=0?o+r:null}})}let y={period1:"injuryTime1",period2:"injuryTime2",extra1:"injuryTime3",extra2:"injuryTime4"};function v(e){let{time:t,status:n,currentPeriodStartTimestamp:s,lastPeriod:l,hasMinuteBlinker:u}=e;if(!f({time:t,status:n,currentPeriodStartTimestamp:s}))return null;let h=l?t[y[l]]:void 0,m=(t.currentPeriodStartTimestamp||s)-t.initial;return(0,i.jsx)(p,{startTimestamp:m,children:e=>{let{timeParts:n,delta:s}=e;if(s<0)return null;let[l,f,x,p]=n;if(l>0)return(0,i.jsx)(d.v,{timestamp:1e3*m});let g="",y="",v=t.max,j=!1;if(v&&s>v){let e=s-v;if(e>r.av)j=!0,y=Math.floor(v/60)+"+";else if(e>0&&h){p=Math.floor(s%60),x=Math.floor(s/60),f=Math.floor(s/3600);let e=x<10?"0".concat(x):"".concat(x),t=p<10?"0".concat(p):"".concat(p);y="".concat(g+e,":").concat(t)}else{g+=Math.floor(v/60)+"'+",p=Math.floor(e%60),x=Math.floor(e/60)%60,f=Math.floor(e/3600)%24;let t=x<10?"0".concat(x):"".concat(x),n=p<10?"0".concat(p):"".concat(p);y="".concat(g+t,":").concat(n)}}else{let e=(x=60*f+x)<10?"0".concat(x):"".concat(x),t=p<10?"0".concat(p):"".concat(p);y="".concat(g+e,":").concat(t)}return(0,i.jsxs)(a.so,{justify:"center",children:[y,h&&(0,i.jsx)(a.so,{align:"center",bg:"status.liveHighlight",px:"sm",ml:"xs",br:"md",children:(0,i.jsxs)(o.Ym,{textStyle:"assistive.default",color:"status.live",children:["+",h,"'"]})}),u&&!j&&(0,i.jsx)(c.I,{})]})}})}},70923:(e,t,n)=>{n.d(t,{Gi:()=>i.Gi,iV:()=>i.iV,kG:()=>i.kG,lx:()=>i.lx,zV:()=>i.zV});var i=n(64287)},79261:(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;}"])}}]);