!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},s=(new e.Error).stack;s&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[s]="13c732de-cf30-471f-9b54-9340930e47fb",e._sentryDebugIdIdentifier="sentry-dbid-13c732de-cf30-471f-9b54-9340930e47fb")}catch(e){}}();"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[73240],{4284:(e,s,t)=>{t.d(s,{Tx:()=>h,c4:()=>v,j8:()=>x,oB:()=>P,oG:()=>y});var n=t(46787),o=t(94565),a=t(80055),r=t(89827),l=t(15307);let i=new Set(["id","team","promotion","descriptions","liveMatchWinnerCodeColumn","forcedLivePosition","position","scoresFor","scoresAgainst","secondaryScoresFor","secondaryScoresAgainst","pointsWon"]),c=new Set([n.QCR.Football,n.QCR.Volleyball]),d=new Set([n.QCR.AussieRules,n.QCR.Volleyball]),u=new Set([n.QCR.Basketball,n.QCR.IceHockey,n.QCR.Volleyball,n.QCR.Cricket]),f=new Set([n.QCR.Handball,n.QCR.Rugby,n.QCR.Waterpolo,n.QCR.Futsal,n.QCR.Football,n.QCR.Volleyball]),p=new Set([n.QCR.Handball,n.QCR.Rugby,n.QCR.Waterpolo,n.QCR.Futsal]),g=new Set([...f,...p]),b=new Set([...u,n.QCR.AmericanFootball,n.QCR.Baseball,n.QCR.AussieRules,n.QCR.ESports,n.QCR.Tennis]),m=function(e,s,t,n){let o=arguments.length>4&&void 0!==arguments[4]&&arguments[4],a=arguments.length>5?arguments[5]:void 0,r=!1,l=!1,f=!1,g=Object.keys(e).filter(e=>{switch(e){case"points":return r=!0,!1;case"percentage":return l=!0,!1;case"pointsPerGame":return f=!0,!1;case"draws":return!u.has(s);case"pointsCurrSeason":case"pointsPrevSeason":case"pointsPrevPrevSeason":return n;default:return!i.has(e)}});t&&c.has(s)&&g.push("goals"),d.has(s)&&g.push("pctGoal"),!g.includes("scoreDiffFormatted")&&p.has(s)&&g.push("scoreDiffFormatted"),o&&g.push("last5"),r&&g.push("points"),l&&g.push("percentage"),f&&g.push("pointsPerGame");let b=g.indexOf("gamesBehind"),m=Math.max(g.indexOf("wins"),g.indexOf("draws"),g.indexOf("losses"));b>-1&&b-1&&y>-1&&h>y&&(g[h]="losses",g[y]="draws",[h,y]=[y,h]),a)?g.filter(e=>"overtimeAndPenaltyLosses"!==e&&"overtimeAndPenaltyWins"!==e):g},h=(e,s,t,n,o,a,r,i,c)=>{if(!n){let t=m(e,s,a,r,!n);return t.length>1&&t.includes("gamesBehind")&&!o&&t.splice(t.indexOf("gamesBehind"),1),t}switch(t){case"full":return m(e,s,a,r,!1,i);case"form":return["last5"];default:return((e,s,t)=>{let n=!1,o=!1,a=Object.keys(e).filter(e=>{switch(e){case"points":return n=!0,!1;case"percentage":return o=!0,!1;case"matches":return!0;default:return!1}});return b.has(s)&&(t===l.nJ?a.push("winsLossesTies"):a.push("winsLosses")),f.has(s)&&a.push("scoreDiffFormatted"),n&&a.push("points"),o&&a.push("percentage"),a})(e,s,c)}},y=(e,s,t,n)=>{let o=t[e];if("goals"===e&&c.has(s)&&void 0!==t.scoresFor&&void 0!==t.scoresAgainst)return"".concat(t.scoresFor,":").concat(t.scoresAgainst);if("pctGoal"===e&&d.has(s)&&void 0!==t.scoresFor&&void 0!==t.scoresAgainst){let e,{scoresFor:s,scoresAgainst:n}=t;if(0===n?e="∞":s>0&&(e=(0,r.M)(100*s/n,2)),e)return e}if("winsLosses"===e&&b.has(s)&&void 0!==t.wins&&void 0!==t.losses)return n?"".concat(t.losses,"-").concat(t.wins):"".concat(t.wins,"-").concat(t.losses);if("winsLossesTies"===e&&b.has(s)&&void 0!==t.wins&&void 0!==t.losses)return n?"".concat(t.draws||"0","-").concat(t.losses,"-").concat(t.wins):"".concat(t.wins,"-").concat(t.losses,"-").concat(t.draws||"0");if("scoreDiffFormatted"===e&&g.has(s)&&void 0!==t.scoresFor&&void 0!==t.scoresAgainst){let e=t.scoresFor-t.scoresAgainst,s=e>0?"+":"";return"".concat(s).concat(e)}return void 0===o||"gamesBehind"===e&&0===o?"-":"netRunRate"===e?(0,r.M)(o,3):o},v=(e,s,t,n)=>{let o=(0,a.s)(e.homeTeam,t),r=(0,a.s)(e.awayTeam,t),l="".concat(e.homeScore.display||0," – ").concat(e.awayScore.display||0),i=n?"".concat(r," – ").concat(o):"".concat(o," – ").concat(r);return"".concat(s,", ").concat(l," ").concat(i)},w=[...n.otM,"percentage","netRunRate","oversFor","oversAgainst","overtimeAndPenaltyWins","overtimeAndPenaltyLosses","pointsCurrSeason","pointsPrevSeason","pointsPrevPrevSeason","pointsPerGame"],x=(e,s,t)=>{let o=24;if(!t)if(s===n.QCR.Volleyball&&"pctGoal"===e)o=54;else w.includes(e)&&(o=42);return o},R=[o.Tj.palette.playoffs.promotionToX,o.Tj.palette.playoffs.promotionToXPlayoff,o.Tj.palette.playoffs.promotionToY,o.Tj.palette.playoffs.promotionToYPlayoff,o.Tj.palette.playoffs.promotionToZ,o.Tj.palette.playoffs.promotionToZPlayoff,o.Tj.palette.neutral.default,o.Tj.palette.playoffs.relegationPlayoff,o.Tj.palette.playoffs.relegation],C={17:R[0],804:R[0],24:R[1],816:R[1],127:R[2],124:R[3],52:R[2],808:R[2],47:R[3],968:R[3],19:R[0],20:R[1],21:R[2],1443:R[4],513:R[4],1349:R[5],503:R[5]},j={...{3:R[8],45:R[7],18:R[7]},...C},P=e=>{let s=e.map(e=>e.id).reduce((e,s)=>(e.includes(s)||e.push(s),e),[]),t={},n=!1;Object.keys(j).map(Number).forEach(e=>{if(s.includes(e)){t[e]=j[e];let s=!!C[e];!n&&s&&(n=!0)}});let o=0;n&&(o+=t?Object.keys(t).length-1:4);let a=s.filter(e=>!(e in t));for(let e=0;e{r[e.teamId]=t[e.id]}),r}},15307:(e,s,t)=>{t.d(s,{nJ:()=>o,s4:()=>n});let n="standings.displayType",o=9464},21754:(e,s,t)=>{t.d(s,{E:()=>r});var n=t(62042),o=t(20325);let a=(0,n.Fj)({base:{width:"100%",height:"100%",display:"flex",alignItems:"center",justifyContent:"center"},variants:{colorPalette:{success:{backgroundColor:"status.success.default"},error:{backgroundColor:"status.error.default"},neutral:{backgroundColor:"neutral.default"}}}}),r=(0,o.I4)("div",a)},37236:(e,s,t)=>{t.d(s,{N:()=>i});var n=t(6029),o=t(90248),a=t(18970);let r=JSON.parse('{"volleyball":{"goals":"standings.label.sets","pctGoal":"standings.label.setsRatio"},"american-football":{"draws":"amFootball.standings.label.draws"},"last5":"standings_last_5","position":"standings.label.position","wins":"standings.label.wins","draws":"standings.label.draws","losses":"standings.label.losses","winsLosses":"W-L","winsLossesTies":"am_football_win_loss_tie","scoresFor":"standings.label.scoresFor","scoresAgainst":"standings.label.scoresAgainst","points":"Pts","matches":"standings.label.matches","percentage":"standings.label.pct","gamesBehind":"standings.label.gamesBehind","overtimeWins":"standings.label.overtimeWins","overtimeLosses":"standings.label.overtimeLosses","penaltyWins":"standings.label.penaltyWins","penaltyLosses":"standings.label.penaltyLosses","overtimeAndPenaltyWins":"standings.label.overtimeAndPenaltyWins","overtimeAndPenaltyLosses":"standings.label.overtimeAndPenaltyLosses","secondaryScoresFor":"standings.label.secondaryScoresFor","secondaryScoresAgainst":"standings.label.secondaryScoresAgainst","threePoints":"standings.label.threePoints","twoPoints":"standings.label.twoPoints","onePoint":"standings.label.onePoint","zeroPoints":"standings.label.zeroPoints","oversFor":"standings.label.oversFor","oversAgainst":"standings.label.oversAgainst","netRunRate":"standings.label.netRunRate","noResult":"standings.label.noResult","streak":"standings.label.streak","pctGoal":"standings.label.pct","goals":"goals","scoreDiffFormatted":"standings.label.diff","pointsPerGame":"football_points_per_game_short"}');var l=t(91113);let i=e=>{let{id:s}=e;return(0,n.jsx)(a.Ws.Consumer,{children:e=>(0,n.jsx)(o.A,{id:(0,l.OX)(r,s,e)})})}},73240:(e,s,t)=>{t.d(s,{nf:()=>h,o1:()=>x});var n=t(6029),o=t(46787),a=t(22375),r=t(51569),l=t(20325),i=t(90510),c=t(41735),d=t(18970),u=t(52466),f=t(67087),p=t(31830),g=t(37236),b=t(21754),m=t(4284),h=function(e){return e.W="success",e.D="neutral",e.L="error",e.OTL="error",e.N="neutral",e.NC="neutral",e}({}),y=function(e){return e.W="wins",e.D="draws",e.L="losses",e.OTL="losses",e.N="no_contest_mma_short",e}(y||{});function v(e){let{event:s,referenceId:t,isFirst:o,isRTL:r}=e,d=(0,f.h2)(t),u=(0,p.A)(),{settings:g}=(0,c.useTheme)();return(0,n.jsx)(i.XU,{value:(0,a.pp)(s.startTimestamp),children:e=>(0,n.jsx)(l.az,{title:m.c4(s,e,u,"rtl"===g.textDirection),children:(0,n.jsx)(R,{score:d,isFirst:o,isRTL:r})})})}function w(e){let{event:s,referenceId:t,isFirst:o,isRTL:a}=e,r=(0,f.AR)(s);return(0,n.jsx)(d.y$,{value:r,children:(0,n.jsx)(v,{event:s,referenceId:t,isFirst:o,isRTL:a})})}function x(e){let s=e.events||[];s=[...s].reverse();let{settings:t}=(0,c.useTheme)(),o="rtl"===t.textDirection;return(0,n.jsxs)(l.so,{maxW:{base:"[180px]",mdDown:"[148px]"},minW:"[120px]",ml:"sm",flexGrow:0,flexShrink:1,flexBasis:"[120px]",justify:"flex-start",align:"center","flex-wrap":"nowrap",br:"xs",backgroundColor:"neutrals.nLv4",children:["number"==typeof e.referenceId&&null!==s&&s.map((s,t)=>(0,n.jsx)(w,{event:s,referenceId:e.referenceId,isFirst:0===t,isRTL:o},s.id)),e.form&&e.form.map((e,s)=>(0,n.jsx)(R,{score:e,isFirst:0===s,isRTL:o,formFormat:!0},s))]})}function R(e){let{score:s,isFirst:t,formFormat:a}=e,i=s?null==h?void 0:h[s]:"neutral";return(0,n.jsx)(l.so,{w:a?"1/6":"[20px]",h:"[20px]",backgroundColor:"neutrals.nLv4",borderStartRadius:t?"xs":void 0,children:(0,n.jsxs)(b.E,{colorPalette:i,borderStartRadius:t?"xs":void 0,children:[!!s&&(0,n.jsx)(r.EY,{textStyle:"display.small",color:"surface.s1",position:"absolute",lineHeight:1,children:(0,n.jsx)(g.N,{id:y[s]})}),s===o.h18.OvertimeLoss&&(0,n.jsx)(l.so,{justify:"flex-end",alignSelf:"flex-start",grow:1,children:(0,n.jsx)(u.GzD,{color:"heatmap.hm_3",_rtl:{transform:"rotate(270deg)"}})})]})})}}}]);