!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]="96c36729-9df0-4b13-9c6e-ef73a0208186",e._sentryDebugIdIdentifier="sentry-dbid-96c36729-9df0-4b13-9c6e-ef73a0208186")}catch(e){}}();"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[22088],{3723:(e,t,a)=>{a.d(t,{A:()=>i});var s=a(6029),l=a(39895);function i(e){return(0,s.jsx)(l.A,Object.assign({width:16,height:16,viewBox:"0 0 16 16"},e,{children:(0,s.jsx)("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M13.9922 7.3349L14.9932 7.90122V9.74506L13.2415 13.2484L9.73824 15H8.81632L8.89534 14.9605L12.1089 11.5626L13.9922 7.3349ZM13.0045 7.12418L11.3187 10.9436L8.43438 14.0912L6.18226 14.9737L3.29797 13.5249L5.01011 13.1562L7.93391 10.6011L9.68556 7.12418H13.0045ZM2.57361 3.10724L2.08631 5.57008L4.3516 9.34995L6.57737 10.4826L4.54915 12.2474L2.46825 12.6952L1.00635 9.74506V6.25494L2.57361 3.10724ZM6.27446 1L6.05056 3.10724L8.71096 6.87394L7.30174 9.73189L5.04962 8.59925L3.12676 5.3857L3.75893 2.25118L6.24812 1H6.27446ZM11.8587 3.48918L14.0317 4.35842L14.9932 6.25494V6.79492L13.9 6.13641H9.39581L7.52563 3.48918H11.8587ZM9.73824 1L13.2284 2.76482L13.3601 3.0809L12.1484 2.54092L7.10418 2.50141L7.26223 1H9.73824Z",fill:e.fill})}))}},5173:(e,t,a)=>{a.d(t,{A:()=>i});var s=a(6029),l=a(39895);function i(e){return(0,s.jsx)(l.A,Object.assign({width:"14",height:"14",viewBox:"0 0 14 14"},e,{children:(0,s.jsxs)("g",Object.assign({clipPath:"url(#clip0_1_842)"},{children:[(0,s.jsx)("path",{d:"M9.49999 5.83008L6.73999 6.83008V9.85008L8.81999 10.6601L10.89 8.37008L9.49999 5.83008Z",fill:e.fill}),(0,s.jsx)("path",{d:"M7 0C3.14 0 0 3.14 0 7C0 10.86 3.14 14 7 14C10.86 14 14 10.86 14 7C14 3.14 10.86 0 7 0ZM7 12.26C6.03 12.26 5.12 11.99 4.34 11.53L4.59 10.15L3.04 8.42L2.1 8.9C1.87 8.31 1.74 7.67 1.74 7C1.74 6.94 1.74 6.88 1.74 6.83L3.75 6.11L4.41 3.63L3.49 3.08C4.42 2.25 5.64 1.73 6.99 1.73C7.09 1.73 7.18 1.73 7.28 1.74L6.99 2.81L9.71 3.96L10.59 3.15C11.61 4.11 12.26 5.47 12.26 6.98C12.26 9.88 9.9 12.25 7 12.25V12.26Z",fill:e.fill})]}))}))}},5276:(e,t,a)=>{a.d(t,{Ck:()=>S,PM:()=>k,RV:()=>b,Sb:()=>_,cW:()=>C});var s=a(6029),l=a(10292),i=a(21377),r=a(28349),n=a(62042),o=a(76356),c=a(55729),d=a(90248),u=a(48683),f=a(62859),p=a(54409),h=a(76868),g=a(13266),m=a(24159);let x={[i.evQ.Missing]:"error.default",[i.evQ.Doubtful]:"sofaSingles.value"},y=(0,n.Fj)({base:{ml:"2xs",textStyle:"assistive.default"},variants:{type:{missing:{color:"status.error.default"},doubtful:{color:"status.alert.default"}}}}),j=(0,o.I4)(r.EY,y),v=e=>{let t=x[e.type];switch(e.reason){case i.s2G.Injured:case i.s2G.Ill:return(0,s.jsx)(p.NcS,{icon:"cross",fill:t});case i.s2G.Suspended:return(0,s.jsx)(p.NcS,{icon:"suspended",fill:t});case i.s2G.YellowCard:return(0,s.jsx)(p.NcS,{icon:"card",fill:"scoreRating.s65"});case i.s2G.YellowRedCard:return(0,s.jsx)(p.NcS,{icon:"card-double-yellow"});case i.s2G.RedCard:return(0,s.jsx)(p.NcS,{icon:"card",fill:"error.default"});case i.s2G.OnLoan:return(0,s.jsx)(p.NcS,{icon:"on-loan",fill:t});case i.s2G.Other:default:return(0,s.jsx)(p.NcS,{icon:"player",fill:t})}},b=(e,t)=>t===i.s2G.OnLoan?"missingplayer.onloan":e===i.evQ.Missing?-1!==[i.s2G.Suspended,i.s2G.YellowCard,i.s2G.YellowRedCard,i.s2G.RedCard].indexOf(t)?"player_status_suspended":"injury_status_out":"injury_status_doubtful";function S(e){let{missingPlayer:t}=e;return(0,s.jsxs)(o.so,{align:"center",w:"[fit-content]",mt:"xs",children:[v(t),(0,s.jsx)(j,{type:t.type===i.evQ.Missing?"missing":"doubtful",children:(0,s.jsx)(d.A,{id:b(t.type,t.reason)})})]})}function w(e){let{missingPlayer:t,isLast:a}=e,i=(0,c.useContext)(f.Ws);return(0,s.jsx)(g.uc,{player:t.player,sportSlug:i,children:(0,s.jsxs)(o.so,{_hover:{bg:"surface.s2"},cursor:"pointer",children:[(0,s.jsx)(o.az,{px:"lg",py:"sm",children:(0,s.jsx)(l.t,{size:40,id:t.player.id,name:t.player.name})}),(0,s.jsx)(o.so,{borderBottom:a?void 0:"onSurface.nLv4",align:"center",flexGrow:1,flexShrink:1,mr:"lg",children:(0,s.jsxs)(o.az,{flexGrow:1,flexShrink:1,children:[(0,s.jsx)(r.EY,{display:"block",color:"neutrals.nLv1",mr:"xs",children:(0,s.jsx)(m.c,{entity:t.player})}),(0,s.jsx)(S,{missingPlayer:t})]})})]})})}function C(e){let{missingPlayers:t}=e;return(null==t?void 0:t.length)?(0,s.jsx)(s.Fragment,{children:t.map((e,a)=>(0,s.jsx)(w,{missingPlayer:e,isLast:a===t.length-1},e.player.id))}):(0,s.jsx)(h.p,{graphic:"no-data",descriptionMessageId:"no_missing_players"})}function _(e){let{missingPlayers:t}=e;return(null==t?void 0:t.length)?(0,s.jsxs)(u.Zp,{children:[(0,s.jsx)(u.Zp.Header,{titleId:"injuries_and_suspensions",as:"h4"}),(0,s.jsx)(C,{missingPlayers:t}),(0,s.jsx)(u.Zp.Footer,{defaultHeight:"sm"})]}):null}function k(e){let{left:t,right:a}=e,l=t&&t.length>0,i=a&&a.length>0;return l||i?(0,s.jsxs)(u.Zp,{variant:"mobile-only",children:[(0,s.jsx)(u.Zp.Header,{titleId:"injuries_and_suspensions"}),(0,s.jsxs)(o.so,{pt:"sm",pb:"md",children:[(0,s.jsx)(o.az,{flexGrow:1,flexShrink:1,flexBasis:"1/2",children:(0,s.jsx)(C,{missingPlayers:t})}),(0,s.jsx)(o.az,{w:"[1px]",bg:"neutrals.nLv4",mt:"sm",mb:"md",mx:"sm"}),(0,s.jsx)(o.az,{flexGrow:1,flexShrink:1,flexBasis:"1/2",children:(0,s.jsx)(C,{missingPlayers:a})})]})]}):null}},5326:(e,t,a)=>{a.d(t,{EN:()=>o,Oi:()=>n,aS:()=>l,sI:()=>r,v1:()=>i});var s=a(21377);let l="goalkeeperGroup",i="goalkeepersGroup",r="G",n={[s.QCR.Football]:{summaryGroup:"rating",attackGroup:"rating",defenceGroup:"rating",passingGroup:"rating",duelsGroup:"rating",goalkeeperGroup:"rating"},[s.QCR.Basketball]:{summaryGroup:"points",pointsGroup:"points",reboundsGroup:"rebounds",otherGroup:"assists"},[s.QCR.Handball]:{playersGroup:"goals",goalkeepersGroup:"goalkeeperEfficiencyPercentage"},[s.QCR.IceHockey]:{summaryGroup:"goals",attackingGroup:"goals",defensiveGroup:"blocked",goalkeeperGroup:"goalkeeperEfficiencyPercentage",otherGroup:"plusMinus"},[s.QCR.AmericanFootball]:{passingGroup:"passingYards",rushingGroup:"rushingAttempts",receivingGroup:"receivingReceptions",defensiveGroup:"defensiveCombineTackles",interceptionsGroup:"defensiveInterceptions",fumblesGroup:"fumbleFumbles",kickingGroup:"kickingTotalPoints",puntingGroup:"puntingTotal",kickReturnsGroup:"kickReturnsTotal",puntReturnsGroup:"puntReturnsTotal"},[s.QCR.Volleyball]:{pointsGroup:"pointsTotal",servesGroup:"serves",receptionGroup:"receptionTotal",attackGroup:"attacksTotal"}},o={[s.QCR.Football]:["G","D","M","F"],[s.QCR.Basketball]:["G","GF","FG","F","FC","CF","C"],[s.QCR.IceHockey]:["F","C","L","R","M","D","G"],[s.QCR.AmericanFootball]:["QB","RB","WR","TE","FB","OT","OG","G","C","T","OL","SS","FS","DB","CB","NT","DT","DE","OLB","LB","ILB","DL","SAF","MLB","P","LS","K","PR"],[s.QCR.Baseball]:["P","SP","RP","CP","RHP","LHP","RHS","LHS","LHR","RHR","C","DH","PH","B","PR","BR","1B","2B","3B","SS","IF","UT","UI","LF","CF","RF","OF","UO"]}},11406:(e,t,a)=>{a.d(t,{A:()=>i});var s=a(6029),l=a(39895);function i(e){return(0,s.jsx)(l.A,Object.assign({width:16,height:16,viewBox:"0 0 16 16"},e,{children:(0,s.jsx)("path",{d:"M10.9902 9.92969V11.2461L9.73926 13.749L7.2373 15H6.57812L6.63477 14.9717L8.93066 12.5449L10.2754 9.52539L10.9902 9.92969ZM8.36621 12.1025L6.30566 14.3506L4.69727 14.9814L2.63672 13.9463L3.85938 13.6826L5.94824 11.8584L7.19922 9.37402H9.57031L8.36621 12.1025ZM1.77148 8.26465L3.38965 10.9639L4.97949 11.7734L3.53027 13.0342L2.04395 13.3535L1 11.2461V8.75391L2.11914 6.50488L1.77148 8.26465ZM4.60254 6.50488L6.50293 9.19531L5.49707 11.2373L3.8877 10.4277L2.51465 8.13281L2.96582 5.89355L4.74414 5H4.7627L4.60254 6.50488ZM10.3037 7.39844L10.9902 8.75391V9.13965L10.21 8.66895H6.99219L5.65625 6.77832H8.75195L10.3037 7.39844ZM9.73047 6.26074L9.82422 6.48633L8.95898 6.10059L5.35547 6.07227L5.46875 5H7.2373L9.73047 6.26074ZM14.9922 3.05078L11.6006 6.37695L10.5303 5.32617L13.9209 2L14.9922 3.05078ZM11.9629 2.0498L9.99902 3.97559L8.92871 2.92578L10.8916 1L11.9629 2.0498Z",fill:e.fill})}))}},11663:(e,t,a)=>{a.d(t,{A:()=>r});var s=a(90142),l=a(6029),i=a(39895);function r(e){var{fill:t="#39B57A"}=e,a=(0,s.T)(e,["fill"]);return(0,l.jsx)(i.A,Object.assign({width:"12",height:"14",viewBox:"0 0 12 14",fill:t},a,{children:(0,l.jsxs)("g",Object.assign({clipPath:"url(#clip0_2019_94513)"},{children:[(0,l.jsx)("path",{d:"M1.5 8V10.25H7.75V8H8.75L11.75 11L8.75 14H7.75V11.75H0V8H1.5Z",fill:t}),(0,l.jsx)("path",{d:"M3.75 8H5.25V4.75H8.5V3.25H5.25V0H3.75V3.25H0.5V4.75H3.75V8Z",fill:"#E35C47"})]}))}))}},12174:(e,t,a)=>{a.d(t,{f:()=>C,Y:()=>r});var s=a(21377),l=a(45860),i=a(71046);function r(e){let t=e.tournament.category.sport.slug!==s.QCR.Football||e.status.type!==s.XUj.Finished,{data:a,isLoading:r}=(0,l.Ay)(t?null:s.bnp.bestPlayersSummary(e.id),(0,i.rf)(e)),n=null==a?void 0:a.playerOfTheMatch,o=null==a?void 0:a.bestHomeTeamPlayers.find(e=>e.player.id===(null==n?void 0:n.player.id));return{isLoading:!t&&r,bestPlayer:(null==n?void 0:n.label)==="rating"?n:void 0,team:n?o?e.homeTeam:e.awayTeam:void 0}}var n=a(6029),o=a(32190),c=a(28349),d=a(21501),u=a(76356),f=a(55729),p=a(90248),h=a(48683),g=a(62859),m=a(54409),x=a(61703),y=a(59754),j=a(16620),v=a(48886);function b(){return(0,n.jsx)("svg",{width:"133",height:"120",viewBox:"0 0 133 120",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,n.jsx)("g",{id:"Symbols",children:(0,n.jsx)("g",{id:"Cards/Player-Of-The-Season-Card-",children:(0,n.jsxs)("g",{id:"Pattern-Left",children:[(0,n.jsx)("path",{id:"Path",d:"M56.9883 114H75.9883V133H56.9883V114Z",fill:"var(--primary-default)",fillOpacity:"0.15"}),(0,n.jsxs)("g",{id:"Group",opacity:"0.8",children:[(0,n.jsx)("path",{id:"Path_2",d:"M38 114H57V133H38V114Z",fill:"var(--primary-default)",fillOpacity:"0.15"}),(0,n.jsx)("path",{id:"Path_3",d:"M76 95.0001H95V114H76V95.0001Z",fill:"var(--primary-default)",fillOpacity:"0.15"}),(0,n.jsx)("path",{id:"Path_4",d:"M95 95.0001H114V114H95V95.0001Z",fill:"var(--primary-default)",fillOpacity:"0.15"}),(0,n.jsx)("path",{id:"Path_5",d:"M57 56.9998H76V76H57V56.9998Z",fill:"var(--primary-default)",fillOpacity:"0.15"}),(0,n.jsx)("path",{id:"Path_6",d:"M95 56.9998H114V76H95V56.9998Z",fill:"var(--primary-default)",fillOpacity:"0.15"}),(0,n.jsx)("path",{id:"Path_7",d:"M114 56.9998H133V76H114V56.9998Z",fill:"var(--primary-default)",fillOpacity:"0.15"}),(0,n.jsx)("path",{id:"Path_8",d:"M0 0H19V19H0V0Z",fill:"var(--primary-default)",fillOpacity:"0.15"}),(0,n.jsx)("path",{id:"Path_9",d:"M57 0H76V19H57V0Z",fill:"var(--primary-default)",fillOpacity:"0.15"})]}),(0,n.jsxs)("g",{id:"Group_2",opacity:"0.5",children:[(0,n.jsx)("path",{id:"Path_10",d:"M76 114H95V133H76V114Z",fill:"var(--primary-default)",fillOpacity:"0.15"}),(0,n.jsx)("path",{id:"Path_11",d:"M0 95H19V114H0V95Z",fill:"var(--primary-default)",fillOpacity:"0.15"}),(0,n.jsx)("path",{id:"Path_12",d:"M57 95H76V114H57V95Z",fill:"var(--primary-default)",fillOpacity:"0.15"}),(0,n.jsx)("path",{id:"Path_13",d:"M76 75.9999H95V94.9996H76V75.9999Z",fill:"var(--primary-default)",fillOpacity:"0.15"}),(0,n.jsx)("path",{id:"Path_14",d:"M95 75.9999H114V94.9996H95V75.9999Z",fill:"var(--primary-default)",fillOpacity:"0.15"}),(0,n.jsx)("path",{id:"Path_15",d:"M38 56.9998H57V75.9999H38V56.9998Z",fill:"var(--primary-default)",fillOpacity:"0.15"}),(0,n.jsx)("path",{id:"Path_16",d:"M76 56.9998H95V75.9999H76V56.9998Z",fill:"var(--primary-default)",fillOpacity:"0.15"}),(0,n.jsx)("path",{id:"Path_17",d:"M38 37.9998H57V56.9998H38V37.9998Z",fill:"var(--primary-default)",fillOpacity:"0.15"}),(0,n.jsx)("path",{id:"Path_18",d:"M76 37.9998H95V56.9998H76V37.9998Z",fill:"var(--primary-default)",fillOpacity:"0.15"}),(0,n.jsx)("path",{id:"Path_19",d:"M0 18.9999H19V37.9999H0V18.9999Z",fill:"var(--primary-default)",fillOpacity:"0.15"})]})]})})})})}function S(){return(0,n.jsx)("svg",{width:"133",height:"120",viewBox:"0 0 133 120",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,n.jsx)("g",{id:"Symbols",children:(0,n.jsx)("g",{id:"Cards/Player-Of-The-Season-Card-",children:(0,n.jsx)("g",{id:"Group-9",children:(0,n.jsxs)("g",{id:"Pattern-Right",children:[(0,n.jsx)("path",{id:"Path",d:"M76.0117 114H57.0117V133H76.0117V114Z",fill:"var(--primary-default)",fillOpacity:"0.15"}),(0,n.jsxs)("g",{id:"Group",opacity:"0.5",children:[(0,n.jsx)("path",{id:"Path_2",d:"M57 114H38V133H57V114Z",fill:"var(--primary-default)",fillOpacity:"0.15"}),(0,n.jsx)("path",{id:"Path_3",d:"M133 94.9998H114V114H133V94.9998Z",fill:"var(--primary-default)",fillOpacity:"0.15"}),(0,n.jsx)("path",{id:"Path_4",d:"M76 94.9998H57V114H76V94.9998Z",fill:"var(--primary-default)",fillOpacity:"0.15"}),(0,n.jsx)("path",{id:"Path_5",d:"M57 76.0002H38V94.9998H57V76.0002Z",fill:"var(--primary-default)",fillOpacity:"0.15"}),(0,n.jsx)("path",{id:"Path_6",d:"M38 76.0002H19V94.9998H38V76.0002Z",fill:"var(--primary-default)",fillOpacity:"0.15"}),(0,n.jsx)("path",{id:"Path_7",d:"M95 57.0001H76V75.9997H95V57.0001Z",fill:"var(--primary-default)",fillOpacity:"0.15"}),(0,n.jsx)("path",{id:"Path_8",d:"M57 57.0001H38V75.9997H57V57.0001Z",fill:"var(--primary-default)",fillOpacity:"0.15"}),(0,n.jsx)("path",{id:"Path_9",d:"M95 38H76V57.0001H95V38Z",fill:"var(--primary-default)",fillOpacity:"0.15"}),(0,n.jsx)("path",{id:"Path_10",d:"M57 38H38V57.0001H57V38Z",fill:"var(--primary-default)",fillOpacity:"0.15"}),(0,n.jsx)("path",{id:"Path_11",d:"M133 19H114V37.9999H133V19Z",fill:"var(--primary-default)",fillOpacity:"0.15"})]}),(0,n.jsxs)("g",{id:"Group_2",opacity:"0.8",children:[(0,n.jsx)("path",{id:"Path_12",d:"M95 114H76V133H95V114Z",fill:"var(--primary-default)",fillOpacity:"0.15"}),(0,n.jsx)("path",{id:"Path_13",d:"M57 94.9998H38V114H57V94.9998Z",fill:"var(--primary-default)",fillOpacity:"0.15"}),(0,n.jsx)("path",{id:"Path_14",d:"M38 94.9998H19V114H38V94.9998Z",fill:"var(--primary-default)",fillOpacity:"0.15"}),(0,n.jsx)("path",{id:"Path_15",d:"M76 57.0001H57V75.9997H76V57.0001Z",fill:"var(--primary-default)",fillOpacity:"0.15"}),(0,n.jsx)("path",{id:"Path_16",d:"M38 57.0001H19V75.9997H38V57.0001Z",fill:"var(--primary-default)",fillOpacity:"0.15"}),(0,n.jsx)("path",{id:"Path_17",d:"M18.9999 57.0001H0V75.9997H18.9999V57.0001Z",fill:"var(--primary-default)",fillOpacity:"0.15"}),(0,n.jsx)("path",{id:"Path_18",d:"M133 0H114V18.9999H133V0Z",fill:"var(--primary-default)",fillOpacity:"0.15"}),(0,n.jsx)("path",{id:"Path_19",d:"M76 0H57V18.9999H76V0Z",fill:"var(--primary-default)",fillOpacity:"0.15"})]})]})})})})})}let w=e=>{let{bestPlayer:t,team:a}=e;return(0,n.jsxs)(u.so,{p:"lg",align:"center",justify:"space-between",children:[(0,n.jsxs)(u.so,{align:"center",children:[(0,n.jsx)(o.tg,{id:t.player.id,name:t.player.name,h:48,w:48}),(0,n.jsxs)(u.az,{ml:"sm",children:[(0,n.jsx)(c.EY,{textStyle:"display.medium",mb:"xs",display:"block",children:t.player.name}),(0,n.jsxs)(u.so,{align:"center",children:[(0,n.jsx)(o.pY,{id:a.id,name:a.name,h:16,w:16,mr:"xs"}),(0,n.jsx)(c.EY,{textStyle:"assistive.default",color:"neutrals.nLv3",children:(0,n.jsx)(p.A,{id:a.slug,defaultMessage:a.name})})]})]})]}),(0,n.jsx)(o.GW,{rating:t.value})]})};function C(e){let{event:t}=e,{isLoading:a,bestPlayer:l,team:i}=r(t),{openEventPlayerStatistics:C}=(0,j.d)(),_=(0,y.Z)(t,"playerOfTheMatch"),k=(0,d.hX)(),{location:M}=(0,f.useContext)(g.y$);return t.tournament.category.sport.slug===s.QCR.Football&&t.status.type===s.XUj.Finished&&(k||a)?(0,n.jsx)(h.Zp,{children:(0,n.jsx)(u.az,{h:"[120px]"})}):a||l?(0,n.jsx)(x.b,{entityId:t.id,branding:_,location:"event_potm",children:(0,n.jsxs)(u.so,{br:M===g.cb.Widget?"sm":"lg",overflow:"hidden",position:"relative",h:"[120px]",justify:"space-between",cursor:"pointer",onClick:()=>l&&C({event:t,player:l.player},v._.PlayerOfTheMatch),children:[(0,n.jsx)(b,{}),(0,n.jsx)(S,{}),(0,n.jsxs)(u.az,{position:"absolute",top:"0",left:"0",w:"100%",children:[(0,n.jsxs)(u.so,{pt:"md",px:"lg",pb:"xs",align:"center",children:[(0,n.jsx)(m.ue7,{mr:"sm",w:24,h:24,fill:(0,o.Et)(null==l?void 0:l.value)}),(0,n.jsx)(c.EY,{textStyle:"display.medium",lineHeight:"24px",children:(0,n.jsx)(p.A,{id:"details.manOfMatch"})})]}),(0,n.jsx)(u.az,{minH:"8xl",children:l&&i&&(0,n.jsx)(w,{bestPlayer:l,team:i})})]})]})}):null}},12562:(e,t,a)=>{a.d(t,{M:()=>h});var s=a(6029),l=a(28349),i=a(55729),r=a(947),n=a(62859),o=a(78944),c=a(76356),d=a(54409);let u={card:{yellow:{fill:"scoreRating.s65",Icon:e=>(0,s.jsx)(d.NcS,{icon:"card-yellow",...e})},yellowRed:{Icon:e=>(0,s.jsx)(d.NcS,{icon:"card-double-yellow",...e})},red:{fill:"error.default",Icon:e=>(0,s.jsx)(d.NcS,{icon:"card-red",...e})}},goal:{football:{regular:{fill:"onSurface.nLv1",Icon:e=>(0,s.jsx)(d.NcS,{icon:"football-ball",...e})},penalty:{fill:"onSurface.nLv1",Icon:e=>(0,s.jsx)(d.NcS,{icon:"football-penalty",...e})},ownGoal:{fill:"error.default",Icon:e=>(0,s.jsx)(d.NcS,{icon:"football-own-goal",...e})}},futsal:{regular:{fill:"onSurface.nLv1",Icon:e=>(0,s.jsx)(d.NcS,{icon:"football-ball",...e})},penalty:{fill:"onSurface.nLv1",Icon:e=>(0,s.jsx)(d.NcS,{icon:"football-penalty",...e})},ownGoal:{fill:"error.default",Icon:e=>(0,s.jsx)(d.NcS,{icon:"football-own-goal",...e})},accumulatedPenalty:{fill:"onSurface.nLv1",Icon:e=>(0,s.jsx)(d.NcS,{icon:"accumulated-penalty",...e})}},minifootball:{regular:{fill:"onSurface.nLv1",Icon:e=>(0,s.jsx)(d.NcS,{icon:"football-ball",...e})},penalty:{fill:"onSurface.nLv1",Icon:e=>(0,s.jsx)(d.NcS,{icon:"football-penalty",...e})},accumulatedPenalty:{fill:"onSurface.nLv1",Icon:e=>(0,s.jsx)(d.NcS,{icon:"accumulated-penalty",...e})},ownGoal:{fill:"error.default",Icon:e=>(0,s.jsx)(d.NcS,{icon:"football-own-goal",...e})}},volleyball:{regular:{fill:"onSurface.nLv1",Icon:e=>(0,s.jsx)(d.NcS,{icon:"volleyball-spike",...e})},spike:{fill:"onSurface.nLv1",Icon:e=>(0,s.jsx)(d.NcS,{icon:"volleyball-spike",...e})},opponentError:{fill:"onSurface.nLv1",Icon:e=>(0,s.jsx)(d.NcS,{icon:"volleyball-opponent-error",...e})},ace:{fill:"onSurface.nLv1",Icon:e=>(0,s.jsx)(d.NcS,{icon:"volleyball-ace",...e})},block:{fill:"onSurface.nLv1",Icon:e=>(0,s.jsx)(d.NcS,{icon:"volleyball-block",...e})}},basketball:{onePoint:{fill:"primary.default",Icon:()=>(0,s.jsx)(c.so,{alignItems:"center",justifyContent:"center",backgroundColor:"surface.s2",w:"xl",h:"xl",br:"lg",children:(0,s.jsx)(l.EY,{textStyle:"display.large",color:"primary.default",children:"1"})})},twoPoints:{fill:"primary.default",Icon:()=>(0,s.jsx)(c.so,{alignItems:"center",justifyContent:"center",backgroundColor:"surface.s2",w:"xl",h:"xl",br:"lg",children:(0,s.jsx)(l.EY,{textStyle:"display.large",color:"primary.default",children:"2"})})},threePoints:{fill:"primary.default",Icon:()=>(0,s.jsx)(c.so,{alignItems:"center",justifyContent:"center",backgroundColor:"surface.s2",w:"xl",h:"xl",br:"lg",children:(0,s.jsx)(l.EY,{textStyle:"display.large",color:"primary.default",children:"3"})})}},bandy:{regular:{fill:"onSurface.nLv1",Icon:e=>(0,s.jsx)(d.NcS,{icon:"bandy-goal",...e})}},floorball:{regular:{fill:"onSurface.nLv1",Icon:e=>(0,s.jsx)(d.NcS,{icon:"floorball-goal",...e})}},"ice-hockey":{regular:{fill:"onSurface.nLv1",Icon:e=>(0,s.jsx)(d.NcS,{icon:"ice-hockey-puck",...e})},emptynet:{fill:"onSurface.nLv1",Icon:e=>(0,s.jsx)(d.NcS,{icon:"ice-hockey-puck",...e})},penalty:{fill:"onSurface.nLv1",Icon:e=>(0,s.jsx)(d.NcS,{icon:"ice-hockey-penalty-goal",...e})},ownGoal:{fill:"error.default",Icon:e=>(0,s.jsx)(d.NcS,{icon:"ice-hockey-own-goal",...e})},powerplay:{fill:"onSurface.nLv1",Icon:e=>(0,s.jsxs)(c.az,{w:"lg",h:"xl",position:"relative",children:[(0,s.jsx)(d.NcS,{icon:"ice-hockey-puck",...e}),(0,s.jsx)(c.so,{bg:"neutrals.nLv1",w:"lg",h:"md",justify:"center",alignItems:"center",position:"absolute",bottom:"2xs",borderTop:"1px solid",borderColor:"surface.s1",br:"2xs",children:(0,s.jsx)(l.EY,{textStyle:"display.micro",color:"surface.s1",children:"PP"})})]})},shorthanded:{fill:"onSurface.nLv1",Icon:e=>(0,s.jsxs)(c.az,{w:"lg",h:"xl",position:"relative",children:[(0,s.jsx)(d.NcS,{icon:"ice-hockey-puck",...e}),(0,s.jsx)(c.so,{bg:"neutrals.nLv1",w:"lg",h:"md",justify:"center",alignItems:"center",position:"absolute",bottom:"2xs",borderTop:"1px solid",borderColor:"surface.s1",br:"2xs",children:(0,s.jsx)(l.EY,{textStyle:"display.micro",color:"surface.s1",children:"SH"})})]})}},badminton:{regular:{fill:"onSurface.nLv1",Icon:e=>(0,s.jsx)(d.NcS,{icon:"badminton",...e})}},"aussie-rules":{goal:{fill:"primary.default",Icon:()=>(0,s.jsx)(c.so,{alignItems:"center",justifyContent:"center",backgroundColor:"surface.s2",w:"xl",h:"xl",br:"lg",children:(0,s.jsx)(l.EY,{textStyle:"display.large",color:"primary.default",children:"6"})})},behind:{fill:"primary.default",Icon:()=>(0,s.jsx)(c.so,{alignItems:"center",justifyContent:"center",backgroundColor:"surface.s2",w:"xl",h:"xl",br:"lg",children:(0,s.jsx)(l.EY,{textStyle:"display.large",color:"primary.default",children:"1"})})}},"table-tennis":{regular:{fill:"onSurface.nLv1",Icon:e=>(0,s.jsx)(d.NcS,{icon:"table-tennis",...e})}},waterpolo:{regular:{fill:"onSurface.nLv1",Icon:e=>(0,s.jsx)(d.NcS,{icon:"water-polo",...e})},penalty:{fill:"onSurface.nLv1",Icon:e=>(0,s.jsx)(d.NcS,{icon:"water-polo-penalty",...e})}},"american-football":{touchdown:{fill:"onSurface.nLv1",Icon:e=>(0,s.jsx)(d.NcS,{icon:"af-touchdown",...e})},fieldGoal:{fill:"onSurface.nLv1",Icon:e=>(0,s.jsx)(d.NcS,{icon:"af-field-goal",...e})},safety:{fill:"success.default",Icon:e=>(0,s.jsx)(d.NcS,{icon:"af-safety",...e})},extraPoint:{fill:"onSurface.nLv1",Icon:e=>(0,s.jsx)(d.NcS,{icon:"af-extra-point",...e})},rouge:{fill:"onSurface.nLv1",Icon:e=>(0,s.jsx)(d.NcS,{icon:"af-rouge",...e})},twoPointConversion:{fill:"onSurface.nLv1",Icon:e=>(0,s.jsxs)(c.az,{w:"lg",h:"xl",position:"relative",children:[(0,s.jsx)(d.NcS,{icon:"af-touchdown",...e}),(0,s.jsx)(c.so,{bg:"neutrals.nLv1",w:"lg",h:"md",justify:"center",alignItems:"center",position:"absolute",bottom:"[1px]",br:"2xs",borderTop:"1px solid",borderColor:"surface.s1",children:(0,s.jsx)(l.EY,{textStyle:"display.micro",color:"surface.s1",children:"2"})})]})}},rugby:{try:{fill:"onSurface.nLv1",Icon:e=>(0,s.jsx)(d.NcS,{icon:"rugby-try",...e})},penaltyTry:{fill:"onSurface.nLv1",Icon:e=>(0,s.jsx)(d.NcS,{icon:"rugby-penalty-try",...e})},onePoints:{fill:"onSurface.nLv1",Icon:e=>(0,s.jsx)(d.NcS,{icon:"rugby-one-point",...e})},twoPoints:{fill:"onSurface.nLv1",Icon:e=>(0,s.jsx)(d.NcS,{icon:"rugby-two-points",...e})},threePoints:{fill:"onSurface.nLv1",Icon:e=>(0,s.jsx)(d.NcS,{icon:"rugby-three-points",...e})}},handball:{regular:{fill:"onSurface.nLv1",Icon:e=>(0,s.jsx)(d.NcS,{icon:"handball-goal",...e})},penalty:{fill:"onSurface.nLv1",Icon:e=>(0,s.jsx)(d.NcS,{icon:"handball-penalty",...e})}},regular:{fill:"",Icon:()=>null}},substitution:{injury:{fill:"primary.default",Icon:e=>(0,s.jsx)(d.NcS,{icon:"substitution-injured",...e})},regular:{fill:"primary.default",Icon:e=>(0,s.jsx)(d.NcS,{icon:"substitution",...e})}},penaltyShootout:{waterpolo:{scored:{fill:"onSurface.nLv1",Icon:e=>(0,s.jsx)(d.NcS,{icon:"water-polo-penalty",...e})}},handball:{scored:{fill:"onSurface.nLv1",Icon:e=>(0,s.jsx)(d.NcS,{icon:"handball-penalty",...e})}},taker:{fill:"onSurface.nLv1",Icon:e=>(0,s.jsx)(d.NcS,{icon:"penalty-taker",...e})},scored:{fill:"onSurface.nLv1",Icon:e=>(0,s.jsx)(d.NcS,{icon:"football-penalty",...e})},missed:{fill:"error.default",Icon:e=>(0,s.jsx)(d.NcS,{icon:"penalty-missed",...e})}},inGamePenalty:{taker:{fill:"onSurface.nLv1",Icon:e=>(0,s.jsx)(d.NcS,{icon:"penalty-taker",...e})},scored:{fill:"onSurface.nLv1",Icon:e=>(0,s.jsx)(d.NcS,{icon:"football-penalty",...e})},missed:{fill:"error.default",Icon:e=>(0,s.jsx)(d.NcS,{icon:"penalty-missed",...e})}},varDecision:{regular:{fill:"primary.default",Icon:e=>(0,s.jsx)(d.NcS,{icon:"var",isRtlPrevented:!0,...e})}},suspension:{"ice-hockey":{tenMinutes:{fill:"error.default",Icon:e=>(0,s.jsx)(d.NcS,{icon:"ice-hockey-penalty",...e})},twoMinutes:{fill:"error.default",Icon:e=>(0,s.jsx)(d.NcS,{icon:"ice-hockey-penalty",...e})},fiveMinutes:{fill:"error.default",Icon:e=>(0,s.jsx)(d.NcS,{icon:"ice-hockey-penalty",...e})},tensMinutes:{fill:"error.default",Icon:e=>(0,s.jsx)(d.NcS,{icon:"ice-hockey-penalty",...e})}},minifootball:{regular:{fill:"error.default",Icon:e=>(0,s.jsx)(d.NcS,{icon:"2-min-suspension",...e})}},twoMinutes:{fill:"error.default",Icon:e=>(0,s.jsx)(d.NcS,{icon:"2-min-suspension",...e})}}},f=(e,t,a,s,l)=>{if(e){if(s)return l?"scale(1,1)":"rotateY(180deg)";if(l&&t&&!a)return"rotate(180deg)"}else{if(l&&t&&!a)return"scale(1,1)";if(a)return l?"scale(1,1)":"rotateY(180deg)";if(t)return l?"rotateY(180deg)":"rotate(180deg)"}},p=e=>{var t,a,i,n,c,d,p;let{incidentType:h,incidentClass:g,sport:m,svgProps:x,isLeft:y=!1}=e,j=(0,r.A)(),v=m?(null==(a=u[h])||null==(t=a[m])?void 0:t.regular)||(null==(i=u[h])?void 0:i.regular):null==(n=u[h])?void 0:n.regular,{textDirection:b}=(0,l.$c)();m&&g&&(v=(null==(d=u[h])||null==(c=d[m])?void 0:c[g])||(null==(p=u[h])?void 0:p[g])||u[h].regular);let S="substitution"===h,w="substitution"===h&&"injury"===g,C="goal"===h&&"ownGoal"===g;if(null==v||!v.Icon)return(0,s.jsx)("div",{style:{width:16}});{let e=(0,o.q6)(h,g,m);return(0,s.jsx)(v.Icon,{width:16,height:16,fill:v.fill,title:e?j.formatMessage({id:e}):void 0,style:{minWidth:(null==x?void 0:x.width)||"16px",display:"inline-block",transform:f(y,S,w,C,"rtl"===b)},...x})}},h=e=>{let t=(0,i.useContext)(n.Ws);return(0,s.jsx)(p,{...e,sport:e.sport||t})}},13429:(e,t,a)=>{a.d(t,{A:()=>J});var s=a(6029),l=a(43681),i=a(10953),r=a(91289),n=a(97080),o=a(13181),c=a(45079),d=a(84684),u=a(86877),f=a(39895);function p(e){return(0,s.jsxs)(f.A,Object.assign({width:"20",height:"20",viewBox:"0 0 20 20"},e,{children:[(0,s.jsx)("path",{id:"Vector",d:"M10 2C14.41 2 18 5.59 18 10C18 14.41 14.41 18 10 18C5.59 18 2 14.41 2 10C2 5.59 5.59 2 10 2ZM10 0C4.48 0 0 4.48 0 10C0 15.52 4.48 20 10 20C15.52 20 20 15.52 20 10C20 4.48 15.52 0 10 0Z",fill:e.fill}),(0,s.jsx)("path",{id:"Vector_2",d:"M6 15C5.45 15 5 15.45 5 16C5 16.55 5.45 17 6 17C6.55 17 7 16.55 7 16C7 15.45 6.55 15 6 15Z",fill:e.fill}),(0,s.jsx)("path",{id:"Vector_3",d:"M9 12C8.45 12 8 12.45 8 13C8 13.55 8.45 14 9 14C9.55 14 10 13.55 10 13C10 12.45 9.55 12 9 12Z",fill:e.fill}),(0,s.jsx)("path",{id:"Vector_4",d:"M6 9C5.45 9 5 9.45 5 10C5 10.55 5.45 11 6 11C6.55 11 7 10.55 7 10C7 9.45 6.55 9 6 9Z",fill:e.fill}),(0,s.jsx)("path",{id:"Vector_5",d:"M3 12C2.45 12 2 12.45 2 13C2 13.55 2.45 14 3 14C3.55 14 4 13.55 4 13C4 12.45 3.55 12 3 12Z",fill:e.fill}),(0,s.jsx)("path",{id:"Vector_6",d:"M15 12C14.45 12 14 12.45 14 13C14 13.55 14.45 14 15 14C15.55 14 16 13.55 16 13C16 12.45 15.55 12 15 12Z",fill:e.fill}),(0,s.jsx)("path",{id:"Vector_7",d:"M12 15C11.45 15 11 15.45 11 16C11 16.55 11.45 17 12 17C12.55 17 13 16.55 13 16C13 15.45 12.55 15 12 15Z",fill:e.fill}),(0,s.jsx)("path",{id:"Vector_8",d:"M12 9C11.45 9 11 9.45 11 10C11 10.55 11.45 11 12 11C12.55 11 13 10.55 13 10C13 9.45 12.55 9 12 9Z",fill:e.fill}),(0,s.jsx)("path",{id:"Vector_9",d:"M15 6C14.45 6 14 6.45 14 7C14 7.55 14.45 8 15 8C15.55 8 16 7.55 16 7C16 6.45 15.55 6 15 6Z",fill:e.fill}),(0,s.jsx)("path",{id:"Vector_10",d:"M18 9C17.45 9 17 9.45 17 10C17 10.55 17.45 11 18 11C18.55 11 19 10.55 19 10C19 9.45 18.55 9 18 9Z",fill:e.fill})]}))}function h(e){return(0,s.jsxs)(f.A,Object.assign({width:"24",height:"24",viewBox:"0 0 24 24"},e,{children:[(0,s.jsx)("path",{d:"M7 16C6.45 16 6 16.45 6 17C6 17.55 6.45 18 7 18C7.55 18 8 17.55 8 17C8 16.45 7.55 16 7 16Z",fill:e.fill}),(0,s.jsx)("path",{d:"M10 15C9.45 15 9 15.45 9 16C9 16.55 9.45 17 10 17C10.55 17 11 16.55 11 16C11 15.45 10.55 15 10 15Z",fill:e.fill}),(0,s.jsx)("path",{d:"M13 16C12.45 16 12 16.45 12 17C12 17.55 12.45 18 13 18C13.55 18 14 17.55 14 17C14 16.45 13.55 16 13 16Z",fill:e.fill}),(0,s.jsx)("path",{d:"M13 13C12.45 13 12 13.45 12 14C12 14.55 12.45 15 13 15C13.55 15 14 14.55 14 14C14 13.45 13.55 13 13 13Z",fill:e.fill}),(0,s.jsx)("path",{d:"M15 10C14.45 10 14 10.45 14 11C14 11.55 14.45 12 15 12C15.55 12 16 11.55 16 11C16 10.45 15.55 10 15 10Z",fill:e.fill}),(0,s.jsx)("path",{d:"M0 0V9H2V2H18V9H20V0H0Z",fill:e.fill}),(0,s.jsx)("path",{d:"M10 7.75C12.89 7.75 15.25 10.11 15.25 13C15.25 15.89 12.89 18.25 10 18.25C7.11 18.25 4.75 15.89 4.75 13C4.75 10.11 7.11 7.75 10 7.75ZM10 6C6.13 6 3 9.13 3 13C3 16.87 6.13 20 10 20C13.87 20 17 16.87 17 13C17 9.13 13.87 6 10 6Z",fill:e.fill})]}))}var g=a(77749),m=a(80339),x=a(14532);function y(e){return(0,s.jsxs)(f.A,Object.assign({width:"20",height:"20",viewBox:"0 0 20 20"},e,{children:[(0,s.jsx)("path",{d:"M10 2C14.41 2 18 5.59 18 10C18 14.41 14.41 18 10 18C5.59 18 2 14.41 2 10C2 5.59 5.59 2 10 2ZM10 0C4.48 0 0 4.48 0 10C0 15.52 4.48 20 10 20C15.52 20 20 15.52 20 10C20 4.48 15.52 0 10 0Z",fill:e.fill}),(0,s.jsx)("path",{d:"M13 4C12.175 4 11.5 4.675 11.5 5.5C11.5 6.325 12.175 7 13 7C13.825 7 14.5 6.325 14.5 5.5C14.5 4.675 13.825 4 13 4Z",fill:e.fill}),(0,s.jsx)("path",{d:"M10 8.5C9.175 8.5 8.5 9.175 8.5 10C8.5 10.825 9.175 11.5 10 11.5C10.825 11.5 11.5 10.825 11.5 10C11.5 9.175 10.825 8.5 10 8.5Z",fill:e.fill}),(0,s.jsx)("path",{d:"M7.5 4C6.675 4 6 4.675 6 5.5C6 6.325 6.675 7 7.5 7C8.325 7 9 6.325 9 5.5C9 4.675 8.325 4 7.5 4Z",fill:e.fill}),(0,s.jsx)("path",{d:"M4.5 8.5C3.675 8.5 3 9.175 3 10C3 10.825 3.675 11.5 4.5 11.5C5.325 11.5 6 10.825 6 10C6 9.175 5.325 8.5 4.5 8.5Z",fill:e.fill})]}))}function j(e){return(0,s.jsxs)(f.A,Object.assign({width:"20",height:"20",viewBox:"0 0 20 20"},e,{children:[(0,s.jsx)("path",{d:"M12 9C11.45 9 11 9.45 11 10C11 10.55 11.45 11 12 11C12.55 11 13 10.55 13 10C13 9.45 12.55 9 12 9Z",fill:e.fill}),(0,s.jsx)("path",{d:"M10 12C9.45 12 9 12.45 9 13C9 13.55 9.45 14 10 14C10.55 14 11 13.55 11 13C11 12.45 10.55 12 10 12Z",fill:e.fill}),(0,s.jsx)("path",{d:"M8.5 9C7.95 9 7.5 9.45 7.5 10C7.5 10.55 7.95 11 8.5 11C9.05 11 9.5 10.55 9.5 10C9.5 9.45 9.05 9 8.5 9Z",fill:e.fill}),(0,s.jsx)("path",{d:"M6.5 12C5.95 12 5.5 12.45 5.5 13C5.5 13.55 5.95 14 6.5 14C7.05 14 7.5 13.55 7.5 13C7.5 12.45 7.05 12 6.5 12Z",fill:e.fill}),(0,s.jsx)("path",{d:"M20 0H0V9H2V2H18V9H20V0Z",fill:e.fill}),(0,s.jsx)("path",{d:"M10 7.75C12.89 7.75 15.25 10.11 15.25 13C15.25 15.89 12.89 18.25 10 18.25C7.11 18.25 4.75 15.89 4.75 13C4.75 10.11 7.11 7.75 10 7.75ZM10 6C6.13 6 3 9.13 3 13C3 16.87 6.13 20 10 20C13.87 20 17 16.87 17 13C17 9.13 13.87 6 10 6Z",fill:e.fill})]}))}var v=a(35518),b=a(31698),S=a(32256),w=a(51555),C=a(12275),_=a(44742),k=a(57773),M=a(65549),P=a(49336),I=a(26624),H=a(4653),L=a(67996),A=a(61390),V=a(84262),R=a(55217),z=a(61848),O=a(79826),T=a(23147),E=a(33787),N=a(2424),G=a(75341),Z=a(86838),F=a(20191),B=a(63788),D=a(27974),Y=a(55807),Q=a(11406),W=a(86876),U=a(62764),K=a(3723),$=a(87234),X=a(18682);let q={card:{yellow:{fill:"scoreRating.s65",Icon:e=>(0,s.jsx)(x.A,Object.assign({},e))},yellowRed:{Icon:e=>(0,s.jsx)(g.A,Object.assign({},e))},red:{fill:"error.default",Icon:e=>(0,s.jsx)(m.default,Object.assign({},e))}},goal:{football:{regular:{fill:"secondary.default",Icon:e=>(0,s.jsx)(v.A,Object.assign({},e))},penalty:{fill:"secondary.default",Icon:e=>(0,s.jsx)(S.A,Object.assign({},e))},ownGoal:{fill:"error.default",Icon:e=>(0,s.jsx)(b.A,Object.assign({},e))}},futsal:{regular:{fill:"secondary.default",Icon:e=>(0,s.jsx)(v.A,Object.assign({},e))},penalty:{fill:"secondary.default",Icon:e=>(0,s.jsx)(S.A,Object.assign({},e))},ownGoal:{fill:"error.default",Icon:e=>(0,s.jsx)(b.A,Object.assign({},e))},accumulatedPenalty:{fill:"secondary.default",Icon:e=>(0,s.jsx)(i.A,Object.assign({},e))}},minifootball:{regular:{fill:"secondary.default",Icon:e=>(0,s.jsx)(v.A,Object.assign({},e))},penalty:{fill:"secondary.default",Icon:e=>(0,s.jsx)(S.A,Object.assign({},e))},accumulatedPenalty:{fill:"secondary.default",Icon:e=>(0,s.jsx)(i.A,Object.assign({},e))},ownGoal:{fill:"error.default",Icon:e=>(0,s.jsx)(b.A,Object.assign({},e))}},"american-football":{fieldGoal:{fill:"secondary.default",Icon:e=>(0,s.jsx)(n.A,Object.assign({},e))},rouge:{fill:"secondary.default",Icon:e=>(0,s.jsx)(o.A,Object.assign({},e))},twoPointConversion:{fill:"secondary.default",Icon:e=>(0,s.jsx)(u.A,Object.assign({},e))},touchdown:{fill:"secondary.default",Icon:e=>(0,s.jsx)(d.A,Object.assign({},e))},extraPoint:{fill:"secondary.default",Icon:e=>(0,s.jsx)(r.A,Object.assign({},e))},safety:{fill:"secondary.default",Icon:e=>(0,s.jsx)(c.A,Object.assign({},e))}},rugby:{onePoint:{fill:"secondary.default",Icon:e=>(0,s.jsx)(T.A,Object.assign({},e))},twoPoints:{fill:"secondary.default",Icon:e=>(0,s.jsx)(Z.A,Object.assign({},e))},threePoints:{fill:"secondary.default",Icon:e=>(0,s.jsx)(N.A,Object.assign({},e))},try:{fill:"secondary.default",Icon:e=>(0,s.jsx)(G.A,Object.assign({},e))},penaltyTry:{fill:"secondary.default",Icon:e=>(0,s.jsx)(E.A,Object.assign({},e))}},"ice-hockey":{regular:{fill:"secondary.default",Icon:e=>(0,s.jsx)(M.A,Object.assign({},e))},emptynet:{fill:"secondary.default",Icon:e=>(0,s.jsx)(M.A,Object.assign({},e))},ownGoal:{fill:"error.default",Icon:e=>(0,s.jsx)(P.A,Object.assign({},e))},penalty:{fill:"secondary.default",Icon:e=>(0,s.jsx)(I.A,Object.assign({},e))},powerplay:{fill:"secondary.default",Icon:e=>(0,s.jsx)(H.A,Object.assign({},e))},shorthanded:{fill:"secondary.default",Icon:e=>(0,s.jsx)(L.A,Object.assign({},e))}},handball:{regular:{fill:"secondary.default",Icon:e=>(0,s.jsx)(w.A,Object.assign({},e))},penalty:{fill:"secondary.default",Icon:e=>(0,s.jsx)(C.A,Object.assign({},e))}},waterpolo:{regular:{fill:"secondary.default",Icon:e=>(0,s.jsx)($.A,Object.assign({},e))},penalty:{fill:"secondary.default",Icon:e=>(0,s.jsx)(X.A,Object.assign({},e))}},bandy:{regular:{fill:"onSurface.nLv1",Icon:e=>(0,s.jsx)(p,Object.assign({},e))},penalty:{fill:"onSurface.nLv1",Icon:e=>(0,s.jsx)(h,Object.assign({},e))}},floorball:{regular:{fill:"onSurface.nLv1",Icon:e=>(0,s.jsx)(y,Object.assign({},e))},penalty:{fill:"onSurface.nLv1",Icon:e=>(0,s.jsx)(j,Object.assign({},e))}},volleyball:{regular:{fill:"secondary.default",Icon:e=>(0,s.jsx)(K.A,Object.assign({},e))},spike:{fill:"secondary.default",Icon:e=>(0,s.jsx)(K.A,Object.assign({},e))},opponentError:{fill:"secondary.default",Icon:e=>(0,s.jsx)(U.A,Object.assign({},e))},ace:{fill:"secondary.default",Icon:e=>(0,s.jsx)(Q.A,Object.assign({},e))},block:{fill:"secondary.default",Icon:e=>(0,s.jsx)(W.A,Object.assign({},e))}},regular:{Icon:()=>null}},substitution:{"ice-hockey":{goalkeeperIn:{fill:"primary.default",Icon:e=>(0,s.jsx)(_.A,Object.assign({},e))},goalkeeperOut:{fill:"primary.default",Icon:e=>(0,s.jsx)(k.A,Object.assign({},e))}},injury:{fill:"primary.default",Icon:e=>(0,s.jsx)(B.A,Object.assign({},e))},temporary:{fill:"primary.default",Icon:e=>(0,s.jsx)(D.A,Object.assign({},e))},regular:{fill:"primary.default",Icon:e=>(0,s.jsx)(F.A,Object.assign({},e))}},penaltyShootout:{"ice-hockey":{scored:{fill:"secondary.default",Icon:e=>(0,s.jsx)(I.A,Object.assign({},e))}},waterpolo:{scored:{fill:"secondary.default",Icon:e=>(0,s.jsx)(X.A,Object.assign({},e))}},rugby:{scored:{fill:"secondary.default",Icon:e=>(0,s.jsx)(z.A,Object.assign({},e))},missed:{fill:"error.default",Icon:e=>(0,s.jsx)(R.A,Object.assign({},e))}},taker:{fill:"secondary.default",Icon:e=>(0,s.jsx)(O.A,Object.assign({},e))},scored:{fill:"secondary.default",Icon:e=>(0,s.jsx)(S.A,Object.assign({},e))},missed:{fill:"error.default",Icon:e=>(0,s.jsx)(V.A,Object.assign({},e))}},inGamePenalty:{taker:{fill:"secondary.default",Icon:e=>(0,s.jsx)(O.A,Object.assign({},e))},scored:{fill:"secondary.default",Icon:e=>(0,s.jsx)(S.A,Object.assign({},e))},missed:{fill:"error.default",Icon:e=>(0,s.jsx)(V.A,Object.assign({},e))}},varDecision:{regular:{fill:"primary.default",Icon:e=>(0,s.jsx)(Y.A,Object.assign({},e))}},suspension:{minifootball:{regular:{fill:"error.default",Icon:e=>(0,s.jsx)(l.A,Object.assign({},e))}},handball:{regular:{fill:"error.default",Icon:e=>(0,s.jsx)(l.A,Object.assign({},e))}},twoMinutes:{fill:"error.default",Icon:e=>(0,s.jsx)(l.A,Object.assign({},e))},"ice-hockey":{zeroMinutes:{fill:"error.default",Icon:e=>(0,s.jsx)(A.A,Object.assign({},e))},twoMinutes:{fill:"error.default",Icon:e=>(0,s.jsx)(A.A,Object.assign({},e))},fourMinutes:{fill:"error.default",Icon:e=>(0,s.jsx)(A.A,Object.assign({},e))},fiveMinutes:{fill:"error.default",Icon:e=>(0,s.jsx)(A.A,Object.assign({},e))},tenMinutes:{fill:"error.default",Icon:e=>(0,s.jsx)(A.A,Object.assign({},e))},regular:{fill:"error.default",Icon:e=>(0,s.jsx)(A.A,Object.assign({},e))}}}};function J({incidentType:e,incidentClass:t,sport:a,title:l,svgProps:i,fallback:r=null}){var n,o,c,d,u,f;let p=(null==(o=null==(n=q[e])?void 0:n[a])?void 0:o.regular)||(null==(c=q[e])?void 0:c.regular);if(t&&(p=(null==(u=null==(d=q[e])?void 0:d[a])?void 0:u[t])||(null==(f=q[e])?void 0:f[t])||q[e].regular),!(null==p?void 0:p.Icon))return r;let h=p.Icon;return(0,s.jsx)(h,Object.assign({width:24,height:24,fill:p.fill,title:l,style:{minWidth:(null==i?void 0:i.width)||"24px",display:"inline-block"}},i))}},16206:(e,t,a)=>{a.r(t),a.d(t,{default:()=>K});var s=a(6029),l=a(28349),i=a(21501),r=a(76356),n=a(99064),o=a(55729),c=a(62859),d=a(37655),u=a(9489),f=a(21377),p=a(48886),h=a(5326);let g=e=>{let t=e.statistics;for(let e=0;e0)return!0}return!1},m=(e,t,a)=>t===f.QCR.Football&&e===h.aS?a.player.position===h.sI:t===f.QCR.Handball?e!==h.v1||g(a):t===f.QCR.IceHockey?e!==h.aS||g(a):t!==f.QCR.AmericanFootball||g(a),x=(e,t)=>{var a,s,l,i,r;return!!e.value&&null!=(a=t.statistics)&&!!a[e.value]||!!e.secondaryValue&&null!=(s=t.statistics)&&!!s[e.secondaryValue]||!!e.madesValue&&null!=(l=t.statistics)&&!!l[e.madesValue]||!!e.attemptsValue&&null!=(i=t.statistics)&&!!i[e.attemptsValue]||e.replacementValue&&!!(null==(r=t.statistics)?void 0:r[e.replacementValue])},y=(e,t,a)=>a===f.QCR.AmericanFootball?Object.keys(e).filter(a=>e[a].find(e=>!!t.left.players.find(t=>x(e,t))||!!t.right.players.find(t=>x(e,t)))):Object.keys(e),j=e=>{let t={};return Object.keys(e).forEach(a=>{t[a]={stat:e[a],dir:p.U.DESC}}),t};var v=a(16620),b=a(40237),S=a(90248),w=a(69559),C=a(54409),_=a(35474),k=a(13266),M=a(94493),P=a(24159),I=a(54917),H=a(85306);let L=e=>{let{teamId:t,teamName:a}=e;return(0,s.jsx)(n.XI.Cell,{children:(0,s.jsx)(r.az,{py:"xs",px:"sm",children:(0,s.jsx)(b.p,{id:t,name:a,size:24})})})},A=e=>{let{player:t,onClick:a}=e,i=(0,w.o)(),o=i===f.QCR.Basketball&&!!t.ejected;return(0,s.jsx)(n.XI.Cell,{children:(0,s.jsx)(k.uc,{player:t,onClick:e=>a(e,t),sportSlug:i,children:(0,s.jsxs)(r.so,{direction:"column",py:"sm",px:"lg",align:"flex-start",children:[(0,s.jsx)(l.EY,{textStyle:"body.small",_hover:{color:"primary.default"},children:(0,s.jsx)(P.c,{entity:t})}),o&&(0,s.jsx)(r.so,{bg:"status.error.default",display:"inline-flex",h:"md",align:"center",br:"md",px:"sm",children:(0,s.jsx)(l.EY,{textStyle:"assistive.micro",color:"surface.s1",children:(0,s.jsx)(S.A,{id:"basketball_player_ejected_long"})})})]})})})},V=e=>{let{statistic:t,isSortBy:a,position:i}=e,o=t.configStatsKey.replacementValue,c=o&&"number"==typeof t.stats[o]?o:t.configStatsKey.value,d=(0,_.Rs)(t.stats,t.configStatsKey);return(0,s.jsxs)(n.XI.Cell,{style:{position:"relative",whiteSpace:"nowrap"},children:[(0,s.jsx)(r.az,{position:"absolute",top:"0",left:"0",w:"100%",h:"100%",bg:a?"surface.s2":void 0}),(0,s.jsx)(l.EY,{py:"sm",px:"lg",textStyle:"body.small",textAlign:"center",display:"block",position:"relative",children:c===H.K.ExpectedGoals?(0,s.jsx)(s.Fragment,{children:d||"-"}):c===H.K.Rating?(0,s.jsx)(r.so,{justify:"center",children:(0,s.jsx)(b.G,{rating:t.stats[c]})}):c===H.K.Position?i?(0,s.jsx)(I.F,{id:i,short:!0}):"-":c!==H.K.Notes?d:d.split("\n").map(e=>e.length?(0,s.jsx)("div",{children:e},e):null)})]})},R=e=>{let{filteredTeamId:t,onFilterClick:a,leftTeam:i,rightTeam:o}=e;return(0,s.jsx)(n.XI.HeadCell,{w:170,maxW:170,minW:160,children:(0,s.jsxs)(r.so,{py:"md",px:"sm",gap:"sm",align:"center",justify:"center",children:[(0,s.jsxs)(r.so,{align:"center",gap:"xs",minW:"fit",p:"xs",br:"[20px]",border:"[1px solid]",borderColor:t?"[transparent]":"primary.highlight",bg:t?"surface.s2":"primary.highlight",onClick:()=>a(void 0),cursor:"pointer",children:[(0,s.jsx)(b.p,{id:i.id,name:i.name,size:24}),(0,s.jsx)(l.EY,{textStyle:"assistive.default",color:"neutrals.nLv3",children:"+"}),(0,s.jsx)(b.p,{id:o.id,name:o.name,size:24})]}),(0,s.jsx)(r.az,{p:"xs",br:"50%",border:"[1px solid]",borderColor:t===i.id?"primary.highlight":"[transparent]",bg:t===i.id?"primary.highlight":"surface.s2",onClick:()=>a(i.id),cursor:"pointer",children:(0,s.jsx)(b.p,{id:i.id,name:i.name,size:24,style:{verticalAlign:"top"}})}),(0,s.jsx)(r.az,{p:"xs",br:"50%",border:"[1px solid]",borderColor:t===o.id?"primary.highlight":"[transparent]",bg:t===o.id?"primary.highlight":"surface.s2",onClick:()=>a(o.id),cursor:"pointer",children:(0,s.jsx)(b.p,{id:o.id,name:o.name,size:24,style:{verticalAlign:"top"}})})]})})},z=e=>{let{statistic:t,sortConfig:a,onColumnClick:i,sport:o}=e,c=t.configStatsKey.replacementValue,d="";d=c&&"number"==typeof t.stats[c]?c:t.configStatsKey.value;let u=a.stat.value===t.configStatsKey.value,h=u&&a.dir===p.U.ASC,g=d===H.K.Notes;return(0,s.jsx)(n.XI.HeadCell,{onClick:()=>{d!==H.K.Notes&&i(t.configStatsKey)},style:{position:"relative"},children:(0,s.jsxs)(r.az,{minW:g?"[124px]":o===f.QCR.AmericanFootball?"[100px]":void 0,p:"xs",textAlign:"center",cursor:g?"default":"pointer",children:[(0,s.jsx)(r.so,{position:"absolute",top:"0",left:"0",w:"100%",h:"100%",bg:u?"surface.s2":void 0}),(0,s.jsx)(r.ov,{minH:"2xl",position:"relative",children:(0,s.jsx)(l.EY,{textStyle:"body.small",color:"neutrals.nLv3",textAlign:"center",children:(0,s.jsx)(M.w,{id:d})})}),(0,s.jsx)(C.Bfd,{fill:g?"transparent":u?"primary.default":"onSurface.nLv4",style:{transition:"transform 0.3s ease-in-out",transform:" rotate(".concat(180*!!h,"deg)")}})]})})};var O=a(947),T=a(99586),E=a(50677),N=a(27892),G=a(4967);let Z=(e,t,a)=>{let s=[];for(let l of e.players){let i=[];for(let a of t){let{statistics:t}=l;if(!e.players.every(e=>{var t;return!a.textualDescription&&!(null==(t=e.statistics)?void 0:t[a.value])&&a.hideIfNone})&&t){let e={stats:{},configStatsKey:{...a}};if(e.stats[a.value]=a.value in t?t[a.value]:0,"minutesPlayed"===a.value&&"number"==typeof e.stats[a.value]&&(e.stats[a.value]="".concat(e.stats[a.value],"'")),a.secondaryValue&&(e.stats[a.secondaryValue]=a.secondaryValue in t?t[a.secondaryValue]:0),a.madesValue&&(e.stats[a.madesValue]=a.madesValue in t?t[a.madesValue]:0),a.attemptsValue&&(e.stats[a.attemptsValue]=a.attemptsValue in t?t[a.attemptsValue]:0),a.textualDescription){let s=Object.keys(a.textualDescription),l={};for(let e of s)l[e]=Number(t[e]||0);e.stats[a.value]=l}a.replacementValue&&"number"==typeof t[a.replacementValue]&&(e.stats[a.replacementValue]=t[a.replacementValue]),i.push(e)}}s.push({player:{...l.player,...a(l.player.id),position:l.position,ejected:l.ejected},statistics:i})}return s},F=(e,t)=>{let a={};for(let s of e)if(s.statistics){if((t===f.QCR.Football||t===f.QCR.Basketball)&&!("minutesPlayed"in s.statistics)&&!("secondsPlayed"in s.statistics))continue;let e=Number(s.statistics.totalClearance||0)+Number(s.statistics.outfielderBlock||0)+Number(s.statistics.interceptionWon||0)+Number(s.statistics.totalTackle||0),l=Number(s.statistics.duelWon||0)+Number(s.statistics.duelLost||0),i=Number(s.statistics.aerialWon||0)+Number(s.statistics.aerialLost||0),r=l-i,n=s.statistics.aerialWon||l-r-Number(s.statistics.aerialLost||0),o=s.statistics.groundWon||Number(s.statistics.duelWon)-Number(n),c=Number(s.statistics.faceOffTaken||0),d=Number(s.statistics.kickingFgAttempts||0),u=s.statistics.minutesPlayed,p="-";!u&&s.statistics.secondsPlayed&&(t===f.QCR.IceHockey?p=(0,G.OV)(Number(s.statistics.secondsPlayed)):u=Math.floor(Number(s.statistics.secondsPlayed)/60));let h=0;"number"==typeof s.statistics.saves&&"number"==typeof s.statistics.gkShots&&s.statistics.gkShots>0&&(h=Number(s.statistics.saves)/Number(s.statistics.gkShots)*100),"number"==typeof s.statistics.saves&&"number"==typeof s.statistics.shotsAgainst&&s.statistics.shotsAgainst>0&&(h=Number(s.statistics.saves)/Number(s.statistics.shotsAgainst)*100);let g=0;"number"==typeof s.statistics.goals&&"number"==typeof s.statistics.shotsTaken&&s.statistics.shotsTaken>0&&(g=Number(s.statistics.goals)/Number(s.statistics.shotsTaken)*100);let m=0;(0,_.Kk)(s.statistics)&&(m=(0,_.C2)(s.statistics)),a[s.player.id]={...s,statistics:{...s.statistics,totalDefensiveActions:e,totalDuels:l,totalAerialDuels:i,totalGroundDuels:r,aerialWon:n,groundWon:o,duelWon:s.statistics.duelWon||0,minutesPlayed:u,timeOnIce:p,faceOffTakenOnly:c,kickingFg:d,goalkeeperEfficiencyPercentage:h,shotAccuracy:g,position:s.position||0,passingRating:m}}}return a},B=(e,t,a)=>{for(let s of e.statistics)if(s.configStatsKey.textualDescription)for(let e of Object.keys(s.configStatsKey.textualDescription))s.configStatsKey.textualDescription[e]=t.formatMessage({id:(0,N.O)(E,e,a)});return e},D=(e,t,a,s,l,i)=>{let{event:r,leftTeam:n,rightTeam:d}=(0,o.useContext)(c.y$),u=(0,O.A)(),f=r.tournament.category.sport.slug,p={},h={},g=(e,t)=>{i&&i!==t.id||(p[e.player.id]={teamId:t.id,teamName:t.name},h[e.player.id]=e)};s.left.players.forEach(e=>g(e,n)),s.right.players.forEach(e=>g(e,d));let x=F(Object.values(h),f);return Z({players:Object.values((0,T.C)(x,e,l,f))},a,e=>p[e]).filter(e=>m(t,f,e)).map(e=>B(e,u,f))};var Y=a(71046);let Q=e=>{let{sortConfig:t,updateSortStatistic:a,filteredTeamId:l,onFilterClick:i,defaultSortStat:d,stats:u,lineups:f,groupName:h}=e,{event:g,leftTeam:m,rightTeam:x}=(0,o.useContext)(c.y$),{openEventPlayerStatistics:y}=(0,v.d)(),j=(e,t)=>{e.preventDefault(),g.hasEventPlayerStatistics&&y({event:g,player:t},p._.PlayerStats)},b=D(t,h,u,f,d,l);return b.length?(0,s.jsxs)(n.XI,{w:"100%",children:[(0,s.jsx)(n.XI.Head,{children:(0,s.jsxs)(n.XI.Row,{children:[(0,s.jsx)(n.XI.HeadCell,{maxW:40,w:40,children:(0,s.jsx)(r.az,{w:"3xl",h:"xl"})}),(0,s.jsx)(R,{filteredTeamId:l,onFilterClick:i,leftTeam:m,rightTeam:x}),b[0].statistics.map(e=>(0,s.jsx)(z,{sport:(0,Y.c5)(g),statistic:e,sortConfig:t,onColumnClick:()=>a(e.configStatsKey,h)},e.configStatsKey.value))]})}),(0,s.jsx)(n.XI.Body,{children:b.map(e=>(0,s.jsxs)(n.XI.Row,{children:[(0,s.jsx)(L,{teamId:e.player.teamId,teamName:e.player.teamName}),(0,s.jsx)(A,{player:e.player,onClick:j}),e.statistics.map(a=>(0,s.jsx)(V,{statistic:a,isSortBy:a.configStatsKey.value===t.stat.value,position:e.player.position},a.configStatsKey.value))]},e.player.id))})]}):null};var W=a(71306);let U=(e,t)=>{let a=(0,o.useMemo)(()=>{let a={};return Object.keys(h.Oi[e]).forEach(s=>{let l=h.Oi[e][s];a[s]=t[s].find(e=>e.value===l)||t[s][0]}),a},[e]),[s,l]=(0,o.useState)(()=>j(a));return{defaultSorts:a,sortConfigs:s,updateSortStatistic:(e,t)=>{l(a=>({...a,[t]:(0,W.I)(a[t],e)}))}}},K=e=>{let{lineups:t}=e,a=(0,o.useContext)(c.Ws),f=(0,d.nm)(a),p=y(f,t,a),h=(0,o.useRef)(null),g=(0,i.uc)(h),[m,x]=(0,o.useState)(p[0]),[j,v]=(0,o.useState)(),{defaultSorts:b,sortConfigs:S,updateSortStatistic:w}=U(a,f),C=(0,o.useCallback)(e=>v(e),[]);return p?(0,s.jsxs)(n.tU,{variant:"quaternary",initialValue:0,value:m||0,onChange:e=>x(e),children:[(0,s.jsx)(r.az,{py:"sm",px:"lg",children:p.map(e=>(0,s.jsx)(n.tU.Tab,{ml:0,tabKey:e,children:(0,s.jsx)(u.R,{id:e})},e))}),p.map(e=>(0,s.jsx)(n.tU.Panel,{tabKey:e,children:(0,s.jsx)(r.az,{pb:"lg",ref:h,children:(0,s.jsx)(l.tR,{scrollButtonTopPosition:38,children:(0,s.jsx)(r.az,{style:{minWidth:g},children:(0,s.jsx)(Q,{sortConfig:S[e],updateSortStatistic:w,defaultSortStat:b[e],filteredTeamId:j,onFilterClick:C,stats:f[e],lineups:t,groupName:e})})})})},e))]}):null}},17485:(e,t,a)=>{a.d(t,{u:()=>B});var s=a(6029),l=a(21377),i=a(28349),r=a(99064),n=a(55729),o=a(48683),c=a(62859),d=a(33144),u=a(8703),f=a(16620),p=a(48886),h=a(13266),g=a(24159),m=a(54863),x=a(55529),y=a(58991),j=a(23332),v=a(41735);let b=()=>{let{colors:e}=(0,v.useTheme)();return(0,s.jsx)("svg",{viewBox:"0 0 344 608",children:(0,s.jsxs)("g",{fill:"none",fillRule:"evenodd",children:[(0,s.jsx)("path",{fill:e.graphicsTerrain.football,d:"M0 0h344v608H0z"}),(0,s.jsx)("g",{fill:e.onSurface.nLv5,children:(0,s.jsx)("path",{d:"M4 52h336v72H4zM4 196h336v72H4zM4 340h336v72H4zM4 484h336v72H4z"})}),(0,s.jsxs)("g",{fill:e.surface.s1,fillRule:"nonzero",children:[(0,s.jsx)("path",{d:"M340 303H4v289h336V303zM5.953 305.001h332.094v285H5.953v-285z"}),(0,s.jsx)("path",{d:"M4 556.011h336v-2.054H4zM4 446.011h336v-2.054H4z"}),(0,s.jsx)("path",{d:"M28 458.011v-26h2v26zM134 532.012h25.436v-2.054H134zM112 356.012h26v-2.054h-26zM159 356.012h26v-2.054h-26zM205 356.012h26v-2.054h-26zM184 532.012h25.436v-2.054H184zM92 532.012H66v-2.054h12v-24.85h2v24.85h12zM92 356.027H80v11.985h-2v-11.985H66v-2.03h12v-11.985h2v11.985h12zM327 356.027h-12v11.985h-2v-11.985h-12v-2.03h12v-11.985h2v11.985h12zM42 356.027H30v11.985h-2v-11.985H16v-2.03h12v-11.985h2v11.985h12zM277 356.027h-12v11.985h-2v-11.985h-12v-2.03h12v-11.985h2v11.985h12zM280.339 532.012H255v-2.054h11.74v-24.85h2.054v24.85h11.545zM330.339 532.012H305v-2.054h11.74v-24.85h2.054v24.85h11.545zM42 532.012H16v-2.054h12v-24.85h2v24.85h12zM78 458.012v-26h2v26zM266.63 458.011v-26h2.054v26zM28 316.012h2v-12h-2zM78 316.012h2v-12h-2zM263 316.012h2v-12h-2zM313 316.012h2v-12h-2zM316.728 458.011v-26h2.055v26zM190.127 600.012l-3.509-34.731h-29.355l-3.507 34.693-1.965-.045 4.314-43.917h2.065l-.71 7.215h28.962l-.703-7.215h1.981l4.774 43.962z"}),(0,s.jsxs)("g",{children:[(0,s.jsx)("path",{d:"M340 305.011H4v-289h336v289zM5.953 303.01h332.094v-285H5.953v285z"}),(0,s.jsx)("path",{d:"M4 52h336v2.054H4zM4 162h336v2.054H4z"}),(0,s.jsx)("path",{d:"M28 150v26h2v-26zM134 75.999h25.436v2.054H134zM112 251.999h26v2.054h-26zM159 251.999h26v2.054h-26zM205 251.999h26v2.054h-26zM184 75.999h25.436v2.054H184zM92 75.999H66v2.054h12v24.85h2v-24.85h12zM92 251.984H80V240h-2v11.985H66v2.03h12v11.985h2v-11.985h12zM327 251.984h-12V240h-2v11.985h-12v2.03h12v11.985h2v-11.985h12zM42 251.984H30V240h-2v11.985H16v2.03h12v11.985h2v-11.985h12zM277 251.984h-12V240h-2v11.985h-12v2.03h12v11.985h2v-11.985h12zM280.339 75.999H255v2.054h11.74v24.85h2.054v-24.85h11.545zM330.339 75.999H305v2.054h11.74v24.85h2.054v-24.85h11.545zM42 75.999H16v2.054h12v24.85h2v-24.85h12zM78 149.999v26h2v-26zM266.63 150v26h2.054v-26zM28 291.999h2v12h-2zM78 291.999h2v12h-2zM263 291.999h2v12h-2zM313 291.999h2v12h-2zM316.728 150v26h2.055v-26zM190.127 7.999l-3.509 34.731h-29.355l-3.507-34.693-1.965.045 4.314 43.917h2.065l-.71-7.215h28.962L185.72 52h1.981l4.774-43.962z"})]})]})]})})},S=e=>{let{type:t,children:a}=e;return(0,s.jsxs)(r.az,{position:"relative",children:[(0,s.jsx)(b,{}),(0,s.jsx)(r.az,{position:"absolute",w:"100%",h:"100%",px:"1%",py:"15%",left:0,top:0,children:(0,s.jsx)(r.az,{w:"100%",h:"100%",display:"grid",style:{gridTemplateColumns:"repeat(".concat("fifteens"===t?5:4,", 1fr)"),gridTemplateRows:"repeat(".concat(7,", 1fr)")},children:a})})]})};var w=a(94400),C=a(48485),_=a(19991),k=a(90248),M=a(54409),P=a(84942),I=a(19558),H=a(73488);let L=(0,v.default)(h.uc).withConfig({componentId:"sc-8ad6c160-0"})(["display:flex;flex-direction:column;justify-content:flex-start;align-items:center;position:relative;z-index:",";border-radius:4px;text-align:center;cursor:pointer;transition:opacity 0.1s ease-in-out;width:56px;height:72px;&:hover{opacity:0.8;}"],r.Py.Button);function A(e){var t,a,i;let{player:o,incidents:c,onClick:d,jersey:u,color:f,useShortName:p,showSubstitutionNames:h=!0,showGoalScorer:g=!0,nameWidth:m,hasRatings:x,isPlayerOfTheMatch:y}=e,j=(0,n.useMemo)(()=>c?(0,C.h)({id:o.player.id,incidents:c,useShortName:p}):{},[o,c]),v=null==(t=o.statistics)?void 0:t.rating,b=1;void 0===v&&o.avgRating&&(v=o.avgRating,b=2);let S=(0,P.z)(o.player,(0,I.kx)(o,p)),A=(0,I.sP)(S,o.captain);return(0,s.jsxs)(L,{onClick:d,player:o.player,sportSlug:l.QCR.Rugby,children:[y&&(0,s.jsx)(M.ue7,{w:16,h:16,fill:(0,_.Et)(null==(a=o.statistics)?void 0:a.rating),position:"absolute",top:-16,left:"calc(50% - 8px)"}),(0,s.jsx)(r._V,{w:"28px",h:"32px",src:u,alt:""}),(0,s.jsx)(r.EY,{position:"absolute",top:"3px",left:"calc(50% - 12px)",align:"center",w:"xl",font:"table.large",fontSize:o.jerseyNumber&&o.jerseyNumber.length>=3?12:void 0,letterSpacing:"-0.2px",mt:o.jerseyNumber&&o.jerseyNumber.length>=3?"xxs":void 0,color:f?"#".concat(f.fancyNumber):"onSurface.nLv1",children:o.jerseyNumber}),j.substitutionIn&&(0,s.jsx)(r.az,{position:"absolute",top:"0",left:"-2",children:(0,s.jsx)(H.FU,{isInjury:j.substitutionIn.isInjury})}),!j.substitutionIn&&j.substitutionOut&&(0,s.jsx)(r.az,{position:"absolute",top:"0",left:"-2",children:(0,s.jsx)(H.FU,{isInjury:j.substitutionOut.isInjury})}),x&&(0,s.jsx)(r.az,{position:"absolute",top:"lg",left:-2,children:(0,s.jsx)(w.A,{rating:v,format:"box",size:"sm",decimalPoints:b})}),(0,s.jsx)(r.EY,{align:"center",lineHeight:1,font:"assistive.default",color:"onSurface.nLv1",pt:"xs",title:A,w:m,style:{hyphens:"auto"},children:A}),h&&(null==(i=j.substitutionIn)?void 0:i.forPlayer)&&(0,s.jsxs)(r.EY,{align:"center",lineHeight:1,font:"table.small",color:"onSurface.nLv3",title:j.substitutionIn.forPlayer,children:[(0,s.jsx)(k.A,{id:"injury_status_out"}),": ",j.substitutionIn.forPlayer]}),(0,s.jsx)(r.az,{position:"absolute",top:"0",right:"-2",children:(0,s.jsx)(H.AG,{...j})}),g&&(0,s.jsx)(r.az,{position:"absolute",top:"lg",right:"-2",children:(0,s.jsx)(H.X0,{...j,inField:!0})})]})}let V=e=>{let{type:t="fifteens",players:a,incidents:l,jersey:i,jerseyNumberColor:n,onPlayerClick:o}=e,c="fifteens"===t?x.vD:x.Xj,d="fifteens"===t?x.Cy:x.uU,u=(e,t)=>{o&&(e.preventDefault(),o(t))};return(0,s.jsx)(S,{type:t,children:a.map(e=>e.shirtNumber?(0,s.jsx)(r.so,{position:"relative",justify:"center",align:"center",style:c[e.shirtNumber],children:(0,s.jsx)(r.az,{position:"absolute",style:d[e.shirtNumber],children:(0,s.jsx)(A,{player:e,incidents:l,jersey:i,color:n,nameWidth:64,showSubstitutionNames:!1,showGoalScorer:!1,onClick:t=>u(t,e.player)})})},e.player.id):null)})},R=()=>{let{event:e,team:t,incidents:a,manager:l,jersey:i,startingPlayers:n,jerseyNumberColor:o,substitutePlayers:c}=(0,m.rR)(),{openEventPlayerStatistics:v}=(0,f.d)();return e.isEditor?(0,s.jsxs)(r.so,{direction:"column",gap:"md",children:[(0,s.jsx)(h.gT,{team:t,sport:(0,u.c5)(e),children:(0,s.jsxs)(r.so,{gap:"lg",align:"center",children:[(0,s.jsx)(d.p,{size:40,id:t.id,name:t.name}),(0,s.jsx)(r.EY,{font:"display.large",children:(0,s.jsx)(g.c,{entity:t})})]})}),(0,s.jsx)(r.az,{br:"sm",overflow:"hidden",children:(0,s.jsx)(V,{type:e.tournament.category.sportVariant===x.WM?"sevens":"fifteens",players:n,incidents:a,jersey:i,jerseyNumberColor:o,onPlayerClick:e.hasEventPlayerStatistics?t=>v({event:e,player:t},p._.Lineups):void 0})}),l&&(0,s.jsx)(y.A,{manager:l,incidents:null==a?void 0:a.filter(e=>e.manager),isBorderHidden:!0})]}):(0,s.jsxs)(r.so,{direction:"column",children:[(0,s.jsx)(h.gT,{team:t,sport:(0,u.c5)(e),children:(0,s.jsxs)(r.so,{gap:"lg",align:"center",px:"lg",py:"sm",hoverBg:"surface.s2",children:[(0,s.jsx)(d.p,{size:40,id:t.id,name:t.name}),(0,s.jsx)(r.EY,{font:"display.large",children:(0,s.jsx)(g.c,{entity:t})})]})}),(0,s.jsx)(j.A,{manager:l,hideTeamHeader:!0,team:t,event:e,players:[...n,...c],incidents:a})]})};var z=a(45527);let O=()=>{let{event:e,team:t,substitutePlayers:a,incidents:l}=(0,m.rR)();return(0,s.jsx)(j.A,{hideTeamHeader:!0,event:e,team:t,players:a,incidents:l})},T=()=>{let{event:e}=(0,n.useContext)(c.y$),{lineups:t}=(0,m.Ir)();return e.isEditor&&(0,I.kr)(t)?(0,s.jsxs)(r.az,{children:[(0,s.jsx)(r.EY,{font:"display.medium",align:"center",display:"block",pt:"xl",pb:"lg",children:(0,s.jsx)(k.A,{id:"substitutions"})}),(0,s.jsxs)(r.so,{children:[(0,s.jsx)(r.az,{flex:"1 1 0",children:(0,s.jsx)(z.i,{side:"left",children:(0,s.jsx)(O,{})})}),(0,s.jsx)(r.cG,{vertical:!0,mx:"md"}),(0,s.jsx)(r.az,{flex:"1 1 0",children:(0,s.jsx)(z.i,{side:"right",children:(0,s.jsx)(O,{})})})]})]}):null},E=()=>(0,s.jsxs)(r.az,{py:"sm",children:[(0,s.jsxs)(r.so,{children:[(0,s.jsx)(r.az,{flex:"1 1 0",children:(0,s.jsx)(z.i,{side:"left",children:(0,s.jsx)(R,{})})}),(0,s.jsx)(r.cG,{vertical:!0,mx:"md"}),(0,s.jsx)(r.az,{flex:"1 1 0",children:(0,s.jsx)(z.i,{side:"right",children:(0,s.jsx)(R,{})})})]}),(0,s.jsx)(T,{})]}),N=()=>{let{openEventPlayerStatistics:e}=(0,f.d)(),{event:t,team:a,manager:l,incidents:i,jersey:n,startingPlayers:o,substitutePlayers:c,jerseyNumberColor:d}=(0,m.rR)();return t.isEditor?(0,s.jsxs)(r.az,{children:[(0,s.jsx)(V,{type:t.tournament.category.sportVariant===x.WM?"sevens":"fifteens",players:o,incidents:i,jersey:n,jerseyNumberColor:d,onPlayerClick:t.hasEventPlayerStatistics?a=>e({event:t,player:a},p._.Lineups):void 0}),(0,s.jsxs)(r.so,{direction:"column",py:"md",children:[l&&(0,s.jsx)(r.az,{px:"sm",children:(0,s.jsx)(y.A,{manager:l,incidents:null==i?void 0:i.filter(e=>e.manager),isBorderHidden:!0})}),c.length>0&&(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(r.EY,{font:"display.medium",align:"center",pt:"xl",children:(0,s.jsx)(k.A,{id:"substitutions"})}),(0,s.jsx)(j.A,{hideTeamHeader:!0,team:a,event:t,players:c,incidents:i})]})]})]}):(0,s.jsxs)(s.Fragment,{children:[l&&(0,s.jsx)(r.az,{px:"sm",py:"sm",children:(0,s.jsx)(y.A,{manager:l,incidents:null==i?void 0:i.filter(e=>e.manager),isBorderHidden:!0})}),(0,s.jsx)(j.A,{hideTeamHeader:!0,team:a,event:t,players:[...o,...c],incidents:i})]})},G={height:"32px",display:"flex",justifyContent:"center",alignItems:"center",padding:0},Z=()=>{let{team:e}=(0,m.rR)();return(0,s.jsx)(d.p,{size:24,id:e.id,name:e.name})},F=()=>(0,s.jsx)(r.az,{p:"sm",children:(0,s.jsx)(o.Zp,{children:(0,s.jsxs)(r.tU,{variant:"secondary",initialValue:l.cxP.Left,fullWidthTabs:!0,children:[(0,s.jsxs)(r.so,{p:"sm",children:[(0,s.jsx)(r.tU.Tab,{tabKey:l.cxP.Left,style:G,children:(0,s.jsx)(z.i,{side:"left",children:(0,s.jsx)(Z,{})})}),(0,s.jsx)(r.az,{w:"lg"}),(0,s.jsx)(r.tU.Tab,{tabKey:l.cxP.Right,style:G,children:(0,s.jsx)(z.i,{side:"right",children:(0,s.jsx)(Z,{})})})]}),(0,s.jsx)(r.tU.Panel,{tabKey:l.cxP.Left,children:(0,s.jsx)(z.i,{side:"left",children:(0,s.jsx)(N,{})})}),(0,s.jsx)(r.tU.Panel,{tabKey:l.cxP.Right,children:(0,s.jsx)(z.i,{side:"right",children:(0,s.jsx)(N,{})})})]})})});function B(){let{event:e,location:t}=(0,n.useContext)(c.y$),{isDesktop:a}=(0,i.$c)(),d=a&&t===c.cb.EventPage,{lineups:u,error:f}=(0,m.Ir)({jerseyStyle:"fancy"});return f?null:d?(0,s.jsxs)(o.Zp,{variant:"mobile-only",children:[(0,s.jsx)(o.Zp.Header,{titleId:"players",values:{gender:e.gender||l.YT8.Male}}),u?(0,s.jsx)(E,{}):(0,s.jsx)(r.az,{h:900})]}):u?(0,s.jsx)(F,{}):(0,s.jsx)(r.az,{h:900})}},19558:(e,t,a)=>{a.d(t,{sP:()=>g,ZB:()=>c,lV:()=>u,kr:()=>f,kx:()=>h});var s=a(83471),l=a(4967);function i(e){let t={sum:0,count:0};return e.forEach(e=>{e.forEach(e=>{e.player.height&&(t.sum+=e.player.height,t.count+=1)})}),t.count>=7?Math.round(10*t.sum/t.count)/10:void 0}function r(e,t){let a={sum:0,count:0};return e.forEach(e=>{e.forEach(e=>{e.player.dateOfBirthTimestamp&&(a.sum+=(0,l.Dr)(e.player.dateOfBirthTimestamp,t),a.count+=1)})}),a.count>=7?Math.round(10*a.sum/a.count)/10:void 0}function n(e){let t={sum:0,count:0,currency:""};return e.forEach(e=>{e.forEach(e=>{var a;(null==(a=e.player.proposedMarketValueRaw)?void 0:a.value)&&(t.sum+=e.player.proposedMarketValueRaw.value,t.currency=e.player.proposedMarketValueRaw.currency,t.count+=1)})}),t.count>=7?{value:t.sum,currency:t.currency}:void 0}function o(e){let t={sum:0,count:0};return e.forEach(e=>{var a;(null==(a=e.statistics)?void 0:a.kilometersCovered)&&(t.sum+=e.statistics.kilometersCovered,t.count+=1)}),t.count>=7?Math.round(10*t.sum)/10:void 0}function c(e,t,a,l,c){let d={};return d[s.k.Age]={messageId:"football_lineups_starters_average_age",leftTeamValue:r(e,c),rightTeamValue:r(t,c)},d[s.k.MarketValue]={messageId:"football_lineups_starters_total_market_value",leftTeamValue:n(e),rightTeamValue:n(t)},d[s.k.Height]={messageId:"football_lineups_starters_average_height",leftTeamValue:i(e),rightTeamValue:i(t)},d[s.k.Distance]={messageId:"football_total_distance_run",leftTeamValue:o(a),rightTeamValue:o(l)},d}var d=a(25766);function u(e,t){if(t===d.V.Confirmed){var a;return(null==(a=e.statistics)?void 0:a.rating)||e.avgRating}if(t===d.V.Possible)return e.avgRating}function f(e){let t=null==e?void 0:e.left.players.filter(e=>e.substitute),a=null==e?void 0:e.right.players.filter(e=>e.substitute);return!!(t&&t.length>0||a&&a.length>0)}let p=(e,t)=>e.split(" ").map(e=>{let a=e;return e.length!==t||e.includes("-")||(a=e.slice(0,e.length/2)+"\xad"+e.slice(e.length/2)),a}).join(" ");function h(e,t){var a;return t||e.player.name.length>24||(null==(a=e.player.country)?void 0:a.alpha2)==="MG"}function g(e,t,a){let s=Math.max(...e.split(" ").map(e=>e.length));return s>=12&&(e=p(e,s)),t?a?"".concat(e," (c)"):"(c) ".concat(e):e}a(44259)},22088:(e,t,a)=>{a.r(t),a.d(t,{default:()=>ew,excludedSeasonIds:()=>ev});var s=a(6029),l=a(21377),i=a(28349),r=a(76356),n=a(99064),o=a(55729),c=a(45860),d=a(48683),u=a(62859),f=a(25811),p=a(8703),h=a(16206),g=a(30182),m=a(10292),x=a(947),y=a(54409),j=a(52839),v=a(13266),b=a(30971),S=a(73959),w=a(24159),C=a(41078),_=a(56008),k=a(65078);function M(e){let{statistic:t,topPlayer:a,sport:l,first:n,left:o}=e;return a?(0,s.jsxs)(r.so,{h:"5xl",w:"100%",align:"center",direction:o?"row":"row-reverse",gap:"lg",overflow:"hidden",_hover:{bg:"surface.s2"},cursor:"pointer",pl:o?"lg":void 0,pr:o?void 0:"lg",children:[(0,s.jsx)(m.t,{size:40,id:a.player.id,style:{display:"block"}}),(0,s.jsxs)(r.so,{overflow:"hidden",direction:"column",justify:"center",align:o?"flex-start":"flex-end",gap:"xs",children:[(0,s.jsx)(i.EY,{children:(0,s.jsx)(b.A,{sport:l,stat:a.statistics,selectedStat:t})}),(0,s.jsx)(i.EY,{w:"100%",textStyle:"assistive.default",color:"neutrals.nLv3",truncate:!0,display:"block",children:(0,s.jsx)(w.c,{entity:a.player,short:!0})})]})]}):n?(0,s.jsx)(C.A,{messageId:"yet.to.perform",isInverted:!o}):null}function P(e){let{statistic:t,homePlayer:a,awayPlayer:l,sport:i,first:n}=e;if(!a&&!l)return null;let c=(null==a?void 0:a.player)?v.uc:o.Fragment,d=(null==l?void 0:l.player)?v.uc:o.Fragment;return(0,s.jsxs)(r.so,{justify:a||n?"space-between":"flex-end",children:[(0,s.jsx)(c,{player:null==a?void 0:a.player,style:{width:"50%"},children:(0,s.jsx)(M,{statistic:t,topPlayer:a,sport:i,first:n,left:!0})}),(0,s.jsx)(d,{player:null==l?void 0:l.player,style:{width:"50%"},children:(0,s.jsx)(M,{statistic:t,topPlayer:l,sport:i,first:n})})]})}function I(e){let{statistic:t,homePlayers:a,awayPlayers:n,sport:c,type:d}=e,u=(0,x.A)(),[f,p]=(0,o.useState)(!1);return a.length||n.length?(0,s.jsxs)(r.az,{style:{userSelect:"none"},children:[(0,s.jsxs)(r.so,{bg:f?"surface.s2":void 0,pt:"md",pb:"xs",align:"center",justify:"center",onClick:()=>p(e=>!e),cursor:"pointer",children:[(0,s.jsx)(i.EY,{textStyle:"assistive.default",color:"neutrals.nLv3",mr:"xs",children:(0,S.y)(u,t,c,d===l.Vw_.playoffs)}),(0,s.jsx)(y.zQC,{icon:f?"chevron-up":"chevron-down",width:24,height:24,fill:"onSurface.nLv1"})]}),(0,s.jsx)(P,{statistic:t,homePlayer:a[0],awayPlayer:n[0],sport:c,first:!0}),f&&Array.from({length:4}).map((e,l)=>{let i=l+1;return(0,s.jsx)(P,{statistic:t,homePlayer:a[i],awayPlayer:n[i],sport:c},t+i)})]}):null}function H(e){let{homeTeamId:t,awayTeamId:a,sport:i,uniqueTournamentId:n,seasonId:u,type:f,gender:p}=e,{data:h,error:g}=(0,c.Ay)(l.cWY.topPlayers(t,n,u,f)),{data:m,error:x}=(0,c.Ay)(l.cWY.topPlayers(a,n,u,f)),y=(0,o.useMemo)(()=>(0,j.t)(i),[n]);return g&&x||!y?null:((null==h?void 0:h.topPlayers)||g)&&((null==m?void 0:m.topPlayers)||x)?(0,s.jsxs)(d.Zp,{children:[(0,s.jsx)(d.Zp.Header,{titleId:"top_players",values:{gender:null!=p?p:l.YT8.Male}}),(0,s.jsx)(r.az,{pb:{base:"sm",md:"md"},children:y.map(e=>(0,s.jsx)(I,{sport:i,statistic:e,homePlayers:((null==h?void 0:h.topPlayers[e])||[]).filter(e=>e.playedEnough),awayPlayers:((null==m?void 0:m.topPlayers[e])||[]).filter(e=>e.playedEnough),type:f},e))})]}):(0,s.jsx)(_.A,{})}function L(e){var t,a;let{event:l}=e,i=l.tournament.category.sport.slug,r=(0,k.g3)();return l.seasonStatisticsType&&(null==(t=l.tournament.uniqueTournament)?void 0:t.id)&&(null==(a=l.season)?void 0:a.id)&&-1!==j.u.indexOf(i)?(0,s.jsx)(H,{homeTeamId:r?l.awayTeam.id:l.homeTeam.id,awayTeamId:r?l.homeTeam.id:l.awayTeam.id,sport:i,uniqueTournamentId:l.tournament.uniqueTournament.id,seasonId:l.season.id,type:l.seasonStatisticsType,gender:l.awayTeam.gender}):null}var A=a(79853),V=a(22835),R=a(54863),z=a(90248),O=a(12174),T=a(26331),E=a(73088),N=a(58047),G=a(90715),Z=a(62827),F=a(83260),B=a(30479),D=a(35532),Y=a(79377),Q=a(19673),W=a(10234),U=a(52695);function K(e){let{event:t}=e,a=(0,T.A)(),n=(0,Q.y)(a);if(t.tournament.category.sport.slug!==l.QCR.Football||!t.hasEventPlayerStatistics)return null;let o=t.tournament.uniqueTournament?(0,s.jsx)(U.O,{uniqueTournament:t.tournament.uniqueTournament}):(0,s.jsx)(W.J,{tournament:t.tournament});return(0,s.jsx)(d.Zp,{children:(0,s.jsxs)(r.so,{p:"md",gap:"lg",children:[(0,s.jsx)(y.G_L,{fill:"onSurface.nLv3",width:"24",height:"24",minW:24}),(0,s.jsxs)(r.az,{children:[(0,s.jsx)(i.EY,{display:"block",textStyle:"body.small",color:"neutrals.nLv1",mb:"sm",children:(0,s.jsx)(z.A,{id:"rating_lineups_info",values:{name:o}})}),(0,s.jsxs)("a",{href:n,target:"_blank",rel:"noreferrer",children:[(0,s.jsx)(i.EY,{textStyle:"assistive.default",color:"primary.default",children:(0,s.jsx)(z.A,{id:"read_more"})}),(0,s.jsx)(y.CCT,{width:"16",height:"16",ml:"xxs",fill:"primary.default",style:{verticalAlign:"middle"}})]})]})]})})}var $=a(67717),X=a(12047),q=a(58991),J=a(5276),ee=a(8329),et=a(95543),ea=a(41735),es=a(28971);function el(e){let{value:t,iconColor:a,games:l}=e;return t&&l?(0,s.jsxs)(r.so,{align:"center",gap:"xs",children:[(0,s.jsx)(y.PhV,{fill:a}),(0,s.jsx)(i.EY,{textStyle:"body.small",children:(0,et.M)(t/l,2)})]}):null}let ei=function(e){let{referee:t}=e,a=(0,o.useContext)(ea.ThemeContext);return(0,s.jsx)(es.A,{referee:t,children:(0,s.jsxs)(r.so,{direction:"column",gap:"xs",align:"center",children:[(0,s.jsxs)(r.so,{gap:"xs",justify:"center",children:[(0,s.jsx)(ee.w,{alpha2:t.country.alpha2,size:16}),(0,s.jsx)(i.EY,{children:null==t?void 0:t.name})]}),(0,s.jsxs)(r.so,{gap:"sm",alignItems:"center",justify:"center",children:[(0,s.jsx)(i.EY,{textStyle:"body.small",color:"neutrals.nLv3",children:(0,s.jsx)(z.A,{id:"average_cards"})}),(0,s.jsxs)(r.so,{gap:"xs",alignContent:"center",children:[(0,s.jsx)(el,{value:t.redCards,games:t.games,iconColor:a.colors.error.default}),(0,s.jsx)(el,{value:t.yellowCards,games:t.games,iconColor:a.colors.scoreRating.s65})]})]})]})})};var er=a(23332);function en(e){var t,a,i,n,c,f,p,h,g,m,x,y;let{event:j,leftTeam:v,rightTeam:b}=(0,o.useContext)(u.y$),S=j.tournament.category.sport.slug===l.QCR.Football,w=e.lineups.left.players.some(e=>e.substitute)||e.lineups.right.players.some(e=>e.substitute),C=!!(e.lineups.left.players.find(e=>e.statistics&&e.statistics.rating)||e.lineups.right.players.find(e=>e.statistics&&e.statistics.rating)),_=(null==(t=e.managers)?void 0:t.leftManager)||(null==(a=e.managers)?void 0:a.rightManager);return(0,s.jsxs)(r.so,{direction:"column",gap:"sm",children:[S&&(null==j?void 0:j.referee)&&(0,s.jsxs)(d.Zp,{children:[(0,s.jsx)(d.Zp.Header,{titleId:"referee"}),(0,s.jsx)(r.az,{my:"xs",children:(0,s.jsx)(ei,{referee:j.referee})})]}),S&&_&&(0,s.jsxs)(d.Zp,{children:[(0,s.jsx)(d.Zp.Header,{titleId:"managers"}),(0,s.jsxs)(r.so,{gap:"sm",children:[(0,s.jsx)(r.so,{w:"100%",maxW:"1/2",grow:1,children:(null==(i=e.managers)?void 0:i.leftManager)&&(0,s.jsx)(q.A,{manager:null==(n=e.managers)?void 0:n.leftManager,isBorderHidden:!0,incidents:null==(c=e.incidents)?void 0:c.filter(e=>e.manager)})}),(0,s.jsx)(r.az,{w:"[1px]",background:"neutrals.nLv4",mt:"sm",mb:"md",mx:"sm"}),(0,s.jsx)(r.so,{w:"100%",maxW:"1/2",grow:1,children:(null==(f=e.managers)?void 0:f.rightManager)&&(0,s.jsx)(q.A,{manager:null==(p=e.managers)?void 0:p.rightManager,isBorderHidden:!0,incidents:null==(h=e.incidents)?void 0:h.filter(e=>e.manager)})})]})]}),!e.hasFormation&&S&&(0,s.jsxs)(d.Zp,{children:[(0,s.jsx)(d.Zp.Header,{titleId:"startingEleven.title"}),(0,s.jsxs)(r.so,{children:[(0,s.jsx)(er.A,{players:e.lineups.left.players.filter(e=>!e.substitute),team:v,manager:null==(g=e.managers)?void 0:g.leftManager,highlightStarters:!1,hasRating:C,event:j,...e},"left"),(0,s.jsx)(r.az,{w:"[1px]",background:"neutrals.nLv4",mt:"sm",mb:"md",mx:"sm"}),(0,s.jsx)(er.A,{players:e.lineups.right.players.filter(e=>!e.substitute),team:b,manager:null==(m=e.managers)?void 0:m.rightManager,hasTopBorder:!1,highlightStarters:!1,hasRating:C,event:j,...e},"right")]})]}),w&&(0,s.jsxs)(d.Zp,{children:[S&&(0,s.jsx)(d.Zp.Header,{titleId:"substitutions"}),(0,s.jsxs)(r.so,{children:[(0,s.jsx)(er.A,{players:S?e.lineups.left.players.filter(e=>e.substitute):e.lineups.left.players,team:v,manager:null==(x=e.managers)?void 0:x.leftManager,hasRating:C,event:j,...e},"left"),(0,s.jsx)(r.az,{w:"[1px]",background:"neutrals.nLv4",mt:"sm",mb:"md",mx:"sm"}),(0,s.jsx)(er.A,{players:S?e.lineups.right.players.filter(e=>e.substitute):e.lineups.right.players,team:b,manager:null==(y=e.managers)?void 0:y.rightManager,hasTopBorder:!1,hasRating:C,event:j,...e},"right")]})]}),(0,s.jsx)(J.PM,{left:e.lineups.left.missingPlayers,right:e.lineups.right.missingPlayers})]})}function eo(e){var t,a,i;let c=(0,X.Ay)({isSportMenuVisible:!0,isInMobileTabs:!0}),[f,p]=(0,o.useState)(l.cxP.Left),h=f===l.cxP.Left?e.lineups.left:e.lineups.right,{event:g,leftTeam:m,rightTeam:x}=(0,o.useContext)(u.y$),y=e.hasFormation?h.players.filter(e=>e.substitute):h.players,j=g.tournament.category.sport.slug===l.QCR.Football,v=f===l.cxP.Left?null==(t=e.managers)?void 0:t.leftManager:null==(a=e.managers)?void 0:a.rightManager,b=e.lineups.left.players.some(e=>e.substitute)||e.lineups.right.players.some(e=>e.substitute),S=e.lineups[f].players.filter(e=>!e.substitute),w=e.lineups[f].players.filter(e=>e.substitute),C=!!(e.lineups.left.players.find(e=>e.statistics&&e.statistics.rating)||e.lineups.right.players.find(e=>e.statistics&&e.statistics.rating)),_=j&&!!S.length;return(0,s.jsxs)(r.az,{px:"sm",children:[(0,s.jsx)(n.PI,{top:c,children:e=>(0,s.jsx)(r.az,{md:{bg:"surface.s1"},mt:"-sm",mx:"-sm",px:"sm",py:e?"0":"sm",children:(0,s.jsx)(r.az,{bg:"surface.s1",w:{base:e?"[100vw]":"100%",md:"100%"},mx:{base:e?"-sm":"0",md:"0"},py:{base:"sm",md:"0"},children:(0,s.jsx)($.n,{px:{mdDown:"sm"},gap:"sm",activeTeam:f,onTeamClick:p})})})}),(0,s.jsxs)(r.so,{direction:"column",gap:"sm",children:[v&&(0,s.jsx)(q.A,{manager:v,incidents:null==(i=e.incidents)?void 0:i.filter(e=>e.manager),isBorderHidden:!0}),!e.hasFormation&&(0,s.jsxs)(d.Zp,{children:[_&&(0,s.jsx)(d.Zp.Header,{titleId:"startingEleven.title",as:"h4"}),(0,s.jsx)(er.A,{hideTeamHeader:!0,players:j?S:y,team:f===l.cxP.Left?m:x,highlightStarters:!j,hasRating:C,event:g,...e},f)]}),b&&j&&!!w.length&&(0,s.jsxs)(d.Zp,{children:[(0,s.jsx)(d.Zp.Header,{titleId:"substitutions",as:"h4"}),(0,s.jsx)(er.A,{hideTeamHeader:!0,players:w,team:f===l.cxP.Left?m:x,hasRating:C,event:g,...e},f)]}),!!(e.lineups.left.missingPlayers||e.lineups.right.missingPlayers)&&(0,s.jsx)(J.Sb,{missingPlayers:h.missingPlayers})]})]})}function ec(e){let{isMobile:t,isDesktop:a}=(0,i.$c)(),{location:l}=(0,o.useContext)(u.y$),r=a&&l===u.cb.EventPage;return t||!r?(0,s.jsx)(eo,{...e}):(0,s.jsx)(en,{...e})}function ed(e){let t,l,r=(0,T.A)(),{event:c,location:d}=(0,o.useContext)(u.y$),{bestPlayer:f}=(0,O.Y)(c),{isDesktop:p}=(0,i.$c)(),h=p&&d===u.cb.EventPage;try{t=e.lineups.left.formation?(0,G.V)(e.lineups.left.formation,e.lineups.left.players.filter(e=>!e.substitute)):void 0,l=e.lineups.right.formation?(0,G.V)(e.lineups.right.formation,e.lineups.right.players.filter(e=>!e.substitute)):void 0}catch(e){console.error(e)}let g=!!(t&&l),m=window.location.host+E.z.getTranslatedRoute(r,"event",{id:c.customId,name:c.slug,sport:c.tournament.category.sport.slug}).route,x="#"+(0,B.HL)({id:c.id,tab:N.x.Lineups}),{isShareEnabled:j,componentRef:v,shareButton:b}=function(e,t){var l;let[i,r,c]=(0,F.A)("sofa.isComponentShareEnabled",!!(null==(l=window.navigator.clipboard)?void 0:l.write)),[d,u]=(0,o.useState)(!1),f=(0,o.useRef)(null),p={autoClose:5e3,closeButton:!1,className:"sofa-toast--info",position:"bottom-center"},h=(0,o.useCallback)(async()=>{if(f.current&&i)try{u(!0);let e=(await a.e(33933).then(a.t.bind(a,63067,23))).default,l=await e(f.current,{useCORS:!0,allowTaint:!0}),i=await new Promise(e=>l.toBlob(e)),r=new Blob([t||""],{type:"text/plain"});i&&(await window.navigator.clipboard.write([new ClipboardItem({"image/png":i,"text/plain":r})]),(0,Z.MZ)((0,s.jsxs)(n.so,{align:"center",children:[(0,s.jsx)(y.G_L,{fill:"onColor.primary",mr:"lg"}),(0,s.jsx)(n.EY,{block:!0,color:"onColor.primary",font:"display.small",children:(0,s.jsx)(z.A,{id:"basic.copiedToClipboard"})})]}),p))}catch(e){r(!1),(0,Z.MZ)((0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)(n.so,{align:"center",children:[(0,s.jsx)(y.cgL,{fill:"onColor.primary",mr:"md"}),(0,s.jsx)(n.EY,{block:!0,c:"onColor.primary",font:"display.small",children:(0,s.jsx)(z.A,{id:"error.anErrorOccurred"})})]}),e.message&&(0,s.jsx)(n.EY,{block:!0,c:"onColor.primary",font:"body.small",mt:"sm",children:e.message})]}),{...p,className:"sofa-toast--error"})}finally{u(!1)}},[f.current,d,i]),g=c&&i?(0,s.jsx)(z.A,{id:"basic.share",children:t=>(0,s.jsx)(n.$n,{"aria-label":String(t),size:"xs",tertiary:!0,disabled:d,style:d?{cursor:"wait"}:void 0,onClick:h,children:e||(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(z.A,{id:"basic.share"}),(0,s.jsx)(y.VJ,{fill:"surface.s1",ml:"xxs",width:16,height:16})]})})}):null;return{isGeneratingScreenshot:d,shareButton:g,componentRef:f,isShareEnabled:i}}((0,s.jsxs)(n.so,{justify:"center",align:"center",children:[(0,s.jsx)(z.A,{id:"share_match_lineups"}),(0,s.jsx)(y.VJ,{fill:"surface.s1",ml:"xxs",width:"16",height:"16"})]}),m+x);return(0,s.jsxs)(n.az,{children:[g&&(0,s.jsx)(n.az,{bg:["surface.s1",void 0],children:(0,s.jsx)(Y.Ko,{...e,leftFormation:t,rightFormation:l,ref:v,playerOfTheMatchId:null==f?void 0:f.player.id,isShareEnabled:j,shareButton:b})}),(0,s.jsxs)(n.so,{direction:"column",gap:"sm",py:"sm",children:[(0,s.jsx)(n.so,{direction:h?"column-reverse":"column",gap:"sm",children:(0,s.jsx)(ec,{...e,hasFormation:g,playerOfTheMatchId:null==f?void 0:f.player.id})}),(0,s.jsx)(n.az,{px:"sm",children:(0,s.jsx)(K,{event:c})}),(0,s.jsx)(D.K,{isHorizontalLayout:h})]})]})}var eu=a(76868);let ef=e=>{let{lineups:t,managers:a}=e,[n,c]=(0,o.useState)(l.cxP.Left),{event:f,leftTeam:p,rightTeam:h}=(0,o.useContext)(u.y$),g=(0,X.Ay)(),{isMobile:m}=(0,i.$c)(),[x,y,j]=n===l.cxP.Left?[p,a.leftManager,t.left]:[h,a.rightManager,t.right];return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(r.az,{bg:"surface.s1",w:"100%",position:{mdDown:"sticky"},style:{top:m?g:void 0},zIndex:"sticky",p:"sm",children:(0,s.jsx)($.n,{activeTeam:n,onTeamClick:e=>c(e)})}),(0,s.jsxs)(r.so,{p:"sm",gap:"sm",direction:"column",children:[(0,s.jsxs)(d.Zp,{children:[(0,s.jsx)(d.Zp.Header,{titleId:"probable_pitchers"}),(0,s.jsx)(er.A,{players:j.players,team:x,event:f,hideTeamHeader:!0}),0===j.players.length&&(0,s.jsx)(eu.p,{graphic:"no-data",descriptionMessageId:"probable_pitchers_empty"})]}),!!(t.left.missingPlayers||t.right.missingPlayers)&&(0,s.jsx)(J.Sb,{missingPlayers:j.missingPlayers})]})]})},ep=e=>{let{lineups:t}=e,{event:a,leftTeam:l,rightTeam:i}=(0,o.useContext)(u.y$);return(0,s.jsxs)(r.so,{direction:"column",children:[(0,s.jsx)(d.Zp.Header,{titleId:"probable_pitchers"}),(0,s.jsxs)(r.so,{children:[(0,s.jsx)(r.az,{flexGrow:1,flexShrink:1,flexBasis:"1/2",children:(0,s.jsx)(er.A,{players:t.left.players,team:l,event:a,hideTeamHeader:!0})}),(0,s.jsx)(r.az,{w:"[1px]",bg:"neutrals.nLv4",my:"xs"}),(0,s.jsx)(r.az,{flexGrow:1,flexShrink:1,flexBasis:"1/2",children:(0,s.jsx)(er.A,{players:t.right.players,team:i,event:a,hideTeamHeader:!0})})]}),(0,s.jsx)(d.Zp.Footer,{})]})};function eh(e){let{lineups:t,managers:a}=e,{isDesktop:l}=(0,i.$c)(),{location:r}=(0,o.useContext)(u.y$);return l&&r===u.cb.EventPage?(0,s.jsx)(ep,{lineups:t,managers:a}):(0,s.jsx)(ef,{lineups:t,managers:a})}function eg(){return(0,s.jsx)(n.az,{h:900})}function em(){let{event:e}=(0,o.useContext)(u.y$),{managers:t}=(0,A.K)(e),{lineups:a,confirmed:i,error:r}=(0,R.Ir)({jerseyStyle:"fancy"}),{data:n}=(0,c.Ay)(l.bnp.incidents(e.id),(0,p.rf)(e));return r?null:a?i?(0,s.jsx)(ed,{lineups:a,incidents:null==n?void 0:n.incidents,managers:t,confirmed:i,showPlayerStatistics:!1}):(0,s.jsx)(eh,{lineups:a,managers:t}):(0,s.jsx)(eg,{})}var ex=a(26468),ey=a(27778),ej=a(17485);let ev=[17564,17565,17566,17567,17568,17569,17570,17571,1151,2636,16,2531,7528],eb=[{tabKey:1,tabValue:"lineups"},{tabKey:2,tabValue:"player_stats"}],eS=e=>{let{showPlayerStatistics:t}=e,[a,m]=(0,o.useState)(1),{event:x}=(0,o.useContext)(u.y$),y=x.tournament.category.sport.slug,{managers:j}=(0,A.K)(x),{lineups:v,confirmed:b,error:S}=(0,R.Ir)({jerseyStyle:y===l.QCR.Football?"clean":"fancy"}),{data:w}=(0,c.Ay)(l.bnp.incidents(x.id),(0,p.rf)(x)),{hasPregameTopPlayers:C}=(0,V.M)(x),{isDesktop:_}=(0,i.$c)(),k=x.season&&ev.includes(x.season.id);if(C&&(S||v&&!b))return(0,s.jsxs)(r.so,{direction:"column",gap:{base:"sm",md:"md"},p:{mdDown:"sm"},children:[(0,s.jsx)(L,{event:x}),(0,s.jsx)(g.m,{home:null==v?void 0:v.left.missingPlayers,away:null==v?void 0:v.right.missingPlayers})]});if(!v)return(0,s.jsx)(ey.A,{});let M=y!==l.QCR.Football?(0,s.jsx)(d.Zp.Header,{titleId:"players",values:{gender:x.gender||l.YT8.Male},as:"h2"}):null;return _&&t?(0,s.jsxs)(r.az,{pt:"sm",children:[M,(0,s.jsx)(f.n,{activeTabKey:a,onChange:e=>m(e),tabs:eb,variant:"secondary",children:(0,s.jsxs)(r.az,{pt:"sm",children:[(0,s.jsx)(n.tU.Panel,{tabKey:eb[0].tabKey,children:(0,s.jsx)(ed,{lineups:v,incidents:null==w?void 0:w.incidents,managers:j,confirmed:b})}),!k&&(0,s.jsx)(n.tU.Panel,{tabKey:eb[1].tabKey,children:(0,s.jsx)(h.default,{lineups:v})})]})})]}):(0,s.jsxs)(s.Fragment,{children:[M,(0,s.jsx)(ed,{lineups:v,incidents:null==w?void 0:w.incidents,managers:j,confirmed:b,showPlayerStatistics:t})]})};function ew(e){let{hasLineups:t,showPlayerStatistics:a}=e,{event:i}=(0,o.useContext)(u.y$),r=i.tournament.category.sport.slug,n=r===l.QCR.ESports&&(0,p.f2)(i.tournament.category.id),{couldHavePregameTopPlayers:c}=(0,V.M)(i);return n||!1===t&&!c?null:r===l.QCR.Cricket?(0,s.jsx)(ex.A,{}):r===l.QCR.Rugby?(0,s.jsx)(ej.u,{}):r===l.QCR.Baseball?(0,s.jsx)(em,{}):(0,s.jsx)(eS,{showPlayerStatistics:a})}},22835:(e,t,a)=>{a.d(t,{M:()=>n});var s=a(21377),l=a(4967),i=a(52839),r=a(86679);let n=e=>{let t=t=>e.status.type===s.XUj.NotStarted&&e.season&&e.tournament.uniqueTournament&&e.seasonStatisticsType&&i.u.includes(e.tournament.category.sport.slug)?s.cWY.topPlayers(t,e.tournament.uniqueTournament.id,e.season.id,e.seasonStatisticsType):void 0,a=t(e.homeTeam.id),n=t(e.awayTeam.id),{hasHome:o,hasAway:c}=(0,r.A)({hasHome:{route:t(e.homeTeam.id),skipCheck:!a,deduplicationInterval:15*l.pY},hasAway:{route:t(e.awayTeam.id),skipCheck:!n,deduplicationInterval:15*l.pY}},[a,n]);return{hasPregameTopPlayers:!!o&&!!c,couldHavePregameTopPlayers:!1!==o&&!1!==c&&!!a&&!!n}}},23332:(e,t,a)=>{a.d(t,{A:()=>k});var s=a(6029),l=a(33144),i=a(21377),r=a(99064),n=a(55729),o=a(16620),c=a(48886),d=a(13266),u=a(94604),f=a(58991),p=a(91407),h=a(94400),g=a(48485),m=a(19991),x=a(90248),y=a(62859),j=a(54409),v=a(54917),b=a(84942),S=a(73488),w=a(19558);let C=e=>{let{summary:t,type:a}=e;return(0,s.jsxs)(r.so,{align:"center",mt:"xs",children:[(0,s.jsx)(S.FU,{isInjury:t.isInjury}),(0,s.jsx)(r.EY,{font:"assistive.default",color:"onSurface.nLv3",mx:"xxs",ml:"xs",children:t.time&&"".concat(t.time,"'")}),t.forPlayer&&(0,s.jsxs)(r.EY,{font:"assistive.default",color:"onSurface.nLv3",mx:"xxs",children:[(0,s.jsx)(x.A,{id:"out"===a?"substitution.in":"substitution_out"}),": \xa0",t.forPlayer]})]})};function _(e){var t,a,l,o,c,u;let{player:f,onClick:_,incidents:k,hasRating:M,isLast:P,isNotStarted:I,highlightStarter:H=!0,isPlayerOfTheMatch:L}=e,A=(null==f||null==(t=f.statistics)?void 0:t.rating)?Number(f.statistics.rating):void 0,{name:V,id:R}=f.player,z=(0,n.useMemo)(()=>k?(0,g.h)({id:f.player.id,incidents:k,useShortName:f.substitute}):{},[f,k]),O=(0,b.z)(f.player),T=(0,w.sP)(O,f.captain,!0),E=(0,n.useContext)(y.Ws),N=E===i.QCR.Cricket,G="rtl"===document.dir,Z=!f.substitute&&H;return!A&&I&&f.avgRating&&(A=f.avgRating),(0,s.jsx)(d.uc,{player:f.player,onClick:_,sportSlug:E,children:(0,s.jsxs)(r.so,{hoverBg:f.player.disabled?void 0:"surface.s2",cursor:f.player.disabled?"not-allowed":"pointer",children:[(0,s.jsx)(r.az,{py:"xxs",children:(0,s.jsx)(r.az,{w:4,h:"100%",bg:Z?"sofaSingles.value":"transparent"})}),(0,s.jsxs)(r.az,{position:"relative",pl:"md",pr:"lg",py:"sm",children:[(0,s.jsx)(p.t,{size:40,id:R,name:V}),L&&(0,s.jsx)(j.ue7,{position:"absolute",fill:(0,m.Et)(null==(a=f.statistics)?void 0:a.rating),bottom:8,left:16,w:16,h:16}),Z&&(0,s.jsx)(r.az,{position:"absolute",bottom:4,left:"50%",style:{transform:G?"translateX(50%)":"translateX(-50%)"},bg:"sofaSingles.value",br:6,children:(0,s.jsx)(r.EY,{px:"6px",font:"assistive.micro",color:"surface.s1",as:"div",children:(0,s.jsx)(x.A,{id:"starter"})})})]}),(0,s.jsxs)(r.so,{borderBottom:P?void 0:"onSurface.nLv4",align:"center",flex:"1 1 auto",mr:"lg",children:[(0,s.jsxs)(r.az,{flex:"1 1 auto",children:[(0,s.jsxs)(r.so,{title:T,align:"center",children:[(0,s.jsxs)(r.EY,{font:"body.medium",color:"onSurface.nLv1",mr:"xs",children:[f.jerseyNumber&&(0,s.jsx)(r.az,{as:"bdi",mr:"xs",children:f.jerseyNumber}),(0,s.jsx)(r.az,{as:"span",children:T})]}),(0,s.jsx)(S.AG,{...z}),(0,s.jsx)(S.X0,{...z})]}),(null==(l=z.substitutionIn)?void 0:l.time)&&(null==(o=z.substitutionIn)?void 0:o.forPlayer)&&(0,s.jsx)(C,{summary:z.substitutionIn,type:"in"}),(null==(c=z.substitutionOut)?void 0:c.time)&&(0,s.jsx)(C,{summary:z.substitutionOut,type:"out"}),N&&f.position&&(0,s.jsx)(r.EY,{font:"assistive.default",color:"onSurface.nLv3",mx:"xxs",ml:"xs",children:(0,s.jsx)(v.F,{id:f.position})})]}),M||f.avgRating?(0,s.jsx)(r.az,{children:A||(null==(u=z.substitutionIn)?void 0:u.time)?(0,s.jsx)(h.A,{rating:A,format:M?"box":"sideBox"}):null}):null]})]})})}function k(e){let{players:t,team:a,event:p,manager:h,incidents:g,showLastMatches:m,hasTopBorder:x,hideTeamHeader:y,highlightStarters:j=!0,hasRating:v,playerOfTheMatchId:b}=e,S=p.tournament.category.sport.slug,{openEventPlayerStatistics:w}=(0,o.d)(),C=(0,n.useCallback)(e=>t=>{!e.disabled&&(m||p.hasEventPlayerStatistics)&&(t.preventDefault(),w({event:p,player:e},c._.Lineups))},[p,t,w]),k=t.length>0,M=!!h,P=S===i.QCR.Football;return k||M?(0,s.jsxs)(r.az,{pt:"sm",pb:["sm","md"],flex:"1 1 50%",borderTop:x?"onSurface.nLv4":void 0,children:[!y&&!P&&(0,s.jsx)(d.gT,{team:a,sport:S,children:(0,s.jsxs)(r.so,{align:"center",hoverBg:"surface.s2",cursor:"pointer",children:[(0,s.jsx)(r.az,{px:"lg",py:"sm",children:(0,s.jsx)(l.p,{id:a.id,name:a.name,size:40})}),(0,s.jsx)(r.az,{children:(0,s.jsx)(r.EY,{font:"display.large",children:(0,s.jsx)(u.Rm,{team:a})})})]})}),M&&!P&&(0,s.jsx)(f.A,{manager:h,isBorderHidden:!k,incidents:null==g?void 0:g.filter(e=>e.manager)}),t.map((e,a)=>(0,s.jsx)(_,{player:e,incidents:g,hasRating:v,onClick:C(e.player),isNotStarted:p.status.type===i.XUj.NotStarted,isLast:a===t.length-1,highlightStarter:j,isPlayerOfTheMatch:b===e.player.id},e.player.id))]}):null}},25766:(e,t,a)=>{var s,l;a.d(t,{V:()=>s,k:()=>l}),function(e){e.Possible="possible",e.Confirmed="confirmed"}(s||(s={})),function(e){e.Performance="performance",e.Distance="distance",e.Club="club",e.Nationality="nationality",e.Age="age",e.MarketValue="marketValue",e.Height="height"}(l||(l={}))},26468:(e,t,a)=>{a.d(t,{A:()=>w});var s=a(6029),l=a(21377),i=a(28349),r=a(99064),n=a(55729),o=a(48683),c=a(62859),d=a(67717),u=a(79853),f=a(54863),p=a(5276),h=a(33243),g=a(23332);function m(){return(0,s.jsx)(r.az,{h:900})}var x=a(76356);function y(e){let{team:t,event:a,lineups:l}=e,i=l.players.filter(e=>!e.substitute);return 0===i.length?null:(0,s.jsx)(x.so,{direction:"column",py:"sm",gap:"sm",children:(0,s.jsx)(g.A,{players:i,team:t,event:a,hideTeamHeader:!0,highlightStarters:!1})})}function j(e){let{team:t,event:a,lineups:l}=e,i=l.players.filter(e=>e.substitute);return 0===i.length?null:(0,s.jsx)(x.so,{direction:"column",py:"sm",gap:"sm",children:(0,s.jsx)(g.A,{players:i,team:t,event:a,hideTeamHeader:!0})})}function v(e){let{manager:t,lineups:a}=e;return t||a.supportStaff&&a.supportStaff.length>0?(0,s.jsx)(x.so,{direction:"column",py:"sm",gap:"sm",children:(0,s.jsx)(h.A,{manager:t,supportStaff:a.supportStaff||[]})}):null}function b(e){var t;let{lineups:a}=e;return(null==a||null==(t=a.missingPlayers)?void 0:t.length)?(0,s.jsx)(x.so,{direction:"column",py:"sm",gap:"sm",children:(0,s.jsx)(p.cW,{missingPlayers:a.missingPlayers})}):null}function S(){let{event:e,leftTeam:t,rightTeam:a}=(0,n.useContext)(c.y$),{managers:l}=(0,u.K)(e),{lineups:i}=(0,f.Ir)({jerseyStyle:"fancy"});if(!i)return null;let d=i.left.players.filter(e=>!e.substitute),p=i.right.players.filter(e=>!e.substitute),h=d.length>0||p.length>0,g=i.left.players.filter(e=>e.substitute),m=i.right.players.filter(e=>e.substitute),S=g.length>0||m.length>0,w=!!(null==l?void 0:l.leftManager)||i.left.supportStaff&&i.left.supportStaff.length>0||!!(null==l?void 0:l.rightManager)||i.right.supportStaff&&i.right.supportStaff.length>0,C=i.left.missingPlayers&&i.left.missingPlayers.length>0||i.right.missingPlayers&&i.right.missingPlayers.length>0;return(0,s.jsxs)(o.Zp,{variant:"mobile-only",children:[h&&(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(o.Zp.Header,{titleId:"team_playing_eleven"}),(0,s.jsxs)(x.so,{children:[(0,s.jsx)(x.az,{flexGrow:1,flexShrink:1,flexBasis:"1/2",children:(0,s.jsx)(y,{team:t,event:e,lineups:i.left})}),(0,s.jsx)(r.cG,{vertical:!0,mx:"md"}),(0,s.jsx)(x.az,{flexGrow:1,flexShrink:1,flexBasis:"1/2",children:(0,s.jsx)(y,{team:a,event:e,lineups:i.right})})]})]}),S&&(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(o.Zp.Header,{titleId:"rest_of_squad"}),(0,s.jsxs)(x.so,{children:[(0,s.jsx)(x.az,{flexGrow:1,flexShrink:1,flexBasis:"1/2",children:(0,s.jsx)(j,{team:t,event:e,lineups:i.left})}),(0,s.jsx)(r.cG,{vertical:!0,mx:"md"}),(0,s.jsx)(x.az,{flexGrow:1,flexShrink:1,flexBasis:"1/2",children:(0,s.jsx)(j,{team:a,event:e,lineups:i.right})})]})]}),w&&(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(o.Zp.Header,{titleId:"support_staff"}),(0,s.jsxs)(x.so,{children:[(0,s.jsx)(x.az,{flexGrow:1,flexShrink:1,flexBasis:"1/2",children:(0,s.jsx)(v,{manager:null==l?void 0:l.leftManager,lineups:i.left})}),(0,s.jsx)(r.cG,{vertical:!0,mx:"md"}),(0,s.jsx)(x.az,{flexGrow:1,flexShrink:1,flexBasis:"1/2",children:(0,s.jsx)(v,{manager:null==l?void 0:l.rightManager,lineups:i.right})})]})]}),C&&(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(o.Zp.Header,{titleId:"injuries_and_suspensions"}),(0,s.jsxs)(x.so,{children:[(0,s.jsx)(x.az,{flexGrow:1,flexShrink:1,flexBasis:"1/2",children:(0,s.jsx)(b,{lineups:i.left})}),(0,s.jsx)(r.cG,{vertical:!0,mx:"md"}),(0,s.jsx)(x.az,{flexGrow:1,flexShrink:1,flexBasis:"1/2",children:(0,s.jsx)(b,{lineups:i.right})})]})]}),(0,s.jsx)(o.Zp.Footer,{})]})}function w(){var e;let{event:t,leftTeam:a,rightTeam:x,location:y}=(0,n.useContext)(c.y$),{managers:j}=(0,u.K)(t),{lineups:v,error:b}=(0,f.Ir)({jerseyStyle:"fancy"}),[w,C]=(0,n.useState)(l.cxP.Left),{isDesktop:_}=(0,i.$c)(),k=_&&y===c.cb.EventPage;if(b)return null;if(!v)return(0,s.jsx)(m,{});let[M,P,I]=w===l.cxP.Left?[a,null==j?void 0:j.leftManager,v.left]:[x,null==j?void 0:j.rightManager,v.right],H=I.players.filter(e=>!e.substitute),L=I.players.filter(e=>e.substitute),A=!!P||I.supportStaff&&(null==(e=I.supportStaff)?void 0:e.length)>0;return k?(0,s.jsx)(S,{}):(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(r.az,{bg:"surface.s1",w:"100%",position:"sticky",top:[50,0],zIndex:r.Py.Sticky,p:"sm",children:(0,s.jsx)(d.n,{activeTeam:w,onTeamClick:e=>C(e)})}),(0,s.jsxs)(r.so,{direction:"column",p:"sm",gap:"sm",children:[!!H.length&&(0,s.jsxs)(o.Zp,{children:[(0,s.jsx)(o.Zp.Header,{titleId:"team_playing_eleven"}),(0,s.jsx)(g.A,{players:H,team:M,event:t,hideTeamHeader:!0,highlightStarters:!1})]}),!!L.length&&(0,s.jsxs)(o.Zp,{children:[(0,s.jsx)(o.Zp.Header,{titleId:"rest_of_squad"}),(0,s.jsx)(g.A,{players:L,team:M,event:t,hideTeamHeader:!0})]}),A&&(0,s.jsxs)(o.Zp,{children:[(0,s.jsx)(o.Zp.Header,{titleId:"support_staff"}),(0,s.jsx)(h.A,{manager:P,supportStaff:I.supportStaff||[]})]}),!!(v.left.missingPlayers||v.right.missingPlayers)&&(0,s.jsx)(p.Sb,{missingPlayers:I.missingPlayers})]})]})}},27778:(e,t,a)=>{a.d(t,{A:()=>h});var s=a(6029),l=a(21377),i=a(28349),r=a(21501),n=a(99064),o=a(55729),c=a(48683),d=a(62859),u=a(69559),f=a(56008),p=a(22835);function h(){let e=(0,u.o)(),{event:t,location:a,initialHasLineups:h}=(0,o.useContext)(d.y$),{couldHavePregameTopPlayers:g}=(0,p.M)(t),{isDesktop:m}=(0,i.$c)(),x=m&&a===d.cb.EventPage,y=(0,r.hX)();return e!==l.QCR.Football&&g?(0,s.jsx)(f.A,{}):y&&!h?null:x?(0,s.jsx)(c.Zp,{children:(0,s.jsxs)(n.az,{display:["none","block"],children:[(0,s.jsx)(n.az,{h:46}),(0,s.jsx)(n.az,{h:48}),(0,s.jsxs)(n.so,{pb:"sm",px:"sm",gap:"sm",children:[(0,s.jsx)(n.az,{h:72,w:"50%",bg:"surface.s2",br:"lg"}),(0,s.jsx)(n.az,{h:72,w:"50%",bg:"surface.s2",br:"lg"})]}),(0,s.jsx)(n.az,{h:432,bg:"surface.s2",mx:"sm"}),(0,s.jsx)(n.az,{h:56,m:"sm",bg:"surface.s2",br:"lg"}),(0,s.jsx)(n.az,{h:240})]})}):(0,s.jsx)(n.az,{display:["block","none"],h:946})}},28971:(e,t,a)=>{a.d(t,{A:()=>r});var s=a(6029),l=a(55729),i=a(12153);let r=(0,l.forwardRef)((e,t)=>{let{referee:a,children:l,...r}=e;return(0,s.jsx)(i.A,{...r,routeKey:"referee",params:{id:a.id,slug:a.slug},ref:t,children:l})})},30079:()=>{Object.assign(Object.assign({},{"--primary-default":"#374df5","--primary-variant":"#2c3ec4","--primary-highlight":"rgba(55, 77, 245, 0.15)","--primary-hover":"hsl(233, 90.5%, 63.8%)","--primary-selected":"hsl(233, 90.5%, 53.8%)","--secondary-default":"#0bb32a","--secondary-variant":"#08861f","--secondary-highlight":"rgba(11, 179, 42, 0.15)","--secondary-hover":"hsl(131, 88.4%, 42.3%)","--secondary-selected":"hsl(131, 88.4%, 32.3%)","--tertiary-default":"rgba(202, 194, 133, 1)","--tertiary-variant":"rgba(157, 150, 94, 1)","--tertiary-highlight":"rgba(202, 194, 133, 0.15)","--neutral-default":"#a4a9b3","--neutral-variant":"#51565f","--neutral-highlight":"#e8ecf3","--on-color-primary":"#ffffff","--on-color-secondary":"rgba(255, 255, 255, 0.6)","--on-color-highlight-nLv1":"rgba(255, 255, 255, 0.2)","--on-color-highlight-nLv2":"rgba(255, 255, 255, 0.1)","--on-color-default":"#ffffff","--on-color-hover":"#e6e6e6","--on-color-selected":"#cccccc","--surface-s0":"#edf1f6","--surface-s1":"#ffffff","--surface-s2":"rgba(229, 233, 239, 0.5)","--surface-sp":"#ffffff","--surface-t":"#222226","--on-surface-nLv1":"#222226","--on-surface-nLv2":"rgba(34, 34, 38, 0.7)","--on-surface-nLv3":"rgba(34, 34, 38, 0.45)","--on-surface-nLv4":"rgba(34, 34, 38, 0.15)","--on-surface-nLv5":"rgba(34, 34, 38, 0.06)","--error-default":"#c7361f","--error-hover":"#dd3c23","--error-selected":"#b1301c","--alert-default":"#c7921f","--alert-hover":"#dda223","--alert-selected":"#b1821c","--success-default":"#15b168","--success-hover":"#18c876","--success-selected":"#129a5b","--effect-elevation1":"rgba(34, 34, 38, 0.16)","--effect-elevation2":"rgba(34, 34, 38, 0.16)","--effect-elevation3":"rgba(34, 34, 38, 0.16)","--overlay-darken1":"rgba(0, 0, 0, 0.25)","--overlay-darken2":"rgba(0, 0, 0, 0.5)","--overlay-darken3":"rgba(0, 0, 0, 0.65)","--sofa-singles-live":"#cb1818","--sofa-singles-value":"#e59c03","--sofa-singles-liveHighlight":"rgba(203, 24, 24, 0.1)","--sofa-singles-crowdsourcingLive":"#ff109f","--sofa-singles-crowdsourcingLiveHighlight":"rgba(255, 16, 159, 0.1)","--score-rating-s00":"#a4a9b3","--score-rating-s10":"#dc0c00","--score-rating-s60":"#ed7e07","--score-rating-s65":"#d9af00","--score-rating-s70":"#00c424","--score-rating-s80":"#00adc4","--score-rating-s90":"#374df5","--playoffs-promotion-to-x":"#26943b","--playoffs-promotion-to-x-playoff":"#49cb40","--playoffs-promotion-to-y":"#0056a3","--playoffs-promotion-to-y-playoff":"#0a8dff","--playoffs-promotion-to-z":"#016565","--playoffs-promotion-to-z-playoff":"#018e8d","--playoffs-promotion-to-z-playoff-secondary":"#01b7b6","--playoffs-promotion-to-relegation":"#c1262d","--playoffs-promotion-to-relegation-playoff":"#fea500","--player-position-forward":"#cb1818","--player-position-midfield":"#0bb32a","--player-position-defender":"#374df5","--player-position-goalkeeper":"#e59c03","--heatmap-hm1":"#cbedbf","--heatmap-hm2":"#d5eb86","--heatmap-hm3":"#fffc20","--heatmap-hm4":"#ff8111","--heatmap-hm5":"#ff1f1f","--stage-sports-dtm":"#011c47","--stage-sports-formula1":"#dc351e","--stage-sports-formulaE":"#04afe7","--stage-sports-indycar":"#c61e36","--stage-sports-moto2":"#84273a","--stage-sports-moto3":"#832639","--stage-sports-motoGP":"#3b3536","--stage-sports-nascar":"#007ac2","--stage-sports-superbike":"#bd1f23","--stage-sports-wrc":"#7bad26","--stage-sports-cycling":"#0162af","--stage-sports-generic":"#03af37","--graphics-terrain-football":"#cbedbf","--graphics-terrain-basketball":"#f8d496","--graphics-terrain-dark":"#19191c","--graphics-terrain-footballPale":"#f5fbf2","--graphics-terrain-basketballPale":"#fef6ea","--graphics-terrain-footballLineups":"#3c8063","--terrain-harcourtIndoor":"#30b8ab","--terrain-hardcourtOutdoor":"#5143cc","--terrain-grass":"#62bd40","--terrain-clay":"#eb9a44","--terrain-default":"#808080","--tournaments-wta":"#a42090","--social-twitter":"#00acee","--social-facebook":"#0865FE","--social-apple":"#000000","--social-huawei-symbol":"#CE0E2D","--social-huawei-text":"#262729","--cricket-neutral":"#a4a9b3","--cricket-singleRuns":"#6aac44","--cricket-firstCircleRuns":"#4d82a1","--cricket-secondCircleRuns":"#98458c","--cricket-wicketsDown":"#b8483c","--cricket-errorsAndMistakes":"#be9b3c","--cricket-cricketTerrain":"#cbedbf","--cricket-cricketTerrainSecondary":"#166534","--cricket-dsr":"#5a539c","--sentiment-positive":"#0bb32a","--sentiment-positive-highlight":"rgba(11, 179, 42, 0.25)","--sentiment-negative":"#cb1818","--sentiment-negative-highlight":"rgba(203, 24, 24, 0.25)","--header-default":"#2c3ec4","--mma-red-default":"#ce153a","--mma-red-highlight":"rgba(206, 21, 58, 0.15)","--mma-blue-default":"#1258df","--mma-blue-highlight":"rgba(18, 88, 223, 0.15)","--football-shotmap-home-idle":"#05660f","--football-shotmap-home-selectedHover":"#0bb32a","--football-shotmap-away-idle":"#064683","--football-shotmap-away-selectedHover":"#374df5","--tennis-tournaments-2000":"#3A66AC","--tennis-tournaments-1000":"#D1B04E","--tennis-tournaments-500":"#848E95","--tennis-tournaments-250":"#00AFF0","--hockey-shotmap-shot-background":"#ffffff80","--editor-pink":"#FF407F","--editor-pink-highlight":"rgba(255, 64, 127, 0.15)"}),{"--primary-default":"#7a84ff","--primary-variant":"#000000","--primary-highlight":"rgba(122, 132, 255, 0.25)","--primary-hover":"hsl(235, 100.0%, 78.9%)","--primary-selected":"hsl(235, 100.0%, 68.9%)","--secondary-default":"#46c252","--secondary-variant":"#03692a","--secondary-highlight":"rgba(70, 194, 82, 0.25)","--secondary-hover":"hsl(126, 50.4%, 56.8%)","--secondary-selected":"hsl(126, 50.4%, 46.8%)","--tertiary-default":"rgba(168, 161, 110, 1)","--tertiary-variant":"rgba(130, 124, 77, 1)","--tertiary-highlight":"rgba(168, 161 110, 0.15)","--neutral-default":"#a4a9b3","--neutral-variant":"#BCC2CF","--neutral-highlight":"rgba(54, 63, 83, 0.5)","--on-color-primary":"#FCFCFE","--on-color-highlight-nLv1":"rgba(255, 255, 255, 0.25)","--on-color-hover":"#ffffff","--on-color-selected":"#f2f2f2","--surface-s0":"#000000","--surface-s1":"#171C1F","--surface-s2":"rgba(0, 0, 0, 0.5)","--surface-sp":"#272C32","--surface-t":"#ECEDEF","--on-surface-nLv1":"#ECEDEF","--on-surface-nLv2":"rgba(255, 255, 255, 0.75)","--on-surface-nLv3":"rgba(255, 255, 255, 0.5)","--on-surface-nLv4":"rgba(255, 255, 255, 0.15)","--on-surface-nLv5":"rgba(255, 255, 255, 0.08)","--error-default":"#e35c47","--error-hover":"#e66f5d","--error-selected":"#e04831","--alert-default":"#dbaa3f","--alert-hover":"#dfb355","--alert-selected":"#d7a02a","--success-default":"#39b57a","--success-hover":"#44c486","--success-selected":"#33a26c","--effect-elevation1":"rgba(0, 0, 0, 0.24)","--effect-elevation2":"rgba(0, 0, 0, 0.40)","--effect-elevation3":"rgba(0, 0, 0, 0.48)","--overlay-darken1":"rgba(0, 0, 0, 0.25)","--overlay-darken2":"rgba(0, 0, 0, 0.5)","--sofa-singles-live":"#e73b3b","--sofa-singles-value":"#e8b345","--sofa-singles-liveHighlight":"rgba(231, 59, 59, 0.2)","--playoffs-promotion-to-x":"#3bb552","--playoffs-promotion-to-x-playoff":"#80ea79","--playoffs-promotion-to-y":"#288eea","--playoffs-promotion-to-y-playoff":"#8fcbff","--playoffs-promotion-to-z":"#2f9d9d","--playoffs-promotion-to-z-playoff":"#0ad8d8","--playoffs-promotion-to-z-playoff-secondary":"#befefe","--playoffs-promotion-to-relegation":"#ef5158","--playoffs-promotion-to-relegation-playoff":"#ffb936","--player-position-forward":"#e73b3b","--player-position-midfield":"#1eb85d","--player-position-defender":"#4b9def","--player-position-goalkeeper":"#e8b345","--heatmap-hm1":"#446c46","--heatmap-hm2":"#7d943c","--heatmap-hm3":"#ffd630","--heatmap-hm4":"#f0802b","--heatmap-hm5":"#f03530","--stage-sports-dtm":"#011c47","--stage-sports-formula1":"#dc351e","--stage-sports-formulaE":"#04afe7","--stage-sports-indycar":"#c61e36","--stage-sports-moto2":"#84273a","--stage-sports-moto3":"#832639","--stage-sports-motoGP":"#3b3536","--stage-sports-nascar":"#007ac2","--stage-sports-superbike":"#bd1f23","--stage-sports-wrc":"#7bad26","--stage-sports-cycling":"#0162af","--stage-sports-generic":"#03af37","--graphics-terrain-football":"#446c46","--graphics-terrain-basketball":"#a38a5e","--graphics-terrain-dark":"#0c0c0d","--graphics-terrain-footballPale":"#1d2c29","--graphics-terrain-basketballPale":"#31312e","--graphics-terrain-footballLineups":"#171c1f","--terrain-harcourtIndoor":"#6ee4d9","--terrain-hardcourtOutdoor":"#a59bf5","--terrain-grass":"#488331","--terrain-clay":"#a06b32","--tournaments-wta":"#db5cc7","--social-twitter":"#00acee","--social-facebook":"#ECEDEF","--social-apple":"#ECEDEF","--social-huawei-symbol":"#ECEDEF","--social-huawei-text":"#ECEDEF","--cricket-neutral":"#828ba1","--cricket-cricketTerrain":"#9ccf8a","--cricket-cricketTerrainSecondary":"#166534","--sentiment-positive":"#46c252","--sentiment-positive-highlight":"rgba(70, 194, 82, 0.25)","--sentiment-negative":"#e73b3b","--sentiment-negative-highlight":"rgba(231, 59, 59, 0.25)","--header-default":"#111517","--mma-red-default":"#de4e6b","--mma-red-highlight":"rgba(222, 78, 107, 0.25)","--mma-blue-default":"#467ce5","--mma-blue-highlight":"rgba(70, 124, 229, 0.25)","--football-shotmap-home-idle":"#0b5a13","--football-shotmap-home-selectedHover":"#46c252","--football-shotmap-away-idle":"#2c3596","--football-shotmap-away-selectedHover":"#7a84ff","--hockey-shotmap-shot-background":"#ffffff33","--editor-pink":"#FF7DA8"})},30182:(e,t,a)=>{a.d(t,{m:()=>g});var s=a(6029),l=a(10292),i=a(28349),r=a(76356),n=a(55729),o=a(48683),c=a(5276),d=a(13266),u=a(24159),f=a(41078);function p(e){let{missingPlayer:t,left:a,first:n}=e;return t?(0,s.jsxs)(r.so,{h:"5xl",w:"100%",align:"center",direction:a?"row":"row-reverse",gap:"lg",overflow:"hidden",pl:a?"lg":void 0,pr:a?void 0:"lg",cursor:"pointer",_hover:{bg:"surface.s2"},children:[(0,s.jsx)(l.t,{size:40,id:t.player.id,style:{display:"block"}}),(0,s.jsxs)(r.so,{overflow:"hidden",direction:"column",justify:"center",align:a?"flex-start":"flex-end",gap:"xs",children:[(0,s.jsx)(i.EY,{children:(0,s.jsx)(u.c,{entity:t.player,short:!0})}),(0,s.jsx)(c.Ck,{missingPlayer:t})]})]}):n?(0,s.jsx)(f.A,{messageId:"no_missing_players",isInverted:!a}):null}function h(e){let{home:t,away:a,first:l}=e,i=(null==t?void 0:t.player)?d.uc:n.Fragment,o=(null==a?void 0:a.player)?d.uc:n.Fragment;return(0,s.jsxs)(r.so,{justify:t||l?"space-between":"flex-end",children:[(0,s.jsx)(i,{player:null==t?void 0:t.player,style:{width:"50%"},children:(0,s.jsx)(p,{missingPlayer:t,first:!!l,left:!0})}),(0,s.jsx)(o,{player:null==a?void 0:a.player,style:{width:"50%"},children:(0,s.jsx)(p,{missingPlayer:a,first:!!l})})]})}function g(e){let{home:t,away:a}=e;if(void 0===t&&void 0===a)return null;let l=Math.max((null==t?void 0:t.length)||0,(null==a?void 0:a.length)||0);return(0,s.jsxs)(o.Zp,{children:[(0,s.jsx)(o.Zp.Header,{titleId:"injuries_and_suspensions"}),Array.from({length:l}).map((e,l)=>{var i,r,n,o;return(0,s.jsx)(h,{home:null==t?void 0:t[l],away:null==a?void 0:a[l],first:0===l},"".concat(null==t||null==(r=t[l])||null==(i=r.player)?void 0:i.id).concat(null==a||null==(o=a[l])||null==(n=o.player)?void 0:n.id))}),(0,s.jsx)(o.Zp.Footer,{})]})}},30971:(e,t,a)=>{a.d(t,{A:()=>d});var s=a(6029),l=a(87827),i=a(21377),r=a(4967),n=a(95543),o=a(52854);function c(e){let t="rtl"===document.dir;if(100===e||1===e)return"1.00";let a=e<1?e:(0,n.M)(e/100,3),s="".concat(a).substring(1).padEnd(4,"0");return t?s.replace(".","").padEnd(4,"."):s}let d=function(e){var t,a,d,u,f;let{stat:p,sport:h}=e,{selectedStat:g}=e;switch(g=g.split(o.I)[0],h){case i.QCR.Football:return"rating"===(t=g)?(0,s.jsx)(l.G,{format:"sideBox",rating:p[t]}):"accuratePasses"===t?"".concat((0,n.M)(p.accuratePasses/p.appearances,1)," (").concat((0,n.M)(p.accuratePassesPercentage),"%)"):"successfulDribbles"===t?"".concat((0,n.M)(p.successfulDribbles/p.appearances,1)," (").concat((0,n.M)(p.successfulDribblesPercentage),"%)"):"penaltyGoals"===t?p.penaltiesTaken?"".concat(p.penaltyGoals," / ").concat(p.penaltiesTaken):p.penaltyGoals:"freeKickGoal"===t?"".concat(p.freeKickGoal," / ").concat(p.shotFromSetPiece):"scoringFrequency"===t?(0,n.M)(p[t]):"totalShots"===t?"".concat((0,n.M)(p.totalShots/p.appearances,1)):"shotsOnTarget"===t?"".concat((0,n.M)(p.shotsOnTarget/p.appearances,1)):"keyPasses"===t?(0,n.M)(p.keyPasses/p.appearances,1):"accurateLongBalls"===t?(0,n.M)(p.accurateLongBalls/p.appearances,1):"tackles"===t?(0,n.M)(p.tackles/p.appearances,1):"interceptions"===t?(0,n.M)(p.interceptions/p.appearances,1):"possessionLost"===t?(0,n.M)(p.possessionLost/p.appearances,1):"saves"===t?(0,n.M)(p.saves/p.appearances,1):"mostConceded"===t||"leastConceded"===t?(0,n.M)(p.goalsConceded/p.appearances,1):"clearances"===t?(0,n.M)(p.clearances/p.appearances,1):"expectedGoals"===t?"".concat((0,n.M)(p.expectedGoals,2)," (").concat(p.goals,")"):"expectedAssists"===t?"".concat((0,n.M)(p.expectedAssists,2)," (").concat(p.assists||0,")"):"goalsPrevented"===t?"".concat((0,n.M)(p.goalsPrevented,2)):"kilometersCovered"===t?"".concat((0,n.M)(p.kilometersCovered/p.minutesPlayed*90,1)," km"):"numberOfSprints"===t?"".concat((0,n.M)(p.numberOfSprints/p.minutesPlayed*90,1)):"topSpeed"===t?"".concat((0,n.M)(p.topSpeed,1)," km/h"):p[t];case i.QCR.Basketball:return"rating"===(a=g)?(0,s.jsx)(l.G,{format:"sideBox",rating:p[a]}):"secondsPlayed"===a?(0,r.OV)(p.secondsPlayed/p.appearances):"fieldGoalsPercentage"===a?"".concat((0,n.M)(p.fieldGoalsPercentage),"% (").concat((0,n.M)(p.fieldGoalsMade/p.appearances,1),")"):"freeThrowsPercentage"===a?"".concat((0,n.M)(p.freeThrowsPercentage),"% (").concat((0,n.M)(p.freeThrowsMade/p.appearances,1),")"):"threePointsPercentage"===a?"".concat((0,n.M)(p.threePointsPercentage),"% (").concat((0,n.M)(p.threePointsMade/p.appearances,1),")"):"points"===a?(0,n.M)(p.points/p.appearances,1):"rebounds"===a?(0,n.M)(p.rebounds/p.appearances,1):"assists"===a?(0,n.M)(p.assists/p.appearances,1):"defensiveRebounds"===a?(0,n.M)(p.defensiveRebounds/p.appearances,1):"offensiveRebounds"===a?(0,n.M)(p.offensiveRebounds/p.appearances,1):"steals"===a?(0,n.M)(p.steals/p.appearances,1):"turnovers"===a?(0,n.M)(p.turnovers/p.appearances,1):"blocks"===a?(0,n.M)(p.blocks/p.appearances,1):"assistTurnoverRatio"===a?(0,n.M)(p.assistTurnoverRatio,2):"plusMinus"===a?(0,n.M)(p.plusMinus/p.appearances,1):"pir"===a?(0,n.M)(p.pir/p.appearances,1):p[a];case i.QCR.IceHockey:return"shotPercentage"===(d=g)?c(p.shotPercentage):"faceOffPercentage"===d?c(p.faceOffPercentage):"timeOnIce"===d?(0,r.OV)(p.timeOnIce/p.appearances):"penaltyMinutes"===d?(0,n.M)(p.penaltyMinutes/p.appearances,1):"savePercentage"===d?c(p.savePercentage):"goalsAgainstAverage"===d?(0,n.M)(p.goalsAgainstAverage,2):"shortHandedSavePercentage"===d?c(p.shortHandedSavePercentage):"powerPlaySavePercentage"===d?c(p.powerPlaySavePercentage):"evenSavePercentage"===d?c(p.evenSavePercentage):p[d];case i.QCR.AmericanFootball:return"passingCompletionPercentage"===(u=g)?"".concat((0,n.M)(p.passingCompletionPercentage),"% (").concat((0,n.M)(p.passingCompletions/p.appearances,1),")"):"kickingFgMade"===u?"".concat(p.kickingFgMade," / ").concat(p.kickingFgAttempts):"defensiveTotalTackles"===u?(0,n.M)(p.defensiveTotalTackles/p.appearances,1):"defensiveSacks"===u?(0,n.M)(p.defensiveSacks,1):"passingTouchdownInterceptionRatio"===u?(0,n.M)(p.passingTouchdownInterceptionRatio,2):"rushingYardsPerAttempt"===u?(0,n.M)(p.rushingYardsPerAttempt,1):"receivingYardsPerReception"===u?(0,n.M)(p.receivingYardsPerReception,1):p[u];case i.QCR.Handball:return"goalkeeperEfficiencyPercentage"===(f=g)?"".concat((0,n.M)(p.goalkeeperEfficiencyPercentage,2),"%"):"goals7m"===f?"".concat(p.goals7m," / ").concat(p.shots7m," (").concat((0,n.M)(p.goals7m/p.shots7m*100),"%)"):"gk7mSaves"===f?"".concat(p.gk7mSaves," / ").concat(p.gk7mShots," (").concat((0,n.M)(p.gk7mSaves/p.gk7mShots*100),"%)"):p[f];default:return p[g]}}},32190:(e,t,a)=>{a.d(t,{Et:()=>r.Et,GW:()=>l.A,pY:()=>i.p,tg:()=>s.t});var s=a(91407),l=a(94400),i=a(91603),r=a(19991)},35532:(e,t,a)=>{a.d(t,{K:()=>Z});var s=a(6029),l=a(21377),i=a(4967),r=a(76356),n=a(55729),o=a(45860),c=a(48683),d=a(62859),u=a(7263),f=a(8703),p=a(67717),h=a(28446),g=a(90112),m=a(9127),x=a(65078),y=a(28349),j=a(99064),v=a(90248),b=a(44259);function S(e){let{selectedPlayer:t,setSelectedPlayer:a,showSubstitutes:l,substitutionIds:i,setShowSubstitutes:r,selectedSide:o,players:c}=e,{event:u}=(0,n.useContext)(d.y$),f=Array.from(i).reduce((e,t)=>{let a=c.find(e=>e.player.id===t);return a?[...e,a]:e},[]),p=(null==t?void 0:t.id)&&i.has(t.id);return(0,n.useEffect)(()=>{p&&!l&&r(!0)},[t]),(0,s.jsxs)(j.so,{br:"24",h:"92",mb:"xs",align:"flex-start",direction:"column",children:[(0,s.jsx)(j.Sc,{px:"lg",name:"showSubstitutes-".concat(u.id,"-").concat(o),onChange:e=>{let t=e.currentTarget.checked;r(t),(!t&&p||t&&!p)&&a(void 0)},checked:l,style:{overflow:"hidden"},boxColor:"onColor.primary",children:(0,s.jsx)(j.EY,{color:"onColor.primary",children:(0,s.jsx)(v.A,{id:"show_substitutions"})})}),(0,s.jsx)(y.tR,{buttonStyle:"clipped",colorPalette:"primary",children:(0,s.jsx)(j.so,{px:"lg",w:"fit-content",align:"center",h:44,children:(0,s.jsx)(g.N,{initial:!1,children:f.map(e=>{let{player:l,jersey:i,fillColor:r,numberColor:n,hasLowPoints:o}=e;return(0,s.jsx)(m.m.div,{initial:{opacity:0},animate:{opacity:(0,b.cl)(o,!!t,(null==t?void 0:t.id)===l.id)},exit:{opacity:0},transition:{duration:.2},onClick:()=>a(l),style:{cursor:"pointer"},children:(0,s.jsx)(j.so,{align:"center",p:"xs",w:"32",h:"32",br:"50%",ml:"xs",textAlign:"center",justify:"center",bg:r,style:{pointerEvents:"none",userSelect:"none"},children:(0,s.jsx)(j.EY,{font:"display.medium",color:n,children:i})})},l.id)})},o)})})]})}var w=a(10292),C=a(54409),_=a(24159);function k(e){let{selectedPlayer:t,players:a,setSelectedPlayer:l}=e;return t?(0,s.jsx)(j.so,{position:"absolute",justify:"center",w:"100%",bottom:0,children:(0,s.jsxs)(j.so,{br:"xl",h:"48",mb:"xs",mx:"sm",bg:"surface.sp",py:"sm",pl:"xs",pr:"md",w:"100%",maxW:344,align:"center",justify:"space-between",onClick:()=>l(void 0),cursor:"pointer",children:[(0,s.jsxs)(j.so,{align:"center",children:[(0,s.jsx)(w.t,{size:40,id:t.id}),(0,s.jsxs)(j.az,{pl:"md",children:[(0,s.jsx)(j.EY,{block:!0,font:"display.medium",color:"onSurface.nLv1",children:(0,s.jsx)(_.c,{entity:t})}),a.find(e=>{let{player:a,hasLowPoints:s}=e;return a.id===t.id&&s})&&(0,s.jsx)(j.EY,{font:"assistive.default",color:"onSurface.nLv3",mt:"xxs",children:(0,s.jsx)(v.A,{id:"low_player_involvement"})})]})]}),(0,s.jsx)(j.$n,{w:"36",h:"36",p:"0",variant:"unshielded",children:(0,s.jsx)(C.zQC,{icon:"close",fill:"onSurface.nLv1"})})]})}):null}var M=a(41735),P=a(5961),I=a(94497);let H=(0,M.default)(j.az).withConfig({componentId:"sc-404fb467-0"})(["canvas{transform:",";animation:"," 200ms ease-in-out 1;}"],e=>"rotate(-90deg) translate(-70px, ".concat(e.xTranslate,") scale(1, -1)"),I.qG),L={WIDTH:280,HEIGHT:420},A=e=>{let{heatmap:t,heatmapTransform:a,teamId:l,theme:i,isLineupsBackground:r}=e,o="".concat(l,"-avg-positions"),{textDirection:c}=(0,y.$c)();return((0,n.useEffect)(()=>{t&&(0,P.IJ)(t,{containerId:o,width:L.HEIGHT-16,height:L.WIDTH-16},i,r)},[t,o]),t)?(0,s.jsx)(H,{id:o,position:"absolute",w:L.WIDTH-16,h:L.HEIGHT-16,top:"sm",left:"sm",xTranslate:"rtl"===c?"70px":"-70px",style:{transform:a,overflow:"hidden"}}):null},V=e=>{let{teamId:t,heatmap:a,heatmapTransform:l,children:i,isLineupsBackground:r,...n}=e,o=(0,M.useTheme)(),c=o.colors;return(0,s.jsxs)(j.az,{position:"relative",m:"auto",w:L.WIDTH,h:L.HEIGHT,children:[(0,s.jsx)("svg",{style:{position:"absolute",top:0,left:0},width:L.WIDTH,height:L.HEIGHT,viewBox:"0 0 ".concat(L.WIDTH," ").concat(L.HEIGHT),xmlns:"http://www.w3.org/2000/svg",children:(0,s.jsx)("g",{fill:"none",fillRule:"evenodd",children:(0,s.jsx)("rect",{fill:c.graphicsTerrain.footballLineups,width:L.WIDTH,height:L.HEIGHT,rx:"4"})})}),(0,s.jsx)(A,{heatmap:a,heatmapTransform:l,theme:o,teamId:t,isLineupsBackground:r}),(0,s.jsx)("svg",{style:{position:"absolute",top:0,left:0},width:L.WIDTH,height:L.HEIGHT,viewBox:"0 0 ".concat(L.WIDTH," ").concat(L.HEIGHT),xmlns:"http://www.w3.org/2000/svg",...n,children:(0,s.jsx)("g",{fill:"none",fillRule:"evenodd",children:(0,s.jsxs)("g",{children:[(0,s.jsx)("path",{stroke:c.onColor.primary,strokeWidth:"2",strokeLinejoin:"round",d:"M9.333 9.333h261.333V210H9.333z"}),(0,s.jsx)("path",{d:"M168 210c0-15.464-12.536-28-28-28s-28 12.536-28 28M72.333 9.333h135.333V70H72.333zM116.667 70c.365.655.752 1.295 1.164 1.915C122.693 79.216 130.809 84 140 84c9.195 0 17.315-4.787 22.175-12.095A28.66 28.66 0 0 0 163.333 70",stroke:c.onColor.primary,strokeWidth:"2",strokeLinejoin:"round"}),(0,s.jsx)("path",{stroke:c.onColor.primary,strokeWidth:"2",strokeLinejoin:"round",d:"M107.333 9.333h65.333V28h-65.333z"}),(0,s.jsx)("circle",{cx:"2.333",cy:"2.333",r:"2.333",transform:"translate(137.667 51.333)",fill:c.onColor.primary}),(0,s.jsx)("path",{d:"M9.333 18.667a9.333 9.333 0 0 0 9.334-9.334M261.333 9.333a9.333 9.333 0 0 0 9.334 9.334",stroke:c.onColor.primary,strokeWidth:"2",strokeLinejoin:"round"}),(0,s.jsxs)("g",{children:[(0,s.jsx)("path",{stroke:c.onColor.primary,strokeWidth:"2",strokeLinejoin:"round",d:"M9.333 410.667h261.333V210H9.333z"}),(0,s.jsx)("path",{d:"M168 210c0 15.464-12.536 28-28 28s-28-12.536-28-28M72.333 410.667h135.333V350H72.333zM116.667 350c.365-.655.752-1.295 1.164-1.915C122.693 340.784 130.809 336 140 336c9.195 0 17.315 4.787 22.175 12.095.41.618.795 1.254 1.158 1.905",stroke:c.onColor.primary,strokeWidth:"2",strokeLinejoin:"round"}),(0,s.jsx)("path",{stroke:c.onColor.primary,strokeWidth:"2",strokeLinejoin:"round",d:"M107.333 410.667h65.333V392h-65.333z"}),(0,s.jsx)("circle",{cx:"2.333",cy:"2.333",r:"2.333",transform:"matrix(1 0 0 -1 137.667 368.667)",fill:c.onColor.primary}),(0,s.jsx)("path",{d:"M9.333 401.333a9.333 9.333 0 0 1 9.334 9.334M261.333 410.667a9.333 9.333 0 0 1 9.334-9.334",stroke:c.onColor.primary,strokeWidth:"2",strokeLinejoin:"round"})]}),(0,s.jsx)("g",{children:i})]})})})]})};var R=a(54863);let z={left:{group:void 0,text:(0,b.$8)()?"translate(0 4)":void 0,heatmap:"scale(1, -1)"},right:{group:"matrix(-1 0 0 -1 0 0), translate(-".concat(L.WIDTH," -").concat(L.HEIGHT,")"),text:"scale(-1 -1) ".concat((0,b.$8)()?"translate(0 4)":""),heatmap:"scale(-1, 1)"}},O=(0,h.A)().domain([0,100]).range([8,L.WIDTH-8]),T=(0,h.A)().domain([0,100]).range([8,L.HEIGHT-8]);function E(e){let{selectedSide:t}=e,{event:a}=(0,n.useContext)(d.y$),[i,c]=(0,n.useState)(!1),[u,p]=(0,n.useState)(void 0),[{group:h,text:y,heatmap:j},v]=(0,n.useState)(z[t]),{data:w,error:C}=(0,o.Ay)(l.bnp.averagePositions(a.id),(0,f.rf)(a)),{data:_}=(0,o.Ay)(u?l.bnp.playerHeatmap(a.id,u.id):null),[M,P]=(0,x.jr)(w,"home","away"),{lineups:I,error:H}=(0,R.Ir)();(0,n.useLayoutEffect)(()=>{v(z[t]),p(void 0),c(!1)},[t]);let L="left"===t?M:P;if(!w)return(0,s.jsx)(r.az,{h:"[420px]"});if(C||H)return null;let A={in:new Set,out:new Set},E=w.substitutions.sort((e,t)=>{var a,s;return(null!=(a=e.time)?a:0)-(null!=(s=t.time)?s:0)});for(let e=0;e({x:O(e.averageY),y:T(e.averageX),jersey:N[t].get(e.player.id),player:e.player,hasLowPoints:(0,b.XU)(e.pointsCount),...(0,b.jM)(e.player,null==I?void 0:I[t])}))),Z=e=>()=>{(null==u?void 0:u.id)===e.id?p(void 0):p(e)};return(0,s.jsxs)(r.az,{position:{base:"initial",md:"relative"},bg:"graphics.terrain.footballLineups",m:"auto",textAlign:"center",pt:"sm",pb:"4xl",w:"100%",children:[(0,s.jsx)(S,{selectedPlayer:u,setSelectedPlayer:p,substitutionIds:A.in,showSubstitutes:i,setShowSubstitutes:c,selectedSide:t,players:G}),(0,s.jsx)(r.az,{position:"relative",children:(0,s.jsx)(V,{teamId:t===l.cxP.Left?a.homeTeam.id:a.awayTeam.id,heatmap:null==_?void 0:_.heatmap,heatmapTransform:j,isLineupsBackground:!0,children:(0,s.jsx)("g",{transform:h,textAnchor:"middle",fontSize:"16px",fontWeight:"700",fontFamily:"'Sofascore Sans', sans-serif",children:(0,s.jsxs)(g.N,{children:[(0,s.jsxs)(m.m.g,{fill:"white",initial:{opacity:0},animate:{opacity:.5},transform:"translate(136 136)",children:[(0,s.jsx)("rect",{width:"8",height:"116"}),(0,s.jsx)("path",{d:"M16 8 4 16V0zM0 6h4v4H0z",transform:"translate(0 116), rotate(90), scale(2)",style:{transformOrigin:"4px 8px"}})]},t),G.map(e=>{let{x:t,y:a,player:l,fillColor:r,hasLowPoints:n}=e;return(i?A.out.has(l.id):A.in.has(l.id))?null:(0,s.jsx)(m.m.circle,{initial:{opacity:0,r:0},animate:{opacity:(0,b.cl)(n,!!u,l.id===(null==u?void 0:u.id)),r:16},transition:i&&!u?{delay:.2}:void 0,fill:r,cx:t,cy:a,style:{cursor:"pointer"},onClick:Z(l)},l.id+"circle")}),G.map(e=>{let{x:t,y:a,player:l,jersey:r,numberColor:n,hasLowPoints:o}=e;return(i?A.out.has(l.id):A.in.has(l.id))?null:(0,s.jsx)(m.m.text,{initial:{opacity:0},animate:{opacity:(0,b.cl)(o,!!u,l.id===(null==u?void 0:u.id))},transition:i&&!u?{delay:.2}:void 0,x:t,y:a+1,style:{transformOrigin:"".concat(t,"px ").concat(a,"px"),zIndex:1,cursor:"pointer"},transform:y,fill:n,alignmentBaseline:"middle",onClick:Z(l),children:r},l.id+"txt")})]})})})}),(0,s.jsx)(k,{selectedPlayer:u,setSelectedPlayer:p,players:G})]})}let N=(0,r.I4)("div",{base:{position:"absolute",top:"[43px]",borderStart:"{sizes.md} solid transparent",borderEnd:"{sizes.md} solid transparent",borderBottom:"{sizes.sm} solid",borderBottomColor:"graphics.terrain.footballLineups"}});function G(){let{event:e,location:t}=(0,n.useContext)(d.y$),[a,i]=(0,n.useState)(l.cxP.Left),c=t===d.cb.Widget,{data:u,error:h}=(0,o.Ay)(l.bnp.averagePositions(e.id),(0,f.rf)(e));if(!u)return(0,s.jsx)(r.az,{h:"[420px]"});if(h)return null;let g={in:new Set,out:new Set},m=u.substitutions.sort((e,t)=>{var a,s;return(null!=(a=e.time)?a:0)-(null!=(s=t.time)?s:0)});for(let e=0;e(0,i.Ui)(Date.now(),a.startTimestamp,"minutes"),p=!1;return(c?p=!0:a.status.type===l.XUj.InProgress&&(p=f&&1===a.detailId),p)?f?null:t?(0,s.jsx)(F,{}):(0,s.jsx)(B,{}):void 0===c&&1===a.detailId&&a.status.type!==l.XUj.NotStarted?(0,s.jsx)(r.az,{h:"5xl"}):null}function F(){return(0,s.jsxs)(c.Zp,{variant:"mobile-only",children:[(0,s.jsx)(c.Zp.Header,{titleId:"players_average_positions"}),(0,s.jsxs)(r.so,{gap:"sm",px:"lg",py:"sm",children:[(0,s.jsx)(r.az,{flexGrow:1,flexShrink:1,flexBasis:"6xl",overflow:"hidden",children:(0,s.jsx)(E,{selectedSide:l.cxP.Left})}),(0,s.jsx)(r.az,{flexGrow:1,flexShrink:1,flexBasis:"6xl",overflow:"hidden",children:(0,s.jsx)(E,{selectedSide:l.cxP.Right})})]})]})}function B(){return(0,s.jsx)(r.az,{px:"sm",children:(0,s.jsxs)(c.Zp,{children:[(0,s.jsx)(c.Zp.Header,{titleId:"players_average_positions",as:"h4"}),(0,s.jsx)(G,{})]})})}},39169:(e,t,a)=>{a.r(t),a.d(t,{default:()=>h});var s,l,i,r,n=a(90142),o=a(6029),c=a(39895);a(30079);var d=a(62283);a(60449),a(82823);var u=a(55729);a(97481);var f=a(41735);let p={xs:480,sm:768,md:992,lg:1344};function h(e){var{fill:t="primary.default"}=e,a=(0,n.T)(e,["fill"]);return(0,o.jsx)(c.A,Object.assign({w:12,h:12,viewBox:"0 0 12 12",fill:t},a,{children:(0,o.jsxs)("g",{children:[(0,o.jsx)("rect",{width:"12",height:"12",rx:"6"}),(0,o.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M6 2.25L7.15875 4.5975L9.75 4.97625L7.875 6.8025L8.3175 9.3825L6 8.16375L3.6825 9.3825L4.125 6.8025L2.25 4.97625L4.84125 4.5975L6 2.25Z",fill:d.A.onColor.primary})]})}))}(0,u.createContext)({isMobile:!0,isDesktop:!1,isDesktopMedium:!1,isDesktopLarge:!1,mediaBreakpoint:"sm"}),function(e){e[e.Regular=400]="Regular",e[e.Medium=500]="Medium",e[e.Bold=700]="Bold"}(s||(s={})),function(e){e.Micro="10px",e.Small="12px",e.Regular="14px",e.Medium="16px",e.Large="18px",e.HeaderTitle="20px",e.ExtraLarge="28px",e.ExtraExtraLarge="32px"}(l||(l={})),function(e){e.SofascoreSans='"Sofascore Sans", -apple-system, system-ui, BlinkMacSystemFont, Dubai, "Segoe UI", Tahoma, "Noto Sans Arabic UI","Dejavu Sans", Arial, sans-serif',e.SofascoreSansCondensed='"Sofascore Sans Condensed", -apple-system, system-ui, BlinkMacSystemFont, Dubai, "Segoe UI", Tahoma, "Noto Sans Arabic UI","Dejavu Sans", Arial, sans-serif'}(i||(i={})),l.Micro,l.Small,l.Regular,l.Medium,l.Large,l.HeaderTitle,l.ExtraLarge,l.ExtraExtraLarge,s.Regular,s.Medium,s.Bold,i.SofascoreSans,i.SofascoreSansCondensed,s.Medium,l.HeaderTitle,i.SofascoreSans,s.Medium,l.HeaderTitle,i.SofascoreSans,s.Medium,l.Regular,i.SofascoreSans,s.Bold,l.Small,i.SofascoreSans,s.Bold,l.Regular,i.SofascoreSansCondensed,s.Medium,l.Regular,i.SofascoreSans,s.Medium,l.Small,i.SofascoreSans,s.Bold,l.ExtraLarge,i.SofascoreSans,s.Bold,l.Large,i.SofascoreSans,s.Bold,l.Medium,i.SofascoreSans,s.Bold,l.Regular,i.SofascoreSans,s.Bold,l.Small,i.SofascoreSans,s.Regular,l.Medium,i.SofascoreSans,s.Regular,l.Regular,i.SofascoreSans,s.Regular,l.Regular,i.SofascoreSans,s.Regular,l.Small,i.SofascoreSans,s.Regular,l.Small,i.SofascoreSans,s.Medium,l.Small,i.SofascoreSans,s.Medium,l.Micro,i.SofascoreSans,s.Bold,l.Large,i.SofascoreSansCondensed,s.Regular,l.Regular,i.SofascoreSansCondensed,s.Bold,l.Small,i.SofascoreSansCondensed,s.Regular,l.Micro,i.SofascoreSans,s.Bold,l.Regular,i.SofascoreSansCondensed,(0,f.createGlobalStyle)` /** Sofascore Sans */ @font-face { font-family: 'Sofascore Sans'; src: url('/static/fonts/SofascoreSans/woff2/SofascoreSans-Regular.woff2') format('woff2'), url('/static/fonts/SofascoreSans/woff/SofascoreSans-Regular.woff') format('woff'), url('/static/fonts/SofascoreSans/otf/SofascoreSans-Regular.otf') format('otf'), url('/static/fonts/SofascoreSans/ttf/SofascoreSans-Regular.ttf') format('truetype'); font-weight: 400; font-style: normal; line-height: normal; font-display: swap; } @font-face { font-family: 'Sofascore Sans'; src: url('/static/fonts/SofascoreSans/woff2/SofascoreSans-Medium.woff2') format('woff2'), url('/static/fonts/SofascoreSans/woff/SofascoreSans-Medium.woff') format('woff'), url('/static/fonts/SofascoreSans/otf/SofascoreSans-Medium.otf') format('otf'), url('/static/fonts/SofascoreSans/ttf/SofascoreSans-Medium.ttf') format('truetype'); font-weight: 500; font-style: normal; font-display: swap; } @font-face { font-family: 'Sofascore Sans'; src: url('/static/fonts/SofascoreSans/woff2/SofascoreSans-Bold.woff2') format('woff2'), url('/static/fonts/SofascoreSans/woff/SofascoreSans-Bold.woff') format('woff'), url('/static/fonts/SofascoreSans/otf/SofascoreSans-Bold.otf') format('otf'), url('/static/fonts/SofascoreSans/ttf/SofascoreSans-Bold.ttf') format('truetype'); font-weight: 700; font-style: normal; font-display: swap; } /** Sofascore Sans Condensed */ @font-face { font-family: 'Sofascore Sans Condensed'; src: url('/static/fonts/SofascoreSans/woff2/SofascoreSans-RegularCondensed.woff2') format('woff2'), url('/static/fonts/SofascoreSans/woff/SofascoreSans-RegularCondensed.woff') format('woff'), url('/static/fonts/SofascoreSans/otf/SofascoreSans-RegularCondensed.otf') format('otf'), url('/static/fonts/SofascoreSans/ttf/SofascoreSans-RegularCondensed.ttf') format('truetype'); font-weight: 400; font-style: normal; font-display: swap; } @font-face { font-family: 'Sofascore Sans Condensed'; src: url('/static/fonts/SofascoreSans/woff2/SofascoreSans-MediumCondensed.woff2') format('woff2'), url('/static/fonts/SofascoreSans/woff/SofascoreSans-MediumCondensed.woff') format('woff'), url('/static/fonts/SofascoreSans/otf/SofascoreSans-MediumCondensed.otf') format('otf'), url('/static/fonts/SofascoreSans/ttf/SofascoreSans-MediumCondensed.ttf') format('ttf'); font-weight: 500; font-style: normal; font-display: swap; } @font-face { font-family: 'Sofascore Sans Condensed'; src: url('/static/fonts/SofascoreSans/woff2/SofascoreSans-BoldCondensed.woff2') format('woff2'), url('/static/fonts/SofascoreSans/woff/SofascoreSans-BoldCondensed.woff') format('woff'), url('/static/fonts/SofascoreSans/otf/SofascoreSans-BoldCondensed.otf') format('otf'), url('/static/fonts/SofascoreSans/ttf/SofascoreSans-BoldCondensed.ttf') format('ttf'); font-weight: 700; font-style: normal; font-display: swap; } `,function(e=p){let t=function(e){let t=Object.keys(e),a={};return t.forEach(t=>{a[t]=e[t],a[t+"Min"]=e[t],a[t+"Max"]=e[t]-1}),a}(e);Object.keys(t).reduce((e,a)=>(e[a]=(e,...s)=>(0,f.css)` @media (${a.match(/Max/)?"max-width":"min-width"}: ${t[a]}px) { ${(0,f.css)(e,...s)} } `,e),{})}(),"undefined"!=typeof window&&(null==(r=window.matchMedia)||r.call(window,"(prefers-color-scheme: dark)"))},41078:(e,t,a)=>{a.d(t,{A:()=>o});var s=a(6029),l=a(28349),i=a(76356),r=a(90248),n=a(54409);function o(e){let{messageId:t,isInverted:a}=e;return(0,s.jsxs)(i.so,{direction:a?"row-reverse":"row",gap:"sm",align:"center",h:"5xl",maxW:"100%",px:"sm",children:[(0,s.jsx)(n.G_L,{width:24,height:24,fill:"onSurface.nLv3",style:{display:"block",minWidth:"24px"}}),(0,s.jsx)(l.EY,{textStyle:"body.medium",color:"neutrals.nLv3",display:"block",children:(0,s.jsx)(r.A,{id:t})})]})}},44259:(e,t,a)=>{a.d(t,{$8:()=>o,T0:()=>r,XU:()=>c,cl:()=>d,eA:()=>i,jM:()=>n});var s=a(21377);class l{dist(e){return Math.sqrt((e.x-this.x)**2+(e.y-this.y)**2)}atan(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:new l(0,0);return Math.atan2(this.y-e.y,this.x-e.x)}add(e,t){let a=this.atan(t);return this.x+=e*Math.cos(a),Math.abs(a-Math.PI)>.005&&(this.y+=e*Math.sin(a)),[this.x,this.y]}constructor(e,t){this.x=e,this.y=t}}function i(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:24,a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:4,s=e.map(e=>{let{x:t,y:a}=e;return new l(t,a)}),i=0;do for(let a=0;a({...e,...s[t]}))}let r=e=>{let t=new Map;if(e)for(let a=0;a{var a,s,l,i,r,n,o,c;let d=(null==t||null==(a=t.playerColor)?void 0:a.primary)||(null==t||null==(s=t.playerColor)?void 0:s.outline),u=(null==t||null==(l=t.playerColor)?void 0:l.fancyNumber)||(null==t||null==(i=t.playerColor)?void 0:i.number);return"G"===e.position&&(d=(null==t||null==(r=t.goalkeeperColor)?void 0:r.primary)||(null==t||null==(n=t.goalkeeperColor)?void 0:n.outline),u=(null==t||null==(o=t.goalkeeperColor)?void 0:o.fancyNumber)||(null==t||null==(c=t.goalkeeperColor)?void 0:c.number)),{fillColor:d=(null==d?void 0:d.startsWith("#"))?"#fff":"#"+d,numberColor:u=(null==u?void 0:u.startsWith("#"))?"#000":"#"+u}};function o(){let e=!1;return!(0,s.S$s)()&&"navigator"in window&&(e=/Firefox/.test(window.navigator.userAgent)),e}function c(e){return e>1&&e<=7}function d(e,t,a){return t?e?a?.75:.25:a?1:.5:e?.5:1}},44565:(e,t,a)=>{a.d(t,{A:()=>c});var s=a(21377),l=a(55729),i=a(45860),r=a(62859),n=a(8703),o=a(30720);function c(){let{swrConfig:e,event:t,shouldFetch:a=!0,jerseyStyle:c="fancy"}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{shouldFetch:!0},d={refreshInterval:6e4,...e},{event:u}=(0,l.useContext)(r.y$),f=a?t||u:void 0,{data:p,error:h,isLoading:g}=(0,i.Ay)(f?s.bnp.lineups(f.id):null,f?(0,n.rf)(f,d):d),[m,x]=(0,o.A)(p,"home","away"),y=f?{leftJerseyUrls:{player:s.bnp.playerJersey(f.id,"home",c),goalkeeper:s.bnp.goalkeeperJersey(f.id,"home",c)},rightJerseyUrls:{player:s.bnp.playerJersey(f.id,"away",c),goalkeeper:s.bnp.goalkeeperJersey(f.id,"away",c)}}:{leftJerseyUrls:{player:"",goalkeeper:""},rightJerseyUrls:{player:"",goalkeeper:""}},[j,v]=(0,o.A)(y,"leftJerseyUrls","rightJerseyUrls");return{lineups:p?{left:m,right:x,leftJerseyUrls:j,rightJerseyUrls:v}:void 0,isLoading:g,confirmed:null==p?void 0:p.confirmed,error:h}}},44742:(e,t,a)=>{a.d(t,{A:()=>r});var s=a(6029),l=a(41735),i=a(39895);function r(e){let{colors:t}=(0,l.useTheme)();return(0,s.jsx)(i.A,Object.assign({width:"16",height:"16",viewBox:"0 0 16 16"},e,{children:(0,s.jsxs)("g",Object.assign({fill:"none",fillRule:"evenodd"},{children:[(0,s.jsx)("path",{fill:"none",d:"M0 0h16v16H0z"}),(0,s.jsx)("path",{d:"M12 9v2.25h3v1.5h-3V15h-1l-3-3 3-3h1z",fill:t.success.default}),(0,s.jsx)("path",{d:"M15 7.75h-1.5V2.5h-11v5.25H1V1h14v6.75zM1 15v-1l1.5-1.5h4L8 14v1H1zm3.5-3.25a2 2 0 1 0 0-4 2 2 0 0 0 0 4z",fill:t.primary.default})]}))}))}},45527:(e,t,a)=>{a.d(t,{N:()=>l,i:()=>i});var s=a(6029);let l=(0,a(55729).createContext)("left"),i=e=>{let{side:t,children:a}=e;return(0,s.jsx)(l.Provider,{value:t,children:a})}},48485:(e,t,a)=>{a.d(t,{h:()=>s});let s=({id:e,incidents:t,useShortName:a})=>t.filter(t=>{var a,s,l,i,r;return"player"in t&&(null==(a=t.player)?void 0:a.id)===e||"manager"in t&&(null==(s=t.manager)?void 0:s.id)===e||(null==(l=t.playerOut)?void 0:l.id)===e||(null==(i=t.playerIn)?void 0:i.id)===e||(null==(r=t.assist1)?void 0:r.id)===e}).reduce((t,s)=>{var l,i,r,n,o,c,d;switch(s.incidentType){case"card":switch(s.incidentClass){case"red":return Object.assign(Object.assign({},t),{hasRedCard:!0});case"yellow":return Object.assign(Object.assign({},t),{hasYellowCard:!0});case"yellowRed":return Object.assign(Object.assign({},t),{hasYellowRedCard:!0});default:return t}case"goal":if((null==(l=s.player)?void 0:l.id)===e)switch(s.incidentClass){case"ownGoal":return Object.assign(Object.assign({},t),{hasScoredOwnGoal:!0,ownGoalsScored:(t.ownGoalsScored||0)+1});case"penalty":return Object.assign(Object.assign({},t),{hasScoredPenalty:!0,penaltiesScored:(t.penaltiesScored||0)+1,goalsScored:(t.goalsScored||0)+1});default:return Object.assign(Object.assign({},t),{goalsScored:(t.goalsScored||0)+1})}if((null==(i=s.assist1)?void 0:i.id)===e)return Object.assign(Object.assign({},t),{goalsAssisted:(t.goalsAssisted||0)+1});return t;case"substitution":if((null==(r=s.playerOut)?void 0:r.id)===e)return Object.assign(Object.assign({},t),{substitutionOut:{forPlayer:(a?null==(n=s.playerIn)?void 0:n.shortName:null==(o=s.playerIn)?void 0:o.name)||s.playerNameIn,time:s.time,isInjury:"injury"===s.incidentClass}});return Object.assign(Object.assign({},t),{substitutionIn:{forPlayer:(a?null==(c=s.playerOut)?void 0:c.shortName:null==(d=s.playerOut)?void 0:d.name)||s.playerNameOut,time:s.time,isInjury:"injury"===s.incidentClass}});default:return t}},{})},52839:(e,t,a)=>{a.d(t,{t:()=>i,u:()=>l});var s=a(21377);let l=[s.QCR.AmericanFootball,s.QCR.Basketball,s.QCR.Handball,s.QCR.IceHockey];function i(e){switch(e){case s.QCR.AmericanFootball:return["passingTouchdowns","rushingTouchdowns","receivingTouchdowns","passingCompletionPercentage","rushingYardsPerAttempt","receivingYardsPerReception","defensiveInterceptions","defensiveTotalTackles","defensiveSacks","kickingFgMade"];case s.QCR.Basketball:return["points","rebounds","assists","steals","blocks","turnovers","fieldGoalsPercentage","threePointsPercentage"];case s.QCR.Handball:return["goals","assists","goals7m","steals","twoMinutePenalties","saves","goalkeeperEfficiencyPercentage","gk7mSaves"];case s.QCR.IceHockey:return["points","goals","assists","plusMinus","timeOnIce","blocked","hits","goalsAgainstAverage","savePercentage","shutouts"];default:return null}}},54863:(e,t,a)=>{a.d(t,{Ir:()=>s.A,ax:()=>c,rR:()=>p});var s=a(44565),l=a(21377),i=a(55729),r=a(45860),n=a(62859);function o(e){let t=e.reduce((e,t)=>t.statistics&&t.statistics.rating?{sum:e.sum+Number(t.statistics.rating),count:e.count+1}:e,{count:0,sum:0});return t.count?t.sum/t.count:void 0}function c(e){let{event:t}=(0,i.useContext)(n.y$),a=o(e.left.players),s=o(e.right.players),c=!!a&&!!s,{data:d}=(0,r.Ay)(c?null:l.bnp.prematchStandings(t.id));return((null==d?void 0:d.homeTeam.avgRating)||(null==d?void 0:d.awayTeam.avgRating))&&(a=null==d?void 0:d.homeTeam.avgRating,s=null==d?void 0:d.awayTeam.avgRating),[a,s]}var d=a(34765),u=a(79853),f=a(45527);function p(){let{event:e,leftTeam:t,rightTeam:a}=(0,i.useContext)(n.y$),{managers:l}=(0,u.K)(e),{lineups:r}=(0,s.A)(),{incidents:o}=(0,d.L)(),c=(0,i.useContext)(f.N);if(void 0===c)throw Error("useLineupSide must be used within a SideProvider");return"left"===c?{event:e,team:t,manager:l.leftManager,lineups:null==r?void 0:r.left,incidents:o,jersey:null==r?void 0:r.leftJerseyUrls.player,jerseyNumberColor:null==r?void 0:r.left.playerColor,startingPlayers:(null==r?void 0:r.left.players.filter(e=>!e.substitute))||[],substitutePlayers:(null==r?void 0:r.left.players.filter(e=>e.substitute))||[]}:{event:e,team:a,manager:l.rightManager,lineups:null==r?void 0:r.right,incidents:o,jersey:null==r?void 0:r.rightJerseyUrls.player,jerseyNumberColor:null==r?void 0:r.right.playerColor,startingPlayers:(null==r?void 0:r.right.players.filter(e=>!e.substitute))||[],substitutePlayers:(null==r?void 0:r.right.players.filter(e=>e.substitute))||[]}}},55529:(e,t,a)=>{a.d(t,{wf:()=>i,vD:()=>n,Cy:()=>o,Xj:()=>c,uU:()=>d,WM:()=>r,fP:()=>l});var s=a(83471);let l={[s.k.Performance]:"manager.performance",[s.k.Distance]:"football_lineups_chip_running_distance",[s.k.Nationality]:"nationality",[s.k.Club]:"lineups_chip_club",[s.k.Age]:"age",[s.k.MarketValue]:"market_value",[s.k.Height]:"player_height"},i=[s.k.Age,s.k.MarketValue,s.k.Height,s.k.Distance],r=2,n={1:{gridColumn:1,gridRow:1},2:{gridColumn:3,gridRow:1},3:{gridColumn:5,gridRow:1},4:{gridColumn:2,gridRow:2},5:{gridColumn:4,gridRow:2},6:{gridColumn:1,gridRow:3},7:{gridColumn:5,gridRow:3},8:{gridColumn:3,gridRow:3},9:{gridColumn:1,gridRow:4},10:{gridColumn:2,gridRow:5},11:{gridColumn:1,gridRow:7},12:{gridColumn:3,gridRow:5},13:{gridColumn:4,gridRow:5},14:{gridColumn:5,gridRow:7},15:{gridColumn:3,gridRow:7}},o={1:{top:"5%"},2:{top:"5%"},3:{top:"5%"},4:{top:"-10%"},5:{top:"-10%"},6:{top:"-20%"},7:{top:"-20%"},8:{top:"25%"},9:{top:"25%"},10:{top:"-20%"},11:{top:"-50%"},12:{top:"30%"},13:{top:"90%"},14:{top:"-50%"},15:{top:"10%"}},c={1:{gridColumn:1,gridRow:2},2:{gridColumn:2,gridRow:2},3:{gridColumn:3,gridRow:2},4:{gridColumn:1,gridRow:4},5:{gridColumn:2,gridRow:5},6:{gridColumn:3,gridRow:5},7:{gridColumn:4,gridRow:6}},d={1:{top:"-10%"},2:{top:"25%"},3:{top:"-10%"},4:{top:"55%"},5:{top:"5%"},6:{top:"60%"},7:{top:"25%"}}},56008:(e,t,a)=>{a.d(t,{A:()=>r});var s=a(6029),l=a(21377),i=a(48683);function r(){return(0,s.jsxs)(i.Zp,{children:[(0,s.jsx)(i.Zp.Header,{titleId:"top_players",values:{gender:l.YT8.Male}}),(0,s.jsx)("div",{style:{height:780}})]})}},57773:(e,t,a)=>{a.d(t,{A:()=>r});var s=a(6029),l=a(41735),i=a(39895);function r(e){let{colors:t}=(0,l.useTheme)();return(0,s.jsx)(i.A,Object.assign({width:"16",height:"16",viewBox:"0 0 16 16"},e,{children:(0,s.jsxs)("g",Object.assign({fill:"none",fillRule:"evenodd"},{children:[(0,s.jsx)("path",{fill:"none",d:"M0 0h16v16H0z"}),(0,s.jsx)("path",{d:"M15 7.75h-1.5V2.5h-11v5.25H1V1h14v6.75zM1 15v-1l1.5-1.5h4L8 14v1H1zm3.5-3.25a2 2 0 1 0 0-4 2 2 0 0 0 0 4z",fill:t.primary.default}),(0,s.jsx)("path",{d:"M11 9v2.25H8v1.5h3V15h1l3-3-3-3h-1z",fill:t.error.default})]}))}))}},58991:(e,t,a)=>{a.d(t,{A:()=>p});var s=a(6029),l=a(25635),i=a(48485),r=a(99064),n=a(55729),o=a(90248),c=a(48683),d=a(13266),u=a(84942),f=a(73488);function p(e){let{manager:t,incidents:a,isBorderHidden:p}=e,h=(0,u.z)(t),g=(0,n.useMemo)(()=>a?(0,i.h)({id:t.id,incidents:a}):{},[t,a]);return(0,s.jsx)(d.yI,{manager:t,style:{width:"100%"},children:(0,s.jsx)(c.Zp,{children:(0,s.jsxs)(r.so,{children:[(0,s.jsx)(r.az,{px:"lg",py:"sm",children:(0,s.jsx)(l.d,{size:40,id:t.id,name:h})}),(0,s.jsx)(r.so,{borderBottom:p?void 0:"onSurface.nLv4",align:"center",flex:"1 1 auto",mr:"lg",children:(0,s.jsxs)(r.az,{flex:"1 1 auto",children:[(0,s.jsx)(r.so,{title:h,align:"center",children:(0,s.jsxs)(r.EY,{font:"body.medium",color:"onSurface.nLv1",mr:"xs",children:[(0,s.jsx)(r.az,{as:"span",mr:"xs",children:h}),g&&(0,s.jsx)(f.AG,{...g})]})}),(0,s.jsx)(r.EY,{font:"assistive.default",color:"primary.default",mr:"xxs",children:(0,s.jsx)(o.A,{id:"manager"})})]})})]})})})}},59395:(e,t,a)=>{a.d(t,{A:()=>i});var s=a(6029),l=a(39895);function i(e){return(0,s.jsx)(l.A,Object.assign({width:"16",height:"16",viewBox:"0 0 16 16"},e,{children:(0,s.jsx)("path",{d:"m10.5 13.01 1.5 1.5-2.5.5-.5-.5 1.5-1.5zM7.92 1v1l2 1h2l1 6 1.5 4.5-1 1-10-10L5.92 1h2zM8 10.51l1.5 1.5-2.5.5-.5-.5 1.5-1.5zm-2.5-2.5L7 9.51l-2.5.5-.5-.5 1.5-1.5zm5.93.19H9.08l1.41 1.41h1.18l-.24-1.41zM3 5.51l1.5 1.5-2.5.5-.5-.5L3 5.51zm7.91-.01H6.43l1.41 1.41h3.31l-.24-1.41z",fill:e.fill,fillRule:"evenodd"})}))}},61185:(e,t,a)=>{a.d(t,{A:()=>d});var s=a(6029),l=a(33144),i=a(21377),r=a(76356),n=a(55729),o=a(62859);function c(e){let{team:t,side:a,activeTeam:i,isBackgroundInverse:o,onTeamClick:c}=e,d=(0,n.useCallback)(()=>c(a),[c,a]),u=i===a;return(0,s.jsx)(r.ov,{h:"2xl",flexGrow:1,userSelect:"none",bg:u?"primary.highlight":o?"surface.s1":"surface.s2",br:"sm",onClick:d,cursor:"pointer",children:(0,s.jsx)(l.p,{size:24,id:t.id,name:t.name})})}function d(e){let{activeTeam:t,isBackgroundInverse:a,onTeamClick:l,...d}=e,{leftTeam:u,rightTeam:f}=(0,n.useContext)(o.y$);return(0,s.jsxs)(r.so,{justify:"space-between",gap:"lg",...d,children:[(0,s.jsx)(c,{team:u,side:i.cxP.Left,activeTeam:t,onTeamClick:l,isBackgroundInverse:a}),(0,s.jsx)(c,{team:f,side:i.cxP.Right,activeTeam:t,onTeamClick:l,isBackgroundInverse:a})]})}},62283:(e,t,a)=>{a.d(t,{A:()=>s});var s={onColor:{primary:"var(--on-color-primary)"},onSurface:{nLv1:"var(--on-surface-nLv1)"},social:{facebook:"var(--social-facebook)"},editor:{pink:"var(--editor-pink)"}}},62764:(e,t,a)=>{a.d(t,{A:()=>i});var s=a(6029),l=a(39895);function i(e){return(0,s.jsxs)(l.A,Object.assign({width:16,height:16,viewBox:"0 0 16 16"},e,{children:[(0,s.jsx)("g",Object.assign({clipPath:"url(#clip0_26093_10000)"},{children:(0,s.jsx)("path",{d:"M8.80226 2.66663H7.37305L1.66992 12.1133L2.38794 13.3333H13.7874L14.5054 12.1133L8.80226 2.66663ZM8.76806 12H7.40041V10.6666H8.76806V12ZM8.76806 9.33329H7.40041V5.33329H8.76806V9.33329Z",fill:e.fill})})),(0,s.jsx)("defs",{children:(0,s.jsx)("clipPath",Object.assign({id:"clip0_26093_10000"},{children:(0,s.jsx)("rect",{width:"12.67",height:"10.6667",fill:"white",transform:"translate(1.66992 2.66663)"})}))})]}))}},67717:(e,t,a)=>{a.d(t,{n:()=>s.A});var s=a(61185)},71306:(e,t,a)=>{a.d(t,{A:()=>n,I:()=>r});var s=a(55729),l=a(48886),i=a(99586);let r=(e,t)=>{let a=t.short||e.stat.short;return a&&t.short===e.stat.short||!a&&e.stat.value===t.value?{stat:e.stat,dir:e.dir===l.U.DESC?l.U.ASC:l.U.DESC}:{stat:t,dir:l.U.DESC}},n=(e,t,a)=>{let[n,o]=(0,s.useState)({stat:t,dir:l.U.DESC}),c=(0,i.C)(e,n,t,a),d=(0,s.useCallback)(e=>{o(t=>r(t,e))},[]);return{sortConfig:n,setSortConfig:o,sortedPlayers:c,updateSortStatistic:d}}},72745:(e,t,a)=>{a.d(t,{A:()=>P});var s=a(6029),l=a(28349),i=a(76356),r=a(41735),n=a(42181),o=a(86890),c=a(21377),d=a(93338),u=a(59395),f=a(5173),p=a(90142),h=a(39895);function g(e){var{fill:t="primary.default"}=e,a=(0,p.T)(e,["fill"]);return(0,s.jsxs)(h.A,Object.assign({width:"12",height:"12",viewBox:"0 0 12 12",fill:t},a,{children:[(0,s.jsxs)("g",Object.assign({"clip-path":"url(#clip0_7324_19939)"},{children:[(0,s.jsx)("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M8.25 3.45V5.25H9L11.25 3L9 0.75H8.25V2.55",fill:"#A4A9B3"}),(0,s.jsx)("path",{d:"M3.5625 5.25H2.4375V2.4375H8.25V3.5625H3.5625V5.25Z",fill:"#A4A9B3"}),(0,s.jsx)("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M3.75 8.55V6.75H3L0.75 9L3 11.25H3.75V9.45",fill:"#C7361F"}),(0,s.jsx)("path",{d:"M9.5625 9.5625H3.75V8.4375H8.4375V6.75H9.5625V9.5625Z",fill:"#C7361F"})]})),(0,s.jsx)("defs",{children:(0,s.jsx)("clipPath",Object.assign({id:"clip0_7324_19939"},{children:(0,s.jsx)("rect",{width:"10.5",height:"10.5",fill:"white",transform:"translate(0.75 0.75)"})}))})]}))}var m=a(39169),x=a(11663),y=a(13429);function j({incident:e,isNumber:t}){return t?(0,s.jsx)(l.EY,Object.assign({textStyle:"display.micro",color:"onColor.primary"},{children:e.count})):"matchMVP"===e.name?(0,s.jsx)(m.default,{w:12,h:12,fill:e.color}):"goalAssist"===e.name?(0,s.jsx)(u.A,{w:12,h:12,fill:e.color}):"goal"===e.name&&("regular"===e.icon||"penalty"===e.icon)?(0,s.jsx)(f.A,{w:12,h:12,fill:e.color}):"substitution"===e.name?"injury"===e.icon?(0,s.jsx)(x.A,{w:12,h:12,fill:e.color,style:{transform:"scaleX(-1)"}}):(0,s.jsx)(g,{}):e.icon?(0,s.jsx)(y.A,{sport:c.QCR.Football,incidentType:e.name,incidentClass:e.icon,svgProps:{width:12,height:12,shapeRendering:"crispEdges"}}):null}let v=({incident:e,isNumber:t})=>(0,s.jsxs)(i.az,Object.assign({position:"relative",w:"lg",h:"lg"},{children:[(0,s.jsx)(i.so,{br:"50%",border:"1px solid",borderColor:t?"onColor.primary":"neutral.highlight",h:"lg",w:"lg",justify:"center",align:"center",position:"absolute",top:"[50%]",left:"[50%]",transform:"translate(-50%, -50%)",style:{backgroundColor:t?e.color:d.S.var("colors.onColor.primary")}}),(0,s.jsx)(i.ov,Object.assign({position:"absolute",top:"[50%]",left:"[50%]",transform:"translate(-50%, -50%)",className:"light"},{children:(0,s.jsx)(j,{incident:e,isNumber:t})}))]}));function b({alignment:e,incidents:t,compactDisplay:a}){return(0,s.jsx)(i.so,Object.assign({width:"right"===e?void 0:"lg",h:"[50px]",position:"relative",direction:"column",maxW:"[22px]",minW:"lg",gap:"[1px]"},{children:t.map(t=>t.isVisible?(0,s.jsxs)(i.so,Object.assign({align:"center"},{children:[(0,s.jsx)(v,{incident:t}),"right"===e&&t.count&&t.count>=2&&(0,s.jsx)(i.so,Object.assign({position:"absolute",gap:"[1px]",left:a?"[1px]":"sm"},{children:(0,s.jsx)(v,{incident:t,isNumber:!0})}))]}),t.name):(0,s.jsx)(i.az,{h:"lg"},t.name))}))}var S=a(25766),w=a(48485);a(64082),a(21501),a(99064),a(55729),a(16007),a(47177),a(97824),a(83204);var C=a(19991);function _({player:e,incidents:t,isMatchMVP:a,lineupsType:l,compactDisplay:r}){let{playerLeftStatistics:n,playerRightStatistics:o}=function(e,t,a){var s,l,i;let r=t?(0,w.h)({id:e.player.id,incidents:t,useShortName:!0}):{},n=r.hasYellowCard||r.hasYellowRedCard||r.hasRedCard,o={name:"card",icon:r.hasYellowRedCard?"yellowRed":r.hasRedCard?"red":"yellow",color:r.hasYellowRedCard?void 0:r.hasRedCard?d.S.var("colors.status.error.default"):d.S.var("colors.rating.s65"),isVisible:!!n},c={name:"substitution",icon:(null==(s=r.substitutionOut)?void 0:s.isInjury)?"injury":"regular",isVisible:!!r.substitutionOut,color:(null==(l=r.substitutionOut)?void 0:l.isInjury)?d.S.var("colors.status.error.default"):void 0},u={name:"goal",icon:r.goalsScored===r.penaltiesScored&&r.hasScoredPenalty?"penalty":"regular",count:r.goalsScored,color:d.S.var("colors.surface.t"),isVisible:!!r.goalsScored},f={name:"goalAssist",icon:"football-assist",count:r.goalsAssisted,color:d.S.var("colors.surface.t"),isVisible:!!r.goalsAssisted},p={name:"goal",icon:"ownGoal",count:r.ownGoalsScored,color:d.S.var("colors.status.error.default"),isVisible:!!r.ownGoalsScored};return{playerLeftStatistics:[o,c,{name:"matchMVP",color:(0,C.Et)(null==(i=e.statistics)?void 0:i.rating),isVisible:!!a}],playerRightStatistics:[u,f,p]}}(e,t,a);return(0,s.jsx)(s.Fragment,{children:(0,s.jsxs)(i.so,Object.assign({w:"100%",h:"100%",px:r?void 0:"xs",position:"absolute",justify:l===S.V.Confirmed?"space-between":"flex-start"},{children:[n&&(0,s.jsx)(b,{alignment:"left",incidents:n}),l===S.V.Confirmed&&o&&(0,s.jsx)(b,{alignment:"right",incidents:o,compactDisplay:r})]}))})}a(52462);var k=a(91407);let M=({player:e,event:t,isMatchMVP:a,incidents:r,chipType:n,lineupsType:o,numberOfPlayersInRow:c,hasRating:d,getPlayerCharacteristicLabel:u=()=>null,getTranslatedPlayerName:f=e=>e.player.shortName})=>{var p;let{mediaBreakpoint:h,isDesktopMedium:g}=(0,l.$c)(),m=n===S.k.Performance,x=(null==r?void 0:r.filter(t=>{var a;return(null==(a=null==t?void 0:t.player)?void 0:a.id)===e.player.id&&("red"===t.incidentClass||"yellowRed"===t.incidentClass)}).length)!==0&&m;return(0,s.jsxs)(i.so,Object.assign({direction:"column",align:"center"},{children:[(0,s.jsxs)(i.so,Object.assign({position:"relative",direction:"column",justify:"center",align:"center",w:"100%",h:"100%",maxW:"[68px]",maxH:"[52px]"},{children:[(0,s.jsx)(i.az,Object.assign({w:"3xl",h:"3xl",br:"50%",bg:"surface.s0"},{children:(0,s.jsx)(k.t,{size:40,id:null==(p=e.player)?void 0:p.id,style:{opacity:x?.5:1}})})),m&&(0,s.jsx)(_,{player:e,incidents:r,isMatchMVP:a,lineupsType:o,compactDisplay:g||"xxs"===h&&5===c}),u({player:e,event:t,chipType:n,lineupsType:o,hasRating:d})]})),f(e)]}))};function P({teamSide:e,playerFormation:t,incidents:a,playerOfTheMatchId:c,playerCharacteristic:d,lineupsType:u,isHorizontalLayout:f,event:p,hasRatings:h,order:g,getPlayerCharacteristicLabel:m,getTranslatedPlayerName:x,onPlayerClick:y}){let j="rtl"===(0,r.useTheme)().settings.textDirection,{mediaBreakpoint:v,isDesktopMedium:b}=(0,l.$c)(),S=b||"xxs"===v&&5===t.length;return(0,s.jsxs)(n.XF,Object.assign({side:e,isHorizontalLayout:f,mx:f?void 0:"sm",order:g},{children:[(0,s.jsx)(n.mi,Object.assign({side:e,isHorizontalLayout:f},{children:t.map((l,r)=>{let n=f?e===(j?"left":"right")?"column":"column-reverse":e===(j?"right":"left")?"row":"row-reverse";return(0,s.jsx)(i.so,Object.assign({flex:"[1 1 auto]",align:"center",justify:"space-evenly",direction:n},{children:(0,s.jsx)(i.so,Object.assign({w:f?void 0:"100%",h:f?"100%":void 0,justify:"space-evenly",direction:n},{children:l.map(e=>(0,s.jsx)(i.so,Object.assign({direction:"column",justify:"flex-start",align:"center",flex:"[1 1 100%]",w:S?"[60px]":void 0,maxW:{base:"12xl",md:5===t.length?"[86px]":"[108px]"},minW:"[60px]",maxH:"[76px]",pt:f?"0":"[6px]",cursor:e.player.disabled?"not-allowed":"pointer",onClick:()=>{y&&y(e)}},{children:(0,s.jsx)(i.az,Object.assign({w:"100%"},{children:(0,s.jsx)(M,{player:e,isMatchMVP:e.player.id===c,incidents:a,chipType:d,lineupsType:u,numberOfPlayersInRow:l.length,event:p,hasRating:!!h,getPlayerCharacteristicLabel:m,getTranslatedPlayerName:x},e.player.id)}))}),e.player.id))}))}),r)})})),(0,s.jsx)(o.A,{side:e,linesColor:n.ob,isHorizontalLayout:f})]}))}},73488:(e,t,a)=>{a.d(t,{AG:()=>o,FU:()=>n,X0:()=>c});var s=a(6029),l=a(99064),i=a(54409),r=a(12562);let n=e=>{let{isInjury:t}=e;return t?(0,s.jsx)(i.NcS,{icon:"substitution-injured"}):(0,s.jsx)(i.NcS,{icon:"substitution"})},o=e=>{let{hasYellowCard:t,hasRedCard:a,hasYellowRedCard:l}=e;return l?(0,s.jsx)(i.NcS,{icon:"card-double-yellow",width:"16",height:"16"}):a?(0,s.jsx)(i.NcS,{icon:"card",width:"16",height:"16",fill:"error.default"}):t?(0,s.jsx)(i.NcS,{icon:"card",width:"16",height:"16",fill:"scoreRating.s65"}):null},c=e=>{let{goalsScored:t,hasScoredPenalty:a,hasScoredOwnGoal:n,inField:o}=e;if(n&&!t)return(0,s.jsx)(i.NcS,{icon:"football-own-goal",width:"16",height:"16",fill:"error.default"});if(a&&1===t)return(0,s.jsx)(i.NcS,{icon:"football-penalty",width:"16",height:"16",fill:"secondary.default"});if(t){if(o){let e=t>1;return(0,s.jsxs)(l.az,{position:"relative",left:e?"6":void 0,ml:"xxs",children:[e&&(0,s.jsx)(l.EY,{font:"table.small",color:"secondary.default",position:"relative",children:t}),(0,s.jsx)(r.M,{incidentType:"goal",incidentClass:"regular",svgProps:{fill:"secondary.default",width:16,height:16}})]})}return(0,s.jsx)(l.az,{position:"relative",ml:"xxs",children:Array(t).fill(0).map((e,t)=>(0,s.jsx)(r.M,{incidentType:"goal",incidentClass:"regular",svgProps:{fill:"secondary.default",width:16,height:16}},"goal-".concat(t)))})}return null}},78944:(e,t,a)=>{a.d(t,{H7:()=>h,q6:()=>p});var s=a(6029),l=a(55729),i=a(947),r=a(90248),n=a(62859),o=a(98899);let c=JSON.parse('{"rugby":{"goal.onePoint":"rugby.onePointGoal","goal.twoPoints":"rugby.twoPointGoal","goal.threePoints":"rugby.threePointGoal","goal.try":"rugby.try","goal.penaltyTry":"rugby.penaltyTry"},"basketball":{"One point":"basketball.onePoint","Two points":"basketball.twoPoints","Three points":"basketball.threePoints","Four points":"basketball_four_points"},"american-football":{"goal.touchdown":"touchdown","goal.extraPoint":"amf.extraPoint","goal.twoPointConversion":"amf.twoPointConversion","goal.defensive2ptConversion":"amf.defensive2ptConversion","goal.fieldGoal":"amf.fieldGoal","goal.safety":"amf.safety","goal.rouge":"amf.rouge"},"minifootball":{"accumulatedPenalty":"minifootball_accumulated_penalty"},"futsal":{"accumulatedPenalty":"minifootball_accumulated_penalty"},"ice-hockey":{"boarding":"penalty_boarding","broken_stick":"penalty_broken_stick","charging":"penalty_charging","closing_hand_on_puck":"penalty_closing_hand","cross_checking":"penalty_cross_checking","elbowing":"penalty_elbowing","clipping":"penalty_clipping","delay_game":"penalty_delay_of_game","illegal_check_to_head":"penalty_illegal_check","goalie_leave_crease":"penalty_goalie_leave_crease","hi_sticking":"penalty_hi_sticking","holding":"penalty_holding","holding_the_stick":"penalty_holding_the_stick","hooking":"penalty_hooking","illegal_stick":"penalty_illegal_stick","interference":"penalty_interference","instigator":"penalty_instigator","kneeing":"penalty_kneeing","interference_goalkeeper":"penalty_interference_on_gk","roughing":"penalty_roughing","slashing":"penalty_slashing","spearing":"penalty_spearing","tripping":"penalty_tripping","unsportsmanlike_conduct":"penalty_unsportsmanlike_conduct","delay_game_bench":"penalty_delay_of_game_bench","misconduct_10min":"penalty_misconduct","game_misconduct":"penalty_game_misconduct","goalie_participating_beyond_center":"penalty_goalie_beyond_the_center","aggressor":"penalty_aggressor","match_penalty":"penalty_match_penalty","ps_illegal_substitution":"penalty_shot_illegal_substitution","ps_goalkeeper_displaced_net":"penalty_shot_goalkeeper_displaced_net","ps_net_displaced":"penalty_shot_net_displaced","ps_covering_puck_in_crease":"penalty_shot_covering_puck","ps_picking_up_puck_in_crease":"penalty_shot_picking_up_puck","ps_throwing_object_on_ice":"penalty_shot_throwing_object","ps_interference_from_bench":"penalty_shot_interference_from_bench","ps_players_leaving_bench":"penalty_shot_players_leaving_bench","ps_throw_object_at_puck":"penalty_shot_throw_object_at_puck","ps_holding_on_breakaway":"penalty_shot_holding_on_breakaway","ps_holding_stick_on_breakaway":"penalty_shot_holding_stick_on_breakaway","ps_hooking_on_breakaway":"penalty_shot_hooking_on_breakaway","ps_tripping_on_breakaway":"penalty_shot_tripping_on_breakaway","ps_slash_on_breakaway":"penalty_shot_slash_on_breakaway","embellishment":"penalty_embellishment","bench":"penalty_bench","playing_without_a_helmet":"penalty_helmet","removing_opponents_helmet":"penalty_removing_opponents_helmet","goalie_removed_own_mask":"penalty_goalie_removed_mask","delay_game_unsucc_challenge":"penalty_delay_of_game_unsuccessful_challenge","licking":"penalty_kicking","attempt_to_injure":"penalty_attempt_to_injure","deliberate_injury":"penalty_deliberate_injury","checking_from_behind":"penalty_checking_from_behind","interference_bench":"penalty_interference_bench","throwing_stick":"penalty_throwing_stick","abusive_language":"penalty_abusive_language","fighting":"penalty_fighting","abuse_of_officials":"penalty_abuse_of_officials","refusal_to_play":"penalty_refusal_to_play","late_on_ice":"penalty_late_on_ice","not_proceeding_to_dressing_room":"penalty_not_proceeding_to_dressing_room","butt_ending":"penalty_butt_ending","head_butting":"penalty_head_butting","puck_thrown_fwd_goalkeeper":"penalty_puck_thrown_fwd_goalkeeper","removing_sweater":"penalty_removing_sweater","not_proceeding_dir_penbox":"penalty_not_proceeding_dir_penbox","leaving_penalty_box":"penalty_leaving_penalty_box","illegal_substitution":"penalty_illegal_substitution","protective_equipment":"penalty_protective_equipment","objects_on_ice":"penalty_objects_on_ice","interfere_with_official":"penalty_interfere_with_official","player_leaves_bench":"penalty_leaving_players_bench","leaving_players_penalty_bench":"penalty_leaving_penalty_bench","ineligible_player":"penalty_ineligible_player","unsustained_measurement":"penalty_unsustained_measurement","illegal_equipment":"penalty_illegal_equipment","too_many_men_on_ice":"penalty_too_many_men_on_ice","doubleMinor":"penalty_double_minor","goal.emptynet":"hockey_empty_net_goal","substitution.goalkeeperIn":"hockey_match_event_goalie_back_in","substitution.goalkeeperOut":"hockey_match_event_goalie_out"},"volleyball":{"goal.spike":"volleyball_attack","goal.ace":"volleyball_ace","goal.block":"volleyball_block","goal.opponentError":"volleyball_opponent_error"},"Goal":"goal","goal.regular":"goal","Own goal":"ownGoal","goal.ownGoal":"ownGoal","Substitution":"substitution","Substitution in":"substitutionIn","Substitution out":"substitutionOut","substitution.injury":"substitution","substitution.temporary":"rugby_temporary_substitution","Penalty":"penalty","goal.penalty":"penalty","inGamePenalty.scored":"penalty","penaltyShootout.scored":"penalty","Missed Penalty":"missedPenalty","inGamePenalty.missed":"missedPenalty","penaltyShootout.missed":"missedPenalty","Penalty taker":"penaltyTaker","Yellow card":"yellowCard","card.yellow":"yellowCard","2nd Yellow card (Red)":"2ndYellowCard","card.yellowRed":"2ndYellowCard","Red card":"redCard","card.red":"redCard","Argument":"argument","Dangerous play":"dangerousPlay","Simulation":"simulation","Other reason":"otherReason","Unallowed field entering":"unallowedFieldEntering","Fight":"fight","Foul":"foul","Handball":"handball","Leaving field":"leavingField","On bench":"onBench","Off the ball foul":"offTheBallFoul","Persistent fouling":"persistentFouling","Professional foul":"professionalFoul","Professional handball":"professionalHandball","Professional foul last man":"professionalFoulLastMan","Rescinded Card":"rescindedCard","Unsporting behaviour":"unsportingBehaviour","Time wasting":"timeWasting","Violent conduct":"violentConduct","Post match":"postMatch","Off target":"offTarget","Woodwork":"woodwork","Goalkeeper save":"goalkeeperSave","zeroMinutes":"penalty_suspension","twoMinutes":"penalty_two_min_suspension","fourMinutes":"penalty_four_min_suspension","fiveMinutes":"penalty_five_min_suspension","tenMinutes":"penalty_ten_min_suspension","mistakenIdentity.false":"reviewed","cardUpgrade.false":"cardUpgrade.changed","cardUpgrade.true":"cardUpgrade.noChange","review.false":"reviewed","review.true":"reviewed","varDecision.goalAwarded":"varDecision","varDecision.goalNotAwarded":"varDecision","varDecision.penaltyAwarded":"varDecision","varDecision.penaltyNotAwarded":"varDecision","varDecision.redCardGiven":"varDecision","varDecision.cardUpgrade":"varDecision","varDecision.mistakenIdentity":"varDecision","goal.powerplay":"powerplayGoal","goal.shorthanded":"shorthandedGoal"}');var d=a(27892);let u="DEFAULT",f=(e,t)=>(0,d.O)(c,e,t,u),p=(e,t,a)=>{let s=f(t?"".concat(e,".").concat(t):e,a);return"goal"===s&&a?o.dv.includes(a)?s:void 0:s!==u||t&&(s=f(t,a))!==u?s:(s=f(e,a))!==u?s:void 0},h=e=>{let{id:t}=e,a=(0,i.A)(),o=f(t,(0,l.useContext)(n.Ws));if(o!==u)return(0,s.jsx)(r.A,{id:o});let c=a.formatMessage({id:t});return c!==t?(0,s.jsx)(s.Fragment,{children:c}):null}},79377:(e,t,a)=>{a.d(t,{Ko:()=>D});var s=a(6029),l=a(83471),i=a(4967),r=a(99064),n=a(90248),o=a(12047),c=a(55529);function d(e){let{isNational:t,eventTimestamp:a,isHorizontalLayout:d,onTabChange:u,order:f,hasDistance:p}=e,h=(0,o.Ay)({isSportMenuVisible:!0,isInMobileTabs:!0}),g=1>(0,i.CF)(a),m=Object.values(l.k).filter(e=>(e!==l.k.MarketValue||!!g)&&(e!==l.k.Distance||!!p)&&(t?e!==l.k.Nationality:e!==l.k.Club));return(0,s.jsxs)(r.PI,{px:[0,"sm"],top:h,w:"100%",order:f,zIndex:r.Py.Sticky-1,bg:"surface.s1",children:[(0,s.jsx)(r.tU,{variant:"quaternary",initialValue:l.k.Performance,onChange:u,children:(0,s.jsx)(r.tU.List,{px:d?void 0:"xs",py:"sm",children:m.map(e=>(0,s.jsx)(r.tU.Tab,{tabKey:e,children:(0,s.jsx)(n.A,{id:c.fP[e]})},"tab-".concat(e)))})}),!d&&(0,s.jsx)(r.cG,{})]})}var u=a(25766),f=a(94400),p=a(91603),h=a(21377),g=a(55729),m=a(41735),x=a(56602),y=a(34851),j=a(3518),v=a(85685),b=a(94604);let S=function(){let[e,t]=(0,g.useState)(320);return(0,g.useEffect)(()=>{t(window.innerWidth);let e=()=>t(window.innerWidth);return window.addEventListener("resize",e),()=>window.removeEventListener("resize",e)},[]),e};function w(e){let{team:t,avgRating:a,teamSide:l,formation:i,jersey:o,isNotStarted:d,avgMessageId:w,avgData:C,chipType:_,isHorizontalLayout:k,order:M}=e,P=c.wf.includes(_)&&C,I=S(),H="rtl"===(0,g.useContext)(m.ThemeContext).settings.textDirection;return(0,s.jsx)(r.az,{w:"100%",h:"72px",maxH:"82px",br:[void 0,"lg"],flex:k?"1 1 45%":"1 1 100%",m:k?"left"===l?H?"0 sm sm xs":"0 xs sm sm":H?"0 xs sm sm":"0 sm sm xs":void 0,p:k?"0 sm":"sm sm",order:M,children:(0,s.jsxs)(r.so,{w:"100%",h:"100%",justify:"space-between",align:"center",direction:"left"!==l&&k?"row-reverse":"row",children:[(0,s.jsxs)(r.so,{h:"100%",align:"center",direction:"left"!==l&&k?"row-reverse":"row",children:[I>360&&!k&&(0,s.jsx)(p.p,{id:t.id,size:32,m:"left"===l?"0 sm 0 0":"0 0 0 sm"}),(0,s.jsxs)(r.so,{direction:"column",gap:"xs",align:"left"!==l&&k?"flex-end":"flex-start",ml:"sm",children:[(0,s.jsxs)(r.so,{gap:"sm",align:"center",h:"100%",grow:1,children:[(0,s.jsx)(r.EY,{font:"display.medium",lineHeight:"20px",lineClamp:2,children:(0,s.jsx)(b.Rm,{team:t,short:!0})}),a&&(0,s.jsxs)(r.so,{align:"center",h:"100%",children:[(0,s.jsx)(f.A,{rating:a,format:"sideBox"}),(0,s.jsx)(x.D,{type:d?y.J.AverageRatingTeam:y.J.AverageRating,rating:a,renderImage:e=>(0,s.jsx)(p.p,{id:t.id,...e})})]})]}),P&&(0,s.jsxs)(r.so,{direction:"row",justify:"left"!==l&&k?"flex-end":"flex-start",align:"center",wrap:"wrap",children:[(0,s.jsxs)(r.EY,{font:"body.small",lineHeight:"16px",color:"onSurface.nLv3",children:[(0,s.jsx)(n.A,{id:w})," • "]}),"\xa0",(0,s.jsx)(r.EY,{font:"display.micro",fontWeight:700,lineHeight:"14px",children:_===u.k.Age?(0,s.jsxs)(s.Fragment,{children:[C," ",(0,s.jsx)(n.A,{id:"years_short",values:{n:Math.round("number"==typeof C?C:C.value)}})]}):_===u.k.MarketValue?(0,s.jsx)(v.o,{parsedMoney:(0,h.oaz)(C)}):_===u.k.Height?(0,s.jsx)(j.Z,{value:C,fromUnit:"cm"}):_===u.k.Distance?(0,s.jsxs)(s.Fragment,{children:[C," km"]}):void 0})]})]})]}),(0,s.jsxs)(r.so,{minW:"56px",w:"56px",direction:"column",justify:"center",align:"center",m:"xs",children:[(0,s.jsx)(r.EY,{font:"display.small",color:"onSurface.nLv1",children:i}),(0,s.jsx)(r.so,{w:"36px",h:"36px",br:"sm",backgroundColor:"neutral.highlight",justify:"center",align:"center",children:(0,s.jsx)(r._V,{w:"28px",h:"32px",src:o,alt:"Team jersey"})})]})]})})}function C(e){let{eventStatus:t,isConfirmed:a,shareButton:l,order:i}=e;return[h.XUj.Finished,h.XUj.InProgress].includes(t)?null:(0,s.jsxs)(r.so,{order:i,pt:"md",pb:"xs",px:"sm",w:"100%",justify:[l?"space-between":"center","space-between"],align:"center",children:[(0,s.jsx)(r.EY,{font:"display.medium",lineHeight:"24px",children:(0,s.jsx)(n.A,{id:a?"football_confirmed_lineups":"football_possible_lineups"})}),l]})}var _=a(72745),k=a(28349),M=a(81278),P=a(62859),I=a(16620),H=a(48886),L=a(26331),A=a(73088),V=a(61836),R=a(95543),z=a(87827);let O=e=>{var t;let{player:a,rating:l}=e;return(0,s.jsx)(r.so,{position:"absolute",top:"33px",children:(0,s.jsx)(z.G,{rating:l,format:"box",decimalPoints:(null==(t=a.statistics)?void 0:t.rating)?void 0:2,size:"sm",isOnColor:!0})})};var T=a(53192);let E=e=>{var t,a;let{chipType:l,player:i}=e,n=null==(a=i.player)||null==(t=a.country)?void 0:t.alpha2;return(0,s.jsxs)(r.so,{p:"xxs",br:"xxs",bg:"onColor.primary",elevation:2,justify:"center",align:"center",position:"absolute",top:"31px",children:[l===u.k.Club&&(0,s.jsx)(p.p,{id:i.teamId,size:16}),l===u.k.Nationality&&(n?(0,s.jsx)(T.w,{alpha2:n,size:16}):(0,s.jsx)(r.az,{w:"lg",h:"lg",bg:"neutral.default",br:"50%"}))]})};var N=a(19558);function G(e){let{player:t,event:a,chipType:o,lineupsType:c,hasRating:d}=e,u=(0,N.lV)(t,c),f=(()=>{var e,a,s,i;switch(o){case l.k.Age:return null==(e=t.player)?void 0:e.dateOfBirthTimestamp;case l.k.MarketValue:return null==(a=t.player)?void 0:a.proposedMarketValueRaw;case l.k.Height:return null==(s=t.player)?void 0:s.height;case l.k.Distance:return null==(i=t.statistics)?void 0:i.kilometersCovered;default:return}})();return o===l.k.Performance?d?(0,s.jsx)(O,{player:t,rating:u}):null:[l.k.Club,l.k.Nationality].includes(o)?(0,s.jsx)(E,{chipType:o,player:t}):(0,s.jsx)(r.so,{border:"onColor.primary",minW:"24px",maxH:"16px",justify:"center",align:"center",px:"xs",bg:"surface.s1",position:"absolute",top:"34px",children:(0,s.jsx)(r.EY,{font:"assistive.default",lineHeight:"16px",color:f?void 0:"onSurface.nLv3",style:{textWrap:"nowrap"},children:f?(0,s.jsxs)(s.Fragment,{children:[o===l.k.Age&&(0,s.jsxs)(s.Fragment,{children:[(0,i.Dr)(f,a.startTimestamp)," ",(0,s.jsx)(n.A,{id:"years_shorter",values:{n:(0,i.Dr)(f,a.startTimestamp)}})]}),o===l.k.MarketValue&&(0,s.jsx)(v.o,{parsedMoney:(0,h.oaz)(f)}),o===l.k.Height&&(0,s.jsx)(j.Z,{value:f,fromUnit:"cm"}),o===l.k.Distance&&(0,s.jsx)(s.Fragment,{children:"".concat((0,R.M)(f,1)," km")})]}):"-"})})}var Z=a(84942);function F(e){let t=(0,Z.z)(e.player,!0);return(0,s.jsxs)(r.EY,{font:"table.small",lineHeight:"12px",color:"onColor.primary",align:"center",mt:"md",px:"xs",w:"100%",children:[(0,s.jsx)(r.EY,{font:"table.small",lineHeight:"12px",color:"onColor.secondary",display:"inline-block",mr:"xxs",children:e.jerseyNumber}),e.captain?"(c) ".concat(t):t]})}var B=a(54863);let D=(0,g.forwardRef)((e,t)=>{let a=(0,M.useRouter)(),l=(0,L.A)(),{location:i,event:n,leftTeam:o,rightTeam:f}=(0,g.useContext)(P.y$),{isDesktop:p}=(0,k.$c)(),{openEventPlayerStatistics:m}=(0,I.d)(),{lineups:x,leftFormation:y,rightFormation:j,playerOfTheMatchId:v,shareButton:b}=e,S=n.tournament.category.sport.slug,R=n.status.type===h.XUj.NotStarted&&S===h.QCR.Football,z=p&&i===P.cb.EventPage,[O,T]=(0,g.useState)(u.k.Performance),[E,Z]=(0,B.ax)(x);if(!y||!j)return null;let D=(0,N.ZB)(y,j,x.left.players,x.right.players,n.startTimestamp),Y=x.left.players.some(e=>!!e.avgRating)||x.right.players.some(e=>!!e.avgRating),Q=x.left.players.some(e=>{var t;return!!(null==(t=e.statistics)?void 0:t.kilometersCovered)})||x.right.players.some(e=>{var t;return!!(null==(t=e.statistics)?void 0:t.kilometersCovered)}),W=[...y||[],...j||[]].some(e=>e.some(e=>{var t;return null==(t=e.statistics)?void 0:t.rating})),U=n.status.type===h.XUj.NotStarted,K=S===h.QCR.Football?n.status.type===h.XUj.NotStarted?Y:W:void 0,$=n.status.type===h.XUj.Finished||e.confirmed?u.V.Confirmed:u.V.Possible,X=c.wf.includes(O),q=e=>{e.player.disabled||(R||n.hasEventPlayerStatistics?m({event:n,player:e.player},H._.Lineups):a.push(A.z.getTranslatedRoute(l,"player",{id:e.player.id,slug:e.player.slug,sport:S}).route))};return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)(r.az,{px:z?"sm":void 0,children:[(0,s.jsx)(C,{isConfirmed:e.confirmed,eventStatus:n.status.type,shareButton:b,order:z?1:2}),(0,s.jsx)(d,{isNational:!!n.homeTeam.national&&!!n.awayTeam.national,eventTimestamp:n.startTimestamp,onTabChange:e=>{(0,V.ke)({action:"click",location:"event_lineups",type:e===u.k.MarketValue?"market_value":e}),T(e)},order:z?2:1,isHorizontalLayout:!!z,hasDistance:Q})]}),(0,s.jsxs)(r.so,{ref:t,position:"relative",w:"100%",direction:z?"row":"column",justify:"space-between",wrap:"wrap",children:[(0,s.jsx)(w,{team:o,teamSide:h.cxP.Left,formation:x.left.formation,jersey:x.leftJerseyUrls.player,chipType:O,avgRating:E,avgData:X?D[O].leftTeamValue:void 0,avgMessageId:X?D[O].messageId:void 0,isHorizontalLayout:z,isNotStarted:U,order:3}),(0,s.jsx)(_.A,{teamSide:h.cxP.Left,playerFormation:y,incidents:e.incidents,playerOfTheMatchId:v,lineupsType:$,playerCharacteristic:O,isHorizontalLayout:z,hasRatings:K,event:n,order:z?4:3,getPlayerCharacteristicLabel:G,getTranslatedPlayerName:F,onPlayerClick:q}),(0,s.jsx)(_.A,{teamSide:h.cxP.Right,playerFormation:j,incidents:e.incidents,playerOfTheMatchId:v,lineupsType:$,playerCharacteristic:O,isHorizontalLayout:z,hasRatings:K,event:n,order:z?5:4,getPlayerCharacteristicLabel:G,getTranslatedPlayerName:F,onPlayerClick:q}),(0,s.jsx)(w,{team:f,teamSide:h.cxP.Right,formation:x.right.formation,jersey:x.rightJerseyUrls.player,chipType:O,avgRating:Z,avgData:X?D[O].rightTeamValue:void 0,avgMessageId:X?D[O].messageId:void 0,isHorizontalLayout:z,isNotStarted:U,order:z?3:5})]})]})})},79853:(e,t,a)=>{a.d(t,{K:()=>o});var s=a(21377),l=a(55729),i=a(45860),r=a(62859),n=a(30720);function o(e){let t=(0,l.useContext)(r.y$),a=e||t.event,{data:o,error:c}=(0,i.Ay)(s.bnp.managers(a.id)),[d,u]=(0,n.A)(o,"homeManager","awayManager",a),[f,p]=(0,n.A)(o,"homeManagerName","awayManagerName",a);return{managers:{leftManager:d,leftManagerName:f,rightManager:u,rightManagerName:p},error:c}}},83471:(e,t,a)=>{a.d(t,{k:()=>s.k});var s=a(25766)},85306:(e,t,a)=>{a.d(t,{K:()=>s});var s=function(e){return e.Position="position",e.Rating="rating",e.Notes="notes",e.ExpectedGoals="expectedGoals",e}({})},86876:(e,t,a)=>{a.d(t,{A:()=>i});var s=a(6029),l=a(39895);function i(e){return(0,s.jsx)(l.A,Object.assign({width:16,height:16,viewBox:"0 0 16 16"},e,{children:(0,s.jsx)("path",{d:"M4.75 5.44043H5.5V1.91992H6.25V7L7 5.5L7.75 6L6.5 9L5.5 10V15H1.75V10L1 8.06543V2.32715H1.75V5.44043H2.5V1.5L3.25 1.47754V5.44043H4V1H4.75V5.44043ZM12 5.44043H12.75V1.47754L13.5 1.5V5.44043H14.25V2.32715H15V8.06543L14.25 10V15H10.5V10L9.5 9L8.25 6L9 5.5L9.75 7V1.91992H10.5V5.44043H11.25V1H12V5.44043Z",fill:e.fill})}))}},94493:(e,t,a)=>{a.d(t,{w:()=>o});var s=a(6029),l=a(90248),i=a(62859),r=a(50677),n=a(27892);let o=e=>{let{id:t,children:a}=e;return(0,s.jsx)(i.Ws.Consumer,{children:e=>{let i=(0,n.O)(r,t,e);return(0,s.jsx)(l.A,{id:i,children:e=>i===String(e)?null:"function"==typeof a?a(e):(0,s.jsx)(s.Fragment,{children:e})})}})}},98899:(e,t,a)=>{a.d(t,{Di:()=>d,QC:()=>o,dv:()=>i,fS:()=>c,iF:()=>u,jf:()=>r,rt:()=>l});var s=a(21377);let l=[s.QCR.Tennis,s.QCR.Darts],i=[s.QCR.Football,s.QCR.IceHockey,s.QCR.Handball,s.QCR.Futsal,s.QCR.Minifootball,s.QCR.Waterpolo,s.QCR.Floorball,s.QCR.Bandy],r=[...l,s.QCR.Cricket],n=[s.QCR.AussieRules,s.QCR.Basketball,s.QCR.Volleyball,s.QCR.TableTennis,s.QCR.Badminton,s.QCR.BeachVolley],o=[s.QCR.Basketball,s.QCR.AussieRules],c=[s.QCR.IceHockey,s.QCR.Floorball,s.QCR.Bandy];function d(e){return n.includes(e)}let u=e=>"yellow"===e?"yellowCard":"red"===e?"redCard":"yellowRed"===e?"yellowRed":void 0},99586:(e,t,a)=>{a.d(t,{C:()=>o});var s=a(99452),l=a.n(s),i=a(5326),r=a(85306),n=a(48886);function o(e,t,a,s){let o=t.stat,c=t.dir,d=[],u=[];if(o.value===r.K.Position&&(d.push(e=>i.EN[s].indexOf(e.position)),u.push(t.dir)),o.percentageOnly&&(d.push(e=>{let t=e.statistics&&o.madesValue?e.statistics[o.madesValue]:0,a=e.statistics&&o.attemptsValue?e.statistics[o.attemptsValue]:0;return t&&a?t/a:0}),u.push(t.dir)),o.madesValue){let e=o.madesValue;if(d.push(t=>{var a,s;return null!=(s=null==(a=t.statistics)?void 0:a[e])?s:0}),u.push(c),o.attemptsValue&&o.reverseSecondCompare){let e=o.attemptsValue;d.push(t=>{var a,s;return null!=(s=null==(a=t.statistics)?void 0:a[e])?s:0}),u.push(c===n.U.ASC?n.U.DESC:n.U.ASC)}}let f=o.compareValue;return f&&(d.push(e=>{var t,a;return null!=(a=null==(t=e.statistics)?void 0:t[f])?a:0}),u.push(c)),d.push(e=>{var t,a;return null!=(a=null==(t=e.statistics)?void 0:t[o.value])?a:0}),u.push(c),d.push(e=>{var t,s;return null!=(s=null==(t=e.statistics)?void 0:t[a.value])?s:0}),u.push(n.U.DESC),d.push(e=>{var t;return null!=(t=e.player.shortName)?t:""}),u.push(n.U.ASC),l()(e,d,u)}}}]);