!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]="01a08eb6-297c-7af0-9ee7-b867c0402199")}catch(e){}}();(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,229387,e=>{"use strict";var t=e.i(222666),r=e.i(505962),l=e.i(270401),a=e.i(325896),n=e.i(685135),i=e.i(452880),o=e.i(452473),s=e.i(562580),u=e.i(678915);e.i(406201);var d=e.i(806024);function c(e){let l,a,n,i,c=(0,r.c)(5),{modelCount:g}=e;c[0]===Symbol.for("react.memo_cache_sentinel")?(l=(0,t.jsxs)("div",{className:"flex min-w-0 flex-1 flex-col gap-0.5",children:[(0,t.jsx)("span",{className:"text-base font-semibold text-foreground",children:"Browse every model"}),(0,t.jsx)("span",{className:"text-sm text-muted-foreground",children:"Search, filter, sort, and compare the complete catalog on the models page."})]}),c[0]=l):l=c[0],c[1]===Symbol.for("react.memo_cache_sentinel")?(a=(0,o.cn)((0,s.buttonVariants)({variant:"default"}),"shrink-0 self-start no-underline sm:self-center"),c[1]=a):a=c[1];let h=g>0?`View all ${g} models`:"View all models";return c[2]===Symbol.for("react.memo_cache_sentinel")?(n=(0,t.jsx)(u.ArrowRight,{className:"size-4"}),c[2]=n):n=c[2],c[3]!==h?(i=(0,t.jsxs)("section",{className:"flex flex-col gap-3 rounded-lg border border-border bg-card p-5 sm:flex-row sm:items-center",children:[l,(0,t.jsxs)(d.Link,{href:"/models",onClick:m,className:a,children:[h,n]})]}),c[3]=h,c[4]=i):i=c[4],i}function m(){(0,a.trackDiscoveryEvent)(a.DiscoveryEvent.ModelsOutboundClicked,{source:a.DiscoveryOutboundSource.FooterBanner})}var g=e.i(34864),h=e.i(727086);let p=(0,l.createContext)(y),f=(0,l.createContext)(y),v=(0,l.createContext)(null),x=(0,l.createContext)({openLaneId:null,toggleLane:()=>!1,setIsOpen:function(){}});function y(){}function b(){return(0,l.useContext)(p)}function k(){return(0,l.useContext)(v)}function w(){return(0,l.useContext)(x)}function P(e){let a,n=(0,r.c)(3),{children:i}=e,o=(0,l.useContext)(f);return n[0]!==i||n[1]!==o?(a=(0,t.jsx)(p.Provider,{value:o,children:i}),n[0]=i,n[1]=o,n[2]=a):a=n[2],a}function j(e){return e.target instanceof Element&&null!==e.target.closest("a, button, input")}function S(e){let a,n,i,o,s,u,d,c,m,y,b,k,w=(0,r.c)(34),{children:P}=e;w[0]===Symbol.for("react.memo_cache_sentinel")?(a={paramName:"model"},w[0]=a):a=w[0];let j=(0,h.useDetailPaneDeeplink)(a);w[1]===Symbol.for("react.memo_cache_sentinel")?(n={paramName:"lane"},w[1]=n):n=w[1];let S=(0,h.useDetailPaneDeeplink)(n),[M,C]=(0,l.useState)(null),[A]=(0,l.useState)(T),[D]=(0,l.useState)(_),{toggle:O,setIsOpen:E}=S,{toggle:$}=j,I=N;w[2]!==E||w[3]!==$?(i=e=>{C(e),E(!1),$(e.variantPermaslug)&&I(e,!1)},w[2]=E,w[3]=$,w[4]=i):i=w[4];let L=i;w[5]!==$?(o=e=>{C(e),$(e.variantPermaslug)&&I(e,!0)},w[5]=$,w[6]=o):o=w[6];let V=o;w[7]!==S.selectedId||w[8]!==E||w[9]!==O?(s={openLaneId:S.selectedId,toggleLane:O,setIsOpen:E},w[7]=S.selectedId,w[8]=E,w[9]=O,w[10]=s):s=w[10];let R=s,H=M?.variantPermaslug===j.selectedId?M.name:null;return w[11]===Symbol.for("react.memo_cache_sentinel")?(u=[],w[11]=u):u=w[11],w[12]===Symbol.for("react.memo_cache_sentinel")?(d={rangeLabel:"(last 30 days)",emptyLabel:"No usage in the last 30 days."},w[12]=d):d=w[12],w[13]!==D||w[14]!==A||w[15]!==H||w[16]!==S.isOpen||w[17]!==j.isOpen||w[18]!==j.selectedId||w[19]!==j.setIsOpen?(c=(0,t.jsx)(g.ModelDetailSheet,{slug:j.selectedId,label:H,metric:null,metricLabel:null,stats:u,dateFrom:D,dateTo:A,isOpen:j.isOpen,setIsOpen:j.setIsOpen,nested:S.isOpen,usageScope:"global",usageCopy:d}),w[13]=D,w[14]=A,w[15]=H,w[16]=S.isOpen,w[17]=j.isOpen,w[18]=j.selectedId,w[19]=j.setIsOpen,w[20]=c):c=w[20],w[21]!==P||w[22]!==R||w[23]!==c?(m=(0,t.jsxs)(x.Provider,{value:R,children:[P,c]}),w[21]=P,w[22]=R,w[23]=c,w[24]=m):m=w[24],w[25]!==j.selectedId||w[26]!==m?(y=(0,t.jsx)(v.Provider,{value:j.selectedId,children:m}),w[25]=j.selectedId,w[26]=m,w[27]=y):y=w[27],w[28]!==V||w[29]!==y?(b=(0,t.jsx)(f.Provider,{value:V,children:y}),w[28]=V,w[29]=y,w[30]=b):b=w[30],w[31]!==L||w[32]!==b?(k=(0,t.jsx)(p.Provider,{value:L,children:b}),w[31]=L,w[32]=b,w[33]=k):k=w[33],k}function N(e,t){(0,a.trackDiscoveryEvent)(a.DiscoveryEvent.ModelSheetOpened,{model_permaslug:e.variantPermaslug,model_name:e.name,stacked:t})}function _(){return new Date(Date.now()-2592e6)}function T(){return new Date}var M=e.i(24381),C=e.i(648156),A=e.i(251561);function D(e){let l,a,n,i,s=(0,r.c)(9),{content:u,className:d}=e;return u?(s[0]!==d?(l=(0,o.cn)("relative inline-flex cursor-help before:absolute before:-inset-1.5 before:content-['']",d),s[0]=d,s[1]=l):l=s[1],s[2]===Symbol.for("react.memo_cache_sentinel")?(a=(0,t.jsx)(A.Info,{"aria-hidden":"true",className:"size-3.5"}),s[2]=a):a=s[2],s[3]!==u||s[4]!==l?(n=(0,t.jsx)("span",{"aria-label":u,tabIndex:0,onClick:O,className:l,children:a}),s[3]=u,s[4]=l,s[5]=n):n=s[5],s[6]!==u||s[7]!==n?(i=(0,t.jsx)(C.Tooltip,{side:"top",className:"max-w-xs",content:u,children:n}),s[6]=u,s[7]=n,s[8]=i):i=s[8],i):null}function O(e){e.stopPropagation(),e.preventDefault()}let E="default",$="top-usage",I="lab-frontier",L="smartest-open",V="smartest-coding",R="value",H="fastest",U={"Price in":"List input price; native units are shown for non-token models.","Price out":"List output price when applicable to the model.","TTFT p50":"Median time to first token: how long the model takes to start responding.",Throughput:"Median output speed across recent production traffic.",Providers:"How many providers currently serve this model.","Agentic pctl":"Percentile on the Artificial Analysis agentic index, relative to the other frontier models it scores.","Intel pctl":"Percentile on the Artificial Analysis intelligence index, relative to the other frontier models it scores.","Coding pctl":"Percentile on the Artificial Analysis coding index, relative to the other frontier models it scores.",Tokens:"Tokens served on OpenRouter over the last 7 days.","Tokens/wk":"Tokens served on OpenRouter over the last 7 days.","Family tokens":"Weekly tokens served across every model in this family."},F={[E]:"text-foreground",positive:"text-green-11",warning:"text-amber-11"};function B(e){let r=U[e];return r?(0,t.jsx)(C.Tooltip,{side:"top",content:r,children:(0,t.jsx)("span",{className:"cursor-help border-b border-dotted border-muted-foreground",children:e})}):e}function W(e){let t=new Set;for(let r of e)for(let e of r.stats)t.add(e.label);return[...t]}function z(e,t){return 224+160*!!t+96*e}var q=e.i(557225),G=e.i(133974),Q=e.i(153206),K=e.i(596369),X=e.i(885523);function Y(e){let l,n,i,o=(0,r.c)(8),{lane:s}=e,u=w();return o[0]!==s.id||o[1]!==u?(l=(0,t.jsx)("button",{type:"button",onClick:()=>{(0,a.trackDiscoveryEvent)(a.DiscoveryEvent.LaneViewMoreClicked,{lane_id:s.id}),u.toggleLane(s.id)},className:"shrink-0 whitespace-nowrap text-sm font-medium text-foreground underline underline-offset-4 transition-colors hover:text-accent-foreground",children:"View more"}),o[0]=s.id,o[1]=u,o[2]=l):l=o[2],o[3]!==s?(n=(0,t.jsx)(J,{lane:s}),o[3]=s,o[4]=n):n=o[4],o[5]!==l||o[6]!==n?(i=(0,t.jsxs)(t.Fragment,{children:[l,n]}),o[5]=l,o[6]=n,o[7]=i):i=o[7],i}function J(e){let l,a,n,i,o,s,u,d,c,m,g,h,p,f,v,x,y,b,k,j,S,N,_,T,M,C,A,D=(0,r.c)(70),{lane:O,footer:E}=e,$=w();if(D[0]!==E||D[1]!==O.id||D[2]!==O.sheetModels||D[3]!==O.subtitle||D[4]!==O.title||D[5]!==$.openLaneId||D[6]!==$.setIsOpen?(u=W(O.sheetModels),d="free"!==O.id,s=Q.DetailSheet,y=$.openLaneId===O.id,b=$.setIsOpen,k=O.title,m=O.subtitle,g=E,o=P,i=X.TableScrollHints,n=G.Table,v="or-table-wrapper--framed",x={minWidth:z(u.length,d)},a=G.TableHeader,l=G.TableRow,D[26]===Symbol.for("react.memo_cache_sentinel")?(c=(0,t.jsx)(G.TableHead,{className:"text-center",children:"#"}),h=(0,t.jsx)(G.TableHead,{className:"min-w-44",children:"Model"}),D[26]=c,D[27]=h):(c=D[26],h=D[27]),D[28]!==d?(p=d&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(G.TableHead,{className:"whitespace-nowrap text-right",children:B("Price in")}),(0,t.jsx)(G.TableHead,{className:"whitespace-nowrap",children:B("Price out")})]}),D[28]=d,D[29]=p):p=D[29],f=u.map(Z),D[0]=E,D[1]=O.id,D[2]=O.sheetModels,D[3]=O.subtitle,D[4]=O.title,D[5]=$.openLaneId,D[6]=$.setIsOpen,D[7]=l,D[8]=a,D[9]=n,D[10]=i,D[11]=o,D[12]=s,D[13]=u,D[14]=d,D[15]=c,D[16]=m,D[17]=g,D[18]=h,D[19]=p,D[20]=f,D[21]=v,D[22]=x,D[23]=y,D[24]=b,D[25]=k):(l=D[7],a=D[8],n=D[9],i=D[10],o=D[11],s=D[12],u=D[13],d=D[14],c=D[15],m=D[16],g=D[17],h=D[18],p=D[19],f=D[20],v=D[21],x=D[22],y=D[23],b=D[24],k=D[25]),D[30]!==l||D[31]!==c||D[32]!==h||D[33]!==p||D[34]!==f?(j=(0,t.jsxs)(l,{children:[c,h,p,f]}),D[30]=l,D[31]=c,D[32]=h,D[33]=p,D[34]=f,D[35]=j):j=D[35],D[36]!==a||D[37]!==j?(S=(0,t.jsx)(a,{children:j}),D[36]=a,D[37]=j,D[38]=S):S=D[38],D[39]!==u||D[40]!==O.id||D[41]!==O.sheetModels||D[42]!==d){let e;D[44]!==u||D[45]!==O.id||D[46]!==d?(e=(e,r)=>(0,t.jsx)(ee,{laneId:O.id,model:e,rank:r+1,columns:u,showsPricing:d},e.variantPermaslug),D[44]=u,D[45]=O.id,D[46]=d,D[47]=e):e=D[47],N=O.sheetModels.map(e),D[39]=u,D[40]=O.id,D[41]=O.sheetModels,D[42]=d,D[43]=N}else N=D[43];return D[48]!==N?(_=(0,t.jsx)(G.TableBody,{children:N}),D[48]=N,D[49]=_):_=D[49],D[50]!==n||D[51]!==S||D[52]!==_||D[53]!==v||D[54]!==x?(T=(0,t.jsxs)(n,{containerClassName:v,style:x,children:[S,_]}),D[50]=n,D[51]=S,D[52]=_,D[53]=v,D[54]=x,D[55]=T):T=D[55],D[56]!==i||D[57]!==T?(M=(0,t.jsx)(i,{children:T}),D[56]=i,D[57]=T,D[58]=M):M=D[58],D[59]!==o||D[60]!==M?(C=(0,t.jsx)(o,{children:M}),D[59]=o,D[60]=M,D[61]=C):C=D[61],D[62]!==s||D[63]!==m||D[64]!==g||D[65]!==C||D[66]!==y||D[67]!==b||D[68]!==k?(A=(0,t.jsx)(s,{isOpen:y,setIsOpen:b,title:k,subtitle:m,footer:g,children:C}),D[62]=s,D[63]=m,D[64]=g,D[65]=C,D[66]=y,D[67]=b,D[68]=k,D[69]=A):A=D[69],A}function Z(e){return(0,t.jsx)(G.TableHead,{className:"whitespace-nowrap text-right",children:B(e)},e)}function ee(e){let l,n,i,o,s,u,d,c,m,g,h=(0,r.c)(38),{laneId:p,model:f,rank:v,columns:x,showsPricing:y}=e,w=b(),P=k()===f.variantPermaslug?"selected":void 0;if(h[0]!==p||h[1]!==f||h[2]!==w||h[3]!==v?(l=e=>{j(e)||((0,a.trackDiscoveryEvent)(a.DiscoveryEvent.LaneSheetRowClicked,{lane_id:p,rank:v,model_permaslug:f.variantPermaslug,model_name:f.name}),w(f))},h[0]=p,h[1]=f,h[2]=w,h[3]=v,h[4]=l):l=h[4],h[5]!==v?(n=(0,t.jsx)(G.TableCell,{className:"text-center",children:(0,t.jsx)("span",{className:"font-mono text-sm tabular-nums text-muted-foreground",children:v})}),h[5]=v,h[6]=n):n=h[6],h[7]!==f.authorSlug||h[8]!==f.variantPermaslug?(i=(0,t.jsx)(q.AuthorIcon,{author:f.authorSlug,permaslug:f.variantPermaslug,frame:!0,className:"size-7"}),h[7]=f.authorSlug,h[8]=f.variantPermaslug,h[9]=i):i=h[9],h[10]!==f.name?(o=(0,t.jsx)("span",{className:"truncate text-sm font-medium text-foreground transition-colors group-hover:text-accent-foreground",children:f.name}),h[10]=f.name,h[11]=o):o=h[11],h[12]!==f.authorSlug||h[13]!==f.lab?(s=(0,t.jsx)(K.ModelAuthorByline,{author:f.authorSlug,displayName:f.lab,className:"truncate text-xs text-muted-foreground"}),h[12]=f.authorSlug,h[13]=f.lab,h[14]=s):s=h[14],h[15]!==o||h[16]!==s?(u=(0,t.jsxs)("div",{className:"flex min-w-0 flex-col",children:[o,s]}),h[15]=o,h[16]=s,h[17]=u):u=h[17],h[18]!==i||h[19]!==u?(d=(0,t.jsx)(G.TableCell,{children:(0,t.jsxs)("div",{className:"flex max-w-64 items-center gap-2",children:[i,u]})}),h[18]=i,h[19]=u,h[20]=d):d=h[20],h[21]!==f.inputPrice||h[22]!==f.isCustomPricing||h[23]!==f.outputPrice||h[24]!==y?(c=y&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(G.TableCell,{className:"whitespace-nowrap text-right",children:f.inputPrice?(0,t.jsx)(et,{value:f.inputPrice}):(0,t.jsx)("span",{className:"text-muted-foreground",children:"–"})}),(0,t.jsx)(G.TableCell,{className:"whitespace-nowrap",children:f.outputPrice&&!f.isCustomPricing?(0,t.jsx)(et,{value:f.outputPrice}):(0,t.jsx)("span",{className:"text-muted-foreground",children:"–"})})]}),h[21]=f.inputPrice,h[22]=f.isCustomPricing,h[23]=f.outputPrice,h[24]=y,h[25]=c):c=h[25],h[26]!==x||h[27]!==f.stats){let e;h[29]!==f.stats?(e=e=>{let r=f.stats.find(t=>t.label===e);return(0,t.jsx)(G.TableCell,{className:"whitespace-nowrap text-right",children:r?(0,t.jsx)("span",{className:"font-mono text-sm tabular-nums",children:r.value}):(0,t.jsx)("span",{className:"text-muted-foreground",children:"–"})},e)},h[29]=f.stats,h[30]=e):e=h[30],m=x.map(e),h[26]=x,h[27]=f.stats,h[28]=m}else m=h[28];return h[31]!==P||h[32]!==m||h[33]!==l||h[34]!==n||h[35]!==d||h[36]!==c?(g=(0,t.jsxs)(G.TableRow,{className:"group cursor-pointer","data-state":P,onClick:l,children:[n,d,c,m]}),h[31]=P,h[32]=m,h[33]=l,h[34]=n,h[35]=d,h[36]=c,h[37]=g):g=h[37],g}function et(e){let l,a,n,i,o=(0,r.c)(10),{value:s}=e;o[0]!==s?(l=s.startsWith("$"),o[0]=s,o[1]=l):l=o[1];let u=l;return o[2]!==u?(a=u&&(0,t.jsx)("span",{className:"text-muted-foreground",children:"$"}),o[2]=u,o[3]=a):a=o[3],o[4]!==u||o[5]!==s?(n=u?s.slice(1).trimStart():s,o[4]=u,o[5]=s,o[6]=n):n=o[6],o[7]!==a||o[8]!==n?(i=(0,t.jsxs)("span",{className:"font-mono text-sm tabular-nums",children:[a,n]}),o[7]=a,o[8]=n,o[9]=i):i=o[9],i}function er(e){let l,n,i,s,u,d,c,m=(0,r.c)(26),{laneId:g,model:h,rank:p,columns:f}=e,v=b(),x=k()===h.variantPermaslug?"selected":void 0;if(m[0]!==g||m[1]!==h||m[2]!==v||m[3]!==p?(l=e=>{j(e)||((0,a.trackDiscoveryEvent)(a.DiscoveryEvent.LaneRowClicked,{lane_id:g,rank:p,model_permaslug:h.variantPermaslug,model_name:h.name}),v(h))},m[0]=g,m[1]=h,m[2]=v,m[3]=p,m[4]=l):l=m[4],m[5]!==p?(n=(0,t.jsx)(G.TableCell,{className:"text-center",children:(0,t.jsx)("span",{className:"font-mono text-sm tabular-nums text-muted-foreground",children:p})}),m[5]=p,m[6]=n):n=m[6],m[7]!==h.authorSlug||m[8]!==h.variantPermaslug?(i=(0,t.jsx)(q.AuthorIcon,{author:h.authorSlug,permaslug:h.variantPermaslug,frame:!0,className:"size-7 shrink-0"}),m[7]=h.authorSlug,m[8]=h.variantPermaslug,m[9]=i):i=m[9],m[10]!==h.name?(s=(0,t.jsx)("span",{className:"truncate text-sm font-semibold text-foreground transition-colors group-hover:text-accent-foreground",children:h.name}),m[10]=h.name,m[11]=s):s=m[11],m[12]!==i||m[13]!==s?(u=(0,t.jsx)(G.TableCell,{children:(0,t.jsxs)("div",{className:"flex max-w-64 items-center gap-2.5",children:[i,s]})}),m[12]=i,m[13]=s,m[14]=u):u=m[14],m[15]!==f||m[16]!==h.stats){let e;m[18]!==h.stats?(e=e=>{let r=h.stats.find(t=>t.label===e);return(0,t.jsx)(G.TableCell,{className:"whitespace-nowrap text-right",children:r?(0,t.jsx)("span",{className:(0,o.cn)("font-mono text-sm font-medium tabular-nums",F[r.tone??E]),children:r.value}):(0,t.jsx)("span",{className:"text-muted-foreground",children:"–"})},e)},m[18]=h.stats,m[19]=e):e=m[19],d=f.map(e),m[15]=f,m[16]=h.stats,m[17]=d}else d=m[17];return m[20]!==x||m[21]!==l||m[22]!==n||m[23]!==u||m[24]!==d?(c=(0,t.jsxs)(G.TableRow,{className:"group cursor-pointer","data-state":x,onClick:l,children:[n,u,d]}),m[20]=x,m[21]=l,m[22]=n,m[23]=u,m[24]=d,m[25]=c):c=m[25],c}let el={value:"Benchmark performance per dollar. Scores come from the independent Artificial Analysis benchmarks; price is each model’s combined rate for input and output tokens, weighted toward input to match typical usage. Only models scoring in the top half qualify."};function ea(e){let l,a=(0,r.c)(10),{lane:n}=e,i=el[n.id];if(a[0]!==n||a[1]!==i){var o;let e,r,s,u=W(n.models);a[3]!==i?(e=i&&(0,t.jsx)(D,{content:i,className:"text-muted-foreground"}),a[3]=i,a[4]=e):e=a[4],a[5]!==n.title||a[6]!==e?(r=(0,t.jsxs)(t.Fragment,{children:[n.title,e]}),a[5]=n.title,a[6]=e,a[7]=r):r=a[7],a[8]!==n?(s=(0,t.jsx)(Y,{lane:n}),a[8]=n,a[9]=s):s=a[9],l=(0,t.jsx)(M.TableCard,{title:r,subtitle:n.subtitle,action:s,columns:(o=u,[{key:"rank",label:(0,t.jsx)("span",{className:"sr-only",children:"Rank"}),className:"w-10 text-center"},{key:"model",label:"Model",className:"min-w-44"},...o.map(e=>({key:e,label:B(e),className:"whitespace-nowrap text-right"}))]),rows:n.models.map((e,r)=>(0,t.jsx)(er,{laneId:n.id,model:e,rank:r+1,columns:u},e.variantPermaslug)),tableMinWidth:z(u.length,!1)}),a[0]=n,a[1]=i,a[2]=l}else l=a[2];return l}let en={"tokens this week":"tokens/wk","intelligence score":"intelligence","coding score":"coding index","per 1M input":"/M tokens","median output speed":"tok/s"},ei=[$,L,R,H,V];function eo(e){let l,a,n,i,o,s,u,d,c=(0,r.c)(20),{signals:m}=e;c[0]!==m?(l=m.find(es),c[0]=m,c[1]=l):l=c[1];let g=l;if(c[2]!==g||c[3]!==m){s=Symbol.for("react.early_return_sentinel");e:{let e;c[9]!==m?(e=e=>{var t;let r=m.find(t=>t.kind===e);return r&&void 0!==(t=r).metric&&void 0!==t.metricLabel?[r]:[]},c[9]=m,c[10]=e):e=c[10];let r=ei.flatMap(e);if(!g&&0===r.length){s=null;break e}i="grid grid-cols-1 gap-3 lg:grid-cols-[minmax(0,11fr)_minmax(0,9fr)]",c[11]!==g?(o=g&&(0,t.jsx)(eu,{signal:g}),c[11]=g,c[12]=o):o=c[12],a="grid auto-rows-fr grid-cols-1 gap-3 sm:grid-cols-2",n=r.map((e,l)=>(0,t.jsx)(eg,{signal:e,className:l===r.length-1&&r.length%2==1?"sm:col-span-2":void 0},e.id))}c[2]=g,c[3]=m,c[4]=a,c[5]=n,c[6]=i,c[7]=o,c[8]=s}else a=c[4],n=c[5],i=c[6],o=c[7],s=c[8];return s!==Symbol.for("react.early_return_sentinel")?s:(c[13]!==a||c[14]!==n?(u=(0,t.jsx)("div",{className:a,children:n}),c[13]=a,c[14]=n,c[15]=u):u=c[15],c[16]!==i||c[17]!==o||c[18]!==u?(d=(0,t.jsxs)("section",{className:i,children:[o,u]}),c[16]=i,c[17]=o,c[18]=u,c[19]=d):d=c[19],d)}function es(e){return e.kind===I}function eu(e){let l,a,n,i,o,s,u,d,c,m=(0,r.c)(22),{signal:g}=e;if(m[0]!==g){let e,r,u;m[7]!==g.frontier?(e=g.frontier??[],m[7]=g.frontier,m[8]=e):e=m[8];let d=e.toSorted((e,t)=>(eh(t)??-1)-(eh(e)??-1)),c=function(e,t){let[r,l]=e,a=r?eh(r):null,n=l?eh(l):null;if(!r||!l||null===a||null===n)return{headline:t.headline,body:t.body};let i=Math.round(a)-Math.round(n);return 0===i?{headline:`${r.name} and ${l.name} share the frontier lead`,body:`${r.lab} and ${l.lab} are tied on the Artificial Analysis intelligence index.`}:{headline:`${r.name} takes the frontier lead`,body:`${r.lab} edges ${l.lab} by ${i} ${1===i?"point":"points"} on the Artificial Analysis intelligence index.`}}(d,g),h=d.some(ec);o="flex flex-col gap-5 rounded-lg border border-border bg-card p-5 lg:p-6",m[9]===Symbol.for("react.memo_cache_sentinel")?(r=(0,t.jsx)("span",{className:"text-sm font-medium text-muted-foreground",children:"Today's frontier"}),m[9]=r):r=m[9],s=(0,t.jsxs)("div",{className:"flex flex-col gap-2",children:[r,(0,t.jsx)("h2",{className:"text-pretty text-2xl font-semibold leading-tight tracking-tight text-foreground",children:c.headline}),(0,t.jsx)("p",{className:"text-sm leading-6 text-muted-foreground",children:c.body})]}),n="flex flex-1 flex-col",m[10]===Symbol.for("react.memo_cache_sentinel")?(u=(0,t.jsx)("span",{children:"Model"}),m[10]=u):u=m[10],i=(0,t.jsxs)("div",{className:"flex items-center justify-between gap-3 border-b border-border pb-2 text-xs text-muted-foreground",children:[u,h&&(0,t.jsx)("span",{children:"Intelligence (0–100)"})]}),l="flex flex-1 flex-col",a=d.map(ed),m[0]=g,m[1]=l,m[2]=a,m[3]=n,m[4]=i,m[5]=o,m[6]=s}else l=m[1],a=m[2],n=m[3],i=m[4],o=m[5],s=m[6];return m[11]!==l||m[12]!==a?(u=(0,t.jsx)("ol",{className:l,children:a}),m[11]=l,m[12]=a,m[13]=u):u=m[13],m[14]!==n||m[15]!==i||m[16]!==u?(d=(0,t.jsxs)("div",{className:n,children:[i,u]}),m[14]=n,m[15]=i,m[16]=u,m[17]=d):d=m[17],m[18]!==o||m[19]!==s||m[20]!==d?(c=(0,t.jsxs)("article",{className:o,children:[s,d]}),m[18]=o,m[19]=s,m[20]=d,m[21]=c):c=m[21],c}function ed(e,r){return(0,t.jsx)(em,{entry:e,rank:r+1},e.lab)}function ec(e){return null!==eh(e)}function em(e){let l,n,i,s,u,d,c,m,g,h,p,f,v=(0,r.c)(44),{entry:x,rank:y}=e,w=b(),P=k();v[0]!==x?(l=eh(x),v[0]=x,v[1]=l):l=v[1];let j=l,{variantPermaslug:S}=x;v[2]!==x.href||v[3]!==x.lab||v[4]!==x.name||v[5]!==S?(n=()=>{(0,a.trackDiscoveryEvent)(a.DiscoveryEvent.SignalCardClicked,{cta:"frontier_row",lab:x.lab,model_name:x.name,model_permaslug:S,href:S?void 0:x.href})},v[2]=x.href,v[3]=x.lab,v[4]=x.name,v[5]=S,v[6]=n):n=v[6];let N=n;v[7]!==y?(i=(0,t.jsx)("span",{className:"w-5 shrink-0 text-center font-mono text-sm tabular-nums text-muted-foreground",children:y}),v[7]=y,v[8]=i):i=v[8],v[9]!==x.authorSlug||v[10]!==x.variantPermaslug?(s=(0,t.jsx)(q.AuthorIcon,{author:x.authorSlug,permaslug:x.variantPermaslug,frame:!0,className:"size-8 shrink-0"}),v[9]=x.authorSlug,v[10]=x.variantPermaslug,v[11]=s):s=v[11],v[12]!==x.name?(u=(0,t.jsx)("span",{className:"truncate text-sm font-semibold text-foreground transition-colors group-hover:text-accent-foreground",children:x.name}),v[12]=x.name,v[13]=u):u=v[13],v[14]!==x.lab?(d=(0,t.jsx)("span",{className:"truncate text-xs text-muted-foreground",children:x.lab}),v[14]=x.lab,v[15]=d):d=v[15],v[16]!==u||v[17]!==d?(c=(0,t.jsxs)("span",{className:"flex min-w-0 flex-1 flex-col",children:[u,d]}),v[16]=u,v[17]=d,v[18]=c):c=v[18],v[19]!==x.metric||v[20]!==x.metricLabel||v[21]!==j?(m=null===j?(0,t.jsxs)("span",{className:"flex shrink-0 flex-col items-end",children:[(0,t.jsx)("span",{className:"font-mono text-sm font-semibold tabular-nums text-foreground",children:x.metric}),(0,t.jsx)("span",{className:"text-[0.625rem] leading-4 text-muted-foreground",children:x.metricLabel})]}):(0,t.jsxs)("span",{className:"flex shrink-0 items-center gap-3",children:[(0,t.jsx)("span",{"aria-hidden":"true",className:"h-1.5 w-24 overflow-hidden rounded-full bg-foreground/10",children:(0,t.jsx)("span",{className:"block h-full rounded-full bg-primary",style:{width:`${Math.min(j,100)}%`}})}),(0,t.jsx)("span",{className:"w-7 text-right font-mono text-sm font-semibold tabular-nums text-foreground",children:x.metric})]}),v[19]=x.metric,v[20]=x.metricLabel,v[21]=j,v[22]=m):m=v[22],v[23]!==i||v[24]!==s||v[25]!==c||v[26]!==m?(g=(0,t.jsxs)(t.Fragment,{children:[i,s,c,m]}),v[23]=i,v[24]=s,v[25]=c,v[26]=m,v[27]=g):g=v[27];let _=g,T=null!==P&&P===S&&"bg-foreground/5";v[28]!==T?(h=(0,o.cn)("group flex w-full items-center gap-3 px-1 py-2 text-left transition-colors hover:bg-foreground/5",T),v[28]=T,v[29]=h):h=v[29];let M=h;if(!S){let e;return v[30]!==M||v[31]!==_||v[32]!==x.href||v[33]!==N?(e=(0,t.jsx)("li",{className:"flex border-t border-border/60 first:border-t-0",children:(0,t.jsx)("a",{href:x.href,onClick:N,className:M,children:_})}),v[30]=M,v[31]=_,v[32]=x.href,v[33]=N,v[34]=e):e=v[34],e}return v[35]!==x.name||v[36]!==w||v[37]!==N||v[38]!==S?(p=()=>{N(),w({variantPermaslug:S,name:x.name})},v[35]=x.name,v[36]=w,v[37]=N,v[38]=S,v[39]=p):p=v[39],v[40]!==M||v[41]!==_||v[42]!==p?(f=(0,t.jsx)("li",{className:"flex border-t border-border/60 first:border-t-0",children:(0,t.jsx)("button",{type:"button",onClick:p,className:M,children:_})}),v[40]=M,v[41]=_,v[42]=p,v[43]=f):f=v[43],f}function eg(e){var l;let n,i,s,u,d,c,m,g,h,p,f,v,x,y,w,P,j=(0,r.c)(49),{signal:S,className:N}=e,_=b(),T=k(),{variantPermaslug:M}=S,C=void 0!==M&&T===M;j[0]!==S.href||j[1]!==S.id||j[2]!==S.kind||j[3]!==M?(i=()=>{(0,a.trackDiscoveryEvent)(a.DiscoveryEvent.SignalCardClicked,{cta:"stat_card",signal_id:S.id,signal_kind:S.kind,model_permaslug:M,href:M?void 0:S.href})},j[0]=S.href,j[1]=S.id,j[2]=S.kind,j[3]=M,j[4]=i):i=j[4];let A=i;j[5]!==S?(n=en[(l=S).metricLabel]??l.metricLabel,s={value:l.metric.endsWith(" tok/s")?l.metric.slice(0,-6):l.metric,unit:n},j[5]=S,j[6]=s):s=j[6];let O=s;j[7]!==S.explainer?(u=(0,t.jsx)(D,{content:S.explainer}),j[7]=S.explainer,j[8]=u):u=j[8],j[9]!==S.kindLabel||j[10]!==u?(d=(0,t.jsxs)("span",{className:"flex items-center gap-1.5 text-sm font-medium text-muted-foreground",children:[S.kindLabel,u]}),j[9]=S.kindLabel,j[10]=u,j[11]=d):d=j[11],j[12]!==S.authorSlug||j[13]!==S.variantPermaslug?(c=(0,t.jsx)(q.AuthorIcon,{author:S.authorSlug,permaslug:S.variantPermaslug,frame:!0,className:"size-5 shrink-0"}),j[12]=S.authorSlug,j[13]=S.variantPermaslug,j[14]=c):c=j[14],j[15]!==S.title?(m=(0,t.jsx)("span",{className:"truncate text-sm font-semibold text-foreground transition-colors group-hover:text-accent-foreground",children:S.title}),j[15]=S.title,j[16]=m):m=j[16],j[17]!==c||j[18]!==m?(g=(0,t.jsxs)("span",{className:"flex items-center gap-2",children:[c,m]}),j[17]=c,j[18]=m,j[19]=g):g=j[19],j[20]!==O.value?(h=(0,t.jsx)("span",{className:"text-3xl font-semibold leading-none tracking-tight tabular-nums text-foreground",children:O.value}),j[20]=O.value,j[21]=h):h=j[21],j[22]!==O.unit?(p=(0,t.jsx)("span",{className:"text-xs text-muted-foreground",children:O.unit}),j[22]=O.unit,j[23]=p):p=j[23],j[24]!==h||j[25]!==p?(f=(0,t.jsxs)("span",{className:"mt-auto flex items-baseline gap-1.5 pt-3",children:[h,p]}),j[24]=h,j[25]=p,j[26]=f):f=j[26],j[27]!==f||j[28]!==d||j[29]!==g?(v=(0,t.jsxs)(t.Fragment,{children:[d,g,f]}),j[27]=f,j[28]=d,j[29]=g,j[30]=v):v=j[30];let E=v;if(j[31]!==N||j[32]!==E||j[33]!==C||j[34]!==S.href||j[35]!==A||j[36]!==M){y=Symbol.for("react.early_return_sentinel");e:if(x=(0,o.cn)("group flex min-h-32 flex-col gap-2 rounded-lg p-4 text-left","border border-border bg-card transition-colors hover:border-foreground/20",C&&"border-foreground/25 bg-foreground/[0.03]",N),!M){y=(0,t.jsx)("a",{href:S.href,onClick:A,className:(0,o.cn)(x,"no-underline"),children:E});break e}j[31]=N,j[32]=E,j[33]=C,j[34]=S.href,j[35]=A,j[36]=M,j[37]=x,j[38]=y}else x=j[37],y=j[38];return y!==Symbol.for("react.early_return_sentinel")?y:(j[39]!==_||j[40]!==S.title||j[41]!==A||j[42]!==M?(w=()=>{A(),_({variantPermaslug:M,name:S.title})},j[39]=_,j[40]=S.title,j[41]=A,j[42]=M,j[43]=w):w=j[43],j[44]!==x||j[45]!==E||j[46]!==C||j[47]!==w?(P=(0,t.jsx)("button",{type:"button","data-selected":C,onClick:w,className:x,children:E}),j[44]=x,j[45]=E,j[46]=C,j[47]=w,j[48]=P):P=j[48],P)}function eh(e){if("intelligence score"!==e.metricLabel)return null;let t=Number(e.metric);return Number.isFinite(t)?t:null}var ep=e.i(963),ef=e.i(784510),ev=e.i(586534),ex=e.i(706527),ey=e.i(143324);function eb({fallbackSlug:e,model:t,outputModalityIntent:r}){return t?{detailHref:(0,ey.getModelDetailHref)(t,{outputModalityIntent:r}),variantPermaslug:(0,ex.getModelVariantPermaslug)(t)}:{detailHref:`/${e}?output_modalities=${r}`,variantPermaslug:e}}var ek=e.i(633154),ew=e.i(49199);function eP(e){let l,a,n,i,o,s=(0,r.c)(14),{description:u,title:c,viewAll:m}=e;return s[0]!==c?(l=(0,t.jsx)("h2",{className:"text-base font-semibold text-foreground",children:c}),s[0]=c,s[1]=l):l=s[1],s[2]!==u?(a=(0,t.jsx)("p",{className:"text-sm text-muted-foreground",children:u}),s[2]=u,s[3]=a):a=s[3],s[4]!==l||s[5]!==a?(n=(0,t.jsxs)("div",{className:"flex flex-col gap-0.5",children:[l,a]}),s[4]=l,s[5]=a,s[6]=n):n=s[6],s[7]!==m.href||s[8]!==m.label||s[9]!==m.onClick?(i=(0,t.jsx)(d.Link,{href:m.href,onClick:m.onClick,className:"shrink-0 whitespace-nowrap text-sm font-medium text-foreground underline underline-offset-4 transition-colors hover:text-accent-foreground",children:m.label}),s[7]=m.href,s[8]=m.label,s[9]=m.onClick,s[10]=i):i=s[10],s[11]!==n||s[12]!==i?(o=(0,t.jsxs)("div",{className:"flex items-start justify-between gap-3",children:[n,i]}),s[11]=n,s[12]=i,s[13]=o):o=s[13],o}function ej(e){let l,n,i,o,s,u,d,c,m=(0,r.c)(28),{config:g,resolveModel:h,weeklyUsageByVariantPermaslug:p}=e;m[0]!==g||m[1]!==h||m[2]!==p?(l=function({config:e,resolveModel:t,weeklyUsageByVariantPermaslug:r}){return e.families.map((l,a)=>{var n,i;let o=t(l.flagshipSlug),{detailHref:s,variantPermaslug:u}=eb({fallbackSlug:l.flagshipSlug,model:o,outputModalityIntent:e.outputModalityIntent});return{familyName:l.familyName,name:o?e.getDisplayName(o.short_name,l.familyName):l.familyName,author:o?.author||l.author,variantPermaslug:u,detailHref:s,thumbnailUrl:(n=o,i=e,(n?i.getPreviewThumbnailUrl?i.getPreviewThumbnailUrl(n):n.preview_thumbnail_url??null:null)||l.fallbackThumbnailUrl),hoverVideoUrl:l.hoverVideoUrl??null,weeklyUsage:function({family:e,variantPermaslug:t,weeklyUsageByVariantPermaslug:r}){let l=e.usagePermaslugPrefix;return void 0===l?r[t]??0:Object.entries(r).reduce((e,[t,r])=>t.startsWith(l)?e+r:e,0)}({family:l,variantPermaslug:u,weeklyUsageByVariantPermaslug:r}),fallbackOrder:a}}).toSorted((e,t)=>t.weeklyUsage-e.weeklyUsage||e.fallbackOrder-t.fallbackOrder)}({config:g,resolveModel:h,weeklyUsageByVariantPermaslug:p}),m[0]=g,m[1]=h,m[2]=p,m[3]=l):l=m[3];let f=l;m[4]!==g.viewAllLabel?(n=(0,t.jsxs)(t.Fragment,{children:["View all",(0,t.jsxs)("span",{className:"hidden sm:inline",children:[" ",g.viewAllLabel]})]}),m[4]=g.viewAllLabel,m[5]=n):n=m[5],m[6]!==g.viewAllSource?(i=()=>{(0,a.trackDiscoveryEvent)(a.DiscoveryEvent.ModelsOutboundClicked,{source:g.viewAllSource})},m[6]=g.viewAllSource,m[7]=i):i=m[7],m[8]!==g.viewAllHref||m[9]!==n||m[10]!==i?(o={href:g.viewAllHref,label:n,onClick:i},m[8]=g.viewAllHref,m[9]=n,m[10]=i,m[11]=o):o=m[11],m[12]!==g.description||m[13]!==g.heading||m[14]!==o?(s=(0,t.jsx)(eP,{title:g.heading,description:g.description,viewAll:o}),m[12]=g.description,m[13]=g.heading,m[14]=o,m[15]=s):s=m[15];let v=g.listLabel,x=f.length;if(m[16]!==g||m[17]!==f){let e;m[19]!==g?(e=e=>(0,t.jsx)("li",{children:(0,t.jsx)(eS,{model:e,config:g})},e.familyName),m[19]=g,m[20]=e):e=m[20],u=f.map(e),m[16]=g,m[17]=f,m[18]=u}else u=m[18];return m[21]!==g.listLabel||m[22]!==f.length||m[23]!==u?(d=(0,t.jsx)(ek.SpotlightCarousel,{ariaLabel:v,itemCount:x,children:u}),m[21]=g.listLabel,m[22]=f.length,m[23]=u,m[24]=d):d=m[24],m[25]!==s||m[26]!==d?(c=(0,t.jsxs)("section",{className:"flex flex-col gap-2",children:[s,d]}),m[25]=s,m[26]=d,m[27]=c):c=m[27],c}function eS(e){let l,n,i,s,u,d,c,m=(0,r.c)(31),{model:g,config:h}=e,{shouldPlayVideo:p,isVideoRendering:f,handlePlayStart:v,handlePlayStop:x,handleVideoPlaying:y}=(0,ev.useHoverVideo)(g.hoverVideoUrl),b=g.thumbnailUrl;m[0]!==h||m[1]!==g.name?(l=h.getThumbnailAlt(g.name),m[0]=h,m[1]=g.name,m[2]=l):l=m[2],m[3]!==g.thumbnailUrl||m[4]!==l?(n=(0,t.jsx)("img",{src:b,alt:l,loading:"lazy",className:"size-full object-cover transition-transform duration-300 group-hover:scale-[1.02]"}),m[3]=g.thumbnailUrl,m[4]=l,m[5]=n):n=m[5],m[6]!==y||m[7]!==f||m[8]!==g.hoverVideoUrl||m[9]!==p?(i=p&&g.hoverVideoUrl?(0,t.jsx)("video",{src:g.hoverVideoUrl,autoPlay:!0,muted:!0,loop:!0,playsInline:!0,"aria-hidden":!0,onPlaying:y,className:(0,o.cn)("pointer-events-none absolute inset-0 size-full object-cover","transition-[opacity,transform] duration-300 group-hover:scale-[1.02]",f?"opacity-100":"opacity-0")}):null,m[6]=y,m[7]=f,m[8]=g.hoverVideoUrl,m[9]=p,m[10]=i):i=m[10],m[11]!==n||m[12]!==i?(s=(0,t.jsxs)(t.Fragment,{children:[n,i]}),m[11]=n,m[12]=i,m[13]=s):s=m[13];let k=`${g.familyName} family: ${g.name} by ${g.author}`;return m[14]!==h.familyClickedEvent||m[15]!==g.familyName||m[16]!==g.name||m[17]!==g.variantPermaslug?(u=()=>{(0,a.trackDiscoveryEvent)(h.familyClickedEvent,{family:g.familyName,model_permaslug:g.variantPermaslug,model_name:g.name})},m[14]=h.familyClickedEvent,m[15]=g.familyName,m[16]=g.name,m[17]=g.variantPermaslug,m[18]=u):u=m[18],m[19]!==g.author||m[20]!==g.detailHref||m[21]!==g.name||m[22]!==g.variantPermaslug||m[23]!==k||m[24]!==u?(d={ariaLabel:k,author:g.author,href:g.detailHref,name:g.name,permaslug:g.variantPermaslug,onClick:u},m[19]=g.author,m[20]=g.detailHref,m[21]=g.name,m[22]=g.variantPermaslug,m[23]=k,m[24]=u,m[25]=d):d=m[25],m[26]!==v||m[27]!==x||m[28]!==s||m[29]!==d?(c=(0,t.jsx)(ew.SpotlightFamilyCard,{variant:"default",onHoverStart:v,onHoverEnd:x,preview:s,identity:d}),m[26]=v,m[27]=x,m[28]=s,m[29]=d,m[30]=c):c=m[30],c}function eN({models:e,modality:t,getPreview:r}){let l=new Map;for(let a of e){let e=r(a);if(a.hidden||a.is_private||!a.output_modalities.includes(t)||!a.author_flagship_modalities?.includes(t)||!e)continue;let n=l.get(a.author)?.model;(!n||e_(a,n))&&l.set(a.author,{model:a,preview:e})}return[...l.values()]}function e_(e,t){let r=Date.parse(e.created_at)||0,l=Date.parse(t.created_at)||0;return r>l||r===l&&e.slug`Example generated by ${e}`,getPreviewThumbnailUrl:eO};function eA(e){let l,a=(0,r.c)(6),{weeklyTokensByVariantPermaslug:n}=e,{featuredTextModels:o,getModelInfoByVariantSlug:s,hasAvailableModelsError:u,isModelsReady:d}=(0,ef.useGlobal)();if(!d){let e;return a[0]!==u?(e=u?null:(0,t.jsx)(i.SpotlightSkeleton,{variant:"default"}),a[0]=u,a[1]=e):e=a[1],e}return a[2]!==o||a[3]!==s||a[4]!==n?(l=(0,t.jsx)(eD,{models:o,resolveModel:s,weeklyTokensByVariantPermaslug:n}),a[2]=o,a[3]=s,a[4]=n,a[5]=l):l=a[5],l}function eD(e){let l,a,n,i=(0,r.c)(8),{models:o,resolveModel:s,weeklyTokensByVariantPermaslug:u}=e;i[0]!==o?(l=eN({models:o,modality:ep.OutputModality.Image,getPreview:eO}).map(({model:e,preview:t})=>({familyName:eM(e.short_name),author:e.author,flagshipSlug:e.slug,fallbackThumbnailUrl:t})),i[0]=o,i[1]=l):l=i[1],i[2]!==l?(a={...eC,families:l},i[2]=l,i[3]=a):a=i[3];let d=a;return i[4]!==d||i[5]!==s||i[6]!==u?(n=(0,t.jsx)(ej,{config:d,resolveModel:s,weeklyUsageByVariantPermaslug:u}),i[4]=d,i[5]=s,i[6]=u,i[7]=n):n=i[7],n}function eO(e){return e.previews_by_modality?.image?.thumbnail_url||null}var eE=e.i(202913);let e$=(0,eE.default)("binary",[["rect",{x:"14",y:"14",width:"4",height:"6",rx:"2",key:"p02svl"}],["rect",{x:"6",y:"4",width:"4",height:"6",rx:"2",key:"xm4xkj"}],["path",{d:"M6 20h4",key:"1i6q5t"}],["path",{d:"M14 10h4",key:"ru81e7"}],["path",{d:"M6 14h2v6",key:"16z9wg"}],["path",{d:"M14 4h2v6",key:"1idq9u"}]]);var eI=e.i(505987);let eL=(0,eE.default)("captions",[["rect",{width:"18",height:"14",x:"3",y:"5",rx:"2",ry:"2",key:"12ruh7"}],["path",{d:"M7 15h4M15 15h2M7 11h2M13 11h4",key:"1ueiar"}]]);var eV=e.i(166432),eR=e.i(890136),eH=e.i(899669);let eU=(0,eE.default)("music",[["path",{d:"M9 18V5l12-2v13",key:"1jmyc2"}],["circle",{cx:"6",cy:"18",r:"3",key:"fqmcym"}],["circle",{cx:"18",cy:"16",r:"3",key:"1hluhg"}]]);var eF=e.i(334471),eB=e.i(913767);let eW={vision:eV.Eye,"image-generation":eR.Image,"video-generation":eB.Video,"speech-to-text":eL,"text-to-speech":eF.Speech,"audio-generation":eU,embeddings:e$,rerank:eH.ListFilter},ez={vision:"bg-amber-3 text-amber-11","image-generation":"bg-green-3 text-green-11","video-generation":"bg-red-3 text-red-11","speech-to-text":"bg-teal-3 text-teal-11","text-to-speech":"bg-pink-3 text-pink-11","audio-generation":"bg-violet-3 text-violet-11",embeddings:"bg-purple-3 text-purple-11",rerank:"bg-orange-3 text-orange-11"};function eq(e){let l,n,i,s,d,c=(0,r.c)(13),{collections:m}=e,g=w();if(c[0]===Symbol.for("react.memo_cache_sentinel")?(l=(0,t.jsxs)("div",{className:"flex flex-col gap-0.5",children:[(0,t.jsx)("h2",{className:"text-base font-semibold text-foreground",children:"Explore every modality"}),(0,t.jsx)("p",{className:"text-sm text-muted-foreground",children:"Start with a focused set of models for the job you need to do."})]}),c[0]=l):l=c[0],c[1]!==m||c[2]!==g){let e;c[4]!==g?(e=e=>{let r=eW[e.id]??eI.Boxes,l=g.openLaneId===e.id;return(0,t.jsxs)("button",{type:"button","data-selected":l,onClick:()=>{let t=g.toggleLane(e.id);(0,a.trackDiscoveryEvent)(a.DiscoveryEvent.ModalityCardClicked,{collection_id:e.id,is_close:!t})},className:(0,o.cn)("group flex min-h-36 flex-col gap-3 rounded-lg border border-border bg-card p-4 text-left","transition-colors hover:border-foreground/20 hover:bg-foreground/[0.02]","data-[selected=true]:border-foreground/25 data-[selected=true]:bg-foreground/[0.05]"),children:[(0,t.jsx)("span",{className:(0,o.cn)("flex size-9 items-center justify-center rounded-md",ez[e.id]??"bg-slate-3 text-slate-11"),children:(0,t.jsx)(r,{className:"size-4.5"})}),(0,t.jsxs)("span",{className:"flex flex-col gap-1",children:[(0,t.jsx)("span",{className:"font-medium text-foreground transition-colors group-hover:text-accent-foreground",children:e.title}),(0,t.jsx)("span",{className:"text-sm leading-snug text-muted-foreground",children:e.subtitle})]}),(0,t.jsxs)("span",{className:"mt-auto inline-flex items-center gap-1 text-xs font-medium text-foreground",children:["See models",(0,t.jsx)(u.ArrowRight,{className:"size-3.5 transition-transform group-hover:translate-x-0.5"})]})]},e.id)},c[4]=g,c[5]=e):e=c[5],n=m.map(e),c[1]=m,c[2]=g,c[3]=n}else n=c[3];return c[6]!==n?(i=(0,t.jsx)("div",{className:"grid grid-cols-1 gap-3 sm:grid-cols-2 lg:grid-cols-4",children:n}),c[6]=n,c[7]=i):i=c[7],c[8]!==m?(s=m.map(eG),c[8]=m,c[9]=s):s=c[9],c[10]!==i||c[11]!==s?(d=(0,t.jsxs)("section",{className:"flex flex-col gap-3",children:[l,i,s]}),c[10]=i,c[11]=s,c[12]=d):d=c[12],d}function eG(e){return(0,t.jsx)(J,{lane:e,footer:(0,t.jsx)("div",{className:"flex justify-end",children:(0,t.jsxs)(d.Link,{href:e.modelsHref,onClick:()=>{(0,a.trackDiscoveryEvent)(a.DiscoveryEvent.ModelsOutboundClicked,{source:a.DiscoveryOutboundSource.ModalitySheetFooter,collection_id:e.id})},className:(0,o.cn)((0,s.buttonVariants)({variant:"default",size:"md"}),"text-sm shadow-none no-underline"),children:["View all in models",(0,t.jsx)(u.ArrowRight,{className:"size-3.5 shrink-0"})]})})},e.id)}var eQ=e.i(358390),eK=e.i(463522),eX=e.i(376294),eY=e.i(649864);let eJ=30*eK.oneDayMS;function eZ(e){let l,n,s,u,c=(0,r.c)(14),{routerTokensByPermaslug:m}=e,g=b(),h=k(),{featuredTextModels:p,hasAvailableModelsError:f,isModelsReady:v}=(0,ef.useGlobal)();c[0]!==p||c[1]!==m?(l=function(e,{routerTokensByPermaslug:t,nowMS:r=Date.now()}){let l=Object.keys(t).length>0;return e.filter(e=>{var a;return e.group===eQ.ModelGroup.Router&&"openrouter"===e.author&&null!==(a=e)&&!a.hidden&&!a.is_private&&(!l||function({model:e,routerTokensByPermaslug:t,nowMS:r}){return(t[e.permaslug]??0)>0||r-(Date.parse(e.created_at)||0)<=eJ}({model:e,routerTokensByPermaslug:t,nowMS:r}))}).toSorted((e,t)=>(Date.parse(t.created_at)||0)-(Date.parse(e.created_at)||0)).slice(0,eY.SHOWN_ROUTERS)}(p,{routerTokensByPermaslug:m}),c[0]=p,c[1]=m,c[2]=l):l=c[2];let x=l;if(!v&&!f){let e;return c[3]===Symbol.for("react.memo_cache_sentinel")?(e=(0,t.jsx)(i.RouterStripSkeleton,{}),c[3]=e):e=c[3],e}if(0===x.length)return null;if(c[4]===Symbol.for("react.memo_cache_sentinel")?(n=(0,t.jsxs)("div",{className:"flex flex-wrap items-baseline gap-1.5",children:[(0,t.jsx)("h2",{className:"text-base font-semibold text-foreground",children:"Routers"}),(0,t.jsx)(d.Link,{href:"/models?arch=Router&model_authors=openrouter",onClick:e0,className:"ml-auto shrink-0 self-center whitespace-nowrap text-sm font-medium text-foreground underline underline-offset-4 transition-colors hover:text-accent-foreground",children:"View all routers"})]}),c[4]=n):n=c[4],c[5]!==h||c[6]!==g||c[7]!==x){let e;c[9]!==h||c[10]!==g?(e=e=>{let r=(0,ex.getModelVariantPermaslug)(e);return(0,t.jsxs)("button",{type:"button","data-selected":h===r,onClick:()=>{(0,a.trackDiscoveryEvent)(a.DiscoveryEvent.RouterCardClicked,{router_slug:e.slug,router_name:e.short_name}),g({variantPermaslug:r,name:e.short_name})},className:(0,o.cn)("group flex min-h-28 flex-col gap-3 rounded-lg p-3.5 text-left","border border-border/60 bg-muted/40 transition-colors","hover:border-border hover:bg-muted/70","data-[selected=true]:border-foreground/20 data-[selected=true]:bg-foreground/5"),children:[(0,t.jsxs)("div",{className:"flex items-center gap-2",children:[(0,t.jsx)(eX.OpenRouterIcon,{className:"size-4.5 shrink-0 text-muted-foreground"}),(0,t.jsx)("span",{className:"truncate text-base font-semibold text-foreground transition-colors group-hover:text-accent-foreground",children:e.short_name})]}),(0,t.jsx)("p",{className:"line-clamp-3 text-xs leading-5 text-muted-foreground",children:e.description})]},r)},c[9]=h,c[10]=g,c[11]=e):e=c[11],s=x.map(e),c[5]=h,c[6]=g,c[7]=x,c[8]=s}else s=c[8];return c[12]!==s?(u=(0,t.jsxs)("section",{className:"flex flex-col gap-2",children:[n,(0,t.jsx)("div",{className:"grid grid-cols-1 gap-3 sm:grid-cols-2 lg:grid-flow-col lg:auto-cols-fr lg:grid-cols-none",children:s})]}),c[12]=s,c[13]=u):u=c[13],u}function e0(){(0,a.trackDiscoveryEvent)(a.DiscoveryEvent.ModelsOutboundClicked,{source:a.DiscoveryOutboundSource.RoutersViewAll})}var e1=e.i(130868),e2=e.i(543092),e3=e.i(779100),e4=e.i(61291);let e5=`/models?fmt=cards&output_modalities=${ep.OutputModality.TTS}&order=most-popular`;function e6(e){let a,n,i,o=(0,r.c)(5),{children:s,className:u}=e,d=(0,l.useRef)(null);return o[0]===Symbol.for("react.memo_cache_sentinel")?(a=()=>{let e=d.current;if(!e)return;let t=t=>{let r=t.target;if(r instanceof HTMLAudioElement)for(let t of e.querySelectorAll("audio"))t===r||t.paused||t.pause()};return e.addEventListener("play",t,!0),()=>{e.removeEventListener("play",t,!0)}},n=[],o[0]=a,o[1]=n):(a=o[0],n=o[1]),(0,l.useEffect)(a,n),o[2]!==s||o[3]!==u?(i=(0,t.jsx)("div",{ref:d,className:u,children:s}),o[2]=s,o[3]=u,o[4]=i):i=o[4],i}function e7(e){let l,a,n,i,s,u=(0,r.c)(26),{seedUrl:d,barCount:c,className:m,onPlaybackStart:g}=e,h=void 0===c?28:c,p=(0,e3.useLocale)(),f=(0,e1.useAudioPlayer)(),v=(0,e1.useAudioPlayerTime)();u[0]!==h||u[1]!==d?(l=function(e,t){let r=0x811c9dc5;for(let t=0;t20+Math.round(80*(((r=Math.imul(r^t+1,0x1000193))>>>8)%1e3/1e3)))}(d,h),u[0]=h,u[1]=d,u[2]=l):l=u[2];let x=l;if(!f||null===v)return null;let{duration:y}=f;u[3]!==y?(a=void 0!==y&&Number.isFinite(y)&&y>0,u[3]=y,u[4]=a):a=u[4];let b=a,k=b?Math.min(1,Math.max(0,v/y)):0;if(u[5]!==m?(n=(0,o.cn)("flex h-6 min-w-0 flex-1 items-end gap-px",m),u[5]=m,u[6]=n):n=u[6],u[7]!==y||u[8]!==b||u[9]!==x||u[10]!==p||u[11]!==g||u[12]!==f||u[13]!==k){let e;u[15]!==y||u[16]!==b||u[17]!==x.length||u[18]!==p||u[19]!==g||u[20]!==f||u[21]!==k?(e=(e,r)=>{let l=b&&(r+1)/x.length<=k;return(0,t.jsx)("button",{type:"button",disabled:!b,"aria-label":`Seek to ${(0,e4.formatPercentPoints)(Math.round(r/x.length*100),{locale:p,preset:"fee"})??"—"}`,onClick:()=>{b&&(f.seek(r/x.length*y),f.isPlaying||g?.(),f.play())},"data-allow-inline-style":!0,style:{height:`${e}%`},className:(0,o.cn)("min-w-0 flex-1 rounded-sm transition-colors",l?"bg-primary":"bg-primary/25 hover:bg-primary/50")},r)},u[15]=y,u[16]=b,u[17]=x.length,u[18]=p,u[19]=g,u[20]=f,u[21]=k,u[22]=e):e=u[22],i=x.map(e),u[7]=y,u[8]=b,u[9]=x,u[10]=p,u[11]=g,u[12]=f,u[13]=k,u[14]=i}else i=u[14];return u[23]!==n||u[24]!==i?(s=(0,t.jsx)("div",{role:"group","aria-label":"Waveform seek bars",className:n,children:i}),u[23]=n,u[24]=i,u[25]=s):s=u[25],s}function e8(e){let l,n,i=(0,r.c)(7),{section:o,modelPermaslug:s,className:u}=e,d=(0,e1.useAudioPlayer)();return i[0]!==s||i[1]!==d?.isPlaying||i[2]!==o?(l=()=>{d?.isPlaying||(0,a.trackDiscoveryEvent)(a.DiscoveryEvent.SpeechSamplePlayed,{section:o,model_permaslug:s})},i[0]=s,i[1]=d?.isPlaying,i[2]=o,i[3]=l):l=i[3],i[4]!==u||i[5]!==l?(n=(0,t.jsx)(e1.AudioPlayerButton,{className:u,onClickCapture:l}),i[4]=u,i[5]=l,i[6]=n):n=i[6],n}function e9(e){let l,a=(0,r.c)(5),{weeklyTokensByVariantPermaslug:n}=e,{featuredTextModels:o,hasAvailableModelsError:s,isModelsReady:u}=(0,ef.useGlobal)();if(!u){let e;return a[0]!==s?(e=s?null:(0,t.jsx)(i.SpotlightSkeleton,{variant:"compact"}),a[0]=s,a[1]=e):e=a[1],e}return a[2]!==o||a[3]!==n?(l=(0,t.jsx)(tt,{models:o,weeklyTokensByVariantPermaslug:n}),a[2]=o,a[3]=n,a[4]=l):l=a[4],l}let te={};function tt(e){let l,a,n,i,o=(0,r.c)(9),{models:s,weeklyTokensByVariantPermaslug:u}=e,d=void 0===u?te:u;o[0]!==s||o[1]!==d?(l=function(e,t={}){let r=new Map;for(let t of e){let e=t.preview_audio;if(t.hidden||t.is_private||!t.output_modalities.includes(ep.OutputModality.TTS)||!t.author_flagship_modalities?.includes(ep.OutputModality.TTS)||e?.modality!==e2.ModelExampleModality.Speech)continue;let l=r.get(t.author)?.model;(!l||e_(t,l))&&r.set(t.author,{model:t,previewAudio:e})}return[...r.values()].map(({model:e,previewAudio:t},r)=>({family:{familyName:eT(e.short_name),name:e.short_name,author:e.author,...eb({fallbackSlug:e.slug,model:e,outputModalityIntent:ep.OutputModality.TTS}),previewAudio:t},fallbackOrder:r})).toSorted((e,r)=>(t[r.family.variantPermaslug]??0)-(t[e.family.variantPermaslug]??0)||e.fallbackOrder-r.fallbackOrder).map(({family:e})=>e)}(s,d),o[0]=s,o[1]=d,o[2]=l):l=o[2];let c=l;if(0===c.length)return null;o[3]===Symbol.for("react.memo_cache_sentinel")?(a=(0,t.jsx)(eP,{title:"Speech models",description:"Hear voice samples from the leading speech models.",viewAll:{href:e5,label:(0,t.jsxs)(t.Fragment,{children:["View all",(0,t.jsx)("span",{className:"hidden sm:inline",children:" speech models"})]}),onClick:tl}}),o[3]=a):a=o[3];let m=c.length;return o[4]!==c?(n=c.map(tr),o[4]=c,o[5]=n):n=o[5],o[6]!==c.length||o[7]!==n?(i=(0,t.jsxs)("section",{className:"flex flex-col gap-2",children:[a,(0,t.jsx)(e6,{children:(0,t.jsx)(ek.SpotlightCarousel,{ariaLabel:"Speech model families",itemCount:m,children:n})})]}),o[6]=c.length,o[7]=n,o[8]=i):i=o[8],i}function tr(e){return(0,t.jsx)("li",{children:(0,t.jsx)(ta,{model:e})},e.familyName)}function tl(){(0,a.trackDiscoveryEvent)(a.DiscoveryEvent.ModelsOutboundClicked,{source:a.DiscoveryOutboundSource.AudioModelsViewAll,modality:ep.OutputModality.TTS})}function ta(e){let l,n,i,o,s,u,d,c,m,g=(0,r.c)(28),{model:h}=e,p=null===h.previewAudio.voice?"":`, voice ${h.previewAudio.voice}`;g[0]!==h.variantPermaslug?(l=(0,t.jsx)(e8,{className:"size-8 shrink-0",section:"spotlight",modelPermaslug:h.variantPermaslug}),g[0]=h.variantPermaslug,g[1]=l):l=g[1],g[2]!==h.variantPermaslug?(n=()=>{(0,a.trackDiscoveryEvent)(a.DiscoveryEvent.SpeechSamplePlayed,{section:"spotlight",model_permaslug:h.variantPermaslug})},g[2]=h.variantPermaslug,g[3]=n):n=g[3],g[4]!==h.previewAudio.url||g[5]!==n?(i=(0,t.jsx)(e7,{seedUrl:h.previewAudio.url,onPlaybackStart:n}),g[4]=h.previewAudio.url,g[5]=n,g[6]=i):i=g[6],g[7]===Symbol.for("react.memo_cache_sentinel")?(o=(0,t.jsx)(e1.AudioPlayerDuration,{className:"shrink-0 text-xs tabular-nums text-muted-foreground"}),g[7]=o):o=g[7],g[8]!==l||g[9]!==i?(s=(0,t.jsxs)("div",{className:ew.SPOTLIGHT_FAMILY_CARD_COMPACT_PREVIEW_ROW_CLASS,children:[l,i,o]}),g[8]=l,g[9]=i,g[10]=s):s=g[10],g[11]!==h.previewAudio.url||g[12]!==s?(u=(0,t.jsx)(e1.AudioPlayerProvider,{src:h.previewAudio.url,children:s}),g[11]=h.previewAudio.url,g[12]=s,g[13]=u):u=g[13];let f=`${h.familyName} family: ${h.name} by ${h.author}${p}`;return g[14]!==h.familyName||g[15]!==h.name||g[16]!==h.previewAudio.modality||g[17]!==h.variantPermaslug?(d=()=>{(0,a.trackDiscoveryEvent)(a.DiscoveryEvent.AudioFamilyClicked,{family:h.familyName,model_permaslug:h.variantPermaslug,model_name:h.name,modality:h.previewAudio.modality})},g[14]=h.familyName,g[15]=h.name,g[16]=h.previewAudio.modality,g[17]=h.variantPermaslug,g[18]=d):d=g[18],g[19]!==h.author||g[20]!==h.detailHref||g[21]!==h.name||g[22]!==f||g[23]!==d?(c={ariaLabel:f,author:h.author,href:h.detailHref,name:h.name,onClick:d},g[19]=h.author,g[20]=h.detailHref,g[21]=h.name,g[22]=f,g[23]=d,g[24]=c):c=g[24],g[25]!==u||g[26]!==c?(m=(0,t.jsx)(ew.SpotlightFamilyCard,{variant:"compact",isPreviewInteractive:!0,preview:u,identity:c}),g[25]=u,g[26]=c,g[27]=m):m=g[27],m}let tn=[{familyName:"H3",author:"minimax",flagshipSlug:"minimax/hailuo-3",usagePermaslugPrefix:"minimax/hailuo-",fallbackThumbnailUrl:"https://model-assets.openrouter.ai/model-discovery-video-carousel/hailuo-3.webp?v=1",hoverVideoUrl:"https://model-assets.openrouter.ai/model-discovery-video-carousel/hailuo-3.mp4?v=1"},{familyName:"Veo",author:"google",flagshipSlug:"google/veo-3.1",usagePermaslugPrefix:"google/veo-",fallbackThumbnailUrl:"https://model-assets.openrouter.ai/model-discovery-video-carousel/veo-3-1.webp?v=3",hoverVideoUrl:"https://model-assets.openrouter.ai/model-discovery-video-carousel/veo-3-1.mp4?v=3"},{familyName:"Seedance",author:"bytedance",flagshipSlug:"bytedance/seedance-2.0",usagePermaslugPrefix:"bytedance/seedance-",fallbackThumbnailUrl:"https://model-assets.openrouter.ai/model-discovery-video-carousel/seedance-2-0.webp?v=3",hoverVideoUrl:"https://model-assets.openrouter.ai/model-discovery-video-carousel/seedance-2-0.mp4?v=3"},{familyName:"Kling",author:"kwaivgi",flagshipSlug:"kwaivgi/kling-v3.0-pro",usagePermaslugPrefix:"kwaivgi/kling-",fallbackThumbnailUrl:"https://model-assets.openrouter.ai/model-discovery-video-carousel/kling-v3-0-pro.webp?v=3",hoverVideoUrl:"https://model-assets.openrouter.ai/model-discovery-video-carousel/kling-v3-0-pro.mp4?v=3"},{familyName:"HappyHorse",author:"alibaba",flagshipSlug:"alibaba/happyhorse-1.1",usagePermaslugPrefix:"alibaba/happyhorse-",fallbackThumbnailUrl:"https://model-assets.openrouter.ai/model-discovery-video-carousel/happyhorse-1-1.webp?v=3",hoverVideoUrl:"https://model-assets.openrouter.ai/model-discovery-video-carousel/happyhorse-1-1.mp4?v=3"},{familyName:"Wan",author:"alibaba",flagshipSlug:"alibaba/wan-2.7",usagePermaslugPrefix:"alibaba/wan-",fallbackThumbnailUrl:"https://model-assets.openrouter.ai/model-discovery-video-carousel/wan-2-7.webp?v=3",hoverVideoUrl:"https://model-assets.openrouter.ai/model-discovery-video-carousel/wan-2-7.mp4?v=3"},{familyName:"Sora",author:"openai",flagshipSlug:"openai/sora-2-pro",usagePermaslugPrefix:"openai/sora-",fallbackThumbnailUrl:"https://model-assets.openrouter.ai/model-discovery-video-carousel/sora-2-pro.webp?v=3",hoverVideoUrl:"https://model-assets.openrouter.ai/model-discovery-video-carousel/sora-2-pro.mp4?v=3"}],ti={outputModalityIntent:ep.OutputModality.Video,heading:"Video models",description:"Generate videos from text and image prompts across the leading model providers.",listLabel:"Video model families",viewAllHref:"/models?fmt=cards&output_modalities=video&order=most-popular",viewAllLabel:"video models",viewAllSource:a.DiscoveryOutboundSource.VideoModelsViewAll,familyClickedEvent:a.DiscoveryEvent.VideoFamilyClicked,getDisplayName:function(e,t){let r=eT(e);return r.toLowerCase().includes(t.toLowerCase())?r:`${t} ${r}`},getThumbnailAlt:e=>`Example frame generated by ${e}`,getPreviewThumbnailUrl:function(e){return tm(e)?.thumbnail_url??null}};function to(e){let l,a=(0,r.c)(4),{weeklyVideoRequestsByVariantPermaslug:n}=e,{featuredTextModels:i,getModelInfoByVariantSlug:o}=(0,ef.useGlobal)();return a[0]!==i||a[1]!==o||a[2]!==n?(l=(0,t.jsx)(ts,{models:i,resolveModel:o,weeklyVideoRequestsByVariantPermaslug:n}),a[0]=i,a[1]=o,a[2]=n,a[3]=l):l=a[3],l}function ts(e){var l;let a,n,i,o,s=(0,r.c)(8),{models:u,resolveModel:d,weeklyVideoRequestsByVariantPermaslug:c}=e;s[0]!==u?(a=new Set((l=eN({models:u,modality:ep.OutputModality.Video,getPreview:tm}).map(tu)).map(e=>e.author)),n=[...l,...tn.filter(e=>!a.has(e.author))],s[0]=u,s[1]=n):n=s[1],s[2]!==n?(i={...ti,families:n},s[2]=n,s[3]=i):i=s[3];let m=i;return s[4]!==m||s[5]!==d||s[6]!==c?(o=(0,t.jsx)(ej,{config:m,resolveModel:d,weeklyUsageByVariantPermaslug:c}),s[4]=m,s[5]=d,s[6]=c,s[7]=o):o=s[7],o}function tu({model:e,preview:t}){let r=tn.find(t=>e.slug.startsWith(t.usagePermaslugPrefix));return{familyName:r?.familyName??function(e){let[,t=""]=td(e);return tc(t).map(e=>e.charAt(0).toUpperCase()+e.slice(1)).join(" ")}(e.slug),author:e.author,flagshipSlug:e.slug,usagePermaslugPrefix:r?.usagePermaslugPrefix??function(e){let[t="",r=""]=td(e);return`${t}/${tc(r).join("-")}-`}(e.slug),fallbackThumbnailUrl:t.thumbnail_url,hoverVideoUrl:t.url}}function td(e){let[t,r]=e.replace(/^~/u,"").split("/");return[t,r]}function tc(e){let t=e.split("-"),r=t.findIndex(e=>/\d/u.test(e));return -1===r?t:r>0?t.slice(0,r):t.slice(0,1)}function tm(e){let t=e.previews_by_modality?.video;return t?.thumbnail_url&&t.thumbnail_url!==t.url?t:null}({...ti,families:tn});let tg={};function th(e){let l,a,i,o,s,u,d,m,g,h,p,f=(0,r.c)(30),{view:v,weeklyTokensByVariantPermaslug:x,weeklyVideoRequestsByVariantPermaslug:y,routerTokensByPermaslug:b}=e,k=void 0===x?tg:x,w=void 0===y?tg:y,P=void 0===b?tg:b;return f[0]!==v.featuredModelCount?(l=(0,t.jsx)(n.DiscoveryPageHeader,{modelCount:v.featuredModelCount}),f[0]=v.featuredModelCount,f[1]=l):l=f[1],f[2]!==v.signals?(a=v.signals.length>0&&(0,t.jsx)(eo,{signals:v.signals}),f[2]=v.signals,f[3]=a):a=f[3],f[4]!==P?(i=(0,t.jsx)(eZ,{routerTokensByPermaslug:P}),f[4]=P,f[5]=i):i=f[5],f[6]!==v.lanes?(o=(function(e){let t=[];for(let r of e){let e=t.at(-1);if(!0===r.isHalfWidth&&void 0!==e&&1===e.length&&e[0]?.isHalfWidth===!0){e.push(r);continue}t.push([r])}return t})(v.lanes).map(tp),f[6]=v.lanes,f[7]=o):o=f[7],f[8]!==o?(s=(0,t.jsx)("div",{className:"flex flex-col gap-10",children:o}),f[8]=o,f[9]=s):s=f[9],f[10]!==k?(u=(0,t.jsx)(eA,{weeklyTokensByVariantPermaslug:k}),f[10]=k,f[11]=u):u=f[11],f[12]!==w?(d=(0,t.jsx)(to,{weeklyVideoRequestsByVariantPermaslug:w}),f[12]=w,f[13]=d):d=f[13],f[14]!==k?(m=(0,t.jsx)(e9,{weeklyTokensByVariantPermaslug:k}),f[14]=k,f[15]=m):m=f[15],f[16]!==v.collections?(g=(0,t.jsx)(eq,{collections:v.collections}),f[16]=v.collections,f[17]=g):g=f[17],f[18]!==v.featuredModelCount?(h=(0,t.jsx)(c,{modelCount:v.featuredModelCount}),f[18]=v.featuredModelCount,f[19]=h):h=f[19],f[20]!==d||f[21]!==m||f[22]!==g||f[23]!==h||f[24]!==l||f[25]!==a||f[26]!==i||f[27]!==s||f[28]!==u?(p=(0,t.jsx)(S,{children:(0,t.jsxs)("div",{className:"mx-auto flex w-full max-w-7xl flex-col gap-10 px-4 py-8",children:[l,a,i,s,u,d,m,g,h]})}),f[20]=d,f[21]=m,f[22]=g,f[23]=h,f[24]=l,f[25]=a,f[26]=i,f[27]=s,f[28]=u,f[29]=p):p=f[29],p}function tp(e){return e.length>1?(0,t.jsx)("div",{className:"grid grid-cols-1 gap-10 lg:grid-cols-2 lg:gap-6",children:e.map(tv)},e[0]?.id):e.map(tf)}function tf(e){return(0,t.jsx)(ea,{lane:e},e.id)}function tv(e){return(0,t.jsx)(ea,{lane:e},e.id)}var tx=e.i(79247),ty=e.i(411240),tb=e.i(829962),tk=e.i(461790),tw=e.i(179273);function tP(e){return e.slug.endsWith("-latest")}function tj(e){return!e.hidden&&!e.is_private}var tS=e.i(586404);function tN(e){let t=new Map;return e.forEach((r,l)=>{let a=Math.round((e.length-l)/e.length*100);for(let e of[r.openrouter_slug,r.permaslug,r.heuristic_openrouter_slug])null===e||""===e||t.has(e)||t.set(e,a)}),t}function t_(e,t){for(let r of t){let t=e.get(r);if(void 0!==t)return t}}function tT({map:e,slugKeys:t,index:r}){if(e)for(let l of t){let t=e[l]?.[r];if((0,tS.isDefinedAndNotNull)(t))return t}}var tM=e.i(690387),tC=e.i(497187),tA=e.i(193975),tD=e.i(370066),tO=e.i(190557);function tE(e,t){return(0,tD.formatNumber)(t,{locale:e,preset:"discovery-tokens"})??function(e){if(!Number.isFinite(e))return e===1/0?"InfinityT":String(e)}(t)??"—"}function t$(e,t){if(t<1e3){let r=Math.round(t);return`${(0,tA.formatNativeNumber)(r,{locale:e})??String(r)}ms`}let r=t/1e3;return`${(0,tA.formatNativeFixed)(r,{locale:e,fractionDigits:1})??String(r)}s`}function tI(e,t){let r;return r=Math.round(t),`${(0,tA.formatNativeNumber)(r,{locale:e})??String(r)} tok/s`}function tL(e,t){return!Number.isFinite(t)||t<0?null:0===t?"Free":(0,tO.formatUsd)(1e6*t,{locale:e,preset:"discovery-price"})??null}function tV(e,t){return t>0?(0,tD.formatNumber)(t,{locale:e,preset:"discovery-context"})??null:null}function tR(e){return tU(e?.endpoint?.pricing.prompt)}function tH(e){return tU(e?.endpoint?.pricing.completion)}function tU(e){if(void 0===e)return;let t=Number(String(e));return Number.isFinite(t)&&t>=0?t:void 0}let tF=[{id:"vision",title:"Image understanding",description:"Analyze screenshots, documents, charts, and photos.",modelsHref:"/models?input_modalities=image",matches:e=>e.input_modalities.includes(ep.InputModality.Image)&&e.output_modalities.includes(ep.OutputModality.Text)},{id:"image-generation",title:"Image generation",description:"Create and edit images from natural-language prompts.",modelsHref:"/models?output_modalities=image",matches:e=>e.output_modalities.includes(ep.OutputModality.Image)},{id:"video-generation",title:"Video generation",description:"Turn text and reference images into video.",modelsHref:"/models?output_modalities=video",matches:e=>e.output_modalities.includes(ep.OutputModality.Video)},{id:"speech-to-text",title:"Speech to text",description:"Transcribe calls, meetings, voice notes, and media.",modelsHref:"/models?output_modalities=transcription",matches:e=>e.output_modalities.includes(ep.OutputModality.Transcription)},{id:"text-to-speech",title:"Text to speech",description:"Generate narration, voices, and spoken responses.",modelsHref:"/models?output_modalities=speech",matches:e=>e.output_modalities.includes(ep.OutputModality.TTS)},{id:"audio-generation",title:"Audio generation",description:"Create music, sound effects, and other audio.",modelsHref:"/models?output_modalities=audio",matches:e=>e.output_modalities.includes(ep.OutputModality.Audio)},{id:"embeddings",title:"Embeddings",description:"Power semantic search, clustering, and RAG retrieval.",modelsHref:"/models?output_modalities=embeddings",matches:e=>e.output_modalities.includes(ep.OutputModality.Embeddings)},{id:"rerank",title:"Reranking",description:"Improve search and RAG by reordering retrieved results.",modelsHref:"/models?output_modalities=rerank",matches:e=>e.output_modalities.includes(ep.OutputModality.Rerank)}];function tB(e){let t=[e.intelligencePct,e.codingPct,e.agenticPct].filter(e=>void 0!==e);if(0!==t.length)return t.reduce((e,t)=>e+t,0)/t.length}function tW(e){let t=tB(e),r=function(e){let t=e.promptPricePerToken;if(void 0===t)return;let r=e.completionPricePerToken;return void 0===r?t:(3*t+r)/4}(e);return void 0===t||void 0===r||0===r?0:t/(1e6*r)}function tz(e,t){let r=(t.perf?.p50_throughput??-1/0)-(e.perf?.p50_throughput??-1/0);return 0!==r?r:(e.perf?.p50_latency??1/0)-(t.perf?.p50_latency??1/0)}function tq(){let e=new Set;return t=>{let r=(0,tk.getStandardSlug)(t.entry.variantPermaslug);return!e.has(r)&&(e.add(r),!0)}}function tG(e){return{variantPermaslug:e.entry.variantPermaslug,name:e.entry.name,lab:e.entry.model?.author_display_name??e.entry.author,authorSlug:e.entry.author,href:e.entry.href}}function tQ(e,t){return{...tG(t),...t2(e,t.entry.model?.endpoint,t.entry.model?.endpoint?.display_pricing??[]),badges:[{signal:"value"}],stats:t0([void 0===t.intelligencePct?null:{label:"Intel pctl",value:`${t.intelligencePct}`},void 0===t.codingPct?null:{label:"Coding pctl",value:`${t.codingPct}`},void 0===t.agenticPct?null:{label:"Agentic pctl",value:`${t.agenticPct}`},t.weeklyTokens>0?{label:"Tokens",value:tE(e,t.weeklyTokens)}:null])}}function tK(e,t){return{...tG(t),...t2(e,t.entry.model?.endpoint,t.entry.model?.endpoint?.display_pricing??[]),badges:[{signal:"fast"}],stats:t0([t.perf?{label:"Throughput",value:tI(e,t.perf.p50_throughput)}:null,t.perf?{label:"TTFT p50",value:t$(e,t.perf.p50_latency)}:null,t.perf?{label:"Providers",value:`${t.perf.provider_count}`}:null])}}function tX(e,t){let r=tV(e,t.entry.model?.context_length??0);return{...tG(t),...t2(e,t.entry.model?.endpoint,t.entry.model?.endpoint?.display_pricing??[]),badges:[],stats:t0([t.weeklyTokens>0?{label:"Tokens/wk",value:tE(e,t.weeklyTokens)}:null,r?{label:"Context",value:r}:null])}}function tY(e,t){let r=tV(e,t.context_length??0);return{variantPermaslug:t.permaslug,name:t.short_name,lab:t.author_display_name??t.author,authorSlug:t.author,href:`/${t.slug}`,badges:[],stats:t0([r?{label:"Context",value:r}:null]),...t2(e,t.endpoint,t.endpoint?.display_pricing??[])}}function tJ(e,t){let r=tV(e,t.entry.model?.context_length??0);return{...tG(t),...t2(e,t.entry.model?.endpoint,t.entry.model?.endpoint?.display_pricing??[]),badges:[{signal:"new"}],stats:t0([t.weeklyTokens>0?{label:"Family tokens",value:tE(e,t.weeklyTokens)}:null,r?{label:"Context",value:r}:null])}}function tZ(e,t){let r=tV(e,t.entry.model?.context_length??0);return{...tG(t),...t2(e,t.entry.model?.endpoint,t.entry.model?.endpoint?.display_pricing??[]),badges:[{signal:"free"}],stats:t0([{label:"Tokens/wk",value:tE(e,t.weeklyTokens)},r?{label:"Context",value:r}:null])}}function t0(e){return e.filter(e=>null!==e)}function t1(e){return e.models.length>=3?e:null}function t2(e,t,r){if((0,tM.isModelFree)(t,r))return{inputPrice:"Free",outputPrice:null,isCustomPricing:!1};let l=(0,tM.deriveEndpointInlinePricing)(e,t,r);return l?"custom"===l.kind?{inputPrice:l.label,outputPrice:null,isCustomPricing:!0}:{inputPrice:`${l.inputPrice}`,outputPrice:`${l.outputPrice}`,isCustomPricing:!1}:{inputPrice:null,outputPrice:null,isCustomPricing:!1}}var t3=e.i(636129);let t4=[{slug:"anthropic",name:"Anthropic"},{slug:"openai",name:"OpenAI"},{slug:"x-ai",name:"SpaceXAI"},{slug:"google",name:"Google"}];function t5(e){return{title:e.entry.name,authorSlug:e.entry.author,variantPermaslug:e.entry.variantPermaslug,href:e.entry.href,series:e.series}}function t6(e){return e.openrouter_slug??e.heuristic_openrouter_slug??e.permaslug}function t7(e,t){return t8(t)-t8(e)}function t8(e){if("intelligence score"!==e.metricLabel)return -1;let t=Number(e.metric);return Number.isFinite(t)?t:-1}function t9({sources:e,byPermaslug:t,taken:r,matches:l}){for(let[a,n]of e.intelligence.entries()){let i=t6(n),o=e.resolveEntry(i);if(!r.has((0,tk.getStandardSlug)(o.variantPermaslug))&&l(o))return{entry:o,activity:t.get(i)??t.get(n.permaslug),score:n.score,rank:a+1,total:e.intelligence.length}}return null}function re(e,t){return t?` It served ${tE(e,t.weeklyTokens)} tokens on OpenRouter this week.`:""}function rt(e){let t=[e.variantPermaslug,(0,tk.getStandardSlug)(e.variantPermaslug)];return e.model&&t.push((0,ex.getModelVariantSlug)(e.model),e.model.slug,e.model.permaslug),[...new Set(t)]}let rr={};function rl(e){let[t,r]=e;return[t,r.t]}function ra(){let e,l=(0,r.c)(1);return l[0]===Symbol.for("react.memo_cache_sentinel")?(e=(0,t.jsxs)("div",{className:"flex flex-col items-center gap-2 rounded-lg border border-dashed border-border px-6 py-16 text-center",children:[(0,t.jsx)("p",{className:"text-sm font-medium text-foreground",children:"No routed traffic in this window"}),(0,t.jsx)("p",{className:"max-w-md text-sm text-muted-foreground",children:"Discovery sections appear once the API has enough usage rows to rank honestly."})]}),l[0]=e):e=l[0],e}function rn(){let e,l=(0,r.c)(1);return l[0]===Symbol.for("react.memo_cache_sentinel")?(e=(0,t.jsxs)("div",{className:"flex flex-col items-center gap-2 rounded-lg border border-dashed border-border px-6 py-16 text-center",children:[(0,t.jsx)("p",{className:"text-sm font-medium text-foreground",children:"Discovery is taking a breather"}),(0,t.jsx)("p",{className:"max-w-md text-sm text-muted-foreground",children:"We couldn't load live traffic just now. Refresh in a moment to try again."})]}),l[0]=e):e=l[0],e}e.s(["DiscoveryPageClient",0,function(e){let o,s,u,d,c,m,g,h,p,f,v,x=(0,r.c)(25),{initialView:y}=e,b=function(){let e,t,l,a,n,i,o=(0,r.c)(32),s=(0,e3.useLocale)();o[0]===Symbol.for("react.memo_cache_sentinel")?(e={...(0,ty.discoveryRankingsOptions)(),refetchInterval:18e5},o[0]=e):e=o[0];let{data:u,error:d}=(0,tx.useQuery)(e);o[1]!==u?.totals?(t=Object.fromEntries(Object.entries(u?.totals??{}).map(rl)),o[1]=u?.totals,o[2]=t):t=o[2];let c=t;o[3]===Symbol.for("react.memo_cache_sentinel")?(l={...(0,ty.benchmarkRankingsOptions)(),refetchInterval:18e5},o[3]=l):l=o[3];let{data:m}=(0,tx.useQuery)(l);o[4]===Symbol.for("react.memo_cache_sentinel")?(a={...(0,ty.performanceRankingsOptions)(),refetchInterval:18e5},o[4]=a):a=o[4];let{data:g}=(0,tx.useQuery)(a),{resolve:h,latestAliasModels:p,catalogModels:f,featuredModelCount:v,isReady:x}=function(){let e,t,l,a,n=(0,r.c)(14),{featuredTextModels:i,getModelInfoByVariantPermaslug:o,getModelInfoByVariantSlug:s,getPrimaryModelInfoByPermaslug:u,isReady:d}=(0,ef.useGlobal)();n[0]!==o||n[1]!==s||n[2]!==u?(e=e=>{let t=(0,tk.getStandardSlug)(e),r=(0,tw.getStaticVariant)(e),l=o(e)??u(t)??s(e);return l?{variantPermaslug:e,name:(0,tw.getVariantShortName)(l,r),author:l.author,href:`/${(0,tw.getSlugWithStaticVariant)(l.slug,r)}`,model:l}:{variantPermaslug:e,name:(0,tb.guessShortNameFromPermaslug)(e),author:(0,tb.guessAuthorFromPermaslug)(e),href:`/${e}`,model:null}},n[0]=o,n[1]=s,n[2]=u,n[3]=e):e=n[3];let c=e;n[4]!==i?(t=i.filter(tj),n[4]=i,n[5]=t):t=n[5];let m=t;n[6]!==m?(l=m.filter(tP),n[6]=m,n[7]=l):l=n[7];let g=l;return n[8]!==m||n[9]!==i.length||n[10]!==d||n[11]!==g||n[12]!==c?(a={isReady:d,resolve:c,latestAliasModels:g,catalogModels:m,featuredModelCount:i.length},n[8]=m,n[9]=i.length,n[10]=d,n[11]=g,n[12]=c,n[13]=a):a=n[13],a}();e:{var y,b,k,w,P;let e,t,r,l,a,i,d,c,j,S,N,_,T,M,C,A,D,O,E,U;if(!u||!x){n=null;break e}o[5]!==m?.aaData.intelligence?(e=m?.aaData.intelligence??[],o[5]=m?.aaData.intelligence,o[6]=e):e=o[6],o[7]!==m?.aaData.coding?(t=m?.aaData.coding??[],o[7]=m?.aaData.coding,o[8]=t):t=o[8],o[9]!==m?.aaData.agentic?(r=m?.aaData.agentic??[],o[9]=m?.aaData.agentic,o[10]=r):r=o[10];let F=m?.aaData.percentilesBySlug;o[11]!==g?(l=g??[],o[11]=g,o[12]=l):l=o[12],o[13]!==f||o[14]!==u||o[15]!==v||o[16]!==p||o[17]!==s||o[18]!==h||o[19]!==e||o[20]!==t||o[21]!==r||o[22]!==F||o[23]!==l?(y=s,N=(i=tN((k=b={discovery:u,intelligence:e,coding:t,agentic:r,aaPercentilesBySlug:F,performance:l,resolveEntry:h,latestAliasModels:p,catalogModels:f,featuredModelCount:v}).intelligence),d=tN(k.coding),c=tN(k.agentic),e=>({intelligencePct:tT({map:k.aaPercentilesBySlug,slugKeys:e,index:"intelligence"})??t_(i,e),codingPct:tT({map:k.aaPercentilesBySlug,slugKeys:e,index:"coding"})??t_(d,e),agenticPct:tT({map:k.aaPercentilesBySlug,slugKeys:e,index:"agentic"})??t_(c,e)})),T=new Map((_=(w=b,P=N,j=new Map(w.performance.map(e=>[e.slug,e])),S=new Map([...w.discovery.climbing,...w.discovery.breakouts].map(e=>[e.variantPermaslug,e.series.map(e=>e.tokens)])),Object.entries(w.discovery.totals).toSorted(([,e],[,t])=>t.t-e.t).map(([e,t],r)=>{let l=w.resolveEntry(e),a=rt(l),n=a.map(e=>j.get(e)).find(e=>void 0!==e);return{entry:l,weeklyTokens:t.t,growthRatio:t.c,series:t.s??S.get(e),...P(a),perf:n,promptPricePerToken:tR(l.model),completionPricePerToken:tH(l.model),usageRank:r+1,isDroppedOff:!0===t.d}}))).map(e=>[e.entry.variantPermaslug,e])),M=_.filter(e=>!e.isDroppedOff),C=new Set(_.filter(e=>e.isDroppedOff).map(e=>(0,tk.getStandardSlug)(e.entry.variantPermaslug))),A=[...M,...function({sources:e,percentilesFor:t,enriched:r}){let l=new Set(r.flatMap(e=>[e.entry.variantPermaslug,e.entry.model?.permaslug,e.entry.model?.slug].map(e=>void 0===e?void 0:(0,tk.getStandardSlug)(e)))),a=new Set(e.latestAliasModels.map(e=>e.slug));return e.catalogModels.filter(e=>!l.has((0,tk.getStandardSlug)(e.permaslug))&&!a.has(e.slug)).map(e=>{var r,l;let a;return r=e,l=t,{entry:a={variantPermaslug:r.permaslug,name:r.short_name,author:r.author,href:`/${r.slug}`,model:r},weeklyTokens:0,growthRatio:null,...l(rt(a)),promptPricePerToken:tR(r),completionPricePerToken:tH(r),usageRank:0,isDroppedOff:!1}})}({sources:b,percentilesFor:N,enriched:_})].filter(e=>(tB(e)??0)>=50&&void 0!==e.promptPricePerToken&&e.promptPricePerToken>0).toSorted((e,t)=>tW(t)-tW(e)).filter(tq()).slice(0,25),D=M.filter(e=>{var t;return void 0!==e.perf&&e.perf.request_count>=1e3&&e.perf.p50_latency>0&&e.perf.p50_throughput>=40&&e.perf.provider_count>=2&&(void 0!==(t=e).intelligencePct||void 0!==t.codingPct||void 0!==t.agenticPct||(t.perf?.provider_count??0)>=5&&t.weeklyTokens>=1e7)}).toSorted(tz).filter(tq()).slice(0,25),O=function(e,t){let r=e.latestAliasModels.map(e=>({model:e,stem:(0,tC.familyStemOf)(e.slug),weeklyTokens:0,newestMS:Date.parse(e.created_at)||0}));for(let e of t){let t=(0,tC.modelSegmentOf)((0,tk.getStandardSlug)(e.entry.variantPermaslug)),l=r.filter(r=>r.model.author===e.entry.author&&(0,tC.matchesFamilyStem)(t,r.stem)).toSorted((e,t)=>(0,tC.compareStemSpecificity)(e.stem,t.stem))[0];l&&(l.weeklyTokens+=e.weeklyTokens,l.newestMS=Math.max(l.newestMS,Date.parse(e.entry.model?.created_at??"")||0))}return(function(e){let t=new Map;for(let r of e){let e=t.get(r.model.author)??[];e.push(r),t.set(r.model.author,e)}let r=[];for(let l=0;r.lengthe[l]).filter(e=>void 0!==e).toSorted((e,t)=>t.newestMS-e.newestMS);r.push(...e)}return r})(r.toSorted((e,t)=>t.newestMS-e.newestMS)).map(({model:e,weeklyTokens:t})=>{var r,l;return r=e,l=t,{entry:{variantPermaslug:r.permaslug,name:r.short_name,author:r.author,href:`/${r.slug}`,model:r},weeklyTokens:l,growthRatio:null,promptPricePerToken:tR(r),completionPricePerToken:tH(r),usageRank:0,isDroppedOff:!1}}).slice(0,25)}(b,M),E=M.filter(e=>{let t=e.entry.model?.endpoint;return(0,tM.isModelFree)(t,t?.display_pricing??[])}).slice(0,25),U=[t1({id:"value",title:"Value leaders",subtitle:"The most capability per dollar of list price.",models:A.slice(0,5).map(tQ.bind(void 0,y)),sheetModels:A.map(tQ.bind(void 0,y)),isHalfWidth:!0}),t1({id:"fast",title:"Fastest models",subtitle:"Highest median output speed across multiple providers.",models:D.slice(0,5).map(tK.bind(void 0,y)),sheetModels:D.map(tK.bind(void 0,y)),isHalfWidth:!0}),t1({id:"latest",title:"Always-latest aliases",subtitle:"Pin one model ID and always get the newest release in that family.",models:O.slice(0,5).map(tJ.bind(void 0,y)),sheetModels:O.map(tJ.bind(void 0,y)),isHalfWidth:!0}),t1({id:"free",title:"Free models",subtitle:"The most-used models with a free endpoint.",models:E.slice(0,5).map(tZ.bind(void 0,y)),sheetModels:E.map(tZ.bind(void 0,y)),isHalfWidth:!0})].filter(e=>null!==e),a={signals:function(e,{sources:t,enriched:r,byPermaslug:l,value:a,fast:n,droppedOffSlugs:i}){var o,s;let u=new Set(i),d=e=>(e?.variantPermaslug&&u.add((0,tk.getStandardSlug)(e.variantPermaslug)),e),c=d(function(e,t){if(!t)return null;let r=function(e,t){if(null===t||!Number.isFinite(t))return null;if(Math.round(100*t)>=1e3)return`${(0,tA.formatNativeNumber)(Math.round(t+1),{locale:e})??"—"}x`;let r=Math.round(100*t),l=(0,e4.formatPercentPoints)(r,{locale:e,preset:"native-unrounded"});return l?(r>0?"+":"")+l:null}(e,t.growthRatio);return{id:"top-usage",kind:$,kindLabel:"#1 on OpenRouter",explainer:"The model that served the most tokens on OpenRouter this week. If you want the popular pick, start here.",...t5(t),headline:`${t.entry.name} moves more tokens than any other model.`,body:`${tE(e,t.weeklyTokens)} tokens over the last 7 days${r?`, ${r} week over week`:""}.`,metric:tE(e,t.weeklyTokens),metricLabel:"tokens this week"}}(e,r[0])),m=d(function(e,{sources:t,enriched:r,byPermaslug:l,taken:a}){let n=t9({sources:t,byPermaslug:l,taken:a,matches:e=>null!==e.model&&(0,t3.isOpenWeightsModel)(e.model)&&!(0,t3.isStealthModel)(e.model)});if(n){var i;let t;return{id:"smartest-open",kind:L,kindLabel:"Smartest open model",explainer:"The highest-ranked open-weights model on the Artificial Analysis intelligence index: frontier-grade quality you can self-host.",...(t=Number.isFinite((i=n).score)&&i.score>0,{title:i.entry.name,authorSlug:i.entry.author,variantPermaslug:i.entry.variantPermaslug,href:i.entry.href,series:i.activity?.series,metric:t?`${Math.round(i.score)}`:`#${i.rank}`,metricLabel:t?"intelligence score":"on the index"}),headline:`${n.entry.name} is the smartest open-weights model.`,body:`The highest-ranked open-weights model on the Artificial Analysis intelligence index.${re(e,n.activity)}`}}let o=r.find(e=>null!==e.entry.model&&(0,t3.isOpenWeightsModel)(e.entry.model)&&!(0,t3.isStealthModel)(e.entry.model)&&!a.has((0,tk.getStandardSlug)(e.entry.variantPermaslug)));return o?{id:"smartest-open",kind:L,kindLabel:"Most-used open model",explainer:"The most-used open-weights model on OpenRouter this week.",...t5(o),headline:`${o.entry.name} leads the open-weights pack.`,body:`The most-used open-weights model this week, with ${tE(e,o.weeklyTokens)} tokens served.`,metric:tE(e,o.weeklyTokens),metricLabel:"tokens this week"}:null}(e,{sources:t,enriched:r,byPermaslug:l,taken:u}));return[function(e,{sources:t,enriched:r,byPermaslug:l,taken:a}){let n=(function(e,t){let r=[...t4],l=new Set(r.map(e=>e.slug));for(let a of e.intelligence.slice(0,5)){let n=e.resolveEntry(t6(a));t.has((0,tk.getStandardSlug)(n.variantPermaslug))||l.has(n.author)||(l.add(n.author),r.push({slug:n.author,name:n.model?.author_display_name??n.author}))}return r})(t,a).map(n=>(function(e,{lab:t,sources:r,enriched:l,byPermaslug:a,taken:n}){let i=t9({sources:r,byPermaslug:a,taken:n,matches:e=>e.author===t.slug});if(i){let e=Number.isFinite(i.score)&&i.score>0;return{lab:t.name,name:i.entry.name,authorSlug:i.entry.author,variantPermaslug:i.entry.variantPermaslug,href:i.entry.href,metric:e?`${Math.round(i.score)}`:`#${i.rank}`,metricLabel:e?"intelligence score":"on the index"}}let o=l.find(e=>e.entry.author===t.slug&&!n.has((0,tk.getStandardSlug)(e.entry.variantPermaslug)));return o?{lab:t.name,name:o.entry.name,authorSlug:o.entry.author,variantPermaslug:o.entry.variantPermaslug,href:o.entry.href,metric:tE(e,o.weeklyTokens),metricLabel:"tokens this week"}:null})(e,{lab:n,sources:t,enriched:r,byPermaslug:l,taken:a})).filter(e=>null!==e).toSorted(t7);if(0===n.length)return null;let i=n.some(e=>"intelligence score"===e.metricLabel);return{id:"lab-frontiers",kind:I,kindLabel:"Lab frontiers",explainer:i?"Each major lab's strongest model on the Artificial Analysis intelligence index right now.":"Each major lab's most-used model on OpenRouter this week.",title:"The latest on the frontier",authorSlug:n[0]?.authorSlug??"",href:"/models",headline:"The frontier",body:i?"Each major lab's strongest model on the Artificial Analysis intelligence index.":"Each major lab's most-used model on OpenRouter this week.",frontier:n}}(e,{sources:t,enriched:r,byPermaslug:l,taken:u}),c,m,function(e,{sources:t,byPermaslug:r,taken:l}){let a=t.coding.findIndex(e=>!l.has((0,tk.getStandardSlug)(t.resolveEntry(t6(e)).variantPermaslug))),n=-1===a?void 0:t.coding[a];if(!n)return null;let i=a+1,o=t6(n),s=t.resolveEntry(o),u=r.get(o)??r.get(n.permaslug),d=Number.isFinite(n.score)&&n.score>0;return{id:"smartest-coding",kind:V,kindLabel:"Smartest coding",explainer:"Near the top of the Artificial Analysis coding index right now. If you are writing code and want a very strong model regardless of price, start here.",title:s.name,authorSlug:s.author,variantPermaslug:s.variantPermaslug,href:s.href,series:u?.series,headline:1===i?`${s.name} leads for coding.`:`${s.name} is a top coding pick.`,body:`Ranked #${i} of ${t.coding.length} models on the Artificial Analysis coding index.${re(e,u)}`,metric:d?`${Math.round(n.score)}`:`#${i}`,metricLabel:d?"coding score":"on the index"}}(e,{sources:t,byPermaslug:l,taken:u}),function(e,t){if(!t||void 0===t.promptPricePerToken)return null;let r=t.entry.model?.endpoint?.display_pricing??[];if(t2(e,t.entry.model?.endpoint,r).isCustomPricing||0===t.promptPricePerToken&&!(0,tM.isDisplayPricingFree)(r))return null;let l=tB(t);if(void 0===l)return null;let a=tL(e,t.promptPricePerToken);if(!a)return null;let n=void 0===t.completionPricePerToken?null:tL(e,t.completionPricePerToken);return{id:"best-value",kind:R,kindLabel:"Best value",explainer:"Scores in the top half of the independent Artificial Analysis benchmarks at the lowest combined rate for input and output tokens. The most capability per dollar spent.",...t5(t),headline:`${t.entry.name}: the most capability per dollar.`,body:`Averages the ${Math.round(l)}th percentile across the Artificial Analysis indexes at ${a}/M input${n?` and ${n}/M output`:""} tokens.`,metric:a,metricLabel:"per 1M input"}}(e,a[0]),(o=e,s=n[0],s?.perf?{id:"fastest",kind:H,kindLabel:"Fastest",explainer:"Streams output at the highest sustained speed across real production requests and multiple providers. Best when users need answers quickly.",...t5(s),headline:`${s.entry.name} streams fastest.`,body:`${tI(o,s.perf.p50_throughput)} median output speed across ${s.perf.provider_count} providers, with ${t$(o,s.perf.p50_latency)} median time to first token.`,metric:tI(o,s.perf.p50_throughput),metricLabel:"median output speed"}:null)].filter(e=>null!==e)}(y,{sources:b,enriched:M,byPermaslug:T,value:A,fast:D,droppedOffSlugs:C}),lanes:U,collections:function(e,{sources:t,enriched:r,droppedOffSlugs:l}){return tF.map(a=>{let n=r.filter(e=>null!==e.entry.model&&a.matches(e.entry.model)).filter(tq()).slice(0,25).map(tX.bind(void 0,e)),i=new Set(n.map(e=>(0,tk.getStandardSlug)(e.variantPermaslug))),o=t.catalogModels.filter(e=>a.matches(e)&&!i.has((0,tk.getStandardSlug)(e.permaslug))&&!l.has((0,tk.getStandardSlug)(e.permaslug))).slice(0,Math.max(0,25-n.length)).map(tY.bind(void 0,e)),s=[...n,...o];return{id:a.id,title:a.title,subtitle:a.description,models:s.slice(0,5),sheetModels:s,modelsHref:a.modelsHref}})}(y,{sources:b,enriched:M,droppedOffSlugs:C}),hasTraffic:_.length>0,featuredModelCount:b.featuredModelCount},o[13]=f,o[14]=u,o[15]=v,o[16]=p,o[17]=s,o[18]=h,o[19]=e,o[20]=t,o[21]=r,o[22]=F,o[23]=l,o[24]=a):a=o[24],n=a}let j=n,S=u?.videoRequests??rr,N=u?.routerTokens??rr,_=null===j&&null===d,T=null===j&&null!==d;return o[25]!==S||o[26]!==N||o[27]!==_||o[28]!==T||o[29]!==j||o[30]!==c?(i={view:j,weeklyTokensByVariantPermaslug:c,weeklyVideoRequestsByVariantPermaslug:S,routerTokensByPermaslug:N,isLoading:_,isUnavailable:T},o[25]=S,o[26]=N,o[27]=_,o[28]=T,o[29]=j,o[30]=c,o[31]=i):i=o[31],i}(),{view:k,weeklyTokensByVariantPermaslug:w,weeklyVideoRequestsByVariantPermaslug:P,routerTokensByPermaslug:j}=b,S=k??y,N=null===S&&b.isLoading,_=null===S&&b.isUnavailable,T=S?.hasTraffic===!0,M=null!==S&&!T,C=(0,l.useRef)(!1);if(x[0]===Symbol.for("react.memo_cache_sentinel")?(o=()=>{C.current||(C.current=!0,(0,a.trackDiscoveryEvent)(a.DiscoveryEvent.PageViewed,{referrer:document.referrer||null}))},s=[],x[0]=o,x[1]=s):(o=x[0],s=x[1]),(0,l.useEffect)(o,s),x[2]!==_?(u=()=>{_&&(0,a.trackDiscoveryEvent)(a.DiscoveryEvent.PageUnavailable)},d=[_],x[2]=_,x[3]=u,x[4]=d):(u=x[3],d=x[4]),(0,l.useEffect)(u,d),x[5]!==M?(c=()=>{M&&(0,a.trackDiscoveryEvent)(a.DiscoveryEvent.PageEmptyTraffic)},m=[M],x[5]=M,x[6]=c,x[7]=m):(c=x[6],m=x[7]),(0,l.useEffect)(c,m),S&&T){let e;return x[8]!==S||x[9]!==j||x[10]!==w||x[11]!==P?(e=(0,t.jsx)(th,{view:S,weeklyTokensByVariantPermaslug:w,weeklyVideoRequestsByVariantPermaslug:P,routerTokensByPermaslug:j}),x[8]=S,x[9]=j,x[10]=w,x[11]=P,x[12]=e):e=x[12],e}return x[13]===Symbol.for("react.memo_cache_sentinel")?(g=(0,t.jsx)(n.DiscoveryPageHeader,{}),x[13]=g):g=x[13],x[14]!==N?(h=N&&(0,t.jsx)(i.DiscoveryPageSkeleton,{}),x[14]=N,x[15]=h):h=x[15],x[16]!==_?(p=_&&(0,t.jsx)(rn,{}),x[16]=_,x[17]=p):p=x[17],x[18]!==S||x[19]!==T?(f=S&&!T&&(0,t.jsx)(ra,{}),x[18]=S,x[19]=T,x[20]=f):f=x[20],x[21]!==f||x[22]!==h||x[23]!==p?(v=(0,t.jsxs)("div",{className:"mx-auto flex w-full max-w-7xl flex-col gap-10 px-4 py-8",children:[g,h,p,f]}),x[21]=f,x[22]=h,x[23]=p,x[24]=v):v=x[24],v}],229387)}]); //# sourceMappingURL=21n5w5cmqc2o_.js.map //# chunkId=01a08eb6-297c-7af0-9ee7-b867c0402199