!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._posthogChunkIds=e._posthogChunkIds||{},e._posthogChunkIds[n]="01a09684-005a-7f30-97ed-0c02f3885254")}catch(e){}}();(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,96662,e=>{e.v(t=>Promise.all(["static/immutable/chunks/1l5mqgml1pl2h.js","static/immutable/chunks/1lqv1rkcx9ean.js","static/immutable/chunks/43v5ohvkvi4el.css"].map(t=>e.l(t))).then(()=>t(349615)))},238032,e=>{"use strict";var t=e.i(179273);e.s(["formatModelName",0,(e,{shorten:a=!1,keepNote:i=!1,preserveVariant:r=!1}={})=>{if(!a&&!0===i)return e;let n=e.split(": ")[1]||e;if(i)return n;let o=n.split(" (")[0];if(!r)return o;let s=Object.values(t.Variant).filter(e=>e!==t.StaticVariant.Standard&&e!==t.Variant.All).map(e=>(0,t.variantLabel)(e)),l=[...n.matchAll(/\(([^()]*)\)/g)].filter(([,e])=>s.some(t=>0===t.localeCompare(e??"",void 0,{sensitivity:"accent"}))).map(([,e])=>`(${e})`);return`${o}${l.length>0?` ${l.join(" ")}`:""}`}])},84130,e=>{"use strict";var t=e.i(222666),a=e.i(505962),i=e.i(128066),r=e.i(691038),n=e.i(784510),o=e.i(706527),s=e.i(238032),l=e.i(461790);e.i(270401);var c=e.i(785087),d=e.i(62705),m=e.i(758261),u=e.i(612960);e.s(["ModelCharts",0,function(e){let g,f,h,p,S,v=(0,a.c)(29),{data:k,isPercentage:M,forecast:b,forecastFromTimestamp:w,shouldNavigateOnClick:C,otherModelsHref:N,showLogScaleToggle:L,headerControl:V,colorMapping:R,openLinksInNewTab:T,shortenModelNames:y,yAxisLabel:A,valueFormatter:j,yAxisTickFormatter:$}=e,O=void 0!==M&&M,P=void 0!==L&&L,x=void 0!==T&&T,I=void 0!==y&&y,_=(0,r.useMediaMd)(),z=(0,u.useLocalizedRouter)(),{getPrimaryModelInfoByPermaslug:B}=(0,n.useGlobal)();e:{let e;if(!I){let e;v[0]===Symbol.for("react.memo_cache_sentinel")?(e=new Map,v[0]=e):e=v[0],g=e;break e}if(v[1]!==k||v[2]!==B){let t=new Map;for(let e of k)for(let a of Object.keys(e.ys)){let e=B((0,l.getStandardSlug)(a));t.set(a,e?(0,c.getModelSeriesNames)(e,a):{name:a,distinctName:a})}e=(0,c.getDistinctModelChartLabels)(t),v[1]=k,v[2]=B,v[3]=e}else e=v[3];g=e}let F=g;v[4]!==F||v[5]!==B||v[6]!==I?(f=e=>{if(!e||"string"!=typeof e)return"--";if("others"===e.toLowerCase())return"Others";let t=B((0,l.getStandardSlug)(e)),a=t?(0,c.getModelSeriesNames)(t,e).name:e;return I?F.get(e)??(0,s.formatModelName)(a,{shorten:!0,preserveVariant:!0}):a},v[4]=F,v[5]=B,v[6]=I,v[7]=f):f=v[7];let q=f;v[8]!==B||v[9]!==x||v[10]!==N||v[11]!==z?(h=e=>{if("others"===e.toLowerCase())return void(x?(0,m.openRankingsSeriesLink)(e,N):z.push(N??"/models?fmt=cards"));let t=B((0,l.getStandardSlug)(e));if(!t)return;let a=(0,m.getRankingsModelVariantHref)(e,(0,o.getModelVariantSlug)(t));x?(0,m.openRankingsSeriesLink)(a,N):z.push(a)},v[8]=B,v[9]=x,v[10]=N,v[11]=z,v[12]=h):h=v[12];let D=h,H=_&&(void 0===C||C)?D:void 0;v[13]!==B?(p=e=>(0,d.getIsRankingSeriesClickable)(e,e=>B((0,l.getStandardSlug)(e))),v[13]=B,v[14]=p):p=v[14];let K=p,U=_?A:void 0;return v[15]!==R||v[16]!==k||v[17]!==b||v[18]!==w||v[19]!==K||v[20]!==V||v[21]!==O||v[22]!==q||v[23]!==P||v[24]!==H||v[25]!==U||v[26]!==j||v[27]!==$?(S=(0,t.jsx)(i.StackedBarChart,{data:k,isPercentage:O,onLabel:q,onClick:H,getIsSeriesClickable:K,forecast:b,forecastFromTimestamp:w,isAnimationActive:!1,yAxisLabel:U,valueFormatter:j,yAxisTickFormatter:$,showLogScaleToggle:P,headerControl:V,colorMapping:R,allowTooltipToRight:!0}),v[15]=R,v[16]=k,v[17]=b,v[18]=w,v[19]=K,v[20]=V,v[21]=O,v[22]=q,v[23]=P,v[24]=H,v[25]=U,v[26]=j,v[27]=$,v[28]=S):S=v[28],S}])},785087,62705,e=>{"use strict";var t=e.i(238032),a=e.i(179273);e.s(["getDistinctModelChartLabels",0,function(e){let a=new Map([...e].map(([e,a])=>[e,(0,t.formatModelName)(a.name,{shorten:!0,preserveVariant:!0})])),i=new Map;for(let[e,t]of a){let a=i.get(t)??[];a.push(e),i.set(t,a)}let r=new Map(a);for(let a of i.values()){if(a.length<2)continue;let i=new Map(a.flatMap(a=>{let i=e.get(a);return i?[[a,(0,t.formatModelName)(i.distinctName,{shorten:!0,keepNote:!0})]]:[]})),n=new Set(i.values()).size{"use strict";var t=e.i(179273);e.s(["getRankingsModelVariantHref",0,function(e,a){let i=(0,t.getStaticVariant)(e);return i===t.StaticVariant.Standard?`/${a}`:`/${(0,t.getSlugWithStaticVariant)(a,i)}`},"openRankingsSeriesLink",0,function(e,t){let a="others"===e.toLowerCase()?t??"/models?fmt=cards":e.startsWith("/")?e:`/${e}`;window.open(a,"_blank","noopener,noreferrer")}])}]); //# sourceMappingURL=2zflxu2karbrj.js.map //# chunkId=01a09684-005a-7f30-97ed-0c02f3885254