(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,579841,e=>{"use strict";var t=e.i(667417);let r=new Set([t.j.Embeddings,t.j.Rerank,t.j.Decisions,t.j.TTS,t.j.Transcription]);t.j.Embeddings,t.j.Rerank,t.j.Decisions;let i=new Set([t.j.Text,t.j.Image]);function n(e){return 0===e.length||e.some(e=>i.has(e))&&!e.some(e=>r.has(e))}function l(e){return e.includes(t.j.Video)&&!n(e)}e.s(["l",0,function(e){return 0===e.output_modalities.length?e.has_text_output:e.output_modalities.includes(t.j.Text)},"L",0,function(e){return n(e)||l(e)},"a",0,n,"W",0,l])},195759,e=>{"use strict";var t=e.i(988590),r=e.i(572201),i=e.i(983739);function n(e,t){switch(t){case r.e.SelfMod:return`${e.name} (self-moderated)`;case r.e.Standard:case r.e.All:return e.name;case r.e.Free:case r.e.Nitro:case r.e.Floor:case r.e.Extended:case r.e.Exacto:case r.e.Online:case r.e.Thinking:case r.e.Batch:return`${e.name} (${t})`;default:return""}}let l=(e,i)=>{let n=e.split(r.q).slice(1),l=[];for(let e of n)(0,t.q)(e,i)&&l.push(e);return l},s={Nitro:r.B.Nitro,Floor:r.B.Floor,Exacto:r.B.Exacto},a={[s.Nitro]:i.f.Throughput,[s.Floor]:i.f.Price,[s.Exacto]:i.f.Exacto};e.s(["P",0,a,"K",0,s,"s",0,function(e,t){let r=n({name:""},t);return""===r?{name:e.name,short_name:e.short_name}:{name:e.name.endsWith(r)?e.name.slice(0,-r.length):e.name,short_name:e.short_name.endsWith(r)?e.short_name.slice(0,-r.length):e.short_name}},"_",0,e=>{let i;return((i=l(e,r.B)).length>0?i:[r.e.All]).findLast(e=>(0,t.q)(e,s))},"z",0,e=>l(e,r.d)[0]??r.e.Standard,"I",0,function(e,t){return e.short_name.includes(`(${t})`)?e.short_name:n(e,t).split(":")[1]?.trim()??e.short_name},"x",0,function(e){switch(e){case r.e.Free:return"Free";case r.e.Nitro:return"Nitro";case r.e.Floor:return"Floor";case r.e.Extended:return"Extended";case r.e.Exacto:return"Exacto";case r.e.Standard:return"Standard";case r.e.Online:return"Online";case r.e.All:return"All";case r.e.Thinking:return"Thinking";case r.e.Batch:return"Batch";case r.e.SelfMod:return"Self-Moderated";default:return""}}])},706792,e=>{"use strict";var t=e.i(140691);let r={Token:"token",Unit:"unit",Schedule:"schedule"};r.Token,r.Token,r.Unit,r.Token,r.Token,r.Token,r.Token,r.Token,r.Token,r.Token,r.Token,r.Token,r.Unit;let i=["Image Input","Input Image"],n=["Image Output","Output Image"];e.s(["H",0,r,"T",0,function(e){let t=e.filter(e=>e.kind===r.Token),l=t.find(e=>"Input Price"===e.sku_label),s=t.find(e=>"Output Price"===e.sku_label),a=t.find(e=>{var t;return t=e.sku_label,n.includes(t)}),o=t.find(e=>{var t;return t=e.sku_label,i.includes(t)})??l;return o&&a?{media:"image",inputItem:o,outputItem:a}:l&&s?{media:"text",inputItem:l,outputItem:s}:void 0},"U",0,function(e){let i=e.filter(e=>e.kind===r.Unit&&!0!==e.isServerTool),n=i[0];if(!n)return;let l=void 0!==n.tiers&&n.tiers.length>1,s=l||i.length>1;if(l){let e=(0,t.I)(1/0),r=n.price;for(let i of n.tiers){let n=(0,t.I)(i.price);n.gt(0)&&n.lt(e)&&(e=n,r=i.price)}return{price:r,displayMultiplier:n.displayMultiplier,unitLabel:n.unitLabel,hasDetails:s}}return{price:n.price,displayMultiplier:n.displayMultiplier,unitLabel:n.unitLabel,hasDetails:s}}])},894868,e=>{"use strict";var t=e.i(659350),r=e.i(663456),i=e.i(136562),n=e.i(829622),l=e.i(722841),s=e.i(987457);e.s(["f",0,function(e){let a,o,c,u,d,p,m,f=(0,r.c)(25),{author:h,permaslug:g,iconUri:v,className:x,frame:b,frameRingClassName:k,bare:w}=e,y=void 0!==b&&b,j=void 0!==w&&w;if(f[0]!==h||f[1]!==j||f[2]!==x||f[3]!==y||f[4]!==k||f[5]!==v||f[6]!==g){d=Symbol.for("react.early_return_sentinel");e:{if(o=null==g?(0,l.$)(h,v):(0,l.h)({permaslug:g,author:h,iconUri:v}),j){let e;f[12]!==x?(e=(0,i.f)("flex size-6 shrink-0 items-center justify-center","[&_img]:object-contain",x),f[12]=x,f[13]=e):e=f[13],d=(0,t.jsx)("div",{className:e,children:(0,t.jsx)(n.RemoteFavicon,{className:(0,i.f)("size-full overflow-hidden",o?.className),faviconFor:h,imgSrc:o.url,imgSrcDark:o.darkUrl,size:256})});break e}if(y){d=(0,t.jsx)(s.f,{className:x,ringClassName:k,children:(0,t.jsx)(n.RemoteFavicon,{className:(0,i.f)("size-full",o?.className),faviconFor:h,imgSrc:o.url,imgSrcDark:o.darkUrl,size:256})});break e}f[14]!==x?(u=(0,i.f)("flex items-center justify-center","size-6 shrink-0 rounded-full border","bg-background p-1",x),f[14]=x,f[15]=u):u=f[15],a=n.RemoteFavicon,c=(0,i.f)("overflow-hidden rounded-full",o?.className)}f[0]=h,f[1]=j,f[2]=x,f[3]=y,f[4]=k,f[5]=v,f[6]=g,f[7]=a,f[8]=o,f[9]=c,f[10]=u,f[11]=d}else a=f[7],o=f[8],c=f[9],u=f[10],d=f[11];return d!==Symbol.for("react.early_return_sentinel")?d:(f[16]!==a||f[17]!==h||f[18]!==o.darkUrl||f[19]!==o.url||f[20]!==c?(p=(0,t.jsx)(a,{className:c,faviconFor:h,imgSrc:o.url,imgSrcDark:o.darkUrl,size:256}),f[16]=a,f[17]=h,f[18]=o.darkUrl,f[19]=o.url,f[20]=c,f[21]=p):p=f[21],f[22]!==u||f[23]!==p?(m=(0,t.jsx)("div",{className:u,children:p}),f[22]=u,f[23]=p,f[24]=m):m=f[24],m)}])},987457,e=>{"use strict";var t=e.i(659350),r=e.i(663456),i=e.i(136562);e.s(["f",0,function(e){let n,l,s,a,o,c,u=(0,r.c)(15),{children:d,className:p,variant:m,decorative:f,ringClassName:h}=e,g=void 0!==f&&f||void 0;u[0]!==p?(n=(0,i.f)("relative flex shrink-0 items-center justify-center","box-content p-px","overflow-hidden rounded-sm bg-background","size-6",p),u[0]=p,u[1]=n):n=u[1],u[2]===Symbol.for("react.memo_cache_sentinel")?(l=(0,i.f)("absolute inset-px flex items-center justify-center","[&_img]:absolute [&_img]:inset-0 [&_img]:size-full [&_img]:object-contain","[&_img]:rounded-sm"),u[2]=l):l=u[2],u[3]!==d?(s=(0,t.jsx)("div",{className:l,children:d}),u[3]=d,u[4]=s):s=u[4];let v="app"===(void 0===m?"default":m)&&"dark:inset-px dark:ring-white";return u[5]!==h||u[6]!==v?(a=(0,i.f)("pointer-events-none absolute inset-0 rounded-[inherit] ring-1 ring-inset ring-border/60",v,h),u[5]=h,u[6]=v,u[7]=a):a=u[7],u[8]!==a?(o=(0,t.jsx)("div",{"aria-hidden":!0,className:a}),u[8]=a,u[9]=o):o=u[9],u[10]!==g||u[11]!==n||u[12]!==s||u[13]!==o?(c=(0,t.jsxs)("div",{"aria-hidden":g,className:n,children:[s,o]}),u[10]=g,u[11]=n,u[12]=s,u[13]=o,u[14]=c):c=u[14],c}])},722841,e=>{"use strict";var t=e.i(51365);let r=[["microsoft/mai-",(0,t.r)("MAI.png")]];var i=e.i(771271);function n(e){return e.toLowerCase()}let l=new Map([[n(i.R.OpenAI),{url:(0,t.r)("OpenAI.svg"),className:"dark:invert"}],[n(i.R.Perplexity),{url:(0,t.r)("Perplexity.png")}],[n(i.R.Poolside),{url:(0,t.r)("poolside-logomark-solid-color.svg")}],[n(i.R.Perceptron),{url:(0,t.e)("https://www.perceptron.inc")}],["voyageai",{url:(0,t.e)("https://www.voyageai.com")}],[n(i.R.GoogleAIStudio),{url:(0,t.r)("GoogleAIStudio.svg")}],[n(i.R.Anthropic),{url:(0,t.r)("Anthropic.svg")}],[n(i.R.ClaudeOnAws),{url:(0,t.r)("Anthropic.svg")}],[n(i.R.Cohere),{url:(0,t.r)("Cohere.png")}],[n(i.R.Deepgram),{url:(0,t.r)("Deepgram.svg"),className:"dark:invert"}],[n(i.R.DeepSeek),{url:(0,t.r)("DeepSeek.png")}],[n(i.R.Together),{url:(0,t.e)("https://www.together.ai/")}],[n(i.R.Infermatic),{url:(0,t.e)("https://infermatic.ai/")}],[n(i.R.HuggingFace),{url:(0,t.e)("https://huggingface.co/")}],[n(i.R.Unbiased),{url:(0,t.r)("Unbiased.png")}],[n(i.R.AI21),{url:(0,t.e)("https://ai21.com/")}],[n(i.R.Featherless),{url:(0,t.e)("https://featherless.ai/")}],[n(i.R.Reflection),{url:(0,t.e)("https://railway.app/")}],[n(i.R.Inflection),{url:(0,t.e)("https://inflection.ai/")}],[n(i.R.Minimax),{url:(0,t.e)("https://minimaxi.com/")}],[n(i.R.Liquid),{url:(0,t.r)("Liquid.png"),className:"dark:invert"}],[n(i.R.Inception),{url:(0,t.r)("Inception.svg"),className:"dark:invert"}],[n(i.R.Relace),{url:(0,t.e)("https://www.relace.ai")}],[n(i.R.Sourceful),{url:(0,t.e)("https://www.sourceful.com/")}],[n(i.R.Speechify),{url:(0,t.e)("https://speechify.ai/")}],[n(i.R.BytePlus),{url:(0,t.e)("https://www.byteplus.com")}],[n(i.R.Xiaomi),{url:(0,t.e)("https://www.mi.com")}],["arcee-ai",{url:(0,t.e)("https://www.arcee.ai")}],[n(i.R.AssemblyAI),{url:(0,t.e)("https://www.assemblyai.com/")}],["fish-audio",{url:(0,t.e)("https://fish.audio/")}],[n(i.R.ElevenLabs),{url:(0,t.e)("https://elevenlabs.io/"),className:"dark:invert"}],["z-ai",{url:(0,t.e)("https://z.ai/"),className:"dark:invert"}],["moonshotai",{url:(0,t.r)("MoonshotAI.png")}],["morph",{url:(0,t.e)("https://morphllm.com")}],[n(i.R.TypeSafe),{url:(0,t.e)("https://typesafe.ai")}],["qwen",{url:(0,t.r)("Qwen.png")}],["google",{url:(0,t.r)("GoogleGemini.svg")}],["microsoft",{url:(0,t.r)("Microsoft.svg")}],["nousresearch",{url:(0,t.e)("https://nousresearch.com/")}],["nvidia",{url:(0,t.e)("https://nvidia.com/")}],["meta-llama",{url:(0,t.r)("Meta.png")}],["meta",{url:(0,t.r)("Meta.png")}],["databricks",{url:(0,t.e)("https://databricks.com/")}],["openrouter",{url:(0,t.r)("openrouter-glyph-light.svg"),darkUrl:(0,t.r)("openrouter-glyph-dark.svg")}],["mistralai",{url:(0,t.r)("Mistral.png")}],["x-ai",{url:(0,t.e)("https://x.ai/")}],["amazon",{url:(0,t.e)("https://nova.amazon.com/")}],["aion-labs",{url:(0,t.e)("https://www.aionlabs.ai/")}],["allenai",{url:(0,t.e)("https://allenai.org/")}],["switchpoint",{url:(0,t.e)("https://switchpoint.dev/")}],["thedrummer",{url:(0,t.r)("TheDrummer.png")}],["deepcogito",{url:(0,t.e)("https://www.deepcogito.com/")}],["baidu",{url:(0,t.e)("https://www.baidu.com/")}],["kwaipilot",{url:(0,t.r)("Kwaipilot.png")}],["kwaivgi",{url:(0,t.r)("KlingAI.png")}],["black-forest-labs",{url:(0,t.e)("https://bfl.ai")}],["prime-intellect",{url:(0,t.e)("https://www.primeintellect.ai/")}],["primeintellect",{url:(0,t.e)("https://www.primeintellect.ai/")}],["essentialai",{url:(0,t.e)("https://www.essential.ai/")}],["bytedance-seed",{url:(0,t.e)("https://seed.bytedance.com/")}],[n(i.R.Seed),{url:(0,t.e)("https://seed.bytedance.com/")}],["writer",{url:(0,t.e)("https://writer.com/"),className:"dark:invert"}],["stepfun",{url:(0,t.e)("https://platform.stepfun.ai/")}],["stepfun-ai",{url:(0,t.e)("https://platform.stepfun.ai/")}],[n(i.R.Recraft),{url:(0,t.r)("Recraft.svg"),className:"dark:invert"}],["bytedance",{url:(0,t.e)("https://seed.bytedance.com/")}],["alibaba",{url:(0,t.e)("https://www.alibabacloud.com")}],["inclusionai",{url:(0,t.e)("https://www.inclusion-ai.org/")}],["tencent",{url:(0,t.r)("Tencent.png")}],["ibm-granite",{url:(0,t.r)("IBMGranite.svg"),className:"dark:invert"}],["nex-agi",{url:(0,t.r)("NexAGI.svg"),className:"dark:invert"}],[n(i.R.Unbiased),{url:(0,t.r)("Unbiased.png")}],["apodex",{url:(0,t.r)("Apodex.svg"),darkUrl:(0,t.r)("Apodex-dark.svg")}],["elorian",{url:(0,t.r)("Elorian.svg"),darkUrl:(0,t.r)("Elorian-dark.svg")}],["xingchen-agi",{url:(0,t.r)("XingChen-Shield.png")}],["prism-ml",{url:(0,t.r)("PrismML.svg"),darkUrl:(0,t.r)("PrismML-dark.svg")}],["thinkingmachines",{url:(0,t.e)("https://thinkingmachines.ai/")}],["sakana",{url:(0,t.e)("https://sakana.ai")}],[n(i.R.HeyGen),{url:(0,t.e)("https://heygen.com")}],["zyphra",{url:(0,t.r)("Zyphra.svg"),className:"dark:invert"}],["sesame",{url:(0,t.e)("https://www.sesame.com")}],["canopylabs",{url:(0,t.e)("https://canopylabs.ai"),className:"dark:invert"}],["hexgrad",{url:(0,t.r)("Hexgrad.png")}],[n(i.R.Krea),{url:(0,t.e)("https://www.krea.ai")}],[n(i.R.Runway),{url:(0,t.e)("https://runwayml.com")}],[n(i.R.Upstage),{url:(0,t.e)("https://www.upstage.ai/")}],[n(i.R.Fireworks),{url:(0,t.e)("https://fireworks.ai")}],["stealth",{url:(0,t.r)("Stealth.svg"),className:"invert-0 dark:invert"}],[n(i.R.Recursive),{url:(0,t.r)("Recursive.svg"),className:"dark:invert"}],["ricursiveai",{url:(0,t.r)("RicursiveAI.svg"),darkUrl:(0,t.r)("RicursiveAI-dark.svg")}]]),s=/^\/(?![/\\])/u,a=/^data:image\//iu;function o(e,r){var i;let n=l.get(e.toLowerCase());return r&&(!r.startsWith("data:")||a.test(r))?(i=n?.className,s.test(r)||a.test(r)?{url:r}:r.startsWith("//")?{url:(0,t.e)(`https:${r}`)}:r.startsWith("http")?{url:(0,t.e)(r)}:{url:(0,t.r)(r),className:i}):n??{url:t.t}}e.s(["$",0,o,"h",0,function({permaslug:e,author:t,iconUri:i}){let n,l=(n=e.toLowerCase().replace(/^~/u,""),r.find(([e])=>n.startsWith(e))?.[1]??null);return null!==l?{url:l}:o(t,i)}],722841)},829622,e=>{"use strict";var t=e.i(659350),r=e.i(663456),i=e.i(214051),n=e.i(51365),l=e.i(288265),s=e.i(16043);e.s(["RemoteFavicon",0,function(e){let a,o,c,u,d,p,m,f,h,g,v,x,b,k=(0,r.c)(55),w=(0,l.f)(),[y,j]=(0,s.useState)(null),[N,_]=(0,s.useState)(null),[S,T]=(0,s.useState)(!1),[R,L]=(0,s.useState)(!1),I=e.size||256;k[0]!==S||k[1]!==R||k[2]!==e.curatedIconAppId||k[3]!==e.faviconFor||k[4]!==e.imgSrc||k[5]!==I?(a=function({faviconFor:e,size:t,didCuratedIconFail:r,didSiteIconFail:i,curatedIconAppId:l,imgSrc:s}){if(s)return{source:"given",src:s};if(void 0!==l&&(0,n.Q)(e)&&!r)return{source:"curated",src:(0,n.$)(e)?e:(0,n.g)(l)};let a=i?(0,n.Z)(e):null;return null!==a?{source:"parent-site",src:(0,n.e)(a,t)}:{source:"site",src:(0,n.e)(e,t)}}({faviconFor:e.faviconFor,size:I,didCuratedIconFail:S,didSiteIconFail:R,curatedIconAppId:e.curatedIconAppId,imgSrc:e.imgSrc}),k[0]=S,k[1]=R,k[2]=e.curatedIconAppId,k[3]=e.faviconFor,k[4]=e.imgSrc,k[5]=I,k[6]=a):a=k[6];let{source:F,src:$}=a;k[7]!==e.faviconFor||k[8]!==I||k[9]!==F?(o=t=>{"site"!==F||I<=16||t>16||null!==(0,n.Z)(e.faviconFor)&&L(!0)},k[7]=e.faviconFor,k[8]=I,k[9]=F,k[10]=o):o=k[10];let A=o;k[11]!==e.faviconFor||k[12]!==F?(c=t=>{switch(F){case"curated":if((0,n.$)(e.faviconFor))return void j(t);T(!0);return;case"site":if(null===(0,n.Z)(e.faviconFor))return void j(t);L(!0);return;case"given":case"parent-site":return void j(t);default:j(t)}},k[11]=e.faviconFor,k[12]=F,k[13]=c):c=k[13];let M=c;k[14]===Symbol.for("react.memo_cache_sentinel")?(u=()=>{j(null)},k[14]=u):u=k[14],k[15]!==$?(d=[$],k[15]=$,k[16]=d):d=k[16],(0,s.useEffect)(u,d),k[17]===Symbol.for("react.memo_cache_sentinel")?(p=()=>{T(!1),L(!1)},k[17]=p):p=k[17],k[18]!==e.curatedIconAppId||k[19]!==e.faviconFor||k[20]!==e.imgSrc||k[21]!==I?(m=[e.faviconFor,e.curatedIconAppId,e.imgSrc,I],k[18]=e.curatedIconAppId,k[19]=e.faviconFor,k[20]=e.imgSrc,k[21]=I,k[22]=m):m=k[22],(0,s.useEffect)(p,m),k[23]===Symbol.for("react.memo_cache_sentinel")?(f=()=>{_(null)},k[23]=f):f=k[23],k[24]!==e.imgSrcDark?(h=[e.imgSrcDark],k[24]=e.imgSrcDark,k[25]=h):h=k[25],(0,s.useEffect)(f,h),k[26]!==w||k[27]!==e.faviconFor?(g=w("Favicon for {faviconFor}",{faviconFor:e.faviconFor}),k[26]=w,k[27]=e.faviconFor,k[28]=g):g=k[28],k[29]!==I||k[30]!==g?(v={width:I,height:I,alt:g,className:"h-full w-full object-cover"},k[29]=I,k[30]=g,k[31]=v):v=k[31];let U=v;if(e.imgSrcDark){let r,n,l;return k[32]!==y||k[33]!==U||k[34]!==M||k[35]!==A||k[36]!==$?(r=(0,t.jsx)("span",{className:"block h-full w-full shrink-0 dark:hidden",children:y?(0,t.jsx)("span",{className:"bg-muted",children:(0,t.jsx)(i.f,{className:"h-4 w-4 text-muted-foreground/60"})}):(0,t.jsx)("img",{...U,src:$,onError:e=>M(e.toString()),onLoad:e=>A(e.currentTarget.naturalWidth)})}),k[32]=y,k[33]=U,k[34]=M,k[35]=A,k[36]=$,k[37]=r):r=k[37],k[38]!==N||k[39]!==U||k[40]!==e.imgSrcDark?(n=(0,t.jsx)("span",{className:"hidden h-full w-full shrink-0 dark:block",children:N?(0,t.jsx)("span",{className:"bg-muted",children:(0,t.jsx)(i.f,{className:"h-4 w-4 text-muted-foreground/60"})}):(0,t.jsx)("img",{...U,src:e.imgSrcDark,onError:e=>_(e.toString())})}),k[38]=N,k[39]=U,k[40]=e.imgSrcDark,k[41]=n):n=k[41],k[42]!==e.className||k[43]!==r||k[44]!==n?(l=(0,t.jsxs)("div",{className:e.className,children:[r,n]}),k[42]=e.className,k[43]=r,k[44]=n,k[45]=l):l=k[45],l}return k[46]!==y||k[47]!==U||k[48]!==M||k[49]!==A||k[50]!==$?(x=y?(0,t.jsx)("span",{className:"bg-muted",children:(0,t.jsx)(i.f,{className:"h-4 w-4 text-muted-foreground/60"})}):(0,t.jsx)("picture",{className:"h-full w-full shrink-0",children:(0,t.jsx)("img",{...U,src:$,loading:"lazy",decoding:"async",onError:e=>M(e.toString()),onLoad:e=>A(e.currentTarget.naturalWidth)})}),k[46]=y,k[47]=U,k[48]=M,k[49]=A,k[50]=$,k[51]=x):x=k[51],k[52]!==e.className||k[53]!==x?(b=(0,t.jsx)("div",{className:e.className,children:x}),k[52]=e.className,k[53]=x,k[54]=b):b=k[54],b}])},280819,e=>{"use strict";var t=e.i(668379),r=e.i(988590),i=e.i(387086);let n={[t.f.Programming]:(0,i.b)("Programming"),[t.f.Roleplay]:(0,i.b)("Roleplay"),[t.f.Marketing]:(0,i.b)("Marketing"),[t.f.MarketingSeo]:(0,i.b)("SEO"),[t.f.Technology]:(0,i.b)("Technology"),[t.f.Science]:(0,i.b)("Science"),[t.f.Translation]:(0,i.b)("Translation"),[t.f.Legal]:(0,i.b)("Legal"),[t.f.Finance]:(0,i.b)("Finance"),[t.f.Health]:(0,i.b)("Health"),[t.f.Trivia]:(0,i.b)("Trivia"),[t.f.Academia]:(0,i.b)("Academia")};e.s(["f",0,function(e){return(0,r.q)(e,t.f)?n[e]:"all"===e?(0,i.b)("All"):"other"===e?(0,i.b)("Other"):(0,i.b)("Unknown")}])},51365,e=>{"use strict";e.i(640216);let t=new Set(["ac","co","com","edu","go","gob","gov","ltd","me","ne","net","nom","or","org","plc","sch"]),r=(e,t=256)=>`https://t0.gstatic.com/faviconV2?client=SOCIAL&type=FAVICON&fallback_opts=TYPE,SIZE,URL&url=${e}&size=${t}`,i=new Set(["amazonaws.com","azurewebsites.net","cloudfront.net","firebaseapp.com","fly.dev","github.io","gitlab.io","herokuapp.com","ngrok.app","ngrok.io","netlify.app","onrender.com","pages.dev","run.app","vercel.app","web.app","workers.dev"]),n=/\.(png|jpe?g|ico|svg|webp|gif|bmp)$/i,l=r("https://huggingface.co/");e.s(["t",0,l,"g",0,e=>`/api/frontend/v1/apps/${e}/icon`,"e",0,r,"r",0,e=>`/images/icons/${e}`,"Z",0,e=>{let r=(e=>{let t=/^[a-z][a-z\d+\-.]*:\/\//iu.test(e)?e:`https://${e}`;try{return new URL(t).hostname.toLowerCase().replace(/\.$/u,"")}catch{return null}})(e);if(null===r)return null;let n=r.split(".").slice(1);if(n.length<2||2===n.length&&2===(n[1]??"").length&&t.has(n[0]??""))return null;let l=n.join(".");return[...i].some(e=>l===e||l.endsWith(`.${e}`))?null:`https://${l}`},"Q",0,e=>{try{return n.test(new URL(e).pathname)}catch{return!1}},"$",0,e=>{try{let t=new URL(e).hostname.toLowerCase().replace(/\.$/,"");return"openrouter.ai"===t||t.endsWith(".openrouter.ai")}catch{return!1}}],51365)},668379,e=>{"use strict";var t,r=e.i(989487);e.i(988590);var i=((t={}).Programming="programming",t.Roleplay="roleplay",t.Marketing="marketing",t.MarketingSeo="marketing/seo",t.Technology="technology",t.Science="science",t.Translation="translation",t.Legal="legal",t.Finance="finance",t.Health="health",t.Trivia="trivia",t.Academia="academia",t);Object.values(i).reduce((e,t)=>(e[t]="marketing/seo"===t?"SEO":(0,r.F)(t),e),{}),e.s(["f",()=>i])},989487,e=>{"use strict";let t=/(?<=[\p{Ll}\d])(?=\p{Lu})|(?<=\p{Lu})(?=\p{Lu}\p{Ll})/u,r=/(?<=[\p{Ll}\d])(?=\p{Lu})|(?<=\p{Lu})(?=\p{Lu}\p{Ll})|(?<=\d)(?=\p{Ll})|(?<=\p{L})(?=\d)/u;function i(e,{style:n,options:l={}}){let s=0,a=e.length;for(;ss&&l.suffixCharacters?.includes(e.charAt(a-1));)a--;let o=(l.split??(e=>(function(e,i){let n=e.match(/[\p{L}\d]+/giu);if(null===n)return[];let l=i?r:t;if(1===n.length)return n[0].split(l);let s=[];for(let e of n)for(let t of e.split(l))s.push(t);return s})(e,l.separateNumbers)))(e.slice(s,a)),c=l.locale,u=l.locale,d=!1===c?e=>e.toLowerCase():e=>e.toLocaleLowerCase(c),p=!1===u?e=>e.toUpperCase():e=>e.toLocaleUpperCase(u),m="camel"===n||"pascal"===n,f=(e,t)=>{let r=e[0];return(m&&!l.mergeAmbiguousCharacters&&t>0&&/^[0-9]$/.test(r)?"_":"")+p(r)+d(e.slice(1))},h=f;"lower"===n&&(h=d),"camel"===n&&(h=(e,t)=>0===t?d(e):f(e,t)),"sentence"===n&&(h=(e,t)=>0===t?f(e,t):d(e));let g=o.map(h);return e.slice(0,s)+g.join(l.delimiter??(m?"":" "))+e.slice(a)}e.s(["j",0,function(e,t){return i(e,{style:"capital",options:t})},"O",0,function(e,t){return i(e,{style:"lower",options:{delimiter:"-",...t}})},"F",0,function(e,t){return i(e,{style:"sentence",options:t})},"h",0,function(e,t){return i(e,{style:"lower",options:{delimiter:"_",...t}})}])},640216,e=>{"use strict";var t=e.i(914571),r=e.i(647204),i=e.i(30012);function n(e){let t=e.replaceAll(/^\[|\]$/g,""),r=o(t);if(r)return n(r);if(l(t)){let e=Number.parseInt(t.split(".")[0]??"",10);return 0===e||127===e}let i=s(t);if(i)return i.slice(0,15).every(e=>0===e)&&(0===i[15]||1===i[15]);let a=c(t);return"localhost"===a||a.endsWith(".localhost")||a.includes(":")}function l(e){let t=e.split(".");return 4===t.length&&t.every(e=>/^\d{1,3}$/.test(e)&&Number(e)>=0&&255>=Number(e))}function s(e){let t=e.replaceAll(/^\[|\]$/g,"").toLowerCase(),r=t.indexOf("%");if(-1!==r){if(0===r||r===t.length-1)return null;t=t.slice(0,r)}if(!t.includes(":"))return null;if(t.includes(".")){let e=t.lastIndexOf(":");if(-1===e)return null;let r=t.slice(e+1);if(!l(r))return null;let i=r.split(".").map(Number),n=(i[0]??0)<<8|(i[1]??0),s=(i[2]??0)<<8|(i[3]??0);t=`${t.slice(0,e+1)}${n.toString(16)}:${s.toString(16)}`}let i=t.indexOf("::");if(i!==t.lastIndexOf("::"))return null;let n=-1!==i?function(e,t){let r=e.slice(0,t),i=e.slice(t+2),n=""===r?[]:r.split(":"),l=""===i?[]:i.split(":");if(n.some(e=>""===e)||l.some(e=>""===e))return null;let s=8-n.length-l.length;return s<1?null:[...n,...Array.from({length:s},()=>"0"),...l]}(t,i):t.split(":");return null===n||8!==n.length||n.some(e=>!/^[0-9a-f]{1,4}$/.test(e))?null:n.flatMap(e=>{let t=Number.parseInt(e,16);return[t>>8&255,255&t]})}function a(e){return 254===e[0]&&((e[1]??0)&192)==128}function o(e){let t=s(e);if(null===t)return null;let r=t.slice(0,10).every(e=>0===e)&&255===t[10]&&255===t[11],i=t.slice(0,12).every(e=>0===e),n=t.slice(0,15).every(e=>0===e)&&(0===t[15]||1===t[15]);return!r&&!i||i&&n?null:`${t[12]}.${t[13]}.${t[14]}.${t[15]}`}function c(e){let t=e.toLowerCase(),r=t.length;for(;r>0&&"."===t[r-1];)r-=1;return t.slice(0,r)}t.n,e.s(["b",0,function(e,t){return"https:"===e.protocol||"http:"===e.protocol&&t&&n(e.hostname)},"i",0,function(e){let t=c(e);return"cfargotunnel.com"===t||t.endsWith(".cfargotunnel.com")},"y",0,n,"r",0,function(e){let t=c(e);return"openrouter.ai"===t||t.endsWith(".openrouter.ai")},"E",0,function(e,t={}){let u,d,p,m;try{u=new URL(e)}catch{return(0,r.Y)("Invalid URL format")}let f=u.hostname.toLowerCase(),h=u.protocol,g=(0,i.T)()&&!0;if(n(f)&&g)return"http:"!==h&&"https:"!==h?(0,r.Y)("Only HTTP and HTTPS protocols are allowed"):(0,r.N)(!0);if(n(f))return(0,r.Y)("Localhost URLs are not allowed");if(function e(t){let r=o(t.replaceAll(/^\[|\]$/g,""));if(r)return e(r)||n(r);if(l(t)){let e=t.split(".").map(Number);if(4!==e.length||e.some(e=>Number.isNaN(e)))return!1;let[r,i]=e;return void 0!==r&&void 0!==i&&(10===r||172===r&&i>=16&&i<=31||192===r&&168===i||100===r&&i>=64&&i<=127||169===r&&254===i)}if(null!==s(t)){let e=s(t);return null!==e&&(((e[0]??0)&254)==252||a(e))}return!1}(f))return(0,r.Y)("Private IP addresses are not allowed");if(function(e){if(l(e)){let t=e.split(".").map(Number);if(4===t.length&&169===t[0]&&254===t[1])return!0}if(null!==s(e)){let t=s(e);return null!==t&&a(t)}return!1}(f)||"metadata.google.internal"===(d=c(f))||d.endsWith(".metadata.google.internal")||(p=c(f)).endsWith(".svc")||p.endsWith(".svc.cluster.local")||p.endsWith(".cluster.local")||(m=c(f)).endsWith(".internal")||m.endsWith(".local"))return(0,r.Y)("Unsupported URL, public internet addresses only");if(!g&&"https:"!==h){if(!t.allowHttp)return(0,r.Y)("Only HTTPS URLs are allowed");if("http:"!==h)return(0,r.Y)("Only HTTP and HTTPS protocols are allowed")}return g&&"http:"!==h&&"https:"!==h?(0,r.Y)("Only HTTP and HTTPS protocols are allowed in dev"):(0,r.N)(!0)}],640216)},667417,e=>{"use strict";var t,r,i=e.i(988590),n=((t={}).Text="text",t.Image="image",t.Embeddings="embeddings",t.Audio="audio",t.Video="video",t.Rerank="rerank",t.Decisions="decisions",t.TTS="speech",t.Transcription="transcription",t),l=((r={}).Text="text",r.Image="image",r.File="file",r.Audio="audio",r.Video="video",r);let s=(0,i.v)(l),a=(0,i.v)(n);e.s(["v",0,s,"D",()=>l,"Z",0,a,"j",()=>n,"f",0,["text","image","video","speech","transcription","embeddings","rerank","decisions","audio"],"K",0,function(e){return 1===e.length&&e.includes("text")}])},983739,e=>{"use strict";var t,r=((t={}).Price="price",t.Throughput="throughput",t.Latency="latency",t.Exacto="exacto",t);e.s(["f",()=>r])},626961,906197,487481,e=>{"use strict";var t=e.i(659350),r=e.i(663456),i=e.i(277582),n=e.i(136562),l=e.i(751155),s=e.i(138257);e.i(707060);var a=e.i(300326),o=e.i(196991),c=e.i(153746),u=e.i(916998),d=e.i(690387),p=e.i(294241);let m=e=>{let i,n,l=(0,r.c)(3),{children:s}=e;return l[0]===Symbol.for("react.memo_cache_sentinel")?(i=(0,t.jsx)("span",{className:"h-3 border-l"}),l[0]=i):i=l[0],l[1]!==s?(n=(0,t.jsxs)(t.Fragment,{children:[i,(0,t.jsx)("span",{children:s})]}),l[1]=s,l[2]=n):n=l[2],n},f=e=>{let i,l,s=(0,r.c)(3),{children:a}=e;return s[0]===Symbol.for("react.memo_cache_sentinel")?(i=(0,n.f)("border-l","mb-2 w-1/2 px-2 sm:w-1/3","lg:mt-0 lg:w-auto"),s[0]=i):i=s[0],s[1]!==a?(l=(0,t.jsx)("span",{className:i,children:a}),s[1]=a,s[2]=l):l=s[2],l};function h(e){let n,l,s=(0,r.c)(5),{discount:a,Wrapper:o,showDiscount:c}=e;return c&&(0,i.i)(a)?(s[0]!==a?(n=(0,t.jsx)(u.f,{discount:a,variant:"subdued"}),s[0]=a,s[1]=n):n=s[1],s[2]!==o||s[3]!==n?(l=(0,t.jsx)(o,{children:n}),s[2]=o,s[3]=n,s[4]=l):l=s[4],l):null}function g(e){let i,l,s,u,d,p,m=(0,r.c)(14),{unit:f,direction:h,variant:g}=e;m[0]!==f?(i=f.endsWith(" tokens")?f.slice(0,-7):f,m[0]=f,m[1]=i):i=m[1];let v=i;m[2]!==v?(l=(0,t.jsx)(c.d,{children:v}),m[2]=v,m[3]=l):l=m[3],m[4]!==h?(s=(0,t.jsx)(a.f,{branch:h,input:"input",output:"output"}),m[4]=h,m[5]=s):s=m[5];let x="list"===g&&"hidden md:above-phone:inline";return m[6]!==x?(u=(0,n.f)(x),m[6]=x,m[7]=u):u=m[7],m[8]!==u?(d=(0,t.jsx)("span",{className:u,children:"tokens"}),m[8]=u,m[9]=d):d=m[9],m[10]!==l||m[11]!==s||m[12]!==d?(p=(0,t.jsxs)(o.T,{children:[l," ",s," ",d]}),m[10]=l,m[11]=s,m[12]=d,m[13]=p):p=m[13],p}e.s(["f",0,function(e){let i,a=(0,r.c)(37),{displayPricing:o,discount:c,className:u,variant:v,showDiscount:x}=e,b=void 0===v?"list":v,k=void 0===x||x,w=(0,s.useLocale)(),y="detail"===b?f:m;if(a[0]!==y||a[1]!==u||a[2]!==c||a[3]!==o||a[4]!==w||a[5]!==k||a[6]!==b){i=Symbol.for("react.early_return_sentinel");e:{let e=(0,d.J)(w,o);if(!e){i=null;break e}switch(e.kind){case"standard-tokens":{let r;a[8]!==y||a[9]!==c||a[10]!==k?(r=(0,t.jsx)(h,{discount:c,Wrapper:y,showDiscount:k}),a[8]=y,a[9]=c,a[10]=k,a[11]=r):r=a[11],i=(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)(y,{children:[e.inputPrice,(0,t.jsx)(g,{unit:e.inputUnit,direction:"input",variant:b})]}),(0,t.jsxs)(y,{children:[e.outputPrice,(0,t.jsx)(g,{unit:e.outputUnit,direction:"output",variant:b})]}),r]});break e}case"custom":{let r,s,d,m,f,g=(0,t.jsx)("span",{className:(0,n.f)(e.hasDetails&&"underline decoration-dotted underline-offset-2 cursor-help",u),children:e.label});if(!e.hasDetails){let e,r,n;a[12]!==y||a[13]!==g?(e=(0,t.jsx)(y,{children:g}),a[12]=y,a[13]=g,a[14]=e):e=a[14],a[15]!==y||a[16]!==c||a[17]!==k?(r=(0,t.jsx)(h,{discount:c,Wrapper:y,showDiscount:k}),a[15]=y,a[16]=c,a[17]=k,a[18]=r):r=a[18],a[19]!==e||a[20]!==r?(n=(0,t.jsxs)(t.Fragment,{children:[e,r]}),a[19]=e,a[20]=r,a[21]=n):n=a[21],i=n;break e}a[22]!==o?(r=(0,t.jsx)(p.f,{items:o}),a[22]=o,a[23]=r):r=a[23],a[24]!==g||a[25]!==r?(s=(0,t.jsx)(l.Tooltip,{side:"bottom",content:r,children:g}),a[24]=g,a[25]=r,a[26]=s):s=a[26],a[27]!==y||a[28]!==s?(d=(0,t.jsx)(y,{children:s}),a[27]=y,a[28]=s,a[29]=d):d=a[29],a[30]!==y||a[31]!==c||a[32]!==k?(m=(0,t.jsx)(h,{discount:c,Wrapper:y,showDiscount:k}),a[30]=y,a[31]=c,a[32]=k,a[33]=m):m=a[33],a[34]!==d||a[35]!==m?(f=(0,t.jsxs)(t.Fragment,{children:[d,m]}),a[34]=d,a[35]=m,a[36]=f):f=a[36],i=f;break e}default:i=null;break e}}a[0]=y,a[1]=u,a[2]=c,a[3]=o,a[4]=w,a[5]=k,a[6]=b,a[7]=i}else i=a[7];if(i!==Symbol.for("react.early_return_sentinel"))return i}],626961);var v=e.i(782143),x=e.i(493630);e.s(["f",0,function(e){let i,n,l,s=(0,r.c)(6),{contextLength:a,locale:u}=e;if(null===a||!(a>0))return null;s[0]!==a||s[1]!==u?(i=(0,v.f)(a,{locale:u,preset:"compact-rounded-thousands"})??"—",s[0]=a,s[1]=u,s[2]=i):i=s[2];let d=i;return s[3]===Symbol.for("react.memo_cache_sentinel")?(n=(0,t.jsx)(x.f.FooterDivider,{}),s[3]=n):n=s[3],s[4]!==d?(l=(0,t.jsxs)(t.Fragment,{children:[n,(0,t.jsx)("span",{children:(0,t.jsxs)(o.T,{children:[(0,t.jsx)(c.d,{children:d})," context"]})})]}),s[4]=d,s[5]=l):l=s[5],l}],906197);var b=e.i(16043),k=e.i(668379);let w={all:"bg-foreground",[k.f.Roleplay]:"bg-chart-5",[k.f.Programming]:"bg-chart-6",[k.f.Marketing]:"bg-chart-4",[k.f.MarketingSeo]:"bg-chart-4",[k.f.Technology]:"bg-chart-3",[k.f.Science]:"bg-chart-3",[k.f.Translation]:"bg-chart-2",[k.f.Legal]:"bg-chart-1",[k.f.Finance]:"bg-chart-1",[k.f.Health]:"bg-chart-2",[k.f.Trivia]:"bg-chart-6",[k.f.Academia]:"bg-chart-5"},y=e=>w[e]??"bg-chart-6";var j=e.i(233452),N=e.i(624112),_=e.i(797521),S=e.i(967605),T=e.i(960773),R=e.i(199168),L=e.i(280819);let I=e=>{let i,l,s,a,o,c,u,d,p,m,f,h,g,v=(0,r.c)(33);v[0]!==e?({category:i,rank:a,className:l,hideColor:c,ref:o,...s}=e,v[0]=e,v[1]=i,v[2]=l,v[3]=s,v[4]=a,v[5]=o,v[6]=c):(i=v[1],l=v[2],s=v[3],a=v[4],o=v[5],c=v[6]);let x=void 0!==c&&c,b=(0,R.o)(),k=(0,R.M)();v[7]!==i||v[8]!==b||v[9]!==k?(u="all"===i?b("All Categories"):k((0,L.f)(i)),v[7]=i,v[8]=b,v[9]=k,v[10]=u):u=v[10],v[11]!==i?(d=y(i),v[11]=i,v[12]=d):d=v[12],v[13]!==u||v[14]!==d?(p={name:u,color:d},v[13]=u,v[14]=d,v[15]=p):p=v[15];let w=p;v[16]!==l?(m=(0,n.f)("w-full truncate","flex items-center gap-1",l),v[16]=l,v[17]=m):m=v[17],v[18]!==b||v[19]!==a||v[20]!==w.name?(f=a?b("Ranked at #{rank} in {category} category",{rank:a,category:w.name}):b("View the {category} category",{category:w.name}),v[18]=b,v[19]=a,v[20]=w.name,v[21]=f):f=v[21],v[22]!==x||v[23]!==w.color?(h=!x&&(0,t.jsx)("div",{className:(0,n.f)("size-1.5 shrink-0 rounded-full",w.color)}),v[22]=x,v[23]=w.color,v[24]=h):h=v[24];let j=void 0!==a&&` (#${a})`;return v[25]!==s||v[26]!==o||v[27]!==w.name||v[28]!==m||v[29]!==f||v[30]!==h||v[31]!==j?(g=(0,t.jsxs)("span",{ref:o,className:m,...s,title:f,children:[h,w.name,j]}),v[25]=s,v[26]=o,v[27]=w.name,v[28]=m,v[29]=f,v[30]=h,v[31]=j,v[32]=g):g=v[32],g},F=e=>{let i,l,s,a,o,c,u,d,p,m,f,h,g,v,x,b=(0,r.c)(36);b[0]!==e?({category:i,rank:u,disabled:s,onClick:o,className:l,hideColor:a,basePathname:m,source:p,ref:d,...c}=e,b[0]=e,b[1]=i,b[2]=l,b[3]=s,b[4]=a,b[5]=o,b[6]=c,b[7]=u,b[8]=d,b[9]=p,b[10]=m):(i=b[1],l=b[2],s=b[3],a=b[4],o=b[5],c=b[6],u=b[7],d=b[8],p=b[9],m=b[10]);let k=void 0===m?"/rankings":m,w=(0,T.Q)();b[11]!==k||b[12]!==i||b[13]!==o||b[14]!==w||b[15]!==u||b[16]!==p?(f=e=>{w.capture("click_top_category_rank_chip",{category:i,rank:u??null,base_pathname:k,source:p}),o&&(e.preventDefault(),o(e))},b[11]=k,b[12]=i,b[13]=o,b[14]=w,b[15]=u,b[16]=p,b[17]=f):f=b[17];let y=f,N=s?"secondary":"default",_=s?"true":void 0;return b[18]!==k||b[19]!==s?(h=s?void 0:(0,t.jsx)(S.Link,{href:k}),b[18]=k,b[19]=s,b[20]=h):h=b[20],b[21]!==l?(g=(0,n.f)("shrink-0",l),b[21]=l,b[22]=g):g=b[22],b[23]!==i||b[24]!==a||b[25]!==u?(v=(0,t.jsx)(I,{category:i,rank:u,hideColor:a}),b[23]=i,b[24]=a,b[25]=u,b[26]=v):v=b[26],b[27]!==y||b[28]!==c||b[29]!==d||b[30]!==N||b[31]!==_||b[32]!==h||b[33]!==g||b[34]!==v?(x=(0,t.jsx)(j.Badge,{ref:d,onClick:y,size:"md",variant:N,"aria-current":_,render:h,className:g,...c,children:v}),b[27]=y,b[28]=c,b[29]=d,b[30]=N,b[31]=_,b[32]=h,b[33]=g,b[34]=v,b[35]=x):x=b[35],x};function $(e){let i,n,l,s,a,u,d,p,m,f,h=(0,r.c)(30),{remainingCategories:g,remainingColors:v,basePathname:x,source:k}=e,w=(0,_.f)(),y=g.length,[S,T]=(0,b.useState)(!1);if(h[0]!==S?(i=e=>{e.preventDefault(),T(!S)},h[0]=S,h[1]=i):i=h[1],h[2]!==v?(n=v.map(A),h[2]=v,h[3]=n):n=h[3],h[4]!==n?(l=(0,t.jsx)("div",{className:"relative flex h-full w-fit items-center",children:n}),h[4]=n,h[5]=l):l=h[5],h[6]!==w||h[7]!==y?(s=w.number(y,{preset:"integer"}),h[6]=w,h[7]=y,h[8]=s):s=h[8],h[9]!==s?(a=(0,t.jsx)("span",{className:"ml-3.5",children:(0,t.jsxs)(o.T,{children:["+",(0,t.jsx)(c.d,{children:s})," ","categories"]})}),h[9]=s,h[10]=a):a=h[10],h[11]!==l||h[12]!==a?(u=(0,t.jsx)(j.Badge,{size:"md",className:"min-w-fit",render:(0,t.jsxs)("button",{type:"button",children:[l,a]})}),h[11]=l,h[12]=a,h[13]=u):u=h[13],h[14]!==i||h[15]!==u?(d=(0,t.jsx)(N.J,{onClick:i,render:u}),h[14]=i,h[15]=u,h[16]=d):d=h[16],h[17]!==x||h[18]!==g||h[19]!==k){let e;h[21]!==x||h[22]!==k?(e=e=>(0,t.jsx)(F,{basePathname:x,category:e.category,rank:e.rank,source:k},`${e.model}-${e.category}`),h[21]=x,h[22]=k,h[23]=e):e=h[23],p=g.map(e),h[17]=x,h[18]=g,h[19]=k,h[20]=p}else p=h[20];return h[24]!==p?(m=(0,t.jsx)(N.T,{align:"end",className:"flex w-min flex-wrap gap-1.5 p-2",children:p}),h[24]=p,h[25]=m):m=h[25],h[26]!==S||h[27]!==d||h[28]!==m?(f=(0,t.jsxs)(N.V,{open:S,onOpenChange:T,children:[d,m]}),h[26]=S,h[27]=d,h[28]=m,h[29]=f):f=h[29],f}function A(e,r){return(0,t.jsx)("div",{className:(0,n.f)("size-1.5 rounded-full","absolute ring-1 ring-background left-(--dot-left)",e),style:{"--dot-left":`${3*r}px`}},r)}function M(e){return y(e.category)}e.s(["f",0,function(e){let i,l,s,a,o,c,u,d,p,m,f,h,g,v=(0,r.c)(41),{basePathname:x,categories:k,className:w,source:y}=e,j=void 0===x?"/rankings":x,N=(0,b.useRef)(null),[_,S]=(0,b.useState)(!1);v[0]===Symbol.for("react.memo_cache_sentinel")?(i=()=>{let e=N.current;e&&S(e.scrollWidth-e.scrollLeft-e.clientWidth>1)},v[0]=i):i=v[0];let T=i;v[1]===Symbol.for("react.memo_cache_sentinel")?(l=()=>{let e=N.current;if(!e)return;T();let t=new ResizeObserver(T);return t.observe(e),e.addEventListener("scroll",T,{passive:!0}),()=>{t.disconnect(),e.removeEventListener("scroll",T)}},v[1]=l):l=v[1],v[2]!==k?(s=[T,k],v[2]=k,v[3]=s):s=v[3],(0,b.useEffect)(l,s);if(v[4]!==j||v[5]!==k||v[6]!==w||v[7]!==_||v[8]!==y){let e,r,i=k.slice(0,5);v[15]!==k?(e=(a=k.slice(5)).slice(0,3).map(M),v[15]=k,v[16]=a,v[17]=e):(a=v[16],e=v[17]),o=e,v[18]!==w?(p=(0,n.f)("relative min-w-0 w-full",w),v[18]=w,v[19]=p):p=v[19],c=N;let l=_&&"pr-6";v[20]!==l?(u=(0,n.f)("flex items-center justify-start gap-1.5","overflow-x-auto scrollbar-hide",l),v[20]=l,v[21]=u):u=v[21],v[22]!==j||v[23]!==y?(r=e=>(0,t.jsx)(F,{basePathname:j,category:e.category,rank:e.rank,source:y},`${e.model}-${e.category}`),v[22]=j,v[23]=y,v[24]=r):r=v[24],d=i.map(r),v[4]=j,v[5]=k,v[6]=w,v[7]=_,v[8]=y,v[9]=a,v[10]=o,v[11]=c,v[12]=u,v[13]=d,v[14]=p}else a=v[9],o=v[10],c=v[11],u=v[12],d=v[13],p=v[14];return v[25]!==j||v[26]!==a||v[27]!==o||v[28]!==y?(m=a.length>2&&(0,t.jsx)($,{basePathname:j,remainingCategories:a,remainingColors:o,source:y}),v[25]=j,v[26]=a,v[27]=o,v[28]=y,v[29]=m):m=v[29],v[30]!==c||v[31]!==u||v[32]!==d||v[33]!==m?(f=(0,t.jsxs)("div",{ref:c,className:u,children:[d,m]}),v[30]=c,v[31]=u,v[32]=d,v[33]=m,v[34]=f):f=v[34],v[35]!==_?(h=_&&(0,t.jsx)("div",{className:(0,n.f)("absolute right-0 top-0","h-full w-6","pointer-events-none bg-gradient-to-r from-transparent to-background")}),v[35]=_,v[36]=h):h=v[36],v[37]!==f||v[38]!==h||v[39]!==p?(g=(0,t.jsxs)("div",{className:p,children:[f,h]}),v[37]=f,v[38]=h,v[39]=p,v[40]=g):g=v[40],g}],487481)},493630,e=>{"use strict";var t=e.i(659350),r=e.i(663456),i=e.i(136562),n=e.i(16043);let l=(0,n.createContext)(null);function s(e){let i,n,s=(0,r.c)(5),{children:a,isLinked:o}=e;s[0]!==o?(i={isLinked:o},s[0]=o,s[1]=i):i=s[1];let c=i;return s[2]!==a||s[3]!==c?(n=(0,t.jsx)(l,{value:c,children:a}),s[2]=a,s[3]=c,s[4]=n):n=s[4],n}function a(e){let n,l,a,o,c,u,d,p,m,f,h=(0,r.c)(20);h[0]!==e?({children:n,className:l,"data-testid":a,isLinked:u,paddingClassName:o,...c}=e,h[0]=e,h[1]=n,h[2]=l,h[3]=a,h[4]=o,h[5]=c,h[6]=u):(n=h[1],l=h[2],a=h[3],o=h[4],c=h[5],u=h[6]);let g=void 0===u||u;return h[7]!==l||h[8]!==o?(d=(0,i.f)("flex w-full items-center justify-between",o,"flex-col md:above-phone:flex-row","gap-3 phone:gap-2",l),h[7]=l,h[8]=o,h[9]=d):d=h[9],h[10]!==n?(p=(0,t.jsx)("div",{className:"flex w-full flex-col gap-2",children:n}),h[10]=n,h[11]=p):p=h[11],h[12]!==a||h[13]!==c||h[14]!==d||h[15]!==p?(m=(0,t.jsx)("div",{...c,"data-testid":a,className:d,children:p}),h[12]=a,h[13]=c,h[14]=d,h[15]=p,h[16]=m):m=h[16],h[17]!==g||h[18]!==m?(f=(0,t.jsx)(s,{isLinked:g,children:m}),h[17]=g,h[18]=m,h[19]=f):f=h[19],f}e.s(["f",0,{Root:function(e){let i,n=(0,r.c)(2);return n[0]!==e?(i=(0,t.jsx)(a,{...e,paddingClassName:"py-5 phone:py-4"}),n[0]=e,n[1]=i):i=n[1],i},ListRoot:function(e){let i,n=(0,r.c)(2);return n[0]!==e?(i=(0,t.jsx)(a,{...e,paddingClassName:"py-4"}),n[0]=e,n[1]=i):i=n[1],i},HeaderRow:function(e){let i,n=(0,r.c)(2),{children:l}=e;return n[0]!==l?(i=(0,t.jsx)("div",{className:"flex items-start justify-between phone:items-baseline md:above-phone:pr-0",children:l}),n[0]=l,n[1]=i):i=n[1],i},TitleCluster:function(e){let i,n=(0,r.c)(2),{children:l}=e;return n[0]!==l?(i=(0,t.jsx)("div",{className:"w-full min-w-0 items-center gap-1.5 phone:[&>*]:align-middle md:above-phone:flex md:above-phone:w-[calc(100%-10rem)]",children:l}),n[0]=l,n[1]=i):i=n[1],i},Title:function(e){let s,a,o=(0,r.c)(5),{children:c}=e,{isLinked:u}=function(){let e=(0,n.use)(l);if(!e)throw Error("ModelsPageListItemShell subcomponents must be used within Root or ListRoot");return e}(),d=u&&"transition-colors hover:text-accent-foreground hover:underline";return o[0]!==d?(s=(0,i.f)(d,"text-foreground underline-offset-2","text-base font-semibold leading-snug phone:text-sm"),o[0]=d,o[1]=s):s=o[1],o[2]!==c||o[3]!==s?(a=(0,t.jsx)("span",{className:s,children:c}),o[2]=c,o[3]=s,o[4]=a):a=o[4],a},WeeklyTokens:function(e){let n,l,s=(0,r.c)(3),{children:a}=e;return s[0]===Symbol.for("react.memo_cache_sentinel")?(n=(0,i.f)("flex shrink-0 items-center gap-1 text-xs text-muted-foreground","justify-end md:above-phone:w-40"),s[0]=n):n=s[0],s[1]!==a?(l=(0,t.jsx)("div",{className:n,children:a}),s[1]=a,s[2]=l):l=s[2],l},Categories:function(e){let n,l,s=(0,r.c)(5),{children:a,className:o}=e;return s[0]!==o?(n=(0,i.f)("relative flex w-fit max-w-full min-w-0 self-start",o),s[0]=o,s[1]=n):n=s[1],s[2]!==a||s[3]!==n?(l=(0,t.jsx)("div",{className:n,children:a}),s[2]=a,s[3]=n,s[4]=l):l=s[4],l},Description:function(e){let i,n=(0,r.c)(2),{children:l}=e;return n[0]!==l?(i=(0,t.jsx)("div",{className:"flex min-h-10 flex-col gap-1.5 phone:min-h-0",children:l}),n[0]=l,n[1]=i):i=n[1],i},Footer:function(e){let n,l,s=(0,r.c)(4),{children:a,ref:o}=e;return s[0]===Symbol.for("react.memo_cache_sentinel")?(n=(0,i.f)("relative flex items-center gap-2 text-xs text-muted-foreground","whitespace-nowrap overflow-x-auto scrollbar-hide","max-md:pointer-events-auto phone:pointer-events-auto","md:above-phone:overflow-hidden md:above-phone:text-ellipsis"),s[0]=n):n=s[0],s[1]!==a||s[2]!==o?(l=(0,t.jsx)("div",{ref:o,className:n,children:a}),s[1]=a,s[2]=o,s[3]=l):l=s[3],l},FooterDivider:function(e){let n,l,s=(0,r.c)(4),{className:a}=e;return s[0]!==a?(n=(0,i.f)("h-3 border-l",a),s[0]=a,s[1]=n):n=s[1],s[2]!==n?(l=(0,t.jsx)("span",{className:n}),s[2]=n,s[3]=l):l=s[3],l}}])},294241,e=>{"use strict";var t=e.i(659350),r=e.i(663456),i=e.i(293747),n=e.i(706792),l=e.i(138257),s=e.i(199168),a=e.i(140691),o=e.i(690387),c=e.i(784374),u=e.i(192577);function d(e){let d,p,m,f=(0,r.c)(25),{item:h,unit:g}=e,v=(0,l.useLocale)(),x=(0,s.M)();if(h.kind===n.H.Schedule){let e;return f[0]!==h.scheduleExceptions||f[1]!==h.scheduleWindows?(e=(0,t.jsx)("span",{className:"text-muted-foreground pl-2",children:(0,t.jsx)(c.f,{windows:h.scheduleWindows,exceptions:h.scheduleExceptions})}),f[0]=h.scheduleExceptions,f[1]=h.scheduleWindows,f[2]=e):e=f[2],e}if(h.tiers&&h.tiers.length>1){let e,r;if(f[3]!==h.displayMultiplier||f[4]!==h.tiers||f[5]!==v||f[6]!==x||f[7]!==g){let r;f[9]!==h.displayMultiplier||f[10]!==v||f[11]!==x||f[12]!==g?(r=e=>(0,t.jsxs)("span",{className:"text-muted-foreground",children:[(0,u.f)(x,e.sku_label),":"," ",(0,o.i)(`${(0,i.f)((0,a.I)(e.price).times(h.displayMultiplier),{locale:v,preset:"model-price"})??"—"}`,g)]},e.sku_label),f[9]=h.displayMultiplier,f[10]=v,f[11]=x,f[12]=g,f[13]=r):r=f[13],e=h.tiers.map(r),f[3]=h.displayMultiplier,f[4]=h.tiers,f[5]=v,f[6]=x,f[7]=g,f[8]=e}else e=f[8];return f[14]!==e?(r=(0,t.jsx)("div",{className:"flex flex-col gap-0.5 pl-2",children:e}),f[14]=e,f[15]=r):r=f[15],r}f[16]!==h.displayMultiplier||f[17]!==h.price||f[18]!==v?(d=(0,i.f)((0,a.I)(h.price).times(h.displayMultiplier),{locale:v,preset:"model-price"})??"—",f[16]=h.displayMultiplier,f[17]=h.price,f[18]=v,f[19]=d):d=f[19];let b=`${d}`;return f[20]!==b||f[21]!==g?(p=(0,o.i)(b,g),f[20]=b,f[21]=g,f[22]=p):p=f[22],f[23]!==p?(m=(0,t.jsx)("span",{className:"text-muted-foreground pl-2",children:p}),f[23]=p,f[24]=m):m=f[24],m}e.s(["f",0,function(e){let i,n,l=(0,r.c)(7),{items:a}=e,o=(0,s.M)();if(l[0]!==a||l[1]!==o){let e;l[3]!==o?(e=e=>{let r=e.unitLabel;return(0,t.jsxs)("div",{className:"flex flex-col gap-0.5",children:[(0,t.jsx)("span",{className:"font-medium text-popover-foreground",children:(0,u.f)(o,e.sku_label)}),(0,t.jsx)(d,{item:e,unit:r})]},e.sku_label)},l[3]=o,l[4]=e):e=l[4],i=a.map(e),l[0]=a,l[1]=o,l[2]=i}else i=l[2];return l[5]!==i?(n=(0,t.jsx)("div",{className:"flex flex-col gap-2 p-1",children:i}),l[5]=i,l[6]=n):n=l[6],n}])},725072,e=>{"use strict";var t=e.i(782143),r=e.i(579841),i=e.i(427150),n=e.i(667417);e.i(707060);var l=e.i(387086);function s(e){return(0,r.W)(e)?"video-hours":e.includes(n.j.Transcription)?"transcribed-characters":"tokens"}e.s(["L",0,function(e,{outputModalities:r,row:n,gt:a=l.Y,timeLabel:o=a("7 days")}){if(!n)return null;let c=s(r);if("video-hours"===c&&(0,i.f)(n.video_output_seconds))return n.video_output_seconds>0?{text:function({gt:e,locale:r},i){let n=i/3600;if(n<1)return e("<1 hour");let l=Math.round(n),s=(0,t.f)(l,{locale:r,preset:"compact-rounded-thousands"})??"—";return e(1===l?"{count} hour":"{count} hours",{count:s})}({gt:a,locale:e},n.video_output_seconds),tooltip:a("Video generated in the last {timeLabel}",{timeLabel:o})}:null;if("transcribed-characters"===c&&(0,i.f)(n.stt_transcript_characters))return n.stt_transcript_characters>0?{text:a("{count} characters",{count:(0,t.f)(n.stt_transcript_characters,{locale:e,preset:"compact-rounded-thousands"})??"—"}),tooltip:a("Characters transcribed in the last {timeLabel}",{timeLabel:o})}:null;let u=n.total_prompt_tokens+(n.total_completion_tokens??0);return u>0?{text:a("{count} tokens",{count:(0,t.f)(u,{locale:e,preset:"compact-rounded-thousands"})??"—"}),tooltip:a("Tokens processed in the last {timeLabel}",{timeLabel:o})}:null},"f",0,s])},596369,e=>{"use strict";var t=e.i(659350),r=e.i(663456),i=e.i(136562),n=e.i(954217);e.i(707060);var l=e.i(196991),s=e.i(153746);e.s(["f",0,function(e){let a,o,c,u,d=(0,r.c)(12),{author:p,displayName:m,className:f,linkClassName:h,prefetch:g}=e,v=`/${p}`;d[0]!==h?(a=(0,i.f)("text-inherit",h),d[0]=h,d[1]=a):a=d[1];let x=m??p;return d[2]!==x?(o=(0,t.jsx)(s.d,{children:x}),d[2]=x,d[3]=o):o=d[3],d[4]!==g||d[5]!==v||d[6]!==a||d[7]!==o?(c=(0,t.jsx)(n.TextLink,{href:v,prefetch:g,className:a,children:o}),d[4]=g,d[5]=v,d[6]=a,d[7]=o,d[8]=c):c=d[8],d[9]!==f||d[10]!==c?(u=(0,t.jsx)(l.T,{children:(0,t.jsxs)("span",{className:f,children:["by"," ",c]})}),d[9]=f,d[10]=c,d[11]=u):u=d[11],u}])},916998,277582,e=>{"use strict";var t=e.i(659350),r=e.i(663456);function i(e){return"number"==typeof e&&e>0&&e<1}function n(e){return`${Math.round(100*e)}% off`}e.s(["m",0,n,"i",0,i],277582);var l=e.i(136562),s=e.i(233452);e.s(["f",0,function(e){let a,o,c,u=(0,r.c)(21),{discount:d,variant:p,className:m}=e,f=void 0===p?"prominent":p;if(!i(d))return null;if("caption"===f){let e,r,i;return u[0]!==m?(e=(0,l.f)("shrink-0 text-caption font-medium text-positive-text",m),u[0]=m,u[1]=e):e=u[1],u[2]!==d?(r=n(d),u[2]=d,u[3]=r):r=u[3],u[4]!==e||u[5]!==r?(i=(0,t.jsx)("span",{className:e,children:r}),u[4]=e,u[5]=r,u[6]=i):i=u[6],i}if("subdued"===f){let e,r,i;return u[7]!==m?(e=(0,l.f)("shrink-0 text-xs font-medium text-positive-text",m),u[7]=m,u[8]=e):e=u[8],u[9]!==d?(r=n(d),u[9]=d,u[10]=r):r=u[10],u[11]!==e||u[12]!==r?(i=(0,t.jsx)("span",{className:e,children:r}),u[11]=e,u[12]=r,u[13]=i):i=u[13],i}return u[14]!==m?(a=(0,l.f)("shrink-0",m),u[14]=m,u[15]=a):a=u[15],u[16]!==d?(o=n(d),u[16]=d,u[17]=o):o=u[17],u[18]!==a||u[19]!==o?(c=(0,t.jsx)(s.Badge,{variant:"positive",size:"sm",className:a,children:o}),u[18]=a,u[19]=o,u[20]=c):c=u[20],c}],916998)},690387,e=>{"use strict";var t=e.i(293747),r=e.i(706792),i=e.i(140691);let n="/M tokens",l=["prompt","completion","request","image","image_token","image_output","audio","audio_output","input_audio_cache","input_cache_read","input_cache_write","input_cache_write_1h","web_search","internal_reasoning"];function s(e){return e.length>0&&!e.some(e=>!(0,i.I)(e.price).isZero()||e.tiers?.some(e=>!(0,i.I)(e.price).isZero())===!0)}function a(e,n,l){if(0===n.length)return;let s=l?.keepTrailingZeroes?"model-price-fixed":"model-price",a=n.filter(e=>"token"===e.kind),u=(0,r.T)(n);if(u)return function({locale:e,preset:r},{media:n,inputItem:l,outputItem:s}){return{kind:"standard-tokens",media:n,inputPrice:(0,t.f)((0,i.I)(l.price).times(l.displayMultiplier),{locale:e,preset:r})??"—",inputUnit:c(l),outputPrice:(0,t.f)((0,i.I)(s.price).times(s.displayMultiplier),{locale:e,preset:r})??"—",outputUnit:c(s)}}({locale:e,preset:s},u);let d=(0,r.U)(n);if(!d){if(a[0]){let r=a[0],s=`${(0,t.f)((0,i.I)(r.price).times(r.displayMultiplier),{locale:e,preset:l?.keepTrailingZeroes?"model-price-fixed":"model-price"})??"—"}`,u=c(r);return{kind:"custom",label:o(s,u),priceOnly:s,unit:u,hasDetails:n.length>1}}return}let p=`${(0,t.f)((0,i.I)(d.price).times(d.displayMultiplier),{locale:e,preset:l?.keepTrailingZeroes?"model-price-fixed":"model-price"})??"—"}`,m=d.unitLabel;return{kind:"custom",label:d.hasDetails?`from ${o(p,m)}`:o(p,m),priceOnly:d.hasDetails?`from ${p}`:p,unit:m,hasDetails:d.hasDetails}}function o(e,t){var r;return`${e}${(r=t)?r.startsWith("/")?r:` ${r}`:""}`}function c(e){if("token"===e.kind){if(1e6===e.displayMultiplier)return n;if(1e3===e.displayMultiplier)return"/K tokens"}return e.unitLabel}e.s(["z",0,1e6,"u",0,function(e,r,l){return a(e,l)??function(e,r){if(r&&(0,i.I)(r.prompt).isFinite()&&(0,i.I)(r.completion).isFinite()&&!((0,i.I)(r.prompt).isZero()&&(0,i.I)(r.completion).isZero()))return{kind:"standard-tokens",media:"text",inputPrice:(0,t.f)((0,i.I)(r.prompt).times(1e6),{locale:e,preset:"model-price"})??"—",inputUnit:n,outputPrice:(0,t.f)((0,i.I)(r.completion).times(1e6),{locale:e,preset:"model-price"})??"—",outputUnit:n}}(e,r?.pricing)},"J",0,a,"w",0,c,"C",0,s,"h",0,function(e,t){var r;return e?.is_free===!0||(t.length>0?s(t):!!(r=e?.pricing)&&l.every(e=>{let t=r[e];return void 0===t||(0,i.I)(t).isZero()}))},"i",0,o])}]); //# sourceMappingURL=2lcezykd74gbl.js.map