!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]="01a099a4-bae6-7941-8358-3ee137824e49")}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"].map(t=>e.l(t))).then(()=>t(349615)))},829962,e=>{"use strict";let t=new Set(["gpt-oss-120b","gpt-oss-20b","gpt-oss-safeguard-20b"]);function r(e){return 0===e.length?e:e.charAt(0).toUpperCase()+e.slice(1).toLowerCase()}e.s(["guessAuthorFromPermaslug",0,function(e){let t=e.split(":")[0];return t.includes("/")?t.split("/")[0]:"unknown"},"guessShortNameFromPermaslug",0,function(e){let a=e.split(":"),n=a[0],i=a[1],s=n.includes("/")?n.split("/")[1]:n;if(t.has(s))return i?`${s} (${i})`:s;let o=s.replace(/-\d{8}$/,"").replace(/-\d{4}-\d{2}-\d{2}$/,"").replace(/-\d{2}-\d{2}$/,""),l=o.match(/^(.+)-preview-(\d{2}-\d{4})$/),c=null;l&&(o=`${l[1]}-preview`,c=l[2]);let d=(o=o.replace(/-0{1,2}\d$/,"")).split("-").map((e,t)=>{let a=e.toLowerCase();return"gpt"===a&&0===t?"GPT":"glm"===a&&0===t?"GLM":/^\d+[bB]$/i.test(e)?e.toUpperCase():/^\d/.test(e)?e:/^[a-z]\d+[a-z]$/i.test(e)||e.length<=2&&/^[a-z]+$/i.test(e)?e.toUpperCase():r(e)}).join(" ");return d=function(e){let t=e.match(/^Claude (\d+(?:\.\d+)?) (\w+)$/i);if(t)return`Claude ${r(t[2])} ${t[1]}`;if(e.startsWith("GPT ")){let t=e.split(" ");if(t.length>=2)return t.join("-")}return e}(d),c&&(d=`${d} ${c}`),i&&(d=`${d} (${i})`),d}])},238032,e=>{"use strict";var t=e.i(179273);e.s(["formatModelName",0,(e,{shorten:r=!1,keepNote:a=!1,preserveVariant:n=!1}={})=>{if(!r&&!0===a)return e;let i=e.split(": ")[1]||e;if(a)return i;let s=i.split(" (")[0];if(!n)return s;let o=Object.values(t.Variant).filter(e=>e!==t.StaticVariant.Standard&&e!==t.Variant.All).map(e=>(0,t.variantLabel)(e)),l=[...i.matchAll(/\(([^()]*)\)/g)].filter(([,e])=>o.some(t=>0===t.localeCompare(e??"",void 0,{sensitivity:"accent"}))).map(([,e])=>`(${e})`);return`${s}${l.length>0?` ${l.join(" ")}`:""}`}])},787108,e=>{"use strict";var t=e.i(222666),r=e.i(505962),a=e.i(557225),n=e.i(379684),i=e.i(128066),s=e.i(691038),o=e.i(784510),l=e.i(829962),c=e.i(706527),d=e.i(238032);e.i(270401);var u=e.i(785087),m=e.i(62705),h=e.i(758261);let g={isRanking:!0,position:"bottom",showPercentage:!0};e.s(["ModelRankingsChart",0,function(e){let p,f,x,b,v,k,N,w,j,S=(0,r.c)(44),{data:M,isPercentage:C,testId:$,forecast:_,forecastFromTimestamp:L,otherModelsHref:y,showPercentage:P,showLegendPercentage:V,valueFormatter:T,yAxisTickFormatter:A,useRichTooltip:I,shouldNavigateOnClick:R,shortenModelNames:F}=e,z=void 0===C||C,O=void 0===$?"model-rankings-chart":$,U=void 0===V||V,B=void 0!==I&&I,G=void 0!==F&&F,{getModelInfoByVariantPermaslug:D}=(0,o.useGlobal)(),W=(0,s.useMediaMd)();S[0]!==U||S[1]!==T?(p={...g,showPercentage:U,valueFormatter:T},S[0]=U,S[1]=T,S[2]=p):p=S[2];let q=p;if(S[3]!==M){for(let e of(f=new Map,M))for(let t of Object.keys(e.ys))f.has(t)||f.set(t,{shortName:(0,l.guessShortNameFromPermaslug)(t),author:(0,l.guessAuthorFromPermaslug)(t)});S[3]=M,S[4]=f}else f=S[4];let K=f;e:{let e;if(!G){let e;S[5]===Symbol.for("react.memo_cache_sentinel")?(e=new Map,S[5]=e):e=S[5],x=e;break e}if(S[6]!==D||S[7]!==K){let t=new Map;for(let[e,r]of K){let a=D(e);t.set(e,a?(0,u.getModelSeriesNames)(a,e):{name:r.shortName,distinctName:r.shortName})}e=(0,u.getDistinctModelChartLabels)(t),S[6]=D,S[7]=K,S[8]=e}else e=S[8];x=e}let H=x;S[9]!==H||S[10]!==D||S[11]!==K||S[12]!==G?(b=e=>{if(!e||"string"!=typeof e)return"--";if("others"===e.toLowerCase())return"Others";let t=D(e),r=K.get(e),a=t?(0,u.getModelSeriesNames)(t,e).name:r?.shortName??e,n=t?.author??r?.author??"unknown",i=H.get(e)??(G?(0,d.formatModelName)(a,{shorten:!0,preserveVariant:!0}):a);return`${i} by ${n}`},S[9]=H,S[10]=D,S[11]=K,S[12]=G,S[13]=b):b=S[13];let E=b;S[14]!==H||S[15]!==D||S[16]!==K||S[17]!==y||S[18]!==G?(v=e=>{if(!e||"string"!=typeof e)return"--";if("others"===e.toLowerCase())return(0,t.jsx)(n.TextLink,{href:y??"/models?fmt=cards",className:"text-xs block truncate font-medium",target:"_blank",rel:"noopener noreferrer",children:"Others"});let r=D(e),a=K.get(e),i=r?(0,u.getModelSeriesNames)(r,e).name:a?.shortName??e,s=H.get(e)??(G?(0,d.formatModelName)(i,{shorten:!0,preserveVariant:!0}):i),o=r?.author??a?.author??"unknown",l=r?(0,c.getModelVariantSlug)(r):e;return(0,t.jsxs)("div",{className:"flex flex-col",children:[(0,t.jsx)(n.TextLink,{href:`/${l}`,className:"text-xs block truncate font-medium",target:"_blank",rel:"noopener noreferrer",children:s}),(0,t.jsxs)("div",{className:"text-muted-foreground flex gap-1 text-xs",children:["by"," ",(0,t.jsx)(n.TextLink,{href:`/${o}`,target:"_blank",rel:"noopener noreferrer",children:o})]})]})},S[14]=H,S[15]=D,S[16]=K,S[17]=y,S[18]=G,S[19]=v):v=S[19];let J=v;S[20]!==D||S[21]!==K?(k=e=>{if("string"!=typeof e||"others"===e.toLowerCase())return(0,t.jsx)(a.AuthorIcon,{frame:!0,author:"unknown",className:"size-6 shrink-0"});let r=D(e),n=K.get(e),i=r?.author??n?.author??"unknown";return(0,t.jsx)(a.AuthorIcon,{frame:!0,author:i,permaslug:e,className:"size-6 shrink-0"})},S[20]=D,S[21]=K,S[22]=k):k=S[22];let Q=k;S[23]!==D||S[24]!==y?(N=e=>{if("others"===e.toLowerCase())return void(0,h.openRankingsSeriesLink)(e,y);let t=D(e);t&&(0,h.openRankingsSeriesLink)(`/${(0,c.getModelVariantSlug)(t)}`,y)},S[23]=D,S[24]=y,S[25]=N):N=S[25];let X=N,Y=W&&void 0!==R&&R?X:void 0;S[26]!==D?(w=e=>(0,m.getIsRankingSeriesClickable)(e,D),S[26]=D,S[27]=w):w=S[27];let Z=w;return S[28]!==M||S[29]!==_||S[30]!==L||S[31]!==Z||S[32]!==z||S[33]!==q||S[34]!==Q||S[35]!==J||S[36]!==E||S[37]!==P||S[38]!==Y||S[39]!==O||S[40]!==B||S[41]!==T||S[42]!==A?(j=(0,t.jsx)(i.StackedBarChart,{data:M,"data-testid":O,legendConfig:q,isPercentage:z,isAnimationActive:!1,onLabel:J,onTooltipLabel:E,onIcon:Q,onClick:Y,getIsSeriesClickable:Z,forecast:_,forecastFromTimestamp:L,showPercentage:P,valueFormatter:T,yAxisTickFormatter:A,useRichTooltip:B}),S[28]=M,S[29]=_,S[30]=L,S[31]=Z,S[32]=z,S[33]=q,S[34]=Q,S[35]=J,S[36]=E,S[37]=P,S[38]=Y,S[39]=O,S[40]=B,S[41]=T,S[42]=A,S[43]=j):j=S[43],j}])},785087,62705,e=>{"use strict";var t=e.i(238032),r=e.i(179273);e.s(["getDistinctModelChartLabels",0,function(e){let r=new Map([...e].map(([e,r])=>[e,(0,t.formatModelName)(r.name,{shorten:!0,preserveVariant:!0})])),a=new Map;for(let[e,t]of r){let r=a.get(t)??[];r.push(e),a.set(t,r)}let n=new Map(r);for(let r of a.values()){if(r.length<2)continue;let a=new Map(r.flatMap(r=>{let a=e.get(r);return a?[[r,(0,t.formatModelName)(a.distinctName,{shorten:!0,keepNote:!0})]]:[]})),i=new Set(a.values()).size{"use strict";var t=e.i(179273);e.s(["getRankingsModelVariantHref",0,function(e,r){let a=(0,t.getStaticVariant)(e);return a===t.StaticVariant.Standard?`/${r}`:`/${(0,t.getSlugWithStaticVariant)(r,a)}`},"openRankingsSeriesLink",0,function(e,t){let r="others"===e.toLowerCase()?t??"/models?fmt=cards":e.startsWith("/")?e:`/${e}`;window.open(r,"_blank","noopener,noreferrer")}])},566055,e=>{"use strict";var t=e.i(222666),r=e.i(505962),a=e.i(452473),n=e.i(763392),i=e.i(557225),s=e.i(759024),o=e.i(779100),l=e.i(370066),c=e.i(706527),d=e.i(270401),u=e.i(626961),m=e.i(725072),h=e.i(493630),g=e.i(487481),p=e.i(596369);e.i(406201);var f=e.i(806024);e.s(["CollectionModelItem",0,e=>{let x,b,v,k,N,w,j,S,M,C,$,_,L,y,P,V,T,A,I,R,F,z,O,U,B,G,D=(0,r.c)(66),{model:W,categories:q,analytics:K,usageTimeLabel:H}=e,E=void 0===H?"7 days":H,J=(0,o.useLocale)(),Q=(0,c.getModelVariantPermaslug)(W),X=q?.[Q],Y=K?.[Q];D[0]!==J||D[1]!==W.output_modalities||D[2]!==Y||D[3]!==E?(x=(0,m.getModelListMetric)(J,{outputModalities:W.output_modalities,row:Y,timeLabel:E}),D[0]=J,D[1]=W.output_modalities,D[2]=Y,D[3]=E,D[4]=x):x=D[4];let Z=x,ee=W.endpoint?.display_pricing,et=W.endpoint?.pricing?.discount,er=W.context_length,[ea,en]=(0,d.useState)(!1);D[5]===Symbol.for("react.memo_cache_sentinel")?(b=(0,a.cn)("flex w-full items-center justify-between","group py-6 border-b border-border/30 last:border-b-0","flex-col md:flex-row","gap-3"),D[5]=b):b=D[5],D[6]!==W?(v=(0,c.getModelVariantSlug)(W),D[6]=W,D[7]=v):v=D[7];let ei=`/${v}`;D[8]===Symbol.for("react.memo_cache_sentinel")?(k=(0,a.cn)("transition-colors","text-foreground hover:underline","underline-offset-2","text-xl font-semibold md:text-2xl","flex items-center gap-2"),D[8]=k):k=D[8];let es=W.author;D[9]!==W?(N=(0,c.getModelVariantPermaslug)(W),D[9]=W,D[10]=N):N=D[10],D[11]!==W.author||D[12]!==W.author_icon_uri||D[13]!==N?(w=(0,t.jsx)(i.AuthorIcon,{author:es,permaslug:N,iconUri:W.author_icon_uri,className:"size-8"}),D[11]=W.author,D[12]=W.author_icon_uri,D[13]=N,D[14]=w):w=D[14],D[15]!==W.name?(j=(0,t.jsx)("h3",{children:W.name}),D[15]=W.name,D[16]=j):j=D[16],D[17]!==w||D[18]!==j||D[19]!==ei?(S=(0,t.jsxs)(f.Link,{href:ei,className:k,children:[w,j]}),D[17]=w,D[18]=j,D[19]=ei,D[20]=S):S=D[20],D[21]===Symbol.for("react.memo_cache_sentinel")?(M=(0,a.cn)("flex shrink-0 items-center gap-1 text-xs text-muted-foreground/60 md:text-base","justify-end md:w-40"),D[21]=M):M=D[21],D[22]!==Z?(C=Z?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("span",{className:"md:inline",children:(0,t.jsxs)("span",{children:[Z.text," "]})}),(0,t.jsx)(s.InfoTooltip,{side:"bottom",children:Z.tooltip})]}):null,D[22]=Z,D[23]=C):C=D[23],D[24]!==C?($=(0,t.jsx)("div",{className:M,children:C}),D[24]=C,D[25]=$):$=D[25],D[26]!==S||D[27]!==$?(_=(0,t.jsxs)("div",{className:"flex justify-between items-start md:pr-0",children:[S,$]}),D[26]=S,D[27]=$,D[28]=_):_=D[28],D[29]!==X?(L=X&&(0,t.jsx)(g.UseCaseCategoryChipGroup,{categories:X,source:"collection_model_item"}),D[29]=X,D[30]=L):L=D[30];let eo=!ea&&"line-clamp-3";D[31]!==eo?(y=(0,a.cn)("whitespace-pre-wrap","md:pr-0","text-muted-foreground leading-relaxed",eo),D[31]=eo,D[32]=y):y=D[32],D[33]!==W.description||D[34]!==y?(P=(0,t.jsx)(n.MarkdownContainer,{disableLink:!0,className:y,children:W.description}),D[33]=W.description,D[34]=y,D[35]=P):P=D[35],D[36]!==ea?(V=!ea&&(0,t.jsx)("div",{className:(0,a.cn)("absolute bottom-0 left-0 right-0","h-6 bg-gradient-to-t from-background to-transparent","pointer-events-none")}),D[36]=ea,D[37]=V):V=D[37],D[38]!==ea?(T=()=>en(!ea),D[38]=ea,D[39]=T):T=D[39],D[40]===Symbol.for("react.memo_cache_sentinel")?(A=(0,a.cn)("text-sm text-muted-foreground hover:text-foreground","underline underline-offset-2","mt-1"),D[40]=A):A=D[40];let el=ea?"Show less":"Show more";return D[41]!==T||D[42]!==el?(I=(0,t.jsx)("button",{type:"button",onClick:T,className:A,children:el}),D[41]=T,D[42]=el,D[43]=I):I=D[43],D[44]!==P||D[45]!==V||D[46]!==I?(R=(0,t.jsxs)("div",{className:"relative",children:[P,V,I]}),D[44]=P,D[45]=V,D[46]=I,D[47]=R):R=D[47],D[48]!==W.author?(F=(0,t.jsx)(p.ModelAuthorByline,{author:W.author,linkClassName:"pointer-events-auto relative z-10"}),D[48]=W.author,D[49]=F):F=D[49],D[50]!==er||D[51]!==J?(z=er>0&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(h.ModelsPageListItemShell.FooterDivider,{}),(0,t.jsxs)("span",{children:[(0,l.formatNumber)(er,{locale:J,preset:"compact-rounded-thousands"})??"—"," ","context"]})]}),D[50]=er,D[51]=J,D[52]=z):z=D[52],D[53]!==et||D[54]!==ee?(O=ee&&ee.length>0&&(0,t.jsx)("span",{className:"pointer-events-auto relative z-10 inline-flex items-center gap-2",children:(0,t.jsx)(u.CompactDisplayPricing,{displayPricing:ee,discount:et})}),D[53]=et,D[54]=ee,D[55]=O):O=D[55],D[56]===Symbol.for("react.memo_cache_sentinel")?(U=(0,t.jsx)("div",{className:(0,a.cn)("md:hidden","absolute bottom-0 right-0","h-8 w-3","pointer-events-none bg-gradient-to-r from-transparent to-background")}),D[56]=U):U=D[56],D[57]!==F||D[58]!==z||D[59]!==O?(B=(0,t.jsxs)(h.ModelsPageListItemShell.Footer,{children:[F,z,O,U]}),D[57]=F,D[58]=z,D[59]=O,D[60]=B):B=D[60],D[61]!==_||D[62]!==L||D[63]!==R||D[64]!==B?(G=(0,t.jsx)("div",{className:b,children:(0,t.jsxs)("div",{className:"flex flex-col gap-3 w-full",children:[_,L,R,B]})}),D[61]=_,D[62]=L,D[63]=R,D[64]=B,D[65]=G):G=D[65],G}])}]); //# sourceMappingURL=296rasl-n__pz.js.map //# chunkId=01a099a4-bae6-7941-8358-3ee137824e49