1import{d as et,u as tt,T as ot,g as at,a as M,r as L,bG as lt,U as rt,w as nt,v as st,a5 as ct,bn as it,c as ee,o as u,bv as dt,K as D,m,d$ as mt,l as a,p as n,k as f,j as _,s as $,F,x as E,n as ut,E as C,J as pt,Q as $e,er as _t,q as V,y as ht,ae as Se,bI as vt,W as ft}from"./DZ7mik94.js";import{_ as yt}from"./BqOP2l2w.js";import{_ as bt}from"./CvFJ8Mle.js";import{T as gt}from"./DB7NpyPD.js";import{_ as te}from"./BDcM2FMb.js";import{g as de}from"./DXDH8whQ.js";import{e as oe,j as Fe}from"./y0XJ1xRd.js";import"./Du7nxuHz.js";const kt={class:"compare-hero__intro font-brand"},wt={class:"model-compare min-h-dvh bg-slate-50/50"},xt={class:"compare-main mx-auto flex max-w-[1180px] flex-col gap-6 px-4 py-8 md:px-6 md:py-10"},Ct={key:0,class:"grid gap-4 md:grid-cols-[1fr_88px_1fr]"},Mt={key:1,class:"compare-empty"},$t={class:"compare-empty__icon"},St={class:"compare-hero"},Ft={key:0,class:"compare-note"},Pt={class:"compare-hero__models"},Nt={class:"model-panel"},It={class:"model-panel__top"},Bt={class:"model-panel__logo"},At={class:"model-panel__info min-w-0"},Tt=["title"],Vt={class:"model-panel__description"},Wt={class:"model-panel__metrics"},Lt={class:"model-panel"},Dt={class:"model-panel__top"},Et={class:"model-panel__logo"},zt={class:"model-panel__info min-w-0"},Ut=["title"],jt={class:"model-panel__description"},Gt={class:"model-panel__metrics"},Ot={class:"compare-toolbar"},Rt={class:"compare-toolbar__models"},qt={class:"compare-toolbar__actions"},Qt={class:"compare-switch"},Ht={class:"compare-matrix","aria-label":"Model comparison table"},Jt={class:"compare-section__header"},Xt={class:"compare-table-wrap"},Yt={class:"compare-table"},Zt={class:"compare-table__head compare-table__row"},Kt=["onClick"],eo={class:"compare-label"},to={class:"compare-label__title"},oo={class:"compare-cell__mobile-label"},ao={key:0,class:"compare-cell__main compare-cell__modalities"},lo=["title"],ro={key:1,class:"compare-cell__main"},no=["title"],so={key:2},co={key:3,class:"compare-bar"},io={key:0,class:"compare-chart-row"},mo={class:"compare-chart-row__inner"},uo={class:"compare-chart-row__header"},po={class:"compare-chart-row__title"},_o={class:"compare-chart-row__legend"},ho={class:"compare-chart-bars"},vo={class:"compare-bar-item__top"},fo={class:"compare-bar-item__rank"},yo={class:"compare-bar-item__value"},bo={class:"compare-bar-item__track"},go={class:"compare-bar-item__head"},ko=["title"],wo={key:0,class:"compare-chart-bars__empty"},Pe="-vs-",xo=et({__name:"[pair]",async setup(Co){let G,me;const{t:r}=tt(),Ne=ot(),z=at(),ue=M(()=>String(Ne.params.pair||"")),ae=L(!0),U=L(!1);let O=!1;const W=M(()=>{const e=ue.value,t=e.indexOf(Pe);if(t<=0)return{valid:!1,leftId:"",rightId:""};const o=e.slice(0,t),l=e.slice(t+Pe.length);return{valid:!!o&&!!l,leftId:o,rightId:l}}),{data:pe,pending:Ie,error:Be}=([G,me]=lt(async()=>mt(`model-compare-${ue.value}`,async()=>{if(!W.value.valid)return{invalidPair:!0,models:[]};const e=async o=>{const l=typeof AbortController<"u"?new AbortController:null;let c=null;try{const h=$fetch(`/webapi/public-models-data/${encodeURIComponent(o)}`,{signal:l?.signal,timeout:1e4}),v=new Promise((s,S)=>{c=setTimeout(()=>{l?.abort(),S(new Error("model-compare-fetch-timeout"))},1e4)}),p=await Promise.race([h,v]);if(!p?.success)return null;const d=p.model||{};return d.pricing=p.pricing||d.pricing||{},{model:d,score:Le(p.score),benchmarkScores:p.benchmark_scores||[]}}catch{return null}finally{c&&clearTimeout(c)}};return{invalidPair:!1,models:await Promise.all([e(W.value.leftId),e(W.value.rightId)])}})),G=await G,me(),G),i=M(()=>{const e=pe.value?.models||[];return e.length!==2||!e[0]||!e[1]?null:e}),b=M(()=>i.value?.[0]?.model||null),g=M(()=>i.value?.[1]?.model||null),Ae=M(()=>!!Be.value||!!pe.value?.invalidPair||!i.value),Te=M(()=>!b.value||!g.value?!1:String(b.value.name||b.value.id)===String(g.value.name||g.value.id)),le=M(()=>!b.value||!g.value?r("model_compare.meta.default_title"):r("model_compare.meta.title",{left:k(b.value),right:k(g.value)})),re=M(()=>!b.value||!g.value?r("model_compare.meta.default_description"):r("model_compare.meta.description",{left:k(b.value),right:k(g.value),leftContext:N(P(b.value)),rightContext:N(P(g.value)),leftInput:q(oe(b.value)),rightInput:q(oe(g.value))}));rt({title:le,meta:M(()=>[{name:"description",content:re.value},{property:"og:title",content:le.value},{property:"og:description",content:re.value},{property:"og:type",content:"website"},{name:"twitter:card",content:"summary_large_image"},{name:"twitter:title",content:le.value},{name:"twitter:description",content:re.value}])});const ne=M(()=>
1{if(!i.value)return[];const[e,t]=i.value;return[ze(e,t),Ue(e,t),je(e,t),...Ge(e,t)].map(l=>({...l,rows:l.rows.filter(c=>Re(c))})).filter(l=>l.rows.length>0)});function Ve(e){return e&&e.split("_").map(t=>t?t.charAt(0).toUpperCase()+t.slice(1):"").join(" ")}function _e(){if(A.value)return!0;const e=ne.value;if(!e||e.length===0)return!1;const o=e.find(l=>String(l.key).startsWith("benchmarks-"))?.rows?.find(l=>l.cells[0].raw||l.cells[1].raw);return o?(xe(o.key,J(o,0),J(o,1)),!0):!1}const We=nt(()=>ne.value,()=>{O||_e()},{flush:"post"});st(()=>{ct(()=>{O||_e()})}),it(()=>{O=!0,We.stop()});function Le(e){if(!e)return null;const t={...e};if(!t["code-arena"]&&t.dataviz!==void 0){const o=[t.dataviz,t["p5-animation"],t["text-to-game"],t["text-to-svg"],t["text-to-website"],t.threejs,t.tonejs].map(Number).filter(Number.isFinite);o.length>0&&(t["code-arena"]=o.reduce((l,c)=>l+c,0)/o.length)}return t}function k(e){return e.display_name||e.name||String(e.id||"")}function R(e,t){return e.provider||t?.organization||de(e.name||"")?.name||r("model_compare.unknown")}function se(e){return e.provider?e.provider.toLowerCase():de(e.name||"")?.svg||"ai"}function De(e){return e===!0||e===1||e==="1"}function P(e){return e.context_window||e.context_length||0}function N(e){const t=Number(e);return!Number.isFinite(t)||t<=0?w():t>=1e6?`${parseFloat((t/1e6).toFixed(1))}M`:t>=1e3?`${parseFloat((t/1e3).toFixed(0))}K`:t.toLocaleString()}function Ee(e){if(e==null||e==="")return null;if(e==="Free")return 0;const t=Number(String(e).replace(/[^0-9.-]/g,""));return Number.isFinite(t)?t:null}function ce(e){if(e==null||e==="")return null;const t=Number(String(e).replace(/[^0-9.-]/g,""));return Number.isFinite(t)?t:null}function q(e){if(e==null||e==="")return w();if(e==="Free")return r("model_detail.pricing.free");if(typeof e=="string"&&e.trim().startsWith("$"))return e;const t=Number(e);return Number.isFinite(t)?t===0?r("model_detail.pricing.free"):t<.01?`$${parseFloat(t.toFixed(6))}`:`$${parseFloat(t.toFixed(3))}`:w()}function he(e){return e.pricing?.cache_price}function ve(e){return e.pricing?.cache_create_price}function Q(e,t){const o=Number(e);return!Number.isFinite(o)||o<=0?w():`${r(`model_detail.levels.${(t==="reasoning"?["none","lowest","lower","medium","higher","highest"]:["none","slowest","slow","medium","fast","fastest"])[Math.max(0,Math.min(5,o))]||"none"}`)} (${o}/5)`}function fe(e){const t=ce(e);return!t||t<=0?w():`${parseFloat(t.toFixed(2))}s`}function ye(e){const t=ce(e);return!t||t<=0?w():`${parseFloat(t.toFixed(1))} tok/s`}function be(e){return e||w()}function w(){return r("model_compare.empty")}function I(e,t){return{display:e||w(),detail:t,tone:e?"default":"empty"}}function x(e,t,o){const l=ce(e);return{display:t,raw:l!==null&&l>0?l:null,tone:t===w()?"empty":"default",percent:o??null}}function H(e,t){const o=t.map(h=>{const v=h.toString().replace(/^(support|modality)_/,"");return{type:v,supported:De(e[h]),label:r(`model_detail.modalities.${v}`)}}),l=o.filter(h=>h.supported).map(h=>h.label),c=l.length>0;return{display:c?l.join(", "):r("model_detail.modalities.not_supported"),tone:c?"supported":"unsupported",modalities:o}}function B(e,t){return{display:q(e),raw:Ee(e),detail:t,tone:q(e)===w()?"empty":"default"}}function ze(e,t){return{key:"overview",title:r("model_compare.sections.overview"),rows:[{key:"author",label:r("model_compare.rows.author"),cells:[I(R(e.model,e.score)),I(R(t.model,t.score))]},{key:"category",label:r("model_compare.rows.category"),cells:[I(e.model.category),I(t.model.category)]},{key:"context",label:r("model_detail.metrics.context_window"),compare:"higher",cells:[x(P(e.model),N(P(e.model))),x(P(t.model),N(P(t.model)))]},{key:"max-output",label:r("model_detail.metrics.max_output_tokens"),compare:"higher",cells:[x(e.model.max_output_tokens,N(e.model.max_output_tokens)),x(t.model.max_output_tokens,N(t.model.max_output_tokens))]},{key:"knowledge-cutoff",label:r("model_detail.metrics.knowledge_cutoff"),cells:[I(e.model.knowledge_cutoff||e.score?.knowledge_cutoff),I(t.model.knowledge_cutoff||t.score?.knowledge_cutoff)]},{key:"release-date",label:r("model_detail.metrics.released_date"),cells:[I(be(e.score?.release_date)),I(be(t.score?.release_date))]},{key:"input-modalities",label:r("model_compare.rows.input_modalities"),cells:[H(e.model,["supp
1ort_text","support_image","support_audio","support_video"]),H(t.model,["support_text","support_image","support_audio","support_video"])]},{key:"output-modalities",label:r("model_compare.rows.output_modalities"),cells:[H(e.model,["modality_text","modality_image","modality_audio","modality_video"]),H(t.model,["modality_text","modality_image","modality_audio","modality_video"])]}]}}function Ue(e,t){return{key:"pricing",title:r("model_compare.sections.pricing"),rows:[{key:"input-price",label:r("model_compare.rows.input_price"),compare:"lower",cells:[B(oe(e.model),e.model.pricing?.unit||"/ 1M"),B(oe(t.model),t.model.pricing?.unit||"/ 1M")]},{key:"output-price",label:r("model_compare.rows.output_price"),compare:"lower",cells:[B(Fe(e.model),e.model.pricing?.unit||"/ 1M"),B(Fe(t.model),t.model.pricing?.unit||"/ 1M")]},{key:"cache-read",label:r("model_compare.rows.cache_read"),compare:"lower",cells:[B(he(e.model),e.model.pricing?.unit||"/ 1M"),B(he(t.model),t.model.pricing?.unit||"/ 1M")]},{key:"cache-write",label:r("model_compare.rows.cache_write"),compare:"lower",cells:[B(ve(e.model),e.model.pricing?.unit||"/ 1M"),B(ve(t.model),t.model.pricing?.unit||"/ 1M")]}]}}function je(e,t){return{key:"performance",title:r("model_compare.sections.performance"),rows:[{key:"reasoning",label:r("model_detail.metrics.reasoning"),compare:"higher",cells:[x(e.model.reasoning_level,Q(e.model.reasoning_level,"reasoning")),x(t.model.reasoning_level,Q(t.model.reasoning_level,"reasoning"))]},{key:"speed",label:r("model_detail.metrics.speed"),compare:"higher",cells:[x(e.model.speed_level,Q(e.model.speed_level,"speed")),x(t.model.speed_level,Q(t.model.speed_level,"speed"))]},{key:"latency",label:r("model_compare.rows.latency"),compare:"lower",cells:[x(e.score?.latency,fe(e.score?.latency)),x(t.score?.latency,fe(t.score?.latency))]},{key:"throughput",label:r("model_compare.rows.throughput"),compare:"higher",cells:[x(e.score?.throughput,ye(e.score?.throughput)),x(t.score?.throughput,ye(t.score?.throughput))]}]}}function Ge(e,t){const o=e.benchmarkScores||[],l=t.benchmarkScores||[];if(o.length>0||l.length>0){const c=new Set;o.forEach(v=>c.add(v.category)),l.forEach(v=>c.add(v.category));const h=[];for(const v of c){const p=o.find(y=>y.category===v),d=l.find(y=>y.category===v),s=new Set;p?.scores.forEach(y=>s.add(y.benchmark_id)),d?.scores.forEach(y=>s.add(y.benchmark_id));const S=[];for(const y of s){const Z=p?.scores.find(ie=>ie.benchmark_id===y),K=d?.scores.find(ie=>ie.benchmark_id===y);if(Math.max(Z?.total_models||0,K?.total_models||0)<=3)continue;const Ze=Z?.benchmark_name||K?.benchmark_name||y,Ke=Z?.description||K?.description||"";S.push({key:`benchmark-${v}-${y}`,label:Ze,description:Ke,compare:"higher",cells:[ke(Z),ke(K)]})}h.push({key:`benchmarks-${v}`,title:v==="Other"?r("model_compare.sections.benchmarks"):Ve(v),rows:S})}return h}return[{key:"benchmarks-legacy",title:r("model_compare.sections.benchmarks"),rows:Oe(e,t)}]}function ge(e,t){const o=e?.[t],l=Number(o);if(!Number.isFinite(l)||l<=0)return{display:w(),raw:null,tone:"empty",percent:null};const c=t.includes("_score")||l<=1,h=c?`${parseFloat((l*100).toFixed(1))}%`:Math.round(l*100).toLocaleString(),v=c?Math.min(l*100,100):null;return{display:h,raw:l,percent:v,tone:"default"}}function Oe(e,t){return[["GPQA","gpqa_score"],["AIME 2025","aime_2025_score"],["SWE-Bench Verified","swe_bench_verified_score"],["MMMU","mmmu_score"],["SimpleQA","simpleqa_score"],["ARC-AGI v2","arc_agi_v2_score"],["Chat Arena","chat-arena"],["Code Arena","code-arena"],["Data Visualization","dataviz"],["Game Development","text-to-game"],["SVG","text-to-svg"],["Website","text-to-website"],["3D","threejs"]].map(([l,c])=>({key:`benchmark-legacy-${c}`,label:l,compare:"higher",cells:[ge(e.score,c),ge(t.score,c)]}))}function ke(e){if(!e)return{display:w(),raw:null,tone:"empty",percent:null};let t=e.normalized_score;t===null&&e.max_score>1&&e.score<=e.max_score?t=e.score/e.max_score:t===null&&(t=e.score);const o=t;if(o===null||!Number.isFinite(o)||o<=0)return{display:w(),raw:null,tone:"empty",percent:null};const l=o<=1,c=l?`${parseFloat((e.score*100).toFixed(1))} / ${e.max_score*100}`:`${parseFloat(e.score.toFixed(1))} / ${e.max_score}`,h=Math.min(l?o*100:o/Math.max(e.max_score,1)*100,100);return{display:c,raw:o,percent:h,tone:"default",rank:e.rank||0,totalModels:e.total_models||0}}function Re(e){return e.cells.some(t=>t.display!==w()&&t.display!=="")}function qe(e){if(!ae.value||!e.compare)return-1;
1const[t,o]=e.cells;return t.raw===null||t.raw===void 0||o.raw===null||o.raw===void 0||t.raw===o.raw?-1:e.compare==="higher"?t.raw>o.raw?0:1:t.raw<o.raw?0:1}function Qe(e,t,o){return["compare-cell",qe(e)===t?"compare-cell--best":"",o.tone==="supported"?"compare-cell--supported":"",o.tone==="unsupported"?"compare-cell--unsupported":"",o.tone==="empty"?"compare-cell--empty":""]}function He(e,t){if(t.raw===null||t.raw===void 0)return 0;if(t.percent!==null&&t.percent!==void 0)return t.percent;const o=Math.max(...e.cells.map(l=>l.raw||0));return o<=0?0:Math.max(8,Math.min(100,Number(t.raw)/o*100))}async function Je(){try{await navigator.clipboard.writeText(window.location.href),U.value=!0,setTimeout(()=>{U.value=!1},1600)}catch{U.value=!1}}const A=L(null),T=L({});function j(e){return e?.model?e.model.model_score_id||e.model.name||String(e.model.id||""):""}async function we(e,t){if(!e||!t)return[];try{const o=await $fetch("/webapi/benchmark-neighbors",{query:{model_id:e,benchmark_id:t},timeout:6e3});if(o?.success&&Array.isArray(o.data))return o.data}catch{}return[]}async function xe(e,t,o){if(A.value===e){A.value=null;return}if(A.value=e,!T.value[e]){const l=t?.benchmark_id||o?.benchmark_id||"",[c,h]=await Promise.all([we(j(i.value?.[0]),l),we(j(i.value?.[1]),l)]);if(O)return;T.value[e]={left:c,right:h}}}function J(e,t){if(!i.value)return;const o=i.value[t],l=e.key.split("-").slice(-1)[0];for(const c of o?.benchmarkScores||[]){const h=c.scores.find(v=>v.benchmark_id===l||e.key.includes(v.benchmark_id));if(h)return h}}function Ce(e){const t=T.value[e];if(!t)return[];const o=new Map;for(const l of[...t.left,...t.right])o.has(l.model_id)||o.set(l.model_id,l);return Array.from(o.values()).sort((l,c)=>l.rank-c.rank)}const X=L(!1),Y=L(0);function Me(e){Y.value=e,X.value=!0}function Xe(e){if(!W.value.valid)return;const t=Y.value,o=t===0?e:W.value.leftId,l=t===1?e:W.value.rightId;o!==l&&(X.value=!1,A.value=null,Object.keys(T.value).forEach(c=>delete T.value[c]),vt(z(`/models/compare/${o}-vs-${l}`)))}function Ye(e){if(!i.value)return"ai";for(const t of i.value)if(j(t)===e||t.model.id===e||t.model.name===e)return se(t.model);return de(e)?.svg||"ai"}return(e,t)=>{const o=ut,l=pt,c=yt,h=bt,v=gt;return u(),ee(h,{subtitle:m(r)("model_compare.subtitle")},dt({default:D(()=>[a("div",wt,[a("main",xt,[m(Ie)?(u(),_("div",Ct,[(u(),_(F,null,E(2,p=>a("div",{key:p,class:"h-64 animate-pulse rounded-2xl border border-slate-200 bg-white"})),64))])):Ae.value?(u(),_("section",Mt,[a("div",$t,[f(o,{name:"lucide:server-crash",class:"h-6 w-6"})]),a("h1",null,n(m(r)("model_compare.error_title")),1),a("p",null,n(m(r)("model_compare.error_desc")),1),f(l,{to:m(z)("/models"),class:"compare-button compare-button--dark"},{default:D(()=>[f(o,{name:"lucide:arrow-left",class:"h-4 w-4"}),C(" "+n(m(r)("model_detail.browse_all")),1)]),_:1},8,["to"])])):i.value&&b.value&&g.value?(u(),_(F,{key:2},[a("section",St,[Te.value?(u(),_("div",Ft,[f(o,{name:"lucide:info",class:"h-4 w-4"}),a("span",null,n(m(r)("model_compare.same_model_notice")),1)])):$("",!0),a("div",Pt,[a("article",Nt,[a("div",It,[a("div",Bt,[f(te,{name:se(i.value[0].model)},null,8,["name"])]),a("div",At,[a("p",null,n(R(i.value[0].model,i.value[0].score)),1),a("h2",null,n(k(i.value[0].model)),1)]),a("button",{type:"button",class:"model-panel__switch",title:m(r)("model_compare.switch_model"),onClick:t[0]||(t[0]=p=>Me(0))},[f(o,{name:"lucide:repeat",class:"h-4 w-4"})],8,Tt)]),a("p",Vt,n(i.value[0].model.description||m(r)("model_compare.no_description")),1),a("div",Wt,[a("div",null,[a("span",null,n(m(r)("model_detail.metrics.context_window")),1),a("strong",null,n(N(P(i.value[0].model))),1)])]),f(l,{to:m(z)(`/models/${i.value[0].model.id||i.value[0].model.name}`),class:"model-panel__link"},{default:D(()=>[C(n(m(r)("model_compare.view_model"))+" ",1),f(o,{name:"lucide:arrow-up-right",class:"h-4 w-4"})]),_:1},8,["to"])]),t[6]||(t[6]=a("div",{class:"compare-versus","aria-hidden":"true"},"vs",-1)),a("article",Lt,[a("div",Dt,[a("div",Et,[f(te,{name:se(i.value[1].model)},null,8,["name"])]),a("div",zt,[a("p",null,n(R(i.value[1].model,i.value[1].score)),1
1),a("h2",null,n(k(i.value[1].model)),1)]),a("button",{type:"button",class:"model-panel__switch",title:m(r)("model_compare.switch_model"),onClick:t[1]||(t[1]=p=>Me(1))},[f(o,{name:"lucide:repeat",class:"h-4 w-4"})],8,Ut)]),a("p",jt,n(i.value[1].model.description||m(r)("model_compare.no_description")),1),a("div",Gt,[a("div",null,[a("span",null,n(m(r)("model_detail.metrics.context_window")),1),a("strong",null,n(N(P(i.value[1].model))),1)])]),f(l,{to:m(z)(`/models/${i.value[1].model.id||i.value[1].model.name}`),class:"model-panel__link"},{default:D(()=>[C(n(m(r)("model_compare.view_model"))+" ",1),f(o,{name:"lucide:arrow-up-right",class:"h-4 w-4"})]),_:1},8,["to"])])])]),a("div",Ot,[a("div",Rt,[a("span",null,n(k(b.value)),1),t[7]||(t[7]=a("span",{class:"compare-toolbar__vs"},"vs",-1)),a("span",null,n(k(g.value)),1)]),a("div",qt,[a("label",Qt,[$e(a("input",{"onUpdate:modelValue":t[2]||(t[2]=p=>ae.value=p),type:"checkbox"},null,512),[[_t,ae.value]]),a("span",null,n(m(r)("model_compare.highlight_best")),1)]),a("button",{class:"compare-button",type:"button",onClick:Je},[f(o,{name:U.value?"lucide:copy-check":"lucide:copy",class:"h-4 w-4"},null,8,["name"]),C(" "+n(U.value?m(r)("model_compare.copied"):m(r)("model_compare.copy_link")),1)]),f(l,{to:m(z)("/models"),class:"compare-button"},{default:D(()=>[f(o,{name:"lucide:layout-dashboard",class:"h-4 w-4"}),C(" "+n(m(r)("model_compare.all_models")),1)]),_:1},8,["to"])])]),a("section",Ht,[(u(!0),_(F,null,E(ne.value,p=>(u(),_("div",{key:p.key,class:"compare-section"},[a("div",Jt,[a("h2",null,n(p.title),1)]),a("div",Xt,[a("div",Yt,[a("div",Zt,[a("div",null,n(m(r)("model_compare.metric")),1
1),a("div",null,n(k(b.value)),1),a("div",null,n(k(g.value)),1)]),(u(!0),_(F,null,E(p.rows,d=>(u(),_(F,{key:d.key},[a("div",{class:V(["compare-table__row",p.key.startsWith("benchmarks-")&&(d.cells[0].raw||d.cells[1].raw)?"compare-table__row--expandable":""]),onClick:s=>p.key.startsWith("benchmarks-")&&(d.cells[0].raw||d.cells[1].raw)?xe(d.key,J(d,0),J(d,1)):null},[a("div",eo,[a("span",to,[C(n(d.label)+" ",1),p.key.startsWith("benchmarks-")?$e((u(),_("span",{key:0,class:"compare-label__help",tabindex:"0",onClick:t[3]||(t[3]=ht(()=>{},["stop"]))},[f(o,{name:"lucide:help-circle",class:"h-3.5 w-3.5"})])),[[v,d.description||m(r)("model_compare.no_description")]]):$("",!0),p.key.startsWith("benchmarks-")&&(d.cells[0].raw||d.cells[1].raw)?(u(),ee(o,{key:1,name:"lucide:chevron-right",class:V(["h-3.5 w-3.5 compare-label__expand",A.value===d.key?"compare-label__expand--open":""])},null,8,["class"])):$("",!0)])]),(u(!0),_(F,null,E(d.cells,(s,S)=>(u(),_("div",{key:`${d.key}-${S}`,class:V(Qe(d,S,s))},[a("span",oo,[a("span",{class:V(["compare-cell__mobile-dot",S===0?"compare-cell__mobile-dot--left":"compare-cell__mobile-dot--right"])},null,2),C(" "+n(k(S===0?b.value:g.value)),1)]),s.modalities?(u(),_("div",ao,[(u(!0),_(F,null,E(s.modalities,y=>(u(),_("span",{key:y.type,class:V(["compare-modality",y.supported?"compare-modality--on":"compare-modality--off"]),title:`${y.label}: ${y.supported?m(r)("model_compare.supported"):m(r)("model_compare.not_supported")}`},[f(te,{name:y.type,class:"h-5 w-5"},null,8,["name"]),a("small",null,n(y.label),1)],10,lo))),128))])):(u(),_("div",ro,[s.tone==="supported"?(u(),ee(o,{key:0,name:"lucide:check",class:"h-4 w-4 text-emerald-600"})):s.tone==="unsupported"?(u(),ee(o,{key:1,name:"lucide:x",class:"h-4 w-4 text-slate-300"})):$("",!0),a("span",null,n(s.display),1),p.key.startsWith("benchmarks-")&&s.raw&&s.rank?(u(),_("span",{key:2,class:V(["compare-rank",s.rank===1?"compare-rank--best":""]),title:s.totalModels?`#${s.rank} / ${s.totalModels}`:""},[C("#"+n(s.rank),1),s.totalModels?(u(),_(F,{key:0},[C(" / "+n(s.totalModels),1)],64)):$("",!0)],10,no)):$("",!0)])),s.detail?(u(),_("small",so,n(s.detail),1)):$("",!0),p.key.startsWith("benchmarks-")&&s.raw?(u(),_("div",co,[a("span",{style:Se({width:`${He(d,s)}%`})},null,4)])):$("",!0)],2))),128))],10,Kt),p.key.startsWith("benchmarks-")&&A.value===d.key?(u(),_("div",io,[a("div",mo,[a("div",uo,[a("span",po,n(d.label)+" · "+n(m(r)("model_compare.rank_chart_title")),1),a("div",_o,[t[8]||(t[8]=a("span",{class:"compare-chart-legend compare-chart-legend--left"},null,-1)),C(" "+n(k(b.value))+" ",1),t[9]||(t[9]=a("span",{class:"compare-chart-legend compare-chart-legend--right"},null,-1)),C(" "+n(k(g.value))+" ",1),t[10]||(t[10]=a("span",{class:"compare-chart-legend compare-chart-legend--other"},null,-1)),C(" "+n(m(r)("model_compare.rank_neighbors")),1)])]),a("div",ho,[(u(!0),_(F,null,E(T.value[d.key]?Ce(d.key):[],s=>(u(),_("div",{key:s.model_id,class:V(["compare-bar-item",{"compare-bar-item--left":s.model_id===j(i.value?.[0]),"compare-bar-item--right":s.model_id===j(i.value?.[1])}])},[a("div",vo,[a("span",fo,"#"+n(s.rank),1),a("span",yo,n(s.display_score.toFixed(1)),1)]),a("div",bo,[a("div",{class:"compare-bar-item__fill",style:Se({height:`${Math.max(4,s.display_score)}%`})},null,4)]),a("div",go,[f(te,{name:Ye(s.model_id),class:"compare-bar-item__icon"},null,8,["name"]),a("span",{class:"compare-bar-item__name",title:s.model_name},n(s.model_name),9,ko)])],2))),128)),!T.value[d.key]||Ce(d.key).length===0?(u(),_("div",wo,[f(o,{name:"lucide:loader-circle",class:"h-4 w-4 animate-spin"}),a("span",null,n(m(r)("model_compare.rank_loading")),1)])):$("",!0)])])])):$("",!0)],64))),128))])])]))),128))])],64)):$("",!0)])]),f(c,{modelValue:X.value,"onUpdate:modelValue":t[4]||(t[4]=p=>X.value=p),"source-name":Y.value===0?b.value?.name:g.value?.name,"source-display-name":Y.value===0?k(b.value):k(g.value),onSelect:Xe},null,8,["modelValue","source-name","source-display-name"])]),_:2},[i.value&&b.value&&g.value?{name:"title",fn:D(()=>[a("div",kt,[a("div",null,[a("h1",null,[a("span",null,n(k(b.value)),1),t[5]||(t[5]=a("em",null,"vs",-1)),a("span",null,n(k(g.value)),1)])])])]),key:"0"}
1:void 0]),1032,["subtitle"])}}}),To=ft(xo,[["__scopeId","data-v-d089d359"]]);export{To as default};
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.