(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,851784,e=>{"use strict";var l=e.i(659350),a=e.i(663456),r=e.i(702441),s=e.i(894868),t=e.i(670168);e.i(707060);var i=e.i(288265),n=e.i(16043),c=e.i(268097),m=e.i(62380),d=e.i(938577),o=e.i(162115);function u(e){let t,i,n,c=(0,a.c)(10),{model:m,iconClassName:d}=e;return c[0]!==d||c[1]!==m.author||c[2]!==m.authorIconUri||c[3]!==m.permaslug?(t=(0,l.jsx)(s.f,{frame:!0,author:m.author,permaslug:m.permaslug,iconUri:m.authorIconUri,className:d}),c[0]=d,c[1]=m.author,c[2]=m.authorIconUri,c[3]=m.permaslug,c[4]=t):t=c[4],c[5]!==m.displayName?(i=(0,l.jsx)("span",{className:"min-w-0 truncate text-sm font-semibold tracking-tight",title:m.displayName,children:m.displayName}),c[5]=m.displayName,c[6]=i):i=c[6],c[7]!==t||c[8]!==i?(n=(0,l.jsxs)(r.N,{className:"flex h-15 items-center gap-2 bg-background px-2.5",children:[t,i]}),c[7]=t,c[8]=i,c[9]=n):n=c[9],n}function p(e){let{model:l}=e;return l.displayName}function h(e){let{key:a}=e;return(0,l.jsx)(t.l,{"data-slot":"compare-server-grid-endpoint-placeholder",className:"h-9 rounded-lg"},a)}function x(e){let{key:a,model:r}=e;return(0,l.jsx)("div",{className:"min-w-0",children:(0,l.jsx)(u,{model:r,iconClassName:"size-6"})},a)}function g(e){let{key:a,model:r}=e;return(0,l.jsxs)("div",{"data-slot":"compare-server-grid-mobile-card",className:"flex flex-col gap-2",children:[(0,l.jsx)(u,{model:r,iconClassName:"size-9"}),(0,l.jsx)(t.l,{className:"h-9 w-full rounded-lg"})]},a)}function f(e){let{model:l}=e;return l.contextLength}e.s(["CompareServerGrid",0,function(e){let r,s,u,v,j,N,y,b,w,S,C,k,U,T,I,L,P,_,B,G,O,R=(0,a.c)(44),{models:$}=e,z=(0,i.f)(),A=(0,d.E)(),[E,K]=(0,n.useState)(A),F=(0,n.useRef)(null);R[0]===Symbol.for("react.memo_cache_sentinel")?(r=e=>{let l=F.current;l&&(l.style.transform=e>0?`translate3d(${-e}px, 0, 0)`:"")},R[0]=r):r=R[0];let H=r;if(R[1]!==A?(s=()=>{A&&K(!0)},u=[A],R[1]=A,R[2]=s,R[3]=u):(s=R[2],u=R[3]),(0,n.useEffect)(s,u),E)return null;if(R[4]!==$){let e,a,r=(a=new Map,$.map(e=>{let l=a.get(e.permaslug)??0;return a.set(e.permaslug,l+1),{key:0===l?e.permaslug:`${e.permaslug}#${l}`,model:e}})),s=(0,c.buildGridTemplate)(r.length);N=(0,m.P)(r.map(f),"max"),I=e=>r.map(a=>{let{key:r,model:s}=a;return(0,l.jsx)("span",{"data-slot":"compare-server-grid-value",children:e(s)},r)}),j=c.SyncedScrollProvider,b=H,C="compare-server-grid",k="true",U="flex min-h-dvh flex-col gap-3 overflow-x-clip md:gap-2",T=(0,l.jsx)("div",{className:"flex flex-col gap-2 md:hidden",children:r.map(g)}),R[17]===Symbol.for("react.memo_cache_sentinel")?(e=(0,l.jsx)("div",{className:"mb-2 flex h-9 items-center justify-end",children:(0,l.jsx)(t.l,{className:"h-5 w-56"})}),R[17]=e):e=R[17];let i=(0,l.jsxs)("div",{ref:F,"data-slot":"compare-server-grid-header-rows",className:"flex flex-col",children:[(0,l.jsx)("div",{className:"grid h-15 grid-cols-(--grid-template) min-w-min items-center gap-x-3 pr-2","data-allow-inline-style":!0,style:{"--grid-template":s},children:r.map(x)}),(0,l.jsx)("div",{className:"mt-2 grid h-9 grid-cols-(--grid-template) min-w-min items-center gap-x-3 pr-2","data-allow-inline-style":!0,style:{"--grid-template":s},children:r.map(h)})]});R[18]!==i?(y=(0,l.jsxs)("div",{className:"hidden flex-col md:flex md:pt-2 md:pb-2",children:[e,i]}),R[18]=i,R[19]=y):y=R[19],v=c.SectionGrid,w=r.length,S=r.map(p),R[4]=$,R[5]=v,R[6]=j,R[7]=N,R[8]=y,R[9]=b,R[10]=w,R[11]=S,R[12]=C,R[13]=k,R[14]=U,R[15]=T,R[16]=I}else v=R[5],j=R[6],N=R[7],y=R[8],b=R[9],w=R[10],S=R[11],C=R[12],k=R[13],U=R[14],T=R[15],I=R[16];return R[20]!==z?(L=z("Overview"),R[20]=z,R[21]=L):L=R[21],R[22]!==L?(P=(0,l.jsx)(c.SectionHeader,{id:"section-overview",title:L}),R[22]=L,R[23]=P):P=R[23],R[24]!==N||R[25]!==I?(_=(0,l.jsx)(o.k,{isFirst:!0,values:I,contextLengthBestIndices:N}),R[24]=N,R[25]=I,R[26]=_):_=R[26],R[27]!==v||R[28]!==P||R[29]!==_||R[30]!==w||R[31]!==S?(B=(0,l.jsxs)(v,{columnCount:w,mobileColumnLabels:S,children:[P,_]}),R[27]=v,R[28]=P,R[29]=_,R[30]=w,R[31]=S,R[32]=B):B=R[32],R[33]!==y||R[34]!==B||R[35]!==C||R[36]!==k||R[37]!==U||R[38]!==T?(G=(0,l.jsxs)("div",{"data-slot":C,"aria-busy":k,className:U,children:[T,y,B]}),R[33]=y,R[34]=B,R[35]=C,R[36]=k,R[37]=U,R[38]=T,R[39]=G):G=R[39],R[40]!==j||R[41]!==b||R[42]!==G?(O=(0,l.jsx)(j,{onScrollLeftChange:b,children:G}),R[40]=j,R[41]=b,R[42]=G,R[43]=O):O=R[43],O}])}]); //# sourceMappingURL=27f-rp8ue1lt0.js.map