!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]="01a09faf-536b-74a1-a088-b11e21b42a34")}catch(e){}}();(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,360951,e=>{"use strict";var t=e.i(270401);let r=t.forwardRef(function({title:e,titleId:r,...n},i){return t.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:i,"aria-labelledby":r},n),e?t.createElement("title",{id:r},e):null,t.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M13.5 6H5.25A2.25 2.25 0 0 0 3 8.25v10.5A2.25 2.25 0 0 0 5.25 21h10.5A2.25 2.25 0 0 0 18 18.75V10.5m-10.5 6L21 3m0 0h-5.25M21 3v5.25"}))});e.s(["ArrowTopRightOnSquareIcon",0,r],360951)},373855,e=>{"use strict";var t=e.i(270401);let r=t.forwardRef(function({title:e,titleId:r,...n},i){return t.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:i,"aria-labelledby":r},n),e?t.createElement("title",{id:r},e):null,t.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"m16.862 4.487 1.687-1.688a1.875 1.875 0 1 1 2.652 2.652L6.832 19.82a4.5 4.5 0 0 1-1.897 1.13l-2.685.8.8-2.685a4.5 4.5 0 0 1 1.13-1.897L16.863 4.487Zm0 0L19.5 7.125"}))});e.s(["PencilIcon",0,r],373855)},496143,e=>{"use strict";var t=e.i(270401);let r=t.forwardRef(function({title:e,titleId:r,...n},i){return t.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:i,"aria-labelledby":r},n),e?t.createElement("title",{id:r},e):null,t.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M15.59 14.37a6 6 0 0 1-5.84 7.38v-4.8m5.84-2.58a14.98 14.98 0 0 0 6.16-12.12A14.98 14.98 0 0 0 9.631 8.41m5.96 5.96a14.926 14.926 0 0 1-5.841 2.58m-.119-8.54a6 6 0 0 0-7.381 5.84h4.8m2.581-5.84a14.927 14.927 0 0 0-2.58 5.84m2.699 2.7c-.103.021-.207.041-.311.06a15.09 15.09 0 0 1-2.448-2.448 14.9 14.9 0 0 1 .06-.312m-2.24 2.39a4.493 4.493 0 0 0-1.757 4.306 4.493 4.493 0 0 0 4.306-1.758M16.5 9a1.5 1.5 0 1 1-3 0 1.5 1.5 0 0 1 3 0Z"}))});e.s(["RocketLaunchIcon",0,r],496143)},191379,e=>{"use strict";let t=(0,e.i(202913).default)("arrow-up-right",[["path",{d:"M7 7h10v10",key:"1tivn9"}],["path",{d:"M7 17 17 7",key:"1vkiza"}]]);e.s(["ArrowUpRight",0,t],191379)},479937,e=>{"use strict";let t=(0,e.i(202913).default)("chevron-up",[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]]);e.s(["default",0,t])},477986,e=>{"use strict";var t=e.i(479937);e.s(["ChevronUp",()=>t.default])},120612,e=>{"use strict";var t=e.i(222666),r=e.i(505962);e.s([],297422),e.i(297422);var n=e.i(270401),i=e.i(214977),l=e.i(159683),a=e.i(517450),o=e.i(466425),s=e.i(38014),c=e.i(726013),d=e.i(269702),u=e.i(279475),m=e.i(831226),h=e.i(964582),f=e.i(936954),g=e.i(335912),p=e.i(570081);e.s(["Backdrop",()=>s.DialogBackdrop,"Close",()=>c.DialogClose,"Description",()=>d.DialogDescription,"Handle",()=>p.DialogHandle,"Popup",()=>u.DialogPopup,"Portal",()=>m.DialogPortal,"Root",0,function(e){let{children:r,open:s,defaultOpen:c=!1,onOpenChange:d,onOpenChangeComplete:u,actionsRef:m,handle:h,triggerId:f,defaultTriggerId:g=null}=e,p=(0,a.useDialogRootContext)(!0),x=!!p,v=o.DialogStore.useStore(h?.store,{open:c,openProp:s,activeTriggerId:g,triggerIdProp:f,modal:!0,disablePointerDismissal:!0,nested:x,role:"alertdialog"});v.useControlledProp("openProp",s),v.useControlledProp("triggerIdProp",f),v.useSyncedValue("nested",x),v.useContextCallback("onOpenChange",d),v.useContextCallback("onOpenChangeComplete",u);let j=v.useState("payload");(0,l.useDialogRoot)({store:v,actionsRef:m,parentContext:p?.store.context,isDrawer:!1,onOpenChange:d,triggerIdProp:f});let b=n.useMemo(()=>({store:v}),[v]);return(0,t.jsx)(i.IsDrawerContext.Provider,{value:!1,children:(0,t.jsx)(a.DialogRootContext.Provider,{value:b,children:"function"==typeof r?r({payload:j}):r})})},"Title",()=>h.DialogTitle,"Trigger",()=>f.DialogTrigger,"Viewport",()=>g.DialogViewport,"createHandle",0,function(){return new p.DialogHandle(new o.DialogStore({modal:!0,disablePointerDismissal:!0,role:"alertdialog"}))}],246346);var x=e.i(246346),x=x,v=e.i(452473),j=e.i(562580),b=e.i(320187),S=e.i(147680);let w=x.Root,N=x.Portal;function k(e){let n,i,l,a,o,s=(0,r.c)(10);return s[0]!==e?({className:n,ref:l,...i}=e,s[0]=e,s[1]=n,s[2]=i,s[3]=l):(n=s[1],i=s[2],l=s[3]),s[4]!==n?(a=(0,v.cn)("fixed inset-0 z-alert bg-black/50",S.overlayMotion,n),s[4]=n,s[5]=a):a=s[5],s[6]!==i||s[7]!==l||s[8]!==a?(o=(0,t.jsx)(x.Backdrop,{className:a,"data-slot":"alert-dialog-overlay",...i,forceRender:!0,ref:l}),s[6]=i,s[7]=l,s[8]=a,s[9]=o):o=s[9],o}e.s(["AlertDialog",0,w,"AlertDialogAction",0,function(e){let n,i,l,a,o,s=(0,r.c)(10);return s[0]!==e?({className:n,ref:l,...i}=e,s[0]=e,s[1]=n,s[2]=i,s[3]=l):(n=s[1],i=s[2],l=s[3]),s[4]!==n?(a=(0,v.cn)((0,j.buttonVariants)({size:"sm"}),n),s[4]=n,s[5]=a):a=s[5],s[6]!==i||s[7]!==l||s[8]!==a?(o=(0,t.jsx)(x.Close,{ref:l,className:a,...i}),s[6]=i,s[7]=l,s[8]=a,s[9]=o):o=s[9],o},"AlertDialogCancel",0,function(e){let n,i,l,a,o,s=(0,r.c)(10);return s[0]!==e?({className:n,ref:l,...i}=e,s[0]=e,s[1]=n,s[2]=i,s[3]=l):(n=s[1],i=s[2],l=s[3]),s[4]!==n?(a=(0,v.cn)((0,j.buttonVariants)({variant:"outline",size:"sm"}),"mt-2 sm:mt-0",n),s[4]=n,s[5]=a):a=s[5],s[6]!==i||s[7]!==l||s[8]!==a?(o=(0,t.jsx)(x.Close,{ref:l,className:a,...i}),s[6]=i,s[7]=l,s[8]=a,s[9]=o):o=s[9],o},"AlertDialogContent",0,function(e){let n,i,l,a,o,s,c,d,u=(0,r.c)(15);return u[0]!==e?({className:i,children:n,ref:a,...l}=e,u[0]=e,u[1]=n,u[2]=i,u[3]=l,u[4]=a):(n=u[1],i=u[2],l=u[3],a=u[4]),u[5]===Symbol.for("react.memo_cache_sentinel")?(o=(0,t.jsx)(k,{}),u[5]=o):o=u[5],u[6]!==i?(s=(0,v.cn)("fixed left-[50%] top-[50%] z-alert grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border border-border bg-popover text-popover-foreground p-6 shadow-lg rounded-lg",S.dialogMotion,i),u[6]=i,u[7]=s):s=u[7],u[8]!==n?(c=(0,t.jsx)(b.FloatingLayerProvider,{layer:"alert",children:n}),u[8]=n,u[9]=c):c=u[9],u[10]!==l||u[11]!==a||u[12]!==s||u[13]!==c?(d=(0,t.jsxs)(N,{keepMounted:!0,children:[o,(0,t.jsx)(x.Popup,{ref:a,className:s,...l,children:c})]}),u[10]=l,u[11]=a,u[12]=s,u[13]=c,u[14]=d):d=u[14],d},"AlertDialogDescription",0,function(e){let n,i,l,a,o,s=(0,r.c)(10);return s[0]!==e?({className:n,ref:l,...i}=e,s[0]=e,s[1]=n,s[2]=i,s[3]=l):(n=s[1],i=s[2],l=s[3]),s[4]!==n?(a=(0,v.cn)("text-body text-muted-foreground",n),s[4]=n,s[5]=a):a=s[5],s[6]!==i||s[7]!==l||s[8]!==a?(o=(0,t.jsx)(x.Description,{ref:l,className:a,...i}),s[6]=i,s[7]=l,s[8]=a,s[9]=o):o=s[9],o},"AlertDialogFooter",0,function(e){let n,i,l,a,o=(0,r.c)(8);return o[0]!==e?({className:n,...i}=e,o[0]=e,o[1]=n,o[2]=i):(n=o[1],i=o[2]),o[3]!==n?(l=(0,v.cn)("flex flex-col-reverse sm:flex-row sm:justify-end sm:gap-x-2",n),o[3]=n,o[4]=l):l=o[4],o[5]!==i||o[6]!==l?(a=(0,t.jsx)("div",{className:l,...i}),o[5]=i,o[6]=l,o[7]=a):a=o[7],a},"AlertDialogHeader",0,function(e){let n,i,l,a,o=(0,r.c)(8);return o[0]!==e?({className:n,...i}=e,o[0]=e,o[1]=n,o[2]=i):(n=o[1],i=o[2]),o[3]!==n?(l=(0,v.cn)("flex flex-col gap-y-2 text-center sm:text-left",n),o[3]=n,o[4]=l):l=o[4],o[5]!==i||o[6]!==l?(a=(0,t.jsx)("div",{className:l,...i}),o[5]=i,o[6]=l,o[7]=a):a=o[7],a},"AlertDialogTitle",0,function(e){let n,i,l,a,o,s=(0,r.c)(10);return s[0]!==e?({className:n,ref:l,...i}=e,s[0]=e,s[1]=n,s[2]=i,s[3]=l):(n=s[1],i=s[2],l=s[3]),s[4]!==n?(a=(0,v.cn)("text-base font-semibold",n),s[4]=n,s[5]=a):a=s[5],s[6]!==i||s[7]!==l||s[8]!==a?(o=(0,t.jsx)(x.Title,{ref:l,className:a,...i}),s[6]=i,s[7]=l,s[8]=a,s[9]=o):o=s[9],o}],120612)},712621,e=>{"use strict";var t=e.i(222666),r=e.i(505962),n=e.i(452473),i=e.i(191379),l=e.i(379684);e.s(["ExternalLink",0,function(e){let a,o,s,c,d,u,m,h,f,g,p,x=(0,r.c)(24);x[0]!==e?({children:a,className:o,icon:s,iconPosition:d,showExternalIcon:u,...c}=e,x[0]=e,x[1]=a,x[2]=o,x[3]=s,x[4]=c,x[5]=d,x[6]=u):(a=x[1],o=x[2],s=x[3],c=x[4],d=x[5],u=x[6]);let v=void 0===d?"end":d,j=void 0!==u&&u;x[7]!==s||x[8]!==j?(m=s??(j?(0,t.jsx)(i.ArrowUpRight,{className:"inline size-3 align-[-1px]"}):null),x[7]=s,x[8]=j,x[9]=m):m=x[9];let b=m;return x[10]!==o?(h=(0,n.cn)(l.LINK_CLASSES,"text-xs cursor-pointer",o),x[10]=o,x[11]=h):h=x[11],x[12]!==v||x[13]!==b?(f="start"===v&&b&&(0,t.jsx)("span",{className:"mr-0.5 inline-flex",children:b}),x[12]=v,x[13]=b,x[14]=f):f=x[14],x[15]!==v||x[16]!==b?(g="end"===v&&b&&(0,t.jsx)("span",{className:"ml-0.5 inline-flex",children:b}),x[15]=v,x[16]=b,x[17]=g):g=x[17],x[18]!==a||x[19]!==c||x[20]!==h||x[21]!==f||x[22]!==g?(p=(0,t.jsxs)("a",{className:h,...c,children:[f,a,g]}),x[18]=a,x[19]=c,x[20]=h,x[21]=f,x[22]=g,x[23]=p):p=x[23],p}])},837556,e=>{"use strict";var t=e.i(222666),r=e.i(505962),n=e.i(452473);e.s(["IconFrame",0,function(e){let i,l,a,o,s,c,d=(0,r.c)(15),{children:u,className:m,variant:h,decorative:f,ringClassName:g}=e,p=void 0!==f&&f||void 0;d[0]!==m?(i=(0,n.cn)("relative flex shrink-0 items-center justify-center","box-content p-px","overflow-hidden rounded-sm bg-background","size-6",m),d[0]=m,d[1]=i):i=d[1],d[2]===Symbol.for("react.memo_cache_sentinel")?(l=(0,n.cn)("absolute inset-px flex items-center justify-center","[&_img]:absolute [&_img]:inset-0 [&_img]:size-full [&_img]:object-contain","[&_img]:rounded-sm"),d[2]=l):l=d[2],d[3]!==u?(a=(0,t.jsx)("div",{className:l,children:u}),d[3]=u,d[4]=a):a=d[4];let x="app"===(void 0===h?"default":h)&&"dark:inset-px dark:ring-white";return d[5]!==g||d[6]!==x?(o=(0,n.cn)("pointer-events-none absolute inset-0 rounded-[inherit] ring-1 ring-inset ring-border/60",x,g),d[5]=g,d[6]=x,d[7]=o):o=d[7],d[8]!==o?(s=(0,t.jsx)("div",{"aria-hidden":!0,className:o}),d[8]=o,d[9]=s):s=d[9],d[10]!==p||d[11]!==i||d[12]!==a||d[13]!==s?(c=(0,t.jsxs)("div",{"aria-hidden":p,className:i,children:[a,s]}),d[10]=p,d[11]=i,d[12]=a,d[13]=s,d[14]=c):c=d[14],c}])},188363,e=>{"use strict";var t=e.i(222666),r=e.i(505962),n=e.i(948992),i=e.i(678998),l=e.i(270401);let a=/\.(png|jpe?g|ico|svg|webp|gif|bmp)$/i;e.s(["RemoteFavicon",0,function(e){let o,s,c,d,u,m,h,f,g,p,x,v,j=(0,r.c)(51),[b,S]=(0,l.useState)(null),[w,N]=(0,l.useState)(null),[k,C]=(0,l.useState)(!1),[_,y]=(0,l.useState)(!1),L=e.size||256,A=e.hasCuratedFaviconUrl??!1;j[0]!==k||j[1]!==_||j[2]!==e.faviconFor||j[3]!==e.imgSrc||j[4]!==L||j[5]!==A?(o=function({faviconFor:e,size:t,didCuratedIconFail:r,didSiteIconFail:n,hasCuratedFaviconUrl:l,imgSrc:o}){if(o)return{source:"given",src:o};if(l&&(e=>{try{let{pathname:t}=new URL(e);return a.test(t)}catch{return!1}})(e)&&!r)return{source:"curated",src:(0,i.getCdnImageUrl)(e)};let s=n?(0,i.getParentSiteUrl)(e):null;return null!==s?{source:"parent-site",src:(0,i.getFaviconUrl)(s,t)}:{source:"site",src:(0,i.getFaviconUrl)(e,t)}}({faviconFor:e.faviconFor,size:L,didCuratedIconFail:k,didSiteIconFail:_,hasCuratedFaviconUrl:A,imgSrc:e.imgSrc}),j[0]=k,j[1]=_,j[2]=e.faviconFor,j[3]=e.imgSrc,j[4]=L,j[5]=A,j[6]=o):o=j[6];let{source:R,src:E}=o;j[7]!==e.faviconFor||j[8]!==L||j[9]!==R?(s=t=>{"site"!==R||L<=16||t>16||null!==(0,i.getParentSiteUrl)(e.faviconFor)&&y(!0)},j[7]=e.faviconFor,j[8]=L,j[9]=R,j[10]=s):s=j[10];let D=s;j[11]!==e.faviconFor||j[12]!==R?(c=t=>{switch(R){case"curated":if((0,i.isOpenRouterHostedUrl)(e.faviconFor))return void S(t);C(!0);return;case"site":if(null===(0,i.getParentSiteUrl)(e.faviconFor))return void S(t);y(!0);return;case"given":case"parent-site":return void S(t);default:S(t)}},j[11]=e.faviconFor,j[12]=R,j[13]=c):c=j[13];let T=c;j[14]===Symbol.for("react.memo_cache_sentinel")?(d=()=>{S(null)},j[14]=d):d=j[14],j[15]!==E?(u=[E],j[15]=E,j[16]=u):u=j[16],(0,l.useEffect)(d,u),j[17]===Symbol.for("react.memo_cache_sentinel")?(m=()=>{C(!1),y(!1)},j[17]=m):m=j[17],j[18]!==e.faviconFor||j[19]!==e.imgSrc||j[20]!==L?(h=[e.faviconFor,e.imgSrc,L],j[18]=e.faviconFor,j[19]=e.imgSrc,j[20]=L,j[21]=h):h=j[21],(0,l.useEffect)(m,h),j[22]===Symbol.for("react.memo_cache_sentinel")?(f=()=>{N(null)},j[22]=f):f=j[22],j[23]!==e.imgSrcDark?(g=[e.imgSrcDark],j[23]=e.imgSrcDark,j[24]=g):g=j[24],(0,l.useEffect)(f,g);let M=`Favicon for ${e.faviconFor}`;j[25]!==L||j[26]!==M?(p={width:L,height:L,alt:M,className:"h-full w-full object-cover"},j[25]=L,j[26]=M,j[27]=p):p=j[27];let F=p;if(e.imgSrcDark){let r,i,l;return j[28]!==b||j[29]!==F||j[30]!==T||j[31]!==D||j[32]!==E?(r=(0,t.jsx)("span",{className:"block h-full w-full shrink-0 dark:hidden",children:b?(0,t.jsx)("span",{className:"bg-muted",children:(0,t.jsx)(n.GlobeAltIcon,{className:"h-4 w-4 text-muted-foreground/60"})}):(0,t.jsx)("img",{...F,src:E,onError:e=>T(e.toString()),onLoad:e=>D(e.currentTarget.naturalWidth)})}),j[28]=b,j[29]=F,j[30]=T,j[31]=D,j[32]=E,j[33]=r):r=j[33],j[34]!==w||j[35]!==F||j[36]!==e.imgSrcDark?(i=(0,t.jsx)("span",{className:"hidden h-full w-full shrink-0 dark:block",children:w?(0,t.jsx)("span",{className:"bg-muted",children:(0,t.jsx)(n.GlobeAltIcon,{className:"h-4 w-4 text-muted-foreground/60"})}):(0,t.jsx)("img",{...F,src:e.imgSrcDark,onError:e=>N(e.toString())})}),j[34]=w,j[35]=F,j[36]=e.imgSrcDark,j[37]=i):i=j[37],j[38]!==e.className||j[39]!==r||j[40]!==i?(l=(0,t.jsxs)("div",{className:e.className,children:[r,i]}),j[38]=e.className,j[39]=r,j[40]=i,j[41]=l):l=j[41],l}return j[42]!==b||j[43]!==F||j[44]!==T||j[45]!==D||j[46]!==E?(x=b?(0,t.jsx)("span",{className:"bg-muted",children:(0,t.jsx)(n.GlobeAltIcon,{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",{...F,src:E,loading:"lazy",decoding:"async",onError:e=>T(e.toString()),onLoad:e=>D(e.currentTarget.naturalWidth)})}),j[42]=b,j[43]=F,j[44]=T,j[45]=D,j[46]=E,j[47]=x):x=j[47],j[48]!==e.className||j[49]!==x?(v=(0,t.jsx)("div",{className:e.className,children:x}),j[48]=e.className,j[49]=x,j[50]=v):v=j[50],v}])},379684,e=>{"use strict";var t=e.i(222666),r=e.i(505962),n=e.i(734293),i=e.i(452473),l=e.i(654847),a=e.i(191379),o=e.i(551365),s=e.i(971531),c=e.i(639580),d=e.i(664288);let u="text-foreground underline underline-offset-2 decoration-current/40 hover:text-accent-foreground hover:decoration-current transition-colors";e.s(["LINK_CLASSES",0,u,"TextLink",0,function(e){let m,h,f,g,p,x,v,j,b,S,w,N,k,C,_,y,L,A,R,E,D,T,M=(0,r.c)(71);M[0]!==e?({render:j,children:m,className:h,icon:f,iconPosition:b,showExternalIcon:S,prefetch:w,onFocus:g,onMouseEnter:p,onTouchStart:x,...v}=e,M[0]=e,M[1]=m,M[2]=h,M[3]=f,M[4]=g,M[5]=p,M[6]=x,M[7]=v,M[8]=j,M[9]=b,M[10]=S,M[11]=w):(m=M[1],h=M[2],f=M[3],g=M[4],p=M[5],x=M[6],v=M[7],j=M[8],b=M[9],S=M[10],w=M[11]);let F=void 0===b?"end":b,I=void 0!==S&&S,O=void 0===w?"hover":w,U=(0,c.useLocalizedHref)(v.href);M[12]!==U?(N=(0,l.getHrefString)(U),M[12]=U,M[13]=N):N=M[13],M[14]!==O||M[15]!==N?(k={prefetch:O,href:N},M[14]=O,M[15]=N,M[16]=k):k=M[16],M[17]!==g||M[18]!==p||M[19]!==x?(C={onFocus:g,onMouseEnter:p,onTouchStart:x},M[17]=g,M[18]=p,M[19]=x,M[20]=C):C=M[20];let P=(0,s.useLinkPrefetch)(k,C);M[21]!==h?(_=(0,i.cn)(u,"text-xs cursor-pointer",h),M[21]=h,M[22]=_):_=M[22];let B=_;M[23]!==f||M[24]!==I?(y=f??(I?(0,t.jsx)(a.ArrowUpRight,{className:"inline size-3 align-[-1px]"}):null),M[23]=f,M[24]=I,M[25]=y):y=M[25];let z=y;M[26]!==F||M[27]!==z?(L="start"===F&&z?(0,t.jsx)("span",{className:"mr-0.5 inline-flex",children:z}):null,M[26]=F,M[27]=z,M[28]=L):L=M[28];let H=L;M[29]!==F||M[30]!==z?(A="end"===F&&z?(0,t.jsx)("span",{className:"ml-0.5 inline-flex",children:z}):null,M[29]=F,M[30]=z,M[31]=A):A=M[31];let $=A,V=(0,l.isCrossZoneHref)(U);M[32]!==m||M[33]!==j?(R=j?(0,d.getChildContent)(j):m,M[32]=m,M[33]=j,M[34]=R):R=M[34];let G=R;M[35]!==G||M[36]!==$||M[37]!==U||M[38]!==g||M[39]!==p||M[40]!==x||M[41]!==v||M[42]!==j||M[43]!==B||M[44]!==H?(E=j?{className:B,children:(0,t.jsxs)(t.Fragment,{children:[H,G,$]}),...v,onFocus:g,onMouseEnter:p,onTouchStart:x,href:U}:{},M[35]=G,M[36]=$,M[37]=U,M[38]=g,M[39]=p,M[40]=x,M[41]=v,M[42]=j,M[43]=B,M[44]=H,M[45]=E):E=M[45],M[46]!==j||M[47]!==E?(D={render:j,defaultTagName:"a",props:E},M[46]=j,M[47]=E,M[48]=D):D=M[48];let W=(0,n.useRender)(D);if(j){if(V)throw Error(`TextLink: cross-zone href "${(0,l.getHrefString)(U)}" cannot be combined with the render prop. Use a plain element instead.`);return W}if(V){let e,r,n;if(M[49]!==v){let{href:t,replace:r,scroll:n,shallow:i,passHref:l,legacyBehavior:a,locale:o,onNavigate:s,...c}=v;e=c,M[49]=v,M[50]=e}else e=M[50];return M[51]!==U?(r=(0,l.getHrefString)(U),M[51]=U,M[52]=r):r=M[52],M[53]!==e||M[54]!==m||M[55]!==$||M[56]!==g||M[57]!==p||M[58]!==x||M[59]!==B||M[60]!==H||M[61]!==r?(n=(0,t.jsxs)("a",{href:r,className:B,onFocus:g,onMouseEnter:p,onTouchStart:x,...e,children:[H,m,$]}),M[53]=e,M[54]=m,M[55]=$,M[56]=g,M[57]=p,M[58]=x,M[59]=B,M[60]=H,M[61]=r,M[62]=n):n=M[62],n}return M[63]!==m||M[64]!==$||M[65]!==U||M[66]!==P||M[67]!==v||M[68]!==B||M[69]!==H?(T=(0,t.jsxs)(o.default,{className:B,...v,...P,href:U,children:[H,m,$]}),M[63]=m,M[64]=$,M[65]=U,M[66]=P,M[67]=v,M[68]=B,M[69]=H,M[70]=T):T=M[70],T}])},664288,e=>{"use strict";e.s(["getChildContent",0,function(e){let{props:t}=e;if("object"==typeof t&&null!==t&&"children"in t)return t.children}])},268333,e=>{"use strict";var t=e.i(222666),r=e.i(505962),n=e.i(452473),i=e.i(270401),l=e.i(956302);let a=[38,64,29,55,72,41,60,34,78,47,53,69,31,58,44,75,37,66,49,82,35,57,73,40,62,46,80,33,54,70,43,61,36,76,51,68,39,59,84,45,63,32,71,48,56,79,42,65,52,74,30,67];function o(e){let i,l,a,o,s=(0,r.c)(14),{height:c,rects:d,animate:u,forecastPatternId:m}=e,h=u?"animate-pulse":void 0;s[0]!==h?(i=(0,n.cn)("h-full w-full text-muted",h),s[0]=h,s[1]=i):i=s[1];let f=`0 0 400 ${c}`;if(s[2]!==m?(l=m&&(0,t.jsx)("defs",{children:(0,t.jsxs)("pattern",{id:m,height:"6",patternTransform:"rotate(45)",patternUnits:"userSpaceOnUse",width:"6",children:[(0,t.jsx)("rect",{fill:"currentColor",height:"6",width:"6"}),(0,t.jsx)("rect",{fill:"white",fillOpacity:"0.16",height:"6",width:"3"})]})}),s[2]=m,s[3]=l):l=s[3],s[4]!==m||s[5]!==d){let e;s[7]!==m?(e=e=>(0,t.jsx)("rect",{fill:e.forecast&&m?`url(#${m})`:"currentColor",height:e.height,opacity:e.opacity??1,rx:1,width:e.width,x:e.x,y:e.y},e.key),s[7]=m,s[8]=e):e=s[8],a=d.map(e),s[4]=m,s[5]=d,s[6]=a}else a=s[6];return s[9]!==i||s[10]!==f||s[11]!==l||s[12]!==a?(o=(0,t.jsxs)("svg",{"aria-hidden":!0,className:i,preserveAspectRatio:"none",viewBox:f,children:[l,a]}),s[9]=i,s[10]=f,s[11]=l,s[12]=a,s[13]=o):o=s[13],o}e.s(["StackedBarChartSkeleton",0,function(e){let s,c,d,u,m,h=(0,r.c)(28),{height:f,barCount:g,segmentCount:p,showForecastBar:x,animate:v,decorative:j,className:b,"data-testid":S}=e,w=void 0===f?l.RECHART_DEFAULT_HEIGHT:f,N=void 0===g?52:g,k=void 0===p?5:p,C=void 0===x||x,_=void 0===v||v,y=void 0===S?"stacked-bar-chart-skeleton":S,L=(0,i.useId)();h[0]!==N||h[1]!==w||h[2]!==k||h[3]!==C?(s=function({height:e,barCount:t,segmentCount:r,showForecastBar:n}){let i=(400-(t-1))/t;return Array.from({length:t},(e,t)=>t).flatMap(l=>{let o=a[l%a.length]??50,s=o/100*e,c=r>1?function({totalPercent:e,segmentCount:t,barIndex:r}){let n=Array.from({length:t},(e,t)=>12+(7*r+13*t)%22),i=n.reduce((e,t)=>e+t,0);return n.map(t=>t/i*e)}({totalPercent:o,segmentCount:r,barIndex:l}):[o],d=c.map((e,t)=>c.slice(0,t).reduce((e,t)=>e+t,0));return c.flatMap((r,a)=>{let o=r/100*e;if(o<=0)return[];let c=n&&l===t-1,u=(d[a]??0)/100*e;return[{forecast:c,height:o,key:`bar-${l}-segment-${a}`,opacity:c?.58:.48,width:i,x:l*(i+1),y:e-s+u}]})})}({height:w,barCount:N,segmentCount:k,showForecastBar:C}),h[0]=N,h[1]=w,h[2]=k,h[3]=C,h[4]=s):s=h[4];let A=s,R=C?L:void 0;h[5]!==_||h[6]!==w||h[7]!==A||h[8]!==R?(c=(0,t.jsx)(o,{animate:_,forecastPatternId:R,height:w,rects:A}),h[5]=_,h[6]=w,h[7]=A,h[8]=R,h[9]=c):c=h[9];let E=c;if(void 0!==j&&j){let e,r,i;return h[10]!==b?(e=(0,n.cn)("w-full",b),h[10]=b,h[11]=e):e=h[11],h[12]!==w?(r={height:w},h[12]=w,h[13]=r):r=h[13],h[14]!==E||h[15]!==y||h[16]!==e||h[17]!==r?(i=(0,t.jsx)("div",{"aria-hidden":!0,className:e,"data-testid":y,style:r,children:E}),h[14]=E,h[15]=y,h[16]=e,h[17]=r,h[18]=i):i=h[18],i}return h[19]!==b?(d=(0,n.cn)("w-full",b),h[19]=b,h[20]=d):d=h[20],h[21]!==w?(u={height:w},h[21]=w,h[22]=u):u=h[22],h[23]!==E||h[24]!==y||h[25]!==d||h[26]!==u?(m=(0,t.jsx)("div",{"aria-label":"Loading chart",className:d,"data-testid":y,role:"status",style:u,children:E}),h[23]=E,h[24]=y,h[25]=d,h[26]=u,h[27]=m):m=h[27],m}])},184010,e=>{"use strict";var t=e.i(956302);let r="Other",n=t.Colors.Slate400;function i(e){return e===r||"Others"===e}function l(e){let t=0x811c9dc5;for(let r=0;r>>0;return t}e.s(["OTHER_COLOR",0,n,"OTHER_LABEL",0,r,"OTHER_RAW_VALUE",0,"__other__","createStableChartColorMapping",0,function(e,r){let a=new Map,o=new Set;for(let s of[...new Set(e)].toSorted()){if(i(s)){a.set(s,n);continue}if(0===r.length){a.set(s,t.FALLBACK_SERIES_COLOR);continue}let e=l(s)%r.length,c=function({preferredSlot:e,paletteLength:t,claimedSlots:r}){for(let n=0;n{"use strict";e.i(781656),e.s([])},238032,e=>{"use strict";var t=e.i(179273);e.s(["formatModelName",0,(e,{shorten:r=!1,keepNote:n=!1,preserveVariant:i=!1}={})=>{if(!r&&!0===n)return e;let l=e.split(": ")[1]||e;if(n)return l;let a=l.split(" (")[0];if(!i)return a;let o=Object.values(t.Variant).filter(e=>e!==t.StaticVariant.Standard&&e!==t.Variant.All).map(e=>(0,t.variantLabel)(e)),s=[...l.matchAll(/\(([^()]*)\)/g)].filter(([,e])=>o.some(t=>0===t.localeCompare(e??"",void 0,{sensitivity:"accent"}))).map(([,e])=>`(${e})`);return`${a}${s.length>0?` ${s.join(" ")}`:""}`}])},678998,e=>{"use strict";e.i(687421);let t=(e,t=256)=>`https://t0.gstatic.com/faviconV2?client=SOCIAL&type=FAVICON&fallback_opts=TYPE,SIZE,URL&url=${e}&size=${t}`,r=new Set(["ac","co","com","edu","go","gob","gov","ltd","me","ne","net","nom","or","org","plc","sch"]),n=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"]),i=e=>{try{let t=new URL(e).hostname.toLowerCase().replace(/\.$/,"");return"openrouter.ai"===t||t.endsWith(".openrouter.ai")}catch{return!1}},l=t("https://huggingface.co/");e.s(["HUGGING_FACE_FAVICON_URL",0,l,"getCdnImageUrl",0,e=>i(e)?e:`/api/frontend/v1/image-proxy?url=${encodeURIComponent(e)}`,"getFaviconUrl",0,t,"getLocalIconUri",0,e=>`/images/icons/${e}`,"getParentSiteUrl",0,e=>{let t=(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===t)return null;let i=t.split(".").slice(1);if(i.length<2||2===i.length&&2===(i[1]??"").length&&r.has(i[0]??""))return null;let l=i.join(".");return[...n].some(e=>l===e||l.endsWith(`.${e}`))?null:`https://${l}`},"isOpenRouterHostedUrl",0,i])},267207,e=>{"use strict";var t=e.i(222666),r=e.i(505962),n=e.i(665155),i=e.i(528164),l=e.i(379684),a=e.i(779100),o=e.i(784510),s=e.i(370066),c=e.i(270401);let d=function(e){let n,i=(0,r.c)(2),{children:l}=e;return i[0]!==l?(n=(0,t.jsx)("div",{className:"flex flex-col bg-card border border-border rounded-lg",children:l}),i[0]=l,i[1]=n):n=i[1],n},u=function(e){let n,i=(0,r.c)(2),{children:l}=e;return i[0]!==l?(n=(0,t.jsx)("div",{className:"px-5 py-4 border-b border-border",children:l}),i[0]=l,i[1]=n):n=i[1],n},m=function(e){let n,i=(0,r.c)(2),{children:l}=e;return i[0]!==l?(n=(0,t.jsx)("h3",{children:l}),i[0]=l,i[1]=n):n=i[1],n},h=function(e){let n,i=(0,r.c)(2),{children:l}=e;return i[0]!==l?(n=(0,t.jsx)("div",{children:l}),i[0]=l,i[1]=n):n=i[1],n},f=function(e){let n,i=(0,r.c)(2),{children:l}=e;return i[0]!==l?(n=(0,t.jsx)("div",{className:"flex items-center justify-between px-5 py-3 border-b border-border last:border-b-0",children:l}),i[0]=l,i[1]=n):n=i[1],n},g=function(e){let n,i=(0,r.c)(2),{children:l}=e;return i[0]!==l?(n=(0,t.jsx)("div",{className:"flex items-center gap-4",children:l}),i[0]=l,i[1]=n):n=i[1],n},p=function(e){let n,i=(0,r.c)(2),{children:l}=e;return i[0]!==l?(n=(0,t.jsx)("span",{className:"text-muted-foreground w-6",children:l}),i[0]=l,i[1]=n):n=i[1],n},x=function(e){let n,i=(0,r.c)(2),{children:l}=e;return i[0]!==l?(n=(0,t.jsx)("div",{className:"flex flex-col",children:l}),i[0]=l,i[1]=n):n=i[1],n},v=function(e){let n,i=(0,r.c)(2),{children:l}=e;return i[0]!==l?(n=(0,t.jsx)("div",{className:"text-xs text-muted-foreground",children:l}),i[0]=l,i[1]=n):n=i[1],n},j=function(e){let n,i=(0,r.c)(2),{children:l}=e;return i[0]!==l?(n=(0,t.jsx)("div",{className:"text-right",children:l}),i[0]=l,i[1]=n):n=i[1],n},b=function(e){let n,i=(0,r.c)(2),{children:l}=e;return i[0]!==l?(n=(0,t.jsx)("span",{className:"font-medium",children:l}),i[0]=l,i[1]=n):n=i[1],n},S=function(e){let n,i=(0,r.c)(2),{children:l}=e;return i[0]!==l?(n=(0,t.jsx)("span",{className:"text-sm text-muted-foreground ml-1",children:l}),i[0]=l,i[1]=n):n=i[1],n},w=function(e){let n,i=(0,r.c)(2),{children:l}=e;return i[0]!==l?(n=(0,t.jsx)("div",{className:"flex justify-center py-4 border-t border-border",children:l}),i[0]=l,i[1]=n):n=i[1],n};function N(e,r){return(0,t.jsx)(k,{single:e,rank:r+1},e.model_permaslug)}function k(e){let n,i,a,s,c,d,u,m,h=(0,r.c)(21),{single:j,rank:b}=e,{getPrimaryModelInfoByPermaslug:S}=(0,o.useGlobal)();h[0]!==S||h[1]!==j.model_permaslug?(n=S(j.model_permaslug),h[0]=S,h[1]=j.model_permaslug,h[2]=n):n=h[2];let w=n;if(!w)return null;h[3]!==b?(i=(0,t.jsxs)(p,{children:[b,"."]}),h[3]=b,h[4]=i):i=h[4];let N=`/${w.slug}`;return h[5]!==w.short_name||h[6]!==N?(a=(0,t.jsx)(l.TextLink,{href:N,className:"text-sm font-medium",children:w.short_name}),h[5]=w.short_name,h[6]=N,h[7]=a):a=h[7],h[8]!==w.author?(s=(0,t.jsx)(v,{children:w.author}),h[8]=w.author,h[9]=s):s=h[9],h[10]!==a||h[11]!==s?(c=(0,t.jsxs)(x,{children:[a,s]}),h[10]=a,h[11]=s,h[12]=c):c=h[12],h[13]!==i||h[14]!==c?(d=(0,t.jsxs)(g,{children:[i,c]}),h[13]=i,h[14]=c,h[15]=d):d=h[15],h[16]!==j.total_tokens?(u=(0,t.jsx)(C,{totalTokens:j.total_tokens}),h[16]=j.total_tokens,h[17]=u):u=h[17],h[18]!==d||h[19]!==u?(m=(0,t.jsxs)(f,{children:[d,u]}),h[18]=d,h[19]=u,h[20]=m):m=h[20],m}function C(e){let n,i,l,o,c=(0,r.c)(8),{totalTokens:d}=e,u=(0,a.useLocale)();return c[0]!==u||c[1]!==d?(n=(0,s.formatNumber)(d,{locale:u,preset:"compact-rounded-thousands"})??"—",c[0]=u,c[1]=d,c[2]=n):n=c[2],c[3]!==n?(i=(0,t.jsx)(b,{children:n}),c[3]=n,c[4]=i):i=c[4],c[5]===Symbol.for("react.memo_cache_sentinel")?(l=(0,t.jsx)(S,{children:"tokens"}),c[5]=l):l=c[5],c[6]!==i?(o=(0,t.jsxs)(j,{children:[i,l]}),c[6]=i,c[7]=o):o=c[7],o}e.s(["AppModelRankingsTable",0,function(e){let l,a,o,s,f,g,p=(0,r.c)(16),{appModelAnalytics:x,appName:v}=e,[j,b]=(0,c.useState)(!1);p[0]!==x||p[1]!==j?(l=j?x:x.slice(0,10),p[0]=x,p[1]=j,p[2]=l):l=p[2];let S=l,k=v?`Top models used by ${v} this month`:"Top models this month";return p[3]!==k?(a=(0,t.jsx)(u,{children:(0,t.jsx)(m,{children:k})}),p[3]=k,p[4]=a):a=p[4],p[5]!==S?(o=S.map(N),p[5]=S,p[6]=o):o=p[6],p[7]!==o?(s=(0,t.jsx)(h,{children:o}),p[7]=o,p[8]=s):s=p[8],p[9]!==x||p[10]!==j?(f=!j&&x.length>10&&(0,t.jsx)(w,{children:(0,t.jsxs)(i.Button,{variant:"ghost",className:"text-sm text-muted-foreground hover:text-foreground gap-2",onClick:()=>b(!0),children:["Show more",(0,t.jsx)(n.ChevronDownIcon,{className:"size-4"})]})}),p[9]=x,p[10]=j,p[11]=f):f=p[11],p[12]!==a||p[13]!==s||p[14]!==f?(g=(0,t.jsxs)(d,{children:[a,s,f]}),p[12]=a,p[13]=s,p[14]=f,p[15]=g):g=p[15],g},"AppModelTokenCount",0,C],267207)},892411,e=>{"use strict";var t=e.i(222666),r=e.i(505962),n=e.i(360951),i=e.i(203661),l=e.i(496143),a=e.i(553215),o=e.i(452473),s=e.i(654847),c=e.i(120612),d=e.i(528164),u=e.i(837556),m=e.i(188363),h=e.i(252358),f=e.i(779100),g=e.i(150049),p=e.i(230953),x=e.i(370066),v=e.i(99074),j=e.i(477986),b=e.i(270401);let S="h-9 gap-2 px-4 text-xs bg-background shadow-none cursor-pointer text-foreground no-underline hover:no-underline",w=function(e){let n,i=(0,r.c)(2),{children:l}=e;return i[0]!==l?(n=(0,t.jsx)("div",{children:l}),i[0]=l,i[1]=n):n=i[1],n},N=function(e){let n,i=(0,r.c)(2),{children:l}=e;return i[0]!==l?(n=(0,t.jsx)("div",{className:"flex flex-col sm:flex-row sm:items-start sm:justify-between gap-3",children:l}),i[0]=l,i[1]=n):n=i[1],n},k=function(e){let n,i=(0,r.c)(2),{children:l}=e;return i[0]!==l?(n=(0,t.jsx)("div",{className:"flex items-center gap-2.5 min-w-0",children:l}),i[0]=l,i[1]=n):n=i[1],n},C=function(e){let n,i=(0,r.c)(2),{children:l}=e;return i[0]!==l?(n=(0,t.jsx)("div",{className:"flex flex-col gap-1 min-w-0",children:l}),i[0]=l,i[1]=n):n=i[1],n},_=function(e){let n,i=(0,r.c)(2),{children:l}=e;return i[0]!==l?(n=(0,t.jsx)("div",{className:"flex items-center gap-2",children:l}),i[0]=l,i[1]=n):n=i[1],n},y=function(e){let n,i=(0,r.c)(2),{children:l}=e;return i[0]!==l?(n=(0,t.jsx)("div",{className:"flex items-center gap-2 shrink-0",children:l}),i[0]=l,i[1]=n):n=i[1],n},L=function(e){let n,i=(0,r.c)(2),{children:l}=e;return i[0]!==l?(n=(0,t.jsx)("div",{className:"mt-5",children:l}),i[0]=l,i[1]=n):n=i[1],n},A=function(e){let n,i=(0,r.c)(2),{children:l}=e;return i[0]!==l?(n=(0,t.jsx)("div",{className:"mt-7 grid grid-cols-2 gap-2 sm:grid-cols-4",children:l}),i[0]=l,i[1]=n):n=i[1],n},R=function(e){let n,i=(0,r.c)(2),{children:l}=e;return i[0]!==l?(n=(0,t.jsx)("div",{className:"bg-muted/60 dark:bg-muted/40 border border-border/60 dark:border-border/40 rounded-lg px-3 py-3 min-w-0 w-full",children:l}),i[0]=l,i[1]=n):n=i[1],n},E=function(e){let n,i=(0,r.c)(2),{children:l}=e;return i[0]!==l?(n=(0,t.jsx)("div",{className:"text-2xs text-muted-foreground uppercase tracking-wider",children:l}),i[0]=l,i[1]=n):n=i[1],n},D=function(e){let n,i,l=(0,r.c)(5),{children:a,className:s}=e;return l[0]!==s?(n=(0,o.cn)("text-sm font-medium truncate mt-2.5",s),l[0]=s,l[1]=n):n=l[1],l[2]!==a||l[3]!==n?(i=(0,t.jsx)("div",{className:n,children:a}),l[2]=a,l[3]=n,l[4]=i):i=l[4],i};var T=e.i(764043);e.i(406201);var M=e.i(806024),F=e.i(612960);function I(e){return!e}function O(e){let n,i,l=(0,r.c)(7),{faviconURL:a,hasCuratedFaviconUrl:s,iconClassName:c,title:d}=e;l[0]!==d?(n=d?d.split(" ").slice(0,2).map(U).join("").toUpperCase():"?",l[0]=d,l[1]=n):n=l[1];let h=n;return l[2]!==a||l[3]!==s||l[4]!==c||l[5]!==h?(i=(0,t.jsx)(u.IconFrame,{variant:"app",className:"size-8 shrink-0 sm:size-9",children:a?(0,t.jsx)(m.RemoteFavicon,{className:(0,o.cn)("size-full",c),faviconFor:a,hasCuratedFaviconUrl:s}):(0,t.jsx)("span",{className:"font-semibold text-sm",children:h})}),l[2]=a,l[3]=s,l[4]=c,l[5]=h,l[6]=i):i=l[6],i}function U(e){return e[0]}function P(e){let n,i,l,a=(0,r.c)(7),{value:o,label:s}=e;return a[0]!==s?(n=(0,t.jsx)(E,{children:s}),a[0]=s,a[1]=n):n=a[1],a[2]!==o?(i=(0,t.jsx)(D,{children:o}),a[2]=o,a[3]=i):i=a[3],a[4]!==n||a[5]!==i?(l=(0,t.jsxs)(R,{children:[n,i]}),a[4]=n,a[5]=i,a[6]=l):l=a[6],l}function B(e){let n,i,l=(0,r.c)(6),{createdAt:a}=e,o=(0,f.useLocale)(),s=(0,g.useResolvedDisplayTimeZone)();l[0]!==a||l[1]!==o||l[2]!==s?(n=(0,p.formatDate)(a,{locale:o,timeZone:s,preset:"month-year-short"})??"—",l[0]=a,l[1]=o,l[2]=s,l[3]=n):n=l[3];let c=n;return l[4]!==c?(i=(0,t.jsx)(P,{value:c,label:"Active since"}),l[4]=c,l[5]=i):i=l[5],i}e.s(["AppActiveSinceStat",0,B,"AppPageHeader",0,function(e){let u,m,g,p,R,E,D,U,z,H,$,V,G,W,K,Z,Y,q,J,Q,X,ee,et,er,en,ei,el,ea,eo,es,ec,ed,eu=(0,r.c)(91),{app:em,totalTokens:eh,rank:ef,modelsUsed:eg,spawnAgentId:ep,docsUrl:ex}=e,ev=(0,f.useLocale)(),[ej,eb]=(0,b.useState)(!1),[eS,ew]=(0,b.useState)(null),[eN,ek]=(0,b.useState)(em),[eC,e_]=(0,b.useState)(!1),[ey,eL]=(0,b.useState)(!1),eA=(0,b.useRef)(null),eR=(0,h.usePosthogClient)(),eE=(0,F.useLocalizedRouter)(),{description:eD}=eN;eu[0]!==eC?(u=()=>{let e=eA.current;if(!e||eC)return;let t=()=>eL(e.scrollHeight>e.clientHeight);t();let r=new ResizeObserver(t);return r.observe(e),()=>r.disconnect()},eu[0]=eC,eu[1]=u):u=eu[1],eu[2]!==eD||eu[3]!==eC?(m=[eD,eC],eu[2]=eD,eu[3]=eC,eu[4]=m):m=eu[4],(0,b.useEffect)(u,m),eu[5]===Symbol.for("react.memo_cache_sentinel")?(g=e=>{ek(t=>({...t,...e}))},eu[5]=g):g=eu[5];let eT=g,eM=eN.main_url??eN.origin_url,eF=eN.favicon_url??eM;eu[6]===Symbol.for("react.memo_cache_sentinel")?(p=e=>{ew(e),eb(!0)},eu[6]=p):p=eu[6];let eI=p;eu[7]!==em||eu[8]!==eM||eu[9]!==eN.id||eu[10]!==eN.title||eu[11]!==eS||eu[12]!==eR?(R=()=>{eS&&(eS===eM?eR.capture(a.PostHogEvent.ClickAppVisitLink,{app_id:String(eN.id),app_title:eN.title??"",app_url:eM,origin_url:em.origin_url}):eR.capture(a.PostHogEvent.ClickAppDocsButton,{app_id:String(eN.id),app_title:eN.title??"",docs_url:eS}),window.open(eS,"_blank","noreferrer"),eb(!1))},eu[7]=em,eu[8]=eM,eu[9]=eN.id,eu[10]=eN.title,eu[11]=eS,eu[12]=eR,eu[13]=R):R=eu[13];let eO=R,eU=!!eN.favicon_url;eu[14]!==eN.icon_class_name||eu[15]!==eN.title||eu[16]!==eF||eu[17]!==eU?(E=(0,t.jsx)(O,{faviconURL:eF,hasCuratedFaviconUrl:eU,iconClassName:eN.icon_class_name,title:eN.title}),eu[14]=eN.icon_class_name,eu[15]=eN.title,eu[16]=eF,eu[17]=eU,eu[18]=E):E=eu[18];let eP=eN.title??eM;eu[19]!==eP?(D=(0,t.jsx)("h1",{className:"tracking-tight",children:eP}),eu[19]=eP,eu[20]=D):D=eu[20],eu[21]!==eN?(U=(0,t.jsx)(T.AdminAppEditButton,{app:eN,onUpdate:eT}),eu[21]=eN,eu[22]=U):U=eu[22],eu[23]!==U||eu[24]!==D?(z=(0,t.jsx)(C,{children:(0,t.jsxs)(_,{children:[D,U]})}),eu[23]=U,eu[24]=D,eu[25]=z):z=eu[25],eu[26]!==z||eu[27]!==E?(H=(0,t.jsxs)(k,{children:[E,z]}),eu[26]=z,eu[27]=E,eu[28]=H):H=eu[28],eu[29]!==eN.id||eu[30]!==eN.title||eu[31]!==eR||eu[32]!==ep?($=ep&&(0,t.jsxs)(d.Button,{variant:"outline",size:"sm",className:S,render:(0,t.jsx)(M.Link,{href:`/spawn/${ep}`}),onClick:()=>{eR.capture(a.PostHogEvent.ClickAppSpawnButton,{app_id:String(eN.id),app_title:eN.title??"",spawn_agent_id:ep})},children:[(0,t.jsx)(l.RocketLaunchIcon,{className:"size-4"}),"Spawn"]}),eu[29]=eN.id,eu[30]=eN.title,eu[31]=eR,eu[32]=ep,eu[33]=$):$=eu[33],eu[34]!==eN.id||eu[35]!==eN.title||eu[36]!==ex||eu[37]!==eR||eu[38]!==eE?(V=ex&&(0,t.jsxs)(d.Button,{variant:"outline",size:"sm",className:S,onClick:()=>{ex.startsWith("/")?(eR.capture(a.PostHogEvent.ClickAppDocsButton,{app_id:String(eN.id),app_title:eN.title??"",docs_url:ex},{transport:"sendBeacon"}),(0,s.isCrossZoneHref)(ex)?window.location.assign(ex):eE.push(ex)):eI(ex)},children:[(0,t.jsx)(i.BookOpenIcon,{className:"size-4"}),"Docs"]}),eu[34]=eN.id,eu[35]=eN.title,eu[36]=ex,eu[37]=eR,eu[38]=eE,eu[39]=V):V=eu[39],eu[40]!==eM?(G=()=>eI(eM),eu[40]=eM,eu[41]=G):G=eu[41],eu[42]===Symbol.for("react.memo_cache_sentinel")?(W=(0,t.jsx)(n.ArrowTopRightOnSquareIcon,{className:"size-4"}),eu[42]=W):W=eu[42],eu[43]!==G?(K=(0,t.jsxs)(d.Button,{variant:"outline",size:"sm",onClick:G,className:S,children:[W,"Visit"]}),eu[43]=G,eu[44]=K):K=eu[44],eu[45]!==$||eu[46]!==V||eu[47]!==K?(Z=(0,t.jsxs)(y,{children:[$,V,K]}),eu[45]=$,eu[46]=V,eu[47]=K,eu[48]=Z):Z=eu[48],eu[49]!==H||eu[50]!==Z?(Y=(0,t.jsxs)(N,{children:[H,Z]}),eu[49]=H,eu[50]=Z,eu[51]=Y):Y=eu[51],eu[52]!==eD||eu[53]!==eC||eu[54]!==ey?(q=eD&&(0,t.jsxs)(L,{children:[(0,t.jsx)("div",{ref:eA,className:(0,o.cn)("text-sm text-muted-foreground leading-relaxed",!eC&&"line-clamp-2"),children:eD}),ey&&(0,t.jsx)("button",{type:"button",onClick:()=>e_(I),className:"inline-flex items-center gap-1 text-xs text-muted-foreground hover:text-foreground mt-1 transition-colors cursor-pointer",children:eC?(0,t.jsxs)(t.Fragment,{children:["Show less ",(0,t.jsx)(j.ChevronUp,{className:"w-3 h-3"})]}):(0,t.jsxs)(t.Fragment,{children:["Show more ",(0,t.jsx)(v.ChevronDown,{className:"w-3 h-3"})]})})]}),eu[52]=eD,eu[53]=eC,eu[54]=ey,eu[55]=q):q=eu[55],eu[56]!==ev||eu[57]!==eh?(J=(0,x.formatNumber)(eh,{locale:ev,preset:"compact-rounded-thousands"})??"—",eu[56]=ev,eu[57]=eh,eu[58]=J):J=eu[58],eu[59]!==J?(Q=(0,t.jsx)(P,{value:J,label:"Total tokens"}),eu[59]=J,eu[60]=Q):Q=eu[60];let eB=ef?`#${ef}`:"—";return eu[61]!==eB?(X=(0,t.jsx)(P,{value:eB,label:"Daily global rank"}),eu[61]=eB,eu[62]=X):X=eu[62],eu[63]!==eN.created_at?(ee=(0,t.jsx)(B,{createdAt:eN.created_at}),eu[63]=eN.created_at,eu[64]=ee):ee=eu[64],eu[65]!==eg?(et=eg.toString(),eu[65]=eg,eu[66]=et):et=eu[66],eu[67]!==et?(er=(0,t.jsx)(P,{value:et,label:"Models used"}),eu[67]=et,eu[68]=er):er=eu[68],eu[69]!==Q||eu[70]!==X||eu[71]!==ee||eu[72]!==er?(en=(0,t.jsxs)(A,{children:[Q,X,ee,er]}),eu[69]=Q,eu[70]=X,eu[71]=ee,eu[72]=er,eu[73]=en):en=eu[73],eu[74]===Symbol.for("react.memo_cache_sentinel")?(ei=(0,t.jsxs)(c.AlertDialogHeader,{children:[(0,t.jsx)(c.AlertDialogTitle,{children:"External Navigation"}),(0,t.jsx)(c.AlertDialogDescription,{children:"You are about to leave OpenRouter and visit an external website. Would you like to continue?"})]}),eu[74]=ei):ei=eu[74],eu[75]!==eS?(el=(0,t.jsx)("pre",{className:"overflow-x-auto text-center text-sm",children:eS}),eu[75]=eS,eu[76]=el):el=eu[76],eu[77]===Symbol.for("react.memo_cache_sentinel")?(ea=(0,t.jsx)(d.Button,{variant:"outline",onClick:()=>eb(!1),children:"Cancel"}),eu[77]=ea):ea=eu[77],eu[78]!==eO?(eo=(0,t.jsxs)(c.AlertDialogFooter,{children:[ea,(0,t.jsx)(d.Button,{onClick:eO,children:"Continue"})]}),eu[78]=eO,eu[79]=eo):eo=eu[79],eu[80]!==el||eu[81]!==eo?(es=(0,t.jsxs)(c.AlertDialogContent,{children:[ei,el,eo]}),eu[80]=el,eu[81]=eo,eu[82]=es):es=eu[82],eu[83]!==ej||eu[84]!==es?(ec=(0,t.jsx)(c.AlertDialog,{open:ej,onOpenChange:eb,children:es}),eu[83]=ej,eu[84]=es,eu[85]=ec):ec=eu[85],eu[86]!==Y||eu[87]!==q||eu[88]!==en||eu[89]!==ec?(ed=(0,t.jsxs)(w,{children:[Y,q,en,ec]}),eu[86]=Y,eu[87]=q,eu[88]=en,eu[89]=ec,eu[90]=ed):ed=eu[90],ed}],892411)},885101,e=>{"use strict";var t=e.i(222666),r=e.i(505962),n=e.i(452473),i=e.i(648156),l=e.i(117738);let a=function(e){let n,i=(0,r.c)(2),{children:l}=e;return i[0]!==l?(n=(0,t.jsx)("div",{className:"flex flex-wrap gap-2",children:l}),i[0]=l,i[1]=n):n=i[1],n};var o=e.i(936532);e.i(406201);var s=e.i(806024);function c(e){let r=(0,t.jsxs)(s.Link,{href:e.href,className:(0,n.cn)("px-3 py-1.5 rounded-full text-sm transition",e.isBelowThreshold?"bg-muted/50 text-muted-foreground border border-dashed border-muted-foreground/30 opacity-50":"bg-muted text-muted-foreground hover:bg-muted/80"),children:["#",e.rank," in ",e.label]},e.href);return e.isBelowThreshold?(0,t.jsx)(i.Tooltip,{content:`Fewer than ${o.MIN_SUBCATEGORY_APP_COUNT} apps — hidden from non-admins`,children:r},e.href):r}function d(e){return!e.isBelowThreshold}e.s(["CategoryRankingPills",0,function(e){let n,o,s,u=(0,r.c)(7),{rankings:m}=e,{entity:h}=(0,l.useEntity)(),f=h.data?.is_internal_admin===!0;u[0]!==f||u[1]!==m?(n=f?m:m.filter(d),u[0]=f,u[1]=m,u[2]=n):n=u[2];let g=n;return 0===g.length?null:(u[3]!==g?(o=g.map(c),u[3]=g,u[4]=o):o=u[4],u[5]!==o?(s=(0,t.jsx)(i.TooltipProvider,{children:(0,t.jsx)(a,{children:o})}),u[5]=o,u[6]=s):s=u[6],s)}],885101)},457658,e=>{"use strict";var t=e.i(222666),r=e.i(505962);e.i(270401);var n=e.i(369822);let i=function(e){let n,i=(0,r.c)(2),{children:l}=e;return i[0]!==l?(n=(0,t.jsx)("div",{className:"bg-card border border-border rounded-lg",children:l}),i[0]=l,i[1]=n):n=i[1],n},l=function(e){let n,i=(0,r.c)(2),{children:l}=e;return i[0]!==l?(n=(0,t.jsx)("div",{className:"flex items-center justify-between px-5 py-4 border-b border-border",children:l}),i[0]=l,i[1]=n):n=i[1],n},a=function(e){let n,i=(0,r.c)(2),{children:l}=e;return i[0]!==l?(n=(0,t.jsx)("h3",{children:l}),i[0]=l,i[1]=n):n=i[1],n},o=function(e){let n,i=(0,r.c)(2),{children:l}=e;return i[0]!==l?(n=(0,t.jsx)("span",{className:"text-sm text-muted-foreground",children:l}),i[0]=l,i[1]=n):n=i[1],n},s=function(e){let n,i=(0,r.c)(2),{children:l}=e;return i[0]!==l?(n=(0,t.jsx)("div",{className:"p-5",children:l}),i[0]=l,i[1]=n):n=i[1],n};var c=e.i(84130);e.s(["UsageChart",0,function(e){let d,u,m,h,f,g,p=(0,r.c)(15),{data:x,appName:v,forecast:j,forecastFromTimestamp:b}=e;p[0]!==x?(d=(0,n.buildChartColorMap)(x),p[0]=x,p[1]=d):d=p[1];let S=d,w=v?`${v} OpenRouter Usage`:"OpenRouter Usage";return p[2]!==w?(u=(0,t.jsx)(a,{children:w}),p[2]=w,p[3]=u):u=p[3],p[4]===Symbol.for("react.memo_cache_sentinel")?(m=(0,t.jsx)(o,{children:"Last 30 days"}),p[4]=m):m=p[4],p[5]!==u?(h=(0,t.jsxs)(l,{children:[u,m]}),p[5]=u,p[6]=h):h=p[6],p[7]!==S||p[8]!==x||p[9]!==j||p[10]!==b?(f=(0,t.jsx)(s,{children:(0,t.jsx)(c.ModelCharts,{data:x,forecast:j,forecastFromTimestamp:b,colorMapping:S})}),p[7]=S,p[8]=x,p[9]=j,p[10]=b,p[11]=f):f=p[11],p[12]!==h||p[13]!==f?(g=(0,t.jsxs)(i,{children:[h,f]}),p[12]=h,p[13]=f,p[14]=g):g=p[14],g}],457658)},369822,e=>{"use strict";var t=e.i(956302),r=e.i(184010);e.s(["buildChartColorMap",0,function(e){return(0,r.createStableChartColorMapping)(e.flatMap(e=>Object.keys(e.ys)),t.defaultColors)}])},936532,e=>{"use strict";let t={coding:{text:"text-chart-1",border:"border-chart-1/20",bg:"bg-chart-1/12"},creative:{text:"text-chart-9",border:"border-chart-9/20",bg:"bg-chart-9/12"},productivity:{text:"text-chart-3",border:"border-chart-3/20",bg:"bg-chart-3/12"},entertainment:{text:"text-chart-6",border:"border-chart-6/20",bg:"bg-chart-6/12"}};e.s(["GLOBAL_RANKING_LIMIT",0,60,"GLOBAL_RANKING_PAGE_SIZE",0,20,"GlobalRankingPeriod",0,{Day:"day",Week:"week",Month:"month"},"MIN_SUBCATEGORY_APP_COUNT",0,3,"getCategoryGroupColors",0,function(e){return t[e]}])},84130,e=>{"use strict";var t=e.i(222666),r=e.i(505962),n=e.i(128066),i=e.i(691038),l=e.i(784510),a=e.i(706527),o=e.i(238032),s=e.i(461790);e.i(270401);var c=e.i(785087),d=e.i(62705),u=e.i(758261),m=e.i(612960);e.s(["ModelCharts",0,function(e){let h,f,g,p,x,v=(0,r.c)(29),{data:j,isPercentage:b,forecast:S,forecastFromTimestamp:w,shouldNavigateOnClick:N,otherModelsHref:k,showLogScaleToggle:C,headerControl:_,colorMapping:y,openLinksInNewTab:L,shortenModelNames:A,yAxisLabel:R,valueFormatter:E,yAxisTickFormatter:D}=e,T=void 0!==b&&b,M=void 0!==C&&C,F=void 0!==L&&L,I=void 0!==A&&A,O=(0,i.useMediaMd)(),U=(0,m.useLocalizedRouter)(),{getPrimaryModelInfoByPermaslug:P}=(0,l.useGlobal)();e:{let e;if(!I){let e;v[0]===Symbol.for("react.memo_cache_sentinel")?(e=new Map,v[0]=e):e=v[0],h=e;break e}if(v[1]!==j||v[2]!==P){let t=new Map;for(let e of j)for(let r of Object.keys(e.ys)){let e=P((0,s.getStandardSlug)(r));t.set(r,e?(0,c.getModelSeriesNames)(e,r):{name:r,distinctName:r})}e=(0,c.getDistinctModelChartLabels)(t),v[1]=j,v[2]=P,v[3]=e}else e=v[3];h=e}let B=h;v[4]!==B||v[5]!==P||v[6]!==I?(f=e=>{if(!e||"string"!=typeof e)return"--";if("others"===e.toLowerCase())return"Others";let t=P((0,s.getStandardSlug)(e)),r=t?(0,c.getModelSeriesNames)(t,e).name:e;return I?B.get(e)??(0,o.formatModelName)(r,{shorten:!0,preserveVariant:!0}):r},v[4]=B,v[5]=P,v[6]=I,v[7]=f):f=v[7];let z=f;v[8]!==P||v[9]!==F||v[10]!==k||v[11]!==U?(g=e=>{if("others"===e.toLowerCase())return void(F?(0,u.openRankingsSeriesLink)(e,k):U.push(k??"/models?fmt=cards"));let t=P((0,s.getStandardSlug)(e));if(!t)return;let r=(0,u.getRankingsModelVariantHref)(e,(0,a.getModelVariantSlug)(t));F?(0,u.openRankingsSeriesLink)(r,k):U.push(r)},v[8]=P,v[9]=F,v[10]=k,v[11]=U,v[12]=g):g=v[12];let H=g,$=O&&(void 0===N||N)?H:void 0;v[13]!==P?(p=e=>(0,d.getIsRankingSeriesClickable)(e,e=>P((0,s.getStandardSlug)(e))),v[13]=P,v[14]=p):p=v[14];let V=p,G=O?R:void 0;return v[15]!==y||v[16]!==j||v[17]!==S||v[18]!==w||v[19]!==V||v[20]!==_||v[21]!==T||v[22]!==z||v[23]!==M||v[24]!==$||v[25]!==G||v[26]!==E||v[27]!==D?(x=(0,t.jsx)(n.StackedBarChart,{data:j,isPercentage:T,onLabel:z,onClick:$,getIsSeriesClickable:V,forecast:S,forecastFromTimestamp:w,isAnimationActive:!1,yAxisLabel:G,valueFormatter:E,yAxisTickFormatter:D,showLogScaleToggle:M,headerControl:_,colorMapping:y,allowTooltipToRight:!0}),v[15]=y,v[16]=j,v[17]=S,v[18]=w,v[19]=V,v[20]=_,v[21]=T,v[22]=z,v[23]=M,v[24]=$,v[25]=G,v[26]=E,v[27]=D,v[28]=x):x=v[28],x}])},785087,62705,e=>{"use strict";var t=e.i(238032),r=e.i(179273);e.s(["getDistinctModelChartLabels",0,function(e){let r=new Map([...e].map(([e,r])=>[e,(0,t.formatModelName)(r.name,{shorten:!0,preserveVariant:!0})])),n=new Map;for(let[e,t]of r){let r=n.get(t)??[];r.push(e),n.set(t,r)}let i=new Map(r);for(let r of n.values()){if(r.length<2)continue;let n=new Map(r.flatMap(r=>{let n=e.get(r);return n?[[r,(0,t.formatModelName)(n.distinctName,{shorten:!0,keepNote:!0})]]:[]})),l=new Set(n.values()).size{"use strict";var t=e.i(179273);e.s(["getRankingsModelVariantHref",0,function(e,r){let n=(0,t.getStaticVariant)(e);return n===t.StaticVariant.Standard?`/${r}`:`/${(0,t.getSlugWithStaticVariant)(r,n)}`},"openRankingsSeriesLink",0,function(e,t){let r="others"===e.toLowerCase()?t??"/models?fmt=cards":e.startsWith("/")?e:`/${e}`;window.open(r,"_blank","noopener,noreferrer")}])},764043,e=>{"use strict";var t=e.i(222666),r=e.i(505962),n=e.i(373855),i=e.i(452473),l=e.i(528164),a=e.i(712621),o=e.i(117738);e.i(172794);var s=e.i(781656);e.s(["AdminAppEditButton",0,function(e){let c,d,u,m,h,f=(0,r.c)(9),{app:g,className:p}=e,{entity:x}=(0,o.useEntity)();if(!x.data?.is_internal_admin)return null;f[0]===Symbol.for("react.memo_cache_sentinel")?(c=(0,s.getMissionControlUrl)(),f[0]=c):c=f[0];let v=`${c}/admin-utils/app-editor?url=${encodeURIComponent(g.origin_url)}`;return f[1]!==p?(d=(0,i.cn)("text-warning hover:text-warning/80",p),f[1]=p,f[2]=d):d=f[2],f[3]===Symbol.for("react.memo_cache_sentinel")?(u=(0,t.jsx)(n.PencilIcon,{className:"size-3"}),f[3]=u):u=f[3],f[4]!==v?(m=(0,t.jsx)(a.ExternalLink,{href:v,target:"_blank",rel:"noopener noreferrer",className:"no-underline",children:u}),f[4]=v,f[5]=m):m=f[5],f[6]!==d||f[7]!==m?(h=(0,t.jsx)(l.Button,{className:d,variant:"outline",size:"icon-sm",render:m}),f[6]=d,f[7]=m,f[8]=h):h=f[8],h}])}]); //# sourceMappingURL=432rokh71bb0z.js.map //# chunkId=01a09faf-536b-74a1-a088-b11e21b42a34