!function(){try{var t="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},e=(new t.Error).stack;e&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[e]="b6f1a1d1-be2f-40d1-a0bd-1fed81b95760",t._sentryDebugIdIdentifier="sentry-dbid-b6f1a1d1-be2f-40d1-a0bd-1fed81b95760")}catch(t){}}();"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6986],{10533:(t,e,r)=>{function n(t){return function(){return t}}r.d(e,{A:()=>h}),Array.prototype.slice;var i=r(88251);let a=Math.PI,s=2*a,l=s-1e-6;function o(t){this._+=t[0];for(let e=1,r=t.length;e=0))throw Error(`invalid digits: ${t}`);if(e>15)return o;let r=10**e;return function(t){this._+=t[0];for(let e=1,n=t.length;e1e-6)if(Math.abs(d*o-c*u)>1e-6&&i){let p=r-s,f=n-l,x=o*o+c*c,m=Math.sqrt(x),g=Math.sqrt(h),v=i*Math.tan((a-Math.acos((x+h-(p*p+f*f))/(2*m*g)))/2),y=v/g,_=v/m;Math.abs(y-1)>1e-6&&this._append`L${t+y*u},${e+y*d}`,this._append`A${i},${i},0,0,${+(d*p>u*f)},${this._x1=t+_*o},${this._y1=e+_*c}`}else this._append`L${this._x1=t},${this._y1=e}`}arc(t,e,r,n,i,o){if(t*=1,e*=1,r*=1,o=!!o,r<0)throw Error(`negative radius: ${r}`);let c=r*Math.cos(n),u=r*Math.sin(n),d=t+c,h=e+u,p=1^o,f=o?n-i:i-n;null===this._x1?this._append`M${d},${h}`:(Math.abs(this._x1-d)>1e-6||Math.abs(this._y1-h)>1e-6)&&this._append`L${d},${h}`,r&&(f<0&&(f=f%s+s),f>l?this._append`A${r},${r},0,1,${p},${t-c},${e-u}A${r},${r},0,1,${p},${this._x1=d},${this._y1=h}`:f>1e-6&&this._append`A${r},${r},0,${+(f>=a)},${p},${this._x1=t+r*Math.cos(i)},${this._y1=e+r*Math.sin(i)}`)}rect(t,e,r,n){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+e}h${r*=1}v${+n}h${-r}Z`}toString(){return this._}}function u(t){return t[0]}function d(t){return t[1]}function h(t,e){let r;var a=n(!0),s=null,l=i.A,o=null,h=(r=3,p.digits=function(t){if(!arguments.length)return r;if(null==t)r=null;else{let e=Math.floor(t);if(!(e>=0))throw RangeError(`invalid digits: ${t}`);r=e}return p},()=>new c(r));function p(r){var n,i,c,u,d=(r="object"==typeof(n=r)&&"length"in n?n:Array.from(n)).length,p=!1;for(null==s&&(o=l(u=h())),i=0;i<=d;++i)!(i{r.d(e,{GZ:()=>s,Jm:()=>l,bi:()=>a,ej:()=>n,gI:()=>i});let n=15,i=4,a=16,s=8,l={touchdown:{viewBox:"0 0 24 24",d:"M2.02 16.48c.17-3.83 1.67-7.33 4.37-10.11 2.77-2.68 6.25-4.18 10.09-4.35 1.53-.07 3.26 0 4.43.98l.1.1c.78.93 1.07 2.32.97 4.42-.17 3.84-1.67 7.33-4.37 10.11-2.77 2.68-6.25 4.18-10.08 4.35-1.54.06-3.26 0-4.43-.98l-.1-.1c-.69-.82-1-1.94-1-3.65 0-.25 0-.51.02-.78v.01zm4.32-.23 1.41 1.41 1.41-1.41 1.41 1.41 1.41-1.41-1.41-1.41 1.41-1.41 1.41 1.41 1.41-1.41-1.41-1.41 1.41-1.41 1.41 1.41 1.41-1.41-1.41-1.41 1.41-1.41-1.41-1.41-1.41 1.41-1.41-1.41-1.41 1.41 1.41 1.41-1.41 1.41-1.41-1.41-1.41 1.41 1.41 1.41-1.41 1.41-1.41-1.41-1.41 1.41 1.41 1.41-1.41 1.41z"},touchdownAndOnePoint:{viewBox:"0 0 16 16",d:"M7.008 12.577s.03-.08.08-.08h1.3v-1.46s.03-.08.08-.08h.82s.08.03.08.08v1.46h1.29s.08.03.08.08v.82s-.03.08-.08.08h-1.29v1.46s-.03.08-.08.08h-.82s-.08-.03-.08-.08v-1.46h-1.3s-.08-.03-.08-.08v-.82zm4.21 1.55s.03-.08.08-.08h1.3v-2.97h-1.3s-.08-.03-.08-.08v-.8s.03-.08.08-.08h.94c.22 0 .37-.11.37-.37v-.34s.03-.08.08-.08h.85s.08.03.08.08v4.65h1.28s.08.03.08.08v.8s-.03.08-.08.08h-3.6s-.08-.03-.08-.08v-.81zm-.71-12.57-.05-.05c-.47-.4-1.16-.54-2.21-.5-1.92.08-3.67.84-5.06 2.19a7.683 7.683 0 0 0-2.18 5.05c-.03.77 0 1.63.49 2.22l.05.05c.41.34.97.5 1.82.5h.39c1.92-.08 3.66-.84 5.05-2.19a7.637 7.637 0 0 0 2.18-5.04c.03-.77 0-1.63-.49-2.21l.01-.02zm-2.38 4.45-.71-.71-.71.71.71.71-.71.71-.71-.71-.71.71.71.71-.71.71-.71-.71-.53.53-.71-.71.53-.53-.71-.71.71-.71.71.71.71-.71-.71-.71.71-.71.71.71.71-.71-.71-.71.71-.71.71.71.53-.53.71.71-.53.53.71.71-.71.71z"},touchdownAndTwoPoint:{viewBox:"0 0 16 16",d:"M8.838 12.497v-1.46c0-.05-.03-.08-.08-.08h-.82c-.05 0-.08.03-.08.08v1.46h-1.3c-.05 0-.08.03-.08.08v.82c0 .05.03.08.08.08h1.3v1.46c0 .05.03.08.08.08h.82c.05 0 .08-.03.08-.08v-1.46h1.29c.05 0 .08-.03.08-.08v-.82c0-.05-.03-.08-.08-.08h-1.29zm6.09 1.55h-2.97v-.26c0-.23.04-.4.12-.52.08-.12.19-.21.35-.26.16-.06.36-.11.6-.16.38-.07.72-.18 1.01-.33.29-.15.51-.35.68-.6.16-.25.24-.57.24-.96 0-.36-.08-.67-.25-.93-.17-.26-.4-.45-.69-.58-.29-.13-.63-.2-1.02-.2-.63 0-1.13.16-1.49.49-.36.33-.57.78-.64 1.35-.01.05.01.08.07.08h.86s.08-.03.09-.08c.04-.28.14-.49.32-.65.18-.15.43-.23.76-.23.29 0 .52.07.68.22.16.15.24.33.24.56 0 .24-.07.45-.22.62-.15.17-.38.28-.7.33-.44.07-.82.18-1.13.32-.31.15-.54.35-.7.62-.16.27-.24.61-.24 1.04v1.03c0 .05.03.08.08.08h3.94c.05 0 .08-.03.08-.08v-.8c0-.05-.03-.08-.08-.08l.01-.02zm-4.42-12.49-.05-.05c-.47-.4-1.16-.54-2.21-.5-1.92.08-3.67.84-5.06 2.19a7.683 7.683 0 0 0-2.18 5.05c-.03.77 0 1.63.49 2.22l.05.05c.41.34.97.5 1.82.5h.39c1.92-.08 3.66-.84 5.05-2.19a7.637 7.637 0 0 0 2.18-5.04c.03-.77 0-1.63-.49-2.21l.01-.02zm-2.38 4.45-.71-.71-.71.71.71.71-.71.71-.71-.71-.71.71.71.71-.71.71-.71-.71-.53.53-.71-.71.53-.53-.71-.71.71-.71.71.71.71-.71-.71-.71.71-.71.71.71.71-.71-.71-.71.71-.71.71.71.53-.53.71.71-.53.53.71.71-.71.71z"},fieldGoal:{viewBox:"0 0 24 24",d:"M16.847 3v10.567H7.153V3H5v12.236h5.923V21h2.153v-5.764H19V3z"},safety:{viewBox:"0 0 24 24",d:"M10.54 8.75 9.12 13H7.54l1.92-5.75h1.79V2H10l-4.5 8 .5 7-3 5h6l2.25-4.5V8.75h-.71zM18 17l.5-7L14 2h-1.25v5.25h1.79L16.46 13h-1.58l-1.42-4.25h-.71v8.75L15 22h6l-3-5z"},rouge:{viewBox:"0 0 24 24",d:"m2 12.607 1.414 1.414L14.021 3.414 12.607 2 2 12.607zM21.26 8.79l-.07-.07c-.82-.68-2.03-.73-3.1-.68-2.68.12-5.12 1.17-7.06 3.05-1.89 1.95-2.94 4.39-3.06 7.07 0 .19-.01.37-.01.54 0 1.19.22 1.98.7 2.55l.07.07c.82.68 2.03.73 3.1.68 2.68-.12 5.12-1.17 7.06-3.05 1.89-1.95 2.94-4.39 3.06-7.08.07-1.47-.13-2.44-.68-3.1l-.01.02zm-2.49 5.47-.76.76-1.14-1.14-1.14 1.14 1.14 1.14-.76.76-1.14-1.14-1.14 1.14 1.14 1.14-.76.76-1.14-1.14-1.14 1.14-.76-.76 1.14-1.14-1.14-1.14.76-.76 1.14 1.14 1.14-1.14-1.14-1.14.76-.76 1.14 1.14 1.14-1.14-1.14-1.14.76-.76 1.14 1.14 1.14-1.14.76.76-1.14 1.14 1.14 1.14z"}}},35576:(t,e,r)=>{r.d(e,{Ao:()=>s,B4:()=>l,aJ:()=>i,lG:()=>n,oQ:()=>a});let n=80,i=440,a=10,s=5,l=300},51021:(t,e,r)=>{r.d(e,{q:()=>n});var n=function(t){return t[t.OT=-1]="OT",t[t.All=0]="All",t[t.Q1=1]="Q1",t[t.Q2=2]="Q2",t[t.Q3=3]="Q3",t[t.Q4=4]="Q4",t}({})},51953:(t,e,r)=>{r.d(e,{D:()=>L,A:()=>E});var n=r(6029),i=r(33144),a=r(21377),s=r(4967),l=r(37071),o=r(21501),c=r(62042),u=r(76356),d=r(93338),h=r(36729),p=r(28446),f=r(56591),x=r(10533),m=r(14632),g=r(55729),v=r(947),y=r(48683),_=r(62859),A=r(71046),$=r(35576);function w(t){return t[t.length-1]}let b=(0,u.I4)("svg",{base:{cursor:"pointer",position:"relative",overflow:"visible",width:"100%",userSelect:"none",WebkitTapHighlightColor:"transparent","& .periodLine, & .currentMinuteLine":{shapeRendering:"crispEdges"},transform:{_rtl:"scale(-1,1)"}}});var j=r(91333),M=r(93510),C=r(51021),T=r(14269);function S(){var t;let{activeWPTab:e,overtimeLength:r,periodCount:i,periodTime:a,incidents:s}=(0,g.useContext)(M.v),l=(0,g.useRef)(null);return(0,o.st)(function(){var t;if(!(null==s?void 0:s.length))return;let n=null==(t=l.current)?void 0:t.parentElement;if((0,f.A)(l.current).selectAll("*").remove(),n&&e!==C.q.All){let t=n.getBoundingClientRect(),l=function(t,e,r,n,i,a){if(!t||!t.length)return[];let s=i===C.q.OT,l=t.map(e=>{let{incidentClass:r,time:n,isHome:i}=e;if("touchdown"===r){let a=r;t.some(t=>(a="extraPoint"===t.incidentClass?"touchdownAndOnePoint":"touchdownAndTwoPoint",t.time===n&&t.isHome===i&&("twoPointConversion"===t.incidentClass||"extraPoint"===t.incidentClass)))&&(e.incidentClass=a)}return e}),o=[];return l.forEach(t=>{if(!t.incidentClass||!t.time||!T.Jm[t.incidentClass])return;let l=s?n*r:(i-1)*n;if(t.time>(s?n*r+a:i*n)||t.time<=l)return;let c=(t.time-l)/(s?a:n)*e-T.bi;o.push({incidentClass:t.incidentClass,isHome:!!t.isHome,x:c})}),o}(s,t.width,i,a,e,r);(0,f.A)(n).select("g.wp-incident-group").selectAll("svg").data(l,t=>"".concat(t.x,"-").concat(t.incidentClass,"-").concat(t.isHome)).enter().append("svg").attr("width",T.bi).attr("height",T.bi).attr("viewBox",t=>T.Jm[t.incidentClass].viewBox).style("fill",t=>t.isHome?d.S.var("colors.secondary.default"):d.S.var("colors.primary.default")).attr("x",t=>t.x).attr("y",e=>e.isHome?-T.GZ-T.bi:t.height+T.GZ).append("path").attr("d",t=>T.Jm[t.incidentClass].d)}},100,[null==(t=l.current)?void 0:t.parentElement]),(0,n.jsx)("g",{className:"wp-incident-group",ref:l})}let z=[a.QCR.Basketball,a.QCR.Handball,a.QCR.AmericanFootball],k=t=>{let e=t.find(t=>0===t.minute),r=[{key:-1,points:[{minute:-.5,value:0},{minute:0,value:(null==e?void 0:e.value)||0}]}];return t.forEach((t,e,n)=>{let i=w(r),a=n[e+1];if(t.minute>0&&i.points.push(t),!a)return void i.points.push({minute:t.minute,value:0});t.value*a.value<0&&i.points.push({minute:function(t,e,r,n){return r-Math.abs(n)*(r-t)/(Math.abs(n)+Math.abs(e))||0}(t.minute,t.value,a.minute,a.value),value:0});let s=w(i.points);0===s.value&&r.push({key:Math.floor(s.minute),points:[s]})}),r};function L(t){let{event:e,graphPoints:r,periodCount:y,periodTime:j,overtimeLength:T,max:L,...E}=t,{textDirection:G}=(0,l.$c)(),{location:H}=(0,g.useContext)(_.y$),B=H===_.cb.Widget,I=(0,v.A)(),P=(0,g.useRef)(null),R=(0,g.useRef)({x:(0,p.A)().range([0,$.aJ]),y:(0,p.A)().range([$.lG,0])}),Q=(0,g.useRef)(0),N=(0,g.useRef)($.aJ),{activeWPTab:q,isWinProbability:D}=(0,g.useContext)(M.v),F="rtl"===G,J=()=>(0,m.transition)().duration(Q.current>0?$.B4:0).ease(h.wq);function U(){let t;if(E.duration)t=E.duration;else for(t=j*y;r.length>t;)t+=5;return t}return(0,g.useLayoutEffect)(()=>{(0,f.A)(P.current).style("opacity",.01).transition(J().duration(400)).style("opacity",1)},[]),(0,o.st)(function(){!function(){var t;let e=null==(t=P.current)?void 0:t.getBoundingClientRect().width;e&&e!==N.current&&(N.current=e,R.current.x.range([0,e]),(0,f.A)(P.current).attr("width",e))}(),function(){let t=function(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:$.oQ,r=Number.MIN_SAFE_INTEGER;return t.forEach(t=>{r=Math.max(Math.abs(t.value),r)}),Math.max(r,e)}(r,L),n=k(r),i=U();R.current.x.domain([0,i]),R.current.y.domain([-t,t]),function(t){let r=[{fill:d.S.var("colors.surface.s1"),height:$.lG,y:0},{fill:d.S.var("colors.primary.highlight"),height:$.lG/2,y:$.lG/2},{fill:d.S.var("colors.secondary.highlight"),height:$.lG/2,y:0}],n=e.status.type===a.XUj.InProgress,i=(0,f.A)(P.current).select("g.background-group").selectAll("rect").data(r);i.enter().append("rect").merge(i).attr("fill",t=>t.fill).attr("height",t=>t.height).attr("y",t=>t.y).attr("x",0).transition(J().duration(n?$.B4:0)).attr("width",()=>R.current.x(w(t).minute))}(w(n).points),function(t,r){let n=(0,x.A)().x(t=>R.current.x(t.minute)).y(t=>R.current.y(t.value)),i=(0,f.A)(P.current).select("g.score-group").selectAll("path").data(t,t=>"".concat(e.id,"-").concat(t.key));i.exit().transition(J().duration(300)).attr("stroke","transparent").attr("d",t=>n(t.points.map(t=>({...t,value:0})))).remove(),r&&i.transition(J().duration(200)).attr("stroke","transparent").attr("d",t=>n(t.points.map(t=>({...t,value:0}))));let a=i.enter().append("path").merge(i).attr("fill",t=>{let{points:e}=t;return e.reduce((t,e)=>e.value<0?d.S.var("colors.primary.default"):t,d.S.var("colors.secondary.default"))});r?a.attr("stroke","transparent").attr("d",t=>n(t.points.map(t=>({...t,value:0})))).transition(J().delay(400).duration(200)).attr("d",t=>n(t.points)):a.transition(J().delay(300).duration(300)).attr("d",t=>n(t.points))}(n,!1),function(t,r){let n=e.tournament.category.sport.slug,i=null!=T?T:0,s=e.status.type===a.XUj.InProgress,l=[];if(2===y&&n===a.QCR.Basketball){let t=R.current.x(j);l.push({x1:t,x2:t,y1:0,y2:$.lG})}else for(let t=1;tj*y&&z.includes(n)&&i>0){let e=(t-j*y)/i;for(let t=0;t<=e;t++){let e=R.current.x(j*y+t*i);l.push({x1:e,x2:e,y1:0,y2:$.lG})}}l.push(o);let c=R.current.x(w(r).minute),u=[{x1:c,x2:c,y1:0,y2:$.lG}],h=(0,f.A)(P.current),p=h.select("g.line-group").selectAll(".periodLine").data(l);p.exit().remove(),p.enter().append("line").merge(p).attr("class","periodLine").attr("stroke",(t,e,r)=>B&&e===r.length-1?"none":d.S.var("colors.surface.s1")).attr("y1",t=>t.y1).attr("y2",t=>t.y2).attr("x1",t=>t.x1).attr("x2",t=>t.x2);let x=h.select("g.line-group").selectAll(".currentMinuteLine").data(u);x.enter().append("line").merge(x).attr("class","currentMinuteLine").attr("stroke",s?d.S.var("colors.status.live"):d.S.var("colors.surface.s1")).attr("y1",t=>t.y1).attr("y2",t=>t.y2).transition(J().duration(s?$.B4:0)).attr("x1",t=>t.x1).attr("x2",t=>t.x2).attr("clip-path",t=>t.x2>=N.current?"url(#round-corner)":"");let m=h.select("g.line-group").selectAll("circle.start").data([{}]),g=h.select("g.line-group").selectAll("circle.live").data(u);s?(m.enter().append("circle").attr("cy",80).attr("r",3).attr("cx",1).attr("stroke",d.S.var("colors.secondary.default")).attr("stroke-width",2).attr("fill",d.S.var("colors.surface.s1")).attr("class","start"),g.enter().append("circle").attr("cy",0).attr("r",0).attr("cx",t=>t.x1).attr("stroke",d.S.var("colors.status.live")).attr("stroke-width",2).attr("fill",d.S.var("colors.surface.s1")).attr("class","live").attr("r",3),g.merge(g).attr("r",3).transition(J().duration(s?$.B4:0)).attr("cx",t=>t.x1)):(m.remove(),g.remove())}(i,w(n).points),function(t){if(!P.current)return;let e=P.current.getBoundingClientRect(),r=(0,f.A)(P.current).select("g.info-group").selectAll("text").data([{text:D?"100":t,x:N.current+4,y:12},{text:D?"100":t,x:N.current+4,y:$.lG-4},{text:D?"50":"0",x:N.current+4,y:$.lG/2+4},...D?[{text:"%",x:N.current+4,y:-8}]:[]]);r.enter().append("text").merge(r).attr("x",t=>t.x).attr("y",t=>t.y).classed((0,c.AH)({textStyle:"assistive.default",fill:"neutrals.nLv3"}),!0).attr("text-anchor","start").attr("transform",F?"scale(-1,1) translate(-".concat(2*e.width+8,")"):"").text(t=>t.text)}(t),D?function(){let t=P.current,n=(0,f.A)(t);if(!t||!D||q!==C.q.All)return;n.select("g.time-group").selectAll("g.legend-group").remove();let i=n.select("g.time-group").append("g").attr("class","legend-group"),s=U(),l=e.status,o=r.length,u=j*y,d=l.type===a.XUj.InProgress;i.append("text").classed((0,c.AH)({textStyle:"assistive.default",fill:"neutrals.nLv3"}),!0).attr("x",0).attr("y",-8).attr("text-anchor","start").text(I.formatMessage({id:"am_football_view_incidents"})),Array.from({length:y},(t,e)=>e).forEach(t=>{let e=j*t,r=j*(t+1);i.append("text").classed((0,c.AH)({textStyle:"assistive.default",fill:d&&o>e&&o<=r?"status.live":"neutrals.nLv3"}),!0).attr("x",R.current.x(e+j/2)).attr("y",$.lG+16).attr("text-anchor","middle").attr("data-testid","legend-label-".concat(t+1)).text(I.formatMessage({id:"status_quarter_short"},{n:t+1}))}),s>u&&i.append("text").classed((0,c.AH)({textStyle:"assistive.default",fill:d&&o>u?"status.live":"neutrals.nLv3"}),!0).attr("x",R.current.x(u+(s-u)/2)).attr("y",$.lG+16).attr("text-anchor","middle").text(I.formatMessage({id:"overtime.short"}))}():function(){let t=e.status,r=U(),n=P.current,i=(0,f.A)(n);if(!t||!n)return;let l=n.getBoundingClientRect(),o=t.type===a.XUj.InProgress,u=t.code===a.sum.AET,d=r>j*y,h=t.type===a.XUj.Finished,p=t.type===a.XUj.InProgress;i.select("g.time-group").selectAll("g.legend-group").remove();let x=i.select("g.time-group").append("g").attr("class","legend-group");x.append("text").classed((0,c.AH)({textStyle:"assistive.default",fill:h?"neutrals.nLv3":"secondary.default"}),!0).attr("x",-2).attr("transform",F?"scale(-1,1)":"").attr("y",$.lG+16).text(()=>o?I.formatTime(1e3*e.startTimestamp):(0,s.cK)(1e3*e.startTimestamp)?"".concat(I.formatMessage({id:"today"})," ").concat(I.formatTime(1e3*e.startTimestamp)):I.formatDate(1e3*e.startTimestamp,{day:"numeric",month:"short",year:"numeric",hour:"numeric",minute:"numeric"})),x.append("text").classed((0,c.AH)({textStyle:"assistive.default",fill:"neutrals.nLv3"}),!0).attr("transform",F?"scale(-1,1) translate(-".concat(2*l.width,")"):"").attr("x",l.width).attr("text-anchor","end").text(u||d?I.formatMessage({id:"after_extra_time_short"}):I.formatMessage({id:"full_time_short"})),p&&d&&x.append("text").classed((0,c.AH)({textStyle:"assistive.default",fill:"neutrals.nLv3"}),!0).attr("x",R.current.x(j*y)).attr("transform",F?"scale(-1,1) translate(-".concat(2*R.current.x(j*y),")"):"").attr("text-anchor","middle").text(I.formatMessage({id:"overtime.short"})),x.selectAll("text").attr("y",96)}(),function(t){let{status:r}=e,n=P.current,i=(0,f.A)(n),s=null==n?void 0:n.getBoundingClientRect();if(!s||D)return;let l=r.type===a.XUj.InProgress,o=(0,A.Sw)(e)||(null==r?void 0:r.description)||"";if(l){let e=i.select("g.time-group").selectAll("text.timer").data([{x:R.current.x(w(t).minute)}]);e.enter().append("text").classed("timer ".concat((0,c.AH)({textStyle:"display.small"})),!0).style("fill",d.S.var("colors.status.live")).merge(e).transition(J().duration(l?$.B4:0)).attr("x",t=>t.x).attr("transform",t=>F?"scale(-1,1) translate(-".concat(2*t.x,")"):"").attr("y",-8).text(o).attr("text-anchor",t=>t.xs.width-s.width/8?"end":"middle")}}(w(n).points),Q.current=i}()},100,[e.status.type,r,y,j,L,E.duration]),(0,n.jsx)(u.az,{bg:"neutrals.nLv5",children:(0,n.jsxs)(b,{style:{height:$.lG},ref:P,children:[(0,n.jsx)("defs",{children:(0,n.jsx)("clipPath",{id:"clamp-lines",children:(0,n.jsx)("rect",{x:"0",y:"-2",width:"100%",height:"84"})})}),(0,n.jsxs)(u.so,{style:{height:$.lG},position:"absolute",display:"flex",alignItems:"center",flexDirection:"column",justifyContent:"space-around",width:"2xl",children:[(0,n.jsx)(i.p,{id:E.leftTeam.id,size:24,name:E.leftTeam.name,style:{width:"80%"}}),(0,n.jsx)(i.p,{id:E.rightTeam.id,size:24,name:E.rightTeam.name,style:{width:"80%"}})]}),(0,n.jsx)("g",{className:"background-group"}),(0,n.jsx)("g",{className:"score-group",clipPath:"url(#clamp-lines)"}),(0,n.jsx)("g",{className:"line-group"}),(0,n.jsx)("g",{className:"time-group"}),(0,n.jsx)("g",{className:"periods-group"}),(0,n.jsx)("g",{className:"info-group"}),D&&(0,n.jsx)(S,{})]})})}function E(t){let{isCard:e=!0,...r}=t,[i,a]=(0,g.useState)(!1);return(0,n.jsx)(y.Zp,{variant:e?void 0:"never",children:(0,n.jsx)(u.az,{px:"sm",children:(0,n.jsx)(u.az,{h:"[136px]",py:"[28px]",pr:"[20px]",children:(0,n.jsxs)(u.az,{position:"relative",onClick:()=>a(!i),children:[(0,n.jsx)(L,{...r}),(0,n.jsx)(u.az,{position:"absolute",top:"0",left:"-xs",children:(0,n.jsx)(j.S,{isOpen:i,leftTeamId:r.leftTeam.id,leftTeamName:r.leftTeam.name,rightTeamId:r.rightTeam.id,rightTeamName:r.rightTeam.name})})]})})})})}},66986:(t,e,r)=>{r.r(e),r.d(e,{default:()=>p});var n=r(6029),i=r(21377),a=r(55729),s=r(62859),l=r(970),o=r(35576),c=r(51953),u=r(5108),d=r(73324);let h=t=>{let{isCard:e}=t,{event:r,leftTeam:h,rightTeam:p}=(0,a.useContext)(s.y$),{graphPoints:f,error:x,periodCount:m,periodTime:g,overtimeLength:v}=(0,d._)(r);return x?(0,n.jsx)(l.z,{event:r}):f?(0,n.jsx)(c.A,{event:r,leftTeam:h,rightTeam:p,periodCount:m||4,periodTime:g||10,overtimeLength:v,graphPoints:f,isCard:e,max:r.tournament.category.sport.slug===i.QCR.Handball?o.Ao:void 0}):(0,n.jsx)(u.W,{})},p=function(t){let{children:e,isCard:r=!0}=t,{event:l}=(0,a.useContext)(s.y$);return l.tournament.category.sport.slug===i.QCR.AmericanFootball?(0,n.jsxs)(n.Fragment,{children:[e,(0,n.jsx)(h,{isCard:r})]}):(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(h,{isCard:r}),e]})}},88251:(t,e,r)=>{function n(t){this._context=t}function i(t){return new n(t)}r.d(e,{A:()=>i}),n.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t*=1,e*=1,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;default:this._context.lineTo(t,e)}}}},91333:(t,e,r)=>{r.d(e,{S:()=>s});var n=r(6029),i=r(33144),a=r(76356);let s=t=>{let{leftTeamId:e,leftTeamName:r,rightTeamId:s,rightTeamName:l,isOpen:o}=t;return(0,n.jsx)(a.az,{position:"relative",pointerEvents:"none",opacity:o?1:1e-4,transition:"opacity",transitionDuration:"fast",transitionTimingFunction:"ease-in",_before:{content:'""',position:"absolute",top:"-xs",left:"0",w:"12xl",h:"9xl",backgroundImage:{_ltr:"linear-gradient(to left, {colors.surface.s1/0}, {colors.surface.s1})",_rtl:"linear-gradient(to right, {colors.surface.s1/0}, {colors.surface.s1})"}},children:(0,n.jsxs)(a.so,{position:"absolute",width:"100%",top:"-xs",height:"9xl",direction:"column",align:"flex-start",justify:"space-around",userSelect:"none",py:"2xs",px:"[6px]",children:[(0,n.jsx)(i.p,{id:e,size:24,name:r}),(0,n.jsx)(i.p,{id:s,size:24,name:l})]})})}},93510:(t,e,r)=>{r.d(e,{v:()=>n});let n=(0,r(55729).createContext)({})}}]);