PageSourceSearch

https://unigateway.ai/_next/static/chunks/2h7lhyjt9ww5p.js

js unigateway.ai collected 2026-10-05 13:10:39 UTC 52,337 bytes, 12 lines download raw bytes

1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,947139,e=>{"use strict";var t=e.i(449343),s=e.i(470272),l=e.i(14092),a=e.i(735883),r=e.i(679976),n=e.i(67804);let o=(0,n.default)("book-open",[["path",{d:"M12 7v14",key:"1akyts"}],["path",{d:"M3 18a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1h5a4 4 0 0 1 4 4 4 4 0 0 1 4-4h5a1 1 0 0 1 1 1v13a1 1 0 0 1-1 1h-6a3 3 0 0 0-3 3 3 3 0 0 0-3-3z",key:"ruj8y"}]]);var i=e.i(981776),d=e.i(195860),c=e.i(859586),x=e.i(913408);let m=(0,n.default)("grid-3x3",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M3 9h18",key:"1pudct"}],["path",{d:"M3 15h18",key:"5xshup"}],["path",{d:"M9 3v18",key:"fh3hqa"}],["path",{d:"M15 3v18",key:"14nvp0"}]]);var p=e.i(451195),u=e.i(386335),b=e.i(324563),h=e.i(112135),g=e.i(47983),f=e.i(281707),j=e.i(71233),v=e.i(692111),y=e.i(793914),N=e.i(975157),w=e.i(288458);async function k({endpoint:e="/api/models",params:t,pageSize:s=100,maxPages:l=50,signal:a}={}){let r,n,o=Math.min(100,Math.max(1,s));if(l<1)return{models:[],truncated:!1};let i=[],d=!1,c=async s=>{let l=new URLSearchParams(t);l.set("page",String(s)),l.set("pageSize",String(o)),l.has("sortBy")||l.set("sortBy","name"),l.has("sortOrder")||l.set("sortOrder","asc");let r=await fetch(`${e}?${l.toString()}`,{signal:a});if(!r.ok)throw Error(`Failed to fetch models (status=${r.status})`);let n=await r.json();return{page:s,models:n.models??[],payload:n}},x=await c(1),m=e=>(i.push(...e.models),void 0===r&&(r=e.payload.pagination?.total??e.payload.total),void 0===n&&(n=e.payload.pagination?.totalPages),e.payload.pagination?.hasNextPage===!1||!e.payload.pagination||void 0!==n&&e.page>=n||0===e.models.length||e.page===l&&(d=!0,!0));if(!m(x)){let e=2;for(;e<=l;){if(void 0===n){let t=await c(e);if(e+=1,m(t))break;continue}let t=Math.min(n,l);if(e>t)break;let s=Math.min(e+4-1,t),a=Array.from({length:s-e+1},(t,s)=>e+s).map(async e=>{try{return{result:await c(e)}}catch(e){return{error:e}}}),r=!1;for(let e of a){let t=await e;if("error"in t)throw t.error;if(m(t.result)){r=!0;break}}if(r)break;e=s+1}}let p=[],u=new Set;for(let e of i){let t=e.id;if("string"==typeof t){if(u.has(t))continue;u.add(t)}p.push(e)}return{models:p,total:r,truncated:d}}let C=["text","image","file","audio","video","embeddings"];function M(e,t="—"){return null===e?t:e>=1e6?`${(e/1e6).toFixed(+(e%1e6!=0))}M`:e>=1e3?`${(e/1e3).toFixed(+(e%1e3!=0))}k`:String(e)}function S(e){return e?e.split(/[_\s-]+/).map(e=>e.charAt(0).toUpperCase()+e.slice(1)).join(" "):e}function P(e){let t=new Map(C.map((e,t)=>[e,t]));return[...e].sort((e,s)=>{let l=t.get(e.value.toLowerCase()),a=t.get(s.value.toLowerCase());if(void 0!==l||void 0!==a){if(void 0===l)return 1;if(void 0===a)return -1;if(l!==a)return l-a}return s.count-e.count||e.value.localeCompare(s.value)})}function E(e,t){return!t||null!==e&&("free"===t?0===e:"lt_0_5"===t?e<.5:"0_5_2"===t?e>=.5&&e<2:"gte_2"!==t||e>=2)}let _=({label:e,icon:s,active:l,onClick:a})=>(0,t.jsxs)("div",{role:"button",tabIndex:0,onClick:a,onKeyDown:e=>"Enter"===e.key&&a(),className:(0,N.cn)("flex items-center gap-3 px-3 py-2 rounded cursor-pointer font-['JetBrains_Mono'] text-xs uppercase tracking-widest transition-all",l?"bg-white text-blue-600 font-bold":"text-slate-500 hover:bg-slate-100"),children:[(0,t.jsx)("span",{className:"text-lg",children:s}),(0,t.jsx)("span",{children:e})]});e.s(["default",0,function(){let{t:e}
1=(0,y.useI18n)(),[n,C]=(0,s.useState)([]),[T,R]=(0,s.useState)(!0),[$,A]=(0,s.useState)(""),[I,L]=(0,s.useState)([]),[O,D]=(0,s.useState)([]),[U,B]=(0,s.useState)([]),[F,V]=(0,s.useState)([]),[X,W]=(0,s.useState)([]),[K,q]=(0,s.useState)([]),[z,G]=(0,s.useState)([]),[J,Q]=(0,s.useState)(""),[Z,H]=(0,s.useState)(""),[Y,ee]=(0,s.useState)(""),[et,es]=(0,s.useState)(""),[el,ea]=(0,s.useState)(!1),[er,en]=(0,s.useState)(!1),[eo,ei]=(0,s.useState)(!1),[ed,ec]=(0,s.useState)("featured"),[ex,em]=(0,s.useState)([]),[ep,eu]=(0,s.useState)(1),[eb,eh]=(0,s.useState)(0),[eg,ef]=(0,s.useState)(!1),[ej,ev]=(0,s.useState)(!1),ey={text:e("models.modality.text"),image:e("models.modality.image"),audio:e("models.modality.audio"),video:e("models.modality.video"),file:e("models.modality.file"),embeddings:e("models.modality.embeddings")},eN={language:e("models.modelTypes.language"),text:e("models.modelTypes.language"),chat:e("models.modelTypes.language"),image:e("models.modelTypes.image"),video:e("models.modelTypes.video"),embedding:e("models.modelTypes.embedding"),embeddings:e("models.modelTypes.embedding"),multimodal:e("models.modelTypes.multimodal")},ew=e=>ey[e.toLowerCase()]??S(e),ek=e=>eN[e.toLowerCase()]??S(e),eC=t=>{switch(t){case"free":return e("models.sidebar.free");case"lt_0_5":return"< $0.5";case"0_5_2":return"$0.5 - $2";case"gte_2":return">= $2";default:return""}},eM=(e,t)=>{e(e=>e.includes(t)?e.filter(e=>e!==t):[...e,t])},eS=e=>e?e.split(",").map(e=>e.trim()).filter(Boolean):[];(0,s.useEffect)(()=>{let e=new AbortController,t=window.setTimeout(()=>ev(!0),3e3);return(async()=>{R(!0),ef(!1),ev(!1);try{let{models:t}=await k({endpoint:"/api/models",params:new URLSearchParams({scope:"public"}),signal:e.signal}),s=t.map(e=>({id:e.modelId||e.id,slug:e.slug||e.id,name:e.displayName,provider:e.vendor,providerSlug:e.vendorSlug,family:e.family??null,aliases:(0,w.extractAliasPatterns)(e.aliases),inputModalities:e.inputModalities||[],outputModalities:e.outputModalities||[],status:"AVAILABLE"===e.status||"ACTIVE"===e.status?"AVAILABLE":"PREVIEW"===e.status?"PREVIEW":"DEPRECATED"===e.status?"DEPRECATED":"SUNSET"===e.status?"SUNSET":"UNAVAILABLE"===e.status?"UNAVAILABLE":"RETIRED"===e.status?"RETIRED":e.status,modelType:e.modelType,pricingStatus:e.pricingStatus,isSota:e.isSota,useCaseTags:e.useCaseTags||[],supportedFeatures:e.supportedFeatures||[],contextWindow:e.contextWindow,maxOutputTokens:e.maxOutputTokens,baseInputPrice:e.pricing.inputPerMillion,baseOutputPrice:e.pricing.outputPerMillion,basePerRequestPrice:e.pricing.perRequest,basePerSecondPrice:e.pricing.perSecond,pricingSignals:e.pricing.billingSignals,pricingPresentation:e.pricingPresentation,billingMode:"video"===e.modelType&&null!==e.pricing.perSecond?"PER_SECOND":null!==e.pricing.perRequest?"PER_REQUEST":"PER_TOKEN",discount:0}));C(s)}catch(e){"AbortError"!==e.name&&ef(!0)}finally{window.clearTimeout(t),R(!1)}})(),()=>{e.abort(),window.clearTimeout(t)}},[eb]);let eP=(0,s.useMemo)(()=>{let e=new Map,t=new Map;for(let s of n)e.has(s.provider)||e.set(s.provider,s.providerSlug),t.set(s.provider,(t.get(s.provider)??0)+1);return Array.from(e.entries()).map(([e,t])=>({name:e,slug:t})).sort((e,s)=>{let l=t.get(e.name)??0;return(t.get(s.name)??0)-l||e.name.localeCompare(s.name)})},[n]),eE=(0,s.useMemo)(()=>{let e=new Map;for(let t of n)for(let s of t.outputModalities)e.set(s,(e.get(s)??
10)+1);return Array.from(e.entries()).map(([e,t])=>({value:e,count:t})).sort((e,t)=>t.count-e.count||e.value.localeCompare(t.value))},[n]),e_=(0,s.useMemo)(()=>{let e=new Map;for(let t of n)for(let s of t.inputModalities)e.set(s,(e.get(s)??0)+1);return Array.from(e.entries()).map(([e,t])=>({value:e,count:t})).sort((e,t)=>t.count-e.count||e.value.localeCompare(t.value))},[n]),eT=(0,s.useMemo)(()=>P(e_),[e_]),eR=(0,s.useMemo)(()=>P(eE),[eE]),e$=(0,s.useMemo)(()=>et?eP.filter(e=>e.name.toLowerCase().includes(et.toLowerCase())):eP,[et,eP]),eA=(0,s.useMemo)(()=>{let e=new Map;for(let t of n)e.set(t.modelType.toUpperCase(),(e.get(t.modelType.toUpperCase())??0)+1);return Array.from(e.entries()).map(([e,t])=>({value:e,count:t})).sort((e,t)=>t.count-e.count||e.value.localeCompare(t.value))},[n]),eI=(0,s.useMemo)(()=>{let e=new Map;for(let t of n)e.set(t.status,(e.get(t.status)??0)+1);return Array.from(e.entries()).map(([e,t])=>({value:e,count:t})).sort((e,t)=>t.count-e.count||e.value.localeCompare(t.value))},[n]),eL=(0,s.useMemo)(()=>{let e=new Map;
1for(let t of n)for(let s of t.useCaseTags)e.set(s,(e.get(s)??0)+1);return Array.from(e.entries()).map(([e,t])=>({value:e,count:t})).sort((e,t)=>t.count-e.count||e.value.localeCompare(t.value)).slice(0,15)},[n]),eO=(0,s.useMemo)(()=>{let e=new Map;for(let t of n)e.set(t.provider,(e.get(t.provider)??0)+1);return e},[n]),eD=(0,s.useMemo)(()=>{let e=new Map;for(let t of n)t.family&&e.set(t.family,(e.get(t.family)??0)+1);return Array.from(e.entries()).map(([e,t])=>({value:e,count:t})).sort((e,t)=>t.count-e.count||e.value.localeCompare(t.value))},[n]),eU=(0,s.useMemo)(()=>n.filter(e=>{var t;if($){let t=$.toLowerCase(),s=e.aliases.some(e=>e.toLowerCase().includes(t));if(!e.name.toLowerCase().includes(t)&&!e.id.toLowerCase().includes(t)&&!s)return!1}return(!(I.length>0)||!!I.some(t=>e.outputModalities.includes(t)))&&(!(O.length>0)||!!O.some(t=>e.inputModalities.includes(t)))&&(!(X.length>0)||!!X.includes(e.modelType.toUpperCase()))&&(!(U.length>0)||!!U.includes(e.provider))&&(!(F.length>0)||!!e.family&&!!F.includes(e.family))&&(!(K.length>0)||!!K.includes(e.status))&&(!(z.length>0)||!!z.some(t=>e.useCaseTags.includes(t)))&&(t=e.contextWindow,(!J||null!==t&&("lt_128k"===J?!!(t<128e3):"128k_1m"===J?!!(t>=128e3)&&!!(t<1e6):"gte_1m"!==J||!!(t>=1e6)))&&!!E(e.baseInputPrice,Z)&&!!E(e.baseOutputPrice,Y))&&(!er||0===e.baseInputPrice||0===e.baseOutputPrice||0===e.basePerRequestPrice||0===e.basePerSecondPrice)&&(!eo||!!e.isSota)}),[J,er,Z,n,Y,$,z,O,K,X,I,U,F,eo]),eB=(0,s.useMemo)(()=>{let e=[...eU];switch(ed){case"name_asc":e.sort((e,t)=>e.name.localeCompare(t.name));break;case"input_price_asc":e.sort((e,t)=>{let s=e.baseInputPrice??1/0,l=t.baseInputPrice??1/0;return s!==l?s-l:e.name.localeCompare(t.name)});break;case"input_price_desc":e.sort((e,t)=>{let s=e.baseInputPrice??-1,l=t.baseInputPrice??-1;return s!==l?l-s:e.name.localeCompare(t.name)});break;case"output_price_asc":e.sort((e,t)=>{let s=e.baseOutputPrice??1/0,l=t.baseOutputPrice??1/0;return s!==l?s-l:e.name.localeCompare(t.name)});break;case"output_price_desc":e.sort((e,t)=>{let s=e.baseOutputPrice??-1,l=t.baseOutputPrice??-1;return s!==l?l-s:e.name.localeCompare(t.name)});break;case"context_desc":e.sort((e,t)=>{let s=e.contextWindow??-1,l=t.contextWindow??-1;return s!==l?l-s:e.name.localeCompare(t.name)});break;default:e.sort((e,t)=>Number(t.isSota)-Number(e.isSota)||e.name.localeCompare(t.name))}return e},[eU,ed]),eF=Math.max(1,Math.ceil(eB.length/25)),eV=Math.min(ep,eF),eX=eB.slice((eV-1)*25,25*eV),eW=(0,s.useMemo)(()=>Math.max(...eB.map(e=>e.contextWindow??0),0),[eB]),eK=(0,s.useMemo)(()=>ex.map(e=>n.find(t=>t.id===e)).filter(e=>!!e),[ex,n]),eq=!!($||I.length||O.length||U.length||F.length||X.length||K.length||z.length||J||Z||Y||er||eo||"featured"!==ed),ez=()=>{A(""),L([]),D([]),B([]),V([]),W([]),q([]),G([]),Q(""),H(""),ee(""),en(!1),ei(!1),ec("featured"),eu(1),es("")},eG=()=>{D([]),B([]),V([]),W([]),q([]),G([]),Q(""),H(""),ee(""),en(!1),ei(!1),ec("featured"),es(""),eu(1)},eJ=e=>null===e?null:0===e?"$0":e<.01?`$${e.toFixed(4)}`:`$${e.toFixed(3)}`,eQ=t=>{switch(t){case"AVAILABLE":return e("models.status.available");case"PREVIEW":return e("models.status.preview");case"DEPRECATED":return e("models.status.deprecated");case"SUNSET":return e("models.status.sunset");case"UNAVAILABLE":return e("models.status.unavailable");case"RETIRED":return e("models.status.retired");default:return t}};return(0,s.useEffect)(()=>{eu(1)},[J,er,Z,Y,$,z,O,K,X,I,U,F,eo,ed]),(0,s.useEffect)(()=>{let e=new URLSearchParams(window.location.search),t=e.get("sort"),s=e.get("
1context"),l=e.get("inPrice"),a=e.get("outPrice");A(e.get("q")??""),L(eS(e.get("outMods"))),D(eS(e.get("inMods"))),B(eS(e.get("providers"))),V(eS(e.get("series"))),W(eS(e.get("types"))),q(eS(e.get("lifecycle"))),G(eS(e.get("cats"))),ei("1"===e.get("sota")),en("1"===e.get("free")),t&&ec(t),s&&Q(s),l&&H(l),a&&ee(a)},[]),(0,s.useEffect)(()=>{let e=new URLSearchParams;$&&e.set("q",$),I.length&&e.set("outMods",I.join(",")),O.length&&e.set("inMods",O.join(",")),U.length&&e.set("providers",U.join(",")),F.length&&e.set("series",F.join(",")),X.length&&e.set("types",X.join(",")),K.length&&e.set("lifecycle",K.join(",")),z.length&&e.set("cats",z.join(",")),J&&e.set("context",J),Z&&e.set("inPrice",Z),Y&&e.set("outPrice",Y),eo&&e.set("sota","1"),er&&e.set("free","1"),"featured"!==ed&&e.set("sort",ed);let t=e.toString(),s=t?`${window.location.pathname}?${t}`:window.location.pathname;window.history.replaceState(null,"",s)},[J,er,Z,Y,$,z,O,K,X,I,U,F,eo,ed]),(0,t.jsxs)("div",{className:"public-model-page bg-background text-foreground selection:bg-primary/10",children:[(0,t.jsxs)("div",{className:"mx-auto flex w-full max-w-[1600px] flex-col gap-4 px-4 py-4 sm:px-6 lg:px-8",children:[(0,t.jsx)("section",{className:"bg-card border-border rounded-2xl border p-4 xl:p-5",children:(0,t.jsxs)("div",{className:"flex flex-col gap-4 xl:flex-row xl:items-center xl:justify-between",children:[(0,t.jsxs)("div",{className:"space-y-1.5",children:[(0,t.jsx)("h1",{className:"text-foreground text-2xl font-black tracking-tight sm:text-3xl",children:e("models.title")}),(0,t.jsx)("p",{className:"text-muted-foreground max-w-2xl text-xs leading-5 sm:text-sm",children:e("models.subtitle")})]}),(0,t.jsxs)("div",{className:"flex w-full max-w-3xl flex-col gap-3 xl:items-end",children:[(0,t.jsxs)("div",{className:"relative w-full xl:max-w-2xl",children:[(0,t.jsx)(j.Search,{className:"text-muted-foreground pointer-events-none absolute left-4 top-1/2 h-4 w-4 -translate-y-1/2"}),(0,t.jsx)("input",{"data-testid":"models-search-input",className:"bg-background text-foreground border-border placeholder:text-muted-foreground focus:border-primary focus:ring-primary/20 h-12 w-full rounded-2xl border pl-11 pr-4 text-sm outline-none transition-all focus:bg-background focus:ring-4",placeholder:e("models.searchPlaceholder"),type:"text",value:$,onChange:e=>A(e.target.value)})]}),(0,t.jsxs)("div",{className:"flex flex-wrap items-center gap-2 xl:justify-end",children:[(0,t.jsx)("span",{className:"border-border bg-muted text-foreground rounded-full border px-3 py-1.5 text-[11px] font-semibold",children:T?e("models.page.syncingCatalog"):`${n.length} ${e("models.page.modelsSuffix")}`}),(0,t.jsx)("span",{className:"border-border bg-muted text-foreground rounded-full border px-3 py-1.5 text-[11px] font-semibold",children:T?e("models.page.providersLabel"):`${eP.length} ${e("models.provider")}`}),(0,t.jsx)("span",{className:"border-border bg-muted text-foreground rounded-full border px-3 py-1.5 text-[11px] font-semibold",children:T?e("models.page.contextLabel"):`${M(eW)} ${e("models.page.contextMaxSuffix")}`}),(0,t.jsxs)(l.default,{href:"/docs",className:"border-border text-foreground hover:border-primary/40 hover:text-primary inline-flex items-center gap-2 rounded-xl border bg-transparent px-3 py-2 text-xs font-semibold transition-colors",children:[(0,t.jsx)(o,{className:"h-3.5 w-3.5"}),e("nav.docs")]}),eq&&(0,t.jsxs)("button",{onClick:ez,className:"bg-primary text-primary-foreground hover:bg-primary/90 inline-flex items-center gap-2 rounded-xl px-3 py-2 text-xs font-bold uppercase tracking-wider transition-colors",children:[(0,t.jsx)(f.X,{className:"h-3.5 w-3.5"}),e("models.sidebar.clearFilters")]})]})]})]})}),(0,t.jsxs)("div",{className:"grid gap-6 lg:grid-cols-[280px_minmax(0,1fr)] xl:grid-cols-[300px_minmax(0,1fr)]",children:[(0,t.jsx)("aside",{className:"lg:sticky lg:top-24",children:(0,t.jsxs)("details",{open:!0,className:"group flex flex-col gap-4 roun
1ded-2xl border border-border bg-card p-4","data-testid":"models-filter-sidebar",children:[(0,t.jsxs)("summary",{className:"flex cursor-pointer items-center justify-between gap-2 text-sm font-semibold text-foreground lg:hidden",children:[(0,t.jsxs)("span",{className:"flex items-center gap-2",children:[(0,t.jsx)(x.Filter,{className:"h-4 w-4 text-muted-foreground"}),e("models.sidebar.refinement"),eq&&(0,t.jsx)("span",{className:"inline-flex h-5 min-w-5 items-center justify-center rounded-full bg-primary px-1.5 text-[10px] font-bold text-primary-foreground",children:I.length+O.length+U.length+F.length+X.length+K.length+z.length+ +!!J+ +!!Z+ +!!Y+ +!!er+ +!!eo})]}),(0,t.jsx)(d.ChevronRight,{className:"h-4 w-4 text-muted-foreground transition-transform group-open:rotate-90"})]}),(0,t.jsxs)("div",{className:"hidden flex-col gap-4 group-open:flex lg:!flex",children:[(0,t.jsxs)("div",{className:"space-y-1",children:[(0,t.jsx)(_,{label:e("models.sidebar.allModels"),icon:(0,t.jsx)(m,{className:"w-4 h-4"}),active:0===I.length&&0===X.length&&!eo,onClick:()=>{eG(),L([])}}),(0,t.jsx)(_,{label:e("models.sidebar.textGeneration"),icon:(0,t.jsx)(b.MessageSquare,{className:"w-4 h-4"}),active:I.includes("text")&&1===I.length,onClick:()=>{eG(),L(["text"])}}),(0,t.jsx)(_,{label:e("models.sidebar.imageModels"),icon:(0,t.jsx)(p.ImageIcon,{className:"w-4 h-4"}),active:I.includes("image")&&1===I.length,onClick:()=>{eG(),L(["image"])}}),(0,t.jsx)(_,{label:e("models.sidebar.multimodal"),icon:(0,t.jsx)(c.Eye,{className:"w-4 h-4"}),active:O.includes("image"),onClick:()=>{eG(),D(["image"])}}),(0,t.jsx)(_,{label:e("models.sidebar.embeddings"),icon:(0,t.jsx)(u.Layers,{className:"w-4 h-4"}),active:X.includes("EMBEDDING")&&1===X.length,onClick:()=>{eG(),W(["EMBEDDING"])}}),(0,t.jsx)(_,{label:ew("video"),icon:(0,t.jsx)(g.Video,{className:"w-4 h-4"}),active:I.includes("video")&&1===I.length,onClick:()=>{eG(),L(["video"])}})]}),(0,t.jsxs)("div",{className:"mt-8 px-3",children:[(0,t.jsx)("div",{className:"font-['JetBrains_Mono'] text-[10px] uppercase tracking-[0.2em] text-slate-400 font-bold mb-4",children:e("models.sidebar.refinement")}),(0,t.jsxs)("div",{className:"space-y-4",children:[(0,t.jsxs)("div",{children:[(0,t.jsx)("label",{className:"block text-[10px] font-bold text-slate-500 uppercase mb-2",children:e("models.provider")}),(0,t.jsxs)("div",{className:"relative w-full",children:[(0,t.jsxs)("button",{"data-testid":"models-provider-filter",type:"button",onClick:()=>{ea(!el),el&&es("")},className:"w-full flex items-center justify-between px-3 py-2 rounded-lg border border-slate-200 bg-white text-xs font-medium text-slate-700 hover:border-slate-300 transition-colors",children:[(0,t.jsxs)("span",{className:"text-left truncate",children:[e("models.provider"),": ",0===U.length?e("models.sidebar.any"):1===U.length?U[0]:e("models.sidebar.selectedCount",{count:String(U.length)})]}),(0,t.jsx)("svg",{className:(0,N.cn)("w-4 h-4 transition-transform flex-shrink-0 ml-2",el&&"rotate-180"),fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:(0,t.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M19 14l-7 7m0 0l-7-7m7 7V3"})})]}),el&&(0,t.jsxs)("div",{className:"absolute top-full left-0 right-0 mt-1 z-50 rounded-lg border border-slate-200 bg-white max-h-48 overflow-hidden flex flex-col",children:[(0,t.jsx)("div",{className:"p-2 border-b border-slate-200 flex-shrink-0",children:(0,t.jsx)("input",{type:"text",placeholder:e("models.sidebar.providerSearchPlaceholder"),value:et,onChange:e=>es(e.target.value),className:"w-full px-2 py-1.5 rounded text-xs border border-slate-200 focus:outline-none focus:ring-2 focus:ring-blue-500",autoFocus:!0})}),(0,t.jsxs)("div",{className:"flex-1 overflow-y-auto",children:[(0,t.jsx)("button",{type:"button",onClick:()=>{B([]),ea(!1),es("")},className:(0,N.cn)("w-full text-left px-3 py-2 text-xs font-medium transition-colors",0===U.length?"bg-primary/10 text-primary":"text-foreground hover:bg-muted"),children:e("models.sidebar.any")}),0===e$.length?(0,t.jsx)("div",{className:"px-3 py-4 text-center text-xs text-slate-500",children:e("models.sidebar.providerNoResults")}):e$.map(e=>(0,t.jsxs)("button",{"data-testid":"models-provider-option",type:"button",onClick:()=>{eM(B,e.name)},className:(0,N.cn)("w-full flex items-center justify-between px-3 py-2 text-xs font-medium transition-colors hover:bg-muted",U.includes(e.name)?"bg-primary/10 text-primary":"text-foreground"),children:[(0,t.jsx)("span",{className:"truncate",children:e.name}),(0,t.jsx)("span",{className:(0,N.cn)("ml-2 px-2 py-0.5 rounded text-[10px] flex-shrink-0",U.includes(e.name)?"bg-primary/20 text-primary":"bg-slate-100 text-slate-600"),children:eO.get(e.n
1ame)??0})]},e.name))]})]})]}),U.length>0&&(0,t.jsx)("div",{className:"mt-2 flex flex-wrap gap-1.5",children:U.map(e=>(0,t.jsxs)("button",{type:"button",onClick:()=>eM(B,e),className:"inline-flex items-center gap-1 rounded-full border border-slate-900 bg-slate-900 px-2.5 py-0.5 text-[11px] font-medium text-white transition-colors hover:bg-slate-800",children:[e,(0,t.jsx)(f.X,{className:"h-3 w-3"})]},e))})]}),(0,t.jsxs)("div",{children:[(0,t.jsx)("label",{className:"mb-2 block text-[10px] font-bold uppercase text-slate-500",children:e("models.sidebar.inputModalities")}),(0,t.jsxs)("div",{className:"flex flex-wrap gap-1.5",children:[(0,t.jsx)("button",{type:"button","aria-pressed":0===O.length,onClick:()=>D([]),className:(0,N.cn)("shrink-0 rounded-full border px-2.5 py-0.5 text-[11px] font-medium leading-5 transition-colors",0===O.length?"border-slate-900 bg-slate-900 text-white":"border-slate-300 bg-white text-slate-600 hover:border-slate-400 hover:bg-slate-100"),children:e("models.sidebar.any")}),eT.map(e=>(0,t.jsxs)("button",{type:"button","aria-pressed":O.includes(e.value),onClick:()=>eM(D,e.value),className:(0,N.cn)("shrink-0 rounded-full border px-2.5 py-0.5 text-[11px] font-medium leading-5 transition-colors",O.includes(e.value)?"border-slate-900 bg-slate-900 text-white":"border-slate-300 bg-white text-slate-600 hover:border-slate-400 hover:bg-slate-100"),children:[ew(e.value),(0,t.jsx)("span",{className:(0,N.cn)("ml-1 rounded-full px-1.5 text-[10px] leading-4",O.includes(e.value)?"bg-white/20 text-white":"bg-slate-100 text-slate-500"),children:e.count})]},e.value))]})]}),(0,t.jsxs)("div",{children:[(0,t.jsx)("label",{className:"mb-2 block text-[10px] font-bold uppercase text-slate-500",children:e("models.sidebar.outputModalities")}),(0,t.jsxs)("div",{className:"flex flex-wrap gap-1.5",children:[(0,t.jsx)("button",{type:"button","aria-pressed":0===I.length,onClick:()=>L([]),className:(0,N.cn)("shrink-0 rounded-full border px-2.5 py-0.5 text-[11px] font-medium leading-5 transition-colors",0===I.length?"border-slate-900 bg-slate-900 text-white":"border-slate-300 bg-white text-slate-600 hover:border-slate-400 hover:bg-slate-100"),children:e("models.sidebar.any")}),eR.map(e=>(0,t.jsxs)("button",{type:"button","aria-pressed":I.includes(e.value),onClick:()=>eM(L,e.value),className:(0,N.cn)("shrink-0 rounded-full border px-2.5 py-0.5 text-[11px] font-medium leading-5 transition-colors",I.includes(e.value)?"border-slate-900 bg-slate-900 text-white":"border-slate-300 bg-white text-slate-600 hover:border-slate-400 hover:bg-slate-100"),children:[ew(e.value),(0,t.jsx)("span",{className:(0,N.cn)("ml-1 rounded-full px-1.5 text-[10px] leading-4",I.includes(e.value)?"bg-white/20 text-white":"bg-slate-100 text-slate-500"),children:e.count})]},e.value))]})]}),(0,t.jsxs)("div",{className:"space-y-4",children:[(0,t.jsxs)("div",{children:[(0,t.jsx)("label",{className:"block text-[10px] font-bold text-slate-500 uppercase mb-2",children:e("models.sidebar.sortBy")}),(0,t.jsxs)("select",{"data-testid":"models-billing-mode-filter",value:ed,onChange:e=>ec(e.target.value),className:"w-full bg-white border border-slate-200 rounded text-xs py-1.5 px-2 outline-none focus:ring-blue-600 focus:border-blue-600",children:[(0,t.jsx)("option",{value:"featured",children:e("models.sidebar.sortFeatured")}),(0,t.jsx)("option",{value:"name_asc",children:e("models.sidebar.sortNameAsc")}),(0,t.jsx)("option",{value:"input_price_asc",children:e("models.sidebar.sortInputPrice")}),(0,t.jsx)("option",{value:"input_price_desc",children:e("models.sidebar.sortInputPriceDesc")}),(0,t.jsx)("option",{value:"output_price_asc",children:e("models.sidebar.sortOutputPrice")}),(0,t.jsx)("option",{value:"output_price_desc",children:e("models.sidebar.sortOutputPriceDesc")}),(0,t.jsx)("option",{value:"context_desc",children:e("models.sidebar.sortContextDesc")})]})]}),(0,t.jsxs)("div",{children:[(0,t.jsx)("label",{className:"block text-[10px] font-bold text-slate-500 uppercase mb-2",children:e("models.sidebar.series")}),(0,t.jsxs)("div",{className:"flex flex-wrap gap-1.5",children:[(0,t.jsx)("button",{type:"button","aria-pressed":0===F.length,onClick:()=>V([]),className:(0,N.cn)("rounded-full border px-2.5 py-0.5 text-[11px] font-medium leading-5 transition-colors",0===F.length?"border-slate-900 bg-slate-900 text-white":"border-slate-300 bg-white text-slate-600 hover:border-slate-400 hover:bg-slate-100"),children:e("models.sidebar.any")}),eD.map(e=>(0,t.jsxs)("button",{type:"button","aria-pressed":F.includes(e.value),onClick:()=>eM(V,e.value),className:(0,N.cn)("rounded-full border px-2.5 py-0.5 text-[11px] font-medium leading-5 transition-colors",F.includes(e.value)?"border-slate-900 bg-slate-900 text-white":"border-slate-300 bg-white text-slate-600 hover:border-slate-400 hover:bg-slate-100"),children:[e.value,(0,t.jsx)("span",{className:(0,N.cn)("ml-1 rounded-full px-1.5 text-[10px] leading-4",F.includes(e.value)?"bg-white/20 text-white":"bg-slate-100 text-slate-500"),children:e.count})]},e.value))]})]}),(0,t.jsxs)("div",{children:[(0,t.jsx)("label",{className:"block text-[10px] font-bold text-slate-500 uppercase mb-2",children:e("models.sidebar.modelType")}),(0,t.jsxs)("div",{className:"flex flex-wrap gap-1.5",children:[(0,t.jsx)("button",{type:"button","aria-pressed":0===X.length,onClick:()=>W([]),className:(0,N.cn)("rounded-full border px-2.5 py-0.5 text-[11px] font-medium leading-5 transition-colors",0===X.length?"border-slate-900 bg-slate-900 text-white":"border-slate-300 bg-white text-slate-600 hover:border-slate-400 hover:bg-slate-100"),children:e("models.sidebar.any")}),eA.map(e=>(0,t.jsxs)("button",{type:"button","aria-pressed":X.includes(e.value),onClick:()=>eM(W,e.value),className:(0,N.cn)("rounded-full border px-2.5 py-0.5 text-[11px] font-medium leading-5 transition-colors",X.includes(e.value)?"border-slate-900 bg-slate-900 text-white":"border-slate-300 bg-white text-slate-600 hover:border-slate-400 hover:bg-slate-100"),children:[ek(e.value),(0,t.jsx)("span",{className:(0,N.cn)("ml-1 rounded-full px-1.5 text-[10px] leading-4",X.includes(e.value)?"bg-white/20 text-white":"bg-slate-100 text-slate-500"),children:e.count})]},e.value))]})]}),(0,t.jsxs)("div",{children:[(0,t.jsx)("label",{className:"block text-[10px] font-bold text-slate-500 uppercase mb-2",children:e("models.sidebar.contextLength")}),(0,t.jsxs)("select",{value:J,onChange:e=>Q(e.target.value),className:"w-full bg-white border border-slate-200 rounded text-xs py-1.5 px-2 outline-none focus:ring-blue-600 focus:border-blue-600",children:[(0,t.jsx)("option",{value:"",children:e("models.sidebar.any")}),(0,t.jsx)("option",{value:"lt_128k",children:"< 128K"}),(0,t.jsx)("option",{value:"128k_1m",children:"128K - 1M"}),(0,t.jsx)("option",{value:"gte_1m",children:"≥ 1M"})]})]}),(0,t.jsxs)("div",{children:[(0,t.jsx)("label",{className:"block text-[10px] font-bold text-slate-500 uppercase mb-2",children:e("models.sidebar.inputPricePerMillion")}),(0,t.jsxs)("select",{value:Z,onChange:e=>H(e.target.value),className:"w-full bg-white border border-slate-200 rounded text-xs py-1.5 px-2 outline-none focus:ring-blue-600 focus:border-blue-600",children:[(0,t.jsx)("option",{value:"",children:e("models.sidebar.any")}),(0,t.jsx)("option",{value:"free",children:e("models.sidebar.free")}),(0,t.jsx)("option",{value:"lt_0_5",children:"< $0.5"}),(0,t.jsx)("option",{value:"0_5_2",children:"$0.5 - $2"}),(0,t.jsx)("option",{value:"gte_2",children:"≥ $2"})]})]}),(0,t.jsxs)("div",{children:[(0,t.jsx)("label",{className:"block text-[10px] font-bold text-slate-500 uppercase mb-2",children:e("models.sidebar.outputPricePerMillion")}),(0,t.jsxs)("select",{value:Y,onChange:e=>ee(e.target.value),className:"w-full bg-white border border-slate-200 rounded text-xs py-1.5 px-2 outline-none focus:ring-blue-600 focus:border-blue-600",children:[(0,t.jsx)("option",{value:"",children:e("models.sidebar.any")}),(0,t.jsx)("option",{value:"free",children:e("models.sidebar.free")}),(0,t.jsx)("option",{value:"lt_0_5",children:"< $0.5"}),(0,t.jsx)("option",{value:"0_5_2",children:"$0.5 - $2"}),(0,t.jsx)("option",{value:"gte_2",children:"≥ $2"})]})]}),(0,t.jsx)("button",{type:"button","aria-pressed":er,onClick:()=>en(e=>!e),className:(0,N.cn)("inline-flex w-fit items-center rounded-full border px-2.5 py-0.5 text-[11px] font-medium leading-5 transition-colors",er?"border-slate-900 bg-slate-900 text-white":"border-slate-300 bg-white text-slate-600 hover:border-slate-400 hover:bg-slate-100"),children:e("models.sidebar.freeModelsOnly")}),(0,t.jsxs)("div",{children:[(0,t.jsx)("label",{className:"block text-[10px] font-bold text-slate-500 uppercase mb-2",children:e("models.sidebar.lifecycle")}),(0,t.jsxs)("div",{className:"flex flex-wrap gap-1.5",children:[(0,t.jsx)("button",{type:"button","aria-pressed":0===K.length,onClick:()=>q([]),className:(0,N.cn)("rounded-full border px-2.5 py-0.5 text-[11px] font-medium leading-5 transition-colors",0===K.length?"border-slate-900 bg-slate-900 text-white":"border-slate-300 bg-white text-slate-600 hover:border-slate-400 hover:bg-slate-100"),children:e("models.sidebar.any")}),eI.map(e=>(0,t.jsxs)("button",{type:"button","aria-pressed":K.includes(e.value),onClick:()=>eM(q,e.value),className:(0,N.cn)("rounded-full border px-2.5 py-0.5 text-[11px] font-medium leading-5 transition-colors",K.includes(e.value)?"border-slate-900 bg-slate-900 text-white":"border-slate-300 bg-white text-slate-600 hover:border-slate-400 hover:bg-slate-100"),children:[eQ(e.value),(0,t.jsx)("span",{className:(0,N.cn)("ml-1 rounded-full px-1.5 text-[10px] leading-4",K.includes(e.value)?"bg-white/20 text-white":"bg-slate-100 text-slate-500"),children:e.count})]},e.value))]})]}),(0,t.jsxs)("div",{children:[(0,t.jsx)("label",{className:"block text-[10px] font-bold text-slate-500 uppercase mb-2",children:e("models.sidebar.categories")}),(0,t.jsxs)("div",{className:"flex max-h-40 flex-wrap gap-1.5 overflow-y-auto pr-2 hidden-scrollbar",children:[(0,t.jsx)("button",{type:"button","aria-pressed":0===z.length,onClick:()=>G([]),className:(0,N.cn)("rounded-full border px-2.5 py-0.5 text-[11px] font-medium leading-5 transition-colors",0===z.length?"border-slate-900 bg-slate-900 text-white":"border-slate-300 bg-white text-slate-600 hover:border-slate-400 hover:bg-slate-100"),children:e("models.sidebar.any")}),eL.map(e=>(0,t.jsxs)("button",{type:"button","aria-pressed":z.includes(e.value),onClick:()=>eM(G,e.value),className:(0,N.cn)("rounded-full border px-2.5 py-0.5 text-[11px] font-medium leading-5 transition-colors",z.includes(e.value)?"border-slate-900 bg-slate-900 text-white":"border-slate-300 bg-white text-slate-600 hover:border-slate-400 hover:bg-slate-100"),children:[e.value,(0,t.jsx)("span",{className:(0,N.cn)("ml-1 rounded-full px-1.5 text-[10px] leading-4",z.includes(e.value)?"bg-white/20 text-white":"bg-slate-100 text-slate-500"),children:e.count})]},e.value))]})]}),(0,t.jsx)("button",{type:"button","aria-pressed":eo,onClick:()=>ei(e=>!e),className:(0,N.cn)("inline-flex w-fit items-center rounded-full border px-2.5 py-0.5 text-[11px] font-medium leading-5 transition-colors",eo?"border-slate-900 bg-slate-900 text-white":"border-slate-300 bg-white text-slate-600 hover:border-slate-400 hover:bg-slate-100"),children:e("models.sidebar.sotaOnly")})]})]})]}),(0,t.jsx)("div",{className:"mt-auto space-y-1 pt-2",children:(0,t.jsxs)(l.default,{href:"/docs",className:"flex items-center gap-3 rounded-xl px-3 py-2 text-slate-500 transition-all hover:bg-slate-100 cursor-pointer font-['JetBrains_Mono'] text-[10px] uppercase tracking-widest",children:[(0,t.jsx)(o,{className:"w-3.5 h-3.5"}),(0,t.jsx)("span",{children:e("nav.docs")})]})})]})]})}),(0,t.jsxs)("main",{className:"min-w-0",children:[(0,t.jsx)("div",{className:"mb-4 flex flex-wrap items-center justify-between gap-3",children:(0,t.jsxs)("div",{children:[(0,t.jsx)("div",{className:"text-[10px] font-bold uppercase tracking-[0.24em] text-slate-400 mono-data",children:e("models.page.directoryFeed")}),(0,t.jsx)("div",{className:"mt-1 text-sm text-slate-600",children:T?e("models.page.preparingInventory"):e("models.page.displayingVisible",{shown:String(eX.length),total:String(eB.length)})})]})}),eq&&(0,t.jsxs)("div",{className:"mb-4 rounded-2xl border border-slate-200 bg-white p-3",children:[(0,t.jsx)("div",{className:"mb-2 text-[10px] font-bold uppercase tracking-[0.2em] text-slate-400",children:e("models.page.activeFilters")}),(0,t.jsxs)("div",{className:"flex flex-wrap gap-2",children:[$?(0,t.jsxs)("button",{type:"button",onClick:()=>A(""),className:"inline-flex items-center gap-1 rounded-full border border-slate-200 bg-slate-50 px-2 py-1 text-[11px] font-medium text-slate-700",children:[e("models.sidebar.search"),": ",$,(0,t.jsx)(f.X,{className:"h-3 w-3"})]}):null,U.map(s=>(0,t.jsxs)("button",{type:"button",onClick:()=>eM(B,s),className:"inline-flex items-center gap-1 rounded-full border border-slate-200 bg-slate-50 px-2 py-1 text-[11px] font-medium text-slate-700",children:[e("models.provider"),": ",s,(0,t.jsx)(f.X,{className:"h-3 w-3"})]},`provider:${s}`)),F.map(s=>(0,t.jsxs)("button",{type:"button",onClick:()=>eM(V,s),className:"inline-flex items-center gap-1 rounded-full border border-slate-200 bg-slate-50 px-2 py-1 text-[11px] font-medium text-slate-700",children:[e("models.sidebar.series"),": ",s,(0,t.jsx)(f.X,{className:"h-3 w-3"})]},`series:${s}`)),I.map(s=>(0,t.jsxs)("button",{type:"button",onClick:()=>eM(L,s),className:"inline-flex items-center gap-1 rounded-full border border-slate-200 bg-slate-50 px-2 py-1 text-[11px] font-medium text-slate-700",children:[e("models.sidebar.outputModalities"),": ",ew(s),(0,t.jsx)(f.X,{className:"h-3 w-3"})]},`outMod:${s}`)),O.map(s=>(0,t.jsxs)("button",{type:"button",onClick:()=>eM(D,s),className:"inline-flex items-center gap-1 rounded-full border border-slate-200 bg-slate-50 px-2 py-1 text-[11px] font-medium text-slate-700",children:[e("models.sidebar.inputModalities"),": ",ew(s),(0,t.jsx)(f.X,{className:"h-3 w-3"})]},`inMod:${s}`)),X.map(s=>(0,t.jsxs)("button",{type:"button",onClick:()=>eM(W,s),className:"inline-flex items-center gap-1 rounded-full border border-slate-200 bg-slate-50 px-2 py-1 text-[11px] font-medium text-slate-700",children:[e("models.sidebar.modelType"),": ",ek(s),(0,t.jsx)(f.X,{className:"h-3 w-3"})]},`type:${s}`)),K.map(s=>(0,t.jsxs)("button",{type:"button",onClick:()=>eM(q,s),className:"inline-flex items-center gap-1 rounded-full border border-slate-200 bg-slate-50 px-2 py-1 text-[11px] font-medium text-slate-700",children:[e("models.sidebar.lifecycle"),": ",eQ(s),(0,t.jsx)(f.X,{className:"h-3 w-3"})]},`stage:${s}`)),z.map(s=>(0,t.jsxs)("button",{type:"button",onClick:()=>eM(G,s),className:"inline-flex items-center gap-1 rounded-full border border-slate-200 bg-slate-50 px-2 py-1 text-[11px] font-medium text-slate-700",children:[e("models.sidebar.categories"),": ",s,(0,t.jsx)(f.X,{className:"h-3 w-3"})]},`cat:${s}`)),J?(0,t.jsxs)("button",{type:"button",onClick:()=>Q(""),className:"inline-flex items-center gap-1 rounded-full border border-slate-200 bg-slate-50 px-2 py-1 text-[11px] font-medium text-slate-700",children:[e("models.sidebar.contextLength"),": ",(e=>{switch(e){case"lt_128k":return"< 128K";case"128k_1m":return"128K - 1M";case"gte_1m":return">= 1M";default:return""}})(J),(0,t.jsx)(f.X,{className:"h-3 w-3"})]}):null,Z?(0,t.jsxs)("button",{type:"button",onClick:()=>H(""),className:"inline-flex items-center gap-1 rounded-full border border-slate-200 bg-slate-50 px-2 py-1 text-[11px] font-medium text-slate-700",children:[e("models.sidebar.inputPricePerMillion"),": ",eC(Z),(0,t.jsx)(f.X,{className:"h-3 w-3"})]}):null,Y?(0,t.jsxs)("button",{type:"button",onClick:()=>ee(""),className:"inline-flex items-center gap-1 rounded-full border border-slate-200 bg-slate-50 px-2 py-1 text-[11px] font-medium text-slate-700",children:[e("models.sidebar.outputPricePerMillion"),": ",eC(Y),(0,t.jsx)(f.X,{className:"h-3 w-3"})]}):null,er?(0,t.jsxs)("button",{type:"button",onClick:()=>en(!1),className:"inline-flex items-center gap-1 rounded-full border border-slate-200 bg-slate-50 px-2 py-1 text-[11px] font-medium text-slate-700",children:[e("models.sidebar.freeModelsOnly"),(0,t.jsx)(f.X,{className:"h-3 w-3"})]}):null,eo?(0,t.jsxs)("button",{type:"button",onClick:()=>ei(!1),className:"inline-flex items-center ga
1p-1 rounded-full border border-slate-200 bg-slate-50 px-2 py-1 text-[11px] font-medium text-slate-700",children:[e("models.sidebar.sotaOnly"),(0,t.jsx)(f.X,{className:"h-3 w-3"})]}):null]})]}),T&&ej&&!eg&&(0,t.jsxs)("div",{className:"border-amber-500/30 bg-amber-500/10 text-amber-700 dark:text-amber-400 mb-4 rounded-2xl border px-4 py-3",children:[(0,t.jsx)("div",{className:"text-xs font-semibold",children:e("models.page.loadingSlow")}),(0,t.jsx)("div",{className:"text-amber-600 dark:text-amber-500 mt-1 text-xs",children:e("models.page.loadingSlowHint")}),(0,t.jsx)("button",{type:"button",onClick:()=>eh(e=>e+1),className:"border-amber-500/40 text-amber-700 dark:text-amber-400 hover:bg-amber-500/10 mt-2 inline-flex items-center rounded-lg border bg-transparent px-2.5 py-1 text-xs font-semibold",children:e("models.page.retryLoad")})]}),!T&&eg&&(0,t.jsxs)("div",{className:"mb-4 rounded-2xl border border-rose-200 bg-rose-50 px-4 py-3 text-rose-800",children:[(0,t.jsx)("div",{className:"text-xs font-semibold",children:e("models.page.loadFailed")}),(0,t.jsx)("div",{className:"mt-1 text-xs text-rose-700",children:e("models.page.loadFailedHint")}),(0,t.jsx)("button",{type:"button",onClick:()=>eh(e=>e+1),className:"mt-2 inline-flex items-center rounded-lg border border-rose-300 bg-white px-2.5 py-1 text-xs font-semibold text-rose-800 hover:bg-rose-100",children:e("models.page.retryLoad")})]}),(0,t.jsx)("div",{className:"overflow-hidden rounded-[24px] border border-slate-200/70 bg-white",children:(0,t.jsx)("div",{className:"overflow-x-auto",children:(0,t.jsxs)("table",{"data-testid":"models-table",className:"w-full text-left border-collapse",children:[(0,t.jsx)("thead",{children:(0,t.jsxs)("tr",{className:"bg-slate-50/50 border-b border-slate-100",children:[(0,t.jsx)("th",{scope:"col",className:"w-10 px-3 py-2 text-center text-[10px] font-bold uppercase tracking-widest text-slate-500",children:e("models.page.tableCompare")}),(0,t.jsx)("th",{scope:"col",className:"px-3 py-2 text-[10px] font-bold uppercase tracking-widest text-slate-500",children:e("models.page.tableModelProvider")}),(0,t.jsx)("th",{scope:"col",className:"w-24 px-3 py-2 text-center text-[10px] font-bold uppercase tracking-widest text-slate-500",children:e("models.page.tableContext")}),(0,t.jsx)("th",{scope:"col",className:"w-[230px] px-3 py-2 text-right text-[10px] font-bold uppercase tracking-widest text-slate-500",children:e("models.page.tablePrice")}),(0,t.jsx)("th",{scope:"col",className:"w-10 px-2 py-2"})]})}),(0,t.jsx)("tbody",{className:"divide-y divide-slate-50",children:T?Array.from({length:8}).map((e,s)=>(0,t.jsx)("tr",{className:"animate-pulse",children:(0,t.jsx)("td",{className:"px-3 py-3",colSpan:5,children:(0,t.jsxs)("div",{className:"flex items-center gap-3",children:[(0,t.jsx)("div",{className:"h-8 w-8 rounded bg-slate-100"}),(0,t.jsx)("div",{className:"h-4 w-48 bg-slate-50 rounded"})]})})},s)):eX.length>0?eX.map(s=>(0,t.jsxs)("tr",{"data-testid":"model-card",className:"hover:bg-slate-50/50 transition-colors group",children:[(0,t.jsx)("td",{className:"px-3 py-3 text-center",children:(0,t.jsx)("input",{type:"checkbox",checked:ex.includes(s.id),onChange:()=>{var e;return e=s.id,void em(t=>t.includes(e)?t.filter(t=>t!==e):t.length>=4?t:[...t,e])},className:"rounded border-slate-300 text-blue-600 focus:ring-blue-600 h-3.5 w-3.5 accent-blue-600","aria-label":`compare ${s.id}`})}),(0,t.jsx)("td",{className:"px-3 py-3",children:(0,t.jsxs)("div",{className:"flex items-center gap-3",children:[(0,t.jsx)("div",{className:"flex h-8 w-8 shrink-0 items-center justify-center rounded border border-slate-200/50 bg-slate-100",children:"Z-AI"===s.providerSlug||"z-ai"===s.providerSlug?(0,t.jsx)(r.ZAI,{size:18}):(0,t.jsx)(a.ProviderIcon,{provider:s.providerSlug,size:17,type:"color"})}),(0,t.jsxs)("div",{className:"min-w-0",children:[(0,t.jsxs)("div",{className:"flex items-center gap-2",children:[(0,t.jsx)(l.default,{href:`/models/${s.slug}`,className:"truncate text-[13px] font-bold text-slate-900 transition-colors group-hover:text-blue-600",children:s.name}),s.isSota&&(0,t.jsx)(h.Trophy,{className:"w-3 h-3 text-amber-500"})]}),(0,t.jsxs)("div",{className:"mt-0.5 flex flex-wrap items-center gap-1.5 text-[9px] font-medium tracking-wider text-slate-400 mono-data",children:[(0,t.jsx)("span",{className:"uppercase",children:s.provider}),(0,t.jsx)("span",{className:"h-1 w-1 rounded-full bg-slate-200"}),(0,t.jsx)("span",{className:(0,N.cn)("rounded-full border px-1.5 py-0.5 text-[9px] font-bold uppercase tracking-wide",(e=>{switch(e){case"AVAILABLE":return"border-emerald-500/20 bg-emerald-500/10 text-emerald-600 dark:text-emerald-400";case"PREVIEW":return"border-amber-500/20 bg-amber-500/10 text-amber-600 dar
1k:text-amber-400";case"DEPRECATED":case"SUNSET":case"RETIRED":return"border-rose-500/20 bg-rose-500/10 text-rose-600 dark:text-rose-400";default:return"border-border bg-muted text-muted-foreground"}})(s.status)),children:eQ(s.status)}),s.family&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("span",{className:"h-1 w-1 rounded-full bg-slate-200"}),(0,t.jsx)("span",{className:"text-slate-500",children:s.family})]})]}),s.pricingSignals&&s.pricingSignals.filter(e=>"RULED_TOKEN"===e).length>0&&(0,t.jsx)("div",{className:"mt-1 flex flex-wrap gap-1",children:s.pricingSignals.filter(e=>"RULED_TOKEN"===e).map(s=>(0,t.jsx)("span",{className:"inline-flex items-center rounded-full border border-slate-200 bg-slate-50 px-1.5 py-0.5 text-[9px] font-medium text-slate-600",children:e("models.billing.ruleBasedToken")},s))})]})]})}),(0,t.jsx)("td",{className:"px-3 py-3 text-center",children:(0,t.jsx)("span",{className:"rounded-sm bg-slate-100 px-1.5 py-0.5 text-[10px] font-bold text-slate-700 mono-data",children:M(s.contextWindow)})}),(0,t.jsx)("td",{className:"px-3 py-3 text-right",children:(s=>{if("UNKNOWN"===s.pricingStatus)return null;let l=s.pricingPresentation,a=l?.referenceGroups[0],r=a?(t=>{var s;if(0===t.length)return null;let l=t.map(e=>e.amount),a=Math.min(...l),r=Math.max(...l);return{value:a===r?eJ(a):`${eJ(a)}–${eJ(r)}`,range:t.length>1?e("models.page.priceRange",{from:t[0].key,to:t[t.length-1].key}):t[0].key,unit:"PER_IMAGE"===(s=t[0].unit)?e("models.pricingPresentation.units.perImage"):"PER_SECOND"===s?e
1("models.pricingPresentation.units.perSecond"):"PER_REQUEST"===s?e("models.pricingPresentation.units.perRequest"):e("models.pricingPresentation.units.perMillionTokens")}})(a.rows):null,n=(e=>{if(0===e.length)return null;let t=e.map(e=>e.amount),s=Math.min(...t),l=Math.max(...t);return s===l?eJ(s):`${eJ(s)}–${eJ(l)}`})(l?.conditionalTokenRows??[]),o=eJ(s.baseInputPrice),i=eJ(s.baseOutputPrice);return s.pricingSignals?.includes("RULED_TOKEN")?(0,t.jsxs)("div",{className:"min-w-[190px] space-y-1",children:[(0,t.jsxs)("div",{className:"flex items-center justify-between gap-3",children:[(0,t.jsx)("span",{className:"text-[10px] font-semibold text-slate-500",children:e("models.page.priceReferenceSecond")}),r?(0,t.jsxs)("span",{className:"mono-data text-xs font-semibold text-slate-900",children:[r.value," ",(0,t.jsx)("span",{className:"font-normal text-slate-500",children:r.unit})]}):n?(0,t.jsxs)("span",{className:"mono-data text-xs font-semibold text-slate-900",children:[n," ",(0,t.jsx)("span",{className:"font-normal text-slate-500",children:e("models.pricingPresentation.units.perMillionTokens")})]}):(0,t.jsx)("span",{className:"text-xs font-semibold text-slate-500",children:e("models.page.priceNotConfigured")})]}),(0,t.jsxs)("div",{className:"flex flex-wrap items-center gap-1.5 text-[10px] text-slate-500",children:[r&&(0,t.jsx)("span",{children:r.range}),n&&(0,t.jsxs)("span",{children:[e("models.page.priceTokenRange"),": ",n," ",e("models.pricingPresentation.units.perMillionTokens")," · ",e("models.page.priceRuleSplit")]}),(0,t.jsx)("span",{className:"rounded border border-amber-200 bg-amber-50 px-1.5 py-0.5 font-medium text-amber-700",children:e("models.billing.ruleBasedToken")})]})]}):"PER_SECOND"===s.billingMode?(0,t.jsxs)("div",{className:"min-w-[170px] space-y-1",children:[(0,t.jsxs)("div",{className:"flex items-center justify-between gap-3",children:[(0,t.jsx)("span",{className:"text-[10px] font-semibold text-slate-500",children:e("models.billing.perSecond")}),(0,t.jsxs)("span",{className:"mono-data text-xs font-semibold text-slate-900",children:[eJ(s.basePerSecondPrice??a?.rows[0]?.amount??null)," ",(0,t.jsx)("span",{className:"font-normal text-slate-500",children:e("models.pricingPresentation.units.perSecond")})]})]}),r&&(0,t.jsxs)("div",{className:"text-[10px] text-slate-500",children:[r.range," · ",r.value," ",r.unit]})]}):"PER_REQUEST"===s.billingMode?(0,t.jsxs)("div",{className:"min-w-[150px] text-right",children:[(0,t.jsxs)("span",{className:"mono-data text-xs font-semibold text-slate-900",children:[eJ(s.basePerRequestPrice)," "]}),(0,t.jsx)("span",{className:"text-[10px] text-slate-500",children:e("models.pricingPresentation.units.perRequest")})]}):a?.kind==="IMAGE_SIZE"&&r?(0,t.jsxs)("div",{className:"min-w-[190px] space-y-1",children:[(0,t.jsxs)("div",{className:"flex items-center justify-between gap-3",children:[(0,t.jsx)("span",{className:"text-[10px] font-semibold text-slate-500",children:e("models.billing.input")}),(0,t.jsxs)("span",{className:"mono-data text-xs font-semibold text-slate-900",children:[o," ",(0,t.jsx)("span",{className:"font-normal text-slate-500",children:e("models.pricingPresentation.units.perMillionTokens")})]})]}),(0,t.jsxs)("div",{className:"text-[10px] text-slate-500",children:[e("models.page.priceReferenceImage")," ",r.range," · ",r.value," ",r.unit]})]}):o||i?(0,t.jsxs)("div",{className:"min-w-[170px] space-y-1",children:[(0,t.jsxs)("div",{className:"flex items-center justify-between gap-3 text-xs",children:[(0,t.jsx)("span",{className:"text-[10px] text-slate-500",children:e("models.billing.input")}),(0,t.jsxs)("span",{className:"mono-data font-semibold text-slate-900",children:[o??"—"," ",(0,t.jsx)("span",{className:"font-normal text-slate-500",children:e("models.pricingPresentation.units.perMillionTokens")})]})]}),(0,t.jsxs)("div",{className:"flex items-center justify-between gap-3 text-xs",children:[(0,t.jsx)("span",{className:"text-[10px] text-slate-500",children:e("models.billing.output")}),(0,t.jsxs)("span",{className:"mono-data font-semibold text-slate-900",children:[i??"—"," ",(0,t.jsx)("span",{className:"font-normal text-slate-500",children:e("models.pricingPresentation.units.perMillionTokens")})]})]})]}):(0,t.jsx)("span",{className:"text-xs font-semibold text-slate-500",children:e("models.page.priceNotConfigured")})})(s)}),(0,t.jsx)("td",{className:"px-2 py-3 text-right",children:(0,t.jsx)(l.default,{href:`/models/${s.slug}`,className:"text-muted-foreground hover:text-primary hover:bg-primary/10 p-2 inline-flex rounded-full transition-all",children:(0,t.jsx)(v.ArrowRight,{className:"w-5 h-5"})})})]},s.id)):(0,t.jsx)("tr",{children:(0,t.jsxs)("td",{colSpan:5,className:"px-6 py-12 text-center",children:[(0,t.jsx)("div",{className:"text-slate-400 font-medium text-sm",children:e("models.page.noMatchFilters")}),(0,t.jsxs)("button",{onClick:ez,className:"mt-4 text-xs font-bold text-blue-600 uppercase tracking-widest flex items-center justify-center gap-2 mx-auto hover:underline",children:[(0,t.jsx)(f.X,{className:"w-3.5 h-3.5"}),e("models.sidebar.clearFilters")]})]})})})]})})}),ex.length>0&&(0,t.jsxs)("div",{className:"mt-4 rounded-2xl border border-slate-200 bg-white p-4",children:[(0,t.jsxs)("div",{className:"mb-3 flex flex-wrap items-center justify-between gap-2",children:[(0,t.jsx)("div",{className:"text-xs font-semibold text-slate-700",children:e("models.page.compareSelected",{count:String(ex.length)})}),(0,t.jsxs)("button",{type:"button",onClick:()=>em([]),className:"inline-flex items-center gap-1 rounded-lg border border-slate-200 bg-slate-50 px-2.5 py-1.5 text-xs font-medium text-slate-700 hover:bg-slate-100",children:[(0,t.jsx)(f.X,{className:"h-3.5 w-3.5"})," ",e("models.page.clearCompare")]})]}),eK.length>=2?(0,t.jsx)("div",{className:"overflow-x-auto",children:(0,t.jsxs)("table",{className:"w-full min-w-[700px] border-collapse",children:[(0,t.jsx)("thead",{children:(0,t.jsxs)("tr",{className:"border-b border-slate-100",children:[(0,t.jsx)("th",{scope:"col",className:"px-3 py-2 text-left text-[10px] uppercase tracking-widest text-slate-500",children:e("models.page.tableMetric")}),eK.map(e=>(0,t.jsx)("th",{scope:"col",className:"px-3 py-2 text-left text-[10px] uppercase tracking-widest text-slate-500",children:e.name},e.id))]})}),(0,t.jsxs)("tbody",{className:"divide-y divide-slate-100",children:[(0,t.jsxs)("tr",{children:[(0,t.jsx)("td",{className:"px-3 py-2 text-xs font-semibold text-slate-600",children:e("models.provider")}),eK.map(e=>(0,t.jsx)("td",{className:"px-3 py-2 text-xs text-slate-700",children:e.provider},`provider-${e.id}`))]}),(0,t.jsxs)("tr",{children:[(0,t.jsx)("td",{className:"px-3 py-2 text-xs font-semibold text-slate-600",children:e("models.page.tableContext")}),eK.map(e=>(0,t.jsx)("td",{className:"px-3 py-2 text-xs text-slate-700",children:M(e.contextWindow)},`context-${e.id}`))]}),(0,t.jsxs)("tr",{children:[(0,t.jsx)("td",{className:"px-3 py-2 text-xs font-semibold text-slate-600",children:e("models.page.tableInputPrice")}),eK.map(e=>(0,t.jsx)("td",{className:"px-3 py-2 text-xs text-slate-700",children:eJ(e.baseInputPrice)??"—"},`input-${e.id}`))]}),(0,t.jsxs)("tr",{children:[(0,t.jsx)("td",{className:"px-3 py-2 text-xs font-semibold text-slate-600",children:e("models.page.tableOutputPrice")}),eK.map(e=>(0,t.jsx)("td",{className:"px-3 py-2 text-xs text-slate-700",children:eJ(e.baseOutputPrice)??"—"},`output-${e.id}`))]}),(0,t.jsxs)("tr",{children:[(0,t.jsx)("td",{className:"px-3 py-2 text-xs font-semibold text-slate-600",children:e("models.sidebar.outputModalities")}),eK.map(e=>(0,t.jsx)("td",{className:"px-3 py-2 text-xs text-slate-700",children:e.outputModalities.map(e=>ew(e)).join(", ")||"—"},`mod-${e.id}`))]}),(0,t.jsxs)("tr",{children:[(0,t.jsx)("td",{className:"px-3 py-2 text-xs font-semibold text-slate-600",children:e("models.detail.labels.features")}),eK.map(e=>(0,t.jsx)("td",{className:"px-3 py-2 text-xs text-slate-700",children:e.supportedFeatures.slice(0,5).join(", ")||"—"},`feat-${e.id}`))]})]})]})}):(0,t.jsx)("div",{className:"text-xs text-slate-500",children:e("models.page.compareNeedOneMore")})]}),(0,t.jsxs)("div",{className:"mt-5 flex flex-col gap-3 sm:flex-row sm:items-center sm:justify-between",children:[(0,t.jsx)("div",{className:"text-[10px] font-bold text-slate-400 uppercase tracking-widest mono-data",children:T?e("models.page.preparingInventory"):e("models.page.displayingVisible",{shown:String(eX.length),total:String(eB.length)})}),(0,t.jsxs)("div",{className:"flex items-center gap-1",children:[(0,t.jsx)("button",{disabled:1===ep,onClick:()=>eu(e=>Math.max(1,e-1)),className:"w-8 h-8 flex items-center justify-center rounded border border-slate-200 text-slate-400 hover:bg-slate-50 disabled:opacity-30 transition-all",children:(0,t.jsx)(i.ChevronLeft,{className:"w-4 h-4"})}),(0,t.jsxs)("div",{className:"px-3 text-xs font-bold mono-data text-slate-600",children:[ep," / ",eF]}),(0,t.jsx)("button",{disabled:ep===eF,onClick:()=>eu(e=>Math.min(eF,e+1)),className:"w-8 h-8 flex items-center justify-center rounded border border-slate-200 text-slate-400 hover:bg-slate-50 disabled:opacity-30 transition-all",children:(0,t.jsx)(d.
1ChevronRight,{className:"w-4 h-4"})})]})]})]})]})]}),(0,t.jsx)("style",{children:`
2        .hidden-scrollbar {
3          scrollbar-width: none;
4          -ms-overflow-style: none;
5        }
6        .hidden-scrollbar::-webkit-scrollbar {
7          display: none;
8        }
9        .mono-data {
10          font-family: 'JetBrains Mono', monospace;
11        }
12      `})]})}],947139)}]);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.