!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]="01a08e82-2f67-74e1-8b4d-3e73c9f14e85")}catch(e){}}();(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,699511,e=>{"use strict";var t=e.i(270401);let r=t.forwardRef(function({title:e,titleId:r,...n},a){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:a,"aria-labelledby":r},n),e?t.createElement("title",{id:r},e):null,t.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M15.75 19.5 8.25 12l7.5-7.5"}))});e.s(["ChevronLeftIcon",0,r],699511)},373855,e=>{"use strict";var t=e.i(270401);let r=t.forwardRef(function({title:e,titleId:r,...n},a){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:a,"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)},993789,e=>{"use strict";var t=e.i(270401);let r=t.forwardRef(function({title:e,titleId:r,...n},a){return t.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true","data-slot":"icon",ref:a,"aria-labelledby":r},n),e?t.createElement("title",{id:r},e):null,t.createElement("path",{fillRule:"evenodd",d:"M16.28 11.47a.75.75 0 0 1 0 1.06l-7.5 7.5a.75.75 0 0 1-1.06-1.06L14.69 12 7.72 5.03a.75.75 0 0 1 1.06-1.06l7.5 7.5Z",clipRule:"evenodd"}))});e.s(["ChevronRightIcon",0,r],993789)},607296,e=>{"use strict";let t=(0,e.i(202913).default)("chevron-left",[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]]);e.s(["ChevronLeft",0,t],607296)},222584,e=>{"use strict";let t=(0,e.i(202913).default)("chevron-right",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]);e.s(["default",0,t])},379497,e=>{"use strict";var t=e.i(222584);e.s(["ChevronRight",()=>t.default])},621364,e=>{"use strict";var t=e.i(237425),r=e.i(397377),n=e.i(270401);function a(e,t,n){try{return e(t)}catch(e){return(0,r.l)("[nuqs] Error while parsing value `%s`: %O"+(n?" (for key `%s`)":""),t,e,n),null}}function s(e){function t(t){if(void 0===t)return null;let r="";if(Array.isArray(t)){if(void 0===t[0])return null;r=t[0]}return"string"==typeof t&&(r=t),a(e.parse,r)}return{type:"single",eq:(e,t)=>e===t,...e,parseServerSide:t,withDefault(e){return{...this,defaultValue:e,parseServerSide:r=>t(r)??e}},withOptions(e){return{...this,...e}}}}let l=s({parse:e=>e,serialize:String}),i=s({parse:e=>{let t=parseInt(e);return t==t?t:null},serialize:e=>""+Math.round(e)});s({parse:e=>{let t=parseInt(e);return t==t?t-1:null},serialize:e=>""+Math.round(e+1)}),s({parse:e=>{let t=parseInt(e,16);return t==t?t:null},serialize:e=>{let t=Math.round(e).toString(16);return(1&t.length?"0":"")+t}});let o=s({parse:e=>{let t=parseFloat(e);return t==t?t:null},serialize:String}),c=s({parse:e=>"true"===e.toLowerCase(),serialize:String});function u(e,t){return e.valueOf()===t.valueOf()}function m(e){return s({parse:t=>e.includes(t)?t:null,serialize:String})}function d(e){return"string"==typeof e||e instanceof URLSearchParams||e instanceof URL}s({parse:e=>{let t=parseInt(e);return t==t?new Date(t):null},serialize:e=>""+e.valueOf(),eq:u}),s({parse:e=>{let t=new Date(e);return t.valueOf()==t.valueOf()?t:null},serialize:e=>e.toISOString(),eq:u}),s({parse:e=>{let t=new Date(e.slice(0,10));return t.valueOf()==t.valueOf()?t:null},serialize:e=>e.toISOString().slice(0,10),eq:u});let p=(0,t.r)(),h={};function f(e,a={}){let s=(0,n.useId)(),l=(0,r.i)(),i=(0,r.a)(),{history:o="replace",scroll:c=l?.scroll??!1,shallow:u=l?.shallow??!0,throttleMs:m=t.s.timeMs,limitUrlUpdates:d=l?.limitUrlUpdates,clearOnDefault:b=l?.clearOnDefault??!0,startTransition:y,urlKeys:v=h}=a,j=Object.keys(e).join(","),_=(0,n.useMemo)(()=>Object.fromEntries(Object.keys(e).map(e=>[e,v[e]??e])),[j,JSON.stringify(v)]),N=(0,r.r)(Object.values(_)),S=N.searchParams,w=(0,n.useRef)({}),k=(0,n.useMemo)(()=>Object.fromEntries(Object.keys(e).map(t=>[t,e[t].defaultValue??null])),[Object.values(e).map(({defaultValue:e})=>e).join(",")]),A=t.t.useQueuedQueries(Object.values(_)),[C,O]=(0,n.useState)(()=>g(e,v,S??new URLSearchParams,A).state),P=(0,n.useRef)(C);if((0,r.c)("[nuq+ %s `%s`] render - state: %O, iSP: %s",s,j,C,S),Object.keys(w.current).join("&")!==Object.values(_).join("&")){let{state:t,hasChanged:n}=g(e,v,S,A,w.current,P.current);n&&((0,r.c)("[nuq+ %s `%s`] State changed: %O",s,j,{state:t,initialSearchParams:S,queuedQueries:A,queryRef:w.current,stateRef:P.current}),P.current=t,O(t)),w.current=Object.fromEntries(Object.entries(_).map(([t,r])=>[r,e[t]?.type==="multi"?S?.getAll(r):S?.get(r)??null]))}(0,n.useEffect)(()=>{let{state:t,hasChanged:n}=g(e,v,S,A,w.current,P.current);n&&((0,r.c)("[nuq+ %s `%s`] State changed: %O",s,j,{state:t,initialSearchParams:S,queuedQueries:A,queryRef:w.current,stateRef:P.current}),P.current=t,O(t))},[Object.values(_).map(e=>`${e}=${S?.getAll(e)}`).join("&"),JSON.stringify(A)]),(0,n.useEffect)(()=>{let t=Object.keys(e).reduce((t,n)=>(t[n]=({state:t,query:a})=>{O(l=>{let{defaultValue:i}=e[n],o=_[n],c=t??i??null;return Object.is(l[n]??i??null,c)?((0,r.c)("[nuq+ %s `%s`] Cross-hook key sync %s: %O (default: %O). no change, skipping, resolved: %O",s,j,o,t,i,P.current),l):(P.current={...P.current,[n]:c},w.current[o]=a,(0,r.c)("[nuq+ %s `%s`] Cross-hook key sync %s: %O (default: %O). updateInternalState, resolved: %O",s,j,o,t,i,P.current),P.current)})},t),{});for(let n of Object.keys(e)){let e=_[n];(0,r.c)("[nuq+ %s `%s`] Subscribing to sync for `%s`",s,e,j),p.on(e,t[n])}return()=>{for(let n of Object.keys(e)){let e=_[n];(0,r.c)("[nuq+ %s `%s`] Unsubscribing to sync for `%s`",s,e,j),p.off(e,t[n])}}},[j,_]);let L=(0,n.useCallback)((n,a={})=>{let l,h=Object.fromEntries(Object.keys(e).map(e=>[e,null])),f="function"==typeof n?n(x(P.current,k))??h:n??h;(0,r.c)("[nuq+ %s `%s`] setState: %O",s,j,f);let g=0,v=!1,S=[];for(let[n,s]of Object.entries(f)){let h=e[n],f=_[n];if(!h||void 0===s)continue;(a.clearOnDefault??h.clearOnDefault??b)&&null!==s&&void 0!==h.defaultValue&&(h.eq??((e,t)=>e===t))(s,h.defaultValue)&&(s=null);let x=null===s?null:(h.serialize??String)(s);p.emit(f,{state:s,query:x});let j={key:f,query:x,options:{history:a.history??h.history??o,shallow:a.shallow??h.shallow??u,scroll:a.scroll??h.scroll??c,startTransition:a.startTransition??h.startTransition??y}};if(a?.limitUrlUpdates?.method==="debounce"||d?.method==="debounce"||h.limitUrlUpdates?.method==="debounce"){!0===j.options.shallow&&console.warn((0,r.s)(422));let e=a?.limitUrlUpdates?.timeMs??d?.timeMs??h.limitUrlUpdates?.timeMs??t.s.timeMs,n=t.t.push(j,e,N,i);gt(e),v?t.n.flush(N,i):t.n.getPendingPromise(N));return l??w},[j,o,u,c,m,d?.method,d?.timeMs,y,_,N.updateUrl,N.getSearchParamsSnapshot,N.rateLimitFactor,i,k]);return[(0,n.useMemo)(()=>x(C,k),[C,k]),L]}function g(e,r,n,s,l,i){let o=!1,c=Object.entries(e).reduce((e,[c,u])=>{var m;let d=r?.[c]??c,p=s[d],h="multi"===u.type?[]:null,f=void 0===p?("multi"===u.type?n?.getAll(d):n?.get(d))??h:p;return l&&i&&((m=l[d]??h)===f||null!==m&&null!==f&&"string"!=typeof m&&"string"!=typeof f&&m.length===f.length&&m.every((e,t)=>e===f[t]))?e[c]=i[c]??null:(o=!0,e[c]=((0,t.i)(f)?null:a(u.parse,f,d))??null,l&&(l[d]=f)),e},{});if(!o){let t=Object.keys(e),r=Object.keys(i??{});o=t.length!==r.length||t.some(e=>!r.includes(e))}return{state:c,hasChanged:o}}function x(e,t){return Object.fromEntries(Object.keys(e).map(r=>[r,e[r]??t[r]??null]))}e.s(["createSerializer",0,function(e,{clearOnDefault:n=!0,urlKeys:a={},processUrlSearchParams:s}={}){return function(l,i={}){let[o,c]=d(l)?function(e){if("string"==typeof e){let[t="",...r]=e.split("?");return[t,new URLSearchParams(r.join("?"))]}return e instanceof URLSearchParams?["",new URLSearchParams(e)]:[e.origin+e.pathname,new URLSearchParams(e.searchParams)]}(l):["",new URLSearchParams],u=d(l)?i:l;if(null===u){for(let t in e){let e=a[t]??t;c.delete(e)}return s&&(c=s(c)),o+(0,r.o)(c)}for(let r in e){let s=e[r],l=u[r];if(!s||void 0===l)continue;let i=a[r]??r,o=void 0!==s.defaultValue&&null!==l&&(s.eq??((e,t)=>e===t))(l,s.defaultValue);null===l||(s.clearOnDefault??n??!0)&&o?c.delete(i):c=(0,t.a)(s.serialize(l),i,c)}return s&&(c=s(c)),o+(0,r.o)(c)}},"parseAsArrayOf",0,function(e,t=","){let r=e.eq??((e,t)=>e===t),n=encodeURIComponent(t);return s({parse:r=>""===r?[]:r.split(t).map((r,s)=>a(e.parse,r.replaceAll(n,t),`[${s}]`)).filter(e=>null!=e),serialize:r=>r.map(r=>(e.serialize?e.serialize(r):String(r)).replaceAll(t,n)).join(t),eq:(e,t)=>e===t||e.length===t.length&&e.every((e,n)=>r(e,t[n]))})},"parseAsBoolean",0,c,"parseAsFloat",0,o,"parseAsInteger",0,i,"parseAsJson",0,function(e){return s({parse:t=>{try{let r=JSON.parse(t);if("~standard"in e){let t=e["~standard"].validate(r);if(t instanceof Promise)throw Error("[nuqs] Only synchronous Standard Schemas are supported in parseAsJson.");return t.issues?null:t.value}return e(r)}catch{return null}},serialize:e=>JSON.stringify(e),eq:(e,t)=>e===t||JSON.stringify(e)===JSON.stringify(t)})},"parseAsNativeArrayOf",0,function(e){let t=e.eq??((e,t)=>e===t);return(function(e){function t(t){return void 0===t?null:a(e.parse,Array.isArray(t)?t:[t])}return{type:"multi",eq:(e,t)=>e===t,...e,parseServerSide:t,withDefault(e){return{...this,defaultValue:e,parseServerSide:r=>t(r)??e}},withOptions(e){return{...this,...e}}}})({parse:t=>{let r=t.map((t,r)=>a(e.parse,t,`[${r}]`)).filter(e=>null!=e);return 0===r.length?null:r},serialize:t=>(Array.isArray(t)?t:[t]).flatMap(t=>{let r=e.serialize?.(t)??String(t);return"string"==typeof r?[r]:[...r]}),eq:(e,r)=>e===r||e.length===r.length&&e.every((e,n)=>t(e,r[n]))}).withDefault([])},"parseAsString",0,l,"parseAsStringEnum",0,function(e){return m(e)},"parseAsStringLiteral",0,m,"useQueryState",0,function(e,t={}){let{parse:r,type:a,serialize:s,eq:l,defaultValue:i,...o}=t,[{[e]:c},u]=f({[e]:{parse:r??(e=>e),type:a,serialize:s,eq:l,defaultValue:i}},o);return[c,(0,n.useCallback)((t,r={})=>u(r=>({[e]:"function"==typeof t?t(r[e]):t}),r),[e,u])]},"useQueryStates",0,f],621364)},847255,320319,952450,703298,604694,100274,517715,e=>{"use strict";e.i(81174);var t=e.i(217631);let r={CliAgent:"cli-agent",IdeExtension:"ide-extension",CloudAgent:"cloud-agent",ProgrammingApp:"programming-app",NativeAppBuilder:"native-app-builder",CreativeWriting:"creative-writing",VideoGen:"video-gen",ImageGen:"image-gen",AudioGen:"audio-gen",Roleplay:"roleplay",Game:"game",WritingAssistant:"writing-assistant",GeneralChat:"general-chat",PersonalAgent:"personal-agent",Legal:"legal"},n={Coding:"coding",Creative:"creative",Productivity:"productivity",Entertainment:"entertainment"},a={[r.CliAgent]:"CLI Agents",[r.IdeExtension]:"IDE Extensions",[r.CloudAgent]:"Cloud Agents",[r.ProgrammingApp]:"Programming App",[r.NativeAppBuilder]:"Native App Builders",[r.CreativeWriting]:"Creative Writing",[r.VideoGen]:"Video Generation",[r.ImageGen]:"Image Generation",[r.AudioGen]:"Audio Generation",[r.Roleplay]:"Roleplay",[r.Game]:"Game",[r.WritingAssistant]:"Writing Assistants",[r.GeneralChat]:"General Chat",[r.PersonalAgent]:"Personal Agents",[r.Legal]:"Legal"},s={[n.Coding]:"Coding Agents",[n.Creative]:"Creative",[n.Productivity]:"Productivity",[n.Entertainment]:"Entertainment"},l={[n.Coding]:[r.CliAgent,r.IdeExtension,r.CloudAgent,r.ProgrammingApp,r.NativeAppBuilder],[n.Creative]:[r.CreativeWriting,r.VideoGen,r.ImageGen,r.AudioGen],[n.Productivity]:[r.WritingAssistant,r.GeneralChat,r.PersonalAgent,r.Legal],[n.Entertainment]:[r.Roleplay,r.Game]},i=function(){let e={};for(let t of Object.values(n))for(let r of l[t])e[r]=t;return e}();function o(e){return a[e]}function c(e){return e.filter(e=>(0,t.isMember)(e,r))}e.s(["AppCategoryGroup",0,n,"CATEGORY_TO_GROUP",0,i,"filterValidCategories",0,c,"getCategoryDisplayName",0,o,"getCategoryGroupDisplayName",0,function(e){return s[e]}],847255);var u=e.i(222666),m=e.i(505962),d=e.i(452473);let p=(0,e.i(207298).cva)("",{variants:{variant:{divided:"marketplace-app-list-divided",spaced:"marketplace-app-list-spaced flex flex-col gap-0.5"}}});e.s(["MarketplaceAppList",0,function(e){let t,r,n=(0,m.c)(6),{variant:a,children:s,className:l}=e;return n[0]!==l||n[1]!==a?(t=(0,d.cn)(p({variant:a}),l),n[0]=l,n[1]=a,n[2]=t):t=n[2],n[3]!==s||n[4]!==t?(r=(0,u.jsx)("div",{"data-slot":"marketplace-app-list",className:t,children:s}),n[3]=s,n[4]=t,n[5]=r):r=n[5],r}],320319);var h=e.i(993789),f=e.i(143349),g=e.i(885840),x=e.i(837556),b=e.i(188363),y=e.i(779100),v=e.i(781656),j=e.i(370066),_=e.i(270401),N=e.i(936532),S=e.i(764043);e.i(406201);var w=e.i(806024);function k(e){let t=i[e],r=(0,N.getCategoryGroupColors)(t);return(0,u.jsx)("span",{className:(0,d.cn)("inline-flex items-center rounded-sm px-1 py-0.5 text-2xs leading-tight font-medium whitespace-nowrap",r.bg,r.text),children:o(e)},e)}function A(e){let t,r,n,a,s=(0,m.c)(10),{appAnalytics:l,sortBy:i}=e,o=void 0===i?"tokens":i,c=(0,y.useLocale)(),d="requests"===o?l.total_requests:l.total_tokens,p="requests"===o?"requests":"tokens";return s[0]!==c||s[1]!==d?(t=(0,j.formatNumber)(d,{locale:c,preset:"compact-rounded-thousands"})??"—",s[0]=c,s[1]=d,s[2]=t):t=s[2],s[3]!==t?(r=(0,u.jsx)("span",{className:"text-sm font-medium whitespace-nowrap",children:t}),s[3]=t,s[4]=r):r=s[4],s[5]!==p?(n=(0,u.jsx)("span",{className:"text-xs text-muted-foreground ml-1 hidden sm:inline",children:p}),s[5]=p,s[6]=n):n=s[6],s[7]!==r||s[8]!==n?(a=(0,u.jsxs)("div",{children:[r,n]}),s[7]=r,s[8]=n,s[9]=a):a=s[9],a}e.s(["MarketplaceAppRow",0,function(e){var t;let r,n,a,s,l,i,o,p,y,j,N,C,O,P,L,G,R,I,E,M,T,z,q=(0,m.c)(76),{appAnalytics:U,rank:B,showGrowth:D,growthPercent:F,sortBy:$,dotColor:W,showCategories:K}=e,V=void 0===$?"tokens":$,{app:H}=U,[Q,J]=(0,_.useState)(H);if(!Q)return null;q[0]!==Q?(r={name:function(e){if(e.title)return e.title;if(!URL.canParse(e.origin_url))return e.origin_url;let t=new URL(e.origin_url);return(0,v.removeTrailingSlash)(t.host+t.pathname)}(t=Q),description:t.description},q[0]=Q,q[1]=r):r=q[1];let Z=r,Y=Q.favicon_url||Q.main_url||Q.origin_url||"";if(q[2]!==Q||q[3]!==W||q[4]!==Z.description||q[5]!==Z.name||q[6]!==B||q[7]!==K||q[8]!==Y){let e,t,r,m=K?c(Q.categories):[];l="marketplace-app-row",i="marketplace-app",o="flex items-center hover:bg-muted/50 group transition",n=w.Link;let h=m.length>0?"items-start":"items-center";q[22]!==h?(C=(0,d.cn)("flex flex-1 min-w-0 gap-2 sm:gap-3 py-3 sm:py-3.5 px-2 sm:px-4",h,"cursor-pointer text-foreground"),q[22]=h,q[23]=C):C=q[23],q[24]!==Q?(O=(0,f.getAppPath)(Q),q[24]=Q,q[25]=O):O=q[25],q[26]===Symbol.for("react.memo_cache_sentinel")?(e=(0,d.cn)("flex h-9 items-center justify-end shrink-0","text-muted-foreground text-sm w-5 sm:w-6"),q[26]=e):e=q[26],q[27]!==B?(P=(0,u.jsxs)("span",{className:e,children:[B,"."]}),q[27]=B,q[28]=P):P=q[28],q[29]!==W?(a=W&&(0,u.jsx)("div",{className:"w-2.5 h-2.5 rounded-full shrink-0",style:{backgroundColor:W}}),q[29]=W,q[30]=a):a=q[30],q[31]!==Q.icon_class_name?(t=(0,d.cn)("size-full",Q.icon_class_name),q[31]=Q.icon_class_name,q[32]=t):t=q[32];let g=!!Q.favicon_url;q[33]!==t||q[34]!==g||q[35]!==Y?(s=(0,u.jsx)(x.IconFrame,{variant:"app",className:"size-9",children:(0,u.jsx)(b.RemoteFavicon,{className:t,faviconFor:Y,hasCuratedFaviconUrl:g})}),q[33]=t,q[34]=g,q[35]=Y,q[36]=s):s=q[36],p="flex-1 min-w-0 overflow-hidden",q[37]!==Z.name?(y=(0,u.jsx)("div",{className:"flex items-center gap-1.5",children:(0,u.jsx)("span",{className:"font-medium text-xs truncate",children:Z.name})}),q[37]=Z.name,q[38]=y):y=q[38],q[39]!==Q.origin_url||q[40]!==Z.description?(r=Z.description||(0,v.removeTrailingSlash)(new URL(Q.origin_url).host),q[39]=Q.origin_url,q[40]=Z.description,q[41]=r):r=q[41],q[42]!==r?(j=(0,u.jsx)("div",{className:"flex items-center gap-1 text-xs text-muted-foreground min-w-0",children:(0,u.jsx)("p",{className:"truncate",children:r})}),q[42]=r,q[43]=j):j=q[43],N=m.length>0&&(0,u.jsx)("div",{className:"flex flex-wrap items-center gap-1 mt-1",children:m.map(k)}),q[2]=Q,q[3]=W,q[4]=Z.description,q[5]=Z.name,q[6]=B,q[7]=K,q[8]=Y,q[9]=n,q[10]=a,q[11]=s,q[12]=l,q[13]=i,q[14]=o,q[15]=p,q[16]=y,q[17]=j,q[18]=N,q[19]=C,q[20]=O,q[21]=P}else n=q[9],a=q[10],s=q[11],l=q[12],i=q[13],o=q[14],p=q[15],y=q[16],j=q[17],N=q[18],C=q[19],O=q[20],P=q[21];return q[44]!==p||q[45]!==y||q[46]!==j||q[47]!==N?(L=(0,u.jsxs)("div",{className:p,children:[y,j,N]}),q[44]=p,q[45]=y,q[46]=j,q[47]=N,q[48]=L):L=q[48],q[49]!==F||q[50]!==D?(G=D&&void 0!==F&&(0,u.jsx)("span",{className:(0,d.cn)("text-xs font-medium",F>0?"text-positive":"text-negative"),title:(0,g.formatGrowthPercentTooltip)(F,"Change vs previous period"),children:(0,g.formatGrowthPercent)(F)}),q[49]=F,q[50]=D,q[51]=G):G=q[51],q[52]!==U||q[53]!==V?(R=(0,u.jsx)(A,{appAnalytics:U,sortBy:V}),q[52]=U,q[53]=V,q[54]=R):R=q[54],q[55]===Symbol.for("react.memo_cache_sentinel")?(I=(0,u.jsx)(h.ChevronRightIcon,{className:"w-4 h-4 text-muted-foreground opacity-0 group-hover:opacity-100 transition-opacity hidden sm:block"}),q[55]=I):I=q[55],q[56]!==G||q[57]!==R?(E=(0,u.jsxs)("div",{className:"text-right shrink-0 flex h-9 items-center gap-2 ml-auto",children:[G,R,I]}),q[56]=G,q[57]=R,q[58]=E):E=q[58],q[59]!==n||q[60]!==a||q[61]!==s||q[62]!==L||q[63]!==E||q[64]!==C||q[65]!==O||q[66]!==P?(M=(0,u.jsxs)(n,{className:C,href:O,children:[P,a,s,L,E]}),q[59]=n,q[60]=a,q[61]=s,q[62]=L,q[63]=E,q[64]=C,q[65]=O,q[66]=P,q[67]=M):M=q[67],q[68]!==Q?(T=(0,u.jsx)(S.AdminAppEditButton,{app:Q,onUpdate:J,className:"mr-2 sm:mr-4"}),q[68]=Q,q[69]=T):T=q[69],q[70]!==l||q[71]!==i||q[72]!==o||q[73]!==M||q[74]!==T?(z=(0,u.jsxs)("div",{"data-slot":l,"data-ssr-content":i,className:o,children:[M,T]}),q[70]=l,q[71]=i,q[72]=o,q[73]=M,q[74]=T,q[75]=z):z=q[75],z}],952450);var C=e.i(553215),O=e.i(738286),P=e.i(252358),L=e.i(621364);Symbol("Input"),!function(){if(!("u"e===t,...e,parseServerSide:t,withDefault(e){return{...this,defaultValue:e,parseServerSide:r=>t(r)??e}},withOptions(e){return{...this,...e}}}}function I(e,t){return e.valueOf()===t.valueOf()}function E(e){return R({parse:t=>e.includes(t)?t:null,serialize:String})}R({parse:e=>e,serialize:String}),R({parse:e=>{let t=parseInt(e);return t==t?t:null},serialize:e=>""+Math.round(e)}),R({parse:e=>{let t=parseInt(e);return t==t?t-1:null},serialize:e=>""+Math.round(e+1)}),R({parse:e=>{let t=parseInt(e,16);return t==t?t:null},serialize:e=>{let t=Math.round(e).toString(16);return(1&t.length?"0":"")+t}}),R({parse:e=>{let t=parseFloat(e);return t==t?t:null},serialize:String}),R({parse:e=>"true"===e.toLowerCase(),serialize:String}),R({parse:e=>{let t=parseInt(e);return t==t?new Date(t):null},serialize:e=>""+e.valueOf(),eq:I}),R({parse:e=>{let t=new Date(e);return t.valueOf()==t.valueOf()?t:null},serialize:e=>e.toISOString(),eq:I}),R({parse:e=>{let t=new Date(e.slice(0,10));return t.valueOf()==t.valueOf()?t:null},serialize:e=>e.toISOString().slice(0,10),eq:I});let M=[N.GlobalRankingPeriod.Day,N.GlobalRankingPeriod.Week,N.GlobalRankingPeriod.Month],T=N.GlobalRankingPeriod.Day,z={sort:E(["tokens","requests"]).withDefault("tokens"),period:E(M).withDefault(T)};e.s(["appsSearchParamParsers",0,z],703298);let q=[["Today","day"],["This Week","week"],["This Month","month"]];function U(e){let r,n,a,s,l,i,o=(0,m.c)(12),{period:c,onChange:d}=e;o[0]===Symbol.for("react.memo_cache_sentinel")?(r=z.period.withOptions({history:"push"}),o[0]=r):r=o[0];let[,p]=(0,L.useQueryState)("period",r),h=(0,P.usePosthogClient)();o[1]!==d||o[2]!==h||o[3]!==p?(n=function(e){if(d){d(e),h.capture(C.PostHogEvent.ClickAppsCategoryTimeRange,{period:e});return}p(e),h.capture(C.PostHogEvent.ClickAppsCategoryTimeRange,{period:e})},o[1]=d,o[2]=h,o[3]=p,o[4]=n):n=o[4];let f=n;return o[5]!==f?(a=e=>{(0,t.isMember)(e,N.GlobalRankingPeriod)&&f(e)},o[5]=f,o[6]=a):a=o[6],o[7]===Symbol.for("react.memo_cache_sentinel")?(s=(0,u.jsx)(O.SelectTrigger,{className:"w-32 text-sm pl-4 pr-6",children:(0,u.jsx)(O.SelectValue,{})}),o[7]=s):s=o[7],o[8]===Symbol.for("react.memo_cache_sentinel")?(l=(0,u.jsx)(O.SelectContent,{children:q.map(B)}),o[8]=l):l=o[8],o[9]!==c||o[10]!==a?(i=(0,u.jsxs)(O.Select,{value:c,onValueChange:a,variant:"rounded",size:"compact",children:[s,l]}),o[9]=c,o[10]=a,o[11]=i):i=o[11],i}function B(e){let[t,r]=e;return(0,u.jsx)(O.SelectItem,{value:r,children:t},r)}e.s(["TimeRangeDropdown",0,function(e){let t,r=(0,m.c)(2);return r[0]!==e?(t=(0,u.jsx)(_.Suspense,{fallback:null,children:(0,u.jsx)(U,{...e})}),r[0]=e,r[1]=t):t=r[1],t}],604694);var D=e.i(399976),F=e.i(151960),$=e.i(626824),W=e.i(8842);let K=(0,$.createQueryKeys)("appsMarketplace",{marketplace:()=>[],categoryPage:({group:e,subcategory:t,sortBy:r,period:n})=>[{group:e,subcategory:t,sortBy:r,period:n}],categoryChart:(e,t)=>[{group:e,subcategory:t}]});e.s(["categoryChartOptions",0,function(e,t){return(0,W.queryOptions)({queryKey:K.categoryChart(e,t),queryFn:({signal:r})=>(0,F.fetchAPIQuery)((0,D.buildAPIRequestPath)("/api/frontend/v1/apps/marketplace/category-chart",{group:e,subcategory:t??void 0}),{signal:r})})},"categoryPageOptions",0,function(e){return(0,W.queryOptions)({queryKey:K.categoryPage(e),queryFn:({signal:t})=>(0,F.fetchAPIQuery)((0,D.buildAPIRequestPath)("/api/frontend/v1/apps/marketplace/category",{group:e.group,subcategory:e.subcategory??void 0,sortBy:e.sortBy,period:e.period}),{signal:t})})},"marketplaceOptions",0,function(){return(0,W.queryOptions)({queryKey:K.marketplace(),queryFn:({signal:e})=>(0,F.fetchAPIQuery)("/api/frontend/v1/apps/marketplace/marketplace",{signal:e})})}],100274),e.s(["APPS_CATEGORY_STATIC_CONTENT",0,"apps-category-rankings","APPS_MARKETPLACE_STATIC_CONTENT",0,"apps-marketplace"],517715)},143349,e=>{"use strict";e.s(["getAppPath",0,function(e){return e.slug?`/apps/${e.slug}`:`/apps/url/${encodeURIComponent(e.origin_url)}`}])},885840,e=>{"use strict";function t(e){if(Number.isNaN(e))return"—";let t=Math.round(e);return t>999?">999%":t<-999?"<-999%":t>0?`+${t}%`:`${t}%`}e.s(["formatGrowthPercent",0,t,"formatGrowthPercentMagnitude",0,function(e){if(Number.isNaN(e))return"—";let t=Math.abs(Math.round(e));return t>999?">999%":`${t}%`},"formatGrowthPercentTooltip",0,function(e,t){if(!Number.isFinite(e))return t;let r=Math.round(e);return 999>=Math.abs(r)?t:`${r.toLocaleString("en-US")}% \u2014 ${t}`},"formatTokensPerWeek",0,function(e){return e>=1e12?`${(e/1e12).toFixed(1)}T`:e>=1e9?`${(e/1e9).toFixed(1)}B`:e>=1e6?`${(e/1e6).toFixed(1)}M`:e>=1e3?`${(e/1e3).toFixed(1)}K`:e.toString()},"formatWeeklyGrowth",0,function(e){return t(e/100)}])},712621,e=>{"use strict";var t=e.i(222666),r=e.i(505962),n=e.i(452473),a=e.i(191379),s=e.i(379684);e.s(["ExternalLink",0,function(e){let l,i,o,c,u,m,d,p,h,f,g,x=(0,r.c)(24);x[0]!==e?({children:l,className:i,icon:o,iconPosition:u,showExternalIcon:m,...c}=e,x[0]=e,x[1]=l,x[2]=i,x[3]=o,x[4]=c,x[5]=u,x[6]=m):(l=x[1],i=x[2],o=x[3],c=x[4],u=x[5],m=x[6]);let b=void 0===u?"end":u,y=void 0!==m&&m;x[7]!==o||x[8]!==y?(d=o??(y?(0,t.jsx)(a.ArrowUpRight,{className:"inline size-3 align-[-1px]"}):null),x[7]=o,x[8]=y,x[9]=d):d=x[9];let v=d;return x[10]!==i?(p=(0,n.cn)(s.LINK_CLASSES,"text-xs cursor-pointer",i),x[10]=i,x[11]=p):p=x[11],x[12]!==b||x[13]!==v?(h="start"===b&&v&&(0,t.jsx)("span",{className:"mr-0.5 inline-flex",children:v}),x[12]=b,x[13]=v,x[14]=h):h=x[14],x[15]!==b||x[16]!==v?(f="end"===b&&v&&(0,t.jsx)("span",{className:"ml-0.5 inline-flex",children:v}),x[15]=b,x[16]=v,x[17]=f):f=x[17],x[18]!==l||x[19]!==c||x[20]!==p||x[21]!==h||x[22]!==f?(g=(0,t.jsxs)("a",{className:p,...c,children:[h,l,f]}),x[18]=l,x[19]=c,x[20]=p,x[21]=h,x[22]=f,x[23]=g):g=x[23],g}])},172794,e=>{"use strict";e.i(781656),e.s([])},620919,e=>{"use strict";var t=e.i(222666),r=e.i(505962),n=e.i(847255),a=e.i(452473),s=e.i(394333),l=e.i(79247),i=e.i(379684),o=e.i(24381),c=e.i(143349),u=e.i(837556),m=e.i(188363),d=e.i(133974),p=e.i(779100),h=e.i(781656),f=e.i(370066),g=e.i(270401),x=e.i(764043);e.i(406201);var b=e.i(806024),y=e.i(612960);function v(e){let n,s,l,i,o,p,f,v,_,N,S,w,k,A,C,O,P=(0,r.c)(54),{appAnalytics:L}=e,G=(0,y.useLocalizedRouter)(),[R,I]=(0,g.useState)(L.app);if(!R)return null;let E=R.favicon_url||R.main_url||R.origin_url||"";if(P[0]!==R||P[1]!==G||P[2]!==E){let e,r,g,y,j=new URL(R.origin_url),S=R.title||(0,h.removeTrailingSlash)(j.host+j.pathname);s=d.TableRow,_="group cursor-pointer",P[13]!==R||P[14]!==G?(N=e=>{e.target instanceof Element&&null!==e.target.closest("a, button")||G.push((0,c.getAppPath)(R))},P[13]=R,P[14]=G,P[15]=N):N=P[15],n=d.TableCell,f="flex max-w-64 items-center gap-2.5",P[16]!==R.icon_class_name?(e=(0,a.cn)("size-full",R.icon_class_name),P[16]=R.icon_class_name,P[17]=e):e=P[17];let w=!!R.favicon_url;P[18]!==w||P[19]!==e||P[20]!==E?(v=(0,t.jsx)(u.IconFrame,{variant:"app",className:"size-7 shrink-0",children:(0,t.jsx)(m.RemoteFavicon,{className:e,faviconFor:E,hasCuratedFaviconUrl:w})}),P[18]=w,P[19]=e,P[20]=E,P[21]=v):v=P[21],o="min-w-0",P[22]!==R?(r=(0,c.getAppPath)(R),P[22]=R,P[23]=r):r=P[23],P[24]!==S||P[25]!==r?(g=(0,t.jsx)(b.Link,{href:r,className:"truncate text-sm font-semibold text-foreground transition-colors group-hover:text-accent-foreground",children:S}),P[24]=S,P[25]=r,P[26]=g):g=P[26],P[27]!==R?(y=(0,t.jsx)(x.AdminAppEditButton,{app:R,onUpdate:I}),P[27]=R,P[28]=y):y=P[28],P[29]!==g||P[30]!==y?(p=(0,t.jsxs)("div",{className:"flex items-center gap-1.5",children:[g,y]}),P[29]=g,P[30]=y,P[31]=p):p=P[31],l="truncate text-xs text-muted-foreground",i=R.description||(0,h.removeTrailingSlash)(j.host),P[0]=R,P[1]=G,P[2]=E,P[3]=n,P[4]=s,P[5]=l,P[6]=i,P[7]=o,P[8]=p,P[9]=f,P[10]=v,P[11]=_,P[12]=N}else n=P[3],s=P[4],l=P[5],i=P[6],o=P[7],p=P[8],f=P[9],v=P[10],_=P[11],N=P[12];return P[32]!==l||P[33]!==i?(S=(0,t.jsx)("p",{className:l,children:i}),P[32]=l,P[33]=i,P[34]=S):S=P[34],P[35]!==o||P[36]!==p||P[37]!==S?(w=(0,t.jsxs)("div",{className:o,children:[p,S]}),P[35]=o,P[36]=p,P[37]=S,P[38]=w):w=P[38],P[39]!==w||P[40]!==f||P[41]!==v?(k=(0,t.jsxs)("div",{className:f,children:[v,w]}),P[39]=w,P[40]=f,P[41]=v,P[42]=k):k=P[42],P[43]!==n||P[44]!==k?(A=(0,t.jsx)(n,{children:k}),P[43]=n,P[44]=k,P[45]=A):A=P[45],P[46]!==L?(C=(0,t.jsx)(d.TableCell,{className:"whitespace-nowrap text-right",children:(0,t.jsx)(j,{appAnalytics:L})}),P[46]=L,P[47]=C):C=P[47],P[48]!==s||P[49]!==A||P[50]!==C||P[51]!==_||P[52]!==N?(O=(0,t.jsxs)(s,{className:_,onClick:N,children:[A,C]}),P[48]=s,P[49]=A,P[50]=C,P[51]=_,P[52]=N,P[53]=O):O=P[53],O}function j(e){let n,a,s=(0,r.c)(5),{appAnalytics:l}=e,i=(0,p.useLocale)();return s[0]!==l.total_tokens||s[1]!==i?(n=(0,f.formatNumber)(l.total_tokens,{locale:i,preset:"compact-rounded-thousands"})??"—",s[0]=l.total_tokens,s[1]=i,s[2]=n):n=s[2],s[3]!==n?(a=(0,t.jsx)("span",{className:"font-mono text-sm font-medium tabular-nums",children:n}),s[3]=n,s[4]=a):a=s[4],a}let _=[{key:"app",label:"App",className:"min-w-44"},{key:"tokens",label:"Tokens",className:"whitespace-nowrap text-right"}];function N(e){let a,s,l,c,u,m=(0,r.c)(12),{group:d,apps:p,category:h,categoryLabel:f}=e;m[0]!==f||m[1]!==d?(a=f??(0,n.getCategoryGroupDisplayName)(d),m[0]=f,m[1]=d,m[2]=a):a=m[2];let g=a,x=h?`/apps/category/${d}/${h}`:`/apps/category/${d}`,b=`Top ${g}`;return m[3]!==x?(s=(0,t.jsx)(i.TextLink,{href:x,className:"shrink-0 whitespace-nowrap text-sm font-medium underline-offset-4 decoration-current",children:"View all"}),m[3]=x,m[4]=s):s=m[4],m[5]!==p?(l=p.map(S),m[5]=p,m[6]=l):l=m[6],m[7]===Symbol.for("react.memo_cache_sentinel")?(c=(0,t.jsx)("p",{className:"py-4 text-center text-sm text-muted-foreground",children:"No apps in this category yet"}),m[7]=c):c=m[7],m[8]!==b||m[9]!==s||m[10]!==l?(u=(0,t.jsx)(o.TableCard,{title:b,action:s,columns:_,tableMinWidth:272,tableClassName:"or-table--flush-x",tableBodyDataSlot:"marketplace-category-leaderboard-body",rows:l,emptyState:c}),m[8]=b,m[9]=s,m[10]=l,m[11]=u):u=m[11],u}function S(e){return(0,t.jsx)(v,{appAnalytics:e},e.app_id)}function w(e){let n,a,s=(0,r.c)(4),{leaderboards:l}=e;return s[0]!==l?(n=l.map(k),s[0]=l,s[1]=n):n=s[1],s[2]!==n?(a=(0,t.jsx)("div",{className:"grid md:grid-cols-2 gap-6 mb-8",children:n}),s[2]=n,s[3]=a):a=s[3],a}function k(e,r){return(0,t.jsx)(N,{group:e.group,apps:e.apps,category:e.category,categoryLabel:e.categoryLabel},`${e.group}-${e.category??e.categoryLabel??r}`)}var A=e.i(699511),C=e.i(328103),O=e.i(553215),P=e.i(252358),L=e.i(936532),G=e.i(320319),R=e.i(952450),I=e.i(604694);function E(e){let n,s,l,i,o,c,u,m,d,p,h,f,x,b,y,v,j,_=(0,r.c)(47),{rankingMap:N}=e,S=(0,P.usePosthogClient)(),[w,k]=(0,g.useState)("day"),[E,T]=(0,g.useState)(0),z=N[w];if(_[0]!==E||_[1]!==w||_[2]!==z){h=Symbol.for("react.early_return_sentinel");e:{let e,r,a,g;if(0===(s=z.slice(0,L.GLOBAL_RANKING_LIMIT)).length){h=null;break e}f=Math.ceil(s.length/L.GLOBAL_RANKING_PAGE_SIZE),l=E*L.GLOBAL_RANKING_PAGE_SIZE;let x=s.slice(l,l+L.GLOBAL_RANKING_PAGE_SIZE),b=Math.ceil(x.length/2),y=x.slice(0,b),v=x.slice(b);d="global-ranking",_[15]===Symbol.for("react.memo_cache_sentinel")?(e=(0,t.jsxs)("div",{className:"flex items-center gap-2",children:[(0,t.jsx)(C.RectangleGroupIcon,{className:"size-5 text-muted-foreground"}),(0,t.jsx)("h2",{children:"Global Ranking"})]}),_[15]=e):e=_[15],_[16]===Symbol.for("react.memo_cache_sentinel")?(r=e=>{k(e),T(0)},_[16]=r):r=_[16],_[17]!==w?(p=(0,t.jsxs)("div",{className:"flex items-center justify-between mb-4",children:[e,(0,t.jsx)(I.TimeRangeDropdown,{period:w,onChange:r})]}),_[17]=w,_[18]=p):p=_[18],m="bg-card border border-border rounded-lg p-3 sm:p-5 overflow-hidden",c="flex flex-col gap-0.5 md:grid md:grid-cols-2 md:gap-x-6",_[19]!==l?(a=(e,r)=>(0,t.jsx)(R.MarketplaceAppRow,{appAnalytics:e,rank:l+r+1,showCategories:!0},e.app_id),_[19]=l,_[20]=a):a=_[20],u=(0,t.jsx)(G.MarketplaceAppList,{variant:"spaced",children:y.map(a)}),n=G.MarketplaceAppList,i="spaced",_[21]!==b||_[22]!==l?(g=(e,r)=>(0,t.jsx)(R.MarketplaceAppRow,{appAnalytics:e,rank:l+b+r+1,showCategories:!0},e.app_id),_[21]=b,_[22]=l,_[23]=g):g=_[23],o=v.map(g)}_[0]=E,_[1]=w,_[2]=z,_[3]=n,_[4]=s,_[5]=l,_[6]=i,_[7]=o,_[8]=c,_[9]=u,_[10]=m,_[11]=d,_[12]=p,_[13]=h,_[14]=f}else n=_[3],s=_[4],l=_[5],i=_[6],o=_[7],c=_[8],u=_[9],m=_[10],d=_[11],p=_[12],h=_[13],f=_[14];return h!==Symbol.for("react.early_return_sentinel")?h:(_[24]!==n||_[25]!==i||_[26]!==o?(x=(0,t.jsx)(n,{variant:i,children:o}),_[24]=n,_[25]=i,_[26]=o,_[27]=x):x=_[27],_[28]!==x||_[29]!==c||_[30]!==u?(b=(0,t.jsxs)("div",{className:c,children:[u,x]}),_[28]=x,_[29]=c,_[30]=u,_[31]=b):b=_[31],_[32]!==s||_[33]!==E||_[34]!==w||_[35]!==S||_[36]!==l||_[37]!==f?(y=f>1&&(0,t.jsxs)("div",{className:"flex items-center justify-center gap-4 mt-4 pt-4 border-t border-border",children:[(0,t.jsx)("button",{type:"button",onClick:()=>{T(M),S.capture(O.PostHogEvent.ClickAppsGlobalRankingPagination,{direction:"previous",period:w,from_page:E})},disabled:0===E,className:(0,a.cn)("h-7 w-7 rounded-sm flex items-center justify-center","bg-secondary hover:bg-secondary/80 transition","disabled:opacity-50 disabled:cursor-not-allowed"),children:(0,t.jsx)(A.ChevronLeftIcon,{className:"h-4 w-4"})}),(0,t.jsxs)("span",{className:"text-sm text-muted-foreground tabular-nums",children:[l+1,"–",Math.min(l+L.GLOBAL_RANKING_PAGE_SIZE,s.length)," of ",s.length]}),(0,t.jsx)("button",{type:"button",onClick:()=>{T(e=>Math.min(f-1,e+1)),S.capture(O.PostHogEvent.ClickAppsGlobalRankingPagination,{direction:"next",period:w,from_page:E})},disabled:E>=f-1,className:(0,a.cn)("h-7 w-7 rounded-sm flex items-center justify-center","bg-secondary hover:bg-secondary/80 transition","disabled:opacity-50 disabled:cursor-not-allowed"),children:(0,t.jsx)(A.ChevronLeftIcon,{className:"h-4 w-4 rotate-180"})})]}),_[32]=s,_[33]=E,_[34]=w,_[35]=S,_[36]=l,_[37]=f,_[38]=y):y=_[38],_[39]!==b||_[40]!==y||_[41]!==m?(v=(0,t.jsxs)("div",{className:m,children:[b,y]}),_[39]=b,_[40]=y,_[41]=m,_[42]=v):v=_[42],_[43]!==v||_[44]!==d||_[45]!==p?(j=(0,t.jsxs)("section",{id:d,children:[p,v]}),_[43]=v,_[44]=d,_[45]=p,_[46]=j):j=_[46],j)}function M(e){return Math.max(0,e-1)}var T=e.i(712621);function z(e){return{url:e.favicon_url||e.main_url||e.origin_url||"",name:e.title||(0,h.removeTrailingSlash)(new URL(e.origin_url).host)}}let q=[{border:"border-chart-2",overlay:"bg-chart-2/20"},{border:"border-chart-1",overlay:"bg-chart-1/20"},{border:"border-chart-3",overlay:"bg-chart-3/20"},{border:"border-chart-4",overlay:"bg-chart-4/20"}];function U(e){let n,a,s,l,o,c=(0,r.c)(7),{apps:u}=e;return 0===u.length?null:(c[0]===Symbol.for("react.memo_cache_sentinel")?(n=(0,t.jsx)("h2",{className:"mb-1",children:"Most Popular"}),c[0]=n):n=c[0],c[1]===Symbol.for("react.memo_cache_sentinel")?(a=(0,t.jsx)(T.ExternalLink,{href:"/docs/app-attribution",className:"text-xs",children:"opting into"}),c[1]=a):a=c[1],c[2]===Symbol.for("react.memo_cache_sentinel")?(s=(0,t.jsxs)("p",{className:"text-xs text-muted-foreground mb-6",children:["Largest public apps and agents"," ",a," ","usage tracking on OpenRouter."," ",(0,t.jsx)(i.TextLink,{href:"#global-ranking",className:"text-xs",children:"View more →"})]}),c[2]=s):s=c[2],c[3]!==u?(l=u.slice(0,4).map(B),c[3]=u,c[4]=l):l=c[4],c[5]!==l?(o=(0,t.jsxs)("section",{className:"mb-8",children:[n,s,(0,t.jsx)("div",{"data-slot":"marketplace-popular-grid",className:"grid grid-cols-2 md:grid-cols-4 gap-4",children:l})]}),c[5]=l,c[6]=o):o=c[6],o)}function B(e,r){return(0,t.jsx)(D,{appAnalytics:e,colors:q[r%q.length]},e.app_id)}function D(e){let n,s,l,i,o,u,d,p,h,f,g,x,y=(0,r.c)(32),{appAnalytics:v,colors:j}=e,{app:_}=v;if(!_)return null;y[0]!==_?(n=z(_),y[0]=_,y[1]=n):n=y[1];let{url:N,name:S}=n;y[2]!==_?(s=(0,c.getAppPath)(_),y[2]=_,y[3]=s):s=y[3],y[4]!==j.border?(l=(0,a.cn)("rounded-xl p-3 sm:p-5 cursor-pointer","hover:bg-card-hover transition-colors","relative overflow-hidden group h-36 sm:h-40 text-foreground","bg-card border",j.border),y[4]=j.border,y[5]=l):l=y[5],y[6]!==j.overlay?(i=(0,a.cn)("absolute top-2 right-2 sm:top-4 sm:right-4","w-10 h-10 sm:w-12 sm:h-12 rounded-lg","flex items-center justify-center",j.overlay),y[6]=j.overlay,y[7]=i):i=y[7],y[8]!==_.icon_class_name?(o=(0,a.cn)("overflow-hidden rounded-sm size-5 sm:size-6",_.icon_class_name),y[8]=_.icon_class_name,y[9]=o):o=y[9];let w=!!_.favicon_url;y[10]!==o||y[11]!==w||y[12]!==N?(u=(0,t.jsx)(m.RemoteFavicon,{className:o,faviconFor:N,hasCuratedFaviconUrl:w}),y[10]=o,y[11]=w,y[12]=N,y[13]=u):u=y[13],y[14]!==i||y[15]!==u?(d=(0,t.jsx)("div",{className:i,children:u}),y[14]=i,y[15]=u,y[16]=d):d=y[16],y[17]!==S?(p=(0,t.jsx)("div",{className:"flex items-center gap-1.5 mb-1",children:(0,t.jsx)("span",{className:"font-medium text-xs truncate",children:S})}),y[17]=S,y[18]=p):p=y[18];let k=_.description||"View app analytics";return y[19]!==k?(h=(0,t.jsx)("p",{className:"text-xs text-muted-foreground mb-2 line-clamp-2 min-h-[2lh]",children:k}),y[19]=k,y[20]=h):h=y[20],y[21]!==v?(f=(0,t.jsx)(F,{appAnalytics:v}),y[21]=v,y[22]=f):f=y[22],y[23]!==h||y[24]!==f||y[25]!==p?(g=(0,t.jsxs)("div",{className:"relative z-10 h-full flex flex-col justify-end",children:[p,h,f]}),y[23]=h,y[24]=f,y[25]=p,y[26]=g):g=y[26],y[27]!==g||y[28]!==s||y[29]!==l||y[30]!==d?(x=(0,t.jsxs)(b.Link,{href:s,className:l,children:[d,g]}),y[27]=g,y[28]=s,y[29]=l,y[30]=d,y[31]=x):x=y[31],x}function F(e){let n,a,s=(0,r.c)(5),{appAnalytics:l}=e,i=(0,p.useLocale)();return s[0]!==l.total_tokens||s[1]!==i?(n=(0,f.formatNumber)(l.total_tokens,{locale:i,preset:"compact-rounded-thousands"})??"—",s[0]=l.total_tokens,s[1]=i,s[2]=n):n=s[2],s[3]!==n?(a=(0,t.jsxs)("span",{className:"text-xs text-muted-foreground",children:[n," ","tokens"]}),s[3]=n,s[4]=a):a=s[4],a}var $=e.i(885840);function W(e){let n,s,l,i,o,c,u,m,d,p,h,f,x=(0,r.c)(21),{trendingApps:b}=e,y=(0,g.useRef)(null),[v,j]=(0,g.useState)(!1),[_,N]=(0,g.useState)(!0);if(0===b.length)return null;x[0]===Symbol.for("react.memo_cache_sentinel")?(n=function(){let e=y.current;e&&(j(e.scrollLeft>0),N(e.scrollLeft+e.clientWidth0&&(0,t.jsx)("span",{className:"text-xs text-positive font-medium",title:(0,$.formatGrowthPercentTooltip)(_,"Growth vs previous period"),children:(0,$.formatGrowthPercent)(_)}),y[15]=_,y[16]=h):h=y[16],y[17]!==p||y[18]!==h?(f=(0,t.jsxs)("div",{className:"flex items-center justify-between",children:[p,h]}),y[17]=p,y[18]=h,y[19]=f):f=y[19],y[20]!==f||y[21]!==d?(g=(0,t.jsxs)("div",{className:"mt-3",children:[d,f]}),y[20]=f,y[21]=d,y[22]=g):g=y[22],y[23]!==g||y[24]!==s||y[25]!==o?(x=(0,t.jsxs)(b.Link,{href:s,className:l,children:[o,g]}),y[23]=g,y[24]=s,y[25]=o,y[26]=x):x=y[26],x}function H(e){let n,a,s=(0,r.c)(5),{appAnalytics:l}=e,i=(0,p.useLocale)();return s[0]!==l.total_tokens||s[1]!==i?(n=(0,f.formatNumber)(l.total_tokens,{locale:i,preset:"compact-rounded-thousands"})??"—",s[0]=l.total_tokens,s[1]=i,s[2]=n):n=s[2],s[3]!==n?(a=(0,t.jsx)("span",{className:"text-xs text-muted-foreground",children:n}),s[3]=n,s[4]=a):a=s[4],a}var Q=e.i(117738);function J(){let e,n=(0,r.c)(1),{entity:a}=(0,Q.useEntity)();if(!a.data?.is_internal_admin)return null;if(n[0]===Symbol.for("react.memo_cache_sentinel")){let r=(0,h.getMissionControlUrl)(),a=`${r}/admin-utils/uncategorized-apps`;e=(0,t.jsx)(T.ExternalLink,{href:a,target:"_blank",rel:"noopener noreferrer",className:"text-sm",showExternalIcon:!0,children:"View uncategorized apps"}),n[0]=e}else e=n[0];return e}e.i(172794);var Z=e.i(100274),Y=e.i(517715);function X(e){let n,a=(0,r.c)(4),{data:s,isError:l}=e;if(null!==s){let e;return a[0]!==s?(e=(0,t.jsx)(ee,{data:s}),a[0]=s,a[1]=e):e=a[1],e}if(l){let e;return a[2]===Symbol.for("react.memo_cache_sentinel")?(e=(0,t.jsx)("div",{className:"text-muted-foreground py-8 text-center",children:"Failed to load app rankings. Please try again later."}),a[2]=e):e=a[2],e}return a[3]===Symbol.for("react.memo_cache_sentinel")?(n=(0,t.jsx)(et,{}),a[3]=n):n=a[3],n}function ee(e){let a,s,l,i,o,c,u,m,d,p,h,f,g,x,b=(0,r.c)(29),{data:y}=e;b[0]!==y.popular?(a=(0,t.jsx)(U,{apps:y.popular}),b[0]=y.popular,b[1]=a):a=b[1],b[2]!==y.trending?(s=(0,t.jsx)(W,{trendingApps:y.trending}),b[2]=y.trending,b[3]=s):s=b[3];let v=y.leaderboards[n.AppCategoryGroup.Coding];b[4]===Symbol.for("react.memo_cache_sentinel")?(l=(0,n.getCategoryGroupDisplayName)(n.AppCategoryGroup.Coding),b[4]=l):l=b[4],b[5]!==v?(i={group:n.AppCategoryGroup.Coding,apps:v,categoryLabel:l},b[5]=v,b[6]=i):i=b[6];let j=y.leaderboards[n.AppCategoryGroup.Productivity];b[7]===Symbol.for("react.memo_cache_sentinel")?(o=(0,n.getCategoryGroupDisplayName)(n.AppCategoryGroup.Productivity),b[7]=o):o=b[7],b[8]!==j?(c={group:n.AppCategoryGroup.Productivity,apps:j,categoryLabel:o},b[8]=j,b[9]=c):c=b[9];let _=y.leaderboards[n.AppCategoryGroup.Creative];b[10]===Symbol.for("react.memo_cache_sentinel")?(u=(0,n.getCategoryGroupDisplayName)(n.AppCategoryGroup.Creative),b[10]=u):u=b[10],b[11]!==_?(m={group:n.AppCategoryGroup.Creative,apps:_,categoryLabel:u},b[11]=_,b[12]=m):m=b[12];let N=y.leaderboards[n.AppCategoryGroup.Entertainment];return b[13]===Symbol.for("react.memo_cache_sentinel")?(d=(0,n.getCategoryGroupDisplayName)(n.AppCategoryGroup.Entertainment),b[13]=d):d=b[13],b[14]!==N?(p={group:n.AppCategoryGroup.Entertainment,apps:N,categoryLabel:d},b[14]=N,b[15]=p):p=b[15],b[16]!==m||b[17]!==p||b[18]!==i||b[19]!==c?(h=(0,t.jsx)(w,{leaderboards:[i,c,m,p]}),b[16]=m,b[17]=p,b[18]=i,b[19]=c,b[20]=h):h=b[20],b[21]===Symbol.for("react.memo_cache_sentinel")?(f=(0,t.jsx)(J,{}),b[21]=f):f=b[21],b[22]!==y.globalRankingMap?(g=(0,t.jsx)(E,{rankingMap:y.globalRankingMap}),b[22]=y.globalRankingMap,b[23]=g):g=b[23],b[24]!==a||b[25]!==h||b[26]!==g||b[27]!==s?(x=(0,t.jsxs)("div",{className:"flex flex-col gap-6 w-full",children:[a,s,h,f,g]}),b[24]=a,b[25]=h,b[26]=g,b[27]=s,b[28]=x):x=b[28],x}function et(){let e,n,a,l,i,o,c=(0,r.c)(6);return c[0]===Symbol.for("react.memo_cache_sentinel")?(e=(0,t.jsx)(s.Skeleton,{className:"h-6 w-32 mb-1"}),n=(0,t.jsx)(s.Skeleton,{className:"h-4 w-full max-w-[30rem] mb-6"}),c[0]=e,c[1]=n):(e=c[0],n=c[1]),c[2]===Symbol.for("react.memo_cache_sentinel")?(a=(0,t.jsxs)("section",{className:"mb-8",children:[e,n,(0,t.jsx)("div",{className:"grid grid-cols-2 md:grid-cols-4 gap-4",children:Array.from({length:4}).map(ea)})]}),c[2]=a):a=c[2],c[3]===Symbol.for("react.memo_cache_sentinel")?(l=(0,t.jsxs)("div",{className:"flex items-center justify-between mb-3",children:[(0,t.jsx)(s.Skeleton,{className:"h-6 w-24"}),(0,t.jsx)(s.Skeleton,{className:"h-4 w-40"})]}),c[3]=l):l=c[3],c[4]===Symbol.for("react.memo_cache_sentinel")?(i=(0,t.jsxs)("section",{className:"mb-8",children:[l,(0,t.jsx)("div",{className:"flex gap-3 overflow-x-auto",children:Array.from({length:6}).map(en)})]}),c[4]=i):i=c[4],c[5]===Symbol.for("react.memo_cache_sentinel")?(o=(0,t.jsxs)("div",{className:"flex flex-col gap-6 w-full",children:[a,i,(0,t.jsx)("div",{className:"grid md:grid-cols-2 gap-6 mb-8",children:Array.from({length:4}).map(er)}),(0,t.jsx)(ec,{})]}),c[5]=o):o=c[5],o}function er(e,r){return(0,t.jsx)(ei,{},r)}function en(e,r){return(0,t.jsx)(el,{},r)}function ea(e,r){return(0,t.jsx)(es,{},r)}function es(){let e,n,a=(0,r.c)(2);return a[0]===Symbol.for("react.memo_cache_sentinel")?(e=(0,t.jsx)(s.Skeleton,{className:"absolute right-2 top-2 size-10 rounded-lg sm:right-4 sm:top-4 sm:size-12"}),a[0]=e):e=a[0],a[1]===Symbol.for("react.memo_cache_sentinel")?(n=(0,t.jsxs)("div",{className:"relative h-36 overflow-hidden rounded-xl border bg-card p-3 sm:h-40 sm:p-5",children:[e,(0,t.jsxs)("div",{className:"flex h-full flex-col justify-end",children:[(0,t.jsx)(s.Skeleton,{className:"mb-2 h-5 w-28"}),(0,t.jsx)(s.Skeleton,{className:"mb-1.5 h-4 w-full"}),(0,t.jsx)(s.Skeleton,{className:"mb-2 h-4 w-4/5"}),(0,t.jsx)(s.Skeleton,{className:"h-3 w-20"})]})]}),a[1]=n):n=a[1],n}function el(){let e,n,a,l=(0,r.c)(3);return l[0]===Symbol.for("react.memo_cache_sentinel")?(e=(0,t.jsx)(s.Skeleton,{className:"size-12 rounded-lg"}),l[0]=e):e=l[0],l[1]===Symbol.for("react.memo_cache_sentinel")?(n=(0,t.jsx)(s.Skeleton,{className:"mb-2 h-4 w-32"}),l[1]=n):n=l[1],l[2]===Symbol.for("react.memo_cache_sentinel")?(a=(0,t.jsxs)("div",{className:"h-[8.375rem] w-48 shrink-0 rounded-lg border border-border bg-card p-4",children:[e,(0,t.jsxs)("div",{className:"mt-3",children:[n,(0,t.jsxs)("div",{className:"flex items-center justify-between",children:[(0,t.jsx)(s.Skeleton,{className:"h-3 w-12"}),(0,t.jsx)(s.Skeleton,{className:"h-3 w-10"})]})]})]}),l[2]=a):a=l[2],a}function ei(){let e,n,a=(0,r.c)(2);return a[0]===Symbol.for("react.memo_cache_sentinel")?(e=(0,t.jsxs)("div",{className:"mb-4 flex items-center justify-between",children:[(0,t.jsxs)("div",{className:"flex items-center gap-1.5",children:[(0,t.jsx)(s.Skeleton,{className:"h-5 w-36"}),(0,t.jsx)(s.Skeleton,{className:"size-4 rounded-sm"})]}),(0,t.jsx)(s.Skeleton,{className:"h-5 w-16"})]}),a[0]=e):e=a[0],a[1]===Symbol.for("react.memo_cache_sentinel")?(n=(0,t.jsxs)("div",{className:"overflow-hidden rounded-lg border border-border bg-card p-3 sm:p-5",children:[e,(0,t.jsx)(G.MarketplaceAppList,{variant:"spaced",children:Array.from({length:5},eo)})]}),a[1]=n):n=a[1],n}function eo(e,r){return(0,t.jsx)(ed,{},r)}function ec(){let e,n,a,l,i=(0,r.c)(4);return i[0]===Symbol.for("react.memo_cache_sentinel")?(e=(0,t.jsxs)("div",{className:"mb-4 flex items-center justify-between",children:[(0,t.jsxs)("div",{className:"flex items-center gap-2",children:[(0,t.jsx)(s.Skeleton,{className:"size-5 rounded-sm"}),(0,t.jsx)(s.Skeleton,{className:"h-6 w-36"})]}),(0,t.jsx)(s.Skeleton,{className:"h-9 w-24 rounded-md"})]}),i[0]=e):e=i[0],i[1]===Symbol.for("react.memo_cache_sentinel")?(n=(0,t.jsx)(G.MarketplaceAppList,{variant:"spaced",children:Array.from({length:5},em)}),i[1]=n):n=i[1],i[2]===Symbol.for("react.memo_cache_sentinel")?(a=(0,t.jsxs)("div",{className:"flex flex-col gap-0.5 md:grid md:grid-cols-2 md:gap-x-6",children:[n,(0,t.jsx)(G.MarketplaceAppList,{variant:"spaced",children:Array.from({length:5},eu)})]}),i[2]=a):a=i[2],i[3]===Symbol.for("react.memo_cache_sentinel")?(l=(0,t.jsxs)("section",{id:"global-ranking",children:[e,(0,t.jsxs)("div",{className:"overflow-hidden rounded-lg border border-border bg-card p-3 sm:p-5",children:[a,(0,t.jsxs)("div",{className:"mt-4 flex items-center justify-center gap-4 border-t border-border pt-4",children:[(0,t.jsx)(s.Skeleton,{className:"size-7 rounded-sm"}),(0,t.jsx)(s.Skeleton,{className:"h-5 w-20"}),(0,t.jsx)(s.Skeleton,{className:"size-7 rounded-sm"})]})]})]}),i[3]=l):l=i[3],l}function eu(e,r){return(0,t.jsx)(ed,{rank:r+6,showCategories:!0},r)}function em(e,r){return(0,t.jsx)(ed,{rank:r+1,showCategories:!0},r)}function ed(e){let n,l,i,o,c,u,m,d,p,h=(0,r.c)(16),{rank:f,showCategories:g}=e,x=void 0!==g&&g,b=x?"items-start":"items-center";return h[0]!==b?(n=(0,a.cn)("flex gap-2 rounded-lg px-2 py-3 sm:gap-3 sm:px-4 sm:py-3.5",b),h[0]=b,h[1]=n):n=h[1],h[2]!==f?(l=void 0!==f&&(0,t.jsxs)("span",{className:"flex h-9 w-5 shrink-0 items-center justify-end text-sm text-muted-foreground sm:w-6",children:[f,"."]}),h[2]=f,h[3]=l):l=h[3],h[4]===Symbol.for("react.memo_cache_sentinel")?(i=(0,t.jsx)(s.Skeleton,{className:"size-9 shrink-0 rounded-md"}),h[4]=i):i=h[4],h[5]===Symbol.for("react.memo_cache_sentinel")?(o=(0,t.jsx)(s.Skeleton,{className:"mb-2 h-4 w-32"}),h[5]=o):o=h[5],h[6]===Symbol.for("react.memo_cache_sentinel")?(c=(0,t.jsx)("div",{className:"flex h-5 min-w-0 items-center gap-1",children:(0,t.jsx)(s.Skeleton,{className:"h-3 w-full max-w-56"})}),h[6]=c):c=h[6],h[7]!==x?(u=x&&(0,t.jsxs)("div",{className:"mt-1 flex min-h-5 flex-wrap items-center gap-1",children:[(0,t.jsx)(s.Skeleton,{className:"h-4 w-16 rounded-sm"}),(0,t.jsx)(s.Skeleton,{className:"h-4 w-12 rounded-sm"})]}),h[7]=x,h[8]=u):u=h[8],h[9]!==u?(m=(0,t.jsxs)("div",{className:"min-w-0 flex-1 overflow-hidden",children:[o,c,u]}),h[9]=u,h[10]=m):m=h[10],h[11]===Symbol.for("react.memo_cache_sentinel")?(d=(0,t.jsx)("div",{className:"ml-auto flex h-9 shrink-0 items-center",children:(0,t.jsx)(s.Skeleton,{className:"h-4 w-20"})}),h[11]=d):d=h[11],h[12]!==n||h[13]!==l||h[14]!==m?(p=(0,t.jsxs)("div",{"data-slot":"marketplace-app-row",className:n,children:[l,i,m,d]}),h[12]=n,h[13]=l,h[14]=m,h[15]=p):p=h[15],p}e.s(["MarketplaceAppRowSkeleton",0,ed,"MarketplacePageSkeleton",0,function(){let e,n=(0,r.c)(1);return n[0]===Symbol.for("react.memo_cache_sentinel")?(e=(0,t.jsxs)("section",{className:"mx-auto w-full px-4 py-6 sm:px-6 pb-10 min-h-screen max-w-7xl",children:[(0,t.jsx)("h1",{className:"mb-6",children:"App & Agent Rankings"}),(0,t.jsx)(et,{})]}),n[0]=e):e=n[0],e},"MarketplaceView",0,function(e){let n,a,s,i,o=(0,r.c)(7),{data:c}=e;o[0]===Symbol.for("react.memo_cache_sentinel")?(n=(0,Z.marketplaceOptions)(),o[0]=n):n=o[0];let u=null===c;o[1]!==u?(a={...n,enabled:u},o[1]=u,o[2]=a):a=o[2];let{data:m,isError:d}=(0,l.useQuery)(a),p=c??m??null;return o[3]===Symbol.for("react.memo_cache_sentinel")?(s=(0,t.jsx)("h1",{className:"mb-6",children:"App & Agent Rankings"}),o[3]=s):s=o[3],o[4]!==p||o[5]!==d?(i=(0,t.jsxs)("section",{className:"mx-auto w-full px-4 py-6 sm:px-6 pb-10 min-h-screen max-w-7xl","data-ssr-content":Y.APPS_MARKETPLACE_STATIC_CONTENT,children:[s,(0,t.jsx)(X,{data:p,isError:d})]}),o[4]=p,o[5]=d,o[6]=i):i=o[6],i}],620919)},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]}])},24381,885523,e=>{"use strict";var t=e.i(222666),r=e.i(505962),n=e.i(133974),a=e.i(452473),s=e.i(607296),l=e.i(379497),i=e.i(270401),o=e.i(539326);function c(e){let n,c,u,m,d,p=(0,r.c)(8),{children:h,className:f}=e,g=(0,i.useRef)(null);p[0]===Symbol.for("react.memo_cache_sentinel")?(n=e=>{let t=g.current?.querySelector(".or-table-wrapper");t instanceof HTMLElement&&t.scrollBy({left:e*t.clientWidth*.8,behavior:"smooth"})},p[0]=n):n=p[0];let x=n;return p[1]!==f?(c=(0,a.cn)("md-table-scroll-hints relative min-w-0",f),p[1]=f,p[2]=c):c=p[2],p[3]===Symbol.for("react.memo_cache_sentinel")?(u=(0,t.jsx)("button",{type:"button","aria-hidden":"true",tabIndex:-1,onClick:()=>x(-1),className:(0,a.cn)("md-table-scroll-hint-left pointer-events-none absolute left-1 top-1/2 z-10 -translate-y-1/2 opacity-0",o.cnGlassScrollHint,"hover:border-border hover:bg-popover/80"),children:(0,t.jsx)(s.ChevronLeft,{className:"size-3.5 text-muted-foreground"})}),p[3]=u):u=p[3],p[4]===Symbol.for("react.memo_cache_sentinel")?(m=(0,t.jsx)("button",{type:"button","aria-hidden":"true",tabIndex:-1,onClick:()=>x(1),className:(0,a.cn)("md-table-scroll-hint-right pointer-events-none absolute right-1 top-1/2 z-10 -translate-y-1/2 opacity-0",o.cnGlassScrollHint,"hover:border-border hover:bg-popover/80"),children:(0,t.jsx)(l.ChevronRight,{className:"size-3.5 text-muted-foreground"})}),p[4]=m):m=p[4],p[5]!==h||p[6]!==c?(d=(0,t.jsxs)("div",{ref:g,className:c,children:[u,m,h]}),p[5]=h,p[6]=c,p[7]=d):d=p[7],d}function u(e){return(0,t.jsx)(n.TableHead,{className:e.className,children:e.label},e.key)}e.s(["TableScrollHints",0,c],885523),e.s(["TableCard",0,function(e){let a,s,l,i,o,m,d=(0,r.c)(20),{title:p,subtitle:h,action:f,columns:g,rows:x,emptyState:b,tableMinWidth:y,tableBodyDataSlot:v,tableClassName:j}=e;return d[0]!==p?(a=(0,t.jsx)("h2",{className:"flex items-center gap-1.5 text-base font-semibold text-foreground",children:p}),d[0]=p,d[1]=a):a=d[1],d[2]!==h?(s=h&&(0,t.jsx)("p",{className:"text-sm text-muted-foreground",children:h}),d[2]=h,d[3]=s):s=d[3],d[4]!==a||d[5]!==s?(l=(0,t.jsxs)("div",{className:"flex flex-col gap-0.5",children:[a,s]}),d[4]=a,d[5]=s,d[6]=l):l=d[6],d[7]!==f||d[8]!==l?(i=(0,t.jsxs)("div",{className:"flex items-start justify-between gap-3",children:[l,f]}),d[7]=f,d[8]=l,d[9]=i):i=d[9],d[10]!==g||d[11]!==b||d[12]!==x||d[13]!==v||d[14]!==j||d[15]!==y?(o=0===x.length?b:(0,t.jsx)(c,{className:"flex flex-1 flex-col",children:(0,t.jsxs)(n.Table,{className:j,containerClassName:"flex-1",style:{minWidth:y},children:[(0,t.jsx)(n.TableHeader,{children:(0,t.jsx)(n.TableRow,{children:g.map(u)})}),(0,t.jsx)(n.TableBody,{"data-slot":v,children:x})]})}),d[10]=g,d[11]=b,d[12]=x,d[13]=v,d[14]=j,d[15]=y,d[16]=o):o=d[16],d[17]!==i||d[18]!==o?(m=(0,t.jsxs)("section",{className:"flex h-full min-w-0 flex-col gap-3 rounded-lg border border-border bg-card p-5",children:[i,o]}),d[17]=i,d[18]=o,d[19]=m):m=d[19],m}],24381)},764043,e=>{"use strict";var t=e.i(222666),r=e.i(505962),n=e.i(373855),a=e.i(452473),s=e.i(528164),l=e.i(712621),i=e.i(117738);e.i(172794);var o=e.i(781656);e.s(["AdminAppEditButton",0,function(e){let c,u,m,d,p,h=(0,r.c)(9),{app:f,className:g}=e,{entity:x}=(0,i.useEntity)();if(!x.data?.is_internal_admin)return null;h[0]===Symbol.for("react.memo_cache_sentinel")?(c=(0,o.getMissionControlUrl)(),h[0]=c):c=h[0];let b=`${c}/admin-utils/app-editor?url=${encodeURIComponent(f.origin_url)}`;return h[1]!==g?(u=(0,a.cn)("text-warning hover:text-warning/80",g),h[1]=g,h[2]=u):u=h[2],h[3]===Symbol.for("react.memo_cache_sentinel")?(m=(0,t.jsx)(n.PencilIcon,{className:"size-3"}),h[3]=m):m=h[3],h[4]!==b?(d=(0,t.jsx)(l.ExternalLink,{href:b,target:"_blank",rel:"noopener noreferrer",className:"no-underline",children:m}),h[4]=b,h[5]=d):d=h[5],h[6]!==u||h[7]!==d?(p=(0,t.jsx)(s.Button,{className:u,variant:"outline",size:"icon-sm",render:d}),h[6]=u,h[7]=d,h[8]=p):p=h[8],p}])}]); //# sourceMappingURL=36oo2oxvm24jv.js.map //# chunkId=01a08e82-2f67-74e1-8b4d-3e73c9f14e85