!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]="01a09b99-9c67-7350-a2b7-65904fa17448")}catch(e){}}();(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,157266,e=>{"use strict";let t=(0,e.i(202913).default)("arrow-left",[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]]);e.s(["ArrowLeft",0,t],157266)},460546,e=>{"use strict";let t=(0,e.i(202913).default)("code-xml",[["path",{d:"m18 16 4-4-4-4",key:"1inbqp"}],["path",{d:"m6 8-4 4 4 4",key:"15zrgr"}],["path",{d:"m14.5 4-5 16",key:"e7oirm"}]]);e.s(["Code2",0,t],460546)},311594,e=>{"use strict";var t=e.i(843491);e.s(["TerminalSquare",()=>t.default])},543092,e=>{"use strict";e.i(963);var t=e.i(204067),i=e.i(796805);let a={Image:"image",Video:"video",Speech:"speech",Transcription:"transcription",Game:"game"};i.z.union([i.z.nativeEnum(a),i.z.literal("text_image")]);let r=i.z.object({url:i.z.string().url(),media_type:i.z.string(),size_bytes:(0,t.zInt)().nonnegative()}),n=r.extend({thumbnail_url:i.z.string().url().optional(),width:(0,t.zInt)().positive(),height:(0,t.zInt)().positive(),source:r.optional()}),o=r.extend({media_type:i.z.string().startsWith("video/"),thumbnail_url:i.z.string().url().optional(),width:(0,t.zInt)().positive(),height:(0,t.zInt)().positive(),duration_ms:(0,t.zInt)().nonnegative().optional()});i.z.union([o,n]);let l=r.extend({duration_ms:(0,t.zInt)().nonnegative().optional(),sample_rate_hz:(0,t.zInt)().positive().optional(),peaks:i.z.array(i.z.number().min(0).max(1)).optional()});l.extend({transcript:i.z.string(),voice:i.z.string()}),l.extend({transcript:i.z.string(),voice:i.z.string().optional()}),r.extend({media_type:i.z.literal("text/html"),three_version:i.z.string().min(1)}),l.extend({transcript:i.z.string()});let s=r.extend({thumbnail_url:i.z.string().url().optional(),frame_thumbnail_urls:i.z.array(i.z.string().url()).optional(),width:(0,t.zInt)().positive().optional(),height:(0,t.zInt)().positive().optional(),duration_ms:(0,t.zInt)().nonnegative().optional(),sample_rate_hz:(0,t.zInt)().positive().optional(),transcript:i.z.string().optional(),voice:i.z.string().optional(),peaks:i.z.array(i.z.number().min(0).max(1)).optional(),source:r.optional(),three_version:i.z.string().optional()}),u=i.z.array(s);e.s(["ExampleAssetListSchema",0,u,"ModelExampleModality",0,a])},202107,988278,324872,325100,498885,e=>{"use strict";var t=e.i(270401);e.s(["useIntersectionObserver",0,function({threshold:e=0,root:i=null,rootMargin:a="0%",freezeOnceVisible:r=!1,initialIsIntersecting:n=!1,onChange:o}={}){let[l,s]=(0,t.useState)(null),[u,c]=(0,t.useState)(n),[d,m]=(0,t.useState)(void 0),p=(0,t.useRef)(o);p.current=o;let g=!!d&&u&&r;return(0,t.useEffect)(()=>{if(!l||!("IntersectionObserver"in window)||g)return;let t=new IntersectionObserver(e=>{for(let i of e)c(i.isIntersecting),m(i),p.current?.(i.isIntersecting,i),i.isIntersecting&&r&&t.disconnect()},{threshold:e,root:i,rootMargin:a});return t.observe(l),()=>{t.disconnect()}},[l,JSON.stringify(e),i,a,g,r]),{ref:(0,t.useCallback)(e=>{s(e??null)},[]),isIntersecting:u,entry:d}}],202107);var i=e.i(222666),a=e.i(505962),r=e.i(850658),n=e.i(189511),o=e.i(452473),l=e.i(528164),s=e.i(648156),u=e.i(329492);e.i(406201);var c=e.i(806024),d=e.i(985024),m=e.i(121850),p=e.i(78138);let g="Try in chat",h="w-full shrink-0 sm:w-auto",f="pointer-events-none opacity-50";e.s(["MediaGalleryChatCta",0,function(e){let t,y,x,v,b=(0,a.c)(14),{model:M,prompt:_,references:k,onTryChat:S}=e,C=(0,d.useWorkspaceCapabilityGate)(n.WorkspaceCapability.Chatroom),{isSignedIn:w}=(0,r.useAuth)();if(C===m.WorkspaceCapabilityGateState.Loading&&!0===w){let e,t;return b[0]===Symbol.for("react.memo_cache_sentinel")?(e=(0,o.cn)(h,f),b[0]=e):e=b[0],b[1]===Symbol.for("react.memo_cache_sentinel")?(t=(0,i.jsxs)(l.Button,{className:e,"aria-disabled":"true",tabIndex:-1,children:[(0,i.jsx)(u.MessageSquare,{className:"size-4"}),g]}),b[1]=t):t=b[1],t}if(C===m.WorkspaceCapabilityGateState.Blocked){let e,t;return b[2]===Symbol.for("react.memo_cache_sentinel")?(e=(0,o.cn)(h,f),b[2]=e):e=b[2],b[3]===Symbol.for("react.memo_cache_sentinel")?(t=(0,i.jsx)(s.Tooltip,{content:"Not available in this workspace",children:(0,i.jsxs)(s.TooltipNonInteractiveTrigger,{children:[(0,i.jsxs)(l.Button,{className:e,"aria-disabled":"true",tabIndex:-1,children:[(0,i.jsx)(u.MessageSquare,{className:"size-4"}),g]}),(0,i.jsx)("span",{className:"sr-only",children:"Not available in this workspace"})]})}),b[3]=t):t=b[3],t}return b[4]!==M||b[5]!==_||b[6]!==k?(t=(0,p.getGalleryChatHref)(M,_,k),b[4]=M,b[5]=_,b[6]=k,b[7]=t):t=b[7],b[8]!==t?(y=(0,i.jsx)(c.Link,{href:t,prefetch:!1}),b[8]=t,b[9]=y):y=b[9],b[10]===Symbol.for("react.memo_cache_sentinel")?(x=(0,i.jsx)(u.MessageSquare,{className:"size-4"}),b[10]=x):x=b[10],b[11]!==S||b[12]!==y?(v=(0,i.jsxs)(l.Button,{className:h,onClick:S,render:y,children:[x,g]}),b[11]=S,b[12]=y,b[13]=v):v=b[13],v}],988278);var y=e.i(131827),x=e.i(311594),v=e.i(599662),b=e.i(381084);let M="w-full shrink-0 sm:w-auto";e.s(["MediaGalleryModelCta",0,function(e){let t,n,o,s,u,d=(0,a.c)(16),{model:m,onClickCta:p}=e,{isLoaded:g,isSignedIn:h}=(0,r.useAuth)();if(g&&!1===h){let e,t,a,r;return d[0]!==p?(e=()=>p("get_api_key"),d[0]=p,d[1]=e):e=d[1],d[2]===Symbol.for("react.memo_cache_sentinel")?(t=(0,i.jsx)(c.Link,{href:"/sign-up?ref=benchmark-explore-modal",prefetch:!1}),a=(0,i.jsx)(y.KeyRound,{className:"size-4"}),d[2]=t,d[3]=a):(t=d[2],a=d[3]),d[4]!==e?(r=(0,i.jsxs)(l.Button,{variant:"outline",className:M,onClick:e,render:t,children:[a,"Get API Key"]}),d[4]=e,d[5]=r):r=d[5],r}if(d[6]!==p?(t=()=>p("quick_start"),d[6]=p,d[7]=t):t=d[7],d[8]!==m)n=`${(0,b.getGalleryModelHref)(m)}#${v.PLAYGROUND_SECTION_ID}`,d[8]=m,d[9]=n;else n=d[9];return d[10]!==n?(o=(0,i.jsx)(c.Link,{href:n,prefetch:!1}),d[10]=n,d[11]=o):o=d[11],d[12]===Symbol.for("react.memo_cache_sentinel")?(s=(0,i.jsx)(x.TerminalSquare,{className:"size-4"}),d[12]=s):s=d[12],d[13]!==t||d[14]!==o?(u=(0,i.jsxs)(l.Button,{variant:"outline",className:M,onClick:t,render:o,children:[s,"Try this model"]}),d[13]=t,d[14]=o,d[15]=u):u=d[15],u}],324872);var _=e.i(699937),k=e.i(460546);let S=(0,e.i(202913).default)("link-2",[["path",{d:"M9 17H7A5 5 0 0 1 7 7h2",key:"8i5ue5"}],["path",{d:"M15 7h2a5 5 0 1 1 0 10h-2",key:"1b9ql8"}],["line",{x1:"8",x2:"16",y1:"12",y2:"12",key:"1jonct"}]]);var C=e.i(249656);e.s(["MediaGalleryOutputControls",0,function(e){let t,r,n,o,s,u,c=(0,a.c)(15),{isCopied:d,onCopyLink:m,onClose:p,source:g}=e;c[0]!==g?(t=void 0!==g&&(0,i.jsx)(l.Button,{variant:"outline",size:"icon",onClick:g.onToggle,"aria-pressed":g.isShown,"aria-label":g.isShown?"Hide generated source":"Show generated source",children:(0,i.jsx)(k.Code2,{className:"size-4"})}),c[0]=g,c[1]=t):t=c[1];let h=d?"Link copied":"Copy link to this output";return c[2]!==d?(r=d?(0,i.jsx)(_.Check,{className:"size-4 text-positive"}):(0,i.jsx)(S,{className:"size-4"}),c[2]=d,c[3]=r):r=c[3],c[4]!==m||c[5]!==h||c[6]!==r?(n=(0,i.jsx)(l.Button,{variant:"outline",size:"icon",onClick:m,"aria-label":h,children:r}),c[4]=m,c[5]=h,c[6]=r,c[7]=n):n=c[7],c[8]===Symbol.for("react.memo_cache_sentinel")?(o=(0,i.jsx)(C.X,{className:"size-4"}),c[8]=o):o=c[8],c[9]!==p?(s=(0,i.jsx)(l.Button,{variant:"outline",size:"icon",onClick:p,"aria-label":"Close",children:o}),c[9]=p,c[10]=s):s=c[10],c[11]!==t||c[12]!==n||c[13]!==s?(u=(0,i.jsxs)("div",{className:"flex shrink-0 items-center gap-1",children:[t,n,s]}),c[11]=t,c[12]=n,c[13]=s,c[14]=u):u=c[14],u}],325100),e.s(["useMediaGalleryLightboxArrowKeys",0,function(e){let i,r,n=(0,a.c)(3),{onStep:o}=e;n[0]!==o?(i=()=>{let e=e=>{switch(e.key){case"ArrowRight":e.preventDefault(),o(1);return;case"ArrowLeft":e.preventDefault(),o(-1)}};return document.addEventListener("keydown",e,{capture:!0}),()=>document.removeEventListener("keydown",e,{capture:!0})},r=[o],n[0]=o,n[1]=i,n[2]=r):(i=n[1],r=n[2]),(0,t.useEffect)(i,r)}],498885)},632226,e=>{"use strict";var t=e.i(963),i=e.i(122857);let a={Text:"text",Image:"image",Video:"video",Audio:"audio",TTS:"tts",STT:"stt"},r={[t.OutputModality.Image]:a.Image,[t.OutputModality.Video]:a.Video};e.s(["PlaygroundModality",0,a,"getAvailableModalities",0,function(e){let i=(0,t.isNonChattableVideoModel)(e);return e.flatMap(e=>{switch(e){case t.OutputModality.Text:return[a.Text];case t.OutputModality.Image:return[a.Image];case t.OutputModality.Video:return[a.Video];case t.OutputModality.Audio:return i?[]:[a.Audio];case t.OutputModality.TTS:return[a.TTS];case t.OutputModality.Transcription:return[a.STT];case t.OutputModality.Embeddings:case t.OutputModality.Rerank:default:return[]}})},"getDefaultPlaygroundModality",0,function(e,n){let o=i.MODEL_DETAIL_GENERATION_MODALITIES.find(t=>(n?.includes(t)??!1)&&e.includes(r[t]));return o?r[o]:n?.includes(t.OutputModality.TTS)&&e.includes(a.TTS)?a.TTS:n?.includes(t.OutputModality.Transcription)&&e.includes(a.STT)?a.STT:e[0]??a.Text}])},122857,e=>{"use strict";var t=e.i(963);let i=[t.OutputModality.Image,t.OutputModality.Video];e.s(["MODEL_DETAIL_GENERATION_MODALITIES",0,i])},944343,e=>{"use strict";var t=e.i(543092),i=e.i(358390),a=e.i(963),r=e.i(586404),n=e.i(632226);function o(e,t){return(e.features?.required_input_modalities??[]).some(e=>e===t)}function l(e,t){return s(e,{isPrivateView:t,canSupplySourceVideo:!1})}function s(e,{isPrivateView:i,canSupplySourceVideo:r}){if(o(e,a.InputModality.Audio))return null;let n=o(e,a.InputModality.Video);return n&&!r||i||e.is_private||e.endpoint?.is_private?null:!n&&e.output_modalities.includes(a.OutputModality.Image)?t.ModelExampleModality.Image:e.output_modalities.includes(a.OutputModality.Video)?t.ModelExampleModality.Video:null}function u({model:e,isPrivateView:a}){return e.group!==i.ModelGroup.Router&&l(e,a)===t.ModelExampleModality.Image}function c({model:e,isPrivateView:a}){return e.group!==i.ModelGroup.Router&&s(e,{isPrivateView:a,canSupplySourceVideo:!0})===t.ModelExampleModality.Video}function d({model:e,isPrivateView:t}){return!((e.features?.required_input_modalities??[]).some(e=>e===a.InputModality.Audio||e===a.InputModality.Video)||t||e.is_private||e.endpoint?.is_private||e.group===i.ModelGroup.Router||e.output_modalities.includes(a.OutputModality.Image)||e.output_modalities.includes(a.OutputModality.Video))&&e.output_modalities.includes(a.OutputModality.TTS)}function m(e){return(e??[]).flatMap((e,t)=>e.output_assets[0]?[{example:e,index:t}]:[])}let p={[t.ModelExampleModality.Image]:{fromText:"Text to Image",fromImage:"Image to Image"},[t.ModelExampleModality.Video]:{fromText:"Text to Video",fromImage:"Image to Video"},[t.ModelExampleModality.Speech]:{fromText:"Text to Speech",fromImage:void 0}};function g(e){return`model-playground-auto-open-dismissed:${e}`}e.s(["canAnySectionReplaceSidebarPlayground",0,function(e){return function({model:e,isPrivateView:t}){return u({model:e,isPrivateView:t})&&(0,n.getAvailableModalities)(e.output_modalities).every(e=>e===n.PlaygroundModality.Image)}(e)||function({model:e,isPrivateView:t}){return c({model:e,isPrivateView:t})&&(0,n.getAvailableModalities)(e.output_modalities).every(e=>e===n.PlaygroundModality.Video)}(e)||function({model:e,isPrivateView:t}){return e.endpoint?.features?.supports_voice_cloning!==!0&&d({model:e,isPrivateView:t})&&(0,n.getAvailableModalities)(e.output_modalities).every(e=>e===n.PlaygroundModality.TTS)}(e)},"canViewportFitPlaygroundPanel",0,function(e){return e>=640},"getPlaygroundSeed",0,function(e,i=0){let a=m(e),n=a.find(({index:e})=>e===i)?.example??a[0]?.example,[o]=n?.output_assets??[];if(!n||!o)return null;let l={usage:(0,r.definedValues)({durationMs:n.duration_ms??void 0,cost:null===n.cost?void 0:String(n.cost)})};switch(n.modality){case t.ModelExampleModality.Image:return{...l,modality:t.ModelExampleModality.Image,inputImageUrls:n.input_assets.map(e=>e.url),prompt:n.request.prompt,imageUrl:o.url,imageMediaType:o.media_type,request:n.request};case t.ModelExampleModality.Video:return{...l,modality:t.ModelExampleModality.Video,prompt:n.request.prompt??"",videoUrl:o.url,request:n.request};case t.ModelExampleModality.Speech:return null;default:return n}},"getPlaygroundSeedModality",0,l,"getPlaygroundSeedVariants",0,function(e){let t=new Map;return m(e).map(({example:e,index:i})=>{let a=p[e.modality],r=e.input_assets.some(e=>e.media_type.startsWith("image/"))&&void 0!==a.fromImage,n=e.title?.trim(),o=r?a.fromImage:a.fromText,l=n&&n.length>0?n:o,s=(t.get(l)??0)+1;return t.set(l,s),{index:i,label:s>1?`${l} ${s}`:l,isImageToImage:r}})},"getSeedFrameImageEntries",0,function(e){return e.modality!==t.ModelExampleModality.Video?[]:(e.request.frame_images??[]).map(e=>({frameType:e.frame_type,url:e.image_url.url}))},"getSeedFrameImagesForModality",0,function({frameImageEntries:e,modality:t}){return t!==n.PlaygroundModality.Video?new Map:new Map(e.map(e=>[e.frameType,e.url]))},"getSeedInputImageUrls",0,function(e){return e.modality===t.ModelExampleModality.Image?e.inputImageUrls:[]},"getSeedInputReferenceUrlsForModality",0,function({inputImageUrls:e,modality:t}){return t===n.PlaygroundModality.Image?[...e]:[]},"isAutoOpenDismissed",0,function(e){try{return null!==window.sessionStorage.getItem(g(e))}catch{return!1}},"isPlaygroundSectionModelEligible",0,u,"isPlaygroundSpeechSectionModelEligible",0,d,"isPlaygroundVideoSectionModelEligible",0,c,"markAutoOpenDismissed",0,function(e){try{window.sessionStorage.setItem(g(e),"1")}catch{}},"resolveSeedFrameImages",0,function({currentFrameImages:e,seededEntries:t,shouldOverwrite:i}){return new Map(i||0===e.size?t.map(e=>[e.frameType,e.url]):e)},"resolveSeedInputReferenceUrls",0,function({currentUrls:e,seededUrls:t,shouldOverwrite:i}){return i||0===e.length?[...t]:[...e]}])},871565,e=>{"use strict";e.s(["safeDecodeURIComponent",0,function(e){try{return decodeURIComponent(e)}catch{return e}}])},829962,e=>{"use strict";let t=new Set(["gpt-oss-120b","gpt-oss-20b","gpt-oss-safeguard-20b"]);function i(e){return 0===e.length?e:e.charAt(0).toUpperCase()+e.slice(1).toLowerCase()}e.s(["guessAuthorFromPermaslug",0,function(e){let t=e.split(":")[0];return t.includes("/")?t.split("/")[0]:"unknown"},"guessShortNameFromPermaslug",0,function(e){let a=e.split(":"),r=a[0],n=a[1],o=r.includes("/")?r.split("/")[1]:r;if(t.has(o))return n?`${o} (${n})`:o;let l=o.replace(/-\d{8}$/,"").replace(/-\d{4}-\d{2}-\d{2}$/,"").replace(/-\d{2}-\d{2}$/,""),s=l.match(/^(.+)-preview-(\d{2}-\d{4})$/),u=null;s&&(l=`${s[1]}-preview`,u=s[2]);let c=(l=l.replace(/-0{1,2}\d$/,"")).split("-").map((e,t)=>{let a=e.toLowerCase();return"gpt"===a&&0===t?"GPT":"glm"===a&&0===t?"GLM":/^\d+[bB]$/i.test(e)?e.toUpperCase():/^\d/.test(e)?e:/^[a-z]\d+[a-z]$/i.test(e)||e.length<=2&&/^[a-z]+$/i.test(e)?e.toUpperCase():i(e)}).join(" ");return c=function(e){let t=e.match(/^Claude (\d+(?:\.\d+)?) (\w+)$/i);if(t)return`Claude ${i(t[2])} ${t[1]}`;if(e.startsWith("GPT ")){let t=e.split(" ");if(t.length>=2)return t.join("-")}return e}(c),u&&(c=`${c} ${u}`),n&&(c=`${c} (${n})`),c}])},993797,e=>{"use strict";e.s(["BENCHMARK_INDEX_MOBILE_TOC_STICKY_TOP_CLASS",0,"top-[calc(56px+var(--sticky-banner-top,0px))]","BENCHMARK_INDEX_SECTION_SCROLL_MT_CLASS",0,"scroll-mt-[calc(124px+var(--sticky-banner-top,0px))] lg:scroll-mt-[calc(84px+var(--sticky-banner-top,0px))]"])},883534,e=>{"use strict";var t=e.i(222666),i=e.i(505962),a=e.i(553215),r=e.i(452473),n=e.i(682566),o=e.i(252358),l=e.i(99074);e.i(406201);var s=e.i(806024),u=e.i(993797);let c="Evaluations";function d(e){return e.group}e.s(["ExploreScenarioRail",0,function(e){let n,l=(0,i.c)(5),{lens:u,items:m,activeId:p}=e,g=(0,o.usePosthogClient)();if(l[0]!==p||l[1]!==m||l[2]!==u||l[3]!==g){let e=Map.groupBy(m,d);n=(0,t.jsx)("nav",{"aria-label":c,className:"hidden md:flex md:flex-col md:gap-6",children:[...e].map(e=>{let[i,n]=e;return(0,t.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,t.jsx)("div",{className:"text-overline px-2 font-medium tracking-[0.12em] text-muted-foreground/70 uppercase",children:i}),n.map(e=>(0,t.jsx)(s.Link,{href:e.href,"aria-current":e.id===p?"page":void 0,onClick:()=>g.capture(a.PostHogEvent.ClickBenchmarkExploreSection,{lens:u,section:e.id,surface:"rail"}),className:(0,r.cn)("text-body flex min-h-10 items-center rounded-md px-2 transition-colors",e.id===p?"bg-card-hover font-medium text-foreground":"text-muted-foreground hover:bg-card-hover hover:text-accent-foreground"),children:(0,t.jsx)("span",{className:"min-w-0 flex-1 truncate",children:e.label})},e.id))]},i)})}),l[0]=p,l[1]=m,l[2]=u,l[3]=g,l[4]=n}else n=l[4];return n},"ExploreScenarioStrip",0,function(e){let d,m,p,g,h=(0,i.c)(12),{lens:f,items:y,activeId:x}=e,v=(0,o.usePosthogClient)();h[0]!==x||h[1]!==y?(d=y.find(e=>e.id===x)??y[0],h[0]=x,h[1]=y,h[2]=d):d=h[2];let b=d;return h[3]===Symbol.for("react.memo_cache_sentinel")?(m=(0,r.cn)("md:hidden sticky z-30 -mx-4 border-b border-border/50 bg-background px-4 py-2",u.BENCHMARK_INDEX_MOBILE_TOC_STICKY_TOP_CLASS),h[3]=m):m=h[3],h[4]!==x||h[5]!==b||h[6]!==y||h[7]!==f||h[8]!==v?(p=b&&(0,t.jsxs)(n.DropdownMenu,{children:[(0,t.jsxs)(n.DropdownMenuTrigger,{className:"flex min-h-11 w-full cursor-pointer items-center justify-between gap-2 rounded-md bg-muted px-3 py-2.5 text-overline outline-none",children:[(0,t.jsx)("span",{className:"min-w-0 truncate font-medium text-foreground",children:b.label}),(0,t.jsx)(l.ChevronDown,{className:"size-4 shrink-0 text-faint"})]}),(0,t.jsx)(n.DropdownMenuContent,{align:"start",className:"w-[var(--anchor-width)]",children:y.map(e=>(0,t.jsx)(n.DropdownMenuItem,{render:(0,t.jsx)(s.Link,{href:e.href,"aria-current":e.id===x?"page":void 0}),onClick:()=>v.capture(a.PostHogEvent.ClickBenchmarkExploreSection,{lens:f,section:e.id,surface:"strip"}),className:(0,r.cn)("text-overline cursor-pointer gap-2 py-2.5",e.id===x&&"bg-accent text-accent-foreground"),children:e.label},e.id))})]}),h[4]=x,h[5]=b,h[6]=y,h[7]=f,h[8]=v,h[9]=p):p=h[9],h[10]!==p?(g=(0,t.jsx)("nav",{"aria-label":c,className:m,children:p}),h[10]=p,h[11]=g):g=h[11],g}])},706190,e=>{"use strict";var t=e.i(222666),i=e.i(505962),a=e.i(553215),r=e.i(452473),n=e.i(252358),o=e.i(746751),l=e.i(202913);let s=(0,l.default)("gamepad-2",[["line",{x1:"6",x2:"10",y1:"11",y2:"11",key:"1gktln"}],["line",{x1:"8",x2:"8",y1:"9",y2:"13",key:"qnk9ow"}],["line",{x1:"15",x2:"15.01",y1:"12",y2:"12",key:"krot7o"}],["line",{x1:"18",x2:"18.01",y1:"10",y2:"10",key:"1lcuu1"}],["path",{d:"M17.32 5H6.68a4 4 0 0 0-3.978 3.59c-.006.052-.01.101-.017.152C2.604 9.416 2 14.456 2 16a3 3 0 0 0 3 3c1 0 1.5-.5 2-1l1.414-1.414A2 2 0 0 1 9.828 16h4.344a2 2 0 0 1 1.414.586L17 18c.5.5 1 1 2 1a3 3 0 0 0 3-3c0-1.545-.604-6.584-.685-7.258-.007-.05-.011-.1-.017-.151A4 4 0 0 0 17.32 5z",key:"mfqc10"}]]);var u=e.i(890136);let c=(0,l.default)("laugh",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M18 13a6 6 0 0 1-6 5 6 6 0 0 1-6-5h12Z",key:"b2q4dd"}],["line",{x1:"9",x2:"9.01",y1:"9",y2:"9",key:"yxxnd0"}],["line",{x1:"15",x2:"15.01",y1:"9",y2:"9",key:"1p4y9e"}]]),d=(0,l.default)("pencil-line",[["path",{d:"M13 21h8",key:"1jsn5i"}],["path",{d:"m15 5 4 4",key:"1mk7zo"}],["path",{d:"M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z",key:"1a8usu"}]]);var m=e.i(913767);e.i(406201);var p=e.i(806024),g=e.i(157266);function h(){let e,a=(0,i.c)(1);return a[0]===Symbol.for("react.memo_cache_sentinel")?(e=(0,t.jsxs)(p.Link,{href:"/benchmarks",className:"text-body text-muted-foreground hover:text-accent-foreground inline-flex min-h-10 items-center gap-1.5 self-start transition-colors md:min-h-0",children:[(0,t.jsx)(g.ArrowLeft,{className:"size-4 shrink-0"}),"All benchmarks"]}),a[0]=e):e=a[0],e}var f=e.i(189360);let y={speech:"arenaExplore",game:"memebench",memes:"memebench",sketch:"memebench"};var x=e.i(118577);let v=[{tab:"image",label:"Image",icon:u.Image,activeBorderClassName:"border-modality-image",iconClassName:"text-modality-image"},{tab:"video",label:"Video",icon:m.Video,activeBorderClassName:"border-modality-video",iconClassName:"text-modality-video"},{tab:"speech",label:"Speech",icon:o.AudioLines,activeBorderClassName:"border-modality-audio",iconClassName:"text-modality-audio"},{tab:"sketch",label:"Sketch",icon:d,activeBorderClassName:"border-modality-image",iconClassName:"text-modality-image"},{tab:"memes",label:"Memes",icon:c,activeBorderClassName:"border-modality-image",iconClassName:"text-modality-image"},{tab:"game",label:"Games",icon:s,activeBorderClassName:"border-modality-text",iconClassName:"text-modality-text"}];e.s(["MediaBenchmarkNav",0,function(e){let o,l,s,u,c,d,m,g,b=(0,i.c)(28),{activeTab:M}=e,_=(0,n.usePosthogClient)(),k=(0,x.useMediaTabFlags)();if(b[0]!==M||b[1]!==k||b[2]!==_){let e,i,n;b[8]!==M||b[9]!==k?(e=e=>{var t;if(M===e.tab)return!0;let i=(t=e.tab)in y?y[t]:null;return null===i||k[i]},b[8]=M,b[9]=k,b[10]=e):e=b[10];let d=v.filter(e);b[11]!==_?(i=e=>{_.capture(a.PostHogEvent.ClickBenchmarkExploreModality,{modality:e,tab:e})},b[11]=_,b[12]=i):i=b[12];let m=i;b[13]===Symbol.for("react.memo_cache_sentinel")?(c=(0,t.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,t.jsx)(h,{}),(0,t.jsx)("p",{className:"text-title font-brand font-semibold tracking-tight",children:"Media benchmarks"}),(0,t.jsx)("p",{className:"max-w-[78ch] text-body leading-relaxed text-muted-foreground",children:"Compare generation quality across media models"})]}),u=(0,r.cn)("z-10 border-b border-border bg-background md:sticky","md:top-[calc(56px+var(--sticky-banner-top,0px))]"),b[13]=u,b[14]=c):(u=b[13],c=b[14]),o="Modalities",l="-mb-px flex min-h-10 items-center overflow-x-auto",b[15]!==M||b[16]!==m?(n=e=>{let i=M===e.tab,a=e.icon;return(0,t.jsxs)(p.Link,{href:(0,f.mediaBenchmarkBasePath)(e.tab),"aria-current":i?"page":void 0,onClick:()=>m(e.tab),className:(0,r.cn)("inline-flex shrink-0 items-center gap-1.5 whitespace-nowrap border-b-2 px-4 py-2 text-body font-medium transition-colors",i?(0,r.cn)("text-foreground",e.activeBorderClassName):"border-transparent text-muted-foreground hover:text-foreground"),children:[(0,t.jsx)(a,{className:(0,r.cn)("size-4 shrink-0",e.iconClassName)}),e.label]},e.tab)},b[15]=M,b[16]=m,b[17]=n):n=b[17],s=d.map(n),b[0]=M,b[1]=k,b[2]=_,b[3]=o,b[4]=l,b[5]=s,b[6]=u,b[7]=c}else o=b[3],l=b[4],s=b[5],u=b[6],c=b[7];return b[18]!==o||b[19]!==l||b[20]!==s?(d=(0,t.jsx)("nav",{"aria-label":o,className:l,children:s}),b[18]=o,b[19]=l,b[20]=s,b[21]=d):d=b[21],b[22]!==u||b[23]!==d?(m=(0,t.jsx)("div",{className:u,children:d}),b[22]=u,b[23]=d,b[24]=m):m=b[24],b[25]!==c||b[26]!==m?(g=(0,t.jsxs)(t.Fragment,{children:[c,m]}),b[25]=c,b[26]=m,b[27]=g):g=b[27],g}],706190)},33706,e=>{"use strict";var t=e.i(222666),i=e.i(505962),a=e.i(528164),r=e.i(956506),n=e.i(164588),o=e.i(699937),l=e.i(695227);e.i(270401),e.s(["MediaPromptCard",0,function(e){let s,u,c,d,m,p,g,h=(0,i.c)(19),{prompt:f,onCopy:y,children:x}=e,{isCopied:v,copyToClipboard:b}=(0,n.useCopyToClipboard)();h[0]!==b||h[1]!==y||h[2]!==f?(s=()=>{y(),b(f)},h[0]=b,h[1]=y,h[2]=f,h[3]=s):s=h[3];let M=s;h[4]===Symbol.for("react.memo_cache_sentinel")?(u=(0,t.jsx)("div",{className:"text-overline font-medium uppercase tracking-wider text-muted-foreground/70",children:"Prompt"}),h[4]=u):u=h[4];let _=v?"Prompt copied":"Copy prompt";return h[5]!==v?(c=v?(0,t.jsx)(o.Check,{className:"size-4 text-positive"}):(0,t.jsx)(l.Copy,{className:"size-4"}),h[5]=v,h[6]=c):c=h[6],h[7]!==M||h[8]!==_||h[9]!==c?(d=(0,t.jsxs)("div",{className:"mb-2 flex items-center justify-between gap-2",children:[u,(0,t.jsx)(a.Button,{variant:"ghost",size:"icon-sm",onClick:M,"aria-label":_,className:"-my-2 -mr-2 text-muted-foreground",children:c})]}),h[7]=M,h[8]=_,h[9]=c,h[10]=d):d=h[10],h[11]!==f?(m=(0,t.jsx)("p",{className:"whitespace-pre-wrap text-body leading-relaxed text-muted-foreground",children:f}),h[11]=f,h[12]=m):m=h[12],h[13]!==d||h[14]!==m?(p=(0,t.jsxs)("div",{children:[d,m]}),h[13]=d,h[14]=m,h[15]=p):p=h[15],h[16]!==x||h[17]!==p?(g=(0,t.jsxs)(r.Card,{className:"flex flex-col gap-3 bg-doc-surface px-4 py-3",children:[p,x]}),h[16]=x,h[17]=p,h[18]=g):g=h[18],g}])},189360,e=>{"use strict";let t={image:"/benchmarks/media/images",video:"/benchmarks/media/videos",speech:"/benchmarks/media/speech",game:"/benchmarks/media/games",memes:"/benchmarks/media/memes",sketch:"/benchmarks/media/sketch"};e.s(["mediaBenchmarkBasePath",0,function(e){return t[e]}])},78138,e=>{"use strict";var t=e.i(91110);function i(e,t){return void 0!==e.failure||null===e.asset?[]:a(t??[])}function a(e){let i=(0,t.filterChatReferenceUrls)(e.map(e=>e.url)),a=new Set(i);return e.filter(e=>a.has(e.url)).slice(0,i.length)}function r(e){return a(e.filter(e=>e.mediaType.startsWith("image/")))}e.s(["filterGalleryChatReferences",0,a,"getGalleryChatHref",0,function(e,i,a=[]){let n=new URLSearchParams({models:e.id,message:i});for(let e of r(a))n.append(t.CHAT_REFERENCE_PARAM,e.url);return`/chat?${n.toString()}`},"getGalleryChatReferences",0,i,"getGallerySelectionChatHref",0,function(e,i,a=[]){let n=e.map(e=>encodeURIComponent(e)).join(","),o=new URLSearchParams;for(let e of(""!==i&&o.set("message",i),r(a)))o.append(t.CHAT_REFERENCE_PARAM,e.url);let l=o.toString();return`/chat?models=${n}${""===l?"":`&${l}`}`},"getVariantChatReferences",0,function(e,t){let a=e.find(e=>null!==e.asset&&void 0===e.failure);return void 0===a?[]:i(a,t)}])},644807,e=>{"use strict";e.s(["clearOutputLink",0,function(){window.history.replaceState(null,"",`${window.location.pathname}${window.location.search}`)},"parseOutputLink",0,function(e){let t=new URLSearchParams(e.replace(/^#/,"")),i=t.get("scenario"),a=t.get("model");return null===i||null===a?null:{scenario:i,modelId:a,setting:t.get("setting")}},"writeOutputLink",0,function(e){let t;window.history.replaceState(null,"",(t=new URLSearchParams({scenario:e.scenario,model:e.modelId}),null!==e.setting&&t.set("setting",e.setting),`#${t.toString()}`))}])},381084,9251,e=>{"use strict";e.s(["getGalleryModelHref",0,function(e){return`/${e.id}`}],381084);var t=e.i(829962);function i(e){let t=e.name.indexOf(": "),i=-1===t?e.name:e.name.slice(t+2).trim();if(""===i)return e.name;let a=i.replace(/\s*\([^()]*\)$/,"");return""===a?i:a}e.s(["galleryModelLabel",0,i,"galleryModelShortName",0,function(e){return e.name===e.id&&e.id.includes("/")?(0,t.guessShortNameFromPermaslug)(e.id):i(e)}],9251)},536960,e=>{"use strict";var t=e.i(193975);let i=["score","quality","controversial","cost","time"],a=["quality","controversial"],r={score:e=>void 0===e.score?null:e.score.score/e.score.total,quality:e=>e.quality?.score??null,controversial:e=>e.quality?.spread??null,cost:e=>e.costUsd,time:e=>e.durationMs};e.s(["NATURAL_DIR",0,{score:"desc",quality:"desc",controversial:"desc",cost:"desc",time:"asc"},"SORT_LABELS",0,{score:"Correctness",quality:"Quality",controversial:"Controversial",cost:"Cost",time:"Generation Time"},"availableSortKeys",0,function(e){let t=e.some(e=>void 0!==e.score),r=e.some(e=>void 0!==e.quality);return i.filter(e=>{var i;return"score"===e?t:(i=e,!a.some(e=>e===i)||r)})},"defaultSortKey",0,function(e){return e.includes("score")?"score":"cost"},"distinctValues",0,function(e){return[...new Set(e.filter(e=>void 0!==e))]},"formatGenerationDuration",0,function(e,i){return null===i?"--":`${(0,t.formatNativeFixed)(i/1e3,{locale:e,fractionDigits:1})??"—"}s`},"parseSortKey",0,function(e){return i.find(t=>t===e)},"sortCells",0,function(e,t,i){let a="asc"===i?1:-1,n=r[t];return[...e].sort((e,t)=>{let i=null===e.asset;if(i!==(null===t.asset))return i?1:-1;let r=n(e),o=n(t);return null===r||null===o?r===o?0:null===r?1:-1:a*(r-o)})}])},118577,e=>{"use strict";var t=e.i(505962),i=e.i(977051);e.s(["useMediaTabFlags",0,function(){let e,a=(0,t.c)(3),r=(0,i.useFeatureFlag)("arenaExplore"),n=(0,i.useFeatureFlag)("memebench");return a[0]!==r||a[1]!==n?(e={arenaExplore:r,memebench:n},a[0]=r,a[1]=n,a[2]=e):e=a[2],e}])},369677,e=>{"use strict";var t=e.i(850658),i=e.i(358390),a=e.i(553215),r=e.i(252358),n=e.i(871565),o=e.i(706527),l=e.i(749509),s=e.i(708991),u=e.i(270401),c=e.i(821259),d=e.i(140546);function m({pathname:e,basePath:t}){if(e===t)return"";let i=`${t}/`;return e.startsWith(i)?e.slice(i.length).split("/")[0]??"":""}let{BaseContext:p,Provider:g}=(0,s.createProvider)(e=>{let{model:s,basePath:p,skipPageViewTracking:g,isPrivateView:h=!1}=e,f=s.group===i.ModelGroup.Router,y=!!s.endpoint,x=(0,l.useParams)(),v=m({pathname:(0,c.usePublicPathname)()??"",basePath:p}).toLowerCase(),b=x?.["maker-id"]?(0,n.safeDecodeURIComponent)(x["maker-id"]).toLowerCase():"",M=(0,u.useMemo)(()=>(0,d.getVisibleModelPageTabSlugs)({model:s,hasBenchmarks:e.hasBenchmarks,isPrivateView:h}),[s,e.hasBenchmarks,h]),_=(0,u.useMemo)(()=>(function({tabQuery:e,visibleTabSlugs:t,isRouterModel:i,isActiveModel:a}){let r=t.find(t=>t===e);return r||(i||a?"overview":t.includes("activity")?"activity":t[0]??"overview")})({tabQuery:v,visibleTabSlugs:M,isRouterModel:f,isActiveModel:y}),[v,M,f,y]),k=(0,u.useMemo)(()=>(0,o.getModelVariantSlug)(s),[s]),S=e.activeVariant,C=(0,r.usePosthogClient)(),{isLoaded:w,isSignedIn:I}=(0,t.useAuth)(),T=(0,u.useRef)(I);(0,u.useEffect)(()=>{T.current=I},[I]);let N=(0,u.useRef)(null),E=(0,u.useRef)(_);return E.current=_,(0,u.useEffect)(()=>()=>{N.current="page_exit"},[]),(0,u.useEffect)(()=>{if(g||!w)return;let e=0,t="u">typeof document&&"hidden"===document.visibilityState?null:Date.now(),i=!1,r=r=>{i||(i=!0,null!==t&&(e+=Date.now()-t,t=null),C.capture(a.PostHogEvent.ModelPageTabExit,{model_slug:k,maker_id:b,tab:_,variant:S,is_router_model:f,is_active_model:y,is_signed_in:!!T.current,dwell_ms:e,trigger:r}))},n=()=>{if("hidden"===document.visibilityState){null!==t&&(e+=Date.now()-t,t=null);return}t=Date.now()},o=()=>{r("page_hide")};return document.addEventListener("visibilitychange",n),window.addEventListener("pagehide",o),C.capture(a.PostHogEvent.ModelPageView,{model_slug:k,maker_id:b,tab:_,variant:S,is_router_model:f,is_active_model:y,is_signed_in:!!T.current}),()=>{document.removeEventListener("visibilitychange",n),window.removeEventListener("pagehide",o);let e=function({isPageExit:e,didTabChange:t}){return e?"page_exit":t?"tab_change":"context_change"}({isPageExit:"page_exit"===N.current,didTabChange:E.current!==_});N.current=null,r(e)}},[g,C,w,k,b,_,S,f,y]),{...e,isPrivateView:h}});e.s(["ModelPageProvider",0,g,"getTabPathFromPathname",0,m,"useModelPage",0,()=>{let e=(0,u.useContext)(p);if(!e)throw Error("useModelPage must be used within a ModelPageProvider.");return e}])},140546,e=>{"use strict";var t=e.i(358390),i=e.i(963),a=e.i(179273);let r=["overview","providers","pricing","performance","uptime","benchmarks","apps","activity","api"],n=new Set(["activity","apps","benchmarks","performance","pricing","uptime"]);function o({model:e,hasBenchmarks:n}){switch(e.group){case t.ModelGroup.Router:return["overview","api"];case t.ModelGroup.Media:case t.ModelGroup.Other:case t.ModelGroup.GPT:case t.ModelGroup.Claude:case t.ModelGroup.Gemini:case t.ModelGroup.Gemma:case t.ModelGroup.Grok:case t.ModelGroup.Cohere:case t.ModelGroup.Nova:case t.ModelGroup.Qwen:case t.ModelGroup.Yi:case t.ModelGroup.DeepSeek:case t.ModelGroup.Mistral:case t.ModelGroup.Llama2:case t.ModelGroup.Llama3:case t.ModelGroup.Llama4:case t.ModelGroup.PaLM:case t.ModelGroup.RWKV:case t.ModelGroup.Qwen3:break;default:e.group}return e.endpoint?r.filter(t=>!("benchmarks"===t&&!n||"pricing"===t&&(e.output_modalities.includes(i.OutputModality.TTS)||(0,i.isNonChattableVideoModel)(e.output_modalities)||e.endpoint?.variant===a.StaticVariant.Free))):["activity"]}e.s(["getVisibleModelPageTabSlugs",0,function({model:e,hasBenchmarks:t,isPrivateView:i=!1}){var a;if(i||!0===(a=e).is_private||a.endpoint?.is_private===!0){let i=o({model:e,hasBenchmarks:t}).filter(e=>!n.has(e));return i.length>0?i:["overview"]}return o({model:e,hasBenchmarks:t})},"modelPageTabMap",0,{overview:{title:"Overview",path:""},providers:{title:"Providers",path:"providers"},performance:{title:"Performance",path:"performance"},pricing:{title:"Pricing",path:"pricing"},benchmarks:{title:"Benchmarks",path:"benchmarks"},versions:{title:"Versions",path:"versions",disabled:!0},apps:{title:"Apps",path:"apps"},activity:{title:"Activity",path:"activity"},uptime:{title:"Uptime",path:"uptime"},api:{title:"API",path:"api"}},"modelPageTabSlugs",0,r])},599662,e=>{"use strict";var t=e.i(505962),i=e.i(543092),a=e.i(189511),r=e.i(944343),n=e.i(155325),o=e.i(985024),l=e.i(121850),s=e.i(369677);let u=n.FlaskConical;function c({model:e,isPrivateView:t}){return(0,r.isPlaygroundSectionModelEligible)({model:e,isPrivateView:t})?i.ModelExampleModality.Image:(0,r.isPlaygroundVideoSectionModelEligible)({model:e,isPrivateView:t})?i.ModelExampleModality.Video:(0,r.isPlaygroundSpeechSectionModelEligible)({model:e,isPrivateView:t})?i.ModelExampleModality.Speech:null}function d(){let e,i=(0,t.c)(3),{model:r,isPrivateView:n}=(0,s.useModelPage)(),u=(0,o.useWorkspaceCapabilityGate)(a.WorkspaceCapability.Chatroom);i[0]!==n||i[1]!==r?(e=c({model:r,isPrivateView:n}),i[0]=n,i[1]=r,i[2]=e):e=i[2];let d=e;return u===l.WorkspaceCapabilityGateState.Blocked?null:d}e.s(["PLAYGROUND_SECTION_ICON",0,u,"PLAYGROUND_SECTION_ID",0,"playground","PLAYGROUND_SECTION_LABEL",0,"Playground","isPlaygroundSectionActiveForModel",0,function(e){return null!==c(e)},"useIsPlaygroundSectionEnabled",0,function(){return null!==d()},"usePlaygroundSectionModality",0,d])}]); //# sourceMappingURL=2l6w265e8zzm6.js.map //# chunkId=01a09b99-9c67-7350-a2b7-65904fa17448