!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},a=(new e.Error).stack;a&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[a]="fa016794-c472-4392-9c94-7b441a8ea0bd",e._sentryDebugIdIdentifier="sentry-dbid-fa016794-c472-4392-9c94-7b441a8ea0bd")}catch(e){}}();"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9264],{5961:(e,a,t)=>{t.d(a,{IJ:()=>h});let o=(e,a)=>a?{0:e?"var(--graphics-terrain-footballLineups)":"var(--heatmap-hm1)",.1:"var(--heatmap-hm2)",.35:"var(--heatmap-hm3)",.8:"var(--heatmap-hm4)",1:"var(--heatmap-hm5)"}:{0:"#f8d496",.05:"#fee644",.25:"#ff9000",.4:"#fc6800",.6:"#f00800",.75:"#cc0600",.85:"#b00400",.99:"#940000",1:"#780000"},s=e=>e?{MAX_POINT_VALUE:6,WIDTH:160,HEIGHT:100}:{MAX_POINT_VALUE:9,WIDTH:500,HEIGHT:363};function r(e,a){let t=[];for(let o=0;o2&&void 0!==arguments[2]?arguments[2]:10,o=[],s=1/t;for(let t=0;t<=e;t+=s)o.push(Math.exp(-t*t/(2*a*a)));return o},n=(e,a,t,o)=>Math.sqrt(Math.pow(t-e,2)+Math.pow(o-a,2)),u=(e,a,t)=>{let{width:o,height:s,influenceRadius:l,precisionLevel:u=10}=t,i=r(o,s);for(let t=0;t{let{height:o,width:s,gradientScaleFactor:r,gradientRange:l}=t,n=document.createElement("canvas");n.height=o,n.width=s;let u=n.getContext("2d");if(!u)throw Error("No heatmap canvas context found");let i=u.getImageData(0,0,s,o),c=i.data;for(let t=0;t{let o=Math.round(a),s=Math.round(t),r=Math.round(e);return ro?r:o:s},p=(e,a)=>{let{width:t,height:o,isFlipped:s=!1,pointMaximum:l=100,widthScaleFactor:n=1.6,heightScaleFactor:u=1,pointValue:i=1}=a,p=r(t,o);return e.forEach(e=>{let a=s?l-e.x:e.x,r=s?e.y:l-e.y,d=c(a*n,0,t-1),h=c(r*u,0,o-1);p[d][h]+=i*(e.count||1)}),p},d=(e,a,t,n,c)=>{let{containerId:d,isAway:h=!1,width:v,height:g,numberOfMatches:m,shootMapType:f=1,precisionLevel:k=10,isTransparentBackground:y}=t,{HEIGHT:G,WIDTH:S,MAX_POINT_VALUE:b}=s(e),V=document.getElementById(d);if(!V)throw Error("No DOM container element for HeatMap provided");let _=e?function(e){let a=14;return e&&e>1&&(a=Math.round((1-Math.pow(e/38,.28))*10+4)),a}(m||1):function(e){let a=20;return e>82?Math.round((1-Math.pow(e/110,.1))*8+12):Math.round((1-Math.pow(e/82,.1))*8+12)}(m||1),T=e?p(a,{isFlipped:h,width:S,height:G}):function(e,a,t,o){let s=r(t+1,o+1);return e.forEach(e=>{let{x:t,y:o,made:r,missed:l}=e;switch(a){case 1:s[t- -250][o- -40]+=r+l;break;case 2:s[t- -250][o- -40]+=r;break;default:s[t- -250][o- -40]+=l}}),s}(a,f,S,G);!e&&m&&m>5&&function(e,a,t,o){let s,r,l,n,u,i;for(n=0;n<=100;n++){for(s=0,r=0,l=0,u=2;u<=10;u++)++l,s+=o[n][80-u],r+=o[n][80+u];for(i=0;i<=2;i++)o[n][e+i]=(s+r)/(2*l),o[n][e-i]=(s+r)/(2*l)}}(80,2,0,T);let C=function(e,a,t,s,r){let l=document.createElement("canvas");l.width=1,l.height=1e3;let n=l.getContext("2d");if(!n)throw Error("No color gradient context for heatmap found");let u=n.createLinearGradient(0,0,1,1e3),i=o(r,t);return Object.keys(i).forEach(e=>{let t=i[e],o=Number(e);s&&o<.2?u.addColorStop(o,a.setAlpha(t,o+.2)):u.addColorStop(o,a.setAlpha(t,1))}),n.fillStyle=u,n.fillRect(0,0,1,e),n.getImageData(0,0,1,e).data}(1e3,n,e,y,c),P=i(u(T,l(_,_/3,k),{width:S,height:G,influenceRadius:_,precisionLevel:k}),C,{height:G,width:S,gradientScaleFactor:1e3/b,gradientRange:1e3}),A=document.createElement("canvas");A.height=g,A.width=v;let R=A.getContext("2d");if(!R)throw Error("Heatmap canvas context not found");R.drawImage(P,0,0,v,g),V.innerHTML="",V.appendChild(A)};function h(e,a,t,o){try{d(!0,e,a,t,o)}catch(e){console.error("In render football heatmap",e)}}},9489:(e,a,t)=>{t.d(a,{R:()=>i});var o=t(6029),s=t(55729),r=t(90248),l=t(62859);let n=JSON.parse('{"football":{"attackGroup":"attacking","attackingGroup":"football_attacking","cardsGroup":"cards","defenceGroup":"defending","defensiveDefendingGroup":"defensiveDefending","defendingGroup":"defending","duelsGroup":"football_duels","goalkeeperGroup":"goalkeeping","goalkeeperOtherGroup":"goalkeeperOther","goalkeepingGroup":"goalkeeping","matchesGroup":{"id":"matches","values":{"sport":"football"}},"otherGroup":"miscellaneous_statistics","otherPerGameGroup":"other_per_game","passesGroup":"pass_accuracy","passingGroup":"passing","summaryGroup":"statistics_general","offensiveGroup":"offensive","creativityGroup":"player_ability_creativity","defensiveGroup":"defensive","shootingGroup":"football_shooting_category","teamPlayGroup":"football_team_play_category","additionalGroup":"football_additional_category"},"basketball":{"defenseGroup":"defending","extraGroup":"extra","matchesGroup":{"id":"matches","values":{"sport":"basketball"}},"offenseGroup":"americanFootball.offense","otherGroup":"miscellaneous_statistics","pointsGroup":"points","reboundsGroup":"rebounds","summaryGroup":"statistics_general","pointsPerGameGroup":"points_per_game","reboundsPerGameGroup":"rebounds_per_game","otherPerGameGroup":"other_per_game"},"american-football":{"defensiveGroup":"defensive","fieldGoalKickersGroup":"fieldGoalKickers","fumblesGroup":"fumbles","interceptionsGroup":"football_interceptions","kickReturnsGroup":"kickReturns","kickingGroup":"kicking","kickoffGroup":"kickoff","matchesGroup":{"id":"matches","values":{"sport":"american_football"}},"passingGroup":"passing","puntReturnsGroup":"puntReturns","puntingGroup":"punting","receivingGroup":"receiving","rushingGroup":"rushing","gamesGroup":"am_football_games_tab"},"ice-hockey":{"attackingGroup":"attacking","goaliesGroup":"legend_hockey_goalies","goalkeeperGroup":"goalkeeping","goalkeepingGroup":"goalkeeping","matchesGroup":{"id":"matches","values":{"sport":"ice_hockey"}},"otherGroup":"miscellaneous_statistics","penaltyGroup":"penalty","pointsGroup":"points","savesGroup":"player_ability_saves","scoringGroup":"scoring","skatersGroup":"legend_hockey_skaters","summaryGroup":"statistics_general","timeGroup":"time","overallGroup":"ice_hockey_stat_category_overall","defensiveGroup":"ice_hockey_stat_category_defensive","powerPlayGroup":"ice_hockey_stat_category_power_play","shorthandedGroup":"ice_hockey_stat_category_shorthanded","evenGroup":"ice_hockey_stat_category_even_strength","faceOffGroup":"ice_hockey_stat_category_faceoff"},"handball":{"attackingGroup":"attacking","goalkeepersGroup":"stats.goalkeepers","goalkeepingGroup":"goalkeeping","otherGroup":"miscellaneous_statistics","playersGroup":"players"},"baseball":{"battingGroup":"baseball_group_batting","fieldingGroup":"baseball_group_fielding","pitchingGroup":"baseball_group_pitching"},"futsal":{"matchesGroup":{"id":"matches","values":{"sport":"futsal"}},"summaryGroup":"statistics_general"},"tennis":{"serve":"tennis_service_stat","pressureMetrics":"tennis_pressure_metrics","miscellaneous_statistics":"miscellaneous_statistics"}}');var u=t(27892);let i=e=>{let{id:a}=e,t=(0,s.useContext)(l.Ws);return(0,o.jsx)(r.A,{id:(0,u.O)(n,a,t),values:(0,u.B)(n,a,t)})}},35474:(e,a,t)=>{t.d(a,{$i:()=>m,C2:()=>g,Kk:()=>v,Rs:()=>d,Tw:()=>f,Ur:()=>p,dw:()=>y,iw:()=>k});var o=t(6029),s=t(21377);t(4967);var r=t(95816),l=t.n(r),n=t(94604),u=t(98516),i=t(73011),c=t(65078);let p=e=>{let{event:a}=e,{leftTeam:t,rightTeam:r,leftScore:l,rightScore:u}=(0,c.mJ)(a.id,{event:a}),i=(0,c.g3)(a);return t&&r?a.status.type===s.XUj.NotStarted?(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(n.Rm,{team:t,short:!0})," "," ".concat(i?"@":"-"," "),(0,o.jsx)(n.Rm,{team:r,short:!0})]}):i?(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(n.Rm,{team:t,short:!0})," @ ",(0,o.jsx)(n.Rm,{team:r,short:!0}),", ".concat(l.display," - ").concat(u.display)]}):(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(n.Rm,{team:t,short:!0})," ".concat(l.display," - ").concat(u.display," "),(0,o.jsx)(n.Rm,{team:r,short:!0})]}):null};function d(e,a){if(!a.value||e[a.value]||!a.hideIfNone){if(a.madesValue&&a.attemptsValue){var t;let o=Number(e[a.madesValue])||0,s=Number(e[a.attemptsValue])||0,r=0===s?"-":(0,u.M)(o/s*100,null!=(t=a.percentageDecimals)?t:0);return void 0!==a.percentageDecimals?"-"===r?"0":"".concat(r):a.percentageOnly?"-"===r?"0%":"".concat(r,"%"):a.hidePercentage||0===s?0===s&&o>0?o.toString():"".concat(o,"/").concat(s):a.hideAttempts?"".concat(o," (").concat(r,"%)"):"".concat(o,"/").concat(s," (").concat(r,"%)")}if(a.secondaryValue)return"".concat(e[a.value]||0," (").concat(e[a.secondaryValue]||0,")");if(a.textualDescription){let t="";for(let o of Object.keys(a.textualDescription))e[a.value][o]>0&&(t=t.concat("".concat(a.textualDescription[o],": ").concat(e[a.value][o],"\n")));return t.length?t:"-"}if(a.replacementValue&&"number"==typeof e[a.replacementValue])return e[a.replacementValue].toString();if(a.value){let t=e[a.value];return t?"string"!=typeof t?t%1!=0&&["expectedGoals","expectedAssists","goalsPrevented"].includes(a.value)?(0,u.M)(t,2):t%1!=0?(0,u.M)(t,1):t.toString():t:"0"}}}function h(e,a){return 0===a?0:e/a}function v(e){let{passingCompletions:a,passingAttempts:t,passingYards:o,passingTouchdowns:s,passingInterceptions:r}=e;return void 0!==a&&void 0!==t&&void 0!==o&&void 0!==s&&void 0!==r}function g(e){let{passingCompletions:a,passingAttempts:t,passingYards:o,passingTouchdowns:s,passingInterceptions:r}=e,l=(h(null!=a?a:0,null!=t?t:0)-.3)*5;l=Math.max(l=Math.min(l,2.375),0);let n=(h(null!=o?o:0,null!=t?t:0)-3)*.25;n=Math.max(n=Math.min(n,2.375),0);let u=20*h(null!=s?s:0,null!=t?t:0);u=Math.max(u=Math.min(u,2.375),0);let i=2.375-25*h(null!=r?r:0,null!=t?t:0);return(l+n+u+(i=Math.max(i=Math.min(i,2.375),0)))/6*100}function m(e){let a={...e,minutesPlayed:e.minutesPlayed||e.secondsPlayed?e.minutesPlayed?"".concat(e.minutesPlayed,"'"):"".concat(Math.round(e.secondsPlayed/60),"'"):0};v(e)&&(a.passingRating=g(e)),e.secondsPlayed&&(a.timeOnIce="".concat(Math.floor(e.secondsPlayed/60),":").concat("0".concat(e.secondsPlayed%60).slice(-2)));let t=(e.duelWon||0)+(e.duelLost||0);return a.totalAerialDuels=(e.aerialWon||0)+(e.aerialLost||0),a.totalGroundDuels=t-a.totalAerialDuels,a.groundWon=(e.duelWon||0)-(e.aerialWon||0),a}function f(e,a,t,o,s){let r=e.compareValue&&(void 0!==a[e.compareValue]||void 0!==t[e.compareValue])?e.compareValue:e.replacementValue||e.value,l=null==o?void 0:o[r],n=null==s?void 0:s[r];return(l===n&&(r=e.compareSecondValue&&(void 0!==a[e.compareSecondValue]||void 0!==t[e.compareSecondValue])?e.compareSecondValue:e.replacementValue||e.value,l=e.reverseSecondCompare?null==s?void 0:s[r]:null==o?void 0:o[r],n=e.reverseSecondCompare?null==o?void 0:o[r]:null==s?void 0:s[r]),void 0===l&&void 0!==n)?2:void 0===n&&void 0!==l?1:l===n?0:(l||0)>(n||0)?1:2}function k(e,a,t){return t!==s.QCR.Football?[(null==a?void 0:a.filter(a=>a&&a.player.id!==e).map(e=>{var a;return{player:e.player,rating:null==(a=e.statistics)?void 0:a.rating,statistics:e.statistics,position:e.position}}))||[],[]]:a?a.reduce((a,t)=>{let[o,s]=a;if(!l()(t.statistics)&&t.player.id!==e){var r;let e={player:t.player,rating:null==(r=t.statistics)?void 0:r.rating,statistics:t.statistics,position:t.position};t.substitute?s.push(e):o.push(e)}return[o,s]},[[],[]]):[[],[]]}function y(e,a,t){return!t||!!i.qT.includes(e)&&(Object.values(t).filter(e=>!!e).length?a.reduce((e,a)=>{let o=d(t,a);return e&&("0"===o||"0/0"===o||"0 (0)"===o||!o)},!0):!a.reduce((e,a)=>e||Object.keys(t).includes(a.value),!1))}},61185:(e,a,t)=>{t.d(a,{A:()=>c});var o=t(6029),s=t(33144),r=t(21377),l=t(41249),n=t(55729),u=t(62859);function i(e){let{team:a,side:t,activeTeam:r,isBackgroundInverse:u,onTeamClick:i}=e,c=(0,n.useCallback)(()=>i(t),[i,t]),p=r===t;return(0,o.jsx)(l.so,{h:"32px",grow:1,justify:"center",align:"center",bg:p?"primary.highlight":u?"surface.s1":"surface.s2",br:"sm",onClick:c,cursor:"pointer",style:{userSelect:"none"},"data-testid":t,children:(0,o.jsx)(s.p,{size:24,id:a.id,name:a.name})})}function c(e){let{activeTeam:a,isBackgroundInverse:t,onTeamClick:s,...c}=e,{leftTeam:p,rightTeam:d}=(0,n.useContext)(u.y$);return(0,o.jsxs)(l.so,{justify:"space-between",gap:"lg",...c,"data-testid":"team-pillows-selector",children:[(0,o.jsx)(i,{team:p,side:r.cxP.Left,activeTeam:a,onTeamClick:s,isBackgroundInverse:t}),(0,o.jsx)(i,{team:d,side:r.cxP.Right,activeTeam:a,onTeamClick:s,isBackgroundInverse:t})]})}},67717:(e,a,t)=>{t.d(a,{n:()=>o.A});var o=t(61185)},73011:(e,a,t)=>{t.d(a,{bU:()=>tS,qT:()=>ty,Bx:()=>tG,mR:()=>tV,ji:()=>tb,nm:()=>t_});var o=t(21377);let s={value:"passing",madesValue:"passingCompletions",attemptsValue:"passingAttempts",short:"C/A",sortKey:"passingCompletions",translationKey:"legend_am_football_completions_attempts"},r={value:"passingYards",short:"YDS"},l={value:"passingNetYards"},n={value:"passingTouchdowns",short:"TD"},u={value:"passingInterceptions",short:"INT"},i={value:"passingYardsPerAttempt",short:"AVG"},c={value:"passingSacked",secondaryValue:"passingSackYards"},p={value:"passingRating",short:"RTG"},d={value:"passingAirYards",short:"AIR"},h={value:"passingDroppedPasses",short:"DRO"},v={value:"passingFirstDowns",short:"1DN"},g={value:"rushingAttempts",short:"CAR"},m={value:"rushingYards",short:"YDS"},f={value:"rushingTouchdowns",short:"TD"},k={value:"rushingYardsPerAttempt",short:"AVG"},y={value:"rushingLongest",short:"LNG"},G={value:"rushingFirstDowns",short:"1DN"},S={value:"rushingRedZoneAttempts",short:"RZA"},b={value:"fumbleFumbles",short:"FUM"},V={value:"fumbleLost",short:"LST"},_={value:"fumbleRecovery",short:"REC"},T={value:"defensiveForcedFumbles",short:"FF"},C={value:"fumbleTouchdownReturns",short:"FTD"},P={value:"fumbleOpponentFumbleRecovery",short:"ROP"},A={value:"fumbleOwnFumbleRecovery",short:"ROW"},R={value:"fumbleOutOfBounds",short:"OOB"},w={value:"receivingReceptions",short:"REC"},M={value:"receivingTargets",short:"TRG"},I={value:"receivingYards",short:"YDS"},O={value:"receivingTouchdowns",short:"TD"},D={value:"receivingYardsPerReception",short:"AVG"},F={value:"receivingLongest",short:"LNG"},N={value:"receivingYardsAfterCatch",short:"YAC"},x={value:"receivingDroppedPasses",short:"DRO"},B={value:"receivingRedZoneTargets",short:"RZT"},L={value:"defensiveCombineTackles",short:"TACK"},K={value:"defensiveAssistTackles",short:"AST"},E={value:"defensiveSacks",short:"SACK"},H={value:"defensivePassesDefensed",short:"PD"},Q={value:"defensiveInterceptions",short:"INT"},Y={value:"defensiveInterceptionsTouchdowns",short:"TD"},W={value:"defensiveInterceptionsYards",short:"YDS"},j={value:"defensiveBattedPasses",short:"BAT"},U={value:"defensiveDefensiveTargets",short:"TGT"},Z={value:"defensiveTacklesForLostYards",short:"TFL"},X={value:"interceptionReturnsAverageYards",short:"AVG"},q={value:"interceptionReturnsLongest",short:"LNG"},J={value:"kickReturnsTotal",short:"NUM"},$={value:"kickReturnsYards",short:"YDS"},z={value:"kickReturnsAverageYards",short:"AVG"},ee={value:"kickReturnsTouchdowns",short:"TD"},ea={value:"kickReturnsLong",short:"LNG"},et={value:"kickReturnsFairCatches",short:"FC"},eo={value:"puntingTotal",short:"NUM"},es={value:"puntingYards",short:"YDS"},er={value:"puntingYardsPerPuntAvg",short:"AVG"},el={value:"puntingInside20",short:"IN20"},en={value:"puntingLongest",short:"LNG"},eu={value:"puntingAverageHangTime",short:"AHT"},ei={value:"puntingHangTime",short:"HT"},ec={value:"kickingFg",madesValue:"kickingFgMade",attemptsValue:"kickingFgAttempts",short:"FG",sortKey:"kickingFgMade"},ep={value:"kickingExtraPoints",madesValue:"kickingExtraMade",attemptsValue:"kickingExtraAttempts",short:"XP",sortKey:"kickingExtraMade"},ed={value:"kickingFgLong",short:"LNG"},eh={value:"kickingTotalPoints",short:"PTS"},ev={value:"kickoffEndZone",short:"TB"},eg={value:"kickoffOutOfBounds",short:"OOB"},em={value:"kickoffInside20",short:"IN20",translationKey:"legend_am_foot_kicks_inside_twenty"},ef=[g,m,f,y,k,{value:"rushingYardsAfterContact"},G,S],ek=[b,V,_,T,C,R,A,P],ey=[w,M,I,O,F,D,N,{value:"receivingFirstDowns"},x,B],eG=[L,K,E,H,Q,Y,W,j,U,Z],eS=[J,$,ee,z,ea,et],eb=[eo,es,{value:"puntingNetYards"},en,{value:"puntingBlocked"},{value:"puntingTouchbacks"},el,er,eu,ei],eV=[ec,ep,{value:"kickingFgBlocked"},ed,eh,ev,eg,em],e_=[{value:"puntReturnsTotal",short:"NUM"},{value:"puntReturnsYards",short:"YDS"},{value:"puntReturnsAverageYards",short:"AVG"},{value:"puntReturnsTouchdowns",short:"TD"},{value:"puntReturnsLong",short:"LNG"},{value:"puntReturnsFairCatches",short:"FC"}],eT=[Q,W,Y,X,q],eC={passingGroup:[s,r,l,{value:"passingLongest"},n,u,i,c,d,h,v],rushingGroup:ef,receivingGroup:ey,defensiveGroup:eG,interceptionsGroup:eT,fumblesGroup:ek,kickingGroup:eV,puntingGroup:eb,kickReturnsGroup:eS,puntReturnsGroup:e_},eP=e=>({passingGroup:[{...s,hidePercentage:!0,translationKey:"legend_am_football_completions_attempts"},r,n,u,i,p,d,h,v],rushingGroup:[g,m,f,k,y,G,S],receivingGroup:e?[w,I,O]:[w,M,I,O,D,F,x,B,N],defensiveGroup:[L,K,E,H,j,U,Z],interceptionsGroup:[Q,W,Y,X,q],fumblesGroup:[b,V,_,T,C,R,A,P],kickingGroup:[{...ec,hidePercentage:!0},{...ep,hidePercentage:!0},ed,eh,ev,eg,em],puntingGroup:[eo,es,er,el,en,eu,ei],kickReturnsGroup:[J,$,z,ee,ea,et],puntReturnsGroup:e_}),eA={passingGroup:[s,r,l,n,u,i,c,p,d,h,v],rushingGroup:ef,receivingGroup:ey,defensiveGroup:eG,interceptionsGroup:eT,fumblesGroup:ek,kickingGroup:eV,puntingGroup:eb,kickReturnsGroup:eS,puntReturnsGroup:e_},eR={pitchingGroup:[{value:"pitchingEarnedRunsAverage"},{value:"pitchingInningsPitched"},{value:"pitchingHits"},{value:"pitchingRuns"},{value:"pitchingEarnedRuns"},{value:"pitchingHomeRuns"},{value:"pitchingPitchesThrown"},{value:"pitchingBaseOnBalls"},{value:"pitchingStrikeOuts"},{value:"pitchingBattersFaced"},{value:"pitchingOuts"},{value:"pitchingBalls"},{value:"pitchingStrikes"},{value:"pitchingNote"}],battingGroup:[{value:"battingAtBats"},{value:"battingRuns"},{value:"battingHits"},{value:"battingDoubles"},{value:"battingTriples"},{value:"battingHomeRuns"},{value:"battingRbi"},{value:"battingBaseOnBalls"},{value:"battingStrikeOuts"},{value:"battingStolenBases"},{value:"battingCaughtStealing"},{value:"battingHitByPitch"},{value:"battingLeftOnBase"},{value:"battingSacBunts"},{value:"battingSacFlies"},{value:"battingAverage"},{value:"battingNote"},{value:"battingFlyOuts"},{value:"battingGroundOuts"}],fieldingGroup:[{value:"fieldingAssists"},{value:"fieldingPutOuts"},{value:"fieldingErrors"}]},ew={value:"minutesPlayed",compareValue:"secondsPlayed",short:"MIN"},eM={value:"position"},eI={value:"points",short:"PTS"},eO={value:"freeThrows",madesValue:"freeThrowsMade",attemptsValue:"freeThrowAttempts",compareValue:"freeThrowsMade",compareSecondValue:"freeThrowAttempts",reverseSecondCompare:!0},eD={...eO,sortKey:"freeThrowsMade"},eF={...eD,hidePercentage:!0,short:"FT",wideBoxScore:!0},eN={...eD,percentageOnly:!0,short:"FT%",wideBoxScore:!0,translationKey:"freeThrowsPercentage"},ex={value:"twoPt",madesValue:"twoPointsMade",attemptsValue:"twoPointAttempts",compareValue:"twoPointsMade",compareSecondValue:"twoPointAttempts",reverseSecondCompare:!0},eB={...ex,sortKey:"twoPointsMade"},eL={value:"threePt",madesValue:"threePointsMade",attemptsValue:"threePointAttempts",compareValue:"threePointsMade",compareSecondValue:"threePointAttempts",reverseSecondCompare:!0},eK={...eL,sortKey:"threePointsMade"},eE={...eK,hidePercentage:!0,short:"3P",wideBoxScore:!0},eH={...eK,percentageOnly:!0,short:"3P%",wideBoxScore:!0,translationKey:"legend_bball_three_points_pct"},eQ={value:"fieldGoals",madesValue:"fieldGoalsMade",attemptsValue:"fieldGoalAttempts",compareValue:"fieldGoalsMade",compareSecondValue:"fieldGoalAttempts",reverseSecondCompare:!0},eY={...eQ,sortKey:"fieldGoalsMade"},eW={...eY,hidePercentage:!0,short:"FG",wideBoxScore:!0},ej={...eY,translationKey:"fieldGoalsPercentage",percentageOnly:!0,short:"FG%",wideBoxScore:!0},eU={value:"rebounds",short:"REB"},eZ={value:"defensiveRebounds",short:"DREB"},eX={value:"offensiveRebounds",short:"OREB"},eq={value:"assists",short:"AST"},eJ={value:"turnovers",short:"TOV"},e$={value:"steals",short:"STL"},ez={value:"blocks",short:"BLK"},e0={value:"personalFouls",short:"PF"},e1={value:"plusMinus",hideIfNone:!0,short:"+/-",translationKey:"legend_bball_plus_minus"},e2={value:"pir",hideIfNone:!0,short:"PIR",translationKey:"legend_bball_performance_index_rating"},e7={summaryGroup:[ew],pointsGroup:[eI,eO,ex,eL,eQ],reboundsGroup:[eU,eZ,eX],otherGroup:[eq,eJ,e$,ez,e0,e1,e2]},e9={DEFAULT_GROUP_NAME:[eI,eU,eq,eJ,e$,ez]},e4={DEFAULT_GROUP_NAME:[ew,eI,eU,eq,e$,ez,e0,eJ,eX,eZ,eW,ej,eF,eN,eE,eH,e1,e2]},e6={summaryGroup:[eI,eU,eq,ew,eM],pointsGroup:[eI,eD,eB,eK,eY,eM],reboundsGroup:[eU,eZ,eX,eM],otherGroup:[eq,eJ,e$,ez,e0,eM,{value:"plusMinus",replacementValue:"pir"}]},e3={value:"minutesPlayed"},e5={value:"goals",short:"GLS"},e8={value:"expectedGoals",hideIfNone:!0},ae={value:"goalAssist"},aa={value:"expectedAssists",hideIfNone:!0},at={value:"position"},ao={value:"rating"},as={value:"saves"},ar={value:"goalsPrevented",hideIfNone:!0},al={value:"punches"},an={value:"totalKeeperSweeper",secondaryValue:"accurateKeeperSweeper",compareValue:"accurateKeeperSweeper",compareSecondValue:"totalKeeperSweeper"},au={value:"goodHighClaim"},ai={value:"touches"},ac={value:"accuratePass",madesValue:"accuratePass",attemptsValue:"totalPass",compareValue:"accuratePass",compareSecondValue:"totalPass"},ap={...ac,sortKey:"accuratePass"},ad={value:"keyPass"},ah={value:"totalCross",secondaryValue:"accurateCross",compareValue:"totalCross",compareSecondValue:"accurateCross"},av={value:"totalLongBalls",secondaryValue:"accurateLongBalls",compareValue:"totalLongBalls",compareSecondValue:"accurateLongBalls"},ag={value:"totalDuels",secondaryValue:"duelWon",compareValue:"totalDuels",compareSecondValue:"duelWon"},am={value:"totalGroundDuels",secondaryValue:"groundWon",compareValue:"totalGroundDuels",compareSecondValue:"groundWon"},af={value:"totalAerialDuels",secondaryValue:"aerialWon",compareValue:"totalAerialDuels",compareSecondValue:"aerialWon"},ak={value:"possessionLostCtrl"},ay={value:"fouls"},aG={value:"wasFouled"},aS={value:"totalOffside",hideIfNone:!0},ab={value:"totalClearance"},aV={value:"outfielderBlock"},a_={value:"interceptionWon"},aT={value:"totalTackle"},aC={value:"challengeLost"},aP={value:"penaltyConceded",hideIfNone:!0,translationKey:"penalty_goals_conceded"},aA={value:"errorLeadToAShot",hideIfNone:!0},aR={value:"errorLeadToAGoal",hideIfNone:!0},aw={value:"onTargetScoringAttempt"},aM={value:"shotOffTarget"},aI={value:"blockedScoringAttempt"},aO={value:"totalContest",secondaryValue:"wonContest",compareValue:"wonContest",compareSecondValue:"totalContest"},aD=[e3,e5,e8,ae,aa],aF=[ai,ac,ad,ah,av,{value:"bigChanceCreated",hideIfNone:!0}],aN=[am,af,ak,ay,aG,aS],ax=[ab,aV,a_,aT,aC,{value:"clearanceOffLine",hideIfNone:!0,translationKey:"clearance_off_line"},{value:"lastManTackle",hideIfNone:!0,translationKey:"last_man_tackle"},{value:"ownGoals",hideIfNone:!0}],aB=[...ax,aA,aR,aP],aL=[aw,aM,aI,aO,{value:"hitWoodwork",hideIfNone:!0},{value:"penaltyWon",hideIfNone:!0},{value:"penaltyMiss",hideIfNone:!0},{value:"bigChanceMissed",hideIfNone:!0},{value:"penaltyShootoutGoal",hideIfNone:!0},{value:"penaltyShootoutMiss",hideIfNone:!0}],aK={G:{summaryGroup:[e3,{...e5,hideIfNone:!0},{...e8,hideIfNone:!0},{...ae,hideIfNone:!0},{...aa,hideIfNone:!0}],goalkeeperGroup:[as,ar,al,an,au,{value:"savedShotsFromInsideTheBox",hideIfNone:!0},{value:"penaltySave",hideIfNone:!0},aA,aR,aP,{value:"penaltyShootoutSave",hideIfNone:!0}],passingGroup:aF,goalkeeperDefenceGroup:ax,goalkeeperDuelsGroup:[am,af,ay,aG,aS],attackGroup:aL},F:{summaryGroup:aD,attackGroup:aL,passingGroup:aF,duelsGroup:aN,defenceGroup:aB},M:{summaryGroup:aD,passingGroup:aF,attackGroup:aL,duelsGroup:aN,defenceGroup:aB},D:{summaryGroup:aD,defenceGroup:aB,duelsGroup:aN,passingGroup:aF,attackGroup:aL},default:{summaryGroup:aD,passingGroup:aF,duelsGroup:aN,attackGroup:aL,defenceGroup:aB}},aE={summaryGroup:[e5,ae,aT,ap,ag,am,af,e3,at,ao],attackGroup:[aw,e8,aM,aI,aO,{value:"notes",textualDescription:{hitWoodwork:"hitWoodwork",penaltyMiss:"penaltyMiss",penaltyWon:"penaltyWon",bigChanceMissed:"bigChanceMissed",penaltyShootoutGoal:"penaltyShootoutGoal",penaltyShootoutMiss:"penaltyShootoutMiss"}},at,ao],defenceGroup:[{value:"totalDefensiveActions"},ab,aV,a_,aT,aC,{value:"notes",textualDescription:{clearanceOffLine:"clearanceOffLine",lastManTackle:"lastManTackle",errorLeadToAShot:"errorLeadToAShot",errorLeadToAGoal:"errorLeadToAShot",ownGoals:"ownGoals",penaltyConceded:"penaltyConceded"}},at,ao],passingGroup:[ai,ac,ad,ah,av,{value:"notes",textualDescription:{bigChanceCreated:"bigChanceCreated"}},at,ao],duelsGroup:[ag,am,af,ak,ay,aG,{value:"totalOffside"},at,ao],goalkeeperGroup:[as,ar,al,an,au,{value:"notes",textualDescription:{savedShotsFromInsideTheBox:"savedShotsFromInsideTheBox",penaltySave:"penaltySave",errorLeadToAShot:"errorLeadToAShot",errorLeadToAGoal:"errorLeadToAGoal",penaltyConceded:"penaltyConceded"}},ao]},aH={value:"goals",short:"GLS"},aQ={value:"gkShots",short:"SHT"},aY={value:"goalkeeperEfficiencyPercentage",madesValue:"saves",attemptsValue:"gkShots",percentageOnly:!0,percentageDecimals:1,short:"SV%"},aW={...aY,sortKey:"goalkeeperEfficiencyPercentage"},aj={value:"saves",madesValue:"saves",attemptsValue:"gkShots",short:"SAV",compareValue:"saves",compareSecondValue:"gkShots",reverseSecondCompare:!0},aU={value:"gk7mSaves",short:"7MS"},aZ={value:"minutesPlayed",compareValue:"secondsPlayed",short:"MIN",hideIfNone:!0},aX={value:"gkGoalsConceded",short:"GOC",hideIfNone:!0},aq={value:"assists",short:"AST"},aJ={value:"steals",short:"STL"},a$={value:"shotAccuracy",madesValue:"goals",attemptsValue:"shotsTaken",percentageOnly:!0,percentageDecimals:0,short:"SH%"},az={...a$,sortKey:"shotAccuracy"},a0={value:"blockedShots",short:"BLK"},a1={value:"twoMinutePenalties",short:"2MP"},a2={goalkeepersGroup:[aj,{value:"gk7mSaves",attemptsValue:"gk7mShots",madesValue:"gk7mSaves",compareValue:"gk7mSaves",compareSecondValue:"gk7mShots",reverseSecondCompare:!0},{value:"gk6mSaves",attemptsValue:"gk6mShots",madesValue:"gk6mSaves",compareValue:"gk6mSaves",compareSecondValue:"gk6mShots",reverseSecondCompare:!0},{value:"gkPivotSaves",attemptsValue:"gkPivotShots",madesValue:"gkPivotSaves",compareValue:"gkPivotSaves",compareSecondValue:"gkPivotShots",reverseSecondCompare:!0},{value:"gk9mSaves",madesValue:"gk9mSaves",attemptsValue:"gk9mShots",compareValue:"gk9mSaves",compareSecondValue:"gk9mShots",reverseSecondCompare:!0},{value:"gkBreakthroughSaves",attemptsValue:"gkBreakthroughShots",madesValue:"gkBreakthroughSaves",compareValue:"gkBreakthroughSaves",compareSecondValue:"gkBreakthroughShots",reverseSecondCompare:!0},{value:"gkFastbreakSaves",attemptsValue:"gkFastbreakShots",madesValue:"gkFastbreakSaves",compareValue:"gkFastbreakSaves",compareSecondValue:"gkFastbreakShots",reverseSecondCompare:!0}],playersGroup:[{value:"goals",madesValue:"goals",attemptsValue:"shotsTaken",compareValue:"goals",compareSecondValue:"shotsTaken",reverseSecondCompare:!0},aq,{value:"goals7m",madesValue:"goals7m",attemptsValue:"shots7m",compareValue:"goals7m",compareSecondValue:"shots7m",reverseSecondCompare:!0},{value:"goals6m",madesValue:"goals6m",attemptsValue:"shots6m",compareValue:"goals6m",compareSecondValue:"shots6m",reverseSecondCompare:!0},{value:"goals9m",madesValue:"goals9m",attemptsValue:"shots9m",compareValue:"goals9m",compareSecondValue:"shots9m",reverseSecondCompare:!0},{value:"breakthroughGoals",madesValue:"breakthroughGoals",attemptsValue:"breakthroughShots",compareValue:"breakthroughGoals",compareSecondValue:"breakthroughShots",reverseSecondCompare:!0},{value:"pivotGoals",madesValue:"pivotGoals",attemptsValue:"pivotShots",compareValue:"pivotGoals",compareSecondValue:"pivotShots",reverseSecondCompare:!0},{value:"fastbreakGoals",madesValue:"fastbreakGoals",attemptsValue:"fastbreakShots",compareValue:"fastbreakGoals",compareSecondValue:"fastbreakShots",reverseSecondCompare:!0},aJ,a0],otherGroup:[a1,{value:"technicalFaults"},{value:"yellowCards"}]},a7={playersGroup:[aH,a$,aq,aJ,a0,a1],goalkeepersGroup:[aZ,aY,{...aj,hidePercentage:!0},aQ,aU,aX]},a9={playersGroup:[aH,{value:"shotsTaken"},az,aq,aJ,a0,a1],goalkeepersGroup:[aZ,aW,{value:"saves"},aQ,aU,aX]},a4={value:"goals",short:"GLS"},a6={value:"assists",short:"AST"},a3={value:"position"},a5={value:"timeOnIce",compareValue:"secondsPlayed",hideIfNone:!0,short:"TOI"},a8={value:"shots",short:"SHT"},te={value:"powerPlayGoals"},ta={value:"powerPlayAssists"},tt={value:"penaltyMinutes",short:"PIM"},to={value:"takeaways",short:"TKA"},ts={value:"giveaways",short:"GVA"},tr={value:"hits",short:"HIT"},tl={value:"blocked",short:"BLK"},tn={value:"saves",madesValue:"saves",attemptsValue:"shotsAgainst",short:"SAV",compareValue:"saves",compareSecondValue:"shotsAgainst",reverseSecondCompare:!0},tu={value:"shortHandedSaves",madesValue:"shortHandedSaves",attemptsValue:"shortHandedShotsAgainst",compareValue:"shortHandedShotsSaves",compareSecondValue:"shortHandedShotsAgainst",reverseSecondCompare:!0,short:"SHS"},ti={value:"evenSaves",madesValue:"evenSaves",attemptsValue:"evenShotsAgainst",compareValue:"evenSaves",compareSecondValue:"evenShotsAgainst",reverseSecondCompare:!0,short:"ES"},tc={value:"powerPlaySaves",madesValue:"powerPlaySaves",attemptsValue:"powerPlayShotsAgainst",compareValue:"powerPlaySaves",compareSecondValue:"powerPlayShotsAgainst",reverseSecondCompare:!0,short:"PPS"},tp={value:"plusMinus",short:"+/-"},td=[a5],th={G:{summaryGroup:td,goalkeeperGroup:[tn,tu,tc,ti]},default:{summaryGroup:td,attackingGroup:[a4,a8,a6,te,ta],defensiveGroup:[tr,to,tl],otherGroup:[tt,{value:"faceOffTaken",secondaryValue:"faceOffWins",compareValue:"faceOffWins",compareSecondValue:"faceOffTaken"},ts,tp]}},tv={skatersGroup:[a4,a6,{value:"points",short:"PTS"},tp,tt,a8,tr,tl,ts,to,{value:"faceOffTaken",madesValue:"faceOffWins",attemptsValue:"faceOffTaken",percentageOnly:!0,short:"FO%",percentageDecimals:1},a5],goaliesGroup:[{...tn,hidePercentage:!0},{value:"savePercentage",short:"SV%"},{...ti,hidePercentage:!0},{...tc,hidePercentage:!0},{...tu,hidePercentage:!0},a5]},tg={summaryGroup:[a4,a6,a8,a5],attackingGroup:[a4,a8,a6,te,ta,a3],defensiveGroup:[tr,to,tl,a3],goalkeeperGroup:[{value:"goalkeeperEfficiencyPercentage",madesValue:"saves",attemptsValue:"shotsAgainst",percentageOnly:!0,short:"SV%",sortKey:"goalkeeperEfficiencyPercentage"},tn,ti,tc,tu],otherGroup:[tt,{value:"faceOffWins"},{value:"faceOffTakenOnly"},ts,tp]},tm=[{value:"points",short:"PTS",shortTranslationKey:"points_short"},{value:"tries",short:"TRY",shortTranslationKey:"rugby_tries_short"},{value:"tackles",short:"TKL",shortTranslationKey:"rugby_tackles_short"},{value:"penaltyGoals",short:"PG",shortTranslationKey:"rugby_pen_goals_short",translationKey:"rugby.penaltyGoals"},{value:"passes",short:"PAS",shortTranslationKey:"rugby_passes_short"},{value:"carries",short:"CAR",shortTranslationKey:"rugby_carries_short"},{value:"cleanBreaks",short:"CB",shortTranslationKey:"rugby_clean_breaks_short"},{value:"dropGoals",short:"DG",shortTranslationKey:"rugby_drop_goals_short"},{value:"metersRun",short:"MR",shortTranslationKey:"rugby_meters_run_short"},{value:"offloads",short:"OFF",shortTranslationKey:"rugby_offloads_short"},{value:"tacklesMissed",short:"TM",shortTranslationKey:"rugby_tackles_missed_short"},{value:"tryAssists",short:"TA",shortTranslationKey:"rugby_try_assists_short"},{value:"turnoversWon",short:"TW",shortTranslationKey:"rugby_turnovers_won_short"}],tf={DEFAULT_GROUP_NAME:tm},tk={DEFAULT_GROUP_NAME:tm},ty=[o.QCR.AmericanFootball,o.QCR.Handball,o.QCR.Baseball],tG=[o.QCR.AmericanFootball,o.QCR.Basketball,o.QCR.Football,o.QCR.Handball,o.QCR.IceHockey],tS=[o.QCR.AmericanFootball,o.QCR.Basketball,o.QCR.Handball,o.QCR.IceHockey,o.QCR.Rugby];function tb(e){switch(e){case o.QCR.AmericanFootball:return eC;case o.QCR.Baseball:return eR;case o.QCR.Basketball:return e7;case o.QCR.Football:return aK;case o.QCR.Handball:return a2;case o.QCR.IceHockey:return th;case o.QCR.Rugby:return tf;default:return{}}}function tV(e,a){switch(e){case o.QCR.AmericanFootball:return eP(!a);case o.QCR.Basketball:return a?e4:e9;case o.QCR.Handball:return a7;case o.QCR.IceHockey:return tv;case o.QCR.Rugby:return tk;default:return{}}}function t_(e){switch(e){case o.QCR.AmericanFootball:return eA;case o.QCR.Basketball:return e6;case o.QCR.Football:return aE;case o.QCR.Handball:return a9;case o.QCR.IceHockey:return tg;default:return{}}}o.QCR.Rugby}}]);