!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]="26e65ffc-254b-4876-90e2-5b2327575917",e._sentryDebugIdIdentifier="sentry-dbid-26e65ffc-254b-4876-90e2-5b2327575917")}catch(e){}}();"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3188],{1217:(e,t,a)=>{function n(e){return["up","down"].includes(e)}function s(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"ltr";switch(e){case"left":return"ltr"===t?"rotate(180deg)":void 0;case"right":return"ltr"===t?void 0:"rotate(180deg)";case"down":return"rotate(90deg)";case"up":return"rotate(-90deg)";default:return}}function o(e,t){if(t&&t.height&&t.width)return n(e)?t.width:t.height}function r(e,t){if(t&&t.height&&t.width)return n(e)?t.height:t.width}function i(e){return n(e)?{left:"-30%",top:"18.8%"}:{left:0,top:0}}a.d(t,{AK:()=>i,DY:()=>r,EC:()=>s,G$:()=>o,O8:()=>l,fk:()=>n});let l=e=>e.length>5},3518:(e,t,a)=>{a.d(t,{Z:()=>c,i:()=>i.i});var n=a(6029),s=a(90510),o=a(494),r=a(5339),i=a(5921),l=a(52905);function c(e){let{value:t,fromUnit:a}=e,c=(0,o.d4)(l.Y);if(!t)return null;if((0,r.C)(t,a).to("m")>=1e3)return(0,n.jsx)(d,{value:t,fromUnit:a});if(c===i.i.Imperial){let e=function(e,t){let a=(0,r.C)(e,t).to("feet"),n=Math.floor(a),s=Math.round((0,r.C)(a-Math.floor(a),"ft").to("in"));return 12===s&&(n+=1,s=0),{ft:n,in:s}}(t,a);return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(s.Gr,{value:e.ft,style:"unit",unit:"foot",unitDisplay:"narrow"}),"\xa0",(0,n.jsx)(s.Gr,{value:e.in,style:"unit",unit:"inch",unitDisplay:"narrow"})]})}return(0,n.jsx)(s.Gr,{value:(0,r.C)(t,a).to("cm"),style:"unit",unit:"centimeter",unitDisplay:"short"})}function d(e){let{value:t,fromUnit:a}=e,c=(0,o.d4)(l.Y);return t?c===i.i.Imperial?(0,n.jsx)(s.Gr,{value:(0,r.C)(t,a).to("mile"),style:"unit",unit:"mile",maximumFractionDigits:1,unitDisplay:"short"}):(0,n.jsx)(s.Gr,{value:(0,r.C)(t,a).to("km"),style:"unit",unit:"kilometer",maximumFractionDigits:1,unitDisplay:"short"}):null}},7263:(e,t,a)=>{a.d(t,{n:()=>n.n});var n=a(3959)},10383:(e,t,a)=>{a.d(t,{R:()=>r,h:()=>l});var n=a(4696),s=a(98516);let o=(e,t)=>{let a=e[t.key],n="";if(t.totalKey){let o=e[t.totalKey];n=o?" (".concat((0,s.M)(100*a/o),"%)"):" (0%)"}else if(t.percentageKey){let a=e[t.percentageKey];n=" (".concat(a?(0,s.M)(a):0,"%)")}else if(t.reverseKey){let o=e[t.reverseKey];n=" (".concat((0,s.M)(100*a/(a+o)),"%)")}return n},r=(e,t,a)=>{var r,i,l;let c="number"==typeof t.decimals?t.decimals:1,d=e[t.key];if(void 0!==d||"winRatio"===t.key){if(a===n.M.Total&&t.displayType&&t.displayType.length>0)return(null==(l=t.displayType)?void 0:l.includes(n.M.Total))?d:void 0;if(a!==n.M.PerGame||(null==(r=t.displayType)?void 0:r.includes(n.M.PerGame))){if(t.perGame||(null==(i=t.displayType)?void 0:i.includes(n.M.PerGame))){if(void 0===e.appearances)return;let a=o(e,t);return"".concat((0,s.M)(d/e.appearances,c)).concat(a)}if(t.percentageKey){let a=e[t.percentageKey]?(0,s.M)(e[t.percentageKey],c):0,n="number"==typeof t.decimals?(0,s.M)(d,c):d;return t.showValue?"".concat(n," (").concat(a,"%)"):"".concat(a,"%")}if(t.totalKey){let a=e[t.totalKey],n=t.showPercentage?o(e,t):"";return a?"".concat(d,"/").concat(a," ").concat(n):"".concat(d," ").concat(n)}if("firstServePercentage"===t.key){if(isNaN(e.firstServeTotal)||isNaN(e.firstServePointsTotal))return;if(0===e.firstServeTotal)return"0%";let t=e.firstServePointsTotal/e.firstServeTotal*100;return"".concat(Math.round(10*t)/10,"%")}if("winRatio"===t.key){if(isNaN(e.wins)||isNaN(e.matches))return;let t=Math.round(e.wins/e.matches*100);return"".concat(e.wins,"/").concat(e.matches," (").concat(Math.round(10*t)/10,"%)")}if("tournamentsWonRatio"===t.key){if(isNaN(e.tournamentsWon)||isNaN(e.tournamentsPlayed))return;return"".concat(e.tournamentsWon,"/").concat(e.tournamentsPlayed," (").concat(Math.round(10*d)/10,"%)")}if("firstServePointsWonPercentage"===t.key){if(isNaN(e.firstServePointsScored)||isNaN(e.firstServePointsTotal))return;if(0===e.firstServePointsTotal)return"0%";let t=e.firstServePointsScored/e.firstServePointsTotal*100;return"".concat(Math.round(10*t)/10,"%")}if("secondServePercentage"===t.key){if(isNaN(e.secondServeTotal)||isNaN(e.secondServePointsTotal))return;if(0===e.secondServeTotal)return"0%";let t=e.secondServePointsTotal/e.secondServeTotal*100;return"".concat(Math.round(10*t)/10,"%")}if("secondServePointsWonPercentage"===t.key){if(isNaN(e.secondServePointsScored)||isNaN(e.secondServePointsTotal))return;if(0===e.secondServePointsTotal)return"0%";let t=e.secondServePointsScored/e.secondServeTotal*100;return"".concat(Math.round(10*t)/10,"%")}if("avgAces"===t.key){if(isNaN(e.aces)||isNaN(e.matches))return;if(0===e.matches)return"0%";let t=e.aces/e.matches;return"".concat(Math.round(10*t)/10)}if("avgDoubleFaults"===t.key){if(isNaN(e.doubleFaults)||isNaN(e.matches))return;if(0===e.matches)return"0%";let t=e.doubleFaults/e.matches;return"".concat(Math.round(10*t)/10)}if("breakPointsSavedPercentage"===t.key){if(isNaN(e.opponentBreakPointsTotal)||isNaN(e.opponentBreakPointsScored))return;let t=e.opponentBreakPointsTotal-e.opponentBreakPointsScored,a=Math.round(10*e.breakPointsSavedPercentage)/10;return"".concat(t,"/").concat(e.opponentBreakPointsTotal," (").concat(a,"%)")}if("breakPointsSavedConvertedPercentage"===t.key){if(isNaN(e.breakPointsTotal)||isNaN(e.breakPointsScored))return;let t=Math.round(10*e.breakPointsSavedConvertedPercentage)/10;return"".concat(e.breakPointsScored,"/").concat(e.breakPointsTotal," (").concat(t,"%)")}if("tiebreakWinPercentage"===t.key){if(isNaN(e.tiebreaksWon)||isNaN(e.tiebreakLosses)||isNaN(e.tiebreakWinPercentage))return;let t=e.tiebreaksWon+e.tiebreakLosses;return t>0?"".concat(e.tiebreaksWon,"/").concat(t," (").concat(Math.round(10*e.tiebreakWinPercentage)/10,"%)"):"".concat(e.tiebreaksWon,"/").concat(t)}if("number"==typeof t.decimals)return["savePercentage","powerPlaySavePercentage","shortHandedSavePercentage","evenSavePercentage"].includes(t.key)?1===d?"1.00":".".concat((0,s.M)(d,c).slice(2)):"".concat((0,s.M)(d,c)).concat(t.sufix||"");return"".concat(d," ").concat(t.sufix||"")}}};function i(e){let t=Math.round(e),a=Math.floor(t/60),n=Math.floor(t%60).toString().padStart(2,"0");return"".concat(a,":").concat(n)}let l=e=>{let t={...e};return e.secondsPlayed&&(t.minutesPlayed=e.secondsPlayed/60),e.timeOnIce&&(t.timeOnIce=i(e.timeOnIce/e.appearances)),e.powerPlayTimeOnIce&&(t.powerPlayTimeOnIce=i(e.powerPlayTimeOnIce/e.appearances)),e.evenTimeOnIce&&(t.evenTimeOnIce=i(e.evenTimeOnIce/e.appearances)),e.shortHandedTimeOnIce&&(t.shortHandedTimeOnIce=i(e.shortHandedTimeOnIce/e.appearances)),t}},12047:(e,t,a)=>{a.d(t,{Ay:()=>r});var n=a(89875),s=a(21501),o=a(55729);function r(){let{isInMobileTabs:e=!0,isSportMenuVisible:t=!0}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},[a,r]=(0,o.useState)(0),i=(0,s.YU)(),{isMobile:l}=(0,n.$c)(),c=50*!!e,d=48+c+48*!!t;return(0,o.useEffect)(()=>{if(!l)return void r(0);r(i===s.Dh.Up?d:c)},[i,l]),a}},14444:(e,t,a)=>{a.d(t,{b4:()=>p,V3:()=>i,HM:()=>b,k9:()=>c,HI:()=>l});var n=a(6029),s=a(55729),o=a(83260);let r=(0,s.createContext)(void 0),i=e=>{let{children:t,persistKey:a}=e,[s,i]=(0,o.A)(a,[]);return(0,n.jsx)(r.Provider,{value:{recentlySelected:s,setRecentlySelected:i},children:t})},l=()=>{let e=(0,s.useContext)(r);if(void 0===e)throw Error("useRecentSearch must be used within a RecentSearchesProvider");return{recentlySelected:e.recentlySelected,addToRecentlySelected:t=>{let a=e.recentlySelected.filter(e=>e.id!==t.id).slice(0,4),n=[t,...a];e.setRecentlySelected(n)},removeFromRecentlySelected:t=>{let a=e.recentlySelected.filter(e=>e.id!==t.id);e.setRecentlySelected(a)}}};function c(e,t,a,n){return e.length?e.length===(null==a?void 0:a.length)&&e.length===(null==t?void 0:t.length)&&e.length===(null==n?void 0:n.length)?{ids:e.map(e=>null!=e?e:"_").join(","),ut_ids:null==a?void 0:a.map(e=>null!=e?e:"_").join(","),s_ids:null==t?void 0:t.map(e=>null!=e?e:"_").join(","),s_types:null==n?void 0:n.map(e=>null!=e?e:"_").join(",")}:{ids:e.map(e=>null!=e?e:"_").join(",")}:{}}var d=a(94446),u=a(99064),f=a(54409),h=a(24159);let p=e=>{let{player:t,onPlayerClick:a,onRemoveClick:s}=e;return(0,n.jsxs)(u.so,{onClick:()=>a(t),h:"56px",align:"center",cursor:"pointer",children:[(0,n.jsx)(d.t,{id:t.id,name:t.name,size:40,grayscale:t.deceased}),(0,n.jsxs)(u.so,{direction:"column",justify:"center",h:"100%",gap:"xs",grow:1,pl:"sm",children:[(0,n.jsx)(u.EY,{font:"body.medium",color:"onSurface.nLv1",ellipsis:!0,maxW:["250px","130px"],children:(0,n.jsx)(h.c,{entity:t})}),(0,n.jsxs)(u.so,{align:"center",gap:"sm",children:[(0,n.jsx)(d.p,{id:t.team.id,size:16}),(0,n.jsx)(u.EY,{font:"assistive.default",color:"onSurface.nLv3",lineHeight:1,ellipsis:!0,maxW:["300px","120px"],children:(0,n.jsx)(h.c,{entity:t.team})})]})]}),void 0!==s&&(0,n.jsx)(u.$n,{onClick:e=>{e.stopPropagation(),e.preventDefault(),null==s||s(t)},variant:"unshielded",size:"xs",p:"xs",style:{borderRadius:"50%"},children:(0,n.jsx)(f.zQC,{icon:"close",width:16,height:16,fill:"neutral.default"})})]})};var g=a(49519),v=a(21377),m=a(98449),y=a(94604);let b=e=>{var t,a,s,o,r,i,l,c,d;let{team:h,onTeamClick:p,onRemoveClick:b}=e,_=(null==(t=h.sport)?void 0:t.slug)===v.QCR.Tennis;return(0,n.jsxs)(u.so,{gap:"sm",onClick:()=>p(h),align:"center",cursor:"pointer",py:"sm",children:[(0,n.jsx)(g.p,{id:h.id,name:h.name,size:40}),(0,n.jsxs)(u.so,{direction:"column",gap:"xs",grow:1,children:[(0,n.jsx)(u.EY,{font:"body.medium",color:"onSurface.nLv1",children:(0,n.jsx)(y.Rm,{team:h,showFemaleSuffix:h.gender===v.YT8.Female&&!_})}),!h.national&&(null==(a=h.country)?void 0:a.slug)&&(null==(s=h.country)?void 0:s.name)&&!_&&(0,n.jsxs)(u.so,{align:"center",gap:"sm",children:[(0,n.jsx)(g.w,{size:16,alpha2:null==(o=h.country)?void 0:o.alpha2,name:null==(r=h.country)?void 0:r.name}),(0,n.jsx)(u.EY,{font:"assistive.default",color:"onSurface.nLv3",lineHeight:1,children:(0,n.jsx)(m.m,{slug:h.country.slug,name:h.country.name})})]}),_&&h.country&&h.country.name&&(0,n.jsxs)(u.so,{align:"center",gap:"xs",children:[(0,n.jsx)(g.w,{size:16,alpha2:null==(i=h.country)?void 0:i.alpha2,name:null==(l=h.country)?void 0:l.name}),(0,n.jsx)(u.EY,{font:"assistive.default",color:"onSurface.nLv3",lineHeight:1,children:(0,n.jsx)(m.m,{name:h.country.name,slug:null!=(d=null==(c=h.country)?void 0:c.slug)?d:h.country.name})})]})]}),void 0!==b&&(0,n.jsx)(u.$n,{onClick:e=>{e.stopPropagation(),e.preventDefault(),null==b||b(h)},variant:"unshielded",size:"xs",p:"xs",style:{borderRadius:"50%"},children:(0,n.jsx)(f.zQC,{icon:"close",width:16,height:16,fill:"neutral.default"})})]})}},16533:e=>{e.exports=JSON.parse('{"football":{"accurateChippedPasses":"football_accurate_chip_passes","accurateCrosses":"accCrosses","accurateLongBalls":"accLongPasses","accurateOppositionHalfPasses":"accPassesOppositionHalf","accurateOwnHalfPasses":"accPassesOwnHalf","accuratePasses":"accuratePerGame","appearances":"matches_total","cleanSheet":"football_clean_sheets","clearances":"football_clearances_per_game","dispossessed":"football_dispossessed","dribbledPast":"football_dribbled_past_per_game","errorLeadToGoal":"errors_leading_to_goal","errorLeadToShot":"errors_lead_to_shot","keyPasses":"football_key_passes_per_game","touches":"football_touches","freeKickGoal":"football_free_kick_goals","goalConversionPercentage":"goal_conversion","goalsConceded":"football_goals_conceded","goalsConcededInsideTheBox":"football_goals_concededInsideBox","goalsConcededOutsideTheBox":"football_goals_concededOutsideBox","interceptions":"interceptions_per_game","minutesPlayed":"minutes_per_game","penaltySave":"football_penalties_saved","possessionWonAttThird":"football_posession_won","savedShotsFromInsideTheBox":"football_saves_inside_box","savedShotsFromOutsideTheBox":"savesFromOutsideBox","saves":"savesMade","scoringFrequency":"goals_frequency","setPieceConversion":"football_free_kick_conversion","successfulDribbles":"football_successful_dribbles","successfulRunsOut":"succRunsOutPerGame","tackles":"football_tackles_per_game","totalShots":"football_shots_per_game","yellowCards":"football_yellow_card","yellowRedCards":"football_yellow_red","red":"football_red_card","redCards":"red_cards","offsides":"football_offsides"},"basketball":{"appearances":"gamesPlayed","benchPoints":"basketball_points_off_the_bench","defensiveRebounds":"defensive","effectiveFieldGoalPercentage":"basketball_effective_field_goal_pct","fastbreakMade":"basketball_fast_break_points","fieldGoalsMade":"fieldGoals","fieldGoalsPercentageAgainst":"basketball_opponent_field_goals_pct","flagrantFouls":"basketball_flagrant_fouls","freeThrowAttempts":"basketball_free_throws_attempted","freeThrowsMade":"freeThrows","minutesPlayed":"minutes_played","offensiveFoulsAgainst":"basketball_charges_drawn","offensiveRebounds":"offensive","personalFoulsAgainst":"basketball_fouls_drawn","pir":"pirStat","pointsInPaint":"basketball_points_in_paint","technicalFouls":"basketball_technical_fouls","threePointAttempts":"basketball_three_points_attempted","threePointsMade":"threePointers","trueShootingPercentage":"basketball_true_shooting_pct","twoPointsMade":"twoPointers","assists":"football_assists","secondChancePoints":"basketball_second_chance_points"},"american-football":{"appearances":"matches_total","defensiveAssistTackles":"assistTackles","defensiveCombineTackles":"combineTackles","defensiveForcedFumbles":"forcedFumbles","defensiveInterceptionsTouchdowns":"interceptionsTouchdowns","defensiveInterceptionsYards":"interceptionsYards","defensivePassesDefensed":"passesDefensed","defensiveTotalTackles":"amf_tackles","fumbleLost":"fumblesLost","fumbleRecovery":"fumbleRecoveries","fumbleSafety":"fumblesSafety","kickingExtraMade":"extraPointsMade","kickingFgBlocked":"overallBlocked","kickingFgMade":"overallMade","kickingFgMade20to29":"made20","kickingFgMade30to39":"made30","kickingFgMade40to49":"made40","kickingFgMade50plus":"made50","kickoffReturns":"returns","kickoffTotal":"totalPoints","passingLongest":"longestPass","puntingBlocked":"blocked","puntingTouchbacks":"touchbacks","receivingFirstDowns":"firstDowns","receivingLongest":"longestReception","rushingLongest":"longestRush"},"ice-hockey":{"appearances":{"id":"games","values":{"sport":"ice-hockey"}},"faceOffPercentage":"faceoffPercentage","goalkeeping":"goalkeeper","goalsAgainst":"football_goals_conceded","penalty":"hockey.stat.penalty","powerPlayGoals":"powerplayGoals","powerPlayPoints":"powerplayPoints","powerPlaySaves":"powerplaySaves","powerPlayShots":"powerplayShots","powerPlayTimeOnIce":"powerplayTimeOnIce","shortHandedGoals":"shorthandedGoals","shortHandedPoints":"shorthandedPoints","shortHandedSaves":"shorthandedSaves","shortHandedTimeOnIce":"shorthandedTimeOnIce"},"handball":{"gk6mSaves":"6mSaves","gk7mSaves":"7mSaves","gk9mSaves":"9mSaves","goalkeeperEfficiencyPercentage":"goalkeeperEfficiency","goals6m":"6mGoals","goals7m":"7mGoals","goals9m":"9mGoals","twoMinutePenalties":"twoMinPenalty"},"cricket":{"bowling":"bowlingFigures","economy":"economyRate","runsScored":"runs"},"futsal":{"accumulatedPenaltyGoals":"futsal_accumulated_penalty_goals","accumulatedFouls":"futsal_accumulated_fouls"}}')},33698:(e,t,a)=>{a.d(t,{L:()=>n.L});var n=a(12232)},46170:(e,t,a)=>{a.d(t,{GP:()=>m,_S:()=>p,Bt:()=>g,XL:()=>v});var n=a(6029),s=a(21501),o=a(99064),r=a(55729),i=a(41735);let l=149/238,c=238/149,d=()=>{let{colors:e}=(0,i.useTheme)();return(0,n.jsx)("svg",{viewBox:"0 0 238 149",children:(0,n.jsxs)("g",{fill:e.surface.s1,fillRule:"evenodd",children:[(0,n.jsx)("ellipse",{fillRule:"nonzero",cx:"28.175",cy:"74.5",rx:"1.75",ry:"1.753"}),(0,n.jsx)("ellipse",{fillRule:"nonzero",cx:"209.825",cy:"74.5",rx:"1.75",ry:"1.753"}),(0,n.jsx)("path",{d:"M0 0v149h238V0H0zm119.656 76.121a1.72 1.72 0 0 0 1.094-1.621 1.72 1.72 0 0 0-1.094-1.621V57.628c8.969.35 16.188 7.757 16.188 16.872 0 9.071-7.219 16.521-16.188 16.872v-15.25zM1.312 1.315h3.632a4.577 4.577 0 0 1-3.631 3.637V1.315zm0 54.56h12.032v37.25H1.313v-37.25zm0 38.565h13.344V54.56H1.312V32.65h40.032v83.659H1.312V94.44zm0 53.245v-3.637a4.577 4.577 0 0 1 3.632 3.637H1.313zM118.344 72.88a1.72 1.72 0 0 0-1.094 1.621 1.72 1.72 0 0 0 1.094 1.621v15.251c-8.969-.35-16.188-7.757-16.188-16.872 0-9.071 7.219-16.521 16.188-16.872v15.25zm0-16.566c-9.713.35-17.5 8.37-17.5 18.187 0 9.816 7.787 17.836 17.5 18.187v54.998H6.256c-.394-2.541-2.406-4.601-4.944-4.952v-25.067h41.344V86.157c4.244-2.542 6.825-6.968 6.825-11.657 0-4.69-2.581-9.115-6.825-11.657v-31.51H1.313V6.268c2.537-.35 4.593-2.41 4.943-4.952h112.088v54.998zM42.656 84.58V64.421c3.456 2.366 5.513 6.091 5.513 10.079 0 3.988-2.1 7.713-5.513 10.08zm194.031 63.106h-3.63a4.577 4.577 0 0 1 3.63-3.637v3.637zm0-54.56h-12.03v-37.25h12.03v37.25zm0-38.565h-13.343v39.88h13.344v21.911h-40.032V32.65h40.031V54.56zm0-23.226h-41.343v31.509c-4.244 2.542-6.825 6.968-6.825 11.657 0 4.69 2.581 9.115 6.825 11.657v31.51h41.344v25.066c-2.538.395-4.594 2.41-4.944 4.952H119.656V92.687c9.713-.35 17.5-8.37 17.5-18.187 0-9.816-7.787-17.836-17.5-18.187V1.315h112.088c.393 2.541 2.406 4.601 4.944 4.952v25.067zM195.344 64.42v20.158c-3.457-2.366-5.513-6.091-5.513-10.079 0-3.988 2.056-7.713 5.513-10.08zm41.344-59.469a4.577 4.577 0 0 1-3.632-3.637h3.631v3.637z"})]})})},u=(0,i.default)(o.az).withConfig({componentId:"sc-80087852-0"})(["position:absolute;> svg{position:absolute;top:0;left:0;}> *{width:100%;height:100%;}canvas{width:100%;height:100%;padding:0.5px;}"]);var f=a(1217),h=a(5961);let p=e=>{var t,a;let{dataPoints:p,numberOfMatches:g,containerId:v,direction:m="right"}=e,y=(0,i.useTheme)(),b=(0,r.useRef)(null),_=(0,s.uc)(b,{},100)||0,k={containerId:v,numberOfMatches:g,width:_,height:_*l},x=p&&(0,f.O8)(p)&&!!k.width;return(0,r.useEffect)(()=>{x&&(0,h.IJ)(p,k,y)},[v,p,k.width,y]),(0,n.jsx)("div",{style:{width:"100%"},children:(0,n.jsx)(o.az,{ref:b,w:"100%",position:"relative",pb:(0,f.fk)(m)?"".concat(100*c,"%"):"".concat(100*l,"%"),children:(0,n.jsxs)(u,{style:{transform:(0,f.EC)(m,y.settings.textDirection)},h:(0,f.G$)(m,null==(t=b.current)?void 0:t.getBoundingClientRect()),w:(0,f.DY)(m,null==(a=b.current)?void 0:a.getBoundingClientRect()),...(0,f.AK)(m),children:[x&&(0,n.jsx)("div",{id:v}),(0,n.jsx)(d,{})]})})})},g=e=>{let{direction:t="right",fill:a,style:s}=e,{colors:o,settings:r}=(0,i.useTheme)();return(0,n.jsx)("svg",{width:"66",height:"20",viewBox:"0 0 66 20",xmlns:"http://www.w3.org/2000/svg",style:{transform:(0,f.EC)(t,r.textDirection),...s},children:(0,n.jsx)("g",{fill:a||o.surface.s1,fillRule:"evenodd",children:(0,n.jsx)("path",{d:"m66 9.845-14.4 9.6V.245zM0 7.445h51.6v4.8H0z"})})})},v=e=>{let{direction:t="up"}=e,{colors:a}=(0,i.useTheme)();return(0,n.jsx)("svg",{width:"16",height:"56",viewBox:"0 0 16 56",xmlns:"http://www.w3.org/2000/svg",style:{transform:"down"===t?"rotate(180deg)":void 0},children:(0,n.jsx)("g",{fill:a.surface.s1,fillRule:"evenodd",children:(0,n.jsx)("path",{d:"m8 0 8 12H0zM6 12h4v44H6z"})})})},m=e=>{let{direction:t="right",arrowAfterHeatmap:a=!1,...s}=e;return(0,f.fk)(t)?(0,n.jsxs)(o.so,{bg:"graphicsTerrain.football",align:"center",py:"md",br:"sm",w:"100%",pl:a?"md":void 0,pr:a?void 0:"md",direction:a?"row-reverse":"row",children:[(0,n.jsx)(o.so,{w:"20%",justify:"center",children:(0,n.jsx)(v,{direction:t})}),(0,n.jsx)(o.az,{w:"80%",children:(0,n.jsx)(p,{...s,direction:t})})]}):(0,n.jsx)(o.so,{bg:"graphicsTerrain.football",justify:"center",pt:"md",pb:"xl",px:"sm",br:"lg",w:"100%",children:(0,n.jsxs)(o.so,{direction:"column",align:"center",gap:"md",maxW:280,w:"100%",children:[(0,n.jsx)(g,{direction:t}),(0,n.jsx)(p,{...s,direction:t})]})})}},53684:(e,t,a)=>{a.d(t,{G:()=>n.A,e:()=>s.e});var n=a(94400),s=a(33480)},58926:(e,t,a)=>{a.d(t,{A:()=>r,z:()=>o});var n=a(6029),s=a(99064);let o=(0,a(41735).default)(s.az).withConfig({componentId:"sc-92f418f5-0"})(["width:","px;height:","px;background-color:",";"],e=>e.width,e=>e.height,e=>e.alpha?e.theme.setAlpha(e.theme.colors.primary.default,e.alpha):e.theme.colors.neutral.default);function r(e){let{totalHeight:t=144,boxWidth:a=12}=e;return(0,n.jsxs)(s.az,{bg:"graphicsTerrain.dark",children:[(0,n.jsx)(o,{height:16/144*t,width:a,alpha:1}),(0,n.jsx)(o,{height:20/144*t,width:a,alpha:.8}),(0,n.jsx)(o,{height:.25*t,width:a,alpha:.6}),(0,n.jsx)(o,{height:.25*t,width:a,alpha:.4}),(0,n.jsx)(o,{height:20/144*t,width:a,alpha:.2}),(0,n.jsx)(o,{height:16/144*t,width:a,alpha:.1})]})}},59721:(e,t,a)=>{a.d(t,{e:()=>n.e});var n=a(33480)},83351:(e,t,a)=>{a.d(t,{U:()=>d,k:()=>u});var n=a(6029),s=a(33698),o=a(21377),r=a(99064),i=a(55729),l=a(90248),c=a(62859);let d=()=>{let[e,t]=(0,i.useState)(s.L.Total);return{selectedType:e,setSelectedType:t,getNextType:e=>{switch(e){case s.L.Total:return s.L.Missed;case s.L.Missed:return s.L.Made;case s.L.Made:default:return s.L.Total}}}},u=e=>{let{selectedType:t,setSelectedType:a}=e,d=(0,i.useContext)(c.Ws);return(0,n.jsx)(r.so,{pt:"lg",pb:"sm",justify:"center",children:(0,n.jsxs)(r.tU,{value:t,variant:"secondary",onChange:e=>a(e),children:[(0,n.jsx)(r.tU.Tab,{tabKey:s.L.Made,children:(0,n.jsx)(l.A,{id:d===o.QCR.Basketball?"player.shootmap.made":"goals"})}),(0,n.jsx)(r.tU.Tab,{tabKey:s.L.Total,children:(0,n.jsx)(l.A,{id:"player.shootmap.total"})}),(0,n.jsx)(r.tU.Tab,{tabKey:s.L.Missed,children:(0,n.jsx)(l.A,{id:"player.shootmap.missed"})})]})})}},86679:(e,t,a)=>{a.d(t,{A:()=>f});var n=a(4967),s=a(59018),o=a.n(s),r=a(55729),i=a(7263);let l=n.pY,c={},d=async(e,t)=>{let a=new Date().getTime();if(!c[e]||c[e].time{let a=e.map(e=>{var a;return e.skipCheck||!e.route?new Promise(e=>e(!1)):d(e.route,null!=(a=e.deduplicationInterval)?a:t)});return(await Promise.allSettled(a)).map(e=>"fulfilled"===e.status&&e.value)};function f(e){var t;let a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=arguments.length>2?arguments[2]:void 0,s=Object.keys(e),i=Object.values(e),[c,d]=(0,r.useState)(s.reduce((e,t)=>({...e,[t]:void 0}),{})),f=null==n?void 0:n.refreshInterval,h=null!=(t=null==n?void 0:n.deduplicationInterval)?t:l;return(0,r.useEffect)(()=>{let e=async()=>{let e=await u(i,h),t={};s.forEach((a,n)=>{t[a]=e[n]}),d(e=>{for(let a of o()([...Object.keys(t),...Object.keys(e)]))if(e[a]!==t[a])return t;return e})};if(e(),!f)return;let t=setInterval(e,f);return()=>clearInterval(t)},[...a,f]),c}},90395:(e,t,a)=>{a.d(t,{O:()=>n.A,b:()=>s});var n=a(59731),s=a(29914)},95543:(e,t,a)=>{function n(e,t){if(void 0===t||0==+t)return Math.round(e);if(t*=1,isNaN(e*=1)||"number"!=typeof t||t%1!=0)return NaN;let a=e<0;a&&(e=-e);let n=e.toString().split("e"),[s,o]=n;return+((a?"-":"")+(s=(n=Math.round(+(s+"e"+(o?o-t:-t))).toString().split("e"))[0])+"e"+((o=n[1])?+o+t:t))}a.d(t,{M:()=>s});let s=function(e,t=0){let a=+n(e,-(t+3)).toFixed(t+3);return n(a,-t).toFixed(t)}}}]);