PageSourceSearch

https://www.flashscore.ro/res/_fs/build/draw.59fe36a.js

js flashscore.ro collected 2026-09-25 01:04:29 UTC 24,214 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunkflashscore=self.webpackChunkflashscore||[]).push([[18393],{75743(e,t,r){r.r(t),r.d(t,{DRAW_BREAKPOINT:()=>z,LiveTableDraw:()=>K,LiveTableDrawDirection:()=>U,LiveTableDrawStage:()=>G,default:()=>J});var a=r(74848),i=r(96540),s=i.createContext(null);function n(){var e=(0,i.useContext)(s);if(null===e)throw new Error("Draw context was not initialized.");return e}function l(){return n().sportId}function c(){return n().timeFormatter}function d(){return n().transClickForListOfMatches}function o(){return n().transClickForMatchDetail}function u(){return n().isSwappedParticipants}function h(){return n().transSwapTeam}var p=r(86517),g=r(30406);function m(){return m=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var a in r)({}).hasOwnProperty.call(r,a)&&(e[a]=r[a])}return e},m.apply(null,arguments)}var v=e=>Boolean(e)&&void 0!==e.getBoundingClientRect,w=function(e,t){var r,a,i,s;return void 0===e&&(e=window),void 0===t&&(t=window),{scrollX:v(e)?e.scrollLeft:null!=(r=null==(a=e)?void 0:a.scrollX)?r:0,scrollY:v(t)?t.scrollTop:null!=(i=null==(s=t)?void 0:s.scrollY)?i:0}},f=r(16522),I=r(30041);function P(e){var t,r=(0,f.c)(4),{eventStartTime:i}=e,s=c(),n=l();return i?(r[0]!==i||r[1]!==n||r[2]!==s?(t=(0,a.jsx)(I.o5u,{type:"simple-text-01",className:"series__time",children:s.format(n,[parseInt(i)],!0)}),r[0]=i,r[1]=n,r[2]=s,r[3]=t):t=r[3],t):null}function S(e){var{result:t}=e,r="result "+("-"===t.trim()?"result--empty":"");return(0,a.jsx)(I.o5u,{type:"simple-text-01",className:r,bold:!0,children:t})}var _=r(73594),T=e=>{var t=(0,f.c)(7),{drawParticipants:r,homeParticipantID:i,awayParticipantID:s,isSwappedParticipants:n,transClickForMatchDetail:l}=e,c=(0,_.U)();if(!r[i]||!r[s])return null;var d,o,u=r[i],h=r[s],p=c.get("app","swap_participants","show_at_sign");t[0]!==u?(d=u.getShortName(),t[0]=u,t[1]=d):d=t[1],t[2]!==h?(o=h.getShortName(),t[2]=h,t[3]=o):o=t[3];var g,m=d+(p&&n?"@":" - ")+o;return t[4]!==m||t[5]!==l?(g=(0,a.jsx)(I.o5u,{type:"simple-text-01",className:"series__names",title:l,children:m}),t[4]=m,t[5]=l,t[6]=g):g=t[6],g},N=r(92814),y=r(46146),x=r(28721),b=r(19028),R=e=>{var t=e.getResult().split(":");return{homeStagesResults:{overall:t[0]||"",afterExtraTime:e.getHomeResultAfterExtraTime()||null,penalties:e.getHomeResultPenalties()||null,fullTime:e.getHomeResultFullTime()||null},awayStagesResults:{overall:t[1]||"",afterExtraTime:e.getAwayResultAfterExtraTime()||null,penalties:e.getAwayResultPenalties()||null,fullTime:e.getAwayResultFullTime()||null}}},k=(e,t,r)=>!t.isDoubles()&&!r.isDoubles()&&![N.h.CRICKET,N.h.GOLF,N.h.MOTORSPORT_MOTO_RACING].includes(e);function M(e){var t,r=(0,f.c)(25),{eventInfo:i,drawParticipants:s,drawRoundItem:c,handleMouseEnter:d,handleMouseLeave:o,isSharedResult:h,transClickForMatchDetail:p}=e,g=(0,y.m)(),m=n().detailOpenerWithEventIdAndParticipants,v=u(),w=l();r[0]!==i||r[1]!==v?(t=v?i.getAwayId():i.getHomeId(),r[0]=i,r[1]=v,r[2]=t):t=r[2];var _,N=t;r[3]!==i||r[4]!==v?(_=v?i.getHomeId():i.getAwayId(),r[3]=i,r[4]=v,r[5]=_):_=r[5];var M,E=_;if(r[6]!==E||r[7]!==m||r[8]!==s||r[9]!==c||r[10]!==i||r[11]!==d||r[12]!==o||r[13]!==N||r[14]!==h||r[15]!==v||r[16]!==w||r[17]!==g||r[18]!==p){var F,L,{homeScore:j,awayScore:A,homePenalties:C,awayPenalties:H}=((e,t,r)=>{var{homeStagesResults:a,awayStagesResults:i}=R(e),s=(0,x.N)(r?i:a,r?a:i);return new b.d(s,t).getHomeAwayScores()})(i,w,v),O=s[Number(i.getHomeId())],D=s[Number(i.getAwayId())];r[20]!==c||r[21]!==d?(F=()=>d(c),r[20]=c,r[21]=d,r[22]=F):F=r[22],r[23]!==o?(L=()=>o(),r[23]=o,r[24]=L):L=r[24],M=(0,a.jsxs)("a",{href:m(i.getId(),k(w,O,D)?[{hash:O.getEncodedId(),name:i.getHomeUrl()},{hash:D.getEncodedId(),name:i.getAwayUrl()}]:null),className:"series",target:"_blank",rel:"noreferrer",onMouseEnter:F,onMouseLeave:L,children:[(0,a.jsx)(T,{drawParticipants:s,homeParticipantID:+N,awayParticipantID:+E,isSwappedParticipants:v,transClickForMatchDetail:p}),(0,a.jsx)(S,{result:h?i.getResult().split(":")[0]||"-":j+" - "+A}),C&&H&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)(I.o5u,{type:"simple-text-01",className:"series__penalties",children:[g.translate("TRANS_SOCCER_SHORTCUT_PENALTY_SHOOTOUT"),":"]}),(0,a.jsx)(I.o5u,{type:"simple-text-01",className:"result result--pen
1alties",children:C+" - "+H})]}),(0,a.jsx)(P,{eventStartTime:i.getStartTime()})]}),r[6]=E,r[7]=m,r[8]=s,r[9]=c,r[10]=i,r[11]=d,r[12]=o,r[13]=N,r[14]=h,r[15]=v,r[16]=w,r[17]=g,r[18]=p,r[19]=M}else M=r[19];return M}var E=r(88810),F=r(99576),L=r(46942),j=r.n(L),A=r(21673);function C(e){var t,r=(0,f.c)(38),{participantId:i,drawParticipants:s,side:l,participantInfo:c,isSharedResult:d,isAdvancing:o,isSwappedParticipants:u,transSwapTeam:h,participantResult:p,seriesResult:g,sportId:m}=e,v=n().staticFsCdn,w=parseInt(i),P=l===F.DW.HOME?"home":"away",S=s[w];r[0]!==s?(t=s.some(H),r[0]=s,r[1]=t):t=r[1];var _,T=t;if(!S)return null;r[2]!==d||r[3]!==p||r[4]!==g||r[5]!==l?(_=()=>{var e=Boolean(g)||Boolean(p.length),t=d&&l===F.DW.HOME;return e&&(!d||t)},r[2]=d,r[3]=p,r[4]=g,r[5]=l,r[6]=_):_=r[6];var y,x=_;r[7]!==l||r[8]!==m?(y=(e,t)=>{if(t)return(0,a.jsx)(I.rS5,{className:"bracket__score",isBold:!0,type:"primary",children:t});var r=l===F.DW.HOME?"home":"away";return(0,a.jsx)(a.Fragment,{children:e.map((e,t)=>{if(!e[r].overall)return null;var i=new b.d(e,m),s=i.getPenaltiesForDisplay(l);return(0,a.jsx)(I.rS5,{className:j()("bracket__score",{"bracket__score--penalties":s}),isBold:!0,type:"primary",penaltyScore:s,children:i.getCurrentScoreForDisplay({side:l})},t)})})},r[7]=l,r[8]=m,r[9]=y):y=r[9];var R,k=y;r[10]!==o||r[11]!==u||r[12]!==S||r[13]!==l||r[14]!==h?(R=()=>(new E.U).setName(S.getName()).setSide(l).setWinner(o).setSwappedParticipants(u).setSwappedParticipantsTrans(h).build(),r[10]=o,r[11]=u,r[12]=S,r[13]=l,r[14]=h,r[15]=R):R=r[15];var M,L=R;r[16]!==T||r[17]!==S||r[18]!==v?(M=()=>S.getImageUrl()?(0,A.b)({enabled:v.enabled,url:v.url},"/res/image/data/"+S.getImageUrl(),Boolean(v.enabled)):T?I.gwq.TEAM:void 0,r[16]=T,r[17]=S,r[18]=v,r[19]=M):M=r[19];var C,O=M;r[20]!==O||r[21]!==S?(C=(e,t,r)=>{var a;return{name:e,countryId:null==(a=S.getCountries()[t])?void 0:a.getCountryId(),logo:O(),winner:r}},r[20]=O,r[21]=S,r[22]=C):C=r[22];var D,W=C;r[23]!==W||r[24]!==o||r[25]!==S||r[26]!==L?(D=()=>{if(""===S.getName())return[];if(S.isDoubles())return[W(S.getFirstParticipantName(),0,o),W(S.getSecondParticipantName(),1,o)];var e=L();return[W(e.getName(),0,e.isWinner())]},r[23]=W,r[24]=o,r[25]=S,r[26]=L,r[27]=D):D=r[27];var Y,B=D;if(r[28]!==B||r[29]!==d||r[30]!==c||r[31]!==p||r[32]!==P||r[33]!==k||r[34]!==g||r[35]!==x||r[36]!==m){var U=B();Y=(0,a.jsxs)(a.Fragment,{children:[(U.length>0||!!c)&&(0,a.jsx)(I.YSJ,{participants:U,displayInfo:U.length>0&&m===N.h.SOCCER?void 0:c,className:j()("bracket__participantRow--"+P,{"bracket__participantRow--displayInfoOnly":0===U.length&&!!c})}),x()&&(0,a.jsx)("div",{className:"bracket__result "+(d?"bracket__result--homeAway":"bracket__result--"+P),children:k(p,g)})]}),r[28]=B,r[29]=d,r[30]=c,r[31]=p,r[32]=P,r[33]=k,r[34]=g,r[35]=x,r[36]=m,r[37]=Y}else Y=r[37];return Y}function H(e){return e.getImageUrl()}function O(e){var t,r,i=(0,f.c)(9),{roundItem:s,sportId:n,townsNames:l,venuesNames:d}=e,o=c();if((s.getEventInfo()||[]).length)return null;if(i[0]!==s||i[1]!==n||i[2]!==o||i[3]!==l||i[4]!==d){r=Symbol.for("react.early_return_sentinel");var u,h,p,g=null==(u=l[Number(s.getTownNameId())])?void 0:u.getName(),m=null==(h=d[Number(s.getVenueNameId())])?void 0:h.getName();i[7]!==s?(p=s.getUpcomingDrawItemStartTimes(),i[7]=s,i[8]=p):p=i[8];var v=1===p.length;v||g||m?t=(0,a.jsxs)(a.Fragment,{children:[v&&(0,a.jsx)("span",{className:"bracket__date",children:o.format(n,[parseInt(s.getUpcomingDrawItemStartTimes()[0])],!1)}),g&&(0,a.jsx)("span",{className:"bracket__town",children:g}),m&&(0,a.jsxs)("span",{className:"bracket__venue",children:[m," ",g&&"("+g+")"]})]}):r=null,i[0]=s,i[1]=n,i[2]=o,i[3]=l,i[4]=d,i[5]=t,i[6]=r}else t=i[5],r=i[6];return r!==Symbol.for("react.early_return_sentinel")?r:t}var D=i.memo(function(e){var t,{roundItem:r,roundIndex:s,defaultBracket:n,drawParticipants:l,townsNames:c,venuesNames:d,evenOddClass:o,handleMouseEnter:u,handleMouseLeave:h,isDefaultHighlightedParticipants:p,isDefaultMatch:m,isHighlightedParticipants:v,sportId:w,transClickForListOfMatches:f,transClickForMatchDetail:I,isSwappedParticipants:P,transSwapTeam:S}=e,[_,T]=(0,i.useState)(!1),y=(0,i.useRef)(null);if((0,i.useEffect)(()=>
1{if(m&&!(0,g.dx)()){var e;if(window.innerWidth>z)null==(e=y.current)||e.scrollIntoView({behavior:"smooth",block:"center",inline:"center"});n(),setTimeout(()=>{var e;null==(e=y.current)||e.scrollIntoView({behavior:"smooth",block:"center",inline:"center"})},500)}},[]),!l.length)return null;var b,k,E,L,A,H=r.getEventInfo()||[],D=r.getId()?{"--zIndex":-s}:{},W=[N.h.MMA,N.h.BOXING,N.h.GOLF].includes(w),Y=null==(t=l[Number(r.getHomeParticipantId())])?void 0:t.isDoubles(),B=H.some(e=>{var t=e.getHomeResultPenalties(),r=e.getAwayResultPenalties();return t&&parseInt(t)>=10||r&&parseInt(r)>=10});return(0,a.jsxs)("div",{className:"draw__bracket "+o,style:D,children:[(0,a.jsxs)("div",{className:j()("bracket",_&&"bracket--active",Y&&"bracket--doubles",p&&"bracket--defaultHighlighted",v&&"bracket--highlighted",!H.length&&"bracket--eventless",B&&"bracket--twoDigitPenaltyScore"),ref:y,onClick:()=>T(e=>!!H.length&&!e),onMouseEnter:()=>u(r),onMouseLeave:()=>h(),title:H.length&&!_?f:"",children:[(L=H,A=L.map(e=>{var{homeStagesResults:t,awayStagesResults:a}=R(e),i=(0,x.N)(t,a),s=e.getHomeId()!==r.getHomeParticipantId();return{home:s?i.away:i.home,away:s?i.home:i.away}}),(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(C,{participantId:r.getHomeParticipantId(),drawParticipants:l,side:P?F.DW.AWAY:F.DW.HOME,participantInfo:r.getHomeParticipantInfo()||"",isSharedResult:W,isAdvancing:"H"===r.getAdvancingParticipant(),isSwappedParticipants:P,transSwapTeam:S,participantResult:A,seriesResult:r.getSeriesHomeResult(),sportId:w}),(0,a.jsx)(C,{participantId:r.getAwayParticipantId(),drawParticipants:l,side:P?F.DW.HOME:F.DW.AWAY,participantInfo:r.getAwayParticipantInfo()||"",isSharedResult:W,isAdvancing:"A"===r.getAdvancingParticipant(),isSwappedParticipants:P,transSwapTeam:S,participantResult:A,seriesResult:r.getSeriesAwayResult(),sportId:w})]})),(0,a.jsx)(O,{roundItem:r,sportId:w,townsNames:c,venuesNames:d})]}),_&&(0,a.jsx)("div",{className:"bracket__series",children:(b=H,k=l,E=W,b.map(e=>(0,a.jsx)(M,{eventInfo:e,drawParticipants:k,drawRoundItem:r,handleMouseEnter:u,handleMouseLeave:h,isSharedResult:E,transClickForMatchDetail:I},e.getId())))})]})});function W(e){var t,r=(0,f.c)(19),{round:i,roundIndex:s,defaultBracket:n,drawParticipants:c,townsNames:p,venuesNames:g,handleMouseEnter:m,handleMouseLeave:v,defaultHighlightedParticipants:w,highlightedParticipants:I,parentItemId:P}=e,S=l(),_=d(),T=o(),N=u(),y=h();if(r[0]!==n||r[1]!==w||r[2]!==c||r[3]!==m||r[4]!==v||r[5]!==I||r[6]!==N||r[7]!==P||r[8]!==i||r[9]!==s||r[10]!==S||r[11]!==p||r[12]!==_||r[13]!==T||r[14]!==y||r[15]!==g){var x;r[17]!==P?(x=e=>e.getId()===P,r[17]=P,r[18]=x):x=r[18];var b=i.getItems().filter(x);t=b.length?(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("div",{className:"draw__header draw__header--final",children:i.getLabel()}),b.map(e=>(0,a.jsx)(D,{roundItem:e,roundIndex:s,defaultBracket:n,drawParticipants:c,townsNames:p,venuesNames:g,evenOddClass:"",handleMouseEnter:m,handleMouseLeave:v,isDefaultHighlightedParticipants:w.includes(e.getHomeParticipantId())||w.includes(e.getAwayParticipantId()),isDefaultMatch:w.includes(e.getHomeParticipantId())&&w.includes(e.getAwayParticipantId()),isHighlightedParticipants:I.includes(e.getHomeParticipantId())||I.includes(e.getAwayParticipantId()),sportId:S,transClickForListOfMatches:_,transClickForMatchDetail:T,isSwappedParticipants:N,transSwapTeam:y},e.getId()))]}):null,r[0]=n,r[1]=w,r[2]=c,r[3]=m,r[4]=v,r[5]=I,r[6]=N,r[7]=P,r[8]=i,r[9]=s,r[10]=S,r[11]=p,r[12]=_,r[13]=T,r[14]=y,r[15]=g,r[16]=t}else t=r[16];return t}function Y(e){var{round:t,drawParticipants:r,townsNames:i,venuesNames:s,roundStage:n,isSemiFinaleOnFirstPosition:c,scrollToSide:p,defaultBracket:g,handleMouseEnter:m,handleMouseLeave:v,defaultHighlightedParticipants:w,highlightedParticipants:f,childRounds:I}=e,P=l(),S=d(),_=o(),T=u(),N=h(),y=t.getItems(),x=function(e){switch(e){case G.FIRST:return"draw__round--first";case G.LAST:return"draw__round--last";case G.ONLY:return"draw__round--only";default:return""}}(n),b=e=>e%2==0?"draw__bracket--odd":"draw__bracket--even";return y.length?(0,a.jsxs)("div",{className:"draw__round "+x,children:[(0,a.jsxs)("div",{className:"draw__header",children:[![G.FIRST,G.ONLY].includes(n)&&(0,a.jsx)("div",{className:"draw__arrow draw__arrow--previous",onClick:()=>p(U.LEFT)}),(0,a.jsx)("div",{className:"draw__label",children:t.getLabel()}),![G.LAST,G.ONLY].includes(n)&&(0,a.jsx)("div",{className:"draw__arrow draw__arrow--next",onClick:()=>p(U.RIGHT)})]}),(0,a.jsx)("div",{className:"draw__brackets "+(c?"draw__brackets--semiFinaleFirst":""),children:y.map((e,l)=>{return h=n,[G.ONLY,G.LAST].includes(h)?(c=e,d=l,(0,a.jsxs)("div",{className:"draw__brackets--final",style:{"--zIndex":-d},children:[(0,a.jsx)(D,{roundItem:c,roundIndex:d,defaultBracket:g,drawParticipants:r,townsNames:i,venuesNames:s,evenOddClass:b(d),handleMouseEnter:m,handleMouseLeave:v,isDefaultHighlightedParticipants:w.includes(c.getHomeParticipantId())||w.includes(c.getAwayParticipantId()),isDefaultMatch:w.includes(c.getHomeParticipantId())&&w.includes(c.getAwayParticipantId()),isHighlightedParticipants:f.includes(c.getHomeParticipantId())||f.includes(c.getAwayParticipantId()),sportId:P,transClickForListOfMatches:S,transClickForMatchDetail:_,isSwappedParticipants:T,transSwapTeam:N},c.getId()+d),(o=c.getId(),u=d,(0,a.jsx)(a.Fragment,{children:I.map(e=>e.getParentId()===t.getId()?(u++,(0,a.jsx)(W,{round:e,roundIndex:u,defaultBracket:g,drawParticipants:r,townsNames:i,venuesNames:s,handleMouseEnter:m,handleMouseLeave:v,defaultHighlightedParticipants:w,highlightedParticipants:f,parentItemId:o},t.getId()+e.getId())):null)}))]},c.getId()+d)):(0,a.jsx)(D,{roundItem:e,roundIndex:l,defaultBracket:g,drawParticipants:r,townsNames:i,venuesNames:s,evenOddClass:b(l),handleMouseEnter:m,handleMouseLeave:v,isDefaultHighlightedParticipants:w.includes(e.getHomeParticipantId())||w.includes(e.getAwayParticipantId()),isDefaultMatch:w.includes(e.getHomeParticipantId())&&w.includes(e.getAwayParticipantId()),isHighlightedParticipants:f.includes(e.getHomeParticipantId())||f.includes(e.getAwayParticipantId()),sportId:P,transClickForListOfMatches:S,transClickForMatchDetail:_,isSwappedParticipants:T,transSwapTeam:N},e.getId());var c,d,o,u,h})})]}):null}function B(){return B=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var a in r)({}).hasOwnProperty.call(r,a)&&(e[a]=r[a])}return e},B.apply(null,arguments)}var U,G,X="shifter__stage--disabled",z=479;function K(e){var{sportId:t,formatter:r,draw:n,transClickForListOfMatches:l,transClickForMatchDetail:c,transSwapTeam:d,transStagePrevious:o,transStageNext:u,isSwappedParticipants:h,participantEncodedIds:v,width:f,staticFsCdn:I,detailOpenerWithEventIdAndParticipants:P}=e,S=(0,i.useRef)(null),_=(0,i.useRef)(null),T=(0,i.useRef)(null),N=(0,i.useRef)(null),y=(0,i.useCallback)(()=>
1{var e,t=[],r=(e="",v.length&&n.getParticipants().forEach(t=>{v.includes(t.getEncodedId())&&(e=t.getId())}),e);return n.getHomeParticipantId()&&t.push(n.getHomeParticipantId()),n.getAwayParticipantId()&&t.push(n.getAwayParticipantId()),r&&t.push(r),t},[n,v]),[x,b]=(0,i.useState)([]),R=(0,i.useRef)(0),[k,M]=(0,i.useState)(window.innerWidth>z),[E,F]=(0,i.useState)(window.innerWidth<=z),[L,j]=(0,i.useState)(void 0);(e=>{var{verticalScrollRef:t,horizontalScrollRef:r}=e,a=(0,i.useRef)(w(null==r?void 0:r.current,null==t?void 0:t.current));(0,i.useLayoutEffect)(()=>{var e,i,s=null!=(e=null==r?void 0:r.current)?e:window,n=null!=(i=null==t?void 0:t.current)?i:window,l=()=>{var{scrollX:e}=w(s,n);a.current=m(m({},a.current),{},{scrollX:e})},c=()=>{var{scrollY:e}=w(s,n);a.current=m(m({},a.current),{},{scrollY:e})};s.addEventListener("scroll",l),n.addEventListener("scroll",c);var d=(0,g.dx)();return d&&(s.scrollTo({left:d.scrollX,behavior:"smooth"}),n.scrollTo({top:d.scrollY,behavior:"smooth"})),()=>{(0,g.DY)(a.current),s.removeEventListener("scroll",l),n.removeEventListener("scroll",c)}},[r,t])})({horizontalScrollRef:_});var A=(0,i.useCallback)(e=>{var t=[],r=e=>n.getParticipantIds()[parseInt(e)]&&""!==n.getParticipantIds()[parseInt(e)].getEncodedId()&&!y().includes(e);r(e.getHomeParticipantId())&&t.push(e.getHomeParticipantId()),r(e.getAwayParticipantId())&&t.push(e.getAwayParticipantId()),b(t)},[n,y]),C=(0,i.useCallback)(()=>{b([])},[]),H=(0,i.useMemo)(()=>n.getRounds().filter(e=>!e.getParentId()),[n]),O=H.length-1,D=(0,i.useMemo)(()=>H.reduce((e,t)=>{var r;return B(B({},e),{},{[t.getId()]:(r=t.getId(),n.getRounds().filter(e=>e.getParentId()&&e.getParentId()===r))})},{}),[H,n]),W=0,K=0;window.onresize=()=>{Q(),_.current&&j(_.current.scrollWidth!==_.current.clientWidth),S.current&&k&&window.innerWidth<=z?(R.current=0,M(!1),F(!0),V(),J(0)):E&&window.innerWidth>z&&(M(!0),F(!1),V())};var J=(0,i.useCallback)(e=>{var t;R.current=e,null==(t=S.current)||t.style.setProperty("--i",e.toString())},[]);(0,i.useEffect)(()=>{var e=(0,g.dx)();return null!=e&&e.responsiveIndex&&J(e.responsiveIndex),()=>{(0,g.cR)(R.current)}},[J]);var V=()=>{_.current&&_.current.scrollTo({top:0,left:0})},q=e=>{if(S.current){var t=R.current;e===U.LEFT&&R.current>0&&t--,e===U.RIGHT&&R.current<O&&t++,_.current&&_.current.scrollTop>0&&(_.current.scrollTop=0),J(t)}},Q=()=>{if(_.current&&T.current&&N.current){var e=T.current,t=N.current,r=0===_.current.scrollLeft,a=Math.round(_.current.scrollLeft)>=Math.round(_.current.scrollWidth-_.current.clientWidth),i=_.current.scrollWidth===_.current.clientWidth;r?(e.classList.add(X),t.classList.remove(X)):a?(e.classList.remove(X),t.classList.add(X)):(e.classList.contains(X)||t.classList.contains(X))&&(e.classList.remove(X),t.classList.remove(X)),i&&(e.classList.add(X),t.classList.add(X))}},Z=e=>{if(_.current)for(var t=_.current.scrollWidth/n.getRounds().length,r=e===U.RIGHT?-10:10,a=0;a<n.getRounds().length+1;a++)if(t*a+r>Math.round(_.current.scrollLeft)){e===U.LEFT&&_.current.scrollTo({top:_.current.scrollTop,left:t*a-t,behavior:"smooth"}),e===U.RIGHT&&_.current.scrollTo({top:_.current.scrollTop,left:t*a,behavior:"smooth"});break}};return(0,a.jsxs)(a.Fragment,{children:[(f&&202*H.length>f||void 0!==L)&&!1!==L?(0,a.jsxs)(p.h,{children:[(0,a.jsx)("div",{onClick:()=>Z(U.LEFT),className:"shifter__stage shifter__stage--previous "+X,ref:T,children:o}),(0,a.jsx)("div",{onClick:()=>Z(U.RIGHT),className:"shifter__stage shifter__stage--next",ref:N,children:u})]}):null,(0,a.jsxs)("div",{className:"draw__wrapper",ref:_,onScroll:()=>Q(),children:[(0,a.jsx)("div",{className:"draw__shadowHeader"}),(0,a.jsx)("div",{className:"draw__clearHeader"}),(0,a.jsx)("div",{className:"draw",ref:S,onTouchStart:e=>{_.current&&_.current.clientWidth>z||1===n.getRounds().length||(W=e.touches[0].clientX,K=e.touches[0].clientY)},onTouchEnd:e=>{if(W&&K){var t=e.changedTouches[0].clientX-W,r=e.changedTouches[0].clientY-K;Math.abs(t)>Math.abs(r)&&Math.abs(t)>50&&(t<0&&q(U.RIGHT),t>0&&q(U.LEFT))}},children:(0,a.jsx)(s.Provider,{value:{sportId:t,timeFormatter:r,detailOpenerWithEventIdAndParticipants:P,transClickForListOfMatches:l,transClickForMatchDetail:c,isSwappedParticipants:h,transSwapTeam:d,staticFsCdn:I},children:H.map((e,t)=>{return(0,a.jsx)(Y,{round:e,drawParticipants:n.getParticipants(),townsNames:n.getTownsNames(),venuesNames:n.getVenuesNames(),scrollToSide:q,roundStage:(i=t,O===i&&0===i?G.ONLY:O===i?G.LAST:0===i?G.FIRST:G.NONE),defaultBracket:()=>J(t),isSemiFinaleOnFirstPosition:(r=t,0===r&&2===H.length),handleMouseEnter:A,handleMouseLeave:C,defaultHighlightedParticipants:y(),highlightedParticipants:x,childRounds:D[e.getId()]||[]},e.getId());var r,i})})})]})]})}!function(e){e[e.LEFT=0]="LEFT",e[e.RIGHT=1]="RIGHT"}(U||(U={})),function(e){e.FIRST="first",e.LAST="last",e.ONLY="only",e.NONE=""}(G||(G={}));const J=(V=K,class extends i.Component{constructor(e){super(e),this.element=void 0,this.element=i.createRef(),this.state={width:0}}componentDidMount(){var e,t=null==(e=this.element.current)?void 0:e.getBoundingClientRect();this.setState(e=>B(B({},e),{},{width:(null==t?void 0:t.width)||0}))}render(){return(0,a.jsx)("div",{className:"draw__container",ref:this.element,children:(0,a.jsx)(V,B(B({},this.props),{},{width:this.state.width}))})}});var V},30406(e,t,r){r.d(t,{DY:()=>c,Ww:()=>l,cR:()=>d,dx:()=>n});var a=r(12431);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var a in r)({}).hasOwnProperty.call(r,a)&&(e[a]=r[a])}return e},i.apply(null,arguments)}var s=()=>location.pathname+"_draw_scroll_position",n=()=>{var e=a.j.getSession(s());return e?JSON.parse(e):void 0},l=()=>{a.j.deleteSession(s())},c=e=>{var t=n();a.j.storeSession(s(),JSON.stringify(i(i({},null!=t?t:{}),e)))},d=e=>{var t=n();a.j.storeSession(s(),JSON.stringify(i(i({},null!=t?t:{}),{},{responsiveIndex:e})))}},86517(e,t,r){r.d(t,{h:()=>i});var a=r(74848),i=(r(96540),e=>{var{children:t,className:r}=e;return(0,a.jsx)("div",{className:"shifter "+r,children:t})})},88810(e,t,r){r.d(t,{U:()=>n});var a=r(99576),i=r(7757);class s{constructor(e,t,r,a,i,s,n,l,c,d,o,u){this.name=void 0,this.url=void 0,this.encodedId=void 0,this.side=void 0,this.winner=void 0,this.swappedParticipants=void 0,this.swappedParticipantsTrans=void 0,this.logo=void 0,this.eventId=void 0,this.countryFlag=void 0,this.firstParticipant=void 0,this.secondParticipant=void 0,this.name=e,this.url=t,this.encodedId=r,this.side=a,this.winner=i,this.swappedParticipants=s,this.swappedParticipantsTrans=n,this.logo=l,this.eventId=c,this.countryFlag=d,this.firstParticipant=o,this.secondParticipant=u}getName(){return(0,i.A)(this.name)}getUrl(){return this.url}getEncodedId(){return this.encodedId}getLogo(){return(0,i.A)(this.logo)}getSide(){return this.side}isWinner(){return this.winner}isSwappedParticipants(){return this.swappedParticipants}getSwapParticipantsTrans(){return this.swappedParticipantsTrans}getEventId(){return this.eventId}showCountryFlag(){return this.countryFlag||!1}getFirstParticipantWithCountry(){return this.firstParticipant||null}getSecondParticipantWithCountry(){return this.secondParticipant||null}isDoubles(){return!!this.firstParticipant&&!!this.secondParticipant}}class n{constructor(){this.name="",this.url="",this.encodedId="",this.side=a.DW.HOME,this.winner=!1,this.swappedParticipants=!1,this.swappedParticipantsTrans="",this.logo="",this.eventId="",this.showCountryFlag=!1,this.firstParticipant=void 0,this.secondParticipant=void 0}setName(e){return this.name=e,this}setUrl(e){return this.url=e,this}setEncodedId(e){return this.encodedId=e,this}setSide(e){return this.side=e,this}setWinner(e){return this.winner=e,this}setSwappedParticipants(e){return this.swappedParticipants=e,this}setSwappedParticipantsTrans(e){return this.swappedParticipantsTrans=e,this}setLogo(e){return this.logo=e,this}setEventId(e){return this.eventId=e,this}setShowCountryFlag(e){return this.showCountryFlag=e,this}setFirstParticipantWithCountry(e){return this.firstParticipant=e,this}setSecondParticipantWithCountry(e){return this.secondParticipant=e,this}build(){return new s(this.name,this.url,this.encodedId,this.side,this.winner,this.swappedParticipants,this.swappedParticipantsTrans,this.logo,this.eventId,this.showCountryFlag,this.firstParticipant,this.secondParticipant)}}},19028(e,t,r){r.d(t,{d:()=>s});var a=r(17925),i=r(99576);class s extends a.I{formatAfterExtraTime(e,t){var r=this.resolveSideKey(t);return r?e[r].afterExtraTime:""}formatPenaltiesAfterExtraTime(e,t){return this.formatAfterExtraTime(e,t)}formatPenaltiesAfterFullTime(e,t){var r=this.resolveSideKey(t);return r?e[r].fullTime:""}formatOverall(e){var t=this.resolveSideKey(e);return t?this.matchResult[t].overall:""}resolveSideKey(e){return e===i.DW.HOME?"home":e===i.DW.AWAY?"away":null}}}}]);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.