!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]="01a099a4-b916-71d1-a893-601fb9ed9f85")}catch(e){}}();(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,112272,e=>{"use strict";let t=/([\p{Ll}\d])(\p{Lu})/gu,n=/(\p{Lu})([\p{Lu}][\p{Ll}])/gu,r=/(\d)\p{Ll}|(\p{L})\d/u,i=/[^\p{L}\d]+/giu,s="$1\0$2";function a(e){let r=e.trim();r=(r=r.replace(t,s).replace(n,s)).replace(i,"\0");let a=0,l=r.length;for(;"\0"===r.charAt(a);)a++;if(a===l)return[];for(;"\0"===r.charAt(l-1);)l--;return r.slice(a,l).split(/\0/g)}function l(e){let t=a(e);for(let e=0;ee.toLowerCase():t=>t.toLocaleLowerCase(e)}function u(e){return!1===e?e=>e.toUpperCase():t=>t.toLocaleUpperCase(e)}function d(e,t){return n=>`${t(n[0])}${e(n.slice(1))}`}function m(e,t={}){let n=t.split??(t.separateNumbers?l:a),r=t.prefixCharacters??"",i=t.suffixCharacters??"",s=0,o=e.length;for(;ss;){let t=o-1,n=e.charAt(t);if(!i.includes(n))break;o=t}return[e.slice(0,s),n(e.slice(s,o)),e.slice(o)]}e.s(["capitalCase",0,function(e,t){let[n,r,i]=m(e,t),s=c(t?.locale),a=u(t?.locale);return n+r.map(d(s,a)).join(t?.delimiter??" ")+i},"kebabCase",0,function(e,t){return o(e,{delimiter:"-",...t})},"sentenceCase",0,function(e,t){let[n,r,i]=m(e,t),s=c(t?.locale),a=d(s,u(t?.locale));return n+r.map((e,t)=>0===t?a(e):s(e)).join(t?.delimiter??" ")+i},"snakeCase",0,function(e,t){return o(e,{delimiter:"_",...t})}])},535316,e=>{"use strict";var t,n=e.i(217631),r=e.i(112272),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);let s=Object.values(i).reduce((e,t)=>(e[t]="marketing/seo"===t?"SEO":(0,r.sentenceCase)(t),e),{});e.s(["UseCaseCategory",()=>i,"getUseCaseCategoryDisplayName",0,e=>"all"===e?"All":(0,n.isMember)(e,i)?s[e]:"Other"])},963,e=>{"use strict";var t,n,r=((t={}).Text="text",t.Image="image",t.Embeddings="embeddings",t.Audio="audio",t.Video="video",t.Rerank="rerank",t.TTS="speech",t.Transcription="transcription",t);let i=new Set(["embeddings","rerank","speech","transcription"]),s=new Set(["embeddings","rerank"]),a=new Set(["text","image"]);function l(e){return 0===e.length||e.some(e=>a.has(e))&&!e.some(e=>i.has(e))}function o(e){return e.includes("video")&&!l(e)}var c=((n={}).Text="text",n.Image="image",n.File="file",n.Audio="audio",n.Video="video",n);e.s(["InputModality",()=>c,"NON_GENERATIVE_OUTPUT_MODALITIES",0,s,"OUTPUT_MODALITY_LABELS",0,{text:"Text",image:"Image",embeddings:"Embeddings",audio:"Audio",video:"Video",rerank:"Rerank",speech:"Speech",transcription:"Transcription"},"OutputModality",()=>r,"USER_FACING_OUTPUT_MODALITIES",0,["text","image","video","speech","transcription","embeddings","rerank","audio"],"isChatroomSelectableModel",0,function(e){return l(e)||o(e)},"isChattableModel",0,l,"isNonChattableVideoModel",0,o,"isTextOnly",0,function(e){return 1===e.length&&e.includes("text")}])},350782,e=>{"use strict";var t=e.i(719929),n=e.i(462904),r=e.i(693697);let i=/^[A-Za-z0-9+/\-_=\s]*$/,s=/^$/,a="data:",l=";base64,";function o(e){let t=i.test(e);return s.test(""),t}e.s(["decodeBase64DataURL",0,function(e){let i=e.indexOf(";");if(e.startsWith(a)&&i>a.length&&e.startsWith(l,i)){let t=e.slice(a.length,i),n=e.slice(i+l.length);if(t&&n&&!t.includes(":")&&o(n))return(0,r.ok)({mimeType:t,base64:n})}return function(e){let[i,s]=e.split(";");if(!i||!s)return(0,n.errT)({location:"decodeBase64DataURL",status:t.HTTPStatus.S400_Bad_Request,rawError:"Invalid base64 data URL: missing data prefix or base64 payload"});let a=i.split(":")[1],l=s.split(",")[1];return a&&l?o(l)?(0,r.ok)({mimeType:a,base64:l}):(0,n.errT)({location:"decodeBase64DataURL",status:t.HTTPStatus.S400_Bad_Request,rawError:"Invalid base64 data URL: payload is not base64-encoded data"}):(0,n.errT)({location:"decodeBase64DataURL",status:t.HTTPStatus.S400_Bad_Request,rawError:"Invalid base64 data URL: missing mime type or base64 content"})}(e)},"encodeBase64DataURL",0,function({mimeType:e,base64:t}){return`data:${e};base64,${t}`},"isBase64DataURLString",0,function(e){return e.startsWith("data:")&&e.includes(";base64,",5)&&!e.includes("\n")&&!e.includes("\r")&&!e.includes("\u2028")&&!e.includes("\u2029")}])},626961,725072,487481,e=>{"use strict";var t=e.i(222666),n=e.i(505962),r=e.i(452473),i=e.i(648156),s=e.i(779100),a=e.i(238525),l=e.i(916998),o=e.i(690387),c=e.i(501158);let u=e=>{let r,i,s=(0,n.c)(3),{children:a}=e;return s[0]===Symbol.for("react.memo_cache_sentinel")?(r=(0,t.jsx)("span",{className:"h-3 border-l"}),s[0]=r):r=s[0],s[1]!==a?(i=(0,t.jsxs)(t.Fragment,{children:[r,(0,t.jsx)("span",{children:a})]}),s[1]=a,s[2]=i):i=s[2],i},d=e=>{let i,s,a=(0,n.c)(3),{children:l}=e;return a[0]===Symbol.for("react.memo_cache_sentinel")?(i=(0,r.cn)("border-l","mb-2 w-1/2 px-2 sm:w-1/3","lg:mt-0 lg:w-auto"),a[0]=i):i=a[0],a[1]!==l?(s=(0,t.jsx)("span",{className:i,children:l}),a[1]=l,a[2]=s):s=a[2],s};function m(e){let r,i,s=(0,n.c)(5),{discount:o,Wrapper:c,showDiscount:u}=e;return u&&(0,a.isValidDiscount)(o)?(s[0]!==o?(r=(0,t.jsx)(l.DiscountBadge,{discount:o,variant:"subdued"}),s[0]=o,s[1]=r):r=s[1],s[2]!==c||s[3]!==r?(i=(0,t.jsx)(c,{children:r}),s[2]=c,s[3]=r,s[4]=i):i=s[4],i):null}function f(e){let i,s,a,l,o=(0,n.c)(10),{unit:c,direction:u,variant:d}=e;o[0]!==c?(i=c.endsWith(" tokens")?c.slice(0,-7):c,o[0]=c,o[1]=i):i=o[1];let m=i,f="list"===d&&"hidden md:inline";return o[2]!==f?(s=(0,r.cn)(f),o[2]=f,o[3]=s):s=o[3],o[4]!==s?(a=(0,t.jsx)("span",{className:s,children:"tokens"}),o[4]=s,o[5]=a):a=o[5],o[6]!==u||o[7]!==a||o[8]!==m?(l=(0,t.jsxs)(t.Fragment,{children:[m," ",u," ",a]}),o[6]=u,o[7]=a,o[8]=m,o[9]=l):l=o[9],l}e.s(["CompactDisplayPricing",0,function(e){let a,l=(0,n.c)(37),{displayPricing:p,discount:h,className:g,variant:x,showDiscount:b}=e,v=void 0===x?"list":x,y=void 0===b||b,j=(0,s.useLocale)(),C="detail"===v?d:u;if(l[0]!==C||l[1]!==g||l[2]!==h||l[3]!==p||l[4]!==j||l[5]!==y||l[6]!==v){a=Symbol.for("react.early_return_sentinel");e:{let e=(0,o.deriveInlinePricing)(j,p);if(!e){a=null;break e}switch(e.kind){case"standard-tokens":{let n;l[8]!==C||l[9]!==h||l[10]!==y?(n=(0,t.jsx)(m,{discount:h,Wrapper:C,showDiscount:y}),l[8]=C,l[9]=h,l[10]=y,l[11]=n):n=l[11],a=(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)(C,{children:[e.inputPrice,(0,t.jsx)(f,{unit:e.inputUnit,direction:"input",variant:v})]}),(0,t.jsxs)(C,{children:[e.outputPrice,(0,t.jsx)(f,{unit:e.outputUnit,direction:"output",variant:v})]}),n]});break e}case"custom":{let n,s,o,u,d,f=(0,t.jsx)("span",{className:(0,r.cn)(e.hasDetails&&"underline decoration-dotted underline-offset-2 cursor-help",g),children:e.label});if(!e.hasDetails){let e,n,r;l[12]!==C||l[13]!==f?(e=(0,t.jsx)(C,{children:f}),l[12]=C,l[13]=f,l[14]=e):e=l[14],l[15]!==C||l[16]!==h||l[17]!==y?(n=(0,t.jsx)(m,{discount:h,Wrapper:C,showDiscount:y}),l[15]=C,l[16]=h,l[17]=y,l[18]=n):n=l[18],l[19]!==e||l[20]!==n?(r=(0,t.jsxs)(t.Fragment,{children:[e,n]}),l[19]=e,l[20]=n,l[21]=r):r=l[21],a=r;break e}l[22]!==p?(n=(0,t.jsx)(c.PricingTooltipContent,{items:p}),l[22]=p,l[23]=n):n=l[23],l[24]!==f||l[25]!==n?(s=(0,t.jsx)(i.Tooltip,{side:"bottom",content:n,className:"max-w-80",children:f}),l[24]=f,l[25]=n,l[26]=s):s=l[26],l[27]!==C||l[28]!==s?(o=(0,t.jsx)(C,{children:s}),l[27]=C,l[28]=s,l[29]=o):o=l[29],l[30]!==C||l[31]!==h||l[32]!==y?(u=(0,t.jsx)(m,{discount:h,Wrapper:C,showDiscount:y}),l[30]=C,l[31]=h,l[32]=y,l[33]=u):u=l[33],l[34]!==o||l[35]!==u?(d=(0,t.jsxs)(t.Fragment,{children:[o,u]}),l[34]=o,l[35]=u,l[36]=d):d=l[36],a=d;break e}default:a=null;break e}}l[0]=C,l[1]=g,l[2]=h,l[3]=p,l[4]=j,l[5]=y,l[6]=v,l[7]=a}else a=l[7];if(a!==Symbol.for("react.early_return_sentinel"))return a}],626961);var p=e.i(963),h=e.i(370066),g=e.i(586404);e.s(["getModelListMetric",0,function(e,{outputModalities:t,row:n,timeLabel:r="7 days"}){if(!n)return null;if((0,p.isNonChattableVideoModel)(t)&&(0,g.isDefinedAndNotNull)(n.video_output_seconds))return n.video_output_seconds>0?{text:function(e,t){let n=t/3600;if(n<1)return"<1 hour";let r=Math.round(n);return`${(0,h.formatNumber)(r,{locale:e,preset:"compact-rounded-thousands"})??"—"} ${1===r?"hour":"hours"}`}(e,n.video_output_seconds),tooltip:`Video generated in the last ${r}`}:null;if(t.includes(p.OutputModality.Transcription)&&(0,g.isDefinedAndNotNull)(n.stt_transcript_characters))return n.stt_transcript_characters>0?{text:`${(0,h.formatNumber)(n.stt_transcript_characters,{locale:e,preset:"compact-rounded-thousands"})??"—"} characters`,tooltip:`Characters transcribed in the last ${r}`}:null;let i=n.total_prompt_tokens+(n.total_completion_tokens??0);return i>0?{text:`${(0,h.formatNumber)(i,{locale:e,preset:"compact-rounded-thousands"})??"—"} tokens`,tooltip:`Tokens processed in the last ${r}`}:null}],725072);var x=e.i(270401),b=e.i(535316);let v={all:"bg-foreground",[b.UseCaseCategory.Roleplay]:"bg-chart-5",[b.UseCaseCategory.Programming]:"bg-chart-6",[b.UseCaseCategory.Marketing]:"bg-chart-4",[b.UseCaseCategory.MarketingSeo]:"bg-chart-4",[b.UseCaseCategory.Technology]:"bg-chart-3",[b.UseCaseCategory.Science]:"bg-chart-3",[b.UseCaseCategory.Translation]:"bg-chart-2",[b.UseCaseCategory.Legal]:"bg-chart-1",[b.UseCaseCategory.Finance]:"bg-chart-1",[b.UseCaseCategory.Health]:"bg-chart-2",[b.UseCaseCategory.Trivia]:"bg-chart-6",[b.UseCaseCategory.Academia]:"bg-chart-5"},y=e=>v[e]??"bg-chart-6";var j=e.i(970654),C=e.i(528164),k=e.i(778084),_=e.i(553215),T=e.i(806024),N=e.i(252358);let w=e=>{let i,s,a,l,o,c,u,d,m,f,p,h,g=(0,n.c)(27);g[0]!==e?({category:i,rank:l,className:s,hideColor:c,ref:o,...a}=e,g[0]=e,g[1]=i,g[2]=s,g[3]=a,g[4]=l,g[5]=o,g[6]=c):(i=g[1],s=g[2],a=g[3],l=g[4],o=g[5],c=g[6]);let x=void 0!==c&&c;g[7]!==i?(u="all"===i?"All Categories":(0,b.getUseCaseCategoryDisplayName)(i),g[7]=i,g[8]=u):u=g[8],g[9]!==i?(d=y(i),g[9]=i,g[10]=d):d=g[10],g[11]!==u||g[12]!==d?(m={name:u,color:d},g[11]=u,g[12]=d,g[13]=m):m=g[13];let v=m;g[14]!==s?(f=(0,r.cn)("w-full truncate","flex items-center gap-1",s),g[14]=s,g[15]=f):f=g[15];let j=l?`Ranked at #${l} in ${v.name} category`:`View the ${v.name} category`;g[16]!==x||g[17]!==v.color?(p=!x&&(0,t.jsx)("div",{className:(0,r.cn)("size-1.5 shrink-0 rounded-full",v.color)}),g[16]=x,g[17]=v.color,g[18]=p):p=g[18];let C=void 0!==l&&` (#${l})`;return g[19]!==a||g[20]!==o||g[21]!==v.name||g[22]!==f||g[23]!==j||g[24]!==p||g[25]!==C?(h=(0,t.jsxs)("span",{ref:o,className:f,...a,title:j,children:[p,v.name,C]}),g[19]=a,g[20]=o,g[21]=v.name,g[22]=f,g[23]=j,g[24]=p,g[25]=C,g[26]=h):h=g[26],h},U=e=>{let i,s,a,l,o,c,u,d,m,f,p,h,g,x,b,v,y=(0,n.c)(38);y[0]!==e?({category:i,rank:u,disabled:a,onClick:o,className:s,hideColor:l,basePathname:f,source:m,ref:d,...c}=e,y[0]=e,y[1]=i,y[2]=s,y[3]=a,y[4]=l,y[5]=o,y[6]=c,y[7]=u,y[8]=d,y[9]=m,y[10]=f):(i=y[1],s=y[2],a=y[3],l=y[4],o=y[5],c=y[6],u=y[7],d=y[8],m=y[9],f=y[10]);let k=void 0===f?"/rankings":f,U=(0,N.usePosthogClient)();y[11]!==k||y[12]!==i||y[13]!==o||y[14]!==U||y[15]!==u||y[16]!==m?(p=e=>{U.capture(_.PostHogEvent.ClickTopCategoryRankChip,{category:i,rank:u??null,base_pathname:k,source:m}),o&&(e.preventDefault(),o(e))},y[11]=k,y[12]=i,y[13]=o,y[14]=U,y[15]=u,y[16]=m,y[17]=p):p=y[17];let L=p;y[18]!==k||y[19]!==a?(h=a?void 0:(0,t.jsx)(T.Link,{href:k}),y[18]=k,y[19]=a,y[20]=h):h=y[20],y[21]!==s?(g=(0,r.cn)((0,j.badgeVariants)({variant:"default",size:"sm"}),"h-6 shrink-0","disabled:cursor-not-allowed disabled:border-foreground disabled:opacity-100",s),y[21]=s,y[22]=g):g=y[22];let S=a&&"text-foreground";return y[23]!==S?(x=(0,r.cn)(S),y[23]=S,y[24]=x):x=y[24],y[25]!==i||y[26]!==l||y[27]!==u||y[28]!==x?(b=(0,t.jsx)(w,{category:i,rank:u,hideColor:l,className:x}),y[25]=i,y[26]=l,y[27]=u,y[28]=x,y[29]=b):b=y[29],y[30]!==a||y[31]!==L||y[32]!==c||y[33]!==d||y[34]!==h||y[35]!==g||y[36]!==b?(v=(0,t.jsx)(C.Button,{ref:d,onClick:L,size:"xs",variant:"outline",disabled:a,render:h,className:g,...c,children:b}),y[30]=a,y[31]=L,y[32]=c,y[33]=d,y[34]=h,y[35]=g,y[36]=b,y[37]=v):v=y[37],v};function L(e){let i,s,a,l,o,c,u,d,m,f=(0,n.c)(26),{remainingCategories:p,remainingColors:h,basePathname:g,source:b}=e,v=p.length,[y,_]=(0,x.useState)(!1);if(f[0]!==y?(i=e=>{e.preventDefault(),_(!y)},f[0]=y,f[1]=i):i=f[1],f[2]===Symbol.for("react.memo_cache_sentinel")?(s=(0,r.cn)((0,j.badgeVariants)({variant:"default",size:"sm"}),"h-6 min-w-fit gap-5 truncate"),f[2]=s):s=f[2],f[3]!==h?(a=h.map(S),f[3]=h,f[4]=a):a=f[4],f[5]!==a?(l=(0,t.jsx)("div",{className:"relative flex h-full w-fit items-center",children:a}),f[5]=a,f[6]=l):l=f[6],f[7]!==v||f[8]!==l?(o=(0,t.jsxs)(C.Button,{size:"xs",variant:"outline",className:s,children:[l,"+",v," categories"]}),f[7]=v,f[8]=l,f[9]=o):o=f[9],f[10]!==i||f[11]!==o?(c=(0,t.jsx)(k.PopoverTrigger,{onClick:i,render:o}),f[10]=i,f[11]=o,f[12]=c):c=f[12],f[13]!==g||f[14]!==p||f[15]!==b){let e;f[17]!==g||f[18]!==b?(e=e=>(0,t.jsx)(U,{basePathname:g,category:e.category,rank:e.rank,source:b},`${e.model}-${e.category}`),f[17]=g,f[18]=b,f[19]=e):e=f[19],u=p.map(e),f[13]=g,f[14]=p,f[15]=b,f[16]=u}else u=f[16];return f[20]!==u?(d=(0,t.jsx)(k.PopoverContent,{align:"end",className:"flex w-min flex-wrap gap-1.5 p-2",children:u}),f[20]=u,f[21]=d):d=f[21],f[22]!==y||f[23]!==c||f[24]!==d?(m=(0,t.jsxs)(k.Popover,{open:y,onOpenChange:_,children:[c,d]}),f[22]=y,f[23]=c,f[24]=d,f[25]=m):m=f[25],m}function S(e,n){return(0,t.jsx)("div",{className:(0,r.cn)("size-1.5 rounded-full","absolute ring-1 ring-background",e),style:{left:`${3*n}px`}},n)}function D(e){return y(e.category)}e.s(["UseCaseCategoryChipGroup",0,function(e){let i,s,a,l,o,c,u,d,m,f,p,h,g,b=(0,n.c)(41),{basePathname:v,categories:y,className:j,source:C}=e,k=void 0===v?"/rankings":v,_=(0,x.useRef)(null),[T,N]=(0,x.useState)(!1);b[0]===Symbol.for("react.memo_cache_sentinel")?(i=()=>{let e=_.current;e&&N(e.scrollWidth-e.scrollLeft-e.clientWidth>1)},b[0]=i):i=b[0];let w=i;b[1]===Symbol.for("react.memo_cache_sentinel")?(s=()=>{let e=_.current;if(!e)return;w();let t=new ResizeObserver(w);return t.observe(e),e.addEventListener("scroll",w,{passive:!0}),()=>{t.disconnect(),e.removeEventListener("scroll",w)}},b[1]=s):s=b[1],b[2]!==y?(a=[w,y],b[2]=y,b[3]=a):a=b[3],(0,x.useEffect)(s,a);if(b[4]!==k||b[5]!==y||b[6]!==j||b[7]!==T||b[8]!==C){let e,n,i=y.slice(0,5);b[15]!==y?(e=(l=y.slice(5)).slice(0,3).map(D),b[15]=y,b[16]=l,b[17]=e):(l=b[16],e=b[17]),o=e,b[18]!==j?(m=(0,r.cn)("relative min-w-0 w-full",j),b[18]=j,b[19]=m):m=b[19],c=_;let s=T&&"pr-6";b[20]!==s?(u=(0,r.cn)("flex items-center justify-start gap-1.5","overflow-x-auto scrollbar-hide",s),b[20]=s,b[21]=u):u=b[21],b[22]!==k||b[23]!==C?(n=e=>(0,t.jsx)(U,{basePathname:k,category:e.category,rank:e.rank,source:C},`${e.model}-${e.category}`),b[22]=k,b[23]=C,b[24]=n):n=b[24],d=i.map(n),b[4]=k,b[5]=y,b[6]=j,b[7]=T,b[8]=C,b[9]=l,b[10]=o,b[11]=c,b[12]=u,b[13]=d,b[14]=m}else l=b[9],o=b[10],c=b[11],u=b[12],d=b[13],m=b[14];return b[25]!==k||b[26]!==l||b[27]!==o||b[28]!==C?(f=l.length>2&&(0,t.jsx)(L,{basePathname:k,remainingCategories:l,remainingColors:o,source:C}),b[25]=k,b[26]=l,b[27]=o,b[28]=C,b[29]=f):f=b[29],b[30]!==c||b[31]!==u||b[32]!==d||b[33]!==f?(p=(0,t.jsxs)("div",{ref:c,className:u,children:[d,f]}),b[30]=c,b[31]=u,b[32]=d,b[33]=f,b[34]=p):p=b[34],b[35]!==T?(h=T&&(0,t.jsx)("div",{className:(0,r.cn)("absolute right-0 top-0","h-full w-6","pointer-events-none bg-gradient-to-r from-transparent to-background")}),b[35]=T,b[36]=h):h=b[36],b[37]!==p||b[38]!==h||b[39]!==m?(g=(0,t.jsxs)("div",{className:m,children:[p,h]}),b[37]=p,b[38]=h,b[39]=m,b[40]=g):g=b[40],g}],487481)},493630,e=>{"use strict";var t=e.i(222666),n=e.i(505962),r=e.i(452473),i=e.i(763392),s=e.i(883992),a=e.i(270401);let l={p:e=>(0,t.jsx)(s.MarkdownP,{...e,className:(0,r.cn)("leading-[inherit]",e.className)})},o=(0,a.createContext)(null);function c(e){let r,i,s=(0,n.c)(5),{children:a,isLinked:l}=e;s[0]!==l?(r={isLinked:l},s[0]=l,s[1]=r):r=s[1];let c=r;return s[2]!==a||s[3]!==c?(i=(0,t.jsx)(o,{value:c,children:a}),s[2]=a,s[3]=c,s[4]=i):i=s[4],i}function u(e){let i,s,a,l,o,u,d,m,f,p,h=(0,n.c)(20);h[0]!==e?({children:i,className:s,"data-testid":a,isLinked:u,paddingClassName:l,...o}=e,h[0]=e,h[1]=i,h[2]=s,h[3]=a,h[4]=l,h[5]=o,h[6]=u):(i=h[1],s=h[2],a=h[3],l=h[4],o=h[5],u=h[6]);let g=void 0===u||u;return h[7]!==s||h[8]!==l?(d=(0,r.cn)("flex w-full items-center justify-between",l,"flex-col md:flex-row","gap-3",s),h[7]=s,h[8]=l,h[9]=d):d=h[9],h[10]!==i?(m=(0,t.jsx)("div",{className:"flex w-full flex-col gap-2",children:i}),h[10]=i,h[11]=m):m=h[11],h[12]!==a||h[13]!==o||h[14]!==d||h[15]!==m?(f=(0,t.jsx)("div",{...o,"data-testid":a,className:d,children:m}),h[12]=a,h[13]=o,h[14]=d,h[15]=m,h[16]=f):f=h[16],h[17]!==g||h[18]!==f?(p=(0,t.jsx)(c,{isLinked:g,children:f}),h[17]=g,h[18]=f,h[19]=p):p=h[19],p}e.s(["ModelsPageListItemShell",0,{Root:function(e){let r,i=(0,n.c)(2);return i[0]!==e?(r=(0,t.jsx)(u,{...e,paddingClassName:"py-5"}),i[0]=e,i[1]=r):r=i[1],r},ListRoot:function(e){let r,i=(0,n.c)(2);return i[0]!==e?(r=(0,t.jsx)(u,{...e,paddingClassName:"py-4"}),i[0]=e,i[1]=r):r=i[1],r},HeaderRow:function(e){let r,i=(0,n.c)(2),{children:s}=e;return i[0]!==s?(r=(0,t.jsx)("div",{className:"flex items-start justify-between md:pr-0",children:s}),i[0]=s,i[1]=r):r=i[1],r},TitleCluster:function(e){let r,i=(0,n.c)(2),{children:s}=e;return i[0]!==s?(r=(0,t.jsx)("div",{className:"w-full items-center gap-1.5 md:flex md:w-[calc(100%-10rem)]",children:s}),i[0]=s,i[1]=r):r=i[1],r},Title:function(e){let i,s,l=(0,n.c)(5),{children:c}=e,{isLinked:u}=function(){let e=(0,a.use)(o);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 l[0]!==d?(i=(0,r.cn)(d,"text-foreground underline-offset-2","text-base font-semibold leading-snug"),l[0]=d,l[1]=i):i=l[1],l[2]!==c||l[3]!==i?(s=(0,t.jsx)("span",{className:i,children:c}),l[2]=c,l[3]=i,l[4]=s):s=l[4],s},WeeklyTokens:function(e){let i,s,a=(0,n.c)(3),{children:l}=e;return a[0]===Symbol.for("react.memo_cache_sentinel")?(i=(0,r.cn)("flex shrink-0 items-center gap-1 text-xs text-muted-foreground","justify-end md:w-40"),a[0]=i):i=a[0],a[1]!==l?(s=(0,t.jsx)("div",{className:i,children:l}),a[1]=l,a[2]=s):s=a[2],s},Categories:function(e){let i,s,a=(0,n.c)(5),{children:l,className:o}=e;return a[0]!==o?(i=(0,r.cn)("relative flex w-fit max-w-full min-w-0 self-start",o),a[0]=o,a[1]=i):i=a[1],a[2]!==l||a[3]!==i?(s=(0,t.jsx)("div",{className:i,children:l}),a[2]=l,a[3]=i,a[4]=s):s=a[4],s},Description:function(e){let r,i=(0,n.c)(2),{children:s}=e;return i[0]!==s?(r=(0,t.jsx)("div",{className:"flex min-h-10 flex-col gap-1.5",children:s}),i[0]=s,i[1]=r):r=i[1],r},DescriptionText:function(e){let r,s,a=(0,n.c)(3),{children:o}=e;return a[0]===Symbol.for("react.memo_cache_sentinel")?(r=["ul","ol"],a[0]=r):r=a[0],a[1]!==o?(s=(0,t.jsx)(i.MarkdownContainer,{disableLink:!0,disallowedElements:r,className:"line-clamp-2 text-xs tracking-normal text-muted-foreground",components:l,children:o}),a[1]=o,a[2]=s):s=a[2],s},Footer:function(e){let i,s,a=(0,n.c)(4),{children:l,ref:o}=e;return a[0]===Symbol.for("react.memo_cache_sentinel")?(i=(0,r.cn)("relative flex items-center gap-2 text-xs text-muted-foreground","whitespace-nowrap overflow-x-auto scrollbar-hide","max-md:pointer-events-auto","md:overflow-hidden md:text-ellipsis"),a[0]=i):i=a[0],a[1]!==l||a[2]!==o?(s=(0,t.jsx)("div",{ref:o,className:i,children:l}),a[1]=l,a[2]=o,a[3]=s):s=a[3],s},FooterDivider:function(e){let i,s,a=(0,n.c)(4),{className:l}=e;return a[0]!==l?(i=(0,r.cn)("h-3 border-l",l),a[0]=l,a[1]=i):i=a[1],a[2]!==i?(s=(0,t.jsx)("span",{className:i}),a[2]=i,a[3]=s):s=a[3],s}}])},501158,e=>{"use strict";var t=e.i(222666),n=e.i(505962),r=e.i(779100),i=e.i(288027),s=e.i(12266),a=e.i(190557),l=e.i(690387),o=e.i(784374);function c(e){let n=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:e.sku_label}),(0,t.jsx)(u,{item:e,unit:n})]},e.sku_label)}function u(e){let c,u,d,m=(0,n.c)(23),{item:f,unit:p}=e,h=(0,r.useLocale)();if(f.kind===s.DisplayPricingKind.Schedule){let e;return m[0]!==f.scheduleExceptions||m[1]!==f.scheduleWindows?(e=(0,t.jsx)("span",{className:"text-muted-foreground pl-2",children:(0,t.jsx)(o.ScheduleWindows,{windows:f.scheduleWindows,exceptions:f.scheduleExceptions})}),m[0]=f.scheduleExceptions,m[1]=f.scheduleWindows,m[2]=e):e=m[2],e}if(f.tiers&&f.tiers.length>1){let e,n;if(m[3]!==f.displayMultiplier||m[4]!==f.tiers||m[5]!==h||m[6]!==p){let n;m[8]!==f.displayMultiplier||m[9]!==h||m[10]!==p?(n=e=>(0,t.jsxs)("span",{className:"text-muted-foreground",children:[e.sku_label,":"," ",(0,l.joinPriceAndUnit)(`${(0,a.formatUsd)((0,i.bn)(e.price).times(f.displayMultiplier),{locale:h,preset:"model-price"})??"—"}`,p)]},e.sku_label),m[8]=f.displayMultiplier,m[9]=h,m[10]=p,m[11]=n):n=m[11],e=f.tiers.map(n),m[3]=f.displayMultiplier,m[4]=f.tiers,m[5]=h,m[6]=p,m[7]=e}else e=m[7];return m[12]!==e?(n=(0,t.jsx)("div",{className:"flex flex-col gap-0.5 pl-2",children:e}),m[12]=e,m[13]=n):n=m[13],n}m[14]!==f.displayMultiplier||m[15]!==f.price||m[16]!==h?(c=(0,a.formatUsd)((0,i.bn)(f.price).times(f.displayMultiplier),{locale:h,preset:"model-price"})??"—",m[14]=f.displayMultiplier,m[15]=f.price,m[16]=h,m[17]=c):c=m[17];let g=`${c}`;return m[18]!==g||m[19]!==p?(u=(0,l.joinPriceAndUnit)(g,p),m[18]=g,m[19]=p,m[20]=u):u=m[20],m[21]!==u?(d=(0,t.jsx)("span",{className:"text-muted-foreground pl-2",children:u}),m[21]=u,m[22]=d):d=m[22],d}e.s(["PricingTooltipContent",0,function(e){let r,i,s=(0,n.c)(4),{items:a}=e;return s[0]!==a?(r=a.map(c),s[0]=a,s[1]=r):r=s[1],s[2]!==r?(i=(0,t.jsx)("div",{className:"flex flex-col gap-2 p-1",children:r}),s[2]=r,s[3]=i):i=s[3],i}])},596369,e=>{"use strict";var t=e.i(222666),n=e.i(505962),r=e.i(452473),i=e.i(379684);e.s(["ModelAuthorByline",0,function(e){let s,a,l,o=(0,n.c)(10),{author:c,displayName:u,className:d,linkClassName:m,prefetch:f}=e,p=`/${c}`;o[0]!==m?(s=(0,r.cn)("text-inherit",m),o[0]=m,o[1]=s):s=o[1];let h=u??c;return o[2]!==f||o[3]!==p||o[4]!==s||o[5]!==h?(a=(0,t.jsx)(i.TextLink,{href:p,prefetch:f,className:s,children:h}),o[2]=f,o[3]=p,o[4]=s,o[5]=h,o[6]=a):a=o[6],o[7]!==d||o[8]!==a?(l=(0,t.jsxs)("span",{className:d,children:["by"," ",a]}),o[7]=d,o[8]=a,o[9]=l):l=o[9],l}])},916998,238525,e=>{"use strict";var t=e.i(222666),n=e.i(505962),r=e.i(452473),i=e.i(970654);function s(e){return"number"==typeof e&&e>0&&e<1}function a(e){return`${Math.round(100*e)}% off`}e.s(["formatDiscountPercent",0,a,"isValidDiscount",0,s],238525),e.s(["DiscountBadge",0,function(e){let l,o,c,u=(0,n.c)(14),{discount:d,variant:m,className:f}=e;if(!s(d))return null;if("subdued"===(void 0===m?"prominent":m)){let e,n,i;return u[0]!==f?(e=(0,r.cn)("shrink-0 text-xs font-medium text-positive-text",f),u[0]=f,u[1]=e):e=u[1],u[2]!==d?(n=a(d),u[2]=d,u[3]=n):n=u[3],u[4]!==e||u[5]!==n?(i=(0,t.jsx)("span",{className:e,children:n}),u[4]=e,u[5]=n,u[6]=i):i=u[6],i}return u[7]!==f?(l=(0,r.cn)("shrink-0",f),u[7]=f,u[8]=l):l=u[8],u[9]!==d?(o=a(d),u[9]=d,u[10]=o):o=u[10],u[11]!==l||u[12]!==o?(c=(0,t.jsx)(i.Badge,{variant:"positive",size:"sm",className:l,children:o}),u[11]=l,u[12]=o,u[13]=c):c=u[13],c}],916998)},784374,e=>{"use strict";var t=e.i(222666),n=e.i(505962),r=e.i(779100),i=e.i(575292),s=e.i(150049),a=e.i(230953),l=e.i(988855);function o(e,t,n){let r=new Date(n.referenceMs),i=Date.UTC(r.getUTCFullYear(),r.getUTCMonth(),r.getUTCDate())-864e5*r.getUTCDay()+864e5*e+c(t);return`${(0,a.formatDate)(i,{...n,preset:"weekday"})??"—"} ${(0,a.formatTime)(i,{...n,preset:"schedule"})??"—"}`}function c(e){return(60*Math.floor(e/100)+e%100)*6e4}e.s(["ScheduleWindows",0,function(e){let u,d,m,f,p=(0,n.c)(13),{windows:h,exceptions:g}=e,x=(0,r.useLocale)(),b=(0,s.useResolvedDisplayTimeZone)(),v=(0,i.useRelativeNow)();if(void 0===v){let e;return p[0]===Symbol.for("react.memo_cache_sentinel")?(e=(0,t.jsx)("span",{children:"—"}),p[0]=e):e=p[0],e}if(p[1]!==g||p[2]!==x||p[3]!==v||p[4]!==b||p[5]!==h){let e={locale:x,timeZone:b,referenceMs:v};u=g?.length?function(e,t){if(!e.length)return"";let n=e.map(e=>`${o(e.start_utc_day,e.start_utc_clock,t)} – ${o(e.end_utc_day,e.end_utc_clock,t)}`);return`${(0,l.formatList)(n,{...t,style:"comma"})} ${(0,a.formatTimeZoneName)(t.referenceMs,t)??t.timeZone}`}(g,e):void 0,d=function(e,t){if(!e.length)return"";let n=new Date(t.referenceMs),r=Date.UTC(n.getUTCFullYear(),n.getUTCMonth(),n.getUTCDate()),i=e.map(e=>`${(0,a.formatTime)(r+c(e.utc_start),{...t,preset:"schedule"})??"—"}–${(0,a.formatTime)(r+c(e.utc_end),{...t,preset:"schedule"})??"—"}`);return`${(0,l.formatList)(i,{...t,style:"comma"})} ${(0,a.formatTimeZoneName)(t.referenceMs,t)??t.timeZone}`}(h,e),p[1]=g,p[2]=x,p[3]=v,p[4]=b,p[5]=h,p[6]=u,p[7]=d}else u=p[6],d=p[7];return p[8]!==u?(m=u&&(0,t.jsxs)("span",{className:"block text-muted-foreground",children:["except ",u]}),p[8]=u,p[9]=m):m=p[9],p[10]!==d||p[11]!==m?(f=(0,t.jsxs)("span",{children:[d,m]}),p[10]=d,p[11]=m,p[12]=f):f=p[12],f}])}]); //# sourceMappingURL=3xq06yqzwhs6_.js.map //# chunkId=01a099a4-b916-71d1-a893-601fb9ed9f85